:root {
  color-scheme: dark;
  --night: #19151e;
  --night-2: #251d29;
  --paper: #f3e7d2;
  --flour: #fff9ef;
  --ink: #261f24;
  --tomato: #e75d42;
  --herb: #7ba56a;
  --brass: #e8b85c;
  --muted: #b8a8ab;
  --line: rgba(232, 184, 92, .38);
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body { margin: 0; min-width: 280px; color: var(--flour); background: var(--night); font-size: 16px; line-height: 1.62; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 4px; }
.skip { position: fixed; left: 1rem; top: -8rem; z-index: 100; background: var(--flour); color: var(--ink); padding: .75rem 1rem; }
.skip:focus { top: 1rem; }

.site-head { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: .85rem max(1rem, calc((100vw - var(--max)) / 2)); background: rgba(25, 21, 30, .95); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.brand { display: inline-flex; gap: .8rem; align-items: center; text-decoration: none; font-weight: 900; letter-spacing: .18em; }
.brand-mark { width: 2.6rem; height: 2.2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .18rem; padding: .45rem; background: var(--paper); clip-path: polygon(0 0, 100% 0, 100% 72%, 78% 100%, 0 100%); }
.brand-mark i { display: block; background: var(--herb); }
.brand-mark i:last-child { background: var(--tomato); }
.site-nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 .2rem; text-underline-offset: .35rem; text-decoration-thickness: 1px; font-weight: 750; font-size: .86rem; letter-spacing: .06em; }
.site-nav .privacy-link { padding: 0 1rem; color: var(--ink); background: var(--brass); text-decoration: none; clip-path: polygon(0 0, 100% 0, 100% 72%, 88% 100%, 0 100%); }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.hero { min-height: 84svh; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-block: clamp(3.2rem, 9vw, 8rem); }
.eyebrow { margin: 0 0 .75rem; color: var(--brass); font-size: .78rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: .98; font-family: Georgia, "Times New Roman", serif; text-wrap: balance; }
h1 { max-width: 10ch; font-size: clamp(3.9rem, 9vw, 8.6rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2.6rem, 6vw, 5.8rem); letter-spacing: -.045em; }
h3 { font-size: clamp(1.55rem, 2.7vw, 2.4rem); }
.hero-copy > p:not(.eyebrow) { max-width: 34rem; color: var(--paper); font-size: clamp(1.03rem, 1.4vw, 1.2rem); }
.hero-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: 1.7rem; }
.cta { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 1.25rem; border: 1px solid var(--tomato); background: var(--tomato); color: var(--flour); font-weight: 900; letter-spacing: .05em; text-decoration: none; clip-path: polygon(0 0, 100% 0, 100% 72%, 91% 100%, 0 100%); }
.quiet-link { color: var(--paper); text-underline-offset: .38rem; }
.hero-stage { position: relative; min-height: 640px; border: 1px solid var(--line); background: var(--night-2); overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 91%, 92% 100%, 0 100%); }
.hero-stage img { position: absolute; inset: 0; }
.hero-stage::after { content: ""; position: absolute; inset: auto 0 0; height: 36%; background: linear-gradient(transparent, rgba(25,21,30,.88)); pointer-events: none; }
.hero-ticket { position: absolute; z-index: 2; right: 1rem; bottom: 1rem; width: min(28rem, calc(100% - 2rem)); padding: 1.2rem 1.35rem; background: var(--paper); color: var(--ink); clip-path: polygon(0 0, 100% 0, 100% 76%, 94% 100%, 0 100%); }
.hero-ticket strong { display: block; font-size: 1.1rem; }
.hero-ticket span { font-size: .9rem; }

