/* =========================================================================
   Superbowl Salsa
   Palette inherits the logo badge: gold, heat red, near-black.
   Type mirrors the logo lockup: Anton block caps for SUPERBOWL, Yellowtail
   script for Salsa, Archivo for headings, Karla for body.
   ========================================================================= */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-block-start: 2rem; }
body { min-height: 100svh; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul[class], ol[class] { list-style: none; padding: 0; }
:where(a) { color: inherit; }

/* ---------- tokens ---------- */
:root {
  --night:    oklch(0.130 0.010 40);
  --night-2:  oklch(0.175 0.013 40);
  --night-3:  oklch(0.235 0.015 40);
  --line:     oklch(0.300 0.016 40);
  --line-soft:oklch(0.240 0.014 40);
  /* For control borders that sit over photography, where --line disappears.
     Clears 3:1 against the brightest point of every hero slide. */
  --line-lit: oklch(0.560 0.022 40);

  --ink:      oklch(0.970 0.006 80);
  --ink-2:    oklch(0.775 0.014 60);

  --heat:     oklch(0.620 0.215 27);
  --heat-btn: oklch(0.505 0.196 27);
  --heat-dk:  oklch(0.440 0.175 27);

  --gold:     oklch(0.825 0.128 82);

  --font-display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --font-block: 'Anton', 'Arial Black', Impact, system-ui, sans-serif;
  --font-script: 'Yellowtail', 'Brush Script MT', cursive;
  --font-body: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md:   clamp(1.125rem, 0.98rem + 0.6vw, 1.3125rem);
  --fs-lg:   clamp(1.3125rem, 1.05rem + 1.2vw, 1.75rem);
  --fs-h2:   clamp(1.75rem, 1.15rem + 2.6vw, 2.75rem);

  --shell: 76rem;
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --sec-y: clamp(4rem, 9vw, 8rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --z-topbar: 50;
  --z-bug: 60;
  --z-skip: 100;
}

/* ---------- base ---------- */
body {
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  padding-bottom: clamp(5rem, 9vw, 5.5rem); /* clearance for the fixed score bug */
}

h1, h2, h3 { text-wrap: balance; line-height: 1.02; }
p { text-wrap: pretty; }

.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-weight: 600; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); }

.skip {
  position: absolute; left: 0.5rem; top: -4rem; z-index: var(--z-skip);
  background: var(--ink); color: var(--night);
  padding: 0.6rem 1rem; font-weight: 700;
  transition: top 0.15s var(--ease);
}
.skip:focus { top: 0.5rem; }

