/* SeventyOneTen site, v1: The Room look (XATC-7110/brand). Fonts: Archivo and Archivo Narrow, SIL OFL 1.1,
   vendored in /assets/fonts (licences in licenses/fonts). Immutable: a change gets a new file name (-v2). */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/Archivo-400.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/Archivo-500.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/Archivo-700.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/Archivo-800.woff2") format("woff2"); }
@font-face { font-family: "Archivo Narrow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ArchivoNarrow-500.woff2") format("woff2"); }
@font-face { font-family: "Archivo Narrow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ArchivoNarrow-600.woff2") format("woff2"); }

/* The base the design artifact's host used to provide */
html, body { margin: 0; }
html { scroll-padding-top: 72px; } /* anchors land below the sticky header */
img { max-width: 100%; }
[hidden] { display: none !important; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }

/* Layout: one 1120px column on night navy. Radio-log hero, a drawn gate-to-gate profile, positions as icon cards, a preflight checklist, open squawks, the request form. The Room look. */
:root {
  color-scheme: dark;
  --bg: #0E1A2B;        /* night */
  --surface: #132337;   /* a console panel */
  --deep: #0A1420;      /* the header, the log */
  --line: #22304A;
  --fg: #EDE7DA;        /* paper, as text */
  --dim: #9AA7BB;
  --accent: #2EC4B6;    /* console teal: 8.1:1 on night */
  --red: #D64545;       /* the strip holder: graphics only */
  --red-text: #E36A6A;  /* red as text: 5.4:1 on night, 4.9:1 on panel */
  --tile-bg: #0E1A2B;   /* the 71/10 tile never inverts */
  --tile-fg: #EDE7DA;
  --tile-teal: #2EC4B6;
  /* the header stays night in both themes */
  --hdr-bg: #132337; --hdr-line: #22304A; --hdr-fg: #EDE7DA; --hdr-dim: #9AA7BB; --hdr-accent: #2EC4B6;
  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --label: "Archivo Narrow", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --measure: 70rem;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #EDE7DA; --surface: #F7F3EA; --deep: #EFEAE0; --line: #C9C2B2;
    --fg: #0E1A2B; --dim: #4A463D; --accent: #1B746B; --red: #D64545; --red-text: #C52B2B;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #EDE7DA; --surface: #F7F3EA; --deep: #EFEAE0; --line: #C9C2B2;
  --fg: #0E1A2B; --dim: #4A463D; --accent: #1B746B; --red: #D64545; --red-text: #C52B2B;
  color-scheme: light;
}

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 1rem; line-height: 1.55; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; margin: 0; line-height: 1.12; }
p { margin: 0; }
.ico { width: 24px; height: 24px; flex: 0 0 auto; color: var(--accent); }

.wrap { max-width: var(--measure); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.label { font-family: var(--label); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.lit { font-weight: 500; color: var(--accent); }
.num { font-variant-numeric: tabular-nums; }

/* header */
.top { background: var(--hdr-bg); border-bottom: 1px solid var(--hdr-line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--hdr-fg); }
.brand .word { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.top .lit { color: var(--hdr-accent); }
.top a:focus-visible { outline-color: var(--hdr-accent); }
.top nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.top nav a { font-family: var(--label); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hdr-dim); text-decoration: none; }
.top nav a:hover { color: var(--hdr-fg); }
.top nav a.cta { color: var(--hdr-accent); border: 1px solid var(--hdr-accent); border-radius: 999px; padding: 6px 12px; }

/* hero */
.hero { position: relative; overflow: hidden; }
.hero .scope { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: 0.55; }
.hero .wrap { position: relative; z-index: 1; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 64px 40px; }
.hero h1 { font-weight: 800; font-size: clamp(2.7rem, 6.2vw, 4.6rem); letter-spacing: -0.035em; }
.hero h1 .lit { font-weight: 800; }
.hero .sub { font-size: 1.2rem; color: var(--dim); max-width: 30rem; margin-top: 18px; }
.hero .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--label); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--fg); background: var(--surface); text-decoration: none; }
.chip.live { border-color: var(--accent); color: var(--accent); }
.chip .ico { width: 15px; height: 15px; }

