/* =====================================================================
   Ludia Labs: design system
   Two registers. Light: very light grey reading surfaces, white cards,
   blended studio photos. Night (2026-10-04): the cinematic bookends, a
   moving field on the home hero, the closing band and the footer, in
   graphite with Ludia-green light. Segoe UI ("Ludia Sans", Selawik where
   Segoe UI isn't installed), light weights for display; Source Serif 4
   italic only for the accent word; the system monospace for lab labels.
   Hairlines and square cards; pill buttons. Change a value here, never in
   a page.
   ===================================================================== */

/* ---------- 0 · Fonts ---------- */
@font-face { font-family: "Ludia Sans"; font-weight: 300; font-style: normal; font-display: swap;
  src: local("Segoe UI Light"), local("SegoeUI-Light"), url("/assets/fonts/selawik-regular.woff2") format("woff2"); }
@font-face { font-family: "Ludia Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: local("Segoe UI"), local("SegoeUI"), url("/assets/fonts/selawik-regular.woff2") format("woff2"); }
@font-face { font-family: "Ludia Sans"; font-weight: 500 600; font-style: normal; font-display: swap;
  src: local("Segoe UI Semibold"), local("SegoeUI-Semibold"), url("/assets/fonts/selawik-semibold.woff2") format("woff2"); }
@font-face { font-family: "Labs Serif"; font-style: italic; font-weight: 300 400; font-display: swap;
  src: url("/assets/fonts/source-serif-4-italic-latin.woff2") format("woff2"); }  /* Source Serif 4 Italic, Ludia brand kit, SIL OFL */
@font-face { font-family: "Ludia Sans"; font-weight: 700; font-style: normal; font-display: swap;
  src: local("Segoe UI Bold"), local("SegoeUI-Bold"), url("/assets/fonts/selawik-bold.woff2") format("woff2"); }

/* ---------- 1 · Tokens ---------- */
:root {
  /* Ground and ink: light register */
  --bone: #F4F5F5;     /* very light grey: the page */
  --bone-2: #EDEFEF;   /* alternate sections */
  --ink: #121614;
  --muted: #4A504D;
  --faint: #5A605D;
  --line: #E0E3E2;
  --line-2: #CDD2D0;
  --card: #FFFFFF;

  /* Statement register (heroes, bands, CTA): a slightly deeper light grey. The class is still .dark for
     history. Photos are multiplied onto this ground, so their white backdrops become this exact grey. */
  --night: #EAECEC;
  --night-2: #FFFFFF;
  --night-3: #F7F8F8;
  --forest: #1F3127;
  --ink-d: #121614;
  --muted-d: #4A504D;
  --faint-d: #565C59;
  --line-d: rgba(18, 22, 20, .12);
  --line-d2: rgba(18, 22, 20, .24);

  /* Green. #739E42 is the logo green. Type below ~19px on light uses --green-ink;
     large type uses --green-display; text on forest uses --lime. */
  --green: #739E42;
  --green-ink: #3D6118;      /* small green text: 6.1:1 on the grey band, 6.6:1 on the page */
  --green-display: #557F2B;  /* large green type: 4.0:1 on the grey band, 4.3:1 on the page */
  --lime: #B5DD7A;           /* light green, only on forest (the Fig. 1 base row) */
  --fill: #739E42;           /* green fills: dots, rules, progress, tags (ink on it: 6.3:1) */

  /* Night register: the home hero, the closing band, the footer, the menu. All text pairs pass AA on --n-1. */
  --n-0: #070A09;      /* the deepest ground (hero) */
  --n-1: #0B0F0E;      /* night bands */
  --n-2: #131917;      /* raised surfaces on night */
  --n-ink: #EDF1EE;    /* 17:1 on --n-1 */
  --n-muted: #A8B2AD;  /* 8.9:1 */
  --n-faint: #86918C;  /* 5.8:1 */
  --n-line: rgba(226, 236, 230, .12);
  --n-line-2: rgba(226, 236, 230, .24);
  --n-lime: #B5DD7A;   /* accent words and primary buttons on night: 12:1 */
  --n-glow: #8FD45A;   /* small lights only (dots, the scroll cue) */

  /* Helios mechanism colours (same as the decks and ludiahelios.com) */
  --agent: #6CA72C;
  --workflow: #0889B0;
  --process: #445E51;

  /* Type */
  --sans: "Ludia Sans", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --serif: "Labs Serif", "Source Serif 4", Georgia, serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-display: clamp(2.75rem, 1.55rem + 5.2vw, 6.75rem);
  --fs-h1: clamp(2.5rem, 1.5rem + 4.2vw, 5.5rem);
  --fs-h2: clamp(2rem, 1.35rem + 2.7vw, 3.875rem);
  --fs-h3: clamp(1.375rem, 1.2rem + .75vw, 1.875rem);
  --fs-statement: clamp(1.5rem, 1.05rem + 1.8vw, 2.625rem);
  --fs-lead: clamp(1.125rem, 1.04rem + .38vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-read: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  --fs-small: .9375rem;
  --fs-mono: .75rem;

  /* Rhythm */
  --wrap: 1360px;
  --measure: 66ch;
  --gut: max(clamp(1rem, .4rem + 2.6vw, 3rem), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --sec: clamp(4.5rem, 3rem + 6vw, 9rem);
  --bar-h: 34px;
  --hdr-h: 68px;

  /* Shape and motion */
  --r: 2px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-std: cubic-bezier(.65, 0, .35, 1);
  --fast: 200ms;
  --base: 320ms;
  --slow: 700ms;
  color-scheme: light;
}

/* ---------- 2 · Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html.is-ready { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bone); color: var(--ink);
  font-family: var(--sans); font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg, picture, video { display: block; max-width: 100%; }
/* Media frames: the <picture> fills its frame so the <img> can object-fit: cover. */
:where(.card__media, .prod__media) picture { width: 100%; height: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: #CFE2A6; color: var(--ink); }
:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 3px; }

.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--forest); color: var(--bone);
  padding: .75rem 1rem; font-weight: 600; }
.skip:focus { top: 1rem; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.card__media .chip { z-index: 2; }
/* Blended photos. Each frame is painted in its section's grey and the photo is multiplied onto it,
   so the photo's white backdrop becomes that grey and only the object remains. */
:where(.prod__media) { background: var(--bone); }
:where(.dark .prod__media) { background: var(--night); }
.sec--bone2 .prod__media { background: var(--bone-2); }
:where(.card__media, .prod__media) img { mix-blend-mode: multiply; }

/* ---------- 3 · Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sec { position: relative; padding-block: var(--sec); }
.sec--bone2 { background: var(--bone-2); }
.sec + .sec:not(.dark):not(.sec--bone2) { border-top: 1px solid var(--line); }
.dark { background: var(--night); color: var(--ink-d); }
.dark--forest { background: var(--night); }
.grid-12 { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 1rem + 3vw, 4.5rem); }
@media (min-width: 1000px) {
  .grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .c-5 { grid-column: span 5; } .c-6 { grid-column: span 6; } .c-7 { grid-column: span 7; }
  .c-4 { grid-column: span 4; } .c-8 { grid-column: span 8; }
}

/* Drafting grid: a 64px graph-paper field, masked so it fades out. */
.grid-bg { position: relative; isolation: isolate; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-c, rgba(31,49,39,.06)) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-c, rgba(31,49,39,.06)) 1px, transparent 1px);
  background-size: 64px 64px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at var(--grid-x, 30%) var(--grid-y, 40%), #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at var(--grid-x, 30%) var(--grid-y, 40%), #000 10%, transparent 75%);
}

/* Registration marks: thin crosshairs in two corners, the drafting-table tell. */
.marks { position: relative; }
.marks::before, .marks::after {
  content: ""; position: absolute; width: 15px; height: 15px; pointer-events: none;
  background:
    linear-gradient(var(--mark-c, var(--line-d2)), var(--mark-c, var(--line-d2))) center / 1px 100% no-repeat,
    linear-gradient(var(--mark-c, var(--line-d2)), var(--mark-c, var(--line-d2))) center / 100% 1px no-repeat;
}
.marks::before { top: -8px; left: -8px; }
.marks::after { bottom: -8px; right: -8px; }
.marks--light { --mark-c: var(--line-2); }

