/* ================================================================
   PATCH ROBOWARS — fight night 2026
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=JetBrains+Mono:wght@300;400;500;600;700&family=Archivo:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #050403;
  --bg-1: #0a0806;
  --bg-2: #110c08;
  --paper: #0d0907;
  --ink: #f5efe8;
  --ink-dim: #b8aea2;
  --ink-mute: #6e645a;
  --ink-faint: #3a342e;

  --orange: #ff6a1a;
  --orange-hot: #ff8534;
  --orange-deep: #c84a0a;
  --ember: #ff2d14;
  --green: #22ff88;
  --green-dim: #0aa052;

  --rule: rgba(255, 106, 26, 0.18);
  --rule-strong: rgba(255, 106, 26, 0.45);
  --rule-faint: rgba(255, 106, 26, 0.08);

  --grid-intensity: 0.1;
  --scanline-opacity: 0.35;
  --density: 1;

  /* Global page-level constraint — ensures pages don't sprawl on big monitors */
  --page-max: 1440px;
  --page-pad: 40px;
  /* Use this padding on any section that should center its content within --page-max */
  --page-side: max(var(--page-pad), calc((100% - var(--page-max)) / 2 + var(--page-pad)));

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --display: 'Bebas Neue', 'Archivo Narrow', sans-serif;
  --sans: 'Archivo', -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
}
html { overflow-x: hidden; }

body {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 106, 26, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(255, 45, 20, 0.06), transparent 60%),
    var(--bg);
}

::selection { background: var(--orange); color: #000; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============== GLOBAL CHROME OVERLAYS ============== */

.global-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(to right, rgba(255, 106, 26, var(--grid-intensity)) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 106, 26, var(--grid-intensity)) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 30%, transparent 100%);
}

.global-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 106, 26, calc(var(--grid-intensity) * 0.5)) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 106, 26, calc(var(--grid-intensity) * 0.5)) 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 0%, transparent 80%);
}

/* Local grid layer scoped to the hero — sits above hero-bg photos but below
   all hero content (rails, title, buttons, frame chrome). Mirrors global-grid. */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background-image:
    linear-gradient(to right, rgba(255, 106, 26, var(--grid-intensity)) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 106, 26, var(--grid-intensity)) 1px, transparent 1px);
  background-size: 80px 80px;
  background-attachment: fixed;
  mask-image: radial-gradient(ellipse 95% 85% at 50% 60%, black 30%, transparent 100%);
}
.hero-bg-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 106, 26, calc(var(--grid-intensity) * 0.5)) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 106, 26, calc(var(--grid-intensity) * 0.5)) 1px, transparent 1px);
  background-size: 16px 16px;
  background-attachment: fixed;
  mask-image: radial-gradient(ellipse 78% 65% at 50% 60%, black 0%, transparent 80%);
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, var(--scanline-opacity)) 2px,
    rgba(0, 0, 0, var(--scanline-opacity)) 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.35;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 998;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 997;
  background: radial-gradient(ellipse 100% 80% at 50% 50%, transparent 50%, rgba(0,0,0,0.7) 100%);
}

/* ============== TYPOGRAPHY UTILITIES ============== */

.mono { font-family: var(--mono); }
.display { font-family: var(--display); letter-spacing: 0.01em; }

.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.label-bright {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--orange);
}

.eyebrow::before, .eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--orange);
  opacity: 0.6;
}

/* ============== NAVBAR ============== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: linear-gradient(to bottom, rgba(5,4,3,0.95), rgba(5,4,3,0.6) 70%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 106, 26, 0.1);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  position: relative;
}

.nav-brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--orange);
  border-radius: 2px;
  transform: rotate(45deg);
}

.nav-brand-mark::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--orange);
}

.nav-brand .accent { color: var(--orange); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.15s;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover { color: var(--orange); }

.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 10px 18px;
  position: relative;
  background: transparent;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-cta::before, .nav-cta::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border: 1px solid var(--orange);
}

.nav-cta::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.nav-cta::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.nav-cta:hover {
  background: var(--orange);
  color: #000;
}

.nav-cta-dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--orange); }
  50% { opacity: 0.4; box-shadow: 0 0 0 var(--orange); }
}

/* ============== HERO ============== */

.hero {
  position: relative;
  min-height: 100vh;
  /* fall back to 100vh; svh accounts for mobile URL bar so nothing overflows */
  min-height: 100svh;
  padding: 60px 24px 72px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}

