/* A320 Knowledge — site styles.
   Layout: one strict column grid with hairline rules, panel-placard labels in
   B612 (the face Airbus drew for its cockpit screens) and the logo's Montserrat
   for everything you read. Colour stays monochrome, like the logo; the only
   colours are the cockpit's own, used for what they mean on the flight deck:
   green for correct and normal, amber for caution, red for a warning. */

:root {
  /* dark first: the logo's charcoal ground */
  --bg: #121315;
  --bg-2: #18191C;
  --surface: #1E2024;
  --surface-2: #26292E;
  --line: rgba(236, 238, 242, 0.09);
  --line-strong: rgba(236, 238, 242, 0.18);
  --fg: #ECEEF1;
  --fg-2: #C3C7CE;
  --muted: #8B9099;
  --steel: #A9BDCD;          /* the overhead panel's blue-grey, lifted for text */
  --steel-ink: #6E8CA6;
  --invert-bg: #ECEEF1;
  --invert-fg: #121315;
  --ok: #3FD27A;
  --ok-soft: rgba(63, 210, 122, 0.12);
  --caution: #F2A53A;
  --caution-soft: rgba(242, 165, 58, 0.12);
  --warn: #F0555A;
  --warn-soft: rgba(240, 85, 90, 0.12);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --scrim: rgba(18, 19, 21, 0.82);
  --mark-ink: #A6A6A8;       /* the logo's own light grey linework */

  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  /* one typeface across the site: Montserrat for text, headings, labels and figures */
  --font-read: var(--font-body);
  --font-data: var(--font-body);
  --font-cockpit: var(--font-body);
  /* B612 Mono only where the page imitates a cockpit screen, and for codes */
  --font-screen: "B612 Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.3rem + 3.6vw, 4rem);
  --step-5: clamp(2.75rem, 1.2rem + 6vw, 5.75rem);

  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1200px;
  --header-h: 64px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F2F2F1;
    --bg-2: #EAEAE8;
    --surface: #FFFFFF;
    --surface-2: #F5F5F4;
    --line: rgba(20, 22, 26, 0.10);
    --line-strong: rgba(20, 22, 26, 0.2);
    --fg: #17181B;
    --fg-2: #3A3D44;
    --muted: #6A6F78;
    --steel: #3F5B72;
    --steel-ink: #3F5B72;
    --invert-bg: #17181B;
    --invert-fg: #F2F2F1;
    --ok: #0E8A44;
    --ok-soft: rgba(14, 138, 68, 0.10);
    --caution: #A9620A;
    --caution-soft: rgba(169, 98, 10, 0.10);
    --warn: #C42B31;
    --warn-soft: rgba(196, 43, 49, 0.09);
    --shadow: 0 20px 50px rgba(20, 22, 26, 0.12);
    --scrim: rgba(242, 242, 241, 0.85);
    --mark-ink: #2B2C2F;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F2F2F1;
  --bg-2: #EAEAE8;
  --surface: #FFFFFF;
  --surface-2: #F5F5F4;
  --line: rgba(20, 22, 26, 0.10);
  --line-strong: rgba(20, 22, 26, 0.2);
  --fg: #17181B;
  --fg-2: #3A3D44;
  --muted: #6A6F78;
  --steel: #3F5B72;
  --steel-ink: #3F5B72;
  --invert-bg: #17181B;
  --invert-fg: #F2F2F1;
  --ok: #0E8A44;
  --ok-soft: rgba(14, 138, 68, 0.10);
  --caution: #A9620A;
  --caution-soft: rgba(169, 98, 10, 0.10);
  --warn: #C42B31;
  --warn-soft: rgba(196, 43, 49, 0.09);
  --shadow: 0 20px 50px rgba(20, 22, 26, 0.12);
  --scrim: rgba(242, 242, 241, 0.85);
  --mark-ink: #2B2C2F;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--steel-ink); color: #fff; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--invert-bg); color: var(--invert-fg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.data { font-family: var(--font-data); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; font-weight: 500; }
.lede { font-size: var(--step-1); color: var(--fg-2); max-width: 60ch; line-height: 1.55; }
.muted { color: var(--muted); }
.display { font-size: var(--step-5); font-weight: 700; letter-spacing: -0.03em; line-height: 0.98; }
.h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.025em; }
.h2 { font-size: var(--step-3); font-weight: 700; }
.h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; }

/* ---------- buttons ----------
   One family everywhere: a pill with a soft lift on hover and a press on click. A button
   with an arrow carries it in its own small disc, which slides as the button is hovered. */
:root { --ease-out: cubic-bezier(.2, .8, .2, 1); }
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7em;
  min-height: 48px; padding: 0 1.45em; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s ease, border-color .25s ease, color .25s ease;
  white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.btn:has(> .arrow) { padding-right: 0.5em; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.985); transition-duration: .08s; }
.btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
/* a sheen that crosses the button once on hover */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.16) 48%, transparent 66%);
  transform: translateX(-110%); transition: transform .8s var(--ease-out);
}
.btn:hover::before { transform: translateX(110%); }
.btn-primary {
  background: var(--invert-bg); color: var(--invert-fg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 1px 2px rgba(0,0,0,0.18), 0 10px 26px -14px rgba(0,0,0,0.55);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 2px 4px rgba(0,0,0,0.16), 0 16px 34px -14px rgba(0,0,0,0.6); }
.btn-ghost {
  border-color: var(--line-strong); color: var(--fg);
  background: color-mix(in srgb, var(--fg) 3%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: color-mix(in srgb, var(--fg) 45%, transparent); background: color-mix(in srgb, var(--fg) 7%, transparent); }
.btn-ghost::before { background: linear-gradient(105deg, transparent 30%, color-mix(in srgb, var(--fg) 10%, transparent) 48%, transparent 66%); }
.btn-sm { min-height: 38px; padding: 0 1.1em; font-size: 0.8125rem; }
.btn-sm:has(> .arrow) { padding-right: 0.4em; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn[disabled]::before { display: none; }
/* the arrow drawn, so it matches Montserrat's stroke on every system */
.arrow::after {
  content: ""; display: inline-block; width: 0.95em; height: 0.7em; vertical-align: -0.04em; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 14'%3E%3Cpath d='M1 7h16M11 1.5 17 7l-6 5.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 14'%3E%3Cpath d='M1 7h16M11 1.5 17 7l-6 5.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .35s var(--ease-out);
}
a:hover > .arrow::after { transform: translateX(3px); }
/* in a button, the arrow sits in a disc */
.btn > .arrow {
  display: inline-grid; place-items: center; flex: none; width: 2.15em; height: 2.15em; border-radius: 50%;
  background: color-mix(in srgb, currentColor 11%, transparent);
  transition: background-color .3s ease, transform .35s var(--ease-out);
}
.btn > .arrow::after { width: 0.85em; height: 0.62em; vertical-align: 0; }
.btn:hover > .arrow { background: color-mix(in srgb, currentColor 18%, transparent); transform: translateX(2px); }
.btn:hover > .arrow::after { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn::before, .btn > .arrow, .arrow::after { transition: none; }
  .btn:hover { transform: none; }
}

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-data); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--fg-2);
  white-space: nowrap;
}
.chip-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.chip-caution { color: var(--caution); border-color: color-mix(in srgb, var(--caution) 45%, transparent); }
.chip-warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.mark { display: inline-block; flex: none; background-color: var(--mark-ink);
  -webkit-mask: url("../img/mark.svg") center / contain no-repeat; mask: url("../img/mark.svg") center / contain no-repeat; }
