/* ═══════════════════════════════════════════════════════════════════════
   A Despegar — styles.css
   Built on the sfi-web-reference structural skeleton.

   Concept: "the site is a flight" — night sky (hero) → take-off (stats +
   admissions) → daytime journey (services, signals, team, FAQ) with a
   night countdown band → landing back in the night sky (footer).

   Single light theme (theme toggle OFF): ONE palette in :root, no
   [data-theme] overrides. Motion is OPT-IN: every animation/transition
   that moves things lives inside (prefers-reduced-motion: no-preference).

   File map:
     1. Reset (+1b fallback fonts) 11. Process (countdown) + coverage
     2. Custom properties        12. About (mission · vision · patches)
     3. Base + typography        13. Team (flat row) + 13b pinned 3D wheel
     4. Utilities + components   14. FAQ (accordion)
     5. Header / Nav             15. Contact
     6. Hero + seal + skies      16. Footer (landing)
     7. Stats strip              17. Overlays (WA · to-top · lightbox · flights · trail)
     8. Admissions band          18. Utility pages (404 · privacidad)
     9. Services                 19. Motion (signatures, skies, invitation)
    10. Signals (tabs)           20. Media queries
   ═══════════════════════════════════════════════════════════════════════ */


/* ─── 1. Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }

/* Boot: everything app.js fills stays unpainted until App.init() has
   rendered it, so the first paint never shows the empty shell and nothing
   jumps when the content lands (measured CLS 0.45–0.52 without this). The
   header + logo still paint early. Safety net: if JS fails, reveal anyway
   after 3 s. <noscript> in <head> lifts it for no-JS visitors. */
.is-booting main, .is-booting .footer, .is-booting .quick-actions,
.is-booting .nav__menu, .is-booting .nav__cta { visibility: hidden; animation: boot-reveal 0s linear 3s forwards; }
@keyframes boot-reveal { to { visibility: visible; } }
/* …then the first screen (nav + hero) paints while the rest of the page —
   all below the fold — is filled in the next task (App.init). */
.is-filling main > section:not(.hero), .is-filling .footer { visibility: hidden; animation: boot-reveal 0s linear 3s forwards; }


/* ─── 1b. Fonts: self-hosted web fonts + metric-matched fallbacks (CLS) ─
   Self-hosted in fonts/ (SIL OFL 1.1, fonts/OFL.txt): latin-for-Spanish
   WOFF2 subsets made by _source/tools/subset-fonts.py with the axis values
   Google Fonts served before — Fraunces SOFT 100 · WONK 1 · wght 700–900
   with opsz variable (font-optical-sizing: auto); Nunito Sans wght 400–700.
   The unicode-range must match UNICODE_RANGE in that script (it checks).
   No preload: measured, it delays the hero paint (see index.html). */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  font-style: normal; font-weight: 700 900; font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2039-203A, U+20AC, U+2122;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('../fonts/nunito-sans-latin.woff2') format('woff2');
  font-style: normal; font-weight: 400 700; font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2039-203A, U+20AC, U+2122;
}
/* Both load with font-display: swap. Without the faces below, the fallback
   (wider/narrower than Fraunces) re-wraps the hero H1 when the web font
   lands and pushes the CTAs down (measured CLS up to 0.5). Each face below
   is a local system font scaled to Fraunces / Nunito Sans widths, measured
   in Chromium against the real fonts (Gelasio stands in for Georgia):
     Fraunces 900 vs Georgia Bold 95% · Noto Serif Bold 96% · DejaVu Serif Bold 86.4%
     Nunito Sans vs DejaVu Sans 87.8% (400) / 81% (700). Arial and Roboto
     already match Nunito Sans within ~2%, so they need no adjustment. */
@font-face { font-family: 'Fraunces Fallback G'; src: local('Georgia Bold'), local('Georgia-Bold'), local('Gelasio Bold'); font-weight: 700 900; size-adjust: 95%; ascent-override: 103%; descent-override: 27%; line-gap-override: 0%; }
@font-face { font-family: 'Fraunces Fallback N'; src: local('Noto Serif Bold'), local('NotoSerif-Bold'); font-weight: 700 900; size-adjust: 96%; ascent-override: 102%; descent-override: 27%; line-gap-override: 0%; }
@font-face { font-family: 'Fraunces Fallback D'; src: local('DejaVu Serif Bold'), local('DejaVuSerif-Bold'); font-weight: 700 900; size-adjust: 86.4%; ascent-override: 113%; descent-override: 30%; line-gap-override: 0%; }
@font-face { font-family: 'Nunito Sans Fallback D'; src: local('DejaVu Sans'), local('DejaVuSans'); font-weight: 400 599; size-adjust: 87.8%; ascent-override: 115%; descent-override: 40%; line-gap-override: 0%; }
@font-face { font-family: 'Nunito Sans Fallback D'; src: local('DejaVu Sans Bold'), local('DejaVuSans-Bold'); font-weight: 600 900; size-adjust: 81%; ascent-override: 125%; descent-override: 43%; line-gap-override: 0%; }


/* ─── 2. Custom properties (single light theme) ─────────────────────── */
:root {
  color-scheme: light;

  /* Surfaces & text */
  --bg-primary:        #FFFFFF;
  --bg-secondary:      #EEF6FA;
  --bg-night:          #09273F;   /* hero, countdown band, footer */
  --bg-card:           #FFFFFF;
  --text-primary:      #09273F;
  --text-secondary:    #4A5B6E;   /* 6.9:1 on white · 6.3:1 on --bg-secondary */
  --text-on-night:     #FFFFFF;
  --text-on-night-muted: #C5D3E0; /* 10:1 on --bg-night */

  /* Action */
  --accent:            #D93A3A;   /* buttons: white text 4.55:1 */
  --accent-hover:      #B92F2F;   /* also small red TEXT (labels): 6:1 white · 5.5:1 --bg-secondary */
  --accent-glow:       rgba(217, 58, 58, 0.45);

  /* Brand accents — decorative only, never body text on light surfaces */
  --brand-red:         #F14B4B;
  --brand-blue:        #2192BF;
  --brand-yellow:      #FBF168;   /* flame, highlights; text only on night (13:1) */
  --brand-cyan:        #22F2F2;   /* tiny star glow, night only */
  --brand-sky:         #7FC8E3;
  --color-whatsapp:    #25D366;   /* WhatsApp float only */

  /* Lines */
  --border:            #D8E5ED;
  --border-strong:     #B4C8D5;
  --night-line:        rgba(255, 255, 255, 0.18);

  /* Typography (families declared by the @font-face rules in §1b) */
  --font-display: 'Fraunces', 'Fraunces Fallback G', 'Fraunces Fallback N', 'Fraunces Fallback D', Georgia, serif;
  --font-body:    'Nunito Sans', 'Nunito Sans Fallback D', Arial, Roboto, 'Helvetica Neue', sans-serif;

  /* Layout tokens */
  --section-padding: clamp(4.5rem, 9vw, 7.5rem);
  --container-max:   1200px;
  --container-pad:   clamp(1.25rem, 4vw, 2.5rem);
  --gap:             clamp(1rem, 2.2vw, 1.6rem);
  --radius:          16px;
  --radius-lg:       24px;
  --radius-pill:     999px;
  --transition:      0.25s ease;
  --header-h:        4rem;
  --nav-h:           calc(var(--header-h) + 1px);   /* sticky header incl. its border */
  --horizon:         clamp(30px, min(6.5vw, 9svh), 92px);   /* height of the night/day arcs */

  --shadow-sm: 0 1px 2px rgba(9, 39, 63, 0.06), 0 6px 16px -8px rgba(9, 39, 63, 0.16);
  --shadow-md: 0 2px 6px rgba(9, 39, 63, 0.05), 0 20px 44px -18px rgba(9, 39, 63, 0.28);
  --shadow-lg: 0 34px 70px -26px rgba(9, 39, 63, 0.55);

  /* Shapes reused as CSS masks / tiles (data: is allowed by img-src) */
  --star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.7 6.1 6.6.6-5 4.4 1.5 6.5L12 16.8l-5.8 3.4 1.5-6.5-5-4.4 6.6-.6z' stroke='%23000' stroke-width='2.4' stroke-linejoin='round'/%3E%3C/svg%3E");
  --check-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4 4L18.5 7.5'/%3E%3C/svg%3E");
  --quote-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'%3E%3Cpath d='M15 46C7 46 2 40 2 31 2 18 10 7 23 2l3 5C18 11 14 17 14 22c4-1 9 0 12 4 3 3 3 8 1 12-2 5-7 8-12 8zm33 0c-8 0-13-6-13-15C35 18 43 7 56 2l3 5c-8 4-12 10-12 15 4-1 9 0 12 4 3 3 3 8 1 12-2 5-7 8-12 8z'/%3E%3C/svg%3E");
  --fab:        48px;   /* floating buttons */
  --fab-offset: 16px;
  --eyebrow-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.7 6.1 6.6.6-5 4.4 1.5 6.5L12 16.8l-5.8 3.4 1.5-6.5-5-4.4 6.6-.6z' fill='%23FBF168' stroke='%23FBF168' stroke-width='2.4' stroke-linejoin='round'/%3E%3C/svg%3E");
  --trail-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='24' viewBox='0 0 10 24'%3E%3Crect x='2.4' y='2' width='5.2' height='14' rx='2.6' fill='%23FBF168' stroke='%23F14B4B' stroke-width='1.4'/%3E%3C/svg%3E");
}


