/* ==========================================================================
   CricBook — cinematic homepage
   Night scenes (deep indigo) carry the story; the light surface carries dense
   information (glass panel, FAQ, footer).
   ========================================================================== */

:root {
  /* Brand */
  --indigo: #221c63;
  --magenta: #ed1c8e;
  --magenta-solid: #db1483;   /* white text on this is 4.7:1 (AA) */
  --magenta-ink: #b80f6c;     /* magenta text on the light surface: 5.6:1 (AA) */
  --magenta-light: #ff6fb8;   /* magenta for text on night backgrounds */
  --mint: #22e0a0;
  --mint-ink: #06302a;
  --surface: #f4f3f8;
  --white: #ffffff;

  /* Supporting indigo-greys */
  --night: #0b0926;
  --brand-dark: #15103f;
  --electric: #4b3ff5;
  --electric-light: #6e63ff;
  --night-2: #141045;
  --ink-soft: #cfcde6;        /* body copy on night: 12.9:1 */
  --ink-mute: #a9a5cf;        /* secondary copy on night: 8.3:1 */
  --line: rgba(255, 255, 255, 0.16);
  --indigo-grey: #5c5891;     /* secondary copy on light surface: 6.2:1 */

  /* Type — the cricbook.lk system: Barlow Condensed for display (always
     uppercase), Inter for everything else. */
  /* On cricbook.lk these resolve to the next/font faces the root layout
     already loads (--font-display, --font-inter); standalone, to the Google
     Fonts families linked in index.html. */
  --cb-display: var(--font-display, "Barlow Condensed"), "Arial Narrow", system-ui, sans-serif;
  --cb-body: var(--font-inter, "Inter"), system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 18px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 108px;   /* announcement strip + nav row */
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* `body:has()` outranks the host app's Tailwind body utilities on cricbook.lk. */
body, body:has(.cb-cinema) {
  margin: 0;
  background: var(--night);
  color: var(--ink-soft);
  font-family: var(--cb-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--white); }
p { margin: 0; }
:where(ul[role="list"], ol) { margin: 0; padding: 0; list-style: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Step numbers and times: Inter with aligned figures. */
.num { font-family: var(--cb-body); font-variant-numeric: tabular-nums; }

/* The cricbook.lk focus ring: 2px brand magenta, offset 2px, everywhere. */
:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--mint); color: var(--mint-ink); font-weight: 700; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

/* --------------------------------------------------------------- the stage */

.stage {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 68% 40%, rgba(255, 245, 225, 0.12), transparent 70%),
    radial-gradient(40% 35% at 80% 70%, rgba(34, 224, 160, 0.10), transparent 70%),
    linear-gradient(180deg, #0b0926 0%, #141045 60%, #0b0926 100%);
}
.stage__poster, .stage__canvas, .stage__labels, .stage__scrim { position: absolute; inset: 0; }
.stage__poster {
  background: url("../img/venue-poster.jpg") 70% 50% / cover no-repeat;
  transition: opacity 1.2s ease, filter 1.2s ease;
}
.stage__canvas {
  width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity 1.4s ease;
}
.scene-ready .stage__canvas { opacity: 1; }
.scene-ready .stage__poster { opacity: 0; }

/* Poster mood follows the active section when WebGL is not running. */
[data-scene-active="friction"] .stage__poster { filter: brightness(0.42) saturate(0.6); }
[data-scene-active^="booking-story"] .stage__poster { filter: brightness(0.75); }
[data-scene-active="finale"] .stage__poster { filter: brightness(1.1) saturate(1.1); }

/* Readability scrims: two layers so they can cross-fade sides. */
.stage__scrim::before, .stage__scrim::after {
  content: ""; position: absolute; inset: 0; transition: opacity 1s ease;
}
.stage__scrim::before {
  background:
    linear-gradient(180deg, rgba(11, 9, 38, 0.7) 0, rgba(11, 9, 38, 0) 140px),
    linear-gradient(90deg, rgba(11, 9, 38, 0.94) 0%, rgba(11, 9, 38, 0.78) 30%, rgba(11, 9, 38, 0.18) 56%, rgba(11, 9, 38, 0) 70%);
}
.stage__scrim::after {
  opacity: 0;
  background:
    linear-gradient(180deg, rgba(11, 9, 38, 0.7) 0, rgba(11, 9, 38, 0) 140px),
    linear-gradient(270deg, rgba(11, 9, 38, 0.8) 0%, rgba(11, 9, 38, 0.4) 40%, rgba(11, 9, 38, 0) 62%);
}
[data-scene-active="availability"] .stage__scrim::before { opacity: 0; }
[data-scene-active="availability"] .stage__scrim::after { opacity: 1; }

/* ------------------------------------------------- spatial labels (decor) */

.stage__labels { overflow: hidden; }
.scene-label {
  position: absolute; left: 0; top: 0;
  translate: -50% calc(-100% - 18px);
  display: grid; gap: 1px;
  min-width: 112px;
  padding: 9px 13px 10px;
  border-radius: 12px;
  background: rgba(17, 13, 56, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 40px rgba(5, 3, 25, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-family: var(--cb-body);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  opacity: 0;
  scale: 0.9;
  transition: opacity 0.5s ease, scale 0.6s var(--ease-out);
  will-change: transform;
}
.scene-label.is-visible { opacity: 1; scale: 1; }
.scene-label.is-visible.is-clipped { opacity: 0; }
/* A stem + dot ties each label to its point in the venue. */
.scene-label::after {
  content: ""; position: absolute; left: 50%; top: 100%;
  width: 1px; height: 14px; background: currentColor; opacity: 0.6;
}
.scene-label::before {
  content: ""; position: absolute; left: calc(50% - 3px); top: calc(100% + 13px);
  width: 7px; height: 7px; border-radius: 50%; background: currentColor;
}
.scene-label i { font-style: normal; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
.scene-label b { font-weight: 600; font-size: 15px; letter-spacing: 0.02em; }
.scene-label span { color: var(--ink-soft); }

.scene-label--slot { color: var(--mint); border-color: rgba(34, 224, 160, 0.45); }
.scene-label--slot b { color: var(--white); }
.scene-label--slot span { color: var(--mint); }

.scene-label--bubble {
  color: var(--white); border-radius: 16px 16px 16px 4px;
  background: rgba(34, 28, 99, 0.92); border-color: rgba(255, 255, 255, 0.24);
}
.scene-label--bubble i { color: var(--mint); }

.scene-label--held {
  color: var(--magenta-light); border-color: rgba(237, 28, 142, 0.6);
  padding-left: 46px;
}
.scene-label--held .ring {
  position: absolute; left: 12px; top: 50%; width: 24px; height: 24px; margin-top: -12px;
  border-radius: 50%;
  background: conic-gradient(var(--magenta) var(--p, 75%), rgba(237, 28, 142, 0.18) 0);
  -webkit-mask: radial-gradient(circle, transparent 7px, #000 8px);
  mask: radial-gradient(circle, transparent 7px, #000 8px);
  animation: ring 6s linear infinite;
}
@property --p { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
@keyframes ring { from { --p: 100%; } to { --p: 0%; } }

.scene-label--card {
  min-width: 210px; padding: 14px 16px 15px 52px;
  background: rgba(244, 243, 248, 0.95); color: var(--indigo);
  border-color: rgba(255, 255, 255, 0.6);
}
.scene-label--card::after, .scene-label--card::before { background: var(--white); }
.scene-label--card i { color: var(--indigo-grey); }
.scene-label--card b { font-family: var(--cb-display); font-weight: 800; font-size: 22px; text-transform: uppercase; }
.scene-label--card span { color: var(--indigo-grey); }
.scene-label--card b::before {
  content: "✓"; position: absolute; left: 14px; top: 50%; translate: 0 -50%;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mint); color: var(--mint-ink); font-size: 14px;
}

.scene-label--ref {
  color: var(--mint); border-color: rgba(34, 224, 160, 0.7);
  background: rgba(6, 48, 42, 0.86);
  box-shadow: 0 0 0 1px rgba(34, 224, 160, 0.2), 0 0 48px rgba(34, 224, 160, 0.35);
}
.scene-label--ref i { color: #9ff3d4; }
.scene-label--ref b { font-family: var(--cb-display); font-weight: 900; font-size: 26px; letter-spacing: 0.12em; color: var(--white); }

.scene-label--ops { --dot: var(--mint); min-width: 0; color: var(--dot); }
.scene-label--ops.is-held { --dot: var(--magenta); color: var(--magenta-light); }
.scene-label--ops.is-open { --dot: #9ff3d4; }
.scene-label--ops b { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--white); }
.scene-label--ops b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }

.scene-label--refused {
  color: var(--magenta-light); border-color: rgba(237, 28, 142, 0.7); padding-left: 44px;
  background: rgba(40, 8, 40, 0.88);
}
.scene-label--refused b { color: var(--white); }
.scene-label--refused b::before {
  content: "✕"; position: absolute; left: 12px; top: 50%; translate: 0 -50%;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--magenta); color: var(--white); font-size: 12px;
}
.scene-label--booked { color: var(--mint); border-color: rgba(34, 224, 160, 0.6); }
.scene-label--booked b { color: var(--white); }

.scene-label--cue {
  color: #8f8bc0; min-width: 0;
  background: rgba(17, 13, 56, 0.66); border-style: dashed; border-color: rgba(237, 28, 142, 0.45);
}
.scene-label--cue b { color: var(--magenta-light); font-size: 13px; }
.scene-label--cue span { color: #8f8bc0; }
.scene-label--cue.is-visible { animation: cue-in 0.6s var(--ease-out) both; }
@keyframes cue-in { from { opacity: 0; translate: -50% calc(-100% - 6px); } }

/* --------------------------------------------------------------- header */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(21, 16, 63, 0.5);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.announce {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 12px; background: var(--mint); color: var(--mint-ink);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-decoration: none;
  white-space: nowrap;
}
.announce__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.announce__link { flex: none; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 767px) { .announce__long { display: none; } }
.site-header.is-scrolled {
  background: rgba(21, 16, 63, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner {
  height: 72px; width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; border-radius: 8px; }
.brand img { width: 128px; height: auto; }

.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.site-nav ul { display: flex; gap: clamp(14px, 2vw, 30px); margin: 0; padding: 0; list-style: none; }
.site-nav__actions { display: flex; align-items: center; gap: 8px; }
.site-nav ul a {
  color: rgba(255, 255, 255, 0.7); text-decoration: none; font-weight: 500; font-size: 0.875rem;
  padding: 6px 2px; background: linear-gradient(var(--mint), var(--mint)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.3s var(--ease-out), color 0.2s;
}
.site-nav ul a:hover { color: var(--white); background-size: 100% 2px; }

.site-header .nav-toggle { display: none; }

/* Round icon button (menu / close), as on cricbook.lk. */
.round-btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent; color: var(--white); cursor: pointer;
  transition: background-color 0.2s;
}
.round-btn:hover { background: rgba(255, 255, 255, 0.1); }
.round-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

@media (max-width: 1100px) {
  .js .site-header .nav-toggle { display: grid; }
  .js .site-nav { display: none; }
  .no-js .site-nav ul, .no-js .site-nav__actions { display: none; }
}

/* Full-screen phone menu (MobileNav.tsx). */
.mobile-menu {
  position: fixed; inset: 0; z-index: 70;
  background: var(--brand-dark);           /* fully opaque, no blur */
  animation: menu-in 0.2s ease;
}
.mobile-menu__inner {
  display: flex; flex-direction: column; height: 100%; overflow-y: auto;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 20px calc(40px + env(safe-area-inset-bottom, 0px));
}
.mobile-menu__top { display: flex; justify-content: flex-end; }
.mobile-menu__nav { display: flex; flex-direction: column; margin-top: 24px; }
.mobile-menu__nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--cb-display); font-size: 1.875rem; font-weight: 700;
  letter-spacing: 0.025em; text-transform: uppercase; color: var(--white); text-decoration: none;
  transition: color 0.2s;
  animation: menu-item 0.3s ease-out both; animation-delay: calc(0.05s + var(--i) * 0.05s);
}
.mobile-menu__nav a:hover { color: var(--mint); }
.mobile-menu__nav svg { width: 24px; height: 24px; fill: none; stroke: rgba(255, 255, 255, 0.25); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mobile-menu__actions { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 40px; }
.btn--plain::after { content: none !important; }
@keyframes menu-in { from { opacity: 0; } }
@keyframes menu-item { from { opacity: 0; transform: translateX(-12px); } }
html.menu-open, html.menu-open body { overflow: hidden; }

/* --------------------------------------------------------------- type */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  font-family: var(--cb-body); font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--mint);
}
.eyebrow--magenta { color: var(--magenta-light); }
.eyebrow--mint { color: var(--mint); }
.eyebrow--ink { color: var(--magenta-solid); }

/* Hero badge, as on cricbook.lk. */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 28px; padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 0.875rem; font-weight: 500; color: var(--mint);
}
.chip {
  display: inline-block; margin-right: 8px; padding: 2px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.85);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em; text-transform: none;
}
.trust { margin-top: 18px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); }

/* Display: Barlow Condensed, bold, uppercase, tight — the cricbook.lk headline. */
.display {
  font-family: var(--cb-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(3rem, 1.6rem + 5.6vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  color: var(--white);
  text-wrap: balance;
}
.display--md { font-size: clamp(2.25rem, 1.5rem + 2.8vw, 3.75rem); line-height: 0.95; }
.display--sm { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.25rem); line-height: 1; }
/* Emphasis is colour, never a second typeface. */
.display em, .site-footer__tag em { font-style: normal; color: var(--mint); }
.hero .display em {
  background: linear-gradient(90deg, var(--mint), var(--mint) 45%, var(--electric-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.finale .display em { color: var(--mint); }
.display .line { display: block; }

.lede {
  margin-top: 26px; max-width: 34rem;
  font-size: clamp(1.06rem, 1rem + 0.25vw, 1.125rem); font-weight: 500;
  line-height: 1.65; color: rgba(255, 255, 255, 0.85);
}

/* --------------------------------------------------------------- layout */

main { position: relative; z-index: 1; }

.section {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 8vh) 0 12vh;
}
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--end { display: flex; justify-content: flex-end; }
.wrap--narrow { max-width: 880px; }
.col { max-width: 37rem; }

/* Mobile: the venue sits lifted at the top; copy rides up from below it. */
@media (max-width: 819px) {
  /* The venue sits in the top ~40% of the screen; copy rides up beneath it.
     Sections size to their content so there is no dead space between them. */
  .section { min-height: 0; align-items: flex-end; padding: 44svh 0 56px; }
  .hero.section { min-height: 100svh; }
  .stage__poster { background-image: url("../img/venue-poster-mobile.jpg"); background-position: 50% 0; }
  .stage__scrim::before {
    background: linear-gradient(180deg, rgba(11, 9, 38, 0.55) 0, rgba(11, 9, 38, 0) 16%, rgba(11, 9, 38, 0) 30%, rgba(11, 9, 38, 0.9) 46%, rgba(11, 9, 38, 0.97) 100%);
  }
  .stage__scrim::after { display: none; }
  [data-scene-active="availability"] .stage__scrim::before { opacity: 1; }
}

/* --------------------------------------------------------------- controls */

/* Buttons follow cricbook.lk: solid pills (no gradient fills), Inter semibold.
   Primary is the "glow" variant: magenta fill with a soft magenta glow. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 32px; border-radius: 999px; border: 0;
  font: 600 1.125rem/1 var(--cb-body);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s var(--ease-out), background-color 0.2s, box-shadow 0.25s;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--magenta-solid); color: var(--white); box-shadow: 0 0 20px rgba(237, 28, 142, 0.45); }
.btn--primary:hover { background: rgba(219, 20, 131, 0.9); box-shadow: 0 0 30px rgba(237, 28, 142, 0.7); }
.btn--outline { background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, 0.25); }
.btn--outline:hover { background: rgba(255, 255, 255, 0.1); }
.btn--ghost { background: transparent; color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn--electric { background: var(--electric); color: var(--white); }
.btn--electric:hover { background: var(--electric-light); }
.btn--mint { background: var(--mint); color: var(--mint-ink); }
.btn--mint:hover { background: #5cefbb; }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn--primary:not(.btn--small)::after { content: "→"; font-weight: 600; transition: transform 0.25s var(--ease-out); }
.btn--primary:hover::after { transform: translateX(3px); }
@media (max-width: 639px) { .cta-row .btn { width: 100%; } }

.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: rgba(255, 255, 255, 0.8); font: 500 1rem var(--cb-body);
  text-decoration: underline; text-underline-offset: 4px;
}
.text-link--quiet { justify-self: center; font-size: 0.875rem; }
.text-link:hover { color: var(--mint); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 34px; }

.panel-dark {
  margin-top: 34px; padding: 22px;
  border-radius: var(--radius);
  background: rgba(20, 16, 69, 0.78);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* --------------------------------------------------------------- hero */

.hero .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.live-dot {
  position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--mint);
}
/* The pulse is a scaled ring (transform + opacity), so it runs on the compositor. */
.live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(34, 224, 160, 0.6);
  animation: live 2s infinite;
}
@keyframes live { from { transform: scale(1); opacity: 1; } 70%, to { transform: scale(3.2); opacity: 0; } }

.scoreboard {
  flex: none; width: 260px; padding: 18px 20px 20px;
  border-radius: 16px;
  background: rgba(11, 9, 38, 0.72);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  margin-bottom: 8px;
}
.scoreboard__when { display: flex; align-items: center; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.scoreboard__count { margin-top: 8px; color: var(--white); font-weight: 600; }
.scoreboard__count strong {
  display: block; font-family: var(--cb-display); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--mint);
  font-variant-numeric: tabular-nums;
}
.scoreboard__bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-top: 12px; }
.scoreboard__bars span { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); }
.scoreboard__bars .on { background: var(--mint); box-shadow: 0 0 12px rgba(34, 224, 160, 0.6); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; translate: -50% 0;
  display: grid; justify-items: center; gap: 8px;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); text-decoration: none;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 36px;
  background: linear-gradient(var(--mint), transparent);
  animation: cue 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 819px) {
  .hero .wrap { flex-direction: column; align-items: stretch; gap: 26px; }
  .scoreboard { width: auto; display: grid; grid-template-columns: 1fr auto; align-items: end; }
  .scoreboard__bars { grid-column: 1 / -1; }
  .scroll-cue { display: none; }
}