/* ---------- 4 · Type ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: .75rem;
  font: 500 var(--fs-mono)/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.kicker--plain::before { display: none; }
.dark .kicker { color: var(--faint-d); }
.kicker b { font-weight: 500; color: var(--green-ink); }
.dark .kicker b { color: var(--green-ink); }

.h-display, .h1, .h2, .h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
.h-display { font-size: var(--fs-display); font-weight: 400; letter-spacing: -.045em; line-height: .98; }
.h1 { font-size: var(--fs-h1); font-weight: 400; letter-spacing: -.04em; }
.h2 { font-size: var(--fs-h2); font-weight: 400; letter-spacing: -.035em; line-height: 1.04; }
.h3 { font-size: var(--fs-h3); letter-spacing: -.02em; line-height: 1.15; }
/* The accent word: Fraunces italic, light, in green. */
.acc { font-family: var(--serif); font-style: italic; font-weight: 300; letter-spacing: -.02em;
  font-variation-settings: "opsz" 144; color: var(--green-display); font-size: 1.04em; }
.dark .acc { color: var(--green-display); }
.dot { color: var(--green-display); }
.dark .dot { color: var(--green-display); }

.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 46ch; text-wrap: pretty; }
.dark .lead { color: var(--muted-d); }
.lead .v { color: var(--ink); font-weight: 600; }
.dark .lead .v { color: var(--green-ink); font-weight: 600; }
.prose { font-size: var(--fs-read); line-height: 1.72; color: var(--muted); max-width: var(--measure); }
.prose p + p { margin-top: 1.15em; }
.prose strong { color: var(--ink); font-weight: 600; }
.dark .prose { color: var(--muted-d); }
.dark .prose strong { color: var(--ink-d); }
.mono { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- 5 · Buttons and links ---------- */
.btns { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.btn {
  display: inline-flex; align-items: center; gap: .65rem; min-height: 50px; padding: .9rem 1.6rem;
  font: 600 .9375rem/1.1 var(--sans); letter-spacing: -.005em; border: 1px solid transparent; border-radius: 999px;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.btn .arr, .link .arr { display: inline-block; transition: transform var(--fast) var(--ease); }
.btn:hover .arr, .btn:focus-visible .arr, .link:hover .arr, .link:focus-visible .arr { transform: translateX(5px); }
.btn:hover .arr--out, .link:hover .arr--out { transform: translate(3px, -3px); }
.btn--primary { background: var(--forest); color: var(--bone); }
.btn--primary:hover { background: #2E4637; }
.btn--ink { background: var(--forest); color: var(--bone); }
.btn--ink:hover { background: #2E4637; }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bone); }
.dark .btn--ghost { border-color: var(--line-d2); color: var(--ink-d); }
.dark .btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bone); }
.link {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--green-ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px;
  transition: background-size var(--base) var(--ease), color var(--fast);
}
.link:hover, .link:focus-visible { background-size: 100% 1px; }
.dark .link { color: var(--green-ink); }
.prose a, .inline-link { color: inherit; text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover, .inline-link:hover { color: var(--green-ink); text-decoration-thickness: 2px; }
.dark .prose a:hover { color: var(--green-ink); }

/* Status chip */
.chip {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .6rem; border: 1px solid var(--line-2);
  font: 500 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--chip-c, var(--faint)); }
.chip--live { --chip-c: var(--agent); }
.chip--prod { --chip-c: var(--green); }
.chip--avail { --chip-c: var(--workflow); }
.chip--draft { --chip-c: #C0CE3A; }
.chip--soon { --chip-c: transparent; }
.chip--soon::before { border: 1px solid var(--faint); }
.dark .chip { border-color: var(--line-d2); color: var(--muted-d); }
.dark .chip--live, .dark .chip--prod { --chip-c: var(--fill); }
.dark .chip--avail { --chip-c: var(--workflow); }

/* ---------- 6 · Family bar (One Ludia; shared with ludiahelios.com) ---------- */
/* Labs keeps the shared bar's names, order and marking; its ground follows the Labs dark register. */
/* Labs keeps the shared bar's names, order and marking; its ground follows the Labs light-grey register. */
.ludia-family { background: #E6E9E8; color: var(--muted); font-size: 12px; line-height: 1.2; position: relative; z-index: 61; }
.ludia-family__wrap { max-width: 1440px; margin: 0 auto; padding: 0 max(clamp(20px, 4vw, 64px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  display: flex; align-items: center; gap: 24px; min-height: var(--bar-h); overflow-x: auto; scrollbar-width: none; }
.ludia-family__wrap::-webkit-scrollbar { display: none; }
.ludia-family__lbl { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--faint); white-space: nowrap; }
.ludia-family a { display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap; color: var(--muted);
  text-decoration: none; padding: 8px 0 6px; border-bottom: 2px solid transparent; }
.ludia-family a b { color: var(--ink); font-weight: 650; }
.ludia-family a span { color: var(--faint); }
.ludia-family a:hover b, .ludia-family a:focus-visible b { color: var(--green-ink); }
.ludia-family a[aria-current="page"] { border-bottom-color: var(--fill); }
.ludia-family a[aria-current="page"] b { color: var(--green-ink); }
@media (max-width: 980px) { .ludia-family a span, .ludia-family__lbl { display: none; } .ludia-family__wrap { gap: 18px; } }
.page-home .ludia-family { background: var(--n-0); color: var(--n-muted); border-bottom: 1px solid var(--n-line); }
.page-home .ludia-family__lbl, .page-home .ludia-family a span { color: var(--n-faint); }
.page-home .ludia-family a { color: var(--n-muted); }
.page-home .ludia-family a b { color: var(--n-ink); }
.page-home .ludia-family a:hover b, .page-home .ludia-family a[aria-current="page"] b { color: var(--n-lime); }

/* ---------- 7 · Header ---------- */
.hdr { position: sticky; top: 0; z-index: 60; height: var(--hdr-h); color: var(--ink-d);
  background: rgba(244, 245, 245, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); transition: background-color 400ms var(--ease), border-color 400ms var(--ease), color 400ms var(--ease); }
.brand .brand__w { display: none; }
/* Night header: transparent over the home hero until the hero scrolls away (labs.js sets .is-solid), and
   dark whenever the phone menu is open. Without JS the header stays the light one. */
.js .hdr--over:not(.is-solid), body.menu-open .hdr { background: linear-gradient(to bottom, rgba(7,10,9,.55), rgba(7,10,9,0)); border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--n-ink); }
body.menu-open .hdr { background: var(--n-1); border-bottom-color: var(--n-line); }
:is(.js .hdr--over:not(.is-solid), body.menu-open .hdr) .brand__k { display: none; }
:is(.js .hdr--over:not(.is-solid), body.menu-open .hdr) .brand__w { display: block; }
:is(.js .hdr--over:not(.is-solid), body.menu-open .hdr) .brand__rule { background: var(--n-line-2); }
:is(.js .hdr--over:not(.is-solid), body.menu-open .hdr) .brand__labs { color: var(--n-lime); }
:is(.js .hdr--over:not(.is-solid), body.menu-open .hdr) .nav a { color: rgba(237, 241, 238, .78); }
:is(.js .hdr--over:not(.is-solid), body.menu-open .hdr) .nav a:hover, :is(.js .hdr--over:not(.is-solid), body.menu-open .hdr) .nav a[aria-current="page"] { color: var(--n-ink); }
:is(.js .hdr--over:not(.is-solid), body.menu-open .hdr) .nav .ext { color: var(--n-faint); }
:is(.js .hdr--over:not(.is-solid), body.menu-open .hdr) .btn--ghost { color: var(--n-ink); border-color: var(--n-line-2); }
:is(.js .hdr--over:not(.is-solid), body.menu-open .hdr) .btn--ghost:hover { color: var(--n-0); background: var(--n-lime); border-color: var(--n-lime); }
:is(.js .hdr--over:not(.is-solid), body.menu-open .hdr) .menu-btn { color: var(--n-ink); }
.hdr__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .9rem; }
.brand img { height: 30px; width: auto; }
.brand__rule { width: 1px; height: 26px; background: var(--line-d2); }
.brand__labs { font: italic 400 1.5rem/1 var(--serif); letter-spacing: -.01em; color: var(--green-display); font-variation-settings: "opsz" 72; }
.nav { display: none; align-items: center; gap: 2rem; }
.nav a { position: relative; font-size: .9375rem; color: var(--muted-d); padding-block: .5rem; transition: color var(--fast); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink-d); }
.nav .ext, .ftr .ext { font-size: .8em; color: var(--faint); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--fill); }
.hdr__cta { display: none; }
.hdr .btn { min-height: 40px; padding: .6rem 1rem; font-size: .875rem; }
.hdr .btn--ghost { color: var(--ink); border-color: var(--line-2); }
.hdr .btn--ghost:hover { color: var(--bone); border-color: var(--forest); background: var(--forest); }
.menu-btn { display: inline-flex; align-items: center; gap: .75rem; font: 500 var(--fs-mono)/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-d); padding: .25rem 0; min-height: 44px; }
.menu-btn i { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--fill); color: var(--n-0); }
.menu-btn i::before, .menu-btn i::after { left: 13px !important; right: 13px !important; }
.menu-btn i::before { top: 17px !important; } .menu-btn i::after { bottom: 17px !important; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform var(--base) var(--ease); }
.menu-btn i::before { top: 0; } .menu-btn i::after { bottom: 0; }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(4.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: translateY(-4.25px) rotate(-45deg); }
@media (min-width: 940px) { .nav, .hdr__cta { display: flex; } .menu-btn { display: none; } }
.mnav { position: fixed; inset: var(--hdr-h) 0 0 0; z-index: 59; background: var(--n-1); color: var(--n-ink);
  padding: 2rem var(--gut) 3rem; display: flex; flex-direction: column; gap: .25rem; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity var(--base) var(--ease), transform var(--base) var(--ease), visibility 0s linear var(--base); }
