/* Hallmark · shape: Split Studio (sections from the client's brief) · genre: modern-minimal · theme: Console (deal 3/3, seed remote-akses-physical-16-key-5f53·0d12852d·2026-11-20·r0) · job: try · draw: 7fe11c
 * hero: Settled · nav: floating pill · footer: mast · imagery: the product (client photos) + the app built live · signature: the keypad simulator that opens a site on the monitor · console: navy (the logo's navy, orange and cyan)
 * axes: dark/grotesk-sans/chromatic-amber · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P3 H3 E3 S4 R3 V3 · weakest: photographs, client files are low-resolution flyer crops; shown small and asked for in the report */
/* waive 24b: the List Code Website replica is a reduced scale model of the real app; its inner spacing follows the app, not the page scale */
/* waive 11 (hand-drawn window): the simulator is the client's own List Code Website app rebuilt at fidelity, requested by the client; no fake traffic-light chrome */
@import url("./tokens.css");
@import url("./base.css");

:root {
  /* the List Code Website replica and the page it opens: an instrument, so cool */
  --app-bg: oklch(22% 0.006 260);
  --app-bar: oklch(26% 0.008 260);
  --app-panel: oklch(25% 0.007 260);
  --app-field: oklch(15% 0.005 260);
  --app-line: oklch(33% 0.01 260);
  --app-text: oklch(88% 0.008 260);
  --app-dim: oklch(68% 0.01 260);
  --app-btn: oklch(50% 0.16 255);
  --app-btn-ink: oklch(98% 0 0);
  --web-bg: oklch(96% 0.004 250);
  --web-card: oklch(99.5% 0 0);
  --web-line: oklch(90% 0.008 250);
  --web-ink: oklch(22% 0.02 255);
  --web-dim: oklch(50% 0.02 255);
  --key: oklch(23% 0.004 260);
  --key-deep: oklch(10% 0.003 260);
  --key-ink: oklch(96% 0 0);
  --studio: oklch(91.5% 0.025 260);
  --nav-h: 72px;
  --studio-photo: rgb(221 230 245); /* the keypad photo's own studio backdrop */
  /* colourway: navy, from the logo (navy ground, orange for a person, cyan for an instrument) */
  --color-paper: oklch(25% 0.055 262); --color-paper-2: oklch(29% 0.058 262); --color-paper-3: oklch(21% 0.05 262);
  --color-ink: oklch(97% 0.008 250); --color-ink-2: oklch(87% 0.015 250); --color-muted: oklch(76% 0.025 250);
  --color-rule: oklch(37% 0.05 262); --color-rule-2: oklch(47% 0.05 262);
  --color-accent: oklch(72% 0.17 50); --color-accent-ink: oklch(20% 0.05 45); --color-accent-soft: oklch(34% 0.07 50); --color-focus: oklch(78% 0.15 55);
  --color-cool: oklch(80% 0.12 225); --color-cool-soft: oklch(33% 0.07 235);
  --key: oklch(26% 0.02 262); --key-deep: oklch(15% 0.02 262);
}

body { font-size: 1.0625rem; }
:root { --container: 1240px; }
.measured { font-family: var(--font-outlier); font-variant-numeric: tabular-nums slashed-zero; }
.skip { position: absolute; left: var(--space-md); top: -100px; z-index: var(--z-modal); background: var(--color-accent); color: var(--color-accent-ink); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); }
.skip:focus-visible { top: var(--space-md); }

/* ---------- controls: the pair ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 46px; padding: 0 var(--space-lg); border-radius: var(--radius-pill); border: var(--rule-hair) solid var(--color-rule-2); background: var(--color-paper-2); color: var(--color-ink); font-weight: 500; font-size: var(--text-md); text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { border-color: var(--color-muted); }
  .btn--primary:hover { background: color-mix(in oklab, var(--color-accent) 88%, var(--color-ink)); border-color: transparent; }
}
.link { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-rule-2); transition: color var(--dur-short) var(--ease-out); }
.link:hover { color: var(--color-accent); }

/* ---------- 1. nav: floating pill ---------- */
.nav { position: sticky; top: var(--space-sm); z-index: var(--z-sticky-nav); padding-inline: var(--gutter); }
.nav__bar { max-width: calc(var(--container) - 2 * var(--gutter)); margin-inline: auto; height: var(--nav-h); display: flex; align-items: center; gap: var(--space-lg); padding: 0 var(--space-xs) 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: 12px; background: var(--color-paper-2); }
.nav__logo img { height: 34px; width: auto; border-radius: 6px; }
.nav__links { display: flex; gap: var(--space-2xs); margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav__links a { display: block; padding: var(--space-sm); border-radius: var(--radius-pill); color: var(--color-muted); text-decoration: none; font-size: var(--text-sm); font-weight: 500; transition: color var(--dur-short) var(--ease-out); }
.nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--color-ink); }
.nav__links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 0; }
.nav .btn { min-height: 44px; }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: var(--radius-pill); border: var(--rule-hair) solid var(--color-rule-2); background: transparent; color: var(--color-ink); cursor: pointer; place-items: center; }
.nav__toggle svg { width: 20px; height: 20px; }
.nav__toggle:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.nav__mcta { display: none; }
@media (max-width: 60rem) {
  .nav__toggle { display: grid; }
  .nav__cta { display: none; }
  .js .nav__links { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--nav-h) + var(--space-xs)); margin: 0; flex-direction: column; gap: 0; padding: var(--space-xs) var(--space-md) var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: 12px; background: var(--color-paper-2); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out), visibility 0s var(--dur-short); }
  .js .nav__links.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__links a { padding: var(--space-md) 0; font-size: var(--text-md); color: var(--color-ink); border-bottom: var(--rule-hair) solid var(--color-rule); border-radius: 0; }
  .nav__mcta { display: block; padding-top: var(--space-md); }
  .nav__mcta .btn { width: 100%; border-bottom: 0; color: var(--color-accent-ink); padding: 0 var(--space-lg); border-radius: var(--radius-pill); }
}

