/* DIFFDUEL
   Direction: "The printed annual" (seed 84136862), composition kept.
   Palette and type overridden from the user's supplied references:
   red / near-black / sand, condensed grotesk poster voice. */

:root {
  --bg: #121212;
  --ink: #EDE1D3;
  --muted: #9d968c;
  --accent: #EE2324;
  --accent-ink: #0a0a0a;
  --sand: #EDE1D3;
  --sand-ink: #1a1a1a;
  --sand-muted: #5d574e;
  --surface: #1c1c1c;
  --comfy: #c3cf00;
  --accent-text: #ff5248;

  --step-small: clamp(0.8125rem, 0.78rem + 0.14vw, 0.875rem);
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-title: clamp(1.75rem, 1.1rem + 2.1vw, 2.75rem);

  --gap: 8px;
  --margin: clamp(16px, 2vw, 32px);
  /* Anton carries a left side bearing that grows with the type size, so big
     lines look indented against small ones set to the same edge. Pulling back
     by a FRACTION OF AN EM corrects every size by the same optical amount. */
  --ink-fix: -0.046em;
  --axis: 42%;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  /* the splash is exactly one screen; it must never become a scrolling page */
  overflow: hidden;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Archivo, system-ui, sans-serif;
  font-size: var(--step-body);
  line-height: 1.55;
}

img, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.02; }
p { margin: 0; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ============================================================
   THE POSTER
   ============================================================ */

.poster {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: var(--margin) var(--margin) calc(var(--margin) * 1.2);
}

.poster-media { position: absolute; inset: 0; z-index: 0; }
.poster-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(0.72);
}
/* the one allowed scrim: keeps the bill legible over the film */
.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(18, 18, 18, 0.46);
  pointer-events: none;
}

.poster-nav, .poster-bill, .poster-word { position: relative; z-index: 5; }

/* The whole poster is one link. It sits over everything so a click anywhere
   goes to the battle, and it carries the pointer cursor across the page. */
.poster-hit { position: absolute; inset: 0; z-index: 6; }
/* ...except the call to action, which stays on top so it can still be hovered
   as a thing in its own right. It leads to the same place either way. */
.poster-go { position: relative; z-index: 7; }
.poster-meta { z-index: 5; }

