/* =========================================================
   MICAS · Manejo Integral de Cuencas
   Sistema visual
   - Retícula de 8 pt, escala tipográfica tipo Apple HIG
     (cuerpo 17 px / 1.47, títulos con tracking negativo)
   - Áreas táctiles mínimas de 44 px
   - Paleta del logotipo (verde pradera, azul río, marco azul
     claro) y del sitio actual (verde bosque, oro)
   - Ritmo: secciones claras alternadas con paneles oscuros
     redondeados que se expanden al hacer scroll
   ========================================================= */

:root {
  /* Marca */
  --forest-950: #06201b;
  --forest-900: #0b2e28;
  --forest-800: #10403a;
  --forest-700: #175a50;
  --meadow-500: #34bf88;
  --meadow-300: #7ddcb0;
  --meadow-100: #e3f6ec;
  --river-950: #06133d;
  --river-800: #0c2475;
  --river-700: #0a2fa8;
  --river-500: #2c55d6;
  --river-300: #7fa2f5;
  --river-100: #e5ecfd;
  --gold-500: #d9a42a;
  --gold-400: #e5b53f;
  --gold-300: #f0c95e;

  /* Neutros */
  --paper: #fafaf7;
  --tint: #f1f4ef;
  --white: #ffffff;
  --ink: #14201d;
  --ink-2: #4b5753;
  --ink-3: #7a8581;
  --line: #e1e6e0;

  /* Tipografía */
  --font-display: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-text: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;

  /* Espaciado (8 pt) */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s7: 96px;
  --s8: 128px;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-panel: clamp(24px, 3.2vw, 48px);
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --nav-h: 64px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow: 0 1px 2px rgba(11, 46, 40, 0.04), 0 8px 24px rgba(11, 46, 40, 0.06);
  --shadow-lg: 0 2px 4px rgba(11, 46, 40, 0.05), 0 24px 56px rgba(11, 46, 40, 0.12);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }

::selection { background: var(--meadow-300); color: var(--forest-950); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--river-300);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip {
  position: absolute; left: var(--s2); top: -100px; z-index: 100;
  background: var(--white); color: var(--ink); padding: var(--s1) var(--s2);
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip:focus { top: var(--s2); }

.grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.07;
  mix-blend-mode: overlay;
}

/* ---------- Tipografía ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-700);
}
.eyebrow--gold { color: var(--gold-300); }
.eyebrow--sky { color: var(--river-300); }

.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(52px, 8.4vw, 116px);
  line-height: 0.96;
  letter-spacing: -0.025em;
}
.display--md { font-size: clamp(44px, 6.4vw, 88px); }
.display em,
.title em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-300);
}

.title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.title--sm { font-size: clamp(32px, 3.8vw, 48px); }

/* Cormorant usa cifras elzevirianas por defecto ("15" se lee "I5"):
   las cifras de datos van alineadas. */
.fact dd,
.tile__meta dd,
.big,
.areas__big,
.flow__num,
.explorer__num { font-variant-numeric: lining-nums tabular-nums; }

.lead {
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.45;
  letter-spacing: -0.014em;
  color: rgba(255, 255, 255, 0.8);
  max-width: 38em;
  text-wrap: pretty;
}