/* Available to assistive tech and to the keyboard, absent from the layout. */
.u-sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.1rem;
  padding: 0.85rem 1.4rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 105;
  font-weight: 700; font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn__sub {
  font-family: var(--font-body); font-weight: 400; font-size: var(--fs-xs);
  opacity: 0.85; letter-spacing: 0;
}
.btn--heat { --btn-bg: var(--heat-btn); --btn-fg: #fff; }
.btn--heat:hover { --btn-bg: var(--heat-dk); transform: translateY(-2px); }
/* --line reads at 1.4:1 here, which makes an outlined button look like
   plain text. --line-lit clears 3:1 on every surface it lands on. */
.btn--ghost { --btn-fg: var(--ink); border-color: var(--line-lit); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: var(--fs-base); }
.btn--block { display: flex; width: 100%; }
/* Icon beside the label rather than a stacked sub-line. */
.btn--row { flex-direction: row; align-items: center; gap: 0.6rem; }
.btn--row svg { width: 1.15rem; height: 1.15rem; flex: none; }

/* ---------- topbar ---------- */
.topbar {
  position: absolute; inset-block-start: 0; inset-inline: 0; z-index: var(--z-topbar);
  padding-block: clamp(0.9rem, 2vw, 1.4rem);
}
.topbar__inner { display: flex; align-items: center; gap: clamp(0.75rem, 2.5vw, 2rem); }
/* The lockup is the logo, so the topbar carries a small copy of it rather
   than a separate badge image. */
.brand { display: flex; align-items: center; text-decoration: none; margin-inline-end: auto; }

.topbar__nav { display: none; gap: clamp(1rem, 2vw, 1.6rem); }
.topbar__nav a {
  text-decoration: none; font-size: var(--fs-sm); color: var(--ink-2);
  padding-block: 0.25rem; border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.topbar__nav a:hover { color: var(--ink); border-bottom-color: var(--heat); }
.topbar__cta { display: none; }

/* social icons */
.social { display: flex; gap: 0.4rem; }
.social__link {
  display: grid; place-items: center;
  width: 2.3rem; height: 2.3rem;
  color: var(--ink-2); border: 1px solid var(--line);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.social__link svg { width: 1.1rem; height: 1.1rem; }
.social__link:hover { color: var(--ink); border-color: var(--heat); background: var(--heat-dk); }

@media (min-width: 64em) { .topbar__nav { display: flex; } }
@media (min-width: 78em) { .topbar__cta { display: inline-flex; } }

/* ---------- slideshow (shared) ---------- */
.slides { position: relative; display: grid; isolation: isolate; }
.slide {
  /* min-height is load-bearing. All five slides share one grid cell, and
     `height: 100%` below cannot resolve while the row is being sized, so
     the row falls back to the tallest image's natural height and the
     photograph spills out of the hero. */
  grid-area: 1 / 1; min-width: 0; min-height: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.95s var(--ease), visibility 0s linear 0.95s;
}
.slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s, 0s; }

/* ---------- hero ---------- */
/* overflow is a backstop, not decoration: .hero is positioned and the
   sections below it are not, so anything that escapes the hero paints on
   top of the next section rather than behind it. */
.hero { position: relative; display: grid; min-height: 100svh; isolation: isolate; overflow: hidden; }
.slides--hero { position: absolute; inset: 0; z-index: -3; }
.slides--hero .slide { height: 100%; }
.slides--hero img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  filter: saturate(0.95) contrast(1.05) brightness(0.66);
}
.hero__wash {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(to top, var(--night) 1%, oklch(0.13 0.01 40 / 0.8) 46%, oklch(0.13 0.01 40 / 0.34) 82%),
    linear-gradient(to right, oklch(0.13 0.01 40 / 0.86) 0%, oklch(0.13 0.01 40 / 0.2) 66%);
}

/* Fireworks sit between the photograph and the lockup. The mask takes them
   out before they reach the deck, the ticker and the buttons, so the copy
   always has a clean field and shells appear to rise from behind it. */
.hero__fw {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%, #000 10%, #000 40%, rgba(0,0,0,0.45) 62%, transparent 80%);
  mask-image: linear-gradient(to bottom,
    transparent 0%, #000 10%, #000 40%, rgba(0,0,0,0.45) 62%, transparent 80%);
}
/* Centred rather than bottom-aligned. Sitting it on the floor of a full
   viewport left a canyon between the topbar and the title. */
.hero__body {
  align-self: center;
  padding-block: clamp(5rem, 11vw, 6.5rem) clamp(1.5rem, 4vw, 2.5rem);
  display: grid; gap: clamp(0.75rem, 1.6vw, 1.15rem);
  max-width: 60rem;
}

.hero__flag { display: flex; align-items: center; gap: 0.6rem; font-size: var(--fs-sm); color: var(--ink-2); }
.hero__flag::before { content: ''; width: 0.7rem; height: 0.7rem; flex: none; background: var(--heat); }

/* -----------------------------------------------------------------------
   The lockup: block caps + script, reproducing the badge.

   This uses gradient-filled text, which is normally a thing to avoid as
   decoration. Here it is the identity: the printed logo is polished gold
   and glossy red, and a flat fill would read as a different brand. Each
   word is built in two layers, a ::before carrying the bevel edge and the
   extrusion stack, and the element itself carrying the metal gradient.
   -------------------------------------------------------------------- */
.wordmark {
  position: relative; z-index: 0; /* contains the extrusion pseudo-elements */
  display: grid; justify-items: start;
  margin-block: 0.1rem 0.35rem;
}
.wordmark__super,
.wordmark__salsa {
  position: relative;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  background-repeat: no-repeat;
}
.wordmark__super::before,
.wordmark__salsa::before {
  content: attr(data-text);
  position: absolute; inset-block-start: 0; inset-inline-start: 0;
  z-index: -1;
  -webkit-text-fill-color: currentColor;
  white-space: nowrap;
}

.wordmark__super {
  font-family: var(--font-block);
  /* "SUPERBOWL" in Anton measures 4.47x its font size. The column is the
     viewport less 2x --gut (40px on a phone), so 19vw is the largest value
     that still fits at 320px. Raise it and the page scrolls sideways. */
  font-size: clamp(3rem, 19vw, 7.5rem);
  line-height: 0.92; letter-spacing: 0.012em;
  text-transform: uppercase;
  background-image:
    linear-gradient(112deg, transparent 34%, rgba(255,255,255,0.9) 47%, transparent 60%),
    linear-gradient(180deg,
      #FFF8DC 0%, #F9E29B 15%, #E5AE3E 33%, #FFF3BC 46%,
      #C9871B 57%, #E3AC3B 71%, #FFF4CE 88%, #D9A233 100%);
  background-size: 260% 100%, 100% 100%;
  background-position: -160% 0, 0 0;
}
.wordmark__super::before {
  color: #6d4109;
  -webkit-text-stroke: 0.055em #6d4109;
  text-shadow:
    0 1px 0 #61390a, 0 2px 0 #573309, 0 3px 0 #4d2d08, 0 4px 0 #432807,
    0 5px 0 #392206, 0 6px 0 #2f1c05, 0 7px 0 #251604, 0 8px 0 #1c1003,
    0 14px 26px rgba(0,0,0,0.62);
}

.wordmark__salsa {
  font-family: var(--font-script);
  /* Held at 1.18x Superbowl, the proportion the printed badge uses. */
  font-size: clamp(3.55rem, 22.45vw, 8.86rem);
  line-height: 0.78;
  margin-block-start: -0.15em;
  margin-inline-start: 0.1em;
  padding-inline-end: 0.16em; /* room for the script's exit stroke */
  background-image:
    linear-gradient(112deg, transparent 34%, rgba(255,255,255,0.75) 47%, transparent 60%),
    linear-gradient(180deg,
      #FFB4A4 0%, #F55C44 15%, #D42112 33%, #FF8D71 46%,
      #B31509 57%, #E23B29 71%, #FFA895 88%, #C41E10 100%);
  background-size: 260% 100%, 100% 100%;
  background-position: -160% 0, 0 0;
}
.wordmark__salsa::before {
  color: #F0C75C;
  -webkit-text-stroke: 0.05em #F0C75C; /* the gold edge the printed logo has */
  text-shadow:
    0 2px 0 #8d1108, 0 3px 0 #7f0f07, 0 4px 0 #710d06, 0 5px 0 #630b05,
    0 6px 0 #550904, 0 7px 0 #470703, 0 8px 0 #390502,
    0 14px 26px rgba(0,0,0,0.6);
}

/* The glint runs on a loop: a quick sweep, then a long hold with the
   highlight parked off the glyphs, which reads as metal catching the light
   rather than a strobe. The two words run at different durations so they
   drift out of step instead of glinting together. It pauses when the hero
   leaves the screen, because animating background-position repaints text. */
@keyframes glint {
  0%,  10% { background-position: -160% 0, 0 0; }
  44%, 100% { background-position: 260% 0, 0 0; }
}
.wordmark__super { animation: glint 4.2s var(--ease) 0.4s infinite both; }
.wordmark__salsa { animation: glint 4.8s var(--ease) 0.9s infinite both; }
.hero--rest .wordmark__super,
.hero--rest .wordmark__salsa { animation-play-state: paused; }

/* -----------------------------------------------------------------------
   Logo sizes. The extrusion stack is in fixed pixels, so a small lockup
   needs its own shallower stack or the bevel swamps the letterforms.
   --sm is the topbar, --md is the closing panel. Neither glints: the
   sweep belongs to the hero, and the topbar is not the place for it.
   -------------------------------------------------------------------- */
.wordmark--sm, .wordmark--md { margin-block: 0; }
.wordmark--sm .wordmark__super,
.wordmark--sm .wordmark__salsa,
.wordmark--md .wordmark__super,
.wordmark--md .wordmark__salsa { animation: none; }

.wordmark--sm .wordmark__super {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  letter-spacing: 0.025em;
}
.wordmark--sm .wordmark__salsa {
  font-size: clamp(1.3rem, 3.4vw, 1.55rem);
  margin-block-start: -0.3em; margin-inline-start: 0.1em;
}
.wordmark--sm .wordmark__super::before {
  -webkit-text-stroke-width: 0.045em;
  text-shadow: 0 1px 0 #57330a, 0 2px 0 #432807, 0 3px 0 #2f1c05, 0 4px 8px rgba(0,0,0,0.55);
}
.wordmark--sm .wordmark__salsa::before {
  -webkit-text-stroke-width: 0.04em;
  text-shadow: 0 1px 0 #8d1108, 0 2px 0 #710d06, 0 3px 0 #550904, 0 4px 8px rgba(0,0,0,0.5);
}

.wordmark--md { justify-items: center; }
.wordmark--md .wordmark__super { font-size: clamp(2.1rem, 6.6vw, 3.4rem); }
.wordmark--md .wordmark__salsa { font-size: clamp(2.8rem, 8.8vw, 4.4rem); }
.wordmark--md .wordmark__super::before {
  text-shadow: 0 1px 0 #61390a, 0 2px 0 #4d2d08, 0 3px 0 #392206, 0 4px 0 #251604,
    0 8px 16px rgba(0,0,0,0.6);
}
.wordmark--md .wordmark__salsa::before {
  text-shadow: 0 1px 0 #8d1108, 0 2px 0 #710d06, 0 3px 0 #550904, 0 4px 0 #390502,
    0 8px 16px rgba(0,0,0,0.55);
}

/* Deliberately below --fs-md. The lockup above it is now very large, and a
   21px deck under a 100px title reads as two headlines rather than a
   headline and its explanation. */
.hero__deck {
  font-size: clamp(0.95rem, 0.87rem + 0.45vw, 1.15rem);
  line-height: 1.55; color: var(--ink); max-width: 56ch;
}

/* ---------- credentials ticker ---------- */
/* A broadcast rail, rhyming with the score bug at the foot of the page.
   It runs on the same two-track machinery as the collage marquee, so the
   pause control and the reduced-motion handling are shared. */
.ticker {
  display: flex; align-items: stretch; gap: 0.6rem;
  margin-block-start: 0.25rem;
  /* Required. As a grid item this defaults to min-width:auto, which resolves
     to the min-content of the tracks inside, and a 2,000px track would then
     size the hero's whole grid column and push the page sideways. */
  min-width: 0;
}
.ticker__rail {
  --mgap: clamp(1.15rem, 3vw, 2.25rem);
  flex: 1 1 auto; min-width: 0;
  /* The rail carries the vertical padding, not the track: the track is a
     <ul>, and the `ul[class]` reset out-specifies a single class. */
  padding-block: 0.8rem;
}
.ticker__track { --mdur: 34s; align-items: baseline; }
/* Out of the hero entirely until a keyboard finds it, then it takes its
   place at the end of the rail. Pointer users get hover-to-pause instead.
   Plain :focus, not :focus-visible: the control is clipped to a pixel so a
   pointer can never reach it, and :focus-visible would leave a keyboard
   user tabbing onto something they cannot see. */
.ticker__pause:focus,
.ticker__pause:focus-visible {
  position: static; width: 2.5rem; height: auto;
  margin: 0; overflow: visible; clip-path: none; white-space: normal;
  flex: none; display: grid; place-items: center;
  color: var(--ink); border: 1px solid var(--line-lit);
}

.stat { display: flex; align-items: baseline; gap: 0.45rem; white-space: nowrap; }
.stat::after {
  /* The separator sits centred in the track gap, not tucked against its
     own item, hence the negative-looking margin maths. */
  content: ''; align-self: center; flex: none;
  width: 0.4rem; height: 0.4rem; background: var(--heat);
  margin-inline-start: calc(var(--mgap) - 0.45rem);
}
.stat__fig {
  font-family: var(--font-display); font-weight: 900;
  font-variation-settings: 'wdth' 115;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  letter-spacing: -0.02em; color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.stat__lab { font-size: var(--fs-sm); color: var(--ink-2); }

/* Both buttons carry a sub-line, so they match in height and their labels
   share a baseline. flex-grow inside a capped row keeps them equal width
   on desktop and full width once they wrap. */
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-block-start: 0.3rem; max-width: 34rem;
}
.hero__actions .btn { flex: 1 1 13rem; }
.hero__practical { font-size: var(--fs-sm); color: var(--ink-2); }
.hero__practical strong { color: var(--ink); }

/* ---------- credentials (gold lives here and in the wordmark) ---------- */
.creds { background: var(--night-2); padding-block: var(--sec-y); }
.creds__h {
  font-family: var(--font-display); font-weight: 800;
  font-variation-settings: 'wdth' 108;
  font-size: var(--fs-h2); letter-spacing: -0.025em;
  max-width: 20ch; margin-block-end: clamp(2rem, 4vw, 3rem);
}
.creds__list { display: grid; }
.cred {
  display: grid; gap: 0.4rem 1.75rem;
  padding-block: clamp(1.5rem, 3vw, 2rem);
  border-block-start: 1px solid var(--line);
}
.cred:last-child { border-block-end: 1px solid var(--line); }
.cred__fig {
  font-family: var(--font-display); font-weight: 900;
  font-variation-settings: 'wdth' 118;
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  line-height: 0.85; letter-spacing: -0.04em;
  color: var(--gold); font-variant-numeric: tabular-nums;
}
.cred__body { color: var(--ink-2); max-width: 62ch; }
.cred__body strong { color: var(--ink); font-weight: 700; }
@media (min-width: 44em) {
  /* 8rem clears the widest figure ("14x") at the clamp ceiling */
  .cred { grid-template-columns: 8rem 1fr; align-items: start; }
}

/* ---------- generic sections ---------- */
.section { padding-block: var(--sec-y); }
.section--raised { background: var(--night-2); }

.h2 {
  font-family: var(--font-display); font-weight: 800;
  font-variation-settings: 'wdth' 108;
  font-size: var(--fs-h2); letter-spacing: -0.025em;
  max-width: 22ch; margin-block-end: 1.25rem;
}
.lede { font-size: var(--fs-md); margin-block-end: 1rem; max-width: 62ch; }
.section p { color: var(--ink-2); max-width: 66ch; }
.section p + p { margin-block-start: 1rem; }
.section .lede { color: var(--ink); }
.note {
  margin-block-start: 1.75rem; padding-block-start: 1.25rem;
  border-block-start: 1px solid var(--line-soft);
  font-size: var(--fs-sm);
}

.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 56em) {
  .split { grid-template-columns: 1fr 0.9fr; }
  .split--flip .split__text { order: 2; }
}
.split__media img { width: 100%; filter: saturate(0.95) contrast(1.03) brightness(0.92); }
.split__media figcaption {
  margin-block-start: 0.7rem; font-size: var(--fs-xs); color: var(--ink-2);
  max-width: 46ch; line-height: 1.55;
}

/* ---------- collage marquee ---------- */
.collage { padding-block: var(--sec-y); }
.collage__head { margin-block-end: clamp(1.5rem, 3vw, 2.25rem); }
.collage__deck { color: var(--ink-2); max-width: 60ch; }

.marquee { --mgap: clamp(0.4rem, 1.1vw, 0.85rem); display: grid; gap: var(--mgap); }
.mrow {
  display: flex; gap: var(--mgap);
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
}
.mrow--tall  { height: clamp(165px, 27vw, 310px); }
.mrow--short { height: clamp(125px, 20vw, 230px); }

/* Two identical tracks side by side, each sliding a full width leftward.
   As the first clears the viewport the second is exactly in its place, so
   the loop has no seam. */
.mtrack {
  display: flex; gap: var(--mgap); flex: none;
  animation: marquee var(--mdur, 52s) linear infinite;
  will-change: transform;
}
.mtrack--slow { --mdur: 74s; }
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-100% - var(--mgap)), 0, 0); }
}

