/* Marx landing page.
   Quiet by design: white, the wordmark's ink, hairlines, and the dashboard's one structural green.
   The only moving thing is the field of lines behind the opening scene (main.js): speech as waves,
   then a transcript, then a tree. Verdict colours appear on verdicts and nowhere else. */
:root {
  --bg: #ffffff;
  --wash: #f4f6f7;
  --ink: #121820;
  --ink-2: #39424c;
  --muted: #5d6771;
  --line: #e1e5e8;
  --line-2: #cdd3d8;
  --green: #1d5c45;
  --mislead: #b54708;
  --sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --gutter: clamp(18px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.quiet { color: var(--muted); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .78em 1.25em;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { width: .72em; height: .72em; fill: currentColor; flex: none; }
.btn:hover { background: var(--green); border-color: var(--green); }
.btn-quiet { background: #fff; color: var(--ink); border-color: var(--line-2); font-size: 15px; padding: .66em 1.05em; }
.btn-quiet:hover { background: #fff; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: #e8ecef; border-color: #e8ecef; }
.btn-outline { background: none; border-color: rgb(255 255 255 / .55); }
.btn-outline:hover { background: none; border-color: #fff; }
.textlink { border: 0; background: none; padding: 0; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.textlink:hover { color: var(--green); }

.logo { display: block; line-height: 0; }
.logo svg { height: 22px; width: auto; fill: var(--ink); }

/* -------------------------------------------------------------------- scene */
.scene { position: relative; background: linear-gradient(var(--wash), var(--bg) 46%); }
.stage { position: relative; padding: 0 var(--gutter); }
.strands { display: none; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }

.hero { max-width: 880px; padding: clamp(40px, 9vw, 110px) 0 clamp(40px, 6vw, 72px); }
.hero h1 { font-size: clamp(38px, 5.5vw, 82px); line-height: 1.03; font-weight: 600; letter-spacing: -.028em; }
.lede { margin-top: clamp(18px, 2vw, 26px); font-size: clamp(18px, 1.55vw, 22px); line-height: 1.42; color: var(--ink-2); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: clamp(24px, 2.6vw, 36px); }
.link-down { display: inline-flex; align-items: center; gap: .5em; font-size: 16px; font-weight: 600; text-decoration: none; }
.link-down svg { width: .78em; height: .78em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.link-down:hover { color: var(--green); }

.steps { display: grid; gap: 34px; padding-bottom: 56px; max-width: 34ch; }
.step h2 { font-size: clamp(26px, 2.9vw, 42px); line-height: 1.08; font-weight: 600; letter-spacing: -.02em; }
.step p { margin-top: 12px; font-size: clamp(17px, 1.35vw, 19.5px); color: var(--ink-2); }
.turns, .tree { display: none; }

/* With JavaScript the scene becomes one pinned stage; main.js drives everything from scroll. */
.js .scene { height: 540svh; }
.js .stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.js .strands { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.js .nav { position: relative; z-index: 3; }
.js .hero {
  position: absolute;
  z-index: 2;
  inset: 0;
  margin: auto;
  width: min(100% - 2 * var(--gutter), 880px);
  height: fit-content;
  padding: 0;
  text-align: center;
  opacity: var(--hero, 1);
  transform: translateY(calc((1 - var(--hero, 1)) * -28px));
}
/* A soft white bloom keeps the headline clear of the lines running behind it. */
.js .hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -22% -16%;
  background: radial-gradient(closest-side, rgb(255 255 255 / .94) 38%, rgb(255 255 255 / 0));
}
.js .hero .lede { margin-inline: auto; }
.js .hero-actions { justify-content: center; }

.js .steps { position: absolute; z-index: 2; display: grid; gap: 0; padding: 0; left: var(--gutter); top: 50%; translate: 0 -50%; width: min(31vw, 430px); max-width: none; }
.js .step { grid-area: 1 / 1; align-self: center; opacity: var(--o, 0); transform: translateY(calc((1 - var(--o, 0)) * 14px)); }

.js .turns, .js .tree { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.js .turn { position: absolute; left: 0; top: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; opacity: var(--turns, 0); }
.js .node { position: absolute; left: 0; top: 0; opacity: var(--tree, 0); }
.root { font-size: 13.5px; line-height: 1.3; color: var(--muted); }
.root b { display: block; color: var(--ink); font-weight: 700; }
.topic { font-size: 14.5px; font-weight: 700; line-height: 1.25; color: var(--green); }
.leaf { display: grid; justify-items: start; gap: 3px; }
.who { font-size: 13.5px; line-height: 20px; color: var(--muted); }
.point { font-size: clamp(15px, 1.2vw, 17px); line-height: 1.3; font-weight: 600; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  padding: 3px 10px 3px 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-2);
  opacity: var(--tags, 0);
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); flex: none; }
.tag-true { color: var(--green); border-color: rgb(29 92 69 / .35); }
.tag-true::before { background: var(--green); }
.tag-mislead { color: var(--mislead); border-color: rgb(181 71 8 / .35); }
.tag-mislead::before { background: var(--mislead); }

/* --------------------------------------------------------- sections below */
.band { padding: clamp(72px, 9vw, 132px) var(--gutter); border-top: 1px solid var(--line); }
.wrap { max-width: 1120px; margin-inline: auto; }
.band h2 { font-size: clamp(28px, 3.3vw, 46px); line-height: 1.08; font-weight: 600; letter-spacing: -.022em; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px clamp(32px, 6vw, 96px); align-items: start; }
.split p { font-size: clamp(17px, 1.35vw, 19.5px); color: var(--ink-2); max-width: 56ch; }
.split p + p { margin-top: 16px; }
.split p.quiet { color: var(--muted); }
.watch q { font-family: var(--serif); font-style: italic; font-size: 1.05em; color: var(--ink); }

.player {
  position: relative;
  margin-top: clamp(32px, 4.5vw, 60px);
  aspect-ratio: 16 / 9;
  border-radius: clamp(10px, 1.4vw, 18px);
  background: #0b1014;
  overflow: hidden;
}
.player video { display: block; width: 100%; height: 100%; object-fit: cover; background: inherit; }
.player[data-state="idle"] { background: var(--wash); box-shadow: 0 0 0 1px var(--line); }
/* The poster is the light title card, so the control is a dark pill set below its wordmark. */
.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: end center;
  padding-bottom: 9%;
  border: 0;
  background: none;
}
.play-pill {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .8em 1.35em;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: clamp(14px, 1.35vw, 17px);
  font-weight: 600;
  line-height: 1;
  transition: background-color .15s ease;
}
.play-pill svg { width: .72em; height: .72em; fill: currentColor; }
.play:hover .play-pill { background: var(--green); }
.play:focus-visible { outline-offset: -8px; border-radius: inherit; }
.endcard {
  position: absolute;
  inset: 0;
  display: none;
  place-content: center;
  justify-items: center;
  gap: 20px;
  padding: 24px;
  text-align: center;
  background: rgb(11 16 20 / .92);
  color: #fff;
  font-size: clamp(17px, 1.7vw, 23px);
  font-weight: 600;
}
.endcard-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.player[data-state="playing"] .play, .player[data-state="ended"] .play { display: none; }
.player[data-state="ended"] .endcard { display: grid; }

.rules { background: var(--wash); }
.rule-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 56px); margin-top: clamp(32px, 4.5vw, 60px); }
.rule-list li { padding-top: 20px; border-top: 2px solid var(--ink); }
.rule-list h3 { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.rule-list p { margin-top: 10px; color: var(--ink-2); }

.list-title { font-size: 15px; font-weight: 700; color: var(--muted); }
.debates h2 + p { margin-top: 18px; }
.debate-list { margin-top: 10px; border-top: 1px solid var(--line-2); }
.debate-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.debate-list span { font-size: clamp(17px, 1.45vw, 20px); font-weight: 600; }
.debate-list time { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.foot { padding: 36px var(--gutter) 44px; border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.foot-row p { font-size: 15.5px; font-weight: 600; line-height: 22px; }
.foot .logo svg { height: 22px; }

/* ----------------------------------------------------------- smaller screens */
@media (max-width: 999px) {
  .js .hero { text-align: left; inset: 0 var(--gutter); width: auto; }
  .js .hero .lede { margin-inline: 0; }
  .js .hero-actions { justify-content: flex-start; }
  .js .steps { top: 76px; translate: none; width: auto; right: var(--gutter); max-width: 38ch; }
  .js .step { align-self: start; }
  .step h2 { font-size: 25px; }
  .step p { margin-top: 8px; font-size: 16px; line-height: 1.42; }
  .point { font-size: 15px; }
}
@media (max-width: 760px) {
  .split, .rule-list { grid-template-columns: minmax(0, 1fr); }
  .debate-list li { flex-direction: column; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero, .js .step { transform: none; }
}