/* ===== Photo / video background slideshow ===== */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out, transform 8s linear;
  transform: scale(1.08);
  filter: contrast(1.04) saturate(0.9) brightness(0.7);
}

.hero-bg-slide.active {
  opacity: 1;
  transform: scale(1.0);
}

/* Cinematic grade overlays */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 70% 90% at 50% 50%, transparent 0%, rgba(5,4,3,0.38) 60%, rgba(5,4,3,0.7) 100%),
    linear-gradient(to bottom, rgba(5,4,3,0.38), rgba(5,4,3,0.15) 40%, rgba(5,4,3,0.6));
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(135deg, rgba(255, 106, 26, 0.08), transparent 40%),
    radial-gradient(ellipse 50% 30% at 50% 50%, rgba(255, 106, 26, 0.12), transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-bg-scan {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0,0,0,0.18) 3px,
    rgba(0,0,0,0.18) 4px
  );
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-bg-progress {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 56px;
  height: 1px;
  display: flex;
  gap: 4px;
  z-index: 5;
  pointer-events: none;
}

.hero-bg-tick {
  flex: 1;
  height: 2px;
  background: rgba(255, 106, 26, 0.18);
  position: relative;
  overflow: hidden;
}

.hero-bg-tick.done { background: rgba(255, 106, 26, 0.5); }

.hero-bg-tick.live::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform-origin: left center;
  animation: hero-bg-tick-fill 4s linear forwards;
  box-shadow: 0 0 6px var(--orange);
}

@keyframes hero-bg-tick-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero-bg-frame-id {
  position: absolute;
  bottom: 64px;
  right: 32px;
  z-index: 5;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  pointer-events: none;
}

.hero-bg-frame-id .dim { color: var(--ink-mute); margin-right: 8px; }

/* When in photo variant, dim the reactor and rails so photos breathe */
.hero[data-variant="photo"] .hero-reactor { opacity: 0.65; }
.hero[data-variant="photo"] .hero-rail { color: var(--ink-dim); }
.hero[data-variant="photo"] .spec-block { background: rgba(5, 4, 3, 0.78); }
.hero[data-variant="photo"] .hero-meta-item { background: rgba(5, 4, 3, 0.78); }
.hero[data-variant="photo"] .hero-title {
  text-shadow:
    0 0 30px rgba(255, 106, 26, 0.55),
    0 0 80px rgba(255, 106, 26, 0.35),
    0 4px 30px rgba(0,0,0,0.8);
}

.hero-frame {
  position: absolute;
  inset: 6px 5px 5px;
  pointer-events: none;
  z-index: 60;
}

.hero-frame::before, .hero-frame::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid var(--orange);
}

.hero-frame::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.hero-frame::after { bottom: 0; right: 0; border-left: none; border-top: none; }

.hero-corner-tr, .hero-corner-bl {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid var(--orange);
  opacity: 1;
  z-index: 60;
}

.hero-corner-tr { top: 6px; right: 5px; border-left: none; border-bottom: none; }
.hero-corner-bl { bottom: 5px; left: 5px; border-right: none; border-top: none; }

/* Telemetry rail rows */
.hero-rail {
  position: absolute;
  left: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  z-index: 3;
  pointer-events: none;
}

.hero-rail-top { top: 96px; font-size: 12px; }
.hero-rail-mid { top: 50%; }
.hero-rail-bottom { bottom: 24px; }

.hero-rail-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-rail-item .dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--orange);
}

.hero-rail-item .dot-dim { background: var(--ink-mute); box-shadow: none; }

.hero-rail .accent { color: var(--orange); }
.hero-rail .ember { color: var(--ember); }

/* Hero center stack */

.hero-stack {
  position: relative;
  z-index: 5;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  text-align: center;
  padding: 0;
}

.hero-presents {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--orange);
}

.hero-presents-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--orange));
}

.hero-presents-line.r { background: linear-gradient(to left, transparent, var(--orange)); }

.hero-title-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(96px, 16vw, 240px);
  line-height: 0.84;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--orange);
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  text-shadow:
    0 0 30px rgba(255, 106, 26, 0.35),
    0 0 80px rgba(255, 106, 26, 0.2);
}

.hero-title-row { display: block; position: relative; }

