/* Hub hero cinematic zoom — edit css/components/hero-cinematic.css */
/* ——— Component: hub hero cinematic zoom ——— */

/*
 * Hub heroes sit below the sticky header. Height = viewport minus header stack
 * so header + hero fill one screen on first load.
 */
@media (min-width: 721px) {
  .page-shell .hero.hero--immersive {
    --hero-fill-height: calc(100svh - var(--csth-header-height, 7.5rem));
    min-height: var(--hero-fill-height);
    height: auto;
    max-height: none;
    overflow: visible;
    box-sizing: border-box;
  }

  .page-shell .hero.hero--immersive .hero-immersive-inner {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(calc(100% - 2.5rem), var(--max, 1320px));
    padding-top: clamp(2rem, 3.5vh, 2.75rem);
    padding-bottom: clamp(1.75rem, 3vh, 2.5rem);
    box-sizing: border-box;
  }

  /* Widen copy column; stop narrow ch limits that stack text too tall */
  .page-shell .hero.hero--immersive .hero-copy {
    max-width: none;
    width: 100%;
    height: auto;
    justify-content: flex-start;
    gap: clamp(0.55rem, 1.2vh, 0.85rem);
  }

  .page-shell .hero.hero--immersive .hero-copy-lead {
    gap: 0.55rem;
  }

  .page-shell .hero.hero--immersive .hero-copy h1 {
    max-width: none;
    font-size: clamp(1.85rem, 2.6vw, 2.85rem);
    line-height: 1.06;
  }

  .page-shell .hero.hero--immersive .hero-copy-body {
    gap: clamp(0.4rem, 0.85vh, 0.6rem);
  }

  .page-shell .hero.hero--immersive .hero-copy-body p {
    max-width: none;
    font-size: clamp(0.9rem, 1.05vw, 1rem);
    line-height: 1.5;
  }

  .page-shell .hero.hero--immersive .hero-copy .hero-actions {
    flex-shrink: 0;
    margin-top: clamp(0.35rem, 0.8vh, 0.65rem);
  }
}

/* Wide desktop (two-column hero): one screen, content fitted via wider grid */
@media (min-width: 1081px) {
  .page-shell .hero.hero--immersive {
    display: flex;
    flex-direction: column;
    height: var(--hero-fill-height);
    min-height: var(--hero-fill-height);
    max-height: var(--hero-fill-height);
    overflow: hidden;
  }

  .page-shell .hero.hero--immersive .hero-immersive-inner {
    flex: 1 1 auto;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    padding-top: clamp(1.5rem, 2.25vh, 2rem);
    padding-bottom: clamp(1.25rem, 2vh, 1.75rem);
  }

  .page-shell .hero.hero--immersive .hero-immersive-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: clamp(1.15rem, 2.8vw, 2rem);
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    align-items: center;
    align-content: center;
    width: 100%;
  }

  .page-shell .hero.hero--immersive .hero-copy {
    max-height: 100%;
    min-height: 0;
    overflow: visible;
  }

  .page-shell .hero.hero--immersive .hero-copy-body {
    flex: 0 1 auto;
    min-height: 0;
  }

  .page-shell .hero.hero--immersive .hero-panel {
    align-self: center;
    max-height: 100%;
    overflow: visible;
  }
}

.hero.hero--immersive .hero-media img {
  transition: transform 9s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

.hero.hero--immersive:hover .hero-media img {
  transform: scale(1.12);
}

@media (prefers-reduced-motion: reduce) {
  .hero.hero--immersive .hero-media img {
    transition: none;
    will-change: auto;
  }

  .hero.hero--immersive:hover .hero-media img {
    transform: scale(1.04);
  }
}
