/* ==========================================================================
   Capeway — Aviation, "First light"
   --------------------------------------------------------------------------
   A second service line with its own register. It opens on an airliner at
   twilight that the scroll flies overhead, climbs into a daylit sky, and
   comes back down to a flight plan.

   It keeps the site's chrome (masthead, index, footer, WhatsApp) and its
   two hard colour rules, which it turns out a flight deck already obeys.
   On an Airbus display, cyan is what the pilot can select and green is a
   state the aircraft reports. So here, as everywhere on Capeway, cyan is
   every action and sage is status only — the instrument readouts, the ticks
   on the checklist, the route. There is no orange on this page at all: the
   site's saffron is re-pointed to a cool cyan-white for the shared chrome.

   Type, chosen by the client from three set side by side: an editorial
   serif, the register of an airline's first-class advertising rather than
   a flight school's brochure. Instrument Serif for headlines, with its
   italic for the one phrase that matters; Geist for reading and controls;
   Geist Mono for every label and cockpit readout. Arabic headlines are
   Amiri, a Naskh with the same book-serif manners; Arabic reading stays in
   IBM Plex Sans Arabic like the rest of the site.

   Everything that moves is enhancement. Without JavaScript, or with
   reduced motion, the page is a plain, complete, readable page: the pins
   collapse, the scrubbed text is simply there and the checklist is ticked.
   ========================================================================== */

body.av {
  --display: "Instrument Serif", "Amiri", Georgia, "Times New Roman", serif;
  --mono:    "Geist Mono", "IBM Plex Sans Arabic", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --body:    "Geist", "IBM Plex Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* No orange here. The shared chrome reads these, so they are re-pointed
     rather than overridden rule by rule. */
  --saffron:   #6fc6d2;
  --saffron-l: #9ad9e2;
  --saffron-t: var(--cyan-t);
  --saffron-w: var(--cyan-w);

  --av-night:  #050d11;
  --av-deep:   #08161d;
  --av-panel:  #0a1418;
  --av-card:   #0e1a1f;
  --av-face:   #04090b;
  --av-mark:   #e7eef0;
  --av-hud:    #52b788;            /* sage: status, never a control */
  --av-hud-l:  #8fdcb5;
  --av-red:    #e5484d;
  --av-sky:    #e8f3f5;
  --av-sky-2:  #cfe5ea;
  --av-paper:  #f3f1eb;
  --av-ink:    #0b1b21;
  --av-ink-2:  #45585f;
  --av-line:   rgba(11, 27, 33, .14);
  --av-fog:    #9fb1b8;

  --av-ease:   cubic-bezier(.22, 1, .36, 1);
  --av-snap:   cubic-bezier(.32, .72, 0, 1);

  background: var(--av-night);
  color: #c9d6db;
  /* The serif comes in one weight and its italic. A bold, or a slanted
     Arabic, invented by the browser is worse than either. */
  font-synthesis: none;
}
body.av .nameplate__type { font-family: var(--body); font-weight: 600; }
body.av .index__name { font-weight: 400; letter-spacing: -.01em; }
body.av .foot__mail, body.av .foot__slogan { font-weight: 400; letter-spacing: -.01em; }

/* Arabic is joined script: tracking pulls the letters apart and capitals do
   not exist. Every tracked, uppercased label on this page stands down. */
html[lang="ar"] body.av :is(.av-label, .av-eyebrow, .av-tag, .av-onroute, .av-check__a,
  .av-check__top, .av-check__done, .av-cue,
  .av-cell > label, .av-cell > .av-legend, .av-route__next, .av-gauge__try, .av-plot__note, legend) {
  letter-spacing: 0; text-transform: none;
}

/* ------------------------------------------------------------- primitives */

.av-shell { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--bleed); }

.av-sr, .av-live .av-route__list {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.av-label {
  font-family: var(--mono); font-weight: 500; font-size: .72rem;
  letter-spacing: .18em; text-transform: uppercase; line-height: 1.3;
  margin: 0 0 1rem; color: inherit; opacity: .72;
}

.av-h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.9rem, 1.15rem + 5.3vw, 6.5rem);
  line-height: .95; letter-spacing: -.012em;
  color: #fff; margin: 0; text-wrap: balance;
}
.av-h1 em { font-style: italic; letter-spacing: -.02em; }
.av-h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.4rem, 1.2rem + 3.4vw, 4.8rem);
  line-height: 1; letter-spacing: -.012em;
  color: inherit; margin: 0 0 1.25rem; text-wrap: balance;
}
html[lang="ar"] .av-h1, html[lang="ar"] .av-h2, html[lang="ar"] .av-factor,
html[lang="ar"] .av-route__name, html[lang="ar"] .av-cleared h3 {
  font-family: "Amiri", "IBM Plex Sans Arabic", serif;
  font-style: normal; letter-spacing: 0; line-height: 1.4; font-weight: 700;
}

.av-lede { font-size: clamp(1.05rem, .98rem + .3vw, 1.2rem); line-height: 1.6; max-width: 46ch; margin: 0; color: inherit; opacity: .8; }

/* ---------------------------------------------------------------- buttons

   Fully round, with the icon carried in its own disc flush against the far
   edge. On hover the disc moves and the pill does not — the motion says
   where the button is going without the whole control jumping about. */
