/* ==========================================================================
   RAD COACHING — prototype design system
   Built on the real RAD Esports brand: red #E5062F on black, Barlow type,
   #GOWILD attitude. Custom tokens (not a framework default) so it reads as
   hand-built, not templated.
   ========================================================================== */

:root {
  /* --- palette --- */
  --rad-red:      #e5062f;
  --rad-red-hot:  #ff2d4f;
  --rad-red-deep: #a80322;
  --ink:          #08080a;   /* page bg */
  --ink-2:        #0e0e11;   /* raised surface */
  --ink-3:        #16161b;   /* card */
  --paper:        #f3f1ee;   /* primary text (warm white) */
  --muted:        #9a9aa2;   /* secondary text */
  --muted-2:      #6c6c74;   /* faint / decorative text (bumped for contrast) */
  --line:         rgba(243, 241, 238, 0.10);
  --line-2:       rgba(243, 241, 238, 0.06);

  /* --- type --- */
  --display: "Barlow Condensed", -apple-system, sans-serif;
  --body:    "Barlow", -apple-system, sans-serif;
  --mono:    "Azeret Mono", ui-monospace, "SFMono-Regular", monospace;

  /* --- rhythm (8pt) --- */
  --gutter: clamp(20px, 5vw, 80px);
  --maxw: 1320px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- reset-ish --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--rad-red); color: #fff; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* --- utility --- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--rad-red);
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--rad-red);
  display: inline-block;
}
.idx {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--muted-2);
  font-size: 0.8rem;
}
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 0.92; letter-spacing: -0.01em; text-transform: uppercase; }
.text-red { color: var(--rad-red); }
.text-stroke {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--muted-2);
}

/* --- section frame --- */
.section { position: relative; padding-block: clamp(90px, 12vh, 170px); }
.section-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 3.5rem; }
.section-head .idx { flex: none; padding-top: 0.4rem; }
.section-title { font-size: clamp(2.4rem, 6vw, 5rem); }

/* grain + film overlays (fixed, above bg, below content) */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,8,10,0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { height: 34px; width: auto; }
.nav-brand .lockup { font-family: var(--display); font-weight: 800; letter-spacing: 0.02em; line-height: 0.9; text-transform: uppercase; font-size: 1.05rem; }
.nav-brand .lockup small { display: block; font-size: 0.62rem; letter-spacing: 0.34em; color: var(--muted); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-family: var(--display); text-transform: uppercase; font-weight: 600;
  letter-spacing: 0.12em; font-size: 0.9rem; color: var(--muted);
  transition: color .25s;
}
.nav-links a:hover { color: var(--paper); }
.nav-cta {
  font-family: var(--display); text-transform: uppercase; font-weight: 700;
  letter-spacing: 0.08em; font-size: 0.9rem;
  color: var(--paper) !important; padding: 10px 20px;
  border: 1px solid var(--rad-red); border-radius: 2px;
  background: var(--rad-red); transition: background .25s, color .25s, transform .25s;
}
.nav-cta:hover { background: transparent; color: var(--rad-red) !important; transform: translateY(-1px); }
.nav-burger { display: none; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { padding: 8px 14px; font-size: 0.8rem; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--display); text-transform: uppercase; font-weight: 700;
  letter-spacing: 0.06em; font-size: 1rem;
  padding: 16px 28px; border-radius: 2px; cursor: pointer;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
  border: 1px solid transparent;
}
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn-primary { background: var(--rad-red); color: #fff; }
.btn-primary:hover { background: var(--rad-red-hot); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; }
.hero-canvas.fallback { background:
  radial-gradient(120% 80% at 15% 10%, rgba(229,6,47,0.42), transparent 55%),
  radial-gradient(90% 70% at 90% 100%, rgba(168,3,34,0.5), transparent 60%),
  #08080a; }
.hero-tex {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url("../assets/rad/rad-scratch-bg-concept.png") center/cover no-repeat;
  mix-blend-mode: overlay; opacity: 0.22;
}
.hero-vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,8,10,0.55) 0%, transparent 30%, transparent 55%, rgba(8,8,10,0.96) 100%); }
.hero-mark {
  position: absolute; z-index: 1; right: clamp(-40px, -3vw, 0px); top: 50%; transform: translateY(-50%);
  height: min(92vh, 900px); width: auto; opacity: 0.10; pointer-events: none;
  filter: drop-shadow(0 0 60px rgba(229,6,47,0.3));
  will-change: transform;
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 8vh, 96px); }
.hero-eyebrow { margin-bottom: 28px; }
.hero h1 {
  font-size: clamp(3.6rem, 12vw, 11rem);
  line-height: 0.86; letter-spacing: -0.02em; margin-bottom: 28px;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; will-change: transform; }
