/* Autorestage — marketing site, part 1: tokens, base, nav, hero, spin, marquee.
 *
 * Two themes from one list of token NAMES. The light values sit on :root; the
 * dark values are written once for the dark scopes and once more inside the
 * system-preference query, because a media query cannot share a rule body.
 * The dark scopes are the page in dark mode AND the sections that stay dark
 * whatever the page does (the hero, the stats band, the final call, the code
 * card, and the nav while it floats over the hero): custom properties
 * inherit, so declaring the dark set on those elements flips everything
 * inside them.
 *
 * This replaced light-dark(), which did the same thing in fewer lines but has
 * no fallback: a browser without it (Safari before 17.5, Chrome before 123)
 * finds every colour token invalid, and the hero headline went black on
 * black. Section styles live in sections.css. */

:root {
  color-scheme: light;
  --bg: oklch(97.6% .005 85);
  --bg-alt: oklch(94.6% .007 85);
  --surface: oklch(100% 0 0);
  --ink: oklch(18.5% .012 265);
  --ink-2: oklch(39% .012 265);
  --ink-3: oklch(52% .01 265);
  --line: oklch(18% .02 265 / .1);
  --line-2: oklch(18% .02 265 / .2);
  --glass: oklch(100% 0 0 / .72);
  --accent-ink: oklch(52% .15 55);
  --accent-soft: oklch(77% .16 68 / .14);
  --focus: oklch(52% .15 55);

  --accent: oklch(77% .16 68);
  --accent-hot: oklch(69% .19 50);
  --on-accent: oklch(18% .03 60);
  --night: oklch(12.4% .006 265);

  --shadow-s: 0 1px 2px oklch(15% .02 265 / .06), 0 6px 18px -8px oklch(15% .02 265 / .16);
  --shadow-l: 0 2px 6px oklch(15% .02 265 / .08), 0 40px 90px -30px oklch(15% .03 265 / .45);
  --r-s: 12px; --r-m: 18px; --r-l: 28px;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --sec: clamp(80px, 9vw, 150px);
  --nav-h: 68px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --t-hero: clamp(2.6rem, 1rem + 6.2vw, 6.9rem);
  --t-h2: clamp(2.05rem, 1.25rem + 3.1vw, 3.9rem);
  --t-lead: clamp(1.04rem, .97rem + .35vw, 1.26rem);
}
:root[data-theme="dark"], .hero, .stats, .end, .code, .nav:not(.solid) {
  color-scheme: dark;
  --bg: oklch(14.2% .006 265);
  --bg-alt: oklch(17.2% .007 265);
  --surface: oklch(20.4% .008 265);
  --ink: oklch(96.5% .004 85);
  --ink-2: oklch(78% .008 265);
  --ink-3: oklch(68% .008 265);
  --line: oklch(100% 0 0 / .09);
  --line-2: oklch(100% 0 0 / .18);
  --glass: oklch(100% 0 0 / .08);
  --accent-ink: oklch(81% .15 72);
  --accent-soft: oklch(77% .16 68 / .12);
  --focus: oklch(77% .16 68);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: oklch(14.2% .006 265);
    --bg-alt: oklch(17.2% .007 265);
    --surface: oklch(20.4% .008 265);
    --ink: oklch(96.5% .004 85);
    --ink-2: oklch(78% .008 265);
    --ink-3: oklch(68% .008 265);
    --line: oklch(100% 0 0 / .09);
    --line-2: oklch(100% 0 0 / .18);
    --glass: oklch(100% 0 0 / .08);
    --accent-ink: oklch(81% .15 72);
    --accent-soft: oklch(77% .16 68 / .12);
    --focus: oklch(77% .16 68);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
html.lock { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }

/* ── shared pieces ─────────────────────────────────────────────────────── */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.sec-head { max-width: var(--wrap); margin: 0 auto clamp(40px, 5vw, 72px); }
.sec-head h2 { margin-top: 18px; max-width: 18ch; font-size: var(--t-h2); font-weight: 600; line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.sec-head.center { text-align: center; }
.sec-head.center h2 { margin-inline: auto; }

.pill {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: 44px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 500; font-size: .95rem; letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  transition: transform .3s var(--ease), background-color .2s, box-shadow .3s var(--ease), color .2s;
}
.pill:active { transform: scale(.97); }
.pill-lg { height: 54px; padding: 0 28px; font-size: 1.02rem; }
.pill-accent { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 1px 0 oklch(100% 0 0 / .4), 0 10px 30px -12px oklch(70% .18 58 / .8); }
.pill-accent:hover { background: oklch(82% .15 74); transform: translateY(-2px); box-shadow: inset 0 1px 0 oklch(100% 0 0 / .4), 0 18px 40px -14px oklch(70% .18 58 / .9); }
.pill-glass { background: var(--glass); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pill-glass:hover { box-shadow: inset 0 0 0 1px var(--ink-3); transform: translateY(-2px); }
.arr { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.pill:hover .arr { transform: translateX(4px); }

/* Scroll reveals. Without JS nothing is hidden: the hiding rule only exists
   once the inline head script has marked the document as able to reveal. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── announcement ──────────────────────────────────────────────────────── */
.announce { position: relative; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 48px; background: var(--accent); color: var(--on-accent); font-size: .88rem; text-align: center; }
.announce p { line-height: 1.35; }
.announce a { font-weight: 600; text-underline-offset: 3px; }
.announce :focus-visible { outline-color: var(--on-accent); outline-offset: 1px; }
.announce-tag { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; background: var(--on-accent); color: var(--accent); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }
.announce-x { position: absolute; right: 10px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.announce-x:hover { background: oklch(18% .03 60 / .12); }
.announce-x svg { width: 14px; height: 14px; margin: auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
:root[data-ann="x"] .announce { display: none; }
.announce-short { display: none; }
@media (max-width: 600px) { .announce-long { display: none; } .announce-short { display: inline; } }

/* ── nav: dark glass over the hero, the page's own theme once past it ──── */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center; gap: 28px; padding: 0 var(--gut); color: var(--ink); transition: background-color .4s var(--ease), box-shadow .4s var(--ease); }
.nav.glass { background: oklch(12.4% .006 265 / .55); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
.nav.solid { background: var(--bg); background: color-mix(in oklch, var(--bg) 82%, transparent); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); box-shadow: 0 1px 0 var(--line); }
.nav.solid.open { background: var(--bg); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 1.12rem; letter-spacing: -.035em; }
.brand-mark { width: 26px; height: 26px; }
.brand-mark .ring { fill: none; stroke: currentColor; stroke-width: 3; stroke-dasharray: 60 12.3; stroke-linecap: round; transform-origin: 16px 16px; transition: transform .9s var(--ease); }
.brand-mark .dot { fill: var(--accent); }
.brand:hover .ring { transform: rotate(180deg); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav-a, .menu-btn { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-size: .93rem; font-weight: 500; text-decoration: none; cursor: pointer; transition: color .2s, background-color .2s; }
.nav-a:hover, .menu-btn:hover, .menu-btn[aria-expanded="true"] { color: var(--ink); background: var(--line); }
.menu-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu { position: relative; }
.mega {
  position: absolute; top: calc(100% + 10px); left: -12px; width: 560px; padding: 10px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--surface); border-radius: var(--r-m); box-shadow: var(--shadow-l), 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top left;
  transition: opacity .2s, transform .3s var(--ease), visibility 0s .3s;
}
.mega-sm { width: 420px; }
.menu-btn[aria-expanded="true"] + .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .3s var(--ease), visibility 0s; }
.mega a { display: block; padding: 12px 14px; border-radius: var(--r-s); text-decoration: none; transition: background-color .2s; }
.mega a:hover { background: var(--accent-soft); }
.mega b { display: block; font-weight: 600; font-size: .95rem; letter-spacing: -.015em; }
.mega span { display: block; color: var(--ink-3); font-size: .84rem; }
.nav-end { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.theme-btn { position: relative; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--ink-2); transition: background-color .2s, color .2s; }
.theme-btn:hover { background: var(--line); color: var(--ink); }
.theme-btn svg { position: absolute; inset: 9px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; transition: transform .6s var(--ease), opacity .3s; }
.i-moon { opacity: 0; transform: rotate(-90deg) scale(.4); }
:root[data-theme="dark"] .i-sun { opacity: 0; transform: rotate(90deg) scale(.4); }
:root[data-theme="dark"] .i-moon { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .i-sun { opacity: 0; transform: rotate(90deg) scale(.4); }
  :root:not([data-theme]) .i-moon { opacity: 1; transform: none; }
}
.nav-cta { height: 40px; margin-left: 6px; }
.burger { display: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; }
.burger span { display: block; width: 16px; height: 1.6px; margin: 4px auto; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(2.8px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-2.8px) rotate(-45deg); }
.sheet { position: fixed; z-index: 46; left: 0; right: 0; top: var(--nav-h); display: grid; align-content: start; gap: 2px; padding: 12px var(--gut) 24px; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); border-bottom: 1px solid var(--line-2); box-shadow: var(--shadow-l); animation: sheet .4s var(--ease); }
.sheet[hidden], .sheet-scrim[hidden] { display: none; }
.sheet a:not(.pill) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.15rem; font-weight: 500; letter-spacing: -.02em; text-decoration: none; }
.sheet .pill { margin-top: 16px; }
.sheet-scrim { position: fixed; inset: 0; z-index: 45; background: oklch(0% 0 0 / .45); }
@keyframes sheet { from { opacity: 0; transform: translateY(-12px); } }
@media (max-width: 1020px) {
  .nav-links, .nav-signin { display: none; }
  .burger { display: block; }
}
@media (max-width: 520px) { .nav-cta { display: none; } }

/* ── hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate; color: var(--ink);
  min-height: min(100svh, 980px); margin-top: calc(-1 * var(--nav-h));
  display: grid; grid-template-columns: minmax(0, 1fr); padding: calc(var(--nav-h) + 40px) var(--gut) 0;
  background: var(--night); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 68% 55%; transform: scale(var(--hs, 1.06)); transform-origin: 70% 60%; }
/* Three layers: the copy side, the floor the spin card lands on, and a band
   under the nav so its links never sit on the bright arc of the studio light. */
.hero-media::after { content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, oklch(12.4% .006 265 / .7) 0, transparent calc(var(--nav-h) + 90px)),
    linear-gradient(90deg, var(--night) 0%, oklch(12.4% .006 265 / .82) 30%, oklch(12.4% .006 265 / .15) 62%, transparent 80%),
    linear-gradient(0deg, var(--night) 0%, oklch(12.4% .006 265 / .6) 24%, transparent 40%),
    radial-gradient(60% 50% at 18% 30%, oklch(77% .16 68 / .12), transparent 70%);
}
.hero-inner { align-self: center; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 4vh 0 clamp(140px, 15vw, 220px); transform: translateY(var(--hy, 0)); opacity: var(--ho, 1); }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(10px); font-size: .85rem; color: var(--ink-2); animation: rise 1s var(--ease) both; }
.chip-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.chip-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
.hero-title { margin-top: 26px; font-size: var(--t-hero); font-weight: 600; line-height: .98; letter-spacing: -.055em; }
.ln { display: block; overflow: hidden; padding-bottom: .06em; }
.ln > span:not(.sr) { display: inline-block; animation: rise 1.1s var(--ease) both; }
.ln:nth-child(2) > span { animation-delay: .1s; }
.rotator { display: inline-grid !important; max-width: 100%; vertical-align: bottom; }
.rotator > span {
  grid-area: 1 / 1; padding-right: .06em;
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-hot) 90%); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(60%); transition: opacity .5s var(--ease), transform .8s var(--ease);
}
.rotator > span.on { opacity: 1; transform: none; }
.rotator > span.out { opacity: 0; transform: translateY(-60%); }
.hero-sub { max-width: 40ch; margin-top: 26px; font-size: var(--t-lead); line-height: 1.55; color: var(--ink-2); animation: rise 1.1s .2s var(--ease) both; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; animation: rise 1.1s .3s var(--ease) both; }
.hero-foot { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: clamp(32px, 5vh, 56px); color: var(--ink-2); font-size: .86rem; animation: fade 1.2s .6s both; }
.hero-foot li { display: inline-flex; align-items: center; gap: 26px; }
.hero-foot li + li::before { content: ''; width: 4px; height: 4px; margin-left: -15px; margin-right: -11px; border-radius: 50%; background: var(--accent); }
.motion-btn { position: absolute; z-index: 2; right: var(--gut); bottom: calc(clamp(70px, 11vw, 170px) + 18px); display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 11px; border: 0; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); font-size: .8rem; cursor: pointer; backdrop-filter: blur(10px); transition: color .2s, box-shadow .2s; }
.motion-btn:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-3); }
.motion-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.motion-btn .i-play, :root[data-motion="off"] .motion-btn .i-pause { display: none; }
:root[data-motion="off"] .motion-btn .i-play { display: block; fill: currentColor; }
@keyframes rise { from { opacity: 0; transform: translateY(105%); } }
@keyframes fade { from { opacity: 0; } }
@media (max-width: 760px) {
  .hero { min-height: max(640px, 100svh); }
  .hero-media video { object-position: 74% 40%; }
  .hero-media::after { background: linear-gradient(0deg, var(--night) 8%, oklch(12.4% .006 265 / .78) 46%, oklch(12.4% .006 265 / .1) 78%), linear-gradient(180deg, oklch(12.4% .006 265 / .6), transparent 22%); }
  .hero-inner { align-self: end; padding-bottom: 150px; }
  .hero-foot { display: none; }
  .motion-btn { bottom: calc(clamp(70px, 11vw, 170px) + 14px); }
}

