/* Wild7s site: the 15-year anniversary launch page (plan.md). Tokens are in tokens.css.
   Order: shared parts, marks, the quince theme and sponsor bar, nav, papel picado, hero (the
   invitation), Tickets, Weekend, Fifteen years, Giveaway, FAQ, The krew, footer.
   The A2 hero's rules are frozen in heroes/quince/site-2026-11-10.css. The October krew build is
   frozen in parked.html / parked.css. */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- shared parts ---------- */

.section { padding: var(--s-32) var(--gutter); }
@media (max-width: 767px) { .section { padding: var(--s-16) var(--gutter); } }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-6); }
.h2 { font-size: var(--t-xl); font-weight: var(--w-strong); line-height: 0.95; letter-spacing: -0.03em; text-wrap: balance; }
.lead { font-size: var(--t-md); line-height: 1.3; letter-spacing: -0.02em; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-6); }

/* the hero's facts: mono keys, full-ink values, always on the right margin */
.facts { display: grid; grid-template-columns: auto auto; gap: var(--s-2) var(--s-8); }
.facts dd { color: var(--fg); }

/* the hero's picture: tall, the whole figure, black and white, square corners */
.photo { position: relative; margin: 0; }
.photo img, .photo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); }

/* entrances: the hero runs on load; every other section waits until it is on screen.
   Only the hero's picture takes the long opening; the others open at 400ms (design.md). */
.js [data-reveal]:not(.is-in) :is([data-rise], [data-lift], [data-open], [data-open] :is(img, video)) { animation-play-state: paused; }
.js [data-reveal] :is([data-lift], [data-open], [data-open] :is(img, video)) { animation-duration: var(--m-reveal); }

/* a sentence set large: a paragraph, never a heading (32px, 20px below 1024) */
.statement { font-size: var(--t-lg); font-weight: var(--w-regular); line-height: 1.15; letter-spacing: -0.025em; text-wrap: pretty; }
@media (max-width: 1023px) { .statement { font-size: var(--t-md); line-height: 1.25; } }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* reduced motion: the fades that replace the entrances run at the UI speed, not the reveal speed */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] :is([data-lift], [data-open], [data-open] :is(img, video)) { animation-duration: var(--m-ui); }
}

/* ---------- Marks: the krew's logos as pictures (design.md §7) ----------
   Each mark is a mask filled with the current text colour, so it always takes a palette
   colour. One family per chapter, one mark per section, used once. */

.mark {
  display: block; aspect-ratio: var(--mark-ratio); background: currentColor;
  -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat;
}
.mark-handstyle { --mark: url(assets/marks/handstyle.png); --mark-ratio: 1167 / 607; } /* the krew */
.mark-oval { --mark: url(assets/marks/oval.png); --mark-ratio: 1200 / 992; }           /* the nation */

/* the anniversary: varsity WILD VII in two tones, on two layers. The letters take the text
   colour; the inner line takes --mark-line (the field behind it by default, so set it on a
   maroon field). The element itself is not masked, or its mask would cut the line layer away. */
.mark-varsity { position: relative; --mark-ratio: 1400 / 1235; background: none; -webkit-mask: none; mask: none; }
.mark-varsity::before, .mark-varsity::after { content: ""; position: absolute; inset: 0; }
.mark-varsity::before {
  background: currentColor;
  -webkit-mask: url(assets/marks/varsity-fill.png) center / contain no-repeat; mask: url(assets/marks/varsity-fill.png) center / contain no-repeat;
}
.mark-varsity::after {
  background: var(--mark-line, var(--bg));
  -webkit-mask: url(assets/marks/varsity-line.png) center / contain no-repeat; mask: url(assets/marks/varsity-line.png) center / contain no-repeat;
}

/* the two sizes: a stamp beside the facts, a plate filling a picture slot */
.mark.stamp { height: 96px; width: auto; }
.mark.plate { width: 100%; height: auto; }
@media (max-width: 767px) { .mark.stamp { height: 64px; } }

/* ---------- the pass's two states (set by site.js on <html>) ----------
   "on": the pass is on sale (the default, and the page with scripts off).
   "door": the last step has passed, so only singles remain, at the door. */
.pass-door { display: none; }
[data-pass="door"] .pass-door { display: revert; }
[data-pass="door"] .pass-on { display: none; }

/* ---------- the quince theme, for the promo (2026-11-11) ----------
   Wild7s turns fifteen, so the anniversary is the krew's quinceañera and the first screen is its
   invitation (option B in heroes/quince/, drawn after the krew's flyer, nothing traced). The theme
   stays at the top of the page: the sponsor bar, the nav, the string of flags and the hero carry .q,
   which swaps in the invitation's inks. <main> and the footer stay Letterman. It breaks design.md
   on purpose (taste-overrides #39 to #47). The flag and flower masks are in assets/quince/. */

:root {
  --font-black: "UnifrakturCook", "Times New Roman", serif;  /* blackletter: Quinceañera and the date */
  --font-script: "Pinyon Script", "Snell Roundhand", cursive; /* copperplate: the invitation's own words */
  --paper: #F0B35B;                                             /* marigold, the flyer's paper */
  --bar-h: 40px;
  --picado-h: 0px; /* the string of flags, where it hangs in the flow under the nav (below 1024) */
}
@media (max-width: 1023px) { :root { --picado-h: 72px; } }
@media (max-width: 767px) { :root { --picado-h: 57px; } }

/* the invitation's inks: rust and black on marigold */
.q {
  --bg: var(--paper); --surface: #F6CA88; --fg: #1E1512; --muted: #5C3721;
  --line: rgb(30 21 18 / 0.18); --accent: #8E2B1C; --on-accent: #FBE7C6;
  color: var(--fg);
}

/* the paper: marigold under the whole launch page (body.quince) with a fine speckle over it.
   <main> and the footer lay their own fields on top, so only the top of the page shows it. The
   small pages share this stylesheet and keep their cream. */
body.quince { background: var(--paper); }
body.quince::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .22 0 0 0 0 .06 0 0 0 2.2 -1.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.quince main { background: var(--bg); }

.script { font-family: var(--font-script); font-weight: 400; letter-spacing: 0; text-transform: none; }
.black { font-family: var(--font-black); font-weight: 700; letter-spacing: 0; text-transform: none; }

/* ---------- the sponsor bar: one slim link above the nav ----------
   Sponsors fund the event, so their way in sits at the very top of the page, not in the footer.
   It opens an email until the sponsor page exists. The phrase is from the krew's sponsor flyer. */