.av-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 58px; padding-block: 8px; padding-inline: 1.65rem 8px;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  font-family: var(--body); font-weight: 500; font-size: 1rem; line-height: 1.15;
  letter-spacing: -.01em; text-align: start;
  transition: transform .55s var(--av-ease), background-color .3s var(--av-ease),
              box-shadow .55s var(--av-ease), color .3s var(--av-ease);
  -webkit-tap-highlight-color: transparent;
}
.av-btn__ic {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .17);
  transition: transform .55s var(--av-ease), background-color .3s var(--av-ease);
}
.av-btn__ic svg { width: 16px; height: 16px; }
[dir="rtl"] .av-btn__ic svg.av-flip, [dir="rtl"] .av-btn--go .av-btn__ic svg,
[dir="rtl"] .av-btn--line .av-btn__ic svg, [dir="rtl"] .av-ask svg { transform: scaleX(-1); }
.av-btn:hover .av-btn__ic { transform: translateX(3px) scale(1.05); }
[dir="rtl"] .av-btn:hover .av-btn__ic { transform: translateX(-3px) scale(1.05); }
.av-btn[data-push]:hover .av-btn__ic { transform: translateY(-3px) scale(1.05); }
.av-btn:active { transform: scale(.98); }
.av-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 999px; }

.av-btn--go { background: var(--cyan); color: #fff; box-shadow: 0 14px 34px -14px rgba(2, 128, 144, .9), inset 0 1px 0 rgba(255, 255, 255, .22); }
.av-btn--go:hover { background: #0396a6; color: #fff; box-shadow: 0 18px 40px -14px rgba(3, 150, 166, .95), inset 0 1px 0 rgba(255, 255, 255, .25); }
.av-btn--glass { background: rgba(8, 20, 26, .42); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); }
.av-btn--glass:hover { background: rgba(255, 255, 255, .17); color: #fff; }
.av-btn--line { background: #fff; color: var(--av-ink); box-shadow: inset 0 0 0 1.5px rgba(11, 27, 33, .22); }
.av-btn--line .av-btn__ic { background: rgba(11, 27, 33, .07); }
.av-btn--line:hover { color: var(--av-ink); box-shadow: inset 0 0 0 1.5px var(--av-ink); }
.av-btn--sm { min-height: 48px; padding-inline: 1.3rem 6px; font-size: .95rem; }
.av-btn--sm .av-btn__ic { width: 36px; height: 36px; }
.av-btn--wide { width: 100%; }
.av-btn:not(:has(.av-btn__ic)) { padding-inline: 1.4rem; justify-content: center; }
.av-btn[disabled] { opacity: .7; cursor: progress; }

.av-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(1.4rem, 3.4vh, 2.2rem); }

/* ==========================================================================
   THE FLY-OVER
   ======================================================================== */

/* Author display rules beat the hidden attribute; on this page they never do. */
body.av [hidden] { display: none !important; }

/* Instruments are not text and do not mirror: a flight deck in Riyadh reads
   left to right like one anywhere else. */
.av-nd svg, .av-gauge__dial svg { direction: ltr; unicode-bidi: isolate; }

.av-takeoff {
  position: relative; height: 100svh; min-height: 560px;
  background: #0b1b24; margin-top: calc(var(--mast) * -1);
}
/* The pin only exists once the script is scrubbing the film. Without it
   the section is one screen tall, so a page without JavaScript has no dead
   scroll. */
.av-live .av-takeoff { height: calc(100svh + var(--pin, 230svh)); }
@media (max-width: 760px) { .av-live .av-takeoff { --pin: 190svh; } }
/* On a phone the pinned frame is as tall as the screen with the address bar
   gone (lvh), so nothing shows beneath it when the bar slides away. */
@supports (height: 100lvh) {
  .av-live .av-takeoff { height: calc(100lvh + var(--pin, 230svh)); }
  .av-live .av-takeoff__stick { height: 100lvh; }
}

.av-takeoff__stick {
  position: sticky; top: 0; height: 100svh; min-height: 560px;
  overflow: hidden; isolation: isolate;
}

.av-scene { position: absolute; inset: 0; z-index: 0; background: #12303d; }
.av-scene__still, .av-scene__film, .av-scene__run {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: 50% 50%;
}
/* The film sits over the still and is only shown once it has a frame to
   show, so a slow connection keeps the still rather than a black box. */
.av-scene__film, .av-scene__run { opacity: 0; transition: opacity .8s var(--av-ease); }
.av-film .av-scene__film, .av-film .av-scene__run { opacity: 1; }
.av-scene__run { display: none; }
.av-run .av-scene__run { display: block; }
@media (max-width: 760px) { .av-scene__still, .av-scene__film { object-position: 44% 50%; } }
/* An upright phone's still is the first of its tall frames, already
   cropped to the aircraft. */
@media (hover: none) and (pointer: coarse) and (orientation: portrait) {
  .av-scene__still { object-position: 50% 50%; }
}

/* Legibility for the masthead and the headline against an evening sky,
   and a vignette, as a lens would give it. */
.av-scene__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 12, 17, .66) 0%, rgba(4, 12, 17, .22) 30%, rgba(4, 12, 17, 0) 52%),
    radial-gradient(130% 95% at 50% 45%, rgba(4, 12, 17, 0) 55%, rgba(4, 12, 17, .45) 100%);
}
/* The empty sky at the end hands over to the sky of the next section. */
.av-scene__fade {
  position: absolute; inset: auto 0 0 0; height: 60%; pointer-events: none;
  background: linear-gradient(180deg, rgba(232, 243, 245, 0), var(--av-sky) 94%);
  opacity: var(--fade, 0);
}

