/* v5 "Studio + ribbon" stylesheet for v5 pages (home first; the rest move over page by page).
   Loaded after blog/base.css instead of assets/site.css. Tokens and components come from the approved
   component sheet (design-lab, Gate 3); the sheet's state classes (.is-hover, .is-focus, .is-active) are
   not shipped. Write against the tokens; no hex outside the token block. DESIGN.md has the system. */

:root {
  /* ---- type ---- */
  --font: Geist, "Geist Fallback", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", "Geist Mono Fallback", ui-monospace, monospace;
  /* rem everywhere so the AA control (--ts on html) scales it all */
  --fs-display: clamp(2.25rem, 4.4vw, 3.5rem);  /* hero h1: weight 480, tracking -0.045em */
  --fs-h2: clamp(1.75rem, 3.2vw, 2.625rem);     /* section titles: 480, -0.035em */
  --fs-h3: 1.375rem;                            /* card titles: 480, -0.03em */
  --fs-h4: 1rem;                                /* small card titles: 540, -0.02em */
  --fs-lead: 1.0625rem;
  --fs-body: 1rem;                              /* line-height 1.6 */
  --fs-read: 1.125rem;                          /* reading mode, line-height 1.75 */
  --fs-small: .875rem;
  --fs-xs: .8125rem;
  --fs-label: .75rem;                           /* mono labels, sentence case */
  --fs-num: clamp(2.25rem, 4vw, 3rem);          /* metric tiles: 400, -0.055em, tabular */
  --fs-num-xl: clamp(3rem, 6.5vw, 5.5rem);
  --w-head: 480; --w-strong: 540; --w-ui: 500;
  --track-display: -.045em; --track-head: -.035em; --track-body: -.008em;

  /* ---- space (4px base) ---- */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --section-y: clamp(96px, 11vw, 150px);
  --max-w: 1160px; --gutter: 32px; --measure: 680px;
  --nav-h: 64px;

  /* ---- radii ---- */
  --r-input: 12px; --r-sm: 12px; --r-card: 20px; --r-panel: 28px; --r-pill: 999px;

  /* ---- motion ---- */
  --ease: cubic-bezier(.2, .8, .2, 1);          /* UI default (unchanged from v4) */
  --ease-out: cubic-bezier(.16, 1, .3, 1);      /* reveals and settles */
  --ease-io: cubic-bezier(.65, 0, .35, 1);      /* scrubbed scroll */
  --d-fast: 150ms;   /* colour, focus */
  --d-base: 300ms;   /* buttons, lifts, nav pill */
  --d-slow: 450ms;   /* accordions, dialogs */
  --d-reveal: 900ms; /* text and block reveals */

  /* ---- light (default) ---- */
  --l-bg: #F4F4F1; --l-surface: #FFFFFF; --l-surface-2: #F9F9F7;
  --l-border: rgba(13,14,18,.08); --l-border-2: rgba(13,14,18,.14);
  --l-text: #0D0E12; --l-muted: #53565E; --l-meta: #6A6D75; --l-dim: #B4B6BB;
  --l-accent: #3646F0; --l-on-accent: #FFFFFF; --l-danger: #C03A2B; --l-ok: #0B7A4B;

  /* ---- dark ---- */
  --d-bg: #0B0C0F; --d-surface: #14151A; --d-surface-2: #1A1B21;
  --d-border: rgba(255,255,255,.08); --d-border-2: rgba(255,255,255,.15);
  --d-text: #ECECEF; --d-muted: #A6A8B0; --d-meta: #878A93; --d-dim: #44464E;
  --d-accent: #8D97FF; --d-on-accent: #0B0C0F; --d-danger: #F0907F; --d-ok: #6FD7A3;

  /* ---- the ribbon and the one gradient family (ultramarine → violet → coral) ---- */
  --g-1: #3646F0; --g-2: #8B5CF6; --g-3: #E26D5A;
}

:root, [data-theme="light"] {
  --bg: var(--l-bg); --surface: var(--l-surface); --surface-2: var(--l-surface-2);
  --border: var(--l-border); --border-2: var(--l-border-2);
  --text: var(--l-text); --text-muted: var(--l-muted); --text-meta: var(--l-meta); --text-dim: var(--l-dim);
  --accent: var(--l-accent); --on-accent: var(--l-on-accent); --danger: var(--l-danger); --ok: var(--l-ok);
  --accent-soft: color-mix(in oklab, var(--accent) 8%, transparent);
  --ink: #0D0E12; --on-ink: #F2F2F4; --on-ink-muted: rgba(242,242,244,.66);
  --nav-bg: rgba(255,255,255,.72);
  --shadow: 0 1px 2px rgba(13,14,18,.04), 0 8px 24px -12px rgba(13,14,18,.12);
  --shadow-lg: 0 2px 4px rgba(13,14,18,.04), 0 30px 60px -24px rgba(13,14,18,.22);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: var(--d-bg); --surface: var(--d-surface); --surface-2: var(--d-surface-2);
  --border: var(--d-border); --border-2: var(--d-border-2);
  --text: var(--d-text); --text-muted: var(--d-muted); --text-meta: var(--d-meta); --text-dim: var(--d-dim);
  --accent: var(--d-accent); --on-accent: var(--d-on-accent); --danger: var(--d-danger); --ok: var(--d-ok);
  --accent-soft: color-mix(in oklab, var(--accent) 12%, transparent);
  --ink: #1C1D24; --on-ink: #F2F2F4; --on-ink-muted: rgba(242,242,244,.66);
  --nav-bg: rgba(20,21,26,.72);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.5);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 30px 60px -24px rgba(0,0,0,.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 24px); scroll-behavior: smooth; }
html.calm { scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--fs-body)/1.6 var(--font); letter-spacing: var(--track-body); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; text-wrap: balance; font-weight: var(--w-head); }
p { margin: 0; text-wrap: pretty; }
.container { max-width: calc(var(--max-w) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }
@media (max-width: 640px) { :root { --gutter: 16px; } }

/* ---------- type ---------- */
.t-display { font-size: var(--fs-display); letter-spacing: var(--track-display); }
.t-h2 { font-size: var(--fs-h2); letter-spacing: var(--track-head); }
.t-h3 { font-size: var(--fs-h3); letter-spacing: -.03em; line-height: 1.15; }
.t-h4 { font-size: var(--fs-h4); font-weight: var(--w-strong); letter-spacing: -.02em; line-height: 1.3; }
.t-lead { font-size: var(--fs-lead); color: var(--text-muted); }
.t-small { font-size: var(--fs-small); color: var(--text-muted); }
.t-grad { background: linear-gradient(90deg, var(--g-1), var(--g-2) 60%, var(--g-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.label { font: 400 var(--fs-label)/1 var(--mono); color: var(--text-meta); }
.num { font: 400 var(--fs-num)/1 var(--font); letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: var(--w-ui) .75rem/1 var(--font); color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); padding: 7px 12px 7px 8px; border-radius: var(--r-pill); box-shadow: var(--shadow); }
.eyebrow i { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font: normal 500 .625rem/1 var(--mono); }

/* ---------- focus ---------- */
:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--text); color: var(--bg); padding: 9px 16px; border-radius: var(--r-pill); font-weight: 500; }
.skip-link:focus{ left: 12px; }

/* ---------- the ribbon (from A) ---------- */
.ribbon { position: absolute; inset: 0 0 auto 0; pointer-events: none; z-index: 1; }
.ribbon path { fill: none; stroke-linecap: round; }
.ribbon .ghost { stroke: var(--text); stroke-opacity: .06; stroke-width: 1; }
.ribbon .draw { stroke-width: 1.5; }
.ribbon .tip { fill: var(--g-2); filter: drop-shadow(0 0 6px var(--g-2)); }
html.calm .ribbon .draw { stroke-dashoffset: 0 !important; }
html.calm .ribbon .tip { display: none; }

/* ---------- buttons ---------- */
.btn { --h: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 20px; border-radius: var(--r-pill);
  font: var(--w-ui) .9375rem/1 var(--font); letter-spacing: -.01em; border: 0; cursor: pointer; white-space: nowrap; position: relative;
  transition: transform var(--d-base) var(--ease), box-shadow var(--d-base), background-color var(--d-base), opacity var(--d-base); }
.btn-primary { background: var(--text); color: var(--bg); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -6px rgba(13,14,18,.5); }
.btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 12px 24px -8px rgba(13,14,18,.5); }
.btn-buy { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 6px 18px -6px color-mix(in oklab, var(--accent) 70%, transparent); }
.btn-buy:hover{ transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 12px 26px -8px color-mix(in oklab, var(--accent) 70%, transparent); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow); }
.btn-ghost:hover{ transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn:active{ transform: scale(.97); box-shadow: none; }
.btn-sm { --h: 34px; padding: 0 14px; font-size: .875rem; }
.btn-lg { --h: 52px; padding: 0 26px; font-size: 1rem; }
.btn[disabled], .btn.is-disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.is-loading { color: transparent; }
.btn.is-loading::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--bg); border-right-color: transparent; animation: spin .7s linear infinite; }
.btn-buy.is-loading::after { border-color: var(--on-accent); border-right-color: transparent; }
.btn-ghost.is-loading::after { border-color: var(--text); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn .arr { display: inline-block; transition: transform var(--d-base) var(--ease); }
.btn:hover .arr{ transform: translateX(3px); }
.btn-meta { font: 400 .75rem/1 var(--mono); opacity: .6; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: inline-grid; place-items: center; cursor: pointer; font: 500 .75rem/1 var(--font); transition: box-shadow var(--d-base), border-color var(--d-fast); }
.icon-btn:hover{ box-shadow: var(--shadow); border-color: var(--border-2); }
.icon-btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

/* ---------- links ---------- */
.text-link { font-weight: var(--w-ui); color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }
.text-link:hover{ text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.prose a, .inline-link { color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--accent) 45%, transparent); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--d-fast), text-decoration-color var(--d-fast); }
.prose a:hover, .inline-link:hover{ color: var(--accent); text-decoration-color: var(--accent); }
.link-quiet { color: var(--text-muted); transition: color var(--d-fast); }
.link-quiet:hover{ color: var(--text); }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font: var(--w-ui) .75rem/1 var(--font); padding: 7px 11px; border-radius: var(--r-pill); background: var(--bg); border: 1px solid var(--border); color: var(--text-muted); white-space: nowrap; }
.pill-live { color: var(--ok); background: color-mix(in oklab, var(--ok) 10%, var(--surface)); border-color: color-mix(in oklab, var(--ok) 25%, transparent); }
.pill-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
.pill-accent { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
html.calm .pill-live::before { animation: none; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- nav ---------- */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: var(--r-pill);
  background: var(--nav-bg); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6); border: 1px solid var(--border); box-shadow: var(--shadow); width: max-content; max-width: calc(100% - 24px); transition: box-shadow var(--d-slow); }
