/* STELLAPHOENIX GROUP — Hoja de estilos
   Basada en el Manual de Identidad Corporativa SP-BRD-2026-V2
   Proporción cromática 60 % marfil/blanco · 30 % obsidiana/pizarra · 10 % oro */

/* Fuentes autoalojadas (SIL Open Font License) */
@font-face { font-family: 'Montserrat'; src: url('/assets/fonts/montserrat-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/assets/fonts/montserrat-latin-wght-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/assets/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/assets/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --gold: #C59B27;          /* Oro Imperial */
  --gold-solar: #E5C158;    /* Oro Solar */
  --bronze: #7A4B1E;        /* Bronce Bruñido */
  --obsidian: #181411;      /* Obsidiana Ejecutiva */
  --slate: #2C3540;         /* Pizarra Ingeniería */
  --ivory: #F8F7F4;         /* Marfil Corporativo */
  --ivory-2: #F1EEE7;
  --white: #FFFFFF;
  --ink: #181411;
  --ink-2: #4A4540;
  --ink-3: #6E6760;
  --on-dark: #F4EFE6;
  --on-dark-2: #B9B1A5;
  --line: rgba(24, 20, 17, .12);
  --line-dark: rgba(229, 193, 88, .18);
  --grad-gold: linear-gradient(135deg, #E5C158 0%, #C59B27 50%, #7A4B1E 100%);
  --grad-gold-text: linear-gradient(120deg, #F2D57E 0%, #E5C158 30%, #C59B27 65%, #9B6429 100%);

  --f-display: 'Montserrat', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
::selection { background: var(--gold); color: var(--white); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--obsidian); padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.i { width: 18px; height: 18px; flex: none; }

/* ---------- Tipografía base ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bronze);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.eyebrow.on-dark { color: var(--gold-solar); }
h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 700; margin-bottom: 22px; }
.body-lg { font-size: clamp(16px, 1.4vw, 18px); color: var(--ink-2); max-width: 62ch; }
.body-lg + .body-lg { margin-top: 16px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 600; font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  padding: 15px 24px; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn-gold { background: var(--grad-gold); color: var(--obsidian); box-shadow: 0 10px 30px -12px rgba(197, 155, 39, .6); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -12px rgba(197, 155, 39, .75); }
.btn-ghost { color: var(--on-dark); border-color: rgba(244, 239, 230, .3); }
.btn-ghost:hover { border-color: var(--gold-solar); color: var(--gold-solar); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--on-dark);
  transition: background-color .35s, box-shadow .35s, height .35s;
}
.site-header.is-solid, .site-header.is-scrolled {
  background: rgba(24, 20, 17, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-dark); }
.brand-mark { width: 44px; height: 44px; }
.brand-word { display: flex; flex-direction: column; line-height: 1; font-family: var(--f-display); }
.bw-1 { font-weight: 700; font-size: 14px; letter-spacing: .18em; }
.bw-2 { font-weight: 300; font-size: 10px; letter-spacing: .38em; color: var(--gold-solar); margin-top: 5px; }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 500; }
.site-nav a { text-decoration: none; color: var(--on-dark-2); transition: color .2s; position: relative; }
.site-nav a:not(.nav-cta):not(.lang)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav a:hover { color: var(--on-dark); }
.site-nav a:hover::after { transform: scaleX(1); }
.nav-cta { color: var(--gold-solar) !important; border: 1px solid rgba(229, 193, 88, .45); padding: 9px 16px; border-radius: var(--radius); }
.nav-cta:hover { background: rgba(229, 193, 88, .1); }
.lang { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; border-left: 1px solid rgba(244, 239, 230, .2); padding-left: 22px; }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--obsidian); color: var(--on-dark);
  min-height: min(100svh, 920px); display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 96px; overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(197, 155, 39, .16) 0%, rgba(197, 155, 39, 0) 60%),
    radial-gradient(40% 50% at 10% 100%, rgba(44, 53, 64, .55) 0%, rgba(44, 53, 64, 0) 70%);
}
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); align-items: center; gap: 40px; }
.wordmark { display: flex; flex-direction: column; line-height: 1; margin-bottom: 26px; }
.wm-1 {
  font-weight: 800; font-size: clamp(32px, 4.2vw, 58px); letter-spacing: .1em;
  background: linear-gradient(180deg, #FFFFFF 0%, #EDE6D9 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wm-2 {
  font-weight: 300; font-size: clamp(14px, 1.9vw, 24px); letter-spacing: .62em; margin-top: 14px;
  background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-tag { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(17px, 1.7vw, 21px); color: var(--gold-solar); margin-bottom: 22px; }
.hero-lead { font-size: clamp(16px, 1.35vw, 18px); color: var(--on-dark-2); max-width: 54ch; margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-mark { position: relative; justify-self: end; width: min(100%, 560px); aspect-ratio: 1; display: grid; place-items: center; }
/* Halo de rayos solares (el fénix que asciende) */
.hero-mark::before {
  content: ""; position: absolute; inset: -18%; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(229, 193, 88, .13) 0deg 1.2deg, transparent 1.2deg 9deg);
  -webkit-mask-image: radial-gradient(circle, transparent 30%, #000 42%, transparent 70%);
          mask-image: radial-gradient(circle, transparent 30%, #000 42%, transparent 70%);
  animation: spin 160s linear infinite;
}
.hero-mark::after {
  content: ""; position: absolute; inset: 14%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(229, 193, 88, .22), transparent 68%); filter: blur(24px);
  animation: breathe 7s ease-in-out infinite;
}
/* Órbitas: eco de los anillos del sello, fuera del área de protección (1X) */
.orbits { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.orbit { transform-origin: 50% 50%; transform-box: view-box; }
.orbit-1 { animation: spin 90s linear infinite; }
.orbit-2 { animation: spin 140s linear infinite reverse; }
.orbit circle.track { fill: none; stroke: rgba(229, 193, 88, .22); stroke-width: .5; }
.orbit-2 circle.track { stroke-dasharray: 1 3.2; stroke: rgba(229, 193, 88, .35); }
.orbit .sat { fill: #E5C158; filter: drop-shadow(0 0 2px rgba(229, 193, 88, .9)); }
.hero-logo { position: relative; z-index: 1; width: 70%; height: auto; animation: rise 1.4s var(--ease) both; }
.hero-rule { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .6; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { opacity: .75; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }

/* Nosotros */
.about { background: var(--ivory); }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.symbol { background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--gold); padding: 32px; border-radius: var(--radius); }
.symbol-title { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 22px; }
.symbol-row + .symbol-row { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.symbol-row p:last-child { color: var(--ink-2); font-size: 15px; }
.symbol-word { font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; display: flex; align-items: baseline; gap: 12px; }
.symbol-word span { font-family: var(--f-mono); font-weight: 400; font-size: 12px; letter-spacing: .08em; color: var(--bronze); text-transform: none; }
.pillars-title { font-size: 13px; font-family: var(--f-mono); font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: clamp(56px, 7vw, 88px) 0 24px; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.pillar { padding: 28px 28px 8px 0; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line); }
.pillar .mono { font-size: 12px; color: var(--gold); }
.pillar h4 { font-size: clamp(22px, 2.3vw, 28px); font-weight: 700; margin: 10px 0 10px; }
.pillar p { color: var(--ink-2); font-size: 15px; }

/* Unidades */
.units { background: var(--white); }
.unit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.unit { display: flex; flex-direction: column; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.unit:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(24, 20, 17, .35); border-color: rgba(197, 155, 39, .45); }
.unit-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--obsidian); }
.unit-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.02); transition: transform .8s var(--ease), filter .5s; }
.unit:hover .unit-media img { transform: scale(1.04); filter: saturate(1); }
.unit-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24, 20, 17, 0) 45%, rgba(24, 20, 17, .7) 100%); }
.unit-num { position: absolute; left: 22px; bottom: 16px; z-index: 1; color: var(--gold-solar); font-size: 13px; letter-spacing: .12em; }
.unit-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.unit h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.unit-body > p { color: var(--ink-2); font-size: 15px; margin-bottom: 24px; }
.unit-foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.unit-via { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 600; font-size: 15px; }
.unit-via img { width: 36px; height: 36px; object-fit: contain; }
.unit-via small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 11px; letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase; }
.unit-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--bronze); text-decoration: none; }
.unit-link .i { width: 15px; height: 15px; }
.unit-link:hover { color: var(--gold); }
.is-muted { color: var(--ink-3) !important; font-weight: 400; }