.av-takeoff__copy {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-top: calc(var(--mast) + clamp(1.6rem, 7.2vh, 5.4rem));
  padding-inline: var(--bleed);
  opacity: calc(1 - var(--gone, 0));
  transform: translate3d(0, calc(var(--gone, 0) * -70px), 0);
  will-change: opacity, transform;
}
.av-takeoff__copy .av-h1 { max-width: 12.5em; text-shadow: 0 2px 30px rgba(4, 12, 17, .35); }
.av-eyebrow {
  display: inline-flex; align-items: center; gap: .7rem; margin: 0 0 1.35rem;
  font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}
.av-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--av-hud); box-shadow: 0 0 0 4px rgba(82, 183, 136, .18), 0 0 14px rgba(82, 183, 136, .8); }
.av-takeoff__sub {
  margin: 1.15rem 0 0; font-size: clamp(1rem, .94rem + .35vw, 1.2rem);
  color: rgba(232, 242, 245, .9); max-width: 62ch;
}

/* The client's description, said in the empty sky the aircraft leaves. */
.av-takeoff__caption {
  position: absolute; z-index: 3; left: 50%; top: 30%;
  width: min(44rem, calc(100% - 2 * var(--bleed)));
  margin: 0; text-align: center; color: #fff;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.45rem, 1rem + 1.55vw, 2.3rem); line-height: 1.2; letter-spacing: -.005em;
  text-shadow: 0 2px 24px rgba(4, 12, 17, .35);
  opacity: var(--cap, 0);
  transform: translate3d(-50%, calc((1 - var(--cap, 0)) * 26px), 0);
  pointer-events: none;
}
html[lang="ar"] .av-takeoff__caption { font-family: "Amiri", serif; font-weight: 400; line-height: 1.7; }
/* Without the fly-over there is no empty sky to say it in: it goes under
   the headline instead, as an ordinary paragraph. */
body:not(.av-live) .av-takeoff__caption {
  position: relative; left: auto; top: auto; transform: none; opacity: 1;
  margin: 1.6rem auto 0; color: rgba(232, 242, 245, .92); font-family: var(--body);
  font-size: 1rem; font-weight: 400; line-height: 1.6; max-width: 58ch; z-index: 3; pointer-events: auto;
  padding: 1rem 1.25rem; border-radius: 18px; text-shadow: none;
  background: rgba(4, 12, 17, .66); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
body:not(.av-live) .av-takeoff__stick { overflow: visible; }
body:not(.av-live) .av-cue, body:not(.av-live) [data-watch] { display: none; }

.av-cue {
  position: absolute; z-index: 3; left: 50%; bottom: clamp(1.1rem, 3.6vh, 2.4rem); transform: translateX(-50%);
  margin: 0; display: flex; flex-direction: column; align-items: center; gap: .7rem;
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255, 255, 255, .7); opacity: calc(1 - var(--f, 0) * 20);
  pointer-events: none;
}
.av-cue i { position: relative; width: 1px; height: 38px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.av-cue i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: #fff; animation: av-drop 1.9s var(--av-ease) infinite;
}
@keyframes av-drop { to { top: 100%; } }

@media (max-width: 600px) {
  .av-acts { width: 100%; flex-direction: column; }
  .av-acts .av-btn { width: 100%; }
  .av-cue { display: none; }
}

/* ==========================================================================
   ABOVE THE CLOUD
   ======================================================================== */

.av-why {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--av-sky) 0%, #f4f9fa 40%, #fbfdfd 100%);
  color: var(--av-ink);
  padding-block: clamp(4.5rem, 9vw, 8rem) clamp(5rem, 12vw, 10.5rem);
}
.av-why__sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.av-cloud {
  position: absolute; left: -12%; right: -12%; height: clamp(180px, 30vw, 420px);
  background-repeat: repeat-x; background-size: auto 100%; background-position: 0 0;
  will-change: transform;
}
.av-cloud--a { top: -2%; opacity: .95; }
.av-cloud--b { top: 34%; opacity: .55; }
.av-cloud--c { bottom: -6%; opacity: .8; }

.av-why__intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 6rem); align-items: start; }
.av-why__intro .av-h2 { max-width: 12em; }
.av-why__lede {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(1.8rem, 1.1rem + 2.4vw, 3.3rem); line-height: 1.12; letter-spacing: -.008em;
  color: var(--av-ink);
}
html[lang="ar"] .av-why__lede { font-family: "Amiri", serif; font-weight: 400; line-height: 1.6; letter-spacing: 0; }
.av-why__lede .w { transition: opacity .25s linear; }

.av-why__by { margin-top: clamp(4rem, 10vw, 8.5rem); color: var(--av-ink-2); opacity: 1; }
.av-factors { list-style: none; margin: 0; padding: 0; }
.av-factor {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.9rem, .7rem + 7.6vw, 8.8rem); line-height: .98; letter-spacing: -.015em;
  padding-block: .04em;
}
.av-factor:nth-child(even) { padding-inline-start: clamp(1.5rem, 13vw, 15rem); font-style: italic; }
html[lang="ar"] .av-factor { font-style: normal; line-height: 1.45; }
.av-factor span {
  --fill: 1;
  display: inline-block;
  background-image: linear-gradient(90deg, var(--av-ink) 0 50%, rgba(11, 27, 33, .1) 50% 100%);
  background-size: 200% 100%;
  background-position: calc((1 - var(--fill)) * 100%) 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  -webkit-text-stroke: 1px rgba(11, 27, 33, .2);
}
[dir="rtl"] .av-factor span { background-image: linear-gradient(270deg, var(--av-ink) 0 50%, rgba(11, 27, 33, .1) 50% 100%); }

