/* ==========================================================================
   THE NIGHT GAME — reset, layout, components
   Depends on theme.css for every colour, size and font token.
   ========================================================================== */

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--chalk);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, video, svg { display: block; max-width: 100%; }
/* component display rules must never out-specify [hidden] */
[hidden] { display: none !important; }
/* grid/flex children default to min-width:auto, which lets long display type
   push a track wider than the viewport — opt every layout child out of it */
.scoreboard > *, .tickets > *, .split > *, .sponsor-grid > *,
.board-grid > *, .mail-grid > *, .foot-grid > *, .countdown > * { min-width: 0; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.08; font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  background: var(--amber); color: var(--navy-deep);
  padding: .75rem 1.25rem; font-weight: 700; border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- layout --------------------------------------------------------------- */
.wrap { width: min(100% - var(--gut) * 2, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - var(--gut) * 2, var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: var(--sec-y); position: relative; }
.section-night { background: var(--navy); color: var(--on-navy); }
.section-day { background: var(--chalk); color: var(--ink); }
.section-dirt { background: var(--chalk-dim); color: var(--ink); }

/* --- type ----------------------------------------------------------------- */
.display { font-family: var(--display); font-weight: 400; letter-spacing: .005em; }
.eyebrow {
  font-family: var(--body); font-weight: 700; font-size: var(--step--1);
  letter-spacing: .22em; text-transform: uppercase; color: var(--dirt-deep);
}
.section-night .eyebrow { color: var(--amber); }
.h-sec { font-family: var(--display); font-size: var(--step-3); margin-block: .4em .5em; }
.lede { font-size: var(--step-1); color: var(--ink-soft); }
.section-night .lede { color: var(--on-navy-soft); }

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-weight: 700; font-size: var(--step-0); line-height: 1;
  padding: 1.05rem 1.7rem; border-radius: var(--r-md);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  text-align: center;
}
.btn-primary {
  background: var(--amber); color: var(--navy-deep);
  box-shadow: 0 4px 0 var(--amber-deep), 0 10px 24px rgba(0,0,0,.22);
}
.btn-primary:hover { background: #ffc25c; transform: translateY(-2px); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--amber-deep); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.section-day .btn-ghost:hover { background: rgba(1,21,61,.06); }
.btn-lg { font-size: var(--step-1); padding: 1.3rem 2.4rem; }
.btn-block { display: flex; width: 100%; }

/* --- chalk baseline rule -------------------------------------------------- */
.chalk-rule {
  height: 3px; border: 0; width: 100%; transform-origin: left center;
  background:
    repeating-linear-gradient(90deg,
      rgba(255,253,247,.95) 0 22px,
      rgba(255,253,247,.62) 22px 30px,
      rgba(255,253,247,.88) 30px 54px,
      rgba(255,253,247,.55) 54px 61px);
  filter: blur(.2px);
  opacity: .9;
}
.section-day .chalk-rule, .section-dirt .chalk-rule {
  background:
    repeating-linear-gradient(90deg,
      rgba(1,21,61,.30) 0 22px, rgba(1,21,61,.15) 22px 30px,
      rgba(1,21,61,.26) 30px 54px, rgba(1,21,61,.12) 54px 61px);
}

/* --- pennant divider ------------------------------------------------------ */
.pennants { display: flex; width: 100%; height: 26px; overflow: hidden; }
.pennants span {
  flex: 1 0 34px; height: 100%;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.pennants span:nth-child(3n+1) { background: var(--seam); }
.pennants span:nth-child(3n+2) { background: var(--navy); }
.pennants span:nth-child(3n)   { background: var(--grass); }

/* --- header --------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 90;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-line);
}
.site-head::after {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, var(--seam) 0 33%, var(--chalk) 33% 66%, var(--grass) 66% 100%);
}
.head-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 66px; padding-block: .5rem;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand img { width: 52px; height: auto; }
.brand-text { display: none; }
.brand-text b {
  display: block; font-family: var(--display); font-size: 1.02rem;
  color: var(--chalk); letter-spacing: .01em; line-height: 1.1;
}
.brand-text span {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--amber); font-weight: 700;
}
@media (min-width: 560px) { .brand-text { display: block; } }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; border: 2px solid var(--navy-line);
  color: var(--chalk); padding: .55rem .8rem; border-radius: var(--r-sm);
  font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
}
.nav-toggle b { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle b::before, .nav-toggle b::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.nav-toggle b::before { top: -6px; } .nav-toggle b::after { top: 6px; }

.site-nav ul { list-style: none; padding: 0; display: flex; gap: .25rem; flex-wrap: wrap; }
.site-nav a {
  display: block; text-decoration: none; color: var(--on-navy);
  font-weight: 600; font-size: .95rem; padding: .6rem .8rem; border-radius: var(--r-sm);
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { background: var(--navy-lift); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--amber); color: #fff; }
.site-nav .is-ext::after {
  content: "↗"; font-size: .75em; margin-left: .25em; color: var(--on-navy-soft);
}
.head-cta { display: none; }

@media (max-width: 899px) {
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy); border-bottom: 3px solid var(--amber);
    padding: .5rem var(--gut) 1.1rem; display: none;
    box-shadow: var(--shadow-night);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: .85rem .4rem; border-bottom: 1px solid var(--navy-line); border-radius: 0; }

  /* Without scripting there is nothing to work the toggle, so drop the menu
     open permanently rather than stranding a visitor with no navigation. */
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .head-inner { flex-wrap: wrap; }
  html:not(.js) .site-nav {
    display: block; position: static; box-shadow: none;
    border-bottom: 0; padding: 0 0 .4rem; width: 100%;
  }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; }
  .head-cta { display: inline-flex; margin-left: .6rem; padding: .8rem 1.2rem; font-size: .95rem; }
}

/* --- sticky mobile register bar ------------------------------------------- */
.reg-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: var(--navy-deep); border-top: 2px solid var(--amber);
  padding: .55rem var(--gut) calc(.55rem + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(0,0,0,.3);
}
.reg-bar .btn { width: 100%; }
@media (min-width: 900px) { .reg-bar { display: none; } }
@media (max-width: 899px) { body { padding-bottom: var(--bar-h); } }

/* --- scoreboard ----------------------------------------------------------- */
.scoreboard {
  display: grid; gap: clamp(.6rem, 2vw, 1rem);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) { .scoreboard { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: linear-gradient(180deg, #041a4a, #010e2c);
  border: 1px solid var(--navy-line);
  border-radius: var(--r-md);
  padding: clamp(1rem, 3vw, 1.6rem) .75rem;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), inset 0 0 30px rgba(0,0,0,.5);
  position: relative; overflow: hidden;
}
.stat::before { /* scoreboard bulb grid */
  content: ""; position: absolute; inset: 0; opacity: .16; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,180,58,.65) .8px, transparent 1.1px);
  background-size: 7px 7px;
}
/* the bulb grid is a positioned pseudo-element, so lift the text above it */
.stat b, .stat span { position: relative; z-index: 1; }
.stat b {
  display: block; font-family: var(--display); color: var(--amber);
  font-size: clamp(1.7rem, 6vw, 3.4rem); line-height: 1;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
  text-shadow: 0 0 18px var(--amber-glow);
}
/* word-based cells ("Mar–Oct") need a smaller face than the numerals */
.stat b.is-text { font-size: clamp(1.15rem, 4.4vw, 2.3rem); }
.stat span {
  display: block; margin-top: .55rem; font-size: var(--step--1); font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--on-navy-soft);
}

