/* ============================================================
   LOLA — HERO (framed editorial hero, GSAP + Lenis driven)
   Loaded after style.css. Enhances the existing hero markup
   without changing the class hooks the rest of the site uses.
   ============================================================ */

.hero {
  --hero-top: 92px;    /* clears the fixed header */
  --hero-x: 22px;
  --hero-bottom: 22px;
}

/* Media sits inside the frame instead of bleeding to the edges */
.hero-media { inset: var(--hero-top) var(--hero-x) var(--hero-bottom) !important; }

/* Thin inset frame drawn over the media */
.hero-frame {
  position: absolute;
  top: var(--hero-top);
  left: var(--hero-x);
  right: var(--hero-x);
  bottom: var(--hero-bottom);
  border: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 2;
  pointer-events: none;
}

/* Vertical side label */
.hero-side {
  position: absolute;
  left: calc(var(--hero-x) + 16px);
  top: 50%;
  z-index: 3;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  pointer-events: none;
}
.hero-side__text {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

/* Content clears the frame */
.hero-content { padding-left: clamp(44px, 7vw, 104px); }

/* When GSAP owns the hero, kill the CSS transitions so they
   don't fight the timeline's per-frame inline styles. */
.has-gsap .hero-reveal { transition: none !important; }

/* SplitText lines (when the plugin is available) */
.hero-heading .hero-line,
.hero-heading-italic .hero-line { will-change: transform, opacity; }

/* Softer, more even scrim over the inset media */
.hero-overlay {
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.38) 52%, rgba(0, 0, 0, 0.10) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, transparent 48%) !important;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .hero { --hero-top: 84px; --hero-x: 16px; --hero-bottom: 16px; }
  .hero-side { display: none; }
  .hero-content { padding-left: clamp(24px, 6vw, 60px); }
}

@media (max-width: 820px) {
  .hero { --hero-top: 76px; --hero-x: 12px; --hero-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media { clip-path: none !important; transform: none !important; }
}
