/* Flowlet premium (branch `premium`), round 3 (2026-11-18): the shared design system of every page.
   Page-specific styles live in /p/<key>.css (front matter `css:`), never here, so pages can be built in
   parallel. Identity kept from the live site: Instrument Serif headlines (italic only on accent words),
   Inter text, Bricolage only for the wordmark, the fog photo as the stage, thin solid rules, green accent.
   Round 3: bigger and brighter copy, a stronger type scale, richer surfaces (.band, .vignette, one .paper
   section at most per page), a better phone, motion classes for static/motion.js (API in PREMIUM.md §10). */

@font-face { font-family: "Serif"; src: url("/fonts/instrument-serif-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Serif"; src: url("/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #0B0D13;          /* page */
  --bg-2: #07080C;        /* footer, deepest */
  --raise: #11141E;       /* the brand navy: raised areas (.band), the old page colour */
  --ink: #F4F5F8;         /* headlines, white button */
  --lead: #D8DDE7;        /* leads: almost white */
  --soft: #BCC4D4;        /* body copy (round 2 was #AEB6CB: too grey) */
  --muted: #8C95AB;       /* secondary copy */
  --dim: #4B5368;         /* unlit words, disabled */
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --green: #8FD5A9;       /* accent only */
  --green-glow: rgba(143, 213, 169, .14);
  --teal-glow: rgba(150, 200, 190, .17);
  --coral: #FF6B7D;       /* the logo's sound wave only */
  --paper: #ECE9E2;       /* .paper sections: ink on paper, at most one per page */
  --paper-ink: #14161C;
  --paper-soft: #4C4E57;
  --paper-dim: #ABA79D;
  --paper-line: rgba(20, 22, 28, .14);
  --wrap: 1160px;
  --wide: 1320px;
  --narrow: 760px;
  --pad: 28px;
  --sec: 168px;           /* vertical rhythm between sections */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --serif: "Serif", "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (max-width: 760px) { :root { --pad: 20px; --sec: 112px; } }

/* ---------------------------------------------------------------- base */
* { box-sizing: border-box; }
html { color-scheme: dark; scrollbar-color: #2A3040 var(--bg-2); -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; background: var(--bg); }
html.fl body { opacity: 0; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; background: var(--bg); color: var(--soft);
  font: 400 18px/1.65 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; transition: opacity .5s ease; }
/* film grain over everything, faint */
body::before { content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
::selection { background: rgba(143, 213, 169, .32); color: #fff; }
a { color: inherit; }
img, video, svg, canvas { display: block; max-width: 100%; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 400; text-wrap: balance; }
h1, h2 { font-family: var(--serif); letter-spacing: -.015em; }
h1 em, h2 em, .display em, .statement em { font-style: italic; }
strong, b { color: var(--ink); font-weight: 600; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) { body { font-size: 17px; line-height: 1.6; } }

/* smooth scroll (Lenis, see motion.js) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* ---------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.wrap-wide { max-width: calc(var(--wide) + 2 * var(--pad)); }
.wrap-narrow { max-width: calc(var(--narrow) + 2 * var(--pad)); }
.site { flex: 1; width: 100%; overflow-x: clip; }   /* clip, not hidden: sticky and pins keep working */
.sec { position: relative; padding: var(--sec) 0; }
.sec-tight { padding: calc(var(--sec) * .6) 0; }
.sec + .sec { padding-top: 0; }               /* adjacent sections share one gap */
.sec.sec-sep { padding-top: var(--sec); border-top: 1px solid var(--line); }
.sec-air { padding: calc(var(--sec) * 1.35) 0; }   /* an airy section after a dense one */
.center { text-align: center; }
.center .lead, .center p { margin-left: auto; margin-right: auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split.top { align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 56px; } .split.rev > :first-child { order: 0; } }

/* ---------------------------------------------------------------- type */
.display { font-family: var(--serif); font-size: clamp(60px, 9.6vw, 156px); line-height: .88; letter-spacing: -.03em; color: var(--ink); }
.h1, .site h1 { font-size: clamp(54px, 7.6vw, 120px); line-height: .92; letter-spacing: -.025em; }
.h2, .site h2 { font-size: clamp(44px, 6vw, 96px); line-height: .94; letter-spacing: -.022em; }
.site h3 { font: 600 20px/1.35 var(--sans); letter-spacing: -.01em; }
.h3, .site .h3 { font: 400 clamp(30px, 3.2vw, 46px)/1.04 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.lead { max-width: 680px; margin-top: 30px; font-size: 23px; line-height: 1.5; color: var(--lead); letter-spacing: -.005em; }
.small { font-size: 15px; color: var(--muted); }
.muted { color: var(--muted); }
.ink { color: var(--ink); }
.green { color: var(--green); }
@media (max-width: 760px) { .lead { font-size: 19px; line-height: 1.5; margin-top: 22px; } }

/* A big centred statement whose words light up as it scrolls through the viewport (motion.js scrubs the
   words). Put the accent words in <em>. */
.statement { max-width: 1120px; margin: 0 auto; text-align: center; font-family: var(--serif); font-size: clamp(36px, 5.2vw, 80px); line-height: 1.06; letter-spacing: -.018em; color: var(--ink); text-wrap: balance; }
.statement em { color: var(--green); }

/* SplitText (motion.js): line masks get room for italics and descenders; headlines wait hidden for their split */
.sl-mask { padding: .1em .14em .18em; margin: -.1em -.14em -.18em; }
html.motion [data-split]:not(.split-on) { visibility: hidden; }

/* soft radial light behind a centred block */
.glow { position: relative; isolation: isolate; }
.glow::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(1200px, 120vw); height: 680px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--teal-glow), rgba(120, 150, 200, .06) 55%, transparent); pointer-events: none; }
.glow-green::before { background: radial-gradient(closest-side, var(--green-glow), transparent 70%); }

/* ---------------------------------------------------------------- surfaces */
/* .band: a raised navy section (dense content: numbers, prices) with light falling from the top edge */
.band { position: relative; isolation: isolate; background: var(--raise); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 60% at 50% 0%, rgba(170, 200, 230, .09), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .015), rgba(0, 0, 0, .18)); }
.sec.band, .sec + .sec.band { padding: var(--sec) 0; }
.band + .sec { padding-top: var(--sec); }
/* .vignette: darkens the edges of a section, puts the eye in the middle */
.vignette { position: relative; isolation: isolate; }
.vignette::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(90% 75% at 50% 50%, transparent 55%, rgba(4, 5, 8, .55)); }
/* .paper: ink on paper, for the ONE section of a page that is about text itself. Full bleed, no card. */
.paper { position: relative; isolation: isolate; background: var(--paper); color: var(--paper-soft); --line: var(--paper-line); --line-2: rgba(20, 22, 28, .22); --muted: #74726C; --soft: var(--paper-soft); --lead: #2A2C33; --ink: var(--paper-ink); --dim: var(--paper-dim); color-scheme: light; }
.paper::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background: radial-gradient(120% 90% at 50% 40%, transparent 50%, rgba(120, 110, 90, .16)); }
.paper h1, .paper h2, .paper h3 { color: var(--paper-ink); }
.paper ::selection { background: rgba(20, 22, 28, .14); color: var(--paper-ink); }
.paper .btn { background: var(--paper-ink); color: var(--paper); box-shadow: 0 10px 30px -12px rgba(20, 22, 28, .5); }
.sec.paper, .sec + .sec.paper { padding: var(--sec) 0; }
.paper + .sec { padding-top: var(--sec); }
/* a thin rule that fades at both ends */
.rule { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent); }