.sponsor-bar {
  position: relative; z-index: 60;
  display: flex; justify-content: center; align-items: center; gap: var(--s-3);
  min-height: var(--bar-h); padding: var(--s-1) var(--gutter);
  background: var(--fg); color: var(--on-accent); text-decoration: none; text-align: center;
  font: var(--w-strong) var(--t-sm)/1.2 var(--font-sans);
}
.sponsor-bar .court { font: 400 24px/1 var(--font-script); letter-spacing: 0; }
.sponsor-bar .go { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sponsor-bar:hover .go { text-decoration-thickness: 2px; }
.sponsor-bar:focus-visible { outline-offset: -4px; outline-color: var(--on-accent); }
@media (max-width: 767px) {
  .sponsor-bar .court { font-size: 22px; }
  .sponsor-bar .long { display: none; }
}

/* ---------- the nav: a flat pill that stays at the top all the way down, so the pass is one tap away ---------- */

.masthead {
  --nav-h: 54px;
  position: sticky; top: var(--s-6); z-index: 50;
  width: fit-content; margin: var(--s-6) auto 0;
}
/* a flat fill and a 1px line, nothing else (taste-overrides #7, #8). It keeps the cream
   tokens on every field, so it reads on the maroon Tickets block and on the dark bands too. */
.nav {
  display: flex; align-items: center; gap: var(--s-6); height: var(--nav-h);
  padding: var(--s-1) var(--s-1) var(--s-1) var(--s-6);
  background: var(--surface); color: var(--fg);
  border: var(--border); border-radius: var(--r-pill);
}
.nav .wordmark { font: var(--w-strong) var(--t-sm)/1 var(--font-sans); text-decoration: none; }
.nav ul { display: flex; gap: var(--s-1); }
.nav ul a {
  display: block; padding: var(--s-3) var(--s-4); border-radius: var(--r-pill);
  font-size: var(--t-sm); line-height: 1; text-decoration: none; color: var(--muted);
  transition: color var(--m-ui) var(--ease-ui), background-color var(--m-ui) var(--ease-ui);
}
.nav ul a:hover { color: var(--fg); background: var(--bg); }
.nav .menu { display: none; }
.nav .button { padding: 0 var(--s-4); }
.nav :focus-visible { outline-offset: 2px; }
/* a jump to any section lands just below the pinned nav, so the pill never sits on its first lines */
html { scroll-padding-top: calc(var(--s-6) + 54px + var(--s-2)); }
@media (max-width: 767px) { html { scroll-padding-top: calc(var(--s-4) + 54px + var(--s-2)); } }

@media (max-width: 767px) {
  .masthead { top: var(--s-4); width: auto; margin: var(--s-4) var(--gutter) 0; }
  .nav { gap: var(--s-4); }
  .nav ul { display: none; }
  .nav .menu { display: block; margin-left: auto; }
}

/* ---------- papel picado: cut-paper flags on a sagging string ----------
   Each flag is a mask, so it takes the palette's colours. The string is the parabola
   y = 4 · sag · t(1 − t), and --t is a flag's place along it (0 at the left edge, 1 at the right).
   Desktop hangs it from the sponsor bar, behind the nav, and leaves off the flags the nav would
   hide; below 1024 it hangs under the nav, in the flow, with every other flag. */
.picado {
  --sag: 22px; --flag-w: 58px;
  --flag-1: var(--accent); --flag-2: var(--on-accent); --flag-3: var(--fg);
  position: absolute; z-index: 1; left: 0; right: 0; top: var(--bar-h);
  height: calc(var(--sag) + var(--flag-w) * 1.3); pointer-events: none; overflow-x: clip;
}
@media (min-width: 1024px) {
  .picado { --flag-w: min(58px, 4vw); } /* 4vw keeps the flags apart on narrow desktops */
  .flag.mid { display: none; }
}
@media (min-width: 1024px) and (max-width: 1279px) { .flag.near { display: none; } }
@media (max-width: 1023px) {
  .picado { --sag: 12px; --flag-w: 40px; position: relative; top: auto; margin-top: var(--s-2); }
  .flag:nth-of-type(even) { display: none; }
}
@media (max-width: 767px) { .picado { --sag: 10px; --flag-w: 30px; } }
.picado svg { position: absolute; left: 0; top: 0; width: 100%; height: var(--sag); overflow: visible; }
.picado path { fill: none; stroke: var(--fg); stroke-width: 1.5; }
.flag {
  position: absolute; left: calc(var(--t) * 100%); top: calc(var(--sag) * 4 * var(--t) * (1 - var(--t)));
  width: var(--flag-w); aspect-ratio: 100 / 128;
  translate: -50% -4px; rotate: var(--r, 0deg); transform-origin: 50% 0;
  background: var(--c, var(--flag-1));
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
}
.flag:nth-of-type(3n + 2) { --c: var(--flag-2); }
.flag:nth-of-type(3n + 3) { --c: var(--flag-3); }
.flag.flower { --m: url(assets/quince/flag-flower.svg); }
.flag.star { --m: url(assets/quince/flag-star.svg); }
.flag.diamond { --m: url(assets/quince/flag-diamond.svg); }
.flag.xv { --m: url(assets/quince/flag-xv.svg); }

/* ---------- hero: the invitation, centred, the name set as the krew spells it ----------
   "Please join us for a Quinceañera, in honor of the WILD SEVENS", the date and the place, then
   the plain sentence and the deal. The film waits in the Tickets block below, for the promo. */

.hero {
  position: relative; overflow: clip;
  min-height: calc(100svh - var(--bar-h) - var(--s-6) - 54px - var(--picado-h));
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: center;
  padding: var(--s-6) var(--gutter); text-align: center;
}
/* the light behind the name, as on the flyer, under the speckle */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(ellipse 46% 44% at 50% 50%, #FBE3BE 0%, rgb(251 227 190 / 0) 100%); /* taste-skill-ignore: the flyer's light, taste-overrides #43 */
}
.hero > :not(.floral, .spark) { position: relative; z-index: 1; }

.invite { display: grid; justify-items: center; color: var(--accent); }
.invite .arc { display: block; width: min(560px, 58svh); height: auto; margin-bottom: -18px; overflow: visible; }
.invite .arc text { font: 400 54px var(--font-script); fill: currentColor; }
.invite .black { font-size: min(116px, 12.5svh); line-height: 0.95; }
.hero .ribbon { margin-top: var(--s-3); }

/* the name: Archivo at its normal width, as on the flyer. Each word sits in its own mask for the
   entrance; the mask is padded so the caps never touch its edge */
.name {
  margin-top: var(--s-3);
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(76px, min(11.6vw, 18.5svh), 176px); line-height: 0.82; letter-spacing: -0.03em; text-transform: uppercase;
}
.name .mask { display: inline-block; vertical-align: top; overflow: clip; padding: 0.08em 0.03em 0.04em; margin: -0.08em -0.03em -0.04em; }
.name .mask > span { display: block; }

.hero .when { display: grid; justify-items: center; margin-top: var(--s-4); color: var(--accent); }
.hero .when .black { font-size: min(52px, 5.8svh); line-height: 1; }
.hero .when .script { font-size: min(44px, 4.9svh); line-height: 1.2; }

/* the plain sentence, one line on a wide screen */
.hero-lead { margin-top: var(--s-6); max-width: 44rem; font-size: var(--t-md); line-height: 1.3; letter-spacing: -0.02em; text-wrap: balance; }

/* the deal, in the invitation's own words: reply by the day the price goes up. The date and the
   saving come from event.js, so the line moves with the ladder; in the door state it is gone. */
.rsvp { display: grid; justify-items: center; gap: var(--s-3); margin-top: var(--s-3); }
.rsvp-by { font: 400 min(44px, 4.9svh)/1.15 var(--font-script); color: var(--accent); }
.rsvp-by .keep { white-space: nowrap; }
.rsvp .actions { justify-content: center; gap: var(--s-3) var(--s-6); }
.rsvp-note { max-width: 25ch; text-align: left; font-size: var(--t-base); line-height: 1.35; text-wrap: balance; }

/* the ribbon: a band with forked tails folded behind it */
.ribbon {
  position: relative; isolation: isolate; display: inline-block;
  margin: 0 36px 14px; padding: 7px 28px 9px;
  background: var(--fg); color: var(--on-accent);
  font: 400 var(--t-lg)/1 var(--font-script); letter-spacing: 0; white-space: nowrap;
}
.ribbon::before, .ribbon::after {
  content: ""; position: absolute; z-index: -1; top: 14px; bottom: -14px; width: 50px;
  background: var(--accent);
}
.ribbon::before { left: -36px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 28% 50%); }
.ribbon::after { right: -36px; clip-path: polygon(0 0, 100% 0, 72% 50%, 100% 100%, 0 100%); }

