/* ============================================================
   Priventry — hero: black, spline-style 3D cards
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  background: var(--dark);
  color: #f5f4ef;
  display: grid; place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas-wrap { position: absolute; inset: 0; z-index: -1; }
#heroCanvas { width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
#heroCanvas:active { cursor: grabbing; }

.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 10%, transparent 40%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 22%, transparent 70%, rgba(6, 6, 7, 0.9));
}

/* CSS fallback if WebGL is unavailable */
.hero-fallback { display: none; position: absolute; inset: 0; perspective: 1000px; }
.no-webgl .hero-fallback { display: block; }
.hf-card {
  position: absolute; width: 200px; height: 280px; border-radius: 14px;
  background: linear-gradient(160deg, rgba(30, 32, 46, 0.7), rgba(10, 10, 14, 0.9));
  border: 1px solid rgba(120, 140, 255, 0.5);
  box-shadow: 0 0 40px rgba(100, 110, 255, 0.25), inset 0 0 30px rgba(90, 100, 200, 0.12);
  animation: hfFloat 9s ease-in-out infinite;
}
.hf-c1 { top: 16%; left: 12%; transform: rotateY(-18deg) rotateZ(-8deg); border-color: rgba(91, 140, 255, 0.6); }
.hf-c2 { top: 48%; right: 10%; transform: rotateY(16deg) rotateZ(7deg); border-color: rgba(255, 95, 109, 0.55); animation-delay: -3s; }
.hf-c3 { bottom: 8%; left: 30%; transform: rotateY(10deg) rotateZ(-5deg); border-color: rgba(60, 190, 190, 0.55); animation-delay: -6s; }
@keyframes hfFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -26px; } }

.hero-content { position: relative; text-align: center; padding: 140px 24px 120px; max-width: 900px; pointer-events: none; }
.hero-content .btn, .hero-content a { pointer-events: auto; }

.hero-eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(245, 244, 239, 0.6);
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px;
}
.hero-eyebrow .tick { background: linear-gradient(135deg, #5b8cff, #ff5f6d); }

.hero-title {
  font-family: var(--font-serif);
  font-weight: 340;
  font-size: clamp(3rem, 8.4vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: #f7f5f0;
  text-wrap: balance;
}
.hero-title .line { display: block; }
.hero-title em { font-style: italic; color: transparent; background: linear-gradient(100deg, #9db4ff, #8fe0d4 55%, #ff9d9d); -webkit-background-clip: text; background-clip: text; }

.hero-sub {
  margin: 28px auto 0; max-width: 560px;
  color: rgba(245, 244, 239, 0.66);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem); font-weight: 300;
}
.hero-ctas { margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(245, 244, 239, 0.4);
}
.hero-hint-sep { width: 40px; height: 1px; background: rgba(245, 244, 239, 0.25); }
.hero-hint-scroll::after { content: " ↓"; }

/* hero entrance */
.reveal-hero { opacity: 0; transform: translateY(26px); animation: heroIn 1s var(--ease) forwards; }
.hero-title .reveal-hero:nth-child(1) { animation-delay: 0.1s; }
.hero-title .reveal-hero:nth-child(2) { animation-delay: 0.2s; }
.hero-title .reveal-hero:nth-child(3) { animation-delay: 0.3s; }
.hero-sub.reveal-hero { animation-delay: 0.45s; }
.hero-ctas.reveal-hero { animation-delay: 0.6s; }
.hero-eyebrow.reveal-hero { animation-delay: 0s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