/* ---------- 2. hero: settled ---------- */
.hero { padding-block: var(--space-2xl) var(--space-3xl); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: center; }
.hero h1 { margin-top: var(--space-lg); font-size: clamp(2.25rem, 2.6vw + 1rem, 3.75rem); max-width: 15ch; }
.hero .lead { margin-top: var(--space-lg); color: var(--color-ink-2); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.hero__note { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }

.stage { position: relative; padding-bottom: 22%; }
.monitor { position: relative; border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-card); padding: var(--space-xs); background: var(--color-paper-3); }
.stand { width: 18%; height: 12px; margin: 0 auto; border: var(--rule-hair) solid var(--color-rule); border-top: 0; border-radius: 0 0 6px 6px; background: var(--color-paper-3); }

/* ---------- the screen (hero + simulator) ---------- */
.screen { position: relative; aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; background: var(--app-bg); color: var(--app-text); font-size: 11.5px; line-height: 1.4; }
.view { position: absolute; inset: 0; display: flex; flex-direction: column; transition: opacity var(--dur-short) var(--ease-out); }
.view.off { opacity: 0; visibility: hidden; transition: opacity var(--dur-micro) var(--ease-out), visibility 0s var(--dur-micro); }
.tool { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-sm); background: var(--app-bar); border-bottom: 1px solid var(--app-line); flex: none; overflow: hidden; }
.tool b { font-weight: 500; font-size: 12.5px; white-space: nowrap; }
.tool .sp { margin-left: auto; }
.abtn { background: var(--app-btn); color: var(--app-btn-ink); font-size: 10.5px; padding: var(--space-2xs) var(--space-xs); border-radius: 3px; white-space: nowrap; }
.conn { color: var(--app-dim); font-size: 10.5px; white-space: nowrap; }
.appbody { flex: 1; display: grid; grid-template-columns: 30% minmax(0, 1fr); gap: var(--space-xs); padding: var(--space-xs) var(--space-sm) var(--space-sm); min-height: 0; }
.pnl { background: var(--app-panel); border: 1px solid var(--app-line); border-radius: 5px; padding: var(--space-sm); display: flex; flex-direction: column; gap: var(--space-xs); min-height: 0; overflow: hidden; }
.pnl__t { text-align: center; color: var(--app-dim); font-size: 10.5px; }
.codein { font-family: var(--font-outlier); font-size: clamp(16px, 2.1vw, 30px); font-weight: 500; letter-spacing: .3em; text-indent: .3em; text-align: center; padding: var(--space-xs) 0; background: var(--app-field); border: 1px solid var(--app-line); border-radius: 4px; color: var(--color-accent); line-height: 1; }
.codein.err { color: var(--color-bad); border-color: var(--color-bad); }
.pnl .abtn { text-align: center; padding: var(--space-xs); }
.pnl__help { margin-top: auto; text-align: center; color: var(--app-dim); font-size: 10px; }
.tbl { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 11px; }
.tbl caption { padding-bottom: var(--space-2xs); color: var(--app-dim); font-size: 10.5px; }
.tbl th { text-align: left; font-weight: 500; color: var(--app-dim); padding: var(--space-2xs) var(--space-xs); border-bottom: 1px solid var(--app-line); font-size: 10px; }
.tbl td { padding: var(--space-2xs) var(--space-xs); border-bottom: 1px solid var(--app-line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl th:first-child, .tbl td:first-child { width: 40px; font-family: var(--font-outlier); }
.tbl tr.hit td { background: var(--app-btn); color: var(--app-btn-ink); }
.tabs { display: flex; gap: var(--space-3xs); padding: var(--space-xs) var(--space-xs) 0; background: var(--app-bar); flex: none; }
.tab { padding: var(--space-2xs) var(--space-sm); border-radius: 5px 5px 0 0; color: var(--app-dim); max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.tab.on { background: var(--web-bg); color: var(--web-ink); font-weight: 500; }
.url { padding: var(--space-2xs) var(--space-sm); background: var(--web-bg); color: var(--web-dim); border-bottom: 1px solid var(--web-line); font-family: var(--font-outlier); font-size: 10.5px; flex: none; }
.page { flex: 1; overflow: hidden; background: var(--web-bg); color: var(--web-ink); }
.page__in { padding: var(--space-md); transition: transform var(--dur-long) var(--ease-out); }
.page h4 { margin: 0; font-size: 15px; font-weight: 500; }
.page p { margin: var(--space-3xs) 0 var(--space-xs); color: var(--web-dim); font-size: 10.5px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); margin-bottom: var(--space-xs); }
.kpis div { background: var(--web-card); border: 1px solid var(--web-line); border-radius: 5px; padding: var(--space-xs); }
.kpis small { display: block; font-size: 10px; color: var(--web-dim); }
.kpis b { font-family: var(--font-outlier); font-size: 16px; font-weight: 500; }
.chart { display: flex; align-items: flex-end; gap: var(--space-2xs); height: 84px; padding: var(--space-xs); background: var(--web-card); border: 1px solid var(--web-line); border-radius: 5px; margin-bottom: var(--space-xs); }
.chart i { flex: 1; background: var(--app-btn); border-radius: 2px 2px 0 0; }
.lines i { display: block; height: 8px; background: var(--web-line); border-radius: 3px; margin-bottom: var(--space-xs); }
.toast { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; background: var(--color-paper-3); color: var(--color-ink); border: 1px solid var(--color-rule-2); padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-pill); font-size: 11px; white-space: nowrap; opacity: 0; transition: opacity var(--dur-short) var(--ease-out); pointer-events: none; }
.toast.on { opacity: 1; }

/* ---------- sections ---------- */
.sec { padding-block: var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
.sec--band { background: var(--color-paper-3); color: var(--color-ink); }
.head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-xl); align-items: end; margin-bottom: var(--space-2xl); }
.head p { color: var(--color-muted); font-size: var(--text-lead); line-height: 1.45; }
.panels { display: grid; gap: var(--rule-hair); background: var(--color-rule); color: var(--color-ink); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); overflow: hidden; }
.panels > * { background: var(--color-paper-2); color: var(--color-ink); }

