/* Rocky Mountain APEX Girls Flag Football
   Design tokens come from the approved master brand board. */

:root {
  --plum: #2A165D;
  --lavender: #B09DD9;
  --lilac: #DCC6EA;
  --ivory: #F4EFF5;
  --graphite: #2E2E33;
  --white: #FFFFFF;

  --plum-90: rgba(42, 22, 93, .9);
  --plum-70: rgba(42, 22, 93, .7);
  --plum-45: rgba(42, 22, 93, .45);
  --ink-60: rgba(46, 46, 51, .72);
  --line: rgba(42, 22, 93, .14);
  --line-light: rgba(244, 239, 245, .18);

  --font: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --track-wide: .28em;
  --track: .16em;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1240px;
  --radius: 4px;
  --radius-lg: 14px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --header-h: 68px;
  color-scheme: light;
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease-out); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--graphite);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.08; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--lavender); color: var(--plum); }

:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; border-radius: 2px; }
.on-light :focus-visible, .section--ivory :focus-visible, .section--lilac :focus-visible { outline-color: var(--plum); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 200; background: var(--lavender); color: var(--plum); padding: 10px 16px; font-weight: 600; text-decoration: none; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75em;
  font-size: .75rem; font-weight: 500; letter-spacing: var(--track-wide); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.title-xl { font-size: clamp(2.4rem, 7.2vw, 5.6rem); font-weight: 300; letter-spacing: .06em; text-transform: uppercase; }
.title-lg { font-size: clamp(1.85rem, 4vw, 3rem); font-weight: 300; letter-spacing: .05em; text-transform: uppercase; }
.title-md { font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 500; letter-spacing: .04em; }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.55; max-width: 38ch; }
.muted { color: var(--ink-60); }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--plum); --fg: var(--white);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .85em 1.6em;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bg); border-radius: 999px;
  font-size: .82rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; text-decoration: none;
  cursor: pointer; isolation: isolate;
  transition: transform .5s var(--ease-out), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--lavender { --bg: var(--lavender); --fg: var(--plum); }
.btn--ivory { --bg: var(--ivory); --fg: var(--plum); }
.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn--ghost:hover { background: currentColor; }
.btn--ghost:hover > span { color: var(--plum); }
.on-light .btn--ghost:hover > span, .section--ivory .btn--ghost:hover > span { color: var(--ivory); }
.btn--lg { min-height: 58px; padding: 1em 2.1em; font-size: .9rem; }
.btn--sm { min-height: 40px; padding: .6em 1.1em; font-size: .72rem; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn .arrow { width: 1em; height: 1em; transition: transform .45s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* Flag-pull register button: a flag tab hangs off the hip of the button.
   Hover makes it flutter; click "pulls" it like a flag grab before navigating. */
.btn-flag { overflow: visible; padding-right: 2.3em; }
.btn-flag .flag {
  position: absolute; right: 14px; top: 100%;
  width: 10px; height: 26px; margin-top: -6px;
  --flag: var(--lavender); --flag-edge: var(--plum);
  /* hairline edge in the opposite tone keeps the flag readable on any surface */
  filter: drop-shadow(1px 0 0 var(--flag-edge)) drop-shadow(-1px 0 0 var(--flag-edge)) drop-shadow(0 1px 0 var(--flag-edge));
  transform-origin: 50% 0;
  transform: rotate(4deg);
  transition: transform .5s var(--ease-spring);
  z-index: -1;
}
.btn-flag .flag::before { content: ""; position: absolute; inset: 0; background: var(--flag); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); }
/* plum flag on light, lavender and ivory buttons; lavender flag on plum and dark buttons */
.btn--lavender.btn-flag .flag, .btn--ivory.btn-flag .flag { --flag: var(--plum); --flag-edge: var(--lavender); }
.btn-flag:hover .flag { animation: flutter .9s ease-in-out infinite; }
.btn-flag.is-pulled .flag { animation: flag-pull .55s var(--ease-out) forwards; }
@keyframes flutter {
  0%, 100% { transform: rotate(4deg) skewY(0); }
  35% { transform: rotate(-10deg) skewY(6deg); }
  70% { transform: rotate(8deg) skewY(-4deg); }
}
@keyframes flag-pull {
  0% { transform: rotate(4deg); opacity: 1; }
  30% { transform: translate(6px, 4px) rotate(-30deg); }
  100% { transform: translate(60px, 50px) rotate(-120deg); opacity: 0; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: var(--white);
  view-transition-name: site-header;
  transition: background-color .35s, box-shadow .35s, transform .45s var(--ease-out);
}
.site-header.is-solid, .site-header.is-solid-always { background: var(--plum); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-link img { height: 22px; width: auto; }
.brand-link .brand-sub { display: none; font-size: .62rem; letter-spacing: var(--track-wide); text-transform: uppercase; line-height: 1.2; opacity: .85; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav a {
  position: relative; display: inline-block; padding: 10px 14px;
  font-size: .78rem; font-weight: 500; letter-spacing: var(--track); text-transform: uppercase; text-decoration: none;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--lavender);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--line-light); border-radius: 50%; cursor: pointer; color: inherit;
}
.menu-toggle span { position: relative; width: 18px; height: 1.5px; background: currentColor; transition: background .2s; }
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease-out);
}
.menu-toggle span::before { transform: translateY(-6px); }
.menu-toggle span::after { transform: translateY(6px); }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: rotate(45deg); }
.menu-open .menu-toggle span::after { transform: rotate(-45deg); }
.header-register { display: none; }