.brand-mark { width: 36px; height: 36px; }
/* A320 and KNOWLEDGE share one centre line, the mark's: with a line height of 1, Montserrat's
   capitals sit centred in the line box, so centring the boxes centres the capitals */
.brand-word { display: flex; align-items: center; gap: 11px; line-height: 1; }
.brand-word b, .brand-word span { display: block; line-height: 1; }
.brand-word b { font-family: var(--font-display); font-weight: 800; font-size: 1.3125rem; letter-spacing: 0.02em; margin-right: -0.02em; }
.brand-word span { font-family: var(--font-display); font-weight: 500; font-size: 0.6875rem; letter-spacing: 0.46em; margin-right: -0.46em; color: var(--fg-2); }
@media (max-width: 380px) { .brand-word span { letter-spacing: 0.32em; margin-right: -0.32em; } }
/* The top bar: one underline (.nav-ink, placed by site.js) glides to the link under the pointer
   and settles back under the current page; from page to page it travels from the link clicked.
   Without the script, the current page keeps a plain underline. */
.nav { position: relative; display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  position: relative; text-decoration: none; font-family: var(--font-display); font-weight: 500; font-size: 0.875rem;
  padding: 10px 13px; border-radius: 8px; color: var(--fg-2); transition: color .3s ease; white-space: nowrap;
}
.nav a:hover, .nav a:focus-visible { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); }
.nav:not(.has-ink) a[aria-current="page"]::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; background: var(--fg); border-radius: 2px; }
.nav-ink {
  position: absolute; left: 0; bottom: 3px; height: 2px; width: 1px; border-radius: 2px; background: var(--fg);
  transform-origin: 0 50%; opacity: 0; pointer-events: none;
  transition: transform .5s var(--ease-out), opacity .3s ease;
}
.nav-ink.is-on { opacity: 1; }
.nav-ink.no-anim { transition: none; }
@media (prefers-reduced-motion: reduce) { .nav-ink { transition: opacity .2s ease; } }
/* from page to page: a soft cross-fade where the browser can, the header held still */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: ease; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--fg-2);
  transition: color .25s ease, border-color .25s ease, background-color .25s ease, transform .35s var(--ease-out);
}
.icon-btn:hover { color: var(--fg); border-color: var(--line-strong); background: color-mix(in srgb, var(--fg) 5%, transparent); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
/* the full top bar needs about 1,140 px; below that, the menu button */
@media (max-width: 1160px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .header-subscribe { display: none; }
}
.mobile-nav {
  position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0; z-index: 49;
  background: var(--bg); overflow-y: auto;
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.mobile-nav a {
  display: flex; justify-content: space-between; align-items: center; text-decoration: none;
  font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; padding: 16px 4px; border-bottom: 1px solid var(--line);
}
.mobile-nav a small { font-family: var(--font-data); font-size: 0.6875rem; color: var(--muted); font-weight: 600; letter-spacing: .12em; }
.mobile-nav .btn { margin-top: 24px; width: 100%; }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 52px); max-width: 760px; }
.section-head.split { max-width: none; grid-template-columns: 1fr auto; align-items: end; }
@media (max-width: 720px) { .section-head.split { grid-template-columns: 1fr; } }
.rule-label {
  display: flex; align-items: center; gap: 14px;
}
.rule-label::after { content: ""; height: 1px; background: var(--line); flex: 1; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(48px, 8vw, 96px) clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero .h1 { max-width: 16ch; }
.page-hero .lede { margin-top: 18px; }
.page-hero .eyebrow { margin-bottom: 18px; display: block; }
.page-hero-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px)); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { color: var(--muted); font-size: 0.875rem; margin-top: 16px; max-width: 36ch; }
.footer-col h4 { font-size: 0.6875rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { text-decoration: none; color: var(--fg-2); font-size: 0.9375rem; }
.footer-col a:hover { color: var(--fg); }
.footer-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; color: var(--muted); font-size: 0.8125rem; }
.footer-base p { max-width: 70ch; }

/* ---------- home hero: the stacked lockup, as the logo is drawn ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); background: #0c0d0f; color: #F2F3F5; }
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; filter: saturate(0.75) contrast(1.05); animation: hero-settle 2.6s cubic-bezier(.2,.7,.2,1) both; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 85% at 50% 40%, rgba(10,11,13,0.80) 0%, rgba(10,11,13,0.62) 55%, rgba(10,11,13,0.88) 100%),
    linear-gradient(0deg, rgba(10,11,13,0.95) 0%, rgba(10,11,13,0) 40%);
}
.hero-inner { display: grid; justify-items: center; text-align: center; padding-block: clamp(64px, 10vw, 132px) clamp(32px, 4vw, 52px); }
/* The lockup. Everything is sized from the lockup's font size (A320's), so the two words keep
   their proportions at every width. A320's letters are spaced 0.04em apart, and KNOWLEDGE, at
   0.24 of that size and tracked 0.5994em, is exactly as wide, ink to ink (Montserrat 800 "A320"
   2.673em + 3 x 0.04em; 500 "KNOWLEDGE" 6.842em + 8 x 0.5994em, x 0.24). Each word drops its
   last letter's tracking and is nudged by its side bearings, so the ink of both is centred. */