/* --------------------------------------------------------------- friction */

.clock {
  margin: -6px 0 6px -0.04em;
  font-family: var(--cb-display); font-weight: 800;
  font-size: clamp(6rem, 3rem + 13vw, 15rem); line-height: 0.9;
  letter-spacing: -0.01em;
  color: transparent;
  -webkit-text-stroke: 2px var(--magenta);
  text-shadow: 0 0 60px rgba(237, 28, 142, 0.25);
  font-variant-numeric: tabular-nums;
}
.clock__colon { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.15; } }

.calc { max-width: 30rem; }
.calc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.calc label { color: var(--white); font-weight: 600; }
.calc__value { color: var(--mint); font-size: 1.4rem; font-weight: 600; }
.calc__result { margin-top: 14px; color: var(--ink-soft); }
.calc__hours {
  display: inline-block; margin-right: 4px;
  font-family: var(--cb-display); font-weight: 800; font-size: 3rem; line-height: 1;
  color: var(--white); font-variant-numeric: tabular-nums;
}
.calc__note { margin-top: 10px; font-size: 0.85rem; color: var(--ink-mute); }

.range {
  --fill: 21%;
  width: 100%; height: 44px; margin: 6px 0 0; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--mint) var(--fill), rgba(255, 255, 255, 0.16) var(--fill));
}
.range::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); }
.range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--mint); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; margin-top: -10px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--mint);
  box-shadow: 0 0 0 6px rgba(34, 224, 160, 0.15);
}
.range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--mint);
}
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--night), 0 0 0 7px var(--mint); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--night), 0 0 0 7px var(--mint); }