.nav.is-scrolled { box-shadow: var(--shadow-lg); }
.nav.is-static { position: relative; top: 0; left: 0; transform: none; }
.logo { width: 34px; height: 34px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; font: 600 .75rem/1 var(--mono); letter-spacing: -.04em; flex: none; }
.nav-links { display: flex; position: relative; }
.nav-links a { font-size: 14px; white-space: nowrap; color: var(--text-muted); padding: 8px 14px; border-radius: var(--r-pill); position: relative; z-index: 1; transition: color var(--d-fast); }
.nav-links a:hover{ color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.nav-pill { position: absolute; top: 0; height: 100%; border-radius: var(--r-pill); background: color-mix(in oklab, var(--text) 7%, transparent); transition: left var(--d-base) var(--ease), width var(--d-base) var(--ease), opacity var(--d-fast); opacity: 0; }
.nav-pill.is-on { opacity: 1; }
.prefs { display: flex; gap: 4px; padding: 0 4px; border-left: 1px solid var(--border); margin-left: 2px; }
.prefs .icon-btn { width: 32px; height: 32px; border: 0; background: none; }
.prefs .icon-btn:hover { background: color-mix(in oklab, var(--text) 7%, transparent); box-shadow: none; }
.menu-btn { display: none; }
@media (max-width: 767px) {
  .nav { left: 12px; right: 12px; transform: none; width: auto; justify-content: space-between; }
  .nav .nav-links, .nav .prefs { display: none; } .menu-btn { display: inline-grid; } }
.sheet { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); box-shadow: var(--shadow-lg); padding: 8px; }
.sheet a { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px; border-radius: 14px; font-size: 1.0625rem; font-weight: var(--w-ui); }
.sheet a:hover{ background: var(--surface-2); }
.sheet a span { color: var(--text-meta); }
.sheet .sheet-prefs { display: flex; gap: 6px; padding: 12px 14px 6px; border-top: 1px solid var(--border); margin-top: 6px; }
@media (max-width: 768px) {
.dock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 6px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--nav-bg); backdrop-filter: blur(16px); box-shadow: var(--shadow-lg); }
.dock a { display: grid; place-items: center; gap: 3px; padding: 7px 4px; border-radius: var(--r-pill); font-size: .6875rem; font-weight: var(--w-ui); color: var(--text-meta); }
.dock a svg { width: 18px; height: 18px; }
.dock a[aria-current="page"] { color: var(--text); background: color-mix(in oklab, var(--text) 7%, transparent); }
}

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: var(--s-5); box-shadow: var(--shadow); transition: transform var(--d-base) var(--ease), box-shadow var(--d-base); }
a.card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cred-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.cred { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); transition: transform var(--d-base) var(--ease), box-shadow var(--d-base); text-align: left; }
.cred:hover{ transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cred .mk { width: 30px; height: 30px; border-radius: 9px; background: var(--l-surface); border: 1px solid var(--border); display: grid; place-items: center; margin-bottom: 12px; overflow: hidden; }
.cred .mk img { width: 20px; height: 20px; object-fit: contain; }
.cred b { display: block; font-weight: var(--w-strong); font-size: .9375rem; letter-spacing: -.02em; }
.cred span { display: block; color: var(--text-muted); font-size: .8125rem; line-height: 1.45; margin-top: 2px; }
.cred small { display: block; font: 400 .6875rem/1 var(--mono); color: var(--text-meta); margin-top: 10px; }
@media (max-width: 899px) { .cred-row { grid-template-columns: 1fr 1fr; } .cred-row > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* hero stage: a contained shader card with a product frame floating in it */
.stage { position: relative; border-radius: var(--r-panel); overflow: hidden; aspect-ratio: 16/8; box-shadow: var(--shadow-lg); background: radial-gradient(60% 80% at 15% 20%, var(--g-1), transparent 70%), radial-gradient(50% 70% at 85% 25%, var(--g-2), transparent 70%), radial-gradient(60% 70% at 75% 95%, var(--g-3), transparent 70%), #F7EEE4; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage .frame { position: absolute; left: 50%; top: 14%; width: min(72%, 820px); transform: translateX(-50%); border-radius: 16px 16px 0 0; border-bottom: 0; }
.stage-label { position: absolute; left: 20px; bottom: 18px; display: flex; gap: 8px; align-items: center; color: #fff; font: 500 .8125rem/1 var(--font); background: rgba(13,14,18,.78); backdrop-filter: blur(8px); padding: 8px 12px; border-radius: var(--r-pill); }
.stage-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7CF5B8; box-shadow: 0 0 8px #7CF5B8; }
@media (max-width: 899px) { .stage { aspect-ratio: 4/3; } .stage .frame { width: 86%; } }
@media (max-width: 640px) { .stage { aspect-ratio: 4/5; border-radius: 22px; } .stage .frame { top: 16%; width: 88%; } }
.frame { background: color-mix(in oklab, var(--surface) 88%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(20,20,60,.45); }
.frame-bar { display: flex; gap: 6px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-2); }
.frame-bar span { margin-left: 8px; font: 400 .6875rem/1 var(--mono); color: var(--text-meta); }
.frame-body { aspect-ratio: 16/10; display: grid; place-items: center; font: 400 .75rem/1.6 var(--mono); color: var(--text-meta); text-align: center; }
.frame-body img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot { border-radius: 18px; background: linear-gradient(135deg, color-mix(in oklab, var(--g-1) 9%, var(--surface)), color-mix(in oklab, var(--g-2) 8%, var(--surface))); border: 1px solid var(--border); aspect-ratio: 16/10; display: grid; place-items: center; font: 400 .75rem/1.6 var(--mono); color: var(--text-meta); text-align: center; overflow: hidden; }

/* ---------- stacked case cards ---------- */
.stack { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.scard { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); box-shadow: var(--shadow-lg); padding: clamp(22px, 3.4vw, 44px); transform-origin: 50% 0; }
.scard:nth-child(2) { top: 116px; } .scard:nth-child(3) { top: 136px; }
.scard::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: var(--bg); opacity: var(--dim, 0); pointer-events: none; }
.scard.is-behind { transform: scale(.94); --dim: .5; }
.scard-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 28px; }
.scard-links { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.scard-head h3 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); letter-spacing: -.035em; max-width: 20ch; margin-top: 12px; }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; }
.ownlist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ownlist span { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; font-size: .875rem; font-weight: var(--w-ui); }
.ownlist small { display: block; font: 400 .6875rem/1 var(--mono); color: var(--text-meta); margin-bottom: 6px; }
.costbox { border-radius: 14px; background: var(--ink); color: var(--on-ink); padding: 18px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.costbox small { color: var(--on-ink-muted); font-size: .8125rem; max-width: 24ch; }
.costbox b { font: 400 1.75rem/1 var(--mono); letter-spacing: -.05em; white-space: nowrap; }
.costbox s { color: var(--on-ink-muted); font-size: 1rem; margin-right: 6px; }
.kstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0 0; }
@media (max-width: 899px) { .kstats { grid-template-columns: 1fr 1fr; } }
.kstats > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 14px; display: grid; grid-template-rows: auto auto 1fr; }
.kstats dt { font: 400 .6875rem/1.3 var(--mono); color: var(--text-meta); text-transform: uppercase; letter-spacing: .04em; }
.kstats dd:not(.ks-note) { margin: 6px 0 4px; font: 400 1.5rem/1 var(--mono); letter-spacing: -.04em; color: var(--text); }
.kstats .ks-note { margin: 0; color: var(--text-muted); font-size: .8125rem; line-height: 1.4; }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } .scard { position: relative; top: 0 !important; } }
@media (max-width: 640px) { .scard-head { flex-direction: column; } .scard-links { align-items: flex-start; } }

/* ---------- metric tiles (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.bt { background: var(--surface-2); border: 1px solid var(--border); border-radius: 18px; padding: 20px; grid-column: span 2; display: flex; flex-direction: column; justify-content: space-between; min-height: 150px; transition: transform var(--d-base) var(--ease), box-shadow var(--d-base), background-color var(--d-base); }
.bt:hover{ background: var(--surface); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.bt.wide { grid-column: span 4; grid-row: span 2; }
.bt .num { margin: 14px 0 6px; display: block; }
.bt.wide .num { font-size: var(--fs-num-xl); }
.bt p { color: var(--text-muted); font-size: .875rem; }
.bars { display: grid; gap: 10px; margin-top: 22px; }
.bars div { display: grid; grid-template-columns: 90px 1fr 44px; gap: 12px; align-items: center; font-size: .8125rem; color: var(--text-muted); }
.bars s { height: 32px; border-radius: 10px; background: color-mix(in oklab, var(--text) 8%, transparent); display: block; transform-origin: left; text-decoration: none; }
.bars .on s { background: linear-gradient(90deg, var(--g-1), var(--g-2)); }
.bars b { font: 500 .875rem/1 var(--mono); color: var(--text); text-align: right; }
@media (max-width: 899px) { .bento { grid-template-columns: 1fr 1fr; } .bt, .bt.wide { grid-column: span 1; } .bt.wide { grid-column: span 2; grid-row: auto; } }
@media (max-width: 640px) { .bt { padding: 16px; min-height: 130px; } }

/* ---------- timeline rows ---------- */
.rows { display: grid; }
.rowx { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 18px 4px; border-top: 1px solid var(--border); border-radius: 12px; transition: padding var(--d-base) var(--ease), background-color var(--d-base); }
.rowx:hover{ background: var(--surface-2); padding-left: 16px; padding-right: 16px; }
.rowx b { font-weight: var(--w-strong); letter-spacing: -.015em; }
.rowx p { color: var(--text-muted); font-size: .9375rem; grid-column: 1; }
.rowx span { font: 400 .75rem/1.4 var(--mono); color: var(--text-meta); grid-row: span 2; align-self: center; text-align: right; }
.rowx span em { display: block; font-style: normal; color: var(--accent); }
@media (max-width: 640px) { .rowx { grid-template-columns: 1fr; } .rowx span { grid-row: auto; text-align: left; } }