/* Glitch effect — RGB split + flicker */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.glitch::before {
  color: var(--ember);
  animation: glitch-1 4.2s infinite steps(1);
  text-shadow: none;
  mix-blend-mode: screen;
}

.glitch::after {
  color: var(--green);
  animation: glitch-2 5.7s infinite steps(1);
  text-shadow: none;
  mix-blend-mode: screen;
  opacity: 0.8;
}

@keyframes glitch-1 {
  0%, 92%, 100% { transform: translate(0, 0); clip-path: inset(0 0 100% 0); }
  93% { transform: translate(-3px, 1px); clip-path: inset(20% 0 60% 0); }
  94% { transform: translate(2px, -2px); clip-path: inset(50% 0 30% 0); }
  95% { transform: translate(-2px, 0); clip-path: inset(70% 0 10% 0); }
  96% { transform: translate(0, 0); clip-path: inset(0 0 100% 0); }
  97% { transform: translate(-4px, 2px); clip-path: inset(30% 0 50% 0); }
}

@keyframes glitch-2 {
  0%, 90%, 100% { transform: translate(0, 0); clip-path: inset(0 0 100% 0); }
  91% { transform: translate(3px, -1px); clip-path: inset(40% 0 40% 0); }
  92% { transform: translate(-2px, 2px); clip-path: inset(60% 0 20% 0); }
  93% { transform: translate(0, 0); clip-path: inset(0 0 100% 0); }
}

.flicker {
  animation: flicker 6s infinite;
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
    text-shadow:
      0 0 30px rgba(255, 106, 26, 0.35),
      0 0 80px rgba(255, 106, 26, 0.2);
  }
  20%, 22%, 24%, 55% {
    opacity: 0.85;
    text-shadow: none;
  }
}

/* Reactor core behind title */
.hero-reactor {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  height: 720px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

.reactor-ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--orange);
  border-radius: 50%;
  opacity: 0.3;
}

.reactor-ring.r1 { inset: 0; border-style: dashed; animation: spin 60s linear infinite; }
.reactor-ring.r2 { inset: 12%; opacity: 0.5; }
.reactor-ring.r3 { inset: 22%; border-color: var(--ember); opacity: 0.25; animation: spin 30s linear infinite reverse; border-style: dotted; }
.reactor-ring.r4 { inset: 30%; opacity: 0.4; }
.reactor-ring.r5 { inset: 38%; border-style: dashed; animation: spin 90s linear infinite; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.reactor-cross {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--orange) 30%, var(--orange) 70%, transparent);
  opacity: 0.2;
}

.reactor-cross.v {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: auto;
  background: linear-gradient(to bottom, transparent, var(--orange) 30%, var(--orange) 70%, transparent);
}

.reactor-tick {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 12px;
  background: var(--orange);
  transform-origin: 1px 360px;
  opacity: 0.5;
}

.reactor-arc {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 540px;
  height: 540px;
  margin: -270px 0 0 -270px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--orange);
  border-right-color: var(--orange);
  opacity: 0.6;
  animation: spin 12s linear infinite;
  filter: blur(0.5px);
}

.reactor-arc.inner {
  width: 380px;
  height: 380px;
  margin: -190px 0 0 -190px;
  border-top-color: var(--ember);
  border-right-color: transparent;
  border-bottom-color: var(--ember);
  animation: spin 8s linear infinite reverse;
  opacity: 0.4;
}

.reactor-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 26, 0.4) 0%, rgba(255, 45, 20, 0.15) 40%, transparent 70%);
  filter: blur(8px);
  animation: core-pulse 3s ease-in-out infinite;
}

@keyframes core-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* Hero subtitle row */

.hero-fightnight {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 72px);
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-top: -4px;
}

.hero-fightnight .year {
  color: var(--orange);
  position: relative;
}

.hero-fightnight .year::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 12px var(--orange);
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.4em;
  color: var(--orange);
  font-weight: 600;
  margin-top: 0;
  opacity: 1;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.hero-divider::before, .hero-divider::after {
  content: "";
  width: 80px;
  height: 1px;
  background: var(--orange);
  opacity: 0.7;
}

.hero-tagline {
  max-width: 680px;
  margin: 4px auto 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-dim);
  font-weight: 400;
}

.hero-tagline .accent { color: var(--orange); font-weight: 600; }