/* ---------- Botones ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 var(--s3);
  border-radius: 980px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), translate 0.5s var(--ease);
  translate: var(--mx, 0) var(--my, 0);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }
.btn:active { scale: 0.97; }
.btn span { transition: transform 0.3s var(--ease); }
.btn:hover span { transform: translateX(4px); }

.btn--gold { background: var(--gold-400); color: var(--forest-950); box-shadow: 0 8px 24px -8px rgba(229, 181, 63, 0.6); }
.btn--gold:hover { background: var(--gold-300); box-shadow: 0 14px 32px -8px rgba(229, 181, 63, 0.75); }

.btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }

.btn--primary { background: var(--forest-800); color: var(--white); }
.btn--primary:hover { background: var(--forest-700); }

.btn--sm { min-height: 40px; padding: 0 20px; font-size: 15px; }
.btn--lg { min-height: 56px; padding: 0 var(--s4); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  color: var(--white);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.5s var(--ease);
}
.nav.is-scrolled,
.nav.is-open {
  background: rgba(250, 250, 247, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(20, 32, 29, 0.06);
}
.nav.is-hidden:not(.is-open) { transform: translateY(-100%); }

.nav__progress {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--meadow-500), var(--gold-400), var(--river-500));
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-height: 44px;
}
.brand__logo {
  width: 36px;
  height: auto;
  background: var(--white);
  border-radius: 9px;
  padding: 3px;
  box-sizing: content-box;
  transition: transform 0.6s var(--ease);
}
.brand:hover .brand__logo { transform: rotate(-6deg) scale(1.06); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.brand__text span { font-size: 11px; letter-spacing: 0.02em; opacity: 0.72; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__menu a:not(.btn) {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  text-decoration: none;
  opacity: 0.84;
  transition: opacity 0.2s;
}
.nav__menu a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px; bottom: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav__menu a:not(.btn):hover,
.nav__menu a.is-active { opacity: 1; }
.nav__menu a:not(.btn):hover::after,
.nav__menu a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav:not(.is-scrolled):not(.is-open) .btn--primary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.nav:not(.is-scrolled):not(.is-open) .btn--primary:hover { background: rgba(255, 255, 255, 0.22); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  border: 0; background: none; color: inherit;
  cursor: pointer;
}
.nav__bars,
.nav__bars::before,
.nav__bars::after {
  display: block;
  width: 20px; height: 1.5px;
  margin: auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), background-color 0.3s;
}
.nav__bars { position: relative; }
.nav__bars::before, .nav__bars::after { content: ''; position: absolute; left: 0; }
.nav__bars::before { transform: translateY(-6px); }
.nav__bars::after { transform: translateY(6px); }
.nav.is-open .nav__bars { background: transparent; }
.nav.is-open .nav__bars::before { transform: rotate(45deg); }
.nav.is-open .nav__bars::after { transform: rotate(-45deg); }

/* ---------- Curvas de nivel ---------- */
.topo {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  pointer-events: none;
}
.topo-line {
  fill: none;
  stroke: rgba(127, 162, 245, 0.14);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.topo-line--index { stroke: rgba(52, 191, 136, 0.3); stroke-width: 1.4; }
.topo--front .topo-line { stroke: rgba(125, 220, 176, 0.12); }
.topo g { transform-origin: center; animation: drift 60s var(--ease-in-out) infinite alternate; }
.topo--front g { animation-duration: 44s; animation-direction: alternate-reverse; }
@keyframes drift {
  from { transform: rotate(-2deg) scale(1); }
  to { transform: rotate(3deg) scale(1.08); }
}

.topo-river {
  fill: none;
  stroke: var(--river-500);
  stroke-width: 12;
  stroke-linecap: round;
  opacity: 0.6;
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;
  animation: river 3.4s 0.4s var(--ease) forwards;
}
.topo-river--flow {
  stroke: var(--river-300);
  stroke-width: 2.5;
  opacity: 0.85;
  stroke-dasharray: 3 26;
  stroke-dashoffset: 0;
  animation: flow 2.4s linear infinite;
}
@keyframes river { to { stroke-dashoffset: 0; } }
@keyframes flow { to { stroke-dashoffset: -58; } }

/* ---------- Manchas de color ---------- */
.blob {
  position: absolute;
  z-index: 0;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  animation: float 22s var(--ease-in-out) infinite alternate;
}
.blob--meadow { top: -25vmax; right: -15vmax; background: radial-gradient(circle, rgba(52, 191, 136, 0.55), transparent 65%); }
.blob--river { bottom: -30vmax; left: -20vmax; background: radial-gradient(circle, rgba(44, 85, 214, 0.6), transparent 65%); animation-delay: -8s; }
@keyframes float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6vmax, 4vmax, 0) scale(1.15); }
}