/* ---------------------------------------------------------------- buttons and links */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 44px; }
.center .actions { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 26px; border: 0; border-radius: 15px; cursor: pointer;
  background: var(--ink); color: #0F121B; font: 600 16.5px/1 var(--sans); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 12px 34px -12px rgba(244, 245, 248, .38); transition: transform .2s var(--ease), background .2s ease, box-shadow .2s ease; }
.btn:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 18px 44px -12px rgba(244, 245, 248, .5); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-ghost { background: rgba(255, 255, 255, .045); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 11px; gap: 8px; }
.btn-sm svg { width: 17px; height: 17px; }
.btn-play { display: inline-flex; align-items: center; gap: 12px; }
.btn-play .pl { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #0F121B; }
.btn-play .pl svg { width: 11px; height: 11px; margin-left: 2px; }
html.motion [data-magnetic] { transition: background .2s ease, box-shadow .2s ease; }
/* text link with an arrow that moves on hover */
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 32px; color: var(--ink); font: 500 17px/1.2 var(--sans); text-decoration: none; }
.more::after { content: ""; width: 16px; height: 16px; flex: none; transition: transform .25s var(--ease);
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.more:hover::after { transform: translateX(4px); }
.more span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); padding-bottom: 2px; }
.more:hover span { background-size: 100% 1px; }
/* one thin pill at the top of a hero linking to news: keep it to ONE per page, hero only */
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 8px 7px 16px; border-radius: 999px; background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px var(--line-2); color: var(--soft); font: 500 14.5px/1.2 var(--sans); text-decoration: none; transition: box-shadow .2s ease, background .2s ease; }
.pill b { color: var(--ink); font-weight: 600; }
.pill i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .09); font-style: normal; }
.pill:hover { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26); }