/* Keyed off the attribute rather than the class, so the hero ticker can
   reuse this without inheriting the collage's grid layout. */
[data-marquee]:hover .mtrack,
[data-marquee].is-paused .mtrack { animation-play-state: paused; }

.tile { flex: none; height: 100%; overflow: hidden; background: var(--night-2); }
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.95) contrast(1.04) brightness(0.86);
  transition: filter 0.45s var(--ease), transform 0.45s var(--ease);
}
.tile:hover img { filter: none; transform: scale(1.04); }
.tile--w1 { width: clamp(112px, 17vw, 205px); }
.tile--w2 { width: clamp(155px, 24vw, 290px); }
.tile--w3 { width: clamp(205px, 33vw, 390px); }

.collage__foot { margin-block-start: 1.35rem; display: flex; justify-content: center; }
.mpause {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 1.15rem;
  font-size: var(--fs-sm); color: var(--ink-2);
  border: 1px solid var(--line);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.mpause:hover { color: var(--ink); border-color: var(--heat); }
.mpause__icon {
  width: 0.7rem; height: 0.8rem; flex: none; background: currentColor;
  clip-path: polygon(0 0, 38% 0, 38% 100%, 0 100%, 0 0, 62% 0, 100% 0, 100% 100%, 62% 100%);
}
[data-marquee-toggle][aria-pressed="true"] .mpause__icon {
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ---------- social wall ---------- */
/* Same tile language as the collage, laid out rather than scrolling: two
   moving photo strips on one page would be one too many. Dense packing
   lets the two large cells sit anywhere without leaving holes. */
.wall-sec { padding-block: var(--sec-y); background: var(--night-2); }
.wall-sec__head { margin-block-end: clamp(1.5rem, 3vw, 2.25rem); }
.wall-sec__deck { color: var(--ink-2); max-width: 58ch; margin-block-end: 1.5rem; }
/* Same treatment as the hero pair: equal width side by side, full width
   once they wrap, so two handles of different lengths still line up. */
.wall-sec__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; max-width: 31rem; }
.wall-sec__cta .btn { flex: 1 1 13rem; justify-content: center; }

/* Nine tiles, one of them 2x2, is twelve grid units, which divides evenly
   by 2, 4 and 6. That is what keeps the bottom row full at every
   breakpoint. Change the tile count and the wall goes ragged: keep the
   units at a multiple of twelve (one big plus eight small, or two big plus
   sixteen small). */
.wall {
  --wgap: clamp(0.4rem, 1.1vw, 0.85rem);
  display: grid; gap: var(--wgap);
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
}
@media (min-width: 34em) { .wall { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 60em) { .wall { grid-template-columns: repeat(6, 1fr); } }

.wall__cell { aspect-ratio: 1; min-width: 0; }
.wall__cell--big { grid-column: span 2; grid-row: span 2; }

.wall__link {
  position: relative; display: block; width: 100%; height: 100%;
  overflow: hidden; background: var(--night);
}
.wall__link img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.95) contrast(1.04) brightness(0.82);
  transition: filter 0.45s var(--ease), transform 0.45s var(--ease);
}
.wall__link:hover img, .wall__link:focus-visible img { filter: none; transform: scale(1.05); }
.wall__tag {
  position: absolute; inset-block-end: 0.5rem; inset-inline-end: 0.5rem;
  display: grid; place-items: center;
  width: 1.7rem; height: 1.7rem;
  color: var(--ink); background: oklch(0.130 0.010 40 / 0.72);
}
.wall__tag svg { width: 0.95rem; height: 0.95rem; }
@supports (backdrop-filter: blur(4px)) { .wall__tag { backdrop-filter: blur(5px); } }

