/* Alsentix. Plain, editorial, one stylesheet. No external fonts or scripts. */
:root {
  --paper: #f6f5f1;
  --paper-2: #efede6;
  --ink: #17171a;
  --ink-2: #3a3a40;
  --muted: #6d6c68;
  --rule: #d9d6cc;
  --accent: #a4431b;
  --err: #a1261b;
  --ok: #2f6b3f;
  --c-slate: #2f5d8a;
  --c-moss: #3d6b45;
  --c-rust: #a5532a;
  --serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141413; --paper-2: #1c1c1a; --ink: #ecebe6; --ink-2: #c9c7c0; --muted: #9a988f;
    --rule: #2f2e2a; --accent: #e08a5f; --err: #f08a7e; --ok: #7fbf8e;
    --c-slate: #7fa6cc; --c-moss: #8fbf96; --c-rust: #dd9468;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 500; }
h2, .h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
h3, .h3 { font-size: 1.25rem; }
.h4 { font-size: 1rem; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 440px; }
.narrow-lg { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.meta { font-family: var(--mono); font-size: .8rem; color: var(--muted); letter-spacing: 0; }
.center { text-align: center; }
.mt { margin-top: 14px; }
.mt-lg { margin-top: 48px; }
.pt-0 { padding-top: 0 !important; }
.sr-only, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { clip: auto; width: auto; height: auto; left: 12px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* buttons: plain */
.btn { display: inline-block; font: 600 .95rem/1 var(--sans); color: var(--paper); background: var(--ink); border: 1px solid var(--ink);
  padding: 12px 18px; border-radius: 2px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: transparent; color: var(--accent); }
.btn-danger { background: transparent; color: var(--err); border-color: var(--err); }
.btn-danger:hover { background: var(--err); color: #fff; border-color: var(--err); }
.btn-sm { padding: 8px 12px; font-size: .88rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; align-items: center; }
.actions form { margin: 0; }

/* header */
.topbar { border-bottom: 1px solid var(--rule); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--sans); font-size: .95rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: 28px; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-size: .95rem; padding: 6px 0; border-bottom: 1px solid var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 40px; background: var(--paper); border: 1px solid var(--rule); min-width: 180px; display: grid; z-index: 5; }
.menu-panel a { padding: 12px 16px; text-decoration: none; border-bottom: 1px solid var(--rule); }
.menu-panel a:last-child { border-bottom: 0; }

/* home */
.hero { padding: 88px 0 56px; border-bottom: 1px solid var(--rule); }
.hero h1 { max-width: 20ch; }
.hero .lead { max-width: 58ch; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.section-head p { max-width: 60ch; }
.principles { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; counter-reset: p; }
.principles li { counter-increment: p; padding-top: 14px; border-top: 1px solid var(--ink); }
.principles li::before { content: counter(p, decimal-leading-zero); font: .8rem var(--mono); color: var(--muted); display: block; margin-bottom: 6px; }
.principles h3 { margin-bottom: .3em; }
.principles p { color: var(--ink-2); margin: 0; }

/* portfolio directory */
.co-slate { --co: var(--c-slate); }
.co-moss { --co: var(--c-moss); }
.co-rust { --co: var(--c-rust); }

.dir-layout { display: grid; grid-template-columns: 210px 1fr; gap: 48px; align-items: start; }
.dir-filters { font-size: .92rem; }
.filter-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.filter-group { margin-top: 22px; }
.filter-label { font: .75rem var(--mono); color: var(--muted); font-weight: 400; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; }
.filter-opt { display: flex; align-items: center; gap: 10px; padding: 4px 0; text-decoration: none; color: var(--ink-2); }
.filter-opt .box { width: 13px; height: 13px; border: 1px solid var(--muted); flex: none; }
.filter-opt.on { color: var(--ink); font-weight: 600; }
.filter-opt.on .box { background: var(--ink); border-color: var(--ink); }
.filter-opt .lbl { flex: 1; }
.filter-opt .n { font: .75rem var(--mono); color: var(--muted); }
.dir-search { display: flex; gap: 0; margin-bottom: 14px; }
.dir-search input { flex: 1; border-right: 0; }
.dir-count { font: .8rem var(--mono); color: var(--muted); margin-bottom: 12px; }

/* page heads, detail, prose */
.page-head { padding: 64px 0 32px; }
.page-head .lead { max-width: 60ch; }
.crumb { font-size: .9rem; color: var(--muted); }
.detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
.facts { border-top: 1px solid var(--ink); margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; text-align: right; font-size: .95rem; }
.checks { padding-left: 1.2em; margin: 0 0 1em; }
.checks li { margin-bottom: .4em; }
.prose { max-width: 700px; }
.prose h2 { margin-top: 1.8em; font-size: 1.35rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }

/* forms */
.card { border: 1px solid var(--rule); padding: 24px; background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
.contact-side { display: grid; gap: 28px; }
.contact-side h3 { font-size: 1.05rem; margin-bottom: .3em; }
.contact-side p { margin: 0; }
.form { display: grid; gap: 18px; }
.form.card { border: 0; padding: 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
label { font-size: .88rem; font-weight: 600; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--muted); border-radius: 0; padding: 10px 12px; }
textarea { resize: vertical; min-height: 160px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--err); }
.err { color: var(--err); font-size: .86rem; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.notice { border: 0; border-left: 3px solid var(--ok); padding: 4px 0 4px 20px; }

/* admin */
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.admin-head form { margin: 0; }
.inbox { border-top: 1px solid var(--ink); }
.inbox-row { display: grid; grid-template-columns: 1.3fr auto 2fr auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.inbox-row.unread .who { font-weight: 700; }
.inbox-row.unread .who::before { content: "\25CF  "; color: var(--accent); font-size: .7rem; }
.chip { font: .75rem var(--mono); color: var(--muted); }
.card-top { display: flex; justify-content: space-between; gap: 10px; }
.prev { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.when { white-space: nowrap; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; border-left: 2px solid var(--rule); padding: 4px 0 4px 18px; margin-top: 16px; }
.log { width: 100%; border-collapse: collapse; font-size: .88rem; }
.log th, .log td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--rule); }
.log th { color: var(--muted); font-weight: 600; }

/* footer */
.footer { border-top: 1px solid var(--rule); margin-top: 48px; padding: 40px 0 32px; font-size: .9rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid h4 { font: .75rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.foot-grid a:not(.brand) { display: block; margin-bottom: 6px; text-decoration: none; color: var(--ink-2); }
.foot-grid a:not(.brand):hover { color: var(--accent); }
.foot-grid p { margin-top: 10px; color: var(--muted); max-width: 32ch; }
.foot-bottom { margin-top: 32px; color: var(--muted); font-size: .82rem; }

@media (max-width: 880px) {
  .detail, .contact-grid, .dir-layout { grid-template-columns: 1fr; gap: 36px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .menu { display: block; }
  .hero { padding: 52px 0 40px; }
  .section { padding: 48px 0; }
  .page-head { padding: 44px 0 24px; }
  .principles, .row-2 { grid-template-columns: 1fr; }
  .inbox-row { grid-template-columns: 1fr auto; }
  .inbox-row .prev, .inbox-row .when { grid-column: 1 / -1; }
}

/* =====================================================================
   Home: plain editorial layout. Type and rules do the work; motion is
   limited to the headline reveal and the company index.
   ===================================================================== */
:root { --ease: cubic-bezier(.2, .7, .1, 1); }

/* hero */
.hero { padding: 80px 0 64px; border-bottom: 1px solid var(--ink); overflow: hidden; }
.hero .meta { margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.8rem, 7.6vw, 6.2rem); line-height: .98; letter-spacing: -.035em; font-weight: 500; max-width: none; margin: 0 0 56px; }
.hero h1 em { font-style: italic; }
.reveal .line { display: block; overflow: hidden; padding-bottom: .08em; }
.reveal .line > span { display: inline-block; transform: translateY(105%); animation: lineUp .9s var(--ease) forwards; }
.reveal .line:nth-child(2) > span { animation-delay: .1s; }
.reveal .line:nth-child(3) > span { animation-delay: .2s; }
@keyframes lineUp { to { transform: none; } }
.rise { opacity: 0; transform: translateY(12px); animation: rise .8s var(--ease) forwards; }
.r2 { animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-foot { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start;
  border-top: 1px solid var(--rule); padding-top: 24px; }
.hero-foot .lead { max-width: 52ch; }
.hero-foot .lead a { text-decoration-color: var(--muted); }
.hero-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--ink); }
.hero-facts div { padding: 12px 0 14px; border-bottom: 1px solid var(--rule); }
.hero-facts div:nth-child(odd) { padding-right: 16px; }
.hero-facts div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule); }
.hero-facts dt { font: .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.hero-facts dd { margin: 0; font: 500 1.6rem/1.1 var(--serif); }

.link-arrow { font-weight: 600; text-decoration-color: var(--ink); text-underline-offset: 5px; }
.link-arrow:hover { text-decoration-color: var(--accent); }
.btn-arrow span { display: inline-block; transition: transform .25s var(--ease); }
.btn-arrow:hover span { transform: translateX(4px); }

/* =====================================================================
   Home companies: a full-width stage. The index on the left fills in as
   you scroll; the picture, details and a soft colour wash crossfade to
   each company. CSS scroll-driven animations only (no JavaScript).
   Each company gets 80vh of scrolling; neighbours overlap so one fades
   out while the next fades in.
   ===================================================================== */
.pf { padding: 32px 0 40px; }
.pf .pf-head { margin-bottom: 0; }
.pf-scroll { display: none; }
.pf-num { font: .76rem var(--mono); color: var(--muted); }
.pf-cat { font: .72rem var(--mono); color: var(--muted); text-align: right; }

/* swipe cards: phones, and browsers without scroll effects */
.pf-cards { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 18px max(20px, calc((100vw - 1040px) / 2 + 24px)) 24px;
  scroll-padding-inline: max(20px, calc((100vw - 1040px) / 2 + 24px)); }
.pf-cards::-webkit-scrollbar { display: none; }
.pf-card { flex: 0 0 min(84vw, 360px); scroll-snap-align: start; display: grid; gap: 10px; align-content: start;
  border-top: 2px solid var(--co); padding-top: 12px; text-decoration: none; color: var(--ink); }
.pf-card:hover { color: var(--ink); }
.pf-card img { width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 4px; }
.pf-card .pf-nm { font: 500 1.8rem/1.05 var(--serif); letter-spacing: -.025em; }
.pf-card .pf-cat { text-align: left; }
.pf-card-line { color: var(--ink-2); }

@media (min-width: 900px) and (min-height: 620px) {
  @supports (animation-timeline: view()) and (timeline-scope: --a) {
    .pf-cards { display: none; }
    .pf { padding-top: 0; }
    .pf-scroll { display: block; position: relative; timeline-scope: --n1, --n2, --n3, --n4, --n5, --n6, --n7, --n8; }
    .pf-stage { position: sticky; top: 0; height: 100vh; z-index: 1; overflow: hidden; }
    .pf-steps { margin-top: -100vh; padding: 10vh 0; }
    .pf-step { height: 80vh; }
    .t1 { view-timeline-name: --n1; } .t2 { view-timeline-name: --n2; } .t3 { view-timeline-name: --n3; } .t4 { view-timeline-name: --n4; }
    .t5 { view-timeline-name: --n5; } .t6 { view-timeline-name: --n6; } .t7 { view-timeline-name: --n7; } .t8 { view-timeline-name: --n8; }

    /* the whole stage takes on a soft wash of the active company's colour */
    .pf-bg { position: absolute; inset: 0; background: color-mix(in srgb, var(--co) 9%, var(--paper));
      animation: pfFade linear both; animation-range: cover 19.8% cover 80.2%; }
    .pf-inner { position: relative; height: 100%; display: grid; align-items: center;
      grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(40px, 5vw, 88px);
      max-width: 1340px; margin: 0 auto; padding: 0 clamp(24px, 4vw, 56px); }

    /* shared crossfade: in over the first quarter, hold, out over the last quarter */
    @keyframes pfFade {
      0% { opacity: 0; visibility: hidden; animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
      26.5% { opacity: 1; visibility: visible; }
      73.5% { opacity: 1; visibility: visible; animation-timing-function: cubic-bezier(.6, 0, .8, 1); }
      100% { opacity: 0; visibility: hidden; }
    }

    /* left: the index */
    .pf-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
    .pf-item { position: relative; border-bottom: 1px solid var(--rule); animation: pfItem linear both; animation-range: cover 19.8% cover 80.2%; }
    .pf-item a { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: baseline; column-gap: 14px; row-gap: 8px;
      padding: 22px 0 20px; text-decoration: none; color: var(--ink); }
    .pf-item .pf-cat { grid-column: 2; text-align: left; }
    .pf-item .pf-nm { font: 500 clamp(2.2rem, 3.7vw, 3.5rem)/1 var(--serif); letter-spacing: -.03em;
      animation: pfColor linear both; animation-range: cover 19.8% cover 80.2%; }
    .pf-item::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--co);
      transform-origin: left; animation: pfBar linear both; animation-range: cover 27.8% cover 72.2%; }
    @keyframes pfItem {
      0% { opacity: .28; animation-timing-function: ease-out; } 26.5%, 73.5% { opacity: 1; }
      73.5% { animation-timing-function: ease-in; } 100% { opacity: .28; }
    }
    @keyframes pfColor { 0%, 100% { color: var(--ink); } 26.5%, 73.5% { color: var(--co); } }
    @keyframes pfBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    .pf-hint { font: .72rem var(--mono); color: var(--muted); margin: 20px 0 0; }

    /* right: the panel */
    .pf-panels { position: relative; height: 100vh; }
    .pf-panel { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
      animation: pfVis linear both; animation-range: cover 19.8% cover 80.2%; }
    @keyframes pfVis { 0% { visibility: hidden; } 1%, 99% { visibility: visible; } 100% { visibility: hidden; } }
    /* pictures crossfade; text waits: the old text leaves before the new text arrives */
    .pf-shot { animation: pfFade linear both; animation-range: cover 19.8% cover 80.2%; }
    @keyframes pfText {
      0%, 13.25% { opacity: 0; } 26.5%, 73.5% { opacity: 1; } 86.75%, 100% { opacity: 0; }
    }
    .pf-count-big { order: -1; font: .78rem var(--mono); color: var(--muted); margin-bottom: 14px;
      animation: pfText linear both; animation-range: cover 19.8% cover 80.2%; }
    .pf-count-big small { font-size: inherit; opacity: .6; }
    .pf-shot, .pf-detail { width: min(100%, calc((100vh - 320px) * 1.6)); }
    .pf-shot { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; border: 1px solid var(--rule);
      box-shadow: 0 40px 70px -48px rgba(0, 0, 0, .55); background: var(--paper-2); }
    .pf-shot img { width: 100%; height: 100%; object-fit: cover; animation: pfDrift linear both; animation-range: cover 19.8% cover 80.2%; }
    @keyframes pfDrift { from { transform: scale(1.09) translateY(2.5%); } to { transform: scale(1.01) translateY(-2.5%); } }
    .pf-detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; margin-top: 24px;
      animation: pfText linear both, pfLift linear both; animation-range: cover 19.8% cover 80.2%; }
    @keyframes pfLift { from { transform: translateY(26px); } 26.5%, 73.5% { transform: none; } to { transform: translateY(-26px); } }
    .pf-cap { margin: 0 0 8px; }
    .pf-cap em { font: italic 400 1.3rem/1.3 var(--serif); }
    .pf-sum { color: var(--ink-2); font-size: .95rem; margin: 0 0 12px; }
    .pf-go { font-weight: 600; font-size: .92rem; color: var(--co); text-decoration-color: currentColor; }
    .pf-stats { margin: 0; display: grid; grid-template-columns: 1fr 1fr; align-self: start; border-top: 1px solid var(--ink); }
    .pf-stats div { padding: 9px 0 11px; border-bottom: 1px solid var(--rule); }
    .pf-stats div:nth-child(odd) { padding-right: 12px; }
    .pf-stats div:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--rule); }
    .pf-stats dt { font: .66rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 3px; }
    .pf-stats dd { margin: 0; font: 500 .98rem/1.3 var(--serif); }

    .n1, .n1 .pf-nm, .n1::after, .s1, .s1 img, .s1 .pf-detail, .s1 .pf-shot, .s1 .pf-count-big { animation-timeline: --n1; }
    .n2, .n2 .pf-nm, .n2::after, .s2, .s2 img, .s2 .pf-detail, .s2 .pf-shot, .s2 .pf-count-big { animation-timeline: --n2; }
    .n3, .n3 .pf-nm, .n3::after, .s3, .s3 img, .s3 .pf-detail, .s3 .pf-shot, .s3 .pf-count-big { animation-timeline: --n3; }
    .n4, .n4 .pf-nm, .n4::after, .s4, .s4 img, .s4 .pf-detail, .s4 .pf-shot, .s4 .pf-count-big { animation-timeline: --n4; }
    .n5, .n5 .pf-nm, .n5::after, .s5, .s5 img, .s5 .pf-detail, .s5 .pf-shot, .s5 .pf-count-big { animation-timeline: --n5; }
    .n6, .n6 .pf-nm, .n6::after, .s6, .s6 img, .s6 .pf-detail, .s6 .pf-shot, .s6 .pf-count-big { animation-timeline: --n6; }
    .n7, .n7 .pf-nm, .n7::after, .s7, .s7 img, .s7 .pf-detail, .s7 .pf-shot, .s7 .pf-count-big { animation-timeline: --n7; }
    .n8, .n8 .pf-nm, .n8::after, .s8, .s8 img, .s8 .pf-detail, .s8 .pf-shot, .s8 .pf-count-big { animation-timeline: --n8; }
  }
}

/* roadmap: 2026 to 2030. The line draws itself as the section scrolls into view. */
.rm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.rm-head h2, .rm-head p { margin: 0; }
.rm { list-style: none; margin: 44px 0 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.rm::before, .rm::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--rule); }
.rm::after { height: 2px; top: 6.5px; background: var(--ink); transform-origin: left; transform: scaleX(1); }
.rm li { position: relative; padding-top: 34px; }
.rm li::before { content: ""; position: absolute; top: 0; left: 0; z-index: 1; width: 15px; height: 15px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink); }
.rm-now::before { background: var(--accent) !important; border-color: var(--accent) !important;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent); }
.rm-goal::before { border-style: dashed !important; border-color: var(--accent) !important; }
.rm-year { display: flex; align-items: center; gap: 10px; font: 500 2.3rem/1 var(--serif); letter-spacing: -.025em; }
.rm-tag { font: .66rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent);
  border: 1px solid currentColor; padding: 4px 6px; }