/* sparkles: four-point stars, placed by hand around the name */
.spark {
  position: absolute; z-index: 1; left: var(--x); top: var(--y); width: var(--z); height: var(--z);
  translate: -50% -50%; fill: var(--c, var(--accent)); pointer-events: none;
}
.spark.alt { --c: #FFF3DD; }

/* folk flowers in the two bottom corners, in a deeper marigold */
.floral {
  position: absolute; z-index: 0; bottom: 0; width: clamp(180px, 26vw, 380px); aspect-ratio: 1;
  background: rgb(176 92 20 / 0.24); pointer-events: none;
  -webkit-mask: url(assets/quince/floral.svg) center / contain no-repeat; mask: url(assets/quince/floral.svg) center / contain no-repeat;
}
.floral.l { left: -2vw; rotate: 18deg; }
.floral.r { right: -2vw; rotate: -18deg; scale: -1 1; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* short laptop screens: the big type scales with the screen's height (the svh sizes above) and
   the gaps close up, so the button and its note stay on the first screen down to about 700px */
@media (min-width: 1024px) and (max-height: 820px) {
  .hero { padding-block: var(--s-3); }
  .hero .ribbon { margin-top: var(--s-1); }
  .name { margin-top: var(--s-1); }
  .hero .when { margin-top: var(--s-2); }
  .hero-lead { margin-top: var(--s-3); }
  .rsvp { margin-top: var(--s-1); gap: var(--s-2); }
}
/* tablet: the name stacks on two lines so it stays the biggest thing on the screen, above
   Quinceañera; the sparkles would land on the letters of the narrower stack */
@media (min-width: 768px) and (max-width: 1023px) {
  .invite .black { font-size: var(--t-2xl); }
  .name { font-size: min(15.6vw, 124px); }
  .name .mask { display: block; }
}
@media (max-width: 1023px) { .hero .spark { display: none; } }

@media (max-width: 767px) {
  .hero { min-height: calc(100svh - var(--bar-h) - var(--s-4) - 54px - var(--picado-h)); padding: var(--s-4) var(--gutter); }
  .invite .arc { width: 300px; margin-bottom: -6px; }
  .invite .black { font-size: 56px; }
  .hero .ribbon { font-size: 22px; }
  .name { font-size: 76px; }
  .name .mask { display: block; }
  .hero .when .black { font-size: 30px; }
  .hero .when .script { font-size: 28px; }
  .hero-lead { margin-top: var(--s-4); }
  .rsvp-by { font-size: 30px; }
  .rsvp .actions { flex-direction: column; }
  .rsvp-note { max-width: 30ch; text-align: center; }
  .floral { width: 150px; }
  .hero .spark { display: none; }
}

/* ---------- the hero's entrance: the invitation arrives in four beats, settled by about 1.2s ----------
   1. the flags drop onto the string, from both ends toward the middle, and the flowers rise;
   2. "Please join us for a" is written in from the left, and Quinceañera rises under it;
   3. the ribbon unrolls from its middle, and the name rises through its masks a word at a time;
   4. the date, the sentence and the deal arrive together, and the sparkles open.
   Once per load, expo-out with no overshoot (design.md §6), gated on .js so nothing stays hidden
   without script. The nav and the sponsor bar never move. Reduced motion: the words fade in at the
   UI speed and the ornaments are simply there. */
:root { --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1); } /* wipes only (taste-overrides #18) */

@keyframes flag-drop { from { opacity: 0; translate: -50% -70%; rotate: calc(var(--r, 0deg) + var(--swing, 9deg)); } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes write { from { clip-path: inset(-40% 104% -40% -4%); } to { clip-path: inset(-40% -4% -40% -4%); } }
@keyframes unroll { from { clip-path: inset(-80% 50% -80% 50%); } to { clip-path: inset(-80% -48px -80% -48px); } }
@keyframes twinkle { from { opacity: 0; transform: scale(0.2) rotate(-60deg); } }

@media (prefers-reduced-motion: no-preference) {
  .js .flag { animation: flag-drop 900ms var(--ease-out) both; animation-delay: calc(min(var(--t), 1 - var(--t)) * 600ms); }
  .js .flag:nth-of-type(odd) { --swing: -9deg; }
  .js .floral { animation: hero-rise var(--m-hero) var(--ease-out) both; }

  .js .invite .arc { animation: write 700ms var(--ease-in-out) 80ms both; }
  .js .invite .black { animation: hero-rise 600ms var(--ease-out) 180ms both; }

  .js .hero .ribbon { animation: unroll 520ms var(--ease-in-out) 300ms both; }
  .js .name .mask > span { animation: lift 760ms var(--ease-out) var(--d) both; }

  .js :is(.hero .when, .hero-lead, .rsvp) { animation: hero-rise 500ms var(--ease-out) 520ms both; }
  .js .hero .spark { animation: twinkle 600ms var(--ease-out) 560ms both; }
  .js .hero .spark.alt { animation-delay: 640ms; }
}
@media (prefers-reduced-motion: reduce) {
  .js :is(.invite, .hero .ribbon, .name, .hero .when, .hero-lead, .rsvp) { animation: fade var(--m-ui) linear both; }
}

/* ---------- Tickets: the page's one full-bleed maroon block, set like the krew's event banner ----------
   Block D's three zones: words at the left, the tall picture in the middle, the facts at the right.
   On the maroon field the accent role falls to the cream (taste-overrides #24). */

.tickets {
  --mark-line: var(--fg); /* the varsity mark's inner line, maroon-black (#2A1215) on the maroon field */
  min-height: 100svh; display: grid; column-gap: var(--s-6);
  /* the facts zone is 20%, or the ladder's own width where 20% is narrower (laptops), so no
     ladder row ever wraps; the picture gives up the difference */
  grid-template-columns: minmax(0, 35%) minmax(0, 1fr) minmax(min-content, 20%);
  grid-template-rows: auto 1fr auto;
  padding: var(--s-24) var(--gutter) var(--s-8);
  background: var(--accent); color: var(--on-accent);
  /* its own top padding already clears the pinned nav, so a jump here lands flush (cancels the
     scroll-padding-top set for the nav with the nav's styles above) */
  scroll-margin-top: calc(-1 * (var(--s-6) + 54px + var(--s-2)));
}
@media (max-width: 767px) { .tickets { scroll-margin-top: calc(-1 * (var(--s-4) + 54px + var(--s-2))); } }
.tickets .label { color: var(--on-accent); }

/* the heading carries the price as an object in the line: a cream block one line tall */
.tickets .h2 { grid-column: 1; grid-row: 1; font-size: var(--t-2xl); line-height: 0.85; letter-spacing: -0.04em; }
.tickets .price {
  display: inline-block; padding: 0 0.15em; line-height: 1;
  background: var(--on-accent); color: var(--accent);
}

.tickets .when { grid-column: 3; grid-row: 1; font-size: var(--t-lg); font-weight: var(--w-strong); line-height: 1.05; letter-spacing: -0.025em; }
.tickets .when span { display: block; }

/* the court film, moved down from the hero for the promo. It is cut portrait (720 × 960), so its
   slot stays portrait at every width and whole dancers stay in frame */
.tickets .photo { grid-column: 2; grid-row: 1 / 4; min-height: 520px; }
.tickets .photo video { object-position: 50% 65%; }

.tickets-foot { grid-column: 1; grid-row: 3; align-self: end; }
.tickets-foot .lead { max-width: 36ch; }
.tickets .actions { margin-top: var(--s-6); }
.tickets .button { background: var(--on-accent); color: var(--accent); }
.tickets .button:hover { background: var(--fg); color: var(--on-accent); }
.tickets .link:hover { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.tickets :focus-visible { outline-color: var(--on-accent); }

/* the ladder: the page's live thing. Today's step carries the pulsing dot; past steps are struck through. */
.ladder-zone { grid-column: 3; grid-row: 3; align-self: end; display: grid; justify-items: start; gap: var(--s-6); }
.ladder { display: grid; gap: var(--s-2); }
.ladder li { display: grid; grid-template-columns: 8px 4ch auto; gap: var(--s-3); align-items: baseline; white-space: nowrap; }
.ladder .dot { background: var(--on-accent); align-self: center; }
.ladder li:not([aria-current]) .dot { visibility: hidden; }
.ladder li.is-past { opacity: 0.75; }
.ladder li.is-past .label { text-decoration: line-through; }
.countdown { font-size: var(--t-base); font-weight: var(--w-strong); line-height: 1.3; }

/* tablet: the film at the left in a 3:4 slot, the words and the ladder beside it */
@media (max-width: 1023px) {
  .tickets { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; min-height: 0; row-gap: var(--s-8); }
  .tickets .h2 { grid-column: 1; grid-row: 1; }
  .tickets .when { grid-column: 2; grid-row: 1; }
  .tickets .photo { grid-column: 1; grid-row: 2 / 4; min-height: 0; aspect-ratio: 3 / 4; }
  .tickets-foot { grid-column: 2; grid-row: 2; align-self: start; }
  .ladder-zone { grid-column: 2; grid-row: 3; }
}
@media (max-width: 767px) {
  .tickets { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; padding-bottom: var(--s-16); }
  .tickets .when { grid-column: 1; grid-row: 2; font-size: var(--t-md); line-height: 1.3; }
  .tickets .when span { display: inline; }
  .tickets .photo { grid-column: 1; grid-row: 3; }
  .tickets-foot { grid-column: 1; grid-row: 4; }
  .ladder-zone { grid-column: 1; grid-row: 5; }
}

/* ---------- Weekend: the pass printed as a ticket slip, beside its heading ----------
   The section stays on the cream page and the slip is its one dark object: maroon-black
   with cream type, straight along the top, torn in a zigzag along the bottom
   (taste-overrides #25). Square corners, no shadow, no tilt. */

.weekend { align-items: start; }
.weekend-text { grid-column: 1 / 6; }
.weekend .lead { max-width: 22ch; margin-top: var(--s-8); text-wrap: balance; } /* about 30 characters a line */

/* the slip ends on the page's right margin, the edge the hero facts, the ladder, the FAQ tiles,
   the krew's tag and the footer's oval all share */
.slip-wrap { grid-column: 7 / 13; justify-self: end; width: min(100%, 480px); }
.slip {
  --tooth: 10px; --pad: var(--s-8);
  padding: var(--pad) var(--pad) calc(var(--s-6) + var(--tooth));
  background: var(--bg); color: var(--fg);
  font-size: var(--t-base); line-height: 1.4; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  /* 24 teeth along the bottom edge; the top edge stays straight */
  clip-path: polygon(
    0 0, 100% 0, 100% calc(100% - var(--tooth)), 97.917% 100%,
    95.833% calc(100% - var(--tooth)), 93.75% 100%, 91.667% calc(100% - var(--tooth)), 89.583% 100%,
    87.5% calc(100% - var(--tooth)), 85.417% 100%, 83.333% calc(100% - var(--tooth)), 81.25% 100%,
    79.167% calc(100% - var(--tooth)), 77.083% 100%, 75% calc(100% - var(--tooth)), 72.917% 100%,
    70.833% calc(100% - var(--tooth)), 68.75% 100%, 66.667% calc(100% - var(--tooth)), 64.583% 100%,
    62.5% calc(100% - var(--tooth)), 60.417% 100%, 58.333% calc(100% - var(--tooth)), 56.25% 100%,
    54.167% calc(100% - var(--tooth)), 52.083% 100%, 50% calc(100% - var(--tooth)), 47.917% 100%,
    45.833% calc(100% - var(--tooth)), 43.75% 100%, 41.667% calc(100% - var(--tooth)), 39.583% 100%,
    37.5% calc(100% - var(--tooth)), 35.417% 100%, 33.333% calc(100% - var(--tooth)), 31.25% 100%,
    29.167% calc(100% - var(--tooth)), 27.083% 100%, 25% calc(100% - var(--tooth)), 22.917% 100%,
    20.833% calc(100% - var(--tooth)), 18.75% 100%, 16.667% calc(100% - var(--tooth)), 14.583% 100%,
    12.5% calc(100% - var(--tooth)), 10.417% 100%, 8.333% calc(100% - var(--tooth)), 6.25% 100%,
    4.167% calc(100% - var(--tooth)), 2.083% 100%, 0 calc(100% - var(--tooth))
  );
}

/* the head: the varsity stamp, the dates and place in the corner beside it */
.slip-head { display: flex; justify-content: space-between; align-items: start; gap: var(--s-6); margin-bottom: var(--s-8); }
.slip-head .label { text-align: right; line-height: 1.5; }

/* a day heading, then its rows */
.slip-day { font-size: var(--t-base); font-weight: var(--w-strong); line-height: 1.4; letter-spacing: -0.01em; }
.slip-rows + .slip-day { margin-top: var(--s-6); }
.slip-rows { display: grid; gap: var(--s-1); margin-top: var(--s-1); }

/* a row: what happens, a leader of round dots, the price (a link to buy that ticket) */
.slip-row { display: flex; align-items: baseline; align-items: last baseline; gap: var(--s-2); }
.slip-what { min-width: 0; }
.slip-dots {
  flex: 1 0 var(--s-6); height: 4px; background: currentColor; opacity: 0.45;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 4'%3E%3Ccircle cx='4' cy='2' r='2'/%3E%3C/svg%3E") left center / 8px 4px space no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 4'%3E%3Ccircle cx='4' cy='2' r='2'/%3E%3C/svg%3E") left center / 8px 4px space no-repeat;
}
.slip-price {
  position: relative; flex: none;
  margin-right: calc(-1 * var(--s-2)); padding: var(--s-1) var(--s-2); border-radius: var(--r-pill);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: background-color var(--m-ui) var(--ease-ui), color var(--m-ui) var(--ease-ui);
}
.slip-price:hover, .slip-price:focus-visible { background: var(--fg); color: var(--bg); text-decoration-color: transparent; }
.slip-price:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.slip-price:active { opacity: 0.8; }

/* the last row, inverted: a cream bar set inside the slip like the jacket's patch, so the
   slip's dark edge runs round it and it never melts into the cream page */
.slip-total {
  margin: var(--s-8) calc(-1 * var(--s-3)) 0; padding: var(--s-2) var(--s-3);
  background: var(--fg); color: var(--bg); font-weight: var(--w-strong);
}
.slip-total .slip-price:hover, .slip-total .slip-price:focus-visible { background: var(--bg); color: var(--fg); }
.slip-total .slip-price:focus-visible { outline-color: var(--bg); }

/* tablet: the heading across the top, the paragraph beside the slip */
@media (max-width: 1023px) {
  .weekend { grid-template-columns: minmax(0, 1fr) min(440px, 62%); row-gap: var(--s-8); }
  .weekend-text { display: contents; }
  .weekend .h2 { grid-column: 1 / -1; }
  .weekend .lead { grid-column: 1; margin-top: 0; font-size: var(--t-base); line-height: 1.4; letter-spacing: -0.01em; }
  .slip-wrap { grid-column: 2; width: 100%; }
}

/* phone: the heading and paragraph, then the slip at full width inside the gutters */
@media (max-width: 767px) {
  .weekend { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-6); }
  .weekend .lead { font-size: var(--t-md); line-height: 1.3; letter-spacing: -0.02em; }
  .slip-wrap { grid-column: 1; margin-top: var(--s-4); }
  .slip { --pad: var(--s-6); }
}

/* ---------- Line-up: one stage, three battles ----------
   The tabs switch battles. Each battle's three judges stand cut out on the stage's floor, the middle
   one in front, black and white with a flat maroon offset behind (a print layer out of register, as on
   the krew's flyers; taste-overrides #58). The chosen judge keeps the maroon and their name is
   underlined; the others step back to a warm grey offset. Their bio sits beside the stage (below it
   on tablets and phones). Hosts and teachers close the section as a table at one size (#29).
   Motion: when the stage first comes on screen, and whenever a tab is chosen, the judges rise from
   behind the floor one after another (400ms, expo-out, no overshoot), then their offsets slide into
   place and the names appear. The outgoing battle sinks at UI speed. Without script, every battle and
   bio is shown in turn and nothing moves. */

.lineup { display: grid; row-gap: var(--s-24); }
.lineup-head { row-gap: var(--s-6); align-items: end; }
.lineup-head .h2 { grid-column: 1 / 8; }
.lineup-head .lead { grid-column: 1 / 6; max-width: 34ch; }
.lineup-head .lead a { text-underline-offset: 3px; transition: color var(--m-ui) var(--ease-ui); }
.lineup-head .lead a:hover { color: var(--accent); }
.bout-title { font-size: var(--t-lg); font-weight: var(--w-strong); line-height: 1; letter-spacing: -0.03em; }

/* the battle tabs: the chosen one in full ink over a maroon bar that draws in */
.stage-wrap { row-gap: var(--s-8); }
.stage-tabs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-8); }
.lineup:not(.is-live) .stage-tabs { display: none; }
.stage-tab {
  position: relative; padding: 0 0 var(--s-2); border: 0; background: none; cursor: pointer;
  color: var(--muted); font: var(--w-strong) var(--t-md)/1.1 var(--font-sans); letter-spacing: -0.02em; text-align: left;
  transition: color var(--m-ui) var(--ease-ui);
}
.stage-tab-kind { font-weight: var(--w-regular); }
.stage-tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--m-reveal) var(--ease-out);
}
.stage-tab:hover, .stage-tab[aria-selected="true"] { color: var(--fg); }
.stage-tab[aria-selected="true"]::after { transform: none; }

