/* The film has no background, so it is the stage itself: the machines stand on the headline,
   and the reflections fade out right where the copy begins. */
/* The header stays over the long pinned hero instead of scrolling away with the page. */
.site-header { position: fixed; }
/* Once the hero scrolls, content passes beneath the header, so give it a backing. */
.site-header.is-over-hero {
  background: #080e12e6;
  backdrop-filter: blur(14px);
}
/* Pinned while the process is told step by step; app.mjs sizes it to the exact number of steps. */
.hero-scroll {
  height: 400svh;
  min-height: 2600px;
}
.hero-sticky {
  height: 100svh;
  min-height: 760px;
}
.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  grid-template-areas: 'heading footer';
  align-content: end;
  align-items: end;
  column-gap: clamp(32px, 4vw, 72px);
  height: 100%;
  padding: 132px var(--gutter) 48px;
  opacity: 1;
  transform: none;
}
.hero-heading {
  grid-area: heading;
  position: relative;
  z-index: 2;
  align-self: end;
  min-width: 0;
}
.hero-content .hero-eyebrow {
  margin-bottom: 25px;
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: .065em;
}
.hero-content #hero-title {
  display: block;
  width: 100%;
  max-width: none;
  font-size: clamp(72px, 6.6vw, 112px);
  line-height: .94;
  letter-spacing: -.025em;
}
.hero-content #hero-title > span:first-child {
  display: block;
  white-space: nowrap;
}
.hero-content .word-slot {
  display: block;
  width: 100%;
  height: 1.12em;
  padding-top: 0;
  margin-top: .04em;
  min-width: 0;
  line-height: .94;
}
.hero-content #changing-word {
  line-height: .94;
}
.hero-content .hero-bottom {
  grid-area: footer;
  position: relative;
  z-index: 2;
  min-width: 0;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}
