/* Hallmark · checked: 2026-11-30 · genre: editorial (inferred) · surface: absolute
 * floor: 0 FAIL · fixed: 16 (7a, 12, 15, 19, 26a, 26b, 29, 34, 38iii, 44d, 48, 50, 54, 64, 67, 73) · structural: 3 printed (58, 59, 77)
 * built: the project · redesign: polish · v2.0.0 */
/* Hallmark · waive 7b · the stamp says surface: absolute and the QuantCorner tokens --surface and --on-primary are white · the owner asked for a white page on 2026-11-30 */
/* Hallmark · answered F4 · the buttons it pairs are orbit cards, eight icon buttons around the mark that name a quant term, and the hero keeps one filled action */
/* Hallmark · reworded "Access everything you need to run a first backtest" to "Ten lessons take you to a first backtest" · 19 names the cliche */
/* Hallmark · reworded "A price target" to "A forecast" · 54 folds the label above each circle into its heading */
/* Hallmark · reworded "One good-looking curve" to "A backtest" · 54 folds the label above each circle into its heading, the old line opens the paragraph */
/* Hallmark · dropped the digit strips "0 1 2 3 4 5 6 7 8 9" inside the counters · each counter now leaves only its landed number (29, 10, 4, 0), the figures themselves are unchanged */
/* Hallmark · reworded "D source: named sample: stated ta" to "Data" · 38iii, the chips were decoration inside the heading and now sit in an aria-hidden graphic */
/* QuantCorner landing page. Design System: QuantCorner "Lucid Current" (tokens dated 2026-12-02), applied 2026-12-03.
   Page background stays white at the owner's request (2026-11-30, confirmed 2026-12-03); Paper is used for tinted surfaces.
   Light pass 2026-12-03: white stays the main colour. Photos, Deep Ocean bands and dark code blocks gave way to
   Paper / Lagoon 50 surfaces; Lagoon Deep stays for actions and accents (Colour: 70–80% white/Paper, 8–12% brand).
   Layout, copy and motion are unchanged from the 2026-11-30 build. Fonts: Inter, Anuphan, Noto Sans Thai Looped and
   JetBrains Mono (OFL), subset from the design system's variable files and bundled locally. Icons: Tabler Icons 3.50.0 (MIT).
   Photos: Pixabay 1867636 and 2755908, see assets/img/SOURCES.md.
   Motion: transitions-dev tokens and recipes 18 (texts reveal), 26 (spinning counter), 27 (toggle). */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/inter-latin-var.woff2") format("woff2"); }
