/* ==========================================================================
   AutismoLab — landing page styles
   Calm, sensory-friendly palette taken from the AutismoLab logo.
   Works in LTR (English) and RTL (Arabic): layout uses logical properties.
   Accessibility modes are switched with data-a11y-* attributes on <html>.
   ========================================================================== */

:root {
  --bg: #FBF8F3;
  --surface: #FFFFFF;
  --surface-2: #F4EEE5;
  --sand: #F3ECE1;
  --ink: #17292C;
  --ink-2: #374A4D;
  --muted: #55666A;
  --line: #E5DDD0;           /* decorative card borders */
  --line-soft: #CFC5B5;      /* decorative dashed lines */
  --line-strong: #857B6C;    /* borders that identify controls (3:1 or more) */

  --primary: #1E6B66;
  --primary-600: #16524E;
  --primary-50: #E1F1EF;
  --accent: #E5672B;         /* logo deep orange, decorative only */
  --accent-2: #F4A73B;       /* logo light orange */
  --teal: #5FBDB7;           /* logo teal */
  --brand-ink: #2E5256;
  --brand-tag: #4B5A5D;

  --navy: #112A2D;
  --navy-2: #0C1F21;
  --on-navy: #DDE9E8;
  --on-navy-muted: #A9C1BF;
  --on-navy-accent: #8FDAD3;

  --focus: #0B4A46;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(23, 41, 44, .05), 0 8px 24px rgba(23, 41, 44, .07);
  --shadow-lg: 0 2px 6px rgba(23, 41, 44, .06), 0 24px 60px rgba(23, 41, 44, .14);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand: "Montserrat", "Plus Jakarta Sans", system-ui, sans-serif;

  --container: 1180px;
  --gutter: 20px;
  --header-h: 76px;
}

:lang(ar) {
  --font-display: "IBM Plex Sans Arabic", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Plus Jakarta Sans", system-ui, sans-serif;
}

