/* LenzSports tokens — dark theme from lenzsports.client/src/assets/base.css */
:root {
  --color-background: #1c1c1c;
  --color-surface: #262626;
  --color-surface-muted: #2f2f2f;
  --color-surface-hover: #2b2b2b;
  --color-border: #363636;
  --color-border-strong: #474747;
  --color-heading: #ffffff;
  --color-text: #d9d9d9;
  --color-text-muted: #a0a0a0;
  --color-text-subtle: #6e6e6e;
  --color-primary: #ec3b2c;
  --color-primary-hover: #d52f21;
  --color-primary-soft: rgba(236, 59, 44, 0.16);
  --gradient-brand: linear-gradient(90deg, #d52f21 0%, #ec3b2c 55%, #ff5a3c 100%);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.55);
  --focus-ring: 0 0 0 3px rgba(236, 59, 44, 0.4);
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;

  --stripes: repeating-linear-gradient(-45deg, var(--color-primary) 0 16px, transparent 16px 40px);
  --stripes-dim: repeating-linear-gradient(-45deg, #232323 0 34px, transparent 34px 80px);
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1240px;
  --color-success: #4ade80;
  --color-success-soft: rgba(74, 222, 128, 0.14);
  --color-danger: #fb7185;
  --color-danger-soft: rgba(251, 113, 133, 0.14);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  color: var(--color-text);
  background: var(--color-background);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--color-heading);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; }

/* ---------- shared bits ---------- */
.rule { width: 34px; height: 2px; background: var(--color-primary); margin: 0 0 20px; border: 0; }

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

.outline-word {
  position: absolute;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.chevrons { color: var(--color-primary); letter-spacing: -0.18em; font-weight: 900; margin-left: 0.15em; }

/* corner-bracket link, like the mockup's "MORE WORK" */
.btn-corner {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: none;
  border: 0;
  transition: color 0.2s, background-color 0.2s;
}
.btn-corner::before, .btn-corner::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--color-primary);
  transition: width 0.25s, height 0.25s;
}
.btn-corner::before { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.btn-corner::after { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.btn-corner:hover { color: #fff; }
.btn-corner:hover::before, .btn-corner:hover::after { width: 100%; height: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-strong);
  background: rgba(38, 38, 38, 0.6);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--color-surface-hover); transform: translateY(-1px); }
.btn-primary { background: var(--color-primary); border-color: var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 12px; }

.arrows { display: inline-flex; gap: 6px; }
.arrows button {
  width: 40px;
  height: 32px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: #fff;
  transition: color 0.15s, transform 0.15s;
}
.arrows button:hover { color: var(--color-primary); }
.arrows button:first-child:hover { transform: translateX(-3px); }
.arrows button:last-child:hover { transform: translateX(3px); }
.arrows svg { width: 24px; height: 14px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
}
/* the scrolled backdrop lives on a pseudo-element: backdrop-filter on the header itself
   would become the containing block for the fixed mobile .nav and squash it to 76px */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: rgba(28, 28, 28, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--color-border);
  transition: opacity 0.3s;
}
.site-header.scrolled::before { opacity: 1; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.header-logo img { height: 60px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  position: relative;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.2s;
}
.nav a:not(.btn):hover::after { width: 100%; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: #fff; margin: 6px 0 6px auto; transition: transform 0.25s, opacity 0.25s, width 0.25s; }
.menu-toggle span:nth-child(1) { width: 24px; }
.menu-toggle span:nth-child(2) { width: 16px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  filter: grayscale(0.35) contrast(1.05);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(28, 28, 28, 0.94) 0%, rgba(28, 28, 28, 0.7) 45%, rgba(28, 28, 28, 0.25) 100%),
    linear-gradient(0deg, var(--color-background) 0%, transparent 30%);
}
/* the mockup's red panel, laid over the footage */
.hero-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 72%;
  z-index: -1;
  background: var(--color-primary);
  mix-blend-mode: multiply;
  opacity: 0.85;
}
.hero-outline { left: -0.04em; top: 96px; font-size: clamp(90px, 17vw, 260px); opacity: 0.55; }