/* 3. before / after as a diff */
.diff { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.diff__col { padding: var(--space-xl); display: flex; flex-direction: column; gap: var(--space-md); }
.diff__col h3 { font-size: var(--text-title); }
.diff__col > p { color: var(--color-muted); }
.drows { list-style: none; margin: 0; padding: 0; border: var(--rule-hair) solid var(--color-rule); border-radius: 6px; overflow: hidden; }
.drows li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-xs); padding: var(--space-sm) var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); color: var(--color-ink-2); }
.drows li:first-child { border-top: 0; }
.drows .g { font-family: var(--font-outlier); }
.drows--minus li { background: var(--color-bad-soft); }
.drows--minus .g { color: var(--color-bad); }
.drows--plus li { background: var(--color-ok-soft); }
.drows--plus .g { color: var(--color-ok); }
.drows code { font-family: var(--font-outlier); font-size: var(--text-sm); color: var(--color-ink); overflow-wrap: anywhere; }
.drows--minus code { text-decoration: line-through; text-decoration-color: var(--color-bad); }
.drows kbd { font-family: var(--font-outlier); font-size: var(--text-sm); color: var(--color-accent); border: var(--rule-hair) solid var(--color-rule-2); border-radius: 4px; padding: 0 var(--space-2xs); background: var(--color-paper-3); }

/* 4. features as panels */
.feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feat { padding: var(--space-xl); display: flex; flex-direction: column; gap: var(--space-sm); min-height: 300px; }
.feat h3 { font-size: var(--text-title); }
.feat > p { color: var(--color-muted); max-width: 40ch; }
.feat__vis { margin-top: auto; padding-top: var(--space-lg); }
.minilist { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.minilist td { padding: var(--space-sm) 0; border-top: var(--rule-hair) solid var(--color-rule); }
.minilist td:first-child { width: 48px; font-family: var(--font-outlier); color: var(--color-accent); }
.minilist td:last-child { text-align: right; font-family: var(--font-outlier); color: var(--color-cool); }
.minilist tr.new td { color: var(--color-ink-2); }
.minilist tr.new td:first-child { color: var(--color-accent); }
.conns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
.conns div { border: var(--rule-hair) solid var(--color-rule); border-radius: 6px; padding: var(--space-md); background: var(--color-paper-3); }
.conns b { display: block; font-weight: 500; }
.conns span { color: var(--color-muted); font-size: var(--text-sm); }
.keyrow { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.keyrow div { display: flex; align-items: center; gap: var(--space-sm); min-width: 46%; }
.kcap { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 6px; background: var(--key); box-shadow: 0 3px 0 var(--key-deep); color: var(--color-accent); font-family: var(--font-outlier); font-size: var(--text-lg); flex: none; }
.keyrow span { color: var(--color-ink-2); font-size: var(--text-sm); }

/* 5. how it works: a trail, then the simulator */
.keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xs); }
.key { aspect-ratio: 1; min-height: 44px; border: 0; border-radius: 7px; background: var(--key); color: var(--key-ink); font-family: var(--font-outlier); font-size: var(--text-lg); cursor: pointer; box-shadow: 0 3px 0 var(--color-paper-3); transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out); touch-action: manipulation; }
.key--fn { color: var(--color-accent); }
.key:active, .key.down { transform: translateY(3px); box-shadow: 0 0 0 var(--color-paper-3); transition-duration: 0ms; }
.key:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* 6. gallery */
.gal { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); }
.shot { margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.shot__btn { display: block; width: 100%; padding: 0; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); overflow: hidden; background: var(--color-paper-3); cursor: zoom-in; aspect-ratio: 4 / 3.1; }
.shot__btn img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--dur-short) var(--ease-out); }
.shot__btn:hover img { opacity: .88; }
.shot__btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
/* studio card: same height as the scene photo, photo full-bleed so its own backdrop is the card (no seam) */
.shot--studio .shot__btn { position: relative; aspect-ratio: auto; height: 100%; min-height: 0; background: var(--studio-photo); }
.shot--studio .shot__btn img { position: absolute; inset: 0; object-fit: cover; object-position: 50% 55%; }
.shot figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.lb { border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-card); padding: var(--space-md); background: var(--color-paper-2); color: var(--color-ink); max-width: min(92vw, 1000px); }
.lb::backdrop { background: color-mix(in oklab, var(--color-paper-3) 85%, transparent); }
.lb img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 6px; }
.lb__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); padding-top: var(--space-sm); color: var(--color-muted); font-size: var(--text-sm); }