/* --- ticket-stub card ----------------------------------------------------- */
.tickets { display: grid; gap: clamp(1.2rem, 3vw, 1.8rem); }
@media (min-width: 700px) { .tickets-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .tickets-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tickets-3 { grid-template-columns: repeat(3, 1fr); } }

.ticket {
  position: relative; background: var(--chalk);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  border: 1px solid rgba(1,21,61,.10);
}
a.ticket { transition: transform .22s ease, box-shadow .22s ease; }
a.ticket:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.ticket-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--navy); }
.ticket-media img { width: 100%; height: 100%; object-fit: cover; }
.ticket-media::after { /* halftone edge fade */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(1,21,61,.55), transparent 45%),
    radial-gradient(circle, rgba(1,21,61,.34) 1px, transparent 1.4px) 0 0 / 5px 5px;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 38%);
  mask-image: linear-gradient(to top, #000, transparent 38%);
}
.ticket-tag {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  background: var(--seam); color: #fff;
  font-family: var(--display); font-size: var(--step-1);
  padding: .3em .8em .35em; border-radius: 0 var(--r-md) 0 0;
}
.ticket-body { padding: clamp(1.2rem, 3vw, 1.7rem); flex: 1; display: flex; flex-direction: column; }
.ticket-age {
  font-weight: 700; font-size: var(--step--1); letter-spacing: .14em;
  text-transform: uppercase; color: var(--grass);
}
/* Card headings are h2 on pages where the card is a top-level item and h3
   where it sits under one — style both so heading order can serve semantics. */