@font-face { font-family: "Anuphan"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/anuphan-latin-var.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-200B, U+200E-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Anuphan"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/anuphan-thai-var.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Sans Thai Looped"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("fonts/noto-sans-thai-looped-thai-var.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("fonts/jetbrains-mono-latin-var.woff2") format("woff2"); }

:root {
  /* Lucid Current roles (light). Names are the page's own; values come from the design tokens. */
  --canvas: #FFFFFF;            /* white page, owner's request */
  --surface: #FFFFFF;           /* qc-surface */
  --ink: #06181C;               /* Abyss, qc-text */
  --ink-2: #37555C;             /* qc-text-secondary */
  --primary: #097B89;           /* Lagoon Deep, qc-primary */
  --primary-variant: #074753;   /* qc-primary-pressed */
  --on-primary: #FFFFFF;
  --strong: #09496D;            /* Deep Ocean, qc-surface-strong */
  --lagoon: #0BA6AD;            /* Lagoon, large brand areas, Abyss text only */
  --cobalt: #2C46B8;            /* focus ring and second chart series */
  --teal-ink: #085F6E;          /* Lagoon 800, accent text that also sits on tinted surfaces */
  --teal-accent: #85CED0;       /* Aqua, accent on dark */
  --dark: #06181C;              /* Abyss */
  --on-dark: rgba(255, 255, 255, 0.87);
  --on-dark-2: rgba(255, 255, 255, 0.6);
  --tint: #F4FAFA;              /* Paper */
  --tint-2: #E6F6F7;            /* Lagoon 50, qc-surface-subtle */
  --rule: #D5E3E3;              /* qc-line */
  --line-strong: #6F8B91;       /* qc-line-strong */
  --disabled-bg: #E3EBEB;
  --text-disabled: #8CA2A6;
  --k06: rgba(6, 24, 28, 0.06);
  --k08: rgba(6, 24, 28, 0.08);
  --k10: rgba(6, 24, 28, 0.1);
  --k12: rgba(6, 24, 28, 0.12);
  --k16: rgba(6, 24, 28, 0.16);
  --k18: rgba(6, 24, 28, 0.18);
  --k20: rgba(6, 24, 28, 0.2);
  --k30: rgba(6, 24, 28, 0.3);
  --mask: #000;
  --focus: #2C46B8;             /* qc-focus-ring */
  --focus-on-dark: #96A2DC;     /* qc-focus-ring-on-dark */
  --on-primary-2: #FFFFFF;
  --primary-hover: #085F6E;
  --primary-tint: #E6F6F7;      /* secondary button hover */
  --primary-tint-2: #C7ECEE;    /* secondary button pressed */
  --teal-tint: #C7ECEE;         /* Lagoon 100 */
  --teal-deep: #074753;         /* Lagoon 900 */
  --track-off: #6F8B91;
  --dark-raised: #18353B;       /* dark surface-1 */
  --col-gap: clamp(32px, 5vw, 72px);
  /* Ordinary cards are flat: one visible boundary, no cast shadow. */
  --shadow-1: 0 0 0 1px var(--rule);
  --shadow-2: 0 0 0 1px var(--rule);
  --font: "Inter", "Noto Sans Thai Looped", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Anuphan", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Anuphan", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --pad: clamp(20px, 4.4vw, 64px);

  /* transitions-dev motion tokens */
  --duration-stagger: 40ms;
  --duration-micro: 80ms;
  --duration-quick: 150ms;
  --duration-fast: 250ms;
  --duration-medium: 350ms;
  --duration-slow: 400ms;
  --duration-very-slow: 500ms;
  --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: ease-in-out;
  --ease-out: ease-out;
  --ease-linear: linear;
  --distance-micro: 4px;
  --distance-base: 8px;
  --distance-medium: 12px;
  --distance-large: 30px;
  --blur-small: 2px;
  --blur-medium: 3px;
  --blur-large: 8px;
  /* Texts reveal */
  --stagger-dur: 500ms;
  --stagger-distance: 12px;
  --stagger-stagger: 40ms;
  --stagger-blur: 3px;
  --stagger-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Spinning counter */
  --reel-dur: 1400ms;
  --reel-cell: 1.3em;
  --reel-spin-blur: 3px;
  --reel-stagger: 90ms;
  --reel-ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* Toggle */
  --toggle-dur: 350ms;
  --toggle-travel: 0.62em;
  --toggle-ov1: 1px;
  --toggle-ov2: 0px;
  --toggle-track: 200ms;
  --toggle-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: var(--surface); padding: 12px 16px; border-radius: 8px; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--focus-on-dark); }
.on-primary :focus-visible, .on-primary:focus-visible { outline-color: var(--on-primary); }

.wrap { width: min(1240px, 100% - var(--pad) * 2); margin-inline: auto; }
.section { padding: clamp(80px, 13vh, 150px) 0; }

.h-page { font-size: clamp(32px, 4vw, 48px); line-height: 1.15; font-family: var(--display); font-weight: 700; letter-spacing: 0; text-wrap: balance; }
.h-display { font-size: clamp(40px, 6vw, 64px); line-height: 1.15; font-family: var(--display); font-weight: 700; letter-spacing: 0; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
.lede { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 46ch; }
/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; min-width: 88px; padding: 0 16px; border: 0; border-radius: 8px;
  font: 700 16px/1.2 var(--display); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--duration-quick) var(--ease-out), box-shadow var(--duration-fast) var(--ease-smooth-out), transform var(--duration-quick) var(--ease-out);
}
.btn .icon { width: 18px; height: 18px; transition: transform var(--duration-fast) var(--ease-smooth-out); }
.btn:hover .icon { transform: translate(2px, -2px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { background: var(--primary-variant); transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--disabled-bg); color: var(--text-disabled); box-shadow: none; cursor: not-allowed; pointer-events: none; }
.btn-on-surface { background: var(--surface); }
.btn-outlined:not(.btn-on-surface) { background: transparent; }
.btn-outlined { color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.btn-outlined:hover { background: var(--primary-tint); color: var(--primary-hover); }
.btn-outlined:active { background: var(--primary-tint-2); color: var(--teal-deep); transform: translateY(1px); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(14px, 2.2vw, 28px); pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav-brand {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--rule);
}
.nav-brand img { width: 28px; height: 28px; }

/* Texts reveal (transitions-dev 18). Hidden state only applies once JS is running. */
html.js .t-stagger-line {
  display: block;
  opacity: 0;
  transform: translateY(var(--stagger-distance));
  filter: blur(var(--stagger-blur));
  transition:
    opacity   var(--stagger-dur) var(--stagger-ease),
    transform var(--stagger-dur) var(--stagger-ease),
    filter    var(--stagger-dur) var(--stagger-ease);
  will-change: transform, opacity, filter;
}
html.js .t-stagger-line--2 { transition-delay: var(--stagger-stagger); }
html.js .t-stagger-line--3 { transition-delay: calc(var(--stagger-stagger) * 2); }
html.js .t-stagger-line--4 { transition-delay: calc(var(--stagger-stagger) * 3); }
html.js .t-stagger-line--5 { transition-delay: calc(var(--stagger-stagger) * 4); }
html.js .t-stagger.is-shown .t-stagger-line {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.t-stagger-line { display: block; }

/* Generic reveal for cards */
html.js [data-rise] {
  opacity: 0; transform: translateY(var(--distance-large));
  transition: opacity 700ms var(--ease-smooth-out), transform 700ms var(--ease-smooth-out);
  transition-delay: calc(var(--n, 0) * 90ms);
}
html.js .is-shown [data-rise], html.js [data-rise].is-shown { opacity: 1; transform: none; }

/* Letter-by-letter blur-in for section titles */
.chars .ch { display: inline-block; }
.chars .wd { display: inline-block; white-space: nowrap; }
html.js .chars .ch {
  opacity: 0; filter: blur(var(--blur-large)); transform: translateY(0.12em);
  transition: opacity 600ms var(--ease-smooth-out), filter 600ms var(--ease-smooth-out), transform 600ms var(--ease-smooth-out);
  transition-delay: calc(var(--c) * 26ms);
}
html.js .chars.is-shown .ch { opacity: 1; filter: blur(0); transform: none; }

/* Spinning counter (transitions-dev 26) */
.t-reel { display: inline-flex; align-items: center; height: var(--reel-cell); font-variant-numeric: tabular-nums; vertical-align: middle; }
.t-reel-col {
  position: relative; height: var(--reel-cell); overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, var(--mask) 22%, var(--mask) 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, var(--mask) 22%, var(--mask) 78%, transparent 100%);
}
.t-reel-strip { display: flex; flex-direction: column; will-change: transform, filter; }
.t-reel-digit { height: var(--reel-cell); display: flex; align-items: center; justify-content: center; }

/* Toggle (transitions-dev 27), decorative inside the paths headline */
.t-toggle {
  display: inline-block; position: relative; vertical-align: -0.12em;
  width: 1.46em; height: 0.84em; border-radius: 999px; margin-right: 0.18em;
  background: var(--track-off);
  transition: background var(--toggle-track) var(--toggle-ease);
}
.t-toggle[data-on="true"] { background: var(--primary); }
.t-toggle-thumb {
  position: absolute; left: 0.1em; top: 0.1em; width: 0.64em; height: 0.64em; border-radius: 50%;
  background: var(--surface); box-shadow: 0 1px 3px var(--k30);
  translate: 0 0; will-change: translate;
}
.t-toggle[data-on="true"] .t-toggle-thumb { translate: var(--toggle-travel) 0; }
.t-toggle.is-init[data-on="true"] .t-toggle-thumb { animation: t-toggle-on var(--toggle-dur) var(--toggle-ease) both; }
.t-toggle.is-init[data-on="false"] .t-toggle-thumb { animation: t-toggle-off var(--toggle-dur) var(--toggle-ease) both; }
@keyframes t-toggle-on {
  0% { translate: 0 0; }
  55% { translate: calc(var(--toggle-travel) + var(--toggle-ov1)) 0; }
  80% { translate: calc(var(--toggle-travel) - var(--toggle-ov2)) 0; }
  100% { translate: var(--toggle-travel) 0; }
}
@keyframes t-toggle-off {
  0% { translate: var(--toggle-travel) 0; }
  55% { translate: calc(0px - var(--toggle-ov1)) 0; }
  80% { translate: var(--toggle-ov2) 0; }
  100% { translate: 0 0; }
}

/* ───────── 1. Hero ───────── */
.hero { position: relative; height: 100svh; min-height: 660px; overflow: clip; }
.orbit {
  --orbit: min(54svh, 46vw, 560px);
  --card: calc(var(--orbit) * 0.21);
  position: absolute; left: 50%; top: 43%;
  width: var(--orbit); height: var(--orbit);
  transform: translate(-50%, calc(-50% - var(--hp, 0) * 60px)) scale(calc(1 + var(--hp, 0) * 0.16));
  perspective: 900px;
}
/* Soft Lagoon 50 panel behind the orbit (light pass: replaces the water photo). */
.hero-photo {
  position: absolute; left: 50%; top: 50%; max-width: none;
  width: calc(var(--orbit) + clamp(40px, 7vw, 112px)); height: calc(var(--orbit) + 24px);
  transform: translate(-50%, -50%); border-radius: 8px; background: var(--tint-2);
}
/* Short, wide viewports: keep the photo clear of the headline's first line. */
@media (max-height: 820px) and (min-width: 861px) {
  .hero-photo { width: calc(var(--orbit) + 24px); height: calc(var(--orbit) + 8px); }
}
.orbit-ring { position: absolute; inset: 0; z-index: 1; animation: orbit-spin 96s linear infinite; }
.orbit:hover .orbit-ring, .orbit:focus-within .orbit-ring { animation-play-state: paused; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.orbit-item {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform: rotate(calc(var(--i) * var(--step, 45deg))) translateY(calc(var(--orbit) * -0.5 + var(--card) * 0.5));
}
.orbit-pop { position: absolute; left: 0; top: 0; animation: orbit-in 1100ms var(--ease-smooth-out) both; animation-delay: calc(250ms + var(--i) * 70ms); }
@keyframes orbit-in {
  from { opacity: 0; transform: translateY(calc(var(--orbit) * 0.3)) scale(0.2) rotate(-40deg); }
  to { opacity: 1; transform: none; }
}
.orbit-card {
  position: absolute; left: calc(var(--card) * -0.5); top: calc(var(--card) * -0.5);
  width: var(--card); height: var(--card); padding: 0; border: 0; border-radius: 8px;
  display: grid; place-items: center; cursor: pointer;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 1px 2px var(--k08), 0 14px 28px var(--k12);
  transform: rotateX(var(--rx, 16deg)) rotateY(var(--ry, -18deg)) rotate(var(--rz, 0deg));
  transition: transform var(--duration-slow) var(--ease-smooth-out), box-shadow var(--duration-slow) var(--ease-smooth-out);
}
.orbit-card svg { width: 52%; height: 52%; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.orbit-card .fill { fill: currentColor; stroke: none; }
.orbit-card--dark { background: var(--dark); color: var(--on-dark); }
.orbit-card--tint { background: var(--tint-2); }
.orbit-card--purple { background: var(--surface); color: var(--primary); }
.orbit-card--teal { background: var(--teal-tint); color: var(--teal-deep); }
.orbit-card:hover, .orbit-card:focus-visible { transform: rotateX(0deg) rotateY(0deg) rotate(var(--rz, 0deg)) scale(1.14); }
.orbit-card:hover { box-shadow: 0 2px 4px var(--k10), 0 22px 40px var(--k18); }
.orbit-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 10px; width: calc(var(--orbit) * 0.46); text-align: center;
  padding: 14px 12px 10px; border-radius: 8px; background: var(--surface);
}
.orbit-mark {
  width: 56px; height: 56px; border-radius: 8px; background: var(--surface);
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px var(--rule);
  animation: core-in 900ms var(--ease-smooth-out) 150ms both;
}
.orbit-mark img { width: 32px; height: 32px; }
@keyframes core-in { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: none; } }
.orbit-caption {
  min-height: 4.4em; font-size: 13px; line-height: 1.45; color: var(--ink-2);
  transition: opacity var(--duration-quick) var(--ease-in-out), transform var(--duration-quick) var(--ease-in-out), filter var(--duration-quick) var(--ease-in-out);
}
.orbit-caption b { display: block; font-weight: 500; font-size: 14px; color: var(--ink); }
.orbit-caption.is-out { opacity: 0; transform: translateY(var(--distance-micro)); filter: blur(var(--blur-small)); }

.hero-terms {
  position: absolute; right: max(var(--pad), calc((100% - 1440px) / 2)); top: 43%; transform: translateY(-50%);
  height: 132px; overflow: hidden; text-align: right;
  font-size: 13px; line-height: 26px; color: var(--ink-2);
  -webkit-mask-image: linear-gradient(to bottom, transparent, var(--mask) 32%, var(--mask) 68%, transparent);
  mask-image: linear-gradient(to bottom, transparent, var(--mask) 32%, var(--mask) 68%, transparent);
}
.hero-terms ul { animation: terms-roll 20s linear infinite; }
@keyframes terms-roll { to { transform: translateY(var(--roll, -208px)); } }

.hero-bottom {
  position: absolute; left: max(var(--pad), calc((100% - 1440px) / 2)); right: max(var(--pad), calc((100% - 1440px) / 2)); bottom: clamp(24px, 5.5vh, 56px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: var(--col-gap); align-items: end;
}
.hero h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.15; font-family: var(--display); font-weight: 700; letter-spacing: 0; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
.hero-side { display: grid; gap: 18px; justify-items: start; }
.hero-side p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.hero-side p strong { color: var(--ink); font-weight: 500; }

/* ───────── 2. The difference ───────── */
.diff-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: var(--col-gap); align-items: start; }
.diff-head .t-stagger { display: grid; gap: 18px; justify-items: start; }
.metric-label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.metric-value { margin: 10px 0 12px; font-size: clamp(40px, 6vw, 64px); line-height: 1.15; font-family: var(--display); font-weight: 700; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.metric-value small { font-size: 0.42em; font-family: var(--display); font-weight: 700; letter-spacing: 0; color: var(--ink-2); }
.metric-desc { font-size: 16px; line-height: 1.5; }
.metric-source { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.diff-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vh, 72px); }
.diff-card { border-radius: 8px; padding: clamp(22px, 2.6vw, 34px); min-height: 460px; display: flex; flex-direction: column; gap: 24px; }
.diff-card--them { background: var(--tint); }
.diff-card--us { background: var(--surface); box-shadow: var(--shadow-2); }
.diff-card-head { display: flex; align-items: center; gap: 12px; font: 700 18px/1.4 var(--display); }
.diff-tile { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; background: var(--tint-2); color: var(--ink-2); }
.diff-tile img { width: 24px; height: 24px; }
.diff-card--us .diff-tile { background: var(--tint); box-shadow: inset 0 0 0 1px var(--rule); }
.diff-body { flex: 1; display: grid; place-items: center; }
.diff-foot { font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 40ch; }
.tip { width: min(340px, 100%); background: var(--surface); border-radius: 8px; padding: 22px; box-shadow: var(--shadow-1); display: grid; gap: 16px; transform: rotate(-2deg); }
.tip-chip { justify-self: start; font: 500 13px/1 var(--font); padding: 6px 8px; border-radius: 4px; background: var(--tint-2); color: var(--teal-deep); }
.tip-quote { font-size: 22px; line-height: 1.25; font-family: var(--display); font-weight: 700; letter-spacing: 0; }
.tip-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tip-tags li { font-size: 13px; padding: 5px 8px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-2); }
.evidence { width: min(400px, 100%); display: grid; gap: 0; border-radius: 8px; background: var(--tint); box-shadow: inset 0 0 0 1px var(--rule); overflow: hidden; }
.evidence > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 14px 18px; }
.evidence > div + div { border-top: 1px solid var(--rule); }
.evidence dt { font: 500 13px/1.6 var(--font); color: var(--teal-ink); }
.evidence dd { font-size: 14px; line-height: 1.45; }