/* 7. use cases as a table */
.uses { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: start; }
.env { width: 100%; border-collapse: collapse; }
.env th, .env td { text-align: left; padding: var(--space-md) var(--space-sm) var(--space-md) 0; border-top: var(--rule-hair) solid var(--color-rule); vertical-align: top; }
.env tr:last-child td { border-bottom: var(--rule-hair) solid var(--color-rule); }
.env thead th { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); border-top: 0; padding-top: 0; }
.env td:first-child { font-weight: 500; width: 34%; }
.env td:nth-child(2) { color: var(--color-muted); }
.env td:last-child { font-family: var(--font-outlier); font-size: var(--text-sm); color: var(--color-accent); white-space: nowrap; }
.uses__pics { display: grid; gap: var(--space-md); }
.uses__pics figure { margin: 0; }
.duo { position: relative; border-radius: var(--radius-card); overflow: hidden; border: var(--rule-hair) solid var(--color-rule); aspect-ratio: 16 / 10; background: var(--color-paper-3); }
.duo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(.82); }
.uses__pics figcaption { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }

/* 8. advantages: one reading set large, then the list */
.adv { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; }
.reading__was { font-family: var(--font-outlier); font-size: var(--text-md); color: var(--color-muted); text-decoration: line-through; text-decoration-color: var(--color-bad); overflow-wrap: anywhere; }
.reading { font-family: var(--font-outlier); font-size: clamp(4rem, 9vw, 8rem); line-height: 1; letter-spacing: -0.04em; color: var(--color-ink); margin-top: var(--space-sm); }
.reading span { color: var(--color-accent); }
.reading__who { margin-top: var(--space-md); color: var(--color-muted); }
.advs { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-rule-2); }
.advs li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-lg); padding: var(--space-lg) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.advs h3 { font-size: var(--text-lg); }
.advs p { color: var(--color-muted); }

/* 9. faq */
.faq { max-width: 820px; border-top: var(--rule-hair) solid var(--color-rule-2); }
.faq details { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-lg); padding: var(--space-lg) 0; font-size: var(--text-lg); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--color-muted); font-size: var(--text-xl); line-height: 1; transition: transform var(--dur-short) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.faq .ans { padding: 0 0 var(--space-lg); color: var(--color-muted); max-width: 62ch; }

/* 10. close: the action beside one last screen */
.close { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: center; }
.close h2 { max-width: 14ch; }
.close .lead { margin-top: var(--space-lg); color: var(--color-ink-2); }
.close__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.close__meta { margin-top: var(--space-lg); color: var(--color-muted); font-size: var(--text-sm); }