/* ---------------------------------------------------------------- top bar */
header.top { position: fixed; top: 0; left: 0; right: 0; z-index: 60; padding-top: env(safe-area-inset-top, 0px); transition: background .3s ease, border-color .3s ease; border-bottom: 1px solid transparent; }
header.top.scrolled, header.top.open { background: rgba(11, 13, 19, .8); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); border-bottom-color: rgba(255, 255, 255, .07); }
header.top .wrap { display: flex; align-items: center; height: 72px; gap: 28px; max-width: calc(var(--wide) + 2 * var(--pad)); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand svg { width: 30px; height: 30px; }
.brand span { font: 700 21px/1 "Bricolage", sans-serif; letter-spacing: -.02em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 9px; color: rgba(244, 245, 248, .74); text-decoration: none; font: 500 15px/1 var(--sans); transition: color .2s ease, background .2s ease; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav .nav-get { display: none; }
.menu { display: none; }
.site > :first-child { padding-top: calc(72px + env(safe-area-inset-top, 0px)); }   /* the bar is fixed */
@media (max-width: 960px) {
  header.top .wrap { height: 64px; gap: 12px; }
  header.top.scrolled { background: rgba(11, 13, 19, .94); }
  .top-get { margin-left: auto; }
  .menu { display: grid; place-content: center; gap: 6px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .07); cursor: pointer; }
  .menu i { display: block; width: 16px; height: 1.5px; background: var(--ink); border-radius: 1px; transition: transform .3s var(--ease); }
  header.top.open .menu i:first-child { transform: translateY(3.75px) rotate(45deg); }
  header.top.open .menu i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav { position: fixed; top: calc(64px + env(safe-area-inset-top, 0px)); left: 0; right: 0; height: calc(100dvh - 64px); flex-direction: column; gap: 0; margin: 0; padding: 24px var(--pad);
    background: rgba(11, 13, 19, .97); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s ease, transform .3s var(--ease), visibility 0s .3s; }
  header.top.open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .3s var(--ease); }
  .nav a { padding: 18px 0; border-radius: 0; border-bottom: 1px solid var(--line); font: 400 36px/1 var(--serif); color: var(--ink); }
  .nav a:hover { background: none; }
  .nav .nav-get { display: block; }
  .site > :first-child { padding-top: calc(64px + env(safe-area-inset-top, 0px)); }
}
@media (max-width: 420px) { .top-get span { display: none; } .top-get { width: 40px; padding: 0; } }
/* over a .paper section (motion.js adds .on-paper) the bar turns to paper too */
header.top.on-paper:not(.open) { background: rgba(236, 233, 226, .86); border-bottom-color: rgba(20, 22, 28, .1); color-scheme: light; }
header.top.on-paper:not(.open) .brand { color: var(--paper-ink); }
header.top.on-paper:not(.open) .brand svg path { stroke: var(--paper-ink); }
header.top.on-paper:not(.open) .brand svg circle { fill: var(--paper-ink); }
header.top.on-paper:not(.open) .nav a { color: rgba(20, 22, 28, .7); }
header.top.on-paper:not(.open) .nav a:hover, header.top.on-paper:not(.open) .nav a[aria-current="page"] { color: var(--paper-ink); background: rgba(20, 22, 28, .05); }
header.top.on-paper:not(.open) .top-get { background: var(--paper-ink); color: var(--paper); box-shadow: none; }
header.top.on-paper:not(.open) .menu { background: rgba(20, 22, 28, .08); }
header.top.on-paper:not(.open) .menu i { background: var(--paper-ink); }
header.top .brand svg path, header.top .brand svg circle, header.top .nav a, header.top .top-get { transition: stroke .3s ease, fill .3s ease, color .3s ease, background .3s ease; }

