/* The opening is a film object: dimensional lettering, a backing plate and
   source-linked scene controls. The video keeps its complete native frame. */
.hero.video-hero {
  padding-bottom: 52px;
}
.video-hero .hero-intro {
  align-items: center;
  gap: 42px;
  margin-bottom: 32px;
}
.hero.video-hero h1 {
  font-size: clamp(110px, 12.6vw, 184px);
  line-height: .86;
  position: relative;
  z-index: 1;
}
.hero-code-line,
.hero.video-hero h1 > .fit-type > .hero-code-line {
  color: var(--bone);
  display: inline-block;
  position: relative;
  isolation: isolate;
  --type-depth: 6px;
}
.hero-code-line::before,
.hero-code-line::after {
  content: attr(data-depth);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 1px var(--lavender);
  transform: translate(var(--type-depth), var(--type-depth));
  opacity: .64;
  pointer-events: none;
}
.hero-code-line::after {
  transform: translate(calc(var(--type-depth) * 2), calc(var(--type-depth) * 2));
  opacity: .23;
}
.hero.video-hero h1 .hero-title-dot {
  color: var(--lavender);
}
.hero-promise {
  padding-top: 17px;
  border-top: 1px solid #d3c8ba40;
}
.hero-promise .hero-social-proof {
  color: var(--bone);
}
.hero-enrol {
  min-height: 58px;
  padding: 8px 10px 8px 20px;
}
.hero-enrol > svg {
  width: 40px;
  height: 40px;
  padding: 11px;
  border-radius: 50%;
  color: var(--bone);
  background: var(--deep);
  transition: background .25s, transform .35s var(--ease);
}
.hero-enrol:hover > svg {
  background: var(--purple);
  transform: rotate(-35deg);
}
.hero-enrol:active {
  transform: translateY(1px);
}
.hero-fold-mark {
  position: absolute;
  top: 184px;
  right: calc(var(--gutter) + 434px);
  width: 80px;
  height: 110px;
  transform: rotate(-18deg);
  pointer-events: none;
  opacity: .4;
}
.hero-fold-mark span {
  position: absolute;
  inset: 0;
  border: 1px solid var(--lavender);
  transform: skewY(-18deg) scaleX(.7);
}
.hero-fold-mark span:nth-child(2) {
  transform: translate(22px, 18px) skewY(18deg) scaleX(.7);
  opacity: .6;
}
.hero-fold-mark span:nth-child(3) {
  transform: translate(44px, 36px) skewY(-18deg) scaleX(.7);
  border-color: var(--gold);
  opacity: .5;
}
.hero-studio-frame {
  position: relative;
  isolation: isolate;
  border: 1px solid #d4a24a8c;
  background: var(--deep);
}
.hero-studio-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--purple);
  transform: translate(10px, 12px) rotate(-.55deg);
  box-shadow: 9px 18px 28px #0000004d;
  pointer-events: none;
}
.hero-frame-rail {
  min-height: 33px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 7px 15px;
  color: var(--sand);
  background: var(--deep);
  font: 400 11px/1.5 var(--body);
}
.hero-frame-divider {
  color: var(--gold);
  padding-inline: 9px;
}
#hero-timecode {
  font: 500 10px/1.5 var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  white-space: nowrap;
}
.hero-studio-frame .hero-film-stage {
  border: 0;
}
.hero-playback-line {
  position: relative;
  height: 2px;
  background: #d4a24a33;
  overflow: hidden;
}
#hero-playback-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}
.hero-frame-corner {
  position: absolute;
  width: 17px;
  height: 17px;
  border-style: solid;
  border-color: var(--gold);
  pointer-events: none;
}
.corner-tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.corner-tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.corner-bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.corner-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.hero-film-toolbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 22px;
  padding: 25px 0 18px;
}
.hero-film-credit {
  flex-wrap: wrap;
  gap: 8px 14px;
}
.hero-film-credit > span { max-width: 20ch; }
.hero-film-control {
  background: var(--deep);
  border-color: #d3c8ba4d;
  transition: background .2s, border-color .2s, transform .2s;
}
.hero-film-control:active { transform: translateY(1px); }
.hero-scene-choices {
  display: grid;
  grid-template-columns: repeat(3, 88px);
  gap: 6px;
}
.hero-scene-choices[hidden] { display: none; }
.hero-scene-button {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  padding: 3px;
  border: 1px solid #d3c8ba4d;
  border-radius: 4px;
  background: var(--deep);
  text-align: left;
  transition: border-color .2s, background .2s, transform .3s var(--ease);
}
.hero-scene-button img {
  width: 100%;
  height: 30px;
  object-fit: cover;
}
.hero-scene-button > span {
  padding: 4px 3px 2px;
  font: 400 11px/1.2 var(--body);
  color: var(--sand);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.hero-scene-button:hover,
.hero-scene-button[aria-pressed=true] {
  border-color: var(--gold);
  background: #251a39;
}
.hero-scene-button:hover { transform: translateY(-3px); }
.hero-scene-button:active { transform: translateY(1px); }
.hero-scene-button[aria-pressed=true] > span { color: var(--gold); }
.hero-meta { padding-top: 14px; }
.hero-meta a { min-height: 36px; }
/* The same small gold terminals continue along existing chapter rules. */
.character-bottom,
.gallery-foot { position: relative; }
.character-bottom::after,
.gallery-foot::after {
  content: '';
  position: absolute;
  top: -3px;
  right: 0;
  width: 6px;
  height: 6px;
  background: var(--gold);
  pointer-events: none;
}
.access-details > h3::after {
  content: '';
  display: inline-block;
  width: 55px;
  margin-left: 18px;
  border-top: 1px solid var(--gold);
  vertical-align: middle;
}
@media (max-width: 1199px) {
  .hero-fold-mark { display: none; }
  .hero-film-toolbar { gap: 15px; }
  .hero-film-credit > span { display: none; }
}
@media (min-width: 701px) and (max-width: 1000px) {
  .hero.video-hero h1 { font-size: 12vw; }
  .hero-film-toolbar { grid-template-columns: minmax(0, 1fr) auto; }
  .hero-film-credit { grid-column: 1; grid-row: 1; }
  .hero-film-actions { grid-column: 2; grid-row: 1; }
  .hero-scene-choices {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-scene-button { flex-direction: row; align-items: center; gap: 12px; padding: 5px; }
  .hero-scene-button img { width: 60px; height: 30px; }
}
@media (max-width: 700px) {
  .hero.video-hero { padding-bottom: 54px; }
  .video-hero .hero-intro { margin-bottom: 28px; }
  .hero.video-hero h1 { font-size: clamp(78px, 23vw, 140px); margin-bottom: 25px; }
  .hero-code-line,
  .hero.video-hero h1 > .fit-type > .hero-code-line { --type-depth: 3px; }
  .hero-code-line::after { opacity: .15; }
  .hero-promise { border-top: 0; padding-top: 0; }
  .hero-enrol { min-height: 54px; padding: 7px 8px 7px 18px; }
  .hero-enrol > svg { width: 38px; height: 38px; padding: 10px; }
  .hero-studio-frame::before { transform: translate(4px, 7px) rotate(-.7deg); box-shadow: 5px 9px 18px #00000040; }
  .hero-frame-rail { min-height: 29px; padding: 5px 10px; gap: 8px; font-size: 10px; }
  .hero-frame-divider { padding-inline: 5px; }
  #hero-timecode { font-size: 9px; }
  .hero-frame-corner { width: 12px; height: 12px; }
  .hero-film-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 20px; }
  .hero-film-credit { grid-row: 1; margin: 0; flex-wrap: nowrap; }
  .hero-film-credit > span { display: block; max-width: 24ch; }
  .hero-film-actions { grid-row: 2; }
  .hero-scene-choices { grid-row: 3; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .hero-scene-button { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 4px; padding: 4px; }
  .hero-scene-button img { width: 34px; height: 25px; }
  .hero-scene-button > span { white-space: normal; padding: 0; font-size: 11px; }
  .hero-scene-button:hover { transform: none; }
  .hero-meta { padding-top: 8px; }
}
@media (max-width: 359px) {
  .hero-scene-button { grid-template-columns: 28px minmax(0, 1fr); gap: 3px; }
  .hero-scene-button img { width: 28px; height: 22px; }
  .hero-scene-button > span { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-enrol > svg, .hero-film-control, .hero-scene-button { transition: none; }
  .hero-enrol:hover > svg, .hero-scene-button:hover { transform: none; }
}
html[data-motion=paused] .hero-enrol > svg,
html[data-motion=paused] .hero-film-control,
html[data-motion=paused] .hero-scene-button { transition: none; }
html[data-motion=paused] .hero-enrol:hover > svg,
html[data-motion=paused] .hero-scene-button:hover { transform: none; }
@media (forced-colors: active) {
  .hero-code-line::before, .hero-code-line::after,
  .hero-fold-mark, .hero-studio-frame::before, .hero-frame-corner { display: none; }
  .hero-studio-frame, .hero-scene-button { border-color: ButtonText; }
  .hero-frame-rail, #hero-timecode, .hero-scene-button > span { color: CanvasText; }
  .hero-scene-button[aria-pressed=true] { border-color: Highlight; }
  .hero-scene-button[aria-pressed=true] > span { color: Highlight; }
  #hero-playback-fill { background: Highlight; }
}
