@font-face{font-family:"Montserrat";font-style:normal;font-weight:700;font-display:swap;src:url("/fonts/montserrat-latin-700-normal.woff2") format("woff2");}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:800;font-display:swap;src:url("/fonts/montserrat-latin-800-normal.woff2") format("woff2");}
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/inter-latin-400-normal.woff2") format("woff2");}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/inter-latin-500-normal.woff2") format("woff2");}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/inter-latin-600-normal.woff2") format("woff2");}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");}
/* Andes Open Market — site styles. No inline styles anywhere: the CSP forbids them. */
:root {
  --bg: #F3F2EE;
  --paper: #FFFFFF;
  --alt: #E9EAE6;
  --fg: #151A22;
  --fg-soft: #4A525E;
  --line: rgba(21, 26, 34, 0.13);
  --navy: #151A22;
  --navy-2: #1E2A3D;
  --on-navy: #F1F2EE;
  --on-navy-soft: #B7BFCC;
  --cobalt: #2E5AA8;
  --gold: #C9A24C;
  --gold-ink: #7E601C;
  --on-gold: #151A22;
  --ok: #1F7A4D;
  --warn: #8A5A00;
  --err: #B42318;
  --focus: #2E5AA8;
  --radius: 6px;
  --f-display: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1117; --paper: #161B24; --alt: #121720; --fg: #E8EAEE; --fg-soft: #A9B1BE;
    --line: rgba(232, 234, 238, 0.12); --navy: #0A0D12; --navy-2: #182233;
    --cobalt: #86A8E8; --gold: #D6B25E; --gold-ink: #D6B25E; --on-gold: #11151C;
    --ok: #5CC08B; --warn: #E0B24F; --err: #F2877D; --focus: #86A8E8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1117; --paper: #161B24; --alt: #121720; --fg: #E8EAEE; --fg-soft: #A9B1BE;
  --line: rgba(232, 234, 238, 0.12); --navy: #0A0D12; --navy-2: #182233;
  --cobalt: #86A8E8; --gold: #D6B25E; --gold-ink: #D6B25E; --on-gold: #11151C;
  --ok: #5CC08B; --warn: #E0B24F; --err: #F2877D; --focus: #86A8E8;
  color-scheme: dark;
}

/* Bilingual preview: only one language is visible. The deploy build strips the other one. */
html[data-lang="en"] [lang="es"], html[data-lang="es"] [lang="en"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 1rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; }

.wrap { max-width: 1140px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--gold); color: var(--on-gold); padding: 10px 14px; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }

.eyebrow {
  font: 500 0.75rem/1.4 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-ink); display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 22px; border-radius: var(--radius); font: 600 0.95rem/1 var(--f-body);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 0.875rem; }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: #D8B563; }