@media (min-width: 900px) {
  :root { --header-h: 80px; }
  .nav { display: block; }
  .menu-toggle { display: none; }
  .header-register { display: inline-flex; }
  .brand-link img { height: 26px; }
  .brand-link .brand-sub { display: block; }
}
@media (min-width: 360px) { .header-register { display: inline-flex; } }

/* Mobile menu sheet */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--plum); color: var(--white);
  display: grid; grid-template-rows: 1fr auto; padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  clip-path: circle(0 at calc(100% - 38px) 34px);
  visibility: hidden;
  transition: clip-path .7s var(--ease-out), visibility 0s linear .7s;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 38px) 34px); visibility: visible; transition: clip-path .7s var(--ease-out), visibility 0s; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-content: start; }
.mobile-menu li { overflow: hidden; }
.mobile-menu a.big {
  display: flex; align-items: baseline; gap: 16px; padding: 10px 0;
  font-size: clamp(2.2rem, 11vw, 3.4rem); font-weight: 300; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  transform: translateY(105%); transition: transform .7s var(--ease-out);
}
.mobile-menu a.big small { font-size: .8rem; letter-spacing: var(--track); color: var(--lavender); }
.menu-open .mobile-menu a.big { transform: none; }
.menu-open .mobile-menu li:nth-child(2) a.big { transition-delay: .05s; }
.menu-open .mobile-menu li:nth-child(3) a.big { transition-delay: .1s; }
.menu-open .mobile-menu li:nth-child(4) a.big { transition-delay: .15s; }
.mobile-menu .menu-foot { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.mobile-menu .menu-foot img { width: 96px; height: auto; opacity: .9; }
@media (min-width: 900px) { .mobile-menu { display: none; } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  color: var(--white);
  background: var(--plum);
  display: grid; align-items: end;
  padding: calc(var(--header-h) + 32px) 0 clamp(96px, 16vw, 180px);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media picture, .hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-media video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-media video.is-playing { opacity: 1; }
.hero-media img { transform: scale(1.06); animation: settle 2.4s var(--ease-out) forwards; }
@keyframes settle { to { transform: scale(1); } }
.hero-scrim { position: absolute; inset: 0; z-index: -1; background: rgba(42, 22, 93, .38); }
.hero-scrim::after { /* solid tint band for text legibility, no gradient */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; background: rgba(27, 14, 61, .42);
  mask: linear-gradient(transparent, #000 45%); -webkit-mask: linear-gradient(transparent, #000 45%);
}
.hero-grid { display: grid; gap: 28px; align-items: end; }
.hero-copy .eyebrow { color: var(--lilac); margin-bottom: 22px; }
.slogan { font-size: clamp(2.65rem, 10.5vw, 7.2rem); font-weight: 300; letter-spacing: .07em; text-transform: uppercase; line-height: .98; }
.slogan .w { display: block; overflow: hidden; padding-bottom: .04em; }
.slogan .w > span {
  display: inline-block; transform: translateY(110%);
  animation: rise 1.1s var(--ease-out) forwards;
  transition: color .6s ease, font-weight .6s ease, letter-spacing .9s var(--ease-out);
}
.slogan .w:nth-child(2) > span { animation-delay: .12s; }
.slogan .w:nth-child(3) > span { animation-delay: .24s; }
.slogan .w:nth-child(4) > span { animation-delay: .36s; }
.slogan .w > span.is-lit { color: var(--lavender); font-weight: 500; letter-spacing: .1em; }
@keyframes rise { to { transform: none; } }
.hero-sub { margin-top: 26px; font-size: clamp(1.05rem, 1.7vw, 1.25rem); max-width: 40ch; color: rgba(255,255,255,.9); opacity: 0; animation: fade-up 1s var(--ease-out) .6s forwards; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: 32px; opacity: 0; animation: fade-up 1s var(--ease-out) .75s forwards; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Next-up ticket with live countdown */
.ticket {
  position: relative; display: grid; gap: 10px; max-width: 380px;
  width: 100%; padding: 16px 20px;
  background: rgba(42, 22, 93, .55); border: 1px solid var(--line-light); border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0; animation: fade-up 1s var(--ease-out) .95s forwards;
  text-decoration: none; color: inherit;
}
.ticket[hidden] { display: none; }
.ticket-label { font-size: .68rem; letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--lavender); display: flex; align-items: center; gap: 8px; }
.ticket-label .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--lavender); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(176,157,217,.7); } 100% { box-shadow: 0 0 0 10px rgba(176,157,217,0); } }
.ticket-title { font-size: 1.05rem; font-weight: 500; letter-spacing: .02em; }
.ticket-meta { font-size: .85rem; color: var(--lilac); }
.countdown { display: flex; gap: 14px; margin-top: 2px; }
.countdown div { display: grid; text-align: center; min-width: 44px; }
.countdown b { font-size: 1.6rem; font-weight: 300; font-variant-numeric: tabular-nums; line-height: 1; display: inline-block; }
.countdown b.tick { animation: tick .45s var(--ease-out); }
@keyframes tick { from { transform: translateY(-40%); opacity: 0; } to { transform: none; opacity: 1; } }
.countdown small { font-size: .6rem; letter-spacing: var(--track); text-transform: uppercase; color: var(--lilac); margin-top: 4px; }