.ticket-body h2, .ticket-body h3 {
  font-family: var(--display); font-size: var(--step-2); margin: .25em 0 .5em;
}
.ticket-body ul { padding-left: 1.15rem; margin: 0; color: var(--ink-soft); }
.ticket-body li { margin-bottom: .4rem; }
.ticket-body p { color: var(--ink-soft); }

/* the perforation */
.ticket-perf {
  position: relative; height: 22px; flex: 0 0 auto;
  border-top: 2px dashed rgba(1,21,61,.24);
  margin-top: auto;
}
.ticket-perf::before, .ticket-perf::after {
  content: ""; position: absolute; top: -13px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--chalk-dim);
  box-shadow: inset 0 0 0 1px rgba(1,21,61,.10);
}
.ticket-perf::before { left: -12px; }
.ticket-perf::after { right: -12px; }
.section-day .ticket-perf::before, .section-day .ticket-perf::after { background: var(--chalk); }
.section-night .ticket-perf::before, .section-night .ticket-perf::after { background: var(--navy); }
.ticket-foot {
  padding: 0 clamp(1.2rem, 3vw, 1.7rem) clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: .4rem;
}
a.ticket:hover .ticket-foot { color: var(--seam); }

/* --- sponsor wall --------------------------------------------------------- */
.sponsor-grid {
  display: grid; gap: clamp(1rem, 2.5vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: stretch;
}
.sponsor {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid rgba(1,21,61,.12);
  border-radius: var(--r-md); padding: 1.1rem; min-height: 118px;
  box-shadow: var(--shadow-card); text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.sponsor:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.sponsor img { max-height: 78px; width: auto; object-fit: contain; }

/* --- board / monogram ----------------------------------------------------- */
.board-grid {
  display: grid; gap: clamp(1rem, 2.5vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.member {
  background: var(--chalk); border: 1px solid rgba(1,21,61,.12);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; text-align: center;
  padding-bottom: 1.2rem;
}
.monogram {
  aspect-ratio: 4 / 3; display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 120%, var(--navy-lift), var(--navy) 70%);
  position: relative;
}
.monogram::after {
  content: ""; position: absolute; inset: 0; opacity: .18;
  background-image: radial-gradient(circle, rgba(255,255,255,.5) .8px, transparent 1.1px);
  background-size: 9px 9px;
}
.monogram span {
  font-family: var(--display); font-size: clamp(2.2rem, 8vw, 3rem);
  color: var(--amber); line-height: 1; letter-spacing: .02em;
  border: 3px solid rgba(255,180,58,.4); border-radius: 50%;
  width: 2.2em; height: 2.2em; display: grid; place-items: center;
  background: rgba(0,0,0,.22); position: relative; z-index: 1;
}
.member h2, .member h3 {
  font-family: var(--display); font-size: var(--step-1); margin: 1rem 1rem .3rem;
}
.member .role {
  font-size: var(--step--1); color: var(--ink-soft); margin: 0 1rem 1rem;
  min-height: 2.6em;
}
/* margin-top:auto lands every card's button on the same baseline no matter
   how many lines the role runs to */
.member .btn { margin-inline: 1rem; margin-top: auto; }

/* --- gallery -------------------------------------------------------------- */
.masonry { columns: 2; column-gap: clamp(.6rem, 2vw, 1rem); }
@media (min-width: 700px) { .masonry { columns: 3; } }
@media (min-width: 1050px) { .masonry { columns: 4; } }
.masonry button {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  margin-bottom: clamp(.6rem, 2vw, 1rem); cursor: zoom-in;
  border-radius: var(--r-md); overflow: hidden; break-inside: avoid;
  box-shadow: var(--shadow-card); line-height: 0;
  transition: transform .2s ease;
}
.masonry button:hover { transform: scale(1.02); }
.masonry img { width: 100%; height: auto; }

/* --- lightbox ------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(0,6,20,.94); padding: clamp(.5rem, 3vw, 2rem);
  place-items: center;
}
.lightbox[open], .lightbox.open { display: grid; }
.lightbox img {
  max-width: 100%; max-height: 82vh; width: auto; margin-inline: auto;
  border-radius: var(--r-md); box-shadow: var(--shadow-night);
}
.lb-count {
  text-align: center; color: var(--on-navy-soft); margin-top: .9rem;
  font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase;
}
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); color: #fff; border: 2px solid rgba(255,255,255,.3);
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer;
  display: grid; place-items: center;
}
.lb-btn:hover { background: var(--amber); color: var(--navy-deep); border-color: var(--amber); }
.lb-prev { left: clamp(.4rem, 2vw, 1.5rem); }
.lb-next { right: clamp(.4rem, 2vw, 1.5rem); }
.lb-close { position: absolute; top: clamp(.5rem,2vw,1.2rem); right: clamp(.5rem,2vw,1.2rem);
  transform: none; }

/* --- footer --------------------------------------------------------------- */
.site-foot { background: var(--navy-deep); color: var(--on-navy-soft); padding-block: 3rem 2rem; }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-foot a { color: var(--on-navy); text-decoration: none; }
.site-foot a:hover { color: var(--amber); text-decoration: underline; }
.site-foot h3, .site-foot h4 {
  font-size: var(--step--1); letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber); margin-bottom: .9rem; font-weight: 700; font-family: var(--body);
}
.foot-links { list-style: none; padding: 0; display: grid; gap: .5rem; }
.foot-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--navy-line);
  display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; align-items: center;
  justify-content: space-between; font-size: var(--step--1);
}
.credit {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1px solid var(--navy-line); border-radius: 999px;
  padding: .35rem .9rem; font-size: .78rem;
}
.credit a { font-weight: 700; }
.credit .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }

