/* ==========================================================================
   Hero — editorial, cinematic, left-weighted (Lumóra-inspired composition)
   - Content column ~42%, generous negative space on the right for photography
   - One subtle left→transparent gradient (no panels, no glass)
   - Crossfade only, no zoom
   ========================================================================== */

.ap-hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

/* ---- Layer 1: slideshow ------------------------------------------------ */
.ap-hero__stage { position: absolute; inset: 0; z-index: -2; }
.ap-hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1400ms ease-in-out;   /* crossfade only — no transform */
  will-change: opacity;
}
.ap-hero__slide.is-active { opacity: 1; }

/* ONE subtle cinematic gradient: dark far-left, fading to clear by ~72% */
.ap-hero__gradient {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(101deg,
      rgba(13,27,23,0.80) 0%,
      rgba(13,27,23,0.52) 26%,
      rgba(13,27,23,0.22) 50%,
      rgba(13,27,23,0.04) 68%,
      rgba(13,27,23,0) 80%);
}

/* ---- Layer 2: content column ------------------------------------------ */
.ap-hero__inner { position: relative; width: 100%; }
.ap-hero__content {
  max-width: 760px;
  width: 54%;
  min-width: min(100%, 520px);
  padding-block: 8.5rem 9rem;   /* clears fixed header, sits with breathing room */
}

.ap-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--ap-font-body);
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ap-sage);
  margin: 0 0 2rem;
}
.ap-hero__eyebrow::before {
  content: ""; width: 32px; height: 1.5px; background: currentColor; opacity: 0.7;
}

.ap-hero .ap-hero__title {
  color: #fff;
  font-family: var(--ap-font-head);
  font-weight: 700;
  font-size: clamp(2.9rem, 1.9rem + 4.4vw, 5.25rem);   /* 46 → 84px */
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin: 0 0 2rem;
  text-shadow: 0 2px 40px rgba(10,22,18,0.3);
}
.ap-hero__title span { display: block; }
@media (min-width: 821px) { .ap-hero__title span { white-space: nowrap; } }

.ap-hero__text {
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.65;
  color: rgba(255,255,255,0.92);
  max-width: 600px;
  margin: 0 0 3rem;   /* generous space before buttons */
}

.ap-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---- Signature: slide index (01 — 04) with progress ticks -------------- */
.ap-hero__index {
  position: absolute; z-index: 1;
  left: max(var(--ap-gutter), calc((100% - var(--ap-container)) / 2 + var(--ap-gutter)));
  bottom: 2.5rem;
  display: flex; align-items: center; gap: 1.25rem;
}
.ap-hero__index-num {
  font-family: var(--ap-font-head); font-weight: 600;
  font-size: 0.9rem; letter-spacing: 0.08em; color: rgba(255,255,255,0.9);
}
.ap-hero__index-num i { font-style: normal; opacity: 0.5; margin: 0 0.15rem; }
.ap-hero__ticks { display: flex; align-items: center; gap: 0.5rem; }
.ap-hero__tick {
  width: 28px; height: 2px; padding: 0; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.35); border-radius: 2px;
  transition: background var(--ap-dur) var(--ap-ease), width var(--ap-dur) var(--ap-ease);
}
.ap-hero__tick.is-active { background: #fff; width: 44px; }

/* ---- Mobile: independent composition ---------------------------------- */
@media (max-width: 820px) {
  .ap-hero { min-height: 94vh; align-items: flex-end; }
  .ap-hero__gradient {
    background: linear-gradient(0deg, rgba(12,25,21,0.9) 4%, rgba(12,25,21,0.5) 38%, rgba(12,25,21,0.2) 70%);
  }
  .ap-hero__content { width: 100%; max-width: 100%; min-width: 0; padding-block: 6rem 6.5rem; }
  .ap-hero__eyebrow { margin-bottom: 1.1rem; }
  .ap-hero__title { margin-bottom: 1.25rem; }
  .ap-hero__text { margin-bottom: 2rem; font-size: 1.1rem; }
  .ap-hero__actions { flex-direction: column; align-items: stretch; }
  .ap-hero__actions .ap-btn { width: 100%; }
  .ap-hero__index { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ap-hero__slide { transition: opacity 300ms linear; }
}