/* phone: one button for the battles. It shows the battle on stage, three dots for where it sits in the
   run, and steps to the next one on every tap, looping; the judges rise again each time (site.js) */
.stage-cycle { display: none; }
@media (max-width: 767px) {
  .lineup.is-live .stage-tabs { display: none; }
  .lineup.is-live .stage-cycle {
    grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "now go" "dots go";
    align-items: center; gap: var(--s-2) var(--s-4); width: 100%;
    padding: var(--s-4) var(--s-4) var(--s-4) var(--s-6); border: 0; border-radius: var(--r-pill);
    background: var(--accent); color: var(--on-accent); text-align: left; cursor: pointer;
    font: inherit; -webkit-tap-highlight-color: transparent;
    transition: transform var(--m-ui) var(--ease-ui), background-color var(--m-ui) var(--ease-ui);
  }
  .stage-cycle:active { transform: scale(0.98); }
  .stage-cycle:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
  .stage-cycle-now { grid-area: now; display: grid; gap: 2px; font: var(--w-strong) var(--t-md)/1.1 var(--font-sans); letter-spacing: -0.02em; }
  .stage-cycle-kind { font: var(--w-regular) var(--t-xs)/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: 0; opacity: 0.75; } /* taste-skill-ignore: design.md mono labels */
  .stage-cycle.is-swapping .stage-cycle-now { animation: cycle-in var(--m-reveal) var(--ease-out); }
  .stage-cycle-dots { grid-area: dots; display: flex; gap: 6px; }
  .stage-cycle-dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.35; transition: opacity var(--m-ui) var(--ease-ui), width var(--m-ui) var(--ease-ui); }
  .stage-cycle-dots i.is-on { width: 18px; border-radius: 3px; opacity: 1; }
  .stage-cycle-go { grid-area: go; display: flex; align-items: center; gap: var(--s-2); }
  .stage-cycle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .stage-cycle-arrow {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    background: var(--on-accent); color: var(--accent);
    rotate: calc(var(--turns, 0) * 360deg); transition: rotate var(--m-reveal) var(--ease-out);
  }
}
@keyframes cycle-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .stage-cycle-arrow { transition: none; }
  .stage-cycle.is-swapping .stage-cycle-now { animation: none; }
}