/* --- reveal on scroll -----------------------------------------------------
   Only hidden when scripting is available to reveal it again. Without the
   .js class (JS disabled or failed) these blocks render normally instead of
   staying invisible forever. */
.js .reveal { opacity: 0; transform: translate3d(0, 26px, 0); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }

/* --- reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .js .reveal, .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   THE CINEMA — intro + homepage scroll scenes
   Everything below is transform/opacity only, and every piece has a static
   resting state so the page is complete with JS disabled.
   ========================================================================== */

/* --- the opening ---------------------------------------------------------- */
.intro { display: none; }
.intro-armed .intro {
  display: block; position: fixed; inset: 0; z-index: 500;
  background: radial-gradient(120% 90% at 50% 60%, #041231 0%, var(--navy-deep) 60%, #00040f 100%);
  overflow: hidden;
}
.intro-armed body { overflow: hidden; }
.intro-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 60% at 50% 55%, transparent 40%, rgba(0,0,0,.75) 100%);
}
.bank {
  position: absolute; top: -18%; width: 58vw; height: 58vw; opacity: 0;
  background: radial-gradient(circle at 50% 50%,
    rgba(255,240,200,.95) 0%, rgba(255,205,120,.45) 18%,
    rgba(255,180,58,.18) 38%, transparent 68%);
  filter: blur(4px); pointer-events: none;
}
.bank-l { left: -16vw; }
.bank-r { right: -16vw; }
.intro-flash {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(58% 42% at 50% 52%,
    #fff 0%, rgba(255,250,235,.92) 26%, rgba(255,224,168,.45) 52%, transparent 78%);
}
.intro-stage {
  position: absolute; inset: 0; display: grid; place-items: center;
  transform-style: preserve-3d; perspective: 900px;
}
.ball {
  position: absolute; width: 200px; height: 200px;
  transform-style: preserve-3d; will-change: transform, opacity;
  opacity: 0; pointer-events: none;
}
/* The badge sits above the disc. The tumble is deliberately kept inside
   +/-90deg of tilt so the coin never turns past edge-on — a logo shown from
   behind reads as a mirrored mistake, not as motion. */
.ball-face {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; z-index: 1; transform: translateZ(1px);
}
.ball-disc {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff 0%, #eef1f8 42%, #c3ccdf 78%, #93a0bb 100%);
  box-shadow: 0 0 40px rgba(255,220,160,.35), inset -8px -10px 26px rgba(0,0,0,.25);
}
.ball-trail {
  position: absolute; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,205,120,.5), rgba(255,180,58,0) 68%);
  opacity: 0; pointer-events: none; will-change: transform, opacity;
}
.speedline {
  position: absolute; width: 2px; height: 90px; border-radius: 2px; opacity: 0;
  background: linear-gradient(to bottom, transparent, rgba(255,235,190,.85), transparent);
  will-change: transform, opacity;
}
.intro-skip {
  position: absolute; bottom: clamp(1.2rem, 5vh, 2.5rem); left: 50%;
  transform: translateX(-50%); opacity: 0;
  background: rgba(255,255,255,.08); color: var(--chalk);
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  padding: .6rem 1.5rem; font-weight: 700; font-size: .85rem;
  letter-spacing: .16em; text-transform: uppercase; cursor: pointer;
}
.intro-skip:hover { background: var(--amber); color: var(--navy-deep); border-color: var(--amber); }

