/* ===== Tokens ===== */
:root {
  --bg: #0a0c10;
  --bg-elevated: #14181f;
  --bg-elevated-2: #1b2029;
  --blue: #2f7fe8;
  --blue-bright: #5aa8ff;
  --chrome-1: #cfd3d8;
  --chrome-2: #6d7278;
  --text: #f3f4f6;
  --text-dim: #9aa0a8;
  --text-faint: #5c6169;
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --ease: cubic-bezier(.16,.84,.44,1);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ===== Loader ===== */
#loader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.loader-mark { font-family: var(--font-display); font-weight: 900; font-size: 2.5rem; color: var(--chrome-1); letter-spacing: 0.05em; }
.loader-name { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.25em; color: var(--text-dim); }
#loader-bar { width: 220px; height: 2px; background: var(--bg-elevated-2); }
#loader-bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--blue), var(--blue-bright)); transition: width 0.2s var(--ease); }
#loader-percent { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-faint); }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: linear-gradient(to bottom, rgba(10,12,16,0.9), transparent);
  backdrop-filter: blur(6px);
}
.nav {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 5vw;
}
.nav-logo { display: flex; align-items: baseline; gap: 10px; }
.nav-logo-mark { font-family: var(--font-display); font-weight: 900; font-size: 1.4rem; color: var(--chrome-1); }
.nav-logo-text { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.18em; color: var(--text-dim); }
.nav-links { display: flex; gap: 36px; }
.nav-links a { font-size: 0.85rem; letter-spacing: 0.02em; color: var(--text-dim); transition: color 0.3s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text); border: 1px solid rgba(255,255,255,0.15); padding: 9px 16px; transition: border-color 0.3s, background 0.3s; }
.nav-cta:hover { border-color: var(--blue); background: rgba(47,127,232,0.08); }
.nav-cta-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-bright); box-shadow: 0 0 8px var(--blue-bright); }

@media (max-width: 900px) {
  /* Static, not fixed: the bar must never float over the video — it takes
     its own space at the top, and everything else (hours, services, video)
     follows below it in normal flow. */
  .site-header {
    position: static;
    background: var(--bg);
    backdrop-filter: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav { padding: 14px 5vw; }
  .nav-logo-mark { font-size: 1.1rem; }
  .nav-logo-text { display: none; }
  .nav-links { display: none; }
  .nav-cta { padding: 8px 12px; white-space: nowrap; flex-shrink: 0; }
  .nav-cta-text { font-size: 0.68rem; }
}

/* ===== Cinema hero =====
   Desktop: video full-bleed behind an overlaid right panel (unchanged look).
   Mobile: `.cinema-panel` dissolves via display:contents so its children
   become direct flex items of `.cinema-hero`, letting each block (hours,
   services, video, copy) be reordered independently — see media query. */
.cinema-hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: var(--bg-elevated);
}
.stage-viewport { position: absolute; inset: 0; }
.stage-viewport canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.6s var(--ease);
}
.stage-viewport canvas.is-visible { opacity: 1; }
.cinema-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(85deg, transparent 40%, rgba(10,12,16,0.55) 62%, rgba(10,12,16,0.92) 78%),
    linear-gradient(to top, rgba(10,12,16,0.85) 0%, transparent 22%),
    linear-gradient(to bottom, rgba(10,12,16,0.7) 0%, transparent 16%);
}
.stage-progress { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,0.08); z-index: 3; }
.stage-progress-fill { height: 100%; width: 0%; background: var(--blue-bright); }

.cinema-panel {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 2;
  width: min(38vw, 480px);
  display: flex; flex-direction: column;
  padding: 118px 3.2vw 40px;
}
.hero-copy { max-width: 420px; }
.stage-caption { margin-top: auto; padding-top: 18px; }
.service-list { margin-top: 18px; }