@media (max-width: 860px) {
  .av-why__intro { grid-template-columns: 1fr; }
  .av-factor:nth-child(even) { padding-inline-start: 1.2rem; }
}

/* ==========================================================================
   THE PANEL
   ======================================================================== */

.av-panel {
  position: relative; isolation: isolate;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(43, 98, 112, .28), transparent 70%),
    linear-gradient(180deg, #0c181d 0%, var(--av-panel) 40%, #060d10 100%);
  color: #c9d6db;
  padding-block: clamp(5rem, 11vw, 10rem);
}
/* The glareshield: the lip of the panel catching the light from above. */
.av-panel::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
}
.av-panel__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 2rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.av-panel__head .av-h2 { color: #fff; margin: 0; }
.av-panel__head .av-lede { justify-self: end; }
@media (max-width: 860px) { .av-panel__head { grid-template-columns: 1fr; } .av-panel__head .av-lede { justify-self: start; } }

/* -- plot your route */
.av-plot {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 1.2rem clamp(1.5rem, 3vw, 3rem);
  align-items: end; padding: clamp(1.1rem, 2.4vw, 1.6rem) clamp(1.1rem, 2.6vw, 1.9rem);
  border-radius: 24px; margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .02));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.av-plot .av-label { margin-bottom: .7rem; font-size: .6875rem; }
.av-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.av-chip {
  min-height: 44px; padding: 0 1.1rem; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--body); font-weight: 500; font-size: .95rem; color: rgba(255, 255, 255, .86);
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  transition: background-color .3s var(--av-ease), box-shadow .3s var(--av-ease), color .3s, transform .4s var(--av-ease);
}
.av-chip:hover { background: rgba(255, 255, 255, .11); }
.av-chip:active { transform: scale(.97); }
.av-chip[aria-pressed="true"] { background: var(--cyan); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 10px 26px -12px rgba(2, 128, 144, .9); }
.av-chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.av-plot__out { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; justify-content: flex-end; min-width: 0; }
.av-plot__out .av-label { width: 100%; text-align: end; margin: 0; }
.av-plot__codes { margin: 0; display: flex; align-items: center; gap: .55rem; font-family: var(--mono); font-weight: 600; font-size: 1.05rem; color: var(--av-hud-l); letter-spacing: .08em; min-height: 48px; }
.av-plot__codes b { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; }
.av-plot__codes b + b::before { content: ""; width: 14px; height: 1.5px; background: rgba(143, 220, 181, .5); }
.av-plot__wait { font-family: var(--body); font-weight: 400; font-size: .95rem; letter-spacing: 0; color: rgba(255, 255, 255, .5); }
.av-plot__note { width: 100%; text-align: end; margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .5); }
@media (max-width: 1100px) {
  .av-plot { grid-template-columns: 1fr 1fr; }
  .av-plot__out { grid-column: 1 / -1; justify-content: flex-start; }
  .av-plot__out .av-label, .av-plot__note { text-align: start; }
}
@media (max-width: 640px) { .av-plot { grid-template-columns: 1fr; } }

/* -- the four instruments */
.av-gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 1.4vw, 1.25rem); }
@media (max-width: 1180px) { .av-gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* On a phone the panel is a row you swipe along, one instrument at a time
   with the next one showing at the edge, rather than four screens of
   stacked dials. */
@media (max-width: 620px) {
  .av-gauges {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--bleed) * -1); padding: 4px var(--bleed) 12px; gap: 12px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .av-gauges::-webkit-scrollbar { display: none; }
  .av-gauge { flex: 0 0 82%; scroll-snap-align: center; }
}