/* Hero CTAs */

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.btn {
  position: relative;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 18px 30px;
  border: 1px solid var(--orange);
  background: transparent;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.15s;
}

.btn::before, .btn::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  pointer-events: none;
}

.btn::before { top: -3px; left: -3px; border-right: none; border-bottom: none; }
.btn::after { bottom: -3px; right: -3px; border-left: none; border-top: none; }

.btn:hover {
  background: var(--orange);
  color: #000;
  box-shadow: 0 0 24px rgba(255, 106, 26, 0.4);
}

.btn-primary {
  background: var(--orange);
  color: #000;
}

.btn-primary:hover {
  background: var(--orange-hot);
  color: #000;
  box-shadow: 0 0 30px rgba(255, 106, 26, 0.6);
}

.btn-ghost {
  border-color: var(--ink-faint);
  color: var(--ink-dim);
}

.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: transparent;
  box-shadow: none;
}

.btn .star {
  font-size: 14px;
  color: currentColor;
}

/* ============== HERO COUNTDOWN ============== */

.hero-countdown {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 10px auto 0;
  font-family: var(--mono);
  border: 1px solid var(--rule-strong);
  background: rgba(13, 9, 7, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 18px 50px rgba(0, 0, 0, 0.5),
    0 0 50px rgba(255, 106, 26, 0.10);
}

.hero-countdown::before,
.hero-countdown::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--orange);
  pointer-events: none;
}
.hero-countdown::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.hero-countdown::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.hero-countdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 106, 26, 0.04);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
}
.hch-l { color: var(--ink-dim); }
.hch-r { color: var(--orange); text-shadow: 0 0 8px rgba(255, 106, 26, 0.4); }

.hero-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
}

.hero-countdown-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 4px 5px;
  background:
    linear-gradient(180deg, rgba(255, 106, 26, 0.05), rgba(0, 0, 0, 0.35)),
    rgba(5, 4, 3, 0.4);
  border: 1px solid var(--rule);
  overflow: hidden;
}

.hero-countdown-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(255, 106, 26, 0.035) 2px,
    rgba(255, 106, 26, 0.035) 3px
  );
  pointer-events: none;
  z-index: 0;
}

.hero-countdown-num {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 0.9;
  color: var(--orange);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  text-shadow:
    0 0 8px rgba(255, 106, 26, 0.45),
    0 0 18px rgba(255, 106, 26, 0.18);
}

.hero-countdown-cell[data-key="SECONDS"] .hero-countdown-num {
  animation: hc-tick 1s ease-out infinite;
}

@keyframes hc-tick {
  0% {
    text-shadow:
      0 0 12px rgba(255, 133, 52, 0.9),
      0 0 24px rgba(255, 106, 26, 0.45);
    color: var(--orange-hot);
  }
  100% {
    text-shadow:
      0 0 8px rgba(255, 106, 26, 0.45),
      0 0 18px rgba(255, 106, 26, 0.18);
    color: var(--orange);
  }
}

.hero-countdown-key {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-countdown-cell[data-key="SECONDS"] .hero-countdown-num { animation: none; }
}

/* ============== HERO NOTIFY (EMAIL CTA) ============== */

.hero-notify {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  width: 100%;
  max-width: 720px;
  margin: 10px auto 0;
  font-family: var(--mono);
  border: 1px solid var(--rule-strong);
  background: rgba(13, 9, 7, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 18px 50px rgba(0, 0, 0, 0.5);
}

.hero-notify::before,
.hero-notify::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--orange);
  pointer-events: none;
}
.hero-notify::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.hero-notify::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.hn-input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  outline: none;
  caret-color: var(--orange);
}
.hn-input::placeholder {
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}
.hn-input:focus { background: rgba(255, 106, 26, 0.04); }

.hn-submit {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0 22px;
  border: 0;
  border-left: 1px solid var(--rule);
  background: var(--orange);
  color: #000;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, color 0.15s;
  white-space: nowrap;
}
.hn-submit:hover { background: var(--orange-hot); box-shadow: 0 0 30px rgba(255, 106, 26, 0.45); }
.hn-submit:disabled { opacity: 0.7; cursor: progress; }

.hero-notify-done {
  grid-template-columns: 1fr;
}
.hero-notify-done .hn-msg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.hero-notify-done .hn-msg .ok {
  color: var(--green);
  font-size: 11px;
  text-shadow: 0 0 8px rgba(34, 255, 136, 0.6);
}

