/* Solid white infinity field; the only haze and shadows are neutral grey. */
html, body { width: 100%; height: 100%; margin: 0; background: #fff; }
.maintenance-scene {
  --scene-ink: #59636d;
  --scene-blue: #2c5f8a;
  --lamp-left: 50%;
  --lamp-bottom: 10%;
  --lamp-scale: 1;
  --spout-x: 6.6%;
  --spout-y: 25.3%;
  /* 43.4% actor travel / 120% canopy width: x6.6% becomes x50%. */
  --canopy-deploy-x: -36.1667%;
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 280px;
  overflow: hidden;
  background: #fff;
  color: var(--scene-ink);
  font-family: Arial, Helvetica, sans-serif;
}
.maintenance-scene::before {
  content: "";
  position: absolute;
  top: 57%;
  left: -5%;
  width: 110%;
  height: 3px;
  border-radius: 50%;
  background: rgb(80 80 80 / .035);
  box-shadow: 0 0 25px 12px rgb(80 80 80 / .025);
  pointer-events: none;
}
.maintenance-scene .visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.maintenance-scene .sky-flight {
  position: absolute;
  z-index: 5;
  top: 14%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  width: max-content;
  max-width: calc(100% - 32px);
  transform: translateX(-50%);
  pointer-events: none;
}
.maintenance-scene[data-enhanced="true"] .sky-flight {
  animation: maintenance-flight 80s linear infinite;
  animation-delay: -40s;
}
.maintenance-scene .flight-banner {
  flex: 0 1 auto;
  box-sizing: border-box;
  max-width: 35rem;
  min-width: 0;
  padding: .85rem 1.2rem;
  margin: 0;
  border: 1px solid #d9dcde;
  border-radius: 1px 3px 3px 1px;
  background: #fff;
  color: #48525d;
  box-shadow: 0 2px 3px rgb(0 0 0 / .025);
  font-size: clamp(.875rem, 1.08vw, 1rem);
  font-weight: 400;
  line-height: 1.55;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.maintenance-scene .flight-towline {
  display: block;
  flex: 0 0 clamp(20px, 3.5vw, 56px);
  height: 1px;
  background: #a1a7ad;
  transform: rotate(-5deg);
  transform-origin: left center;
}
.maintenance-scene .flight-plane {
  display: block;
  flex: 0 0 auto;
  width: clamp(58px, 7vw, 108px);
  height: auto;
  transform: translateY(-3px);
}
/* This route starts in view, exits to the right, then crosses left to right. */
@keyframes maintenance-flight {
  from { transform: translateX(calc(-100vw - 100%)); }
  to { transform: translateX(100vw); }
}
.maintenance-scene .horizon-wordmark {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 42%;
  width: min(36vw, 29rem);
  max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
}
.maintenance-scene .horizon-wordmark::after {
  content: "";
  position: absolute;
  left: 4%; right: -1%; bottom: -3px; height: 6px;
  border-radius: 50%;
  background: rgb(45 45 45 / .07);
  filter: blur(5px);
  z-index: -1;
}
.maintenance-scene .horizon-wordmark img { display: block; width: 100%; height: auto; }
.maintenance-scene .wordmark-depth { position: absolute; inset: 0; filter: grayscale(1) brightness(.82); }
.maintenance-scene .wordmark-depth-back { transform: translate(3px, 4px); opacity: .26; }
.maintenance-scene .wordmark-depth-mid { transform: translate(1.5px, 2px); opacity: .4; }
.maintenance-scene .wordmark-face { position: relative; }
.maintenance-scene .lamp-actor {
  position: absolute;
  z-index: 3;
  left: var(--lamp-left);
  bottom: var(--lamp-bottom);
  width: min(48vw, 38rem);
  aspect-ratio: 1672 / 941;
  padding: 0;
  border: 0;
  border-radius: 20%;
  background: transparent;
  color: inherit;
  font: inherit;
  /* Canvas contact is y748/941. Scaling preserves that ground anchor. */
  transform-origin: 50% 79.5%;
  transform: translate(-50%, 20.5%) scale(var(--lamp-scale));
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.maintenance-scene .lamp-actor:focus-visible { outline: 3px solid var(--scene-blue); outline-offset: 7px; }
.maintenance-scene .lamp-actor[data-dragging="true"] { cursor: grabbing; }
.maintenance-scene .lamp-actor img { display: block; width: 100%; max-width: none; height: auto; pointer-events: none; }
.maintenance-scene .lamp-art,
.maintenance-scene .lamp-pendulum,
.maintenance-scene .lamp-tremor,
.maintenance-scene .lamp-art picture { display: block; width: 100%; position: relative; }
.maintenance-scene .lamp-art {
  z-index: 3;
  transform-origin: var(--spout-x) var(--spout-y);
  transform: translateX(calc(43.4% * var(--lamp-suspension, 0))) rotate(calc(72deg * var(--lamp-suspension, 0)));
}
.maintenance-scene .lamp-pendulum {
  transform-origin: var(--spout-x) var(--spout-y);
  transform: rotate(var(--maintenance-pendulum, 0deg));
}
.maintenance-scene .lamp-tremor {
  transform-origin: 60% 79.5%;
}
.maintenance-scene[data-enhanced="true"] .lamp-tremor {
  animation: maintenance-tremor 7.9s linear infinite;
}
.maintenance-scene .lamp-shadow {
  position: absolute;
  z-index: 0;
  left: 42%; top: 77%; width: 38%; height: 4%;
  border-radius: 50%;
  background: rgb(45 45 45 / .16);
  filter: blur(8px);
  transform: scaleX(1.1);
  opacity: var(--lamp-grounded, 1);
}
.maintenance-scene .parachute {
  position: absolute;
  display: block;
  z-index: 2;
  left: -10%; top: -100%;
  width: 120%; aspect-ratio: 1536 / 1024;
  opacity: 0;
  visibility: hidden;
  /* Canopy's spare transparent lower half houses the suspension lines. */
  transform-origin: 50% 88.15%;
  transform: translateX(calc(var(--canopy-deploy-x) * (1 - var(--lamp-suspension, 0)))) scale(var(--canopy-open, 0));
  pointer-events: none;
}
.maintenance-scene .parachute-canopy { display: block; position: relative; z-index: 2; width: 100%; }
.maintenance-scene .parachute-rigging { position: absolute; inset: 0; z-index: 1; }
.maintenance-scene .parachute-rigging span {
  position: absolute;
  left: 50%; top: 88.15%;
  height: 1px; width: 54.8%;
  background: #9d9d98;
  transform-origin: left center;
}
.maintenance-scene .parachute-rigging span:nth-child(1) { transform: rotate(-150.3deg); }
.maintenance-scene .parachute-rigging span:nth-child(2) { transform: rotate(-29.7deg); }
.maintenance-scene .parachute-rigging span:nth-child(3) { width: 29%; transform: rotate(-128deg); }
.maintenance-scene .parachute-rigging span:nth-child(4) { width: 29%; transform: rotate(-52deg); }
.maintenance-scene[data-phase="deploying"] .parachute,
.maintenance-scene[data-phase="parachuting"] .parachute { visibility: visible; opacity: var(--canopy-open, 0); }
.maintenance-scene .lamp-glint,
.maintenance-scene .lamp-wisp {
  position: absolute;
  left: var(--spout-x); top: var(--spout-y);
  opacity: 0;
  pointer-events: none;
}
.maintenance-scene .lamp-glint {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #edf7ff;
  box-shadow: 0 0 6px 2px rgb(44 95 138 / .48);
}
.maintenance-scene .lamp-wisp {
  width: 15px; height: 27px;
  margin: -25px 0 0 -5px;
  border-left: 1px solid rgb(44 95 138 / .36);
  border-radius: 50%;
}
.maintenance-scene[data-feedback="rub"] .lamp-glint,
.maintenance-scene[data-feedback="shake"] .lamp-glint { animation: maintenance-glint 700ms ease-out; }
.maintenance-scene[data-feedback="rub"] .lamp-wisp,
.maintenance-scene[data-feedback="shake"] .lamp-wisp { animation: maintenance-wisp 700ms ease-out; }
.maintenance-scene[data-feedback="rub"] .lamp-tremor,
.maintenance-scene[data-feedback="shake"] .lamp-tremor { animation: maintenance-shiver 500ms linear; }
.maintenance-scene[data-phase="dragging"] .lamp-tremor,
.maintenance-scene[data-phase="deploying"] .lamp-tremor,
.maintenance-scene[data-phase="parachuting"] .lamp-tremor,
.maintenance-scene[data-paused="true"] * { animation-play-state: paused !important; }
@keyframes maintenance-tremor {
  0%, 64%, 68%, 88%, 92%, 100% { transform: translate(0, 0) rotate(0); }
  65%, 90% { transform: translate(.6px, -.3px) rotate(.12deg); }
  66.5%, 89% { transform: translate(-.5px, 0) rotate(-.1deg); }
}
@keyframes maintenance-shiver {
  0%, 100% { transform: rotate(0); }
  18%, 55% { transform: rotate(.5deg); }
  35%, 72% { transform: rotate(-.35deg); }
}
@keyframes maintenance-glint { 0%, 100% { opacity: 0; } 25% { opacity: .9; } }
@keyframes maintenance-wisp {
  0% { opacity: 0; transform: translateY(2px) scale(.6); }
  25% { opacity: .6; }
  100% { opacity: 0; transform: translate(-3px, -12px) scale(1.15); }
}
@media (max-aspect-ratio: 4/5) {
  .maintenance-scene .horizon-wordmark { width: 62vw; bottom: 45%; }
  .maintenance-scene .lamp-actor { width: 82vw; }
  .maintenance-scene .sky-flight { top: 17%; }
}
@media (max-width: 600px) {
  .maintenance-scene .sky-flight { max-width: calc(100% - 24px); }
  .maintenance-scene .flight-banner { padding: .65rem .8rem; font-size: .875rem; line-height: 1.5; }
  .maintenance-scene .flight-towline { flex-basis: 16px; }
  .maintenance-scene .flight-plane { width: 48px; }
}
@media (max-height: 460px) and (min-aspect-ratio: 4/5) {
  .maintenance-scene .sky-flight { top: 7%; }
  .maintenance-scene .lamp-actor { width: 40vw; max-width: 420px; }
  .maintenance-scene .horizon-wordmark { width: 28vw; }
}
@media (prefers-reduced-motion: reduce) {
  .maintenance-scene *, .maintenance-scene *::before, .maintenance-scene *::after { animation: none !important; transition: none !important; }
  .maintenance-scene .sky-flight { transform: translateX(-50%); }
  .maintenance-scene .lamp-wisp { display: none; }
}
@media (forced-colors: active) {
  .maintenance-scene { background: Canvas; color: CanvasText; }
  .maintenance-scene::before { height: 1px; background: CanvasText; box-shadow: none; }
  .maintenance-scene .flight-banner { background: Canvas; color: CanvasText; border-color: CanvasText; box-shadow: none; }
  .maintenance-scene .flight-towline, .maintenance-scene .parachute-rigging span { background: CanvasText; }
  .maintenance-scene .lamp-actor { border: 1px solid ButtonText; }
  .maintenance-scene .lamp-actor:focus-visible { outline-color: Highlight; }
  .maintenance-scene .lamp-shadow, .maintenance-scene .wordmark-depth { display: none; }
}