@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:lang(ar) body { font-size: 1.125rem; line-height: 1.85; }

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-600); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button { font: inherit; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1, h2 { text-wrap: balance; }
.hero-headline { display: block; font-size: clamp(2.35rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); }
h3 { font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.35; font-weight: 700; }

/* Focus: always visible, at least 3:1 against what it sits on */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.showcase, .contact, .site-footer, .quote-card { --focus: #FFD27A; }
.contact-form { --focus: #0B4A46; }
main:focus { outline: none; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

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

.skip-link {
  position: absolute; z-index: 100; inset-inline-start: 16px; top: -80px;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.ico {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
[dir="rtl"] .flip { transform: scaleX(-1); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5;
  color: var(--primary);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; opacity: .6; flex: none; }
:lang(ar) .eyebrow { letter-spacing: 0; text-transform: none; font-size: .95rem; }

.lead { font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--ink-2); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 44px; padding: .85em 1.45em; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(30, 107, 102, .22); }
.btn-primary:hover { background: var(--primary-600); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink-2); }
.btn-sm { min-height: 40px; padding: .6em 1.1em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

.text-link {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 600; text-decoration: none; color: var(--primary);
}
.text-link:hover { text-decoration: underline; }
.text-link .ico { width: 1em; height: 1em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(23, 41, 44, .05); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: var(--header-h); padding-block: 8px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--brand-ink); text-decoration: none; }
.brand:hover { color: var(--brand-ink); }
.brand-mark { width: 50px; height: 52px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-word { font-family: var(--font-brand); font-size: 22px; font-weight: 500; letter-spacing: .07em; color: var(--brand-ink); }
.brand-tag { font-family: var(--font-brand); font-size: 10.5px; font-weight: 500; letter-spacing: .02em; color: var(--brand-tag); margin-top: 3px; }

.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 8px 12px; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem;
  transition: background-color .2s ease, color .2s ease;
}
.nav a:hover, .nav a.is-active { background: var(--surface-2); color: var(--ink); }
.nav a.is-active { box-shadow: inset 0 -2px 0 var(--primary); }
.nav .nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.a11y-toggle, .lang-switch, .menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; border: 1.5px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; cursor: pointer;
}
.a11y-toggle { padding: 0 12px; }
.a11y-toggle .ico { width: 1.35em; height: 1.35em; color: var(--primary); }
.a11y-toggle[aria-expanded="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.a11y-toggle[aria-expanded="true"] .ico { color: #fff; }
.lang-switch { padding: 0 14px; }
.lang-switch:hover, .a11y-toggle:hover { border-color: var(--ink-2); color: var(--ink); }
.lang-switch .ico { width: 1.05em; height: 1.05em; color: var(--primary); }
.lang-switch[lang="ar"] { font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; }
.menu-toggle { display: none; width: 44px; min-height: 44px; border-radius: 12px; padding: 0; }
.menu-toggle .ico-close { display: none; }
.menu-toggle[aria-expanded="true"] .ico-open { display: none; }
.menu-toggle[aria-expanded="true"] .ico-close { display: block; }

@media (max-width: 1279px) {
  .a11y-toggle { width: 44px; min-height: 44px; padding: 0; }
  .a11y-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Compact navigation (set by JS on narrow screens or when text is enlarged) */
.nav-compact .menu-toggle { display: inline-flex; }
.nav-compact .header-cta { display: none; }
.nav-compact .header-actions { margin-inline-start: auto; }
.nav-compact .nav {
  position: absolute; top: 100%; inset-inline: 0;
  flex-direction: column; align-items: stretch; gap: 2px;
  max-height: calc(100vh - 90px); overflow-y: auto;
  background: var(--bg); padding: 12px var(--gutter) 24px;
  border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(23, 41, 44, .08);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav-compact .nav.is-open { opacity: 1; visibility: visible; transform: none; }
.nav-compact .nav a { padding: 14px 12px; font-size: 1.05rem; border-radius: 12px; }
.nav-compact .nav .nav-cta { display: inline-flex; margin-top: 10px; color: #fff; }
.nav-compact .nav .nav-cta:hover { background: var(--primary-600); color: #fff; }

/* Without JavaScript the menu cannot open, so keep links visible and let them wrap */
@media (max-width: 1100px) {
  html:not(.js) .site-header { position: static; }
  html:not(.js) .nav { order: 3; width: 100%; margin: 0 0 6px; flex-wrap: wrap; }
  html:not(.js) .header-cta { display: none; }
}

/* ---------- Accessibility panel ---------- */
.a11y-panel {
  position: absolute; top: calc(100% + 8px); inset-inline-end: max(var(--gutter), calc((100% - var(--container)) / 2));
  width: min(380px, calc(100% - 2 * var(--gutter)));
  max-height: calc(100vh - 110px); overflow-y: auto;
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--line-strong); border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 20px; z-index: 60;
}
.a11y-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.a11y-head h2 { font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; letter-spacing: 0; margin: 0; }
.a11y-close {
  width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line-strong);
  background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer;
}
.a11y-intro { font-size: .92rem; color: var(--ink-2); margin-bottom: 14px; }
.a11y-label { font-weight: 700; font-size: .95rem; margin: 0 0 8px; }
.a11y-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 16px; }
.a11y-seg button {
  min-height: 44px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface);
  color: var(--ink); font-weight: 700; cursor: pointer;
}
.a11y-seg button:nth-child(1) { font-size: .95rem; }
.a11y-seg button:nth-child(2) { font-size: 1.1rem; }
.a11y-seg button:nth-child(3) { font-size: 1.25rem; }
.a11y-seg button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.a11y-options { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.a11y-switch {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: start;
  min-height: 56px; padding: 10px 12px; border: 1.5px solid var(--line-strong); border-radius: 14px;
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.a11y-switch strong { display: block; font-size: .97rem; }
.a11y-switch small { display: block; font-size: .84rem; color: var(--ink-2); line-height: 1.4; margin-top: 2px; }
.a11y-switch .sw {
  position: relative; flex: none; width: 42px; height: 24px; border-radius: 999px;
  background: #8A8F90; transition: background-color .2s ease;
}
.a11y-switch .sw::after {
  content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: inset-inline-start .2s ease;
}
.a11y-switch[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-50); }
.a11y-switch[aria-pressed="true"] .sw { background: var(--primary); }
.a11y-switch[aria-pressed="true"] .sw::after { inset-inline-start: 21px; }
.a11y-reset {
  width: 100%; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line-strong);
  background: var(--surface-2); color: var(--ink); font-weight: 600; cursor: pointer;
}
.a11y-note { margin: 12px 0 0; font-size: .82rem; color: var(--ink-2); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section-alt { background: var(--surface); }
.section-sand { background: var(--sand); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(64px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero-title { margin: 0 0 .45em; }
.hero-title .eyebrow { display: flex; letter-spacing: .12em; }
:lang(ar) .hero-title .eyebrow { letter-spacing: 0; }
.hero-headline em { font-style: italic; color: var(--primary); }
:lang(ar) .hero-headline em { font-style: normal; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-badges {
  display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 24px;
  margin: 36px 0 0; padding: 0; list-style: none;
  font-size: .92rem; font-weight: 500; color: var(--ink-2);
}
.hero-badges li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.45; }
.hero-badges .ico { color: #24724C; margin-top: 1px; }

.hero-visual { position: relative; padding: 24px 0 40px; }
.hero-blob {
  position: absolute; z-index: 0; inset: 0 4% 6% 10%;
  border-radius: 44px; transform: rotate(-4deg);
  background:
    radial-gradient(circle at 18% 18%, rgba(244, 167, 59, .42), transparent 55%),
    radial-gradient(circle at 88% 30%, rgba(95, 189, 183, .40), transparent 55%),
    radial-gradient(circle at 40% 98%, rgba(229, 103, 43, .26), transparent 60%),
    var(--sand);
}
[dir="rtl"] .hero-blob { transform: rotate(4deg); inset: 0 10% 6% 4%; }
.hero-photo {
  position: relative; z-index: 1;
  width: min(100%, 440px); margin-inline: auto;
  aspect-ratio: 3 / 4; border-radius: 28px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.session-card {
  position: absolute; z-index: 2; inset-inline-start: 0; bottom: 0;
  width: min(270px, 78%);
  background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 16px 18px 18px;
}
.session-label {
  display: flex; align-items: center; gap: 8px; margin: 0;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
:lang(ar) .session-label { letter-spacing: 0; font-size: .85rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2E9E66; box-shadow: 0 0 0 4px rgba(46, 158, 102, .16); }
.session-title { margin: 4px 0 12px; font-weight: 700; font-size: 1.05rem; }
.session-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.session-steps li { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 500; }
.step-state { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.step-state .ico { width: 13px; height: 13px; stroke-width: 3; }
.session-steps .done .step-state { background: var(--primary); color: #fff; }
.session-steps .current .step-state { border: 2px solid var(--primary); }
.session-steps .current .step-state::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.session-steps .current { color: var(--primary); font-weight: 700; }
.session-steps .todo { color: var(--muted); }
.session-steps .todo .step-state { border: 2px dashed var(--line-strong); }

.calm-chip {
  position: absolute; z-index: 2; inset-inline-end: 0; top: 52px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border-radius: 999px; box-shadow: var(--shadow);
  padding: 10px 16px; font-size: .88rem; font-weight: 600;
}
.calm-chip .ico { color: var(--accent); }

/* ---------- Featured-in strip ---------- */
.featured { border-block: 1px solid var(--line); padding-block: 22px; background: var(--bg); }
.featured-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px; }
.featured-label {
  margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
:lang(ar) .featured-label { letter-spacing: 0; font-size: .9rem; }
.featured-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px;
  margin: 0; padding: 0; list-style: none;
  font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.1rem; color: var(--ink-2);
}
:lang(ar) .featured-list { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; }

/* ---------- Cards & grids ---------- */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.section-alt .card { background: var(--bg); }
.card p, .feature p, .step p { color: var(--ink-2); margin: 0; }

.icon-badge {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; flex: none;
}
.icon-badge .ico { width: 24px; height: 24px; }
.tone-orange { background: #FCEBD3; color: #93500A; }
.tone-red    { background: #FBE2D6; color: #A23E12; }
.tone-teal   { background: var(--primary-50); color: var(--primary); }
.tone-green  { background: #DFF1EC; color: #22654F; }
.tone-blue   { background: #E2ECEE; color: #2C5361; }
.tone-sand   { background: #F1E7D8; color: #6A4D35; }

/* ---------- Platform ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; list-style: none; margin: 0; padding: 0; }
.feature h3 { margin-bottom: .4em; }

.showcase {
  margin-top: clamp(56px, 7vw, 88px);
  display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: center;
  background: var(--navy); color: var(--on-navy);
  border-radius: 32px; padding: clamp(28px, 5vw, 64px);
  position: relative; overflow: hidden;
}
.showcase::before {
  content: ""; position: absolute; inset-inline-end: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 189, 183, .22), transparent 70%); pointer-events: none;
}
.showcase .eyebrow { color: var(--on-navy-accent); }
.showcase-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; color: #fff; letter-spacing: -0.02em; line-height: 1.15; }
:lang(ar) .showcase-title { letter-spacing: 0; line-height: 1.4; }
.showcase-copy > p { color: var(--on-navy-muted); }
.showcase-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.showcase-list li { display: flex; gap: 14px; align-items: flex-start; }
.showcase-list .ico { color: var(--on-navy-accent); margin-top: 3px; }
.showcase-list strong { display: block; color: #fff; font-weight: 700; }
.showcase-list span { color: var(--on-navy-muted); font-size: .97rem; }

.media-frame {
  position: relative; z-index: 1; border-radius: 22px; overflow: hidden; background: #fff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.media-frame img { width: 100%; }
.media-toggle {
  position: absolute; inset-inline-end: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  padding: 9px 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(12, 31, 33, .9); color: #fff; font-size: .88rem; font-weight: 600;
}
.media-toggle:hover { background: var(--navy-2); }
.media-toggle:focus-visible { outline-color: #0B4A46; box-shadow: 0 0 0 6px #fff; }
.media-toggle .ico { width: 1em; height: 1em; fill: currentColor; stroke: none; }

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px;
}
.step-num {
  display: block; margin-bottom: 18px;
  font-family: "Fraunces", Georgia, serif; font-size: 2.4rem; font-weight: 500; line-height: 1; color: var(--primary);
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 48px; inset-inline-end: -21px; width: 22px; border-top: 2px dashed var(--line-soft);
}

/* ---------- Flight lab ---------- */
.lab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.lab-facts { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lab-facts li { background: var(--surface); border-radius: var(--radius-sm); padding: 18px 16px; }
.lab-facts strong {
  display: block; font-family: "Fraunces", Georgia, serif; font-size: 1.9rem; font-weight: 600; line-height: 1.1; color: var(--primary);
}
:lang(ar) .lab-facts strong { font-family: var(--font-display); font-weight: 700; }
.lab-facts span { display: block; margin-top: 6px; font-size: .9rem; line-height: 1.45; color: var(--ink-2); }

.journey-label { margin: 36px 0 14px; font-weight: 700; }
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.journey::before {
  content: ""; position: absolute; top: 21px; inset-inline: 12.5%; border-top: 2px dashed var(--line-soft);
}
.journey li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-weight: 600; font-size: .92rem; line-height: 1.35; padding-inline: 4px; }
.journey .stop {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--primary); color: var(--primary);
}
.journey .stop .ico { width: 20px; height: 20px; }
.journey li:last-child .stop { background: var(--primary); color: #fff; }

.lab-media { display: grid; gap: 20px; }
.photo-card { background: var(--surface); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.photo-card img { border-radius: 14px; width: 100%; }
.photo-card figcaption { padding: 12px 8px 4px; font-size: .88rem; color: var(--ink-2); }

/* Video (click-to-play, nothing loads from Vimeo until requested) */
.video-card { background: var(--surface); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--navy); }
.video-frame img, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(180deg, rgba(12, 31, 33, 0) 40%, rgba(12, 31, 33, .55));
  color: #fff; text-decoration: none; font-weight: 700; font-size: 1rem;
}
.video-play:hover { color: #fff; }
.video-play:focus-visible { outline: 4px solid #FFD27A; outline-offset: -6px; }
.video-play-icon {
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .95); color: var(--primary); box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.video-play-icon .ico { width: 26px; height: 26px; fill: currentColor; stroke: none; margin-inline-start: 4px; }
[dir="rtl"] .video-play-icon .ico { margin-inline-start: 0; margin-inline-end: 4px; transform: scaleX(-1); }
.video-play-text { background: rgba(12, 31, 33, .82); padding: 8px 14px; border-radius: 999px; }
.video-card figcaption { padding: 12px 8px 4px; display: grid; gap: 4px; }
.video-card figcaption strong { font-size: .98rem; }
.video-card figcaption span { font-size: .88rem; color: var(--ink-2); }
.video-card figcaption a { font-size: .88rem; font-weight: 600; }

.quote-card {
  margin: 0; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 32px 32px 28px; position: relative;
}
.quote-card::before {
  content: "\201C"; position: absolute; top: 4px; inset-inline-start: 22px;
  font-family: "Fraunces", Georgia, serif; font-size: 5rem; line-height: 1; color: var(--accent-2); opacity: .95;
}
.quote-card p { font-family: var(--font-display); font-size: 1.22rem; line-height: 1.5; margin: 22px 0 16px; }
:lang(ar) .quote-card p { font-size: 1.15rem; line-height: 1.8; }
.quote-card footer { color: var(--on-navy-muted); font-size: .92rem; font-weight: 600; }

/* ---------- Research ---------- */
.paper {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
}
.paper-meta { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .85rem; font-weight: 700; color: var(--primary); }
.paper h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.32rem; line-height: 1.3; margin: 0; }
.paper p { color: var(--ink-2); margin: 0; }
.paper .text-link { margin-top: auto; padding-top: 6px; }
.ltr-in-rtl { direction: ltr; text-align: right; unicode-bidi: isolate; }
.note {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 24px 0 0; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--ink-2); font-size: .93rem;
}
.note .ico { color: var(--primary); margin-top: 3px; }

/* ---------- Audience ---------- */
.audience .card h3 { margin-bottom: .45em; }

/* ---------- Recognition ---------- */
.recog-grid { display: grid; grid-template-columns: 1fr 300px; gap: clamp(28px, 4vw, 48px); align-items: start; }
.awards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.award {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: start; align-content: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.award .icon-badge { grid-row: span 3; margin: 0; width: 44px; height: 44px; }
.award strong { font-weight: 700; line-height: 1.35; }
.award .award-org { color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.award .award-year { font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.poster-card { background: var(--surface); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.poster-card img { border-radius: 14px; width: 100%; }
.poster-card figcaption { padding: 12px 8px 4px; font-size: .88rem; color: var(--ink-2); }

/* ---------- Founder ---------- */
.founder-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.founder-visual { position: relative; padding-bottom: 56px; padding-inline-end: 48px; }
.founder-photo { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.founder-inset {
  position: absolute; inset-inline-end: 0; bottom: 0; width: 46%;
  border-radius: 18px; overflow: hidden; border: 5px solid var(--sand); box-shadow: var(--shadow-lg);
}
.founder-inset img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.founder-role { margin: -4px 0 22px; font-weight: 600; color: var(--primary); }
.founder-copy > p:not(.eyebrow):not(.founder-role) { color: var(--ink-2); }
.founder-quote {
  margin: 26px 0; padding-inline-start: 20px; border-inline-start: 3px solid var(--accent);
  font-family: var(--font-display); font-size: 1.3rem; line-height: 1.45; font-style: italic; color: var(--ink);
}
:lang(ar) .founder-quote { font-style: normal; font-size: 1.2rem; line-height: 1.8; }
.chips { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.founder-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: start; }
.news-feature {
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: inherit; text-decoration: none; transition: box-shadow .2s ease, transform .2s ease;
}
.news-feature:hover { box-shadow: var(--shadow-lg); color: inherit; transform: translateY(-2px); }
.news-feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 35%; }
.news-feature-body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 10px; }
.news-feature h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; line-height: 1.25; margin: 0; }
.news-feature p { color: var(--ink-2); margin: 0; }
.news-feature .text-link { margin-top: 6px; }
.news-meta { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
:lang(ar) .news-meta { letter-spacing: 0; font-size: .9rem; }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
.news-list a {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px;
  color: inherit; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.news-list a:hover { border-color: var(--line-strong); box-shadow: var(--shadow); color: inherit; }
.news-list .news-title { grid-column: 1; font-weight: 600; line-height: 1.4; }
.news-list .ico { grid-column: 2; grid-row: 1 / span 2; color: var(--primary); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 16px 20px; font-weight: 700; font-size: 1.04rem; border-radius: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-inline-end: 4px;
  border-inline-end: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-item[open] { border-color: var(--line-strong); }
.faq-item .faq-answer { padding: 0 20px 18px; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: var(--on-navy); padding-block: clamp(72px, 9vw, 120px); position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset-inline-start: -160px; bottom: -200px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 189, 183, .22), transparent 70%); pointer-events: none;
}
.contact-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact h2 { color: #fff; }
.contact .eyebrow { color: var(--on-navy-accent); }
.contact .lead { color: var(--on-navy-muted); }
.contact-points { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-points li { display: flex; align-items: center; gap: 14px; }
.contact-points .icon-badge { margin: 0; background: rgba(255, 255, 255, .08); color: var(--on-navy-accent); }
.contact-points div > span { display: block; font-size: .85rem; color: var(--on-navy-muted); }
.contact-points a, .contact-points strong { color: #fff; font-weight: 600; font-size: 1.08rem; text-decoration: none; }
.contact-points a:hover { text-decoration: underline; color: #fff; }

.contact-form {
  background: var(--surface); color: var(--ink); border-radius: 26px; padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .3); display: grid; gap: 18px;
}
.form-intro { margin: 0; font-size: .9rem; color: var(--ink-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; align-content: start; }
.field label { font-size: .95rem; font-weight: 600; }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; min-height: 48px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); background: #fff;
}
.field [aria-invalid="true"] { border-color: #A3281B; border-width: 2px; }
.field-error { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: .9rem; font-weight: 600; color: #A3281B; }
.field-error::before { content: "!"; flex: none; width: 18px; height: 18px; border-radius: 50%; background: #A3281B; color: #fff; font-size: .75rem; display: grid; place-items: center; margin-top: 2px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23374A4D' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
[dir="rtl"] .field select { background-position: left 16px center; }
[dir="rtl"] .field input[type="email"] { text-align: right; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-note { margin: 0; font-size: .86rem; color: var(--ink-2); text-align: center; }
.form-status { margin: 0; padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: .95rem; }
.form-status.is-success { background: #E1F2E7; color: #1A5E36; }
.form-status.is-error { background: #FBE6E2; color: #8F2418; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-2); color: var(--on-navy-muted); padding-block: 64px 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.footer-logo .brand-mark { width: 56px; height: 58px; }
.footer-logo .brand-word { color: #fff; }
.footer-logo .brand-tag { color: var(--on-navy-muted); }
.footer-brand p { margin-top: 16px; max-width: 36ch; }
.footer-nav, .footer-contact { display: grid; gap: 10px; align-content: start; justify-items: start; }
.footer-col-title { color: #fff; font-weight: 700; margin: 0 0 4px; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-a11y {
  display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--on-navy); font-size: inherit;
}
.footer-a11y:hover { color: #fff; text-decoration: underline; }
.footer-a11y .ico { color: var(--on-navy-accent); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: .86rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Reveal on scroll (only when JS is on and motion is OK) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Accessibility modes
   ========================================================================== */

/* Text size */
html[data-a11y-text="1"] { font-size: 115%; }
html[data-a11y-text="2"] { font-size: 130%; }

/* High contrast (also follows the operating-system setting) */
html[data-a11y-contrast="high"] {
  --bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #FFFFFF; --sand: #FFFFFF;
  --ink: #000000; --ink-2: #000000; --muted: #1A1A1A;
  --line: #000000; --line-soft: #000000; --line-strong: #000000;
  --primary: #00403C; --primary-600: #002B28; --primary-50: #FFFFFF;
  --navy: #000000; --navy-2: #000000; --on-navy: #FFFFFF; --on-navy-muted: #FFFFFF; --on-navy-accent: #FFE27A;
  --shadow: none; --shadow-lg: none;
}
html[data-a11y-contrast="high"] :is(.card, .step, .paper, .award, .faq-item, .news-list a, .news-feature, .lab-facts li, .chips li, .photo-card, .video-card, .poster-card, .session-card, .calm-chip) { border: 2px solid #000; }
html[data-a11y-contrast="high"] .hero-blob,
html[data-a11y-contrast="high"] .showcase::before,
html[data-a11y-contrast="high"] .contact::before { display: none; }
html[data-a11y-contrast="high"] .icon-badge { background: #fff !important; color: #000 !important; border: 2px solid #000; }
html[data-a11y-contrast="high"] .contact-points .icon-badge { background: #000 !important; color: #fff !important; border-color: #fff; }
html[data-a11y-contrast="high"] a:not(.btn):not(.brand):not(.footer-logo) { text-decoration: underline; text-decoration-thickness: 2px; }
html[data-a11y-contrast="high"] .site-header { background: #fff; border-bottom: 2px solid #000; }
html[data-a11y-contrast="high"] .field input, html[data-a11y-contrast="high"] .field select, html[data-a11y-contrast="high"] .field textarea { background: #fff; border: 2px solid #000; }

@media (prefers-contrast: more) {
  html:not([data-a11y-contrast]) {
    --ink-2: #1F2B2D; --muted: #2F3A3C; --line: #6E665A; --line-strong: #3F3A33;
  }
}

/* Calm mode: no motion, softer colours, fewer decorations */
html[data-a11y-calm="on"] *, html[data-a11y-calm="on"] *::before, html[data-a11y-calm="on"] *::after {
  animation: none !important; transition: none !important;
}
html[data-a11y-calm="on"] { scroll-behavior: auto; }
html[data-a11y-calm="on"].js .reveal { opacity: 1; transform: none; }
html[data-a11y-calm="on"] :is(.hero-blob, .calm-chip, .live-dot),
html[data-a11y-calm="on"] .showcase::before,
html[data-a11y-calm="on"] .contact::before { display: none; }
html[data-a11y-calm="on"] main img { filter: saturate(.65); }
html[data-a11y-calm="on"] .icon-badge { background: var(--surface-2) !important; color: var(--ink-2) !important; }
html[data-a11y-calm="on"] .btn-primary { box-shadow: none; }
html[data-a11y-calm="on"] :is(.btn-primary:hover, .news-feature:hover) { transform: none; }

/* Readable font: clearer letters, wider spacing */
html[data-a11y-font="readable"] {
  --font-display: "Atkinson Hyperlegible", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "IBM Plex Sans Arabic", system-ui, sans-serif;
}
html[data-a11y-font="readable"] body { letter-spacing: .03em; word-spacing: .12em; line-height: 1.9; }
html[data-a11y-font="readable"]:lang(ar) body { letter-spacing: 0; word-spacing: .2em; line-height: 2.05; }
html[data-a11y-font="readable"] :is(h1, h2, h3, .featured-list, .step-num, .lab-facts strong, .paper h3, .quote-card p, .founder-quote, .news-feature h3, .showcase-title) {
  font-family: var(--font-display) !important; font-style: normal; letter-spacing: 0;
}
html[data-a11y-font="readable"] .hero-headline em { font-style: normal; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
html[data-a11y-font="readable"] p { max-width: 70ch; }
html[data-a11y-font="readable"] .brand-text { word-spacing: normal; letter-spacing: normal; line-height: 1.1; }

/* Highlight links and buttons */
html[data-a11y-links="on"] a:not(.brand):not(.footer-logo), html[data-a11y-links="on"] summary {
  text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 4px;
}
html[data-a11y-links="on"] :is(.news-list a, .news-feature, .lang-switch, .btn, .a11y-toggle, .media-toggle, .video-play-text) {
  outline: 2px solid currentColor; outline-offset: 2px;
}

/* Windows high-contrast / forced colours */
@media (forced-colors: active) {
  .btn, .a11y-toggle, .lang-switch, .menu-toggle, .a11y-switch, .a11y-seg button, .media-toggle, .faq-item { border: 1px solid ButtonText; }
  .a11y-switch[aria-pressed="true"], .a11y-seg button[aria-pressed="true"] { outline: 3px solid Highlight; }
  .hero-blob, .showcase::before, .contact::before { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .showcase { grid-template-columns: 1fr; }
  .recog-grid { grid-template-columns: 1fr 240px; }
}

@media (max-width: 860px) {
  .hero-grid, .lab-grid, .founder-grid, .news-grid, .contact-grid, .faq-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .recog-grid { grid-template-columns: 1fr; }
  .poster-card { max-width: 340px; }
  .founder-visual { max-width: 460px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .brand-mark { width: 40px; height: 42px; }
  .brand-word { font-size: 18px; letter-spacing: .05em; }
  .brand-tag { display: none; }
  .header-inner { column-gap: 8px; }
  .brand { gap: 6px; }
  .header-actions { gap: 5px; }
  .lang-switch { padding: 0 10px; }
  .lang-switch .ico { display: none; }
  .hero-badges { grid-template-columns: 1fr; }
  .features, .grid-4, .steps, .awards { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .lab-facts { grid-template-columns: 1fr; }
  .lab-facts li { display: flex; align-items: baseline; gap: 14px; }
  .lab-facts span { margin-top: 0; }
  .journey li { font-size: .82rem; }
  .calm-chip { top: 12px; font-size: .8rem; padding: 8px 12px; }
  .session-card { width: min(250px, 82%); }
  .hero-ctas .btn { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .quote-card { padding: 28px 22px 22px; }
  .video-play-text { display: none; }
}

@media (max-width: 380px) {
  .brand-word { font-size: 16px; letter-spacing: .04em; }
  .brand-mark { width: 34px; height: 36px; }
  .a11y-toggle, .menu-toggle { width: 42px; min-height: 42px; }
}

@media (max-width: 340px) {
  .brand-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