.hero-notify .hn-error {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px 12px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #ff7a59;
  background: rgba(255, 106, 26, 0.06);
  border: 1px dashed rgba(255, 106, 26, 0.45);
  text-transform: uppercase;
}

/* Hero metadata strip */

.hero-meta {
  display: none;
}
.hero-meta-show {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin-top: 20px;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border: 1px solid var(--rule);
  border-right: none;
  background: rgba(13, 9, 7, 0.6);
  backdrop-filter: blur(4px);
}

.hero-meta-item:last-child { border-right: 1px solid var(--rule); }

.hero-meta-key {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.hero-meta-val {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.hero-meta-val .accent { color: var(--orange); }

/* Side panels — left: spec stack, right: photo strip */

.hero-side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 240px;
  z-index: 4;
  pointer-events: none;
  opacity: 0.95;
}

.hero-side-l { left: max(16px, calc(50% - 800px)); }
.hero-side-r { right: max(16px, calc(50% - 800px)); text-align: right; }

.spec-block {
  border: 1px solid var(--rule);
  background: rgba(13, 9, 7, 0.5);
  padding: 14px 16px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: auto;
}

.spec-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--orange);
  margin-bottom: 8px;
  font-size: 9px;
}

.spec-block-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  color: var(--ink-dim);
  margin: 4px 0;
  font-size: 11px;
}

.spec-block-row > span:first-child { white-space: nowrap; flex-shrink: 0; }
.spec-block-row .v { white-space: nowrap; text-align: right; }

.spec-block-row .v { color: var(--ink); font-weight: 500; white-space: nowrap; }

/* Vertical spinning sparkline */

.sparkline {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 24px;
  margin-top: 6px;
}

.sparkline-bar {
  width: 3px;
  background: var(--orange);
  opacity: 0.7;
}

/* Photo schematic crop (small, in side rail) */

.hero-side-photo {
  position: relative;
  border: 1px solid var(--rule-strong);
  height: 170px;
  overflow: hidden;
  margin-bottom: 12px;
  filter: contrast(1.1);
}

.hero-side-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.6) contrast(1.3) brightness(0.7) sepia(0.3) hue-rotate(-20deg);
  mix-blend-mode: screen;
}

.hero-side-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 106, 26, 0.25));
  z-index: 2;
}

.hero-side-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0,0,0,0.4) 3px,
    rgba(0,0,0,0.4) 4px
  );
  z-index: 3;
}

.hero-side-photo-label {
  position: absolute;
  bottom: 6px;
  left: 8px;
  z-index: 4;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(0,0,0,0.7);
  padding: 2px 6px;
}

/* Scroll cue */

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 6;
}

.scroll-cue-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, transparent, var(--orange));
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============== SECTION CHROME ============== */

.section {
  position: relative;
  padding: calc(120px * var(--density)) 32px;
  z-index: 5;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 64px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
}

.section-id {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-id::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--orange);
}

.section-title {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0;
  text-transform: uppercase;
  color: var(--ink);
  max-width: 800px;
}

.section-title .accent { color: var(--orange); }

.section-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: right;
  line-height: 1.8;
}

.section-meta .accent { color: var(--orange); }

/* ============== PITCH (DUAL TABS) ============== */

.pitch {
  background: linear-gradient(to bottom, transparent, rgba(255, 106, 26, 0.02) 50%, transparent);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.pitch-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--rule);
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.pitch-tab {
  flex: 1;
  padding: 18px 24px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: left;
  position: relative;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pitch-tab:last-child { border-right: none; }

.pitch-tab .num {
  color: var(--orange);
  margin-right: 12px;
}

.pitch-tab:hover { color: var(--ink); }

.pitch-tab.active {
  color: var(--orange);
  background: rgba(255, 106, 26, 0.05);
}

.pitch-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange);
}

.pitch-tab-arrow {
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.pitch-tab.active .pitch-tab-arrow {
  opacity: 1;
  color: var(--orange);
}

.pitch-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}

.pitch-copy h3 {
  font-family: var(--display);
  font-size: clamp(40px, 4.5vw, 72px);
  line-height: 0.95;
  margin: 0 0 24px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.pitch-copy h3 .accent { color: var(--orange); }

.pitch-copy p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-dim);
  margin: 0 0 16px;
  max-width: 56ch;
}

