/* NØNOS. The DOM is a typographic layer over a persistent WebGL world. It
 * never paints a background of its own; the world is the page. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/GeistVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #f2f3f7;
  --ink: #0a0b0d;
  --ink-2: rgba(10, 11, 13, .72);
  --ink-3: rgba(10, 11, 13, .42);
  --line: rgba(10, 11, 13, .12);
  --card: #0a0b0f;
  --accent: #2438ff;
  --radius: 28px;
  --cyan: #66ffff;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --pad: clamp(24px, 5.2vw, 96px);
  --expo: cubic-bezier(.16, 1, .3, 1);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
a { color: inherit; text-decoration: none; }

/* ---- the world ---- */
#world {
  position: fixed; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none;
  opacity: 0; transition: opacity 1.8s var(--expo);
  clip-path: inset(100% 0 0 0);
}
html.ready #world { opacity: 1; }
html.no-gl #world { display: none; }

/* ---- preloader ---- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; align-content: center; gap: 18px;
  background: var(--bg); color: var(--ink);
  transition: opacity 1.1s var(--expo), visibility 1.1s;
}
html.ready .loader { opacity: 0; visibility: hidden; }
.loader-mark { color: var(--cyan); }
.loader-mark b { color: var(--cyan); }
.loader-num {
  font-family: var(--mono); font-size: clamp(4rem, 12vw, 9rem); line-height: 1; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.loader-bar { width: 200px; height: 1px; background: var(--line); overflow: hidden; }
.loader-bar i { display: block; height: 100%; background: var(--cyan); transform: scaleX(0); transform-origin: left; }
.loader-foot { font-family: var(--mono); font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-3); }

/* ---- masthead ---- */
.mast {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px var(--pad);
  mix-blend-mode: difference;
  opacity: 0; transform: translateY(-8px);
  transition: opacity 1.2s var(--expo) .6s, transform 1.2s var(--expo) .6s;
}
html.ready .mast { opacity: 1; transform: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1rem; letter-spacing: .08em; }
.mark { color: var(--cyan); flex: none; }
.brand b { color: var(--cyan); font-weight: 600; }
.mast-nav { display: flex; gap: 34px; align-items: center; font-size: .86rem; font-weight: 500; color: var(--ink-2); }
.mast-nav a { position: relative; padding: 4px 0; }
.mast-nav a:not(.mast-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--expo);
}
.mast-nav a:not(.mast-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.mast-nav a:hover { color: var(--ink); }
.mast-cta {
  color: var(--ink); border: 1px solid rgba(255, 255, 255, .34); border-radius: 999px; padding: 10px 20px;
  transition: border-color .4s var(--expo), background .4s var(--expo);
}
.mast-cta:hover { border-color: var(--ink); background: rgba(255, 255, 255, .07); }

/* ---- HUD ---- */
.hud { position: fixed; inset: 0; z-index: 15; pointer-events: none; font-family: var(--mono); font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3);
  opacity: 0; transition: opacity 1.2s var(--expo) 1s; }
html.ready .hud { opacity: 1; }
.hud-l { position: absolute; left: var(--pad); bottom: 34px; display: flex; gap: 22px; align-items: baseline; }
.hud-index { color: var(--ink-2); }
.hud-act { color: var(--ink-3); overflow: hidden; display: inline-block; }
.hud-act.sw { animation: sw .7s var(--expo); }
@keyframes sw { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
.hud-r { position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); }
.hud-rail { display: block; width: 1px; height: 140px; background: var(--line); position: relative; }
.hud-rail i { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--cyan); transform-origin: top; transform: scaleY(0); }
.hud-b { position: absolute; right: var(--pad); bottom: 34px; display: flex; gap: 26px; }

/* ---- page layer ---- */
#page { position: relative; z-index: 10; pointer-events: none; }
#page a, #page button, #page .tm { pointer-events: auto; }

/* Each scene gets 180vh of scroll; the copy is sticky at the centre so the
   camera travels the whole distance while the words hold still. */
.s { min-height: 0; display: block; padding: 12vh var(--pad) 100vh; position: relative; }
/* The column is a full-height box with its content centred, pinned by the
   scroll layer for the length of its scene, so the copy enters centred, holds,
   and leaves centred. */
.s > .col { height: auto; display: block; margin-bottom: 40px; }
.col { max-width: 62rem; position: relative; }
.col.left { margin-right: auto; }
.col.center { margin: 0 auto; text-align: left; }

.col::before { display: none; }

/* ---- type ---- */
.eyebrow, .n {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 30px;
}
.n { color: var(--cyan); }
h1 {
  font-weight: 600; font-size: clamp(2.3rem, 4.05vw, 4.3rem); line-height: .96; letter-spacing: -.045em;
  margin-bottom: 34px; max-width: none;
}
h2 {
  font-weight: 600; font-size: clamp(2rem, 3.7vw, 3.35rem); line-height: .98; letter-spacing: -.04em;
  margin-bottom: 26px;
}
.lede { font-size: clamp(1.05rem, 1.45vw, 1.28rem); color: var(--ink-2); max-width: 30rem; line-height: 1.5; }
.col p { color: var(--ink-2); font-size: 1rem; max-width: 30rem; }

/* masks for the choreography */
/* Masks clip vertically only, so a long line is never cut at the column edge. */
.ln { display: block; white-space: nowrap; clip-path: inset(-.08em -60vw -.14em -.2em); }
.ch { display: inline-block; transform: translateY(110%); opacity: 0; transition: transform 1.3s var(--expo), opacity .5s linear; }
.wd { display: inline-block; white-space: nowrap; }
.reveal.in .ch { transform: none; opacity: 1; }
.lm { display: block; clip-path: inset(-.1em -60vw -.15em -.2em); }
.li { display: block; white-space: nowrap; transform: translateY(105%); transition: transform 1.2s var(--expo); }
.reveal.in .li { transform: none; }
html.js .reveal:not(h1):not(h2):not(p) { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--expo) var(--d, 0ms), transform 1s var(--expo) var(--d, 0ms); }
html.js .reveal:not(h1):not(h2):not(p).in { opacity: 1; transform: none; }

/* hero */
.hero { min-height: 0; padding-top: 22vh; padding-bottom: 100vh; }
.hero .col { max-width: 36vw; }

/* figures */
.figs { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 30px; margin-top: 34px; border-top: 1px solid var(--line); padding-top: 24px; }
.figs li { font-size: .8rem; color: rgb(75, 77, 79); line-height: 1.35; }
.figs b { display: block; font-family: var(--mono); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.4rem); color: var(--ink); letter-spacing: -.03em; margin-bottom: 4px; font-variant-numeric: tabular-nums; }

/* chips */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips li { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; }