/* ---------- ink panel (series teaser) ---------- */
.ink { background: var(--ink); color: var(--on-ink); border-radius: var(--r-panel); padding: clamp(26px, 4vw, 56px); position: relative; overflow: hidden; }
.ink::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -220px; background: radial-gradient(circle, color-mix(in oklab, var(--g-1) 55%, transparent), transparent 60%); filter: blur(20px); pointer-events: none; }
.ink > * { position: relative; }
.ink-split { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: center; }
@media (max-width: 899px) { .ink-split { grid-template-columns: 1fr; gap: 28px; } }
.ink p { color: var(--on-ink-muted); }
.ink .eyebrow { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.8); box-shadow: none; }
.ink .tile-ink { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); border-radius: 16px; padding: 18px; transition: transform var(--d-base) var(--ease), background-color var(--d-base); }
.ink .tile-ink:hover{ transform: translateY(-4px); background: rgba(255,255,255,.07); }
.ink .tile-ink small { font: 400 .6875rem/1 var(--mono); color: rgba(255,255,255,.5); }
.ink .tile-ink b { display: block; font-weight: var(--w-ui); margin-top: 24px; }

/* ---------- playbook stage cards ---------- */
.pb-track { display: flex; gap: 16px; }
.pstage { width: min(380px, 80vw); flex: none; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 380px; transition: box-shadow var(--d-base), transform var(--d-base) var(--ease); }
.pstage.is-on { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pstage .no { font: 300 4rem/1 var(--font); letter-spacing: -.06em; color: var(--accent); }
.pstage .pill { align-self: start; margin-top: 18px; }
.pstage h3 { font-size: var(--fs-h3); letter-spacing: -.03em; margin: 14px 0 8px; }
.pstage p { color: var(--text-muted); font-size: .9375rem; }
.pstage ul { list-style: none; padding: 20px 0 0; margin: auto 0 0; display: grid; gap: 6px; }
.pstage li a { display: flex; justify-content: space-between; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; font-size: .875rem; transition: border-color var(--d-fast), transform var(--d-base) var(--ease); }
.pstage li a::after { content: "→"; color: var(--text-meta); }
.pstage li a:hover{ border-color: var(--accent); transform: translateX(3px); }
.pstage li a:hover::after{ color: var(--accent); }
.pstage.free { background: var(--accent); color: var(--on-accent); border: 0; justify-content: space-between; }
.pstage.free p { color: color-mix(in oklab, var(--on-accent) 92%, transparent); }
.pstage.free h3 { font-size: 1.75rem; margin-top: 0; }
.pstage.free .btn { background: var(--surface); color: var(--text); align-self: start; }
.pb-progress { height: 2px; border-radius: 2px; background: var(--border); margin-top: 24px; overflow: hidden; }
.pb-progress i { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, var(--g-1), var(--g-2), var(--g-3)); }
@media (max-width: 899px) { .pb-track { flex-direction: column; } .pstage { width: auto; min-height: 0; } .pstage ul { margin-top: 0; } .pb-progress { display: none; } }

/* ---------- kit card ---------- */
.kit { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; min-height: 200px; transition: transform var(--d-base) var(--ease), box-shadow var(--d-base); }
.kit:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.kit .ic { width: 36px; height: 36px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font: 600 .75rem/1 var(--mono); }
.kit h3 { font-size: var(--fs-h4); font-weight: var(--w-strong); letter-spacing: -.02em; line-height: 1.3; }
.kit p { color: var(--text-muted); font-size: .8125rem; line-height: 1.5; flex: 1; }
.kit .pr { display: flex; justify-content: space-between; align-items: center; font-weight: 560; }
.kit .pr span { font-size: .8125rem; color: var(--accent); font-weight: var(--w-ui); opacity: 0; transform: translateX(-4px); transition: opacity var(--d-base), transform var(--d-base) var(--ease); }
.kit:hover .pr span, .kit:focus-visible .pr span { opacity: 1; transform: none; }
.kit.is-owned .pr::after { content: "Owned"; font-size: .75rem; font-weight: var(--w-ui); color: var(--ok); background: color-mix(in oklab, var(--ok) 10%, var(--surface)); padding: 4px 9px; border-radius: var(--r-pill); }
.kit.bundle { background: var(--ink); color: var(--on-ink); border: 0; flex-direction: row; align-items: end; justify-content: space-between; }
.kit.bundle p { color: var(--on-ink-muted); max-width: 34ch; }
.kit.bundle h3 { font-size: 1.375rem; }
.kit.bundle .big { font: 400 2.5rem/1 var(--font); letter-spacing: -.05em; }
@media (max-width: 640px) { .kit.bundle { flex-direction: column; align-items: start; gap: 16px; } .kit { min-height: 0; } }

/* ---------- call cards ---------- */
.callrow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.call { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 4px; transition: border-color var(--d-fast), transform var(--d-base) var(--ease); }
.call:hover{ border-color: var(--accent); transform: translateY(-2px); }
.call b { font-weight: var(--w-strong); font-size: .9375rem; }
.call small { color: var(--text-meta); font-size: .75rem; }
.call em { font-style: normal; font-weight: 560; margin-top: 10px; }
@media (max-width: 1023px) { .callrow { grid-template-columns: 1fr 1fr; } }

/* ---------- kit product page ---------- */
.kp { display: grid; grid-template-columns: minmax(0, 680px) 330px; gap: 56px; align-items: start; justify-content: space-between; }
.kp-crumb { font-size: .8125rem; color: var(--text-meta); display: flex; gap: 8px; }
.kp-crumb a:hover { color: var(--text); }
.kp h1 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); letter-spacing: -.04em; margin: 16px 0 14px; }
.kp-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 28px; }
.kp-facts div { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.kp-facts b { display: block; font: 400 1.875rem/1 var(--font); letter-spacing: -.05em; }
.kp-facts span { font-size: .75rem; color: var(--text-meta); }
.kp-inside { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.kp-inside li { display: grid; grid-template-columns: 36px 1fr; gap: 4px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.kp-inside li .ic { width: 36px; height: 36px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font: 600 .75rem/1 var(--mono); grid-row: span 2; }
.kp-inside b { font-weight: var(--w-strong); }
.kp-inside p { color: var(--text-muted); font-size: .9375rem; }
.kp-aside { position: sticky; top: calc(var(--nav-h) + 32px); background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 24px; box-shadow: var(--shadow-lg); }
.kp-price { font: 400 2.75rem/1 var(--font); letter-spacing: -.05em; }
.kp-price small { font: 400 .75rem/1 var(--mono); color: var(--text-meta); letter-spacing: 0; margin-left: 8px; }
.kp-aside .btn { width: 100%; margin-top: 18px; }
.kp-aside ul { list-style: none; padding: 0; margin: 18px 0 0; font-size: .875rem; color: var(--text-muted); display: grid; gap: 8px; }
.kp-aside li::before { content: "✓"; color: var(--accent); margin-right: 8px; font-weight: 600; }
.kp-note { font-size: .75rem; color: var(--text-meta); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.sample { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px dashed var(--border-2); border-radius: 16px; padding: 16px; }
.sample-ic { width: 40px; height: 48px; border-radius: 8px; background: var(--accent-soft); display: grid; place-items: end center; padding-bottom: 6px; font: 600 .625rem/1 var(--mono); color: var(--accent); flex: none; }
.sample p { color: var(--text-muted); font-size: .875rem; flex: 1; }
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 22px; box-shadow: var(--shadow); }
.quote p { font-size: 1.0625rem; letter-spacing: -.01em; }
.quote cite { display: flex; align-items: center; gap: 10px; font-style: normal; font-size: .8125rem; color: var(--text-meta); margin-top: 14px; }
.quote cite::before { content: ""; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--g-1), var(--g-3)); }
.buybar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 6px 6px 18px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--nav-bg); backdrop-filter: blur(16px); box-shadow: var(--shadow-lg); }
.buybar b { font-weight: 560; }
.buybar small { display: block; font-size: .6875rem; color: var(--text-meta); margin-top: 2px; }
.disclaimer { font-size: .75rem; color: var(--text-meta); }
@media (max-width: 899px) { .kp { grid-template-columns: 1fr; } .kp-aside { position: static; } .kp-facts { grid-template-columns: 1fr 1fr; } }