.hero-sub { max-width: 44ch; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.2rem); margin-bottom: 40px; }
.hero-sub strong { color: var(--paper); font-weight: 600; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; z-index: 2; bottom: 28px; right: var(--gutter);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.24em;
  font-size: 0.72rem; color: var(--muted);
}
.hero-scroll .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rad-red); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.25} }
@media (max-width: 860px){ .hero-scroll{ display:none; } .hero-mark{ opacity:0.07; } }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee { position: relative; z-index: 2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; background: var(--ink); overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: scroll 42s linear infinite; will-change: transform; }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee-group span {
  font-family: var(--display); text-transform: uppercase; font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem); letter-spacing: 0.01em;
  color: transparent; -webkit-text-stroke: 1px var(--muted-2);
  display: inline-flex; align-items: center; white-space: nowrap;
  padding-right: 3rem;
}
.marquee-group .sep { color: var(--rad-red); -webkit-text-stroke: 0; font-size: 0.7em; padding-right: 3rem; }
/* two identical groups → -50% loops seamlessly, no gap, never stops */
@keyframes scroll { to { transform: translateX(-50%); } }

/* ==========================================================================
   PROOF / STATS
   ========================================================================== */
.proof { background: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-2); }
.proof-cell {
  position: relative; background: var(--ink-2);
  padding: clamp(30px, 4vw, 46px) clamp(22px, 2.4vw, 34px) clamp(28px, 3.5vw, 40px);
  overflow: hidden; transition: background .4s var(--ease);
}
/* top accent rule that grows on hover */
.proof-cell::after { content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 34px; background: var(--rad-red); transition: width .5s var(--ease); }
.proof-cell:hover { background: var(--ink-3); }
.proof-cell:hover::after { width: 100%; }
.proof-cell .p-ico { width: 34px; height: 34px; margin-bottom: 22px; color: var(--rad-red); display: block; }
.proof-cell .p-ico svg { width: 100%; height: 100%; display: block; }
.proof-cell .num { font-family: var(--display); font-weight: 800; font-size: clamp(2.7rem, 5vw, 4.4rem); line-height: 0.92; color: var(--paper); letter-spacing: -0.01em; }
.proof-cell .num em { color: var(--rad-red); font-style: normal; }
.proof-cell .lbl { margin-top: 12px; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.13em; font-size: 0.82rem; color: var(--muted); line-height: 1.3; }
@media (max-width: 780px){ .proof-grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   STORY / TIMELINE (portfolio of results)
   ========================================================================== */
/* number on the LEFT, phase label on the RIGHT */
.story-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 4vw, 60px);
  align-items: start; padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line);
  transition: background .4s;
}
.story-item:last-child { border-bottom: 1px solid var(--line); }
.story-item:hover { background: linear-gradient(90deg, rgba(229,6,47,0.06), transparent 70%); }
.story-item .place { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem,4.4vw,3.6rem); color: transparent; -webkit-text-stroke: 1.3px var(--line); line-height: 0.9; min-width: 1.6em; transition: -webkit-text-stroke-color .4s; }
.story-item:hover .place { -webkit-text-stroke-color: var(--rad-red); }
.story-item h3 { font-size: clamp(1.6rem, 3.4vw, 2.8rem); margin-bottom: 10px; }
.story-item p { color: var(--muted); max-width: 60ch; }
.story-item .year { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--rad-red); font-size: 1rem; padding-top: 8px; text-align: right; white-space: nowrap; }
@media (max-width: 780px){
  .story-item{ grid-template-columns: auto 1fr; gap: 6px 18px; }
  .story-item .place{ grid-row: 1 / 3; font-size: 2rem; }
  .story-item .year{ text-align: left; padding-top: 2px; grid-column: 2; }
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.step { background: var(--ink); padding: clamp(32px, 4vw, 52px); position: relative; transition: background .4s var(--ease); }
.step:hover { background: var(--ink-3); }
.step .step-n { font-family: var(--display); font-weight: 800; font-size: 3rem; color: transparent; -webkit-text-stroke: 1.4px var(--rad-red); line-height: 1; margin-bottom: 28px; }
.step h3 { font-size: 1.7rem; margin-bottom: 12px; }
.step p { color: var(--muted); }
@media (max-width: 780px){ .steps{ grid-template-columns: 1fr; } }

/* ==========================================================================
   HEAD COACH
   ========================================================================== */
.coach { position: relative; }
.coach-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.coach-media {
  position: relative; aspect-ratio: 4/5; border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(229,6,47,0.05) 0 14px, transparent 14px 28px),
    radial-gradient(80% 70% at 50% 30%, rgba(229,6,47,0.16), transparent 70%),
    var(--ink-3);
  display: flex; align-items: flex-end;
}
.ph-figure { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.ph-figure svg { width: 46%; opacity: 0.16; }
/* faint RAD wolf-mark watermark for photo frames */
.ph-mark {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("../assets/rad/rad-logo-mark.png") center/34% no-repeat;
  opacity: 0.05;
}
.coach-media .photo { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.coach-media .cap { position: relative; z-index: 2; width: 100%; padding: 22px; background: linear-gradient(0deg, rgba(8,8,10,0.92), rgba(8,8,10,0.4) 55%, transparent); }
.coach-media .cap b { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 2rem; display: block; line-height: 0.9; }
.coach-media .cap span { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.16em; color: var(--rad-red); font-size: 0.8rem; }
.coach-body .eyebrow { margin-bottom: 22px; }
.coach-body h2 { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 22px; }
.coach-body p { color: var(--muted); max-width: 52ch; margin-bottom: 18px; font-size: 1.08rem; }
.coach-body p strong { color: var(--paper); font-weight: 600; }
.coach-cred { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 32px; }
.coach-cred span { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; color: var(--paper); border: 1px solid var(--line); padding: 8px 14px; border-radius: 2px; }
.coach-cred span b { color: var(--rad-red); }
@media (max-width: 860px){ .coach-grid{ grid-template-columns: 1fr; } .coach-media{ max-width: 420px; } }

/* ==========================================================================
   COACH PICKER (feature + filmstrip)
   ========================================================================== */
.coach-picker { display: flex; flex-direction: column; gap: clamp(26px, 3.5vw, 44px); }

.cp-feature { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(26px, 4vw, 60px); align-items: center; }
.cp-photo { position: relative; aspect-ratio: 4/5; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--ink-3); width: 100%; max-width: 420px; }
.cp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-photo img.swapping { opacity: 0; }
.cp-photo img { transition: opacity .3s var(--ease); }

.cp-badge { display: inline-block; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; font-weight: 700; color: var(--rad-red); border: 1px solid rgba(229,6,47,0.42); padding: 6px 12px; border-radius: 2px; margin-bottom: 20px; }
.cp-role { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; color: var(--muted); margin-bottom: 8px; }
.cp-name { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 0.9; letter-spacing: -0.01em; margin-bottom: 20px; }
.cp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.cp-tags span { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.74rem; color: var(--paper); border: 1px solid var(--line); padding: 6px 11px; border-radius: 2px; }
.cp-bio { color: var(--muted); max-width: 52ch; margin-bottom: 28px; font-size: 1.06rem; line-height: 1.6; min-height: 6.4em; }
.cp-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* filmstrip */
.cp-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.cp-thumb {
  position: relative; display: flex; flex-direction: column; text-align: left; cursor: pointer;
  background: var(--ink); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; padding: 0;
  color: var(--paper); font-family: var(--body);
  transition: border-color .25s, transform .3s var(--ease);
}
.cp-thumb:hover { transform: translateY(-3px); border-color: var(--muted); }
.cp-thumb.is-active { border-color: var(--rad-red); }
.cp-thumb.is-active::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--rad-red); z-index: 3; }
.cp-t-photo { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--ink-3); }
.cp-t-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) brightness(0.82); transition: filter .3s; }
.cp-thumb:hover .cp-t-photo img, .cp-thumb.is-active .cp-t-photo img { filter: none; }
.cp-t-name { font-family: var(--display); text-transform: uppercase; font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; color: var(--paper); padding: 10px 9px 3px; line-height: 1; }
.cp-t-role { font-family: var(--mono); text-transform: uppercase; font-size: 0.6rem; letter-spacing: 0.04em; color: var(--muted); padding: 0 9px; line-height: 1.45; }
.cp-t-sub { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.02em; color: var(--muted-2); padding: 0 9px 10px; line-height: 1.35; }