/* controls */
.acts { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 22px; }
.btn {
  display: inline-block; font-weight: 500; font-size: .95rem; color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .34); border-radius: 999px; padding: 15px 30px;
  transition: background .5s var(--expo), color .5s var(--expo), border-color .5s var(--expo), transform .6s var(--expo);
}
.btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary { background: var(--cyan); color: var(--bg); border-color: var(--cyan); }
.btn.primary:hover { background: #b0ffff; border-color: #b0ffff; }
.magnetic { will-change: transform; }

/* ---- world-anchored labels ---- */
.labels { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.wl {
  position: absolute; left: 0; top: 0; display: flex; flex-direction: column; gap: 3px; padding-left: 14px;
  border-left: 1px solid rgba(102, 255, 255, .55);
  font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; color: var(--ink-2); white-space: nowrap;
  transform: translate3d(-9999px, -9999px, 0); will-change: transform, opacity;
}
.wl-n { color: var(--cyan); font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; }
.wl-name { color: var(--ink); font-family: var(--sans); font-size: .9rem; letter-spacing: -.01em; font-weight: 500; }
.wl-src { color: var(--ink-3); font-size: .6rem; }

/* ---- cursor ---- */
html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; will-change: transform; }
.cursor-ring { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); mix-blend-mode: difference; transition: width .35s var(--expo), height .35s var(--expo), margin .35s var(--expo), border-color .3s; }
.cursor.hot .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: rgba(102,255,255,.9); }
.cursor.down .cursor-ring { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.cursor-dot {
  position: absolute; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--ink); mix-blend-mode: difference; transform: translate(-50%, -50%);
  transition: width .5s var(--expo), height .5s var(--expo), background .4s;
}
.cursor.hot .cursor-dot { width: 54px; height: 54px; background: rgba(255, 255, 255, .92); }
.cursor-label {
  position: absolute; left: 16px; top: 14px; font-family: var(--mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-2); white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity .4s, transform .5s var(--expo);
}
.cursor.has-label .cursor-label { opacity: 1; transform: none; }

/* ---- people: one person per scene, alone, against the mark ---- */
.s.person { position: relative; }
.s.person .col { max-width: 30rem; }
.s.person h2 { font-size: clamp(3.4rem, 9vw, 8.5rem); letter-spacing: -.05em; margin-bottom: 18px; }
.tm-role { font-family: var(--mono); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); margin-bottom: 26px; }
.tm-links a { font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.tm-links a:hover { color: var(--ink); border-color: var(--ink); }
.portrait {
  position: absolute; right: 0; top: 0; width: min(62vw, 100vh * 0.88); height: 100vh;
  margin: 0; overflow: hidden; pointer-events: none;
  /* The photo's own black dissolves into the page on three sides. */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 28%, #000 100%), linear-gradient(to bottom, transparent 0%, #000 14%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(to right, transparent 0%, #000 28%, #000 100%), linear-gradient(to bottom, transparent 0%, #000 14%, #000 84%, transparent 100%);
}
.portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%;
  /* One treatment for every portrait, whatever the original light was. */
  filter: grayscale(1) contrast(1.12) brightness(.92);
  transform: scale(1.06); transition: transform 2.4s var(--expo);
}
html.js .portrait { opacity: 0; transition: opacity .6s; }
html.js .portrait.in { opacity: 1; }
html.js .portrait.in img { transform: scale(1); }
.portrait .ascii { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.portrait img { transition: transform 2.4s var(--expo), opacity .4s linear; }
@media (max-width: 900px) { .portrait { width: 100vw; opacity: .45; } }

/* ---- footer ---- */
.foot { padding: 60px var(--pad) 90px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; font-size: .84rem; color: var(--ink-3); }
.foot-nav { display: flex; gap: 26px; }
.foot-nav a { color: var(--ink-2); }
.foot-nav a:hover { color: var(--ink); }

@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .mast { padding: 20px var(--pad); }
  .mast-nav a:not(.mast-cta) { display: none; }
  .col { max-width: none; }
  h1 br, h2 br { display: none; }
  .hud-r, .hud-b { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #world, .mast, .hud { transition: none; }
  .ch, .li { transition: none; transform: none; opacity: 1; }
}

/* ---- chapter titles ---- */
.chapter {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  overflow: hidden; pointer-events: none; text-align: right; padding-right: var(--pad);
}
.chapter span {
  display: inline-block; font-family: var(--sans); font-weight: 600; letter-spacing: -.05em; text-transform: none;
  font-size: clamp(4rem, 12vw, 11rem); line-height: 1; color: rgba(244, 245, 247, .06);
  transform: translateX(40%); opacity: 0; will-change: transform, opacity;
}
.chapter.go span { animation: chapter 2.6s var(--expo) forwards; }
@keyframes chapter {
  0% { transform: translateX(30%); opacity: 0; }
  18% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translateX(-18%); opacity: 0; }
}

/* ---- sound toggle ---- */
.sound {
  position: fixed; right: var(--pad); bottom: 34px; z-index: 30; transform: translateY(-34px);
  display: flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3);
  opacity: 0; transition: opacity 1.2s var(--expo) 1.2s, color .4s;
}
html.ready .sound { opacity: 1; }
.sound:hover { color: var(--ink); }
.sound-bars { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound-bars i { width: 2px; height: 4px; background: currentColor; transition: height .3s; }
.sound[aria-pressed="true"] { color: var(--cyan); }
.sound[aria-pressed="true"] .sound-bars i { animation: bars .9s ease-in-out infinite alternate; }
.sound[aria-pressed="true"] .sound-bars i:nth-child(2) { animation-delay: .15s; }
.sound[aria-pressed="true"] .sound-bars i:nth-child(3) { animation-delay: .3s; }
.sound[aria-pressed="true"] .sound-bars i:nth-child(4) { animation-delay: .45s; }
@keyframes bars { from { transform: scaleY(.35); } to { transform: scaleY(1.1); } }
@media (max-width: 760px) { .sound { display: none; } }

/* ---- fetch-style profile ---- */
.fetch { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; font-family: var(--mono); font-size: .74rem; line-height: 1.9; }
.fetch div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; }
.fetch dt { color: var(--cyan); letter-spacing: .06em; }
.fetch dt::after { content: " ·"; color: var(--ink-3); }
.fetch dd { color: var(--ink-2); }
.fetch dd a { color: var(--ink); border-bottom: 1px solid var(--line); }


/* ---- the card language ---- */
.card { position: relative; width: 100%; height: 60vh; min-height: 420px; border-radius: var(--radius); background: var(--card); overflow: hidden; }
.card-hero { height: 88vh; margin-top: 8vh; background: #dfe2e8; }
.card-hero::after { box-shadow: inset 0 0 0 1px rgba(10,11,13,.06); }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); pointer-events: none; }
.display { font-weight: 500; font-size: clamp(3rem, 8.4vw, 9.4rem); line-height: .92; letter-spacing: -.045em; color: var(--ink); max-width: 100%; }
.hero { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "head head" "side side" "card card" "hint hint"; column-gap: 40px; }
.hero-head { grid-area: head; padding-left: 14vw; position: relative; z-index: 1; }
.hero-side { grid-area: side; justify-self: end; max-width: 44rem; margin-top: 8vh; display: grid; gap: 28px; justify-items: start; position: relative; z-index: 1; }
.hero-side .lede { font-size: clamp(1.15rem, 1.8vw, 1.7rem); line-height: 1.35; color: var(--ink); max-width: none; }
.hero .card { grid-area: card; }
.arc { position: absolute; left: 0; top: 0; width: 46vw; height: 110vh; z-index: 0; pointer-events: none; }
.scroll-hint { grid-area: hint; display: flex; justify-content: space-between; align-items: center; padding: 26px 0 0; font-size: .9rem; font-weight: 500; letter-spacing: .02em; color: var(--ink); }
.scroll-hint span:nth-child(3) { text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; }