.section-label {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em;
  color: var(--blue-bright); text-transform: uppercase;
  margin-bottom: 22px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(90,168,255,0.25);
}
.hero-heading {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
  line-height: 0.96; letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: var(--text);
}
.hero-line { display: block; overflow: hidden; }
.hero-line .w { display: inline-block; }
.hero-line-accent { color: var(--chrome-1); }
.hero-line-accent .w:last-child { color: var(--blue-bright); }
.hero-tagline {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem); line-height: 1.55;
  color: var(--text-dim); margin: 0 0 22px;
}
.hero-hours-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text);
  border: 1px solid rgba(255,255,255,0.15); padding: 10px 16px;
}
.hero-hours-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-bright); box-shadow: 0 0 8px var(--blue-bright); flex-shrink: 0; }
.hero-hours-detail { display: none; }

.scroll-cue {
  position: absolute; bottom: 40px; left: 5vw; z-index: 2;
  display: flex; align-items: center; gap: 14px;
}
.scroll-cue span { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.2em; color: var(--text-faint); }
.scroll-cue-line { width: 1px; height: 46px; background: linear-gradient(to bottom, var(--blue-bright), transparent); }

.stage-caption { display: flex; flex-direction: column; gap: 4px; }
.stage-caption-eyebrow { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.2em; color: var(--blue-bright); }
.stage-caption-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }

.service-list { display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,0.15); }
.service-item {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left;
  padding: 13px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  transition: padding-left 0.35s var(--ease), background 0.35s var(--ease);
}
.service-item:hover, .service-item:focus-visible, .service-item[aria-pressed="true"] {
  padding-left: 12px;
  background: rgba(47,127,232,0.1);
}
.service-item-icon { flex-shrink: 0; width: 24px; height: 24px; color: var(--chrome-2); transition: color 0.35s; }
.service-item:hover .service-item-icon, .service-item[aria-pressed="true"] .service-item-icon { color: var(--blue-bright); }
.service-item-icon svg { width: 100%; height: 100%; }
.service-item-text { flex: 1; }
.service-item-name { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.service-item-arrow { font-size: 1rem; color: var(--text-faint); opacity: 0; transform: translateX(-6px); transition: all 0.35s var(--ease); }
.service-item:hover .service-item-arrow, .service-item[aria-pressed="true"] .service-item-arrow { opacity: 1; transform: translateX(0); color: var(--blue-bright); }

@media (max-width: 900px) {
  /* Bar sits in normal flow (never over the video). Below it: hours + the
     5 services, THEN the video (now a small contained box, not full-bleed),
     THEN the current-state caption and brand copy. `.cinema-panel` dissolves
     via display:contents so hours/caption/services/copy become direct flex
     items of `.cinema-hero`, sitting alongside the video box and freely
     reorderable — independent of their shared desktop wrapper. */
  .cinema-hero {
    position: relative;
    height: auto; min-height: 0; max-height: none;
    display: flex; flex-direction: column;
    background: var(--bg);
  }
  .stage-viewport {
    position: relative; inset: auto;
    order: 3;
    width: 100%; aspect-ratio: 4 / 3;
    flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .cinema-scrim { display: none; }

  .cinema-panel { display: contents; }

  .hero-hours-badge {
    order: 1;
    margin: 16px 6vw 0;
    font-size: 0.66rem; padding: 8px 12px;
  }
  .service-list {
    order: 2;
    display: flex; flex-direction: row; justify-content: space-between;
    gap: 4px;
    margin: 14px 6vw 0;
    border-top: none;
  }
  .stage-caption {
    order: 4;
    margin: 0 6vw; margin-top: 16px !important;
    padding-top: 0;
  }
  .hero-copy {
    order: 5;
    max-width: 100%;
    margin: 6px 6vw 30px;
  }

  .section-label { font-size: 0.56rem; margin-bottom: 10px; }
  .hero-heading { font-size: clamp(1.3rem, 6vw, 1.6rem); margin-bottom: 10px; }
  .hero-tagline { font-size: 0.8rem; margin-bottom: 0; }

  .stage-caption-title { font-size: 1rem; }
  .stage-caption-eyebrow { font-size: 0.56rem; }

  /* Services as 5 compact icon chips in a row: 2 left, 1 centre, 2 right. */
  .service-item {
    flex: 1; flex-direction: column; justify-content: flex-start;
    gap: 5px; padding: 8px 2px; text-align: center;
    border-bottom: none;
  }
  .service-item:hover, .service-item:focus-visible, .service-item[aria-pressed="true"] {
    padding-left: 2px;
  }
  .service-item-icon { width: 20px; height: 20px; }
  .service-item-text { flex: none; }
  .service-item-name { display: block; font-size: 0.6rem; font-weight: 600; line-height: 1.15; }
  .service-item-arrow { display: none; }

  .scroll-cue { display: none; }
}

/* ===== Chrome sweep divider ===== */
.chrome-sweep { width: 100%; height: 60px; opacity: 0.7; }
.chrome-sweep svg { width: 100%; height: 100%; }

/* ===== Reveal sections (generic) ===== */
.reveal-section { padding: 100px 5vw; position: relative; }
.section-inner { max-width: 640px; }
.align-left .section-inner { margin-right: auto; }
.align-right .section-inner { margin-left: auto; text-align: left; }
.section-heading { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 4.6vw, 4.4rem); margin: 0 0 20px; line-height: 1.02; }
.section-body { font-size: 1.05rem; line-height: 1.7; color: var(--text-dim); margin: 0; }

/* ===== Stats ===== */
.section-stats { padding: 90px 5vw; background: var(--bg-elevated); }
.stats-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.stat { display: flex; flex-direction: column; }
.stat-number { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 6vw, 5rem); color: var(--chrome-1); line-height: 1; }
.stat-suffix { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--blue-bright); }
.stat-label { margin-top: 14px; font-size: 0.9rem; color: var(--text-dim); max-width: 260px; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: 1fr; gap: 44px; } }