/* the radio log */
.log { background: var(--deep); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 0; margin: 0; }
.log .radio { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.log .freq { font-weight: 700; font-size: 2rem; color: var(--accent); line-height: 1; }
.log .station { color: var(--fg); font-size: 0.95rem; }
.log ol { list-style: none; margin: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.log li { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr); gap: 12px; }
.log .who { font-family: var(--label); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
.log .atc .who { color: var(--accent); }
.log .said { font-size: 0.98rem; }
.ok { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-family: var(--label); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.log .ptt { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); }
.log .ptt .bar { flex: 1; height: 8px; border-radius: 4px; background: var(--red); }

/* gate-to-gate profile */
.profile { padding-block: 8px 0; }
.profile-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--deep); }
.profile svg { display: block; min-width: 760px; width: 100%; height: auto; }
.profile .t-pos { font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: 0.1em; fill: var(--dim); }
.profile .t-frq { font-family: var(--font); font-weight: 700; font-size: 15px; fill: var(--fg); font-variant-numeric: tabular-nums; }
.profile .t-apt { font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: 0.1em; fill: var(--accent); }

/* the catch: a readback ATC corrects */
.station-big { font-weight: 700; font-size: 1.55rem; color: var(--accent); line-height: 1.1; }
.catch { --k: 1; }
.catch-body { position: relative; min-height: 19rem; }
.catch-body ol { position: relative; z-index: 1; }
.catch .chart { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); z-index: 0;
  filter: blur(calc(var(--k) * 4px)); opacity: calc(0.95 - var(--k) * 0.72); transition: filter 700ms ease, opacity 700ms ease; }
.chart .c-route { fill: none; stroke: var(--fg); stroke-width: 2; }
.chart .c-vector { fill: none; stroke: var(--fg); stroke-width: 1.5; stroke-dasharray: 5 5; }
.chart .c-fix { fill: none; stroke: var(--fg); stroke-width: 1.5; }
.chart text { font-family: var(--label); font-weight: 600; letter-spacing: 0.08em; }
.chart .c-name text { fill: var(--fg); font-size: 11px; }
.chart .c-alt text { fill: var(--accent); font-size: 10.5px; }
.chart .c-title { fill: var(--dim); font-size: 10.5px; }
.chart .c-small { fill: var(--dim); font-size: 9px; letter-spacing: 0.04em; }
.catch .step { transition: opacity 350ms ease, transform 350ms ease; }
.catch .step.off { opacity: 0; transform: translateY(6px); }
mark.bad { background: none; color: var(--red-text); font-weight: 700; text-decoration: underline wavy var(--red-text); text-underline-offset: 4px; }
.nok { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-family: var(--label); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-text); }
.log .ptt .bar { transition: background-color 200ms ease, opacity 200ms ease; opacity: 0.35; }
.log .ptt.tx .bar { opacity: 1; background: var(--red); }
.log .ptt.rx .bar { opacity: 1; background: var(--accent); }