/* ── spin card, pulled up over the hero ────────────────────────────────── */
.spin-sec { position: relative; z-index: 3; margin-top: clamp(-170px, -11vw, -70px); padding: 0 var(--gut); }
.spin-card { max-width: 1120px; margin: 0 auto; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-l), 0 0 0 1px var(--line); overflow: hidden; }
.spin-stage { position: relative; }
.spin-view { position: relative; aspect-ratio: 16 / 9; background: oklch(95.5% 0 0); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.spin-view:focus-visible { outline: none; }
.spin-view:focus-visible::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; box-shadow: inset 0 0 0 3px var(--accent-ink), inset 0 0 0 5px #fff; }
.spin-view.drag { cursor: grabbing; }
.spin-view img, .frame-cv { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.frame-cv { position: absolute; inset: 0; }
.spin-hint { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: oklch(15% .01 265 / .72); color: #fff; font-size: .86rem; font-weight: 500; backdrop-filter: blur(8px); pointer-events: none; transition: opacity .5s, translate .5s var(--ease); }
.spin-hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
.spin-view.used .spin-hint { opacity: 0; translate: -50% 10px; }
.spin-deg { position: absolute; top: 14px; right: 16px; padding: 4px 10px; border-radius: 999px; background: oklch(15% .01 265 / .6); color: #fff; font: 500 .78rem/1.4 var(--mono); }
.spin-load { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: oklch(15% .01 265 / .08); }
.spin-load i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .3s, opacity .6s .4s; }
.spin-load.done i { opacity: 0; }
.spin-step { position: absolute; z-index: 2; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: oklch(15% .01 265 / .55); color: #fff; cursor: pointer; backdrop-filter: blur(8px); transition: background-color .2s, transform .2s var(--ease); }
.spin-step:hover { background: oklch(15% .01 265 / .75); }
.spin-step:active { transform: scale(.94); }
.spin-step svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spin-step.prev { left: 14px; } .spin-step.next { right: 14px; }
.spin-cap { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px 40px; padding: clamp(20px, 3vw, 32px) clamp(20px, 3.4vw, 40px); }
.spin-cap > * { min-width: 0; }
.spin-cap h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.spin-cap h2 span { color: var(--accent-ink); }
.spin-cap p { margin-top: 6px; color: var(--ink-2); max-width: 52ch; }
.embed { display: flex; align-items: center; gap: 8px; max-width: 420px; padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--bg-alt); box-shadow: inset 0 0 0 1px var(--line); }
.embed code { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: .8rem var(--mono); color: var(--ink-2); }
.copy { flex: none; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .82rem; font-weight: 500; cursor: pointer; transition: transform .3s var(--ease), background-color .2s; }
.copy:hover { transform: scale(1.04); }
.copy.ok { background: var(--accent); color: var(--on-accent); }
@media (max-width: 860px) { .spin-cap { grid-template-columns: 1fr; } .embed { max-width: 100%; } }
@media (max-width: 520px) { .spin-step { width: 38px; height: 38px; } .spin-step.prev { left: 8px; } .spin-step.next { right: 8px; } }

/* ── marquee ───────────────────────────────────────────────────────────── */
.marquee-sec { padding: clamp(64px, 8vw, 120px) 0 0; }
.marquee-label { margin: 0 auto 28px; text-align: center; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 14px; }
.track { display: flex; gap: 14px; width: max-content; }
.js .track { animation: slide 60s linear infinite; }
.js .marquee[data-dir="r"] .track { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .track, :root[data-motion="off"] .track { animation-play-state: paused; }
.track img { width: auto; height: clamp(120px, 13vw, 200px); aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-s); transition: transform .5s var(--ease); }
.track img:hover { transform: scale(1.04); }
@keyframes slide { to { transform: translateX(calc(-50% - 7px)); } }

/* "Pause motion" stops everything that moves on its own; the reduced-motion
   preference stops it before anything starts. */
:root[data-motion="off"] .chip-dot::after, :root[data-motion="off"] .spin-hint svg { animation: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .track { animation: none; }
  .motion-btn { display: none; }
}

@media print {
  .js .reveal, .js .diff-table .diff-row { opacity: 1 !important; transform: none !important; }
  .announce, .nav, .sheet, .sheet-scrim, .skip, .motion-btn, .spin-step, .spin-hint, .marquee-sec, .copy, .hero-media { display: none !important; }
  .hero { min-height: 0; margin-top: 0; }
  .spin-sec { margin-top: 24px; }
}

/* The theme switch is a circle growing from the button; the browser
   cross-fade it would otherwise do is switched off so only the circle moves. */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
