/* Primal Fest 2026 — shared theme (v3, "athletic-event" revamp)
   Inspired by CrossFit Games / Spartan Race: near-black grounds, bold
   condensed display type, hard-edged CTAs, high-contrast banding.
   One file, all 4 pages. Edit here, it changes everywhere. */

/* Self-hosted display font — no external Google Fonts dependency.
   Faster first paint, no font-flash, works offline / on any host. */
@font-face {
  font-family: 'Bebas Neue';
  src: url('fonts/BebasNeue.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Body face — Source Sans 3, self-hosted latin subset (~31KB total, 2 weights).
   Canonical pairing with Bebas Neue for event/sports pages (UI/UX Pro Max).
   Humanist sans: tall x-height, open counters — built for sustained reading. */
@font-face {
  font-family: 'Source Sans 3';
  src: url('fonts/SourceSans3-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('fonts/SourceSans3-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #0b0b0d;
  --primary-2: #1a1a1d;
  --secondary: #ff5a1f;
  --secondary-glow: rgba(255, 90, 31, 0.5);
  --accent: #0074d9;
  --light: #f7f7f7;
  --text-dark: #131315;
  --text-body: #33333a;   /* primary reading ink — darker than meta, ~10:1 on white */
  --text-light: #63636b;  /* secondary / meta only — ~5.9:1 on white */
  --text-on-dark: #d6d6d9;
  --border: #e6e6e6;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-display: 'Bebas Neue', 'Oswald', 'Source Sans 3', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  font-size: 1.0625rem;   /* 17px — reading-comfort floor; phones held at arm's length */
  line-height: 1.6;
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;   /* Bebas Neue ships weight 400 only — 700 forced a muddy faux-bold */
  line-height: 1.05;
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.01em;
  color: var(--text-dark);
  text-wrap: balance;   /* kill orphan words in display headings */
}

/* Fluid display scale — smooth from phone to desktop, no breakpoint slam */
h1 { font-size: clamp(2.5rem, 1.4rem + 5.5vw, 4.75rem); text-transform: uppercase; letter-spacing: 0.015em; }
h2 { font-size: clamp(2.1rem, 1.5rem + 3vw, 3rem); text-transform: uppercase; }
h3 { font-size: clamp(1.6rem, 1.3rem + 1.5vw, 1.85rem); text-transform: uppercase; }
h4 { font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.02em; }

/* Small orange kicker rule above section H2s */
.section h2 {
  position: relative;
  padding-left: 1.2rem;
}
.section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.1em;
  bottom: 0.1em;
  width: 7px;
  background: var(--secondary);
}
.section-alt h2 { color: #fff; }
.section-alt > .container > p { color: var(--text-on-dark); }

p { margin-bottom: var(--spacing-md); color: var(--text-body); }

/* Bold body text = Source Sans 3 600 (only 400/600 self-hosted — 700 would
   faux-bold). Real weight, not synthetic. */
strong, b { font-weight: 600; }

/* Measure — cap lead/intro prose at a comfortable line length (~65ch).
   Scoped to direct-of-container paragraphs so cards/footer/timeline
   (which set their own widths + colors) are untouched. */
.section > .container > p { max-width: 65ch; }
.hero .event-info { max-width: 60ch; margin-left: auto; margin-right: auto; }
/* Lead/intro prose reads in full-strength body ink (~10:1), not muted meta —
   muted grey is reserved for genuinely secondary text (card copy, captions). */
.section:not(.section-alt) > .container > p { color: var(--text-body); }

a { color: var(--secondary); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent); }

button, .btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--secondary);
  color: white;
  border: 2px solid var(--secondary);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;   /* Bebas 400 only; 700 was faux-bold */
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  box-shadow: 0 4px 14px var(--secondary-glow);
}

button:hover, .btn:hover {
  background: transparent;
  color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px var(--secondary-glow);
}

button:active, .btn:active { transform: translateY(-1px); }

/* Secondary CTA sitting next to a solid orange one. Outlined rather than a second
   fill, so the primary action stays the only filled button on the screen. */
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  box-shadow: none;
}
.btn-ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--primary);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* Keyboard focus — visible ring on every interactive element (WCAG 2.4.7).
   :focus-visible so mouse users never see it, keyboard users always do. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
