:root {
  --ink: #091116;
  --ink-raised: #111d23;
  --paper: #f1efe4;
  --paper-dim: #b9c0be;
  --rule: rgba(220, 229, 226, 0.25);
  --rule-strong: rgba(220, 229, 226, 0.48);
  --amber: #e49a32;
  --amber-bright: #ffc061;
  --teal: #60a7a0;
  --red: #e34a43;
  --font-interface: "Source Sans 3", "Segoe UI", sans-serif;
  --font-condensed: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--ink);
}

body {
  color: var(--paper);
  font-family: var(--font-interface);
}

button,
a {
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--amber-bright);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.holding-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background: var(--ink);
}

#airspace-scene {
  position: absolute;
  z-index: -4;
  inset: 0;
  width: 100%;
  height: 100%;
}

.chart-wash {
  position: absolute;
  z-index: -3;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 17, 22, 0.96) 0%, rgba(9, 17, 22, 0.76) 31%, rgba(9, 17, 22, 0.08) 67%),
    linear-gradient(0deg, rgba(9, 17, 22, 0.74) 0%, transparent 32%);
}

.chart-wash::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.04) 4px
  );
  mix-blend-mode: soft-light;
}

.frame-corners {
  position: absolute;
  z-index: 4;
  inset: 14px;
  pointer-events: none;
  border: 1px solid rgba(231, 235, 227, 0.18);
}

.frame-corners::before,
.frame-corners::after {
  content: "";
  position: absolute;
  width: 44px;
  height: 44px;
}

.frame-corners::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--amber);
  border-left: 2px solid var(--amber);
}

.frame-corners::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--amber);
  border-bottom: 2px solid var(--amber);
}

.brand-bar {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 92px;
  padding: 18px clamp(26px, 4vw, 72px);
  border-bottom: 1px solid var(--rule);
}

.brand-lockup {
  position: relative;
  display: grid;
  grid-template-columns: 33px auto;
  gap: 11px;
  color: var(--paper);
  text-decoration: none;
}

.brand-lockup::after {
  content: "";
  position: absolute;
  top: 28px;
  left: 2px;
  width: 42px;
  height: 1px;
  background: var(--amber);
}

.brand-altitude {
  align-self: stretch;
  padding-top: 2px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.07em;
  line-height: 1;
  text-align: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-condensed);
  font-size: clamp(1.85rem, 2.5vw, 2.45rem);
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 0.82;
}

.brand-name span {
  color: var(--amber);
}

.brand-descriptor {
  margin-top: 9px;
  color: var(--paper-dim);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.2em;
}

.network-state {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 172px;
  padding-left: 18px;
  border-left: 1px solid var(--rule);
}

.network-state span:last-child {
  display: flex;
  flex-direction: column;
}

.network-state small,
.network-state strong {
  font-family: var(--font-mono);
  letter-spacing: 0.11em;
}

.network-state small {
  color: var(--paper-dim);
  font-size: 0.52rem;
}

.network-state strong {
  margin-top: 4px;
  color: var(--amber-bright);
  font-size: 0.69rem;
  font-weight: 500;
}

.state-mark {
  position: relative;
  width: 12px;
  height: 12px;
  border: 1px solid var(--amber);
}

.state-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--amber);
  animation: state-flash 2.4s steps(1, end) infinite;
}

@keyframes state-flash {
  0%,
  72% {
    opacity: 1;
  }
  73%,
  83% {
    opacity: 0.2;
  }
  84%,
  100% {
    opacity: 1;
  }
}

.launch-copy {
  position: absolute;
  z-index: 7;
  bottom: clamp(76px, 9vh, 112px);
  left: clamp(28px, 5vw, 92px);
  width: min(690px, 48vw);
}

.sequence-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--paper-dim);
  font-family: var(--font-mono);
  font-size: clamp(0.58rem, 0.75vw, 0.7rem);
  letter-spacing: 0.13em;
}

.sequence-label span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 22px;
  color: var(--ink);
  background: var(--amber);
  font-weight: 600;
}

.launch-copy h1 {
  max-width: 660px;
  margin: 0;
  font-family: var(--font-condensed);
  font-size: clamp(3.8rem, 6.8vw, 7.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.82;
  text-wrap: balance;
}

.launch-copy h1::after {
  content: "";
  display: block;
  width: min(360px, 64%);
  height: 3px;
  margin-top: 28px;
  background: var(--amber);
}

.launch-intro {
  max-width: 585px;
  margin: 22px 0 0;
  color: #d2d6d1;
  font-size: clamp(1rem, 1.25vw, 1.22rem);
  line-height: 1.52;
}

.launch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.action {
  min-height: 46px;
  padding: 0 18px;
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: 0;
  cursor: pointer;
}

.action-primary {
  color: var(--ink);
  background: var(--amber-bright);
  border: 1px solid var(--amber-bright);
}

.action-primary:hover {
  background: var(--paper);
  border-color: var(--paper);
}

.action-secondary {
  color: var(--paper);
  background: rgba(9, 17, 22, 0.72);
  border: 1px solid var(--rule-strong);
}

.action-secondary:hover {
  border-color: var(--paper);
}

.arrival-note {
  margin: 18px 0 0;
  color: var(--paper-dim);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.11em;
}

.arrival-note span {
  color: var(--amber-bright);
}

.scene-readout {
  position: absolute;
  z-index: 8;
  top: 126px;
  right: clamp(26px, 4vw, 72px);
  display: grid;
  width: clamp(195px, 15vw, 238px);
  background: rgba(9, 17, 22, 0.74);
  border-top: 2px solid var(--amber);
  border-bottom: 1px solid var(--rule-strong);
}

.scene-readout > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 34px;
  padding: 0 4px;
  border-bottom: 1px solid var(--rule);
}