/* the sample */
.sample { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); gap: 48px; align-items: start; }
.sample .copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.player { background: var(--deep); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.player .row { display: flex; align-items: center; gap: 14px; }
.play { width: 56px; height: 56px; flex: 0 0 auto; border-radius: 50%; border: 0; background: var(--red); color: #FFFFFF; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.play svg { width: 22px; height: 22px; }
.play:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.track { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.track .station { display: flex; justify-content: space-between; gap: 10px; font-size: 0.95rem; }
.track .station b { font-weight: 700; }
.seek { width: 100%; accent-color: var(--accent); margin: 0; height: 24px; }
.time { font-family: var(--label); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; color: var(--dim); }
.wave { display: flex; align-items: center; gap: 3px; height: 28px; }
.wave i { display: block; width: 3px; border-radius: 2px; background: var(--line); }
.player.playing .wave i { background: var(--accent); }
.transcript summary { cursor: pointer; font-family: var(--label); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.transcript ol { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.95rem; }
.transcript li { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr); gap: 10px; }
.transcript .who { font-family: var(--label); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
.transcript .atc .who { color: var(--accent); }
.shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); background: var(--deep); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 10px 14px; font-size: 0.85rem; color: var(--dim); border-top: 1px solid var(--line); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }

/* sections */
section { padding-block: 72px 0; }
.head { display: flex; flex-direction: column; gap: 10px; max-width: 44rem; margin-bottom: 28px; }
.head h2 { font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.5rem); letter-spacing: -0.025em; }
.head p { color: var(--dim); font-size: 1.08rem; }

/* positions */
.positions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.pos { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pos .ico { width: 30px; height: 30px; }
.pos h3 { font-family: var(--label); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; }
.pos ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; color: var(--dim); font-size: 0.95rem; }

/* features */
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 32px; margin-top: 44px; }
.feat { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.feat .badge { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; justify-content: center; }
.feat h3 { font-size: 1.05rem; font-weight: 700; }
.feat p { color: var(--dim); font-size: 0.97rem; margin-top: 4px; }
.feat q { quotes: "\201C" "\201D"; color: var(--fg); font-style: italic; }

/* the name */
.name { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.name .book { width: 120px; height: 150px; }
.name h2 { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.025em; }
.name p { color: var(--dim); margin-top: 10px; max-width: 40rem; }
.name small { display: block; color: var(--dim); font-size: 0.85rem; margin-top: 12px; }

/* cloud */
.cloud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.tile .ico { width: 32px; height: 32px; }
.tile h3 { font-size: 1.12rem; font-weight: 700; }
.tile p { color: var(--dim); font-size: 0.97rem; }

/* preflight + squawks */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.panel h3 { display: flex; align-items: center; gap: 10px; font-family: var(--label); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; }
.check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.check li { display: flex; align-items: baseline; gap: 10px; padding-block: 9px; border-bottom: 1px dashed var(--line); }
.check li:last-child { border-bottom: 0; }
.check .item { flex: 0 1 auto; }
.check .lead { flex: 1 1 auto; border-bottom: 2px dotted var(--line); transform: translateY(-4px); min-width: 16px; }
.check .val { font-family: var(--label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; color: var(--accent); white-space: nowrap; }
.check .val.open { color: var(--red-text); }

.beta { margin-top: 72px; background: var(--deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.beta .wrap { padding-block: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.beta h2 { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.025em; }
.beta p { color: var(--dim); margin-top: 6px; }

/* request form */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 26px; }
.form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.form legend { display: flex; align-items: center; gap: 10px; font-family: var(--label); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0; margin-bottom: 4px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field > label, .qlabel { font-family: var(--label); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.field input[type=text], .field input[type=email], .field select, .field textarea { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-height: 44px; width: 100%; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 0.95rem; }
.pill input:checked + span { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; }
.btn { font: inherit; font-weight: 700; border: 0; border-radius: 999px; padding: 12px 22px; min-height: 44px; background: var(--accent); color: var(--bg); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.btn .ico { color: var(--bg); width: 18px; height: 18px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.status { font-size: 0.95rem; color: var(--dim); }
.status.good { color: var(--accent); }
.status.bad { color: var(--red-text); }

footer .wrap { padding-block: 32px 48px; display: flex; flex-direction: column; gap: 10px; }
footer .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
footer p { color: var(--dim); font-size: 0.85rem; max-width: 52rem; }

@media (max-width: 1040px) {
  .positions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero .wrap, .two, .cloud, .fields, .feats, .sample { grid-template-columns: minmax(0, 1fr); }
  .shot { max-width: 30rem; }
  .positions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .wrap { padding-block: 44px 32px; gap: 32px; }
  .name { grid-template-columns: minmax(0, 1fr); }
  .name .book { width: 90px; height: 112px; }
  .form { padding: 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .log li { animation: rise 500ms ease-out both; }
  .log li:nth-child(2) { animation-delay: 120ms; }
  .log li:nth-child(3) { animation-delay: 240ms; }
  @keyframes rise { from { transform: translateY(6px); } to { transform: none; } }
}

/* One-off styles from the design, as classes (the CSP allows no style attributes) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-14 { margin-top: 14px; }
.mt-8 { margin-top: 8px; }
.mb-0 { margin-bottom: 0; }
.align-right { text-align: right; }
.profile .t-fg { fill: var(--fg); }
.freq-inline { color: var(--accent); font-weight: 700; }
.ico.ico-red { color: var(--red-text); }
.foot-mark { letter-spacing: -0.02em; }
.foot-tag { color: var(--dim); }
.wave i.h15 { height: 15%; }
.wave i.h20 { height: 20%; }
.wave i.h25 { height: 25%; }
.wave i.h30 { height: 30%; }
.wave i.h35 { height: 35%; }
.wave i.h40 { height: 40%; }
.wave i.h45 { height: 45%; }
.wave i.h50 { height: 50%; }
.wave i.h55 { height: 55%; }
.wave i.h60 { height: 60%; }
.wave i.h65 { height: 65%; }
.wave i.h70 { height: 70%; }
.wave i.h75 { height: 75%; }
.wave i.h80 { height: 80%; }
.wave i.h85 { height: 85%; }
.wave i.h90 { height: 90%; }
.wave i.h95 { height: 95%; }