/* Propósito */
.purpose { background: var(--obsidian); color: var(--on-dark); position: relative; overflow: hidden; }
.purpose::before, .purpose::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid var(--line-dark); pointer-events: none; }
.purpose::before { right: -220px; top: -260px; width: 640px; height: 640px; }
.purpose::after { right: -280px; top: -320px; width: 760px; height: 760px; border-color: rgba(229, 193, 88, .09); }
.purpose .body-lg { color: var(--on-dark-2); }
.purpose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; position: relative; }
.stats { margin: 0; display: grid; gap: 0; }
.stat { display: grid; grid-template-columns: 140px 1fr; align-items: baseline; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
.stat:first-child { border-top: 1px solid var(--line-dark); }
.stat dt { font-size: clamp(40px, 5vw, 60px); line-height: 1; background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat dd { margin: 0; color: var(--on-dark); font-size: 16px; }

/* Empresas */
.companies { background: var(--ivory); }
.co-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.co {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 20px 24px; text-decoration: none; transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
a.co:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 18px 40px -26px rgba(24, 20, 17, .4); }
.co-logo { height: 96px; display: flex; align-items: center; justify-content: center; }
.co-logo img { max-height: 96px; max-width: 140px; object-fit: contain; }
.co-name { font-family: var(--f-display); font-weight: 700; font-size: 16px; }
.co-url { font-size: 12px; color: var(--bronze); display: inline-flex; align-items: center; gap: 6px; }
.co-url .i { width: 13px; height: 13px; }
.endorse { margin-top: 48px; display: flex; align-items: center; justify-content: center; gap: 14px; font-family: var(--f-display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.endorse strong { color: var(--ink); letter-spacing: .18em; }
.endorse-mark { width: 38px; height: 38px; }

/* CTA */
.cta-band { background: var(--ivory); padding: 0 0 clamp(72px, 10vw, 128px); }
.cta-inner {
  background: var(--obsidian); color: var(--on-dark); border-radius: var(--radius);
  padding: clamp(36px, 5vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden; max-width: calc(var(--wrap) - 2 * var(--gutter));
  border: 1px solid var(--line-dark);
}
.cta-inner::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad-gold); }
.cta-band .wrap.cta-inner { padding-left: clamp(36px, 5vw, 64px); }
.cta-inner h2 { margin-bottom: 8px; }
.cta-inner p { color: var(--on-dark-2); max-width: 52ch; }

/* ---------- Páginas internas ---------- */
.page-hero { position: relative; background: var(--obsidian); color: var(--on-dark); padding: calc(var(--header-h) + 72px) 0 72px; overflow: hidden; isolation: isolate; }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 700; margin-bottom: 16px; }
.page-hero .hero-lead { margin-bottom: 0; }

.contact { background: var(--ivory); }
.contact-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field em { color: var(--gold); font-style: normal; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--ink);
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; width: 100%; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 3px rgba(197, 155, 39, .18); }
.field .is-invalid, .field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #A62626; }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-status { font-size: 14px; }
.form-status.ok { color: #2E6F40; }
.form-status.err { color: #A62626; }
.btn[disabled] { opacity: .7; cursor: progress; }
.contact-card { background: var(--obsidian); color: var(--on-dark); border-radius: var(--radius); padding: 32px; border-top: 2px solid var(--gold); }
.contact-card .symbol-title { color: var(--on-dark-2); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .i { color: var(--gold-solar); margin-top: 3px; }
.contact-list small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 2px; }
.contact-list a { text-decoration: none; color: var(--on-dark); border-bottom: 1px solid rgba(229, 193, 88, .35); }
.contact-list a:hover { color: var(--gold-solar); }
.contact-tag { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-family: var(--f-display); font-style: italic; color: var(--gold-solar); }

.nf { position: relative; min-height: 100svh; background: var(--obsidian); color: var(--on-dark); display: flex; align-items: center; isolation: isolate; padding: calc(var(--header-h) + 40px) 0 60px; }
.nf-inner { display: grid; justify-items: start; gap: 8px; }
.nf-logo { width: 96px; height: 96px; margin-bottom: 20px; }
.nf h1 { font-size: clamp(32px, 5vw, 54px); margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: #120F0D; color: var(--on-dark-2); padding: 72px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr .8fr; gap: 40px; padding-bottom: 56px; }
.footer-tag { margin-top: 20px; font-family: var(--f-display); font-style: italic; color: var(--gold-solar); }
.f-title { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 16px; }
.f-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.f-list a, .social { text-decoration: none; transition: color .2s; }
.f-list a:hover, .social:hover { color: var(--gold-solar); }
.muted { color: #8D857A; }
.social { display: inline-flex; align-items: center; gap: 10px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px var(--gutter) 28px; border-top: 1px solid rgba(244, 239, 230, .08); font-size: 12px; color: #8D857A; }

/* ---------- Animación de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .co-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    background: transparent; border: 1px solid rgba(244, 239, 230, .2); border-radius: var(--radius); color: var(--on-dark); cursor: pointer;
  }
  .bars, .bars::before, .bars::after { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease), opacity .2s; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -6px; } .bars::after { top: 6px; }
  .menu-open .bars { background: transparent; }
  .menu-open .bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-open .bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--obsidian);
    flex-direction: column; align-items: stretch; gap: 0; padding: 16px var(--gutter) 32px;
    font-size: 20px; font-family: var(--f-display);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .menu-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open .site-header { background: var(--obsidian); }
  .site-nav a { padding: 18px 0; border-bottom: 1px solid rgba(244, 239, 230, .08); color: var(--on-dark); }
  .site-nav a::after { display: none; }
  .nav-cta { border: 0; padding: 18px 0 !important; border-radius: 0; }
  .lang { border-left: 0; padding-left: 0; font-size: 14px; }
  body.menu-open { overflow: hidden; }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + 40px); padding-bottom: 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-mark { order: -1; width: min(56vw, 260px); justify-self: start; }
  .about-grid, .purpose-grid, .contact-grid { grid-template-columns: 1fr; }
  .purpose::before, .purpose::after { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 24px 0 20px; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
  .unit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wm-1 { letter-spacing: .08em; }
  .wm-2 { letter-spacing: .5em; }
  .btn { width: 100%; justify-content: center; }
  .field-row { grid-template-columns: 1fr; }
  .co-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .co { padding: 22px 12px 18px; }
  .co-logo, .co-logo img { height: 72px; max-height: 72px; }
  .co-url { font-size: 11px; }
  .stat { grid-template-columns: 96px 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .endorse { flex-direction: column; text-align: center; }
  .unit-body { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
