/* Front page: the disguise (an ordinary, forgettable website) and the journey that follows the press.
   Two palettes, never mixed. Tokens first; nothing below hard-codes a colour. */
@font-face { font-family: "Inter"; src: url(/fonts/inter-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-latin-900-normal.woff2) format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/fonts/instrument-serif-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/fonts/instrument-serif-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* Disguise: a template site nobody remembers. */
  --d-bg: #f3f4f6;
  --d-card: #ffffff;
  --d-ink: #374151;
  --d-head: #1f2937;
  --d-muted: #6b7280;
  --d-faint: #9ca3af;
  --d-line: #e5e7eb;
  --d-blue: #3b6fb6;
  --d-blue-hi: #2f5c99;
  --d-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* Journey: black, white, one signal. */
  --k: #000000;
  --w: #ffffff;
  --sig: #d4ff00;
  --grey: #8a8a8a;
  --grey-k: #5c5c5c;
  --display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 5vw, 64px);
  --wide: 1240px;
  --read: 640px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
.skip { position: absolute; left: -999px; top: 8px; padding: 8px 12px; z-index: 50; background: var(--k); color: var(--w); }
.skip:focus { left: 8px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Disguise ---------- */
body.home { background: var(--d-bg); color: var(--d-ink); font: 400 16px/1.6 var(--d-font); color-scheme: light; }
.d-top { background: var(--d-card); border-bottom: 1px solid var(--d-line); }
.d-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.d-top .d-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.d-logo { display: flex; align-items: center; gap: 10px; color: var(--d-head); text-decoration: none; font-weight: 700; font-size: 17px; }
.d-logo i { width: 30px; height: 30px; border-radius: 50%; background: var(--d-blue); display: inline-grid; place-items: center; color: var(--d-card); font: 700 12px/1 var(--d-font); font-style: normal; letter-spacing: .02em; }
.d-nav { display: flex; gap: 20px; font-size: 14px; flex-wrap: wrap; }
.d-nav a { color: var(--d-muted); text-decoration: none; }
.d-nav a:hover { color: var(--d-blue); text-decoration: underline; }
.d-nav a[aria-current] { color: var(--d-head); font-weight: 700; }
.d-hero { background: var(--d-card); border-bottom: 1px solid var(--d-line); }
.d-hero .d-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.d-hero h1 { font: 700 clamp(28px, 4vw, 38px)/1.2 var(--d-font); color: var(--d-head); margin: 0 0 12px; }
.d-hero p { margin: 0 0 10px; color: var(--d-muted); font-size: 17px; }
.d-hero img { border-radius: 6px; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.d-section { padding: 40px 0; }
.d-section h2 { font: 700 22px/1.3 var(--d-font); color: var(--d-head); margin: 0 0 20px; }
.d-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.d-card { background: var(--d-card); border: 1px solid var(--d-line); border-radius: 6px; padding: 22px; box-shadow: 0 1px 3px rgba(0, 0, 0, .04); }
.d-card h3 { font: 700 17px/1.3 var(--d-font); color: var(--d-head); margin: 0 0 6px; }
.d-card p { margin: 0 0 12px; font-size: 15px; color: var(--d-muted); }
.d-card a { color: var(--d-blue); font-size: 14px; }
.d-notice { background: var(--d-card); border: 1px solid var(--d-line); border-radius: 8px; padding: clamp(56px, 10vw, 112px) 24px; display: flex; flex-direction: column; gap: clamp(36px, 6vw, 56px); align-items: center; text-align: center; margin: clamp(24px, 6vw, 64px) 0; }
.d-notice h2 { margin: 0 0 6px; font-size: 18px; }
.d-notice p { margin: 0 auto; color: var(--d-muted); font-size: 16px; max-width: 46ch; }
.dnp { font: 700 clamp(24px, 4.5vw, 34px)/1 var(--d-font); letter-spacing: .02em; background: var(--d-blue); color: var(--d-card); border: 0; border-radius: 10px; padding: clamp(26px, 4vw, 34px) clamp(44px, 9vw, 88px); max-width: 100%; cursor: pointer; box-shadow: 0 2px 0 rgba(0, 0, 0, .18), 0 10px 30px rgba(0, 0, 0, .12); transition: transform .12s ease, box-shadow .12s ease; }
.dnp:active { transform: translateY(2px); box-shadow: 0 0 0 rgba(0, 0, 0, .18), 0 4px 12px rgba(0, 0, 0, .12); }
.dnp:hover { background: var(--d-blue-hi); }
.dnp:focus-visible { outline: 3px solid var(--d-head); outline-offset: 3px; }
.d-foot { border-top: 1px solid var(--d-line); background: var(--d-card); padding: 24px 0 32px; font-size: 13px; color: var(--d-faint); }
.d-foot .d-wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.d-foot a { color: var(--d-faint); }
[data-live]:empty { display: none; }

/* ---------- The flip ---------- */
.js body.home:not(.pressed) .journey { display: none; }
.js body.home.pressed .disguise { display: none; }
body.home.pressed { background: var(--k); color: var(--w); color-scheme: dark; font: 400 18px/1.6 var(--display); }
.journey { background: var(--k); color: var(--w); font: 400 18px/1.6 var(--display); }
.journey a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--sig); }
.journey a:focus-visible, .journey button:focus-visible { outline: 3px solid var(--sig); outline-offset: 4px; }
.journey .on-w a:focus-visible, .journey .on-w button:focus-visible { outline-color: var(--k); }
.j-wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font: 500 12px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

