:root {
  --bg: #0b0b0c;
  --bg-2: #141416;
  --ink: #f4f1ea;
  --muted: #a5a29a;
  --faint: #5d5b56;
  --line: #242427;
  --flame: #ffd60a;
  --flame-deep: #f5a40a;
  --del: #ff5a4e;
  --del-soft: rgba(255, 90, 78, 0.16);
  --ins: #ffe566;
  --ins-soft: rgba(255, 214, 10, 0.18);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, monospace;
  --ease-rail: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-variation-settings: "opsz" 14, "wdth" 100;
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 0.98; }
h1, h2 { font-variation-settings: "opsz" 96, "wdth" 90; }
em { font-style: normal; color: var(--flame); }
p { margin: 0; }

/* atmosphere */
.grain {
  position: fixed; inset: -50%; z-index: 0; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%,100%{transform:translate(0,0)} 20%{transform:translate(-2%,1%)} 40%{transform:translate(1%,-2%)} 60%{transform:translate(2%,2%)} 80%{transform:translate(-1%,-1%)} }
.glow {
  position: fixed; z-index: 0; pointer-events: none; width: 70vmax; height: 70vmax; border-radius: 50%;
  left: var(--mx, 70vw); top: var(--my, 20vh); transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 214, 10, 0.14), rgba(255, 214, 10, 0.04) 45%, transparent 70%);
  transition: left 0.9s var(--ease-rail), top 0.9s var(--ease-rail);
}
header, section, footer { position: relative; z-index: 1; }

/* nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 64px);
  font-size: 15px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.nav nav { display: flex; align-items: center; gap: 22px; color: var(--muted); }
.nav nav a:hover { color: var(--ink); }
.pill {
  color: var(--ink) !important; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  transition: border-color 0.2s, background 0.2s;
}
.pill:hover { border-color: var(--flame); background: rgba(255, 214, 10, 0.08); }

/* hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(40px, 8vh, 96px) clamp(20px, 5vw, 64px) clamp(60px, 10vh, 120px);
  min-height: 86vh;
}
.sticker {
  display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: lowercase;
  background: var(--flame); color: #1a1400; padding: 6px 10px; border-radius: 4px;
  transform: rotate(-3deg); margin-bottom: 26px;
  box-shadow: 0 10px 30px rgba(255, 214, 10, 0.25);
}
h1 { font-size: clamp(44px, 7.2vw, 108px); }
h1 .line { display: block; }
.lede { margin-top: 28px; color: var(--muted); font-size: clamp(17px, 1.4vw, 21px); max-width: 44ch; }
.cta-row { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.fine { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 15px 24px; font-weight: 700; font-size: 16px;
  transition: transform 0.35s var(--ease-rail), box-shadow 0.35s var(--ease-rail), background 0.2s;
}
.btn-flame { background: var(--flame); color: #1a1400; box-shadow: 0 0 0 0 rgba(255, 214, 10, 0.4); }
.btn-flame:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 18px 50px rgba(255, 214, 10, 0.35); background: var(--ins); }
.btn-big { font-size: 20px; padding: 20px 34px; }

/* editor card */
.editor {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: rotate(1.2deg);
  font-family: var(--mono);
}
.editor-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--faint); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #2c2c30; }
.editor-title { margin-left: 8px; }
.editor-stage { margin-left: auto; color: var(--flame); }
.editor-text { padding: 26px 24px 20px; font-size: clamp(14px, 1.15vw, 16px); line-height: 1.75; min-height: 15.5em; font-weight: 300; color: #e9e6df; }
.editor-text .w { display: inline; white-space: pre-wrap; }
.editor-text .del { color: var(--del); text-decoration: line-through; text-decoration-thickness: 1.5px; background: var(--del-soft); border-radius: 2px; }
.editor-text .ins { color: var(--ins); background: var(--ins-soft); border-radius: 2px; }
.editor-text .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--flame); vertical-align: -0.2em; margin-left: 1px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.editor-foot { display: flex; justify-content: space-between; padding: 12px 24px 16px; font-size: 11px; color: var(--muted); border-top: 1px dashed var(--line); }
.editor-foot b { color: var(--ink); font-weight: 600; }
.muted { color: var(--faint); }