/* ---------- Aparición ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms), clip-path 1.2s var(--ease) var(--d, 0ms);
}
[data-reveal='scale'] { transform: scale(0.92); }
[data-reveal='left'] { transform: translateX(-32px); }
[data-reveal='clip'] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0 round var(--radius-lg)); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal='clip'].is-visible { clip-path: inset(0 0 0 0 round var(--radius-lg)); }

/* Títulos palabra por palabra */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.w__i {
  display: inline-block;
  transform: translateY(105%) rotate(4deg);
  transform-origin: left bottom;
  transition: transform 1.1s var(--ease) calc(var(--i) * 60ms + var(--d, 0ms));
}
[data-split].is-visible .w__i { transform: none; }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: max(100svh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s6);
  padding-block: calc(var(--nav-h) + var(--s6)) var(--s5);
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(1200px 700px at 80% 0%, rgba(52, 191, 136, 0.18), transparent 60%),
    linear-gradient(165deg, var(--forest-800) 0%, var(--forest-950) 70%, #071c33 100%);
  border-radius: 0 0 var(--radius-panel) var(--radius-panel);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__layer {
  position: absolute;
  inset: 0;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform 1.2s var(--ease);
}
.hero__inner {
  position: relative;
  display: grid;
  gap: var(--s3);
  translate: 0 var(--hero-shift, 0);
  opacity: var(--hero-fade, 1);
}
.hero__inner .display { max-width: 10.5em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s2); }

/* Cifras sobre una regla de medición */
.facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  counter-reset: fact;
}
.facts::before {
  content: '';
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 0;
  height: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0 1px, transparent 1px 24px);
}
.fact {
  position: relative;
  counter-increment: fact;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  padding: 40px var(--s3) 0 0;
}
.fact::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5px;
  height: 24px;
  background: var(--gold-300);
}
.fact::after {
  content: counter(fact, decimal-leading-zero);
  position: absolute;
  left: 12px;
  top: 11px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold-300);
}
.fact dd {
  font-family: var(--font-display);
  font-size: clamp(60px, 6.4vw, 96px);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.03em;
}
.fact dt {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.68);
}

/* ---------- Cinta ---------- */
.ticker {
  overflow: hidden;
  padding-block: 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.ticker__track span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  font-style: italic;
  color: var(--forest-700);
  white-space: nowrap;
}
.ticker__track span::after {
  content: '';
  width: 18px; height: 12px;
  border: 1.5px solid var(--meadow-500);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4.5px var(--meadow-500);
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section {
  position: relative;
  padding-block: clamp(88px, 12vw, 160px);
}
.section--compact { padding-block: clamp(72px, 9vw, 120px); }
.section--tint { background: var(--tint); }
.section--white { background: var(--white); }

.section__head {
  display: grid;
  gap: var(--s2);
  max-width: 820px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section__head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section__head--split {
  max-width: none;
  grid-template-columns: 1.3fr 1fr;
  align-items: end;
  gap: var(--s3) var(--s6);
}
.section__head--split > div { display: grid; gap: var(--s2); }
.section__intro { color: var(--ink-2); font-size: 19px; max-width: 34em; text-wrap: pretty; }

/* Paneles oscuros redondeados que "crecen" al entrar */
.panel {
  position: relative;
  isolation: isolate;
  /* clip (no hidden) para no romper los elementos sticky internos */
  overflow: hidden;
  overflow: clip;
  margin-inline: clamp(8px, 1.2vw, 16px);
  padding-block: clamp(96px, 12vw, 168px);
  border-radius: var(--radius-panel);
  color: var(--white);
  transform: scale(var(--panel-scale, 1));
  transform-origin: center top;
}
.panel > .wrap { position: relative; z-index: 1; }
.panel--river {
  background:
    radial-gradient(900px 600px at 100% 0%, rgba(127, 162, 245, 0.22), transparent 60%),
    linear-gradient(160deg, var(--river-800), var(--river-950));
}
.panel--forest {
  background:
    radial-gradient(900px 600px at 0% 100%, rgba(52, 191, 136, 0.16), transparent 60%),
    linear-gradient(160deg, var(--forest-800), var(--forest-950));
}
.panel--contact {
  background: linear-gradient(160deg, var(--forest-800), var(--forest-950) 60%, #071c33);
}
.topo--panel { z-index: 0; opacity: 0.9; }

/* ---------- 2. Nosotros ---------- */
.manifesto {
  margin-block: var(--s3) clamp(56px, 7vw, 96px);
  max-width: 22em;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 62px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.mw {
  color: rgba(20, 32, 29, 0.16);
  transition: color 0.5s var(--ease);
}
.mw.is-lit { color: var(--ink); }
.mw.is-lit.mw--accent { color: var(--forest-700); }

.about {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s2);
  align-items: stretch;
}
.about__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s4) var(--s4) var(--s4) 0;
  color: var(--ink-2);
}
.about__legal {
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
}
.about__legal strong { display: inline-block; margin-top: 4px; color: var(--ink); font-size: 17px; font-weight: 600; }

.mv {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: var(--s4);
  border-radius: var(--radius-lg);
  color: var(--ink-2);
  transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform 0.6s var(--ease), box-shadow 0.4s var(--ease), opacity 1s var(--ease) var(--d, 0ms);
}
.mv[data-reveal] { transform: perspective(900px) translateY(28px); }
.mv[data-reveal].is-visible { transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); }
.mv--mission { background: var(--meadow-100); }
.mv--vision { background: var(--river-100); }
.mv:hover { box-shadow: var(--shadow-lg); }
.mv__icon {
  width: 48px; height: 48px;
  margin-bottom: var(--s2);
  fill: none;
  stroke: var(--forest-700);
  stroke-width: 1.6;
}
.mv--vision .mv__icon { stroke: var(--river-700); }
.mv--vision .eyebrow { color: var(--river-700); }
.mv:hover .mv__icon circle:nth-child(2) { animation: ping 1.4s var(--ease) infinite; transform-origin: center; transform-box: fill-box; }
@keyframes ping { 50% { transform: scale(1.25); } }