/* ─── 3. Base + typography ──────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-secondary);
  background: var(--bg-primary);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.menu-open, body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 100;
  color: var(--text-primary);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.55rem, 1.05rem + 5.6vw, 5.1rem); font-weight: 900; line-height: 1; letter-spacing: -0.028em; }
h2 { font-size: clamp(2.05rem, 1.3rem + 3vw, 3.3rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.18; }
p { text-wrap: pretty; }
strong { color: var(--text-primary); font-weight: 700; }

::selection { background: var(--brand-yellow); color: var(--text-primary); }

/* Focus ring = KEYBOARD only. :focus-visible everywhere (never :focus);
   no ring after a mouse/touch click — html[data-input="pointer"] (app.js)
   also silences rings drawn by scripted focus after a tap (Safari), and
   the next key press restores them. Programmatic targets (tabindex -1:
   sections, the H1) never show one. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
html[data-input="pointer"] :focus-visible,
html[data-input="pointer"] :focus-visible::after { outline: none; }
[tabindex="-1"]:not(a):not(button):focus { outline: none; }


/* ─── 4. Utilities + shared components ─────────────────────────────── */
.container {
  width: 100%; max-width: calc(var(--container-max) + 2 * var(--container-pad)); margin-inline: auto;
  padding-inline: max(var(--container-pad), env(safe-area-inset-left, 0px)) max(var(--container-pad), env(safe-area-inset-right, 0px));
}

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

.skip-link {
  position: absolute; left: max(1rem, env(safe-area-inset-left, 0px)); top: -100%; z-index: 1000;
  background: var(--accent); color: #fff; font-weight: 700;
  padding: 0.8rem 1.25rem; border-radius: 0 0 12px 12px;
}
.skip-link:focus { top: 0; }

/* Section label: red ink + tiny star (yellow on night surfaces) */
.label {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.3;
  color: var(--accent-hover); margin-bottom: 1rem;
}
.label::before {
  content: ''; flex: none; width: 15px; height: 15px; background: currentColor;
  -webkit-mask: var(--star-mask) center / contain no-repeat; mask: var(--star-mask) center / contain no-repeat;
}
.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-intro { margin-top: 1.1rem; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.18rem); max-width: 40ch; }

/* Buttons — pills, like the client's "¡Reservá tu lugar!" artwork */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.8rem 1.5rem; border-radius: var(--radius-pill);
  border: 2px solid transparent; font-family: var(--font-body); font-size: 1rem;
  font-weight: 700; line-height: 1.2; letter-spacing: 0.005em; text-align: center;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.btn .i { width: 1.2em; height: 1.2em; flex: none; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 12px 24px -12px var(--accent-glow); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--outline { border-color: var(--text-primary); color: var(--text-primary); background: #fff; }
.btn--outline:hover { background: var(--text-primary); color: #fff; }
.btn--light { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn--light:hover { background: #fff; color: var(--text-primary); border-color: #fff; }
.btn--ghost { background: #fff; border-color: var(--border-strong); color: var(--text-primary); }
.btn--ghost:hover { background: var(--text-primary); border-color: var(--text-primary); color: #fff; }
.btn--sm { min-height: 44px; padding: 0.55rem 1.1rem; font-size: 0.95rem; }
.btn--lg { min-height: 56px; padding: 0.95rem 1.9rem; font-size: 1.075rem; }
.btn--block { width: 100%; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px;
  font-weight: 700; color: var(--text-primary);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
  text-decoration-color: var(--area, var(--accent));
}
.link-arrow .i { width: 1.1em; height: 1.1em; }
.link-arrow:hover { color: var(--accent-hover); }

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.95rem; border-radius: var(--radius-pill);
  font-size: 0.9375rem; font-weight: 700; line-height: 1.25;
}
.chip .i { width: 1.05em; height: 1.05em; flex: none; }
.chip--night { color: #fff; border: 1.5px solid var(--night-line); background: rgba(255, 255, 255, 0.05); }
.chip--night .i { color: var(--brand-yellow); }
.chip--filter {
  min-height: 44px; padding: 0.5rem 1rem; background: #fff; color: var(--text-primary);
  border: 2px solid var(--border-strong); font-weight: 700;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}
.chip--filter:hover { border-color: var(--text-primary); }
.chip--filter[aria-pressed="true"] { background: var(--text-primary); border-color: var(--text-primary); color: #fff; }
.chip__dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--area); box-shadow: 0 0 0 2px #fff; flex: none; }

/* Badge ("Incluye evaluación") and area tag */
.badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.8rem 0.3rem 0.55rem; border-radius: var(--radius-pill);
  background: var(--area-tint, var(--bg-secondary)); color: var(--text-primary);
  font-size: 0.875rem; font-weight: 700;
}
.badge .i { width: 1.05em; height: 1.05em; }
.tag { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 700; color: var(--text-secondary); }
.tag__dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--area); box-shadow: 0 0 0 3px var(--area-tint); flex: none; }

/* Zoom badge on clickable flyers */
.zoom-badge {
  position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, 0.94); color: var(--text-primary); box-shadow: var(--shadow-sm);
}
.zoom-badge .i { width: 20px; height: 20px; }

/* Night surfaces share a sparse star field */
.night { position: relative; background: var(--bg-night); color: var(--text-on-night-muted); }
.night .label { color: var(--brand-yellow); }
.night h2, .night h3 { color: #fff; }
.starfield { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.starfield svg { width: 100%; height: 100%; }
.starfield .stars { fill: #fff; stroke: #fff; }
.starfield .glow { fill: var(--brand-cyan); filter: drop-shadow(0 0 3px rgba(34, 242, 242, 0.95)) drop-shadow(0 0 9px rgba(34, 242, 242, 0.55)); }

/* <noscript> fallback (crawlers / no-JS) — plain, readable */
.noscript { padding-block: 3rem; color: var(--text-primary); }
.noscript h1, .noscript h2 { margin: 1.5rem 0 0.75rem; }
.noscript ul { list-style: disc; padding-left: 1.25rem; }
.noscript a { text-decoration: underline; }


/* ─── 5. Header / Nav ───────────────────────────────────────────────── */
.header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 0.75rem; height: var(--header-h); }
.nav__logo { display: flex; align-items: center; margin-right: auto; border-radius: 8px; }
.nav__logo img { height: 46px; width: auto; }

.nav__links { display: flex; }
.nav__link { position: relative; display: inline-block; font-weight: 700; color: var(--text-primary); transition: color var(--transition); }
.nav__link:hover { color: var(--accent-hover); }

.nav__cta { white-space: nowrap; }
.nav__hamburger {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; border-radius: 12px; flex: none;
}
.nav__hamburger span { display: block; width: 24px; height: 2.5px; border-radius: 3px; background: var(--text-primary); }
.nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }


/* ─── 6. Hero (night sky) + seal ────────────────────────────────────── */
/* Fits ONE screen under the sticky nav: min-height (never height — the
   content still grows with text zoom, WCAG 1.4.4/1.4.10) + spacing, type
   and seal sized with viewport-height units. */
.hero {
  position: relative; overflow: hidden; display: grid; align-content: center;
  min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h));
  padding-block: clamp(1rem, 3.2svh, 2.5rem) calc(var(--horizon) + clamp(1rem, 3.5svh, 3rem));
}
/* soft depth behind the seal (literal rgba — never color-mix(…transparent)) */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38rem 30rem at 78% 40%, rgba(33, 146, 191, 0.32), transparent 70%),
    radial-gradient(26rem 20rem at 8% 96%, rgba(127, 200, 227, 0.12), transparent 70%);
}
/* horizon: the day rises from below — take-off */
.hero::after {
  content: ''; position: absolute; z-index: 1; left: 0; right: 0; bottom: -1px; height: var(--horizon);
  background: radial-gradient(66% 100% at 50% 100%, var(--bg-primary) 99.4%, rgba(255, 255, 255, 0) 100%);
}
.hero__inner { position: relative; z-index: 3; display: grid; gap: clamp(2.5rem, 6vw, 3rem); align-items: center; }
.hero__content { position: relative; }
.hero__eyebrow {
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: clamp(0.65rem, 2.2svh, 1.15rem);
  font-size: 0.875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-sky);
}
.hero__eyebrow::before { content: ''; width: 2.25rem; height: 2px; border-radius: 2px; background: currentColor; flex: none; }
/* Same line breaks before and after the web-font swap (no CLS): the
   optical size is PINNED at 60 — the size the metric-matched fallbacks
   (§1b) were calibrated at; with opsz auto, Fraunces is wider than them at
   phone sizes and narrower at ~76 px, so a whole line could jump. The
   measure is in em, not ch (ch follows whichever font is loaded). */