/* marquee */
.marquee { padding: 10px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0e0e10; }
.marquee-label { font-family: var(--mono); font-size: 11px; color: var(--faint); padding: 8px clamp(20px, 5vw, 64px) 0; }
.track { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track-inner { display: flex; gap: 48px; width: max-content; padding: 14px 0 20px; animation: slide 38s linear infinite; }
.track:hover .track-inner { animation-play-state: paused; }
.track-inner span {
  font-size: clamp(22px, 3.2vw, 40px); font-weight: 600; color: var(--faint); white-space: nowrap;
  text-decoration: line-through; text-decoration-color: var(--del); text-decoration-thickness: 3px;
  font-variation-settings: "opsz" 96, "wdth" 80;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* how: pinned */
.how { padding: 0 clamp(20px, 5vw, 64px); }
.how-sticky { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { font-family: var(--mono); font-size: 12px; color: var(--flame); letter-spacing: 0.06em; margin-bottom: 18px; }
.eyebrow.center { text-align: center; }
.beats { display: flex; flex-direction: column; gap: 34px; }
.beat { opacity: 0.22; transform: translateX(-6px); transition: opacity 0.5s var(--ease-rail), transform 0.5s var(--ease-rail); }
.beat.on { opacity: 1; transform: none; }
.beat h2 { font-size: clamp(30px, 3.6vw, 52px); }
.beat p { margin-top: 12px; color: var(--muted); font-size: 17px; max-width: 46ch; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.6s var(--ease-rail), opacity 0.5s var(--ease-rail), margin-top 0.4s; }
.beat.on p { max-height: 10em; opacity: 1; }
.beat:not(.on) p { margin-top: 0; }
.how-right { border-left: 1px solid var(--line); padding-left: 48px; }
.meter-label { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.big-pct { font-size: clamp(96px, 14vw, 220px); font-weight: 800; line-height: 0.9; letter-spacing: -0.05em; font-variation-settings: "opsz" 96, "wdth" 75; color: var(--ink); margin: 12px 0 18px; font-variant-numeric: tabular-nums; }
.big-pct small { font-size: 0.35em; color: var(--flame); margin-left: 4px; vertical-align: 0.5em; }
.bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; width: 61%; background: linear-gradient(90deg, var(--del), var(--flame)); transform-origin: left; }
.meter-foot { display: flex; justify-content: space-between; margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.meter-foot b { color: var(--ink); }

/* who */
.who { padding: clamp(80px, 14vh, 160px) clamp(20px, 5vw, 64px); }
.who-title { text-align: center; font-size: clamp(34px, 5vw, 72px); margin-bottom: 56px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1180px; margin: 0 auto; }
.card {
  background: var(--ink); color: #111; border-radius: 16px; padding: 28px 26px 30px; transform: rotate(var(--tilt));
  transition: transform 0.45s var(--ease-rail), box-shadow 0.45s var(--ease-rail);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.card:hover { transform: rotate(0deg) translateY(-6px); box-shadow: 0 40px 100px rgba(255, 214, 10, 0.18); }
.card-tag { display: inline-block; font-family: var(--mono); font-size: 11px; background: #111; color: var(--flame); padding: 5px 9px; border-radius: 4px; margin-bottom: 22px; }
.card h3 { font-size: clamp(22px, 2vw, 28px); font-variation-settings: "opsz" 96, "wdth" 88; }
.card p { margin-top: 16px; color: #45433f; font-size: 15.5px; }

/* ledger */
.ledger { padding: 0 clamp(20px, 5vw, 64px) clamp(80px, 12vh, 140px); max-width: 1180px; margin: 0 auto; }
.ledger ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ledger li { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.ledger .k { font-family: var(--mono); font-size: 13px; color: var(--flame); }
.ledger .v { color: var(--muted); font-size: 17px; }

/* close */
.close { text-align: center; padding: clamp(80px, 16vh, 180px) 20px; }
.close h2 { font-size: clamp(56px, 10vw, 150px); }
.close .btn { margin-top: 44px; }
.close .fine { margin-top: 22px; }

footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center;
  padding: 28px clamp(20px, 5vw, 64px) 40px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--faint);
}
footer span { display: inline-flex; align-items: center; gap: 8px; }
footer a:hover { color: var(--ink); }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(18px); }
.ready [data-reveal] { transition: opacity 0.9s var(--ease-rail), transform 0.9s var(--ease-rail); }
.ready [data-reveal].in { opacity: 1; transform: none; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .editor { transform: none; }
  .how-sticky { grid-template-columns: 1fr; gap: 28px; min-height: 0; padding: 80px 0; }
  .how-right { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .cards { grid-template-columns: 1fr; }
  .card { transform: none; }
  .ledger li { grid-template-columns: 1fr; gap: 6px; }
  .nav nav a:not(.pill) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .track-inner { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
}