.pitch-copy p .em { color: var(--ink); font-weight: 500; }

.pitch-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.pitch-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}

.pitch-list li::before {
  content: "▸";
  color: var(--orange);
  font-size: 10px;
  margin-top: 2px;
  flex-shrink: 0;
}

.pitch-list li .label {
  color: var(--orange);
  margin-right: 8px;
  font-size: 10px;
}

.pitch-cta {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* Pitch right side — stat panel */

.stat-panel {
  border: 1px solid var(--rule-strong);
  background: rgba(13, 9, 7, 0.5);
  padding: 28px;
  position: relative;
}

.stat-panel::before, .stat-panel::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--orange);
}

.stat-panel::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.stat-panel::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.stat-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed var(--rule);
  gap: 16px;
}

.stat-row:last-child { border-bottom: none; }

.stat-row-key {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.stat-row-val {
  font-family: var(--display);
  font-size: 36px;
  letter-spacing: 0.02em;
  color: var(--orange);
  line-height: 1;
}

.stat-row-val .unit {
  font-size: 14px;
  color: var(--ink-dim);
  margin-left: 4px;
  letter-spacing: 0.1em;
}

.stat-bars {
  display: flex;
  align-items: center;
  gap: 3px;
}

.stat-bar {
  width: 4px;
  background: var(--orange);
}

.stat-panel-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

/* Sponsor tier strip */

.sponsor-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.tier-card {
  border: 1px solid var(--rule);
  padding: 20px 18px;
  position: relative;
  background: rgba(13, 9, 7, 0.4);
  transition: all 0.2s;
  cursor: pointer;
}

.tier-card:hover {
  border-color: var(--orange);
  background: rgba(255, 106, 26, 0.04);
}

.tier-card.featured {
  border-color: var(--orange);
  background: rgba(255, 106, 26, 0.06);
}

.tier-card.featured::before {
  content: "RECOMMENDED";
  position: absolute;
  top: -8px;
  left: 16px;
  background: var(--bg);
  color: var(--orange);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  padding: 0 8px;
}

.tier-name {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}

.tier-card.featured .tier-name { color: var(--orange); }

.tier-price {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.tier-price .currency { opacity: 0.6; margin-right: 2px; }

.tier-desc {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.7;
  color: var(--ink-mute);
  text-transform: uppercase;
}

/* ============== GALLERY ============== */

.gallery-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 110px;
  gap: 8px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  border: 1px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}

.gallery-item:hover {
  border-color: var(--orange);
  z-index: 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.3s;
  filter: contrast(1.05) saturate(0.95);
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: contrast(1.15) saturate(1.1);
}

.gallery-item-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(0,0,0,0.75);
  padding: 4px 8px;
  border-left: 2px solid var(--orange);
  z-index: 3;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
}

.gallery-item:hover .gallery-item-label {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item-id {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ink);
  background: rgba(0,0,0,0.6);
  padding: 2px 6px;
  z-index: 3;
}

.gallery-item-bracket {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--orange);
  z-index: 3;
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery-item:hover .gallery-item-bracket { opacity: 1; }

.gallery-item-bracket.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.gallery-item-bracket.tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.gallery-item-bracket.bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.gallery-item-bracket.br { bottom: 0; right: 0; border-left: none; border-top: none; }

/* Duotone variant */
.gallery-item.duo img {
  filter: contrast(1.2) brightness(0.9) sepia(0.4) hue-rotate(-15deg) saturate(1.4);
}

/* Gallery grid spans */
.gi-1 { grid-column: span 5; grid-row: span 4; }
.gi-2 { grid-column: span 4; grid-row: span 2; }
.gi-3 { grid-column: span 3; grid-row: span 3; }
.gi-4 { grid-column: span 4; grid-row: span 2; }
.gi-5 { grid-column: span 3; grid-row: span 3; }
.gi-6 { grid-column: span 4; grid-row: span 3; }
.gi-7 { grid-column: span 5; grid-row: span 3; }
.gi-8 { grid-column: span 3; grid-row: span 2; }

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  display: grid;
  place-items: center;
  z-index: 200;
  padding: 64px 32px;
  backdrop-filter: blur(8px);
}

.lightbox-frame {
  position: relative;
  max-width: 1200px;
  max-height: 90vh;
  width: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
}