.hero__title {
  color: #fff; max-width: 9.2em; font-variation-settings: "SOFT" 100, "opsz" 60;
  font-size: clamp(2.1rem, min(1.05rem + 5.6vw, 8.8svh), 5.1rem);
}
.hero__subtitle { margin-top: clamp(0.75rem, 2.4svh, 1.4rem); max-width: 34ch; font-size: clamp(1.05rem, min(0.98rem + 0.5vw, 2.9svh), 1.3rem); color: var(--text-on-night-muted); line-height: 1.5; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: clamp(0.6rem, 1.6svh, 0.85rem); margin-top: clamp(1rem, 3.4svh, 2.1rem); }
.hero__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: clamp(0.8rem, 2.6svh, 1.75rem); }
.hero__art { position: relative; justify-self: center; width: min(78vw, 470px); aspect-ratio: 1; }
.seal__svg { width: 100%; height: 100%; overflow: visible; }
.seal__layer { position: absolute; inset: 0; }
.seal__text { font-family: var(--font-body); }
.night .seal__text { stroke: var(--bg-night); stroke-width: 7px; stroke-linejoin: round; paint-order: stroke; }

/* Night skies — js/universe.js fills every [data-universe] layer (hero,
   countdown band, footer, mobile menu, 404): quieter than the signatures */