.hero-content .hero-bottom > p {
  max-width: 100%;
  font-size: 12px;
  line-height: 1.9;
}
.hero-content .hero-cta {
  min-width: 0;
  width: 100%;
  max-width: 325px;
  margin-top: 26px;
  gap: 18px;
}
.hero-content .hero-cta .button {
  min-height: 54px;
  padding: 17px 18px 17px 21px;
  font-size: 11px;
}
.hero-content .scroll-cue {
  font-size: 8px;
  line-height: 1.6;
  gap: 12px;
}
/* Sized by height so the scene never pushes the headline off a short screen. */
#hero-scene {
  position: absolute;
  z-index: 0;
  inset: 62px 0 auto;
  min-width: 0;
  width: min(100%, 100svh * 1.5);
  margin-inline: auto;
  overflow: visible;
  background: transparent;
  transform-origin: 50% 0;
}
#hero-scene .hero-video {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  border: 0;
  border-radius: 0;
  background: transparent;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 7%, #000 66%, transparent 84%);
          mask-image: linear-gradient(to bottom, transparent, #000 7%, #000 66%, transparent 84%);
}
/* The live scene sits on top of its poster and fades in once its first frame is drawn. */
#hero-scene {
  display: grid;
}
#hero-scene picture { display: contents; }
#hero-scene .hero-poster,
#hero-scene iframe {
  grid-area: 1 / 1;
  transition: opacity .6s ease;
}
#hero-scene iframe {
  pointer-events: none;
  opacity: 0;
}
#hero-scene.is-live iframe { opacity: 1; }
#hero-scene.is-live .hero-poster { opacity: 0; }
/* Last step: the scene steps back and points the visitor to the next section. */
.hero-outro {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(40px, 9svh, 96px);
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
}
.hero-outro:not([inert]) { pointer-events: auto; }
.hero-outro-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 4.4vw, 72px);
  line-height: .96;
  letter-spacing: -.025em;
  color: white;
}
.hero-outro-title span { color: var(--blue-light); }
.hero-outro-next {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  font-size: 12px;
  letter-spacing: .02em;
  color: #c4cfd8;
  border-bottom: 1px solid #ffffff30;
}
.hero-outro-next .scroll-arrow { animation: outro-nudge 1.8s ease-in-out infinite; }
@keyframes outro-nudge {
  50% { transform: translateY(4px); }
}
@media (hover: hover) and (pointer: fine) {
  .hero-outro-next:hover { color: white; border-color: #ffffff80; }
}
/* Below the desktop stage the hero can be taller than the screen: it scrolls until its bottom
   is in view, then pins (offset set from JS) while the steps play. */
@media (max-width: 1100px) {
  .hero-scroll {
    height: auto;
    min-height: 0;
  }
  .hero-sticky {
    top: var(--hero-pin, 0px);
    height: auto;
    min-height: 0;
  }
}
/* Short laptops keep the overlaid stage, scaled down so the copy stays above the fold. */
@media (min-width: 1101px) and (max-height: 760px) {
  .hero-sticky {
    top: var(--hero-pin, 0px);
    height: 100svh;
    min-height: 600px;
  }
  #hero-scene { width: min(100%, max(100svh, 600px) * 1.4); }
}
@media (max-width: 1100px) {
  .hero-content {
    height: auto;
    min-height: 100svh;
    grid-template-columns: minmax(0, 1fr);
    /* The outer tracks centre the stack on tall screens and collapse when it overflows. */
    grid-template-rows: 1fr auto auto auto 1fr;
    grid-template-areas: '.' 'heading' 'media' 'footer' '.';
    align-content: stretch;
    gap: 0;
    padding: 132px var(--gutter) 48px;
  }
  /* Full bleed; the empty sky slides under the headline, the faded floor under the copy. */
  #hero-scene {
    grid-area: media;
    position: relative;
    inset: auto;
    width: auto;
    margin: -5vw calc(var(--gutter) * -1) -11vw;
  }
  .hero-content #hero-title {
    display: flex;
    align-items: flex-start;
    gap: .15em;
    font-size: clamp(68px, 8.5vw, 110px);
  }
  .hero-content #hero-title > span:first-child { flex: 0 0 auto; }
  .hero-content .word-slot {
    flex: 1 1 0;
    margin-top: 0;
  }
  .hero-content .hero-eyebrow { margin-bottom: 20px; }
  .hero-content .hero-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 36px;
  }
  .hero-content .hero-cta { min-width: 285px; margin-top: 0; }
}
@media (max-width: 767px) {
  .hero-content {
    gap: 27px;
    padding: 118px var(--gutter) 32px;
  }
  .hero-content .hero-eyebrow {
    margin-bottom: 20px;
    font-size: 8px;
  }
  .hero-content #hero-title {
    display: block;
    font-size: clamp(64px, 18vw, 112px);
  }
  .hero-content .word-slot { margin-top: .05em; }
  .hero-content .hero-bottom {
    display: block;
  }
  .hero-content .hero-bottom > p {
    font-size: 12px;
    line-height: 1.8;
  }
  .hero-content .hero-cta {
    min-width: 0;
    max-width: none;
    margin-top: 22px;
    gap: 15px;
  }
  .hero-content .hero-cta .button { font-size: 12px; }
  .hero-content .scroll-cue { font-size: 9px; }
}
@media (max-width: 767px) and (orientation: portrait) {
  #hero-scene { margin: -6vw calc(var(--gutter) * -1) -20vw; }
  #hero-scene .hero-video { aspect-ratio: 4 / 5; }
}
@media (max-width: 370px) {
  .hero-content { padding-top: 112px; }
  .hero-content .hero-eyebrow { font-size: 7px; }
  .hero-content .hero-bottom > p { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll { height: auto; min-height: 0; }
  .hero-outro { display: none; }
  .hero-sticky { position: relative; height: auto; min-height: 0; }
  .hero-content { min-height: 100svh; }
  .hero-heading, .hero-bottom { opacity: 1 !important; }
  #hero-scene { transform: none !important; }
}