/* Luz que sigue al cursor */
[data-spot] { --sx: 50%; --sy: 50%; }
[data-spot]::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--sx) var(--sy), rgba(255, 255, 255, 0.55), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
[data-spot]:hover::after { opacity: 1; }
[data-spot] > * { position: relative; z-index: 1; }

.values {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
  margin-top: var(--s6);
}
.values__list { display: flex; flex-wrap: wrap; gap: 10px; }
.values__list li {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 980px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--forest-800);
  font-size: 15px;
  font-weight: 500;
  cursor: default;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 1s var(--ease) var(--d, 0ms), opacity 1s var(--ease) var(--d, 0ms);
}
.values__list li:hover { background: var(--forest-800); border-color: var(--forest-800); color: var(--white); }

/* ---------- 3. Método ---------- */
.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s2);
}
.flow__track {
  position: absolute;
  top: 56px;
  left: 12.5%; right: 12.5%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--river-300) 0 6px, transparent 6px 14px);
  opacity: 0.6;
}
.flow__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--forest-700), var(--meadow-500), var(--river-500));
  transform-origin: left;
  transform: scaleX(var(--flow, 0));
}
.flow__fill::after {
  content: '';
  position: absolute;
  right: -7px; top: -6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 0 6px rgba(229, 181, 63, 0.25);
  transform: scaleX(calc(1 / max(var(--flow, 1), 0.02)));
}
.flow__step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  justify-items: center;
  text-align: center;
  padding: var(--s4) var(--s3);
  opacity: 0.35;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.flow__step.is-on { opacity: 1; transform: none; }
.flow__num {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: var(--s1);
  border-radius: 50%;
  background: var(--white);
  color: var(--forest-800);
  border: 1.5px solid var(--line);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 0 0 8px var(--tint);
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease), border-color 0.6s var(--ease), transform 0.6s var(--ease);
}
.flow__step.is-on .flow__num { background: var(--forest-800); color: var(--white); border-color: var(--forest-800); transform: scale(1.08); }
.flow__step.is-on:nth-child(4) .flow__num { background: var(--meadow-500); border-color: var(--meadow-500); color: var(--forest-950); }
.flow__step.is-on:nth-child(5) .flow__num { background: var(--river-500); border-color: var(--river-500); }
.flow__step h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.flow__step p { color: var(--ink-2); font-size: 15px; max-width: 22em; }

