:root {
  color-scheme: light dark;
  --bg: #fbfbf8; --ink: #161616; --dim: #6b6b66; --line: #e3e2dc; --soft: #f2f1ec; --on-ink: #fbfbf8; --accent: #c8391a;
  --serif: ui-serif, Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #131312; --ink: #ecebe5; --dim: #98978e; --line: #2b2b28; --soft: #1b1b19; --on-ink: #131312; --accent: #ff7a52; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: hidden; }
a { color: inherit; text-decoration-color: var(--dim); text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wide { width: min(1120px, 100% - 44px); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--on-ink); padding: 8px 14px; z-index: 3000; }
.skip:focus { left: 8px; }
b { font-weight: 600; }

/* header */
header.top { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
header.top.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
header.top .wide { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.brand { font: 600 23px var(--serif); letter-spacing: -.01em; text-decoration: none; }
.brand b { color: var(--accent); font-weight: 600; }
header nav { display: flex; gap: 22px; align-items: center; font-size: 15px; }
header nav a { text-decoration: none; }
.pill { background: var(--ink); color: var(--on-ink); padding: 8px 16px; border-radius: 99px; display: inline-block; }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 110px 0 90px; }
.hero-bg { position: absolute; inset: -6% -22% -6% 22%; opacity: .95; will-change: transform; -webkit-mask-image: linear-gradient(90deg, transparent 6%, rgba(0,0,0,.22) 30%, #000 58%); mask-image: linear-gradient(90deg, transparent 6%, rgba(0,0,0,.22) 30%, #000 58%); }
.hero-bg canvas { pointer-events: none; }
.hero-in { position: relative; z-index: 2; will-change: transform, opacity; }
h1 { font: 500 clamp(60px, 15.5vw, 212px)/.94 var(--serif); letter-spacing: -.045em; margin: 0 0 clamp(20px, 3vw, 40px); }
h1 .w { display: inline-block; white-space: nowrap; }
h1 .c { display: inline-block; will-change: transform; }
h1 .ugb { display: inline-block; color: var(--accent); text-align: left; }
.lead { font-size: clamp(18px, 2.2vw, 24px); color: var(--dim); max-width: 22em; margin: 0; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 0; }
.btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 24px; border: 1px solid var(--ink); border-radius: 99px; text-decoration: none; font-weight: 500; font-size: 16px; will-change: transform; transition: background .2s, color .2s; }
.btn.solid { background: var(--ink); color: var(--on-ink); }
.btn:not(.solid):hover { background: var(--ink); color: var(--on-ink); }
.fine { color: var(--dim); font-size: 15px; margin-top: 20px; }
.cue { position: absolute; left: 50%; bottom: 26px; width: 22px; height: 36px; border: 1.5px solid var(--dim); border-radius: 12px; transform: translateX(-50%); z-index: 2; }
.cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 14px 0; will-change: transform; }
.track { display: flex; width: max-content; font: 500 clamp(56px, 11vw, 150px)/1 var(--serif); letter-spacing: -.03em; will-change: transform; }
.track span { padding: 0 .35em; white-space: nowrap; }
.track .o { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }

/* statements */
.statement, .install, .final { position: relative; padding: clamp(56px, 11vw, 140px) 0; }
.statement .wide, .install .wide, .final .wide { position: relative; }
.rule { position: absolute; left: 0; right: 0; top: calc(-1 * clamp(56px, 11vw, 140px)); height: 1px; background: var(--line); transform-origin: left; }
.idx { display: block; font: 13px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--dim); letter-spacing: .12em; margin-bottom: 22px; }
h2.big { font: 500 clamp(44px, 9.4vw, 128px)/1 var(--serif); letter-spacing: -.035em; margin: 0 0 22px; }
.ln { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.ln > span { display: inline-block; will-change: transform; }
.ln b { font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }
.statement p { font-size: clamp(17px, 1.8vw, 21px); color: var(--dim); max-width: 28em; margin: 0; }
.statement:first-of-type .rule { display: none; }
pre { background: var(--soft); border-radius: 12px; padding: clamp(16px, 3vw, 28px); overflow-x: auto; font: clamp(12.5px, 1.5vw, 15px)/1.75 ui-monospace, "SF Mono", Menlo, Consolas, monospace; margin: 28px 0 0; max-width: 46em; }
.caret { display: inline-block; width: 8px; height: 1.1em; background: var(--accent); vertical-align: text-bottom; margin-left: 1px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.final { text-align: center; }
.final .actions { justify-content: center; }
footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--dim); font-size: 14.5px; }
footer .wide { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { margin-left: 18px; text-decoration: none; } footer a:hover { color: var(--ink); }

/* intro curtain + cursor (created by JS only) */
.curtain, .curtain2 { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; will-change: transform; }
.curtain { background: var(--ink); color: var(--on-ink); z-index: 2001; }
.curtain2 { background: var(--accent); }
.curtain .mark { font: 600 clamp(44px, 9vw, 96px) var(--serif); letter-spacing: -.02em; display: flex; overflow: hidden; padding: 0 .05em .12em; }
.curtain .mark span { display: inline-block; }
.curtain .mark .ad { color: var(--accent); }
.curtain .meter { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.cursor { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 1500; mix-blend-mode: difference; opacity: 0; }
.cursor i { display: block; border-radius: 50%; }
.cursor .dot { width: 8px; height: 8px; background: #fff; margin: -4px 0 0 -4px; }
.cursor-ring { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 1500; mix-blend-mode: difference; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 1.5px solid #fff; border-radius: 50%; opacity: 0; will-change: transform; }

/* motion states (only when JS motion is on) */
.js-motion .reveal { opacity: 0; }
.js-motion h1.split .c, .js-motion .ln > span { transform: translateY(112%); }
.js-motion .rule { transform: scaleX(0); }
.motion-timeout .reveal { opacity: 1 !important; transform: none !important; }
.motion-timeout h1.split .c, .motion-timeout .ln > span { transform: none !important; }
.motion-timeout .rule { transform: none !important; }
.motion-timeout .curtain, .motion-timeout .curtain2 { display: none; }

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .hero-bg { inset: 46% -45% -8% -45%; opacity: .9; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40%); mask-image: linear-gradient(to bottom, transparent 0, #000 40%); }
  .btn { width: 100%; justify-content: center; }
  .cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cue span, .caret { animation: none; }
  .btn, header.top { transition: none; }
}
.js-motion h1.split .ugb { opacity: 0; }
.motion-timeout h1.split .ugb { opacity: 1 !important; }