/* pills */
.pill { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: 999px; font-weight: 500; font-size: .95rem; letter-spacing: .01em; border: 0; cursor: pointer; transition: transform .35s var(--expo), background .3s; }
.pill.dark { background: #16181d; color: #fff; }
.pill.light { background: #fff; color: var(--ink); box-shadow: 0 1px 0 rgba(0,0,0,.03); }
.pill.icon { width: 56px; padding: 0; justify-content: center; background: #e2e5ec; }
.pill .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: inline-block; }
.pill .dot.on { width: 9px; height: 9px; background: var(--ink); }
.pill .wave { width: 22px; height: 12px; fill: var(--ink); opacity: .8; }
.pill .wave rect { transform-origin: center; transition: transform .3s; }
.sound-pill[aria-pressed="true"] .wave rect { animation: bars .9s ease-in-out infinite alternate; }
.sound-pill[aria-pressed="true"] .wave rect:nth-child(2) { animation-delay: .15s; }
.sound-pill[aria-pressed="true"] .wave rect:nth-child(3) { animation-delay: .3s; }
.sound-pill[aria-pressed="true"] .wave rect:nth-child(4) { animation-delay: .45s; }
.mast { mix-blend-mode: normal; }
.mast-nav { gap: 12px; color: var(--ink); }
.brand { color: var(--ink); font-size: 1.35rem; letter-spacing: .1em; }
h2 { color: var(--ink); }
.col p, .lede { color: var(--ink-2); }
.hud, .sound, .chapter { display: none; }
.labels { z-index: 12; }
.wl-name { color: #f4f5f7; }
.wl-src { color: rgba(244,245,247,.55); }
.wl-n:empty { display: none; }
.cursor-dot { background: var(--ink); }
.cursor.hot .cursor-dot { background: rgba(10,11,13,.92); }
.cursor-ring { border-color: rgba(10,11,13,.5); mix-blend-mode: normal; }
@media (max-width: 900px) { .hero-head { padding-left: 0; } .display { font-size: clamp(2.6rem, 12vw, 5rem); } .card { height: 56vh; } }

/* section rhythm in the card language */
.s:not(.hero) .col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; max-width: none; }
.s:not(.hero) .col .n { grid-column: 1 / -1; }
.s:not(.hero) .col h2 { grid-column: 1 / -1; font-size: clamp(2.2rem, 4.6vw, 4.4rem); line-height: .98; letter-spacing: -.04em; max-width: 24ch; margin-bottom: 26px; }
.s:not(.hero) .col p { grid-column: 2; font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.45; max-width: 36rem; }
.s:not(.hero) .col .figs { grid-column: 1 / -1; }
.s:not(.hero) .col .acts { grid-column: 2; }
.figs b { color: var(--ink); }
.n { color: var(--ink-3); }

html.in-flight .brand { color: #fff; transition: color .3s; }
.brand { transition: color .3s; }

/* the copy steps back while the card opens to full screen */
#page { opacity: calc(1 - var(--expand, 0) * 0.85); transition: opacity .12s linear; }

/* people: the portrait is the card */
.s.person { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 48px; align-items: start; }
.s.person .col { display: block; max-width: 34rem; }
.s.person .col p { max-width: 34rem; }
.s.person .card-photo { height: 76vh; position: relative; }
.card-photo .portrait { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 1; transform: none; mask-image: none; -webkit-mask-image: none; }
.card-photo .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; filter: grayscale(1) contrast(1.08) brightness(.95); }
html.js .card-photo .portrait { opacity: 1; }
.fetch { display: grid; grid-template-columns: 8rem 1fr; gap: 6px 14px; font-family: var(--mono); font-size: .8rem; color: var(--ink-2); }
.fetch dt { color: var(--ink-3); }
.tm-role { color: var(--ink-3); }

.card canvas.seq { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* roadmap card */
.card-road { height: auto; min-height: 0; padding: clamp(24px, 4vw, 56px); color: #f4f5f7; }
.road { list-style: none; display: grid; gap: 0; }
.road li { display: grid; grid-template-columns: 12rem 18rem 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.09); align-items: baseline; }
.road li:first-child { border-top: 0; }
.road-when { font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(244,245,247,.5); }
.road-what { font-weight: 500; font-size: 1.25rem; letter-spacing: -.01em; }
.road-note { color: rgba(244,245,247,.66); font-size: .98rem; line-height: 1.45; max-width: 44rem; }
.road li.done .road-when, .road li.dated .road-when { color: var(--cyan); }
.road li.done .road-what::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); margin-right: 10px; vertical-align: middle; }
@media (max-width: 900px) { .road li { grid-template-columns: 1fr; gap: 6px; } }

.fetch div { display: contents; }
.fetch dd { margin: 0; }

/* ---- the shell: menu, closing statement, footer ---- */
.menu-btn { cursor: pointer; }
.menu {
  position: fixed; inset: 0; z-index: 19; background: var(--bg); color: var(--ink);
  display: grid; align-content: center; padding: 0 var(--pad);
  clip-path: circle(0 at calc(100% - var(--pad) - 60px) 56px); transition: clip-path .9s var(--expo);
  pointer-events: none;
}
.menu[hidden] { display: grid; }
html.menu-open .menu { clip-path: circle(150% at calc(100% - var(--pad) - 60px) 56px); pointer-events: auto; }
html.menu-open { overflow: hidden; }
.menu-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; max-width: 1400px; width: 100%; margin: 0 auto; align-items: end; }
.menu-list { list-style: none; counter-reset: m; display: grid; }
.menu-list li { border-top: 1px solid var(--line); }
.menu-list li:last-child { border-bottom: 1px solid var(--line); }
.menu-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: clamp(10px, 1.4vh, 18px) 0; transition: padding-left .5s var(--expo); }
.menu-list a span { font-weight: 500; font-size: clamp(1.9rem, 4.6vh, 3.6rem); letter-spacing: -.04em; line-height: 1.05; transform: translateY(24px); opacity: 0; transition: transform .9s var(--expo), opacity .5s linear; }
.menu-list a small { font-family: var(--mono); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.menu-list a:hover { padding-left: 14px; }
html.menu-open .menu-list a span { transform: none; opacity: 1; }
html.menu-open .menu-list li:nth-child(n) a span { transition-delay: calc(.08s + var(--i, 0) * .04s); }
.menu-side { display: grid; gap: 34px; padding-bottom: 8px; }
.menu-block { display: grid; gap: 6px; justify-items: start; }
.menu-block a:not(.pill) { font-size: 1.05rem; color: var(--ink-2); }
.menu-block a:not(.pill):hover { color: var(--ink); }
.menu-k, .foot-k { font-family: var(--mono); font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }

.s.get .col { display: block; max-width: none; text-align: left; }
.display-2 { font-size: clamp(2.4rem, 5.3vw, 5.8rem) !important; line-height: .96 !important; letter-spacing: -.05em !important; max-width: none !important; margin-bottom: 34px; }
.s.get .acts { margin: 0 0 8px; gap: 12px; }

.foot { padding: 40px var(--pad) 40px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding: 40px 0 56px; border-top: 1px solid var(--line); }
.foot-col { display: grid; gap: 8px; align-content: start; justify-items: start; }
.foot-col a { color: var(--ink-2); font-size: 1rem; }
.foot-col a:hover { color: var(--ink); }
.foot-line { color: var(--ink-2); font-size: 1.05rem; line-height: 1.45; max-width: 30rem; }
.foot-meta { display: flex; gap: 18px; font-family: var(--mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-top: 10px; }
.foot-word { font-weight: 600; font-size: clamp(5rem, 19.6vw, 21rem); line-height: .82; letter-spacing: -.06em; color: var(--ink); margin: 0 0 32px -.04em; }
.foot-word b { color: var(--accent); font-weight: 600; }
.foot-row { border-top: 1px solid var(--line); padding-top: 22px; }

/* ---- people: portrait and copy side by side, then the reverse ---- */
.s.person { align-items: center; }
.s.person .card-photo { height: 78vh; min-height: 480px; }
.s.person.flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.s.person.flip .col { order: 2; }
.s.person.flip .card-photo { order: 1; }
.s.person h2 { font-size: clamp(3rem, 7vw, 6.6rem); }
.s.person .col p:not(.tm-role) { font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.45; }

/* ---- small screens: one column, the picture first, the headline free to wrap ---- */
@media (max-width: 760px) {
  :root { --radius: 22px; --pad: 20px; }
  body { font-size: 16px; }
  .mast { padding: 16px var(--pad); }
  .mast-nav a:not(.mast-cta) { display: inline-flex; }
  .sound-pill { display: none; }
  .pill { height: 44px; padding: 0 18px; font-size: .88rem; }
  .pill.icon { width: 44px; }
  .brand { font-size: 1.1rem; }
  .menu { clip-path: circle(0 at calc(100% - var(--pad) - 44px) 38px); }
  html.menu-open .menu { clip-path: circle(170% at calc(100% - var(--pad) - 44px) 38px); }
  .menu-inner { grid-template-columns: 1fr; gap: 28px; align-content: start; padding-top: 88px; }
  .menu-list a span { font-size: clamp(1.7rem, 7.4vw, 2.4rem); }
  .menu-list a small { display: none; }
  .menu-side { grid-template-columns: 1fr 1fr; gap: 22px; }
  .menu-side .menu-block:first-child { grid-column: 1 / -1; }
  .s { padding: 10vh var(--pad) 58vh; }
  .hero { padding-top: 15vh; padding-bottom: 58vh; grid-template-columns: 1fr; }
  .hero .col, .hero-head { max-width: none; padding-left: 0; }
  .display { font-size: clamp(2.5rem, 11.6vw, 4rem); line-height: .96; }
  .ln { white-space: normal; display: inline; clip-path: none; }
  .ln::after { content: " "; }
  .hero-side { margin-top: 5vh; gap: 20px; justify-self: start; }
  .hero-side .lede { font-size: 1.05rem; }
  .arc { width: 70vw; height: 80vh; padding-top: 4rem; opacity: .9; }
  .card { height: 62vh; min-height: 380px; }
  .card-hero { height: 66vh; margin-top: 4vh; }
  .scroll-hint { font-size: .78rem; }
  .scroll-hint span:nth-child(3) { font-size: .68rem; }
  .s:not(.hero) .col { grid-template-columns: 1fr; column-gap: 0; }
  .s:not(.hero) .col h2 { font-size: clamp(1.9rem, 8.4vw, 2.7rem); max-width: none; margin-bottom: 18px; }
  .s:not(.hero) .col p, .s:not(.hero) .col .acts { grid-column: 1; max-width: none; font-size: 1rem; }
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
  .s.person, .s.person.flip { grid-template-columns: 1fr; column-gap: 0; row-gap: 22px; }
  .s.person .col, .s.person.flip .col { order: 2; max-width: none; }
  .s.person .card-photo, .s.person.flip .card-photo { order: 1; height: 58vh; min-height: 360px; }
  .s.person h2 { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .fetch { grid-template-columns: 5.6rem 1fr; font-size: .74rem; }
  .display-2 { font-size: clamp(2.2rem, 9.6vw, 3.2rem) !important; max-width: none !important; }
  .s.get .acts { flex-direction: column; align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px; padding: 28px 0 36px; }
  .foot-about { grid-column: 1 / -1; }
  .foot-word { font-size: 24vw; margin-bottom: 20px; }
  .foot-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .foot-nav { flex-wrap: wrap; gap: 14px 20px; }
  .labels { display: none; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .s:not(.hero) .col h2 { font-size: clamp(2rem, 5.2vw, 3.2rem); }
  .s.person .card-photo { height: 60vh; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
}

/* ---- life ---- */
/* Hero: the headline and the lede share the fold with the top of the scene. */
.hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "head head" "side side" "card card" "hint hint"; padding-top: 17vh; row-gap: 0; }
.hero-head { padding-left: 10vw; }
.display { font-size: clamp(3rem, 7.6vw, 8.6rem); }
.hero-side { margin-top: 5vh; max-width: 40rem; gap: 22px; }
.hero-side .lede { font-size: clamp(1.1rem, 1.55vw, 1.45rem); }
.card-hero { margin-top: 6vh; }
.display.alive .ch { transition: none; }
.arc { will-change: transform; }
.arc path { stroke-linecap: round; }

/* Card labels: the name of the picture, top left, in the site's mono. */
.card[data-label]::before {
  content: attr(data-label); position: absolute; left: 22px; top: 20px; z-index: 3;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(244,245,247,.78); pointer-events: none;
  padding: 8px 12px; border-radius: 999px; background: rgba(10,11,15,.34); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(6px); transition: opacity .7s var(--expo) .2s, transform .7s var(--expo) .2s;
}
.card[data-label].seen::before { opacity: 1; transform: none; }
.card-hero[data-label]::before { color: rgba(10,11,13,.7); background: rgba(255,255,255,.55); }
html.in-flight .card::before { opacity: 0; }

/* Pills: the fill swells from where the cursor entered, drawn as a
   background so it sits under the text and inside the rounded edge. */
@property --r { syntax: '<length>'; inherits: false; initial-value: 0px; }
.pill.pill { background-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--accent) var(--r), transparent calc(var(--r) + 1px)); transition: --r .6s var(--expo), color .25s, transform .35s var(--expo); }
.mast-nav a.pill::after { display: none; }
.pill:hover { --r: 420px; color: #fff; }
.pill:hover .dot, .pill:hover .dot.on { background: #fff; }
.pill .dot { transition: transform .4s var(--expo), background .3s; }
.pill:hover .dot { transform: scale(1.5); }
.pill:hover .wave { fill: #fff; }

/* Portraits: monochrome until you look. */
.card-photo .portrait img { transition: filter 1.1s var(--expo), transform 2.4s var(--expo); }
.card-photo:hover .portrait img { filter: grayscale(0) contrast(1.04) brightness(1); transform: scale(1.03); }

/* Marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); padding: 26px 0; margin: 0 calc(-1 * var(--pad)); -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: roll var(--dur, 30s) linear infinite; padding-left: var(--pad); }
.marquee-track span { font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2.4rem); letter-spacing: -.03em; white-space: nowrap; color: var(--ink); }
.marquee-track i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
@keyframes roll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Links get the dot too */
.foot-col a, .menu-block a:not(.pill) { position: relative; padding-left: 0; transition: padding-left .4s var(--expo), color .3s; }
.foot-col a::before, .menu-block a:not(.pill)::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .4s var(--expo); }
.foot-col a:hover, .menu-block a:not(.pill):hover { padding-left: 14px; }
.foot-col a:hover::before, .menu-block a:not(.pill):hover::before { transform: scale(1); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 15vh; }
  .hero-head { padding-left: 0; }
  .display { font-size: clamp(2.5rem, 11.6vw, 4rem); }
  .card[data-label]::before { left: 14px; top: 12px; font-size: .58rem; }
  .marquee { padding: 18px 0; }
}

/* Cursor on the light page: a small accent dot and a ring that opens over
   anything you can press. No blob over the words. */
.cursor-dot { width: 8px; height: 8px; background: var(--accent); }
.cursor.hot .cursor-dot { width: 6px; height: 6px; background: var(--accent); }
.cursor-ring { border-color: rgba(10,11,13,.35); }
.cursor.hot .cursor-ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--accent); }
.cursor-label { color: var(--ink); }
.mast-nav a.pill:hover, .pill.light:hover, .pill.icon:hover { color: #fff; }


/* Scene 01 is the first card, under the headline, in the frame you approved. */
.card-hero { height: 88vh; margin-top: 6vh; border-radius: var(--radius); background: #dfe2e8; }
.card-hero::before { top: 20px !important; bottom: auto !important; }

/* The page sits above the world; the world is seen through the live card,
   which is the only transparent thing on it. */
#page { z-index: 12; }
.labels { z-index: 13; }
.card.live:not([data-static]) { background: transparent; }
.card.live::before { z-index: 3; }
.hero .card { z-index: 1; }
/* The arc stops above the card: the live card is transparent to the world,
   so nothing on the page may run under it. */
.hero .arc { height: 66vh; -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 97%); mask-image: linear-gradient(to bottom, #000 62%, transparent 97%); }
@media (max-width: 760px) { .hero .arc { height: 58vh; } }

/* ---- strokes: the arc's language, one per section ---- */
.s { position: relative; }
.stroke { position: absolute; z-index: 0; pointer-events: none; overflow: visible; will-change: transform; }
.stroke path { fill: none; stroke: var(--accent); stroke-width: clamp(14px, 1.9vw, 36px); stroke-linecap: round; stroke-linejoin: round; transition: stroke-dashoffset 2.2s var(--expo); }
.stroke path.dashed { stroke-dasharray: 1 3.2; stroke-width: clamp(10px, 1.2vw, 22px); }
.stroke .hop { fill: var(--bg); stroke: var(--accent); stroke-width: 14; }
.stroke .end { fill: var(--accent); }
.s > .col { position: relative; }
.s > .col > *:not(.stroke) { position: relative; z-index: 1; }
.s > .card { position: relative; z-index: 1; }
.s.person .col, .s.person .card-photo { z-index: 1; }
/* Under the copy, the stroke is quiet; it is the mark of the section, not its subject. */
.stroke { opacity: .92; }
@media (max-width: 760px) { .stroke { display: none; } }

/* Eyebrow with the dot, numerals in blue: the arc's colour runs through the type. */
.n { display: inline-flex; align-items: center; gap: 10px; }
.n::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.figs b { color: var(--accent); }
.s:not(.hero) .col h2 { font-size: clamp(2.4rem, 5.2vw, 5rem); letter-spacing: -.045em; }
.tm-role { color: var(--accent); }

/* ---- real screens: the OS itself, in a card ---- */
.card-screens { background: #0b0d10; }
.screens { position: absolute; inset: 0; margin: 0; }
.screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; opacity: 0; transform: scale(1.02); transition: opacity .7s var(--expo), transform 1.4s var(--expo); }
.screens img.on { opacity: 1; transform: none; }
.screens-tabs { position: absolute; left: 22px; bottom: 20px; z-index: 3; display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(10,11,15,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); pointer-events: auto; }
.screens-tabs button { border: 0; cursor: pointer; background: transparent; color: rgba(244,245,247,.7); font: 500 .8rem/1 var(--sans); padding: 10px 14px; border-radius: 999px; transition: background .3s, color .3s; }
.screens-tabs button:hover { color: #fff; }
.screens-tabs button.on { background: #fff; color: var(--ink); }
.card-screens[data-label]::before { top: 20px; }
@media (max-width: 760px) { .screens-tabs { left: 12px; bottom: 12px; } .screens-tabs button { padding: 8px 10px; font-size: .72rem; } }
.card { transform-origin: 50% 60%; will-change: transform; }
.s > .col { will-change: transform; transform-origin: 0 50%; }

/* ---- finer things ---- */
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.pill:focus-visible { outline-offset: 4px; }

/* Load: the hero card rises after the words, the pills come one after another. */
html.js .card-hero { opacity: 0; transform: translate3d(0, 48px, 0) scale(.985); transition: opacity 1.2s var(--expo) 1.05s, transform 1.6s var(--expo) 1.05s; }
html.ready .card-hero { opacity: 1; transform: none; }
html.ready .card-hero.settled { transition: none; }
.mast-nav .pill { opacity: 0; transform: translateY(-6px); transition: opacity .8s var(--expo), transform .8s var(--expo), --r .6s var(--expo), color .25s; }
html.ready .mast-nav .pill { opacity: 1; transform: none; }
html.ready .mast-nav .pill:nth-child(1) { transition-delay: .7s, .7s, 0s, 0s; }
html.ready .mast-nav .pill:nth-child(2) { transition-delay: .82s, .82s, 0s, 0s; }
html.ready .mast-nav .pill:nth-child(3) { transition-delay: .94s, .94s, 0s, 0s; }

/* A hairline of progress under the masthead. */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 21; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* The masthead tightens once the page is under way. */
html.scrolled .mast { padding-top: 14px; padding-bottom: 14px; }
html.scrolled .mast .pill { height: 46px; padding: 0 20px; }
html.scrolled .mast .pill.icon { width: 46px; padding: 0; }
.mast { transition: padding .5s var(--expo); }
.mast .pill { transition: height .5s var(--expo), padding .5s var(--expo), width .5s var(--expo), --r .6s var(--expo), color .25s, opacity .8s var(--expo), transform .8s var(--expo); }

/* Scroll hint: the marks turn slowly, and the hint goes once you have. */
.scroll-hint span:not(:nth-child(3)) { display: inline-block; animation: turn 9s linear infinite; }
.scroll-hint span:nth-child(2), .scroll-hint span:nth-child(5) { animation-direction: reverse; }
@keyframes turn { to { transform: rotate(360deg); } }
html.scrolled .scroll-hint { opacity: 0; transition: opacity .5s; }

/* Portraits unmask from the bottom as their card is seen. */
.card-photo .portrait { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--expo); }
.card-photo.seen .portrait { clip-path: inset(0 0 0 0); }

/* The footer wordmark: letters rise one by one when the footer arrives. */
.foot-word .fw { display: inline-block; transform: translateY(110%); opacity: 0; transition: transform 1.3s var(--expo), opacity .4s linear; }
.foot-word .fw.b { color: var(--accent); }
.foot-word { overflow: hidden; }
.foot-word.in .fw { transform: none; opacity: 1; }
.foot-word.in .fw:nth-child(1) { transition-delay: 0s; }
.foot-word.in .fw:nth-child(2) { transition-delay: .06s; }
.foot-word.in .fw:nth-child(3) { transition-delay: .12s; }
.foot-word.in .fw:nth-child(4) { transition-delay: .18s; }
.foot-word.in .fw:nth-child(5) { transition-delay: .24s; }

/* Marquee pauses under the cursor. */
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Card hover: the label lifts, the frame's inner line brightens. */
.card:hover::before { transform: translateY(-2px); }
.card::after { transition: box-shadow .5s var(--expo); }
.card:hover::after { box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.card-hero:hover::after { box-shadow: inset 0 0 0 1px rgba(10,11,13,.12); }
@media (prefers-reduced-motion: reduce) {
  html.js .card-hero { opacity: 1; transform: none; transition: none; }
  .scroll-hint span { animation: none; }
  .card-photo .portrait { clip-path: none; }
  .foot-word .fw { transform: none; opacity: 1; }
}

/* ---- video cards ---- */
.card video.clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #0b0d10; }

/* People follow each other without a flight, so no runway between them. */
.s.person { padding-bottom: 16vh; }
.s.person + .s.person { padding-top: 6vh; }
.s.person .col { align-self: center; }
@media (max-width: 760px) { .s.person { padding-bottom: 12vh; } }
/* The ASCII entrance draws over the photo while the mask opens. */
.card-photo .portrait .ascii { z-index: 2; }
.card-photo .portrait img { transition: filter 1.1s var(--expo), transform 2.4s var(--expo), opacity .3s linear; }

/* ---- the capsule model: Scene 01 continues into the diagram ----
   The diagram card is the window into the capsule scene; the model is drawn
   over it in the language of the plate labels: dark blurred pills, mono
   type, lines with a halo, cyan where authority is verified. */
.hero > .cd-copy { grid-column: 1 / -1; grid-row: 5; }
.hero > .card-diagram { grid-column: 1 / -1; grid-row: 6; }
.hero > .cd-copy { margin-top: 14vh; margin-bottom: 40px; }
.cd-copy p:not(.n) { max-width: 40rem; }
.card-diagram { height: auto; min-height: 0; padding: clamp(24px, 3vw, 48px); padding-top: 72px; overflow: hidden; background: #dfe2e8 url("/assets/plates/hero-bg.jpg") center / cover no-repeat; }
.card-diagram.live { background: transparent; }
.card-diagram::before { top: 20px !important; }
.cd { position: relative; color: #f4f5f7; }
.cd-edges { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cd-cols { position: relative; display: grid; grid-template-columns: 1.05fr 1.35fr 1.2fr 1.2fr; gap: 26px 44px; align-items: start; }
.cd-col { display: grid; gap: 26px; align-content: start; }
.cd-wide { position: relative; display: grid; grid-template-columns: 1fr; gap: 26px; margin-top: 26px; }
.cd-group { position: relative; border-radius: 20px; padding: 44px 14px 14px; display: grid; gap: 12px; background: rgba(10,11,15,.22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); opacity: 0; transform: translateY(10px); transition: opacity .8s var(--expo), transform .9s var(--expo); }
.cd-group.on { opacity: 1; transform: none; }
.cd-title { position: absolute; left: 16px; top: 16px; font-family: var(--mono); font-weight: 400; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: #f4f5f7; margin: 0; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.cd-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; }
.cd-node { position: relative; background: rgba(10,11,15,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); border-radius: 12px; padding: 10px 12px; display: grid; gap: 3px; opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .6s var(--expo), transform .7s var(--expo), box-shadow .4s; }
.cd-node.on { opacity: 1; transform: none; }
.cd-name { font-family: var(--mono); font-size: .76rem; color: #f4f5f7; line-height: 1.35; overflow-wrap: break-word; }
.cd-src { font-size: .78rem; color: rgba(244,245,247,.66); line-height: 1.35; overflow-wrap: anywhere; }
.cd-node.key { box-shadow: inset 0 0 0 1px var(--cyan); }
.cd-node.key .cd-name { color: var(--cyan); }
.cd-node.lit { box-shadow: inset 0 0 0 1px var(--cyan), 0 0 26px rgba(102,255,255,.25); }
.cd-node.refuse { box-shadow: inset 0 0 0 1px rgba(255,255,255,.34); background: rgba(10,11,15,.5); }
.cd-node.refuse .cd-name::before { content: "×  "; color: rgba(244,245,247,.7); }
.cd-node.fail { box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); background: rgba(10,11,15,.4); }
.cd-halo { fill: none; stroke: rgba(10,11,15,.55); stroke-width: 4; opacity: 0; transition: opacity .6s; }
.cd-halo.on { opacity: 1; }
.cd-edge { fill: none; stroke: rgba(244,245,247,.92); stroke-width: 1.2; transition: stroke-dashoffset 1.6s var(--expo); }
.cd-edge.dashed { stroke: rgba(244,245,247,.55); opacity: 0; transition: opacity .8s; }
.cd-edge.dashed.on { opacity: 1; }
.cd-label { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; fill: #f4f5f7; paint-order: stroke; stroke: rgba(10,11,15,.85); stroke-width: 4px; stroke-linejoin: round; text-anchor: start; opacity: 0; transition: opacity .6s; }
.cd-label.on { opacity: 1; }
.cd-walker { fill: var(--cyan); filter: drop-shadow(0 0 8px rgba(102,255,255,.9)); opacity: 0; transition: opacity .4s; }
@media (max-width: 1100px) { .cd-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .cd-cols { grid-template-columns: 1fr; gap: 18px; } .cd-row { grid-auto-flow: row; } .card-diagram { padding: 16px; padding-top: 56px; } .cd-edges { display: none; } }

/* Notes in the tunnel: ink on the white tube, blue rule, cyan at the pid. */
.wl.tn { border-left-color: var(--accent); padding-left: 12px; gap: 2px; }
.wl.tn .wl-n { color: var(--accent); font-size: .56rem; }
.wl.tn .wl-name { color: var(--ink); font-family: var(--mono); font-size: .92rem; font-weight: 500; letter-spacing: 0; }
.wl.tn .wl-src { color: var(--ink-2); font-size: .66rem; }
.wl.tn.cyan { border-left-color: var(--cyan); }
.wl.tn.cyan .wl-name { color: #0aa5a5; }
.wl.tn.cyan .wl-n { color: #0aa5a5; }

/* ---- the reader over the first flight ---- */
.fly-hud { position: fixed; inset: 0; z-index: 14; pointer-events: none; display: grid; grid-template-columns: 17rem minmax(0, 1fr); align-items: center; padding: 0 var(--pad); gap: 40px; opacity: 0; transition: opacity .35s; color: var(--ink); }
.fly-hud.on { opacity: 1; }
.fly-index { display: grid; gap: 14px; font-family: var(--mono); font-size: .68rem; line-height: 1.5; }
.fly-kind { font-size: .56rem; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.fly-item { color: rgba(10,11,13,.32); transition: color .3s, transform .4s var(--expo); padding-left: 12px; position: relative; }
.fly-item::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.fly-item.done { color: rgba(10,11,13,.7); }
.fly-item.now { color: var(--ink); transform: translateX(6px); }
.fly-item.now::before { background: var(--accent); box-shadow: 0 0 0 3px rgba(36,56,255,.18); }
.fly-item small { color: rgba(10,11,13,.45); }
.fly-text { justify-self: end; max-width: 34rem; text-align: left; }
.fly-text .fly-kind { font-size: .62rem; }
.fly-name { font-family: var(--mono); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 2.3rem); letter-spacing: -.01em; line-height: 1.1; margin-bottom: 14px; }
.fly-sent { font-size: clamp(1.05rem, 1.5vw, 1.4rem); line-height: 1.4; color: var(--ink-2); }
.fly-sent.in { animation: sentIn .6s var(--expo); }
@keyframes sentIn { from { opacity: 0; transform: translateY(10px); } }
.fly-hud.cyan .fly-text .fly-kind, .fly-hud.cyan .fly-name { color: #0aa5a5; }
.fly-tail { position: absolute; left: var(--pad); right: var(--pad); bottom: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; font-size: .86rem; line-height: 1.45; color: var(--ink-2); opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s var(--expo); }
.fly-tail p { padding-top: 12px; border-top: 1px solid rgba(10,11,13,.18); }
.fly-hud.tail .fly-tail { opacity: 1; transform: none; }
.fly-hud.tail .fly-index, .fly-hud.tail .fly-text { opacity: .35; }
@media (max-width: 900px) { .fly-hud { grid-template-columns: 1fr; align-content: end; padding-bottom: 20vh; } .fly-index { display: none; } .fly-tail { grid-template-columns: 1fr; gap: 10px; font-size: .78rem; } }

/* ---- annotations on the scenes ---- */
.dg-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.dg-lead { stroke: rgba(244,245,247,.9); stroke-width: 1.2; }
.dg-edge { stroke: rgba(244,245,247,.55); stroke-width: 1; stroke-dasharray: 3 5; }
.dg { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; }
.dg-dot { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.25), 0 0 12px rgba(0,0,0,.35); transform: scale(var(--k, 0)); }
.dg.cyan .dg-dot { background: var(--cyan); box-shadow: 0 0 0 3px rgba(102,255,255,.25), 0 0 14px rgba(102,255,255,.6); }
.dg-box { position: absolute; left: var(--lx, 0); top: var(--ly, 0); transform: translate(6px, -100%); display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; background: rgba(10,11,15,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); white-space: nowrap; opacity: var(--k, 0); }
.dg.left .dg-box { transform: translate(calc(-100% - 6px), -100%); }
.dg-name { font-family: var(--sans); font-weight: 500; font-size: .86rem; color: #f4f5f7; letter-spacing: -.01em; }
.dg-src { font-family: var(--mono); font-size: .62rem; letter-spacing: .04em; color: rgba(244,245,247,.66); }
.dg.cyan .dg-name { color: var(--cyan); }
@media (max-width: 760px) { .dg, .dg-lines { display: none; } }

/* ---- type, the final setting ----
   Display sizes in medium weight: at this scale bold reads as shouting.
   Paragraphs on a 32rem measure at a reading size, lines a little open. */
h1, h2, .display, .display-2, .s:not(.hero) .col h2, .s.person h2 { font-weight: 500; }
.s:not(.hero) .col h2 { font-size: clamp(2.3rem, 5vw, 4.8rem); line-height: .98; letter-spacing: -.045em; max-width: 22ch; margin-bottom: 30px; }
.s:not(.hero) .col p { font-size: clamp(1rem, 1.15vw, 1.15rem); line-height: 1.55; max-width: 32rem; color: var(--ink-2); }
.hero-side .lede { font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.5; max-width: 32rem; }
.n { font-size: .62rem; letter-spacing: .3em; margin-bottom: 26px; }
.figs b { font-weight: 400; }
.figs li { font-size: .78rem; letter-spacing: .01em; }
@media (max-width: 760px) {
  .figs li { font-size: 1rem !important; }
  .s:not(.hero) .col h2 { font-size: clamp(1.9rem, 8.4vw, 2.7rem); max-width: none; margin-bottom: 18px; }
}
.s.person .col p:not(.tm-role) { font-size: clamp(1rem, 1.15vw, 1.1rem); line-height: 1.55; }
.fetch { font-size: .76rem; }
.menu-list a span { font-weight: 500; }
.foot-word { font-weight: 500; }
/* The capsule flight is read, not flown through: the hero's runway is three
   screens long, so the model passes slowly enough to follow every node. */
.hero { padding-bottom: 320vh; }
@media (max-width: 760px) { .hero { padding-bottom: 200vh; } }
@media (max-width: 430px) {
  .mast .pill { padding: 0 14px; font-size: .8rem; height: 40px; gap: 8px; }
  .mast-nav { gap: 8px; }
  .brand { font-size: 1rem; }
}

/* Keep the download pill padded in both the resting and scrolled masthead. */
.mast-nav a.pill.dark { padding-inline: 1rem; flex-shrink: 0; }
@media (max-width: 360px) {
  .mast { padding-inline: 1rem; }
  .mast-nav { gap: 6px; }
  .mast .mast-nav .menu-btn { padding-inline: .625rem; }
}

/* The reader, refined: words arrive one by one, the index carries a rail. */
.fly-sent span { display: inline-block; opacity: 0; transform: translateY(8px); animation: wordIn .5s var(--expo) forwards; animation-delay: calc(var(--w) * 38ms); }
@keyframes wordIn { to { opacity: 1; transform: none; } }
.fly-sent.in { animation: none; }
.fly-index { position: relative; padding-left: 16px; }
.fly-index::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: rgba(10,11,13,.14); }
.fly-index::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: var(--prog, 0%); background: var(--accent); transition: height .5s var(--expo); }
.fly-name { color: var(--ink); }
.fly-hud.cyan .fly-name { color: #0aa5a5; }
.fly-text .fly-kind::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 10px; vertical-align: middle; }
.fly-hud { align-items: end; padding-bottom: 9vh; }
.fly-index { align-self: start; margin-top: 14vh; }
.fly-text { max-width: 30rem; }
@media (max-width: 900px) { .fly-hud { padding-bottom: 16vh; } }

/* Runways only where something flies. */
.s:not(.s-flight):not(.hero) { padding-bottom: 20vh; }
.s.s-flight:not(.hero) { padding-bottom: 100vh; }
@media (max-width: 760px) { .s:not(.s-flight):not(.hero) { padding-bottom: 14vh; } .s.s-flight:not(.hero) { padding-bottom: 58vh; } }

/* The dark reader: the shield flight is flown on a dark tube. Same
   layout, white ink; the index has twelve groups, so it scrolls in place. */
.fly-hud.dark { color: #fff; }
.fly-hud.dark .fly-item { color: rgba(255,255,255,.34); }
.fly-hud.dark .fly-item.done { color: rgba(255,255,255,.72); }
.fly-hud.dark .fly-item.now { color: #fff; }
.fly-hud.dark .fly-item small { color: rgba(255,255,255,.45); }
.fly-hud.dark .fly-kind { color: #8fa0ff; }
.fly-hud.dark .fly-sent { color: rgba(255,255,255,.78); }
.fly-hud.dark .fly-tail { color: rgba(255,255,255,.8); }
.fly-hud.dark .fly-tail p { border-top-color: rgba(255,255,255,.2); }
.fly-hud.dark.cyan .fly-text .fly-kind, .fly-hud.dark.cyan .fly-name { color: var(--cyan); }
.fly-hud.dark .fly-index { gap: 10px; font-size: .62rem; max-height: 66vh; overflow: hidden; -webkit-mask: linear-gradient(transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(transparent, #000 8%, #000 92%, transparent); }
/* The shield flight carries thirty-five nodes: a long runway, read slowly. */
#shield.s-flight { padding-bottom: 440vh; }
@media (max-width: 760px) { #shield.s-flight { padding-bottom: 300vh; } }
.fly-list { transition: transform .8s var(--expo); will-change: transform; }

/* The dark reader, composed: the sentence sits on a scrim so it reads over
   the rails, the name is set in the sans, the type is white. */
.fly-hud.dark .fly-name, .fly-hud.dark .fly-text .fly-kind { color: #fff; }
.fly-hud.dark .fly-name { font-family: var(--sans); font-weight: 500; letter-spacing: -.03em; font-size: clamp(1.5rem, 2.6vw, 2.5rem); }
.fly-hud.dark .fly-text { position: relative; max-width: 32rem; padding: 26px 28px 24px; border-radius: 22px; background: rgba(6, 8, 13, .58); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.fly-hud.dark .fly-sent { color: rgba(255,255,255,.86); font-size: clamp(1rem, 1.35vw, 1.25rem); }
.fly-hud.dark .fly-index::before { background: rgba(255,255,255,.16); }
.fly-hud.dark .fly-index::after { background: var(--cyan); }
.fly-hud.dark .fly-item.now::before { background: var(--cyan); box-shadow: 0 0 0 3px rgba(102,255,255,.18); }
.fly-hud.dark .fly-tail p { background: rgba(6, 8, 13, .58); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 0; border-radius: 16px; padding: 14px 16px; }
.fly-src { font-family: var(--mono); font-size: .74rem; letter-spacing: .02em; color: var(--ink-3); margin: -6px 0 14px; }
.fly-hud.dark .fly-src { color: rgba(255,255,255,.55); }
.fly-src[hidden] { display: none; }

/* ---- contributors: three in one card, pseudonymous by design ---- */
.s.contrib .card-contrib { height: auto; min-height: 0; background: var(--card); padding: clamp(20px, 2.4vw, 32px); }
.contrib-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.ctb { display: grid; gap: 18px; align-content: start; }
.ctb .portrait { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 1; border-radius: 18px; overflow: hidden; opacity: 1; transform: none; mask-image: none; -webkit-mask-image: none; }
.ctb .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.08) brightness(.95); }
.contrib-text { color: #fff; display: grid; gap: 8px; padding: 0 4px; }
.contrib-kind { font-family: var(--mono); font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.contrib-text h3 { font-weight: 500; font-size: 1.35rem; letter-spacing: -.02em; }
.contrib-text p:not(.contrib-kind) { color: rgba(255,255,255,.66); font-size: .9rem; line-height: 1.5; }
@media (max-width: 760px) {
  .contrib-grid { grid-template-columns: minmax(0, 1fr); }
  .contrib { grid-template-columns: 96px minmax(0, 1fr); align-items: start; }
  .ctb .portrait { border-radius: 14px; }
}
.card-contrib .card-label { top: 20px; left: 20px; }
.s.contrib .card-contrib { padding-top: 64px; }
/* The transfer tunnel says its sentences in the world; the reader keeps only the index and the tail. */
.fly-hud.dark .fly-text { display: none; }

/* ---- partners: a dark band, two rows of logos in motion ---- */
.s.partners .card-partners { height: auto; min-height: 0; background: var(--card); padding: clamp(28px, 4vw, 56px) 0; overflow: hidden; position: relative; }
.pt-band { display: grid; gap: clamp(18px, 2.4vw, 34px); -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.pt-track { display: flex; gap: clamp(18px, 2.4vw, 34px); width: max-content; animation: ptl 42s linear infinite; }
.pt-track.r { animation-name: ptr; animation-duration: 50s; }
.pt-track:hover { animation-play-state: paused; }
@keyframes ptl { to { transform: translateX(-33.333%); } }
@keyframes ptr { from { transform: translateX(-33.333%); } to { transform: none; } }
.pt { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 18px; align-items: center; width: clamp(260px, 22vw, 340px); padding: 18px 22px; border-radius: 20px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); color: #fff; transition: background .4s var(--expo), transform .5s var(--expo), box-shadow .4s; }
.pt:hover { background: rgba(255,255,255,.08); transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.pt-logo { grid-row: 1 / 3; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.06); }
.pt-logo img { max-width: 48px; max-height: 40px; width: auto; height: auto; filter: grayscale(1) brightness(1.25); opacity: .85; transition: filter .5s, opacity .5s; }
.pt:hover .pt-logo img { filter: none; opacity: 1; }
.pt-logo.pt-primer img { filter: brightness(0) invert(1); max-width: 52px; }
.pt:hover .pt-logo.pt-primer img { filter: brightness(0) invert(1); }
.pt-logo.pt-cellframe img { max-width: 54px; }
.pt-name { font-weight: 500; font-size: 1rem; letter-spacing: -.01em; align-self: end; }
.pt-kind { font-family: var(--mono); font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.48); align-self: start; margin-top: 4px; }
/* a slow light that crosses the band */
.pt-sweep { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(102,255,255,.07) 50%, transparent 70%); background-size: 300% 100%; animation: ptsweep 9s var(--ease) infinite; }
@keyframes ptsweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (max-width: 760px) {
  .pt-track.r { display: none; }
  .pt { width: 240px; padding: 14px 16px; column-gap: 14px; }
  .pt-logo { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .pt-track, .pt-sweep { animation: none; } }

/* logos read at their own width: the lockup first, the name under it */
.pt { grid-template-columns: 1fr; grid-template-rows: auto auto auto; row-gap: 2px; padding: 22px 24px 20px; }
.pt-logo { grid-row: auto; width: auto; height: 54px; justify-content: start; justify-items: start; background: none; border-radius: 0; margin-bottom: 12px; }
.pt-logo img { max-height: 36px; max-width: 170px; }
.pt-logo.pt-hotspotty img { max-height: 44px; }
.pt-logo.pt-cellframe img { max-width: 176px; max-height: 40px; }
.pt-logo.pt-primer img { max-width: 176px; max-height: 30px; }
.pt-logo.pt-maxko img { max-height: 46px; }
.pt-name { align-self: auto; }
.pt-kind { align-self: auto; margin-top: 2px; }
.pt-logo.pt-maxko img { filter: none; opacity: .92; }

/* The menu in two columns: chapters and pages. Scrolls when the screen is short. */
.menu { align-content: start; padding-top: 120px; padding-bottom: 40px; overflow-y: auto; }
.menu-inner { grid-template-columns: minmax(0, 1.9fr) minmax(0, .8fr); align-items: start; }
.menu-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 clamp(24px, 4vw, 64px); align-items: start; }
.menu-cols .menu-k { margin-bottom: 8px; }
.menu-list a span { font-size: clamp(1.5rem, 3.4vh, 2.6rem); }
.menu-list a { padding: clamp(8px, 1.1vh, 14px) 0; }
@media (max-width: 900px) { .menu-cols { grid-template-columns: minmax(0, 1fr); } .menu { padding-top: 100px; } }