.btn-ghost { border-color: rgba(241, 242, 238, 0.35); color: var(--on-navy); }
.btn-ghost:hover { border-color: var(--on-navy); }
.btn:active { transform: translateY(1px); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--navy); color: var(--on-navy); border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.mark { width: 34px; height: 23px; flex: none; }
.mark-back { fill: var(--cobalt); }
.mark-front { fill: #5B82C9; }
.brand-name { font: 800 0.95rem/1 var(--f-display); letter-spacing: 0.02em; white-space: nowrap; }
.brand-name b { color: var(--gold); font-weight: 800; }
.main-nav { display: flex; gap: 22px; }
.main-nav a { text-decoration: none; font-size: 0.9rem; font-weight: 500; color: var(--on-navy-soft); padding-block: 12px; }
.main-nav a:hover { color: var(--on-navy); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  font: 600 0.8rem/1 var(--f-mono); letter-spacing: 0.08em; text-decoration: none; color: var(--on-navy);
  border: 1px solid rgba(241,242,238,0.25); border-radius: var(--radius);
}
.lang-switch:hover { border-color: var(--on-navy); }
@media (max-width: 860px) { .main-nav { display: none; } }
@media (max-width: 420px) { .brand-name { font-size: 0.8rem; } .header-actions .btn-sm { padding: 0 12px; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--on-navy); padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px); }
.ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 42%; }
.ridge path { fill: var(--navy-2); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; margin-block: 20px 22px; }
.hero h1 em { color: var(--gold); }
.lede { font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.15rem); color: var(--on-navy-soft); max-width: 60ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.record {
  margin: 0; background: #F7F6F1; color: #151A22; border-radius: var(--radius);
  padding: 22px 22px 18px; box-shadow: 0 24px 60px -24px rgba(0,0,0,0.55);
  border-top: 4px solid var(--gold);
}
.record-cap { font: 500 0.72rem/1.4 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: #6B5317; margin-bottom: 12px; }
.record-list { margin: 0; display: grid; }
.record-list > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 12px; padding-block: 10px; border-top: 1px dashed rgba(21,26,34,0.18); }
.record-list dt { font: 500 0.78rem/1.45 var(--f-mono); color: #5A6270; }
.record-list dd { margin: 0; font-size: 0.93rem; font-weight: 500; line-height: 1.45; }
.record-list .is-key dd { font-family: var(--f-display); font-weight: 800; color: #1E3E7A; }
.record-note { margin-top: 10px; font-size: 0.75rem; color: #5A6270; }
@media (max-width: 520px) { .record-list > div { grid-template-columns: 1fr; gap: 2px; } }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-alt { background: var(--alt); }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-lede { color: var(--fg-soft); font-size: 1.05rem; max-width: 64ch; }
.fine { margin-top: 22px; font-size: 0.875rem; color: var(--fg-soft); max-width: 80ch; }

/* Routes comparison */
.routes { border-top: 2px solid var(--fg); }
.route { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.6fr); gap: 20px; padding: 18px 4px; border-bottom: 1px solid var(--line); align-items: baseline; }
.route-head { font: 500 0.72rem/1.4 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-soft); padding-block: 12px; }
.route-name { font-family: var(--f-display); font-weight: 700; }
.route > span:last-child { color: var(--fg-soft); }
.route-us { background: var(--navy); color: var(--on-navy); border-radius: var(--radius); border-bottom: 0; margin-top: 10px; padding-inline: 18px; }
.route-us .route-name { color: var(--gold); }
.route-us > span:last-child { color: var(--on-navy); }
@media (max-width: 720px) {
  .route { grid-template-columns: 1fr; gap: 4px; }
  .route-head { display: none; }
}

/* Layers */
.layers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .layers { grid-template-columns: 1fr; } }
.layer { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.layer-a { border: 2px solid var(--gold); }
.layer-top { display: flex; align-items: center; justify-content: space-between; }
.layer-letter { font: 800 2.6rem/1 var(--f-display); color: var(--cobalt); }
.layer-sub { color: var(--fg-soft); font-size: 0.93rem; margin-top: -6px; }
.chip { font: 500 0.7rem/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg-soft); }
.chip-solid { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.ticks { display: grid; gap: 9px; }
.ticks li, .crosses li { position: relative; padding-left: 26px; font-size: 0.95rem; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 11px; height: 6px; border-left: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt); transform: rotate(-45deg); }
.crosses { display: grid; gap: 9px; }
.crosses li::before, .crosses li::after { content: ""; position: absolute; left: 3px; top: 0.72em; width: 12px; height: 2px; background: var(--err); transform: rotate(45deg); }
.crosses li::after { transform: rotate(-45deg); }
.billing { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 0.93rem; }
.billing-label { font: 500 0.7rem/1.4 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); }
.split { display: grid; grid-template-columns: 2fr 3fr; height: 30px; border-radius: 4px; overflow: hidden; font: 600 0.8rem/30px var(--f-mono); text-align: center; margin-top: 4px; }
.split-a { background: var(--cobalt); color: #fff; }
.split-b { background: var(--navy-2); color: var(--on-navy); }
.billing-small { font-size: 0.82rem; color: var(--fg-soft); }

/* Portable holder band */
.holder { background: var(--navy-2); color: var(--on-navy); padding-block: clamp(56px, 8vw, 96px); }
.holder-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .holder-grid { grid-template-columns: 1fr; } }
.holder h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem); font-weight: 800; }
.holder h2 em { color: var(--gold); }
.holder-copy { display: grid; gap: 16px; color: var(--on-navy-soft); font-size: 1.05rem; max-width: 60ch; }