/* ---------- dialog (checkout, preview) ---------- */
.dialog { width: min(440px, calc(100% - 32px)); border: 1px solid var(--border); border-radius: 24px; background: var(--surface); color: var(--text); padding: 26px; box-shadow: 0 40px 120px -30px rgba(13,14,18,.45); position: relative; }
.dialog::backdrop { background: rgba(13,14,18,.35); backdrop-filter: blur(6px); }
dialog.dialog[open] { animation: dialog-in var(--d-slow) var(--ease-out); }
html.calm dialog.dialog[open] { animation: none; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.dialog-close { position: absolute; top: 16px; right: 16px; }
.dialog h2 { font-size: 1.25rem; letter-spacing: -.025em; margin: 14px 0 0; padding-right: 40px; }
.dialog-price { display: flex; align-items: baseline; gap: 10px; font: 400 2rem/1 var(--font); letter-spacing: -.05em; margin: 12px 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.dialog-price small { font: 400 .75rem/1 var(--mono); color: var(--text-meta); letter-spacing: 0; }
.dialog .btn { width: 100%; margin-top: 22px; }
.dialog-note { font-size: .75rem; color: var(--text-meta); text-align: center; margin-top: 12px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 7px; }
.field + .field { margin-top: 18px; }
.field label, .field-label { font-size: .875rem; font-weight: var(--w-ui); }
.field label .opt { color: var(--text-meta); font-weight: 400; }
.input { width: 100%; height: 46px; padding: 0 14px; border-radius: var(--r-input); border: 1px solid var(--border-2); background: var(--surface); color: var(--text); font: 400 1rem/1 var(--font);
  box-shadow: 0 1px 2px rgba(13,14,18,.04); transition: border-color var(--d-fast), box-shadow var(--d-fast); appearance: none; }
textarea.input { height: auto; min-height: 132px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--text-meta) 50%), linear-gradient(-45deg, transparent 50%, var(--text-meta) 50%); background-size: 5px 5px; background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-repeat: no-repeat; padding-right: 40px; }
.input::placeholder { color: var(--text-meta); }
.input:hover{ border-color: color-mix(in oklab, var(--text) 30%, transparent); }
.input:focus{ outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px color-mix(in oklab, var(--danger) 10%, transparent); }
.input[disabled] { background: var(--surface-2); color: var(--text-meta); cursor: not-allowed; }
.hint { font-size: .8125rem; color: var(--text-meta); }
.error { font-size: .8125rem; color: var(--danger); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; font-weight: var(--w-strong); box-shadow: var(--shadow); transition: border-color var(--d-fast), box-shadow var(--d-base), transform var(--d-base) var(--ease); }
.seg span small { font-weight: 400; color: var(--text-meta); font-size: .8125rem; }
.seg label:hover span{ transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.seg input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-ok { display: flex; gap: 12px; align-items: start; padding: 16px; border-radius: 16px; background: color-mix(in oklab, var(--ok) 9%, var(--surface)); border: 1px solid color-mix(in oklab, var(--ok) 25%, transparent); font-size: .9375rem; }
.form-ok::before { content: "✓"; color: var(--ok); font-weight: 700; }
@media (max-width: 640px) { .seg { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); transition: box-shadow var(--d-base); }
.faq details[open] { box-shadow: var(--shadow-lg); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 520; letter-spacing: -.015em; border-radius: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 26px; height: 26px; border-radius: 50%; background: var(--bg); position: relative; flex: none; transition: transform var(--d-slow) var(--ease), background-color var(--d-base); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 8px; top: 12.25px; width: 10px; height: 1.5px; background: var(--text); }
.faq summary i::after { transform: rotate(90deg); }
.faq summary:hover i{ background: var(--accent-soft); }
.faq details[open] summary i { transform: rotate(45deg); background: var(--accent-soft); }
.faq .ans { overflow: hidden; }
.faq .ans p { padding: 0 20px 20px; color: var(--text-muted); max-width: 64ch; }

/* ---------- doors (work with me) ---------- */
.doors { display: flex; gap: 10px; flex-wrap: wrap; }
.door { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 12px 18px 12px 12px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); font-weight: 520; transition: transform var(--d-base) var(--ease), box-shadow var(--d-base); }
.door i { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-style: normal; font-size: .875rem; transition: background-color var(--d-base), color var(--d-base); }
.door:hover{ transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.door:hover i{ background: var(--accent); color: var(--on-accent); }

/* ---------- footer ---------- */
.foot { padding: 56px 0 0; overflow: hidden; font-size: .875rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-top: 32px; border-top: 1px solid var(--border); }
.foot-grid h4 { font: 400 var(--fs-label)/1 var(--mono); color: var(--text-meta); margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-grid a { color: var(--text-muted); transition: color var(--d-fast); }
.foot-grid a:hover{ color: var(--text); }
.foot-brand p { color: var(--text-muted); max-width: 32ch; margin-top: 12px; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-meta); font-size: .8125rem; }
.foot-base button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; }
.wordmark { font: 500 clamp(4rem, 19vw, 16rem)/.78 var(--font); letter-spacing: -.07em; text-align: center; margin-top: 40px; background: linear-gradient(90deg, var(--g-1), var(--g-2) 55%, var(--g-3)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-mask-image: linear-gradient(180deg, #000 15%, rgba(0,0,0,.06)); mask-image: linear-gradient(180deg, #000 15%, rgba(0,0,0,.06)); user-select: none; transform: translateY(12%); }
@media (max-width: 767px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: span 2; } }

/* ---------- blog post chrome ---------- */
.progress { height: 2px; }
.progress i { display: block; height: 100%; width: var(--p, 40%); background: linear-gradient(90deg, var(--g-1), var(--g-2), var(--g-3)); border-radius: 2px; }
.post-head { max-width: var(--measure); }
.post-crumb { font-size: .8125rem; color: var(--text-meta); }
.post-series { margin-top: 20px; }
.post-title { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.045em; margin: 14px 0 14px; }
.post-dek { font-size: 1.1875rem; color: var(--text-muted); line-height: 1.5; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-size: .875rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; font: 600 .75rem/1 var(--mono); }
.byline .meta { color: var(--text-meta); font-size: .8125rem; }
.byline .btn { margin-left: auto; }
.post-layout { display: grid; grid-template-columns: minmax(0, var(--measure)) 220px; gap: 64px; justify-content: space-between; }
.toc { position: sticky; top: calc(var(--nav-h) + 32px); font-size: .8125rem; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); align-self: start; }
.toc h4 { font: 400 var(--fs-label)/1 var(--mono); color: var(--text-meta); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 7px 10px; border-radius: 10px; color: var(--text-muted); transition: background-color var(--d-fast), color var(--d-fast); }
.toc a:hover { background: var(--surface-2); color: var(--text); }
.toc a[aria-current="true"] { background: var(--accent-soft); color: var(--accent); font-weight: var(--w-ui); }
.prose { font-size: var(--fs-body); line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.5rem; letter-spacing: -.03em; margin-top: 2em; }
.prose blockquote { margin: 1.4em 0 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent); font-size: 1.0625rem; color: var(--text-muted); }
.prose code { font: 400 .875em/1 var(--mono); background: var(--surface-2); border: 1px solid var(--border); padding: .15em .4em; border-radius: 6px; }
.prose pre { background: var(--ink); color: var(--on-ink); border-radius: 16px; padding: 18px 20px; overflow-x: auto; font: 400 .8125rem/1.7 var(--mono); }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.callout { background: var(--accent-soft); border-radius: 16px; padding: 16px 18px; font-size: .9375rem; }
.callout b { display: block; font-weight: var(--w-strong); color: var(--accent); margin-bottom: 4px; }
.prose figcaption { font-size: .8125rem; color: var(--text-meta); margin-top: 10px; }
.series-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.series-nav a { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); font-weight: var(--w-ui); transition: transform var(--d-base) var(--ease), box-shadow var(--d-base); }
.series-nav a:hover{ transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.series-nav small { display: block; font-size: .75rem; font-weight: 400; color: var(--text-meta); margin-bottom: 6px; }
.series-nav a + a { text-align: right; }
.engage { display: flex; gap: 8px; align-items: center; }
.like { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: var(--w-ui) .875rem/1 var(--font); cursor: pointer; box-shadow: var(--shadow); transition: all var(--d-base) var(--ease); }
.like svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.like[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); border-color: transparent; box-shadow: none; }
.like[aria-pressed="true"] svg { fill: currentColor; }
.like span { color: var(--text-meta); font-family: var(--mono); }
.reading { background: var(--surface); }
.reading .prose { font-size: var(--fs-read); line-height: 1.75; }
.textsize { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.textsize button { width: 34px; height: 28px; border-radius: var(--r-pill); border: 0; background: none; color: var(--text-muted); cursor: pointer; font: var(--w-ui) .8125rem/1 var(--font); }
.textsize button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
@media (max-width: 899px) { .post-layout { grid-template-columns: 1fr; } .toc { display: none; } }

/* ---------- reveal (progressive: hidden only once motion is ready, never in calm) ---------- */
html.rise-ready:not(.calm) [data-rise] { opacity: 0; transform: translateY(20px) scale(.985); }
html.rise-ready:not(.calm) [data-rise].is-in { opacity: 1; transform: none; transition: opacity var(--d-reveal) var(--ease-out), transform 1s var(--ease-out); }

/* =====================================================================
   Page layer: base.css overrides, shared chrome, home sections
   ===================================================================== */

/* base.css carries the blog's fonts and button colours; v5 pages use Geist and the tokens above */
.v5 { --font-body: var(--font); --font-mono: var(--mono); --font-reading: var(--font); --font-meta: var(--mono); --font-display: var(--font); --nav-h: 64px;
  --radius: var(--r-input); --radius-lg: var(--r-card); --surface-3: var(--surface-2); --link: var(--accent);
  --accent-dim: color-mix(in oklab, var(--accent) 40%, transparent);
  --accent-2: var(--g-2); --accent-2-soft: color-mix(in oklab, var(--g-2) 12%, transparent); }
.v5 body { font-family: var(--font); line-height: 1.6; }
.v5 main { position: relative; z-index: 2; min-width: 0; width: 100%; }
.v5 .btn-primary:hover, .v5 [data-theme] .btn-primary:hover { background: var(--text); color: var(--bg); }
.v5 .btn-ghost:hover { color: var(--text); border-color: var(--border-2); }
.v5 .btn-buy:hover { color: var(--on-accent); }
.v5 .btn { padding-top: 0; padding-bottom: 0; }
.cf-trap, .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }   /* spam traps on forms */
.frame-empty { font: 400 .75rem/1.6 var(--mono); color: var(--text-meta); }

/* ---------- nav (the existing ids, restyled as the floating pill) ---------- */
.vnav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 130; display: flex; align-items: center; gap: 6px; padding: 6px;
  border-radius: var(--r-pill); background: var(--nav-bg); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid var(--border); box-shadow: var(--shadow); width: max-content; max-width: calc(100% - 24px); transition: box-shadow var(--d-slow); }
