/* =========================================================================
   HYPERNÜ — Two-stage Nike-inspired pitch site
   Stage 1: Enter-code home screen (inlined critical CSS in HTML)
   Stage 2: Minimalist 7-section deck scroll (Black / Bone / Volt)
   Optimized for mobile (375-430px), tablet (768px), and desktop (1440px+)
   ========================================================================= */

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

:root {
  --black: #000000;
  --bone:  #F2EFE8;
  --volt:  #D4FF37;
  --white: #F5F4EF;
  --dark:  #0D0F12;
  --muted: #8C8C85;
  --mono:  "SF Mono", Menlo, Consolas, monospace;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --d: clamp(56px, 10vw, 80px);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.25;
}

/* ================= NAV ================= */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 32px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-left: max(32px, env(safe-area-inset-left));
  padding-right: max(32px, env(safe-area-inset-right));
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  mix-blend-mode: difference;
  pointer-events: none;
}
.site-nav a { pointer-events: auto; }
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 700; min-height: 44px; }
.nav-brand svg { width: 34px; height: 13px; }
.nav-index { display: flex; gap: 4px; }
.nav-chip {
  background: transparent; border: 1px solid rgba(255,255,255,0.22);
  color: var(--white); font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; padding: 6px 10px; cursor: pointer;
  text-decoration: none; transition: all .2s; min-height: 34px;
  display: inline-flex; align-items: center;
}
.nav-chip:hover, .nav-chip.active { background: var(--volt); color: var(--black); border-color: var(--volt); font-weight: 700; }
.nav-actions { display: flex; gap: 8px; }

