/* ==========================================================================
   HERO — full-screen 3D stage with HUD scan-frame signature element
   ========================================================================== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse 90% 60% at 50% 0%, #12151a 0%, var(--bg-0) 62%);
}

.hero-canvas-wrap {
  position: absolute; inset: 0; z-index: 1;
}
#hero-canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.hero-fallback-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5;
}
.hero-fallback-img.hidden { display: none; }

.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 40%, transparent 85%);
}

.hero-content {
  position: relative; z-index: 3; width: 100%;
  pointer-events: none;
}
.hero-content .container { pointer-events: none; }
.hero-content a, .hero-content .btn { pointer-events: auto; }

.hero-eyebrow-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 26px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8.4vw, 7.4rem);
  line-height: 0.96;
  letter-spacing: -0.015em;
  max-width: 15ch;
}
.hero-title .line { overflow: hidden; display: block; }
.hero-title .line span { display: inline-block; will-change: transform; }
.hero-title .accent { color: transparent; -webkit-text-stroke: 1.5px var(--gold); }

.hero-sub {
  margin-top: 28px;
  max-width: 40ch;
}

.hero-cta-row {
  display: flex; align-items: center; gap: 22px; margin-top: 46px; flex-wrap: wrap;
}

.hero-scroll-cue {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-2);
}
.hero-scroll-cue .stick {
  width: 1px; height: 44px; background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollcue 2.2s ease-in-out infinite;
}
@keyframes scrollcue { 0% { transform: scaleY(0.3); opacity: 0.3; transform-origin: top; } 50% { transform: scaleY(1); opacity: 1; transform-origin: top; } 100% { transform: scaleY(0.3); opacity: 0.3; transform-origin: bottom; } }

/* ---- HUD scan-frame: signature element ---- */
.hud-frame { position: absolute; inset: clamp(14px, 4vw, 46px); z-index: 3; pointer-events: none; }
.hud-corner {
  position: absolute; width: 30px; height: 30px;
  border-color: rgba(201,161,90,0.55);
  border-style: solid; border-width: 0;
}
.hud-corner.tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hud-corner.tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hud-corner.bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hud-corner.br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

.hud-readout {
  position: absolute; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  color: var(--text-2); white-space: nowrap;
}
.hud-readout.top-right { top: 0; right: 40px; text-align: right; }
.hud-readout.bottom-left { bottom: 0; left: 40px; }
.hud-readout .val { color: var(--gold); }

.hero-hint {
  position: absolute; bottom: 40px; right: clamp(20px, 5vw, 64px); z-index: 3;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--text-2);
  display: flex; align-items: center; gap: 8px;
}

@media (max-width: 900px) {
  .hero-cta-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-hint { display: none; }
  .hud-readout.top-right { display: none; }
}