/* --------------------------------------------------------------- story */

.story { position: relative; }
.story__sticky { padding: calc(var(--header-h) + 6vh) 0 10vh; }
.story-step h3 {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--cb-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); line-height: 1;
}
.story-step h3 .num { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; color: var(--mint); }
.story-step p { margin-top: 14px; max-width: 30rem; font-size: 1.15rem; color: var(--ink-soft); }

.story__progress { margin: 30px 0 34px; max-width: 30rem; }
.story__progress ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.story__progress a {
  display: grid; gap: 2px; padding: 8px 0 10px; min-height: 44px;
  color: var(--ink-mute); text-decoration: none; font-weight: 600; font-size: 0.9rem;
  transition: color 0.3s;
}
.story__progress a { text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.06em; }
.story__progress a .num { font-size: 0.7rem; letter-spacing: 0.1em; }
.story__progress a:hover { color: var(--white); }
.story__progress a[aria-current="step"] { color: var(--white); }
.story__progress a[aria-current="step"] .num { color: var(--mint); }
.story__bar { position: relative; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.story__bar span {
  position: absolute; inset: 0; transform-origin: left; transform: scaleX(0.2);
  background: linear-gradient(90deg, var(--mint), #7ff2c8);
  box-shadow: 0 0 14px rgba(34, 224, 160, 0.7);
}

/* No JS: the steps read as a simple list. */
.no-js .story-step + .story-step { margin-top: 36px; }
.no-js .story__bar { display: none; }

/* JS: a tall scroll track with the content pinned in place. */
.js .story { height: 600vh; height: 600svh; }
.js .story__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; align-items: center;
}
.js .story__steps { display: grid; }
.js .story-step {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.6s var(--ease-out);
}
.js .story-step.is-active { opacity: 1; transform: none; }

@media (max-width: 819px) {
  .story__sticky { padding: 40svh 0 6svh; }
  .js .story__sticky { align-items: flex-end; }
  .story__progress { margin: 20px 0 22px; }
  .story-step p { font-size: 1.05rem; }
}

/* --------------------------------------------------------------- no double bookings */

.benefits { display: grid; gap: 12px; margin-top: 30px; }
.benefits li {
  display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start;
  padding: 18px; border-radius: 20px;
  background: rgba(21, 16, 63, 0.72); border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.benefits__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: rgba(34, 224, 160, 0.1); box-shadow: inset 0 0 0 1px rgba(34, 224, 160, 0.3);
}
.benefits__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--mint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.benefits h3 { font-family: var(--cb-display); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; line-height: 1.05; }
.benefits p { margin-top: 6px; font-size: 0.95rem; line-height: 1.55; color: rgba(255, 255, 255, 0.65); }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 22px 0 0;
  border-radius: 20px; overflow: hidden; background: rgba(255, 255, 255, 0.12);
}
.stats div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 18px 14px; background: var(--electric); text-align: center; }
.stats dd { margin: 0; font-family: var(--cb-display); font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem); font-weight: 700; line-height: 1; color: var(--white); }
.stats dt { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.9); }