.vnav.scrolled { box-shadow: var(--shadow-lg); }
.vnav .logo { order: 0; }
.vnav .nav-links { order: 1; display: flex; gap: 0; position: relative; list-style: none; margin: 0; padding: 0; }
.vnav .nav-links a { display: block; font: 400 14px/1.2 var(--font); white-space: nowrap; color: var(--text-muted); padding: 9px 14px; border-radius: var(--r-pill); position: relative; z-index: 1; transition: color var(--d-fast); }
.vnav .nav-links a:hover { color: var(--text); }
.vnav .nav-links a[aria-current="page"] { color: var(--text); }
.vnav .nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.vnav .nav-links-cta { display: none; }
.vnav .nav-pill { position: absolute; top: 0; height: 100%; border-radius: var(--r-pill); background: color-mix(in oklab, var(--text) 7%, transparent); opacity: 0; pointer-events: none; transition: left var(--d-base) var(--ease), width var(--d-base) var(--ease), opacity var(--d-fast); }
.vnav .nav-pill.is-on { opacity: 1; }
.vnav .nav-cta { order: 3; display: inline-flex; margin: 0; height: 36px; padding: 0 16px; font: var(--w-ui) 14px/1 var(--font); }
.vnav .hamburger { order: 4; display: none; }
@media (max-width: 767px) {
  .vnav { left: 12px; right: 12px; transform: none; width: auto; justify-content: flex-start; }
  .vnav .logo { margin-right: auto; }
  .vnav .nav-links { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); box-shadow: var(--shadow-lg); }
  .vnav .nav-links.open { display: flex; }
  .vnav .nav-links a { font-size: 1.0625rem; font-weight: var(--w-ui); color: var(--text); padding: 14px; border-radius: 14px; }
  .vnav .nav-links a:hover { background: var(--surface-2); }
  .vnav .nav-links a[aria-current="page"]::after { left: auto; right: 16px; top: 50%; bottom: auto; margin: -2px 0 0; }
  .vnav .nav-cta { display: inline-flex; margin: 0; }
  .vnav .hamburger { display: inline-grid; place-content: center; width: 36px; height: 36px; margin: 0; padding: 0; border-radius: 50%; border: 0; background: none; }
  .vnav .hamburger span { width: 16px; height: 1.5px; margin: 2.5px 0; background: var(--text); }
  .vnav .hamburger.active span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .vnav .hamburger.active span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }
}

/* ---------- the Home mark: "Home" on an ink pill, a large clipped AJ monogram behind it ---------- */
.vnav .home-mark { position: relative; isolation: isolate; overflow: hidden; width: auto; height: 34px; padding: 0 30px 0 14px; display: inline-flex; align-items: center;
  border-radius: var(--r-pill); background: var(--text); color: var(--bg); letter-spacing: 0; }
.home-mark .hm-label { font: var(--w-ui) 13px/1 var(--font); letter-spacing: -.01em; }
.home-mark .hm-aj { position: absolute; z-index: -1; right: 3px; top: 50%; margin-top: -.4em; font: 700 36px/1 var(--mono); letter-spacing: -.1em; color: var(--bg); opacity: .2; pointer-events: none;
  transition: transform var(--d-base) var(--ease), opacity var(--d-base) var(--ease); }
.home-mark:hover .hm-aj, .home-mark:focus-visible .hm-aj { opacity: .34; transform: translateX(-4px); }
html.calm .home-mark .hm-aj { transition: none; }
@media (prefers-reduced-motion: reduce) { .home-mark .hm-aj { transition: none; } }

/* ---------- Display settings: the gear, and its panel (assets/prefs.js) ---------- */
.vnav .set-btn { order: 2; display: inline-grid; place-items: center; width: 34px; height: 34px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text-muted); cursor: pointer; transition: background-color var(--d-fast), color var(--d-fast); }
.vnav .set-btn:hover, .vnav .set-btn[aria-expanded="true"] { background: color-mix(in oklab, var(--text) 7%, transparent); color: var(--text); }
.vnav .set-btn svg { transition: transform var(--d-slow) var(--ease); }
.vnav .set-btn:hover svg, .vnav .set-btn[aria-expanded="true"] svg { transform: rotate(60deg); }
html.calm .vnav .set-btn svg { transition: none; transform: none; }
@media (prefers-reduced-motion: reduce) { .vnav .set-btn svg { transition: none; transform: none !important; } }

/* desktop: a popover under the gear (prefs.js sets top and left) */
.set-panel { position: fixed; inset: auto; margin: 0; width: 320px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow: auto; padding: 6px 16px 14px;
  border: 1px solid var(--border); border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); font-family: var(--font);
  transform-origin: var(--set-arrow, 90%) 0; overscroll-behavior: contain; }
.set-panel::backdrop { background: transparent; }
.set-grab, .set-close { display: none; }
.set-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 2px; }
.set-title { margin: 0; font: var(--w-strong) 15px/1.2 var(--font); letter-spacing: -.015em; color: var(--text); }
.set-row { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--border); }
.set-head + .set-row { border-top: 0; padding-top: 8px; }
.set-label { font: 400 12px/1.2 var(--mono); color: var(--text-meta); }
.set-hint { margin: 0; font: 400 12px/1.4 var(--font); color: var(--text-meta); }
.set-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px; border-radius: 12px; background: color-mix(in oklab, var(--text) 5%, transparent); }
.set-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 34px; margin: 0; padding: 0 8px; border: 0; border-radius: 9px; background: none;
  color: var(--text-muted); font: var(--w-ui) 13px/1 var(--font); cursor: pointer; transition: background-color var(--d-fast), color var(--d-fast), box-shadow var(--d-fast); }
.set-seg button:hover { color: var(--text); }
.set-seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border-2), var(--shadow); }
[data-theme="dark"] .set-seg button[aria-pressed="true"] { background: color-mix(in oklab, var(--text) 12%, var(--surface)); }
.set-seg button[aria-pressed="true"] svg { color: var(--accent); }
.set-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.set-a { font-family: var(--font); font-weight: var(--w-ui); line-height: 1; }
.set-a1 { font-size: 12px; } .set-a2 { font-size: 14px; } .set-a3 { font-size: 17px; } .set-a4 { font-size: 20px; }
/* Reader mode (blog/blog.js): only where the page lets you choose the layout */
.set-row-reader { display: none; }
html[data-mode]:not([data-mode-fixed]) .set-row-reader { display: grid; }
.set-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 40px; margin: 0; padding: 0; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; }
.set-switch-text { display: grid; gap: 2px; }
.set-switch-name { font: var(--w-ui) 14px/1.3 var(--font); }
.set-knob { flex: none; position: relative; width: 36px; height: 22px; border-radius: var(--r-pill); background: var(--border-2); transition: background-color var(--d-base); }
.set-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); transition: transform var(--d-base) var(--ease); }
.set-switch[aria-pressed="true"] .set-knob { background: var(--accent); }
.set-switch[aria-pressed="true"] .set-knob::after { transform: translateX(14px); }
html:not(.calm) .set-panel[open] { animation: set-pop var(--d-base) var(--ease-out); }
@keyframes set-pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }

/* phones: a bottom sheet over the dock, with a handle you can drag down */
.set-panel.is-sheet { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-width: 100%; max-height: calc(100dvh - 48px); padding: 0 20px calc(20px + env(safe-area-inset-bottom));
  border-width: 1px 0 0; border-radius: 24px 24px 0 0; transform-origin: 50% 100%; }
.set-panel.is-sheet::backdrop { background: color-mix(in oklab, var(--ink) 45%, transparent); }
.is-sheet .set-grab { display: flex; justify-content: center; padding: 10px 0 2px; cursor: grab; touch-action: none; }
.is-sheet .set-grab span { width: 40px; height: 5px; border-radius: var(--r-pill); background: var(--border-2); }
.is-sheet .set-head { touch-action: none; padding-top: 4px; }
.is-sheet .set-title { font-size: 17px; }
.is-sheet .set-close { display: inline-grid; place-items: center; width: 44px; height: 44px; margin: 0 -10px 0 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text-muted); cursor: pointer; }
.is-sheet .set-close:hover { color: var(--text); background: color-mix(in oklab, var(--text) 7%, transparent); }
.is-sheet .set-row { padding: 16px 0; gap: 10px; }
.is-sheet .set-label { font-size: 13px; }
.is-sheet .set-seg { border-radius: 14px; padding: 4px; }
.is-sheet .set-seg button { height: 48px; border-radius: 11px; font-size: 15px; }
.is-sheet .set-a1 { font-size: 14px; } .is-sheet .set-a2 { font-size: 17px; } .is-sheet .set-a3 { font-size: 20px; } .is-sheet .set-a4 { font-size: 24px; }
.is-sheet .set-switch { min-height: 52px; }
.is-sheet .set-switch-name { font-size: 16px; }
html:not(.calm) .set-panel.is-sheet { transition: transform var(--d-base) var(--ease); }
.set-panel.is-dragging { transition: none; }
html:not(.calm) .set-panel.is-sheet[open] { animation: set-sheet var(--d-slow) var(--ease-out); }
@keyframes set-sheet { from { transform: translateY(100%); } }
html:has(.set-panel.is-sheet[open]) { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { html .set-panel[open], html .set-panel.is-sheet[open] { animation: none; } html .set-panel.is-sheet { transition: none; } }

/* ---------- phone dock, cookie banner, continue-reading card ---------- */
@media (max-width: 768px) {
  .v5 .dock { border-radius: 26px; background: var(--nav-bg); border-color: var(--border); box-shadow: var(--shadow-lg); }
  .v5 .dock-item { font: var(--w-ui) 11px/1.1 var(--font); color: var(--text-meta); border-radius: 20px; }
  .v5 .dock-item[aria-current="page"] { color: var(--text); background: color-mix(in oklab, var(--text) 7%, transparent); }
}
.v5 .cookie-banner, .v5 .resume-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-lg); font-family: var(--font); }

/* ---------- the ribbon ---------- */
.v5 .ribbon .ghost { stroke: var(--text); }
.v5 .vfoot { position: relative; z-index: 2; }