/* Action photo slot: reserved for a real photo of the team */
.action-slot {
  position: relative; margin: 0; aspect-ratio: 4 / 5; width: 100%; max-width: 420px; justify-self: end;
  border-radius: var(--radius-lg); overflow: hidden;
  background: rgba(42, 22, 93, .35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; animation: fade-up 1.1s var(--ease-out) .5s forwards;
}
.action-slot img { width: 100%; height: 100%; object-fit: cover; }
.action-slot .slot-frame { position: absolute; inset: 14px; pointer-events: none; }
.action-slot .slot-frame i { position: absolute; width: 26px; height: 26px; border: 2px solid var(--lavender); }
.action-slot .slot-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.action-slot .slot-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.action-slot .slot-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.action-slot .slot-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.action-slot figcaption {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; text-align: center; padding: 24px;
  font-size: .72rem; letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--lilac);
}
.action-slot figcaption strong { font-size: 1rem; font-weight: 500; color: var(--white); letter-spacing: .14em; }
.action-slot .rec { position: absolute; top: 26px; left: 30px; display: flex; align-items: center; gap: 8px; font-size: .62rem; letter-spacing: var(--track-wide); color: var(--lilac); }
.action-slot .rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lavender); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.action-slot.has-photo figcaption, .action-slot.has-photo .rec { display: none; }

@media (max-width: 899px) {
  .action-slot { max-width: none; aspect-ratio: 16 / 11; justify-self: stretch; }
}
/* Desktop hero is a compact band so the Next up ticket sits fully above the fold at 1366x768 */
@media (min-width: 900px) {
  .hero { min-height: clamp(560px, 86svh, 720px); padding: calc(var(--header-h) + 24px) 0 clamp(84px, 8vw, 112px); }
  .hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr); gap: 40px; }
  .hero-copy .eyebrow { margin-bottom: 14px; }
  .slogan { font-size: clamp(2.6rem, 5vw, 4.5rem); }
  .hero-sub { margin-top: 18px; }
  .hero-ctas { margin-top: 24px; }
  .ticket { justify-self: end; max-width: 380px; }
  .hero .ridge { height: clamp(64px, 7vw, 100px); }
}