/* ---------------------------------------------------------------- the fog stage */
/* <div class="stage" aria-hidden="true"></div> as the first child of a position:relative section. */
.stage { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.stage::before { content: ""; position: absolute; inset: -6% -4% 0; background: url("/img/stage-fog.jpg") center 30% / cover no-repeat; opacity: .55; animation: drift 38s ease-in-out infinite alternate; }
.stage::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 19, .62) 0%, rgba(11, 13, 19, .35) 30%, rgba(11, 13, 19, .7) 72%, var(--bg) 100%),
              radial-gradient(120% 70% at 50% 0%, transparent 40%, rgba(11, 13, 19, .65) 100%); }
@media (max-width: 760px) { .stage::before { background-image: url("/img/stage-fog-m.jpg"); background-position: 60% 30%; } }
@media (prefers-reduced-motion: reduce) { .stage::before { animation-duration: 120s; } }
.stage.idle::before { animation-play-state: paused; }
@keyframes drift { from { transform: scale(1.04) translate3d(-1%, 0, 0); } to { transform: scale(1.1) translate3d(1.5%, -1%, 0); } }

/* ---------------------------------------------------------------- page hero (inner pages) */
.phero { position: relative; isolation: isolate; padding-bottom: calc(var(--sec) * .7); }
.phero .wrap { padding-top: 128px; }
.phero h1 { max-width: 15ch; }
.phero.center h1 { margin: 0 auto; }
.phero .lead { max-width: 640px; }
@media (max-width: 760px) { .phero .wrap { padding-top: 64px; } }

/* ---------------------------------------------------------------- device frame */
/* <div class="phone [hole]"><div class="screen [lit]"><video|img></div></div>  REAL recordings/screenshots only.
   .hole adds the punch-hole camera (only for recordings that don't show their own); .lit lifts the pure black of
   a dark recording into a deep lit glass (the video is blended with "lighten": black shows the glass, UI stays). */