/* a battle: the stage (columns 1 to 8), its chosen judge's bio (10 to 12), the music under the floor */
.stage-panel { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: var(--s-6); }
.lineup:not(.is-live) .stage-panel + .stage-panel { margin-top: var(--s-16); }
.stage-title { grid-column: 1 / -1; font-size: var(--t-lg); font-weight: var(--w-strong); line-height: 1; letter-spacing: -0.03em; }
.lineup.is-live .stage-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.stage { --off: 10px; --room: 0px; grid-column: 1 / 9; position: relative; overflow: hidden; padding-top: var(--room); border-bottom: 2px solid var(--fg); }
.stage-foot { grid-column: 1 / 9; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-2) var(--s-6); }
.stage-music { max-width: 44ch; }
.stage-music a { text-underline-offset: 3px; transition: color var(--m-ui) var(--ease-ui); }
.stage-music a:hover { color: var(--accent); }

/* the judges. Each stands at --x, --h tall; the name sits above the head at --head; --z stacks them */
/* the floor is a 3:2 box; --room is headroom over it, so the tallest judge's name and stroke are never cut (phones) */
.trio { position: relative; aspect-ratio: 3 / 2; margin: 0; padding: 0; list-style: none; }
.judge { position: absolute; left: var(--x); bottom: 0; height: var(--h); }
.judge-btn {
  position: relative; display: block; height: 100%; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; cursor: pointer; pointer-events: none; /* only the name and the hit zone take the pointer */
}
.judge-fig { position: relative; z-index: var(--z); display: block; height: 100%; transform-origin: 50% 100%; }
.judge-fig img { position: relative; display: block; width: auto; height: 100%; max-width: none; filter: contrast(1.08); transition: filter var(--m-ui) var(--ease-ui); }
.judge-offset {
  position: absolute; inset: 0; background: var(--accent);
  -webkit-mask: var(--cut) center bottom / contain no-repeat; mask: var(--cut) center bottom / contain no-repeat;
  translate: var(--off) calc(var(--off) * -0.6);
  transition: background-color var(--m-ui) var(--ease-ui);
}
.judge-hit { position: absolute; z-index: var(--z); top: 6%; bottom: 0; left: 20%; right: 20%; pointer-events: auto; }
.judge-name {
  position: absolute; z-index: 5; bottom: calc(100% + var(--s-4)); left: var(--head); translate: calc(-50% + var(--nudge, 0px)) 0;
  white-space: nowrap; pointer-events: auto;
  font: var(--w-strong) var(--t-base)/1.15 var(--font-sans); letter-spacing: -0.01em; color: var(--muted);
  transition: color var(--m-ui) var(--ease-ui);
}
/* the marker: a brush stroke swiped in behind the name, line by line (clone), instead of an underline */
.judge-mark {
  --brush: url("data:image/svg+xml;utf8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20200%2040'%20preserveAspectRatio='none'%3E%3Cpath%20fill='%237A1F2B'%20fill-opacity='1'%20d='M6%209%20C30%204%2070%206%20110%205%20C140%204%20170%203%20194%206%20L191%2011%20L197%2015%20L193%2021%20L198%2027%20L192%2032%20C160%2036%20120%2034%2080%2036%20C55%2037%2030%2035%208%2037%20L11%2031%20L3%2026%20L9%2020%20L2%2014%20Z'/%3E%3C/svg%3E");
  --brush-soft: url("data:image/svg+xml;utf8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20200%2040'%20preserveAspectRatio='none'%3E%3Cpath%20fill='%237A1F2B'%20fill-opacity='0.18'%20d='M6%209%20C30%204%2070%206%20110%205%20C140%204%20170%203%20194%206%20L191%2011%20L197%2015%20L193%2021%20L198%2027%20L192%2032%20C160%2036%20120%2034%2080%2036%20C55%2037%2030%2035%208%2037%20L11%2031%20L3%2026%20L9%2020%20L2%2014%20Z'/%3E%3C/svg%3E");
  padding: 0.1em 0.3em; margin: 0 -0.3em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: var(--brush-soft) left center / 0% 100% no-repeat;
  transition: background-size var(--m-reveal) var(--ease-out), color var(--m-ui) var(--ease-ui);
}
.judge-btn:hover .judge-name { color: var(--fg); }
.judge-btn:hover .judge-mark { background-size: 100% 100%; }
.judge.is-on .judge-name { color: var(--on-accent); }
.judge.is-on .judge-mark { background-image: var(--brush); background-size: 100% 100%; }
.judge:not(.is-on) .judge-offset { background: color-mix(in srgb, var(--fg) 16%, var(--bg)); }
.judge:not(.is-on) .judge-fig img { filter: contrast(0.94) brightness(1.04); }
.judge-btn:focus-visible { outline: none; }
.judge-btn:focus-visible .judge-name { outline: 2px solid var(--accent); outline-offset: 4px; }

