/* Hallmark · genre: editorial (loud) · macrostructure: Narrative Workflow · theme: custom (brand, preserved from the game)
 * vibe: "red carpet, security badge, case file" · paper: oklch(15.5% 0.018 30) · accent: oklch(66% 0.215 36)
 * display: Anton · body: Geist · outlier: Geist Mono (captions only) · axes: dark / display-condensed-bold / warm (orange-red)
 * hero: H6 photographic fold (image 16/9, 4/3 on phones; caption lower-left; text above) · stages: F4 step sequence (numbering 1.0, vertical stack, connector: thick rule)
 * nav: N6 masthead (issue line above, wordmark xl, rule double) · footer: Ft1 mast-headed · enrichment: none (real in-game screenshots)
 * reveal: stage rule sweeps once on entry · redesign of: Split Studio + Photographic bands (2026-10-06)
 * pre-emit critique: P4 H5 E4 S5 R4 V5
 */

/* tokens live in tokens.css (linked before this file) */

/* ---------------------------------------------------------------- base */
@font-face {
  font-family: "Anton";
  src: url("fonts/Anton-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, figure, ol { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }

.skip {
  position: absolute; left: var(--space-sm); top: -4rem; z-index: var(--z-skip);
  background: var(--color-accent); color: var(--color-accent-ink);
  padding: var(--space-xs) var(--space-sm); font-weight: 600; text-decoration: none;
}
.skip:focus { top: var(--space-sm); }

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  overflow-wrap: anywhere;
  min-width: 0;
}

.caption {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--color-muted);
}

.shot { width: 100%; border: var(--border) solid var(--color-ink); }

/* ---------------------------------------------------------------- button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.7rem 1.6rem;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border: var(--border) solid var(--color-accent);
  font-family: var(--font-display);
  font-size: var(--text-md);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}
.btn:active { transform: translate(0, 0); box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--color-ink); }
}

/* ---------------------------------------------------------------- masthead (N6) */
.mast { border-bottom: 4px double var(--color-rule); }
.mast .wrap {
  display: grid;
  justify-items: center;
  gap: var(--space-xs);
  padding-block: var(--space-sm) var(--space-sm);
  text-align: center;
}
.mast-line {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.mast-name {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: var(--text-mast);
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mast-name img { width: 1.1em; height: 1.1em; }
.mast-nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0 var(--space-md);
  border-top: var(--rule-hair) solid var(--color-rule);
  padding-top: var(--space-2xs);
}
.mast-nav a {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur-short) var(--ease-out);
}
.mast-nav a:hover { border-bottom-color: var(--color-accent); }

/* ---------------------------------------------------------------- hero (H6) */
.hero { padding-top: var(--space-lg); }
.hero-head {
  display: grid;
  gap: var(--space-md);
  align-items: end;
  padding-bottom: var(--space-lg);
}

.stamp {
  justify-self: start;
  font-family: var(--font-display);
  font-size: var(--text-md);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  border: 3px solid var(--color-accent-text);
  padding: 0.15em 0.7em 0.1em;
  transform: rotate(-4deg);
  transform-origin: left center;
}

.title { display: flex; flex-direction: column; align-items: flex-start; gap: 0.12em; }
.title-vip { font-size: var(--text-title); line-height: 0.8; color: var(--color-ink); }
.title-slab {
  font-size: var(--text-slab);
  line-height: 1;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  padding: 0.18em 0.45em 0.1em;
  transform: rotate(-2deg);
  transform-origin: left center;
}

.hero-side { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-md); }
.hero-sub { font-size: var(--text-md); line-height: 1.45; max-width: 34ch; color: var(--color-ink-2); }

.hero-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 42% 50%;
  border-block: var(--border) solid var(--color-ink);
}
.hero-shot .caption { padding-block: var(--space-xs); }

/* ---------------------------------------------------------------- marquee */
.marquee {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  overflow: hidden;
  border-bottom: var(--border) solid var(--color-ink);
}
.marquee-track {
  display: flex; width: max-content;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}
.marquee-track span { padding: 0.85rem 1.4rem; white-space: nowrap; }

/* ---------------------------------------------------------------- how a job goes (Narrative Workflow) */
.job { padding-block: var(--space-3xl); }
.job-intro { display: grid; gap: var(--space-sm); margin-bottom: var(--space-xl); }
.job-intro h2 { font-size: var(--text-xl); }
.lede { font-size: var(--text-md); line-height: 1.5; max-width: 46ch; color: var(--color-ink-2); }

.stages { display: grid; gap: var(--space-2xl); }

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
}

/* numbered head: the stage number sits on a thick rule; a short accent segment marks the start */
.stage-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0 var(--space-md);
  padding-bottom: var(--space-sm);
}
.stage-head::before,
.stage-head::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: var(--rule-thick);
  transform-origin: left center;
}
.stage-head::before { right: 0; background: var(--color-ink); }
.stage-head::after { width: 4.5rem; background: var(--color-accent); z-index: var(--z-raise); }
.stage-num { font-size: var(--text-num); line-height: 0.8; color: var(--color-ink); }
.stage-head h3 { font-size: var(--text-lg); line-height: 1; padding-bottom: 0.1em; }

.stage-text { display: grid; gap: var(--space-sm); align-content: start; }
.stage-text p { max-width: 44ch; color: var(--color-ink-2); }
.stage-media { display: grid; gap: var(--space-xs); min-width: 0; }

/* 1.0: the badge is tall; keep it small */
.stage-crew .stage-media { max-width: 15rem; }
.stage-crew .shot { aspect-ratio: 515 / 955; }