.universe { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; opacity: 0; }
.universe.is-ready, .hero__moon.is-ready { opacity: 1; }   /* built after first paint */
.universe__stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.universe__stars .stars { fill: #fff; stroke: #fff; }
.universe__stars .glow { fill: var(--brand-cyan); filter: drop-shadow(0 0 3px rgba(34, 242, 242, 0.95)) drop-shadow(0 0 9px rgba(34, 242, 242, 0.55)); }
.twinkle { position: absolute; fill: #fff; color: #fff; opacity: 0.7; }
.comet { position: absolute; left: 70%; top: 4%; width: 25%; height: 15%; }
.process .comet { opacity: 0.6; }   /* countdown band: behind the content, dimmed */
.comet__body { position: absolute; inset: 0; opacity: 0; }
.comet__body::before {   /* tail: soft brand-yellow → transparent, pointing back up-right */
  content: ''; position: absolute; left: 100%; top: 0; width: var(--comet-tail, 140px); height: 2px; margin-top: -1px;
  border-radius: 2px; transform-origin: 0 50%; transform: rotate(calc(-1 * var(--comet-angle, 30deg)));
  background: linear-gradient(90deg, rgba(255, 251, 230, 0.95), rgba(251, 241, 104, 0.55) 22%, rgba(251, 241, 104, 0));
}
.comet__body::after {    /* head */
  content: ''; position: absolute; left: 100%; top: 0; width: 4px; height: 4px; margin: -2px 0 0 -2px;
  border-radius: 50%; background: #FFFBE6; box-shadow: 0 0 6px 2px rgba(251, 241, 104, 0.7);
}
.hero__moon {   /* crescent moon: right end of the eyebrow row (opposite the seal) — inside the hero even when it fits one screen */
  --moon: 36px;
  position: absolute; right: 0; top: -0.3rem; width: var(--moon); height: var(--moon); pointer-events: none;
  opacity: 0;
}
.moon__art { position: relative; width: 100%; height: 100%; overflow: visible; }
.moon__glow {
  position: absolute; inset: -80%; border-radius: 50%; opacity: 0.6;
  background: radial-gradient(circle, rgba(255, 246, 214, 0.5) 0%, rgba(255, 246, 214, 0.16) 36%, rgba(255, 246, 214, 0) 68%);
}

/* Highlighted word in the H1 — a hand-drawn flame-yellow stroke under it */
.hl { position: relative; white-space: nowrap; }
.hl--line { display: inline-block; }
.hl__line { position: absolute; left: -3%; width: 106%; bottom: -0.16em; height: 0.34em; overflow: visible; pointer-events: none; }
.hl__line path { fill: none; stroke: var(--brand-yellow); stroke-linecap: round; }
.hl__line path:first-child { stroke-width: 6px; }
.hl__line path:last-child { stroke-width: 3px; opacity: 0.85; }
.hl__line .ul-b { display: none; }   /* symmetric stroke: centered hero only */
/* Marker variant (quote): yellow highlighter behind the words */
.hl--marker {
  white-space: normal; padding: 0 0.08em;
  background: linear-gradient(transparent 60%, var(--brand-yellow) 60%, var(--brand-yellow) 94%, transparent 94%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}


/* ─── 7. Stats strip (directly under the hero) ──────────────────────── */
.stats { position: relative; background: var(--bg-primary); padding: 0 0 clamp(2.75rem, 6vw, 4rem); margin-top: -1px; }
.stats__list { display: flex; justify-content: center; align-items: flex-start; gap: clamp(1.6rem, 7vw, 5.5rem); }
.stat { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 9rem; }
.stat + .stat::before {
  content: ''; position: absolute; top: 1.35rem; left: calc(-0.5 * clamp(1.6rem, 7vw, 5.5rem) - 7px);
  width: 14px; height: 14px; background: var(--text-primary); opacity: 0.85;
  -webkit-mask: var(--star-mask) center / contain no-repeat; mask: var(--star-mask) center / contain no-repeat;
}
.stat__num {
  position: relative; z-index: 0; padding: 0 0.14em;
  font-family: var(--font-display); font-variation-settings: "SOFT" 100;
  font-weight: 900; font-size: clamp(2.8rem, 2rem + 3vw, 4.25rem); line-height: 1; color: var(--text-primary);
}
.stat__num::before {   /* hand-drawn highlighter blob behind the number */
  content: ''; position: absolute; z-index: -1; left: -0.04em; right: -0.04em; bottom: 0.02em; height: 0.46em;
  background: var(--brand-yellow); border-radius: 46% 54% 42% 58% / 58% 44% 56% 42%; transform: rotate(-3deg);
}
.stat__label { margin-top: 0.55rem; font-weight: 700; font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.12rem); line-height: 1.25; color: var(--text-secondary); }


/* ─── 8. Admissions band (campaign) ─────────────────────────────────── */
.admissions {
  position: relative; overflow: hidden; padding-block: var(--section-padding);
  background:
    radial-gradient(56% 64% at 50% 46%, #FFFFFF 0%, rgba(255, 255, 255, 0) 72%),
    #D2ECF7;
}
.admissions__ribbon { position: absolute; z-index: 0; pointer-events: none; fill: none; stroke-linecap: round; }
.admissions__ribbon--red { left: -210px; top: -230px; width: 440px; stroke: var(--brand-red); }
.admissions__ribbon--yellow { right: -170px; bottom: -120px; width: 460px; stroke: #FFE07A; }
.admissions__inner { position: relative; z-index: 3; display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
.flyer {
  position: relative; display: block; width: min(100%, 400px); margin-inline: auto;
  padding: 7px; border-radius: 26px; background: #fff; box-shadow: var(--shadow-lg);
  transform: rotate(-2deg); cursor: zoom-in;
}
.flyer img { width: 100%; height: auto; border-radius: 20px; }
.admissions__title { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 3.9rem); font-weight: 900; }
.admissions__text { margin-top: 1.1rem; font-size: clamp(1.08rem, 1rem + 0.35vw, 1.22rem); color: var(--text-primary); max-width: 40ch; }
.admissions__chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.6rem; }
.admissions__chips li {
  padding: 0.42rem 1rem; border: 2px solid var(--accent); border-radius: var(--radius-pill);
  background: #fff; color: var(--accent-hover); font-weight: 700; font-size: 0.95rem; line-height: 1.3;
}
.admissions__note { margin-top: 1.4rem; font-weight: 700; color: var(--text-primary); }
.admissions__cta { margin-top: 1.75rem; }


/* ─── 9. Services ───────────────────────────────────────────────────── */
.services { padding-block: var(--section-padding); background: var(--bg-primary); }
.services__grid { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.service-card {
  position: relative; display: flex; flex-direction: column; gap: 0.85rem;
  padding: 1.75rem 1.6rem 1.25rem; background: var(--bg-card);
  border: 1.5px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.service-card::before {   /* area color accent */
  content: ''; position: absolute; top: -1.5px; left: 1.6rem; width: 3.25rem; height: 6px;
  border-radius: 0 0 6px 6px; background: var(--area);
}
.service-card:hover { border-color: var(--area); box-shadow: var(--shadow-md); }
.service-card__icon {
  width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center;
  background: var(--area-tint); margin-bottom: 0.35rem;
}
.service-card__icon .art { width: 54px; height: 54px; }
.service-card__title { font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.5rem); }
.service-card__desc { font-size: 1rem; line-height: 1.6; }
.service-card__actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem;
  margin-top: auto; padding-top: 1.1rem; border-top: 2px dashed var(--border);
}


/* ─── 10. ¿Cuándo consultar? — tabs ─────────────────────────────────── */
.signals { padding-block: var(--section-padding); background: var(--bg-secondary); }
.signals__head { display: grid; gap: 1rem 3rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.signals__head .section-intro { margin-top: 0; }
.signals__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.5rem); }
.signals__layout > * { min-width: 0; }
.signals__tabs {
  display: flex; gap: 0.5rem; overflow-x: auto; scroll-snap-type: x proximity;
  margin: 0 calc(-1 * var(--container-pad)); padding: 0.35rem var(--container-pad) 0.6rem;
  scrollbar-width: none;
}
.signals__tabs::-webkit-scrollbar { display: none; }
.signal-tab {
  flex: none; display: flex; align-items: center; gap: 0.7rem; min-height: 56px;
  padding: 0.45rem 1.05rem 0.45rem 0.5rem; border-radius: 18px; scroll-snap-align: start;
  border: 2px solid transparent; background: rgba(255, 255, 255, 0.6);
  color: var(--text-primary); font-weight: 700; text-align: left; line-height: 1.2;
  transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.signal-tab:hover { background: #fff; }
.signal-tab[aria-selected="true"] { background: #fff; border-color: var(--area); box-shadow: var(--shadow-sm); }
.signal-tab__icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--area-tint); flex: none; }
.signal-tab__icon .art { width: 30px; height: 30px; }

.signal-panel {
  position: relative; overflow: hidden; background: #fff;
  border: 1.5px solid var(--border); border-radius: 28px; box-shadow: var(--shadow-md);
  padding: clamp(1.6rem, 4vw, 2.75rem);
}
.signal-panel::before {   /* soft wash of the area color */
  content: ''; position: absolute; right: -110px; top: -120px; width: clamp(200px, 26vw, 300px); aspect-ratio: 1; border-radius: 50%;
  background: var(--area-soft); pointer-events: none;
}
.signal-panel__icon {
  position: absolute; right: clamp(1.25rem, 3vw, 2.25rem); top: clamp(1.25rem, 3vw, 2.25rem);
  width: clamp(64px, 9vw, 92px); height: clamp(64px, 9vw, 92px); border-radius: 50%;
  display: grid; place-items: center; background: var(--area-tint);
}
.signal-panel__icon .art { width: 68%; height: 68%; }
.signal-panel__title { position: relative; font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); padding-right: clamp(76px, 11vw, 112px); margin-bottom: 1.5rem; min-height: 2.4em; }
.signal-panel__list { position: relative; display: grid; gap: 1.1rem; }
.signal-panel__list li {
  position: relative; padding-left: 2.6rem;
  font-size: clamp(1.06rem, 1rem + 0.3vw, 1.2rem); font-weight: 600; line-height: 1.45; color: var(--text-primary);
}
.signal-panel__list li::before {
  content: ''; position: absolute; left: 0; top: 0.05em; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--area-tint);
}
.signal-panel__list li::after {
  content: ''; position: absolute; left: 0.35rem; top: calc(0.05em + 0.35rem); width: 1rem; height: 1rem;
  background: var(--text-primary);
  -webkit-mask: var(--check-mask) center / contain no-repeat; mask: var(--check-mask) center / contain no-repeat;
}
.signal-panel__actions {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem;
  margin-top: 2rem; padding-top: 1.4rem; border-top: 2px dashed var(--border);
}


/* ─── 11. Process — countdown (night band) + coverage strip ─────────── */
.process { padding-block: var(--section-padding); overflow: hidden; }
.process .container { position: relative; z-index: 3; }
.process .section-head { margin-bottom: 0; }

.steps { position: relative; display: grid; gap: 2.25rem; margin-top: 3rem; }
/* mobile/tablet trail: dashed flame line linking the markers */
.steps::before {
  content: ''; position: absolute; left: 27px; top: 34px; bottom: 34px; width: 10px;
  background: var(--trail-tile) center top / 10px 24px repeat-y;
}
.step { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.step__marker {
  position: relative; z-index: 3; display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--text-primary);
  font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 900; font-size: 2rem; line-height: 1;
  box-shadow: 0 0 0 6px rgba(251, 241, 104, 0.16), 0 12px 26px -10px rgba(0, 0, 0, 0.6);
}
.step--launch .step__marker { width: 72px; height: 72px; margin-left: -4px; background: var(--brand-yellow); }
.step--launch .step__marker .art { width: 50px; height: 50px; }
.step__body { position: relative; z-index: 3; padding-top: 0.3rem; }
.step__icon { display: block; width: 46px; height: 46px; margin-bottom: 0.6rem; padding: 4px; border-radius: 14px; background: #fff; }
.step__icon .art { width: 100%; height: 100%; }
.step__title { color: #fff; font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.65rem); }
.step__count { display: block; margin-bottom: 0.35rem; color: var(--brand-yellow); font-weight: 900; font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); line-height: 1; }
.step__text { margin-top: 0.55rem; max-width: 30ch; color: var(--text-on-night-muted); }

.coverage {
  position: relative; z-index: 3; display: grid; gap: 0.9rem 2rem; align-items: center;
  margin-top: clamp(3.5rem, 7vw, 5rem); padding: 1.4rem 1.6rem;
  border: 2px dashed var(--night-line); border-radius: 24px; background: #0D2F4B;
}
.process .coverage__title { color: var(--brand-yellow); font-size: 1.3rem; }
.coverage__text { color: var(--text-on-night-muted); max-width: 52ch; }
.coverage__logos { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.coverage__logos img { height: 48px; width: auto; padding: 6px 10px; background: #fff; border-radius: 12px; }


/* ─── 12. About — mission · vision · values · quote ─────────────────── */
.about { padding-block: var(--section-padding); background: var(--bg-primary); }
.about__grid { display: grid; gap: clamp(1.5rem, 4vw, 4rem); }
.about__grid .section-head { margin-bottom: 0; }
.mini-label {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; font-family: var(--font-body);
  font-size: 0.875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-primary);
}
.mini-label::before { content: ''; width: 1.5rem; height: 2px; border-radius: 2px; background: var(--accent); }
.about__mission { font-size: clamp(1.14rem, 1rem + 0.55vw, 1.38rem); line-height: 1.6; color: var(--text-primary); }
.about__vision { margin-top: 2rem; padding: 1.4rem 1.6rem; border-radius: 22px; background: var(--bg-secondary); }
.about__vision p:last-child { font-size: 1rem; }

.values { margin-top: clamp(3.5rem, 7vw, 5rem); }
.values__list { display: flex; flex-wrap: wrap; gap: 1.1rem 1rem; margin-top: 1.4rem; padding-left: 0.3rem; }
.patch {
  position: relative; display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.95rem 1.35rem 0.95rem 1.1rem; border-radius: 18px;
  background: var(--patch-bg); color: var(--patch-ink);
  font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 800;
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem); line-height: 1.15;
  transform: rotate(var(--tilt, 0deg));
  box-shadow: inset 0 -3px 0 rgba(9, 39, 63, 0.14), inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 10px 18px -10px rgba(9, 39, 63, 0.5);
}
.patch::after {   /* the embroidery stitch */
  content: ''; position: absolute; inset: 5px; border: 2px dashed var(--patch-stitch); border-radius: 13px; pointer-events: none;
}
.patch__mark { width: 18px; height: 18px; flex: none; color: var(--patch-stitch); }
.patch--1 { --patch-bg: #7FC8E3; --patch-ink: #09273F; --patch-stitch: #FFFFFF; --tilt: -3deg; }
.patch--2 { --patch-bg: #FBF168; --patch-ink: #09273F; --patch-stitch: #C99A12; --tilt: 2deg; }
.patch--3 { --patch-bg: #F7A6A6; --patch-ink: #09273F; --patch-stitch: #FFFFFF; --tilt: -1.5deg; }
.patch--4 { --patch-bg: #09273F; --patch-ink: #FFFFFF; --patch-stitch: #FBF168; --tilt: 2.5deg; }
.patch--5 { --patch-bg: #D93A3A; --patch-ink: #FFFFFF; --patch-stitch: #FFD9D9; --tilt: -2deg; }
.patch--6 { --patch-bg: #FFFFFF; --patch-ink: #09273F; --patch-stitch: #2192BF; --tilt: 1.5deg; outline: 1.5px solid var(--border); outline-offset: -1.5px; }
.patch--7 { --patch-bg: #CDEAF5; --patch-ink: #09273F; --patch-stitch: #2192BF; --tilt: -2.5deg; }

.quote { position: relative; max-width: 50rem; margin: clamp(4rem, 8vw, 6rem) auto 0; text-align: center; }
.quote::before {
  content: ''; display: block; width: 56px; height: 42px; margin: 0 auto 1.25rem; background: var(--brand-red);
  -webkit-mask: var(--quote-mask) center / contain no-repeat; mask: var(--quote-mask) center / contain no-repeat;
}
.quote p {
  font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 800;
  font-size: clamp(1.45rem, 1.05rem + 1.6vw, 2.25rem); line-height: 1.32; color: var(--text-primary); text-wrap: balance;
}


/* ─── 13. Team — a 3D wheel turned by the page scroll ──────────────── */
/* BASE = the flat fallback (reduced motion, short screens, very large text):
   the same 12 cards in a horizontal scroll-snap row with arrows. The pinned
   3D wheel is layered on top in §19 (motion OK + tall enough screen). */
.team { position: relative; padding-block: var(--section-padding); background: var(--bg-secondary); }
.team__stage { position: relative; }
.team__head { display: grid; justify-items: center; gap: clamp(0.55rem, 1.8svh, 1.25rem); margin-bottom: clamp(0.6rem, 2svh, 2rem); text-align: center; }
.team__title { font-size: clamp(1.75rem, min(1.3rem + 3vw, 6svh), 3.3rem); }
/* Filter chips: ONE aligned row — centred when it fits, a swipeable snap
   carousel when it doesn't (hidden scrollbar + edge fade where more hide) */
.team__filters {
  position: relative; justify-self: stretch; display: flex; flex-wrap: nowrap; gap: 0.5rem;
  margin-inline: calc(-1 * var(--container-pad)); padding: 5px var(--container-pad);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--container-pad); scrollbar-width: none;
}
.team__filters::-webkit-scrollbar { display: none; }
.team__filters > :first-child { margin-left: auto; }
.team__filters > :last-child { margin-right: auto; }
.team__filters .chip { flex: none; scroll-snap-align: center; }
.team__filters.is-scrollable { -webkit-mask-image: linear-gradient(90deg, transparent, #000 2rem, #000 calc(100% - 2rem), transparent); mask-image: linear-gradient(90deg, transparent, #000 2rem, #000 calc(100% - 2rem), transparent); }
.team__filters.is-scrollable.at-start { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 2rem), transparent); }
.team__filters.is-scrollable.at-end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 2rem); mask-image: linear-gradient(90deg, transparent, #000 2rem); }

.wheel { position: relative; }
.wheel__ring {
  --row-pad: max(var(--container-pad), calc((100% - var(--container-max)) / 2));
  position: relative; display: flex; gap: clamp(0.75rem, 2.2vw, 1.25rem);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scroll-padding-inline: var(--row-pad);
  padding: 0.5rem var(--row-pad) 1.25rem;
}
.wheel__card {
  position: relative; flex: 0 0 min(76vw, 290px); scroll-snap-align: start; display: flex; flex-direction: column;
  padding: 7px 7px 0; background: #fff; border: 1.5px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-sm);
}
.wheel__card::before {   /* area colour accent, like the service cards */
  content: ''; position: absolute; z-index: 1; top: -1.5px; left: 50%; width: 3rem; height: 5px; margin-left: -1.5rem;
  border-radius: 0 0 5px 5px; background: var(--area);
}
.wheel__photo {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 16px; background: var(--area-soft); cursor: zoom-in;
}
.wheel__photo img { width: 100%; height: 100%; object-fit: cover; }
.wheel__shade, .wheel__photo::after { position: absolute; inset: 0; background: var(--bg-secondary); opacity: 0; pointer-events: none; }
.wheel__photo::after { content: ''; }
.wheel__card.is-dimmed .wheel__photo::after { opacity: 0.72; }   /* filtered out (overlay, never a CSS filter) */
.wheel__info { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; flex: 1; padding: 0.95rem 0.6rem 0.9rem; }
.wheel__name { font-size: clamp(1.06rem, 0.98rem + 0.45vw, 1.3rem); line-height: 1.15; }
.wheel__role { font-size: 0.9375rem; font-weight: 600; line-height: 1.35; }
.wheel__mp { display: block; margin-top: 0.15rem; font-size: 0.875rem; font-weight: 700; color: var(--text-primary); }
.wheel__info .tag { margin: 0.3rem 0 0.9rem; }
.wheel__cta { margin-top: auto; }
.wheel__captions, .wheel__stars, .wheel__cta-main { display: none; }
.wheel__controls { display: flex; justify-content: center; align-items: center; gap: 0.75rem; }
.wheel__arrow {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: #fff; border: 2px solid var(--text-primary); color: var(--text-primary); box-shadow: var(--shadow-sm);
  transition: background-color var(--transition), color var(--transition), opacity var(--transition);
}
.wheel__arrow .i { width: 22px; height: 22px; }
.wheel__arrow:hover { background: var(--text-primary); color: #fff; }
.wheel__arrow[aria-disabled="true"] { opacity: 0.35; cursor: default; background: #fff; color: var(--text-primary); }
.team__run { display: none; }


/* 13b · The pinned 3D wheel — motion allowed and a screen ≥ 540 px tall.
   The stage sticks under the nav; .team__run adds ~2 screens of scroll that
   turn the wheel (App.setupTeamWheel). Title + chips + wheel + caption fit
   one screen: the card size derives from the height left (container query
   units on the wheel's viewport). JS adds .team--flat when even that can't
   fit (very large text). */
@media (prefers-reduced-motion: no-preference) and (min-height: 540px) {
  .team:not(.team--flat) { padding: 0; scroll-margin-top: -1rem; }   /* #equipo lands pinned, first card in front */
  .team:not(.team--flat) .team__stage {
    position: sticky; top: var(--nav-h); overflow: hidden;
    min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h));
    display: grid; grid-template-rows: auto minmax(0, 1fr);
    padding-block: clamp(0.5rem, 2.2svh, 2rem) clamp(0.5rem, 1.8svh, 1.6rem);
  }
  .team:not(.team--flat) .team__stage::before {   /* stage light, tinted by the front card's area */
    content: ''; position: absolute; left: 50%; top: 55%; width: min(1100px, 140vw); height: 85%; transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, var(--front-tint, rgba(127, 200, 227, 0.25)), rgba(238, 246, 250, 0));
    pointer-events: none; transition: background 0.5s ease;
  }
  .team:not(.team--flat) .team__run { display: block; height: 200vh; height: 200svh; }
  .team:not(.team--flat) .team__head { position: relative; margin-bottom: clamp(0.2rem, 1svh, 1rem); }
  .team:not(.team--flat) .wheel { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; min-height: 0; }
  .team:not(.team--flat) .wheel__viewport { position: relative; min-height: 0; container-type: size; overflow: hidden; touch-action: pan-y; }
  /* each card carries perspective() in its own transform (App.paintWheel) */
  .team:not(.team--flat) .wheel__ring {
    --card-w: min(72vw, calc((100cqh - 1.6rem) * 0.8), 25rem);
    position: absolute; inset: 0; display: block; overflow: visible; padding: 0; scroll-snap-type: none;
  }
  .team:not(.team--flat) .wheel__ring::before {   /* the orbit: the dashed flight path the cards stand on (projected) */
    content: ''; position: absolute; z-index: 0; left: 50%; top: 50%;
    width: var(--orbit-w, 600px); height: var(--orbit-h, 60px); margin-left: calc(var(--orbit-w, 600px) / -2); margin-top: calc(var(--orbit-y, 140px) - var(--orbit-h, 60px) / 2);
    border: 2px dashed var(--border-strong); border-radius: 50%; opacity: 0.8; pointer-events: none;
  }
  .team:not(.team--flat) .wheel__card {
    position: absolute; left: 50%; top: 50%; flex: none; width: var(--card-w);
    margin: calc(var(--card-w) * -0.625) 0 0 calc(var(--card-w) * -0.5);   /* centred on the ring (4:5 frame) */
    padding: 6px; border-radius: 20px; backface-visibility: hidden; will-change: transform;
    transition: box-shadow 0.35s ease;
  }
  .team:not(.team--flat) .wheel__photo { border-radius: 15px; }
  .team:not(.team--flat) .wheel__card.is-front { box-shadow: 0 0 0 3px var(--area), 0 30px 60px -28px rgba(9, 39, 63, 0.6); }
  .team:not(.team--flat) .wheel__card.is-away { opacity: 0; pointer-events: none; }   /* turned away: still in the a11y tree */
  .team:not(.team--flat) .wheel__card .zoom-badge { opacity: 0; transition: opacity 0.3s ease; }
  .team:not(.team--flat) .wheel__card.is-front .zoom-badge { opacity: 1; }
  .team:not(.team--flat) .wheel__info {   /* the text stays in the DOM (SEO/AI, screen readers) */
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .team:not(.team--flat) .wheel__cta { display: none; }
  /* The team constellation: one star per professional, in the area colour */
  .team:not(.team--flat) .wheel__stars { display: flex; justify-content: center; align-items: flex-start; gap: clamp(5px, 1.1vw, 10px); height: 22px; margin-top: clamp(0.15rem, 0.8svh, 0.5rem); }
  .wheel__star {
    width: 10px; height: 10px; flex: none; background: var(--area); opacity: 0.55; transform: translateY(var(--arc, 0px)) scale(0.85);
    -webkit-mask: var(--star-mask) center / contain no-repeat; mask: var(--star-mask) center / contain no-repeat;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .wheel__star.is-on { opacity: 1; transform: translateY(var(--arc, 0px)) scale(1.65); }
  .wheel__star.is-dim { opacity: 0.16; }
  /* Caption of the front card + its CTA between the arrows */
  .team:not(.team--flat) .wheel__bar { display: grid; justify-items: center; gap: clamp(0.3rem, 1svh, 0.7rem); margin-top: clamp(0.2rem, 0.8svh, 0.6rem); }
  .team:not(.team--flat) .wheel__captions { display: grid; width: 100%; text-align: center; }
  .wheel__who { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity 0.3s ease, visibility 0.3s; }
  .wheel__who.is-front { visibility: visible; opacity: 1; }
  .wheel__who-name { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 800; font-size: clamp(1.15rem, 1rem + 0.8vw, 1.45rem); line-height: 1.15; color: var(--text-primary); }
  .wheel__who-role { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.1rem 0.75rem; margin-top: 0.2rem; font-size: 0.9375rem; font-weight: 600; line-height: 1.35; }
  .team:not(.team--flat) .wheel__cta-main { display: inline-flex; min-width: 0; }
}
/* Phones in wheel mode: arrows on the wheel's sides (over the peeking
   neighbours) so the CTA gets the full width */
@media (prefers-reduced-motion: no-preference) and (min-height: 540px) and (max-width: 639.98px) {
  .team:not(.team--flat) .wheel__controls { display: contents; }
  .team:not(.team--flat) .wheel__arrow { position: absolute; z-index: 30; top: calc(var(--vp-h, 300px) / 2 - 24px); }
  .team:not(.team--flat) #team-prev { left: max(4px, env(safe-area-inset-left, 0px)); }
  .team:not(.team--flat) #team-next { right: max(4px, env(safe-area-inset-right, 0px)); }
}
/* Phones/tablets: while the wheel is pinned the floating buttons step aside */
@media (max-width: 1023.98px) {
  body.is-team-pinned .wa-float, body.is-team-pinned .to-top { opacity: 0; visibility: hidden; }
}
/* Short phones in wheel mode: the card gets the constellation's room */
@media (prefers-reduced-motion: no-preference) and (min-height: 540px) and (max-height: 700px) and (max-width: 639.98px) {
  .team:not(.team--flat) .wheel__stars { display: none; }
  .team:not(.team--flat) .team__title { font-size: 1.6rem; }
}
/* Desktop wheel: caption + CTA + arrows on ONE row → a bigger card */
@media (prefers-reduced-motion: no-preference) and (min-height: 540px) and (min-width: 1024px) {
  /* max-width keeps the arrows clear of the floating buttons' corners */
  .team:not(.team--flat) .wheel__bar { grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; justify-items: stretch; column-gap: 1.25rem; max-width: min(1120px, calc(100vw - 10rem)); }
  .team:not(.team--flat) .wheel__controls { display: contents; }
  .team:not(.team--flat) #team-prev { order: 1; }
  .team:not(.team--flat) .wheel__captions { order: 2; text-align: left; }
  .team:not(.team--flat) .wheel__cta-main { order: 3; }
  .team:not(.team--flat) #team-next { order: 4; }
  .team:not(.team--flat) .wheel__who { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 1rem; }
  .team:not(.team--flat) .wheel__who-role { justify-content: flex-start; margin-top: 0; }
}


/* ─── 14. FAQ ───────────────────────────────────────────────────────── */
.faq { padding-block: var(--section-padding); background: var(--bg-primary); }
.faq__layout { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.faq__aside .section-head { margin-bottom: 0; }
.faq__card { position: relative; overflow: hidden; margin-top: 2rem; padding: 1.6rem; border-radius: 24px; }
.faq__card .starfield { opacity: 0.8; }
.faq__card > *:not(.starfield) { position: relative; z-index: 1; }
.faq__card-title { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 800; font-size: 1.4rem; color: #fff; line-height: 1.2; }
.faq__card-text { margin: 0.4rem 0 1.25rem; }
.faq-group + .faq-group { margin-top: 2.75rem; }
.faq-group__title {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem;
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-hover);
}
.faq-group__title::before { content: ''; width: 1.5rem; height: 2px; border-radius: 2px; background: currentColor; }
.faq-item { border-bottom: 2px dashed var(--border); }
.faq-item__heading { font: inherit; letter-spacing: normal; }
.faq-item__question {
  width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding: 1.1rem 0; text-align: left; color: var(--text-primary);
  font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 700;
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.24rem); line-height: 1.3;
}
.faq-item__question:hover { color: var(--accent-hover); }
.faq-item__icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid currentColor; color: var(--text-primary); }
.faq-item__icon::before, .faq-item__icon::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2.5px; border-radius: 2px;
  background: currentColor; transform: translate(-50%, -50%);
}
.faq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item--open .faq-item__icon { background: var(--text-primary); color: #fff; border-color: var(--text-primary); }
.faq-item--open .faq-item__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item__answer { display: grid; grid-template-rows: 0fr; visibility: hidden; }
.faq-item--open .faq-item__answer { grid-template-rows: 1fr; visibility: visible; }
.faq-item__inner { overflow: hidden; }
.faq-item__inner p { max-width: 62ch; padding: 0 3rem 1.35rem 0; }


/* ─── 15. Contact ───────────────────────────────────────────────────── */
.contact {
  position: relative; padding-block: var(--section-padding) calc(var(--section-padding) + var(--horizon));
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 52%, #D6E9F3 100%);
}
.contact__layout { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.contact__title { font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.4rem); font-weight: 900; }
.contact__text { margin-top: 1rem; font-size: clamp(1.08rem, 1rem + 0.35vw, 1.22rem); max-width: 32ch; }
.contact__cta { margin-top: 1.9rem; }
.contact__cards { display: grid; gap: 0.8rem; grid-template-columns: minmax(0, 1fr); }
.contact-card {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.9rem 1rem; padding: 1rem 1.15rem;
  background: #fff; border: 1.5px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-sm);
}
.contact-card__icon { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--bg-secondary); }
.contact-card__icon .art { width: 40px; height: 40px; }
.contact-card__body { flex: 1 1 12rem; min-width: 0; }
.contact-card__label { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary); }
.contact-card__value { display: inline-block; font-size: 1.05rem; font-weight: 700; color: var(--text-primary); overflow-wrap: break-word; line-height: 1.35; }
a.contact-card__value { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--border-strong); }
a.contact-card__value:hover { text-decoration-color: var(--accent); }
/* the whole card is the touch target (stretched link); focus ring on the card */
.contact-card--link { position: relative; transition: border-color var(--transition), box-shadow var(--transition); }
.contact-card--link:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.contact-card--link a.contact-card__value::after { content: ''; position: absolute; inset: 0; border-radius: 20px; }
.contact-card--link a.contact-card__value:focus-visible { outline: none; }
.contact-card--link a.contact-card__value:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 3px; }
.contact-card__action { flex: none; }


/* ─── 16. Footer — the landing ──────────────────────────────────────── */
.footer { padding: clamp(2.5rem, 5vw, 3.5rem) 0 calc(var(--fab) + 2 * var(--fab-offset) + env(safe-area-inset-bottom, 0px)); }
.footer::before {   /* night dome descending over the day (no overflow: the ellipse is a gradient) */
  content: ''; position: absolute; left: 0; right: 0; top: calc(1px - var(--horizon)); height: var(--horizon);
  background: radial-gradient(66% 100% at 50% 100%, var(--bg-night) 99.4%, rgba(9, 39, 63, 0) 100%);
}
.footer .container { position: relative; z-index: 1; }
.footer__top { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer__seal { width: clamp(150px, 18vw, 184px); aspect-ratio: 1; }
.footer__closing {
  margin-top: 1.4rem; max-width: 20ch; color: #fff;
  font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 800;
  font-size: clamp(1.65rem, 1.2rem + 2vw, 2.6rem); line-height: 1.12; text-wrap: balance;
}
.footer__entity { margin-top: 0.85rem; max-width: 44ch; }
.footer__cols { display: grid; gap: 2rem; margin-top: 3rem; padding-top: 2.25rem; border-top: 2px dashed var(--night-line); }
.footer .footer__heading {   /* beats .night h2 */
  margin-bottom: 0.9rem; font-family: var(--font-body); font-size: 0.875rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-yellow);
}
.footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 0 2rem; }
.footer__contact { display: grid; gap: 0; }
.footer__contact li { display: flex; align-items: center; gap: 0.55rem; }
.footer__contact .i { width: 1.15em; height: 1.15em; color: var(--brand-yellow); flex: none; }
.footer a { color: #fff; display: inline-flex; align-items: center; gap: 0.55rem; min-height: 44px; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 4px; }
.footer a:hover { color: var(--brand-yellow); text-decoration-color: currentColor; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem;
  margin-top: 2.75rem; padding-top: 1.4rem; border-top: 1px solid var(--night-line); font-size: 0.9375rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }


/* ─── 17. Overlays ──────────────────────────────────────────────────── */
.wa-float, .to-top {
  position: fixed; z-index: 90; bottom: calc(var(--fab-offset) + env(safe-area-inset-bottom, 0px));
  width: var(--fab); height: var(--fab); border-radius: 50%; display: grid; place-items: center;
  visibility: hidden; opacity: 0;
}
.wa-float {
  right: calc(var(--fab-offset) + env(safe-area-inset-right, 0px));
  background: var(--color-whatsapp); color: #fff;
  box-shadow: 0 0 0 2px #fff, 0 12px 24px -10px rgba(9, 39, 63, 0.6);
}
.wa-float .i { width: 24px; height: 24px; }
.to-top {
  left: calc(var(--fab-offset) + env(safe-area-inset-left, 0px));
  background: #fff; border: 2px solid var(--text-primary); box-shadow: 0 12px 24px -10px rgba(9, 39, 63, 0.6);
}
.wa-float.is-visible, .to-top.is-visible { visibility: visible; opacity: 1; }
.to-top__rocket { display: block; width: 32px; height: 32px; }
.to-top__rocket .art { width: 100%; height: 100%; overflow: visible; }
.to-top.is-launched .to-top__rocket { opacity: 0; }   /* the rocket left on its journey */
/* "¡Despegá!" — speech bubble drawn like the site's icons: thick navy
   outline + off-register yellow print. A SIBLING of the button (its name
   stays "Volver arriba"), pinned next to it, click-through. Visible only
   while inviting. */
.to-top__bubble {
  position: fixed; z-index: 91;
  left: calc(var(--fab-offset) + env(safe-area-inset-left, 0px) + var(--fab) + 2px);
  bottom: calc(var(--fab-offset) + env(safe-area-inset-bottom, 0px) + var(--fab) - 6px);
  padding: 0.5rem 0.85rem 0.55rem; border: 2.5px solid var(--text-primary); border-radius: 18px 18px 18px 5px;
  background: #fff; color: var(--text-primary); box-shadow: -3px 3px 0 var(--brand-yellow);
  font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 800; font-size: 1.05rem; line-height: 1;
  white-space: nowrap; transform-origin: 0 100%; opacity: 0; visibility: hidden; pointer-events: none;
}
.to-top__bubble::before {   /* tail pointing at the rocket */
  content: ''; position: absolute; left: -10px; bottom: -2.5px; width: 15px; height: 13px;
  background: #fff; clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.to-top.is-visible.is-inviting + .to-top__bubble { opacity: 1; visibility: visible; }
.to-top::after {   /* calm invitation pulse */
  content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--brand-yellow); opacity: 0; pointer-events: none;
}

.lightbox {
  margin: auto; padding: 0; border: 0; background: transparent; overflow: visible;
  width: fit-content; max-width: min(92vw, 760px); max-height: 94vh;
}
.lightbox::backdrop { background: rgba(9, 39, 63, 0.9); }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: 0.85rem; }
.lightbox__img {
  width: auto; height: auto; max-width: 100%; max-height: calc(94vh - 4.5rem);
  border-radius: 18px; background: #0E3352; box-shadow: var(--shadow-lg);
}
.lightbox__caption { color: #fff; font-weight: 700; text-align: center; line-height: 1.4; }
.lightbox__close {
  position: absolute; top: -16px; right: -16px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--text-primary); box-shadow: var(--shadow-md);
}
.lightbox__close .i { width: 22px; height: 22px; }

/* Flights (intro + back-to-top journey) — a fixed, click-through overlay
   ABOVE the header (the rocket docks into the logo). App.fly() animates
   only transform/opacity (WAAPI); nothing here takes part in layout. */
.flight { position: fixed; inset: 0; z-index: 120; pointer-events: none; overflow: hidden; contain: strict; }
.flight__rocket, .flight__body, .flight__flame, .flight__flicker { position: absolute; left: 0; top: 0; width: 144px; height: 206px; }
.flight__body { transform-origin: 71.98px 109.27px; will-change: transform; transform: translate(-200px, -300px); }
.flight__flame, .flight__flicker { transform-origin: 72px 145px; }
.flight__art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flight__puff, .flight__burst { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; }
.flight__dash {   /* the signature flame dash: yellow core + red keyline */
  position: absolute; left: -2.6px; top: -5.5px; width: 5.2px; height: 11px; border-radius: 3px;
  background: var(--brand-yellow); box-shadow: 0 0 0 1.5px var(--brand-red);
}
.flight__spark {
  position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; background: var(--brand-yellow);
  -webkit-mask: var(--star-mask) center / contain no-repeat; mask: var(--star-mask) center / contain no-repeat;
}

/* Flame trail (desktop) — drawn by App.setupTrail() from live geometry */
main { position: relative; }
.flight-trail { position: absolute; top: 0; left: 0; z-index: 2; width: 100%; height: 0; overflow: visible; pointer-events: none; display: none; }
/* "flame dashes": brand-yellow core + thin brand-red keyline (the logo's
   flame colors). Pure #FBF168 alone is 1.1:1 on white and vanishes. */
.flight-trail path { fill: none; stroke-linecap: round; stroke-dasharray: 11 13; }
.flight-trail__outline { stroke: var(--brand-red); stroke-width: 6; }
.flight-trail__core { stroke: var(--brand-yellow); stroke-width: 3.2; }


/* ─── 18. Utility pages (404 · privacidad) ──────────────────────────── */
.page-plain { background: var(--bg-primary); }
.page-header { border-bottom: 1px solid var(--border); background: #fff; }
.page-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.page-header img { height: 46px; width: auto; }
.legal { max-width: 46rem; margin-inline: auto; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.2rem); margin-bottom: 0.5rem; }
.legal h2 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); margin: 2.25rem 0 0.6rem; }
.legal p { margin-bottom: 1rem; }
.legal a { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.error-hero {
  position: relative; overflow: hidden; min-height: calc(100vh - var(--header-h) - 4.5rem); display: grid; place-items: center;
  padding: 3rem 0; text-align: center;   /* its sky: js/universe.js (preset "error") */
}
.error-hero .container { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.error-hero__moon {   /* the client's seal, as a moon in the night sky */
  width: min(46vw, 190px); height: auto; border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.06), 0 0 70px rgba(127, 200, 227, 0.45);
}
.error-hero__code { font-size: clamp(4.5rem, 3rem + 8vw, 8rem); color: var(--brand-yellow); line-height: 1; }
.error-hero__msg { font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); color: #fff; font-weight: 700; }
.page-footer { padding: 1.5rem 0; font-size: 0.9375rem; border-top: 1px solid var(--night-line); }
.page-footer a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 4px; }
.page-footer a:hover { color: var(--brand-yellow); }
.page-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }


/* ─── 19. Motion — signature elements ONLY, opt-in ──────────────────── */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* 1 · Rotating seal (~40 s per turn) — an HTML layer: compositor-only */
  .seal__layer--ring { animation: seal-spin 40s linear infinite; will-change: transform; }
  @keyframes seal-spin { to { transform: rotate(360deg); } }

  /* 2 · The hero rocket floats gently (its stars stay put) */
  .seal__layer--rocket { animation: rocket-float 6s ease-in-out infinite; will-change: transform; }
  @keyframes rocket-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

  /* 3 · Countdown reveal: 3 → 2 → 1 → ¡Despegue! (once, on scroll).
     Markers only fade/scale (their centers never move, so the trail
     measured by app.js stays aligned); the text slides up. */
  .steps.fade-in .step__marker { opacity: 0; transform: scale(0.55); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.3, 1.5, 0.5, 1); }
  .steps.fade-in .step__body { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .steps.fade-in.visible .step__marker, .steps.fade-in.visible .step__body { opacity: 1; transform: none; }
  .steps.fade-in.visible .step:nth-child(2) > * { transition-delay: 0.32s; }
  .steps.fade-in.visible .step:nth-child(3) > * { transition-delay: 0.64s; }
  .steps.fade-in.visible .step:nth-child(4) > * { transition-delay: 0.98s; }

  /* Night skies — calm, opacity/transform only; twinkles paused off screen
     (and in the closed menu). A comet in flight always finishes: the
     global scheduler (universe.js) waits for it. */
  .twinkle { animation: twinkle var(--tw-d, 4s) ease-in-out var(--tw-l, 0s) infinite alternate; }
  @keyframes twinkle { from { opacity: 0.2; } to { opacity: 0.95; } }
  .is-offscreen .twinkle, .nav__menu:not(.nav--open) .twinkle { animation-play-state: paused; }
  .comet.is-flying .comet__body { animation: comet-fly 2s cubic-bezier(0.33, 0.1, 0.3, 1) 1 both; }
  @keyframes comet-fly {
    0%   { transform: translate(0, 0); opacity: 0; }
    12%  { opacity: 1; }
    58%  { opacity: 1; }
    100% { transform: translate(-100%, 100%); opacity: 0; }
  }
  .moon__glow { animation: moon-glow 9s ease-in-out infinite alternate; }
  @keyframes moon-glow { from { opacity: 0.35; } to { opacity: 0.85; } }
  .hero.is-offscreen .seal__layer, .hero.is-offscreen .moon__glow { animation-play-state: paused; }

  .wa-float { transition: opacity 0.35s ease, visibility 0.35s; }
  .universe, .hero__moon { transition: opacity 0.9s ease; }   /* the night sky "turns on" */

  /* 5 · Rocket back-to-top: appear, hover nudge; the journey itself is
     App.journeyToTop() (WAAPI). Invitation: calm pulse, bubble pops in. */
  .to-top { transform: translateY(14px); transition: opacity 0.3s ease, visibility 0.3s, transform 0.3s ease; }
  .to-top.is-visible { transform: none; }
  .to-top__rocket { transition: transform 0.25s ease, opacity 0.2s ease; }
  .to-top:hover .to-top__rocket { transform: translateY(-3px); }
  .to-top.is-inviting::after { animation: invite-pulse 2s ease-out 2; }
  @keyframes invite-pulse { from { transform: scale(1); opacity: 0.75; } to { transform: scale(1.8); opacity: 0; } }
  .to-top__bubble { transform: scale(0.6); transition: opacity 0.3s ease, visibility 0.3s, transform 0.45s cubic-bezier(0.3, 1.45, 0.5, 1); }
  .to-top.is-visible.is-inviting + .to-top__bubble { transform: none; }

}