/* On the dark header the blue ring can read low — use the orange there.
   Same applies to the promo modal, which is the same Void Black surface. */
.site-header a:focus-visible,
.site-nav a:focus-visible,
.nav-toggle:focus-visible,
.modal-card a:focus-visible,
.modal-card button:focus-visible {
  outline-color: var(--secondary);
}

/* Skip-to-content link — first tab stop, hidden until focused (WCAG 2.4.1). */
.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  z-index: 300;
  background: var(--secondary);
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.7rem 1.4rem;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 0;
  color: #fff;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-lg); }
.section { padding: var(--spacing-xl) 0; }

.section-alt {
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 26px),
    var(--primary);
  border-top: 3px solid var(--secondary);
  border-bottom: 3px solid rgba(255,255,255,0.08);
}

/* ============ HEADER / NAV ============ */
.site-header {
  background: rgba(11, 11, 13, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 200;
  padding: var(--spacing-md) 0;
  transition: padding 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  padding: 0.65rem 0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
}

.logo { display: flex; align-items: center; gap: var(--spacing-md); font-weight: 800; font-size: 1.1rem; }
.logo img { height: 40px; width: auto; transition: height 0.25s var(--ease); display: block; }
.site-header.is-scrolled .logo img { height: 32px; }
.logo a {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: #fff;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  cursor: pointer;
  z-index: 210;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: flex; gap: var(--spacing-lg); align-items: center; }
.site-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--secondary);
  transition: right 0.25s var(--ease);
}
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }
.site-nav a.active { color: var(--secondary); }
.site-nav a.btn::after { display: none; }

/* ============ HERO ============ */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-2) 100%);
  color: white;
  padding: 9rem var(--spacing-lg) 6.5rem;
  text-align: center;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Full-bleed event photo + dark scrim (lighter top, heavy bottom) so the
     white headline / CTAs stay legible over the image. Athletic-event pattern. */
  background-image:
    linear-gradient(180deg,
      rgba(11, 11, 13, 0.55) 0%,
      rgba(11, 11, 13, 0.45) 38%,
      rgba(11, 11, 13, 0.82) 100%),
    var(--hero-image, url('images/hero.jpeg'));
  background-size: cover, cover;
  background-position: center, center;
  filter: grayscale(0.12) contrast(1.05);
  opacity: 1;
  z-index: -2;
  animation: hero-drift 24s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 12% 15%, var(--secondary-glow), transparent 45%),
    radial-gradient(circle at 88% 85%, rgba(255, 90, 31, 0.18), transparent 45%);
  z-index: -1;
  animation: hero-glow 10s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1.04) translate(0, 0); }
  to   { transform: scale(1.12) translate(-1.5%, -1.5%); }
}
@keyframes hero-glow {
  from { opacity: 0.7; }
  to   { opacity: 1; }
}

.hero-content { max-width: 820px; position: relative; }

/* Block-level, not inline-flex: the hero centres its children with text-align,
   so an inline logo lets the .eyebrow pill flow up beside it on the same line. */
.hero-logo {
  display: flex;
  width: fit-content;
  align-items: center;
  background: #fff;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  margin: 0 auto var(--spacing-lg);
  animation:
    logo-enter 0.9s var(--ease) both,
    logo-glow 3s ease-in-out 0.9s infinite;
}
.hero-logo img {
  height: 42px;
  width: auto;
  display: block;
  transform-origin: 70% 100%;
  animation: logo-bob 2.2s ease-in-out 0.9s infinite;
}

@keyframes logo-enter {
  from { opacity: 0; transform: translateX(-48px) scale(0.9); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes logo-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-3px) rotate(-1.5deg); }
  50%      { transform: translateY(-7px) rotate(0deg); }
  75%      { transform: translateY(-3px) rotate(1.5deg); }
}
@keyframes logo-glow {
  0%, 100% { box-shadow: 0 12px 30px rgba(0,0,0,0.28), 0 0 0 rgba(255,90,31,0); }
  50%      { box-shadow: 0 12px 30px rgba(0,0,0,0.28), 0 0 36px 8px var(--secondary-glow); }
}