/* Ridge divider: mountain crest that the hero sits on */
.ridge { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; height: clamp(70px, 12vw, 170px); pointer-events: none; }
.ridge svg { width: 100%; height: 100%; }
.ridge .crest { fill: none; stroke: var(--lavender); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s var(--ease-out) .9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ridge .apex-dot { fill: var(--lavender); opacity: 0; animation: pop .6s var(--ease-spring) 2.6s forwards; transform-box: fill-box; transform-origin: center; }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }


/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(44px, 6vw, 72px); }
.section--first { padding-top: clamp(28px, 4vw, 44px); }
.section--ivory { background: var(--ivory); color: var(--graphite); }
.section--white { background: var(--white); color: var(--graphite); }
.section--white :focus-visible { outline-color: var(--plum); }
.section--lilac { background: var(--lilac); color: var(--plum); }
.section--plum { background: var(--plum); color: var(--white); }
.section--graphite { background: var(--graphite); color: var(--ivory); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(24px, 4vw, 36px); }
.section-head .eyebrow { color: var(--plum); }
.section--plum .section-head .eyebrow, .section--graphite .section-head .eyebrow { color: var(--lavender); }
.section-head h2 { color: var(--plum); }
.section--plum .section-head h2, .section--graphite .section-head h2 { color: var(--white); }
.section-head--split { align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1fr auto; } }

/* About */
.about-grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.about-title, .way-title { font-weight: 300; letter-spacing: .05em; text-transform: uppercase; color: var(--plum); line-height: 1.15; }
.about-title { font-size: clamp(1.5rem, 3vw, 2.25rem); margin: 14px 0 16px; }
.way-title { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.about-copy .lede { color: var(--graphite); font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 46ch; margin-bottom: 12px; }
.about-copy .muted { max-width: 52ch; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; } }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 20px 0 0; }
.fact { background: var(--ivory); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; display: grid; gap: 2px; align-content: start; }
.fact dt { font-size: .62rem; letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--ink-60); }
.fact dd { margin: 0; font-size: 1rem; font-weight: 500; color: var(--plum); }

