/* ========================================================================
   v4 hero — split layout: content left, image right.
   Loaded after styles-v2.css, styles-v2-sections.css, styles-v3-extra.css.
   ======================================================================== */

.hero {
  overflow: hidden;
}

.hero::after {
  bottom: 0;
}

/* ── Reveal hardening (v4 only) ────────────────────────────────────────
   The shared reveal system fades content in by toggling a `.in` class that
   transitions opacity 0 → 1. During the initial React/Babel boot that
   transition can stall, leaving above-the-fold content (the hero) stuck
   invisible. Make reveal content visible by default so nothing can get
   trapped hidden; the entrance runs as a self-completing CSS animation
   for elements as they're marked `in`. */
.reveal { opacity: 1; transform: none; transition: none; }

@media (prefers-reduced-motion: no-preference) {
  .reveal.in { animation: v4Reveal 0.6s var(--ease) both; }
}

@keyframes v4Reveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Top row: headline left, image right */
.hero-top {
  display: flex;
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
  margin-bottom: clamp(32px, 4vw, 52px);
}

/* Left: eyebrow + title + subtitle */
.hero-headline {
  flex: 1 1 0;
  min-width: 0;
}

.hero-headline .hero-title {
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  text-wrap: balance;
}

/* Right: image column */
.hero-img-col {
  flex: 0 0 clamp(300px, 42vw, 540px);
  display: flex;
  align-items: center;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 8px 40px rgba(0, 0, 0, 0.32),
    0 24px 64px rgba(0, 0, 0, 0.24);
  object-fit: cover;
}

/* Stack vertically on narrow viewports */
@media (max-width: 900px) {
  .hero-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
  }

  .hero-img-col {
    width: 100%;
    flex: none;
  }
}