/* 11. footer: mast */
.foot { border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-2xl) var(--space-xl); background: var(--color-paper-3); }
.foot__mast { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); padding-bottom: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.foot__mast img { height: 44px; width: auto; border-radius: 6px; }
.foot__mast p { font-size: var(--text-xl); letter-spacing: var(--tracking-display); }
.foot__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl); padding-top: var(--space-xl); }
.foot h3 { font-size: var(--text-sm); color: var(--color-muted); font-weight: 500; letter-spacing: 0; margin-bottom: var(--space-sm); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3xs); }
.foot ul a { display: inline-block; padding: var(--space-xs) 0; color: var(--color-ink-2); text-decoration: none; }
.foot ul a:hover { color: var(--color-accent); }
.foot address { font-style: normal; color: var(--color-ink-2); }
.foot__legal { margin-top: var(--space-xl); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- responsive ---------- */
@media (max-width: 64rem) {
  .hero__grid, .adv, .uses, .close { grid-template-columns: minmax(0, 1fr); }
  .stage { max-width: 680px; }
  .keys { width: min(100%, 320px); }
}
@media (max-width: 48rem) {
  .head, .diff, .feats, .gal { grid-template-columns: minmax(0, 1fr); }
  .head { margin-bottom: var(--space-xl); }
  .shot--studio .shot__btn { height: auto; aspect-ratio: 1 / 1; }
  .diff__col, .feat { padding: var(--space-lg); }
  .advs li { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .env td:first-child { width: auto; }
}
@media (max-width: 40rem) {
  .hero { padding-block: var(--space-xl) var(--space-2xl); }
  .hero__actions .btn, .close__actions .btn { flex: 1 1 100%; }
  .stage { padding-bottom: 30%; }
  .screen { font-size: 9.5px; }
  .tool .abtn:not(:first-of-type), .tool .sp, .tool .conn { display: none; }
  .appbody { grid-template-columns: minmax(0, 1fr); }
  .appbody .pnl:last-child { display: none; }
  .env thead { display: none; }
  .env tr { display: grid; padding: var(--space-md) 0; border-top: var(--rule-hair) solid var(--color-rule); }
  .env td, .env tr:last-child td { border: 0; padding: var(--space-3xs) 0; }
}

/* the company logo, as on ticakrawala.id: the official mark over the word CAKRA, one image */
.nav__logo { display: flex; align-items: center; text-decoration: none; }
.nav__logo img { height: 54px; width: auto; border-radius: 0; }
.foot__mast .foot__logo { height: 120px; width: auto; border-radius: 0; }
@media (max-width: 40rem) { .nav__logo img { height: 44px; } .foot__mast .foot__logo { height: 96px; } }

/* ---------- motion: one entrance, one reveal, nothing on scroll position ----------
   transform and opacity only, ease-out, once; everything is visible without the script (.mo is set by it)
   and under reduced motion (the script never sets .mo then, and base.css stills transitions). */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--space-sm) + var(--space-lg)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* hero entrance on load */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(20px) scale(.985); } to { opacity: 1; transform: none; } }
.js.mo .hero h1, .js.mo .hero .lead, .js.mo .hero__actions, .js.mo .hero__note { animation: rise var(--dur-long) var(--ease-out) both; }
.js.mo .hero .lead { animation-delay: 80ms; }
.js.mo .hero__actions { animation-delay: 160ms; }
.js.mo .hero__note { animation-delay: 240ms; }
.js.mo .stage .monitor { animation: settle 640ms var(--ease-out) 120ms both; }

/* the reveal */
.js.mo [data-rv] { opacity: 0; transform: translateY(12px); transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out); }
.js.mo [data-rv].in { opacity: 1; transform: none; }
.js.mo [data-rv] [data-rv-i] { opacity: 0; transform: translateY(8px); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); transition-delay: calc(120ms + var(--i, 0) * 70ms); }
.js.mo [data-rv].in [data-rv-i] { opacity: 1; transform: none; }

/* the trail's spine draws left to right */

/* the reading types */
.reading .type span { color: var(--color-accent); }

/* faq answers open smoothly where the browser can animate details */
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size var(--dur-short) var(--ease-out), content-visibility var(--dur-short) allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}
.faq .ans { opacity: 1; }
.js.mo .faq details:not([open]) .ans { opacity: 0; }
.js.mo .faq details .ans { transition: opacity var(--dur-short) var(--ease-out); }

/* hover answers: colour and border only, 150 to 220ms */
.feat, .env tbody tr, .faq summary { transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .env tbody tr:hover { background: var(--color-paper-2); }
  .faq summary:hover { color: var(--color-accent); }
}

/* ---------- component micro-interactions (emil-design-eng, make-interfaces-feel-better) ----------
   press is instant, release settles; hover only on a fine pointer; transform and opacity only */
@keyframes pop { 0% { opacity: 0; transform: translateY(6px) scale(.8); } 60% { opacity: 1; transform: translateY(-1px) scale(1.06); } 100% { transform: none; } }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@keyframes grow { from { transform: scaleY(.15); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes tap { 0%, 100% { transform: none; box-shadow: 0 3px 0 var(--key-deep); } 35% { transform: translateY(3px); box-shadow: 0 0 0 var(--key-deep); } }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(-360deg); } }
@keyframes lb-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* buttons: scale on press, release settles */
.btn { transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform 160ms var(--ease-out); }
.btn:active { transform: scale(.97); transition-duration: 60ms; }