.mnav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mnav a { display: flex; justify-content: space-between; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--n-line);
  font-size: clamp(1.75rem, 1.2rem + 3vw, 2.5rem); font-weight: 300; letter-spacing: -.03em; }
.mnav a > span:last-child { font: 500 var(--fs-mono)/1 var(--mono); letter-spacing: .14em; color: var(--n-faint); }
.mnav .ext { font-size: .55em; color: var(--n-faint); vertical-align: super; }
.mnav a[aria-current="page"] { color: var(--n-lime); }
.mnav a.btn--primary { background: var(--n-lime); color: var(--n-0); }
.mnav .btn { margin-top: 2rem; align-self: flex-start; }
.mnav a.btn { display: inline-flex; justify-content: center; gap: .65rem; min-height: 52px; padding: .9rem 1.4rem; border-bottom: 0;
  font: 600 1rem/1.1 var(--sans); letter-spacing: -.005em; }
.mnav a.btn > span:last-child { font: inherit; letter-spacing: 0; color: inherit; }
@media (min-width: 940px) { .mnav { display: none; } }
body.menu-open { overflow: hidden; }

/* ---------- 8 · Heroes ---------- */
.hero { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
@media (min-width: 900px) {
  /* --cut keeps the words in the left half, so the brighter side of the field stays open on the right. */
  .hero { --cut: calc((100vw + min(100vw, var(--wrap))) / 2 - var(--gut) - 54vw + 2rem);
    min-height: max(640px, calc(100svh - var(--bar-h) - var(--hdr-h))); padding-top: clamp(3.5rem, 2rem + 5vw, 6rem); }
  .hero--page { min-height: max(580px, min(80svh, 840px)); }
  .hero__in { padding-right: calc(var(--gut) + var(--cut)); }
  .hero__spec, .hero__index { margin-right: var(--cut); }
  .hero .h-display { font-size: clamp(2.75rem, 1.3rem + 3.6vw, 5.5rem); }
}
.hero__in { position: relative; z-index: 2; padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.hero__kicker { margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.hero h1 { max-width: 15ch; }
.hero--page h1 { max-width: 14ch; }
.hero .lead { margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); max-width: 50ch; }
/* "Written by all of us at Ludia": the thesis byline. */
.by { position: relative; max-width: 52ch; margin-top: 1.25rem; padding-left: 2.6rem; font-size: 1rem; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.by::before { content: ""; position: absolute; left: 0; top: .72em; width: 1.75rem; height: 2px; background: var(--fill); }
.by b { color: var(--ink); font-weight: 600; }
.hero__by { margin-top: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.hero .btns { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.hero__spec { position: relative; z-index: 2; border-top: 1px solid var(--line-d); }
.hero__spec ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; }
.hero__spec li { overflow-wrap: anywhere; }
.hero__spec li { padding: 1rem 0; font: 500 var(--fs-mono)/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint-d); }
.hero__spec li b { display: block; color: var(--ink-d); font-weight: 500; margin-bottom: .2rem; }
@media (min-width: 1700px) { .hero__spec ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero__spec li + li { padding-left: 1.5rem; border-left: 1px solid var(--line-d); } }
.hero__spec a { display: inline-flex; gap: .5rem; align-items: center; min-height: 24px; color: var(--ink-d); }
.hero__spec a:hover { color: var(--green-ink); }

/* Chapter / product index inside a page hero */
.hero__index { position: relative; z-index: 2; border-top: 1px solid var(--line-d); }
.hero__index ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero__index ol { column-gap: 1.5rem; }
@media (min-width: 900px) { .hero__index ol { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); } }
.hero__index a { display: block; height: 100%; padding: 1rem 0 1.1rem; border-bottom: 1px solid var(--line-d); color: var(--muted-d); transition: color var(--fast); }
.hero__index a span { display: block; font: 500 var(--fs-mono)/1 var(--mono); letter-spacing: .14em; color: var(--faint-d); margin-bottom: .55rem; }
.hero__index a:hover { color: var(--ink-d); }
.hero__index a:hover span { color: var(--green-ink); }

/* ---------- 9 · Section heads ---------- */
.shead { display: grid; gap: 1.5rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
@media (min-width: 1000px) { .shead--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 4rem; } }
.shead .h2 { max-width: 18ch; }
.shead p { max-width: 52ch; }

/* ---------- 10 · Fig. 1: the layer stack (what holds, what gets rewritten) ---------- */
.fig { margin: 0; }
.fig__cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1rem; }
.stack { display: grid; gap: .6rem; padding: clamp(1rem, .6rem + 1.5vw, 1.75rem); border: 1px solid var(--line); background: var(--card); }
.stack__row { --x: 0; position: relative; display: grid; grid-template-columns: 7.5rem 1fr auto; align-items: center; gap: .25rem 1.25rem;
  padding: 1.05rem 1.15rem; margin-left: calc(var(--x) * 10px); margin-right: calc(var(--x) * -10px + 40px);
  border: 1px dashed var(--line-2); background: rgba(244,245,245,.7);
  transition: border-color var(--fast), background-color var(--fast), transform var(--base) var(--ease); }
.stack__row:nth-child(1) { --x: 4; } .stack__row:nth-child(2) { --x: 3; } .stack__row:nth-child(3) { --x: 2; } .stack__row:nth-child(4) { --x: 1; }
@media (max-width: 639px) {
  .stack__row { grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .75rem; padding: .85rem .9rem; margin-left: calc(var(--x) * 4px); margin-right: 0; }
  .stack__k { grid-column: 1 / -1; }
  .stack__row--base { margin: .4rem 0 0; }
}
a.stack__row:hover, a.stack__row:focus-visible { border-style: solid; border-color: var(--green); background: #EEF3E2; }
.stack__k { font: 500 var(--fs-mono)/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.stack__v { font: italic 300 clamp(1.5rem, 1.3rem + .7vw, 1.85rem)/1 var(--serif); color: var(--green-display); font-variation-settings: "opsz" 144; }
.stack__d { grid-column: 1 / -1; font-size: .9375rem; color: var(--muted); line-height: 1.45; }
@media (min-width: 640px) { .stack__d { grid-column: 2 / 3; } }
.stack__go { font: 500 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
a.stack__row:hover .stack__go { color: var(--green-ink); }
.stack__row--base { margin: .4rem 0 0; border: 0; background: var(--forest); color: #F4F4EF; padding-block: 1.35rem; }
.stack__row--base .stack__k { color: #B9C7BC; }
.stack__row--base .stack__v { color: #B5DD7A; font-weight: 400; }
.stack__row--base .stack__d { color: #C9D3CC; }
.stack__row--base .stack__go, .stack__row--base .stack__go a { color: #C9D3CC; }
.stack__go a { display: inline-block; padding: .45rem 0; }
.ms { display: inline-flex; align-items: center; gap: .45rem; font-size: .8125rem; color: inherit; white-space: nowrap; }
.ms img { width: 18px; height: 18px; flex: none; }
.stack__ms { display: flex; flex-wrap: wrap; gap: .5rem 1rem; grid-column: 1 / -1; padding-top: .75rem; margin-top: .35rem; border-top: 1px solid rgba(244,244,239,.14); font-size: .8125rem; color: #C9D3CC; }

/* ---------- 11 · Product cards ---------- */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); transition: border-color var(--fast); }
.card:hover, .card:focus-within { border-color: var(--ink); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--card); border-bottom: 1px solid var(--line); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__media .chip { position: absolute; top: 1rem; left: 1rem; background: rgba(255,255,255,.85); border-color: var(--line-2); color: var(--muted); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.card__media .chip--live, .card__media .chip--prod { --chip-c: var(--fill); }
.card__media .chip--avail { --chip-c: var(--workflow); }
.card__body { display: flex; flex-direction: column; gap: 1rem; flex: 1; padding: clamp(1.25rem, 1rem + 1vw, 2rem); }
.card__name { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; }
.card__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card p { color: var(--muted); font-size: 1rem; }
.card__proof { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 1rem; }
.card__proof b { white-space: nowrap; font-size: clamp(1.75rem, 1.45rem + 1vw, 2.25rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.card__proof span { font: 500 .75rem/1.35 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.card .link { position: relative; z-index: 2; align-self: flex-start; }

/* ---------- 12 · Feature band with photo (Helios) ---------- */
.band .h2 { max-width: 17ch; }

.split { display: grid; gap: 1px; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); background: var(--line-d); border: 1px solid var(--line-d); }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.split > div { padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); background: var(--night-2); display: flex; flex-direction: column; gap: 1rem; }
.split h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.split p { color: var(--muted-d); font-size: 1rem; }
.split .tags { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Inline stats */
.stats { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.stats > div { padding: 1.25rem 1rem 0 0; min-width: 0; overflow-wrap: anywhere; }
.stats > div + div { padding-left: 1rem; border-left: 1px solid var(--line); }
.stats b { display: block; font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: .6rem; font: 500 .75rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.dark .stats, .dark .stats > div + div { border-color: var(--line-d); }
.dark .stats span { color: var(--faint-d); }
.stats--mini b { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }

/* Helios three stages */
.stages { display: grid; gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); counter-reset: st; }
@media (min-width: 900px) { .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stage { padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); background: var(--night-2); display: grid; gap: .9rem; align-content: start; }
.stage__n { font: 600 clamp(3rem, 2.4rem + 2vw, 4.5rem)/.9 var(--sans); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px var(--green); }
.stage h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: -.02em; }
.stage p { color: var(--muted-d); font-size: 1rem; }
.stage ol { list-style: none; padding: .9rem 0 0; margin: 0; border-top: 1px solid var(--line-d); display: grid; gap: .45rem; }
.stage li { font-size: .875rem; color: var(--ink-d); display: flex; gap: .65rem; }
.stage li b { font: 600 .875rem/1.5 var(--sans); color: var(--green-ink); min-width: 1ch; }
.outcome { margin-top: 1.5rem; font: italic 300 clamp(1.375rem, 1.1rem + 1vw, 1.875rem)/1.3 var(--serif); color: var(--ink-d); font-variation-settings: "opsz" 144; }
.outcome::before { content: ""; display: block; width: 48px; height: 2px; background: var(--fill); margin-bottom: 1rem; }

/* ---------- 13 · Lab notes ---------- */
.notes { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .notes--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.note { position: relative; display: flex; flex-direction: column; gap: .9rem; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background-color: var(--card); border: 1px solid var(--line);
  background-image: linear-gradient(to right, rgba(10,10,10,.035) 1px, transparent 1px), linear-gradient(to bottom, rgba(10,10,10,.035) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px; }
.note__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.note__id { font: 500 var(--fs-mono)/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.note__id b { color: var(--ink); font-weight: 500; }
.note h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.note p { color: var(--muted); font-size: .96875rem; line-height: 1.6; }
.note--compact h3 { font-size: 1.1875rem; }
.note--compact p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 14 · Statement (the Microsoft line) ---------- */
.statement { font-size: var(--fs-statement); line-height: 1.36; letter-spacing: -.025em; font-weight: 400; max-width: 32ch; text-wrap: pretty; }
.statement em { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--green-display); font-variation-settings: "opsz" 144; }
.dark .statement em { color: var(--green-display); }

.creds { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .creds { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cred { position: relative; padding: 1.5rem 1.5rem 1.75rem; background: var(--bone); display: grid; gap: .5rem; align-content: start; }
.cred::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform var(--base) var(--ease); }
.cred:hover::before { transform: scaleX(1); }
.cred b { font-size: 1.125rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.cred span { font: 500 .75rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.dark .creds { background: var(--line-d); border-color: var(--line-d); }
.dark .cred { background: var(--night-2); }
.dark .cred span { color: var(--faint-d); }
.dark .cred::before { background: var(--fill); }

/* ---------- 15 · CTA band ---------- */
.cta-band { text-align: left; }
.cta-band__note { color: var(--n-faint); }
.cta-band .h2 { max-width: 20ch; }
.cta-band__row { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 1000px) { .cta-band__row { grid-template-columns: minmax(0, 1fr) auto; } }
.cta-band__note { margin-top: 1.25rem; }

/* ---------- 16 · Footer ---------- */
.ftr { background: var(--n-1); color: var(--n-muted); border-top: 1px solid var(--n-line); padding-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); font-size: .9375rem;
  --muted-d: var(--n-muted); --faint-d: var(--n-faint); --ink-d: var(--n-ink); --line-d: var(--n-line); --green-ink: var(--n-lime); }
.ftr .brand__k { display: none; } .ftr .brand__w { display: block; }
.ftr .brand__rule { background: var(--n-line-2); } .ftr .brand__labs { color: var(--n-lime); }
.ftr .ext { color: var(--n-faint); }
.ftr__cookies { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--n-faint); text-decoration: underline; text-underline-offset: 3px; min-height: 24px; }
.ftr__cookies:hover { color: var(--n-lime); }
.ftr :focus-visible { outline-color: var(--n-lime); }
.ftr__top { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.ftr__id { grid-column: 1 / -1; }
@media (min-width: 900px) { .ftr__top { grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 3rem; } .ftr__id { grid-column: auto; } }
.ftr__id p { margin-top: 1.25rem; max-width: 40ch; color: var(--muted-d); line-height: 1.6; }
.ftr h2 { font: 500 var(--fs-mono)/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint-d); margin-bottom: 1.1rem; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.ftr a { color: var(--ink-d); transition: color var(--fast); }
.ftr ul a { display: inline-block; min-height: 24px; line-height: 24px; }
.ftr a:hover { color: var(--green-ink); }
.ftr__legal { max-width: 80ch; padding-bottom: 1.25rem; font-size: .8125rem; line-height: 1.6; color: var(--faint-d); }
.ftr__bottom a { color: var(--faint-d); text-decoration: underline; text-underline-offset: 3px; }
.ftr__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; }
.ftr__links a, .ftr__links button { display: inline-flex; align-items: center; min-height: 32px; }
.ftr__bottom a:hover { color: var(--green-ink); }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.5rem 2rem; border-top: 1px solid var(--line-d);
  font: 500 .75rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint-d); }

/* ---------- 17 · Thesis ---------- */
.abstract { margin-top: var(--sec); padding: clamp(1.5rem, 1.1rem + 1.5vw, 2.5rem); background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--fill); max-width: calc(var(--measure) + 6rem); }
.abstract p { margin-top: 1rem; font-size: var(--fs-read); line-height: 1.72; color: var(--ink); }
.abstract__meta { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; font-size: .9375rem; }
.abstract__meta div { display: grid; gap: .25rem; }
@media (min-width: 700px) { .abstract__meta div { grid-template-columns: 7rem 1fr; gap: 1rem; } }
.abstract__meta dt { font: 500 var(--fs-mono)/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.abstract__meta dd { margin: 0; color: var(--muted); }
.mf { display: grid; gap: 3rem; }
@media (min-width: 1080px) { .mf { grid-template-columns: 250px minmax(0, 1fr); gap: clamp(3rem, 2rem + 4vw, 7rem); } }
.mf__rail { display: none; }
@media (min-width: 1080px) {
  .mf__rail { display: block; position: sticky; top: calc(var(--hdr-h) + 2.5rem); align-self: start; padding-top: var(--sec); }
}
.mf__rail ol { list-style: none; padding: 0 0 0 1.25rem; margin: 1.25rem 0 0; position: relative; display: grid; gap: .15rem; }
.mf__rail ol::before { content: ""; position: absolute; left: 0; top: .4rem; bottom: .4rem; width: 1px; background: var(--line-2); }
.mf__rail ol::after { content: ""; position: absolute; left: 0; top: .4rem; width: 1px; height: calc((100% - .8rem) * var(--p, 0)); background: var(--green); transition: height 120ms linear; }
.mf__rail a { display: grid; grid-template-columns: 1.4rem 1fr; gap: .25rem; padding: .45rem 0; font-size: .9375rem; color: var(--faint); line-height: 1.35; transition: color var(--fast); }
.mf__rail a b { font: 500 .75rem/1.6 var(--mono); color: var(--faint); }
.mf__rail a:hover, .mf__rail a.is-active { color: var(--ink); }
.mf__rail a.is-active b { color: var(--green-ink); }
.chapter { padding-block: var(--sec); border-top: 1px solid var(--line); }
.chapter:first-child { border-top: 0; }
.chapter__head { display: flex; align-items: flex-end; gap: 1.25rem; margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.chapter__num { font: 600 clamp(4.5rem, 3rem + 5vw, 8.5rem)/.8 var(--sans); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.25px var(--green); }
.chapter__of { font: 500 var(--fs-mono)/1 var(--mono); letter-spacing: .14em; color: var(--faint); padding-bottom: .5rem; }
.chapter .h2 { max-width: 16ch; margin-bottom: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem); }
.callout { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); padding: .25rem 0 .25rem clamp(1.25rem, 1rem + 1vw, 2rem); border-left: 2px solid var(--green);
  font: italic 300 clamp(1.625rem, 1.2rem + 1.6vw, 2.625rem)/1.36 var(--serif); letter-spacing: -.015em; color: var(--ink); max-width: 30ch; font-variation-settings: "opsz" 144; }
.mf-products { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 1px solid var(--line); max-width: var(--measure); }
.mf-products li { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.mf-products h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: -.025em; margin-bottom: .5rem; }
.mf-products h3 a:hover { color: var(--green-ink); }
.mf-products p { color: var(--muted); font-size: var(--fs-read); line-height: 1.7; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; background: var(--fill); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }

/* ---------- 18 · Product detail sections ---------- */
.prod__grid { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
@media (min-width: 1000px) { .prod__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: clamp(3rem, 2rem + 3vw, 6rem); } }
.prod__head { display: grid; gap: 1.25rem; }
@media (min-width: 1000px) { .prod__head { position: sticky; top: calc(var(--hdr-h) + 2rem); } }
.prod__tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.prod__head .h2 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem); }
.prod__head .lead { max-width: 40ch; }
.prod__media { aspect-ratio: 16 / 10; overflow: hidden; }
.prod__media img { width: 100%; height: 100%; object-fit: cover; }
.blocks { display: grid; gap: 0; border-top: 1px solid var(--line); }
.blocks > div { display: grid; gap: .6rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .blocks > div { grid-template-columns: 11rem 1fr; gap: 2rem; } }
.blocks h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.blocks p { color: var(--muted); font-size: var(--fs-read); line-height: 1.7; }
.dark .blocks, .dark .blocks > div { border-color: var(--line-d); }
.dark .blocks h3 { color: var(--ink-d); }
.dark .blocks p { color: var(--muted-d); }
.prod .stats { margin-top: 2.5rem; }
.prod .btns { margin-top: 2.5rem; }
.proprietary { margin-top: 1.5rem; max-width: 62ch; font-size: .9375rem; line-height: 1.6; color: var(--muted-d); }

/* Industry accelerators */
.accel { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 680px) { .accel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .accel { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.acc-tile { background: var(--bone); padding: clamp(1.5rem, 1.2rem + 1vw, 2rem); display: flex; flex-direction: column; gap: .9rem; min-height: 290px; transition: background-color var(--fast); }
.acc-tile:hover { background: var(--card); }
.acc-tile__top { display: flex; justify-content: space-between; align-items: center; }
.acc-tile h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; }
.acc-tile p { color: var(--muted); font-size: .96875rem; }
.acc-tile__foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; font: 500 .75rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.acc-tile__foot .icons { display: inline-flex; gap: .35rem; }
.acc-tile__foot img { width: 18px; height: 18px; }
.acc-tile--soon { background: var(--bone-2); }

/* Built-on strip */
.builton { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; align-items: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line-d); color: var(--ink-d); }
.builton .ms { font-size: .9375rem; }
.builton .ms img { width: 22px; height: 22px; }

/* ---------- 19 · Changelog ---------- */
.log { border-top: 1px solid var(--line-d); }
.log__item { display: grid; gap: 1rem; padding: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem) 0; border-bottom: 1px solid var(--line-d); }
@media (min-width: 900px) { .log__item { grid-template-columns: 14rem minmax(0, 1fr); gap: 3rem; } }
.log__ver { font: 600 clamp(2rem, 1.6rem + 1.5vw, 2.75rem)/1 var(--sans); letter-spacing: -.04em; color: var(--ink-d); }
.log__date { display: block; margin-top: .6rem; font: 500 var(--fs-mono)/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint-d); }
.log__item h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.025em; margin-bottom: .75rem; }
.log__tag { display: inline-flex; gap: .5rem; align-items: center; margin-bottom: 1rem; font: 500 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-d); }
.log__tag i { font-style: normal; padding: .3rem .5rem; color: var(--ink); background: var(--fill); }
.log__tag i.chg { background: #9FD3DA; }
.log__item p { color: var(--muted-d); font-size: var(--fs-read); line-height: 1.7; max-width: var(--measure); }

/* Essays (in draft) */
.essays { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 900px) { .essays { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.essay { background: var(--bone); padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); display: flex; flex-direction: column; gap: 1rem; min-height: 320px; }
.essay__top { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.essay h3 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; }
.essay p { color: var(--muted); font-size: .96875rem; }
.essay__foot { margin-top: auto; font: 500 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }

/* ---------- 20 · About ---------- */
.founders { display: grid; gap: 1.25rem; }
@media (min-width: 1000px) { .founders { grid-template-columns: 1fr 1fr; } }
.founder { background: var(--card); border: 1px solid var(--line); padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.75rem); display: grid; gap: 1.25rem; align-content: start; }
.founder__role { font: 500 var(--fs-mono)/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--green-ink); }
.founder h3 { font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.founder p { color: var(--muted); font-size: 1rem; line-height: 1.7; }

.family { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
@media (min-width: 860px) { .family { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.family a, .family div { position: relative; display: grid; gap: .5rem; padding: 1.75rem; background: var(--bone); transition: background-color var(--fast); }
.family a:hover { background: var(--card); }
.family b { font-size: 1.375rem; font-weight: 600; letter-spacing: -.025em; }
.family span { color: var(--muted); font-size: .9375rem; }
.family em { font: 500 .75rem/1 var(--mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.family .is-here { background: var(--forest); color: #F4F4EF; }
.family .is-here span { color: #C3C9C0; }
.family .is-here em { color: var(--lime); }

/* What Ludia Labs is: what comes out of the Lab, and how it works */
.outputs { display: grid; gap: 1px; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); background: var(--line); border: 1px solid var(--line); }
@media (min-width: 860px) { .outputs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.outputs a { display: flex; flex-direction: column; gap: .6rem; padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); background: var(--card); transition: background-color var(--fast); }
.outputs a:hover { background: #F7FAF2; }
.outputs em { font: 500 var(--fs-mono)/1 var(--mono); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--green-ink); }
.outputs b { font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; margin-top: .5rem; }
.outputs span { color: var(--muted); font-size: 1rem; line-height: 1.6; }
.outputs i { margin-top: auto; padding-top: 1rem; font-style: normal; font-weight: 600; color: var(--green-ink); }
.outputs i span { color: inherit; display: inline-block; transition: transform var(--fast) var(--ease); }
.outputs a:hover i span { transform: translateX(5px); }
.rules { margin-top: clamp(3rem, 2.5rem + 2vw, 4.5rem); }
.rules__list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .rules__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; } }
@media (min-width: 1100px) { .rules__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rules__list li { display: grid; grid-template-columns: 3.25rem 1fr; grid-template-rows: auto 1fr; align-items: start; gap: .35rem 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.rules__n { grid-row: span 2; font: 600 2.75rem/.9 var(--sans); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.25px var(--green); }
.rules__list b { font-size: 1.125rem; font-weight: 600; letter-spacing: -.015em; }
.rules__list p { color: var(--muted); font-size: .96875rem; line-height: 1.6; }

/* Helios: the portfolio map (the same graphic as ludiahelios.com) and the explainer video */
.hmap { margin: 0; }
.hmap svg, .hmap img { display: block; width: 100%; height: auto; }
.legend { margin-top: 1.25rem; font-size: .875rem; line-height: 1.6; color: var(--muted-d); max-width: 60ch; }
.legend span { white-space: nowrap; }
.legend i { display: inline-block; width: 11px; height: 11px; margin: 0 .35rem 0 .15rem; vertical-align: -1px; }
/* The map assembles from the inside out, business first and mechanism last: the one motion that explains Helios. */
.js-motion .hmap [data-ring] { opacity: .001; transform: scale(.92); transform-box: view-box; transform-origin: 520px 520px;
  transition: opacity 700ms var(--ease), transform 900ms var(--ease); }
.js-motion .hmap.in [data-ring] { opacity: 1; transform: none; }
.js-motion .hmap.in [data-ring="r1"] { transition-delay: 120ms; }
.js-motion .hmap.in [data-ring="r2"] { transition-delay: 240ms; }
.js-motion .hmap.in [data-ring="r3"] { transition-delay: 360ms; }
.js-motion .hmap.in [data-ring="r4"] { transition-delay: 480ms; }
.js-motion .hmap.in [data-ring="sweep"] { transition-delay: 600ms; }
.card__media--map { display: grid; place-items: center; background: var(--card); }
.card__media.card__media--map img { width: 58%; height: auto; object-fit: contain; }
.watch { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: center; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
@media (min-width: 1000px) { .watch { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.watch figure { margin: 0; }
.watch video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--bone); border: 1px solid var(--line-d); }
.watch video:focus, .watch video:focus-within { outline: 2px solid var(--green-ink); outline-offset: 3px; }
.watch__side h3 { margin: .9rem 0 .75rem; font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.watch__side p { color: var(--muted-d); max-width: 44ch; }
.watch__more { margin-top: 1.25rem; }
.band__top { align-items: center; }

/* About Ludia, on ludiaconsulting.com: the hand-off list */
.about-links { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.about-links ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .about-links ul { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.about-links a { display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-height: 56px; padding: 1rem 1rem 1rem 0;
  border-bottom: 1px solid var(--line); font-weight: 600; letter-spacing: -.01em; transition: color var(--fast); }
@media (min-width: 760px) { .about-links li + li a { padding-left: 1rem; border-left: 1px solid var(--line); } }
.about-links a span { color: var(--faint); font-weight: 400; }
.about-links a:hover { color: var(--green-ink); }

/* ---------- 21 · 404 ---------- */
.nf { min-height: calc(100svh - var(--bar-h) - var(--hdr-h)); display: flex; align-items: center; }
.nf ul { list-style: none; padding: 0; margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; gap: .75rem 2rem; }

/* ---------- 21b · Night register ---------- */
/* A night section re-points the light tokens, so the shared components (kickers, prose, stats, notes, chips,
   links) read correctly on graphite without their own dark variants. */
.night { position: relative; background: var(--n-1); color: var(--n-ink); isolation: isolate;
  --ink: var(--n-ink); --ink-d: var(--n-ink); --muted: var(--n-muted); --muted-d: var(--n-muted);
  --faint: var(--n-faint); --faint-d: var(--n-faint); --line: var(--n-line); --line-d: var(--n-line);
  --line-2: var(--n-line-2); --line-d2: var(--n-line-2); --green-ink: var(--n-lime); --green-display: var(--n-lime); --card: var(--n-2); }
.night .btn--primary { background: var(--n-lime); color: var(--n-0); }
.night .btn--primary:hover { background: #CBEA9E; }
.night .btn--ghost { color: var(--n-ink); border-color: var(--n-line-2); }
.night .btn--ghost:hover { background: var(--n-ink); color: var(--n-0); border-color: var(--n-ink); }
.night .kicker::before { background: var(--n-lime); }
.night .chip--live, .night .chip--prod { --chip-c: var(--n-glow); }

/* The field's still, shared by the hero and the night bands (the same file per screen shape, so it's fetched once). */
:root { --field-img: url("/assets/img/field-1920.webp"); }
@media (max-width: 1280px) { :root { --field-img: url("/assets/img/field-1280.webp"); } }
@media (max-aspect-ratio: 1/1) { :root { --field-img: url("/assets/img/field-portrait-800.webp"); } }
.night--field { overflow: hidden; }
.night--field::before { content: ""; position: absolute; inset: -8% 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, rgba(11,15,14,.96) 0%, rgba(11,15,14,.84) 42%, rgba(11,15,14,.42) 100%), var(--n-1) var(--field-img) 70% 50% / cover no-repeat; }
/* Scroll-linked drift (moves only while the visitor scrolls; nothing runs on its own). */
@supports (animation-timeline: view()) {
  .js-motion .night--field::before { animation: field-drift linear both; animation-timeline: view(); }
  @keyframes field-drift { from { transform: translateY(-5%); } to { transform: translateY(5%); } }
}

/* ---------- 21c · Home hero: the field ---------- */
.hero--field { min-height: max(600px, calc(100svh - var(--bar-h))); background: var(--n-0);
  padding-top: calc(var(--hdr-h) + clamp(2.5rem, 1rem + 5vw, 5rem)); }
.js .hero--field { margin-top: calc(-1 * var(--hdr-h)); }
@media (min-width: 900px) {
  .hero--field { min-height: max(700px, calc(100svh - var(--bar-h))); }
  .hero--field .hero__in { padding-right: var(--gut); }
}
.field { position: absolute; inset: 0; z-index: 0; background: var(--n-0) var(--field-img) 50% 50% / cover no-repeat; }
.field__c { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1600ms var(--ease); }
.field.is-live .field__c { opacity: 1; }
.field__veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(7,10,9,.94) 0%, rgba(7,10,9,.6) 30%, rgba(7,10,9,0) 66%),
              linear-gradient(to right, rgba(7,10,9,.78) 0%, rgba(7,10,9,.3) 48%, rgba(7,10,9,0) 72%),
              linear-gradient(to bottom, rgba(7,10,9,.6) 0, rgba(7,10,9,0) 24%); }
.hero--field .hero__in { padding-bottom: clamp(2rem, 1.5rem + 2.5vw, 3.5rem); }
.hero--field .hero__kicker { color: var(--n-muted); }
.h-hero { max-width: 14ch; font-family: var(--sans); font-weight: 300; font-size: clamp(2.85rem, 1.25rem + 6.2vw, 7.25rem);
  line-height: .97; letter-spacing: -.048em; color: var(--n-ink); text-wrap: balance; }
.h-hero .acc { color: var(--n-lime); font-size: 1.02em; letter-spacing: -.03em; }
@media (min-width: 900px) { .hero .h-hero { max-width: 21ch; font-size: clamp(3.5rem, 1.6rem + 4.4vw, 6.75rem); } }
.hero__lead { margin-top: clamp(1.25rem, 1rem + 1vw, 2rem) !important; max-width: 44ch !important; color: var(--n-muted); }
.hero__lead .v { color: var(--n-ink); }
/* With JS the four verbs play one at a time; the full sentence stays for screen readers. */
.js .hero__verbs { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cycle { display: none; }
.js .cycle { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem; margin-top: 1.1rem; font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.9rem); line-height: 1.25; }
.cycle__i { font: 500 var(--fs-mono)/1 var(--mono); letter-spacing: .14em; color: var(--n-faint); font-variant-numeric: tabular-nums; }
.cycle__line { display: inline-block; transition: opacity 420ms var(--ease), filter 420ms var(--ease), transform 420ms var(--ease); }
.cycle__k { color: var(--n-ink); font-weight: 300; letter-spacing: -.02em; }
.cycle__v { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--n-lime); }
.cycle.is-out .cycle__line { opacity: 0; filter: blur(8px); transform: translateY(-.35em); }
.hero--field .btns { margin-top: clamp(1.75rem, 1.25rem + 2vw, 2.75rem); }

/* A status readout in the corner: where the Lab is, what it stands on. */
.hud { display: none; }
@media (min-width: 1100px) {
  .hud { display: grid; gap: .55rem; position: absolute; z-index: 2; top: calc(var(--hdr-h) + 2.25rem);
    right: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); text-align: right;
    font: 500 var(--fs-mono)/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--n-faint); }
  .hud p:first-child { color: var(--n-ink); }
}
.hud i { display: inline-block; width: 6px; height: 6px; margin: 0 .6rem .1rem 0; border-radius: 50%; background: var(--n-glow); box-shadow: 0 0 10px var(--n-glow); }
.js-motion .hud i { animation: hud-blink 2.4s ease-in-out infinite; }
@keyframes hud-blink { 50% { opacity: .25; } }

/* The foot of the hero: what's new from the Lab, a way down, and the motion control. */
.hero__foot { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.5rem;
  padding-block: 1.05rem 1.35rem; border-top: 1px solid var(--n-line); }
.ticker { position: relative; display: flex; align-items: center; gap: .9rem; flex: 1 1 380px; min-width: 0; }
.ticker__tag { flex: none; padding: .5rem .95rem; border-radius: 999px; background: var(--n-ink); color: var(--n-0); font-size: .8125rem; font-weight: 600; line-height: 1.1; }
.ticker__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; overflow-x: auto; min-width: 0; scrollbar-width: none; }
.ticker__list a { display: inline-flex; align-items: center; min-height: 32px; white-space: nowrap; font-size: .9375rem; color: var(--n-muted); }
.ticker__list a b { margin-right: .55rem; font-weight: 600; color: var(--n-ink); }
.ticker__list a:hover { color: var(--n-ink); }
.ticker__list a:hover b { color: var(--n-lime); }
.js .ticker__list { display: grid; flex: 1; overflow: hidden; }
.js .ticker__list li { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease), visibility 0s linear 500ms; }
.js .ticker__list li.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.js .ticker__list a { display: block; line-height: 32px; overflow: hidden; text-overflow: ellipsis; }
.ticker__next { display: none; }
.js .ticker__next { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--n-line-2); color: var(--n-ink); transition: border-color var(--fast), color var(--fast); }
.ticker__next:hover { border-color: var(--n-lime); color: var(--n-lime); }
.ticker__bar { position: absolute; left: 0; right: 0; top: calc(-1.05rem - 1px); height: 1px; background: var(--n-ink); opacity: .7; transform-origin: 0 50%; transform: scaleX(0); }
.js-motion .ticker.is-run .ticker__bar { animation: ticker-run 6s linear forwards; }
@keyframes ticker-run { to { transform: scaleX(1); } }
.scroll-cue { display: inline-flex; align-items: center; gap: .75rem; min-height: 32px; font: 500 var(--fs-mono)/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--n-muted); }
.scroll-cue:hover { color: var(--n-ink); }
.scroll-cue i { position: relative; width: 1px; height: 28px; overflow: hidden; background: var(--n-line-2); }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--n-glow); }
.js-motion .scroll-cue i::after { animation: cue-run 2.4s var(--ease) infinite; }
@keyframes cue-run { to { top: 100%; } }
@media (max-width: 699px) { .scroll-cue { display: none; } .ticker { flex-basis: 100%; } }
.motion-toggle { display: none; align-items: center; gap: .5rem; min-height: 32px; padding: .4rem .85rem; border-radius: 999px;
  font: 500 var(--fs-mono)/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--n-muted); border: 1px solid var(--n-line-2); }
.motion-toggle::before { content: ""; width: 8px; height: 10px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box; }
.motion-toggle[aria-pressed="true"]::before { width: 0; height: 0; border-right: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.motion-toggle:hover { color: var(--n-ink); border-color: var(--n-ink); }
.js-motion .motion-toggle { display: inline-flex; }
/* Paused by the visitor, or off screen: the small lights stop too (the field and the rotations stop in JS). */
:is(.hero--field.is-paused, .hero--field.is-off) :is(.hud i, .scroll-cue i::after, .ticker__bar) { animation-play-state: paused !important; }
.js-motion .h-hero[data-intro] { animation-name: rise-blur; animation-duration: 1500ms; }
@keyframes rise-blur { from { opacity: .001; filter: blur(14px); transform: translateY(18px); } to { opacity: 1; filter: none; transform: none; } }

/* ---------- 21d · The Lab, at night: glass notes and a sealed one ---------- */
.notes--duo { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .notes--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.night .note { background-color: rgba(237, 241, 238, .035); background-image: none; border-color: var(--n-line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: border-color var(--fast), background-color var(--fast); }
.night .note:hover { border-color: var(--n-line-2); background-color: rgba(237, 241, 238, .06); }
.note--sealed { border-style: dashed !important; }
.redact { display: block; height: .72em; width: var(--w, 80%); margin: .55em 0; border-radius: 2px;
  background: repeating-linear-gradient(90deg, rgba(237,241,238,.17) 0 18px, rgba(237,241,238,.09) 18px 19px); }
.note .note__more { margin-top: auto; font: 500 var(--fs-mono)/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }

/* Line marks on the three outputs of the Lab */
.outputs svg { width: 40px; height: 40px; margin-bottom: .6rem; color: var(--green-ink); }

/* ---------- 21e · Cookie consent (same choices and cookie as ludiaconsulting.com) ---------- */
.consent { position: fixed; z-index: 95; right: 16px; bottom: 16px; width: min(440px, calc(100vw - 32px)); padding: 1.25rem 1.35rem 1.1rem;
  background: rgba(19, 25, 23, .95); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: var(--n-muted);
  border: 1px solid var(--n-line); border-top: 2px solid var(--fill); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); font-size: .9375rem; line-height: 1.55; }
.consent[hidden] { display: none; }
.consent__title { margin-bottom: .35rem; color: var(--n-ink); font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }
.consent a, .consent-dialog a { color: var(--n-ink); text-decoration: underline; text-underline-offset: 3px; }
.consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1rem; }
:is(.consent, .consent-dialog) .btn--pill { flex: 1 1 auto; justify-content: center; min-height: 44px; padding: .65rem 1.2rem; color: var(--n-ink); border-color: var(--n-line-2); background: transparent; }
:is(.consent, .consent-dialog) .btn--pill:hover { color: var(--n-0); background: var(--n-ink); border-color: var(--n-ink); }
:is(.consent, .consent-dialog) .btn--solid { color: var(--n-0); background: var(--n-lime); border-color: var(--n-lime); }
.consent__choose { min-height: 44px; padding: .5rem .3rem; font-weight: 600; color: var(--n-ink); text-decoration: underline; text-underline-offset: 3px; }
:is(.consent, .consent-dialog) :focus-visible { outline-color: var(--n-lime); }
@media (max-width: 600px) { .consent { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 1rem 1.1rem; } }
.consent-dialog { width: calc(100% - 32px); max-width: 600px; padding: 1.75rem 1.75rem 1.5rem; color: var(--n-muted); background: var(--n-2);
  border: 1px solid var(--n-line); border-top: 2px solid var(--fill); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); font-size: .9375rem; }
.consent-dialog::backdrop { background: rgba(4, 6, 5, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.consent-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.consent-dialog h2 { margin-bottom: .5rem; color: var(--n-ink); font-size: 1.5rem; font-weight: 400; letter-spacing: -.02em; }
.consent-dialog__close { width: 44px; height: 44px; margin: -.6rem -.6rem 0 0; font-size: 1.75rem; line-height: 1; color: var(--n-muted); }
.consent-dialog__close:hover { color: var(--n-ink); }
.consent-cat { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-top: 1rem; padding: 1rem 0; border-top: 1px solid var(--n-line); }
.consent-cat + .consent-cat { margin-top: 0; }
.consent-cat h3 { margin-bottom: .2rem; color: var(--n-ink); font-size: 1rem; font-weight: 600; }
.consent-cat p { font-size: .875rem; }
.consent-cat__always { font: 500 var(--fs-mono)/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--n-lime); white-space: nowrap; }
.consent-switch { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 46px; height: 26px; margin: 0; border-radius: 13px;
  background: rgba(237, 241, 238, .2); cursor: pointer; transition: background-color var(--fast); }
.consent-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--n-ink); transition: transform var(--fast) var(--ease); }
.consent-switch:checked { background: var(--fill); }
.consent-switch:checked::after { transform: translateX(20px); }
.consent__actions--dialog { padding-top: 1rem; border-top: 1px solid var(--n-line); }

/* ---------- 21f · The light field: the inside pages' heroes ---------- */
/* The same field as the home hero, printed in very light greys (field.js, data-field="light"). No pictures on top of
   it (Lucas, 2026-10-04): the words and the field carry the opening screen. */
:root { --field-light-img: url("/assets/img/field-light-1920.webp"); }
@media (max-width: 1280px) { :root { --field-light-img: url("/assets/img/field-light-1280.webp"); } }
@media (max-aspect-ratio: 1/1) { :root { --field-light-img: url("/assets/img/field-light-portrait-800.webp"); } }
.hero--lit, .nf--lit { background: #EEF0EF; }
/* Phones: room under the header for the Pause button, and enough height for the field to show above the words. */
@media (max-width: 899px) { .hero--lit { min-height: min(76svh, 620px); padding-top: 5rem; } }
.field--light { background: #EEF0EF var(--field-light-img) 50% 50% / cover no-repeat; }
.hero--lit .grid-bg::before { display: none; }
.hero--lit .motion-toggle { position: absolute; z-index: 3; top: 1.25rem; right: var(--gut); color: var(--muted); border-color: var(--line-2); background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero--lit .motion-toggle:hover { color: var(--ink); border-color: var(--ink); }
.nf--lit { position: relative; overflow: hidden; }
.nf h1 + p { margin-top: 1.5rem; }
/* The waves fade into the page at the foot of the hero, so there's no hard edge. */
.hero--lit::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16%; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(244, 245, 245, 0), var(--bone)); }
.nf--lit > .wrap { position: relative; z-index: 1; }

/* ---------- 21g · Phones and touch screens ---------- */
/* A link to a section or chapter lands on its content, just under the header, not on its top padding. */
.sec[id], .chapter { scroll-margin-top: calc(1rem - var(--sec)); }
@media (max-width: 359px) { .ticker__tag { display: none; } }
/* Single-column grids never grow wider than the screen (WebKit can keep a stale minimum after a rotation). */
:where(.cards, .notes, .outputs, .family, .creds, .accel, .essays, .stages, .split, .watch, .prod__grid, .founders, .log__item, .rules__list, .about-links ul) { grid-template-columns: minmax(0, 1fr); }
/* Very narrow phones (a folded Fold): the menu button keeps its circle and drops the word, so "Labs" never touches it. */
@media (max-width: 359px) {
  .menu-btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand { gap: .65rem; }
}
/* Touch: the controls people tap reach 44px, the size iOS and Android recommend. */
@media (pointer: coarse) {
  .motion-toggle, .hdr .btn, .scroll-cue { min-height: 44px; }
  .js .ticker__next { width: 44px; height: 44px; }
  .ftr ul { gap: .1rem; }
  .ftr ul a { min-height: 40px; line-height: 40px; }
  .ftr__links a, .ftr__links button { min-height: 44px; }
}
/* The cookie banner sits above the iPhone home bar and stays compact on small screens. */
.consent { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 600px) { .consent { bottom: calc(8px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 400px) { .consent { font-size: .875rem; } .consent__actions { margin-top: .75rem; } }
.mnav { padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px)); }
.ftr__bottom { padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px)); }

/* ---------- 22 · Motion ---------- */
/* Content is visible without JS. Reveals apply only under html.js-motion,
   which is set only when the visitor hasn't asked for reduced motion. */
@keyframes rise { from { opacity: .001; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.js-motion [data-intro] { animation: rise 900ms var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
.js-motion .rv { opacity: .001; transform: translateY(16px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js-motion .rv.in { opacity: 1; transform: none; }
/* Fig. 1 assembles from the data layer up: what holds arrives first. */
.js-motion .stack .stack__row { opacity: .001; transform: translateY(12px); transition: opacity 600ms var(--ease), transform 600ms var(--ease), border-color var(--fast), background-color var(--fast); }
.js-motion .stack.in .stack__row { opacity: 1; transform: none; }
.js-motion .stack.in .stack__row--base { transition-delay: 0ms; }
.js-motion .stack.in .stack__row:nth-child(4) { transition-delay: 140ms; }
.js-motion .stack.in .stack__row:nth-child(3) { transition-delay: 280ms; }
.js-motion .stack.in .stack__row:nth-child(2) { transition-delay: 420ms; }
.js-motion .stack.in .stack__row:nth-child(1) { transition-delay: 560ms; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- 23 · Print ---------- */
@media print {
  .ludia-family, .hdr, .mnav, .progress, .field, .motion-toggle, .mf__rail, .ftr__top ul { display: none !important; }
  body, .dark { background: #fff !important; color: #000 !important; }
  .dark .prose, .dark .lead, .dark p { color: #222 !important; }
  .hero { min-height: 0; padding-top: 2rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