.rm h3 { font-size: 1.08rem; margin: .6em 0 .3em; }
.rm p { color: var(--ink-2); font-size: .93rem; margin: 0; }
.rm-note { font: .74rem var(--mono); color: var(--muted); margin: 36px 0 0; }
@supports (animation-timeline: view()) {
  .rm::after { animation: rmDraw linear both; animation-timeline: view(); animation-range: entry 30% cover 55%; }
  @keyframes rmDraw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .rm li { animation: reveal linear both; animation-timeline: view(); animation-range: entry 10% entry 70%; }
  .rm li:nth-child(2) { animation-range: entry 18% entry 78%; }
  .rm li:nth-child(3) { animation-range: entry 26% entry 86%; }
  .rm li:nth-child(4) { animation-range: entry 34% entry 94%; }
  .rm li:nth-child(5) { animation-range: entry 42% cover 52%; }
}
@media (max-width: 760px) {
  .rm { grid-template-columns: 1fr; gap: 30px; }
  .rm::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .rm::after { display: none; }
  .rm li { padding: 0 0 0 38px; }
  .rm li::before { top: 9px; }
  .rm-year { font-size: 1.9rem; }
}

/* gentle reveals for the rest of the home page */
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  .pf-head, .split > h2, .principles li, .closing h2, .closing .link-arrow {
    animation: reveal linear both; animation-timeline: view(); animation-range: entry 5% entry 65%; }
  .principles li:nth-child(2), .principles li:nth-child(4) { animation-range: entry 15% entry 75%; }
}