@media (max-width: 860px){
  .cp-feature { grid-template-columns: 1fr; justify-items: start; align-items: start; }
  .cp-photo { max-width: 280px; }
  .cp-bio { min-height: 8em; }
  .cp-rail { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
}

/* ==========================================================================
   GALLERY (LAN)
   ========================================================================== */
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.tile {
  position: relative; border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(243,241,238,0.03) 0 12px, transparent 12px 24px),
    var(--ink-3);
  min-height: 200px; display: flex; align-items: flex-end;
  transition: transform .5s var(--ease), border-color .4s;
}
.tile:hover { transform: translateY(-4px); border-color: rgba(229,6,47,0.5); }
.tile .tile-img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .5s; filter: saturate(1.05); }
.tile:hover .tile-img { transform: scale(1.04); }
.tile.has-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(8,8,10,0.9) 0%, rgba(8,8,10,0.15) 45%, transparent 70%); }
.tile .t-cap { padding: 16px; z-index: 2; }
.tile .t-cap b { font-family: var(--display); text-transform: uppercase; font-weight: 700; letter-spacing: 0.06em; font-size: 1.1rem; display: block; }
.tile .t-cap span { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.68rem; color: var(--muted); }
.tile .ph-badge { top: 12px; }
/* per-grouping layouts (each slide gets a different rhythm) */
.gl-a > .tile:nth-child(1){ grid-column: span 7; min-height: 380px; }
.gl-a > .tile:nth-child(2){ grid-column: span 5; min-height: 380px; }
.gl-a > .tile:nth-child(3){ grid-column: span 6; min-height: 300px; }
.gl-a > .tile:nth-child(4){ grid-column: span 6; min-height: 300px; }