/* Pillars */
.pillars { display: grid; gap: 12px; counter-reset: p; }
.pillar {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  padding: 18px 22px 20px; border-radius: var(--radius-lg);
  background: var(--ivory); color: var(--plum);
  display: grid; align-content: start; gap: 14px;
  transition: transform .6s var(--ease-out), background-color .4s;
}
.pillar::before { /* pointer-follow light, solid circle (no gradient) */
  content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; border-radius: 50%;
  left: calc(var(--mx) - 130px); top: calc(var(--my) - 130px);
  background: rgba(176, 157, 217, .35); filter: blur(40px); opacity: 0; transition: opacity .4s;
}
.pillar:hover::before { opacity: 1; }
.pillar:hover { transform: translateY(-6px); }
.pillar .num { font-size: .75rem; letter-spacing: var(--track-wide); color: var(--ink-60); display: flex; justify-content: space-between; align-items: center; }
.pillar .num svg { width: 26px; height: 26px; transition: transform .7s var(--ease-out); }
.pillar:hover .num svg { transform: translateY(-4px); }
.pillar h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 300; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.pillar p { color: var(--graphite); max-width: 30ch; font-size: .95rem; line-height: 1.5; }
.pillar--dark { background: var(--plum); color: var(--white); }
.pillar--dark .num { color: var(--lavender); }
.pillar--dark p { color: var(--lilac); }
.pillar--dark::before { background: rgba(176, 157, 217, .4); }
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pillars { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Event cards ---------- */
.event-list { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.event-card {
  position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px 20px;
  padding: 20px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), border-color .3s;
}
.event-card:hover { transform: translateY(-3px); border-color: rgba(42,22,93,.35); }
.date-chip {
  display: grid; place-items: center; align-content: center; gap: 2px;
  width: 76px; height: 88px; border-radius: 10px;
  background: var(--plum); color: var(--white); text-align: center; line-height: 1;
}
.date-chip .dow, .date-chip .mon { font-size: .62rem; letter-spacing: var(--track); text-transform: uppercase; color: var(--lilac); }
.date-chip .day { font-size: 2rem; font-weight: 300; font-variant-numeric: tabular-nums; }
.event-body { min-width: 0; overflow-wrap: anywhere; display: grid; gap: 6px; align-content: start; }
.event-body h3 { font-size: 1.2rem; font-weight: 500; color: var(--plum); letter-spacing: .01em; line-height: 1.25; }
.tag {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px;
  font-size: .62rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; background: var(--lilac); color: var(--plum);
}
.tag--game { background: var(--plum); color: var(--white); }
.tag--practice { background: transparent; border: 1px solid var(--lavender); }
.event-meta { display: grid; gap: 4px; font-size: .92rem; color: var(--ink-60); margin-top: 4px; }
.event-meta > span { display: flex; gap: 8px; align-items: flex-start; }
.event-meta > span > svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--lavender); }
.event-meta a { color: var(--plum); text-decoration-color: var(--lavender); text-underline-offset: 3px; }
.event-desc { font-size: .95rem; color: var(--graphite); margin-top: 6px; }
.event-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font-size: .95rem; font-weight: 600; color: var(--plum); margin-right: auto; }
.link-btn { background: none; border: 0; padding: 8px 4px; cursor: pointer; font-size: .72rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--plum); text-decoration: underline; text-decoration-color: var(--lavender); text-underline-offset: 4px; }
.link-btn:hover { text-decoration-color: var(--plum); }
@media (min-width: 760px) {
  .event-card { grid-template-columns: 88px minmax(0, 1fr) auto; padding: 24px; align-items: center; }
  .date-chip { width: 88px; height: 100px; }
  .event-actions { grid-column: auto; border-top: 0; padding-top: 0; flex-direction: column; align-items: flex-end; text-align: right; }
  .price { margin-right: 0; }
}
.event-grid { display: grid; gap: 14px; }
@media (min-width: 1000px) {
  .event-grid { grid-template-columns: repeat(3, 1fr); }
  .event-grid .event-card { grid-template-columns: 76px minmax(0, 1fr); align-items: start; }
  .event-grid .date-chip { width: 76px; height: 88px; }
  .event-grid .event-actions { grid-column: 1 / -1; flex-direction: row; align-items: center; text-align: left; border-top: 1px solid var(--line); padding-top: 14px; }
  .event-grid .price { margin-right: auto; }
}

/* Skeletons while CSV loads */
.skeleton { height: 150px; border-radius: var(--radius-lg); background: rgba(42,22,93,.06); position: relative; overflow: hidden; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.55); transform: translateX(-100%); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* Empty state */
.empty {
  display: grid; justify-items: center; text-align: center; gap: 14px;
  padding: clamp(40px, 7vw, 72px) 24px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px dashed rgba(42,22,93,.3);
}
.empty .lion-chip { width: 84px; height: 84px; border-radius: 50%; background: var(--plum); display: grid; place-items: center; }
.empty .lion-chip img { width: 58px; height: auto; }
.empty h3 { font-size: 1.3rem; color: var(--plum); font-weight: 500; }
.empty p { max-width: 42ch; color: var(--ink-60); }

/* Filter chips */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; position: relative; }
.chip {
  min-height: 42px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid rgba(42,22,93,.25); color: var(--plum);
  font-size: .74rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase;
  transition: background-color .3s, color .3s, border-color .3s;
}
.chip:hover { border-color: var(--plum); }
.chip[aria-pressed="true"] { background: var(--plum); color: var(--white); border-color: var(--plum); }
.chip .count { opacity: .65; margin-left: 4px; font-variant-numeric: tabular-nums; }