/* ───────── Pinned sections ───────── */
.pin { position: relative; --p: 0; }
html.pinning .pin { height: calc(var(--len, 3) * 100svh); }
html.pinning .pin-stage { position: sticky; top: 0; height: 100svh; overflow: clip; }

/* ───────── 3. Who is it for ───────── */
.who-track { display: flex; flex-wrap: wrap; gap: 16px; padding: 24px var(--pad) 72px; }
.who-title { width: 100%; padding: 40px 0 16px; }
.who-card {
  width: 100%; min-height: 340px; border-radius: 8px; padding: clamp(22px, 3vw, 40px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  background: var(--surface); box-shadow: var(--shadow-1);
}
.who-card h3 { font-size: clamp(26px, 3vw, 40px); line-height: 1.15; font-family: var(--display); font-weight: 700; letter-spacing: 0; }
.who-card p { margin-top: 14px; font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 34ch; }
.who-card--tint { background: var(--tint); box-shadow: none; }
.who-card--teal { background: var(--teal-tint); box-shadow: none; }
.who-card--primary { background: var(--tint-2); color: var(--ink); box-shadow: none; }
.who-card--primary p { color: var(--ink-2); }
html.pinning .who-track {
  flex-wrap: nowrap; gap: 20px; width: max-content; height: 100%;
  padding: 84px var(--pad) 28px 0; transform: translate3d(var(--x, 0px), 0, 0); will-change: transform;
}
html.pinning .who-title { flex: none; width: 46vw; padding: 0 0 0 var(--pad); display: grid; align-content: center; }
html.pinning .who-card { flex: none; width: min(60vw, 780px); min-height: 0; }
.pill { width: clamp(150px, 15vw, 200px); aspect-ratio: 5 / 3; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--dark); color: var(--teal-accent); }
.pill svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pill--light { background: var(--surface); color: var(--primary); box-shadow: inset 0 0 0 1px var(--rule); }
.pill--tint { background: var(--surface); color: var(--teal-ink); }
.pill--white { background: var(--surface); color: var(--primary); }
.pill .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pill-draw 4.2s var(--ease-in-out) infinite; }
@keyframes pill-draw { 0% { stroke-dashoffset: 1; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.pill .bar { fill: currentColor; stroke: none; transform-box: fill-box; transform-origin: 50% 100%; animation: pill-bar 3.2s var(--ease-in-out) infinite; animation-delay: calc(var(--b) * -0.5s); }
@keyframes pill-bar { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1); } }
.pill .dot { fill: currentColor; stroke: none; animation: pill-dot 4.2s var(--ease-out) infinite; animation-delay: calc(var(--b) * 0.18s); }
@keyframes pill-dot { 0% { opacity: 0; } 12%, 88% { opacity: 1; } 100% { opacity: 0; } }
.pill-type { font: 500 clamp(22px, 2.2vw, 30px)/1 var(--mono); letter-spacing: 0; }
.pill-type i { font-style: normal; animation: pill-blink 1.1s steps(1) infinite; }
@keyframes pill-blink { 50% { opacity: 0; } }