/* Sponsor row sitting on the hero photo — live's placement (bottom of the hero, one
   centred row: Empower, Muscle Mind, Yoga Moves). Each mark rides a white chip: all
   three are dark artwork on a light background and would sink into the Void Black
   scrim if placed bare the way live does over its brighter, unscrimmed photo. */
.hero-sponsors {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}
.hero-sponsors li {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 4px;
  padding: 0.45rem 0.9rem;
}
/* Uniform height, natural widths — same as live, which renders all three at h=108. */
.hero-sponsors img { display: block; height: 64px; width: auto; }

.hero .eyebrow {
  display: inline-block;
  padding: 0.4rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,0.08);
  margin-bottom: var(--spacing-md);
  animation: fade-up 0.7s var(--ease) both;
}

.hero h1 {
  font-size: clamp(2.5rem, 1.2rem + 6.6vw, 5.5rem);
  margin-bottom: var(--spacing-md);
  color: white;
  /* Guarantees legibility over bright regions of the hero photo. */
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.5);
  animation: fade-up 0.8s var(--ease) both 0.08s;
}

.hero .tagline {
  font-size: clamp(1.3rem, 1rem + 1.5vw, 1.75rem);
  margin-bottom: var(--spacing-md);
  color: var(--secondary);
  font-weight: 600;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
  animation: fade-up 0.8s var(--ease) both 0.18s;
}

.hero .event-info {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
  color: #ececec;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
  animation: fade-up 0.8s var(--ease) both 0.26s;
}

.hero .cta-group {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fade-up 0.8s var(--ease) both 0.34s;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Countdown strip */
.countdown {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  margin-top: var(--spacing-lg);
  animation: fade-up 0.8s var(--ease) both 0.42s;
}
.countdown .unit {
  min-width: 72px;
  padding: 0.6rem 0.4rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-top: 2px solid var(--secondary);
  border-radius: 4px;
}
.countdown .num { font-family: var(--font-display); font-size: 1.9rem; color: white; line-height: 1; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.countdown .label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: #bbb; margin-top: 4px; }

/* ============ FULL EXPERIENCE ============ */
/* Subpage hero — no countdown/sponsors to carry, so it shouldn't reserve hero height. */
.hero-compact { min-height: 0; padding-top: 7rem; padding-bottom: 4rem; }

.schedule-sub { color: #fff; margin-top: var(--spacing-xl); margin-bottom: var(--spacing-md); }
.section:not(.section-alt) .schedule-sub { color: var(--text-dark); }

.workshop-list { list-style: none; display: grid; gap: var(--spacing-sm); max-width: 70ch; }
.workshop-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-on-dark);
  line-height: 1.5;
}
/* Orange marker instead of a default disc — matches the h2 kicker rule. */
.workshop-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6em;
  width: 8px; height: 2px;
  background: var(--secondary);
}
.section:not(.section-alt) .workshop-list li { color: var(--text-body); }

.recover-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
}
/* Sauna Sesh mark is dark artwork — same white chip the hero sponsors use. */
.recover-logo {
  flex: 0 0 auto;
  width: 190px; height: auto;
  background: #fff;
  border-radius: 4px;
  padding: var(--spacing-md);
}
.recover-copy { flex: 1 1 320px; }
.recover-headline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1rem + 2vw, 2.1rem);
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
}
.recover-running {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: var(--spacing-md);
}
.recover-list { list-style: none; display: grid; gap: var(--spacing-xs); margin-bottom: var(--spacing-md); }
.recover-list li { position: relative; padding-left: 1.5rem; }
.recover-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6em;
  width: 8px; height: 2px;
  background: var(--secondary);
}
.recover-kicker {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--secondary);
}
@media (max-width: 768px) {
  .recover-band { gap: var(--spacing-md); }
  .recover-logo { width: 140px; }
}

/* ============ PROMO MODAL ============ */
/* Sits above the header (200) and the nav scrim (190) — see the tap-swallowing bug
   those two caused. Nothing else on the page may stack above this while it's open. */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: var(--spacing-md); }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: modal-fade 0.3s var(--ease); }
