.runway-link { color: inherit; text-decoration: none; white-space: nowrap; }
.runway-link:hover, .runway-stage a:hover { text-decoration: underline; text-underline-offset: .25em; }
.runway-track { height: 600svh; background: #251d18; }
.runway-stage {
  position: sticky; top: 0; isolation: isolate; overflow: clip; height: 100svh;
  --edge: max(var(--side), env(safe-area-inset-left), env(safe-area-inset-right));
  --paper: #eee2cc; color: var(--paper);
  background: #292018;
}
.runway-set, .runway-light, .runway-shade { position: absolute; inset: 0; pointer-events: none; }
.runway-atlas {
  position: absolute; top: 0; left: 0;
  width: var(--atlas-width); height: var(--atlas-height);
  transform: translate3d(var(--atlas-x, 0px), var(--atlas-y, 0px), 0);
  filter: brightness(var(--exposure, .85)) saturate(.83);
  mask-image: linear-gradient(0deg, transparent, #000 7%, #000 92%, transparent);
}
.runway-atlas picture, .runway-atlas img { position: absolute; inset: 0; width: 100%; height: 100%; }
.runway-atlas picture[data-layer]:not([data-visible]) { visibility: hidden; }
.runway-light {
  background: linear-gradient(110deg, transparent 36%, #f8d19b32 53%, transparent 68%);
  transform: translate3d(var(--light-x, 0px), 0, 0);
  opacity: var(--light-level, 0);
  mix-blend-mode: screen;
}
.runway-stage[data-beat="finale"] .runway-set::after {
  content: ''; position: absolute; inset: 0;
  box-shadow: inset 0 0 12vw #1a100b89;
  opacity: var(--finale, 0);
}
.runway-shade {
  background: linear-gradient(90deg, #21170ff5 0%, #21170fd8 16%, #21170f8f 35%, transparent 65%),
    linear-gradient(0deg, #211910e8, transparent 27%, transparent 79%, #20170fa8);
}
.runway-fabric {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 57% center; filter: brightness(.78) saturate(.86);
  transform: scale(var(--fabric-scale, 1)); transform-origin: 54% 47%;
  clip-path: polygon(0 0, var(--fabric-edge, 112%) 0, calc(var(--fabric-edge, 112%) - 12%) 100%, 0 100%);
}
.runway-fabric:not([src]), .runway-stage:not([data-fabric]) .runway-fabric { visibility: hidden; }
.runway-occluder {
  position: absolute; top: -10%; left: 0; height: 120%; width: var(--mask-width, 0px);
  transform: translate3d(var(--mask-x, -200vw), 0, 0) skewX(var(--mask-skew, 0deg));
  overflow: hidden; visibility: hidden;
}
.runway-stage[data-cut] .runway-occluder { visibility: visible; }
.runway-silk { display: block; width: 100%; height: 100%; object-fit: fill; }
.runway-stage[data-cut="left"] .runway-occluder, .runway-stage[data-cut="right"] .runway-occluder {
  border-inline: 3px solid #70533bc7;
  background: linear-gradient(90deg, #2c2117, #211810 19%, #302216 86%, #654934);
  box-shadow: 0 0 33px #27180973;
}
.runway-stage:not([data-cut="silk"]) .runway-silk { visibility: hidden; }
.runway-header, .runway-editorial, .runway-footer { position: absolute; z-index: 1; }
.runway-header {
  left: var(--edge); right: var(--edge); top: max(1.25rem, env(safe-area-inset-top));
  display: flex; justify-content: space-between; gap: .6rem;
  border-bottom: 1px solid #e8d5b27f; padding-bottom: .75rem;
}
.runway-header, .runway-kicker, .runway-index, .runway-cue, .runway-return {
  font-size: .68rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase;
}
.runway-stage a { color: inherit; text-decoration: none; }
.runway-editorial {
  left: var(--edge); top: 33%; max-width: min(53vw, 48rem);
  transform: translate3d(0, var(--title-drift, 0px), 0);
}
.runway-kicker { margin-bottom: .9rem; }
.runway-editorial h2 {
  margin: 0; font: 500 clamp(3.7rem, min(8.6vw, 16svh), 10rem)/.84 Bodoni, Georgia, serif;
  letter-spacing: -.075em; text-wrap: balance;
}
.runway-editorial h2:focus { outline: none; }
.runway-editorial em { font-weight: 500; }
.runway-caption {
  margin-top: 1rem; font-size: clamp(.74rem, 1vw, .91rem);
  color: #ebdac3; max-width: 27ch;
}
.runway-stage[data-cut] .runway-caption { visibility: hidden; }
.runway-footer {
  left: var(--edge); right: var(--edge); bottom: max(1.05rem, calc(env(safe-area-inset-bottom) + .45rem));
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .55rem .85rem;
}
.runway-name { font: 500 clamp(1.3rem, 2.5vw, 2.45rem)/1 Bodoni, Georgia, serif; margin-top: .28rem; }
.runway-stage[data-cut] .runway-look { visibility: hidden; }
.runway-controls { display: flex; justify-content: flex-end; gap: .16rem; }
.runway-controls button {
  border: 0; border-bottom: 1px solid #d9c2a53b; min-width: 42px; min-height: 44px;
  background: transparent; color: #f3e3c9; padding: .3rem .45rem;
  font: 650 .72rem Manrope, Arial, sans-serif; cursor: pointer;
}
.runway-controls button:hover, .runway-controls button[aria-pressed="true"] { border-color: #e5c999; background: #281c14b3; }
.runway-controls button:disabled { opacity: .43; cursor: default; }
.runway-controls button:focus-visible, .runway-stage a:focus-visible { outline: 2px solid #f3dbaa; outline-offset: 2px; }
.runway-cue, .runway-exits { grid-row: 2; grid-column: 2; justify-self: end; padding: .2rem 0; }
.runway-exits { display: flex; gap: 1rem; }
.runway-shop { font-size: .68rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.runway-error { font-size: .72rem; grid-column: 1 / -1; }
.runway-progress { grid-column: 1 / -1; height: 1px; background: #ead2a960; }
.runway-progress i { display: block; height: 2px; background: #e9cb92; transform: scaleX(var(--progress, 0)); transform-origin: left; }
@media (max-width: 820px) and (orientation: portrait) {
  .runway-header { top: max(.85rem, env(safe-area-inset-top)); }
  .runway-editorial { top: max(3.55rem, calc(env(safe-area-inset-top) + 2.8rem)); max-width: 85vw; }
  .runway-kicker { margin-bottom: .3rem; }
  .runway-editorial h2 { font-size: clamp(2.35rem, 10vw, 4.85rem); }
  .runway-caption { margin-top: .34rem; font-size: .7rem; }
  .runway-header, .runway-kicker, .runway-index, .runway-cue, .runway-return { font-size: .58rem; }
  .runway-shade { background: linear-gradient(0deg, #1b140f 0%, #21180fb0 15%, transparent 31%, transparent 74%, #231b13d9 100%); }
  .runway-footer { grid-template-columns: minmax(0,1fr); gap: .25rem; }
  .runway-controls { grid-column: 1; grid-row: 2; justify-content: stretch; }
  .runway-controls button { flex: 1; min-width: 0; }
  .runway-exits, .runway-cue { grid-column: 1; grid-row: 3; }
}
@media (max-width: 400px) {
  .material-top .studio-links { gap: .52rem; }
  .material-top { letter-spacing: .10em; }
}
@media (prefers-reduced-motion: reduce) {
  .runway-track { height: auto; }
  .runway-stage { position: relative; }
}