.scene-readout > div:last-child {
  border-bottom: 0;
}

.scene-readout span,
.scene-readout strong {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
}

.scene-readout span {
  color: var(--paper-dim);
}

.scene-readout strong {
  color: var(--paper);
  font-weight: 500;
  text-align: right;
}

.scene-readout .event-readout.is-alert strong {
  color: #ff756f;
}

.airport-zone {
  --airport-x: 66%;
  --airport-y: 47%;
  position: absolute;
  z-index: 6;
  top: var(--airport-y);
  left: var(--airport-x);
  width: 0;
  height: 0;
  pointer-events: none;
}

.airport-code,
.airport-icao,
.airport-label,
.event-flag,
.ring-note {
  position: absolute;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.airport-code {
  top: -17px;
  left: 15px;
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.airport-icao {
  top: 2px;
  left: 15px;
  color: var(--amber-bright);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
}

.airport-label {
  top: 22px;
  left: 15px;
  color: var(--paper-dim);
  font-size: 0.51rem;
  letter-spacing: 0.08em;
}

.event-flag {
  top: -94px;
  left: 126px;
  padding: 8px 10px 7px 24px;
  color: #ff8b84;
  background: rgba(38, 10, 10, 0.86);
  border: 1px solid rgba(227, 74, 67, 0.58);
  font-size: 0.57rem;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 180ms linear, transform 180ms linear;
}

.event-flag::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 9px;
  width: 6px;
  height: 6px;
  background: var(--red);
}

.event-flag.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.ring-note {
  top: 128px;
  left: -112px;
  color: rgba(231, 235, 227, 0.62);
  font-size: 0.47rem;
  letter-spacing: 0.1em;
}

.legal-strip {
  position: absolute;
  z-index: 9;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 36px;
  padding: 0 clamp(26px, 4vw, 72px);
  color: #abb4b2;
  background: rgba(5, 10, 13, 0.92);
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.49rem;
  letter-spacing: 0.09em;
}

.legal-strip span + span::before {
  content: "/";
  margin: 0 12px;
  color: var(--amber);
}

.legal-location {
  margin-left: auto;
}

.information-dialog {
  width: min(900px, calc(100vw - 34px));
  max-height: min(720px, calc(100svh - 34px));
  overflow: auto;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-top: 5px solid var(--amber);
  border-radius: 0;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.information-dialog::backdrop {
  background: rgba(1, 7, 10, 0.82);
  backdrop-filter: blur(3px);
}

.information-dialog form {
  margin: 0;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 46px);
  border-bottom: 1px solid #b7bab3;
}

.dialog-header span,
.method-grid span,
.programme-state span {
  display: block;
  color: #647078;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.dialog-header h2 {
  max-width: 680px;
  margin: 10px 0 0;
  font-family: var(--font-condensed);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 0.95;
}

.dialog-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: transparent;
  border: 1px solid #9fa39e;
  font-size: 1.4rem;
  cursor: pointer;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.method-grid section {
  min-height: 210px;
  padding: 30px;
  border-right: 1px solid #b7bab3;
}

.method-grid section:last-child {
  border-right: 0;
}

.method-grid h3 {
  margin: 18px 0 10px;
  font-family: var(--font-condensed);
  font-size: 1.65rem;
  line-height: 1;
}

.method-grid p,
.receiver-layout p,
.receiver-layout li,
.dialog-notice {
  color: #46535a;
  font-size: 0.95rem;
  line-height: 1.48;
}

.dialog-notice {
  margin: 0;
  padding: 18px 30px;
  background: #e2e4dd;
  border-top: 1px solid #b7bab3;
}

.receiver-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.7fr);
  gap: 0;
}

.receiver-layout > div {
  padding: clamp(26px, 4vw, 44px);
}

.receiver-layout ul {
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.receiver-layout li {
  position: relative;
  padding: 9px 0 9px 22px;
  border-top: 1px solid #c2c5bd;
}

.receiver-layout li::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 2px;
  width: 7px;
  height: 7px;
  background: var(--amber);
}

.programme-state {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--paper);
  background: var(--ink-raised);
}

.programme-state span {
  color: #aab5b3;
}