/* ---------- sections ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section-tight { padding-top: 0; }
.sec-head { text-align: center; max-width: 660px; margin: 0 auto 48px; }
.sec-head h2 { margin: 16px 0 12px; }
.sec-head .t-lead { margin: 0 auto; max-width: 560px; }
.sec-aside { margin: 10px 0 0; color: var(--text-muted); font-size: .9375rem; display: flex; flex-wrap: wrap; gap: 4px 8px; justify-content: center; align-items: baseline; }

/* hero */
.hero { padding: 128px 0 0; text-align: center; }
.hero h1 { max-width: 15ch; margin: 22px auto 18px; }
.hero-lede { max-width: 560px; margin: 0 auto; }
.hero-ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.hero .cred-row { list-style: none; padding: 0; margin: 48px auto 0; max-width: 980px; }
.stage-wrap { max-width: 1240px; margin: 56px auto 0; padding: 0 12px; }
.stage { transform-origin: 50% 0; }
.stage-gl { opacity: 0; transition: opacity 1.2s var(--ease-out); }
.stage-gl.is-on { opacity: 1; }
@media (max-width: 640px) { .hero { padding-top: 96px; } .stage-wrap { padding: 0 8px; margin-top: 40px; } }
[data-words] .w { display: inline-block; }
html.rise-ready:not(.calm) [data-words] .w { opacity: 0; filter: blur(8px); transform: translateY(12px); }
html.rise-ready:not(.calm) [data-words].is-in .w { opacity: 1; filter: none; transform: none; transition: opacity .8s var(--ease-out), filter .8s var(--ease-out), transform .9s var(--ease-out); }

/* work */
.frame-flat { box-shadow: none; backdrop-filter: none; background: var(--surface-2); border-radius: 18px; }
.split-side { display: grid; gap: 12px; align-content: start; }
.split-side > p { color: var(--text-muted); }
.rows { list-style: none; margin: 0; padding: 0; }
@media (max-width: 899px) { .scard { margin-bottom: 0; } }

/* series teaser */
.ink h2 { color: var(--on-ink); margin: 16px 0 12px; }
.ink-parts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.notify { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; max-width: 440px; }
.notify .input { flex: 1 1 200px; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: var(--on-ink); box-shadow: none; }
.notify .input::placeholder { color: var(--on-ink-muted); }
.notify .btn-ghost { border: 0; }
.notify .newsletter-status { flex-basis: 100%; margin: 0; font-size: .875rem; color: var(--on-ink-muted); min-height: 1.2em; }
@media (max-width: 480px) { .ink-parts { grid-template-columns: 1fr; } }

/* playbook: a native horizontal scroller; v5.js pins it to vertical scroll on wide screens (not in calm) */
.pb-sticky { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 0 12px; }
.pb-sticky::-webkit-scrollbar { display: none; }
.pb-track { width: max-content; padding: 4px max(var(--gutter), calc((100vw - var(--max-w)) / 2)); }
.pstage { scroll-snap-align: center; }
.pstage .pstage-more { color: var(--accent); background: none; border-style: dashed; }
.pb-pin.is-pinned .pb-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; scroll-snap-type: none; }
.pb-pin.is-pinned .pb-track { will-change: transform; }
.pb-progress i { width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); }
@media (max-width: 899px) { .pb-sticky { overflow: visible; } .pb-track { width: auto; padding: 0 var(--gutter); } }

/* kits and calls */
.kitgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kit p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kit.bundle { grid-column: span 2; }
.kit.bundle > span:first-child { display: grid; gap: 6px; }
.kit.bundle p { -webkit-line-clamp: 2; }
.calls-title { font-size: var(--fs-h4); font-weight: var(--w-strong); letter-spacing: -.02em; margin: 48px 0 14px; }
.disclaimer { text-align: center; margin-top: 20px; }
@media (max-width: 1023px) { .kitgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kitgrid { grid-template-columns: 1fr; } .kit.bundle { grid-column: auto; } }

/* faq, final, footer */
.faq { max-width: 760px; margin: 0 auto; }
.final { text-align: center; padding: var(--section-y) 0 40px; }
.final h2 { max-width: 16ch; margin: 18px auto 14px; }
.final .doors { justify-content: center; margin-top: 28px; }
.vfoot { padding: 56px 0 0; overflow: hidden; font-size: .875rem; }
.vfoot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-top: 32px; border-top: 1px solid var(--border); }
.vfoot-grid h2 { font: 400 var(--fs-label)/1 var(--mono); color: var(--text-meta); margin-bottom: 14px; }
.vfoot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.vfoot-grid a { color: var(--text-muted); transition: color var(--d-fast); }
.vfoot-grid a:hover { color: var(--text); }
.vfoot-brand p { color: var(--text-muted); max-width: 32ch; margin-top: 12px; }
.vfoot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-meta); font-size: .8125rem; }
.vfoot-base button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; }
@media (max-width: 767px) { .vfoot-grid { grid-template-columns: 1fr 1fr; } .vfoot-brand { grid-column: span 2; } }
.bars s { transform: scaleX(var(--w, 1)); }
html.rise-ready:not(.calm) .bars:not(.is-in) s { transform: scaleX(0); }
html.rise-ready:not(.calm) .bars.is-in s { transition: transform 1.4s var(--ease-out) .2s; }
/* a real screenshot sets its own shape; the empty frame keeps 16:10 */
.frame-body:has(img) { aspect-ratio: auto; display: block; }
.frame-body img { height: auto; }
.shot-zoom { all: unset; display: block; position: relative; width: 100%; cursor: zoom-in; }
.shot-zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.shot-hint { position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font: 500 .75rem/1 var(--mono); opacity: 0; transform: translateY(4px); transition: opacity var(--d-base) var(--ease), transform var(--d-base) var(--ease); pointer-events: none; }
.shot-zoom:hover .shot-hint, .shot-zoom:focus-visible .shot-hint { opacity: 1; transform: none; }
@media (hover: none) { .shot-hint { opacity: .92; transform: none; } }
.stage .shot-hint { bottom: auto; top: 12px; }
.shot-dialog { width: min(1400px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); overflow: hidden; }
.shot-dialog[open] { display: flex; flex-direction: column; }
.shot-dialog::backdrop { background: rgba(10,10,20,.62); backdrop-filter: blur(6px); }
.shot-bar { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--border); font: 400 .75rem/1.3 var(--mono); color: var(--text-meta); }
.shot-cap { color: var(--text); }
.shot-tip { margin-left: auto; }
.shot-close { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.shot-body { overflow: auto; overscroll-behavior: contain; min-height: 0; }
.shot-body img { display: block; width: 100%; height: auto; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.shot-body.is-zoomed img { width: max(1600px, 200%); max-width: none; cursor: grab; }
.shot-body.is-dragging img { cursor: grabbing; }
@media (max-width: 640px) { .shot-tip { display: none; } .shot-cap { flex: 1; } }
html:not(.calm) .shot-dialog[open] { animation: shot-in var(--d-base) var(--ease-out); }
@keyframes shot-in { from { opacity: 0; transform: scale(.98); } }
@media (prefers-reduced-motion: reduce) { html .shot-dialog[open] { animation: none; } }
/* phones: a shorter stage now that the screenshot is a wide 2:1 */
@media (max-width: 640px) { .hero .stage { aspect-ratio: 1 / 1; } .hero .stage .frame { top: 12%; } }

/* =====================================================================
   /career/
   ===================================================================== */
.page-hero { padding-bottom: 0; }
.hero-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-lg); border: 3px solid var(--surface); }
.page-hero h1 { margin-top: 18px; }
.jump { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.jump a { font: var(--w-ui) .8125rem/1 var(--font); color: var(--text-muted); padding: 9px 14px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); transition: color var(--d-fast), box-shadow var(--d-base); }
.jump a:hover { color: var(--text); box-shadow: var(--shadow); }