/* Phases */
.phases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; counter-reset: none; }
@media (max-width: 820px) { .phases { grid-template-columns: 1fr; } }
.phase { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding-block: 22px; border-top: 1px solid var(--line); }
.phase-no { font: 800 1.9rem/1 var(--f-display); color: var(--cobalt); }
.phase h3 { margin-bottom: 6px; }
.phase p { color: var(--fg-soft); font-size: 0.95rem; }
.gate { margin-top: 10px; color: var(--fg) !important; font-weight: 500; }
.gate-label { font: 500 0.7rem/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); margin-right: 6px; }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cats { grid-template-columns: 1fr; } }
.cat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; align-content: start; }
.cat p { color: var(--fg-soft); font-size: 0.93rem; }
.status { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font: 500 0.7rem/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid currentColor; }
.status-live { color: var(--ok); }
.status-live::before { background: currentColor; }
.status-next { color: var(--warn); }
.status-study { color: var(--fg-soft); }

/* Fit */
.fit-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); }
@media (max-width: 860px) { .fit-grid { grid-template-columns: 1fr; } }
.audiences { display: grid; gap: 0; }
.aud { padding-block: 20px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.aud p { color: var(--fg-soft); }
.terms { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; align-content: start; }
.terms h3 + ul { margin-bottom: 8px; }

/* Contact */
.contact { background: var(--navy); color: var(--on-navy); padding-block: clamp(56px, 8vw, 104px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact .eyebrow { color: var(--gold); }
.contact-copy { display: grid; gap: 16px; color: var(--on-navy-soft); }
.contact-copy h2 { color: var(--on-navy); }
.ticks-light li { color: var(--on-navy); }
.ticks-light li::before { border-color: var(--gold); }
.contact-direct { font-size: 0.95rem; }
.mail { font-family: var(--f-mono); font-size: 0.9em; user-select: all; overflow-wrap: anywhere; }
.contact .mail { color: var(--gold); }

.form { background: var(--paper); color: var(--fg); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: 400 1rem/1.4 var(--f-body);
  color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--err); border-width: 2px; }
.hint { font-size: 0.82rem; color: var(--fg-soft); }
.err { font-size: 0.85rem; color: var(--err); font-weight: 500; }
.field-check { grid-template-columns: 22px minmax(0, 1fr); align-items: start; column-gap: 10px; }
.field-check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--cobalt); }
.field-check label { font-weight: 400; font-size: 0.9rem; }
.field-check .err { grid-column: 2; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit { justify-self: start; min-width: 160px; }
.btn-submit[disabled] { opacity: 0.6; cursor: progress; }
.form-summary { border: 2px solid var(--err); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 6px; }
.summary-title { font-weight: 700; color: var(--err); }
.form-summary ul { display: grid; gap: 4px; }
.form-summary a { color: var(--err); font-size: 0.9rem; }
.form-status { font-weight: 500; min-height: 1.5em; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-err { color: var(--err); }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy-soft); border-top: 1px solid rgba(255,255,255,0.08); padding-block: 28px; font-size: 0.875rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.footer-brand { color: var(--on-navy); font: 700 0.95rem/1.4 var(--f-display); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.footer-links a { color: var(--on-navy); }

/* Small page (thanks / error) */
.note-page { min-height: 60vh; display: grid; place-items: center; padding-block: 64px; }
.note-card { max-width: 560px; display: grid; gap: 16px; }

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

/* Cross-document page transitions (EN ⇄ ES, thanks pages) — no JavaScript needed */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .32s ease both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* Loader: only exists while html.is-loading is set by the head script; gone in ≤ 700 ms */
.loader { display: none; }
html.is-loading .loader {
  display: grid; place-items: center; align-content: center; gap: 18px; position: fixed; inset: 0; z-index: 100;
  background: var(--navy); transition: opacity .35s ease;
}
html.is-leaving .loader { opacity: 0; }
.loader-mark { width: 64px; height: 43px; }
.loader-bar { width: 120px; height: 2px; background: rgba(255,255,255,0.12); position: relative; overflow: hidden; border-radius: 2px; }
.loader-bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--gold); animation: load 0.9s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* Buttons: microinteractions */
.btn { gap: 10px; position: relative; }
.btn .arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.btn:hover .arrow, .btn:focus-visible .arrow { transform: translateX(4px); }
.btn-gold:hover, .btn-navy:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0,0,0,0.45); }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }
.btn-navy { background: var(--navy-2); color: var(--on-navy); }
.btn-navy:hover { background: var(--navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-navy { background: var(--cobalt); color: #0E1117; } }
:root[data-theme="dark"] .btn-navy { background: var(--cobalt); color: #0E1117; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; cursor: pointer;
  background: transparent; color: var(--on-navy); border: 1px solid rgba(241,242,238,0.25); border-radius: var(--radius);
  transition: border-color .18s ease, background-color .18s ease;
}
.icon-btn:hover { border-color: var(--on-navy); background: rgba(255,255,255,0.06); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

.lang { display: inline-flex; border: 1px solid rgba(241,242,238,0.25); border-radius: var(--radius); overflow: hidden; }
.lang-opt { display: grid; place-items: center; min-width: 40px; min-height: 42px; font: 600 0.78rem/1 var(--f-mono); letter-spacing: 0.08em; text-decoration: none; color: var(--on-navy-soft); transition: background-color .18s ease, color .18s ease; }
.lang-opt:hover { color: var(--on-navy); background: rgba(255,255,255,0.06); }
.lang-opt[aria-current="true"] { background: var(--gold); color: var(--on-gold); }

.nav-contact { display: none; }
.main-nav a { position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }

.menu-toggle { display: none; }
.burger { display: grid; gap: 4px; width: 18px; }
.burger span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .22s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: inline-grid; }
  .header-cta { display: none; }
  .main-nav {
    display: grid; position: fixed; left: 0; right: 0; top: calc(68px + env(safe-area-inset-top, 0px));
    background: var(--navy); padding: 8px clamp(16px, 4vw, 40px) 24px; border-bottom: 1px solid rgba(255,255,255,0.1);
    gap: 0; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .2s ease, transform .2s ease; }
  .main-nav a { padding-block: 14px; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,0.08); color: var(--on-navy); }
  .main-nav a::after { display: none; }
  .main-nav .nav-contact { display: block; color: var(--gold); border-bottom: 0; }
}
@media (max-width: 400px) { .lang-opt { min-width: 34px; } .header-actions { gap: 6px; } }

/* Hero entrance */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ridge-in { from { transform: translateY(30%); } to { transform: none; } }
html.js .hero-copy.enter > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
html.js .hero-copy.enter > :nth-child(2) { animation-delay: .08s; }
html.js .hero-copy.enter > :nth-child(3), html.js .hero-copy.enter > :nth-child(4) { animation-delay: .16s; }
html.js .hero-copy.enter > :nth-child(5) { animation-delay: .24s; }
html.js .record.enter-late { animation: rise .8s .3s cubic-bezier(.2,.7,.2,1) both; }
html.js .ridge { animation: ridge-in 1.2s cubic-bezier(.2,.7,.2,1) both; }

/* Scroll reveal: content is visible by default; JS only offsets what is below the fold */
.reveal.is-pending { opacity: 0; transform: translateY(22px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }

/* Hover states on cards */
.layer, .cat, .terms, .aud, .quote { transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.layer:hover, .cat:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -26px rgba(21,26,34,0.45); border-color: var(--cobalt); }
.layer-a:hover { border-color: var(--gold); }
.route:not(.route-head):not(.route-us) { transition: background-color .2s ease; }
.route:not(.route-head):not(.route-us):hover { background: var(--paper); }
.phase { transition: background-color .2s ease; }
.phase:hover .phase-no { color: var(--gold-ink); }

/* Inline CTAs and band */
.inline-cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.inline-cta .fine { margin-top: 0; }
.cta-q { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; }
.band { background: var(--gold); color: var(--on-gold); padding-block: clamp(36px, 5vw, 56px); }
.band-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.band h2 { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); max-width: 34ch; }
.band .btn-gold { background: var(--navy); color: var(--on-navy); }
.band .btn-gold:hover { background: var(--navy-2); }

/* Testimonials (rendered only when real, approved quotes exist) */
.testimonials[hidden] { display: none; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.quote { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 16px; margin: 0; }
.quote blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.quote blockquote::before { content: "“"; display: block; font: 800 2.6rem/0.6 var(--f-display); color: var(--gold); margin-bottom: 6px; }
.quote figcaption { font-size: 0.9rem; color: var(--fg-soft); }
.quote figcaption b { color: var(--fg); display: block; }
.quote-slot { border-style: dashed; background: transparent; color: var(--fg-soft); }
.quote-slot blockquote::before { color: var(--line); }

/* Social */
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; cursor: pointer;
  background: transparent; color: var(--on-navy); border: 1px solid rgba(241,242,238,0.25); border-radius: var(--radius);
  font: 500 0.9rem/1 var(--f-body); text-decoration: none; transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.social-btn:hover { border-color: var(--gold); background: rgba(255,255,255,0.05); transform: translateY(-1px); }
.social-btn svg { width: 18px; height: 18px; fill: currentColor; }
.social-btn[data-copy] svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.footer-social { display: inline-flex; align-items: center; gap: 8px; }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

/* Back to top */
.to-top {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 15;
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: var(--gold); color: var(--on-gold); box-shadow: 0 10px 26px -10px rgba(0,0,0,0.5);
  transition: opacity .25s ease, transform .25s ease;
}
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover { transform: translateY(-3px); }
.to-top.is-hiding { opacity: 0; transform: translateY(10px); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal.is-pending { opacity: 1; transform: none; }
  html.js .hero-copy.enter > *, html.js .record.enter-late, html.js .ridge { animation: none; }
  @view-transition { navigation: none; }
}

/* Safety net: the loader can never stay on screen, even if the script fails */
html.is-loading .loader { animation: loader-safety .3s 1.5s forwards; }
@keyframes loader-safety { to { opacity: 0; visibility: hidden; } }

/* Narrow phones: stack the wordmark so the header never overflows */
@media (max-width: 560px) {
  .header-row { gap: 12px; }
  .brand-name { white-space: normal; font-size: 0.78rem; line-height: 1.1; max-width: 7.5em; }
  .brand-name b { display: block; }
  .header-actions { gap: 8px; }
  .icon-btn { width: 42px; height: 42px; }
  .lang-opt { min-width: 36px; }
}

/* Direct contact card (static deploy without the form function) */
.direct-card { align-content: start; }
.direct-card h3 { font-size: 1.4rem; }
.direct-card p { color: var(--fg-soft); }
.direct-mail .mail { font-size: 1.1rem; color: var(--fg); }
.direct-actions { display: flex; flex-wrap: wrap; gap: 12px; }