/* 3.0: file photo beside the man on the street */
.face-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
.face-pair figure { display: grid; gap: var(--space-xs); min-width: 0; }
.face-pair .shot { aspect-ratio: 4 / 5; object-fit: cover; }
.face-pair figure:first-child .shot { transform: rotate(-2deg); box-shadow: 6px 6px 0 var(--color-accent); }

/* 6.0: shop with the desktop tucked under it */
.office-pair { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; }
.office-pair .shot-main { grid-column: 1 / span 11; grid-row: 1; }
.office-pair .shot-small {
  grid-column: 4 / -1; grid-row: 2;
  margin-top: calc(var(--space-lg) * -1);
  position: relative; z-index: var(--z-raise);
  box-shadow: 8px 8px 0 var(--color-paper-3);
}

/* after the six stages: what the page isn't telling you */
.more {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 4px double var(--color-rule);
}
.more-title { font-size: var(--text-lg); color: var(--color-accent-text); max-width: 22ch; }
.more p:not(.more-title) { max-width: 52ch; font-size: var(--text-md); line-height: 1.5; color: var(--color-ink-2); }

/* ---------------------------------------------------------------- studio */
.studio { padding-block: var(--space-2xl); background: var(--color-paper-2); border-block: var(--border) solid var(--color-rule); }
.studio-grid { display: grid; gap: var(--space-lg); align-items: center; }
.studio-logo { width: 8rem; }
.studio-copy { display: grid; gap: var(--space-sm); }
.studio-copy h2 { font-size: var(--text-xl); }
.studio-copy p { max-width: 52ch; color: var(--color-ink-2); }

/* ---------------------------------------------------------------- coming soon */
.soon {
  padding-block: var(--space-3xl);
  background: repeating-conic-gradient(from 0deg at 50% 118%, var(--color-paper-2) 0deg 7deg, var(--color-paper) 7deg 14deg);
}
.soon .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-md); }
.soon-title { font-size: var(--text-soon); line-height: 0.85; color: var(--color-ink); }
.soon p { max-width: 44ch; font-size: var(--text-md); color: var(--color-ink-2); }

/* ---------------------------------------------------------------- footer (Ft1) */
.foot { border-top: 4px double var(--color-rule); padding-block: var(--space-lg); }
.foot-grid { display: grid; gap: var(--space-xs); color: var(--color-muted); font-size: var(--text-sm); }
.foot-mark { font-size: var(--text-lg); letter-spacing: 0.1em; color: var(--color-ink); }
.foot-tag { color: var(--color-ink-2); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.foot-links a { white-space: nowrap; text-underline-offset: 0.25em; text-decoration-color: var(--color-accent); }
.foot-legal { font-size: var(--text-xs); }

/* ---------------------------------------------------------------- tablet: 40rem+ */
@media (min-width: 40rem) {
  .marquee-track { font-size: 1.5rem; }
  .hero-shot img { aspect-ratio: 16 / 9; }                 /* the whole frame, HUD included: it's a real gameplay capture */
  .stage-crew .stage-media { max-width: 17rem; }
  .studio-grid { grid-template-columns: auto minmax(0, 1fr); }
  .studio-logo { width: 11rem; }
  .foot-grid { grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; column-gap: var(--space-lg); }
  .foot-legal { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- desktop: 60rem+ */
@media (min-width: 60rem) {
  .mast .wrap { padding-block: var(--space-md); }

  .hero-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--space-xl); }
  .hero-head .stamp, .hero-head .title { grid-column: 1; }
  .hero-side { grid-column: 2; grid-row: 1 / span 2; align-self: end; padding-bottom: 0.4rem; }

  .stages { gap: var(--space-3xl); }
  .stage { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--space-xl); row-gap: var(--space-lg); }
  .stage-head { grid-column: 1 / -1; }
  .stage-text { grid-column: 1; }
  .stage-media { grid-column: 2; }

  /* rhythm breaks: the badge sits small and right, the brawl runs full width under its text */
  .stage-crew .stage-media { justify-self: end; max-width: 19rem; }
  .stage-stop .stage-text { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-xl); }
  .stage-stop .stage-media { grid-column: 1 / -1; }
  .face-pair { gap: var(--space-lg); }
}

/* ---------------------------------------------------------------- motion: one entrance, one marquee, one rule sweep per stage */
@media (prefers-reduced-motion: no-preference) {
  .stamp { animation: stamp-in 520ms var(--ease-out) 150ms both; }
  .title-vip { animation: rise var(--dur-long) var(--ease-out) 250ms both; }
  .title-slab { animation: rise-tilt var(--dur-long) var(--ease-out) 380ms both; }
  .hero-side { animation: rise var(--dur-long) var(--ease-out) 520ms both; }
  .hero-shot { animation: fade var(--dur-long) var(--ease-out) 300ms both; }
  .marquee-track { animation: marquee 42s linear infinite; }

  .sweep .stage-head::before,
  .sweep .stage-head::after { transform: scaleX(0); transition: transform var(--dur-sweep) var(--ease-out); }
  .sweep .stage-head::after { transition-delay: 220ms; }
  .sweep .stage.is-in .stage-head::before,
  .sweep .stage.is-in .stage-head::after { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@keyframes stamp-in {
  from { opacity: 0; transform: rotate(-12deg) scale(1.6); }
  to { opacity: 1; transform: rotate(-4deg) scale(1); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(1.2rem); }
  to { opacity: 1; transform: none; }
}
@keyframes rise-tilt {
  from { opacity: 0; transform: translateY(1.2rem) rotate(-2deg); }
  to { opacity: 1; transform: rotate(-2deg); }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