/* ---------- selected work ---------- */
.works__h {
  font-family: var(--font-display); font-weight: 700;
  font-variation-settings: 'wdth' 104;
  font-size: var(--fs-md); letter-spacing: -0.01em;
  margin-block: clamp(2.5rem, 5vw, 3.75rem) 0.75rem;
}
.works { display: grid; }
.work {
  display: grid; gap: 0.1rem 1.5rem;
  padding-block: 0.9rem;
  border-block-start: 1px solid var(--line-soft);
}
.work:last-child { border-block-end: 1px solid var(--line-soft); }
.work__t { font-weight: 700; }
.work__n { color: var(--ink-2); font-size: var(--fs-sm); }
@media (min-width: 44em) {
  .work { grid-template-columns: 19rem 1fr; align-items: baseline; }
}

/* ---------- visit ---------- */
.visit { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 56em) { .visit { grid-template-columns: 1.15fr 0.85fr; } }

.visit__facts { display: grid; }
.fact {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem;
  padding-block: 1rem; border-block-start: 1px solid var(--line);
}
.fact:last-child { border-block-end: 1px solid var(--line); }
.fact dt { font-size: var(--fs-sm); color: var(--ink-2); }
.fact dd { font-weight: 700; }

.visit__cta { background: var(--night); padding: clamp(1.5rem, 3.5vw, 2rem); border: 1px solid var(--line); }
.visit__line { font-size: var(--fs-sm); color: var(--ink-2); margin-block-end: 1rem; }
.visit__small { font-size: var(--fs-xs); color: var(--ink-2); margin-block-start: 1rem; line-height: 1.6; }