.modal-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 460px);
  max-height: 88vh;
  overflow-y: auto;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-lg);
  background: var(--primary);
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 3px solid var(--secondary);
  border-radius: 4px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.6);
  animation: modal-rise 0.42s var(--ease);
}
/* Same white pill the hero and subscribe band use — Tim's mark is black artwork on
   transparent and disappears on Void Black. */
.modal-logo-pill { display: flex; align-items: center; width: fit-content; background: #fff; padding: 0.6rem 1.4rem; border-radius: 999px; margin: 0 auto var(--spacing-md); }
.modal-logo-pill img { display: block; height: 40px; width: auto; }
/* Dark surface — h2 inherits --text-dark globally and would sit at 1.06:1 here.
   Same flip .section-alt does. */
.modal-card h2 { color: #fff; font-size: clamp(1.5rem, 5vw, 2rem); margin-bottom: var(--spacing-xs); }
.modal-card > p { color: var(--text-on-dark); font-size: 0.95rem; margin-bottom: var(--spacing-lg); }
.modal-card .btn { width: 100%; }
.modal-close {
  position: absolute; top: 0.5rem; right: 0.5rem;
  width: 44px; height: 44px;              /* 44px — same tap-target floor as the nav */
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer;
  color: var(--text-on-dark); font-size: 1.8rem; line-height: 1;
  transition: color 0.2s var(--ease);
}
.modal-close:hover { color: #fff; }
.modal-dismiss {
  display: block; margin: var(--spacing-md) auto 0;
  min-height: 44px; padding: 0 var(--spacing-md);
  background: none; border: 0; cursor: pointer;
  color: var(--text-on-dark); font-size: 0.9rem;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
.modal-dismiss:hover { color: #fff; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-rise { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ============ REVEAL ON SCROLL ============ */
/* Shorter travel + quicker settle than the original 28px/0.7s, which read floaty.
   --rd is the stagger delay: site.js sets it per item so a row of cards arrives in
   sequence instead of all on one frame. Simultaneous arrival is the cheap tell. */
.reveal-init {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: var(--rd, 0s);
  will-change: opacity, transform;
}
.reveal-in { opacity: 1; transform: translateY(0); }
/* Drop the compositor hint once it's landed — holding a layer per card costs memory
   for motion that never runs again (reveals unobserve after firing). */
.reveal-done { will-change: auto; }

/* ============ CARDS ============ */
.cards-grid, .card-grid, .grid, .vendors-grid, .team-grid, .ticket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.card, .grid-item, .vendor-card {
  background: white;
  border: 1px solid var(--border);
  border-top: 3px solid var(--secondary);
  border-radius: 4px;
  padding: var(--spacing-lg);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.card { text-align: center; }

/* Card icons — inline SVG (replaces emoji: consistent render across OS/browser,
   reads pro at demo time; flagged by UI/UX Pro Max pre-delivery checklist). */
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  margin: 0 auto var(--spacing-md);
  border-radius: 50%;
  background: rgba(255, 90, 31, 0.1);
  border: 2px solid rgba(255, 90, 31, 0.3);
  color: var(--secondary);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card-icon { transform: translateY(-2px) scale(1.06); background: rgba(255, 90, 31, 0.18); border-color: var(--secondary); }

.card:hover, .grid-item:hover, .vendor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.25);
}

.card h3, .grid-item h3, .vendor-card h3 { color: var(--secondary); }
.card p, .grid-item p, .vendor-card p { color: var(--text-light); }
.card p:last-child, .vendor-card p:last-child { margin-bottom: 0; }

.grid-item ul { list-style: none; margin-top: var(--spacing-md); }
.grid-item li { padding: var(--spacing-xs) 0; }
.grid-item li:before { content: '→ '; color: var(--secondary); font-weight: 700; }

.vendor-card .category {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: var(--spacing-sm);
}
.vendor-card .location { font-size: 0.9rem; color: var(--text-light); margin-bottom: var(--spacing-sm); }

.emphasis {
  background: linear-gradient(135deg, #fff8f3 0%, #fff0e6 100%);
  border-left: 4px solid var(--secondary);
  padding: var(--spacing-lg);
  border-radius: 4px;
  margin: var(--spacing-lg) 0;
}
.emphasis p { color: var(--text-dark); }
.emphasis p:last-child { margin-bottom: 0; }

/* ============ VENDOR VILLAGE + RAFFLE (ported 7/16 from live-capture) ============ */
.vv-intro { max-width: 760px; font-size: 1.1rem; }
.section-alt .vv-intro { color: var(--text-on-dark); }
.vv-lead, .raffle-lead { font-size: 1.15rem; font-weight: 600; color: var(--text-dark); }
.section-alt .raffle-lead { color: #fff; }

/* Tier heading between the sponsor row and the open vendor grid. */
.vv-tier {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-top: var(--spacing-xl);
}

/* Vendor logo chip — the same white pill the hero sponsors and recover band use,
   because several vendor marks are dark artwork that would vanish on the card. */
.vendor-logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 4px;
  padding: 0.5rem 0.7rem;
  margin-bottom: var(--spacing-sm);
}
.vendor-logo-pill img { display: block; height: 52px; width: auto; }

/* The vendor's workshop/offer line — orange, set apart from the plain description. */
.vendor-card .vendor-note {
  color: var(--secondary);
  font-weight: 600;
  margin-top: var(--spacing-sm);
}

.vv-perks { list-style: none; margin: var(--spacing-md) 0; display: grid; gap: var(--spacing-xs); }
.vv-perks li { position: relative; padding-left: 1.5rem; color: var(--text-body); }
.vv-perks li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 8px; height: 2px; background: var(--secondary); }

/* Outline button for LIGHT sections — .btn-ghost is white-on-dark and vanishes here. */
.btn-outline {
  background: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
  box-shadow: none;
}
.btn-outline:hover { background: var(--secondary); color: #fff; }

/* Raffle prize grid — tighter than vendor cards; business name over prize. */
.prize-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}
.prize-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--secondary);
  border-radius: 4px;
  padding: var(--spacing-md);
  text-align: center;
}
.prize-card h3 { color: var(--secondary); margin-bottom: var(--spacing-xs); }
.prize-card p { color: var(--text-dark); font-weight: 600; margin-bottom: 0; }
.prize-card .prize-value { color: var(--text-light); font-weight: 400; font-size: 0.9rem; margin-top: var(--spacing-xs); }

/* Departments list under Tickets for Heroes (dark section). */
.hero-depts { list-style: none; margin: var(--spacing-md) 0; display: grid; gap: var(--spacing-xs); }
.hero-depts li { position: relative; padding-left: 1.5rem; font-weight: 600; color: var(--text-on-dark); }
.hero-depts li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 8px; height: 2px; background: var(--secondary); }

.center, .center .container { text-align: center; }

/* ============ TIMELINE ============ */
.timeline { position: relative; padding: var(--spacing-xl) 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  /* Fades out toward the end of the day. --accent is the blue focus-ring colour;
     it has no business painting a brand surface. */
  background: linear-gradient(var(--secondary), rgba(255, 90, 31, 0.15));
}
/* Clear the axis by a gutter, not just 50% — at a flat 50% the time label butts
   against the centre line and the diamond marker prints straight through it. */
.timeline-item { margin-bottom: var(--spacing-xl); padding-left: calc(50% + var(--spacing-lg)); position: relative; }
.timeline-item:nth-child(odd) { padding-left: 0; padding-right: calc(50% + var(--spacing-lg)); text-align: right; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(50% - 7px);
  top: var(--spacing-md);
  width: 14px; height: 14px;
  background: var(--secondary);
  border: 3px solid var(--primary);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px var(--secondary-glow);
}
.timeline-time { font-family: var(--font-display); color: var(--secondary); font-size: 1.3rem; margin-bottom: var(--spacing-sm); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.timeline-content {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: var(--spacing-md);
  border-radius: 4px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.timeline-content p { color: var(--text-on-dark); margin-bottom: 0; }
.timeline-item:hover .timeline-content { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,0.3); }

/* ============ TEAM ============ */
.team-member { text-align: center; }
.team-member img {
  width: 100%; height: 250px; object-fit: cover;
  border-radius: 4px; margin-bottom: var(--spacing-md);
  filter: grayscale(0.15) contrast(1.05);
  transition: transform 0.3s var(--ease);
}
.team-member:hover img { transform: scale(1.03); }
.team-member h4 { margin-bottom: var(--spacing-xs); }
.team-member .role { font-family: var(--font-display); color: var(--secondary); font-size: 1rem; margin-bottom: var(--spacing-sm); }
.team-member .bio { font-size: 0.9rem; color: var(--text-light); }

/* ============ TICKETS ============ */
/* Column flex + margin-top:auto on the CTA so every tier's button sits on the
   same baseline — the grid stretches all four cards to the tallest one. */
.ticket {
  background: white;
  border: 2px solid var(--border);
  border-radius: 4px;
  padding: var(--spacing-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ticket .btn { margin-top: auto; align-self: center; }
.ticket.featured { border-color: var(--secondary); box-shadow: 0 12px 30px var(--secondary-glow); }
.ticket.featured::before {
  content: 'POPULAR';
  position: absolute;
  top: 18px; right: -34px;
  transform: rotate(45deg);
  background: var(--secondary);
  color: white;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 0.3rem 2.5rem;
}
.ticket .price { font-family: var(--font-display); font-size: 3rem; color: var(--secondary); margin-bottom: var(--spacing-sm); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.ticket h4 { color: var(--text-dark); margin-bottom: var(--spacing-md); }
.ticket ul { list-style: none; text-align: left; font-size: 0.9rem; margin-bottom: var(--spacing-lg); }
.ticket ul li { padding: var(--spacing-xs) 0; color: var(--text-light); }
.ticket ul li:before { content: '✓ '; color: var(--secondary); font-weight: 700; margin-right: var(--spacing-xs); }

/* ============ FOOTER ============ */
.site-footer { background: var(--primary); color: white; padding: var(--spacing-xl) 0 var(--spacing-lg); margin-top: var(--spacing-xl); border-top: 3px solid var(--secondary); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--spacing-lg); margin-bottom: var(--spacing-lg); }
.footer-col h4 { color: var(--secondary); margin-bottom: var(--spacing-md); }
.footer-col p, .footer-col a { color: #ccc; font-size: 0.95rem; }
.footer-col a:hover { color: var(--secondary); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: var(--spacing-sm); }
.social { display: flex; gap: var(--spacing-md); }
.footer-bottom { border-top: 1px solid #333; padding-top: var(--spacing-lg); text-align: center; color: #999; font-size: 0.9rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--primary);
    border-left: 1px solid rgba(255,255,255,0.1);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--spacing-lg);
    padding: 6.5rem var(--spacing-lg) var(--spacing-lg);
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    box-shadow: -12px 0 40px rgba(0,0,0,0.4);
    z-index: 205;
  }
  body.nav-open .site-nav { transform: translateX(0); }

  .site-nav a { font-size: 1.3rem; width: 100%; }
  .site-nav a.btn { text-align: center; }

  /* Must stay BELOW .site-header (z-index 200). The header is a sticky stacking
     context, so .site-nav's z-index only ranks it inside the header — against the
     page the whole header paints at 200. A scrim above 200 covers the open menu
     and swallows every tap on it. */
  body.nav-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 190;
  }
}

/* ============ SECTION SUBTITLE ============ */
.section-sub {
  font-family: var(--font-display);
  color: var(--secondary);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-bottom: var(--spacing-sm);
}
.section-note { font-style: italic; font-size: 0.95rem; margin-top: var(--spacing-lg); }
.section-alt .section-note { color: var(--text-on-dark); }

/* ============ FACT BAND ============ */
.fact-band { padding: var(--spacing-lg) 0; }
.fact-pills { display: flex; flex-wrap: wrap; gap: var(--spacing-md); justify-content: center; list-style: none; }
.fact-pills li {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  padding: 0.55rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-bottom: 2px solid var(--secondary);
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  color: #fff;
}

/* ============ CATEGORY TILE ART ============ */
/* Full-bleed to the card's top edge: the card has --spacing-lg padding, so pull
   the image out by that much on three sides and let the orange border-top cap it. */
.card-media-frame {
  display: block;
  overflow: hidden;
  width: calc(100% + 2 * var(--spacing-lg));
  margin: calc(-1 * var(--spacing-lg)) calc(-1 * var(--spacing-lg)) var(--spacing-md);
  border-radius: 2px 2px 0 0;
}
.card-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.card:hover .card-media { transform: scale(1.05); }

/* Five tiles, wrapping 3+2 — live's own behaviour. Forcing all five into one row
   squeezed each to ~200px and shredded the copy into a narrow rag; the orphan is the
   lesser evil, and it's what Tim's site already does. */
#experience .cards-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
@media (min-width: 900px) {
  #experience .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============ SPONSORS ============ */
.sponsor-card { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; }
.sponsor-card img { max-width: 190px; height: 92px; object-fit: contain; margin-bottom: var(--spacing-md); }
/* Live copy breaks "Empower Physical Therapy," / "Wakefield, MA" across two lines — preserved verbatim. */
.sponsor-card h3 { white-space: pre-line; font-size: 1.15rem; margin-bottom: 0; }

/* ============ FIRST RESPONDERS ============ */
.heroes-list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--spacing-sm); justify-content: center; margin: var(--spacing-md) 0; }
.heroes-list li {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--secondary);
  border-radius: 3px;
  color: var(--text-dark);
  background: white;
}