.lightbox-img-wrap {
  position: relative;
  border: 1px solid var(--rule-strong);
  display: grid;
  place-items: center;
  background: #000;
  min-height: 0;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.lightbox-img-wrap::before, .lightbox-img-wrap::after,
.lightbox-img-wrap > .corner {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--orange);
}

.lightbox-img-wrap::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.lightbox-img-wrap::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.lightbox-img-wrap .corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; opacity: 0.5; }
.lightbox-img-wrap .corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; opacity: 0.5; }

.lightbox-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.lightbox-head .accent { color: var(--orange); }

.lightbox-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.lightbox-foot .nav-btns {
  display: flex;
  gap: 8px;
}

.lightbox-nav-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-dim);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  transition: all 0.15s;
}

.lightbox-nav-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  padding: 8px 14px;
  text-transform: uppercase;
}

.lightbox-close:hover { border-color: var(--orange); color: var(--orange); }

/* ============== TERMINAL / REGISTER ============== */

.terminal-section {
  padding: 120px 32px;
  position: relative;
}

.terminal-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: stretch;
}

.terminal-side h3 {
  font-family: var(--display);
  font-size: clamp(48px, 5vw, 80px);
  line-height: 0.95;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.terminal-side h3 .accent { color: var(--orange); }

.terminal-side p {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin: 0 0 16px;
  max-width: 50ch;
}

.countdown {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.countdown-cell {
  flex: 1 1 100px;
  border: 1px solid var(--rule-strong);
  padding: 16px 14px;
  background: rgba(13, 9, 7, 0.6);
  position: relative;
}

.countdown-cell::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--orange);
  border-right: none;
  border-bottom: none;
}

.countdown-num {
  font-family: var(--display);
  font-size: 56px;
  line-height: 1;
  color: var(--orange);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.countdown-key {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 6px;
}

/* Terminal window */

.terminal {
  border: 1px solid var(--rule-strong);
  background: #060403;
  box-shadow:
    0 0 0 1px rgba(255, 106, 26, 0.05),
    0 30px 80px rgba(0,0,0,0.6),
    0 0 80px rgba(255, 106, 26, 0.05);
  display: flex;
  flex-direction: column;
  min-height: 480px;
  position: relative;
  overflow: hidden;
}

.terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(255, 106, 26, 0.02) 2px,
    rgba(255, 106, 26, 0.02) 3px
  );
  z-index: 1;
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: rgba(255, 106, 26, 0.03);
  z-index: 2;
}

.terminal-bar .dots {
  display: flex;
  gap: 6px;
}

.terminal-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-faint);
}

.terminal-bar .dot.active { background: var(--orange); box-shadow: 0 0 6px var(--orange); }

.terminal-bar .accent { color: var(--orange); }

.terminal-body {
  flex: 1;
  padding: 20px 22px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
  z-index: 2;
  position: relative;
  overflow-y: auto;
  max-height: 460px;
}

.terminal-line {
  display: flex;
  gap: 10px;
  margin: 4px 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-line .prompt { color: var(--orange); flex-shrink: 0; }
.terminal-line .ok { color: var(--green); }
.terminal-line .warn { color: var(--ember); }
.terminal-line .dim { color: var(--ink-mute); }
.terminal-line .label { color: var(--orange); }

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.terminal-input-row .prompt {
  color: var(--orange);
  flex-shrink: 0;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  caret-color: var(--orange);
  padding: 4px 0;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--orange);
  margin-left: 4px;
  animation: blink 1s steps(2) infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% { opacity: 0; }
}

.terminal-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--orange);
}

.terminal-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 106, 26, 0.15);
  position: relative;
  overflow: hidden;
}

.terminal-progress-fill {
  position: absolute;
  inset: 0;
  background: var(--orange);
  width: 0;
  animation: progress 2s ease-out forwards;
}

@keyframes progress {
  to { width: 100%; }
}

.terminal-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0;
}

.terminal-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-dim);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: left;
  transition: all 0.12s;
  cursor: pointer;
}

.terminal-option:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255, 106, 26, 0.06);
}

.terminal-option .key {
  color: var(--orange);
  width: 16px;
  flex-shrink: 0;
}

/* ============== FOOTER ============== */

.footer {
  border-top: 1px solid var(--rule);
  padding: 48px 32px 32px;
  background: rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 5;
}

.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
}