.phone { position: relative; width: 100%; max-width: 320px; margin: 0 auto; padding: 10px; border-radius: 58px;
  background: linear-gradient(140deg, #7A808C 0%, #3A3F49 9%, #16181D 30%, #0E0F13 55%, #1B1E25 80%, #5E6470 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .2), inset 0 0 0 3.5px #050608, inset 0 0 0 4.5px rgba(255, 255, 255, .07),
    0 0 0 1px rgba(0, 0, 0, .6), 0 90px 140px -40px rgba(0, 0, 0, .95), 0 34px 60px -28px rgba(0, 0, 0, .75); }
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #121418, #5A606C 60%, #2A2E36); }
.phone::before { right: -3px; top: 23%; height: 11%; }
.phone::after { left: -3px; top: 17%; height: 15%; }
.screen { position: relative; overflow: hidden; border-radius: 48px; clip-path: inset(0 round 48px); aspect-ratio: 9 / 19.5; background: #000; isolation: isolate; }
.screen > img, .screen > video { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.screen::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, .045) 24%, rgba(255, 255, 255, 0) 46%), linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 18%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), inset 0 0 22px rgba(0, 0, 0, .5); }
.phone.hole .screen::before { content: ""; position: absolute; z-index: 4; top: 1.15%; left: 50%; width: 3.3%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #2C3444 0 18%, #07080B 55%); box-shadow: 0 0 0 1.5px #000; }
.screen.lit { background: radial-gradient(120% 55% at 30% 8%, #1E2A36 0%, #121A24 38%, #0B0F16 70%), #0B0F16; }
.screen.lit > video, .screen.lit > img { mix-blend-mode: lighten; }
.phone-glow { position: relative; isolation: isolate; }
.phone-glow::before { content: ""; position: absolute; z-index: -1; inset: 4% -34%; background: radial-gradient(closest-side, rgba(160, 210, 200, .22), rgba(130, 160, 210, .07) 60%, transparent 76%); filter: blur(12px); }
@media (max-width: 760px) { .phone { padding: 9px; border-radius: 50px; } .screen { border-radius: 41px; clip-path: inset(0 round 41px); } }

/* a framed video/screenshot that is not a phone (landscape recordings) */
.media { position: relative; overflow: hidden; border-radius: 24px; background: #0D1117; box-shadow: 0 0 0 1px var(--line-2), 0 60px 120px -40px rgba(0, 0, 0, .95); }
.media > video, .media > img { width: 100%; height: auto; }

/* ---------------------------------------------------------------- numbers row */
/* <div class="stats"><div><b data-count="74">74</b><span>dictations where…</span></div>…</div> */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 40px; margin-top: 72px; }
.stats > div { padding-top: 24px; border-top: 1px solid var(--line-2); }
.stats b { display: block; font: 400 clamp(68px, 8vw, 128px)/.9 var(--serif); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stats b.g { color: var(--green); }
.stats span { display: block; max-width: 240px; margin-top: 14px; font-size: 16px; line-height: 1.45; color: var(--soft); }

/* ---------------------------------------------------------------- lists with thin rules (no feature grids) */
.rules { list-style: none; margin: 52px 0 0; padding: 0; border-top: 1px solid var(--line); }
.rules > li { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 12px 48px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.rules > li > :first-child { color: var(--ink); font: 400 30px/1.1 var(--serif); letter-spacing: -.01em; }
.rules > li p { color: var(--soft); font-size: 18px; }
@media (max-width: 760px) { .rules > li { grid-template-columns: 1fr; padding: 24px 0; } .rules > li > :first-child { font-size: 27px; } }
.steps { list-style: none; margin: 52px 0 0; padding: 0; counter-reset: s; }
.steps > li { display: grid; grid-template-columns: 72px 1fr; padding: 30px 0; border-top: 1px solid var(--line); counter-increment: s; }
.steps > li:last-child { border-bottom: 1px solid var(--line); }
.steps > li::before { content: counter(s); grid-row: span 2; font: italic 400 40px/1 var(--serif); color: var(--green); }
.steps > li h3 { margin-bottom: 6px; }

/* ---------------------------------------------------------------- scrollytelling */
/* <div class="scrolly" data-scrolly><div class="scrolly-text"><div class="beat">…</div>×N</div>
   <div class="scrolly-media"><div class="sticky"><figure class="frame">…</figure>×N</div></div></div>
   motion.js marks the beat in the middle of the viewport .on and shows the frame with the same index. */
.scrolly { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; }
.scrolly-text .beat { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s ease; }
.scrolly-text .beat.on { opacity: 1; }
.scrolly-text .beat:first-child { min-height: 64vh; }
.scrolly-media .sticky { position: sticky; top: calc(50vh - 330px); height: 660px; display: grid; place-items: center; }
.scrolly-media .frame { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .6s ease, transform .8s var(--ease); }
.scrolly-media .frame.on { opacity: 1; transform: none; }
@media (max-width: 960px) {
  .scrolly { grid-template-columns: 1fr; gap: 0; }
  .scrolly-media { display: none; }
  .scrolly-text .beat, .scrolly-text .beat:first-child { min-height: 0; opacity: 1; padding: 40px 0; }
  .scrolly-text .beat .m { display: block; margin-top: 32px; }   /* phones: the frame goes inline, inside the beat */
}
.scrolly-text .beat .m { display: none; }

/* ---------------------------------------------------------------- tabs */
/* <div class="tabs" data-tabs="8000"><div role="tablist"><button role="tab">…</button>…</div><div class="panel">…</div>…</div> */
.tabs [role="tablist"] { display: flex; gap: 28px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs [role="tab"] { position: relative; padding: 0 0 16px; border: 0; background: none; color: var(--muted); font: 500 16.5px/1 var(--sans); cursor: pointer; white-space: nowrap; }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); }
.tabs [role="tab"]::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1.5px; width: 0; background: var(--ink); }
.tabs [role="tab"][aria-selected="true"]::after { width: 100%; animation: fill var(--tab-ms, 8000ms) linear; }
.tabs.paused [role="tab"][aria-selected="true"]::after { animation: none; }
@keyframes fill { from { width: 0; } to { width: 100%; } }
.tabs .panel { display: none; }
.tabs .panel.on { display: block; animation: rise .6s var(--ease); }

/* ---------------------------------------------------------------- accordion */
/* questions in serif; answers open smoothly where the browser can animate to auto height (Chrome 131+) */
.qa { border-top: 1px solid var(--line); interpolate-size: allow-keywords; }
.qa details { border-bottom: 1px solid var(--line); }
.qa details::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.qa details[open]::details-content { block-size: auto; }
.qa summary { position: relative; display: block; padding: 28px 56px 28px 0; color: var(--ink); font: 400 clamp(25px, 2.2vw, 31px)/1.18 var(--serif); letter-spacing: -.01em; cursor: pointer; list-style: none; transition: color .2s ease; }
.qa summary:hover { color: #fff; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 1.5px; background: var(--soft); transition: transform .3s var(--ease); }
.qa summary::after { transform: rotate(90deg); }
.qa details[open] summary::after { transform: rotate(0deg); }
.qa details > div { padding: 0 48px 34px 0; color: var(--soft); }
.qa details > div p { max-width: 660px; }
.qa details > div p + p { margin-top: 12px; }
.qa details > div a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: rgba(244, 245, 248, .35); }
.qa details > div a:hover { text-decoration-color: var(--ink); }
@media (max-width: 760px) { .qa summary { font-size: 23px; padding: 24px 40px 24px 0; } .qa details > div { padding-right: 0; padding-bottom: 28px; } }

/* ---------------------------------------------------------------- keep reading */
/* <nav class="next" aria-label="Keep reading"><a href><span class="t">One line in serif.</span><span class="more"><span>Label</span></span></a>×2</nav>
   the two pages a curious reader wants next, just before the closing band */
.next { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.next a { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 48px 48px 48px 0; color: var(--ink); text-decoration: none; }
.next a + a { padding-left: 48px; padding-right: 0; border-left: 1px solid var(--line); }
.next .t { max-width: 14em; font: 400 clamp(32px, 3.4vw, 50px)/1.04 var(--serif); letter-spacing: -.014em; text-wrap: balance; }
.next .more { margin-top: 0; }
.next a:hover .more::after { transform: translateX(4px); }
.next a:hover .more span { background-size: 100% 1px; }
.sec-next { padding-bottom: 40px; }
@media (max-width: 760px) {
  .next { grid-template-columns: 1fr; }
  .next a, .next a + a { padding: 36px 0; border-left: 0; }
  .next a + a { border-top: 1px solid var(--line); }
}

/* ---------------------------------------------------------------- quote */
.quote { max-width: 1040px; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0; font: 400 clamp(34px, 4.4vw, 64px)/1.1 var(--serif); letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.quote figcaption { margin-top: 32px; font-size: 16px; color: var(--muted); }
.quote figcaption b { color: var(--soft); font-weight: 500; }

/* ---------------------------------------------------------------- film dialog */
/* <button data-film="/path.mp4">…</button>: motion.js opens a full-screen player */
.film { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(4, 5, 8, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .35s ease; }
.film.on { opacity: 1; }
.film video { max-height: 88vh; max-width: 100%; width: auto; border-radius: 20px; box-shadow: 0 0 0 1px var(--line-2); }
.film button { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--ink); font-size: 22px; cursor: pointer; }

/* ---------------------------------------------------------------- closing band */
/* build.py adds it to every marketing page: the fog, one clean line of light (the waveform calmed), one sentence, the button */
.cta-band { position: relative; isolation: isolate; padding: 232px 0 208px; text-align: center; overflow: hidden; }
.cta-band .stage::before { opacity: .7; background-position: center 42%; }
.cta-band .stage::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(11, 13, 19, .4) 34%, rgba(11, 13, 19, .42) 64%, var(--bg-2) 100%),
  radial-gradient(60% 50% at 50% 52%, rgba(190, 225, 215, .1), transparent 70%); }
.cta-line { width: min(560px, 70%); height: 1px; margin: 0 auto 64px; background: linear-gradient(90deg, transparent, rgba(143, 213, 169, .85) 30%, rgba(220, 245, 230, .95) 50%, rgba(143, 213, 169, .85) 70%, transparent);
  box-shadow: 0 0 18px rgba(143, 213, 169, .45); }
.cta-band h2 { font-size: clamp(54px, 7.6vw, 124px); line-height: .92; letter-spacing: -.028em; }
.cta-band .actions { justify-content: center; margin-top: 52px; }
.cta-band .note { margin-top: 24px; font-size: 15px; color: var(--soft); }
@media (max-width: 760px) { .cta-band { padding: 156px 0 136px; } .cta-line { margin-bottom: 44px; } }

/* ---------------------------------------------------------------- footer */
.foot { position: relative; overflow: hidden; padding: 96px 0 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.foot .wrap { max-width: calc(var(--wide) + 2 * var(--pad)); }
.fgrid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 48px; }
.fbrand p { margin: 18px 0 24px; max-width: 260px; color: var(--muted); font-size: 15.5px; }
.foot h3 { margin-bottom: 18px; font: 500 13.5px/1 var(--sans); color: var(--ink); letter-spacing: .01em; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot li a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s ease; }
.foot li a:hover, .foot li a[aria-current="page"] { color: var(--ink); }
.fbottom { display: flex; gap: 24px; align-items: center; margin-top: 72px; padding: 24px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.fbottom > span:first-child { margin-right: auto; }
.fsocial { display: flex; gap: 20px; }
.fsocial a { color: var(--muted); text-decoration: none; transition: color .2s ease; }
.fsocial a:hover { color: var(--ink); }
.langtog { display: flex; gap: 8px; }
.langtog a { color: var(--muted); text-decoration: none; }
.langtog a[aria-current] { color: var(--ink); }
.fmark { margin: 0 auto -0.24em; text-align: center; font: 700 clamp(120px, 24vw, 380px)/1 "Bricolage", sans-serif; letter-spacing: -.05em; color: transparent;
  background: linear-gradient(180deg, rgba(244, 245, 248, .08), rgba(244, 245, 248, 0) 80%); -webkit-background-clip: text; background-clip: text; user-select: none; }
@media (max-width: 960px) { .fgrid { grid-template-columns: 1fr 1fr; } .fbrand { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- motion */
/* .reveal fades up once when it enters (motion.js adds .in); .d1-.d4 stagger. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1.2s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; } .js .reveal.d4 { transition-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- legal + reading pages (kind legal) */
.page { flex: 1; width: 100%; max-width: 780px; margin: 0 auto; padding: calc(72px + 96px) var(--pad) 96px; }
.page h1 { font-size: clamp(48px, 6.4vw, 80px); line-height: 1; }
.page .intro { margin-top: 24px; font-size: 20px; line-height: 1.6; color: var(--lead); }
.page .updated { margin: 16px 0 36px; font-size: 14px; color: var(--muted); }
.page h2 { margin: 64px 0 16px; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.08; }
.page h3 { margin: 30px 0 8px; font: 600 18px/1.35 var(--sans); }
.page p, .page li { font-size: 17px; line-height: 1.7; }
.page p + p { margin-top: 14px; }
.page ul, .page ol { margin: 12px 0 0; padding-left: 22px; }
.page li + li { margin-top: 6px; }
.page a { color: var(--ink); text-underline-offset: 3px; }
.page table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 15px; }
.page th, .page td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.page th { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .page { padding-top: calc(64px + 64px); } }