/* nav: an underline draws under the hovered and the current link */
.nav__links a { position: relative; }
.nav__links a::after { content: ""; position: absolute; left: var(--space-sm); right: var(--space-sm); bottom: 6px; height: 1px; background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-short) var(--ease-out); }
.nav__links a[aria-current="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover::after { transform: scaleX(1); } }
@media (max-width: 60rem) { .nav__links a::after { display: none; } }
/* the menu button turns into a close mark */
.nav__toggle path { transform-box: fill-box; transform-origin: center; transition: transform var(--dur-short) var(--ease-out), opacity var(--dur-micro) var(--ease-out); }
.nav__toggle[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .l2 { opacity: 0; }
.nav__toggle[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }

/* hero: the keys the demo types light up one by one, then the result */

/* the screen: a typed digit pops in, a wrong code shakes, a page arrives with its chart growing, the toast rises */
.codein .d { display: inline-block; }
.codein .d.empty { color: var(--app-dim); }
.codein .d.pop { animation: pop 260ms var(--ease-out); }
.codein.shake { animation: shake 320ms var(--ease-out); }
.tbl td { transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.view.off { transform: scale(.985); transition: opacity var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out), visibility 0s var(--dur-micro); }
.view:not(.off) { transform: none; transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.page__in.fresh .chart i { transform-origin: bottom; animation: grow 520ms var(--ease-out) both; animation-delay: calc(var(--n, 0) * 30ms); }
.page__in.fresh .kpis div { animation: rise 360ms var(--ease-out) both; }
.page__in.fresh .kpis div:nth-child(2) { animation-delay: 60ms; }
.page__in.fresh .kpis div:nth-child(3) { animation-delay: 120ms; }
.toast { transform: translateY(6px); transition: opacity var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.toast.on { transform: none; transition-duration: var(--dur-short); }

/* keypad: a pressed key lights amber for a moment */
.key { transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out), color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.key.down, .key:active { background: color-mix(in oklab, var(--key) 75%, var(--color-accent)); color: var(--color-ink); }
@media (hover: hover) and (pointer: fine) { .key:hover { background: color-mix(in oklab, var(--key) 88%, var(--color-ink)); } }

/* feature panels: hovering one plays what it describes */
.minilist td { transition: background-color var(--dur-short) var(--ease-out); }
.conns div { transition: border-color var(--dur-short) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .feat:hover .kcap { animation: tap 360ms var(--ease-out) both; }
  .feat:hover .keyrow div .kcap:nth-child(2), .feat:hover .keyrow div:nth-child(2) .kcap { animation-delay: 140ms; }
  .feat:hover .keyrow div .kcap:nth-child(3), .feat:hover .keyrow div:nth-child(3) .kcap { animation-delay: 280ms; }
  .feat:hover .keyrow div:nth-child(4) .kcap { animation-delay: 420ms; }
  .feat:hover .minilist tr.new td { background: var(--color-accent-soft); }
  .feat:hover .conns div { border-color: color-mix(in oklab, var(--color-cool) 55%, transparent); }
  .feat:hover .conns div:nth-child(2) { transition-delay: 120ms; }
  .shot__btn:hover img { transform: scale(1.03); opacity: 1; }
}

/* gallery: the lightbox rises in */
.shot__btn img { transition: transform 600ms var(--ease-out), opacity var(--dur-short) var(--ease-out); }
.lb[open] { animation: lb-in 280ms var(--ease-out); }
.lb[open]::backdrop { animation: fade 280ms var(--ease-out); }

/* footer links: the underline appears */
.foot ul a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color var(--dur-short) var(--ease-out), text-decoration-color var(--dur-short) var(--ease-out); }
.foot ul a:hover { text-decoration-color: currentColor; }

@media (prefers-reduced-motion: reduce) {
  .codein .d.pop, .codein.shake, .page__in.fresh .chart i, .page__in.fresh .kpis div, .lb[open], .lb[open]::backdrop, .feat:hover .kcap { animation: none; }
}

/* ================= interactive build: playable hero, the scroll story, make-your-own-code ================= */

/* hero: the monitor above, the real keypad photo beside a playable pad */
.stage { padding-bottom: 0; }
/* a key the visitor is invited to press glows until pressed */
@keyframes beckon { 0%, 100% { box-shadow: 0 3px 0 var(--color-paper-3), 0 0 0 0 color-mix(in oklab, var(--color-accent) 0%, transparent); } 50% { box-shadow: 0 3px 0 var(--color-paper-3), 0 0 0 3px color-mix(in oklab, var(--color-accent) 45%, transparent); } }
.key.hint { color: var(--color-accent); animation: beckon 1.6s var(--ease-in-out) infinite; }
@media (prefers-reduced-motion: reduce) { .key.hint { animation: none; outline: 1px solid var(--color-accent); } }

/* ---------- the story: pinned while the scroll plays the three steps ---------- */
.story { border-top: var(--rule-hair) solid var(--color-rule); }
.story__sticky { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: center; padding-block: var(--section-gap-s); }
.story.live .story__track { height: 300vh; }
.story.live .story__sticky { position: sticky; top: 0; min-height: 100vh; padding-block: calc(var(--nav-h) + var(--space-xl)) var(--space-xl); }
.story__text h2 { margin-bottom: var(--space-xl); }
.story__steps { list-style: none; margin: 0; padding: 0; border-left: var(--rule-hair) solid var(--color-rule); }
.story__steps li { position: relative; padding: var(--space-sm) 0 var(--space-sm) var(--space-lg); display: grid; gap: var(--space-2xs); }
.story__steps li::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--color-accent); transform: scaleY(0); transform-origin: top; transition: transform var(--dur-long) var(--ease-out); }
.story__steps h3 { font-size: var(--text-title); }
.story__steps p { color: var(--color-muted); }
.story__steps .who { font-size: var(--text-sm); font-weight: 500; }
.story__steps .who--p { color: var(--color-accent); }
.story__steps .who--i { color: var(--color-cool); }
.story.live .story__steps li { opacity: .38; transition: opacity var(--dur-long) var(--ease-out); }
.story.live .story__steps li.on { opacity: 1; }
.story.live .story__steps li.on::before { transform: scaleY(1); }

.switch { display: inline-flex; margin-top: var(--space-xl); padding: var(--space-3xs); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill); background: var(--color-paper-3); }
.switch button { min-height: 40px; padding: 0 var(--space-md); border: 0; border-radius: 4px; background: transparent; color: var(--color-muted); font-weight: 500; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.switch button[aria-checked="true"] { background: var(--color-cool-soft); color: var(--color-cool); }
.switch button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.story__stage { display: grid; grid-template-columns: 150px minmax(0, 1fr) 220px; align-items: center; gap: var(--space-md); padding: var(--space-xl); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-2); }
.mini-pad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2xs); padding: var(--space-xs); border-radius: 10px; background: var(--key-deep); border: var(--rule-hair) solid var(--color-rule); }
.mini-pad span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 4px; background: var(--key); color: var(--key-ink); font-family: var(--font-outlier); font-size: var(--text-xs); box-shadow: 0 2px 0 var(--key-deep); transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.mini-pad span.fn { color: var(--color-accent); }
.mini-pad span.lit { transform: translateY(2px); box-shadow: none; background: color-mix(in oklab, var(--key) 70%, var(--color-accent)); color: var(--color-ink); }