@media (prefers-reduced-motion: reduce) {
  .comet { display: none; }
}


/* ─── 20. Media queries (mobile-first) ──────────────────────────────── */

@media (max-width: 479.98px) {
  .nav__cta { padding-inline: 0.85rem; font-size: 0.9rem; }
  .nav__cta .i { display: none; }
  .hero__ctas .btn { width: 100%; }
}

/* Phones (< 640): centered hero and footer */
@media (max-width: 639.98px) {
  .hero__content { text-align: center; }
  .hero__eyebrow { flex-direction: column; justify-content: center; gap: clamp(0.4rem, 1.3svh, 0.7rem); text-wrap: balance; }
  .hero__eyebrow::before {   /* — ★ — above the text instead of a leading rule */
    width: 3.9rem; height: 11px; border-radius: 0;
    background:
      var(--eyebrow-star) center / 11px 11px no-repeat,
      linear-gradient(currentColor, currentColor) left center / 1.4rem 2px no-repeat,
      linear-gradient(currentColor, currentColor) right center / 1.4rem 2px no-repeat;
  }
  .hero__title, .hero__subtitle { margin-inline: auto; }
  .hero__ctas, .hero__chips { justify-content: center; }
  /* compact trust chips: 2 rows instead of 3, so the hero fits 360 × 640 */
  .hero__chips { gap: 0.4rem 0.45rem; }
  .hero__chips .chip { font-size: 0.875rem; padding: 0.36rem 0.78rem; gap: 0.38rem; }
  .hl__line .ul-a { display: none; }
  .hl__line .ul-b { display: inline; }

  .footer__cols { text-align: center; justify-items: center; }
  .footer__links { justify-content: center; justify-items: center; }
  .footer__contact { justify-items: center; }
  .footer__contact li { display: block; text-align: center; }   /* icon flows with the first line */
  .footer__contact li > .i { display: inline-block; vertical-align: -0.2em; margin-right: 0.4rem; }
  .footer__bottom { flex-direction: column; align-items: center; text-align: center; }
  .footer__legal { flex-direction: column; align-items: center; gap: 0; }
}