.av-gauge {
  position: relative; display: flex; flex-direction: column;
  padding: 6px; border-radius: 28px;
  background: rgba(255, 255, 255, .035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  transition: opacity .6s var(--av-ease), transform .6s var(--av-ease), filter .6s var(--av-ease), box-shadow .6s var(--av-ease);
}
.av-gauge > * { position: relative; }
.av-gauge__dial {
  aspect-ratio: 1; width: 100%; border-radius: 22px 22px 8px 8px; overflow: hidden;
  background: linear-gradient(160deg, #18272d, #0a1317 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 -20px 40px rgba(0, 0, 0, .35);
  display: grid; place-items: center;
}
.av-gauge__dial svg { width: 100%; height: 100%; display: block; }
.av-gauge--fly .av-gauge__dial { cursor: crosshair; touch-action: none; }
.av-gauge__text {
  flex: 1; display: flex; flex-direction: column; gap: .55rem;
  padding: 1.15rem 1.1rem 1.2rem; border-radius: 8px 8px 22px 22px;
  background: linear-gradient(180deg, #0f1c21, #0b161a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.av-gauge__text h3 { color: #fff; font-family: var(--body); font-weight: 500; font-size: 1.1rem; letter-spacing: -.015em; margin: 0; line-height: 1.25; }
.av-gauge__text p { margin: 0; font-size: .95rem; line-height: 1.55; color: rgba(214, 226, 231, .74); }
.av-gauge__kind { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.av-code {
  font-family: var(--display); font-weight: 400; font-size: 2.7rem; line-height: .9;
  letter-spacing: -.01em; color: #fff;
}
.av-tag, .av-onroute {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase;
  padding: .32rem .6rem; border-radius: 999px; line-height: 1;
}
.av-tag { color: rgba(255, 255, 255, .62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.av-onroute {
  display: none; color: #082015; background: var(--av-hud);
}
.av-gauge.is-on .av-onroute { display: inline-flex; }
.av-gauge.is-on { box-shadow: inset 0 0 0 1px rgba(82, 183, 136, .55), 0 0 0 1px rgba(82, 183, 136, .12), 0 30px 70px -40px rgba(82, 183, 136, .55); }
.av-gauge.is-off { opacity: .36; filter: saturate(.3); transform: scale(.975); }
.av-gauge__try { font-family: var(--mono); font-size: .6875rem !important; letter-spacing: .14em; text-transform: uppercase; color: var(--av-hud-l) !important; }
.av-ask {
  margin-top: auto; padding-top: .5rem; align-self: flex-start;
  display: inline-flex; align-items: center; gap: .55rem; text-decoration: none;
  font-weight: 500; font-size: .95rem; color: #43c3d2; position: relative;
}
.av-ask svg { width: 14px; height: 14px; transition: transform .45s var(--av-ease); }
.av-ask::after { content: ""; position: absolute; left: 0; right: 22px; bottom: -3px; height: 1.5px; background: currentColor; opacity: .5; transform-origin: left; transition: transform .45s var(--av-ease), opacity .3s; }
[dir="rtl"] .av-ask::after { left: 22px; right: 0; transform-origin: right; }
.av-ask:hover { color: #6fd7e3; }
.av-ask:hover::after { opacity: 1; }
.av-ask:hover svg { transform: translateX(4px); }
[dir="rtl"] .av-ask:hover svg { transform: scaleX(-1) translateX(4px); }

/* ==========================================================================
   THE CHECKLIST
   ======================================================================== */

.av-help {
  position: relative;
  background: linear-gradient(180deg, #060d10 0%, #0a1519 100%);
  color: #c9d6db; padding-block: clamp(5rem, 11vw, 10rem);
}
.av-help__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.av-help__head { position: sticky; top: calc(var(--mast) + 3rem); }
.av-help__head .av-h2 { color: #fff; }
@media (max-width: 900px) { .av-help__grid { grid-template-columns: 1fr; } .av-help__head { position: static; } }

.av-check {
  position: relative; color: var(--av-ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 40%),
    var(--av-paper);
  border-radius: 16px;
  padding: 2.6rem clamp(1.1rem, 3.4vw, 2.6rem) 1.8rem;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .25),
    inset 0 1px 0 rgba(255, 255, 255, .8),
    0 50px 90px -40px rgba(0, 0, 0, .95),
    0 20px 40px -20px rgba(0, 0, 0, .6);
  transform: rotate(-1.1deg);
}
/* The laminate. */
.av-check::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(118deg, transparent 30%, rgba(255, 255, 255, .55) 46%, transparent 58%);
  mix-blend-mode: soft-light; opacity: .7;
}
.av-check__clip {
  position: absolute; left: 50%; top: -15px; width: 132px; height: 30px; margin-left: -66px; border-radius: 8px;
  background: linear-gradient(180deg, #b7c2c6, #7d898e 55%, #5b666b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 6px 12px rgba(0, 0, 0, .45);
}
.av-check__clip::after { content: ""; position: absolute; left: 22px; right: 22px; top: 12px; height: 5px; border-radius: 3px; background: rgba(0, 0, 0, .35); }
.av-check__top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  margin: 0 0 .6rem; padding-bottom: .85rem; border-bottom: 2.5px solid var(--av-ink);
  font-family: var(--mono); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
}
.av-check__top b { font-weight: 600; letter-spacing: .32em; }
.av-check__list { list-style: none; margin: 0; padding: 0; }
.av-check__item {
  display: grid; grid-template-columns: 24px minmax(0, auto) minmax(14px, 1fr) auto;
  align-items: end; gap: .8rem; padding: 1.05rem 0;
  border-bottom: 1px dashed rgba(11, 27, 33, .2);
}
.av-check__box {
  width: 22px; height: 22px; border-radius: 5px; align-self: center;
  box-shadow: inset 0 0 0 1.5px rgba(11, 27, 33, .55);
  display: grid; place-items: center;
}
.av-check__box svg { width: 16px; height: 16px; fill: none; stroke: var(--sage-d); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 0; }
.av-check__q { font-weight: 500; font-size: 1.04rem; line-height: 1.38; }
.av-check__dots { align-self: end; height: 0; border-bottom: 2.5px dotted rgba(11, 27, 33, .32); margin-bottom: .42em; }
.av-check__a {
  font-family: var(--mono); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sage-d); white-space: nowrap; line-height: 1.38;
}
.av-check__done {
  margin: 1.2rem 0 0; text-align: center;
  font-family: var(--mono); font-weight: 600; font-size: .76rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--sage-d);
}
.av-check__done span { display: inline-flex; align-items: center; gap: .7rem; }
.av-check__done span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--av-hud); box-shadow: 0 0 0 4px rgba(82, 183, 136, .2); }

/* Called and answered: only when the script is reading it. */
.av-live .av-check__item:not(.is-done) .av-check__box svg { stroke-dashoffset: 16; }
.av-live .av-check__item .av-check__box svg { transition: stroke-dashoffset .5s var(--av-ease) .15s; }
.av-live .av-check__item:not(.is-done) .av-check__a { clip-path: inset(0 100% 0 0); }
[dir="rtl"].av-live .av-check__item:not(.is-done) .av-check__a,
.av-live[dir="rtl"] .av-check__item:not(.is-done) .av-check__a { clip-path: inset(0 0 0 100%); }
.av-live .av-check__item .av-check__a { transition: clip-path .7s steps(9, end) .35s; }
.av-live .av-check__item:not(.is-done) .av-check__q { opacity: .5; }
.av-live .av-check__item .av-check__q { transition: opacity .5s; }
.av-live .av-check:not(.is-done) .av-check__done { opacity: 0; transform: translateY(6px); }
.av-live .av-check__done { transition: opacity .6s var(--av-ease) .5s, transform .6s var(--av-ease) .5s; }

@media (max-width: 560px) {
  .av-check { transform: none; }
  .av-check__item { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .av-check__dots { display: none; }
  .av-check__q { font-size: .98rem; }
  .av-check__a { font-size: .72rem; letter-spacing: .1em; }
}

/* ==========================================================================
   THE ROUTE
   ======================================================================== */

.av-route { position: relative; background: #040a0d; color: #c9d6db; }
.av-live .av-route { height: calc(100svh + var(--route-pin, 380svh)); }
.av-route__stick { padding-block: clamp(5rem, 10vw, 8rem); }
.av-live .av-route__stick {
  position: sticky; top: 0; height: 100svh; min-height: 600px;
  display: flex; align-items: center; padding-block: calc(var(--mast) + 1rem) 1.5rem;
  overflow: hidden;
}
.av-route__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.av-route__read .av-h2 { color: #fff; }
.av-route__now { margin-top: clamp(1.5rem, 5vh, 3.5rem); }
body:not(.av-live) .av-route__now { display: none; }
.av-route__now .av-label { color: var(--av-hud-l); opacity: 1; }
.av-route__name {
  margin: 0; min-height: 2.05em;
  font-family: var(--display); font-weight: 400; font-style: italic;
  font-size: clamp(2.6rem, 1.2rem + 3.9vw, 5.2rem); line-height: 1; letter-spacing: -.015em; color: #fff;
}
.av-route__name.is-swap { animation: av-swap .7s var(--av-ease) both; }
@keyframes av-swap { from { opacity: 0; transform: translateY(22px); } }
.av-route__next { margin: 1rem 0 0; font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.av-route__bar { list-style: none; display: flex; gap: 6px; padding: 0; margin: 1.8rem 0 0; max-width: 26rem; }
.av-route__bar li { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .14); transition: background-color .4s; }
.av-route__bar li.is-done { background: var(--av-hud); }
.av-route__bar li.is-now { background: #fff; }
.av-route__list { margin: 1.5rem 0 0; padding-inline-start: 1.4rem; display: grid; gap: .6rem; font-size: 1.1rem; color: #fff; }
.av-route__list li::marker { font-family: var(--mono); color: var(--av-hud); }

.av-nd { position: relative; justify-self: end; width: min(100%, 74svh, 660px); aspect-ratio: 1; }
.av-nd svg { width: 100%; height: 100%; display: block; }

@media (max-width: 900px) {
  .av-route__grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .av-live .av-route__grid { grid-template-rows: auto auto; }
  .av-nd { justify-self: center; width: min(100%, 50svh, 520px); order: -1; }
  .av-route__now { margin-top: .8rem; }
  .av-route__read .av-h2 { font-size: 1.6rem; margin-bottom: .2rem; }
  .av-route__name { min-height: 0; font-size: clamp(1.7rem, 1rem + 4vw, 2.6rem); }
  .av-live .av-route__stick { padding-block: calc(var(--mast) + .5rem) 1rem; }
}

/* ==========================================================================
   THE BRIEFING
   ======================================================================== */

.av-faq { background: #eef3f4; color: var(--av-ink); padding-block: clamp(5rem, 10vw, 9rem); }
.av-faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.av-faq__grid .av-h2 { position: sticky; top: calc(var(--mast) + 3rem); }
@media (max-width: 860px) { .av-faq__grid { grid-template-columns: 1fr; } .av-faq__grid .av-h2 { position: static; } }
.av-faq__list { border-top: 1.5px solid var(--av-ink); }
.av-q { border-bottom: 1px solid var(--av-line); }
.av-q h3 { margin: 0; }
.av-q button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.55rem 0; border: 0; background: none; cursor: pointer; text-align: start; color: var(--av-ink);
  font-family: var(--display); font-weight: 400; font-size: clamp(1.4rem, 1.1rem + .95vw, 2.05rem);
  line-height: 1.15; letter-spacing: -.005em;
}
html[lang="ar"] .av-q button { font-family: "Amiri", serif; font-weight: 700; letter-spacing: 0; line-height: 1.5; }
.av-q button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 6px; }
.av-q i {
  position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(11, 27, 33, .2);
  transition: background-color .35s var(--av-ease), box-shadow .35s, transform .55s var(--av-ease);
}
.av-q i::before, .av-q i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.8px; margin: -.9px 0 0 -7px;
  background: currentColor; border-radius: 1px; transition: transform .55s var(--av-ease);
}
.av-q i::after { transform: rotate(90deg); }
.av-q button:hover i { box-shadow: inset 0 0 0 1.5px var(--av-ink); }
.av-q button[aria-expanded="true"] i { background: var(--cyan); color: #fff; box-shadow: none; transform: rotate(135deg); }
.av-q__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--av-ease); }
.av-q__a > div { overflow: hidden; }
.av-q.is-open .av-q__a { grid-template-rows: 1fr; }
.av-q__a p { margin: 0; padding: 0 3.5rem 1.7rem 0; max-width: 60ch; color: var(--av-ink-2); font-size: 1.05rem; line-height: 1.65; }
[dir="rtl"] .av-q__a p { padding: 0 0 1.7rem 3.5rem; }

/* ==========================================================================
   THE FLIGHT PLAN
   ======================================================================== */

.av-plan {
  background: linear-gradient(180deg, #eef3f4 0%, #e3eaec 100%);
  color: var(--av-ink); padding-block: clamp(2rem, 4vw, 3rem) clamp(5rem, 10vw, 9rem);
}
.av-plan__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.av-plan__head { position: sticky; top: calc(var(--mast) + 3rem); }
.av-plan__head .av-label { color: var(--cyan-t); opacity: 1; }
@media (max-width: 900px) { .av-plan__grid { grid-template-columns: 1fr; } .av-plan__head { position: static; } }

.av-plan__card {
  position: relative; border-radius: 26px; padding: 8px;
  background: rgba(255, 255, 255, .55);
  box-shadow: inset 0 0 0 1px rgba(11, 27, 33, .08), 0 50px 90px -50px rgba(11, 27, 33, .45);
}
.av-fpl, .av-cleared { background: #fff; border-radius: 20px; padding: clamp(1rem, 2.4vw, 1.7rem); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 0 0 1px rgba(11, 27, 33, .06); }
.av-fpl::before {
  content: "FPL \2014  CAPEWAY AVIATION"; display: block; margin: 0 0 1rem;
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .26em; color: var(--av-ink-2);
}
.av-fpl__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(11, 27, 33, .16); border: 1.5px solid var(--av-ink); border-radius: 14px; overflow: hidden;
}
.av-cell { position: relative; background: #fff; padding: .8rem 1rem .85rem; min-width: 0; margin: 0; border: 0; transition: background-color .25s; }
.av-cell--wide { grid-column: 1 / -1; }
.av-cell:focus-within { background: #f1f9fa; }
.av-cell > label, .av-cell > .av-legend {
  display: block; margin: 0 0 .3rem; padding: 0; float: none;
  font-family: var(--mono); font-weight: 500; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--av-ink-2); line-height: 1.4;
}
.av-cell .av-legend small { font-size: inherit; letter-spacing: inherit; opacity: .7; margin-inline-start: .5rem; text-transform: none; }
.av-cell input:not([type="checkbox"]):not([type="radio"]), .av-cell select {
  width: 100%; border: 0; outline: 0; background: transparent; padding: .15rem 0;
  font-family: var(--body); font-size: 1.08rem; font-weight: 500; color: var(--av-ink); line-height: 1.45;
  -webkit-appearance: none; appearance: none; border-radius: 0;
}
.av-cell select {
  cursor: pointer; padding-inline-end: 1.6rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%230b1b21' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right center / 16px;
}
[dir="rtl"] .av-cell select { background-position: left center; }
.av-cell input::placeholder { color: rgba(11, 27, 33, .35); }
.av-cell.is-bad { background: #fff3f3; }
.av-cell.is-bad > label, .av-cell.is-bad > .av-legend { color: #b4232a; }
.av-err { margin: .35rem 0 0; font-size: .85rem; color: #b4232a; line-height: 1.4; }

.av-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: .45rem; }
@media (max-width: 560px) { .av-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .av-fpl__grid { grid-template-columns: 1fr; } }
.av-tile {
  position: relative; display: flex; flex-direction: column; gap: .3rem; cursor: pointer;
  padding: .9rem 1rem 1rem; border-radius: 14px; margin: 0;
  background: #f3f6f6; box-shadow: inset 0 0 0 1.5px rgba(11, 27, 33, .1);
  transition: background-color .3s var(--av-ease), box-shadow .3s var(--av-ease), transform .4s var(--av-ease), color .3s;
}
.av-tile:hover { box-shadow: inset 0 0 0 1.5px rgba(11, 27, 33, .35); }
.av-tile:active { transform: scale(.98); }
.av-tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.av-tile__code { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: .9; color: var(--av-ink); letter-spacing: -.01em; }
.av-tile__name { font-family: var(--body); font-size: .82rem; line-height: 1.3; color: var(--av-ink-2); }
.av-tile:has(input:checked) { background: var(--cyan); box-shadow: inset 0 0 0 1.5px var(--cyan), 0 12px 26px -14px rgba(2, 128, 144, .9); }
.av-tile:has(input:checked) .av-tile__code, .av-tile:has(input:checked) .av-tile__name { color: #fff; }
.av-tile:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }
.av-tile.is-pinged { animation: av-ping .9s var(--av-ease); }
@keyframes av-ping { 30% { transform: scale(1.04); } }

.av-seg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .45rem; }
.av-seg label {
  position: relative; margin: 0; cursor: pointer;
}
.av-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.av-seg span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 1rem; border-radius: 999px;
  font-size: .95rem; font-weight: 500; color: var(--av-ink);
  box-shadow: inset 0 0 0 1.5px rgba(11, 27, 33, .14); transition: background-color .3s, color .3s, box-shadow .3s;
}
.av-seg label:hover span { box-shadow: inset 0 0 0 1.5px rgba(11, 27, 33, .35); }
.av-seg input:checked + span { background: var(--cyan); color: #fff; box-shadow: none; }
.av-seg input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }

.av-cell--agree { display: flex; align-items: flex-start; gap: .8rem; padding-block: 1rem; }
.av-cell--agree label {
  margin: 0; font-family: var(--body); font-size: .92rem; letter-spacing: 0; text-transform: none; color: var(--av-ink-2); line-height: 1.5;
}
.av-cell--agree input {
  flex: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 6px; cursor: pointer;
  -webkit-appearance: none; appearance: none; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(11, 27, 33, .4);
  display: grid; place-items: center; transition: background-color .25s;
}
.av-cell--agree input:checked { background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 4.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: none; }
.av-cell--agree input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.av-cell--agree .av-err { flex-basis: 100%; }

.av-fpl > .av-btn { margin-top: 1rem; }
.av-fpl__failed { margin-top: 1rem; padding: 1.1rem 1.25rem; border-radius: 14px; background: #fff4f4; box-shadow: inset 0 0 0 1px #f0c9cb; }
.av-fpl__failed h3 { font-family: var(--body); font-weight: 500; font-size: 1.05rem; color: #8f1d23; margin: 0 0 .3rem; }
.av-fpl__failed p { margin: 0 0 .9rem; font-size: .95rem; color: var(--av-ink-2); }

.av-cleared { text-align: start; }
.av-cleared .av-label { color: var(--sage-d); opacity: 1; }
.av-cleared h3 { font-family: var(--display); font-weight: 400; font-size: clamp(2.3rem, 1.4rem + 2.4vw, 3.3rem); letter-spacing: -.012em; color: var(--av-ink); margin: 0 0 .6rem; }
.av-cleared > p { margin: 0 0 1.4rem; max-width: 46ch; color: var(--av-ink-2); }
.av-cleared:focus { outline: none; }
/* The answer comes back as a strip, the slip a controller writes a flight
   on — departures are printed on blue. */
.av-strip {
  display: grid; grid-template-columns: auto minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .8fr);
  border: 1.5px solid var(--av-ink); border-radius: 10px; overflow: hidden; background: #e4f1f4;
  animation: av-print .9s var(--av-ease) both .2s;
}
@keyframes av-print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.av-strip > div { padding: .7rem .9rem; border-inline-start: 1px solid rgba(11, 27, 33, .25); min-width: 0; }
.av-strip > div:first-child { border: 0; background: var(--av-ink); color: #fff; display: grid; place-items: center; padding-inline: 1rem; }
.av-strip small { display: block; font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--av-ink-2); margin-bottom: .2rem; }
.av-strip b { display: block; font-family: var(--mono); font-weight: 600; font-size: 1rem; color: var(--av-ink); overflow-wrap: anywhere; }
.av-strip > div:first-child b { color: #fff; letter-spacing: .1em; }
.av-strip .is-ok { color: var(--sage-d); }
@media (max-width: 560px) {
  .av-strip { grid-template-columns: 1fr 1fr; }
  .av-strip > div:first-child { grid-column: 1 / -1; }
  .av-strip > div:nth-child(4) { grid-column: 1 / -1; border-top: 1px solid rgba(11, 27, 33, .25); border-inline-start: 0; }
}

/* ==========================================================================
   THE ALTITUDE TAPE
   ======================================================================== */

.av-alt {
  position: fixed; z-index: 40; top: 50%; inset-inline-end: 18px;
  width: 64px; height: 270px; transform: translateY(-50%);
  border-radius: 16px; background: rgba(4, 10, 13, .84);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 20px 40px -20px rgba(0, 0, 0, .6);
  color: var(--av-hud); font-family: var(--mono);
  display: none; opacity: 0; pointer-events: none; transition: opacity .5s var(--av-ease);
}
@media (min-width: 1440px) { .av-live .av-alt { display: block; } }
.av-alt.is-on { opacity: 1; }
.av-alt__name { position: absolute; top: 10px; left: 0; right: 0; text-align: center; font-size: .6875rem; letter-spacing: .24em; color: rgba(255, 255, 255, .55); }
.av-alt__window {
  position: absolute; inset: 30px 0 10px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}
.av-alt__scale { position: absolute; inset: 0; }
.av-alt__scale span { position: absolute; left: 0; right: 10px; height: 0; display: flex; align-items: center; justify-content: flex-end; gap: 5px; font-size: .6875rem; line-height: 0; color: rgba(143, 220, 181, .7); }
.av-alt__scale span::after { content: ""; width: 8px; height: 1.5px; background: currentColor; }
.av-alt__scale span.is-minor::after { width: 4px; }
.av-alt__read {
  position: absolute; left: 5px; right: 5px; top: calc(50% + 10px); transform: translateY(-50%);
  height: 30px; display: grid; place-items: center; border-radius: 6px;
  background: #02080a; border: 1.5px solid var(--av-hud);
  font-size: .82rem; font-weight: 600; color: var(--av-hud-l); font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   REVEALS, GRAIN, CALM
   ======================================================================== */

.av-live [data-av-reveal] {
  opacity: 0; transform: translate3d(0, 28px, 0);
  transition: opacity .8s var(--av-ease), transform .9s var(--av-ease);
  transition-delay: var(--d, 0ms);
}
.av-live [data-av-reveal].is-in { opacity: 1; transform: none; }

/* The shared chrome on this page. */
body.av .foot { background: #03080b; }
body.av .wa { box-shadow: 0 12px 30px rgba(2, 8, 10, .45); }
body.av .index__plate img[data-shot="aviation"] { object-position: 50% 62%; }

@media (prefers-reduced-motion: reduce) {
  .av-cue i::after, .av-strip { animation: none !important; }
  .av-live [data-av-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ?frame=0.3 — a still of the fly-over with nothing over it, for stills
   and for filming. */
.av-frame .av-takeoff__copy, .av-frame .av-cue, .av-frame .av-takeoff__caption,
.av-frame .masthead, .av-frame .wa { visibility: hidden; }
.av-frame .av-scene__film { transition: none; }
