/**
 * styles/hero.css
 * Northshore Gen LLC — Hero Section, 3D Perspective, Ambient Canvas & Typography
 * Independent Technology Research & Design Studio
 */

/* ==========================================================================
   1. Hero Section Layout & 3D Perspective Container
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 2.5rem) var(--header-pad-x) var(--section-pad-y);
  overflow: hidden;
  background-color: var(--bg-primary);
  perspective: 1000px;
  transform-style: preserve-3d;
}

/* ==========================================================================
   2. Ambient 2D Canvas Particle Layer
   ========================================================================== */
.hero-particles-canvas,
.hero-particles {
  position: absolute;
  inset: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-canvas, 1);
  display: block;
  will-change: opacity;
}

/* ==========================================================================
   3. Hero Content Landmark & Structural Layering
   ========================================================================== */
.hero-container,
.hero-content {
  position: relative;
  z-index: var(--z-content, 10);
  max-width: var(--container-max-width);
  width: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-style: preserve-3d;
}

/* Hero Eyebrow & Studio Dossier Badge */
.hero-eyebrow {
  margin-bottom: 1.75rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.25rem;
  background: var(--glass-bg-medium);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border-glow);
  border-radius: 9999px;
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 0 20px var(--color-accent-glow);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-badge:hover {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 28px var(--color-accent-glow);
}

/* ==========================================================================
   4. 3D Char-Split Typography & Stagger Layout
   ========================================================================== */
.hero-title,
.hero-title.char-split {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  perspective: 1000px;
  transform-style: preserve-3d;
  display: inline-block;
  will-change: transform, opacity, filter;
}

.hero-title .word {
  display: inline-block;
  white-space: nowrap;
}

.hero-title .char {
  display: inline-block;
  transform-origin: 50% 100% -50px;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.hero-title .char--space {
  display: inline-block;
  width: 0.3em;
}

/* Hero Subtitle Statement */
.hero-subtitle {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text-secondary);
  max-width: 720px;
  margin: 0 auto 2.75rem;
  line-height: 1.65;
  letter-spacing: -0.01em;
  will-change: transform, opacity, filter;
}

/* Hero CTA Action Group */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  will-change: transform, opacity;
}

/* ==========================================================================
   5. Seam Handoff Bottom Gradient Transition
   ========================================================================== */
.hero-seam-bottom,
.seam-handoff-overlay,
.seam-overlay,
.hero-fade {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 160px;
  pointer-events: none;
  z-index: var(--z-seam-backdrop, 2);
  background: linear-gradient(
    180deg,
    rgba(10, 11, 14, 0) 0%,
    rgba(10, 11, 14, 0.45) 40%,
    rgba(10, 11, 14, 0.85) 75%,
    var(--bg-primary) 100%
  );
}

/* ==========================================================================
   6. Responsive & Accessibility Adaptations
   ========================================================================== */
@media (max-width: 768px) {
  .hero-section {
    padding: calc(var(--header-height) + 1.5rem) var(--header-pad-x) 4rem;
    min-height: 90vh;
  }

  .hero-subtitle {
    font-size: var(--text-base);
    margin-bottom: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-seam-bottom {
    height: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title,
  .hero-title .char,
  .hero-subtitle,
  .hero-actions {
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    transition: none !important;
  }

  .hero-particles-canvas,
  .hero-particles {
    display: none !important;
  }
}