/* timeline: one card, a row per role; a role with detail opens in place */
.timeline { max-width: 900px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); box-shadow: var(--shadow-lg); padding: 8px; }
.role { border-radius: 18px; transition: background-color var(--d-base); }
.role + .role { border-top: 1px solid var(--border); }
.role > summary, .role-static { display: grid; grid-template-columns: 150px 1fr 28px; gap: 4px 20px; padding: 18px 16px; align-items: baseline; }
.role-static { grid-template-columns: 150px 1fr; }
.role > summary { list-style: none; cursor: pointer; border-radius: 18px; }
.role > summary::-webkit-details-marker { display: none; }
.role > summary::after { content: "+"; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); color: var(--text-meta); display: grid; place-items: center; font: 400 1rem/1 var(--font); align-self: center; transition: transform var(--d-slow) var(--ease); }
.role[open] > summary::after { transform: rotate(45deg); }
.role > summary:hover { background: var(--surface-2); }
.role[open] { background: var(--surface-2); }
.role-when { font: 400 .75rem/1.5 var(--mono); color: var(--text-meta); }
.role-dates { display: block; }
.role-engagement { display: block; color: var(--accent); }
.role-what { font-weight: var(--w-strong); letter-spacing: -.015em; }
.role-what .org { display: inline-flex; align-items: center; gap: 8px; }
.role-what a.org:hover { color: var(--accent); }
.org-logo { width: 20px; height: 20px; border-radius: 5px; object-fit: contain; background: var(--l-surface); }
.role-sum { display: block; font-weight: 400; color: var(--text-muted); font-size: .9375rem; margin-top: 4px; letter-spacing: var(--track-body); }
.role ul { list-style: none; margin: 0; padding: 0 16px 18px calc(150px + 36px); display: grid; gap: 10px; }
.role li { position: relative; padding-left: 16px; color: var(--text-muted); font-size: .9375rem; }
.role li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .6; }
.role li.role-site::before { display: none; }
.role li.is-hl { color: var(--text); background: var(--accent-soft); border-radius: 8px; padding: 4px 8px 4px 16px; transition: background-color 1s var(--ease); }
.role.is-hl-role { box-shadow: 0 0 0 2px var(--accent-soft); }
.role-hint { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font: 400 .6875rem/1.5 var(--mono); letter-spacing: 0; vertical-align: 2px; white-space: nowrap; }
.role-reads { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-weight: 400; letter-spacing: var(--track-body); }
.rr-label { display: inline-flex; gap: 6px; align-items: center; font: 400 .6875rem/1 var(--mono); color: var(--text-meta); text-transform: uppercase; letter-spacing: .05em; margin-right: 2px; }
.rr-label i { font-style: normal; color: var(--accent); }
.rr { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: .8125rem; line-height: 1.3; transition: border-color var(--d-base) var(--ease), color var(--d-base) var(--ease), transform var(--d-base) var(--ease); }
.rr:hover { border-color: var(--accent); color: var(--accent); }
.rr-kit { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.rr-kit small { font: 500 .625rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 3px 6px; border-radius: 6px; background: var(--accent); color: var(--on-accent); }
.rr-kit:hover { transform: translateY(-1px); }
.rr-kitwrap { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.rr-ask { font-size: .8125rem; color: var(--text-meta); }
@media (max-width: 640px) { .rr-kitwrap { margin-left: 0; } }
.role-static .role-reads { margin-top: 12px; }

/* research: the paper */
.research { align-items: center; }
.paper { position: relative; margin: 0; display: grid; gap: 18px; justify-items: center; }
.paper-sheet { width: min(88%, 360px); background: var(--l-surface); color: var(--l-text); border-radius: 6px; padding: 26px 24px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06); transform: rotate(-2deg); display: flex; flex-direction: column; gap: 7px; }
.paper-sheet p { margin: 0; color: inherit; }
.paper-venue { display: flex; justify-content: space-between; font: 400 .625rem/1 var(--mono); color: var(--l-meta) !important; text-transform: uppercase; letter-spacing: .06em; padding-bottom: 10px; border-bottom: 1px solid rgba(0,0,0,.08); margin-bottom: 6px !important; }
.paper-title { font-size: 1.0625rem; font-weight: var(--w-strong); letter-spacing: -.02em; line-height: 1.25; text-align: center; }
.paper-by { font-size: .75rem; text-align: center; color: var(--l-muted) !important; }
.paper-aff { font-size: .625rem; text-align: center; color: var(--l-meta) !important; margin-bottom: 6px !important; }
.paper-h { font-size: .6875rem; font-weight: var(--w-strong); text-align: center; }
.paper-line { display: block; height: 5px; border-radius: 3px; background: rgba(0,0,0,.09); }
.paper-line.short { width: 60%; }
@media (min-width: 900px) { .paper-sheet { aspect-ratio: 1 / 1.25; } }
.paper-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; margin-top: 8px; }
.paper-stamp { position: absolute; z-index: 1; top: 52%; right: max(4%, calc(50% - 210px)); padding: 8px 14px; border: 2px solid var(--g-3); color: var(--g-3); border-radius: 10px; font: 600 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; transform: rotate(9deg); background: color-mix(in oklab, var(--l-surface) 92%, transparent); box-shadow: 0 8px 20px -10px rgba(0,0,0,.4); }
.paper-trail { display: flex; gap: 0; width: min(100%, 420px); font: 400 .6875rem/1.4 var(--mono); color: rgba(255,255,255,.55); }
.paper-trail span { flex: 1; position: relative; padding-top: 14px; text-align: center; }
.paper-trail span::before { content: ""; position: absolute; top: 3px; left: 0; right: 0; height: 1px; background: rgba(255,255,255,.18); }
.paper-trail span::after { content: ""; position: absolute; top: 0; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: rgba(255,255,255,.4); }
.paper-trail b { display: block; font-weight: 500; color: rgba(255,255,255,.85); }
.paper-trail .on { color: rgba(255,255,255,.9); }
.paper-trail .on::after { background: var(--g-3); box-shadow: 0 0 0 4px color-mix(in oklab, var(--g-3) 30%, transparent); }
html:not(.calm) .research.is-in .paper-sheet { animation: paper-in 1s var(--ease-out) both; }
html:not(.calm) .research.is-in .paper-stamp { animation: stamp-in .5s .7s var(--ease-out) both; }
@keyframes paper-in { from { opacity: 0; transform: rotate(-6deg) translateY(24px); } }
@keyframes stamp-in { from { opacity: 0; transform: rotate(9deg) scale(1.6); } }
@media (prefers-reduced-motion: reduce) { html .research .paper-sheet, html .research .paper-stamp { animation: none !important; } }

/* education: quiet, at the foot of /career/ */
.education { padding-top: 24px; }
.edu-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 16px; margin-bottom: 20px; }
.edu-head h2 { margin: 0; }
.edu-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.edu { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 22px; display: grid; grid-template-columns: 48px 1fr; grid-template-areas: "logo years" "logo name" "logo degree" "logo sum" "items items"; column-gap: 16px; row-gap: 4px; align-items: start; align-content: start; }
.edu-logo { grid-area: logo; width: 48px; height: 48px; border-radius: 12px; background: var(--l-surface); border: 1px solid var(--border); display: grid; place-items: center; }
.edu-logo img { width: 32px; height: 32px; object-fit: contain; }
.edu-years { grid-area: years; font: 400 .75rem/1.5 var(--mono); color: var(--text-meta); }
.edu h3 { grid-area: name; margin: 0; font-size: 1rem; font-weight: var(--w-strong); letter-spacing: -.02em; line-height: 1.3; }
.edu-degree { grid-area: degree; margin: 0; color: var(--text); font-size: .9375rem; }
.edu-sum { grid-area: sum; margin: 6px 0 0; color: var(--text-muted); font-size: .875rem; line-height: 1.5; }
.edu-years { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.edu-grade { padding: 2px 8px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font: 500 .6875rem/1.5 var(--mono); }
.edu-items { grid-area: items; list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--border); display: grid; gap: 12px; }
.edu-items b { font-size: .875rem; font-weight: var(--w-strong); letter-spacing: -.01em; }
.edu-items b a { color: var(--text); }
.edu-items b a:hover { color: var(--accent); }
.edu-when { margin-left: 8px; font: 400 .6875rem/1 var(--mono); color: var(--text-meta); }
.edu-items p { margin: 3px 0 0; color: var(--text-muted); font-size: .8125rem; line-height: 1.5; }
@media (max-width: 760px) { .edu-list { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .role > summary, .role-static { grid-template-columns: 1fr 28px; }
  .role-static { grid-template-columns: 1fr; }
  .role-when { grid-column: 1; }
  .role > summary::after { grid-column: 2; grid-row: 1 / span 2; }
  .role ul { padding: 0 16px 18px; }
}

/* case cards (the stack) */
.case-stack { list-style: none; margin: 0; padding: 0; }
.case-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: stretch; }
.case-body { margin: 0; display: grid; gap: 10px; }
.case-body > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; }
.case-body dt { font: 400 var(--fs-label)/1 var(--mono); color: var(--text-meta); margin-bottom: 8px; }
.case-body dd { margin: 0; color: var(--text-muted); font-size: .9375rem; }
.case-viz { background: var(--surface-2); border: 1px solid var(--border); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; }
.case-viz .num { display: block; margin: 10px 0 14px; font-size: var(--fs-num-xl); }
.chart { width: 100%; height: auto; margin-top: auto; overflow: visible; }
.chart text { font: 500 11px var(--mono); fill: var(--text-muted); }
.chart .chart-sub { fill: var(--text-meta); font-weight: 400; }
.chart-axis { stroke: var(--border-2); stroke-width: 1; fill: none; }
.chart-area { fill: var(--accent-soft); }
.chart-line { stroke: var(--accent); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.chart-dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.chart-dot-end { fill: var(--accent); }
.chart .bar { fill: color-mix(in oklab, var(--text) 12%, transparent); }
.chart .bar-accent { fill: var(--accent); }
.chart .edge { stroke: var(--border-2); stroke-width: 1.5; fill: none; }
.chart .edge-match { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 4; }
.chart .node { fill: var(--surface); stroke: var(--text-meta); stroke-width: 1.5; }
.chart .node-hub { fill: var(--text); stroke: none; }
.chart .node-new { fill: var(--accent); stroke: none; }
.chart-caption { font-size: .8125rem; color: var(--text-meta); margin-top: 10px; }
.also { margin-top: 24px; }
.also ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.also li { color: var(--text-muted); font-size: .9375rem; }
.also strong { color: var(--text); font-weight: var(--w-strong); }
@media (max-width: 899px) { .case-grid { grid-template-columns: 1fr; } .also ul { grid-template-columns: 1fr; } }

/* research (ink), skills */
.ink-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.ink .btn-ghost { background: rgba(255,255,255,.08); color: var(--on-ink); border-color: rgba(255,255,255,.14); box-shadow: none; }
.ink p strong { color: var(--on-ink); }
.skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.skills dt { font: 400 var(--fs-label)/1 var(--mono); color: var(--text-meta); margin-bottom: 12px; }
.skills dd { margin: 0; font-weight: var(--w-ui); letter-spacing: -.01em; }
@media (max-width: 899px) { .skills { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .skills { grid-template-columns: 1fr; } }

/* =====================================================================
   /prep/
   ===================================================================== */
.prep-stage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.prep-stage { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: box-shadow var(--d-base), transform var(--d-base) var(--ease); }
.prep-stage:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.prep-stage h3 { font-size: 1.125rem; letter-spacing: -.025em; }
.prep-stage > p { color: var(--text-muted); font-size: .875rem; margin: 8px 0 16px; }
.prep-stage-links { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 6px; }
.prep-stage-links li { display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: baseline; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 9px 12px; font-size: .8125rem; line-height: 1.4; transition: border-color var(--d-fast); }
.prep-stage-links li:hover { border-color: var(--accent); }
.prep-stage-links a:hover { color: var(--accent); }
.prep-kind { font: 400 .6875rem/1.4 var(--mono); color: var(--text-meta); }
.prep-part { font: 400 .6875rem/1 var(--mono); color: var(--accent); margin-right: 2px; }
.prep-soon { font-size: .6875rem; color: var(--text-meta); }
@media (max-width: 1023px) { .prep-stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .prep-stage-grid { grid-template-columns: 1fr; } }

.prep-rounds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.prep-round { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.prep-round h3 { font-size: 1.125rem; letter-spacing: -.025em; }
.prep-round-note { color: var(--text-muted); font-size: .875rem; margin: 6px 0 14px; }
#round-all { background: var(--ink); color: var(--on-ink); border: 0; grid-column: 1 / -1; }
#round-all .prep-round-note, #round-all .kit-row p { color: var(--on-ink-muted); }
#round-all .kit-row a { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.kit-row a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; transition: border-color var(--d-fast), transform var(--d-base) var(--ease); }
.kit-row a:hover { border-color: var(--accent); transform: translateX(3px); }
.kit-row + .kit-row { margin-top: 8px; }
.kit-row h4 { font-size: var(--fs-h4); font-weight: var(--w-strong); letter-spacing: -.02em; }
.kit-row p { grid-column: 1; color: var(--text-muted); font-size: .8125rem; line-height: 1.5; }
.kit-row .row-meta { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; font-weight: 560; white-space: nowrap; }
.price-tax { display: block; font: 400 .6875rem/1.4 var(--mono); color: var(--text-meta); }
.section-more { text-align: center; margin-top: 24px; }
@media (max-width: 899px) { .prep-rounds { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .kit-row a { grid-template-columns: 1fr; } .kit-row .row-meta { grid-column: 1; grid-row: auto; text-align: left; } }

.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.fit ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.fit li { position: relative; padding-left: 24px; color: var(--text-muted); font-size: .9375rem; }
.fit li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 600; }
.fit .fit-no li::before { content: "×"; color: var(--text-meta); }
@media (max-width: 640px) { .fit { grid-template-columns: 1fr; } }

.price-list { display: grid; gap: 12px; }
.price-item { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); scroll-margin-top: calc(var(--nav-h) + 32px); }
.price-item:target { box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-lg); }
.price-main h3 { font-size: 1.25rem; letter-spacing: -.025em; }
.price-main p { color: var(--text-muted); margin-top: 6px; max-width: 60ch; }
.badge { font: var(--w-ui) .6875rem/1 var(--font); color: var(--accent); background: var(--accent-soft); padding: 4px 8px; border-radius: var(--r-pill); vertical-align: middle; }
.price-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.price-side .price, .price-side .price-now { font: 400 1.75rem/1 var(--font); letter-spacing: -.04em; }
.price-dur { font: 400 .75rem/1 var(--mono); color: var(--text-meta); margin-bottom: 6px; }
.svc-more { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.svc-more > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; }
.svc-more h4 { font: 400 var(--fs-label)/1 var(--mono); color: var(--text-meta); margin-bottom: 10px; }
.svc-more ul { margin: 0; padding-left: 18px; color: var(--text-muted); font-size: .875rem; display: grid; gap: 4px; }
.svc-more p { color: var(--text-muted); font-size: .875rem; }
.svc-reviews { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.svc-review { margin: 0; background: var(--surface-2); border-radius: 16px; padding: 14px 16px; }
.svc-review blockquote { margin: 0; }
.svc-review figcaption { font-size: .8125rem; color: var(--text-meta); margin-top: 8px; }
.svc-review figcaption span { display: block; }
@media (max-width: 640px) { .price-item { grid-template-columns: 1fr; } .price-side { flex-direction: row; align-items: center; flex-wrap: wrap; } .price-side .btn { margin-left: auto; } .svc-more { grid-template-columns: 1fr; } }

.steps { margin-top: 32px; }
.steps ol { list-style: none; counter-reset: s; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); color: var(--text-muted); font-size: .9375rem; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 300 2rem/1 var(--font); letter-spacing: -.05em; color: var(--accent); margin-bottom: 12px; }
.steps strong { display: block; color: var(--text); font-weight: var(--w-strong); margin-bottom: 4px; }
@media (max-width: 767px) { .steps ol { grid-template-columns: 1fr; } }
.fine-print { font-size: .8125rem; color: var(--text-meta); max-width: 60ch; margin: 16px auto 0; }
.final .hero-ctas { margin-top: 24px; }
.currency-toggle { display: none; }
/* long role tags wrap inside a card instead of widening the page on phones */
.scard-head .pill { white-space: normal; line-height: 1.35; max-width: 100%; }

/* generated forms (account sign-in, kit notify, contact): plain .field markup gets the .input look */
.v5 .field { display: grid; gap: 7px; }
.v5 .field > label { font-size: .875rem; font-weight: var(--w-ui); color: var(--text); }
.v5 .field input:not([type="radio"]):not([type="checkbox"]), .v5 .field select, .v5 .field textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: var(--r-input); border: 1px solid var(--border-2); background: var(--surface); color: var(--text);
  font: 400 1rem/1 var(--font); box-shadow: 0 1px 2px rgba(13,14,18,.04); transition: border-color var(--d-fast), box-shadow var(--d-fast); }