.gl-b > .tile:nth-child(1){ grid-column: span 8; min-height: 380px; }
.gl-b > .tile:nth-child(2){ grid-column: span 4; min-height: 380px; }
.gl-b > .tile:nth-child(3){ grid-column: span 4; min-height: 300px; }
.gl-b > .tile:nth-child(4){ grid-column: span 8; min-height: 300px; }

/* legacy single-tile spans (kept for any static use) */
.tile.big { grid-column: span 7; min-height: 380px; }
.tile.tall { grid-column: span 5; min-height: 380px; }
.tile.half { grid-column: span 6; min-height: 320px; }
.tile.third { grid-column: span 4; min-height: 240px; }
@media (max-width: 780px){ .gallery-grid > .tile{ grid-column: span 12 !important; min-height: 240px; } }

/* LAN carousel — groupings of the asymmetric-4 grid, peek + arrows + drag */
.lan-carousel { position: relative; }
.lc-viewport {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.lc-track {
  display: flex; gap: 18px; will-change: transform; transition: transform .55s var(--ease);
  touch-action: pan-y; cursor: grab;
  -webkit-user-select: none; user-select: none;
}
.lc-track img { -webkit-user-drag: none; user-select: none; }
.lc-track.dragging { transition: none; cursor: grabbing; }
.lc-slide { flex: 0 0 88%; min-width: 0; }
.lc-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 50px; height: 50px; border-radius: 50%; background: rgba(8,8,10,0.72);
  border: 1px solid var(--line); color: var(--paper); font-family: var(--display); font-size: 1.9rem; line-height: 0;
  display: grid; place-items: center; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .25s, border-color .25s, opacity .3s;
}
.lc-arrow:hover { background: var(--rad-red); border-color: var(--rad-red); }
.lc-arrow:active { transform: translateY(-50%) scale(0.94); }
.lc-prev { left: 6px; } .lc-next { right: 6px; }
.lc-arrow[disabled] { opacity: 0; pointer-events: none; }
.lc-dots { display: flex; justify-content: center; gap: 9px; margin-top: 24px; }
.lc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); border: 0; cursor: pointer; padding: 0; transition: background .3s, width .3s var(--ease); }
.lc-dot.is-active { background: var(--rad-red); width: 24px; border-radius: 4px; }
@media (max-width: 780px){ .lc-slide { flex: 0 0 90%; } .lc-arrow { width: 42px; height: 42px; font-size: 1.5rem; } }
@media (prefers-reduced-motion: reduce){ .lc-track { transition: none; } }

