/* ==========================================================================
   Page chrome — variables, body reset, background layer, vignette,
   boot curtain, logo slot. (Iron rivet frame removed by request.)
   ========================================================================== */

:root {
  --gold-1: #d4af37;
  --gold-2: #f5e6a8;
  --gold-3: #8b6f1e;
  --iron-1: #0e0e10;
  --iron-2: #1c1c20;
  --iron-3: #2c2c33;
  --iron-edge: #4a4a52;
  --rivet: #5a5a62;
  --glass-blue: #0a1628;
  --glass-blue-2: #1e3a5f;
  --rune-blue: #4a8bc7;
  --text-primary: #f5f0e8;
  --text-dim: #b8a978;

  --ease-overshoot: cubic-bezier(.22, 1.55, .36, 1);
  --ease-out-soft: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
html { scroll-behavior: smooth; }
body {
  min-height: 100%;
  overflow-x: hidden;
}

/* Hero section: 100vh, holds the chained menu and logo. The bg-layer
   renders behind everything (position: fixed) so it stays visible while
   the user scrolls into the footer. */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: visible;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

/* --- Background layer (video / webgl) ----------------------------------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #000 center/cover no-repeat;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1200ms ease-out;
}
.bg-layer.is-ready { opacity: 1; }
.bg-layer video,
.bg-layer canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Vignette ----------------------------------------------------------- */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.55) 85%, rgba(0,0,0,0.85) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.5) 100%);
  opacity: 0;
  transition: opacity 1200ms ease-out 400ms;
}
body.is-loaded .vignette { opacity: 1; }

/* --- Hero headline (sits well below the top nav, top-left) ------------- */
.hero-headline {
  position: absolute;
  top: 220px;          /* well below the top nav, leaves breathing room */
  left: 56px;
  z-index: 28;
  max-width: 480px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 700ms ease-out 1100ms, transform 700ms var(--ease-out-soft) 1100ms;
}
body.is-loaded .hero-headline {
  opacity: 1;
  transform: translateY(0);
}
.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.36em;
  color: rgba(167, 139, 250, 0.85);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.hero-title {
  margin: 0 0 14px;
  /* Battle-ready italic display — dramatic athletic feel */
  font-family: 'Big Shoulders Display', 'Inter', sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(46px, 6vw, 78px);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.6);
}
.hero-sub {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  max-width: 420px;
}


/* --- Boot curtain — covers screen until first paint --------------------- */
.boot-curtain {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  pointer-events: none;
  opacity: 1;
  transition: opacity 600ms ease-out;
}
body.is-loaded .boot-curtain {
  opacity: 0;
  pointer-events: none;
}

/* Tablet and below — covers iPad portrait + landscape (≤1024 px) and
   every phone. The hero is a vertically-centered flex column:
   everything (headline → menu → App Store badge → scroll cue) sits
   in a balanced block in the middle of the viewport, no big empty
   bottom area. align-items: center keeps the content readable-width
   instead of stretching to viewport edges. */
@media (max-width: 1024px) {
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    min-height: 100vh;
    padding: 96px 24px 64px;
  }
  .hero-headline {
    position: static;
    margin: 0 0 28px;
    max-width: 720px;
    width: 100%;
    text-align: left;
  }
  .hero-eyebrow { font-size: 11px; letter-spacing: 0.34em; margin-bottom: 14px; }
  /* Bigger, more dramatic headline — fills the top of the screen.
     Caps at 88 px on the widest tablets, scales down on smaller. */
  .hero-title   { font-size: clamp(48px, 8.5vw, 88px); margin-bottom: 16px; line-height: 0.92; }
  .hero-sub     { font-size: clamp(15px, 1.7vw, 18px); max-width: 520px; }
}

/* Phone — tighter padding, narrower body padding, smaller display type. */
@media (max-width: 540px) {
  .hero { padding: 84px 16px 56px; }
  .hero-headline { margin: 0 0 22px; }
  .hero-eyebrow { font-size: 10px; letter-spacing: 0.30em; margin-bottom: 10px; }
  .hero-title  { font-size: clamp(36px, 11vw, 56px); margin-bottom: 10px; }
  .hero-sub    { font-size: 14px; }
}