/* the bios: stacked in one cell, so the column never changes height as judges are chosen */
.stage-bios { grid-column: 10 / 13; align-self: center; display: grid; row-gap: var(--s-16); }
.judge-bio { display: grid; gap: var(--s-2); align-content: start; max-width: 40ch; }
.judge-bio-name { margin: 0; font-size: var(--t-lg); font-weight: var(--w-strong); line-height: 1.05; letter-spacing: -0.03em; }
.judge-bio-name a { text-decoration: underline 1px; text-underline-offset: 4px; text-decoration-color: transparent; transition: text-decoration-color var(--m-ui) var(--ease-ui), color var(--m-ui) var(--ease-ui); }
.judge-bio-name a:hover, .judge-bio-name a:focus-visible { color: var(--accent); text-decoration-color: currentColor; }
.judge-bio-handle { font-size: var(--t-sm); color: var(--muted); }
.judge-bio > p:last-child { margin-top: var(--s-2); line-height: 1.5; }
.judge-bio cite { font-style: italic; }
.judge-bio-soon { color: var(--muted); }
.lineup.is-live .judge-bio { grid-area: 1 / 1; transition: opacity var(--m-ui) var(--ease-ui), translate var(--m-ui) var(--ease-ui), visibility 0s; }
.lineup.is-live .judge-bio:not(.is-on) { opacity: 0; translate: 0 8px; visibility: hidden; transition: opacity var(--m-ui) var(--ease-ui), translate var(--m-ui) var(--ease-ui), visibility 0s linear var(--m-ui); }

/* the entrance, replayed on every tab: rise from behind the floor, then the offset and the name */
.lineup.is-live .judge-fig { transition: transform var(--m-reveal) var(--ease-out) calc(var(--i) * 90ms), opacity var(--m-reveal) var(--ease-out) calc(var(--i) * 90ms); }
.lineup.is-live .judge-offset { transition: background-color var(--m-ui) var(--ease-ui), translate var(--m-reveal) var(--ease-out) calc(var(--i) * 90ms + 160ms); }
.lineup.is-live .judge-name { transition: color var(--m-ui) var(--ease-ui), opacity var(--m-reveal) var(--ease-out) calc(var(--i) * 90ms + 200ms); }
.lineup.is-live .stage-panel:not(.is-up) .judge-fig { transform: translateY(24%) scale(0.96); opacity: 0; }
.lineup.is-live .stage-panel:not(.is-up) .judge-offset { translate: 0 0; }
.lineup.is-live .stage-panel:not(.is-up) .judge-name { opacity: 0; }
.lineup.is-live .stage-panel.is-leaving :is(.judge-fig, .judge-offset, .judge-name) { transition-duration: var(--m-ui); transition-delay: 0s; transition-timing-function: var(--ease-ui); }
@media (prefers-reduced-motion: reduce) {
  .lineup.is-live .stage-panel:not(.is-up) .judge-fig { transform: none; }
  .lineup.is-live .stage-panel:not(.is-up) .judge-offset { translate: var(--off) calc(var(--off) * -0.6); }
  .lineup.is-live :is(.judge-fig, .judge-offset, .judge-name) { transition-duration: var(--m-ui); transition-delay: 0s; }
  .stage-tab::after { transition: none; }
  .judge-mark { transition: none; }
}

/* the table: hosts and teachers, one type size, a real table's 1px rows */
.lineup-more { row-gap: var(--s-8); }
.lineup-more .bout-title { grid-column: 1 / 5; }
.roster { grid-column: 5 / 13; width: 100%; border-collapse: collapse; font-size: var(--t-md); letter-spacing: -0.02em; }
.roster tr { border-top: var(--border); }
.roster tr:last-child { border-bottom: var(--border); }
.roster :is(th, td) { padding: var(--s-4) 0; text-align: left; font-weight: var(--w-regular); vertical-align: baseline; }
.roster th { font-weight: var(--w-strong); width: 36%; }
.roster td:last-child { text-align: right; }
.roster .is-soon { color: var(--muted); }

