/* The opening film's hairline unfolds into one continuous glass surface. */
#hero-transport { border-top-color: transparent; }
#hero-transport .hero-scrub {
  position: relative;
  isolation: isolate;
  flex: 1;
  min-width: 0;
  height: 32px;
}
.hero-scrub::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -71px -18px -10px;
  border: 1px solid #ffffff36;
  border-top-color: #ffffff80;
  border-bottom-color: #ffffff66;
  border-radius: 32px;
  background: transparent;
  box-shadow: inset 0 1px 2px #ffffff85, inset 0 -2px 3px #ffffff38, inset 1px 0 2px #ffffff1a, 0 4px 16px #00000014;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  opacity: 0;
  transform: translateY(-6px) scaleY(.08);
  transform-origin: 50% calc(100% - 26px);
  transition: transform .55s cubic-bezier(.18,.8,.22,1), opacity .3s ease;
  pointer-events: none;
}
/* The live-video lens has zero alpha through its center. */
.hero-glass-lens {
  position: absolute;
  z-index: -1;
  top: -71px;
  left: -18px;
  width: calc(100% + 36px);
  height: 113px;
  border-radius: 32px;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scaleY(.08);
  transform-origin: 50% calc(100% - 26px);
  transition: transform .55s cubic-bezier(.18,.8,.22,1), opacity .3s ease;
}
#hero-timeline {
  position: absolute;
  left: 0;
  top: 5px;
  z-index: 3;
  width: 100%;
  min-width: 0;
}
#hero-timeline:focus-visible { outline: 1px solid #ffffffa6; outline-offset: 5px; }
.hero-chapter-ticks { z-index: 2; position: absolute; inset: 0; pointer-events: none; }
.hero-chapter-ticks i {
  position: absolute;
  top: 12px;
  left: var(--chapter-start);
  width: 1px;
  height: 8px;
  background: #ffffff91;
  transition: height .4s, top .4s, background .3s;
}
.hero-chapters {
  z-index: 2;
  position: absolute;
  inset: auto 0 25px;
  height: 63px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .45s cubic-bezier(.18,.8,.22,1);
}
#hero-transport .hero-chapter {
  position: absolute;
  left: var(--chapter-start);
  width: var(--chapter-width);
  top: 0;
  height: 63px;
  padding: 7px 10px 7px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  white-space: normal;
  text-transform: none;
  font-family: var(--sans);
  letter-spacing: 0;
  color: #fff;
  opacity: .88;
  text-shadow: 0 1px 3px #000b, 0 3px 14px #0008;
  transition: opacity .2s, transform .3s;
}
.hero-chapter-label { font-size: clamp(11px, 1vw, 15px); line-height: 1.3; font-weight: 500; }
.hero-chapter time { font-family: var(--mono); font-size: 10px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
#hero-transport .hero-chapter:is(:hover, :focus-visible, [aria-current="true"]) { opacity: 1; }
#hero-transport .hero-chapter:hover { transform: translateY(-2px); }
#hero-transport .hero-chapter:focus-visible { outline: 1px solid #ffffffa6; outline-offset: 3px; border-radius: 3px; }
.hero-scrub:not(.is-dismissed):is(:hover, :focus-within, .is-open)::before,
.hero-scrub:not(.is-dismissed):is(:hover, :focus-within, .is-open) .hero-glass-lens { opacity: 1; transform: translateY(0) scaleY(1); }
.hero-scrub:not(.is-dismissed):is(:hover, :focus-within, .is-open)::before { pointer-events: auto; }
.hero-scrub:not(.is-dismissed):is(:hover, :focus-within, .is-open) .hero-chapters { opacity: 1; transform: translateY(0); pointer-events: auto; transition-delay: .07s; }
.hero-scrub:not(.is-dismissed):is(:hover, :focus-within, .is-open) .hero-chapter-ticks i { top: 9px; height: 14px; background: #ffffffd9; }
#hero-chapters-toggle { display: none; }

@media (max-width: 700px) {
  #hero-transport { display: flex; flex-wrap: wrap; column-gap: clamp(10px, 2.4vw, 18px); row-gap: 3px; padding-top: 0; border-top: 0; }
  #hero-transport .hero-scrub { order: -1; flex: 0 0 100%; height: 32px; }
  #hero-time { margin-left: auto; }
  #hero-transport #hero-fullscreen { width: 20px; min-width: 20px; font-size: 0; }
  #hero-fullscreen::after { content: "⛶"; font-family: var(--sans); font-size: 19px; line-height: 1; }
  #hero-chapters-toggle { display: inline-flex; align-items: center; gap: 5px; }
  #hero-chapters-toggle::after { content: "+"; font-size: 12px; }
  #hero-chapters-toggle[aria-expanded="true"]::after { content: "−"; }
  .hero-scrub::before { left: -12px; right: -12px; border-radius: 24px; }
  .hero-glass-lens { left: -12px; width: calc(100% + 24px); border-radius: 24px; }
  #hero-transport .hero-chapter { padding-right: 8px; }
}
@media (hover: none) and (min-width: 701px) {
  #hero-chapters-toggle { display: inline-block; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scrub::before, .hero-glass-lens, .hero-chapters, .hero-chapter-ticks i, #hero-transport .hero-chapter { transition: none; }
  #hero-transport .hero-chapter:hover { transform: none; }
}