/* --- hero scene ----------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy-deep); color: var(--on-navy);
  min-height: clamp(560px, 92svh, 900px);
  display: grid; align-items: end;
}
.hero-layers { position: absolute; inset: 0; z-index: 0; }
.layer { position: absolute; inset: -6% -2%; will-change: transform; }

.layer-sky {
  background:
    radial-gradient(90% 70% at 50% 105%, rgba(10,44,110,.9) 0%, transparent 60%),
    linear-gradient(180deg, #00040f 0%, #01102f 38%, #06225c 78%, #0b2f74 100%);
}
.layer-sky::after { /* stars */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 78% 12%, #dfe8ff, transparent),
    radial-gradient(1.6px 1.6px at 42% 26%, #fff, transparent),
    radial-gradient(1.1px 1.1px at 63% 32%, #cfe0ff, transparent),
    radial-gradient(1.3px 1.3px at 26% 8%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 90% 30%, #fff, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 62%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 62%);
}
.layer-glow {
  background:
    radial-gradient(46% 40% at 12% -6%, rgba(255,214,150,.55) 0%, rgba(255,180,58,.14) 42%, transparent 72%),
    radial-gradient(46% 40% at 88% -6%, rgba(255,214,150,.5) 0%, rgba(255,180,58,.12) 42%, transparent 72%);
  mix-blend-mode: screen;
}
.layer-photo { overflow: hidden; }
.layer-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%;
  filter: saturate(.68) brightness(.6) contrast(1.12);
}
.layer-photo::after { /* navy scrim — keeps AA contrast over any frame */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(1,15,45,.55) 0%, rgba(1,15,45,.2) 32%, rgba(0,6,22,.92) 88%),
    linear-gradient(90deg, rgba(0,6,22,.75) 0%, transparent 62%);
}
.layer-dust { pointer-events: none; overflow: hidden; }
.dust-mote {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,226,175,.9), rgba(255,200,120,0) 70%);
  animation: drift linear infinite;
}
@keyframes drift {
  0%   { transform: translate3d(0, 12vh, 0) scale(.7); opacity: 0; }
  12%  { opacity: .55; }
  88%  { opacity: .35; }
  100% { transform: translate3d(2vw, -18vh, 0) scale(1.15); opacity: 0; }
}
.layer-video { object-fit: cover; width: 100%; height: 100%; }

.hero-content {
  position: relative; z-index: 2;
  padding-block: clamp(3rem, 10vh, 6rem) clamp(2.5rem, 7vh, 4.5rem);
}
/* keep the hero CTAs clear of the sticky register bar */
@media (max-width: 899px) {
  .hero-content { padding-bottom: calc(clamp(2.5rem, 7vh, 4.5rem) + var(--bar-h)); }
}
.hero h1 {
  font-family: var(--display); font-size: var(--step-5);
  line-height: .96; letter-spacing: -.005em; color: #fff;
  text-shadow: 0 4px 30px rgba(0,0,0,.6);
  max-width: 15ch;
}
.hero h1 .word { display: inline-block; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-sub {
  margin-top: 1.1rem; font-size: var(--step-1); color: #dfe6f7;
  max-width: 46ch; text-shadow: 0 2px 14px rgba(0,0,0,.7);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem;
  background: rgba(0,0,0,.42); border: 1px solid rgba(255,180,58,.5);
  border-radius: 999px; padding: .45rem 1rem;
  font-size: var(--step--1); font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--amber);
  backdrop-filter: blur(2px);
}
.hero-badge .pulse {
  width: 9px; height: 9px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 0 var(--amber-glow); animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,180,58,.6); }
  70%  { box-shadow: 0 0 0 12px rgba(255,180,58,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,180,58,0); }
}
/* the single stitched seam — used once, in the hero only */
.hero-seam {
  position: absolute; right: -6%; bottom: 8%; width: min(52vw, 460px);
  z-index: 1; opacity: .5; pointer-events: none;
}
@media (max-width: 700px) { .hero-seam { bottom: auto; top: 8%; right: -22%; opacity: .35; } }