/* Stage 0: the number */
.turn { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; padding: 72px 0 120px; }
.turn .mono { color: var(--grey); margin: 0 0 28px; }
.turn:focus { outline: none; }
.turn h1 { margin: 0; font-weight: 900; letter-spacing: -.035em; line-height: .92; font-size: clamp(96px, 20vw, 260px); }
.turn h1 .pct { display: block; }
.turn h1 .rest { display: block; font-weight: 800; font-size: clamp(22px, 3.6vw, 52px); letter-spacing: -.02em; line-height: 1.12; max-width: 22ch; margin-top: 22px; }
.are-you { font: italic 400 clamp(44px, 9vw, 128px)/1 var(--serif); color: var(--sig); margin: 40px 0 0; opacity: 0; transform: translateY(60px); }
.pressed .are-you { animation: float-up 2.4s cubic-bezier(.2, .7, .1, 1) 2.6s forwards; }
@keyframes float-up { to { opacity: 1; transform: none; } }
/* The next thing, peeking: a white edge that rises into view. No words. */
.peek { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: var(--w); transform: translateY(100%); }
.pressed .peek { animation: peek 1.6s cubic-bezier(.2, .7, .1, 1) 6.5s forwards, breathe 3.2s ease-in-out 8.1s infinite; }
@keyframes peek { to { transform: translateY(40%); } }
@keyframes breathe { 0%, 100% { transform: translateY(40%); } 50% { transform: translateY(15%); } }