/* =====================================================================
   Company index: big names that open into a full breakdown.
   Native <details>, so it works with no JavaScript. Pictures and facts
   come from site.json.
   ===================================================================== */
.pf-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.pf-head h2 { margin: 0; }
.pf-count { font: .8rem var(--mono); color: var(--muted); vertical-align: super; margin-left: 4px; }
.pf-all { font-size: .92rem; }

.ix-list { border-top: 1px solid var(--ink); }
.ix { border-bottom: 1px solid var(--rule); }
.ix > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 22px;
  align-items: center; gap: 24px; padding: 26px 0; }
.ix > summary::-webkit-details-marker { display: none; }
.ix > summary:focus-visible { outline-offset: 6px; }
.ix-num { font: .78rem var(--mono); color: var(--muted); align-self: start; padding-top: 1.2em; }
.ix-title { display: grid; gap: 8px; min-width: 0; }
.ix-name { font: 500 clamp(2.4rem, 6.6vw, 5.2rem)/.92 var(--serif); letter-spacing: -.035em; color: var(--ink);
  transition: color .3s, translate .45s var(--ease); }
.ix-line { color: var(--muted); font-size: 1rem; }
.ix-meta { display: grid; justify-items: end; gap: 3px; font: .76rem/1.4 var(--mono); color: var(--muted); text-align: right; }
.ix-toggle { position: relative; width: 22px; height: 22px; }
.ix-toggle::before, .ix-toggle::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px;
  background: var(--ink); transition: rotate .4s var(--ease); }