.lockup { display: grid; justify-items: center; margin: 0; font-family: var(--font-display); color: #FFFFFF; letter-spacing: 0; font-size: clamp(4rem, 1.6rem + 9.5vw, 8.75rem); }
.lockup-mark { width: 1.4em; height: 1.4em; background-color: #A6A6A8; margin-bottom: 0.2em; }
.lockup-a320 { font-weight: 800; font-size: 1em; line-height: 0.88; letter-spacing: 0.04em; margin-right: -0.04em; translate: 0.0225em 0; }
.lockup-knowledge { font-weight: 500; font-size: 0.24em; letter-spacing: 0.5994em; margin-right: -0.5994em; translate: -0.025em 0; margin-top: 0.62em; color: rgba(242,243,245,0.86); line-height: 1; }
.hero-tagline { max-width: 36ch; margin-top: clamp(26px, 3vw, 38px); font-size: clamp(1.05rem, 0.92rem + 0.55vw, 1.35rem); line-height: 1.55; color: rgba(242,243,245,0.80); text-wrap: balance; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hero .btn { min-height: 54px; font-size: 1rem; }
.hero .btn-primary { background: #F2F3F5; color: #121315; box-shadow: inset 0 1px 0 #fff, 0 12px 32px -14px rgba(0,0,0,0.8); }
.hero .btn-primary:hover { background: #fff; box-shadow: inset 0 1px 0 #fff, 0 18px 40px -14px rgba(0,0,0,0.85), 0 0 0 4px rgba(242,243,245,0.12); }
.hero .btn-primary::before { background: linear-gradient(105deg, transparent 30%, rgba(18,19,21,0.08) 48%, transparent 66%); }
.hero .btn-ghost { color: #F2F3F5; border-color: rgba(242,243,245,0.32); background: rgba(242,243,245,0.06); }
.hero .btn-ghost:hover { border-color: rgba(242,243,245,0.7); background: rgba(242,243,245,0.12); }
.hero .btn-ghost::before { background: linear-gradient(105deg, transparent 30%, rgba(242,243,245,0.14) 48%, transparent 66%); }
.hero .btn:focus-visible { outline-color: #F2F3F5; }
.lockup > *, .hero-tagline, .hero-cta { animation: hero-rise 0.9s cubic-bezier(.2,.7,.2,1) both; }
.lockup-a320 { animation-delay: .08s; } .lockup-knowledge { animation-delay: .16s; } .hero-tagline { animation-delay: .26s; } .hero-cta { animation-delay: .34s; }
@keyframes hero-rise { from { opacity: 0.25; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes hero-settle { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero .readout { margin-top: 0; margin-bottom: clamp(28px, 4vw, 48px); }
.readout {
  margin-top: clamp(48px, 7vw, 88px); text-align: left;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(242,243,245,0.18);
}
.readout > * { display: block; padding: 22px 20px 4px 0; color: inherit; text-decoration: none; min-width: 0; }
.readout > * + * { padding-left: 22px; border-left: 1px solid rgba(242,243,245,0.18); }
.readout b {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 1.05rem + 2.6vw, 3rem);
  line-height: 1; color: #3FE07F; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.readout span { display: block; margin-top: 10px; font-family: var(--font-display); font-size: 0.6875rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(242,243,245,0.66); font-weight: 600; }
.readout a span { transition: color .2s ease; }
.readout a:hover span, .readout a:focus-visible span { color: #F2F3F5; }
.readout a span::after { content: ""; display: inline-block; width: 0.55em; height: 0.55em; margin-left: 0.5em; vertical-align: 0.05em; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 8 8 2M3.5 2H8v4.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 8 8 2M3.5 2H8v4.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 640px) {
  .readout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readout > :nth-child(3) { padding-left: 0; border-left: 0; }
  .readout > :nth-child(n+3) { border-top: 1px solid rgba(242,243,245,0.18); margin-top: 18px; }
  .readout span { letter-spacing: 0.16em; }
}

/* ---------- tool cards (home) ---------- */
.tools { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.tool {
  grid-column: span 4; display: flex; flex-direction: column; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface);
  transition: border-color .2s ease, transform .2s ease;
}
.tool:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.tool-wide { grid-column: span 6; }
.tool-feature { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .tool-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .tool-feature .tool-shot { aspect-ratio: auto; min-height: 100%; }
  .tool-feature .tool-body { padding: clamp(26px, 3vw, 40px); align-content: center; }
  .tool-feature .tool-body .h3 { font-size: 1.75rem; }
  .tool-feature .tool-body p { font-size: 1rem; max-width: 46ch; }
}
.tool-shot { aspect-ratio: 16 / 9; background: #0c0d0f; overflow: hidden; position: relative; }
.tool-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tool:hover .tool-shot img { transform: scale(1.03); }
.tool-body { padding: 22px 22px 24px; display: grid; gap: 10px; flex: 1; align-content: start; }
.tool-body .h3 { font-size: 1.375rem; letter-spacing: -0.015em; }
.tool-body p { color: var(--fg-2); font-size: 0.9375rem; }
.tool-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tool-go { margin-top: auto; padding-top: 10px; font-family: var(--font-display); font-weight: 600; font-size: 0.875rem; display: inline-flex; gap: 8px; }
@media (max-width: 980px) { .tool, .tool-wide { grid-column: span 6; } .tool-feature { grid-column: 1 / -1; } }
@media (max-width: 640px) { .tool, .tool-wide, .tool-feature { grid-column: 1 / -1; } }

/* ---------- question of the day ---------- */
.qotd { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .qotd { grid-template-columns: 1fr; } }

/* ---------- question card (quiz, bank, home) ---------- */
.qcard { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(20px, 3vw, 32px); }
.qcard-top { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.qtext { font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem); font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
.opts { display: grid; gap: 10px; margin-top: 22px; list-style: none; padding: 0; }
.opt {
  width: 100%; text-align: left; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 11px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  font-size: 0.9875rem; line-height: 1.4; transition: border-color .15s ease, background-color .15s ease;
}
.opt:hover:not([disabled]) { border-color: var(--fg-2); background: var(--surface-2); }
.opt .key {
  width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center;
  font-family: var(--font-data); font-size: 0.8125rem; border: 1px solid var(--line-strong); color: var(--fg-2);
}
.opt .verdict { font-family: var(--font-data); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; }
.opt[disabled] { cursor: default; }
.opt.is-correct { border-color: var(--ok); background: var(--ok-soft); }
.opt.is-correct .key { border-color: var(--ok); color: var(--ok); }
.opt.is-correct .verdict { color: var(--ok); }
.opt.is-wrong { border-color: var(--warn); background: var(--warn-soft); }
.opt.is-wrong .key { border-color: var(--warn); color: var(--warn); }
.opt.is-wrong .verdict { color: var(--warn); }
.opt.is-dim { opacity: 0.5; }
.qnote { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); color: var(--fg-2); font-size: 0.875rem; }
.qfoot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }

/* ---------- progress ---------- */
.bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--fg); border-radius: 4px; transition: width .3s ease; }
.bar.ok > i { background: var(--ok); }
.segbar { display: flex; gap: 3px; }
.segbar i { flex: 1; height: 4px; border-radius: 3px; background: var(--line-strong); }
.segbar i.ok { background: var(--ok); }
.segbar i.bad { background: var(--warn); }
.segbar i.now { background: var(--fg); }

/* ---------- articles ---------- */
.article-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .article-list { grid-template-columns: 1fr; } }
.acard { display: grid; grid-template-rows: auto 1fr; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: border-color .2s ease; }
.acard:hover { border-color: var(--line-strong); }
.acard-img { aspect-ratio: 16 / 8; overflow: hidden; background: #0c0d0f; }
.acard-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35); transition: transform .5s ease, filter .5s ease; }
.acard:hover .acard-img img { transform: scale(1.03); filter: grayscale(0); }
.acard-body { padding: 22px 24px 26px; display: grid; gap: 12px; align-content: start; }
.acard-body .h3 { font-size: 1.375rem; line-height: 1.25; }
.acard-body p { color: var(--fg-2); font-size: 0.9375rem; }
.acard-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.prose { font-family: var(--font-read); font-size: 1.0625rem; line-height: 1.8; color: var(--fg); max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-display); font-size: 1.6rem; margin-top: 2.2em; letter-spacing: -0.015em; }
.prose h3 { font-family: var(--font-display); font-size: 1.2rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.45em; }
.prose strong { font-weight: 650; }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2.4em; }
.prose blockquote { margin: 1.6em 0; padding-left: 1.2em; border-left: 2px solid var(--line-strong); color: var(--fg-2); font-style: italic; }
.prose a { color: var(--steel); }
.prose code { font-family: var(--font-screen); font-size: 0.85em; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 4px; }
.prose .insights { font-family: var(--font-body); font-size: 1rem; line-height: 1.6; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.article-head { padding-block: clamp(48px, 7vw, 88px) 32px; }
.article-head .h1 { max-width: 20ch; font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem); }
.article-cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; margin-bottom: 48px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 64px; padding-bottom: 96px; }
@media (max-width: 980px) { .article-layout { grid-template-columns: 1fr; } .article-aside { display: none; } }
.article-aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; display: grid; gap: 14px; font-size: 0.875rem; }
.article-aside a { text-decoration: none; color: var(--muted); display: block; padding: 4px 0; line-height: 1.4; }
.article-aside a:hover { color: var(--fg); }

/* ---------- misc layout ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 16px; }
.stack-lg { display: grid; gap: 28px; }
.cluster { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(20px, 3vw, 28px); }
.photo { border-radius: var(--radius); overflow: hidden; background: #0c0d0f; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
/* a <picture> lays out as its <img> alone, so the image rules above apply as they are */
picture { display: contents; }
.list-rows { display: grid; }
.list-rows > * { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding-block: 20px; border-top: 1px solid var(--line); }
.list-rows > *:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { .list-rows > * { grid-template-columns: 1fr; gap: 6px; } }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 0.875rem; color: var(--fg-2); }
.notice::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: var(--caution); }

/* ---------- app teaser ---------- */
.appband { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .appband { grid-template-columns: 1fr; } }
.appmark { aspect-ratio: 1; max-width: 420px; width: 100%; margin-inline: auto; border-radius: 23%; border: 1px solid var(--line); background: #1F1F1F; box-shadow: var(--shadow); display: grid; place-items: center; }
.appmark .mark { width: 64%; height: 64%; background-color: #A6A6A8; }
.featurelist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 0; }
.featurelist li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 16px; padding-block: 16px; border-top: 1px solid var(--line); align-items: start; }
.fl-mark { width: 20px; height: 20px; margin-top: 2px; }
.featurelist li:last-child { border-bottom: 1px solid var(--line); }
.featurelist .data { color: var(--muted); font-size: 0.8125rem; padding-top: 2px; }
.featurelist b { display: block; font-weight: 600; }
.featurelist span { color: var(--fg-2); font-size: 0.9375rem; }

/* ---------- canvas apps (ECAM trainer, cockpit) ---------- */
.app-shell { padding-block: 28px 64px; }
.stage {
  position: relative; background: #0B0C0E; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stage canvas { display: block; width: 100%; height: auto; touch-action: manipulation; }
.stage canvas.clickable { cursor: pointer; }
.toast {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); max-width: calc(100% - 32px);
  padding: 10px 16px; border-radius: 10px; font-size: 0.875rem; background: rgba(20,21,24,0.94); color: #F2F3F5;
  border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 10px 30px rgba(0,0,0,0.4); pointer-events: none;
  opacity: 0; transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.toast.bad { border-color: rgba(240,85,90,0.6); }
.toast.good { border-color: rgba(63,210,122,0.6); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Tech Quiz archive ---------- */
.quiz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.quiz-tile {
  display: grid; grid-template-rows: auto 1fr; grid-auto-rows: auto; gap: 14px; min-height: 176px; padding: 18px 18px 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.quiz-tile:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.quiz-tile-top { display: flex; justify-content: space-between; align-items: center; }
.quiz-no { font-size: 1.75rem; line-height: 1; }
.quiz-topics { color: var(--fg-2); font-size: 0.8125rem; line-height: 1.45; }
.quiz-tile-foot { display: flex; align-items: end; }
.quiz-score { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; width: 100%; font-size: 0.8125rem; }
.quiz-score .data { font-size: 0.9375rem; }
[aria-pressed="true"].btn-ghost { background: var(--invert-bg); color: var(--invert-fg); border-color: var(--invert-bg); }

.quiz-shell { max-width: 820px; padding-block: 40px 96px; display: grid; gap: 24px; }
.quiz-head { display: grid; gap: 14px; }
.quiz-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.debrief { display: grid; gap: 28px; }
.debrief-score { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.debrief-big { font-size: clamp(3rem, 2rem + 4vw, 4.5rem); line-height: 1; color: var(--ok); }
.review { list-style: none; margin: 0; padding: 0; display: grid; }
.review li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding-block: 18px; border-top: 1px solid var(--line); }
.review-no { color: var(--muted); font-size: 0.8125rem; padding-top: 3px; }
.review-q { font-weight: 600; line-height: 1.45; }
.review-a { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; color: var(--fg-2); font-size: 0.9375rem; }
.review-you { font-size: 0.875rem; }

/* ---------- Question Bank ---------- */
.bank-dash { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 860px) { .bank-dash { grid-template-columns: 1fr; } }
.bank-overall { display: flex; align-items: center; gap: clamp(20px, 4vw, 40px); flex-wrap: wrap; }
.ring { position: relative; width: 148px; height: 148px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring .ring-bg { stroke: var(--line-strong); }
.ring .ring-fg { stroke: var(--ok); stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px; }
.ring-label b { font-size: 1.75rem; font-weight: 400; }
.ring-label span { font-size: 0.6875rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.bank-counts { display: grid; grid-template-columns: repeat(2, minmax(90px, 1fr)); gap: 18px 28px; margin: 0; flex: 1; }
.bank-counts dt { font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.bank-counts dd { margin: 4px 0 0; font-size: 1.625rem; }
.bank-start { display: grid; gap: 10px; align-content: start; }
.bank-start .eyebrow { margin-bottom: 4px; }
.bank-mode {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; width: 100%;
  padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.bank-mode:hover:not([disabled]) { border-color: var(--fg-2); background: var(--surface-2); }
.bank-mode b { display: block; font-weight: 600; }
.bank-mode small { display: block; color: var(--muted); font-size: 0.8125rem; margin-top: 2px; }
.bank-mode .data { font-size: 1.125rem; }
.bank-mode.is-primary { background: var(--invert-bg); color: var(--invert-fg); border-color: var(--invert-bg); }
.bank-mode.is-primary small { color: color-mix(in srgb, var(--invert-fg) 65%, transparent); }
.bank-mode.is-primary:hover { background: var(--fg-2); }
.bank-mode[disabled] { opacity: .45; cursor: not-allowed; }
.topic-table { display: grid; }
.topic-row {
  display: grid; grid-template-columns: 64px minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding-block: 14px; border-top: 1px solid var(--line);
}
.topic-row:last-child { border-bottom: 1px solid var(--line); }
.topic-code { justify-content: center; }
.topic-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; }
.topic-name b { font-weight: 600; }
.topic-name .muted { font-size: 0.8125rem; }
.topic-strength { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 12px; align-items: center; }
.topic-strength .data { font-size: 0.8125rem; text-align: right; color: var(--fg-2); }
@media (max-width: 680px) {
  .topic-row { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .topic-strength { grid-column: 2 / 3; }
  .topic-row .btn { grid-row: 1; grid-column: 3; }
}
.linklike { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; cursor: pointer; font: inherit; }
.linklike.eyebrow { text-decoration: none; font-family: var(--font-display); }
.linklike.danger { color: var(--warn); }

/* ---------- articles index, contact ---------- */
.substack-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { display: grid; gap: 12px; align-content: start; text-decoration: none; transition: border-color .15s ease; }
a.contact-card:hover { border-color: var(--line-strong); }
.contact-card .h3 { font-size: 1.25rem; }

/* ---------- ECAM trainer ---------- */
.segbar i.done { background: color-mix(in srgb, var(--fg) 35%, transparent); }
.mode-switch { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 14px; }
.mode-switch button { text-align: left; padding: 10px 14px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; }
.mode-switch button b { display: block; font-weight: 600; font-size: 0.9375rem; }
.mode-switch button small { display: block; color: var(--muted); font-size: 0.75rem; }
.mode-switch [aria-checked="true"] { background: var(--invert-bg); color: var(--invert-fg); }
.mode-switch [aria-checked="true"] small { color: color-mix(in srgb, var(--invert-fg) 65%, transparent); }
.scen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.scen { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; background: var(--surface); transition: border-color .15s ease, transform .15s ease; }
.scen:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.scen-screen { background: #000; padding: 16px 16px 14px; display: grid; gap: 4px; min-height: 76px; align-content: center; border-bottom: 1px solid var(--line); }
.scen-title { font-family: var(--font-cockpit); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.02em; line-height: 1.3; }
.scen-title.is-warn { color: #FF2D2D; }
.scen-title.is-caut { color: #FFA51F; }
.scen-body { padding: 14px 16px 16px; display: grid; gap: 10px; align-content: start; }
.scen-body p { font-size: 0.8125rem; line-height: 1.45; }

.run-head { display: grid; gap: 10px; margin-bottom: 18px; }
.run-head .linklike { justify-self: start; }
.run-title-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; }
.run-title { font-family: var(--font-cockpit); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); letter-spacing: 0.01em; font-weight: 700; }
.run-flight { font-size: 0.875rem; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 5px 12px; font-size: 0.8125rem; font-weight: 600; cursor: pointer; color: var(--fg-2); }
.seg [aria-pressed="true"] { background: var(--invert-bg); color: var(--invert-fg); }
.icon-btn.is-off .wave { opacity: 0; }
.icon-btn.is-off { color: var(--muted); }
.run-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .run-grid { grid-template-columns: 1fr; } }
.run-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px; display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 1000px) { .run-panel { position: static; } }
.run-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.run-progress .data { font-size: 0.75rem; }
.run-card { display: grid; gap: 12px; }
.run-card p { font-size: 0.9375rem; line-height: 1.5; }
.run-card .btn { justify-self: start; }
.ewd-line { font-family: var(--font-screen); font-size: 0.875rem !important; background: #000; color: #2FD8F5; padding: 10px 12px; border-radius: 8px; overflow-wrap: anywhere; }
.hint { padding: 10px 12px; border-radius: 8px; background: var(--caution-soft); color: var(--fg); font-size: 0.875rem; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.mini-stats dt { font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.mini-stats dd { margin: 2px 0 0; }
.run-start { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 9, 11, 0.72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); padding: 16px; }

/* ---------- cockpit ---------- */
.ck-row { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .ck-row { grid-template-columns: 1fr; } }
.tip { position: absolute; z-index: 2; max-width: 240px; padding: 6px 10px; border-radius: 8px; background: rgba(20,21,24,0.94); color: #F2F3F5; border: 1px solid rgba(255,255,255,0.14); font-family: var(--font-cockpit); font-size: 0.75rem; letter-spacing: .03em; pointer-events: none; white-space: nowrap; }
.positions { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-on { background: var(--invert-bg); color: var(--invert-fg); border-color: var(--invert-bg); }
.check { display: flex; gap: 10px; align-items: center; font-size: 0.875rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ok); }

/* long labels wrap instead of widening their column */
.quiz-shell > *, .qotd > *, .run-grid > *, .ck-row > *, .bank-dash > *, .grid-2 > *, .appband > * { min-width: 0; }
.qcard-top .chip { white-space: normal; line-height: 1.35; }
@media (max-width: 520px) {
  .opt { grid-template-columns: 30px minmax(0, 1fr); }
  .opt .verdict { grid-column: 2; }
  .opt .verdict:empty { display: none; }
}

/* on a phone the drawn panels pan sideways at a size a finger can use */
.pan-hint { display: none; font-size: 0.8125rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 760px) {
  .stage.pan { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .stage.pan canvas { width: 820px; max-width: none; }
  .stage.pan.pan-wide canvas { width: 1040px; }
  .pan-hint { display: block; }
}
@media (max-width: 760px) { .toast { position: fixed; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 1000px) { .run-grid .run-panel { order: -1; } }
.prose .insights h3 { margin-top: 0; }

/* ---------- the brand band ---------- */
.brand-photo { aspect-ratio: 1; max-width: 560px; }
.brand-photo img { filter: grayscale(1) contrast(1.02); }

/* ---------- the cockpit's areas and displays ---------- */
.ck-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 14px; }
.ck-tabs button { text-align: left; padding: 10px 14px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; min-width: 0; }
.ck-tabs button b { display: block; font-weight: 600; font-size: 0.9375rem; }
.ck-tabs button small { display: block; color: var(--muted); font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-tabs [aria-selected="true"] { background: var(--invert-bg); color: var(--invert-fg); }
.ck-tabs [aria-selected="true"] small { color: color-mix(in srgb, var(--invert-fg) 65%, transparent); }
@media (max-width: 640px) { .ck-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ck-displays { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 1280px) { .ck-row.wide .ck-displays { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ck-displays figure { margin: 0; display: grid; gap: 8px; }
.du { background: #000; border-radius: 12px; padding: 10px; border: 1px solid var(--line); box-shadow: inset 0 0 0 6px #15171A; }
.du canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.ck-displays figcaption { font-family: var(--font-data); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ck-title { font-family: var(--font-cockpit); font-size: 1.25rem; letter-spacing: .02em; }
.knob-pop { position: absolute; z-index: 3; min-width: 240px; max-width: calc(100% - 16px); padding: 12px; border-radius: 14px; background: rgba(18,19,22,0.97); color: #F2F3F5; border: 1px solid rgba(255,255,255,0.16); box-shadow: 0 16px 40px rgba(0,0,0,0.5); display: grid; gap: 10px; }
.pop-head { display: flex; align-items: baseline; gap: 10px; }
.pop-head b { font-family: var(--font-cockpit); letter-spacing: .03em; font-size: 0.9375rem; }
.pop-head .data { color: #FCE891; font-size: 0.9375rem; margin-left: auto; }
.pop-x { background: none; border: 0; color: rgba(242,243,245,0.7); font-size: 1.25rem; line-height: 1; cursor: pointer; padding: 0 2px; }
.pop-row { display: flex; flex-wrap: wrap; gap: 6px; }
.knob-pop .btn-ghost { color: #F2F3F5; border-color: rgba(242,243,245,0.28); }
.knob-pop .btn-ghost:hover { border-color: #F2F3F5; }
.knob-pop .btn.is-on { background: #F2F3F5; color: #121315; border-color: #F2F3F5; }
.stack > *, .stack-lg > * { min-width: 0; }

/* ---------- your progress ---------- */
.text-ok { color: var(--ok); } .text-caution { color: var(--caution); } .text-warn { color: var(--warn); }
.pg-small { font-size: 0.8125rem; }
.rule-label::after { order: 1; }
.rule-label > :not(:first-child) { order: 2; }
.pg-link { text-decoration: none; color: var(--fg-2); }
.pg-link:hover { color: var(--fg); }
.pg-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line-strong); }
.pg-stats > div { padding: 18px 18px 0 0; display: grid; gap: 4px; align-content: start; }
.pg-stats > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.pg-stats dt { font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.pg-stats dd { margin: 0; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); line-height: 1.1; }
.pg-stats dd.pg-sub, .pg-facts dd.pg-sub { font-size: 0.8125rem; margin: 0; line-height: 1.4; }
@media (max-width: 680px) {
  .pg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .pg-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 18px; }
}
.pg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.heat-scroll { overflow-x: auto; padding-bottom: 4px; }
.heat { --gap: 4px; display: grid; gap: 6px; min-width: 330px; }
.heat-months, .heat-grid { display: grid; grid-template-columns: repeat(26, minmax(8px, 22px)); column-gap: var(--gap); }
.heat-months { font-size: 0.6875rem; color: var(--muted); height: 1.1em; }
.heat-months span { white-space: nowrap; }
.heat-grid { grid-template-rows: repeat(7, auto); grid-auto-flow: column; row-gap: var(--gap); }
.heat i, .heat-legend i { display: block; border-radius: 3px; background: var(--line); }
.heat i { aspect-ratio: 1; width: 100%; max-width: 100%; }
.heat-legend i { width: 11px; height: 11px; }
.heat i.heat-future { background: transparent; }
.heat i.is-today { outline: 1px solid var(--fg-2); outline-offset: 1px; }
.heat .l1, .heat-legend .l1 { background: color-mix(in srgb, var(--ok) 28%, transparent); }
.heat .l2, .heat-legend .l2 { background: color-mix(in srgb, var(--ok) 50%, transparent); }
.heat .l3, .heat-legend .l3 { background: color-mix(in srgb, var(--ok) 75%, transparent); }
.heat .l4, .heat-legend .l4 { background: var(--ok); }
.heat-legend { display: flex; align-items: center; gap: 4px; font-size: 0.75rem; justify-content: flex-start; }
.pg-activity { display: grid; grid-template-columns: minmax(0, auto) minmax(180px, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.pg-facts { margin: 0; display: grid; gap: 18px; align-content: start; border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 40px); }
.pg-facts dt { font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.pg-facts dd { margin: 4px 0 0; font-size: 1.5rem; line-height: 1.15; }
@media (max-width: 900px) {
  .pg-activity { grid-template-columns: 1fr; }
  .pg-facts { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .pg-facts dd { font-size: 1.25rem; }
  .pg-facts dt { letter-spacing: 0.12em; }
}
.heat-legend span { margin-inline: 4px; }
@media (min-width: 900px) { .heat { --gap: 5px; } }
.pg-systems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); }
@media (max-width: 760px) { .pg-systems { grid-template-columns: 1fr; } }
.pg-pair > .stack { align-content: start; }
.pg-sys {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(60px, 120px) 40px; gap: 14px; align-items: center;
  padding-block: 12px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
.pg-sys:hover .pg-sys-name b { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.pg-sys-name { display: grid; min-width: 0; }
.pg-sys-name b { font-weight: 600; font-size: 0.9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-sys-name .muted { font-size: 0.75rem; }
.pg-pct { font-size: 0.8125rem; text-align: right; color: var(--fg-2); }
@media (max-width: 560px) {
  .pg-sys { grid-template-columns: 48px minmax(0, 1fr) 40px; row-gap: 8px; }
  .pg-sys .bar { grid-column: 2; grid-row: 2; }
  .pg-sys .pg-pct { grid-column: 3; grid-row: 1; }
  .pg-sys-name b { white-space: normal; }
}
.pg-list { display: grid; }
.pg-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding-block: 12px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; min-width: 0;
}
.pg-row:hover .pg-row-name { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.pg-row-name { display: flex; gap: 10px; align-items: baseline; min-width: 0; font-size: 0.9375rem; }
.pg-next .pg-row-name { font-weight: 600; }
.ecam-name { font-family: var(--font-cockpit); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.02em; }
.ecam-name.is-caut { color: var(--caution); }
.ecam-name.is-warn { color: var(--warn); }
.pg-code { width: 100%; font-family: var(--font-screen); font-size: 0.75rem; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--fg-2); resize: none; word-break: break-all; }
.pg-import { display: grid; gap: 8px; }
.pg-import label { font-weight: 600; }
.pg-import-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pg-import-row input {
  flex: 1 1 220px; min-width: 0; min-height: 36px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--fg); font-family: var(--font-data); font-size: 0.8125rem;
}
.pg-import-row input:focus { outline: 2px solid var(--fg-2); outline-offset: 1px; }
.icon-btn[aria-current="page"] { color: var(--fg); border-color: var(--fg-2); }
@media (max-width: 520px) { .progress-btn { display: none; } }

/* ---------- cockpit: find a control ---------- */
.ck-find { position: relative; display: flex; align-items: center; gap: 10px; max-width: 520px; padding: 0 12px 0 14px; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
.ck-find:focus-within { border-color: var(--fg-2); }
.ck-find > svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.ck-find input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 0.9375rem; padding: 12px 0; outline: none; }
.ck-find input::placeholder { color: var(--muted); }
.ck-find kbd { font-family: var(--font-data); font-size: 0.75rem; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 5px; padding: 1px 6px; }
@media (hover: none) { .ck-find kbd { display: none; } }
.ck-results {
  position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); z-index: 20; list-style: none; margin: 0; padding: 6px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); max-height: 360px; overflow-y: auto;
}
.ck-results li { display: grid; gap: 2px; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.ck-results li b { font-weight: 600; font-size: 0.9375rem; }
.ck-results li span { font-size: 0.8125rem; color: var(--muted); }
.ck-results li[aria-selected="true"] { background: var(--surface-2); }
.ck-results li.ck-none { cursor: default; color: var(--muted); font-size: 0.875rem; }
#ck-panel:focus { outline: none; }
#ck-panel:focus-visible { outline: 2px solid var(--fg-2); outline-offset: 2px; }

/* ---------- cockpit: guided tours ---------- */
.ck-tools { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 14px 24px; align-items: center; }
@media (max-width: 980px) { .ck-tools { grid-template-columns: 1fr; } }
.ck-tours { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ck-tours .eyebrow { margin-right: 6px; }
.chip-btn {
  font: inherit; font-size: 0.8125rem; font-weight: 600; color: var(--fg-2); cursor: pointer;
  min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.chip-btn:hover { border-color: var(--fg-2); color: var(--fg); }
.chip-btn[aria-pressed="true"] { background: var(--invert-bg); color: var(--invert-fg); border-color: var(--invert-bg); }
.tour-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tour-head .data { white-space: nowrap; }
.tour-bar { margin: 2px 0 4px; }
.tour-after { border-left: 2px solid var(--ok); padding-left: 12px; color: var(--fg); }

/* the memory strip on a quiz tile: a mark per question, by its box */
.qstrip { display: flex; gap: 2px; }
.qstrip i { flex: 1; height: 6px; border-radius: 2px; background: var(--line); }
.qstrip i.b1 { background: color-mix(in srgb, var(--ok) 25%, transparent); }
.qstrip i.b2 { background: color-mix(in srgb, var(--ok) 42%, transparent); }
.qstrip i.b3 { background: color-mix(in srgb, var(--ok) 62%, transparent); }
.qstrip i.b4 { background: color-mix(in srgb, var(--ok) 82%, transparent); }
.qstrip i.b5 { background: var(--ok); }
.qstrip i.miss { background: var(--warn); opacity: .75; }

/* ---------- ECAM Trainer: the procedure, ticked off ---------- */
.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; }
.proc { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.proc-head { display: flex; justify-content: space-between; align-items: baseline; }
.proc-head .data { font-size: 0.75rem; }
.proc-list { list-style: none; margin: 0; padding: 10px 12px; display: grid; gap: 2px; background: #000; border-radius: 10px; max-height: min(34vh, 300px); overflow-y: auto; font-family: var(--font-screen); font-size: 0.75rem; line-height: 1.5; }
.proc-title { font-family: "B612", var(--font-screen); font-weight: 700; letter-spacing: .02em; padding: 4px 0 2px; }
.proc-title.is-caut { color: #FFA51F; } .proc-title.is-warn { color: #FF2D2D; }
.proc-line { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 2px 4px; border-radius: 5px; color: #2FD8F5; overflow-wrap: anywhere; }
.proc-line.k-read { color: #E8EAED; }
.proc-line.k-clr { color: #E8EAED; opacity: .85; }
.proc-tick { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(232,234,237,.35); transform: translateY(1px); }
.proc-line.is-done { color: rgba(232,234,237,.55); }
.proc-line.is-done .proc-tick { border: 0; background: #3FD27A; -webkit-mask: none; position: relative; }
.proc-line.is-done .proc-tick::after { content: ""; position: absolute; left: 3px; top: 1px; width: 3px; height: 6px; border: solid #000; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.proc-line.is-now { background: rgba(255,255,255,.08); }
.proc-line.is-now .proc-tick { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
.proc-more { color: rgba(232,234,237,.55); font-family: var(--font-body); font-size: 0.75rem; padding: 6px 4px 2px; }
@media (max-width: 980px) { .proc-list { max-height: none; } }

/* ---------- A320 Systems Questions's chapters ---------- */
.chapter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.chapter-tile { display: grid; gap: 14px; align-content: start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.chapter-head { display: grid; gap: 4px; text-decoration: none; color: inherit; }
.chapter-head:hover .h3 { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.chapter-head .data { font-size: 0.6875rem; letter-spacing: 0.08em; }
.parts { display: flex; flex-wrap: wrap; gap: 6px; }
.part {
  min-width: 32px; height: 28px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 7px;
  border: 1px solid var(--line-strong); font-family: var(--font-data); font-size: 0.75rem; color: var(--fg-2); text-decoration: none;
}
.part:hover { border-color: var(--fg-2); color: var(--fg); }
.part.is-done { border-color: color-mix(in srgb, var(--ok) 55%, transparent); color: var(--ok); }
.part.is-full { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }

/* ---------- the airline band (home) ----------
   Two copies of the list side by side scroll as one; at -50% the second copy sits exactly where
   the first began, so the loop never jumps. Each logo is a mask painted in one colour, sized by
   --h (in band ems, so that every logo covers about the same area) and --r (its proportions). */
.airlines { padding-block: clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--line); background: var(--bg); }
.airlines-head { display: flex; justify-content: center; margin-bottom: clamp(22px, 3vw, 34px); }
.airlines-head .eyebrow { color: var(--muted); }
.marquee {
  --band: clamp(22px, 1.6vw + 14px, 30px);
  display: flex; overflow: hidden; font-size: var(--band);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-track { display: flex; align-items: center; flex: none; margin: 0; padding: 0; list-style: none; animation: al-scroll 75s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track li { display: flex; align-items: center; padding-inline: clamp(22px, 2.6vw, 42px); height: 2.2em; }
.marquee-track i {
  display: block; height: calc(var(--h) * 1em); width: calc(var(--h) * var(--r) * 1em);
  background-color: var(--fg-2); opacity: 0.72;
  /* the logo itself is the mask-image, set on each one (a url() in a custom property would
     resolve against this stylesheet's folder, not the page's) */
  -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  transition: opacity .3s ease, background-color .3s ease;
}
.marquee-track li:hover i { opacity: 1; background-color: var(--fg); }
@keyframes al-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; padding-inline: 16px; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; flex: 1 1 100%; row-gap: 10px; }
  .marquee-copy { display: none; }
}

/* ---------- about ---------- */
.about-figures {
  margin: clamp(36px, 5vw, 56px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.about-figures > div { padding: 20px 20px 0 0; min-width: 0; }
.about-figures > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.about-figures dt { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.about-figures dd { margin: 10px 0 0; font-weight: 700; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; line-height: 1; }
@media (max-width: 640px) {
  .about-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-figures > :nth-child(3) { padding-left: 0; border-left: 0; }
  .about-figures > :nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 18px; }
  .about-figures dt { letter-spacing: 0.14em; }
}
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  display: grid; align-content: start; gap: 12px; padding: clamp(24px, 3vw, 34px); min-width: 0;
  text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: border-color .3s ease, transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.pillar:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 18px 40px -26px rgba(0,0,0,0.5); }
.pillar-n { font-weight: 700; font-size: 0.8125rem; color: var(--muted); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; margin-bottom: 18px; }
.pillar .h3 { font-size: 1.375rem; letter-spacing: -0.015em; }
.pillar p { color: var(--fg-2); font-size: 0.9375rem; }
.pillar .tool-go { margin-top: 10px; }
.about-accuracy .grid-2 { align-items: start; }
.about-accuracy-intro .photo { margin-top: 8px; }
@media (max-width: 900px) { .about-accuracy-intro .photo { display: none; } }
.principles { list-style: none; margin: 0; padding: 0; display: grid; }
.principles li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 8px; padding-block: 22px; border-top: 1px solid var(--line); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principle-n { font-weight: 700; font-size: 0.8125rem; color: var(--muted); padding-top: 3px; font-variant-numeric: tabular-nums; }
.principles b { display: block; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
.principles p { margin-top: 6px; color: var(--fg-2); font-size: 0.9375rem; max-width: 58ch; }
.about-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
  padding: clamp(24px, 3.4vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.about-cta-title { font-size: 1.5rem; letter-spacing: -0.015em; }

/* ---------- the world map (home) ----------
   The countries as solid shapes: the rest of the world in a quiet tone, the pilots' countries in
   ECAM green, each with a marker that breathes. Pointing at a country lifts it and dims the rest. */
.pilots { --wm-on: var(--ok); }
.pilots-head { display: grid; justify-items: center; text-align: center; gap: 14px; margin-bottom: clamp(26px, 4vw, 48px); }
.pilots-head .h2 { max-width: 25ch; text-wrap: balance; }
.worldmap { position: relative; max-width: 1100px; margin-inline: auto; }
.worldmap > svg, .worldmap > .wm-static { display: block; width: 100%; height: auto; overflow: visible; }
.wm-land { fill: color-mix(in srgb, var(--fg) 10%, var(--bg)); stroke: var(--bg); stroke-width: 0.6; stroke-linejoin: round; }
.wm-shape {
  fill: color-mix(in srgb, var(--wm-on) 46%, var(--bg)); stroke: var(--bg); stroke-width: 0.6; stroke-linejoin: round;
  cursor: pointer; transition: fill .35s ease;
}
.wm-pin { fill: var(--wm-on); stroke: var(--bg); stroke-width: 1.1; transition: r .3s var(--ease-out); }
.wm-pulse { fill: var(--wm-on); opacity: 0; transform-box: fill-box; transform-origin: center; animation: wm-pulse 3.2s ease-out infinite; animation-delay: calc(var(--i) * -0.29s); pointer-events: none; }
.wm-hit { fill: transparent; cursor: pointer; }
@keyframes wm-pulse { 0% { opacity: 0.5; transform: scale(0.6); } 70%, 100% { opacity: 0; transform: scale(2.6); } }
.worldmap.has-active .wm-c:not(.is-active) .wm-shape { fill: color-mix(in srgb, var(--wm-on) 22%, var(--bg)); }
.worldmap.has-active .wm-c:not(.is-active) .wm-pin { opacity: 0.45; }
.wm-c.is-active .wm-shape { fill: var(--wm-on); }
.wm-c.is-active .wm-pin { r: 3.6; }
.wm-tip {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; white-space: nowrap;
  transform: translate(-50%, calc(-100% - 14px));
  padding: 7px 12px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600;
  background: var(--invert-bg); color: var(--invert-fg); box-shadow: 0 10px 26px -12px rgba(0,0,0,0.6);
}
@media (prefers-reduced-motion: reduce) { .wm-pulse { animation: none; } }