.month-group { margin-bottom: 40px; }
.month-label {
  position: sticky; top: calc(var(--header-h) - 1px); z-index: 5;
  display: flex; align-items: center; gap: 14px; padding: 12px 0; margin-bottom: 10px;
  background: var(--ivory); color: var(--plum);
  font-size: .78rem; font-weight: 600; letter-spacing: var(--track-wide); text-transform: uppercase;
}
.month-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Field band (home) ---------- */
.field-band { position: relative; isolation: isolate; color: var(--white); overflow: hidden; background: var(--plum); }
.field-band .bg { position: absolute; inset: -10% 0; z-index: -2; }
.field-band .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.field-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(42,22,93,.35); }
.field-band .wrap { min-height: clamp(440px, 66vh, 620px); display: grid; align-items: end; padding-block: 56px; }
.cta-panel {
  display: grid; gap: 22px; max-width: 560px; padding: clamp(26px, 4vw, 44px);
  background: var(--plum); border-radius: var(--radius-lg);
}
.cta-panel .lion { width: 86px; height: auto; }
.cta-panel h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 300; letter-spacing: .06em; text-transform: uppercase; }
.cta-panel p { color: var(--lilac); }
.cta-panel .btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; color: var(--white); background: var(--plum);
  padding: calc(var(--header-h) + clamp(36px, 6vw, 80px)) 0 clamp(64px, 9vw, 110px);
  overflow: hidden;
}
.page-hero .bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(42,22,93,.55); }
.page-hero .eyebrow { color: var(--lilac); margin-bottom: 18px; }
.page-hero h1 { view-transition-name: page-title; }
.page-hero p { margin-top: 18px; max-width: 46ch; color: rgba(255,255,255,.9); font-size: 1.1rem; }
.page-hero .ridge { height: clamp(48px, 7vw, 90px); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; grid-auto-flow: dense; gap: 10px; list-style: none; margin: 0; padding: 0; }
.gallery li { position: relative; border-radius: 10px; overflow: hidden; }
.gallery li.tall { grid-row: span 2; }
.gallery li.wide { grid-column: span 2; }
.gallery button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery button:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.gallery li:hover img { transform: scale(1.05); }
.tile-ph {
  width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center;
  background: var(--lilac); color: var(--plum);
  font-size: .64rem; font-weight: 600; letter-spacing: var(--track-wide); text-transform: uppercase;
}
.tile-ph .ico { width: 54px; height: 54px; border-radius: 50%; background: var(--plum); display: grid; place-items: center; }
.tile-ph .ico img { width: 36px; height: auto; }
.gallery li:nth-child(3n+2) .tile-ph { background: var(--plum); color: var(--lilac); }
.gallery li:nth-child(3n+2) .tile-ph .ico { background: var(--lavender); }
.gallery li:nth-child(5n+3) .tile-ph { background: var(--lavender); }
.gallery li:nth-child(5n+3) .tile-ph .ico { background: var(--plum); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; gap: 14px; } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; } }

.lightbox { border: 0; padding: 0; max-width: none; max-height: none; width: 100vw; height: 100dvh; background: rgba(27, 14, 61, .94); color: var(--white); }
.lightbox::backdrop { background: rgba(27, 14, 61, .6); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lb-in .35s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; } }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: .75rem; letter-spacing: var(--track); text-transform: uppercase; }
.lb-stage { display: grid; place-items: center; padding: 0 12px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lb-nav { display: flex; justify-content: center; gap: 12px; padding: 16px; }
.icon-btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: transparent; color: inherit; border: 1px solid var(--line-light); cursor: pointer; }
.icon-btn:hover { background: rgba(255,255,255,.08); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(24px, 4vw, 48px); }
.contact-grid:not(.has-info) { max-width: calc(780px + var(--gutter) * 2); }
@media (min-width: 960px) { .contact-grid.has-info { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.info-card { padding: 26px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); display: grid; gap: 6px; margin-bottom: 14px; }
.info-card h2, .info-card h3 { font-size: .7rem; font-weight: 600; letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--ink-60); }
.info-card .big { font-size: clamp(1.2rem, 2.4vw, 1.5rem); color: var(--plum); font-weight: 500; word-break: break-word; }
.info-card a.big { text-decoration: none; background: linear-gradient(var(--lavender), var(--lavender)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease-out); }
.info-card a.big:hover { background-size: 100% 2px; }
.map {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--plum); color: var(--lilac);
}
.map iframe { width: 100%; height: 100%; border: 0; }
.info-card .map, .info-card .directions { margin-top: 10px; }