.v5 .field textarea { height: auto; min-height: 132px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.v5 .field input:focus, .v5 .field select:focus, .v5 .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.v5 .field [aria-invalid="true"] { border-color: var(--danger); }
.v5 .field input::placeholder, .v5 .field textarea::placeholder { color: var(--text-meta); }

.vnav.nav-hidden { transform: translate(-50%, calc(-100% - 20px)); }
@media (max-width: 767px) { .vnav.nav-hidden { transform: translateY(calc(-100% - 20px)); } }
.vnav { transition: box-shadow var(--d-slow), transform var(--d-slow) var(--ease); }

/* =====================================================================
   /contact/, /now/, 404
   ===================================================================== */
.page-v5 { padding-top: calc(var(--nav-h) + 72px); padding-bottom: 72px; }
.page-narrow { max-width: calc(760px + var(--gutter) * 2); }
.page-v5 .page-head { margin-bottom: 32px; }
.page-v5 .page-head h1 { font-size: var(--fs-display); letter-spacing: var(--track-display); }
.page-v5 .page-head p { margin-top: 14px; font-size: var(--fs-lead); color: var(--text-muted); }
.contact-calls a, .contact-done a, .page-v5 .prose a { color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--accent) 45%, transparent); text-underline-offset: 3px; }
.contact-calls a:hover, .contact-done a:hover, .page-v5 .prose a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* contact form (assets/site.js validates it; ids and names unchanged) */
.contact-form { padding: clamp(20px, 4vw, 32px); display: grid; gap: 18px; }
.contact-form[hidden], .contact-done[hidden], .reason-note[hidden] { display: none; }
.contact-reasons { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.contact-reasons legend { margin-bottom: 10px; font-size: .875rem; font-weight: var(--w-ui); }
.contact-reasons[aria-invalid="true"] .reason span { border-color: var(--danger); }
.reason { position: relative; cursor: pointer; }
.reason input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.reason span { display: block; text-align: center; padding: 14px 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); font-weight: var(--w-strong); transition: border-color var(--d-fast), box-shadow var(--d-base), background-color var(--d-fast); }
.reason:hover span { border-color: var(--border-2); }
.reason input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--accent); }
.reason input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.reason-note { background: var(--surface-2); border-radius: 14px; padding: 14px 16px; color: var(--text-muted); font-size: .9375rem; }
.reason-note strong { color: var(--text); font-weight: var(--w-strong); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-opt { color: var(--text-meta); font-weight: 400; }
.field-hint { font-size: .8125rem; color: var(--text-meta); margin-top: -8px; }
.field-hint.is-error { color: var(--danger); }
.contact-submit { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.contact-status { font-size: .875rem; color: var(--text-muted); }
.contact-status.is-error { color: var(--danger); }
.contact-done { text-align: center; padding: 40px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); box-shadow: var(--shadow-lg); }
.contact-done h2 { font-size: var(--fs-h2); letter-spacing: var(--track-head); margin: 16px 0 10px; }
.contact-done p { color: var(--text-muted); }
.done-check { width: 56px; height: 56px; }
.done-check circle { fill: none; stroke: var(--ok); stroke-width: 2; }
.done-check path { fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) { .contact-reasons, .field-row { grid-template-columns: 1fr; } }

/* now */
.now-updated { font: 400 .8125rem/1 var(--mono); color: var(--text-meta); }
.now-card { padding: clamp(22px, 4vw, 40px); }
.page-v5 .prose h2 { font-size: 1.25rem; letter-spacing: -.025em; margin-top: 1.8em; }
.page-v5 .prose h2:first-child { margin-top: 0; }
.page-v5 .prose p { color: var(--text-muted); }
.now-news { margin-top: 2em; padding: 0; }
.now-news .section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.news-live { display: inline-flex; align-items: center; gap: 8px; font: 400 .75rem/1 var(--mono); color: var(--text-meta); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite; }
html.calm .live-dot { animation: none; }
.news-note { font-size: .875rem; color: var(--text-meta); margin: 6px 0 14px; }
.news-list { list-style: none; margin: 0; padding: 4px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.news-item, .news-skel { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: baseline; padding: 14px 0; }
.news-item + .news-item, .news-skel + .news-skel { border-top: 1px solid var(--border); }
.news-rank { font: 300 1.5rem/1 var(--font); letter-spacing: -.04em; color: var(--text-meta); }
.news-item:hover .news-rank { color: var(--accent); }
.news-title { font-weight: var(--w-ui); line-height: 1.4; color: var(--text); text-decoration: none !important; }
.news-title:hover { color: var(--accent); }
.news-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font: 400 .75rem/1.4 var(--mono); color: var(--text-meta); }
.news-meta a { color: inherit !important; }
.news-skel { height: 64px; }
.news-skel::after { content: ""; grid-column: 2; height: 12px; width: 70%; border-radius: 6px; background: var(--border); }
.page-v5 .fine-print { margin: 2em 0 0; }

/* 404 */
.nf-wrap { min-height: 80vh; display: grid; place-items: center; padding: calc(var(--nav-h) + 48px) 0 64px; }
.nf { text-align: center; max-width: 640px; }
.nf h1 { font-size: var(--fs-display); letter-spacing: var(--track-display); margin: 18px 0 14px; }
.nf > p { color: var(--text-muted); font-size: var(--fs-lead); }
.nf-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.nf-suggest { margin-top: 24px; text-align: left; }
.nf-suggest[hidden] { display: none; }
.nf-suggest-title { font: 400 var(--fs-label)/1 var(--mono); color: var(--text-meta); margin-bottom: 10px; }
.nf-suggest ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

/* QA (axe): contrast fixes */
.vfoot-brand .logo { color: var(--bg); }
#round-all .price-tax { color: var(--on-ink-muted); }
.ink .tile-ink a { display: block; color: inherit; text-decoration: none; }