/* ───────── 4. Access ───────── */
.access { background: var(--tint); border-radius: 8px; padding: clamp(24px, 4vw, 56px); }
.access-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: var(--col-gap); align-items: end; padding-bottom: clamp(28px, 5vh, 56px); border-bottom: 1px solid var(--rule); }
.access-top .t-stagger { display: grid; gap: 18px; justify-items: start; }
.access-note { background: var(--surface); border-radius: 8px; padding: 20px; display: grid; gap: 14px; justify-items: start; box-shadow: var(--shadow-1); }
.access-note-head { display: flex; gap: 12px; align-items: start; }
.access-note-head .icon { color: var(--teal-ink); margin-top: 2px; }
.access-note b { display: block; font-size: 16px; font-weight: 500; }
.access-note span { display: block; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.access-bottom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 320px); gap: var(--col-gap); padding-top: clamp(28px, 5vh, 56px); align-items: start; }
.stat-value { font-size: clamp(40px, 5vw, 60px); line-height: 1.15; font-family: var(--display); font-weight: 700; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.stat-label { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--ink-2); max-width: 22ch; }
.access-aside b { display: block; font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.access-aside p { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.access-aside code { font: 500 13px var(--mono); color: var(--ink); }

/* ───────── 5 + 6. Counter stages ───────── */
.count-stage { display: grid; place-content: center; justify-items: center; text-align: center; gap: 18px; padding: 96px var(--pad) 40px; }
.count-stage .lede { max-width: 50ch; }
.count-line, html.js .count-line.t-stagger-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 0.26em; }
html.pinning .count-stage { position: absolute; inset: 0; padding: 0 var(--pad); }

.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 15vw, 200px), 1fr)); gap: 12px; padding: 0 var(--pad) 72px; }
.wall-col, .wall-col > ul { display: contents; }
html.pinning .wall-col > ul { display: grid; gap: 16px; }
.term {
  aspect-ratio: 4 / 3; border-radius: 8px; padding: clamp(12px, 1.3vw, 18px); min-width: 0; overflow-wrap: break-word;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--surface); box-shadow: var(--shadow-1);
  font-size: clamp(13px, 1.4vw, 21px); line-height: 1.15; font-family: var(--display); font-weight: 700; letter-spacing: 0;
}
.term small { font: 400 13px/1 var(--font); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.term--dark { background: var(--dark); color: var(--on-dark); box-shadow: none; }
.term--dark small { color: var(--on-dark-2); }
html.pinning #terms, html.pinning .pin--wall { --q: clamp(0, calc((var(--p) - 0.06) / 0.8), 1); }
html.pinning #terms .count-stage, html.pinning .pin--wall .count-stage { opacity: calc(1 - clamp(0, calc((var(--p) - 0.28) / 0.16), 1)); }
html.pinning .wall { position: absolute; inset: 0; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; padding: 0 24px; align-items: start; }
html.pinning .wall-col {
  display: grid; gap: 16px; align-content: start;
  transform: translate3d(0, calc((1 - var(--q)) * 104svh * var(--k) - var(--q) * var(--out)), 0);
  will-change: transform;
}

.scatter { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; padding: 0 var(--pad) 72px; }
.lesson {
  background: var(--surface); border-radius: 8px; padding: 16px 18px 18px; box-shadow: var(--shadow-2);
  display: grid; gap: 10px; align-content: start;
}
.lesson small { font: 500 13px/1 var(--font); font-variant-numeric: tabular-nums; color: var(--teal-ink); }
.lesson p { font-size: 16px; line-height: 1.5; font-weight: 500; }
.lesson--last { box-shadow: 0 0 0 2px var(--primary); }
html.pinning #lessons .count-stage, html.pinning .pin--scatter .count-stage { opacity: calc(1 - clamp(0, calc((var(--p) - 0.2) / 0.2), 1) * 0.9); }
html.pinning .scatter { position: absolute; inset: 0; display: block; padding: 0; }
html.pinning .lesson {
  --r: clamp(0, calc((var(--p) - 0.16 - var(--d)) / 0.26), 1);
  --u: clamp(0, calc((var(--p) - 0.74) / 0.26), 1);
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  width: clamp(200px, 17.5vw, 260px);
  opacity: var(--r);
  transform:
    translate(-50%, -50%)
    translate3d(calc((50 - var(--x)) * (1 - var(--r)) * 1vw), calc((50 - var(--y)) * (1 - var(--r)) * 1svh - var(--u) * var(--k) * 60svh), 0)
    scale(calc(0.3 + 0.7 * var(--r)));
  will-change: transform, opacity;
}

/* ───────── 7. Circles ───────── */
.circles-stage { display: grid; gap: 28px; padding: 72px var(--pad); }
.circles-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; justify-items: center; }
.circle {
  --d: min(84vw, 31vw + 120px, 400px);
  width: var(--d); height: var(--d); border-radius: 50%; padding: 12%;
  display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.circle h3 { font-size: 23px; line-height: 1.15; font-family: var(--display); font-weight: 700; letter-spacing: 0; }
html.pinning .circle h3 { font-size: clamp(22px, 2.3vw, 32px); }
.circle p { font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 30ch; }
.circle--primary { background: var(--tint-2); color: var(--ink); box-shadow: inset 0 0 0 2px var(--primary); }
.circle--primary p { color: var(--ink-2); }
html.pinning .circles-stage { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; padding: 0; gap: 0; }
html.pinning .circles-title { padding-left: var(--pad); }
html.pinning .circles-col { position: relative; display: block; height: 100%; }
html.pinning .circle {
  --d: min(68svh, 42vw);
  position: absolute; left: 50%; top: 50%; margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2);
  transform: translate3d(0, calc((var(--n) - var(--p) * var(--last, 2)) * (var(--d) + 7svh)), 0);
  will-change: transform;
}