.ix-toggle::after { rotate: 90deg; }
.ix[open] .ix-toggle::after { rotate: 0deg; }
.ix > summary:hover .ix-name { translate: 10px 0; color: var(--co); }
.ix[open] .ix-name { color: var(--co); }

.ix-panel { padding: 4px 0 56px 72px; }
.ix[open] .ix-panel { animation: panelIn .6s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }

.ix-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 36px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.ix-stats div { padding: 14px 16px 16px; border-left: 1px solid var(--rule); }
.ix-stats div:first-child { border-left: 0; padding-left: 0; }
.ix-stats dt { font: .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.ix-stats dd { margin: 0; font: 500 1.3rem/1.2 var(--serif); }

.ix-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.ix-shot { margin: 0; }
.ix-shot img { width: 100%; height: auto; border: 1px solid var(--rule); }
.ix-shot figcaption, .ix-gallery figcaption { font: .74rem var(--mono); color: var(--muted); margin-top: 8px; }
.ix-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.ix-gallery img { width: 100%; border: 1px solid var(--rule); }
.ix-info p { color: var(--ink-2); }
.ix-info .ix-lede { font: 400 1.25rem/1.45 var(--serif); color: var(--ink); }
.ix-h { font: .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 28px 0 10px; font-weight: 400; }
.ix-features { list-style: none; padding: 0; margin: 0; counter-reset: f; border-top: 1px solid var(--rule); }
.ix-features li { counter-increment: f; display: grid; grid-template-columns: 34px 1fr; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.ix-features li::before { content: counter(f, decimal-leading-zero); font: .76rem/1.9 var(--mono); color: var(--co); }
.ix-facts { margin: 0; border-top: 1px solid var(--rule); }
.ix-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.ix-facts dt { color: var(--muted); font-size: .9rem; }
.ix-facts dd { margin: 0; text-align: right; font-size: .95rem; }
.ix-tags { font: .78rem var(--mono); color: var(--muted); margin: 22px 0 0; }
.ix-links { display: flex; flex-wrap: wrap; gap: 22px; margin: 22px 0 0; font-weight: 600; }
.ix-links a { color: var(--co); text-decoration-color: currentColor; }

.ix-next { display: grid; grid-template-columns: 48px 1fr auto; gap: 24px; align-items: center; padding: 26px 0; text-decoration: none; color: var(--muted); }
.ix-next .ix-name { font-size: clamp(1.6rem, 3.6vw, 2.6rem); color: transparent; -webkit-text-stroke: 1px var(--muted); }
.ix-next:hover { color: var(--accent); }
.ix-next:hover .ix-name { -webkit-text-stroke-color: var(--accent); translate: 10px 0; }
.ix-empty { padding: 26px 0; color: var(--muted); border-bottom: 1px solid var(--rule); }

/* smooth open/close where the browser supports animating to auto height */
@supports (interpolate-size: allow-keywords) {
  .ix { interpolate-size: allow-keywords; }
  .ix::details-content { block-size: 0; overflow: clip; transition: block-size .55s var(--ease), content-visibility .55s allow-discrete; }
  .ix[open]::details-content { block-size: auto; }
}
@supports (animation-timeline: view()) {
  .ix, .ix-next { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
}

/* company page picture + gallery */
.co-shot { margin: 0 0 48px; }
.co-shot img { width: 100%; height: auto; border: 1px solid var(--rule); }
.co-lede { font-size: 1.15rem; color: var(--ink); }
.co-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.co-gallery img { width: 100%; border: 1px solid var(--rule); }

@media (max-width: 880px) {
  .ix-panel { padding-left: 0; }
  .ix-body { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .ix > summary { grid-template-columns: 28px minmax(0, 1fr) 18px; gap: 14px; padding: 22px 0; }
  .ix-meta { display: none; }
  .ix-toggle { width: 18px; height: 18px; }
  .ix-line { font-size: .92rem; }
  .ix-stats { grid-template-columns: 1fr 1fr; }
  .ix-stats dd { font-size: 1.05rem; }
  .ix-stats div:nth-child(3) { border-left: 0; padding-left: 0; }
  .ix-stats div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .ix-gallery { grid-template-columns: 1fr 1fr; }
  .ix-next { grid-template-columns: 28px 1fr auto; gap: 14px; }
}

/* how we work: heading left, principles right */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 48px; align-items: start; }
.split .principles { margin-top: 0; }

/* closing line */
.closing { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.closing h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 500; letter-spacing: -.02em; max-width: 22ch; margin: 0; }

/* company page header */
.co-head { border-bottom: 1px solid var(--ink); }
.co-head h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); letter-spacing: -.035em; color: var(--co); }
.co-head + .section { padding-top: 48px !important; }

@media (max-width: 880px) {
  .hero-foot, .split { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .hero { padding: 48px 0 44px; }
  .hero h1 { margin-bottom: 36px; }
  .hero-facts dd { font-size: 1.3rem; }
  .closing { grid-template-columns: 1fr; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  /* the company index keeps working: it only moves when the visitor scrolls */
  *:not(.pf-item):not(.pf-nm):not(.pf-panel):not(.pf-bg):not(.pf-shot):not(.pf-shot img):not(.pf-detail):not(.pf-count-big), *:not(.pf-item)::before, *:not(.pf-item)::after {
    animation: none !important; transition: none !important; }
  .reveal .line > span, .rise { transform: none; opacity: 1; }
}