.form { padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); display: grid; gap: 20px; }
.form h2 { color: var(--plum); }
.field { display: grid; gap: 8px; }
.field label { font-size: .7rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--plum); }
.field label .opt { font-weight: 400; color: var(--ink-60); letter-spacing: .06em; text-transform: none; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  background: var(--ivory); border: 1px solid transparent; border-bottom: 2px solid rgba(42,22,93,.25); border-radius: 8px 8px 2px 2px;
  font-size: 1rem; color: var(--graphite);
  transition: border-color .3s, background-color .3s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--lavender); border-bottom-color: var(--plum); }
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: #9b2c55; }
.field .err { font-size: .82rem; color: #8a1f48; min-height: 1em; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-intro { margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile:empty { display: none; }
.form-status { font-size: .95rem; padding: 14px 16px; border-radius: 8px; background: var(--lilac); color: var(--plum); }
.form-status:empty { display: none; }
.form-status[data-state="error"] { background: #f7e4ec; color: #7a1a3f; }
.form .btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum); color: var(--lilac); }
.footer-top { display: grid; gap: 40px; padding-block: clamp(48px, 7vw, 80px) 36px; }
.footer-logo img { width: min(380px, 100%); height: auto; }
.slogan-panel { background: var(--graphite); color: var(--lavender); padding: 30px 32px; border-radius: var(--radius-lg); }
.slogan-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 300; letter-spacing: .3em; text-transform: uppercase; }
.slogan-panel hr { width: 40px; border: 0; border-top: 1px solid var(--lavender); margin: 22px 0 16px; }
.slogan-panel p { font-size: .72rem; letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--ivory); line-height: 1.7; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.footer-cols h2 { font-size: .68rem; font-weight: 600; letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--lavender); margin-bottom: 14px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-cols a { color: var(--ivory); text-decoration: none; padding: 4px 0; display: inline-block; }
.footer-cols a:hover { color: var(--lavender); }
.footer-bottom { position: relative; padding-block: 22px 28px; font-size: .78rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (min-width: 960px) {
  .footer-top { grid-template-columns: 1.2fr .9fr 1fr; align-items: start; }
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

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

/* picture wrappers inside background layers must fill their box */
.bg picture, .hero-media picture { display: block; width: 100%; height: 100%; }

.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(176,157,217,.25); }

/* header register: flag tucks away until hover/focus so it never hangs over page content */
.header-register.btn-flag .flag { opacity: 0; transform: translateY(-8px) rotate(4deg); transition: opacity .25s, transform .4s var(--ease-spring); }
.header-register.btn-flag:hover .flag, .header-register.btn-flag:focus-visible .flag, .header-register.btn-flag.is-pulled .flag { opacity: 1; }

/* ---------- v2: action photography ---------- */
.hero-media img, .hero-media video { object-position: 34% 30%; }
@media (max-width: 899px) {
  .hero-media img, .hero-media video { object-position: 66% 28%; }
  .hero-scrim { background: rgba(27, 14, 61, .5); }
}
@media (min-width: 900px) {
  .hero-scrim::before { /* feathered plum wash behind the headline column */
    content: ""; position: absolute; inset: 0 45% 0 0; background: rgba(27, 14, 61, .45);
    mask: linear-gradient(90deg, #000 55%, transparent); -webkit-mask: linear-gradient(90deg, #000 55%, transparent);
  }
}
.action-slot.about-photo { animation: none; opacity: 1; max-width: none; justify-self: stretch; aspect-ratio: 16 / 9; background: var(--plum); -webkit-backdrop-filter: none; backdrop-filter: none; }
.action-slot.about-photo[data-reveal]:not(.in) { opacity: 0; }
.action-slot.about-photo picture { display: block; width: 100%; height: 100%; }
.action-slot.about-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease-out); }
.action-slot.about-photo.in img { transform: scale(1); }
.action-slot.about-photo .slot-frame i { border-color: var(--ivory); }
.action-slot.about-photo img { object-position: 50% 28%; }
@media (min-width: 900px) { .action-slot.about-photo { aspect-ratio: 16 / 10; } }

/* hero still: slow cinematic push after the settle-in */
.hero-media img { animation: settle 2.4s var(--ease-out) forwards, drift 26s ease-in-out 2.4s infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.07) translate(-1%, -1%); } }
/* game-day video band */
.field-band .bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; opacity: 0; transition: opacity 1.2s ease; }
.field-band .bg video.is-playing { opacity: 1; }
.field-band .bg img { object-position: 60% 40%; }