.hero-content { padding-top: 120px; padding-bottom: 120px; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text);
}
.hero-kicker::before { content: ''; width: 34px; height: 2px; background: var(--color-primary); }
.hero h1 { font-size: clamp(46px, 8.4vw, 118px); max-width: 11ch; }
.hero h1 em { font-style: normal; color: var(--color-primary); }
.hero-lede { max-width: 420px; margin: 32px 0 36px; color: var(--color-text); font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.social-rail {
  position: absolute;
  left: calc(var(--gutter) / 2 - 10px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 2;
}
.social-rail a { color: var(--color-primary); transition: color 0.15s; }
.social-rail a:hover { color: #fff; }
.social-rail svg, .footer-social svg { width: 16px; height: 16px; display: block; }

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
}
.scroll-cue i { display: block; width: 1px; height: 54px; background: rgba(255, 255, 255, 0.3); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--color-primary); animation: drip 1.8s infinite; }
@keyframes drip { to { top: 100%; } }

.video-toggle {
  position: absolute;
  left: var(--gutter);
  bottom: 40px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  background: none;
  border: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.2s;
}
.video-toggle:hover { color: #fff; }
.video-toggle:focus-visible { box-shadow: none; }
.video-toggle .icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(28, 28, 28, 0.45);
  backdrop-filter: blur(6px);
  transition: background-color 0.2s, transform 0.2s;
}
.video-toggle:hover .icon { background: var(--color-primary); transform: scale(1.06); }
.video-toggle:active .icon { transform: scale(0.96); }
.video-toggle:focus-visible .icon { box-shadow: var(--focus-ring); }
.video-toggle .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 2; }
.video-toggle .track { stroke: rgba(255, 255, 255, 0.22); }
.video-toggle .progress {
  stroke: var(--color-primary);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--p, 0));
  transition: stroke 0.2s;
}
.video-toggle:hover .progress { stroke: #fff; }
.video-toggle .i-pause, .video-toggle .i-play {
  grid-area: 1 / 1;
  width: 12px;
  height: 12px;
  transition: opacity 0.2s, transform 0.25s;
}
.video-toggle .i-play,
.video-toggle[data-state='paused'] .i-pause { opacity: 0; transform: scale(0.4) rotate(-90deg); }
.video-toggle[data-state='paused'] .i-play { opacity: 1; transform: none; }
.video-toggle .label { min-width: 4.2em; }
/* little level meter that dances while the video runs */
.video-toggle .eq { display: flex; align-items: flex-end; gap: 2px; height: 10px; }
.video-toggle .eq i { width: 2px; height: 100%; background: var(--color-primary); transform-origin: bottom; animation: eq 0.9s ease-in-out infinite alternate; }
.video-toggle .eq i:nth-child(2) { animation-delay: -0.3s; animation-duration: 0.7s; }
.video-toggle .eq i:nth-child(3) { animation-delay: -0.6s; animation-duration: 1.1s; }
.video-toggle[data-state='paused'] .eq i { animation: none; transform: scaleY(0.25); }
@keyframes eq { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: clamp(80px, 12vw, 150px) 0; }

/* about */
.about { overflow: hidden; }
.about-outline { right: -0.06em; top: 30px; font-size: clamp(64px, 11vw, 150px); }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.about-media { position: relative; }
.about-media::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--gutter) - 40px);
  top: 18%;
  width: 70%;
  height: 120%;
  background: var(--stripes);
  z-index: 0;
  clip-path: polygon(0 18%, 100% 0, 100% 62%, 0 100%);
}
.about-media .frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-surface);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.15); }
.about-copy { position: relative; padding-left: 28px; }
.about-copy::before { content: ''; position: absolute; left: 0; top: -120px; bottom: 40%; width: 1px; background: rgba(255, 255, 255, 0.35); }
.about-copy h2 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 30px; }
.about-copy p { color: var(--color-text-muted); margin-bottom: 16px; max-width: 420px; }
.about-copy .btn-corner { margin-top: 14px; }