/* Panels */
.panel { position: relative; padding: clamp(96px, 16vh, 180px) 0; overflow: hidden; }
.on-w { background: var(--w); color: var(--k); }
.on-k { background: var(--k); color: var(--w); }
.on-sig { background: var(--sig); color: var(--k); }
.on-w .muted { color: var(--grey-k); }
.on-k .muted { color: var(--grey); }
.big { white-space: nowrap; font-weight: 900; letter-spacing: -.04em; line-height: .88; font-size: clamp(88px, 22vw, 340px); margin: 0; }
.big small { font-size: .32em; letter-spacing: -.02em; font-weight: 800; }
.say { font-weight: 800; letter-spacing: -.02em; line-height: 1.08; font-size: clamp(30px, 5.2vw, 72px); margin: 0; max-width: 18ch; }
.copy { max-width: var(--read); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; }
.copy p { margin: 0 0 1em; }
.cite { overflow-wrap: anywhere; }
.cite a { text-decoration: none; border-bottom: 2px solid var(--sig); }
.on-w .cite a, .on-sig .cite a { border-bottom-color: currentColor; }
.right { font: italic 400 clamp(40px, 7vw, 104px)/1.02 var(--serif); margin: 56px 0 0; max-width: 16ch; }
.on-k .right { color: var(--sig); }
.deeper { display: inline-flex; gap: 10px; align-items: baseline; margin-top: 40px; font: 500 13px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.deeper::after { content: "\2192"; }

/* Rung layout: number, words, picture */
.rung { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.rung figure { margin: 0; }
.rung figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.rung .kick { margin: 0 0 18px; }
.on-k .kick { color: var(--grey); }
.on-w .kick { color: var(--grey-k); }
.rung-copy { margin-top: 36px; }

/* The moves */
.moves { list-style: none; margin: 48px 0 0; padding: 0; border-top: 2px solid currentColor; }
.moves li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 32px; padding: 18px 0; border-bottom: 1px solid currentColor; align-items: baseline; }
.moves b { font-weight: 800; font-size: clamp(22px, 3vw, 38px); letter-spacing: -.02em; line-height: 1.1; }
.moves span { font: 500 12px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.brain-fig { margin: 64px 0 0; }
.brain-fig img { width: 100%; max-height: 70vh; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.facts p { margin: 0; font-size: 17px; line-height: 1.55; }
.facts strong { display: block; font-weight: 800; font-size: 22px; letter-spacing: -.01em; line-height: 1.2; margin-bottom: 10px; }

/* Timeline */
.timeline { list-style: none; margin: 56px 0 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 24px; padding: 20px 0; border-top: 1px solid var(--grey-k); align-items: baseline; }
.timeline time { font-weight: 900; font-size: clamp(28px, 4vw, 48px); letter-spacing: -.03em; line-height: 1; }
.timeline p { margin: 0; max-width: 56ch; }
.timeline .hit time { color: var(--sig); }

/* End */
.end .say { max-width: 20ch; }
.live { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 2px solid var(--k); padding-top: 24px; }
.live div { min-width: 0; }
.live b { display: block; font-weight: 900; font-size: clamp(40px, 6vw, 84px); letter-spacing: -.04em; line-height: 1; }
.live span { font: 500 12px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.reads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin-top: 72px; background: var(--grey-k); border: 2px solid var(--grey-k); }
.reads a { background: var(--k); padding: 22px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; min-height: 100%; }
.reads a:hover { background: var(--w); color: var(--k); }
.reads img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: grayscale(1) contrast(1.15); }
.reads b { font-weight: 800; font-size: 22px; letter-spacing: -.01em; line-height: 1.15; }
.reads span { font-size: 15px; color: var(--grey); line-height: 1.45; }
.reads a:hover span { color: var(--grey-k); }
.again { margin-top: 72px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.again button { font: 900 clamp(20px, 2.4vw, 28px)/1 var(--display); letter-spacing: -.01em; background: var(--sig); color: var(--k); border: 0; padding: 22px 34px; border-radius: 999px; cursor: pointer; }
.again button:hover { background: var(--w); }
.j-foot { padding: 40px 0 56px; border-top: 1px solid var(--grey-k); color: var(--grey); font-size: 14px; }
.j-foot nav { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.j-foot a { color: var(--w); }

/* Scroll rewards: things rise in as they arrive */
.js .rise { opacity: 0; transform: translateY(48px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .7, .1, 1); }
.js .rise.seen { opacity: 1; transform: none; }
.js .right.rise { transition-delay: .9s; }

/* Narrow screens */
@media (max-width: 860px) {
  .d-hero .d-wrap { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 32px; }
  .d-cards { grid-template-columns: 1fr; }
  .rung { grid-template-columns: 1fr; }
  .facts, .live, .reads { grid-template-columns: 1fr; }
  .moves li { grid-template-columns: 1fr; gap: 4px; }
  .rung figure { order: -1; }
  .timeline li { grid-template-columns: 4.6rem minmax(0, 1fr); gap: 14px; }
  .timeline time { font-size: 26px; }
}

/* No motion: everything is simply there. */
@media (prefers-reduced-motion: reduce) {
  .are-you, .pressed .are-you { animation: none; opacity: 1; transform: none; }
  .peek, .pressed .peek { animation: none; transform: translateY(40%); }
  .js .rise { opacity: 1; transform: none; transition: none; }
}
