/* Cinematic Scroll-Driven Hero Section */
.nior-hero-track {
  position: relative;
  height: 380vh;
  background-color: var(--nior-obsidian);
  color: var(--nior-white);
}

.nior-hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background Media Stack */
.nior-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background-color: var(--nior-obsidian);

  canvas.nior-hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    will-change: transform, opacity;
    transform: translateZ(0);
    transition: opacity 0.6s ease;
    opacity: 1;
  }

  video.nior-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform, opacity;
    transform: translateZ(0);
    transition: opacity 0.6s ease;
    opacity: 0;
  }

  /* Scrim Overlays — Completely Removed for 100% Full Brightness & Clarity */
  .nior-hero-scrim-dark,
  .nior-hero-scrim-radial,
  .nior-hero-scrim-vignette {
    display: none;
  }
}

/* Hero Content Overlay Layer */
.nior-hero-track {
  .nior-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    pointer-events: auto;
    padding-top: clamp(40px, 8vh, 80px);

    .nior-hero-ui-container {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      max-width: 960px;
      will-change: transform, opacity;
    }

    /* Staged Ingress Elements */
    .nior-hero-badge {
      opacity: 0;
      transform: translateY(30px);
      will-change: transform, opacity;
    }

    .nior-hero-headline {
      font-family: var(--font-serif);
      font-size: clamp(2.8rem, 6.2vw, 5.8rem);
      font-weight: 500;
      line-height: 1.05;
      letter-spacing: -0.02em;
      color: var(--nior-white);
      margin-top: 16px;
      margin-bottom: 24px;
      opacity: 0;
      transform: translateY(50px) scale(0.96);
      will-change: transform, opacity;

      span.nior-text-gold {
        color: var(--nior-gold);
        font-style: italic;
      }
    }

    .nior-hero-sub {
      font-family: var(--font-sans);
      font-size: clamp(1rem, 1.4vw, 1.25rem);
      line-height: 1.7;
      color: var(--nior-muted);
      max-width: 640px;
      margin-bottom: 36px;
      opacity: 0;
      transform: translateY(35px);
      will-change: transform, opacity;
    }

    .nior-hero-actions {
      display: flex;
      align-items: center;
      gap: 20px;
      opacity: 0;
      transform: translateY(30px);
      will-change: transform, opacity;

      @media (max-width: 576px) {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;

        .nior-btn {
          width: 100%;
        }
      }
    }
  }
}

/* Floating Metrics Badge */
.nior-hero-floating-card {
  position: absolute;
  bottom: clamp(30px, 5vh, 60px);
  right: clamp(20px, 4vw, 48px);
  background: rgba(20, 22, 24, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--nior-border);
  border-radius: 4px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 3;
  opacity: 0;
  transform: translateY(40px) scale(0.92);
  will-change: transform, opacity;

  @media (max-width: 900px) {
    display: none;
  }

  .nior-hero-floating-card__stat {
    display: flex;
    flex-direction: column;

    .nior-stat-num {
      font-family: var(--font-serif);
      font-size: 26px;
      font-weight: 600;
      color: var(--nior-gold);
      line-height: 1;
    }

    .nior-stat-label {
      font-family: var(--font-sans);
      font-size: 9px;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--nior-subtle);
      margin-top: 6px;
    }
  }

  .nior-hero-floating-card__divider {
    width: 1px;
    height: 36px;
    background: var(--nior-border);
  }
}

/* Scroll Prompt Indicator */
.nior-hero-scroll-prompt {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease;

  span {
    font-size: 9px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--nior-subtle);
  }

  .nior-scroll-line {
    width: 1px;
    height: 32px;
    background: rgba(201, 162, 94, 0.2);
    position: relative;
    overflow: hidden;

    &::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 50%;
      background: var(--nior-gold);
      animation: niorScrollPulse 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
    }
  }
}

@keyframes niorScrollPulse {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(200%);
  }
}
