/* AutismoLab — site stylesheet v4 ("The Window")
   One calm, light theme. Structure comes from type, space and hairlines rather than boxes.
   Colours: Midnight #121A3A · Horizon #4A5AF0 · Deep Horizon #3343D6 · Dawn #FFB38A
            Sand #F5F0E8 · Cloud #E6E9FB · Lagoon #1A7D72 · Frame #2A3463          */

:root {
  color-scheme: light;
  --midnight: #121A3A; --horizon: #4A5AF0; --deep: #3343D6; --dawn: #FFB38A;
  --sand: #F5F0E8; --cloud: #E6E9FB; --lagoon: #1A7D72; --frame: #2A3463;
  --bg: #F5F0E8; --paper: #FFFFFF; --tint: #ECE6DA; --text: #121A3A; --muted: #454C6B;
  --line: #D9D1C2; --accent: #3343D6; --btn-bg: #121A3A; --btn-text: #F5F0E8;
  --night-bg: #121A3A; --night-surface: #1D2650; --night-text: #F5F0E8; --night-muted: #C9CEFA; --night-line: #333D6B;
  --font: "Readex Pro", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --r-s: 0.75rem; --r-m: 1.25rem; --r-l: 2rem;
  --wrap: 75rem; --gutter: clamp(1.25rem, 4vw, 2.5rem); --section: clamp(4.5rem, 9vw, 8rem); --header-h: 4.75rem;
}
/* The site is designed as one light theme. These tokens only apply if a page opts out of it. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; --bg: #0E1531; --paper: #18204A; --tint: #141B40; --text: #F5F0E8; --muted: #C2C7E6; --line: #2C366A; --accent: #A3ADFF; --btn-bg: #F5F0E8; --btn-text: #121A3A; }
}
:root[data-theme="dark"] { color-scheme: dark; --bg: #0E1531; --paper: #18204A; --tint: #141B40; --text: #F5F0E8; --muted: #C2C7E6; --line: #2C366A; --accent: #A3ADFF; --btn-bg: #F5F0E8; --btn-text: #121A3A; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1rem); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.125rem/1.65 var(--font); padding-bottom: env(safe-area-inset-bottom, 0px); }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; color: var(--text); }
:focus-visible { outline: 3px solid var(--horizon); outline-offset: 3px; border-radius: 6px; }
.night :focus-visible, .board :focus-visible, .site-footer :focus-visible { outline-color: var(--dawn); }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -5rem; z-index: 300; background: var(--btn-bg); color: var(--btn-text); padding: 0.8rem 1.25rem; border-radius: 999px; text-decoration: none; }
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 0.75rem); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tint { background: var(--tint); }
.stack { display: grid; gap: 1rem; }
.mono { font-family: var(--mono); }

/* ---------- Type ---------- */
.h-display { font-size: clamp(2.6rem, 5.6vw, 5.1rem); line-height: 1.03; letter-spacing: -0.03em; }
.h-section { font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.08; }
.h-card { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.125rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--muted); max-width: 36em; }
.muted { color: var(--muted); }
.kicker { font-size: 1rem; font-weight: 500; color: var(--accent); }
.night .kicker { color: var(--dawn); }
.section-head { display: grid; gap: 1.1rem; max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; gap: 1.5rem clamp(2rem, 6vw, 5rem); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 3rem; padding: 0.75rem 1.4rem; border-radius: 999px; font: 500 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; text-align: center; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.btn svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { background: var(--deep); color: #FFFFFF; }
.btn-sky { background: var(--horizon); color: #FFFFFF; }
.btn-sky:hover { background: var(--deep); color: #FFFFFF; }
.btn-dawn { background: var(--dawn); color: var(--midnight); }
.btn-dawn:hover { background: #FFC9AB; color: var(--midnight); }
.btn-ghost { background: transparent; color: var(--text); border-color: currentColor; }
.btn-ghost:hover { background: var(--text); color: var(--bg); }
.night .btn-ghost { color: var(--night-text); }
.night .btn-ghost:hover { background: var(--night-text); color: var(--night-bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: start; text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: baseline; color: var(--text); text-decoration: none; font-weight: 500; font-size: 1.5rem; letter-spacing: -0.035em; white-space: nowrap; }
.logo b { font-weight: 700; }
.logo-o { height: 0.74em; width: 0.533em; margin: 0 0.03em; overflow: visible; }
.logo-o .sun { animation: sunrise 1.8s cubic-bezier(.2,.7,.2,1) .4s both; transform-box: fill-box; }
@keyframes sunrise { from { transform: translateY(60%); } to { transform: none; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav ul { display: flex; list-style: none; gap: 1.35rem; font-size: 1rem; }
.main-nav ul a { color: var(--text); text-decoration: none; white-space: nowrap; padding-block: 0.4rem; }
.main-nav ul a:hover, .main-nav ul a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.header-actions { display: flex; align-items: center; gap: 0.55rem; }
.header-actions .btn, .main-nav .btn { white-space: nowrap; }
.header-actions .btn { min-height: 2.75rem; padding: 0.55rem 1.1rem; font-size: 0.9688rem; }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.8rem; border-radius: 999px; background: transparent; color: var(--text); border: 1.5px solid var(--line); font: 500 0.9375rem/1 var(--font); cursor: pointer; text-decoration: none; }
.icon-btn:hover { border-color: var(--text); }
.icon-btn svg { width: 1.2rem; height: 1.2rem; flex-shrink: 0; }
.nav-toggle { display: none; }
/* Compact menu: switched on by the script whenever the full menu doesn't fit
   (any language, any text size). The media query is a fallback without JavaScript. */
html.nav-compact .nav-toggle { display: inline-flex; }
html.nav-compact .main-nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter) 1.5rem; flex-direction: column; align-items: stretch; gap: 1rem; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
html.nav-compact .main-nav.is-open { display: flex; }
html.nav-compact .main-nav ul { flex-direction: column; gap: 0; font-size: 1.1875rem; }
html.nav-compact .main-nav ul a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
html.nav-compact .hide-compact { display: none; }
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter) 1.5rem; flex-direction: column; align-items: stretch; gap: 1rem; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; font-size: 1.1875rem; }
  .main-nav ul a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .hide-compact { display: none; }
}
@media (max-width: 560px) { .btn-label-long { display: none; } }

/* ---------- Hero ---------- */
.hero, .inv-hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.hero-copy { display: grid; gap: 1.5rem; }
.hero-tag { font-size: 1.0625rem; color: var(--muted); }
.hero-proof { list-style: none; display: grid; gap: 0.55rem; margin-top: 0.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.9688rem; color: var(--muted); }
.hero-proof li { display: flex; gap: 0.6rem; align-items: baseline; }
.hero-proof svg { width: 1rem; height: 1rem; color: var(--lagoon); flex-shrink: 0; transform: translateY(0.15em); }
.hero-visual { position: relative; width: 100%; max-width: 26rem; justify-self: center; }
/* the signature element: a real photo seen through a cabin window */
.window { position: relative; aspect-ratio: 100 / 136; width: 100%; background: var(--frame); border-radius: 46% / 33.8%; padding: 14%; box-shadow: 0 2.5rem 4rem -2rem rgba(18, 26, 58, 0.5); }
.window img { width: 100%; height: 100%; object-fit: cover; border-radius: 44.4% / 29.6%; }
.hero-visual::before { content: ""; position: absolute; width: 38%; aspect-ratio: 1; border-radius: 50%; background: var(--dawn); inset-inline-end: -9%; top: 8%; z-index: -1; animation: hero-sun 2.2s cubic-bezier(.2,.7,.2,1) .2s both; }
@keyframes hero-sun { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
.session-chip { position: absolute; inset-inline-start: -12%; bottom: -5%; width: min(16.5rem, 78%); background: var(--paper); color: var(--text); border-radius: var(--r-m); padding: 1rem 1.1rem; box-shadow: 0 1.25rem 2.5rem -1rem rgba(18, 26, 58, 0.35); display: grid; gap: 0.55rem; }
.session-chip .live { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.875rem; color: var(--muted); }
.session-chip .live::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--lagoon); }
.session-chip strong { font-weight: 500; font-size: 1.0625rem; }
.steps-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.25rem; list-style: none; font-size: 0.75rem; line-height: 1.2; text-align: center; }
.steps-mini li { padding: 0.4rem 0.1rem; border-radius: 0.45rem; background: var(--cloud); color: var(--midnight); }
.steps-mini li[aria-current="step"] { background: var(--dawn); }
.steps-mini li.todo { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.session-chip small { font-size: 0.875rem; color: var(--muted); }

/* ---------- Featured strip ---------- */
.featured { border-block: 1px solid var(--line); }
.featured-inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 2rem; padding-block: 1.3rem; }
.featured-inner span { font-weight: 500; font-size: 1.0625rem; color: var(--muted); }
.featured-inner .label { font-weight: 400; font-size: 0.9688rem; }

/* ---------- Night sections (used sparingly) ---------- */
.night { background: var(--night-bg); color: var(--night-text); }
.night .lead, .night .muted { color: var(--night-muted); }
.night a { color: var(--dawn); }
.night a:hover { color: #FFFFFF; }

/* ---------- Feature lists: hairlines, not boxes ---------- */
.grid { display: grid; gap: 2.25rem clamp(1.5rem, 4vw, 3rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: grid; gap: 0.6rem; align-content: start; padding-top: 1.25rem; border-top: 2px solid var(--text); }
.card p { color: var(--muted); }
.card-icon { color: var(--accent); }
.card-icon svg { width: 1.6rem; height: 1.6rem; }
.night .card { border-top-color: var(--night-line); }
.night .card p { color: var(--night-muted); }
.night .card-icon { color: var(--dawn); }

/* ---------- Media split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.feature-list { list-style: none; display: grid; gap: 1.1rem; margin-top: 0.5rem; }
.feature-list li { display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.feature-list .num { font-family: var(--mono); font-size: 0.875rem; color: var(--accent); padding-top: 0.2rem; }
.feature-list strong { font-weight: 600; display: block; }
.feature-list span { color: var(--muted); }
.photo { border-radius: var(--r-l); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-caption { font-size: 0.9375rem; color: var(--muted); margin-top: 0.75rem; }
.night .photo-caption { color: var(--night-muted); }

/* ---------- How it works: four windows on a flight path ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); position: relative; }
.steps::before { content: ""; position: absolute; top: 2.3rem; inset-inline: 2rem; border-top: 2px dashed var(--horizon); opacity: .45; z-index: 0; }
.step { position: relative; z-index: 1; display: grid; gap: 0.6rem; align-content: start; }
.step svg { width: 3.4rem; height: auto; background: var(--bg); padding-inline: 0.35rem; box-sizing: content-box; }
.step .num { font-family: var(--mono); font-size: 0.875rem; color: var(--accent); }
.step p { color: var(--muted); }
.how-motion { margin-bottom: 3rem; }

/* ---------- Clinical approach ---------- */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4rem); border-top: 2px solid var(--text); }
.principle { padding-block: 1.5rem; border-bottom: 1px solid var(--line); display: grid; gap: 0.45rem; }
.principle h3 { font-size: 1.25rem; }
.principle p { color: var(--muted); }
.callout { margin-top: 2.25rem; display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; padding: 1.1rem 1.25rem; background: var(--paper); border-radius: var(--r-s); border-inline-start: 4px solid var(--dawn); }
.callout svg { width: 1.4rem; height: 1.4rem; color: var(--accent); }

/* ---------- Library: departures board ---------- */
.board { background: var(--midnight); color: var(--night-text); border-radius: var(--r-l); padding: clamp(0.75rem, 2vw, 1.5rem) clamp(1rem, 3vw, 2rem); overflow-x: auto; }
.board-table { width: 100%; border-collapse: collapse; }
.board-table th, .board-table td { text-align: start; padding: 1rem 0.75rem; border-bottom: 1px solid #2A3463; vertical-align: middle; }
.board-table thead th { font-size: 0.875rem; font-weight: 500; color: #A9B0DD; padding-block: 0.75rem; }
.board-table tbody tr:last-child th, .board-table tbody tr:last-child td { border-bottom: 0; }
.board-table tbody th { font-weight: 500; font-size: 1.125rem; }
.board-table td { color: #C9CEFA; }
.board-journey { display: flex; align-items: center; gap: 0.85rem; }
.board-journey svg { flex-shrink: 0; }
.st { display: inline-block; white-space: nowrap; font-size: 0.875rem; font-weight: 500; padding: 0.35rem 0.75rem; border-radius: 999px; border: 1px solid #4A5486; color: #C9CEFA; }
.st--live { background: var(--dawn); border-color: var(--dawn); color: var(--midnight); }
.is-live th { color: #FFFFFF; }
.board-note { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.board-note p { max-width: 42rem; color: var(--muted); }

/* ---------- Academy ---------- */
.academy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.track { display: grid; gap: 0.9rem; align-content: start; padding-top: 1.25rem; border-top: 4px solid var(--midnight); }
.track--school { border-top-color: var(--horizon); }
.track--family { border-top-color: var(--dawn); }
.track h3 { font-size: 1.4rem; }
.track-meta { font-size: 0.9375rem; color: var(--muted); }
.track ul { list-style: none; display: grid; gap: 0.55rem; }
.track li { display: grid; grid-template-columns: 1.2rem 1fr; gap: 0.55rem; }
.track li svg { width: 1.05rem; height: 1.05rem; margin-top: 0.3rem; color: var(--lagoon); }
.academy-foot { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding: 1.5rem; background: var(--paper); border-radius: var(--r-m); }
.mini { display: grid; gap: 0.3rem; align-content: start; }
.mini strong { font-weight: 600; }
.mini span { color: var(--muted); font-size: 0.9688rem; }

/* ---------- Who it's for ---------- */
.audience a { display: grid; gap: 0.6rem; align-content: start; padding-top: 1.25rem; border-top: 2px solid var(--text); color: var(--text); text-decoration: none; }
.audience .t { font-size: 1.25rem; font-weight: 500; line-height: 1.25; }
.audience .d { color: var(--muted); }
.audience .cta { color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; font-weight: 500; }
.audience a:hover .cta { text-decoration-thickness: 2px; }

/* ---------- Interactive journey ---------- */
.exp { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.exp-stage { display: grid; justify-items: center; gap: 1.25rem; }
.exp-window { width: min(100%, 20rem); height: auto; filter: drop-shadow(0 2rem 3rem rgba(0, 0, 0, 0.35)); }
.exp-window .sky { transition: fill .9s ease; }
.exp-window .sun, .exp-window .ground, .exp-window .clouds, .exp-window .terminal, .exp-window .seats { transition: transform .9s cubic-bezier(.3,.7,.2,1), opacity .9s ease; }
.exp[data-step="0"] .sky { fill: #222C5C; } .exp[data-step="1"] .sky { fill: #34419F; } .exp[data-step="2"] .sky { fill: #4A5AF0; } .exp[data-step="3"] .sky { fill: #5F6EF3; }
.exp[data-step="0"] .sun { transform: translateY(70px); } .exp[data-step="1"] .sun { transform: translateY(38px); } .exp[data-step="2"] .sun { transform: none; } .exp[data-step="3"] .sun { transform: translateY(-44px); }
.exp[data-step="2"] .ground { transform: translateY(120px); }
.exp .clouds { opacity: 0; transform: translateY(20px); }
.exp[data-step="2"] .clouds { opacity: 1; transform: none; } .exp[data-step="3"] .clouds { opacity: .55; transform: translateY(-10px); }
.exp .terminal { opacity: 0; } .exp[data-step="0"] .terminal { opacity: 1; }
.exp .seats { opacity: 0; transform: translateY(16px); }
.exp[data-step="1"] .seats, .exp[data-step="2"] .seats, .exp[data-step="3"] .seats { opacity: 1; transform: none; }
.exp .crowd circle { opacity: 0; transition: opacity .5s ease; }
.exp[data-crowd="0"] .crowd .c0, .exp[data-crowd="1"] .crowd .c0, .exp[data-crowd="1"] .crowd .c1, .exp[data-crowd="2"] .crowd circle { opacity: 1; }
.exp-meters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.meter { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--night-surface); border-radius: 999px; padding: 0.5rem 0.95rem; font-size: 0.9375rem; }
.meter svg { width: 1.1rem; height: 1.1rem; color: var(--dawn); flex-shrink: 0; }
.bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 1rem; }
.bars i { width: 4px; border-radius: 2px; background: #3A4475; }
.bars i:nth-child(1) { height: 35%; } .bars i:nth-child(2) { height: 65%; } .bars i:nth-child(3) { height: 100%; }
.exp[data-sound="1"] .bars i:nth-child(1), .exp[data-sound="2"] .bars i { background: var(--dawn); }
.exp-panel { display: grid; gap: 1.25rem; }
.exp-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; }
.exp-tab { font: 500 0.9688rem/1.25 var(--font); color: var(--night-text); background: transparent; border: 1.5px solid var(--night-line); border-radius: var(--r-s); padding: 0.7rem 0.4rem; min-height: 3.5rem; cursor: pointer; display: grid; gap: 0.2rem; justify-items: center; }
.exp-tab .n { font-family: var(--mono); font-size: 0.75rem; color: var(--night-muted); }
.exp-tab:hover { border-color: var(--dawn); }
.exp-tab[aria-selected="true"] { background: var(--dawn); border-color: var(--dawn); color: var(--midnight); }
.exp-tab[aria-selected="true"] .n { color: var(--midnight); }
.exp-card { background: var(--night-surface); border-radius: var(--r-m); padding: clamp(1.25rem, 3vw, 1.75rem); display: grid; gap: 0.9rem; min-height: 14rem; align-content: start; }
.exp-card h3 { font-size: 1.5rem; }
.exp-card dl { margin: 0; display: grid; gap: 0.9rem; }
.exp-card dt { font-size: 0.9375rem; color: var(--dawn); font-weight: 500; }
.exp-card dd { margin: 0.2rem 0 0; color: var(--night-muted); }
.exp-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.exp-controls fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.exp-controls legend { font-size: 0.9688rem; font-weight: 500; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.45rem; padding: 0; }
.exp-controls legend svg { width: 1.1rem; height: 1.1rem; color: var(--dawn); }
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35rem; }
.chips label { position: relative; display: block; }
.chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chips span { display: block; text-align: center; padding: 0.6rem 0.3rem; border-radius: var(--r-s); border: 1.5px solid var(--night-line); font-size: 0.9375rem; }
.chips input:checked + span { background: var(--night-text); color: var(--night-bg); border-color: var(--night-text); }
.chips input:focus-visible + span { outline: 3px solid var(--dawn); outline-offset: 2px; }
.exp-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: space-between; }
.exp-note { font-size: 0.9375rem; color: var(--night-muted); }

/* ---------- Flight lab ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 0.5rem; }
.stats > div { border-top: 1px solid var(--night-line); padding-top: 0.9rem; }
.stats .n { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.stats .n.first { color: var(--dawn); }
.stats .l { font-size: 0.9375rem; color: var(--night-muted); }
.video { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-l); overflow: hidden; background: #2A3463; }
.video a { position: absolute; inset: 0; display: block; color: #FFFFFF; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.video .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video .play > span { width: 4.75rem; height: 4.75rem; border-radius: 50%; background: var(--dawn); display: grid; place-items: center; }
.video .play svg { width: 1.6rem; height: 1.6rem; color: var(--midnight); margin-inline-start: 0.2rem; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.quote { margin: 0; padding-inline-start: clamp(1.25rem, 3vw, 2rem); border-inline-start: 3px solid var(--dawn); display: grid; gap: 1rem; max-width: 52rem; }
.quote blockquote { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.45; }
.quote figcaption { color: var(--dawn); }
/* window-row gallery: real photos seen along a cabin */
.fuselage { display: grid; gap: 1.25rem; }
.fuselage-title { font-size: 1rem; color: var(--night-muted); }
.fuselage ul { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(0.75rem, 2vw, 1.5rem); }
.fuselage figure { margin: 0; display: grid; gap: 0.75rem; }
.cabin-win { aspect-ratio: 100 / 136; background: var(--frame); border-radius: 46% / 33.8%; padding: 11%; }
.cabin-win img { width: 100%; height: 100%; object-fit: cover; border-radius: 44% / 30%; }
.fuselage figcaption { font-size: 0.9375rem; color: var(--night-muted); text-align: center; }

/* ---------- Research, recognition, founder, news ---------- */
.paper { display: grid; gap: 0.8rem; align-content: start; padding: clamp(1.5rem, 3vw, 2rem); background: var(--paper); border-radius: var(--r-m); }
.paper .meta { font-size: 0.9375rem; color: var(--accent); font-weight: 500; }
.paper h3 { font-size: 1.25rem; line-height: 1.35; }
.paper p { color: var(--muted); }
.paper a { font-weight: 500; }
.note { margin-top: 1.5rem; font-size: 0.9688rem; color: var(--muted); max-width: 52rem; }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; border-top: 2px solid var(--text); }
.timeline li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.timeline .when { font-size: 0.9375rem; color: var(--accent); font-weight: 500; }
.timeline strong { font-weight: 600; display: block; }
.timeline span { color: var(--muted); }
.recog-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 0.7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.founder-photos .photo { aspect-ratio: 4 / 5; max-width: 28rem; }
.founder-quote { font-size: 1.375rem; line-height: 1.45; border-inline-start: 3px solid var(--dawn); padding-inline-start: 1.1rem; }
.facts { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; }
.facts .n { font-size: 2rem; font-weight: 500; line-height: 1.1; }
.facts .l { font-size: 0.9375rem; color: var(--muted); }
.news-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.news-feature { position: relative; display: grid; border-radius: var(--r-l); overflow: hidden; background: var(--midnight); color: #F5F0E8; text-decoration: none; min-height: 26rem; }
.news-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.news-feature .body { position: relative; align-self: end; padding: clamp(1.5rem, 3vw, 2rem); display: grid; gap: 0.7rem; background: linear-gradient(to top, rgba(18,26,58,0.96) 45%, rgba(18,26,58,0)); }
.news-feature .meta { font-size: 0.9375rem; color: var(--dawn); }
.news-feature h3 { font-size: 1.6rem; line-height: 1.25; }
.news-feature p { color: #D7DAF2; }
.news-feature .more { color: var(--dawn); font-weight: 500; text-decoration: underline; text-underline-offset: 0.2em; }
.news-list { list-style: none; border-top: 2px solid var(--text); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: grid; gap: 0.25rem; padding-block: 1rem; color: var(--text); text-decoration: none; }
.news-list a:hover span:last-child { text-decoration: underline; }
.news-list .meta { font-size: 0.9375rem; color: var(--accent); }

/* ---------- Bands ---------- */
.band-stack { display: grid; gap: 1rem; }
.band { border-radius: var(--r-l); padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 1.5rem 3rem; align-items: center; }
.band h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.band-copy { display: grid; gap: 0.9rem; }
.band--night { background: var(--horizon); color: #FFFFFF; }
.band--night p { color: #EEF0FF; }
.band--sky { background: transparent; border: 2px solid var(--text); color: var(--text); }
.band--sky p { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 2rem clamp(2rem, 6vw, 5rem); }
.faq { border-top: 2px solid var(--text); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.2rem 0; font-size: 1.125rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; line-height: 1; flex-shrink: 0; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.25rem; color: var(--muted); max-width: 44rem; }

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); }
.contact-points { display: grid; gap: 0.35rem; margin-top: 0.5rem; }
.contact-points a { font-size: 1.25rem; justify-self: start; }
.form-card { background: var(--paper); color: var(--midnight); border-radius: var(--r-l); padding: clamp(1.5rem, 4vw, 2.25rem); display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field label, .field legend { font-size: 1rem; font-weight: 500; }
.hint { font-weight: 400; font-size: 0.9375rem; color: #4B5270; }
.field input, .field select, .field textarea { font: 400 1rem/1.4 var(--font); color: var(--midnight); background: #FFFFFF; border: 1.5px solid #9C94A6; border-radius: var(--r-s); padding: 0.8rem 0.9rem; width: 100%; min-height: 3rem; }
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--horizon); outline: 3px solid rgba(74, 90, 240, 0.3); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #B3261E; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem 1rem; margin-top: 0.3rem; }
.checks label { display: flex; align-items: flex-start; gap: 0.55rem; font-weight: 400; font-size: 1rem; cursor: pointer; }
.checks input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--deep); flex-shrink: 0; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.form-status { font-size: 1rem; min-height: 1.5rem; }
.form-status.is-error { color: #B3261E; }
.form-done { display: grid; gap: 0.75rem; text-align: start; padding: 0.5rem 0; }
.done-gif { width: 11rem; height: auto; border-radius: var(--r-m); }
.form-small { font-size: 0.9375rem; color: #4B5270; }

/* ---------- Early-access dialog ---------- */
dialog.sheet { width: min(40rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: var(--r-l); background: var(--sand); color: var(--midnight); overflow: auto; box-shadow: 0 2rem 5rem rgba(10, 16, 40, 0.45); }
dialog.sheet::backdrop { background: rgba(10, 16, 40, 0.55); }
dialog.sheet[open] { animation: sheet-in .25s ease-out; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }
.sheet-head { background: var(--midnight); color: #F5F0E8; padding: 1.5rem; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: start; }
.sheet-head h2 { font-size: 1.5rem; }
.sheet-head p { color: #C9CEFA; font-size: 1rem; margin-top: 0.4rem; }
.sheet-close { background: transparent; border: 1.5px solid #3A4475; color: #F5F0E8; width: 2.75rem; height: 2.75rem; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.sheet-close svg { width: 1.1rem; height: 1.1rem; }
.sheet-body { padding: 1.5rem; display: grid; gap: 1.1rem; }
.build-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.35rem; list-style: none; }
.build-progress li { font-size: 0.8125rem; text-align: center; padding: 0.5rem 0.2rem; border-radius: 0.5rem; background: #E8E2D6; color: #3F4563; }
.build-progress li.done { background: var(--lagoon); color: #FFFFFF; }
.build-progress li.now { background: var(--dawn); color: var(--midnight); font-weight: 500; }

/* ---------- Motion figures: every GIF can be played and paused ---------- */
.motion { margin: 0; }
.motion-frame { position: relative; border-radius: var(--r-m); overflow: hidden; background: var(--paper); }
.motion-frame img { width: 100%; height: auto; }
.motion-btn { position: absolute; inset-inline-end: 0.75rem; bottom: 0.75rem; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.75rem; padding: 0.5rem 1rem; border-radius: 999px; background: var(--midnight); color: #F5F0E8; border: 0; cursor: pointer; font: 500 0.9375rem/1 var(--font); }
.motion-btn:hover { background: var(--deep); }
.motion-btn svg { width: 0.95rem; height: 0.95rem; flex-shrink: 0; }
.motion-btn .ico-pause { display: none; }
.motion.is-playing .motion-btn .ico-pause { display: block; }
.motion.is-playing .motion-btn .ico-play { display: none; }

/* ---------- Media kit ---------- */
.kit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.kit-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Investors ---------- */
.need-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.need { display: grid; gap: 0.5rem; align-content: start; padding-top: 1.25rem; border-top: 1px solid var(--night-line); }
.need .n { font-size: clamp(2.4rem, 4.6vw, 3.4rem); font-weight: 500; line-height: 1.05; color: var(--dawn); }
.need p { color: var(--night-text); }
.need .src { font-size: 0.875rem; color: var(--night-muted); }
.layers { display: grid; gap: 0; border-top: 2px solid var(--text); }
.layer { display: grid; grid-template-columns: 2.25rem 1fr; gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.layer .badge { color: var(--accent); padding-top: 0.15rem; }
.layer .badge svg { width: 1.5rem; height: 1.5rem; }
.layer p { color: var(--muted); }
.table-scroll { overflow-x: auto; }
.model-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--text); }
.model-table th, .model-table td { text-align: start; padding: 1rem 0.9rem 1rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.model-table thead th { font-size: 0.9375rem; font-weight: 500; color: var(--muted); }
.model-table td { color: var(--muted); }
.model-table td:first-child { color: var(--text); font-weight: 600; width: 26%; }
.roadmap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.phase { display: grid; gap: 0.7rem; align-content: start; padding-top: 1.1rem; border-top: 4px solid var(--line); }
.phase--done { border-top-color: var(--lagoon); }
.phase--now { border-top-color: var(--dawn); }
.phase .when { font-size: 0.9375rem; color: var(--accent); font-weight: 500; }
.phase h3 { font-size: 1.25rem; }
.phase ul { list-style: none; display: grid; gap: 0.45rem; }
.phase li { color: var(--muted); padding-inline-start: 1rem; position: relative; }
.phase li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.65em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--horizon); }
.support-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem clamp(1.5rem, 4vw, 3rem); }
.support { display: grid; gap: 0.6rem; align-content: start; padding-top: 1.25rem; border-top: 2px solid var(--text); }
.support h3 { font-size: 1.25rem; }
.support p { color: var(--muted); }
.support .eg { font-size: 0.9375rem; padding-top: 0.6rem; border-top: 1px dashed var(--line); }
.support .card-icon { color: var(--accent); }
.funds { list-style: none; display: grid; gap: 0; border-top: 2px solid var(--text); }
.funds li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; align-items: center; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.funds li svg { width: 2.4rem; height: auto; }
.funds strong { font-weight: 600; display: block; }
.funds span { color: var(--muted); }
.impact { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3rem); border-top: 2px solid var(--text); }
.impact li { padding-block: 1.1rem; border-bottom: 1px solid var(--line); display: grid; gap: 0.3rem; }
.impact strong { font-weight: 600; }
.impact span { color: var(--muted); }
.team-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.team-card { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.25rem; align-items: center; padding: 1.25rem; background: var(--paper); border-radius: var(--r-m); }
.team-card img { width: 6.5rem; height: 6.5rem; object-fit: cover; border-radius: 46% / 40%; }
.team-card p { color: var(--muted); font-size: 0.9688rem; }
.team-grid .mini { padding: 1.25rem; background: var(--paper); border-radius: var(--r-m); }
.disclaimer { font-size: 0.9375rem; color: var(--muted); max-width: 52rem; }

/* ---------- Accessibility panel ---------- */
.a11y-panel { position: fixed; z-index: 60; inset-inline-end: max(1rem, env(safe-area-inset-right, 0px)); top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 0.5rem); width: min(22rem, calc(100vw - 2rem)); max-height: calc(100dvh - var(--header-h) - 2rem); overflow-y: auto; background: var(--paper); color: var(--text); border: 1.5px solid var(--line); border-radius: var(--r-m); box-shadow: 0 1.5rem 3rem rgba(10, 16, 40, 0.2); padding: 1.25rem; display: grid; gap: 1rem; }
.a11y-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.a11y-panel h2 { font-size: 1.25rem; }
.a11y-panel p { font-size: 0.9688rem; color: var(--muted); }
.a11y-sub { margin-bottom: 0.4rem; color: var(--text) !important; font-weight: 500; }
.a11y-small { font-size: 0.875rem !important; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; }
.seg button, .toggle { font: 500 1rem/1.2 var(--font); border: 1.5px solid var(--line); background: var(--bg); color: var(--text); border-radius: var(--r-s); padding: 0.65rem; cursor: pointer; min-height: 2.75rem; }
.seg button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.toggle { display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 0.75rem; align-items: center; text-align: start; width: 100%; }
.toggle small { grid-column: 1; color: var(--muted); font-weight: 400; font-size: 0.875rem; }
.toggle .sw { grid-row: 1 / span 2; grid-column: 2; width: 2.75rem; height: 1.6rem; border-radius: 999px; background: #B8B0A0; position: relative; }
.toggle .sw::after { content: ""; position: absolute; inset-inline-start: 0.2rem; top: 0.2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #FFFFFF; transition: transform .2s ease; }
.toggle[aria-pressed="true"] .sw { background: var(--lagoon); }
.toggle[aria-pressed="true"] .sw::after { transform: translateX(1.15rem); }
[dir="rtl"] .toggle[aria-pressed="true"] .sw::after { transform: translateX(-1.15rem); }
.a11y-panel .reset { background: none; border: 0; color: var(--accent); font: 500 1rem var(--font); text-decoration: underline; cursor: pointer; justify-self: start; padding: 0; }
html[data-a11y-text="1"] { font-size: 112.5%; }
html[data-a11y-text="2"] { font-size: 125%; }
html[data-a11y-font="readable"] body, html[data-a11y-font="readable"] .btn, html[data-a11y-font="readable"] input, html[data-a11y-font="readable"] select, html[data-a11y-font="readable"] textarea { font-family: "Atkinson Hyperlegible", var(--font); letter-spacing: 0.02em; word-spacing: 0.08em; }
html[dir="rtl"][data-a11y-font="readable"] body, html[dir="rtl"][data-a11y-font="readable"] .btn { font-family: var(--font); line-height: 2; word-spacing: 0.15em; letter-spacing: 0; }
html[data-a11y-links="1"] a { text-decoration: underline !important; text-decoration-thickness: 2px !important; }
html[data-a11y-links="1"] .btn, html[data-a11y-links="1"] button { outline: 2px solid currentColor; outline-offset: 2px; }
html[data-a11y-calm="1"] *, html[data-a11y-calm="1"] *::before, html[data-a11y-calm="1"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-a11y-calm="1"] .splash { display: none !important; }
html[data-a11y-calm="1"] img { filter: saturate(0.8); }
html[data-a11y-contrast="1"] { --bg: #FFFFFF; --paper: #FFFFFF; --tint: #FFFFFF; --text: #000000; --muted: #000000; --line: #000000; --accent: #0000CC; --btn-bg: #000000; --btn-text: #FFFFFF; --night-bg: #000000; --night-surface: #000000; --night-text: #FFFFFF; --night-muted: #FFFFFF; --night-line: #FFFFFF; }
html[data-a11y-contrast="1"] .board, html[data-a11y-contrast="1"] .band--night { background: #000000; }
html[data-a11y-contrast="1"] .board-table td, html[data-a11y-contrast="1"] .board-table thead th { color: #FFFFFF; }
html[data-a11y-contrast="1"] .paper, html[data-a11y-contrast="1"] .form-card, html[data-a11y-contrast="1"] .exp-card { border: 2px solid currentColor; }

/* ---------- Footer ---------- */
.site-footer { background: var(--midnight); color: #C9CEFA; padding-block: 3.5rem 2.5rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem; }
.footer-brand { max-width: 22rem; display: grid; gap: 0.75rem; }
.footer-brand .logo { color: #F5F0E8; font-size: 1.75rem; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 2.5rem 3.5rem; }
.footer-cols h2 { font-size: 1rem; font-weight: 500; color: #A9B0DD; margin-bottom: 0.6rem; letter-spacing: 0; }
.footer-cols ul { list-style: none; display: grid; gap: 0.5rem; }
.footer-cols a, .site-footer .link-btn { color: #F5F0E8; text-decoration: none; }
.footer-cols a:hover, .site-footer .link-btn:hover { text-decoration: underline; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #2A3463; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; font-size: 0.9375rem; }

/* ---------- Intro screen (critical rules also inlined in each page) ---------- */
.splash-skip { font: 500 1rem/1 var(--font); color: var(--midnight); background: transparent; border: 1.5px solid rgba(18, 26, 58, 0.4); border-radius: 999px; padding: 0.75rem 1.4rem; min-height: 2.75rem; cursor: pointer; }
.splash-skip:hover { border-color: var(--midnight); }
html.has-splash:not(.splash-out) body { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4, .academy-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fuselage ul { grid-template-columns: repeat(5, minmax(9rem, 1fr)); overflow-x: auto; padding-bottom: 0.75rem; scroll-snap-type: x mandatory; }
  .fuselage li { scroll-snap-align: start; }
}
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid, .faq-grid, .recog-grid, .news-grid, .team-grid, .exp, .section-head--split { grid-template-columns: minmax(0, 1fr); }
  .grid-3, .need-grid, .support-grid, .impact, .academy-grid, .kit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roadmap, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
  .band { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 22rem; }
  .session-chip { inset-inline-start: -6%; }
  .recog-grid .photo { max-width: 20rem; }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .grid-2, .grid-3, .grid-4, .need-grid, .support-grid, .impact, .academy-grid, .academy-foot, .kit-grid, .roadmap, .steps, .principles, .timeline, .form-row, .checks, .exp-controls { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .exp-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exp-window { width: min(100%, 15rem); }
  .timeline li { grid-template-columns: 1fr; gap: 0.2rem; }
  .hero-visual { max-width: 19rem; }
  .session-chip { position: relative; inset-inline-start: auto; bottom: auto; width: 100%; margin-top: 1rem; }
  .board { padding: 0.5rem 1rem; }
  .board-table thead { display: none; }
  .board-table tr { display: grid; gap: 0.4rem; padding-block: 1rem; border-bottom: 1px solid #2A3463; }
  .board-table tbody tr:last-child { border-bottom: 0; }
  .board-table th, .board-table td { display: block; padding: 0; border: 0; }
  .model-table td:first-child { width: auto; }
  .team-card { grid-template-columns: 4.5rem 1fr; }
  .team-card img { width: 4.5rem; height: 4.5rem; }
  .sheet-head { grid-template-columns: minmax(0, 1fr) auto; padding: 1.25rem; }
  .sheet-head > svg:first-child { display: none; }
  .sheet-body { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Arabic (right to left) ---------- */
[dir="rtl"] body { line-height: 1.85; }
[dir="rtl"] body * { letter-spacing: 0; }
[dir="rtl"] .logo { letter-spacing: -0.035em; }
[dir="rtl"] .logo * { letter-spacing: inherit; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.35; }
[dir="rtl"] .h-display { font-size: clamp(2.3rem, 5vw, 4.2rem); line-height: 1.3; }
[dir="rtl"] .exp-tab .n, [dir="rtl"] .steps-mini { font-family: var(--font); }
[dir="rtl"] input[type="email"] { text-align: right; }

@media print {
  .site-header, .a11y-panel, dialog, .site-footer, .band, .splash { display: none !important; }
  body { background: #FFFFFF; color: #000000; }
}

/* ---------- Cabin sound controls ---------- */
.exp-audio { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem 1.25rem; align-items: center; padding: 1rem 1.1rem; border: 1.5px solid var(--night-line); border-radius: var(--r-m); }
.exp-sound-btn[aria-pressed="true"] { background: var(--dawn); border-color: var(--dawn); color: var(--midnight); }
.exp-volume { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9375rem; color: var(--night-muted); }
.exp-volume input { flex: 1; min-width: 6rem; accent-color: var(--dawn); height: 2.75rem; }
.exp-sound-note { grid-column: 1 / -1; font-size: 0.9063rem; color: var(--night-muted); }
@media (max-width: 640px) { .exp-audio { grid-template-columns: minmax(0, 1fr); } }

/* Very narrow phones: keep every header control inside the screen */
@media (max-width: 400px) {
  .logo { font-size: 1.3rem; }
  .header-actions { gap: 0.35rem; }
  .header-actions .btn { padding: 0.5rem 0.85rem; }
  .icon-btn { min-width: 2.75rem; padding: 0 0.6rem; }
}
@media (max-width: 360px) {
  .logo { font-size: 1.15rem; }
  .header-actions { gap: 0.25rem; }
  .header-actions .btn { padding: 0.45rem 0.7rem; font-size: 0.875rem; }
  .icon-btn { min-width: 2.75rem; padding: 0 0.5rem; }
}

/* ---------- Header v7: same style, responsive ----------
   The header spans the full window (not the 1200px content column), and its text, gaps and
   buttons scale with the screen. Laptops and desktops keep the full menu; phones and small
   tablets (up to 1100px) use the menu button. */
.site-header .wrap { max-width: 100rem; padding-inline: clamp(1rem, 2.4vw, 2.5rem); }
.header-inner { gap: clamp(0.75rem, 1.4vw, 1.5rem); }
.main-nav { gap: clamp(0.85rem, 1.3vw, 1.6rem); }
.main-nav ul { gap: clamp(0.7rem, 1.15vw, 1.35rem); font-size: clamp(0.875rem, 0.62rem + 0.36vw, 1rem); }
.header-actions { gap: clamp(0.35rem, 0.6vw, 0.55rem); }
.main-nav .btn, .header-actions .btn { min-height: 2.75rem; padding: 0.5rem clamp(0.85rem, 1.1vw, 1.15rem); font-size: clamp(0.875rem, 0.7rem + 0.22vw, 0.9688rem); }
.a11y-label { display: none; }
@media (min-width: 1600px) { .a11y-label { display: inline; position: static; width: auto; height: auto; overflow: visible; clip-path: none; } }
@media (min-width: 1101px) and (max-width: 1280px) { .btn-label-long { display: none; } }
/* the decorative sun behind the hero window never widens the page */
.hero, .inv-hero { overflow-x: hidden; overflow-x: clip; }

/* ---------- Phones: open on the photo, tidy buttons ---------- */
@media (max-width: 640px) {
  .hero, .inv-hero { padding-top: 1.75rem; }
  .hero-grid { display: flex; flex-direction: column; gap: 1.75rem; }
  .hero-visual { order: -1; max-width: 13.5rem; align-self: center; }
  .hero-visual::before { width: 34%; inset-inline-end: -6%; }
  .session-chip { display: none; }
  .hero-copy .btn-row, .band .btn-row, .board-note, .kit-actions { flex-direction: column; align-items: stretch; }
  .hero-copy .btn-row .btn, .band .btn-row .btn, .board-note .btn, .kit-actions .btn { width: 100%; }
  .hero-proof { font-size: 0.9375rem; }
  .section-head { margin-bottom: 2rem; }
  .exp-nav .btn { flex: 1 1 0; }
}
.exp-sound-btn[aria-busy="true"] { cursor: progress; opacity: 0.85; }
