/* Edge-to-edge reference sequence; only the video frames create movement. */
.hero-scene {
  height: 280vh; height: 280svh;
  min-height: 0;
  --headline-opacity: 0;
  --headline-y: 60px;
  --hint-opacity: 1;
  --wash-opacity: 0;
}
.hero-pin {
  height: calc(100vh - var(--header)); height: calc(100svh - var(--header));
  min-height: 0;
  position: sticky;
  top: var(--header);
  overflow: hidden;
}
.hero-media { inset: 0; transform: none; will-change: auto; }
.hero-media canvas, .hero-media .hero-still {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: 50% 80%;
  transform: none;
}
.hero-content { padding: 0; }
.hero-copy-reference {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: var(--headline-opacity);
  transform: translate3d(0, var(--headline-y), 0);
  will-change: opacity, transform;
}
.hero-copy-reference h1 {
  max-width: 1100px;
  font-size: clamp(52px, 7.2vw, 104px);
  line-height: 1.04;
  letter-spacing: -.065em;
}
.hero-copy-reference > p {
  margin-top: 26px;
  font-size: clamp(17px, 1.55vw, 22px);
  font-weight: 500;
  color: #3b3c43;
}
.hero-wash {
  opacity: var(--wash-opacity);
  background: radial-gradient(ellipse at center, #f5f5f7f5 0%, #f5f5f7d9 27%, #f5f5f700 72%);
}
.hero-scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  color: #fff;
  text-shadow: 0 1px 12px #000b;
  font-size: 14px;
  letter-spacing: .025em;
  text-align: center;
  opacity: var(--hint-opacity);
  pointer-events: none;
}
.hero-scroll-cue span {
  display: block;
  width: 34px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--violet), var(--blue));
}
.sequence-progress { display: none; }
.services.section { padding-block-start: clamp(40px, 5vw, 72px); }

@media (max-width: 760px) {
  .hero-scene { height: 240vh; height: 240svh; min-height: 0; }
  .hero-media canvas, .hero-media .hero-still { object-position: 30% 50%; }
  .hero-copy-reference h1 { font-size: clamp(42px, 10.4vw, 68px); }
  .hero-copy-reference > p { max-width: 320px; font-size: 17px; margin-top: 22px; }
  .hero-scroll-cue { bottom: 34px; }
}
@media (max-height: 540px) and (prefers-reduced-motion: no-preference) {
  .hero-scene { height: 280vh; height: 280svh; min-height: 0; }
  .hero-media canvas, .hero-media .hero-still { object-position: 30% 100%; }
  .hero-copy-reference h1 { font-size: clamp(32px, 5vw, 54px); }
  .hero-copy-reference > p { margin-top: 14px; font-size: 16px; }
  .hero-scroll-cue { bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-enabled) .hero-scene { height: auto; min-height: 0; }
  html:not(.motion-enabled) .hero-pin { position: relative; min-height: 620px; }
  html:not(.motion-enabled) .hero-copy-reference { opacity: 1 !important; transform: none !important; }
  html:not(.motion-enabled) .hero-wash { opacity: .92 !important; }
  html:not(.motion-enabled) .hero-scroll-cue { display: none; }
}