/* ---------- 4. Explorador de servicios ---------- */
.explorer {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.explorer__list { display: grid; }
.explorer__item {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  width: 100%;
  min-height: 72px;
  padding: 20px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--ink-3);
  text-align: left;
  cursor: pointer;
  transition: color 0.4s var(--ease), padding 0.5s var(--ease);
}
.explorer__item:last-child { border-bottom: 1px solid var(--line); }
.explorer__num { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.explorer__name {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.explorer__item:hover { color: var(--ink-2); padding-left: 8px; }
.explorer__item[aria-selected='true'] { color: var(--ink); padding-left: 16px; }
.explorer__item[aria-selected='true'] .explorer__num { color: var(--meadow-500); }
.explorer__bar {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--forest-800);
  transform-origin: left;
  transform: scaleX(0);
}
.explorer__item[aria-selected='true'] .explorer__bar { transform: scaleX(1); transition: transform 0.6s var(--ease); }
.explorer.is-auto .explorer__item[aria-selected='true'] .explorer__bar {
  transform: scaleX(0);
  animation: fillbar var(--auto, 6500ms) linear forwards;
}
@keyframes fillbar { to { transform: scaleX(1); } }

.explorer__stage {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
.explorer__panel {
  grid-area: 1 / 1;
  display: grid;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), visibility 0s 0.5s;
}
.explorer__panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.6s var(--ease) 0.1s, transform 0.7s var(--ease) 0.1s, visibility 0s;
}
.explorer__body { display: grid; gap: var(--s2); padding: var(--s4); }
.explorer__body h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.explorer__body ul { display: grid; gap: 10px; }
.explorer__body li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
  font-size: 16px;
}
.explorer__body li::before {
  content: '';
  position: absolute;
  left: 2px; top: 0.6em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--meadow-500);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  padding: 4px 12px;
  border-radius: 980px;
  background: var(--meadow-100);
  color: var(--forest-800);
  font-size: 13px;
  font-weight: 500;
}

/* Imágenes de servicio */
.explorer__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 520;
  object-fit: cover;
  background: var(--tint);
}

/* ---------- 5. Ambientales ---------- */
.env {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.env__intro {
  position: sticky;
  top: calc(var(--nav-h) + 48px);
  display: grid;
  gap: var(--s3);
}
.authority { display: grid; gap: 0; margin-top: var(--s2); }
.authority li {
  display: flex;
  gap: var(--s2);
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
}
.authority span {
  width: 7em;
  flex: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--river-300);
}

