/* From Coder to Shipper — Morrow design system, with AIGU violet as the one accent.
   Dark tone for the story sections, paper tone where people read and decide.
   One grotesk at weight 500 for text, KH Interference Bold for headlines, a square-pixel halftone instead of imagery,
   hard corners everywhere except the macOS-style windows, no shadows. */

@font-face { font-family: "Overused Grotesk"; src: url("fonts/OverusedGrotesk-VF.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "KH Interference"; src: url("fonts/KHInterferenceTRIAL-BoldVN.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ── Tokens ─────────────────────────────────────────────────────────── */
:root {
  --font-sans: "Overused Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-head: "KH Interference", "Overused Grotesk", ui-sans-serif, system-ui, sans-serif;
  --lh-head: 1.16;          /* leaves room for dots below and stacked Vietnamese marks between lines */
  --ls-head: 0.04em;        /* the horn on Ơ and Ư hangs 50 units past its cell, so any tighter and it runs into the next letter */
  --ws-head: -0.25em;       /* the face is monospaced, so its word space is a full letter wide */

  --void: #141414;          /* dark-tone ground */
  --paper: #f5f5f5;         /* light-tone ground */
  --white: #ffffff;
  --ink: #111111;           /* text on paper, 18:1 */
  --ink-soft: #686868;      /* secondary text on paper, 5.1:1 (5.6:1 on white) */
  --accent: #5b45e8;        /* AIGU violet in Morrow's single accent slot */
  --accent-deep: #4a35d1;   /* primary button hover only */
  --on-accent: #ffffff;     /* text and icons on violet, 6:1 */
  --rule: #0000001f;
  --field: #1111110d;
  --ring: #11111142;

  /* ZEN.Kaiz Foundation, from the Figma file: Spacing, Corner Radius, Breakpoint & Grids */
  --gap-3xs: 2px; --gap-2xs: 4px; --gap-xs: 8px; --gap-sm: 12px; --gap-md: 16px; --gap-lg: 24px;
  --gap-xl: 32px; --gap-2xl: 40px; --gap-3xl: 48px; --gap-giant: 64px; --gap-xgiant: 88px; --gap-2xgiant: 144px;
  --pad-3xs: 2px; --pad-2xs: 4px; --pad-xs: 8px; --pad-sm: 12px; --pad-md: 16px; --pad-lg: 20px;
  --pad-xl: 24px; --pad-2xl: 32px; --pad-3xl: 40px;
  --margin-comfortable: 24px; --margin-small: 20px; --gutter: 16px;
  --card-padding-md: 24px; --card-padding-sm: 16px;

  /* Page rhythm: steps of the gap scale, one step down at each breakpoint */
  --space-section: var(--gap-xgiant);
  --space-block: var(--gap-giant);
  --space-group: var(--gap-3xl);
  --space-stack: var(--gap-2xl);
  --lattice: 12px;

  --header-h: 48px;
  --cut: 32px;
  --cell-d: #2e2e2e;        /* solid so shared cell edges never double up */
  --cell-l: #e2e2e2;
  --container: 1512px;      /* desktop viewport-width */

  --t-display: clamp(3rem, 1.5rem + 3.3vw, 5.0625rem);
  --t-story: clamp(2.25rem, 3.55vw, 3.75rem);
  --t-story-title: clamp(2.125rem, 3.2vw, 3.375rem);
  --t-narrative: clamp(1.625rem, 1.2rem + 1.5vw, 2.25rem);
  --t-title: 1.75rem;
  --t-heading: 1.25rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-button: cubic-bezier(0.2, 1, 0.25, 1);
  --ease-swift: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --mbar-h: 0px;
}
/* Breakpoints: desktop 1024+, tablet 744 to 1023, mobile up to 743 */
@media (max-width: 1023px) {
  :root { --lattice: 10px; --card-padding-md: 20px; --space-section: var(--gap-giant); --space-block: var(--gap-3xl); --space-group: var(--gap-2xl); --space-stack: var(--gap-xl); }
}
@media (max-width: 743px) {
  :root { --lattice: 8px; --margin-comfortable: 20px; --margin-small: 16px; --gutter: 12px; --space-section: var(--gap-3xl); --space-block: var(--gap-2xl); --space-group: var(--gap-xl); --space-stack: var(--gap-lg); }
}

/* Tones: fg / fg-muted / line follow the section's ground */
.tone-dark { --fg: #ffffff; --fg-muted: #ffffff80; --line: #ffffff40; --hair: #ffffff1f; --dot: #ffffff38; background: var(--void); color: var(--fg); }
.tone-paper { --fg: #111111; --fg-muted: #11111173; --line: #0000002e; --hair: var(--rule); --dot: #11111133; background: var(--paper); color: var(--fg); }

/* ── Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
/* Overused Grotesk has a narrow word space (0.2em), too tight for short Vietnamese syllables. Set per element so it scales with type size. */
body, button, input, select, textarea { word-spacing: 0.06em; }
.term, .term * { word-spacing: 0; }
html { background: var(--void); scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; padding-bottom: var(--mbar-h); background: var(--paper); color: #fff; font: 500 1.0625rem/1.35 var(--font-sans); letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main:focus { outline: none; }
.tabular { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: fixed; left: 12px; top: -80px; z-index: 50; height: var(--header-h); padding: 0 var(--pad-lg); display: inline-flex; align-items: center; background: var(--accent); color: var(--on-accent); }
.skip:focus { top: 12px; }

/* Page frame: two hairlines on the content edges, over every section */
body::before { content: ""; position: fixed; inset: 0 max(var(--margin-comfortable), calc(50% - var(--container) / 2 + var(--margin-comfortable))); z-index: 14; border-inline: 1px solid #8080804d; pointer-events: none; }
/* Cut corner for solid panels */
.cut { clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut)); }

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--margin-comfortable); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

.hl { font-family: var(--font-head); font-weight: 700; line-height: var(--lh-head); word-spacing: var(--ws-head); letter-spacing: var(--ls-head); overflow-wrap: anywhere; text-wrap: balance; }
.muted { color: var(--fg-muted); }
.soft { color: var(--ink-soft); }
.eyebrow { display: flex; align-items: center; gap: var(--gap-xs); font-size: 0.75rem; line-height: 1.25; }
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--eyebrow-dot, currentColor); }
.tone-paper .eyebrow { color: var(--ink-soft); }

/* Halftone field of square pixels: pitch = --lattice, pixel colour = --dot */
.dots { background-image: conic-gradient(at 2px 2px, transparent 75%, var(--dot) 0); background-size: var(--lattice) var(--lattice); }

/* ── Button: rectangle with a flush arrow box on the left ────────────────────── */
.btn { display: inline-flex; align-items: center; gap: var(--gap-md); min-height: var(--header-h); padding: 0 var(--pad-xl) 0 0; border: 0; font: 500 1.125rem/1.25 var(--font-sans); letter-spacing: -0.005em; cursor: pointer; transition: background-color .3s var(--ease-button), box-shadow .3s var(--ease-button); }
.btn .box { width: var(--header-h); align-self: stretch; flex: none; display: grid; place-items: center; }
.btn .box svg { width: 18px; height: 18px; }
.btn .cap { display: block; font-size: 0.75rem; line-height: 1.25; opacity: .85; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary .box { background: #ffffff26; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-secondary { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn-secondary .box { box-shadow: inset -1px 0 0 var(--line); }
.btn-secondary:hover { box-shadow: inset 0 0 0 1px var(--fg); }
.btn-sm { min-height: 40px; gap: var(--gap-sm); font-size: 1rem; padding: 0 var(--pad-md) 0 0; }
.btn-sm .box { width: 40px; }
.btn-sm .box svg { width: 16px; height: 16px; }

/* ── Header: one bar on the page frame, logo and links left, actions right ── */
.site-header { position: fixed; inset: 0 0 auto; z-index: 20; pointer-events: none; }
.site-nav { height: 96px; display: flex; align-items: center; }
.bar { flex: 1; min-width: 0; height: var(--header-h); display: flex; background: #141414e6; box-shadow: inset 0 0 0 1px #ffffff40; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); pointer-events: auto; }
.ctl { height: var(--header-h); min-width: var(--header-h); padding: 0 var(--pad-md); display: inline-flex; align-items: center; justify-content: center; gap: var(--gap-xs); border: 0; background: #141414b3; color: #fff; box-shadow: inset 0 0 0 1px #ffffff40; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); font: 500 1rem/1 var(--font-sans); letter-spacing: -0.005em; cursor: pointer; transition: background-color .3s var(--ease-out); }
.ctl svg { width: 20px; height: 20px; flex: none; }
.ctl:hover { background: #262626e6; }
.ctl-accent { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.ctl-accent:hover { background: var(--accent-deep); }
.bar .ctl:not(.ctl-accent) { background: none; box-shadow: inset 1px 0 0 #ffffff40; -webkit-backdrop-filter: none; backdrop-filter: none; }
.bar .ctl:not(.ctl-accent):hover { background: #ffffff14; }
.bar .logo { padding: 0 var(--pad-md) 0 var(--pad-sm); box-shadow: none; font-size: 1.25rem; letter-spacing: -0.03em; }
.logo svg { width: 22px; height: 26px; }
.ctls { margin-left: auto; display: flex; }
.lang-ctl { display: flex; box-shadow: inset 1px 0 0 #ffffff40; }
.lang-ctl a { min-width: var(--header-h); height: var(--header-h); display: grid; place-items: center; color: #ffffffa6; font: 500 1rem/1 var(--font-sans); letter-spacing: -0.005em; transition: background-color .3s var(--ease-out); }
.lang-ctl a[aria-current="true"] { background: #ffffff1f; color: #fff; }
.lang-ctl a:hover { color: #fff; }
.menu-btn { display: none; padding: 0 var(--pad-md) 0 var(--pad-sm); }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

/* ── Main nav: cells in the bar, the current page lit like the current language ── */
.main-nav { display: flex; box-shadow: inset -1px 0 0 #ffffff40; }
.main-nav > a, .nav-dd-btn { height: var(--header-h); display: inline-flex; align-items: center; gap: var(--gap-2xs); padding: 0 var(--pad-md); border: 0; background: none; box-shadow: inset 1px 0 0 #ffffff40; color: #ffffffa6; font: 500 1rem/1 var(--font-sans); letter-spacing: -0.005em; white-space: nowrap; cursor: pointer; transition: background-color .3s var(--ease-out), color .2s; }
.main-nav > a:hover, .nav-dd-btn:hover, .nav-dd.is-open .nav-dd-btn { background: #ffffff14; color: #fff; }
.main-nav > a[aria-current="page"] { background: #ffffff1f; color: #fff; }
.nav-caret { transition: transform .2s; }
.nav-dd.is-open .nav-caret { transform: rotate(180deg); }
.nav-dd { position: relative; }
.nav-dd-menu { position: absolute; left: 0; top: calc(100% - 1px); width: 440px; background: #141414f7; box-shadow: inset 0 0 0 1px #ffffff40; color: #fff; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .28s var(--ease-expo), visibility 0s .28s; }
.nav-dd.is-open .nav-dd-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .28s var(--ease-expo); }
.mm-item { display: block; padding: var(--pad-md); transition: background-color .15s; }
.mm-item + .mm-item, .mm-foot { box-shadow: inset 0 1px 0 #ffffff26; }
.mm-item:hover, .mm-item:focus-visible { background: #ffffff12; }
.mm-item b { display: block; font-weight: 500; line-height: 1.3; }
.mm-item small { display: block; margin-top: var(--gap-2xs); font-size: 0.8125rem; line-height: 1.45; color: #ffffffa6; }
.mm-foot { display: flex; }
.mm-foot a { flex: 1; min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--gap-xs); padding: 0 var(--pad-md); font-size: 0.875rem; transition: background-color .15s; }
.mm-foot a + a { box-shadow: inset 1px 0 0 #ffffff26; }
.mm-foot a:hover { background: #ffffff12; }

/* Menu panel: dark glass, numbered links */
.menu { position: absolute; top: 71px; right: var(--margin-comfortable); width: min(360px, calc(100vw - 2 * var(--margin-comfortable))); padding: var(--pad-sm); background: #141414eb; -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px); box-shadow: inset 0 0 0 1px #ffffff26; color: #fff; pointer-events: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s var(--ease-expo), transform .3s var(--ease-expo), visibility 0s .3s; }
.menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease-expo), transform .3s var(--ease-expo); }
.menu ol a { display: flex; align-items: center; gap: var(--gap-md); min-height: 52px; padding: 0 var(--pad-md); font-size: 1.5rem; letter-spacing: -0.03em; }
.menu ol a:hover { background: #ffffff12; }
.menu .idx { font-size: 0.75rem; letter-spacing: -0.005em; color: #ffffff80; width: 20px; }
.menu-foot { display: flex; flex-wrap: wrap; gap: var(--gap-xs); margin-top: var(--gap-sm); padding: var(--pad-sm) var(--pad-2xs) var(--pad-2xs); border-top: 1px solid #ffffff1f; }
.menu-foot .ctl { background: transparent; }
.menu-foot .ctl-accent { background: var(--accent); }
.menu-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--gap-sm); padding-top: var(--pad-xs); border-top: 1px solid #ffffff1f; }
.menu-links a { min-height: 44px; display: flex; align-items: center; padding: 0 var(--pad-md); font-size: 1rem; color: #ffffffcc; }
.menu-links a:hover { background: #ffffff12; color: #fff; }

/* ── Hero (dark) ────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding-top: calc(96px + var(--space-block)); padding-bottom: var(--space-stack); }
.hero-video { position: absolute; top: 0; left: 62%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transform: translateX(-50%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
/* The video melts into the page on the text side and into the numbers below */
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--void) 34%, #14141480 50%, transparent 62%), linear-gradient(0deg, var(--void), #14141499 28%, transparent 50%); }
.hero-main { position: relative; z-index: 1; align-items: end; row-gap: var(--space-stack); }
.hero-copy { grid-column: 1 / span 8; display: flex; flex-direction: column; gap: var(--gap-xl); }
.hero .eyebrow { --eyebrow-dot: var(--accent); color: var(--fg-muted); }
.hero-title { font-size: var(--t-display); }
.hero-sub { max-width: 38rem; color: var(--fg-muted); }
.hero-offer { grid-column: 10 / span 3; display: flex; flex-direction: column; gap: var(--gap-md); }
.offer-label { font-size: 0.875rem; color: #fff; } /* sits on the video */
.offer-price { font-size: var(--t-story-title); }
.offer-actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--gap-xs); margin-top: var(--gap-xs); }
@media (max-width: 1279px) { .hero-offer { grid-column: 9 / span 4; } } /* three columns are too narrow for the button labels */

/* ── Bento: quick facts (dark) ──────────────────────────────────────── */
.bento { padding-top: var(--space-section); }
.bento-grid { display: grid; grid-template-columns: 1.25fr 2fr; }
.card-d { background: #ffffff0d; box-shadow: inset 0 0 0 1px var(--cell-d); }
.lead { padding: var(--card-padding-md); display: flex; flex-direction: column; justify-content: space-between; gap: var(--gap-xl); min-height: 36rem; }
.avatars { display: flex; }
.avatar { width: 64px; height: 64px; display: grid; place-items: center; background: #2a2a2a; box-shadow: 0 0 0 3px var(--void); color: var(--fg-muted); font-size: 1.125rem; }
.avatar + .avatar { margin-left: -16px; background: #333; }
.avatar + .avatar + .avatar { background: #3b3b3b; }
.lead-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--gap-md); }
.lead-title { font-size: clamp(1.875rem, 1.3rem + 1.6vw, 2.75rem); }
.lead-body { max-width: 30rem; color: var(--fg-muted); }
/* Cell grids: no gaps, neighbours share one hairline */
.facts, .g3 { padding: 0 1px 1px 0; }
.facts > *, .g3 > * { margin: 0 -1px -1px 0; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-left: -1px; }
.fact { display: flex; flex-direction: column; }
.fact-top { position: relative; padding: var(--card-padding-md); }
.fact dt { font-size: var(--t-heading); letter-spacing: -0.03em; }
.fact .v { margin-top: var(--gap-sm); font-size: clamp(1.625rem, 1.1rem + 1.5vw, 2.75rem); letter-spacing: -0.03em; line-height: 1; }
.fact .s { margin-top: var(--gap-xs); font-size: 0.875rem; color: var(--fg-muted); }
.fact .i { position: absolute; top: 16px; right: 16px; font-size: 0.875rem; color: var(--fg-muted); }
.well { flex: 1; min-height: 120px; background: #ffffff08; box-shadow: inset 0 1px 0 var(--cell-d); }
.bars { height: 100%; display: flex; align-items: flex-end; gap: var(--gap-xs); padding: var(--pad-xl); }
.bars i { flex: 1; }
.bars i.lit { --dot: #ffffff; }

/* ── Course plan: drum + weeks (dark) ───────────────────────────────── */
.plan { padding-top: var(--space-section); }
.plan-grid { align-items: start; }
.drum { grid-column: 1 / span 5; position: sticky; top: 112px; height: min(55rem, calc(100vh - 160px)); overflow: hidden; container-type: inline-size; }
@media (max-width: 1279px) { .drum { grid-column: 1 / span 6; } }
.drum .dots { position: absolute; inset: 0; opacity: .6; -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.drum ol { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad-xl); }
.drum li { flex: none; height: 3.25rem; display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); white-space: nowrap; font-size: min(2.25rem, (100cqi - 172px) / 12.5); letter-spacing: -0.03em; transform-origin: 0 50%; transition: transform .35s var(--ease-out), opacity .35s var(--ease-out); }
.drum li span:last-child { font-size: 1rem; letter-spacing: -0.005em; color: var(--fg-muted); }
.drum .d6 { transform: scale(.5); opacity: .12; }
.drum .d5 { transform: scale(.55); opacity: .18; }
.drum .d4 { transform: scale(.6); opacity: .26; }
.drum .d3 { transform: scale(.66); opacity: .36; }
.drum .d2 { transform: scale(.74); opacity: .5; }
.drum .d1 { transform: scale(.84); opacity: .7; }
.drum .d0 { margin-inline: calc(-1 * var(--pad-xl)); padding-inline: var(--pad-xl); background: #ffffff12; }
.drum li span:first-child { display: flex; align-items: center; gap: var(--gap-sm); }
.drum li span:first-child::before { content: ""; width: 12px; height: 12px; flex: none; background: var(--accent); transform: scale(0); transition: transform .4s var(--ease-out); }
.drum .d0 span:first-child::before { transform: none; }
.plan-copy { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: var(--space-group); }
.story-title { font-size: var(--t-story); }
.sweep { background: linear-gradient(90deg, #fff, #ffffff66); -webkit-background-clip: text; background-clip: text; color: transparent; }
.weeks { display: flex; flex-direction: column; gap: var(--space-stack); }
.week summary { list-style: none; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--gap-md); cursor: default; }
.week summary::-webkit-details-marker { display: none; }
.week-head { display: flex; flex-direction: column; gap: var(--gap-md); }
.week .eyebrow { color: var(--fg-muted); }
.week-title { font-size: var(--t-narrative); }
.week .chev { display: none; width: 24px; height: 24px; transition: transform .3s var(--ease-swift); }
.days { margin-top: var(--gap-md); }
.day { display: grid; grid-template-columns: 6rem 1fr; gap: var(--gap-md); padding: var(--pad-sm) 0; border-top: 1px solid var(--hair); }
.day .n { padding-top: var(--pad-2xs); font-size: 0.875rem; color: var(--fg-muted); }
.day:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.day .d { color: var(--fg-muted); }
.plan-more { align-self: flex-start; }

/* ── The big picture: copy holds still beside the diagram ────────────── */
.bigpic { padding: var(--space-section) 0; }
.bigpic-copy { grid-column: 1 / span 5; align-self: start; position: sticky; top: 120px; display: flex; flex-direction: column; gap: var(--gap-md); }
.bigpic-title { font-size: var(--t-story-title); }
.bigpic-fig { grid-column: 6 / span 7; margin: 0; min-width: 0; }
.term pre.diagram { padding: var(--pad-lg) var(--pad-xl); font-size: clamp(0.75rem, 1vw, 0.9375rem); line-height: 1.6; overflow-x: auto; }
.diagram:focus-visible { outline-offset: -2px; }
.bigpic-fig figcaption { padding: var(--pad-lg) var(--pad-xl); border-top: 1px solid #ffffff12; font-size: 0.9375rem; line-height: 1.5; word-spacing: 0.06em; color: #ffffffa6; }

/* ── Paper sections ─────────────────────────────────────────────────── */
.section { padding-bottom: var(--space-section); }
.section-first { padding-top: var(--space-section); }
.card-l { background: var(--white); box-shadow: inset 0 0 0 1px var(--cell-l); }
.h2 { font-size: var(--t-story-title); }
.h2-sm { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); }

.audience { align-items: start; row-gap: var(--space-stack); }
.audience-copy { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: var(--gap-xl); }
.audience-copy .lead-p { max-width: 35rem; color: var(--ink-soft); }
.note { max-width: 35rem; padding: var(--card-padding-md); background: var(--field); color: var(--ink-soft); }
.note strong { font-weight: 500; color: var(--ink); }
.checks-card { grid-column: 7 / span 6; padding: var(--card-padding-md); display: flex; flex-direction: column; gap: var(--gap-lg); }
.checks-card h3 { font-size: var(--t-title); }
.checks li { display: flex; gap: var(--gap-md); align-items: flex-start; padding: var(--pad-sm) 0; border-top: 1px solid var(--rule); }
.check { width: 24px; height: 24px; flex: none; display: grid; place-items: center; background: var(--field); }
.check svg { width: 11px; height: 11px; }

.block-head { margin-bottom: var(--space-stack); }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mat-card { display: flex; flex-direction: column; }
.mat-card, .person { transition: box-shadow .3s var(--ease-out); }
.mat-card:hover, .person:hover { position: relative; z-index: 1; box-shadow: inset 0 0 0 1px var(--ring); }
.mat-art { height: 11.25rem; background-color: var(--field); box-shadow: inset 0 0 0 1px var(--cell-l); }
.mat-art.fade-x { -webkit-mask-image: linear-gradient(90deg, #000, #0004); mask-image: linear-gradient(90deg, #000, #0004); }
.mat-art.fade-y { -webkit-mask-image: linear-gradient(#000, #0003); mask-image: linear-gradient(#000, #0003); }
.mat-body { padding: var(--pad-md); display: flex; justify-content: space-between; align-items: flex-end; gap: var(--gap-md); }
.mat-body h3 { font-size: var(--t-heading); }
.mat-body p { margin-top: var(--gap-xs); font-size: 0.875rem; color: var(--ink-soft); }
.mat-body .i { font-size: 0.875rem; color: var(--ink-soft); }
.mentors { margin-top: var(--space-block); }
.person a { height: 100%; padding: var(--card-padding-md); display: flex; align-items: center; gap: var(--gap-md); }
.person img, .person .ph { width: 64px; height: 64px; flex: none; object-fit: cover; display: grid; place-items: center; background: var(--field); color: var(--ink-soft); }
.person .name { display: block; font-size: var(--t-heading); }
.person .role { display: block; margin-top: var(--gap-2xs); font-size: 0.875rem; color: var(--ink-soft); }
.quote { margin-top: -1px; padding: var(--card-padding-md); }
.quote blockquote { margin: 0; font-size: var(--t-narrative); letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
.quote figcaption { margin-top: var(--gap-md); font-size: 0.875rem; color: var(--ink-soft); }

/* Next class: Morrow's plan row */
.signup-head { display: flex; flex-direction: column; gap: var(--gap-md); margin-bottom: var(--space-stack); }
.signup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.signup-tile { position: relative; overflow: hidden; min-height: 23.75rem; padding: var(--card-padding-md); display: flex; flex-direction: column; justify-content: space-between; gap: var(--gap-lg); }
.signup-tile .dots { position: absolute; inset: 0; -webkit-mask-image: radial-gradient(80% 90% at 100% 100%, #000, transparent 70%); mask-image: radial-gradient(80% 90% at 100% 100%, #000, transparent 70%); }
.signup-tile > :not(.dots) { position: relative; }
.signup-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--gap-md); }
.signup-top h3 { font-size: var(--t-title); }
.signup-top p { margin-top: var(--gap-sm); max-width: 22rem; color: var(--fg-muted); }
.chip { height: 28px; padding: 0 var(--pad-sm); flex: none; display: inline-flex; align-items: center; background: #ffffff1a; font-size: 0.75rem; white-space: nowrap; }
.signup-price { font-size: var(--t-display); }
.signup-side { padding: var(--card-padding-md); display: flex; flex-direction: column; justify-content: space-between; gap: var(--gap-xl); }
.signup-side dl > div { display: flex; justify-content: space-between; gap: var(--gap-md); padding: var(--pad-md) 0; border-bottom: 1px solid var(--rule); }
.signup-side dl > div:last-child { border-bottom: 0; }
.signup-side dt { flex: none; color: var(--ink-soft); }
.signup-side dd { text-align: right; }
.signup-side dd a { text-decoration: underline; text-underline-offset: 3px; }
.signup-actions { display: flex; flex-wrap: wrap; gap: var(--gap-xs); }

/* FAQ */
.faq-grid { align-items: start; row-gap: var(--gap-md); }
.faq-side { grid-column: 1 / span 4; padding-top: var(--pad-3xl); display: flex; flex-direction: column; align-items: flex-start; gap: var(--gap-md); }
.faq-side h2 { font-size: var(--t-title); }
.faq-side p { max-width: 22rem; color: var(--ink-soft); }
.faq-card { grid-column: 5 / span 8; padding: var(--pad-xs) var(--card-padding-md); }
.faq + .faq { border-top: 1px solid var(--rule); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--gap-lg); padding: var(--pad-xl) 0; cursor: pointer; font-size: 1.375rem; letter-spacing: -0.03em; line-height: 1.1; }
.faq summary::-webkit-details-marker { display: none; }
.pm { width: 32px; height: 32px; flex: none; display: grid; place-items: center; background: var(--field); }
.pm svg { width: 16px; height: 16px; }
.faq[open] .pm .v { display: none; }
.faq p { max-width: 47.5rem; padding: 0 var(--pad-3xl) var(--pad-xl) 0; color: var(--ink-soft); }

/* Footer */
.site-footer { padding-bottom: var(--margin-comfortable); }
.cta-strip { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-lg); padding: var(--pad-3xl) var(--pad-2xl); background: var(--accent); color: var(--on-accent); transition: background-color .3s var(--ease-button); }
.cta-strip:hover { background: var(--accent-deep); }
.cta-copy { display: flex; flex-direction: column; gap: var(--gap-sm); max-width: 52rem; }
.cta-eyebrow { font-size: 0.875rem; opacity: .85; }
.cta-strip .hl { font-size: var(--t-story-title); }
.cta-go { display: inline-flex; align-items: center; gap: var(--gap-sm); flex: none; font-size: 1.125rem; }
.cta-go .box { width: 48px; height: 48px; display: grid; place-items: center; background: #ffffff26; }
.cta-go svg { width: 20px; height: 20px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--gap-xs) var(--gap-lg); padding-top: var(--pad-2xl); font-size: 0.875rem; color: var(--ink-soft); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 var(--gap-lg); }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-row p { display: flex; align-items: center; min-height: 44px; }

/* Sticky signup bar (phones) */
.mbar { display: none; }

/* ── Tablet ≤ 1023px ────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  /* Stacked: the flower gets its own band above the text */
  .hero { --hero-band: 340px; padding-top: var(--hero-band); }
  .hero-video { top: 48px; left: 50%; height: var(--hero-band); }
  .hero::after { background: linear-gradient(180deg, transparent calc(var(--hero-band) - 96px), var(--void) calc(var(--hero-band) + 16px)); }
  .hero-copy, .hero-offer { grid-column: 1 / -1; }
  .hero-offer { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: var(--gap-md) var(--gap-xl); }
  .offer-actions { flex-direction: row; flex-wrap: wrap; margin-top: 0; }
  .bento-grid { grid-template-columns: 1fr; }
  .facts { margin: -1px 0 0; }
  .lead { min-height: 0; }
  .drum { display: none; }
  .plan-copy { grid-column: 1 / -1; }
  .bigpic .grid12 { row-gap: var(--space-stack); }
  .bigpic-copy { grid-column: 1 / -1; position: static; }
  .bigpic-fig { grid-column: 1 / -1; }
  .term pre.diagram { font-size: 0.875rem; }
  .audience-copy, .checks-card { grid-column: 1 / -1; }
  .g3 { grid-template-columns: 1fr; }
  .faq-side, .faq-card { grid-column: 1 / -1; }
  .faq-side { padding-top: 0; }
  .ctl-portal { display: none; }
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .menu { max-height: calc(100vh - 88px); overflow-y: auto; }
  .signup { grid-template-columns: 1fr; }
  .signup-side { padding: var(--pad-xs) var(--card-padding-md) var(--card-padding-md); }
  .cta-strip { flex-direction: column; align-items: flex-start; }
}

/* ── Mobile ≤ 743px ─────────────────────────────────────────────────── */
@media (max-width: 743px) {
  :root { --mbar-h: 84px; --header-h: 44px; }
  html { scroll-padding-top: 80px; }
  body { font-size: 1rem; }
  .site-nav { height: 72px; }
  .ctl { padding: 0 var(--pad-sm); font-size: 0.9375rem; }
  .lang-ctl a { font-size: 0.9375rem; }
  .ctl-signup { display: none; }
  .menu-btn { padding: 0; }
  .menu-btn .label { display: none; }
  .menu { top: 57px; }
  .bar .logo { padding: 0 var(--pad-sm) 0 var(--pad-xs); font-size: 1.125rem; }

  .hero { --hero-band: 248px; }
  .hero-title { font-size: 3rem; }
  .hero-offer > div:first-child, .hero-offer .btn-primary { display: none; }

  .lead { gap: var(--gap-lg); }
  .term pre { padding: var(--pad-md); font-size: 0.6875rem; white-space: pre-wrap; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--gap-xl); }
  .stat dt { font-size: 0.875rem; }
  .chips li { height: 32px; padding: 0 var(--pad-sm); font-size: 0.8125rem; }
  .avatar { width: 44px; height: 44px; font-size: 0.875rem; }
  .avatar + .avatar { margin-left: -12px; }
  .lead-body { font-size: 1rem; }
  .fact-top { padding: var(--pad-sm); }
  .fact dt { font-size: 0.875rem; letter-spacing: -0.005em; color: var(--fg-muted); }
  .fact .v { font-size: 1.625rem; margin-top: var(--gap-xs); }
  .fact .s { font-size: 0.8125rem; margin-top: var(--gap-2xs); }
  .fact .i { display: none; }
  .well { flex: none; min-height: 0; height: 64px; }
  .bars { gap: var(--gap-2xs); padding: var(--pad-sm); }
  .bars i:nth-child(7) { display: none; }

  /* weeks collapse; the summary becomes the toggle */
  .weeks { gap: 0; }
  .week { border-top: 1px solid #ffffff26; }
  .week:last-child { border-bottom: 1px solid #ffffff26; }
  .week summary { align-items: center; padding: var(--pad-lg) 0; cursor: pointer; }
  .week-head { gap: var(--gap-xs); }
  .week .chev { display: block; }
  .week[open] .chev { transform: rotate(180deg); }
  .days { margin: 0 0 var(--gap-md); }
  .day { grid-template-columns: 4rem 1fr; gap: var(--gap-sm); padding: var(--pad-sm) 0; font-size: 1rem; }
  .day .n { font-size: 0.8125rem; padding-top: var(--pad-3xs); }

  .term pre.diagram { padding: var(--pad-md); font-size: 0.6875rem; white-space: pre; }
  .bigpic-fig figcaption { padding: var(--pad-md); }
  .checks-card { gap: var(--gap-sm); }
  .checks-card h3 { font-size: 1.375rem; }
  .checks li { gap: var(--gap-sm); padding: var(--pad-sm) 0; }
  .mat-card { flex-direction: row; align-items: stretch; }
  .mat-art { width: 88px; height: auto; flex: none; }
  .mat-body { flex: 1; }
  .mat-body h3 { font-size: 1.1875rem; }
  .mat-body p { margin-top: var(--gap-2xs); }
  .person img, .person .ph { width: 48px; height: 48px; font-size: 0.875rem; }
  .person .name { font-size: 1.125rem; }

  .signup-tile { min-height: 0; }
  .signup-top h3 { font-size: 1.375rem; }
  .signup-top p { font-size: 0.9375rem; margin-top: var(--gap-xs); }
  .signup-price { font-size: 3rem; }
  .signup-side { padding: var(--pad-xs) var(--pad-lg) var(--pad-lg); gap: var(--gap-md); }
  .signup-side dl > div { padding: var(--pad-sm) 0; font-size: 1rem; align-items: center; }
  .signup-side dd a { display: inline-flex; align-items: center; min-height: 44px; }
  .signup-actions { flex-direction: column; }
  .signup-actions .btn { width: 100%; }

  .faq-card { padding: var(--pad-2xs) var(--card-padding-md); }
  .faq summary { padding: var(--pad-md) 0; font-size: 1.1875rem; letter-spacing: -0.025em; gap: var(--gap-md); }
  .faq p { padding: 0 0 var(--pad-md); font-size: 1rem; }

  .cta-strip { padding: var(--pad-xl) var(--pad-lg); gap: var(--gap-md); }
  .cta-strip .hl { font-size: 2.125rem; }
  .cta-go .box { width: 44px; height: 44px; }

  .mbar { position: fixed; inset: auto 0 0; z-index: 15; display: block; pointer-events: none; }
  .mbar-inner { pointer-events: auto; box-shadow: inset 0 1px 0 #ffffff1f; }
  .mbar-inner { display: flex; align-items: stretch; justify-content: space-between; gap: var(--gap-sm); padding: 0 0 env(safe-area-inset-bottom, 0px) var(--margin-comfortable); background: #141414e6; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: #fff; }
  .mbar-text { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: var(--gap-3xs); }
  .mbar-text b { font-weight: 500; font-size: 0.9375rem; letter-spacing: -0.03em; }
  .mbar-text span { font-size: 0.75rem; color: #ffffff99; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mbar .btn { flex: none; min-height: 64px; padding: 0 var(--pad-lg) 0 0; font-size: 1rem; gap: var(--gap-sm); }
  .mbar .btn .box { width: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── Live-site content: hero tags, numbers, tech ticker, terminal ───── */
:root { --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; --accent-tint: #b4a8ff; --win-r: 12px; --win-bar: #2c2c2e; --win-red: #ff5f57; --win-yellow: #febc2e; --win-green: #28c840; }
.chips { display: flex; flex-wrap: wrap; gap: var(--gap-xs); }
.chips li { height: 36px; padding: 0 var(--pad-sm); display: inline-flex; align-items: center; box-shadow: inset 0 0 0 1px var(--line); font-size: 0.875rem; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-md) 0; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--gap-md); padding: var(--pad-xl) var(--pad-md) 0; border-top: 1px solid var(--line); box-shadow: inset 1px 0 0 var(--hair); }
.stat .n { display: block; font-size: clamp(3.5rem, 2rem + 5vw, 7.5rem); line-height: .9; }
.stat dt { max-width: 18rem; font-size: 0.9375rem; color: var(--fg-muted); }
.ticker { width: calc(100% - 2 * var(--margin-comfortable)); max-width: calc(var(--container) - 2 * var(--margin-comfortable)); margin: var(--space-stack) auto 0; padding: var(--pad-xl) 0; overflow: hidden; border-block: 1px solid var(--hair); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { width: max-content; padding-right: var(--pad-2xl); display: flex; align-items: center; gap: var(--gap-xl); font-size: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); letter-spacing: -0.03em; animation: ticker 48s linear infinite; }
.ticker i { font-style: normal; font-size: .45em; color: var(--accent-tint); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translate3d(-50%, 0, 0); } }

/* macOS-style window: the one rounded shape on these pages */
.term { background: #0b0b0b; border: 1px solid #ffffff1f; border-radius: var(--win-r); overflow: hidden; }
.term-bar { position: relative; height: 40px; padding: 0 var(--pad-md); display: flex; align-items: center; gap: var(--gap-xs); background: var(--win-bar); border-bottom: 1px solid #000; font-size: 0.8125rem; color: #ffffffa6; }
.term-bar i { width: 12px; height: 12px; border-radius: 50%; background: var(--win-red); box-shadow: inset 0 0 0 1px #0000001f; }
.term-bar i:nth-of-type(2) { background: var(--win-yellow); }
.term-bar i:nth-of-type(3) { background: var(--win-green); }
.term-bar span { position: absolute; inset: 0 80px; display: flex; align-items: center; justify-content: center; }
.term pre { margin: 0; padding: var(--pad-lg) var(--pad-xl); font: 400 0.875rem/1.75 var(--font-mono); letter-spacing: 0; color: #ffffffd9; white-space: pre; overflow: hidden; }
.term .ln { display: inline-block; }
.term b, .term em { font-weight: 400; font-style: normal; color: #ffffff8c; }
.term .out { color: #ffffffa6; }
.term .hi { color: var(--accent-tint); }
.caret { display: inline-block; width: .6em; height: 1.15em; margin-left: .35em; vertical-align: -.22em; background: var(--accent-tint); animation: blink 1.06s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.plan-head { display: flex; flex-direction: column; gap: var(--gap-md); }
.plan-intro { max-width: 36rem; color: var(--fg-muted); }

/* ── Motion ─────────────────────────────────────────────────────────────
   Start-states live under html.js-anim only (set in <head>, never under reduced motion),
   so without JS everything is visible. main.js adds .is-in / .is-split / .on. */

/* Hero intro: words rise out of a blur, then the rest */
.js-anim .hero-title:not(.is-split) { opacity: 0; }
.js-anim .hero-title .w { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(10px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js-anim .hero-video { opacity: 0; transition: opacity 1.2s var(--ease-out); }
.js-anim .hero-video.is-ready { opacity: 1; }
.js-anim [data-hero] { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
.js-anim .hero.is-in .hero-title .w, .js-anim .hero.is-in [data-hero] { opacity: 1; transform: none; filter: none; }

/* Scroll reveals */
.js-anim [data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out), box-shadow .3s var(--ease-out), background-color .4s var(--ease-out); transition-delay: var(--d, 0s); }
.js-anim [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* Fact cards: dotted bars grow from the floor */
.js-anim .fact .bars i { transform: scaleY(0); transform-origin: 50% 100%; transition: transform 1s var(--ease-out); transition-delay: calc(.3s + var(--j, 0) * 70ms); }
.js-anim .fact.is-in .bars i { transform: none; }
.bars i:nth-child(2) { --j: 1; } .bars i:nth-child(3) { --j: 2; } .bars i:nth-child(4) { --j: 3; }
.bars i:nth-child(5) { --j: 4; } .bars i:nth-child(6) { --j: 5; } .bars i:nth-child(7) { --j: 6; }

/* Terminal types itself once it is on screen */
.js-anim [data-term] .ln { clip-path: inset(0 100% 0 0); }
.js-anim [data-term] .ln.on { animation: type var(--t, .6s) steps(var(--n, 20), end) forwards; }
.js-anim [data-term] .ln.out.on { animation: type .35s var(--ease-out) forwards; }
.js-anim [data-term] .caret { opacity: 0; }
.js-anim .term.is-done .caret { opacity: 1; }
@keyframes type { to { clip-path: inset(0 0 0 0); } }

/* Course plan: the drum and the marked row follow the day you are reading; the title fills in as it scrolls past */
/* The band stays put as the reading line and the list steps one day at a time under it, so a whole day always settles on the band.
   `translate` carries the list along with the band and has no transition; `transform` is the step. */
.plan.is-tracking .drum ol { justify-content: flex-start; translate: 0 var(--band, 0px); will-change: transform; }
.js-anim .drum ol { transition: transform .35s var(--ease-out); }
/* Solid accent panel with a cut corner and a flush box for the day, like the buttons. Layers: the sheen main.js runs on each new day, the box, the panel. */
.plan.is-tracking .drum::before { content: ""; position: absolute; inset: 0 0 auto; height: 3.25rem; translate: 0 calc(var(--band, 0px) - 50%); background: linear-gradient(100deg, transparent 42%, #ffffff40 50%, transparent 58%) 130% 0 / 300% 100% no-repeat, linear-gradient(#00000040, #00000040) 100% 50% / 7rem 100% no-repeat, var(--accent); clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%, 0 16px); }
.plan.is-tracking .drum .d0 { margin-inline: 0; padding-inline: 0; background: none; color: var(--on-accent); }
.plan.is-tracking .drum .d0 span:last-child { color: var(--on-accent); }
.plan.is-tracking .drum li span:first-child::before { background: var(--on-accent); }
.plan.is-tracking .day { position: relative; isolation: isolate; padding-right: var(--pad-sm); }
.plan.is-tracking .day::before { content: ""; position: absolute; inset: 0 0 0 calc(-1 * var(--pad-sm)); z-index: -1; background: color-mix(in srgb, var(--accent) 26%, transparent); box-shadow: inset 4px 0 0 var(--accent); opacity: 0; transition: opacity .3s var(--ease-out); }
.plan.is-tracking .day.is-active::before { opacity: 1; }
.plan.is-tracking .day .t, .plan.is-tracking .day .n, .plan.is-tracking .day .d { transition: color .3s var(--ease-out); }
.plan.is-tracking .day .t { color: #ffffffb3; }
.plan.is-tracking .day.is-active .t, .plan.is-tracking .day.is-active .n { color: #fff; }
.plan.is-tracking .day.is-active .d { color: #ffffffb3; }
.plan.is-tracking .week.is-active .eyebrow { --eyebrow-dot: var(--accent); color: var(--fg); }
.js-anim .sweep { background: linear-gradient(90deg, #fff 0, #fff calc(var(--p, 0) * 100%), #ffffff59 calc(var(--p, 0) * 100% + 12%), #ffffff59 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Phone signup bar slides in once the hero has scrolled away */
.js-anim .mbar { transform: translateY(120%); visibility: hidden; transition: transform .5s var(--ease-expo), visibility 0s .5s; }
.js-anim .mbar.is-shown { transform: none; visibility: visible; transition: transform .5s var(--ease-expo); }

/* FAQ and phone weeks open smoothly where the browser supports it */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq::details-content, .week::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease-out), content-visibility .45s allow-discrete; }
  .faq[open]::details-content, .week[open]::details-content { block-size: auto; }
  .week::details-content { overflow-clip-margin: var(--pad-sm); }
}
.pm svg { transition: transform .4s var(--ease-out); }
.faq[open] .pm svg { transform: rotate(180deg); }

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .caret { animation: none !important; }
}

/* Responsive overrides for the blocks above (kept after them so they win the cascade) */
@media (max-width: 1023px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--gap-2xl); }
}
@media (max-width: 743px) {
  .stats-grid { row-gap: var(--gap-xl); }
  .stat dt { font-size: 0.875rem; }
  .chips li { height: 32px; padding: 0 var(--pad-sm); font-size: 0.8125rem; }
  .term pre { padding: var(--pad-md); font-size: 0.6875rem; white-space: pre-wrap; }
  .ticker { padding: var(--pad-md) 0; }
}

/* Printing never waits for scroll reveals */
@media print {
  .js-anim [data-reveal], .js-anim [data-hero], .js-anim .hero-title .w,
  .js-anim .hero-title:not(.is-split) { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js-anim [data-term] .ln { clip-path: none !important; }
  .site-header, .mbar, .hero-video { display: none !important; }
}