.link { position: relative; height: 72px; --t: 0; }
.link__line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; translate: 0 -50%; background: var(--color-rule-2); transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.link[data-mode="ble"] .link__line { background: repeating-linear-gradient(90deg, var(--color-cool) 0 6px, transparent 6px 12px); opacity: .55; }
.link[data-mode="cable"] .link__line { transform: scaleY(2); border-radius: 2px; background: var(--color-rule-2); }
.link__waves { position: absolute; left: calc(var(--t) * 100%); top: 50%; translate: -50% -50%; width: 44px; height: 44px; pointer-events: none; opacity: 0; transition: opacity var(--dur-short) var(--ease-out); }
.link__waves i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--color-cool); opacity: 0; }
.link[data-mode="ble"].moving .link__waves { opacity: 1; }
@keyframes wave { from { transform: scale(.3); opacity: .8; } to { transform: scale(1.2); opacity: 0; } }
.link[data-mode="ble"].moving .link__waves i { animation: wave 1.2s var(--ease-out) infinite; }
.link[data-mode="ble"].moving .link__waves i:nth-child(2) { animation-delay: .4s; }
.link[data-mode="ble"].moving .link__waves i:nth-child(3) { animation-delay: .8s; }
.link__dot { position: absolute; left: calc(var(--t) * 100%); top: 50%; translate: -50% -50%; width: 12px; height: 12px; border-radius: 50%; background: var(--color-cool); opacity: 0; transition: opacity var(--dur-short) var(--ease-out); }
.link.moving .link__dot { opacity: 1; }
.link[data-mode="cable"] .link__dot { width: 18px; height: 6px; border-radius: 3px; }
.link__label { position: absolute; left: 50%; bottom: -6px; translate: -50% 0; font-size: var(--text-sm); color: var(--color-cool); white-space: nowrap; }

.mini-mon__screen { position: relative; aspect-ratio: 16 / 10; border-radius: 6px; border: 6px solid var(--color-paper-3); outline: var(--rule-hair) solid var(--color-rule-2); overflow: hidden; background: var(--app-bg); }
.mini-mon__stand { display: block; width: 30%; height: 8px; margin: 0 auto; background: var(--color-paper-3); border-radius: 0 0 4px 4px; }
.mini-app, .mini-web { position: absolute; inset: 0; padding: var(--space-xs); display: grid; align-content: center; justify-items: center; gap: var(--space-2xs); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); }
.mini-app small { color: var(--app-dim); font-size: var(--text-xs); }
.mini-app b { font-size: var(--text-xl); color: var(--color-accent); font-weight: 500; letter-spacing: .2em; }
.mini-web { background: var(--web-bg); color: var(--web-ink); justify-items: start; align-content: start; }
.js .mini-web { opacity: 0; transform: scale(.97); }
.mini-web small { color: var(--web-dim); font-size: 10px; }
.mini-web b { font-size: var(--text-sm); font-weight: 500; }
.mini-bars { display: flex; align-items: flex-end; gap: var(--space-2xs); width: 100%; height: 48px; }
.mini-bars i { flex: 1; background: var(--app-btn); border-radius: 2px 2px 0 0; transform-origin: bottom; transform: scaleY(.1); transition: transform 520ms var(--ease-out); }
.js .story__stage.open .mini-web { opacity: 1; transform: none; }
.story__stage.open .mini-app { opacity: 0; }
.story__stage.open .mini-bars i { transform: none; }
.story__stage.open .mini-bars i:nth-child(2) { transition-delay: 40ms; } .story__stage.open .mini-bars i:nth-child(3) { transition-delay: 80ms; }
.story__stage.open .mini-bars i:nth-child(4) { transition-delay: 120ms; } .story__stage.open .mini-bars i:nth-child(5) { transition-delay: 160ms; }
.story__stage.open .mini-bars i:nth-child(6) { transition-delay: 200ms; }