/* programs */
.programs { padding-top: 0; }
.programs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.programs-head h2 { font-size: clamp(34px, 4.6vw, 58px); }
.tabs { display: flex; gap: 12px; flex-wrap: wrap; }
.tab {
  position: relative;
  min-width: 140px;
  height: 64px;
  padding: 0 18px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.tab::before, .tab::after { content: ''; position: absolute; width: 8px; height: 8px; border: 2px solid var(--color-primary); }
.tab::before { left: -1px; bottom: -1px; border-right: 0; border-top: 0; }
.tab::after { right: -1px; top: -1px; border-left: 0; border-bottom: 0; }
.tab:hover { border-color: var(--color-border-strong); transform: translateY(-2px); }
.tab[aria-selected='true'] { background: var(--color-primary); border-color: var(--color-primary); box-shadow: 0 14px 30px rgba(236, 59, 44, 0.35); }
.tab[aria-selected='true']::before, .tab[aria-selected='true']::after { display: none; }

.program-stage { display: grid; grid-template-columns: 320px 1fr; align-items: end; }
.program-copy { position: relative; z-index: 2; padding: 0 32px 36px 0; }
.program-copy h3 { font-size: 22px; margin-bottom: 18px; }
.program-copy p { color: var(--color-text-muted); margin-bottom: 14px; }
.program-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; padding: 0; list-style: none; }
.program-meta li {
  height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
}
.program-art {
  position: relative;
  aspect-ratio: 16 / 9;
  background: radial-gradient(ellipse at 30% 20%, #3a3a3a 0%, #232323 70%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.program-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.program-art .num {
  position: absolute;
  right: 24px;
  bottom: 6px;
  font-size: clamp(80px, 12vw, 170px);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.25);
}
[data-panel] { animation: fade 0.45s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* rates */
.rates { overflow: hidden; }
.rates::after {
  content: '';
  position: absolute;
  right: -60px;
  top: 70px;
  width: 340px;
  height: 520px;
  background: var(--stripes);
  clip-path: polygon(100% 0, 100% 60%, 0 100%, 0 40%);
  z-index: 0;
}
.rates-outline { left: -0.05em; top: clamp(40px, 7vw, 90px); font-size: clamp(56px, 9vw, 120px); z-index: 2; }
.cards { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(60px, 7vw, 90px); }
.plan {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  transition: transform 0.35s ease;
}
.plan:hover { transform: translateY(-8px); }
.plan:nth-child(1) { background: linear-gradient(160deg, #3a1a16 0%, #262626 60%); }
.plan:nth-child(2) { background: var(--gradient-brand); }
.plan:nth-child(3) { background: linear-gradient(200deg, #2f2f2f 0%, #1f1f1f 70%); }
.plan-title {
  position: absolute;
  top: 26px;
  right: 22px;
  writing-mode: vertical-rl;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 0.92;
}
.plan-icon { position: absolute; left: 26px; top: 30px; width: 54px; height: 54px; color: var(--color-primary); }
.plan:nth-child(2) .plan-icon { color: #fff; }
.plan-fee { position: relative; display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; color: var(--color-heading); }
.plan-fee[hidden] { display: none; }
.plan-fee strong { font-size: clamp(30px, 3vw, 40px); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.plan-fee span { font-size: 13px; color: var(--color-text-muted); }
.plan:nth-child(2) .plan-fee span { color: rgba(255, 255, 255, 0.8); }
.plan p { position: relative; max-width: 74%; font-size: 14px; color: var(--color-text); }
.plan:nth-child(2) p { color: #fff; }

/* matches — live first, then upcoming, then results (see initMatches) */
.matches-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.matches-head h2 { font-size: clamp(34px, 4.6vw, 58px); }
.matches-note { color: var(--color-text-muted); }
.matches-note:empty { display: none; }
.match-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.match-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.2s;
}
.match-link:hover { border-color: var(--color-primary); transform: translateY(-4px); }
.match-link:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.match-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.match-status {
  height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--color-surface-muted);
  color: var(--color-text);
}
.match-status[data-kind="live"] { background: var(--color-primary); color: #fff; }
.match-status[data-kind="live"]::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: live-pulse 1.4s ease-in-out infinite; }
.match-status[data-kind="final"] { background: var(--color-primary-soft); color: var(--color-primary); }
@keyframes live-pulse { 50% { opacity: 0.3; } }
.match-meta { font-size: 12px; color: var(--color-text-subtle); text-align: right; }
.match-side { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--color-border); }
.match-side .names { font-weight: 700; color: var(--color-heading); overflow-wrap: anywhere; }
.match-side .games { font-size: 28px; font-weight: 900; line-height: 1; color: var(--color-text-subtle); font-variant-numeric: tabular-nums; }
.match-side.is-winner .games { color: var(--color-primary); }
.match-when { margin-top: auto; padding-top: 14px; font-size: 12px; color: var(--color-text-subtle); }

/* community */
.community { padding-top: 20px; overflow-x: clip; }
.community-grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(28px, 4vw, 56px); }
.community h2 { font-size: clamp(32px, 4.2vw, 54px); margin-bottom: 36px; max-width: 14ch; }
.community-line { position: absolute; left: calc(var(--gutter) - 24px); top: -60px; height: 220px; width: 1px; background: rgba(255, 255, 255, 0.35); }
.community-copy p { color: var(--color-text-muted); margin-bottom: 16px; }
.news-wrap { min-width: 0; }
.news-head { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.news {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.news::-webkit-scrollbar { display: none; }
.news-card {
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.2s;
}
.news-card:hover { border-color: var(--color-primary); transform: translateY(-4px); }
.news-card .kind {
  align-self: flex-start;
  height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  margin-bottom: 18px;
}
.news-card h3 { font-size: 20px; line-height: 1.1; margin-bottom: 12px; }
.news-card p { color: var(--color-text-muted); font-size: 14px; }
.news-card .by { margin-top: auto; padding-top: 18px; font-size: 12px; color: var(--color-text-subtle); }

/* club facts — the mockup's "Our partners" row */
.facts { display: grid; grid-template-columns: 260px repeat(4, 1fr); gap: 16px; align-items: center; margin-top: clamp(60px, 8vw, 100px); }
.facts h2 { font-size: clamp(28px, 3vw, 38px); }
.fact {
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: background-color 0.2s;
}
.fact:hover { background: var(--color-surface); }
.fact strong { font-size: 30px; font-weight: 900; color: #fff; line-height: 1.1; }
.fact span { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); }

/* split call to action */
.cta { display: grid; grid-template-columns: 1fr 1fr; }
.cta a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 220px;
  padding: 40px clamp(24px, 6vw, 80px);
  overflow: hidden;
}
.cta a h2 { position: relative; font-size: clamp(26px, 3vw, 40px); max-width: 15ch; transition: transform 0.3s; }
.cta a:hover h2 { transform: translateX(10px); }
.cta .dark { background: #141414; }
.cta .red { background: var(--color-primary); }
.cta .red::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.06) 0 40px, transparent 40px 90px);
}
.cta .go {
  position: absolute;
  right: clamp(20px, 4vw, 50px);
  bottom: 28px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.cta .dark .go { color: var(--color-primary); }

/* footer */
.site-footer { padding: 70px 0 0; background: var(--color-background); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 50px; }
.footer-nav { display: grid; gap: 10px; }
.footer-nav a { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; }
.footer-nav a:hover { color: var(--color-primary); }
.footer-brand { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 30px; }
.footer-brand img { height: 46px; width: auto; }
.footer-social { display: flex; gap: 22px; }
.footer-social a { color: var(--color-primary); }
.footer-social a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0 calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-primary-soft);
  font-size: 12px;
  color: var(--color-text-muted);
}
.footer-bottom a:hover { color: #fff; }

/* page-edge background stripes, as in the mockup */
.edge-stripes {
  position: absolute;
  width: 300px;
  height: 600px;
  background: var(--stripes-dim);
  z-index: -1;
  pointer-events: none;
}
.about-stripes { left: -140px; top: 40px; }
.community-stripes { right: -120px; top: 200px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .about-grid, .community-grid, .program-stage { grid-template-columns: 1fr; }
  .about-copy::before { display: none; }
  .about-copy { padding-left: 0; }
  .program-copy { padding: 0 0 28px; order: 2; }
  .program-art { order: 1; margin-bottom: 28px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts h2 { grid-column: 1 / -1; margin-bottom: 8px; }
  .community-line { display: none; }
  .match-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: rgba(20, 20, 20, 0.97);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
  }
  .nav a { font-size: 18px; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open .menu-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav-open .menu-toggle span:nth-child(2) { width: 24px; transform: translateY(-4px) rotate(-45deg); }
  .social-rail { display: none; }
  .hero-panel { width: 55%; height: 45%; }
  .cards { grid-template-columns: 1fr; }
  .plan { aspect-ratio: auto; min-height: 340px; }
  .cta { grid-template-columns: 1fr; }
  .rates::after { width: 200px; height: 360px; }
}

@media (max-width: 520px) {
  .header-logo img { height: 50px; }
  .hero-actions .btn { flex: 1; }
  .tab { min-width: 0; flex: 1 1 calc(50% - 6px); height: 54px; }
  .scroll-cue { display: none; }
  .footer-brand { align-items: flex-start; }
  .match-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue i::after, [data-panel], .video-toggle .eq i, .match-status::before { animation: none; }
}
