.studio-page {
  background: #eef1ed;
}
.studio-page .topbar {
  --bar-bg: #0c0d0ef0;
  --bar-fg: #f3eddc;
  --bar-edge: #ffffff24;
  --bar-dim: #b4b2a8;
}
.topbar .studio-lockup {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 44px;
}
.topbar .studio-lockup img {
  grid-area: 1 / 1;
  width: clamp(85px, 7.8vw, 114px);
  height: auto;
}
.studio-lockup .on-light {
  visibility: hidden;
}
.sequence {
  --extra: 5.6;
  --view: 100vh;
  --view: 100svh;
  position: relative;
  color: #f7efdb;
}
.stage {
  height: var(--view);
  min-height: 310px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0b0c0d;
  touch-action: pan-y pinch-zoom;
}
.cinematic .sequence {
  height: calc((1 + var(--extra)) * var(--view));
}
.cinematic .stage {
  position: sticky;
  top: 0;
}
.scene-stop {
  position: absolute;
  top: calc(var(--at) * var(--extra) * var(--view));
  height: 1px;
  scroll-margin-top: calc(-1 * (var(--head) + 16px));
}
.field,
.grain,
.world-layer,
.brand-scene,
.airframe-layer,
.ink,
.exit-mist {
  position: absolute;
  pointer-events: none;
}
.field,
.grain,
.world-layer,
.airframe-layer,
.ink,
.exit-mist {
  inset: 0;
  width: 100%;
  height: 100%;
}
.field {
  background:
    radial-gradient(ellipse at 48% 42%, #273033 0%, #1a2124 35%, transparent 72%),
    linear-gradient(128deg, #15191c, #0a0e10 83%);
}
.grain {
  opacity: 0.052;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.8' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
  background-size: 168px 168px;
}
.world-layer {
  opacity: 0;
  background: radial-gradient(ellipse at 43% 36%, #f5f6ef 8%, #e3edef 59%, #ccdde2 100%);
}
.world-layer canvas,
.world-poster {
  position: absolute;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}
.world-poster {
  width: min(75vw, 85svh);
  height: auto;
  left: 51%;
  top: 50%;
  transform: translate(-50%, -50%) scale(var(--atlas-scale, 1));
  opacity: var(--poster-alpha, 1);
}
.world-layer.gpu-ready .world-poster {
  visibility: hidden;
}
.world-layer canvas {
  opacity: 0;
}
.world-layer.gpu-ready canvas {
  opacity: 1;
}
.brand-scene {
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: clamp(8px, 2.6vh, 28px);
  padding: var(--head) 0 70px;
  opacity: var(--brand-alpha, 1);
}
.cinematic .brand-scene {
  padding: 0;
}
.cinematic .brand-scene h1 {
  position: static;
}
.cinematic .sculpture {
  padding: 0;
}
.cloud-pass,
.cloud-pass canvas,
.cloud-pass::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.cloud-pass {
  opacity: 0;
  overflow: hidden;
}
.cloud-pass::before {
  content: '';
  background-color: #788d9a;
  background-size: cover;
  background-position: 50% 55%;
  transform: scale(calc(1.02 + var(--cloud-shift, 0) * 0.15));
}
.cloud-pass[data-pass='letter']::before,
.cloud-pass[data-pass='flight']::before {
  background-image: url('/assets/derived/pass-daylight.webp');
}
.cloud-pass[data-pass='descent']::before {
  background-image: url('/assets/derived/pass-descent.webp');
}
.cloud-pass.volume-ready::before {
  opacity: 0;
}
.cloud-pass canvas {
  opacity: 0;
}
.brand-scene h1 {
  position: relative;
  width: clamp(360px, 54vw, 940px);
  aspect-ratio: 2.04;
  line-height: 0;
}
.sculpture,
#brand-volume {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sculpture {
  padding: 0 6%;
}
#brand-volume {
  opacity: 0;
}
.solid-mark #brand-volume {
  opacity: 1;
}
.solid-mark .sculpture {
  visibility: hidden;
}
.brand-scene h1 {
  display: grid;
  place-items: center;
}
#render-test-hit {
  position: relative;
  width: 91%;
  height: 73%;
  z-index: 1;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