/* --- registration banner -------------------------------------------------- */
.reg-panel {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(140deg, #05205c 0%, var(--navy) 55%, #010c26 100%);
  color: var(--on-navy); box-shadow: var(--shadow-lift);
  padding: clamp(1.6rem, 5vw, 3.2rem);
  display: grid; gap: 1.6rem; align-items: center;
  border: 1px solid var(--navy-line);
}
@media (min-width: 860px) { .reg-panel { grid-template-columns: 1.25fr .75fr; gap: 2.5rem; } }
.reg-panel::before {
  content: ""; position: absolute; inset: 0; opacity: .1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,180,58,.8) 1px, transparent 1.4px);
  background-size: 10px 10px;
}
.reg-panel > * { position: relative; }
.reg-panel h2 { font-family: var(--display); font-size: var(--step-3); color: #fff; }
/* the panel is navy but lives in a light section — restate the dark-bg colours */
.reg-panel .lede, .reg-panel p { color: var(--on-navy-soft); }
.reg-panel .eyebrow { color: var(--amber); }
.countdown { display: flex; gap: .6rem; flex-wrap: wrap; }
.cd-cell {
  background: rgba(0,0,0,.35); border: 1px solid var(--navy-line);
  border-radius: var(--r-md); padding: .8rem .35rem; text-align: center;
  flex: 1 1 58px;
}
.cd-cell b {
  display: block; font-family: var(--display); font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: var(--amber); line-height: 1; font-variant-numeric: tabular-nums;
}
.cd-cell span {
  display: block; margin-top: .4rem; font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-soft);
}

/* --- photo strip ---------------------------------------------------------- */
.strip-viewport { position: relative; overflow: hidden; }
.strip-track {
  display: flex; gap: clamp(.7rem, 2vw, 1.2rem); will-change: transform;
  padding-inline: var(--gut);
}
.strip-item {
  flex: 0 0 auto; width: clamp(190px, 44vw, 330px);
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-night);
  background: var(--navy-lift); line-height: 0;
}
.strip-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
/* below the pin breakpoint the strip is a plain swipe carousel */
@media (max-width: 767px) {
  .strip-viewport {
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .strip-viewport::-webkit-scrollbar { display: none; }
  .strip-item { scroll-snap-align: center; }
}

/* --- age chart ------------------------------------------------------------ */
.chart-frame {
  background: #fff; border: 1px solid rgba(1,21,61,.14); border-radius: var(--r-lg);
  padding: clamp(.6rem, 2vw, 1rem); box-shadow: var(--shadow-card);
  cursor: zoom-in; display: block; width: 100%;
}
.chart-frame img { width: 100%; height: auto; border-radius: var(--r-sm); }
.caption { font-size: var(--step--1); color: var(--ink-soft); margin-top: .8rem; }

/* --- home field / contact ------------------------------------------------- */
.split { display: grid; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.mail-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.mail-btn {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  background: var(--navy-lift); border: 1px solid var(--navy-line);
  border-radius: var(--r-md); padding: .9rem 1.1rem; text-decoration: none;
  color: var(--on-navy); font-weight: 600; transition: background .18s ease;
}
.mail-btn:hover { background: #123073; }
.mail-btn small { display: block; font-weight: 400; color: var(--on-navy-soft); font-size: .78rem; }
.note {
  border-left: 3px solid var(--amber); padding: .3rem 0 .3rem 1.1rem;
  color: var(--on-navy-soft); font-size: var(--step-0);
}

@media (prefers-reduced-motion: reduce) {
  .dust-mote { animation: none; opacity: .3; }
  .hero-badge .pulse { animation: none; }
  .intro { display: none !important; }
}

/* --- print ---------------------------------------------------------------- */
@media print {
  .site-head, .reg-bar, .lightbox, .intro { display: none !important; }
  body { background: #fff; }
}