/* ===== Marquee ===== */
.marquee-wrap { overflow: hidden; padding: 26px 0; white-space: nowrap; border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }
.marquee-text {
  display: inline-block;
  font-family: var(--font-display); font-weight: 700;
  font-size: 13vw; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--chrome-2);
  text-transform: uppercase;
  will-change: transform;
}

/* ===== Hours ===== */
.section-hours { background: var(--bg); }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-family: var(--font-mono); font-size: 0.95rem; }
.hours-table th, .hours-table td { padding: 13px 0; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.08); font-weight: 400; }
.hours-table th { color: var(--text-dim); width: 40%; }
.hours-table td.open { color: var(--blue-bright); }
.hours-table td.closed { color: var(--text-faint); }
.hours-note { margin-top: 18px; font-size: 0.8rem; color: var(--text-faint); }

/* ===== CTA ===== */
.section-cta { background: var(--bg-elevated); text-align: left; }
.section-cta .section-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.cta-heading { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 5.5vw, 4.6rem); line-height: 1.04; margin: 0 0 40px; }
.cta-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.cta-button { font-family: var(--font-mono); font-size: 0.9rem; letter-spacing: 0.04em; padding: 18px 32px; transition: all 0.3s var(--ease); }
.cta-button-primary { background: var(--blue); color: #fff; }
.cta-button-primary:hover { background: var(--blue-bright); }
.cta-button-secondary { border: 1px solid rgba(255,255,255,0.2); color: var(--text); }
.cta-button-secondary:hover { border-color: var(--chrome-1); background: rgba(255,255,255,0.04); }
@media (max-width: 600px) { .section-cta .section-inner { text-align: left; } .cta-actions { justify-content: flex-start; } }

/* ===== Footer ===== */
.site-footer { padding: 34px 5vw; border-top: 1px solid rgba(255,255,255,0.07); }
.footer-inner { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-mark { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--text-dim); }
.footer-info { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-faint); }

/* ===== Reveal animation base states (JS toggles .is-visible) ===== */
.reveal-section [data-reveal] { opacity: 0; }