/* ---------- close ---------- */
.close {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: var(--sec-y); border-block-start: 1px solid var(--line-soft);
}
.close__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%;
  filter: saturate(0.8) contrast(1.04) brightness(0.4);
}
.close__wash {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 45%,
    oklch(0.13 0.01 40 / 0.72) 0%, oklch(0.13 0.01 40 / 0.94) 72%);
}
.close__inner { display: grid; justify-items: center; text-align: center; gap: 1.1rem; }
/* Sits under the logo now, so it steps back: smaller than the lockup, and
   ink rather than heat so two red scripts are not stacked on each other. */
.close__h {
  font-family: var(--font-script);
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  line-height: 0.9; color: var(--ink);
  padding-inline-end: 0.1em;
}
.close__deck { color: var(--ink-2); font-size: var(--fs-md); }

/* ---------- footer ---------- */
.foot { background: var(--night-2); padding-block: clamp(2.5rem, 5vw, 4rem); }
.foot__inner { display: grid; gap: 1.5rem; }
.foot__co { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.7; }
.foot__co strong { color: var(--ink); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.foot__nav a { font-size: var(--fs-sm); text-decoration: none; border-bottom: 1px solid var(--line); padding-block-end: 2px; }
.foot__nav a:hover { border-bottom-color: var(--heat); }
.foot__fine {
  font-size: var(--fs-xs); color: var(--ink-2); max-width: 68ch; line-height: 1.65;
  border-block-start: 1px solid var(--line); padding-block-start: 1.25rem;
}

/* ---------- score bug (signature) ---------- */
.bug {
  position: fixed; inset-block-end: 0; inset-inline: 0; z-index: var(--z-bug);
  background: oklch(0.130 0.010 40 / 0.94);
  border-block-start: 1px solid var(--line);
  padding: 0.65rem var(--gut);
  padding-block-end: max(0.65rem, env(safe-area-inset-bottom));
}
@supports (backdrop-filter: blur(6px)) { .bug { backdrop-filter: blur(8px); } }
.bug__inner {
  width: 100%; max-width: var(--shell); margin-inline: auto;
  display: flex; align-items: center; gap: 0.9rem;
}
.bug__id {
  display: none; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 800;
  font-variation-settings: 'wdth' 112;
  font-size: var(--fs-sm); letter-spacing: -0.01em;
  padding-inline-end: 0.9rem; border-inline-end: 1px solid var(--line);
}
.bug__dot { width: 0.5rem; height: 0.5rem; background: var(--heat); flex: none; }
.bug.is-live .bug__dot { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.bug__clock { display: grid; margin-inline-end: auto; line-height: 1.25; }
.bug__label { font-size: var(--fs-xs); color: var(--ink-2); }
.bug__time { font-size: var(--fs-sm); font-weight: 700; letter-spacing: -0.01em; }
.bug__cta { flex: none; padding: 0.7rem 1.35rem; }
@media (min-width: 46em) {
  .bug__id { display: flex; }
  .bug__time { font-size: var(--fs-base); }
}

/* ---------- motion ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
[data-anim] { animation: rise 0.85s var(--ease) both; }
[data-anim="1"] { animation-delay: 0.05s; }
[data-anim="2"] { animation-delay: 0.16s; }
[data-anim="3"] { animation-delay: 0.30s; }
[data-anim="4"] { animation-delay: 0.42s; }
[data-anim="5"] { animation-delay: 0.52s; }
[data-anim="6"] { animation-delay: 0.62s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-anim] { animation: none; opacity: 1; transform: none; }
  .btn:hover { transform: none; }
  .slide { transition: none; }

  /* The blanket rule above would snap the marquee to its end frame and
     leave a gap, so stop it outright and let people scroll the rows by
     hand instead. The duplicate track is redundant once it is static. */
  .mtrack { animation: none !important; transform: none !important; }
  .mrow { overflow-x: auto; }
  .mtrack[aria-hidden="true"] { display: none; }
  .tile:hover img { transform: none; }

  /* Same for the ticker: one static copy of each fact, scrollable by hand.
     The separators go too, or the last fact trails one into empty space. */
  .ticker .stat[aria-hidden="true"] { display: none; }
  .ticker .stat::after { display: none; }

  /* No glint sweep; hold the metal gradient still. */
  .wordmark__super, .wordmark__salsa { animation: none !important; }
}

/* ---------- print ---------- */
@media print {
  .bug, .slides--gallery, .slides__controls, .slides--hero, .hero__wash { display: none; }
  body { background: #fff; color: #000; padding-block-end: 0; }
}