.poster-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: clamp(16px, 3vw, 48px);
}
.mark {
  margin-left: var(--ink-fix);
  font-family: Anton, Archivo, sans-serif;
  text-transform: uppercase;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.poster-links { display: flex; flex-wrap: wrap; gap: clamp(14px, 2.2vw, 34px); }
.poster-links a {
  text-decoration: none;
  font-size: var(--step-small);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}
.poster-links a:hover { border-bottom-color: var(--accent); color: #fff; }

.poster-bill { margin-top: clamp(28px, 5vh, 64px); max-width: none; }
.bill-name {
  margin-left: var(--ink-fix);
  font-family: Anton, Archivo, sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3.2vw, 2.75rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.bill-vs {
  margin-left: var(--ink-fix);
  font-family: Anton, Archivo, sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3.2vw, 2.75rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--accent-text);
}

.poster-meta {
  position: absolute;
  top: var(--margin);
  right: var(--margin);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: right;
  max-width: 20ch;
}
.poster-meta dt { font-size: var(--step-small); font-weight: 600; color: var(--accent-text); text-transform: uppercase; }
.poster-meta dd { margin: 0; font-size: var(--step-small); font-weight: 600; line-height: 1.35; }

/* Sits under the lockup, on the same left edge. */
.poster-go {
  align-self: flex-start;
  margin-top: 0.12em;
  display: inline-block;
  text-decoration: none;
  color: var(--accent-text);
  text-transform: uppercase;
  transition: color 220ms var(--ease);
}
.poster-go:hover { color: var(--sand); }

/* The lockup is the poster now. Every line is Anton at one size, so the stack
   rescales together and the lines cannot drift apart. */
.poster-word {
  font-family: Anton, Archivo, sans-serif;
  text-transform: uppercase;
  margin-top: auto;
  font-size: min(11vw, 20vh);
  line-height: 0.92;
  letter-spacing: -0.028em;
  color: var(--sand);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.word-sub { font-size: 1em; margin-left: var(--ink-fix); }
.word-live { color: var(--accent-text); }

/* A short window has less to give the stack than a wide one implies. Capping
   only here keeps a 1080p screen at full size instead of shrinking everyone. */
@media (max-height: 700px) {
  .poster-word { font-size: min(11vw, 18vh); }
  .poster-bill { margin-top: clamp(12px, 2vh, 28px); }
}

/* The call to action belongs to the lockup: same face, same left edge. */
.poster-go {
  font-family: Anton, Archivo, sans-serif;
  /* vw, not em: this is a SIBLING of the lockup, so an em here would resolve
     against body text and come out at label size. Kept to the same ratio. */
  font-size: min(3.3vw, 6vh);
  line-height: 1;
  letter-spacing: 0.005em;
  margin-left: var(--ink-fix);
}

/* ============================================================
   SHOWCASE: the plate on sand
   ============================================================ */

.plate-split {
  min-height: 88svh;
  background: var(--sand);
  color: var(--sand-ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.plate-half { display: grid; place-items: center; padding: clamp(20px, 3vw, 48px); min-width: 0; }

.plate {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1 / 1;
  background: #121212;
  overflow: hidden;
}
.plate-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plate-clip { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.plate-seam {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; background: var(--accent);
  transform: translateX(-1.5px); pointer-events: none;
}
.plate-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize;
}
.plate-label {
  position: absolute; left: 18px; bottom: 16px; z-index: 2;
  color: #fff; font-size: var(--step-small);
  background: rgba(18, 18, 18, 0.8); padding: 7px 12px; pointer-events: none;
}
.plate-tag {
  position: absolute; top: 16px; z-index: 2;
  font-size: var(--step-small); padding: 6px 11px;
  background: var(--accent); color: #fff; pointer-events: none;
  text-transform: uppercase;
}
.plate-tag-a { left: 18px; }
.plate-tag-b { right: 18px; }

.plate-text {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(20px, 3vw, 48px) clamp(20px, 3vw, 48px) clamp(20px, 3vw, 48px) 0;
  min-width: 0;
}
.tabs { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tab {
  font: inherit; font-size: var(--step-body);
  background: none; border: 0; padding: 6px 0;
  color: var(--sand-muted); cursor: pointer; text-align: left;
  border-bottom: 2px solid transparent;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.tab:hover { color: var(--sand-ink); }
.tab.is-on { color: var(--sand-ink); border-bottom-color: var(--accent); }

.plate-mid { margin: clamp(32px, 4vw, 56px) 0; }
.plate-mid h2 {
  font-family: Anton, Archivo, sans-serif;
  text-transform: uppercase;
  font-size: var(--step-title);
  letter-spacing: -0.015em;
  max-width: 18ch;
}
.plate-mid p { margin-top: 24px; max-width: 34ch; }

.plate-cells { display: grid; grid-template-columns: 1fr 1fr; }
.cell {
  height: 72px; display: grid; place-items: center;
  text-decoration: none; font-size: var(--step-small);
  text-transform: uppercase;
  transition: background 220ms var(--ease), color 220ms var(--ease), transform 120ms var(--ease);
}
.cell-accent { background: var(--accent); color: #0a0a0a; }
.cell-accent:hover { background: #ff3b30; }
.cell-ghost { background: #121212; color: var(--sand); }
.cell-ghost:hover { background: #2a2a2a; }
.cell:active { transform: translateY(1px); }

/* ============================================================
   THE MOVES
   ============================================================ */

.axis-page {
  display: grid;
  grid-template-columns: var(--axis) 1fr;
  padding: clamp(120px, 14vw, 220px) var(--margin) 0;
  align-items: start;
}
.axis-aside { padding-right: 48px; display: flex; flex-direction: column; gap: 40px; }
.aside-figure { margin: 0; }
.aside-figure img { width: 100%; height: auto; filter: grayscale(1) contrast(1.08); }
.aside-figure figcaption { margin-top: 14px; font-size: var(--step-small); color: var(--muted); }
.figures { display: flex; flex-wrap: wrap; gap: 40px; }
.figure { display: flex; flex-direction: column; }
.figure strong {
  font-family: Anton, Archivo, sans-serif;
  font-weight: 400;
  font-size: var(--step-title);
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
.figure span { font-size: var(--step-small); color: var(--muted); }

.axis-body { max-width: none; }
.axis-body h2 {
  font-family: Anton, Archivo, sans-serif;
  text-transform: uppercase;
  font-size: var(--step-title);
  letter-spacing: -0.015em;
  max-width: 14ch;
}
.lead { font-size: var(--step-lead); margin-top: 28px; line-height: 1.38; max-width: 34ch; }

.moves {
  margin: 72px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
}
.move { margin-bottom: 44px; max-width: 38ch; }
.move dt {
  font-family: Anton, Archivo, sans-serif;
  text-transform: uppercase;
  font-size: var(--step-lead);
  color: var(--accent-text);
  margin-bottom: 8px;
}
.move dd { margin: 0; }

/* ============================================================
   MYSTERY BOX: the red field
   ============================================================ */

.field-page {
  background: var(--accent);
  color: var(--accent-ink);
  margin-top: clamp(120px, 14vw, 220px);
  padding: clamp(80px, 10vw, 160px) var(--margin);
}
.field-inner {
  display: grid;
  grid-template-columns: var(--axis) 1fr;
  column-gap: 48px;
  row-gap: 44px;
  align-items: start;
}
.field-page h2 {
  font-family: Anton, Archivo, sans-serif;
  text-transform: uppercase;
  font-size: var(--step-title);
  letter-spacing: -0.015em;
  grid-column: 1;
  max-width: 10ch;
}
.field-lead { grid-column: 2; font-size: var(--step-lead); line-height: 1.32; max-width: 30ch; }
.field-note { grid-column: 2; max-width: 44ch; }
.field-figure { grid-column: 1; margin: 0; }
.field-figure img { width: 100%; height: auto; }
.field-figure figcaption { margin-top: 12px; font-size: var(--step-small); }

/* ============================================================
   PROOF: the mosaic
   ============================================================ */

.mosaic-page {
  margin-top: clamp(120px, 14vw, 220px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; }
.mosaic img, .mosaic video {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 4 / 3; filter: grayscale(1) contrast(1.08);
}
.mosaic-fill { background: var(--accent); }
.mosaic-fill-dark { background: var(--sand); }

.mosaic-text {
  padding: clamp(40px, 5vw, 80px);
  display: flex; flex-direction: column; justify-content: center;
}
.mosaic-text h2 {
  font-family: Anton, Archivo, sans-serif;
  text-transform: uppercase;
  font-size: var(--step-title);
  letter-spacing: -0.015em;
}
.mosaic-text > p { margin-top: 24px; max-width: 38ch; }

.manifest { list-style: none; margin: 44px 0 0; padding: 0; }
.manifest li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; padding: 12px 0; }
.manifest strong { font-weight: 600; font-size: var(--step-body); }
.manifest span { color: var(--muted); font-size: var(--step-small); }
.mosaic-foot { margin-top: 36px; max-width: 38ch; }
.comfy { color: var(--comfy); font-weight: 600; }

/* ============================================================
   TODAY: the sand field
   ============================================================ */

.today {
  margin-top: clamp(120px, 14vw, 220px);
  padding: clamp(80px, 10vw, 150px) var(--margin);
  background: var(--sand);
  color: var(--sand-ink);
  display: grid;
  grid-template-columns: var(--axis) 1fr;
  column-gap: 48px;
  align-items: start;
}
.today-past-head { font-size: var(--step-small); color: var(--sand-muted); text-transform: uppercase; margin-bottom: 24px; }
.today-list { list-style: none; margin: 0; padding: 0; }
.today-list li { padding: 13px 0; font-size: var(--step-lead); line-height: 1.25; max-width: 22ch; }
.today-list span { color: var(--sand-muted); font-size: var(--step-small); }
.today-theme {
  font-family: Anton, Archivo, sans-serif;
  text-transform: uppercase;
  font-size: var(--step-title);
  letter-spacing: -0.015em;
  line-height: 1.02;
  max-width: 13ch;
}
.today-actions { display: flex; gap: 2px; flex-wrap: wrap; margin: 44px 0 30px; }
.today-actions .cell { min-width: 240px; padding: 0 32px; }
.today-note { color: var(--sand-muted); max-width: 38ch; }

/* ============================================================
   CLOSE
   ============================================================ */

.close { padding: clamp(100px, 12vw, 180px) var(--margin) 40px; }
.close-name {
  font-family: Anton, Archivo, sans-serif;
  text-transform: uppercase;
  font-size: 24vw;
  line-height: 0.86;
  letter-spacing: -0.028em;
  margin: 0 calc(var(--margin) * -1) 48px;
  padding: 0 calc(var(--margin) - 0.06em);
}
.close-rows { display: grid; grid-template-columns: var(--axis) 1fr; row-gap: 16px; }
.close-rows p { grid-column: 2; max-width: 52ch; font-size: var(--step-small); color: var(--muted); }
.close-links { display: flex; gap: 28px; flex-wrap: wrap; }
.close-links a {
  color: var(--ink); text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 200ms var(--ease);
}
.close-links a:hover { border-bottom-color: var(--accent); }

/* ============================================================
   MOTION
   ============================================================ */

.shutter video, .shutter img { clip-path: inset(0 100% 0 0); transform: scale(1.12); }
.shutter.is-open video, .shutter.is-open img {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
  transition: clip-path 1100ms var(--ease), transform 1400ms var(--ease);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.poster-nav    { animation: rise 640ms var(--ease) both; }
.poster-bill   { animation: rise 760ms var(--ease) both; animation-delay: 140ms; }
.poster-meta   { animation: rise 760ms var(--ease) both; animation-delay: 220ms; }
.poster-go     { animation: rise 760ms var(--ease) both; animation-delay: 300ms; }
.poster-word   { animation: rise 900ms var(--ease) both; animation-delay: 380ms; }

[data-rise] { opacity: 0; transform: translateY(24px); }
[data-rise].is-in {
  opacity: 1; transform: none;
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .shutter video, .shutter img { clip-path: inset(0 0 0 0); transform: none; }
  [data-rise] { opacity: 1; transform: none; }
}

/* ============================================================
   PHONE
   ============================================================ */

@media (max-width: 900px) {
  .poster { min-height: 92svh; }
  .poster-links a:nth-child(n+3) { display: none; }
  .poster-meta {
    position: static;
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 22px;
    max-width: none;
    margin-top: 28px;
  }
  .poster-go { margin-top: 20px; }  /* no longer a circle, so no fixed width */
  .bill-name, .bill-vs { font-size: clamp(1.25rem, 4.2vw, 1.9rem); }
  .poster-word { font-size: min(15vw, 20vh); margin-top: 56px; }
  .word-sub { font-size: 1em; }
  .poster-go { font-size: 5vw; }

  .plate-split { grid-template-columns: 1fr; min-height: 0; }
  .plate-text { padding: 0 16px 28px; }
  .tabs { flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .plate-cells { grid-template-columns: 1fr; }
  .cell { height: 60px; }

  .axis-page, .field-inner, .today, .close-rows { grid-template-columns: 1fr; }
  .axis-aside { padding-right: 0; margin-bottom: 40px; }
  .figures { gap: 26px; }
  .moves { grid-template-columns: 1fr; }

  .field-page h2, .field-lead, .field-note, .field-figure, .close-rows p { grid-column: 1; }

  .mosaic-page { grid-template-columns: 1fr; }
  .mosaic-text { padding: 40px 16px; }

  .today { row-gap: 52px; }
  .today-past { order: 2; }
  .today-actions .cell { min-width: 0; width: 100%; }

  .close-name { font-size: 27vw; }
}