/* tablet: the battle's music and days first, then the stage full width, then the bio */
@media (max-width: 1023px) {
  .lineup-head .h2 { grid-column: 1 / -1; }
  .lineup-head .lead { grid-column: 1 / 8; }
  .stage, .stage-foot, .stage-bios { grid-column: 1 / -1; }
  .stage-foot { order: -1; }
  .stage-bios { align-self: start; }
  .judge-bio { max-width: 60ch; }
  .lineup-more .bout-title, .roster { grid-column: 1 / -1; }
}

/* phone: the names wrap to two lines over the heads */
@media (max-width: 767px) {
  .lineup-head .lead { grid-column: 1 / -1; }
  .stage-tabs { gap: var(--s-3) var(--s-6); }
  .stage-tab { font-size: var(--t-base); }
  .stage { --off: 6px; --room: var(--s-4); }
  .judge-name { font-size: var(--t-sm); line-height: 1.35; white-space: normal; width: max-content; max-width: 6.5em; text-align: center; bottom: calc(100% + var(--s-3)); }
  .roster { font-size: var(--t-base); }
  .roster td:last-child { white-space: nowrap; }
  .roster th { width: auto; padding-right: var(--s-3); }
}

/* ---------- Fifteen years: the page's one quiet screen. One row of small frames at mid-height,
   running off both edges, scrolled sideways (drag, trackpad, touch, keys). Nothing else moves. ---------- */

.years {
  --frame-w: 11vw; --frame-gap: 5vw; --frame-h: calc(var(--frame-w) * 1.5);
  /* the title sits one step above the first frame at every width. Lowered into the frame, its
     letters straddled the photograph's top edge and read as a collision (critique round 1). */
  --pad-top: var(--s-16); --title-gap: var(--s-4);
  min-height: 100svh; display: grid; align-content: center;
  overflow: clip; /* the row scrolls inside itself; the page never moves sideways */
}

.years-row {
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scrollbar-width: none; scroll-padding-inline: var(--gutter);
}
.years-row::-webkit-scrollbar { display: none; }
.years-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.years-track {
  position: relative; display: flex; align-items: center; gap: var(--frame-gap);
  width: max-content; padding: var(--pad-top) var(--gutter);
}

.years-title {
  position: absolute; z-index: 1; left: var(--gutter);
  bottom: calc(100% - var(--pad-top) + var(--title-gap));
  font-size: var(--t-md); font-weight: var(--w-strong); line-height: 1.3; letter-spacing: -0.02em;
  white-space: nowrap;
}

.years-frames { display: flex; gap: var(--frame-gap); -webkit-user-select: none; user-select: none; }
.years-frames li { flex: none; width: var(--frame-w); }
.years-frames .photo { aspect-ratio: 2 / 3; transition: transform var(--m-ui) var(--ease-ui); }
.years-frames img { -webkit-user-drag: none; }
.years .mark { flex: none; height: var(--frame-h); width: auto; }

/* hover: the frame grows from its centre; nothing else moves */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .years-frames .photo:hover { transform: scale(1.1); }
}

/* mouse drag (site.js) */
@media (hover: hover) and (pointer: fine) {
  .js .years-row { cursor: grab; }
}
.years-row.is-dragging { cursor: grabbing; }
.years-row.is-dragging .years-track { -webkit-user-select: none; user-select: none; }
.years-row.is-dragging .photo { pointer-events: none; }

/* tablet: wider frames */
@media (max-width: 1023px) {
  .years { --frame-w: 20vw; }
}

/* phone: frames a third of the width, two and a half on screen, the row at 45% of an 80svh
   section, snapping by touch */
@media (max-width: 767px) {
  .years {
    --frame-w: 34vw;
    min-height: 80svh; align-content: start;
    grid-template-rows: max(0px, calc(36svh - var(--pad-top) - var(--frame-h) / 2)) auto;
  }
  .years-row { grid-row: 2; scroll-snap-type: x mandatory; }
  .years-track { padding-bottom: var(--s-6); }
  .years-frames li { scroll-snap-align: start; }
  .years .mark { scroll-snap-align: end; }
  .years-row.is-dragging { scroll-snap-type: none; }
}
@media (pointer: coarse) {
  .years-row { scroll-snap-type: x mandatory; }
  .years-frames li { scroll-snap-align: start; }
  .years .mark { scroll-snap-align: end; }
}

/* ---------- Giveaway: a maroon-black band that is one link. The sentence and the arrow along the
   top, the heading on the bottom edge, the raised W hand closing the right half. On hover and focus
   the field and the type swap colours. ---------- */

.giveaway { background: var(--bg); color: var(--fg); }

.giveaway-link {
  position: relative; display: grid; min-height: 60svh;
  grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-6);
  grid-template-rows: auto 1fr auto;
  padding: var(--s-8) var(--gutter) 0;
  background: var(--bg); color: var(--fg); text-decoration: none;
  transition: background-color var(--m-ui) var(--ease-ui), color var(--m-ui) var(--ease-ui);
}

.giveaway-how {
  grid-column: 1 / 6; grid-row: 1; max-width: 34ch;
  font-size: var(--t-md); line-height: 1.3; letter-spacing: -0.02em; text-wrap: pretty;
}

.giveaway-arrow { grid-column: 12; grid-row: 1; justify-self: end; align-self: start; }
.giveaway-arrow svg { display: block; width: 48px; height: 48px; transition: transform var(--m-ui) var(--ease-ui); }

.giveaway-title {
  grid-column: 1 / 8; grid-row: 3; align-self: end; padding: var(--s-16) 0 var(--s-6);
  font-size: var(--t-2xl); font-weight: var(--w-strong); line-height: 0.85; letter-spacing: -0.04em;
  text-wrap: balance;
}
/* room for the descender of "g" inside the entrance mask */
.giveaway-title .mask { padding-bottom: 0.14em; margin-bottom: -0.14em; }

.giveaway-photo { grid-column: 8 / 12; grid-row: 1 / 4; min-height: 0; }
.giveaway-photo img { object-position: 50% 30%; }

/* the swap: cream field, maroon-black type */
.giveaway-link:is(:hover, :focus-visible) { background: var(--fg); color: var(--bg); }
/* the focus ring is drawn on a layer above the picture, so it shows along the bottom edge too */
.giveaway-link::after {
  content: ""; position: absolute; inset: var(--s-2); z-index: 1; pointer-events: none;
  outline: 2px solid var(--bg); opacity: 0;
}
.giveaway-link:focus-visible { outline: 2px solid transparent; }
.giveaway-link:focus-visible::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .giveaway-link:is(:hover, :focus-visible) .giveaway-arrow svg { transform: translate(4px, -4px); }
}

/* tablet: the hand takes one more column so it reads as a picture, not a sliver */
@media (min-width: 768px) and (max-width: 1023px) {
  .giveaway-how, .giveaway-title { grid-column: 1 / 7; }
  .giveaway-photo { grid-column: 7 / 12; }
}