/* --------------------------------------------------------------- owners */

.points { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 30px; margin-top: 34px; }
.points li { padding-top: 16px; border-top: 1px solid rgba(34, 224, 160, 0.4); }
.points h3 { font-family: var(--cb-display); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; line-height: 1.05; }
.points p { margin-top: 6px; font-size: 0.95rem; color: var(--ink-soft); }
@media (max-width: 560px) { .points { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- confidence (light glass) */

.glass {
  width: min(100%, 37rem);
  padding: clamp(26px, 4vw, 44px);
  border-radius: 28px;
  background: rgba(244, 243, 248, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 40px 120px -30px rgba(5, 3, 25, 0.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  color: var(--indigo);
  color-scheme: light;
}
.glass .display { color: var(--indigo); }
.glass .display em { color: var(--magenta-solid); }
.features { margin-top: 28px; }
.features li { padding: 18px 0; border-top: 1px solid rgba(34, 28, 99, 0.14); }
.features h3 {
  display: flex; align-items: center; gap: 12px;
  color: var(--indigo); font-family: var(--cb-display); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; line-height: 1.05;
}
.features p { margin-top: 4px; padding-left: 22px; color: var(--indigo-grey); }
.feature-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(34, 224, 160, 0.2); }

@media (max-width: 819px) { .wrap--end { justify-content: stretch; } .glass { width: 100%; } }

/* --------------------------------------------------------------- coverage */

.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.pill {
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(11, 9, 38, 0.5);
  color: var(--white); font-weight: 600;
}
.pill--sport { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); font-weight: 700; }
.pill--sport::before { content: "● "; font-size: 0.7em; vertical-align: 0.15em; }

/* --------------------------------------------------------------- finale form */

.find { display: grid; gap: 16px; max-width: 34rem; padding: 22px; }
.find__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .find__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label { color: rgba(255, 255, 255, 0.6); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.field select {
  width: 100%; min-height: 52px; padding: 0 40px 0 16px;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center;
  color: var(--white); font: 600 1rem var(--cb-body);
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.field select option { color: var(--indigo); background: var(--white); }
.field select:hover { border-color: rgba(255, 255, 255, 0.4); }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.18); }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented label {
  display: grid; place-items: center; min-height: 42px; border-radius: 10px;
  color: var(--ink-soft); cursor: pointer; transition: background-color 0.2s, color 0.2s;
}
.segmented input:checked + label { background: var(--mint); color: var(--mint-ink); font-weight: 800; }
.segmented input:focus-visible + label { outline: 3px solid var(--mint); outline-offset: 2px; }

.find__done p { margin-top: 12px; }
.find__done strong { color: var(--white); }
.find__done:focus { outline: none; }

/* --------------------------------------------------------------- FAQ + footer (solid light) */

.solid { position: relative; z-index: 1; background: var(--surface); color: var(--indigo); color-scheme: light; }
.solid h2, .solid h3 { color: var(--indigo); }

.faq { padding: clamp(80px, 12vw, 140px) 0; }
.faq__list { margin-top: 36px; border-top: 1px solid rgba(34, 28, 99, 0.16); }
.faq details { border-bottom: 1px solid rgba(34, 28, 99, 0.16); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); color: var(--magenta-solid);
  font: 600 1.2rem var(--cb-body); transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary::after { content: "−"; background: var(--indigo); color: var(--white); }
.faq details p { padding: 0 54px 24px 0; color: var(--indigo-grey); max-width: 44rem; }
.faq details a, .faq__more a { color: var(--magenta-ink); font-weight: 600; }
.faq__more { margin-top: 24px; color: var(--indigo-grey); }

.site-footer.solid {
  position: relative; overflow: hidden;
  background: var(--brand-dark); color: rgba(255, 255, 255, 0.7); color-scheme: dark;
  padding: 72px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer__top { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 48px; }
.site-footer__brand { display: grid; justify-items: start; align-content: start; gap: 28px; }
.site-footer__tag { font-size: clamp(2.25rem, 1.7rem + 1.8vw, 3rem); line-height: 0.95; }
.site-footer__social { display: flex; gap: 12px; }
.social {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); color: rgba(255, 255, 255, 0.6);
  transition: transform 0.3s, background-color 0.3s, color 0.3s;
}
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.social:hover { transform: translateY(-2px); border-color: transparent; }
.social--mint:hover { background: var(--mint); color: var(--mint-ink); }
.social--magenta:hover { background: var(--magenta); color: var(--white); }
.social--electric:hover { background: var(--electric); color: var(--white); }
.site-footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.site-footer.solid h3 { color: rgba(255, 255, 255, 0.6); font-family: var(--cb-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer nav ul { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.site-footer nav a { display: inline-flex; align-items: center; color: rgba(255, 255, 255, 0.7); font-size: 0.94rem; text-decoration: none; transition: color 0.2s; }
.site-footer nav a::before { content: ""; width: 0; height: 1px; background: var(--mint); transition: width 0.3s, margin 0.3s; }
.site-footer nav a:hover { color: var(--mint); }
.site-footer nav a:hover::before { width: 16px; margin-right: 8px; }
.site-footer__contact {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.875rem;
}
.site-footer__nap { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__nap > * { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.site-footer__nap a:hover { color: var(--mint); }
.site-footer__nap svg { width: 16px; height: 16px; fill: none; stroke: var(--mint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.site-footer__legal { display: flex; align-items: center; gap: 16px; font-weight: 500; }
.site-footer__legal a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.site-footer__legal a:hover { color: var(--white); }
.site-footer__legal .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.site-footer__small { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 32px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.62); }
.site-footer__credit { font-weight: 600; color: #f5b13b; }
.site-footer__credit a { color: inherit; text-decoration: underline; text-decoration-color: rgba(245, 158, 11, 0.4); text-underline-offset: 2px; }
.site-footer__mark { position: relative; margin: 32px auto 0; padding-bottom: 56px; width: 90%; max-width: 960px; }
.site-footer__mark::before {
  content: ""; position: absolute; left: 15%; right: 15%; top: 20%; height: 50%;
  border-radius: 50%; background: rgba(34, 224, 160, 0.2); filter: blur(90px);
}
.site-footer__mark img { position: relative; width: 100%; height: auto; }
@media (max-width: 1023px) { .site-footer__top { grid-template-columns: 1fr; } }
@media (max-width: 639px) {
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
  .site-footer__brand .btn { width: 100%; }
  .site-footer__small { flex-direction: column; align-items: center; text-align: center; }
  .site-footer__contact { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------- motion toggle */

.motion-toggle {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px;
  background: rgba(11, 9, 38, 0.82); color: var(--white);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font: 600 0.85rem var(--cb-body); cursor: pointer;
  animation: toggle-in 0.5s var(--ease-out);
}
.motion-toggle__icon { position: relative; width: 20px; height: 20px; border-radius: 50%; background: var(--mint); }
.motion-toggle__icon::before, .motion-toggle__icon::after {
  content: ""; position: absolute; top: 6px; width: 2.5px; height: 8px; background: var(--mint-ink); border-radius: 1px;
}
.motion-toggle__icon::before { left: 6.5px; }
.motion-toggle__icon::after { right: 6.5px; }
.motion-toggle[aria-pressed="true"] .motion-toggle__icon::before {
  left: 7.5px; top: 5px; width: 0; height: 0; border-radius: 0; background: none;
  border-style: solid; border-width: 5px 0 5px 7px; border-color: transparent transparent transparent var(--mint-ink);
}
.motion-toggle[aria-pressed="true"] .motion-toggle__icon::after { display: none; }
.solid-visible .motion-toggle { background: var(--indigo); }
@keyframes toggle-in { from { opacity: 0; transform: translateY(10px); } }

/* Small screens: icon-only, tucked into the corner so it never covers copy. */
@media (max-width: 819px) {
  .motion-toggle { right: 12px; bottom: 12px; width: 44px; padding: 0; justify-content: center; }
  .motion-toggle__label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .scene-label { min-width: 0; padding: 7px 10px 8px; font-size: 10.5px; }
  .scene-label b { font-size: 13px; }
  .scene-label--ref b { font-size: 17px; }
  .scene-label--card { min-width: 0; padding-left: 46px; }
  .scene-label--card b { font-size: 17px; }
  .scene-label--ops b { font-size: 10.5px; }
}

/* --------------------------------------------------------------- reveals */

/* Only hidden when GSAP is confirmed running (main.js adds .reveals). */
.reveals [data-reveal] { opacity: 0; transform: translateY(26px); }
/* Hero copy is the LCP element: it rises in but is never invisible. */
.reveals .hero [data-reveal] { opacity: 1; }

/* --------------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .clock__colon, .live-dot::after, .scroll-cue::after { animation: none !important; }
}
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }

@media (forced-colors: active) {
  .btn, .scoreboard, .panel-dark, .glass, .pill { border: 1px solid CanvasText; }
  .clock { color: CanvasText; -webkit-text-stroke: 0; }
}

/* --------------------------------------------------------------- poster capture (?capture=<shot>) */
.capture-mode .site-header, .capture-mode main, .capture-mode .site-footer,
.capture-mode .stage__scrim, .capture-mode .stage__labels, .capture-mode .motion-toggle, .capture-mode .skip-link { display: none !important; }