.dossier { display: grid; gap: var(--s2); }
.doc {
  position: sticky;
  top: calc(var(--nav-h) + 48px + var(--i) * 20px);
  min-height: 180px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: var(--s4);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #f7f9ff, #e6ecfb);
  color: var(--river-950);
  box-shadow: 0 -12px 40px -12px rgba(0, 0, 0, 0.45);
  transition: transform 0.5s var(--ease);
}
.doc:hover { transform: translateY(-6px) rotate(-0.6deg); }
.doc::before {
  content: '';
  position: absolute;
  right: 24px; top: 24px;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1.5px dashed rgba(10, 47, 168, 0.25);
}
.doc__tab {
  justify-self: start;
  padding: 4px 12px;
  border-radius: 980px;
  background: var(--river-700);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.doc h3 {
  max-width: 16em;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.1;
}
.doc p { color: #44507a; font-size: 15px; }
.doc:nth-child(odd) { background: linear-gradient(160deg, #ffffff, #eef3ea); }
.doc:nth-child(odd) .doc__tab { background: var(--forest-800); }

.follow { margin-top: clamp(64px, 8vw, 120px); }
.follow__title {
  margin-bottom: var(--s3);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.64);
}
.follow__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s2);
}
.follow__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 16px;
  line-height: 1.3;
}
.follow__list svg { flex: none; width: 28px; height: 28px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.follow__list circle { stroke: rgba(127, 162, 245, 0.35); }
.follow__list path { stroke: var(--meadow-300); stroke-dasharray: 20; stroke-dashoffset: 20; }
.follow__list li.is-visible path { transition: stroke-dashoffset 0.8s var(--ease) calc(var(--d, 0ms) + 400ms); stroke-dashoffset: 0; }

/* ---------- 6. Áreas ---------- */
.areas {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.areas__aside {
  position: sticky;
  top: calc(var(--nav-h) + 48px);
  display: grid;
  gap: var(--s2);
}
.areas__big {
  margin-top: var(--s3);
  font-family: var(--font-display);
  font-size: clamp(120px, 16vw, 220px);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--forest-700);
  font-variant-numeric: tabular-nums;
}
.areas__big span { display: inline-block; transition: transform 0.5s var(--ease), opacity 0.3s; }
.areas__big span.is-swap { transform: translateY(-12px); opacity: 0; }
.areas__caption { font-size: 15px; color: var(--ink-3); }

.areas__title {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.rows + .areas__title { margin-top: var(--s6); }
.rows { counter-reset: row; }
.rows li {
  counter-increment: row;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  padding: 22px 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 500;
  line-height: 1.15;
  cursor: default;
  transition: color 0.45s var(--ease), padding 0.5s var(--ease), transform 1s var(--ease) var(--d, 0ms), opacity 1s var(--ease) var(--d, 0ms);
}
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows li::before {
  content: counter(row, decimal-leading-zero);
  flex: none;
  width: 2em;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 600;
  color: var(--meadow-500);
  transition: color 0.45s var(--ease);
}
.rows li::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--forest-800);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease);
}
.rows--research li::after { background: var(--river-700); }
.rows--research li::before { color: var(--river-500); }
.rows li:hover { color: var(--white); padding-left: 32px; }
.rows li:hover::before { color: var(--gold-300); }
.rows li:hover::after { transform: scaleY(1); transform-origin: top; }

/* ---------- 7. Capacidades ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
}
.tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--s4);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.4s var(--ease), transform 1s var(--ease) var(--d, 0ms), opacity 1s var(--ease) var(--d, 0ms);
}
.tile:hover { border-color: rgba(125, 220, 176, 0.4); }
.tile[data-spot]::after { background: radial-gradient(360px circle at var(--sx) var(--sy), rgba(125, 220, 176, 0.16), transparent 50%); }
.tile h3 {
  margin-bottom: var(--s1);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.tile--hq { grid-column: span 2; }
.big { font-size: 72px; line-height: 0.9; color: var(--meadow-300); font-variant-numeric: tabular-nums; }

.checks { display: grid; gap: 12px; }
.tile--hq .checks { grid-template-columns: 1fr 1fr; gap: 12px var(--s4); }
.checks li {
  position: relative;
  padding-left: 30px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 0; top: 1px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(52, 191, 136, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%237ddcb0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

.tile__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
  margin-top: auto;
  padding-top: var(--s3);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.tile__meta div { display: flex; flex-direction: column-reverse; gap: 2px; }
.tile__meta dt { font-size: 13px; color: rgba(255, 255, 255, 0.56); }
.tile__meta dd {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 600;
  line-height: 1;
  color: var(--gold-300);
  font-variant-numeric: tabular-nums;
}

.network { width: 100%; height: auto; margin-block: 4px 8px; overflow: visible; }
.network text { fill: rgba(255, 255, 255, 0.7); font-family: var(--font-text); font-size: 11px; }
.network__link {
  stroke: rgba(125, 220, 176, 0.55);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 4 6;
  animation: flow 1.6s linear infinite;
}
.network__hub { fill: var(--gold-300); }
.network__node { fill: var(--meadow-300); }
.network__pulse {
  fill: none;
  stroke: var(--gold-300);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: ripple 2.4s var(--ease) infinite;
}
.places { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s3); }
.places li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}
.places strong { color: var(--white); font-weight: 500; font-size: 15px; }

.bars { display: grid; gap: 10px; }
.bars li {
  display: grid;
  grid-template-columns: 7.5em 1fr auto;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.bars li::after {
  content: '';
  grid-column: 2;
  grid-row: 1;
  height: 8px;
  width: calc(var(--v) / 5 * 100%);
  border-radius: 8px;
  background: linear-gradient(90deg, var(--meadow-500), var(--gold-400));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s var(--ease) calc(var(--v) * 60ms + 300ms);
}
.is-visible .bars li::after { transform: scaleX(1); }
.bars b { grid-column: 3; font-weight: 600; color: var(--white); font-variant-numeric: tabular-nums; }

/* ---------- 8. Cobertura ---------- */
.coverage {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.coverage__text { display: grid; gap: var(--s2); color: var(--ink-2); }
.coverage__text .title { color: var(--ink); margin-bottom: var(--s1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s1); }
.chips li {
  padding: 6px 14px;
  border-radius: 980px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--forest-800);
  font-size: 14px;
  font-weight: 500;
}
.map {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
.map img { width: 100%; transform: scale(1.08); transition: transform 2.2s var(--ease) 0.2s; }
.map.is-visible img { transform: scale(1); }
.map:hover img { transform: scale(1.04); transition-duration: 1.2s; transition-delay: 0s; }
.map__scan {
  position: absolute;
  top: 0; bottom: 0;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(52, 191, 136, 0.22), transparent);
  border-right: 2px solid rgba(52, 191, 136, 0.7);
  transform: translateX(-120%);
  pointer-events: none;
}
.map.is-visible .map__scan { animation: scan 4.5s var(--ease-in-out) 1s infinite; }
@keyframes scan {
  0% { transform: translateX(-120%); }
  60%, 100% { transform: translateX(380%); }
}