/* ================= TYPOGRAPHY ATOMS ================= */
.mono-kicker {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.kicker-top {
  position: absolute; top: 72px; left: 72px; right: 72px;
  display: flex; justify-content: space-between; align-items: center; z-index: 5;
}
.display {
  font-size: clamp(52px, 12vw, 160px); font-weight: 900;
  letter-spacing: -4px; line-height: 0.88; text-transform: uppercase;
}
.display.bone { color: var(--white); }
.display.volt { color: var(--volt); }
.display.dark { color: var(--dark); }
.section-meta {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  position: absolute; bottom: 32px; left: 72px; right: 72px;
  display: flex; justify-content: space-between; align-items: center; color: var(--muted);
}
.section-num { font-weight: 700; }

/* ================= SECTIONS BASE ================= */
.sec {
  min-height: 100vh; position: relative; display: flex; flex-direction: column;
  justify-content: center; padding: 130px 72px 80px; overflow: hidden;
}
.sec.bone { background: var(--bone); color: var(--dark); }
.sec.bone .mono-kicker { color: #8A8780; }
.sec.bone .section-meta { color: #8A8780; }
.sec.bone .display.bone { color: var(--dark); }
.sec.volt-theme { background: var(--volt); color: var(--black); }
.sec.volt-theme .mono-kicker { color: var(--black); opacity: .7; }
.sec.volt-theme .section-meta { color: var(--black); opacity: .7; }
.sec.volt-theme .display { color: var(--black); }

/* ================= RADAR RINGS ================= */
.radar {
  position: absolute; border-radius: 50%; border: 1px solid rgba(212,255,55,0.2);
  top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none;
}
.r1 { width: 500px; height: 500px; }
.r2 { width: 900px; height: 900px; }
.r3 { width: 1350px; height: 1350px; }
.radar-pulse { animation: radar-wave 3.6s cubic-bezier(.2,.8,.2,1) infinite; }
.r2.radar-pulse { animation-delay: .8s; }
.r3.radar-pulse { animation-delay: 1.6s; }
@keyframes radar-wave {
  0%   { transform: translate(-50%, -50%) scale(.95); opacity: .45; }
  60%  { opacity: .05; }
  100% { transform: translate(-50%, -50%) scale(1.18); opacity: 0; }
}

/* ================= 01 COVER ================= */
#s01 { text-align: center; justify-content: space-between; padding-top: 140px; }
.s01-video-stage {
  position: relative; width: 100%; min-height: 440px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
  overflow: visible;
}
.s01-video-stage:focus-visible { outline: 2px solid var(--volt); outline-offset: 8px; border-radius: 4px; }
.s01-vid {
  width: min(880px, 94vw); height: auto; max-height: 540px; object-fit: contain;
  display: block; margin: 0 auto; pointer-events: auto;
  transform-origin: center center;
  animation: hero-superzoom 15s ease-out infinite;
  will-change: transform;
  mix-blend-mode: screen;
  -webkit-transform: translateZ(0); transform: translateZ(0);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.s01-vid.pulse { animation: none !important; }
.s01-ripple {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 5;
  border: 2px solid rgba(212,255,55,0.7);
  transform: translate(-50%, -50%) scale(0.2);
  animation: s01-rip .28s ease-out forwards;
}
@keyframes s01-rip {
  to { transform: translate(-50%, -50%) scale(2.4); opacity: 0; }
}
.s01-hint {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: #4A4840;
  pointer-events: none; opacity: 1; transition: opacity .4s;
  z-index: 5;
}
.s01-hint.hide { opacity: 0; }
@keyframes hero-superzoom {
  0%   { transform: scale(3.4); }
  6%   { transform: scale(3.6); }
  53%  { transform: scale(3.6); }
  62%  { transform: scale(1); }
  100% { transform: scale(1); }
}

/* ================= 02 REVEAL ================= */
#s02 { text-align: center; align-items: center; }
.s02-wm { width: min(1200px, 94vw); height: auto; display: block; margin: auto 0; }

/* ================= 03 THE NAME ================= */
#s03 .s03-head .display { margin: 10px 0 8px; }
.name-sub { font-size: clamp(22px, 2.4vw, 36px); line-height: 1.2; color: #4A4840; margin-bottom: 72px; }
.name-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; max-width: 1400px; }
.name-col { cursor: default; }
.nc-label {
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: #8A8780;
}
.nc-title {
  font-size: clamp(80px, 9.5vw, 170px); font-weight: 900; letter-spacing: -3px;
  line-height: .88; text-transform: uppercase; margin: 6px 0 10px;
}
.nc-title.volt-col { color: var(--volt); }
.nc-body { font-size: clamp(20px, 2vw, 30px); line-height: 1.25; color: #4A4840; font-weight: 500; }

/* ================= 04 THE TWO-DOT MARK ================= */
.mark-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin: auto 0;
}
.mark-space-word {
  font-size: clamp(56px, 8vw, 140px); font-weight: 900; letter-spacing: -3px;
  line-height: .9; text-transform: uppercase;
}
.mark-copy {
  font-size: clamp(19px, 2.1vw, 32px); line-height: 1.3; color: var(--muted);
  margin-top: 18px; max-width: 620px;
}
.mark-demo { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.mark-dots {
  display: flex; align-items: center; gap: var(--gap, calc(var(--d) * 2 / 3));
  transition: gap .15s;
}
.mark-dot {
  width: var(--d); height: var(--d); border-radius: 50%; background: var(--volt);
  box-shadow: 0 0 70px rgba(212,255,55,0.35);
}
.mark-dim {
  position: relative; width: 100%; display: flex; justify-content: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.dim-labels { display: flex; justify-content: space-between; width: calc(var(--d) * 2 + var(--gap, calc(var(--d) * 2 / 3)) + 40px); }
.dim-lines { position: absolute; width: 100%; height: 6px; border-bottom: 1px solid rgba(255,255,255,0.25); top: -8px; }
.mark-slider {
  width: 100%; max-width: 380px; accent-color: var(--volt);
  height: 44px; cursor: pointer; touch-action: pan-y;
}
.mark-snap {
  background: transparent; border: 1px solid rgba(255,255,255,0.25); color: var(--white);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 14px; cursor: pointer; min-height: 34px;
}
.mark-spec {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-top: -6px;
}

/* ================= 05 THE FIRST APPLICATION ================= */
#s05 { text-align: center; }
#s05 .display { margin: 8px 0 24px; }
.heel-stage { position: relative; width: min(860px, 94vw); margin: 0 auto; }
.heel-stage img { width: 100%; height: auto; display: block; }
.heel-stage .radar { border-color: rgba(212,255,55,0.3); }

/* ================= 06 THE BOOT CONCEPT ================= */
#s06 { padding-bottom: 72px; justify-content: center; }
.s06-head { margin-bottom: 40px; }
.boot-sub { font-size: clamp(26px, 3vw, 44px); font-weight: 700; color: #3A3A34; text-transform: uppercase; letter-spacing: -.5px; }
.boot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.boot-card {
  background: transparent; border-radius: 2px; overflow: hidden;
  cursor: pointer; transition: transform .3s; touch-action: manipulation;
}
.boot-card:hover { transform: translateY(-8px); }
.boot-card:active { transform: scale(0.98); }
.bc-img { width: 100%; aspect-ratio: 889/642; overflow: hidden; background: #DDD8CE; }
.bc-img img { width: 100%; height: 100%; object-fit: contain; }
.bc-caption {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding-top: 14px;
}
.bc-label { color: #8A8780; }
.bc-title { color: var(--dark); font-weight: 700; }

/* ================= 07 BEYOND THE BOOT ================= */
#s07 { text-align: center; }
#s07 .mono-kicker { color: var(--black); opacity: .7; }
#s07 .display { margin: 6px 0 4px; }
.volt-sub {
  font-size: clamp(28px, 3.4vw, 52px); font-weight: 900; letter-spacing: -1px;
  text-transform: uppercase; margin-bottom: 24px;
}
.scale-stage { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 10px 0 32px; }
.scale-dots { display: flex; align-items: center; gap: calc(var(--sd, 70px) * 2 / 3); }
.scale-dot {
  width: var(--sd, 70px); height: var(--sd, 70px); border-radius: 50%;
  background: var(--black);
}
.scale-slider { width: min(340px, 80vw); accent-color: var(--black); height: 44px; cursor: pointer; touch-action: pan-y; }
.scale-size {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--black); opacity: .7;
}
.secured-blocks {
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px;
}
.sec-block {
  background: var(--black); color: var(--white); padding: 20px 28px;
  border-radius: 2px; text-align: left; cursor: pointer; transition: transform .2s, opacity .15s;
  min-width: 280px; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.sec-block:hover { transform: translateY(-2px); }
.sec-block:active { transform: scale(0.97); opacity: .85; }
.sb-k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--volt); }
.sb-v { font-size: clamp(28px, 3vw, 44px); font-weight: 900; letter-spacing: -1px; text-transform: uppercase; line-height: 1; margin-top: 4px; }

/* ================= TOAST ================= */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--volt); color: var(--black); font-family: var(--mono);
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 18px; z-index: 100; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.toast.show { opacity: 1; }

/* ================= LIGHTBOX ================= */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 110;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 94vw; max-height: 90vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 20px; right: 28px; background: transparent; border: none;
  color: var(--white); font-family: var(--mono); font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; cursor: pointer; min-height: 44px; min-width: 44px;
}

/* ================= MOBILE ================= */
@media (max-width: 900px) {
  .site-nav { padding: 12px 20px; }
  .sec {
    padding: max(96px, calc(64px + env(safe-area-inset-top))) 20px 48px;
    min-height: auto;
  }
  #s01 { min-height: 100svh; justify-content: space-between; }
  .s01-vid { width: 92vw; max-height: 400px; }
  .s01-video-stage { min-height: 280px; }
  .kicker-top { top: 54px; left: 20px; right: 20px; flex-wrap: wrap; gap: 8px; font-size: 10px; }
  .section-meta { left: 20px; right: 20px; bottom: 14px; flex-wrap: wrap; gap: 8px; font-size: 10px; }
  .name-cols, .mark-split, .boot-grid { grid-template-columns: 1fr; gap: 32px; }
  .name-sub { margin-bottom: 40px; }
  .nc-title { letter-spacing: -2px; }
  .display { letter-spacing: -2px; line-height: 0.92; }
  .mark-space-word { letter-spacing: -2px; }
  .nav-index { display: none; }
  .radar { display: none; }
  .secured-blocks { flex-direction: column; align-items: stretch; }
  .sec-block { min-width: 0; }
  .r2.radar-pulse, .r3.radar-pulse { animation: none; }
}

@media (max-width: 420px) {
  .kicker-top span:last-child { display: none; }
  .display { font-size: 46px; }
  .nc-title { font-size: 68px; }
  .s01-dots { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .radar-pulse { animation: none !important; }
  .s01-vid { animation: none !important; }
}