/* ============ FAQ ============ */
/* Keeps the ~700px reading measure but stays flush with the section heading —
   auto margins centred it under a left-aligned h2 and it read as a stray column. */
.faq { max-width: 700px; margin: var(--spacing-lg) 0 0; }
.faq-item { padding: var(--spacing-md) 0; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { color: var(--secondary); font-size: 1.25rem; margin-bottom: var(--spacing-sm); }
.faq-item p:last-child { margin-bottom: 0; }

/* ============ SUBSCRIBE ============ */
.subscribe { text-align: center; }
/* h2 is inline-block so the ::before accent bar hugs the centred text instead of
   anchoring to the full-width block edge. Same for the copy beneath it. */
.subscribe h2 { display: inline-block; }
.subscribe > .container > p { margin-left: auto; margin-right: auto; }

/* Tim's logo artwork is BLACK on transparent — built for his light Wix page, it
   vanishes on Void Black. Same white pill the hero uses to carry it on dark. */
.subscribe-logo-pill {
  display: flex;
  align-items: center;
  width: fit-content;
  background: #fff;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  margin: 0 auto var(--spacing-lg);
}
.subscribe-logo { display: block; height: 54px; width: auto; max-width: 100%; }
.subscribe-form { display: flex; gap: var(--spacing-sm); justify-content: center; flex-wrap: wrap; margin-top: var(--spacing-md); }
.subscribe-form input {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  min-width: 260px;
}
.subscribe-form input::placeholder { color: #999; }
.subscribe-form input:focus { outline: 2px solid var(--secondary); outline-offset: 1px; }

@media (max-width: 768px) {
  /* h1/h2/hero sizes now handled fluidly by clamp() — no hard override needed */
  .container { padding: 0 var(--spacing-md); }
  .subscribe-form input { min-width: 0; width: 100%; }
  .hero .eyebrow {
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    max-width: 100%;
    white-space: normal;   /* let the date/venue pill wrap instead of overflowing */
  }
  .hero { padding: 4rem var(--spacing-md) 3rem; }
  .hero-sponsors { gap: var(--spacing-sm); }
  .hero-sponsors img { height: 40px; }
  .hero-sponsors li { padding: 0.35rem 0.6rem; }
  .hero .cta-group { flex-direction: column; }
  .countdown { flex-wrap: wrap; }
  .timeline::before { left: var(--spacing-md); }
  .timeline-item { padding-left: var(--spacing-lg); padding-right: 0; text-align: left; }
  .timeline-item:nth-child(odd) { padding-left: var(--spacing-lg); padding-right: 0; text-align: left; }
  .timeline-item::before { left: calc(var(--spacing-md) - 7px); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before, .hero::after { animation: none; }
  .reveal-init { opacity: 1; transform: none; transition: none; transition-delay: 0s; }
  .modal-backdrop, .modal-card { animation: none; }
  .hero .eyebrow, .hero h1, .hero .tagline, .hero .event-info, .hero .cta-group, .countdown { animation: none; }
  .hero-logo, .hero-logo img { animation: none; }
}