.footer-brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-brand-mark .accent { color: var(--orange); }

.footer-brand-tag {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dim);
  padding: 6px 0;
}

.footer-col a:hover { color: var(--orange); }

.footer-bottom {
  max-width: 1400px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px dashed var(--rule);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.footer-bottom .accent { color: var(--orange); }

/* ============== RESPONSIVE ============== */

@media (max-width: 760px) {
  :root { --page-pad: 20px; }
}

@media (max-width: 1280px) {
  .hero-side { width: 220px; opacity: 0.9; }
  .hero-title { font-size: clamp(88px, 13vw, 200px); }
}

@media (max-width: 1100px) {
  .hero-side { display: none; }
  .pitch-content { grid-template-columns: 1fr; gap: 32px; }
  .terminal-grid { grid-template-columns: 1fr; gap: 32px; }
  .sponsor-tiers { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  /* Apply CTA also hides on mobile — without nav links it floats center */
  .nav-cta { display: none; }

  /* Hero: center content vertically; let it breathe with the rails */
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    justify-content: center;
    padding: 88px 18px 80px;
  }
  .hero-stack { gap: 12px; }

  /* Bigger ROBO WARS, fills mobile width */
  .hero-title { font-size: clamp(140px, 32vw, 240px); line-height: 0.86; }
  .hero-fightnight { font-size: clamp(28px, 7vw, 48px); gap: 16px; }
  .hero-fightnight .year::before {
    left: -12px;
    width: 6px;
    height: 6px;
  }
  .hero-presents { font-size: 11px; letter-spacing: 0.36em; gap: 10px; }
  .hero-presents-line { width: 28px; }
  .hero-divider {
    font-size: 10px;
    letter-spacing: 0.24em;
    white-space: nowrap;
  }
  .hero-divider::before, .hero-divider::after { width: 18px; }
  .hero-tagline {
    font-size: 14px;
    line-height: 1.55;
    max-width: 320px;
  }

  /* CTAs share full width on mobile */
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 0 12px;
  }
  .hero-cta-row .btn {
    width: 100%;
    justify-content: center;
  }

  /* Hero countdown — even tighter on phone */
  .hero-countdown { max-width: 100%; margin-top: 8px; }
  .hero-countdown-header {
    padding: 6px 10px;
    font-size: 9px;
    letter-spacing: 0.18em;
  }
  .hero-countdown-grid { gap: 5px; padding: 7px; }
  .hero-countdown-cell { padding: 6px 2px 4px; }
  .hero-countdown-num { font-size: clamp(26px, 7.5vw, 36px); }
  .hero-countdown-key { font-size: 7px; letter-spacing: 0.22em; margin-top: 3px; }

  /* Hero notify — keep horizontal on phone for compactness */
  .hero-notify {
    max-width: 100%;
    margin-top: 8px;
  }
  .hn-input { padding: 11px 14px; font-size: 14px; }
  .hn-submit {
    padding: 0 16px;
    font-size: 10px;
    letter-spacing: 0.18em;
  }
  .hero-notify-done .hn-msg { padding: 12px 14px; font-size: 12px; }

  /* Top rails */
  .hero-rail-top, .hero-rail-mid, .hero-rail-bottom { font-size: 9px; }
  .hero-rail-mid { display: none; }

  /* Bottom rails: drop dogpatch labs ticker, fix layout, tighten gap */
  .hero-rail-bottom {
    bottom: 18px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
  }
  .hero-rail-bottom .hero-rail-item:last-child { display: none; }
  .hero-rail-bottom .hero-rail-item.amber {
    text-align: left;
    white-space: nowrap;
  }
  .hero-rail-bottom .hero-rail-item.amber .accent { margin-left: 4px !important; }
  .hero-rail-bottom .hero-rail-item:not(.amber) { margin-left: auto; }

  /* Image timeline label — left-align on mobile */
  .hero-bg-frame-id {
    left: 18px;
    right: auto;
    text-align: left;
  }
  .hero-bg-progress { left: 18px; right: 18px; }

  .gallery-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 80px; }
  .gi-1, .gi-7 { grid-column: span 6; grid-row: span 3; }
  .gi-2, .gi-3, .gi-4, .gi-5, .gi-6, .gi-8 { grid-column: span 3; grid-row: span 2; }
  .sponsor-tiers { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 20px; }
}