/* ───────── 8. Big word ───────── */
.big-stage { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; align-content: center; gap: 28px; padding: 72px var(--pad); }
.big-word {
  display: flex; align-items: center; gap: 0.03em;
  font-family: var(--display); font-size: min(27vw, 50svh); line-height: 0.9; font-weight: 700; letter-spacing: -0.02em; color: var(--ink);
}
.big-tile { position: relative; width: 0.74em; height: 0.66em; margin: 0 0.02em 0 0.04em; isolation: isolate; align-self: center; translate: 0 0.06em; }
.big-face { position: absolute; inset: 0; border-radius: 8px; background: var(--surface); box-shadow: 0 0 0 1px var(--rule); overflow: hidden; }
.big-face svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 5; }
.big-split { stroke: var(--line-strong); stroke-width: 2; }
.big-in { stroke: var(--primary); }
.big-oos { stroke: var(--cobalt); }
.big-chip {
  position: absolute; left: -6%; top: 0.04em; z-index: -1; padding: 0.028em 0.042em; border-radius: 4px;
  background: var(--dark); color: var(--on-dark); box-shadow: var(--shadow-2); white-space: nowrap;
  font-family: var(--font); font-weight: 500; letter-spacing: 0; line-height: 1;
  transform: translate3d(0, -0.27em, 0) rotate(-6deg);
}
.big-chip span { display: block; font-size: clamp(10px, 0.05em, 22px); line-height: 1.3; }
.big-chip--2 { left: 38%; background: var(--surface); color: var(--ink); transform: translate3d(0, -0.13em, 0) rotate(5deg); }
.big-sub { text-align: center; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; justify-items: center; width: 100%; min-width: 0; }
.big-sub b { font-size: 16px; font-weight: 500; }
.big-sub p { font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: min(46ch, 100%); }
html.pinning #data, html.pinning .pin--big { --e: clamp(0, calc(var(--p) / 0.42), 1); --f: clamp(0, calc((var(--p) - 0.3) / 0.4), 1); }
html.pinning .big-stage { padding: 0; display: block; }
html.pinning .big-word {
  position: absolute; left: 50%; top: 44%;
  transform: translate(-50%, -50%) translate3d(calc((1 - var(--e)) * -30vw), calc((1 - var(--e)) * 38svh), 0) scale(calc(0.12 + 0.88 * var(--e)));
  will-change: transform;
}
html.pinning .big-chip { transform: translate3d(0, calc(var(--f) * -0.27em), 0) rotate(calc(var(--f) * -6deg)); }
html.pinning .big-chip--2 { transform: translate3d(0, calc(var(--f) * -0.13em), 0) rotate(calc(var(--f) * 5deg)); }
html.pinning .big-oos { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--f)); }
html.pinning .big-sub { position: absolute; left: 0; right: 0; bottom: 9svh; padding: 0 var(--pad); opacity: clamp(0, calc((var(--p) - 0.5) / 0.2), 1); transform: translateY(calc((1 - clamp(0, calc((var(--p) - 0.5) / 0.2), 1)) * 12px)); }