/* ==========================================================================
   BOOKING FORM
   ========================================================================== */
.book { position: relative; background: var(--ink-2); border-top: 1px solid var(--line); }
.book-grid { display: grid; grid-template-columns: 1.5fr 0.9fr; gap: clamp(28px, 4vw, 56px); align-items: start; }

/* form */
.bform { display: flex; flex-direction: column; gap: clamp(20px, 2.2vw, 26px); }
.fgroup > .flabel,
.field > label {
  display: block; font-family: var(--display); text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.8rem; color: var(--muted); margin-bottom: 14px;
}
.req { color: var(--rad-red); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); text-transform: uppercase; font-weight: 600; letter-spacing: 0.06em;
  font-size: 0.95rem; color: var(--paper);
  padding: 11px 16px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--ink); cursor: pointer; user-select: none;
  transition: border-color .25s, background .25s, transform .25s var(--ease), color .25s;
}
.chip img { width: 22px; height: 22px; object-fit: contain; }
.chip:hover { border-color: var(--muted); transform: translateY(-1px); }
.chip.on { border-color: var(--rad-red); background: rgba(229,6,47,0.10); color: #fff; }
.chip.rank img { width: 26px; height: 26px; }
.chips.grid-ranks { gap: 8px; }

/* --- form section headers: give the long form visible structure --- */
.form-sec { display: flex; align-items: center; gap: 14px; }
.form-sec span {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted-2); white-space: nowrap;
}
.form-sec::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }

/* --- slot picker (calendar-backed coaches only) --- */
.session-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.session-row[hidden] { display: none; }
.cal-anchor { position: relative; }   /* popover anchor */