#render-test-hit:focus-visible {
  outline: 1px solid #c5b997;
  outline-offset: 6px;
}
#render-test-status {
  position: fixed;
  inset: auto max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) auto;
  z-index: 100;
  max-width: min(32rem, calc(100vw - 32px));
  padding: 0.58em 0.95em;
  border: 1px solid #c9dee138;
  border-radius: 4px;
  background: #142026ee;
  box-shadow: 0 2px 12px #0002;
  color: #eef2f0;
  font: 500 12px/1.5 var(--body-font);
  text-align: start;
  pointer-events: none;
}
.airframe-layer {
  overflow: hidden;
}
.airframe-layer img {
  position: absolute;
  top: 0;
  left: 0;
  width: 1536px;
  height: 1024px;
  max-width: none;
  transform-origin: 0 0;
  visibility: hidden;
  pointer-events: none;
}
.ink {
  max-width: none;
}
.exit-mist {
  opacity: 0;
  background: linear-gradient(170deg, #e2ebeb, #ecf0ec 60%, #eef1ed);
}
.field::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: var(--brand-alpha, 1);
  background: radial-gradient(
    ellipse 36% 29% at var(--light-x, 50%) var(--light-y, 46%),
    #d1b47e0b,
    transparent
  );
}
.still-sequence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-block: 45px;
  color: #e6e9e9;
}
.still-sequence figure {
  position: relative;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse, #1c3343, #111b22 86%);
  padding: 20px;
  border-radius: 6px;
  text-align: center;
}
.still-sequence figure img {
  height: clamp(130px, 21vw, 305px);
  width: 100%;
  object-fit: contain;
}
.cinematic .still-sequence {
  display: none;
}
.home-game {
  position: relative;
  z-index: 3;
  color: #18363e;
  background: #eef1ed;
  padding: clamp(89px, 10svh, 138px) 0 clamp(50px, 7svh, 96px);
  scroll-margin-top: var(--head);
}
.cinematic .home-game {
  display: block;
  min-height: 270svh;
  margin-top: -100svh;
  padding-block: 0;
  background: transparent;
  scroll-margin-top: 0;
}
.cinematic .home-game::before {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, #eef1ed min(95svh, 40%), #f3f3ed 100%);
  opacity: var(--paper, 0);
}
.cinematic .home-game-inner {
  position: sticky;
  top: 0;
  min-height: 100svh;
  padding-block: calc(var(--head) + 14px) 24px;
  align-content: center;
}
.cinematic .game-copy {
  opacity: var(--intro-copy, 0);
  transform: translateY(var(--lift, 36px));
}
.cinematic .feature-film {
  opacity: var(--intro-film, 0);
  transform: translateY(var(--lift, 36px));
}
.cinematic .feature-film {
  mask-image: linear-gradient(
    115deg,
    #000 calc(var(--intro-film, 0) * 155% - 43%),
    transparent calc(var(--intro-film, 0) * 155% + 12%)
  );
}
.cinematic .studio-page .topbar {
  --bar-bg: color-mix(in srgb, #0c0d0ef2, #edf1edf8 var(--daylight, 0%));
  --bar-fg: color-mix(in srgb, #f3eddc, #1b343e var(--daylight, 0%));
  --bar-edge: color-mix(in srgb, #ffffff24, #a6bdc060 var(--daylight, 0%));
  --bar-dim: color-mix(in srgb, #b4b2a8, #49606a var(--daylight, 0%));
}
.cinematic .studio-lockup .on-dark {
  opacity: calc(1 - var(--header-day, 0));
}
.cinematic .studio-lockup .on-light {
  visibility: visible;
  opacity: var(--header-day, 0);
}
@media (max-width: 720px) {
  .cinematic .home-game {
    min-height: 255svh;
  }
}
.home-game-inner {
  display: grid;
  gap: clamp(24px, 3.4svh, 46px);
}
.game-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.home-game h2 {
  margin: 0;
  min-width: 0;
}
.home-game .rw-title {
  width: clamp(232px, 26vw, 400px);
  max-width: 100%;
  display: block;
}
.home-game .actions {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, auto);
  gap: 10px;
  align-items: stretch;
}
.home-game .button {
  min-width: 0;
  white-space: normal;
  max-width: 100%;
  min-height: 47px;
  border-radius: 5px;
}
.home-game .button.primary {
  background: #173e46;
  color: #fff;
  border-color: #173e46;
}
.home-game .button.primary:hover {
  background: #265561;
}
.home-game .button.secondary {
  background: #ffffff52;
  color: #173c47;
  border-color: #899f9e;
}
.home-game .button.secondary:hover {
  background: #fff;
  border-color: #54777a;
}
.feature-film {
  position: relative;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  border-radius: 9px;
  background: #142631;
  box-shadow: 0 27px 65px -32px #000c;
}
.feature-film::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px #e5eff01f;
}
.film-stage {
  position: relative;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 2.44;
  max-height: 58svh;
  overflow: hidden;
}
.film-stage [data-scene],
.film-stage canvas {
  position: absolute;
  margin: 0;
  inset: 0;
  width: 100%;
  height: 100%;
}
.film-stage [data-scene] {
  opacity: 0;
}
[data-shot='hangar'] [data-scene='hangar'],
[data-shot='routes'] [data-scene='routes'],
[data-shot='schedule'] [data-scene='schedule'] {
  opacity: 1;
}
.film-plate {
  position: absolute;
  right: 4%;
  bottom: 5.8%;
  display: grid;
  justify-items: end;
  gap: 2px;
  color: #243a42;
  text-shadow: 0 1px 3px #ffffffe0;
  line-height: 1.16;
}
.film-plate small {
  font: 600 clamp(9px, 0.92cqw, 13px) / 1.35 var(--body-font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.film-plate strong {
  font: 650 clamp(18px, 2.45cqw, 36px) / 1 var(--body-font);
  letter-spacing: -0.035em;
}
.film-accessible {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.film-dispatch {
  display: grid;
  grid-template: 'heading heading' auto 'lanes detail' minmax(0, auto) / minmax(0, 2.18fr) minmax(0, 1fr);
  align-content: center;
  gap: 0;
  padding: clamp(15px, 3cqw, 48px) clamp(17px, 4cqw, 60px);
  background: linear-gradient(122deg, #fafcfd, #f0f5f8 76%, #e9f0f4);
  color: #213e50;
  font-variant-numeric: tabular-nums;
}
.dispatch-title {
  grid-area: heading;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 0 0 clamp(12px, 1.72cqw, 24px);
}
.dispatch-title strong {
  display: flex;
  align-items: center;
  gap: 0.65em;
  font: 650 clamp(14px, 1.84cqw, 26px) / 1.12 var(--body-font);
  letter-spacing: -0.025em;
}
.dispatch-title .icon {
  color: #26769d;
  width: 1.11em;
  height: 1.11em;
  flex: none;
}
.dispatch-clock {
  display: inline-flex;
  align-items: baseline;
  gap: 0.62em;
  font: 550 clamp(12px, 1.43cqw, 20px) / 1 var(--mono);
  white-space: nowrap;
}
.dispatch-clock small,
.dispatch-service small,
.dispatch-profile span {
  font: 550 clamp(9px, 0.93cqw, 13px) / 1.25 var(--mono);
  color: #516d7e;
}
.film-tracks {
  --reg: 22%;
  --ruler: clamp(33px, 4.95cqw, 68px);
  grid-area: lanes;
  position: relative;
  align-self: stretch;
  display: grid;
  grid-template-rows: var(--ruler) 1fr 1fr;
  background: #fff;
  border: 1px solid #c5d3de;
  border-radius: 7px 0 0 7px;
  overflow: hidden;
}
.film-hours,
.film-track {
  display: grid;
  grid-template-columns: var(--reg) minmax(0, 1fr);
}
.film-hours {
  background: #edf3f7;
  border-bottom: 1px solid #d5e0e8;
}
.film-ruler,
.film-lane {
  position: relative;
}
.film-zones,
.film-tick,
.film-reg {
  display: grid;
  align-content: center;
  gap: 0.21em;
  font: 550 clamp(9px, 1.03cqw, 15px) / 1.12 var(--mono);
}
.film-zones,
.film-reg {
  padding-inline: clamp(6px, 1.2cqw, 17px);
}
.film-reg {
  background: #f7fafb;
}
.film-zones small,
.film-tick small,
.film-reg small {
  color: #607686;
  font-size: 0.83em;
  font-weight: 450;
  white-space: nowrap;
}
.film-zones b,
.film-tick b {
  font-weight: 550;
}
.film-tick {
  position: absolute;
  height: 100%;
  transform: translateX(-50%);
  font-size: clamp(8px, 1cqw, 14px);
}
.film-tick:first-child {
  transform: none;
  padding-left: 0.4em;
}
.film-tick:last-child {
  transform: translateX(-100%);
  padding-right: 0.4em;
}
.film-tick sup {
  font-size: 0.66em;
}
.film-track + .film-track {
  border-top: 1px solid #d5e0e8;
}
.film-lane {
  min-height: clamp(38px, 5.85cqw, 85px);
  background:
    repeating-linear-gradient(90deg, #b0c6d488 0 1px, transparent 1px 25%),
    repeating-linear-gradient(90deg, #c7d5df51 0 1px, transparent 1px calc(100% / 12));
}
.film-flight {
  position: absolute;
  top: 12%;
  height: 76%;
  padding-inline: clamp(4px, 0.65cqw, 10px);
  display: grid;
  align-content: center;
  justify-content: start;
  gap: 0.13em;
  overflow: hidden;
  color: #355970;
  background: #e7f1f6;
  border: 1px solid #b8ceda;
  border-radius: 4px;
  font: 600 clamp(10px, 1.13cqw, 16px) / 1.12 var(--body-font);
  white-space: nowrap;
}
.film-flight small {
  font: 450 0.83em/1.15 var(--body-font);
}
.film-flight.selected {
  border-color: #307898;
  box-shadow: inset 2px 0 #2a83a9;
  background: #d9eaf3;
  color: #1b4d68;
}
.film-playhead {
  position: absolute;
  z-index: 1;
  inset-block: calc(var(--ruler) - 3px) 0;
  left: calc(var(--reg) + (100% - var(--reg)) * var(--timeline-position));
  width: 1px;
  background: #227aa5;
}
.film-playhead::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 4px;
  left: -2.5px;
  top: 0;
  background: #227aa5;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.dispatch-flight {
  grid-area: detail;
  display: grid;
  align-content: space-between;
  gap: 0.9cqw;
  padding: clamp(10px, 1.7cqw, 25px);
  min-width: 0;
  border: 1px solid #c5d3de;
  border-left: 0;
  border-radius: 0 7px 7px 0;
  background: linear-gradient(138deg, #fff 44%, #edf4f8);
}
.dispatch-service {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}
.dispatch-service b {
  font: 650 clamp(13px, 1.6cqw, 22px) / 1.1 var(--body-font);
  color: #206286;
}
.dispatch-leg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9em;
}
.dispatch-port {
  display: grid;
  gap: 0.28em;
}
.dispatch-port:last-child {
  text-align: end;
}
.dispatch-port b {
  font: 600 clamp(21px, 3.25cqw, 46px) / 1 var(--body-font);
  letter-spacing: -0.05em;
}
.dispatch-port time {
  font: 500 clamp(10px, 1.05cqw, 15px) / 1 var(--mono);
  color: #536e80;
}
.dispatch-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 6px;
  margin-top: 0.15cqw;
}
.dispatch-profile i {
  height: clamp(21px, 3.65cqw, 52px);
  background: var(--air) left bottom / contain no-repeat;
}
.dispatch-flight[data-track='0'] {
  --air: url('/assets/derived/a332-side.webp');
}
.dispatch-flight[data-track='1'] {
  --air: url('/assets/derived/b772er-side.webp');
}
.dispatch-profile span {
  white-space: nowrap;
  padding-bottom: 0.16em;
}
@container (max-width: 680px) {
  .film-dispatch {
    grid-template: 'heading' auto 'detail' auto 'lanes' minmax(0, auto) / 1fr;
    padding: 4.4cqw;
  }
  .dispatch-title {
    padding-bottom: 2.3cqw;
  }
  .dispatch-title strong {
    font-size: clamp(13px, 3.6cqw, 19px);
  }
  .dispatch-flight {
    border: 1px solid #c5d3de;
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
    grid-template-columns: minmax(48px, 0.82fr) minmax(0, 1.58fr) minmax(45px, 0.82fr);
    align-items: center;
    gap: 2.8cqw;
    padding: 2.6cqw;
  }
  .dispatch-service {
    display: grid;
    gap: 3px;
  }
  .dispatch-service small {
    font-size: clamp(7px, 2.05cqw, 11px);
  }
  .dispatch-leg {
    justify-content: flex-start;
    gap: clamp(10px, 2.6cqw, 18px);
  }
  .dispatch-port b {
    font-size: clamp(20px, 5.7cqw, 37px);
  }
  .dispatch-port time {
    font-size: clamp(8px, 2.2cqw, 13px);
  }
  .dispatch-profile {
    grid-template-columns: 1fr;
    justify-items: end;
    gap: 1px;
  }
  .dispatch-profile i {
    width: 100%;
    height: clamp(17px, 4.6cqw, 30px);
    background-position: right bottom;
  }
  .dispatch-profile span {
    font-size: clamp(7px, 1.9cqw, 10px);
  }
  .film-tracks {
    --reg: 21%;
    --ruler: clamp(27px, 6.7cqw, 36px);
    border-radius: 0 0 5px 5px;
  }
  .film-lane {
    min-height: clamp(34px, 8.6cqw, 48px);
  }
  .film-flight {
    font-size: clamp(8.5px, 2.5cqw, 13px);
    padding-inline: clamp(3px, 0.85cqw, 6px);
    border-radius: 3px;
  }
  .film-zones,
  .film-reg {
    font-size: clamp(8.5px, 2.35cqw, 12px);
  }
  .film-tick {
    font-size: clamp(8px, 2.05cqw, 11px);
  }
}

@media (max-width: 720px) {
  .home-game-inner.wrap {
    gap: 22px;
  }
  .game-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .home-game .rw-title {
    width: min(100%, 315px);
  }
  .home-game .actions {
    max-width: 100%;
  }
  .film-stage {
    aspect-ratio: 1.32;
    max-height: none;
  }
}
@media (max-width: 440px) {
  .home-game .actions .button {
    width: auto;
    font-size: 0.86rem;
    padding-inline: 0.86em;
    overflow-wrap: anywhere;
  }
  .home-game .button .icon {
    flex: none;
    width: 15px;
  }
}
@media (max-height: 520px) and (orientation: landscape) {
  .home-game {
    padding-block: 66px 30px;
  }
  .home-game-inner.wrap {
    gap: 14px;
  }
  .home-game .rw-title {
    width: 215px;
  }
  .film-stage {
    max-height: none;
    aspect-ratio: 2.9;
  }
  .game-copy {
    flex-direction: row;
    align-items: center;
  }
}

.studio-page .footer {
  position: relative;
  z-index: 4;
}
html:not(.cinematic) .scene-stop {
  display: none;
}
html:not(.cinematic) .brand-scene {
  opacity: 1;
  transform: none;
}
html:not(.cinematic) .world-layer,
html:not(.cinematic) .ink,
html:not(.cinematic) .airframe-layer,
html:not(.cinematic) .exit-mist {
  display: none;
}
@media (max-width: 700px) {
  .sequence {
    --extra: 4.35;
  }
  .brand-scene h1 {
    width: 96vw;
  }
  .brand-scene {
    padding: var(--head) 0 90px;
    gap: 18px;
  }
  .world-poster {
    left: 50%;
    width: min(94vw, 65svh);
  }
  .still-sequence {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-block: 22px;
  }
  .still-sequence figure {
    padding: 12px 6px;
  }
  .still-sequence figure img {
    height: 100px;
  }
}
@media (max-height: 520px) and (orientation: landscape) {
  .sequence {
    --extra: 4.25;
  }
  .brand-scene {
    gap: 1px;
    padding: 55px 0 38px;
  }
  .brand-scene h1 {
    width: min(49vw, 86vh);
  }
  .header-inner {
    min-height: 49px;
  }
  :root {
    --head: 49px;
  }
}
#dreamliner {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  visibility: hidden;
  pointer-events: none;
}
.world-layer {
  z-index: 1;
}
.cloud-pass {
  z-index: 2;
}
.brand-scene {
  z-index: 3;
}
.airframe-layer {
  z-index: 4;
}
.stage.orbital .airframe-layer {
  z-index: 2;
}
.stage.orbital .cloud-pass {
  z-index: 3;
}
.exit-mist {
  z-index: 5;
}

.feature-film {
  background: #f2f6f8;
  box-shadow: 0 20px 48px -38px #123d5a70;
  border: 1px solid #b7cbd4;
}