/* ───────── 9. Ready ───────── */
.ready { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--col-gap); align-items: center; min-height: 72svh; }
.ready .t-stagger { display: grid; gap: 18px; justify-items: start; }
.fan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.step {
  border-radius: 8px; padding: 20px; background: var(--surface); box-shadow: var(--shadow-2);
  display: grid; gap: 12px; rotate: calc((var(--n) - 1.5) * 0.8deg);
  transition: translate var(--duration-fast) var(--ease-smooth-out), box-shadow var(--duration-fast) var(--ease-smooth-out);
}
.step, .step > * { min-width: 0; }
.step:nth-child(even) { margin-top: 56px; }
.step:nth-child(odd):not(:first-child) { margin-top: -40px; }
.step:hover { translate: 0 -8px; box-shadow: 0 0 0 1px var(--line-strong); }
.step small { font: 500 13px/1 var(--font); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.step h3 { font-size: 21px; line-height: 1.2; font-family: var(--display); font-weight: 700; letter-spacing: 0; }
.step pre { margin: 0; padding: 12px 14px; border-radius: 8px; background: var(--tint); color: var(--ink); font: 400 13px/1.65 var(--mono); white-space: pre-wrap; overflow-wrap: break-word; }
.step pre b { font-weight: 500; color: var(--teal-ink); }
.step--dark { background: var(--dark); color: var(--on-dark); }
.step--dark small { color: var(--on-dark-2); }
.step--dark pre { background: var(--dark-raised); color: var(--on-dark); }
.step--dark pre b { color: var(--teal-accent); }

/* ───────── 10. Paths ───────── */
/* Closing band: Paper, white plates (light pass: replaces the coastline photo and Deep Ocean). */
.paths { position: relative; overflow: clip; background: var(--tint); padding: clamp(88px, 15vh, 170px) 0; }
.paths-inner { position: relative; width: min(860px, 100% - var(--pad) * 2); margin-inline: auto; }
.paths-head { background: var(--surface); box-shadow: var(--shadow-1); border-radius: 8px; padding: clamp(20px, 3.2vw, 40px); margin-bottom: 16px; }
.paths-title { margin: 0; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.15; font-family: var(--display); font-weight: 700; letter-spacing: 0; color: var(--ink-2); }
.paths-title .w { display: inline-block; }
.paths-title .w--hi { color: var(--ink); }
html.js .paths-title .w, html.js .paths-title .t-toggle {
  opacity: 0; filter: blur(6px); transform: translate(0.3em, 0.3em);
  transition: opacity 700ms var(--ease-smooth-out), filter 700ms var(--ease-smooth-out), transform 700ms var(--ease-smooth-out), background var(--toggle-track) var(--ease-out);
  transition-delay: calc(var(--w) * 70ms);
}
html.js .paths-head.is-shown .w, html.js .paths-head.is-shown .t-toggle { opacity: 1; filter: blur(0); transform: none; }
.paths-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.path { border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 18px; background: var(--surface); box-shadow: var(--shadow-1); min-height: 420px; }
.path--quiet { background: var(--tint-2); box-shadow: none; }
.path-name { font: 700 16px/1.2 var(--display); }
.path-big { font-size: 34px; line-height: 1.15; font-family: var(--display); font-weight: 700; letter-spacing: 0; }
.path-desc { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.path ul { display: grid; gap: 10px; flex: 1; align-content: start; }
.path li { display: flex; gap: 10px; align-items: start; font-size: 14px; line-height: 1.45; }
.path li .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--teal-ink); }
.path-note { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.path .btn { align-self: stretch; }

/* Footer: white, Abyss logo, underlined links (light pass) */
.footer { padding: 56px 0 64px; background: var(--surface); color: var(--ink); border-top: 1px solid var(--rule); }
.footer-row { display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; align-items: start; }
.footer-logo { width: 144px; height: 32px; }
.footer-text { display: grid; gap: 6px; font-size: 14px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.footer-text p:first-child { color: var(--ink); }
.footer-text a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.footer-text a:hover { text-decoration-thickness: 2px; }

/* ───────── Narrow layout ───────── */
@media (max-width: 860px) {
  .orbit { --orbit: min(76vw, 42svh); top: 33%; }
  .orbit-caption { font-size: 13px; }
  .hero-terms { display: none; }
  .hero-bottom { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hero-side p { max-width: 44ch; }
  .diff-head, .access-top, .ready { grid-template-columns: minmax(0, 1fr); }
  .diff-cards, .paths-cards { grid-template-columns: minmax(0, 1fr); }
  .diff-card { min-height: 0; }
  .access-bottom { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .access-aside { grid-column: 1 / -1; }
  .fan { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .step, .step:nth-child(even), .step:nth-child(odd):not(:first-child) { rotate: 0deg; margin-top: 0; }
  .path { min-height: 0; }
  .big-word { font-size: 28vw; }
  .big-chip { display: none; }
  .nav { background: var(--surface); box-shadow: 0 1px 0 var(--rule); padding-block: 8px; }
  .nav-brand { background: transparent; box-shadow: none; }
  .step pre { font-size: 13px; }
}
@media (max-width: 520px) {
  .access-bottom { grid-template-columns: minmax(0, 1fr); }
  .evidence > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ───────── Reduced motion: everything is present and still ───────── */
@media (prefers-reduced-motion: reduce) {
  .t-stagger-line { transition: none !important; }
  .t-reel-strip { transition: none !important; filter: none !important; }
  .t-toggle-thumb { animation: none !important; }
  html.js .t-stagger-line, html.js [data-rise], html.js .chars .ch, html.js .paths-title .w, html.js .paths-title .t-toggle {
    opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important;
  }
  .orbit-ring, .orbit-pop, .orbit-mark, .hero-terms ul, .pill .draw, .pill .bar, .pill .dot, .pill-type i { animation: none !important; }
  .pill .draw { stroke-dashoffset: 0; }
  .orbit-card, .step, .btn, .btn .icon, .orbit-caption { transition: none !important; }
}