/* Date field reads as an input but opens the calendar. */
.date-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 3px;
  padding: 13px 14px; color: var(--paper); font-family: var(--body); font-size: 0.95rem;
  cursor: pointer; text-align: left; transition: border-color .25s, background .25s;
}
.date-trigger:hover { border-color: var(--muted-2); }
.date-trigger[aria-expanded="true"] { border-color: var(--rad-red); background: #0b0b0e; }
.date-trigger.placeholder { color: var(--muted-2); }
.date-trigger .dt-ico { color: var(--muted-2); font-size: 0.7rem; }

.cal-pop { position: absolute; z-index: 40; top: 100%; left: 0; margin-top: 8px; }
.cal-pop[hidden] { display: none; }

.times-empty { font-size: 0.85rem; color: var(--muted-2); padding-top: 12px; }
.times-empty[hidden] { display: none; }
.slot-times:empty { display: none; }

/* Month calendar — floats above the form, so it needs its own ground + lift. */
.cal {
  border: 1px solid var(--line); border-radius: 4px; background: var(--ink-3);
  padding: 14px 14px 16px; width: 300px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.6);
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-month {
  font-family: var(--display); text-transform: uppercase; font-weight: 700;
  letter-spacing: 0.12em; font-size: 0.95rem;
}
.cal-nav {
  width: 30px; height: 30px; border-radius: 3px; border: 1px solid var(--line);
  background: transparent; color: var(--paper); font-family: var(--display);
  font-size: 1.3rem; line-height: 0; cursor: pointer; display: grid; place-items: center;
  transition: border-color .25s, background .25s, opacity .25s;
}
.cal-nav:hover:not(:disabled) { border-color: var(--rad-red); background: rgba(229,6,47,0.10); }
.cal-nav:disabled { opacity: 0.25; cursor: default; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow {
  margin-bottom: 6px; font-family: var(--mono); font-size: 0.66rem;
  color: var(--muted-2); text-align: center; letter-spacing: 0.06em;
}
.cal-day {
  aspect-ratio: 1; border: 1px solid transparent; border-radius: 3px;
  background: transparent; color: var(--muted-2); font-family: var(--mono);
  font-size: 0.82rem; cursor: default; display: grid; place-items: center;
  position: relative; padding: 0;
  transition: border-color .2s, background .2s, color .2s;
}
.cal-day.pad { visibility: hidden; }
/* Only days the coach actually published are interactive. */
.cal-day.has {
  color: var(--paper); cursor: pointer; border-color: var(--line);
  background: rgba(243,241,238,0.03);
}
.cal-day.has::after {
  content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--rad-red);
}
.cal-day.has:hover { border-color: var(--rad-red); background: rgba(229,6,47,0.10); }
.cal-day.on { background: var(--rad-red); border-color: var(--rad-red); color: #fff; font-weight: 600; }
.cal-day.on::after { background: #fff; }
.cal-day.today:not(.on) { border-color: var(--muted-2); }

/* empty state — no slots posted */
.slot-empty {
  border: 1px solid var(--line); border-radius: 4px; background: var(--ink-2);
  padding: 26px 22px; text-align: center; max-width: 420px;
}
.slot-empty .se-mark { font-size: 1.7rem; color: var(--rad-red); line-height: 1; margin-bottom: 10px; }
.slot-empty h4 {
  font-family: var(--display); text-transform: uppercase; font-weight: 800;
  letter-spacing: 0.02em; font-size: 1.25rem; margin-bottom: 8px;
}
.slot-empty p { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.slot-empty[hidden] { display: none; }
/* Times are data, so they use the mono/telemetry face like the rest of the readouts. */
.chip.slot-time { font-family: var(--mono); text-transform: none; letter-spacing: 0; font-size: 0.86rem; padding: 10px 14px; }
.chip.slot-time .st-len { color: var(--muted-2); margin-left: 2px; }
.chip.slot-time.on .st-len { color: var(--muted); }
.slot-status { font-size: 0.88rem; color: var(--muted); margin-bottom: 12px; }
.slot-status.err { color: var(--rad-red-hot); }
.slot-status[hidden] { display: none; }
.slotpick .hint { margin-top: 10px; font-size: 0.8rem; color: var(--muted-2); }

/* fields */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--ink); border: 1px solid var(--line); border-radius: 3px;
  color: var(--paper); font-family: var(--body); font-size: 1rem; padding: 14px 16px;
  transition: border-color .25s, background .25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--rad-red); background: #0b0b0e; }
.field textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.field .hint { margin-top: 8px; font-size: 0.82rem; color: var(--muted); }
.field-error { display: none; margin-top: 8px; font-size: 0.82rem; color: var(--rad-red-hot); font-weight: 500; }
.field.err .field-error { display: block; }
.field.err input, .field.err textarea { border-color: var(--rad-red); }

/* summary */
.summary { position: sticky; top: 96px; background: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: clamp(24px, 2.6vw, 32px); }
.summary h4 { font-family: var(--display); text-transform: uppercase; font-size: 1.5rem; letter-spacing: 0.02em; margin-bottom: 6px; }
.summary .s-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; }
.s-line { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.s-line:first-of-type { border-top: 0; }
.s-line span { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; color: var(--muted); }
.s-line b { font-family: var(--body); font-weight: 600; font-size: 1rem; color: var(--paper); text-align: right; display: inline-flex; align-items: center; gap: 8px; }
.s-line b img { width: 22px; height: 22px; object-fit: contain; }
.s-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 18px; padding-top: 20px; border-top: 1px solid var(--line); }
.s-total span { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-size: 0.86rem; }
.s-total b { font-family: var(--display); font-weight: 800; font-size: 2.2rem; color: var(--rad-red); line-height: 1; }
.summary .btn { width: 100%; justify-content: center; margin-top: 24px; }
.summary .s-note { margin-top: 16px; font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.summary .s-note a { color: var(--muted); text-decoration: underline; }

/* success state */
.book-success { display: none; text-align: center; padding: clamp(40px, 6vw, 80px) 20px; border: 1px solid var(--line); border-radius: 4px; background: var(--ink); }
.book-success.show { display: block; }
.book-success .tick { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(229,6,47,0.12); border: 1px solid var(--rad-red); color: var(--rad-red); font-size: 1.8rem; }
.book-success h3 { font-family: var(--display); text-transform: uppercase; font-size: 2.2rem; margin-bottom: 12px; }
.book-success p { color: var(--muted); max-width: 46ch; margin: 0 auto; }
.book-success b { color: var(--paper); }

@media (max-width: 900px){
  .book-grid{ grid-template-columns: 1fr; }
  /* relative (not static) so the HUD brackets stay anchored to the card, not the whole section */
  .summary{ position: relative; top: auto; }
  .field-row{ grid-template-columns: 1fr; }
  .session-row{ grid-template-columns: 1fr; }
  /* On a narrow screen an absolutely-positioned calendar would overflow the
     viewport, so let it sit inline in the flow instead. */
  .cal-pop{ position: static; margin-top: 10px; }
  .cal{ width: 100%; max-width: 320px; box-shadow: none; }
}

/* ==========================================================================
   FOOTER / SOCIALS
   ========================================================================== */
.foot { position: relative; padding-top: clamp(70px, 10vh, 130px); border-top: 1px solid var(--line); overflow: hidden; }
.foot-cta { text-align: center; margin-bottom: 90px; }
.foot-cta .gowild { max-width: 620px; width: 70%; margin: 0 auto 30px; opacity: 0.95; }
.foot-cta h2 { font-size: clamp(2.4rem, 7vw, 6rem); margin-bottom: 26px; }
.socials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 70px; }
.social { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px; border: 1px solid var(--line); border-radius: 3px; transition: background .35s var(--ease), transform .35s; }
.social:hover { background: var(--ink-3); transform: translateY(-3px); }
.social .s-main { display: flex; align-items: center; gap: 16px; }
.social .s-logo { flex: none; width: 34px; height: 34px; display: grid; place-items: center; color: var(--paper); transition: color .3s; }
.social:hover .s-logo { color: var(--rad-red); }
.social .s-logo svg { width: 26px; height: 26px; display: block; }
.social .s-n { font-family: var(--display); color: var(--muted-2); font-weight: 700; }
.social .s-name { font-family: var(--display); text-transform: uppercase; font-weight: 800; font-size: 1.5rem; }
.social .s-handle { color: var(--muted); font-size: 0.9rem; }
.social .s-arrow { color: var(--rad-red); font-size: 1.4rem; transition: transform .3s var(--ease); }
.social:hover .s-arrow { transform: translate(4px, -4px); }
@media (max-width: 780px){ .socials{ grid-template-columns: 1fr; } }
.foot-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.foot-bar .fb-brand { display: flex; align-items: center; gap: 12px; }
.foot-bar .fb-brand img { height: 30px; }
.foot-bar small { color: var(--muted-2); font-size: 0.82rem; }
.foot-note { color: var(--muted-2); font-size: 0.78rem; text-align: center; padding-bottom: 40px; max-width: 60ch; margin: 0 auto; }

/* ==========================================================================
   REVEAL ANIM
   ========================================================================== */
/* Only hide when JS is present, so a no-JS load still shows all content. */
.js .reveal { opacity: 0; transform: translateY(28px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }

/* Anti-flash: hold the hero hidden from the very first paint by fading the whole
   container, so nothing (headline included) shows in its final spot for a frame
   before the GSAP intro takes over. `.anim` is set by the inline head script only
   when motion is allowed; if GSAP never loads, the head-script failsafe (and
   main.js) drop `.anim` so everything falls back to visible.
   NOTE: we deliberately do NOT pre-transform the headline lines here — GSAP would
   fold that CSS transform into its own `yPercent`, leaving the title stuck pushed
   down forever. The container opacity alone hides them cleanly until the intro. */
.anim .hero-inner { opacity: 0; }
.anim .hero-scroll { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
  .hero-scroll .dot { animation: none; }
  .tile:hover .tile-img { transform: none; }
  * { scroll-behavior: auto !important; }
}

/* ==========================================================================
   POLISH — focus, scrollbar, scroll progress, nav states, press states
   ========================================================================== */

/* keyboard focus — visible red ring, only for keyboard users */
:focus:not(:focus-visible) { outline: none; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .nav-cta:focus-visible,
.chip:focus-visible, .social:focus-visible, .plan:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--rad-red);
  outline-offset: 3px;
  border-radius: 2px;
}
.field input:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--rad-red);
  outline-offset: 2px;
}