/* ---------- 9. Equipo ---------- */
.section--team { overflow: hidden; }
.people {
  display: grid;
  gap: var(--s2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.people__row {
  display: flex;
  gap: var(--s2);
  width: max-content;
  animation: marquee 60s linear infinite;
}
.people__row--reverse { animation-direction: reverse; animation-duration: 54s; }
.people:hover .people__row { animation-play-state: paused; }
.people__row li {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: 18px 28px 18px 18px;
  border-radius: 980px;
  background: var(--white);
  border: 1px solid var(--line);
  white-space: nowrap;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.people__row li:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.people__row div { display: grid; gap: 2px; }
.people__row strong { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.people__row span:not(.avatar) { font-size: 14px; color: var(--ink-2); }
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--meadow-100);
  color: var(--forest-800);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.people__row li:nth-child(3n + 2) .avatar { background: var(--river-100); color: var(--river-700); }
.people__row li:nth-child(3n) .avatar { background: #fbf1d6; color: #7a5a0c; }

/* ---------- 10. Instituciones ---------- */
.partners {
  max-width: 1000px;
  margin-inline: auto;
}
.partners img {
  width: 100%;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.75;
  transition: filter 0.8s var(--ease), opacity 0.8s var(--ease);
}
.partners:hover img { filter: none; opacity: 1; }

/* ---------- 11. Contacto ---------- */
.contact {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.contact__main { display: grid; gap: var(--s3); }
.contact__card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: var(--s3);
  padding: var(--s5) var(--s4);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.contact__card[data-spot]::after { background: radial-gradient(360px circle at var(--sx) var(--sy), rgba(240, 201, 94, 0.14), transparent 50%); }
.contact__card > div + div { padding-top: var(--s3); border-top: 1px solid rgba(255, 255, 255, 0.12); }
.contact__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.contact__card p { font-size: 17px; color: rgba(255, 255, 255, 0.9); }
.contact__card a { text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 4px; }
.contact__card a:hover { text-decoration-color: var(--white); }

/* ---------- Pie ---------- */
.footer {
  overflow: hidden;
  padding-top: var(--s6);
  color: var(--ink-2);
  font-size: 14px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s4);
  align-items: center;
}
.footer__brand { display: flex; align-items: center; gap: var(--s2); }
.footer__logo {
  flex: none;
  padding: 8px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.footer__logo img { width: 48px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer__nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer__nav a:hover { color: var(--forest-800); }
.footer__word {
  margin-block: var(--s4) var(--s2);
  padding-bottom: 0.06em;
  font-family: var(--font-display);
  font-size: clamp(96px, 26vw, 400px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-align: center;
  background: linear-gradient(180deg, var(--forest-800), rgba(52, 191, 136, 0.15));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}
.footer__copy {
  padding-block: var(--s3);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .about { grid-template-columns: 1fr 1fr; }
  .about__text { grid-column: 1 / -1; padding-right: 0; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--hq { grid-column: span 2; }
  .follow__list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --nav-h: 60px; }

  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    height: calc(100svh - var(--nav-h));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s2) var(--gutter) var(--s5);
    background: var(--paper);
    color: var(--ink);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
  .nav__menu a:not(.btn) {
    min-height: 60px;
    padding: 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 600;
    opacity: 1;
    transform: translateY(12px);
    transition: transform 0.5s var(--ease);
  }
  .nav.is-open .nav__menu a:not(.btn) { transform: none; }
  .nav.is-open .nav__menu a:nth-child(2) { transition-delay: 40ms; }
  .nav.is-open .nav__menu a:nth-child(3) { transition-delay: 80ms; }
  .nav.is-open .nav__menu a:nth-child(4) { transition-delay: 120ms; }
  .nav.is-open .nav__menu a:nth-child(5) { transition-delay: 160ms; }
  .nav__menu a:not(.btn)::after { display: none; }
  .nav__menu .btn { margin-top: var(--s4); min-height: 52px; font-size: 17px; }

  .facts { grid-template-columns: repeat(2, 1fr); row-gap: var(--s4); }
  .facts::before { display: none; }
  .fact { border-top: 1px solid rgba(255, 255, 255, 0.22); padding-top: 36px; }

  .section__head--split,
  .explorer,
  .env,
  .areas,
  .coverage,
  .contact { grid-template-columns: 1fr; }

  .env__intro,
  .areas__aside,
  .explorer__stage { position: static; }
  .areas__big { display: none; }
  .areas__caption { display: none; }

  .explorer { gap: var(--s3); }
  .explorer__list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .explorer__list::-webkit-scrollbar { display: none; }
  .explorer__item,
  .explorer__item:last-child {
    flex: none;
    width: auto;
    min-height: 44px;
    padding: 0 18px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 980px;
    background: var(--white);
    scroll-snap-align: start;
  }
  .explorer__item:hover,
  .explorer__item[aria-selected='true'] { padding-left: 18px; }
  .explorer__item[aria-selected='true'] { background: var(--forest-800); border-color: var(--forest-800); color: var(--white); }
  .explorer__name { font-family: var(--font-text); font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
  .explorer__bar { display: none; }

  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow__track { display: none; }

  .doc { position: relative; top: auto; min-height: 0; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand__text span { display: none; }
  .hero { min-height: 100svh; gap: var(--s5); }
  .hero__cta .btn { flex: 1 1 100%; }
  .fact dd { font-size: 56px; }
  .about,
  .bento,
  .flow,
  .follow__list { grid-template-columns: 1fr; }
  .about__text { padding: 0 0 var(--s2); }
  .tile--hq { grid-column: auto; }
  .tile--hq .checks { grid-template-columns: 1fr; }
  .tile__meta dd { font-size: 40px; }
  .places { grid-template-columns: 1fr; }
  .flow__step { justify-items: start; text-align: left; padding: var(--s2) 0; }
  .mv,
  .tile,
  .doc { padding: var(--s3); }
  .explorer__body { padding: var(--s3); }
  .bars li { grid-template-columns: 6.5em 1fr auto; }
  .people__row li { padding: 12px 20px 12px 12px; }
  .avatar { width: 44px; height: 44px; font-size: 14px; }
  .rows li { padding: 18px 12px; }
}

@media (hover: none) {
  [data-spot]::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  [data-reveal], .w__i, .flow__step { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .mw { color: var(--ink); }
  .topo-river { stroke-dashoffset: 0; }
  .ticker__track, .people__row { animation: none !important; }
  .people__row { flex-wrap: wrap; width: auto; padding-inline: var(--gutter); }
  .people { -webkit-mask-image: none; mask-image: none; }
  .panel { transform: none; }
}