/* ---------- responsive for the new parts ---------- */
@media (max-width: 64rem) {
  .story__sticky { grid-template-columns: minmax(0, 1fr); }
  .story.live .story__sticky { gap: var(--space-xl); }
  .story__text h2 { margin-bottom: var(--space-lg); }
  .switch { margin-top: var(--space-lg); }
}
@media (max-width: 40rem) {
  .story__stage { grid-template-columns: 96px minmax(0, 1fr) 120px; padding: var(--space-md); gap: var(--space-xs); }
  .story.live .story__sticky { padding-block: calc(var(--nav-h) + var(--space-lg)) var(--space-md); }
  .story__steps li { padding: var(--space-xs) 0 var(--space-xs) var(--space-md); }
  .story.live .story__steps li:not(.on) p { display: none; }
}

/* ================= hero, v3 composition: the monitor, and the keypad standing in front of its lower right corner ================= */
.hero { padding-block: var(--space-2xl) var(--space-3xl); }
.hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.stage { position: relative; padding: 0 0 128px 0; }
.stage .monitor { margin-right: 6%; }
.stage .stand { margin-left: calc(47% - 9%); }
.kp { position: absolute; right: -2%; bottom: 0; width: min(44%, 296px); padding: var(--space-md); border-radius: 18px; background: var(--key-deep); border: var(--rule-hair) solid var(--color-rule-2); box-shadow: 0 32px 60px -24px var(--color-paper-3); transform: perspective(1000px) rotateX(9deg) rotateZ(-3deg); transform-origin: 60% 100%; transition: transform var(--dur-long) var(--ease-out); z-index: 2; }
@media (hover: hover) and (pointer: fine) { .kp:hover { transform: perspective(1000px) rotateX(3deg) rotateZ(-1deg); } }
.kp__screws i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--color-paper-3); box-shadow: 0 0 0 1px var(--color-rule-2); }
.kp__screws i:nth-child(1) { top: 8px; left: 8px; } .kp__screws i:nth-child(2) { top: 8px; right: 8px; }
.kp__screws i:nth-child(3) { bottom: 8px; left: 8px; } .kp__screws i:nth-child(4) { bottom: 8px; right: 8px; }
.kp .keys { gap: var(--space-xs); padding: var(--space-xs); border-radius: 10px; background: var(--color-paper-3); }
.kp .key { aspect-ratio: 1; min-height: 44px; font-size: var(--text-lg); }
.kp__led { display: block; margin-top: var(--space-xs); font-family: var(--font-outlier); font-size: var(--text-xs); color: var(--color-muted); }
.stage__hint { position: absolute; left: 0; bottom: var(--space-lg); max-width: 50%; font-size: var(--text-sm); color: var(--color-muted); }
.stage__hint .measured { color: var(--color-accent); }

/* the entrance: the keypad arrives after the monitor */
@keyframes kp-in { from { opacity: 0; transform: perspective(1000px) rotateX(9deg) rotateZ(-3deg) translateY(24px); } to { opacity: 1; transform: perspective(1000px) rotateX(9deg) rotateZ(-3deg); } }
.js.mo .kp { animation: kp-in 640ms var(--ease-out) 320ms both; }
.js.mo .stage__hint { animation: rise var(--dur-long) var(--ease-out) 520ms both; }

@media (max-width: 64rem) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .stage { max-width: 720px; }
}
@media (max-width: 40rem) {
  .stage { padding-bottom: 0; }
  .stage .monitor { margin-right: 0; }
  .stage .stand { margin-left: auto; }
  .kp { position: relative; right: auto; width: min(100%, 320px); margin: calc(-1 * var(--space-lg)) auto 0; transform: none; }
  .js.mo .kp { animation: rise var(--dur-long) var(--ease-out) 320ms both; }
  .stage__hint { position: static; max-width: none; margin-top: var(--space-md); text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .js.mo .kp, .js.mo .stage__hint { animation: none; } }

/* ---------- the bar: away while reading down, back on the way up; a progress line along the top ---------- */
/* one property, one curve: the bar slides; it leaves a touch quicker than it returns */
.nav { transform: translate3d(0, 0, 0); transition: transform 460ms cubic-bezier(0.22, 1, 0.36, 1); will-change: transform; backface-visibility: hidden; }
.js .nav.nav--away { transform: translate3d(0, calc(-100% - var(--space-lg)), 0); transition-duration: 360ms; pointer-events: none; }
.nav__bar { transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.nav.nav--scrolled .nav__bar { background: var(--color-paper-2); border-color: var(--color-rule-2); }
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: calc(var(--z-sticky-nav) + 1); background: var(--color-accent); transform: scaleX(0); transform-origin: left; pointer-events: none; }
html:not(.js) .progress { display: none; }
@media (prefers-reduced-motion: reduce) { .nav { transition: none; } }

/* ---------- smooth scroll (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
/* the moving parts get their own layers so a scroll frame only composites */
.kp, .story__stage, .progress { will-change: transform; }