/* Short phones: the hero must fit one screen (360 × 640). CTAs a bit
   lower (still ≥ 44 px) and the trust pills become a compact trust line
   (same icons and words, no pill chrome): 2 short rows instead of 3. */
@media (max-width: 639.98px) and (max-height: 740px) {
  .hero .btn--lg { min-height: 52px; padding-block: 0.75rem; }
  .hero__chips { gap: 0.15rem 1rem; }
  .hero__chips .chip { padding: 0.2rem 0; border: 0; background: none; font-size: 0.9rem; }
}

@media (min-width: 640px) {
  .hero { padding-top: clamp(4rem, 8vw, 5rem); }
  .hero__moon { --moon: 46px; top: calc(-1 * var(--moon) - 4px); }
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  :root { --header-h: 4.5rem; }
  .nav__logo img { height: 52px; }
  .coverage { grid-template-columns: auto minmax(0, 1fr) auto; }
  .admissions__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

/* Below the nav threshold: hamburger + night panel (CTA stays in the bar) */
@media (max-width: 1023.98px) {
  .nav__menu {
    position: fixed; inset: var(--header-h) 0 auto 0;
    /* explicit height (not bottom:0) — trap-free even if the header ever gets a filter */
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    overflow-y: auto; background: var(--bg-night);
    padding: 2rem max(var(--container-pad), env(safe-area-inset-right, 0px)) calc(3rem + env(safe-area-inset-bottom, 0px)) max(var(--container-pad), env(safe-area-inset-left, 0px));
    visibility: hidden; opacity: 0;
  }
  .nav__menu.nav--open { visibility: visible; opacity: 1; }
  .nav__links { position: relative; z-index: 1; flex-direction: column; align-items: flex-start; gap: 0.15rem; }
  .nav__link {
    display: flex; align-items: center; gap: 0.75rem; min-height: 56px; color: #fff;
    font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 800;
    font-size: clamp(1.75rem, 1.3rem + 2.4vw, 2.4rem); letter-spacing: -0.01em;
  }
  .nav__link::before {
    content: ''; width: 16px; height: 16px; background: var(--brand-yellow); flex: none; opacity: 0;
    -webkit-mask: var(--star-mask) center / contain no-repeat; mask: var(--star-mask) center / contain no-repeat;
  }
  .nav__link:hover, .nav__link--active { color: var(--brand-yellow); }
  .nav__link--active::before, .nav__link:hover::before { opacity: 1; }
}

@media (min-width: 1024px) {
  .nav { gap: clamp(1.25rem, 2.2vw, 2.25rem); }
  .nav__hamburger { display: none; }
  .nav__menu > .universe { display: none; }   /* the panel's sky: phones/tablets only */
  .nav__links { align-items: center; gap: clamp(1rem, 1.8vw, 1.75rem); }
  .nav__link { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.97rem; }
  .nav__link::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0.1rem; height: 3px; border-radius: 3px;
    background: var(--accent); opacity: 0;
  }
  .nav__link--active::after, .nav__link:hover::after { opacity: 1; }

  .hero { padding-block: clamp(1.25rem, 5.5svh, 6rem) calc(var(--horizon) + clamp(1rem, 4svh, 4.5rem)); }
  .hero__moon { --moon: clamp(44px, 8svh, 60px); right: 3%; top: calc(0.55rem - 0.5 * var(--moon)); }
  .hero__inner { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); }
  /* the seal scales with the height left under the nav */
  .hero__art { width: min(100%, 470px, calc(100svh - var(--nav-h) - var(--horizon) - 7rem)); }

  .services__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .signals__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
  .signals__layout { grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr); align-items: stretch; }
  .signals__tabs { flex-direction: column; overflow: visible; margin: 0; padding: 0; }
  .signal-tab { width: 100%; }
  .signals__panels { display: grid; }

  /* Countdown climbs left → right like a launch trajectory — FLATTENED to
     the screen's height so the whole band fits under the nav (min-height,
     never height). The flame trail is recomputed from the DOM (setupTrail). */
  .process {
    display: flex; flex-direction: column; justify-content: center;
    min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h));
    padding-block: clamp(1.25rem, 4.4svh, 7.5rem);
  }
  .process .container { width: 100%; }
  .process .label { margin-bottom: clamp(0.4rem, 1.5svh, 1rem); }
  .process h2 { font-size: clamp(1.9rem, min(1.3rem + 3vw, 6.2svh), 3.3rem); }
  .steps {
    --rise: clamp(1.1rem, 5svh - 0.4rem, 4.5rem);   /* height of each step of the climb */
    --mk: clamp(58px, 10svh, 84px);                  /* marker size */
    grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem; margin-top: clamp(0.9rem, 3svh, 2.5rem);
  }
  .steps::before { display: none; }
  .step { grid-template-columns: minmax(0, 1fr); gap: clamp(0.55rem, 1.7svh, 1.1rem); }
  .step:nth-child(1) { margin-top: calc(3 * var(--rise)); }
  .step:nth-child(2) { margin-top: calc(2 * var(--rise)); }
  .step:nth-child(3) { margin-top: var(--rise); }
  .step:nth-child(4) { margin-top: 0; }
  .step__marker { width: var(--mk); height: var(--mk); font-size: calc(var(--mk) * 0.5); }
  .step--launch .step__marker { width: calc(var(--mk) + 12px); height: calc(var(--mk) + 12px); margin-left: -6px; }
  .step--launch .step__marker .art { width: calc(var(--mk) * 0.78); height: calc(var(--mk) * 0.78); }
  .step__body { padding-top: 0; }
  .step__icon { width: clamp(36px, 6.4svh, 46px); height: clamp(36px, 6.4svh, 46px); margin-bottom: clamp(0.3rem, 1.1svh, 0.6rem); }
  .step__count { font-size: clamp(1.7rem, 5.2svh, 2.8rem); }
  .step__title { font-size: clamp(1.2rem, 3.2svh, 1.65rem); }
  .step__text { margin-top: clamp(0.3rem, 1svh, 0.55rem); font-size: clamp(0.95rem, 2.5svh, 1.0625rem); line-height: 1.55; }
  .coverage { margin-top: clamp(1.1rem, 4svh, 5rem); padding: clamp(0.7rem, 1.8svh, 1.4rem) 1.6rem; }

  .about__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

  .faq__layout { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
  .faq__aside { position: sticky; top: calc(var(--header-h) + 2rem); }

  .contact__layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

  .footer__cols { grid-template-columns: 1.1fr 1fr; }

  .flight-trail.is-ready { display: block; }
}

@media (min-width: 1280px) {
  .hero__inner { gap: 2rem; }
}