/* skip link */
.skip-link {
  position: fixed; left: -9999px; top: 12px; z-index: 300;
  background: var(--rad-red); color: #fff; padding: 10px 18px; border-radius: 3px;
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700;
}
.skip-link:focus { left: 12px; }

/* topographic contour texture — Hero Patterns "Topography" (free license),
   used as a MASK so we can tint + fade it to any brand color/opacity. */
.topo {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-color: var(--topo-color, var(--rad-red));
  -webkit-mask: url("../assets/patterns/topography.svg") repeat;
  mask: url("../assets/patterns/topography.svg") repeat;
  -webkit-mask-size: var(--topo-size, 680px); mask-size: var(--topo-size, 680px);
  opacity: var(--topo-opacity, 0.05);
}
/* fade the contour in from one edge so it reads "designed", not wallpapered */
.topo.edge {
  -webkit-mask: url("../assets/patterns/topography.svg") repeat, linear-gradient(120deg, transparent 30%, #000 90%);
  mask: url("../assets/patterns/topography.svg") repeat, linear-gradient(120deg, transparent 30%, #000 90%);
  -webkit-mask-size: var(--topo-size, 680px), cover;
  mask-size: var(--topo-size, 680px), cover;
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
/* sections that carry texture: clip the tile + keep content above it */
#story, #book { overflow: hidden; }
#story > .wrap, #book > .wrap { position: relative; z-index: 1; }

/* photographic section backdrop (trial: training-camp behind "How it works").
   Heavily darkened + positioned right so Denis (far right of the shot) shows,
   and the bright room can't fight the dark theme. */
#how { position: relative; overflow: hidden; }
#how > .wrap { position: relative; z-index: 1; }
.section-photo {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12,12,15,0.95) 0%, rgba(12,12,15,0.74) 42%, rgba(12,12,15,0.32) 100%),
    linear-gradient(0deg, rgba(12,12,15,0.55), rgba(12,12,15,0.2) 55%, rgba(12,12,15,0.45)),
    url("../assets/photos/training-camp.jpg") right center / cover no-repeat;
  filter: grayscale(0.35) brightness(0.85) contrast(1.05);
}
@media (max-width: 780px) { .section-photo { background-position: 78% center, 78% center, 78% center; } }

/* custom scrollbar */
* { scrollbar-width: thin; scrollbar-color: #2c2c33 transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #2c2c33; border-radius: 10px; border: 3px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: var(--rad-red-deep); }

/* ==========================================================================
   DESIGN-LANGUAGE COMPONENTS (telemetry type · HUD brackets · reg ticks)
   ========================================================================== */

/* 05 — telemetry: the section index reads as a technical readout */
.idx { font-family: var(--mono); letter-spacing: 0.02em; font-weight: 500; }

/* 03 — HUD corner brackets (top-left + bottom-right) on key elements */
.hud-frame::before, .hud-frame::after {
  content: ""; position: absolute; width: 18px; height: 18px;
  border: 2px solid var(--rad-red); z-index: 5; pointer-events: none;
}
.hud-frame::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.hud-frame::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

/* 04 — registration ✕ marks (quiet technical punctuation) */
.reg-ticks { position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.reg-ticks i { width: 12px; height: 12px; position: relative; opacity: 0.4; }
.reg-ticks i::before, .reg-ticks i::after { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 2px; background: var(--rad-red); transform: translateY(-50%) rotate(45deg); }
.reg-ticks i::after { transform: translateY(-50%) rotate(-45deg); }
@media (max-width: 780px) { .reg-ticks { display: none; } }

/* ==========================================================================
   MOBILE SCROLL PERFORMANCE
   The fixed, blended grain layer and the nav's backdrop-blur repaint on every
   scroll frame — cheap on desktop, janky on phones. Drop them on small screens.
   ========================================================================== */
@media (max-width: 780px) {
  .grain { display: none; }
  .nav.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(8, 8, 10, 0.95); }
  .hero-tex { display: none; }              /* blended texture over the shader — also a repaint cost */
  .lc-arrow { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(14, 14, 17, 0.86); }
}

/* nav links — animated underline + scroll-spy active */
.nav-links a { position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--rad-red); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--paper); }

/* tactile press states */
.btn:active { transform: translateY(0) scale(0.985); }
.btn-primary:active { background: var(--rad-red-deep); }
.chip:active { transform: translateY(0) scale(0.97); }
.nav-cta:active { transform: translateY(0) scale(0.985); }

/* chips are keyboard-operable (set via JS); show the pointer intent */
.chip { -webkit-tap-highlight-color: transparent; }
