.hero-scroll-enabled { height: 360svh; }
.hero-scroll-enabled .hero {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 0;
  max-height: none;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 400ms cubic-bezier(.22, 1, .36, 1);
}
.hero-video.is-ready { opacity: 1; }
.hero.hero .hero-copy {
  left: 50%;
  top: 50%;
  bottom: auto;
  width: calc(100% - 40px);
  max-width: 1100px;
  transform: translate(-50%, -50%);
  text-align: center;
}
html[lang] .hero.hero h1 {
  max-width: none;
  font-size: clamp(1.65rem, 4.6vw, 4.5rem);
  line-height: 1.25;
}
.hero-line {
  display: block;
  white-space: nowrap;
  opacity: var(--line-reveal, 1);
  transform: translateY(calc((1 - var(--line-reveal, 1)) * 22px));
}
.hero.hero .hero-copy > p:last-child { margin: 22px auto 0; }
.hero-subtitle { white-space: normal; }
.hero.hero .hero-copy > p.hero-subtitle {
  font-family: "Allura", cursive;
  font-size: clamp(2.5rem, 5.2vw, 5.4rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: .01em;
  max-width: none;
  white-space: nowrap;
}
@media (max-width: 640px) {
  html[lang] .hero.hero h1 { font-size: clamp(1.05rem, 5.4vw, 2.1rem); }
  .hero.hero .hero-copy > p:last-child { font-size: .9rem; }
  .hero.hero .hero-copy > p.hero-subtitle { font-size: clamp(1.7rem, 8.8vw, 3.2rem); }
}
.hero-wash {
  background: linear-gradient(90deg, #04182bc9, #04182b55 58%, #04182b20),
    linear-gradient(180deg, #04182b65, transparent 30%, #04182b45);
}
@media (max-width: 640px) {
  .hero .scroll-cue { left: auto; right: 20px; gap: 8px; font-size: .65rem; }
  .hero .scroll-cue span:first-child { width: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-enabled { height: auto; }
  .hero-scroll-enabled .hero { position: relative; }
  .hero-video { display: none; }
  .hero-line { opacity: 1; transform: none; }
}

/* The location opens at the center, then settles above the revealed heading. */
.hero.hero .hero-copy > .hero-location { min-height:1.55em; margin:0 0 14px; font-size:.72rem; }
.hero-scroll-enabled .hero-location > span { position:absolute; left:50%; top:50%; display:block; width:max-content; max-width:100%; font-size:clamp(1.5rem,5.6vw,4.5rem); line-height:1.2; letter-spacing:.15em; white-space:nowrap; transform:translate(-50%,-50%); transform-origin:50% 50%; }
.hero-sequence:not(.hero-scroll-enabled) .hero-location > span { position:static; font-size:inherit; transform:none!important; }
@media(prefers-reduced-motion:reduce){.hero-scroll-enabled .hero-location > span{position:static;font-size:inherit;transform:none!important;}}