/* phone: the sentence across the top beside the arrow, then the heading at the left and the hand
   in a tall slot at the right, both standing on the bottom edge */
@media (max-width: 767px) {
  .giveaway-link {
    min-height: 46svh; padding-top: var(--s-6);
    grid-template-columns: minmax(0, 1fr) 34vw; column-gap: var(--s-4);
    grid-template-rows: auto 1fr;
  }
  .giveaway-how { grid-column: 1 / -1; grid-row: 1; max-width: none; padding-right: calc(32px + var(--s-4)); /* clear of the arrow */ }
  .giveaway-arrow { grid-column: 2; grid-row: 1; }
  .giveaway-arrow svg { width: 32px; height: 32px; }
  .giveaway-title {
    grid-column: 1; grid-row: 2; padding: var(--s-16) 0 var(--s-4);
    font-size: var(--t-xl); line-height: 0.95; letter-spacing: -0.03em;
  }
  .giveaway-photo { grid-column: 2; grid-row: 2; min-height: 200px; margin-top: var(--s-6); }
}

/* ---------- FAQ: a wide heading, the questions indented to column 5 ----------
   The indent against the heading is the composition: the left third under it stays
   empty. Rows are separated by space, not rules; the open row sits on a --surface tile. */

.faq { row-gap: var(--s-16); }
.faq .h2 { grid-column: 1 / -1; }
.faq-list { grid-column: 5 / 13; display: grid; gap: var(--s-1); }

/* each row starts 24px before the question's left edge and ends on the page's right
   margin, so the open tile frames the text with 24px on both sides */
.faq-item { margin-left: calc(-1 * var(--s-6)); padding: var(--s-4) var(--s-6); }
.faq-item[open] { background: var(--surface); padding-bottom: var(--s-6); }

.faq-item summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-6);
  font-size: var(--t-md); font-weight: var(--w-regular); line-height: 1.3; letter-spacing: -0.02em;
  list-style: none; cursor: pointer;
  transition: color var(--m-ui) var(--ease-ui);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover {
  color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.faq-item:not([open]) summary:hover .chevron { transform: translateY(2px); }

/* the chevron: two 2px strokes, turned when the row is open */
.chevron {
  flex: none; position: relative; top: 2px; width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square;
  transition: transform var(--m-ui) var(--ease-ui);
}
.faq-item[open] .chevron { transform: rotate(180deg); }

/* focus: the whole row is outlined, not just the question's text */
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: var(--s-2); }
@supports selector(:has(*)) {
  .faq-item summary:focus-visible { outline: none; }
  .faq-item:has(> summary:focus-visible) { outline: 2px solid var(--accent); outline-offset: 0; }
}

.faq-answer { max-width: 48ch; margin-top: var(--s-3); text-wrap: pretty; }
/* a closed answer is not rendered anyway; saying so keeps it out of measurements */
.faq-item:not([open]) > .faq-answer { display: none; }
.faq-answer p + p { margin-top: var(--s-3); }
.faq-item[open] .faq-answer { animation: faq-open var(--m-ui) var(--ease-ui); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.faq-link {
  font-weight: var(--w-strong); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: color var(--m-ui) var(--ease-ui);
}
.faq-link:hover { color: var(--accent); }

/* phone: the questions lose the indent; the open tile runs to both screen edges */
@media (max-width: 767px) {
  .faq { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-8); }
  .faq-list { grid-column: 1; }
  .faq-item { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
}

@media (prefers-reduced-motion: reduce) {
  .chevron { transition: none; }
  .faq-item[open] .faq-answer { animation: fade var(--m-ui) linear; }
}

/* ---------- The krew: the portrait set into the line as a drop cap, the tag at picture size ---------- */

.krew { row-gap: var(--s-8); }
.krew .h2 { grid-column: 1 / 10; }
.krew-text { grid-column: 1 / 10; }
.krew .drop { float: left; width: 2.6em; height: 3.45em; margin: 0.12em 0.4em 0 0; }
/* the portrait is cropped to the head and the W hand, so the face reads at drop-cap size */
.krew .drop img { inset: auto; left: -58%; top: -4%; width: 220%; height: auto; max-width: none; }
.krew .lead { clear: left; margin-top: var(--s-6); max-width: 52ch; }

/* right side: the handstyle tag fills the upper right, the facts close the lower right */
.krew-side {
  grid-column: 10 / -1; grid-row: 1 / 3;
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-8);
}
.krew .facts { grid-template-columns: auto 1fr; }
.krew .facts a { text-underline-offset: 2px; transition: color var(--m-ui) var(--ease-ui); }
.krew .facts a:hover { color: var(--accent); }

@media (max-width: 1023px) {
  .krew .h2, .krew-text { grid-column: 1 / -1; }
  .krew .drop { height: 3.65em; width: 2.75em; margin-top: 0.15em; } /* three lines of the 20px statement */
  .krew-side { grid-column: 1 / -1; grid-row: auto; flex-direction: row; align-items: end; }
  .krew-side .mark { width: 40%; flex: none; }
}
@media (max-width: 767px) {
  .krew .drop { height: 5em; width: 3.8em; } /* four lines on a phone */
  .krew-side { flex-direction: column; align-items: start; }
  .krew-side .mark { width: 64%; }
}

/* ---------- Footer: the name returns, pushed apart by the beach battle ---------- */

.site-footer { background: var(--bg); color: var(--fg); padding: var(--s-16) var(--gutter) var(--s-8); }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--s-6); }
.footer-cols p, .footer-cols li a { color: var(--muted); }
.footer-cols .head { color: var(--fg); }
.footer-cols .gap { margin-top: var(--s-4); }
.footer-cols a { text-decoration: none; transition: color var(--m-ui) var(--ease-ui); }
.footer-cols a:hover { color: var(--accent); }
/* the one action carried down to the close: full ink, underlined */
.footer-cols .pass { display: inline-block; margin-top: var(--s-2); color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.footer-cols .pass:hover { color: var(--muted); }

.wordmark-row {
  margin-top: var(--s-32); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-6);
  font-size: var(--t-2xl); font-weight: var(--w-strong); line-height: 0.85; letter-spacing: -0.04em;
}
.wordmark-row .photo { height: 1em; }
.wordmark-row .photo img { object-position: 50% 45%; }

/* legal row: the line, the credits, and the Wild Nation oval signing off at the right margin */
.legal {
  margin-top: var(--s-8); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--s-6);
  align-items: end; font-size: var(--t-sm); color: var(--muted);
}
.legal p { align-self: start; }
.legal .credits-list { grid-column: 2 / 4; max-width: 64ch; }
.legal .mark { grid-column: 4; justify-self: end; color: var(--fg); }
.legal a { color: inherit; text-underline-offset: 2px; transition: color var(--m-ui) var(--ease-ui); }
.legal a:hover { color: var(--fg); }

@media (max-width: 1023px) {
  .footer-cols { grid-template-columns: 1fr 1fr; row-gap: var(--s-8); }
}
@media (max-width: 767px) {
  .wordmark-row { margin-top: var(--s-16); font-size: var(--t-xl); gap: var(--s-3); }
  .legal { grid-template-columns: 1fr auto; row-gap: var(--s-4); }
  .legal p, .legal .credits-list { grid-column: 1; }
  .legal .mark { grid-column: 2; grid-row: 1 / 3; }
}