.programme-state strong {
  margin-top: 12px;
  color: var(--amber-bright);
  font-family: var(--font-condensed);
  font-size: 2.4rem;
  line-height: 0.95;
}

.programme-state small {
  margin-top: 24px;
  color: #c6cdca;
  line-height: 1.5;
}

.noscript-notice {
  position: fixed;
  z-index: 50;
  right: 20px;
  bottom: 54px;
  max-width: 390px;
  padding: 14px;
  color: var(--ink);
  background: var(--paper);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .chart-wash {
    background:
      linear-gradient(0deg, rgba(9, 17, 22, 0.98) 0%, rgba(9, 17, 22, 0.82) 42%, rgba(9, 17, 22, 0.12) 72%),
      linear-gradient(90deg, rgba(9, 17, 22, 0.5), transparent 75%);
  }

  .launch-copy {
    right: 28px;
    bottom: 70px;
    width: auto;
  }

  .launch-copy h1 {
    max-width: 620px;
    font-size: clamp(3.6rem, 10vw, 6.6rem);
  }

  .launch-intro {
    max-width: 560px;
  }

  .scene-readout {
    top: 112px;
    right: 28px;
  }

  .airport-zone {
    --airport-x: 62%;
    --airport-y: 37%;
  }

  .legal-location {
    display: none;
  }
}

@media (max-width: 680px) {
  .holding-shell {
    min-height: 100dvh;
  }

  .frame-corners {
    inset: 8px;
  }

  .brand-bar {
    min-height: 76px;
    padding: 14px 18px;
  }

  .brand-name {
    font-size: 1.75rem;
  }

  .brand-descriptor {
    font-size: 0.43rem;
  }

  .network-state {
    min-width: auto;
    padding-left: 12px;
  }

  .network-state small {
    display: none;
  }

  .network-state strong {
    margin: 0;
    font-size: 0.58rem;
  }

  .scene-readout {
    top: 92px;
    right: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(300px, calc(100vw - 36px));
  }

  .scene-readout > div {
    display: block;
    min-height: 38px;
    padding: 6px 7px;
  }

  .scene-readout > div:nth-child(odd) {
    border-right: 1px solid var(--rule);
  }

  .scene-readout span,
  .scene-readout strong {
    display: block;
    text-align: left;
  }

  .scene-readout strong {
    margin-top: 3px;
  }

  .airport-zone {
    --airport-x: 57%;
    --airport-y: 34%;
  }

  .event-flag {
    top: -65px;
    left: -128px;
  }

  .ring-note {
    top: 92px;
    left: -104px;
  }

  .launch-copy {
    right: 20px;
    bottom: 70px;
    left: 20px;
  }

  .sequence-label {
    margin-bottom: 14px;
    font-size: 0.49rem;
  }

  .launch-copy h1 {
    max-width: 520px;
    font-size: clamp(3.25rem, 14vw, 5.5rem);
    line-height: 0.83;
  }

  .launch-copy h1::after {
    margin-top: 17px;
  }

  .launch-intro {
    margin-top: 15px;
    font-size: 0.94rem;
    line-height: 1.42;
  }

  .launch-actions {
    margin-top: 17px;
  }

  .action {
    min-height: 44px;
    padding: 0 13px;
    font-size: 0.66rem;
  }

  .arrival-note {
    margin-top: 12px;
    font-size: 0.5rem;
  }

  .legal-strip {
    min-height: 31px;
    padding: 0 18px;
    overflow: hidden;
    font-size: 0.43rem;
    white-space: nowrap;
  }

  .legal-strip span:nth-child(2) {
    display: none;
  }

  .method-grid,
  .receiver-layout {
    grid-template-columns: 1fr;
  }

  .method-grid section {
    min-height: auto;
    padding: 22px 26px;
    border-right: 0;
    border-bottom: 1px solid #b7bab3;
  }

  .dialog-header {
    padding: 24px;
  }

  .dialog-header h2 {
    font-size: 2.2rem;
  }

  .receiver-layout > div {
    padding: 26px;
  }
}

@media (max-height: 720px) and (min-width: 681px) {
  .brand-bar {
    min-height: 74px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .scene-readout {
    top: 92px;
  }

  .launch-copy {
    bottom: 57px;
  }

  .launch-copy h1 {
    font-size: clamp(3.4rem, 7vw, 5.6rem);
  }

  .sequence-label {
    margin-bottom: 14px;
  }

  .launch-intro {
    margin-top: 14px;
  }

  .launch-actions {
    margin-top: 18px;
  }
}

@media (max-height: 680px) and (max-width: 680px) {
  .scene-readout {
    display: none;
  }

  .airport-zone {
    --airport-y: 25%;
  }

  .launch-copy h1 {
    font-size: clamp(2.75rem, 12vw, 4rem);
  }

  .launch-intro {
    max-width: 520px;
    font-size: 0.84rem;
  }

  .launch-actions {
    margin-top: 12px;
  }

  .arrival-note {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