.counter-score { border-block: 1px solid var(--line); background: var(--paper); color: var(--ink); padding-block: clamp(3.5rem, 7vw, 7rem); }
.score-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.score-head p { max-width: 34rem; margin: 0 0 .4rem; }
.demo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(38,31,36,.18); border: 1px solid rgba(38,31,36,.18); }
.lane { min-height: 26rem; display: flex; flex-direction: column; gap: .8rem; padding: 1rem; background: var(--flour); }
.lane-label { display: flex; align-items: center; justify-content: space-between; padding-bottom: .7rem; border-bottom: 2px solid var(--ink); font-weight: 950; letter-spacing: .12em; }
.lane-label i { width: .65rem; height: .65rem; border-radius: 50%; background: var(--tomato); }
.task { width: 100%; min-height: 76px; padding: .85rem; text-align: left; color: var(--ink); border: 1px solid rgba(38,31,36,.24); background: var(--paper); font: inherit; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease; clip-path: polygon(0 0, 100% 0, 100% 82%, 94% 100%, 0 100%); }
.task strong, .task span { display: block; }
.task span { margin-top: .15rem; font-size: .84rem; }
.task[aria-pressed="true"] { background: var(--herb); transform: translateY(.35rem); }
.task:disabled { cursor: not-allowed; background: #d8ced1; color: #665b60; }
.demo-status { grid-column: 1 / -1; min-height: 58px; display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; background: var(--night); color: var(--flour); }
.demo-status::before { content: ""; width: .75rem; height: .75rem; flex: 0 0 auto; border-radius: 50%; background: var(--brass); }

.chapters { padding-block: clamp(4rem, 9vw, 8rem); }
.chapter { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; min-height: 38rem; padding-block: 3rem; border-top: 1px solid var(--line); }
.chapter:nth-child(even) { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); }
.chapter:nth-child(even) .chapter-copy { order: 2; }
.chapter-copy p { max-width: 32rem; color: var(--paper); }
.chapter-tag { color: var(--tomato); font-weight: 900; letter-spacing: .16em; font-size: .75rem; }
.chapter-media { display: grid; grid-template-columns: 1.35fr .65fr; grid-template-rows: 15rem 15rem; gap: .75rem; min-width: 0; }
.chapter-media figure { margin: 0; overflow: hidden; border: 1px solid var(--line); background: var(--night-2); }
.chapter-media figure:first-child { grid-row: 1 / 3; }
.chapter:nth-child(3n) .chapter-media { grid-template-columns: .7fr 1.3fr; }
.chapter:nth-child(3n) .chapter-media figure:first-child { grid-column: 2; }

.tape-close { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 38rem; overflow: hidden; background: var(--paper); color: var(--ink); }
.tape-close img { min-height: 38rem; }
.tape-copy { display: grid; place-content: center; padding: clamp(2rem, 7vw, 6rem); }
.tape-copy p { max-width: 31rem; }
.source-note { padding-block: 2rem; color: var(--muted); font-size: .9rem; }

.site-foot { display: grid; grid-template-columns: 1fr auto; gap: 2rem; padding-block: 3rem; border-top: 1px solid var(--line); color: var(--paper); }
.site-foot p { margin: 0; max-width: 44rem; }

/* Privacy: a four-field ingredient label, independent from the landing rhythm. */
.policy-hero { padding-block: clamp(3.5rem, 8vw, 7rem); }
.policy-hero h1 { max-width: 13ch; font-size: clamp(3.4rem, 8vw, 7.4rem); }
.policy-hero > p { max-width: 48rem; color: var(--paper); }
.policy-index { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 2rem; border: 1px solid var(--line); background: var(--line); }
.policy-index a { min-height: 74px; display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; background: var(--night-2); text-decoration: none; font-weight: 800; }
.policy-index b { color: var(--brass); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.policy-list { padding-bottom: 6rem; }
.policy-row { display: grid; grid-template-columns: minmax(15rem, .55fr) minmax(0, 1.45fr); gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--line); scroll-margin-top: 6rem; }
.policy-mark { position: sticky; top: 6rem; align-self: start; }
.policy-mark figure { aspect-ratio: 1; margin: 1rem 0 0; overflow: hidden; background: var(--night-2); border: 1px solid var(--line); }
.policy-copy { min-width: 0; }
.policy-copy h2 { font-size: clamp(2rem, 4vw, 4.3rem); }
.ledger-fields { margin-top: 1.5rem; border-top: 2px solid var(--brass); }
.ledger-field { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.ledger-field dt { color: var(--brass); font-size: .75rem; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
.ledger-field dd { margin: 0; color: var(--paper); }
.policy-copy a { overflow-wrap: anywhere; text-underline-offset: .25rem; }

[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .45s ease, transform .45s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .site-head { grid-template-columns: 1fr; }
  .site-nav { justify-content: flex-start; gap: .75rem; }
  .hero, .score-head, .chapter, .chapter:nth-child(even), .tape-close, .policy-row { grid-template-columns: 1fr; }
  .chapter:nth-child(even) .chapter-copy { order: initial; }
  .hero-stage { min-height: 520px; }
  .demo { grid-template-columns: 1fr; }
  .lane { min-height: auto; }
  .policy-index { grid-template-columns: 1fr 1fr; }
  .policy-mark { position: static; }
  .policy-mark figure { max-width: 28rem; }
}

@media (max-width: 540px) {
  .wrap { width: min(100% - 1.25rem, var(--max)); }
  .site-head { padding-inline: .7rem; }
  .site-nav a:not(.privacy-link) { font-size: .76rem; }
  h1 { font-size: clamp(3rem, 19vw, 5rem); }
  .hero-stage { min-height: 430px; }
  .chapter-media { grid-template-columns: 1fr 1fr; grid-template-rows: 13rem 10rem; }
  .policy-index { grid-template-columns: 1fr; }
  .ledger-field { grid-template-columns: 1fr; gap: .25rem; }
  .site-foot { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .task[aria-pressed="true"] { transform: none; border-width: 3px; }
}
