/* ==========================================================
   hero.css — Colony Creative
   Full-viewport hero with wireframe owl background
   ========================================================== */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

/* Full-bleed background image (desktop) */
.hero__bg-image {
  position: absolute;
  inset: 0;
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform, opacity;
}

/* Mobile owl — hidden on desktop */
.hero__mobile-owl {
  display: none;
}

/* Gradient overlay — darken left side for text legibility */
.hero__bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--bg) 0%, rgba(10, 10, 10, 0.6) 50%, transparent 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 30%);
}

/* Container */
.hero__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

/* Text column — left-aligned over the background */
.hero__text-column {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: clamp(7rem, 12vh, 12rem) 0 clamp(2rem, 4vh, 4rem);
  max-width: 850px;
}

/* Headline */
.hero__headline {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0 0 clamp(1.5rem, 3vh, 2.5rem);
}

.hero__headline em {
  font-style: normal;
  font-weight: 700;
}

/* Line clip reveal */
.hero__line-wrap {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
}

.hero__line {
  display: block;
  will-change: transform;
}

/* Subtitle */
.hero__subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.1vw, 1.0625rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0;
  will-change: transform, opacity;
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: clamp(2rem, 4vh, 3rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  z-index: 2;
  will-change: opacity;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent 0%, var(--text-muted) 100%);
  animation: scrollPulse 2.5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  transform-origin: top center;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.5); opacity: 0.25; }
  50% { transform: scaleY(1); opacity: 0.6; }
}

.hero__scroll-text {
  font-family: 'DM Mono', monospace;
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Responsive ── */

@media (max-width: 960px) {
  .hero {
    overflow: hidden;
    /* clip prevents the owl from contributing to document scroll width
       on mobile browsers that ignore overflow:hidden for scroll calculations */
    overflow: clip;
  }

  .hero__container {
    margin-top: -150px;
  }

  .hero__text-column {
    align-items: center;
    text-align: center;
    max-width: 100%;
    padding: clamp(2rem, 5vh, 3.5rem) 0 0;
  }

  .hero__subtitle {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__bg-image {
    display: none;
  }

  .hero__scroll-indicator {
    bottom: clamp(4rem, 8vh, 6rem);
  }

  .hero__scroll-line {
    background: linear-gradient(to bottom, transparent 0%, var(--text-secondary) 100%);
  }

  .hero__scroll-text {
    color: var(--text-secondary);
  }

  .hero__mobile-owl {
    display: block;
    position: absolute;
    bottom: -25%;
    right: -40%;
    width: 280%;
    max-width: none;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
  }
}

@media (max-width: 600px) {
  .hero__headline {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    line-height: 1.05;
  }

  .hero__subtitle {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-line { animation: none; opacity: 0.3; }
  .hero__line { transform: none !important; }
  .hero__bg-image { opacity: 1 !important; transform: none !important; }
}
