/* ============================================================
   climaSUS — immersive site stylesheet
   Brand: deep Amazon forest + cream + system colors
   Type:  Newsreader (display) · IBM Plex Sans · IBM Plex Mono
   ============================================================ */

:root {
  --ink: #0E2A22;
  --ink-2: #14322A;
  --ink-3: #1F4A3D;
  --paper: #F4EFE3;
  --paper-2: #E9E2CF;
  --paper-3: #FBF8F0;
  --muted: #6B7A6B;
  --muted-d: #9FB09C;
  --rule: rgba(14,42,34,0.14);
  --rule-d: rgba(244,239,227,0.16);

  /* system colors */
  --heat: #C2410C;        /* SACS — calor */
  --heat-2: #E68A4E;
  --air: #2F7D4F;         /* SAQS — ar */
  --air-2: #6FB97F;
  --drought: #B8860B;     /* SASS — seca */
  --drought-2: #E0B84B;
  --accent: #B85A1F;

  --maxw: 1320px;
  --pad: clamp(20px, 5vw, 80px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--heat); color: #fff; }

/* ---------- type helpers ---------- */
.serif { font-family: "Newsreader", Georgia, serif; }
.mono { font-family: "IBM Plex Mono", monospace; }
.it { font-style: italic; }

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(12px, 1vw, 15px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow .bar { width: 28px; height: 1px; background: currentColor; display: inline-block; }

/* ============================================================
   TOP PROGRESS BAR
   ============================================================ */
.top-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--heat);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 200;
  will-change: transform;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px var(--pad);
  transition: transform 0.45s var(--ease), background 0.4s var(--ease), backdrop-filter 0.4s, padding 0.4s var(--ease);
  color: var(--paper);
}
.nav--solid {
  background: rgba(14,42,34,0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(244,239,227,0.08);
}
.nav--hidden { transform: translateY(-110%); }
.nav__brand {
  font-family: "Newsreader", serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.nav__brand .alt { color: var(--heat-2); font-style: italic; font-weight: 500; }
.nav__links { display: flex; gap: 30px; align-items: center; min-width: 0; flex: 1 1 auto; justify-content: center; }
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(244,239,227,0.82);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--paper); }
/* nav institutional logos + brand mark */
.nav__mark { height: 26px; width: auto; margin-right: 10px; vertical-align: -6px; border-radius: 6px; }
.nav__brand { display: inline-flex; align-items: center; }
.nav__orgs { display: flex; align-items: center; gap: 20px; padding: 9px 20px; border-radius: 999px; background: rgba(255,255,255,0.94); box-shadow: 0 10px 30px rgba(5,46,43,0.18); }
.nav__orgs img { height: 38px; width: auto; display: block; opacity: .96; transition: opacity .2s, transform .2s; }
.nav__orgs img.orb--tall { height: 50px; }
.nav__orgs img:hover { opacity: 1; transform: translateY(-1px); }
@media (max-width: 1180px) { .nav__orgs { gap: 14px; padding: 7px 14px; } .nav__orgs img { height: 30px; } .nav__orgs img.orb--tall { height: 40px; } }
@media (max-width: 860px) { .nav__orgs { display: none; } }
.nav__cta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid rgba(244,239,227,0.4);
  border-radius: 100px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav__cta:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
@media (max-width: 1180px) {
  .nav__links { gap: 16px; }
  .nav__links a { font-size: 13px; }
  .nav__orgs img { height: 28px; }
  .nav__orgs img.orb--tall { height: 36px; }
}
@media (max-width: 1024px) {
  .nav { flex-wrap: wrap; row-gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .nav__links { order: 3; width: 100%; justify-content: flex-start; gap: 14px; }
  .nav__orgs { margin-left: auto; }
}
@media (max-width: 900px) {
  .nav__links { gap: 12px; flex-wrap: wrap; }
  .nav__links a { font-size: 12px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 118px;
  text-align: center;
  background: #07140F;
  color: var(--paper);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.85;
  will-change: transform;
}
.hero__bg .b1 { width: 60vw; height: 60vw; left: -10vw; top: -16vw;
  background: radial-gradient(circle at 30% 30%, var(--heat), transparent 65%); }
.hero__bg .b2 { width: 55vw; height: 55vw; right: -12vw; top: 6vw;
  background: radial-gradient(circle at 60% 40%, var(--air), transparent 65%); opacity: 0.7; }
.hero__bg .b3 { width: 50vw; height: 50vw; left: 18vw; bottom: -22vw;
  background: radial-gradient(circle at 50% 50%, var(--drought), transparent 62%); opacity: 0.65; }
.hero__bg .grain {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(244,239,227,0.05) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
}
.hero__bg .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(244,239,227,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(244,239,227,0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 78%);
}
.hero__vignette {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse 90% 80% at 50% 40%, transparent 30%, rgba(7,20,15,0.55) 78%),
              linear-gradient(180deg, rgba(7,20,15,0.55), transparent 30%, rgba(7,20,15,0.85));
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad) 88px;
  max-width: 1100px;
  will-change: transform, opacity;
}
.hero__eyebrow {
  color: var(--heat-2);
  justify-content: center;
  margin-bottom: 28px;
  transition: opacity 0.9s var(--ease) 0.05s, transform 0.9s var(--ease) 0.05s;
}
html.preload .hero__eyebrow { opacity: 0; transform: translateY(28px); }
.hero__title {
  font-family: "Newsreader", serif;
  font-weight: 600;
  font-size: clamp(64px, 15vw, 240px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--paper);
}
.hero__title .alt { color: var(--heat-2); font-style: italic; font-weight: 500; }
.hero__title .ch { display: inline-block; transition: opacity 1s var(--ease), transform 1s var(--ease); }
html.preload .hero__title .ch { opacity: 0; transform: translateY(40px) rotate(4deg); }
.hero__title .ch:nth-child(1) { transition-delay: .05s; }
.hero__title .ch:nth-child(2) { transition-delay: .10s; }
.hero__title .ch:nth-child(3) { transition-delay: .15s; }
.hero__title .ch:nth-child(4) { transition-delay: .20s; }
.hero__title .ch:nth-child(5) { transition-delay: .25s; }
.hero__title .ch:nth-child(6) { transition-delay: .32s; }
.hero__title .ch:nth-child(7) { transition-delay: .38s; }
.hero__title .ch:nth-child(8) { transition-delay: .44s; }
/* Safety net: guaranteed visible end-state (export / frozen / no-rAF) */
html.settled .hero__eyebrow,
html.settled .hero__sub,
html.settled .hero__cta,
html.settled .hero__scroll,
html.settled .hero__title .ch {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.hero__sub {
  font-family: "Newsreader", serif;
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 34px);
  line-height: 1.3;
  color: rgba(244,239,227,0.86);
  max-width: 760px;
  margin: 32px auto 0;
  transition: opacity 0.9s var(--ease) 0.45s, transform 0.9s var(--ease) 0.45s;
}
html.preload .hero__sub { opacity: 0; transform: translateY(28px); }
.hero__cta {
  display: inline-flex;
  gap: 14px;
  margin-top: 44px;
  transition: opacity 0.9s var(--ease) 0.6s, transform 0.9s var(--ease) 0.6s;
}
html.preload .hero__cta { opacity: 0; transform: translateY(28px); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn--primary { background: var(--paper); color: var(--ink); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,0.35); }
.btn--ghost { border: 1px solid rgba(244,239,227,0.4); color: var(--paper); }
.btn--ghost:hover { background: rgba(244,239,227,0.1); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.hero__scroll {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  white-space: nowrap;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244,239,227,0.5);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: opacity 0.9s var(--ease) 0.9s;
}
html.preload .hero__scroll { opacity: 0; }
.hero__scroll .mouse {
  width: 22px; height: 36px; border: 1px solid rgba(244,239,227,0.4);
  border-radius: 12px; position: relative;
}
.hero__scroll .mouse::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px;
  background: rgba(244,239,227,0.7); border-radius: 2px; transform: translateX(-50%);
  animation: mouseDot 1.6s var(--ease) infinite;
}
@keyframes mouseDot { 0%{opacity:0; transform:translate(-50%,0);} 30%{opacity:1;} 100%{opacity:0; transform:translate(-50%,10px);} }
@keyframes heroUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes heroChar { from { opacity: 0; transform: translateY(40px) rotate(4deg); } to { opacity: 1; transform: none; } }

/* ============================================================
   GENERIC SECTION
   ============================================================ */
.section { padding: clamp(90px, 13vh, 180px) var(--pad); position: relative; }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--cream { background: var(--paper-3); }

.section-head { max-width: 980px; margin: 0 auto clamp(48px, 7vh, 96px); text-align: center; }
.section-head .eyebrow { justify-content: center; color: var(--accent); margin-bottom: 22px; }
.section--dark .section-head .eyebrow { color: var(--heat-2); }
.section-title {
  font-family: "Newsreader", serif;
  font-weight: 500;
  font-size: clamp(38px, 6vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0;
}
.section-title .it { font-style: italic; color: var(--accent); font-weight: 400; }
.section--dark .section-title .it { color: var(--heat-2); }
.section-lede {
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 660px;
  margin: 26px auto 0;
}
.section--dark .section-lede { color: rgba(244,239,227,0.72); }

/* ---------- reveal base ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="scale"].in { transform: none; }
[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="left"].in { transform: none; }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="right"].in { transform: none; }

/* ============================================================
   STATEMENT (word-by-word reveal)
   ============================================================ */
.statement { padding: clamp(120px, 22vh, 280px) var(--pad); background: var(--paper); }
.statement__inner { max-width: 1180px; margin: 0 auto; }
.statement__eyebrow { color: var(--accent); margin-bottom: 40px; }
.statement__text {
  font-family: "Newsreader", serif;
  font-weight: 500;
  font-size: clamp(30px, 5.2vw, 78px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.statement__text .word {
  color: rgba(14,42,34,0.16);
  transition: color 0.35s var(--ease);
}
.statement__text .word.lit { color: var(--ink); }
.statement__text .accent .word.lit { color: var(--heat); }
.statement__text em { font-style: italic; }

/* ============================================================
   ECOSYSTEM — 5 products
   ============================================================ */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  align-items: start;
}
.eco-card {
  position: relative;
  border-radius: 22px;
  padding: 34px 30px;
  background: var(--paper-3);
  border: 1px solid var(--rule);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.eco-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(14,42,34,0.12); }
.eco-card__num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.eco-card__name {
  font-family: "Newsreader", serif;
  font-weight: 500;
  font-size: clamp(28px, 2.4vw, 40px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 16px 0 12px;
}
.eco-card__name .alt { color: var(--accent); font-style: italic; font-weight: 400; }
.eco-card__desc { font-size: 15px; line-height: 1.5; color: var(--ink-3); }
.eco-card__tag {
  margin-top: 22px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--air);
}
/* spans */
.eco-card.lib-r { grid-column: span 2; }
.eco-card.lib-py { grid-column: span 2; }
.eco-card.plus { grid-column: span 2; }
.eco-card.educa { grid-column: span 3; }
.eco-card.db { grid-column: span 6; }
.eco-card.alerta {
  grid-column: span 3;
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.eco-card.alerta .eco-card__num { color: rgba(244,239,227,0.55); }
.eco-card.alerta .eco-card__name { color: var(--paper); }
.eco-card.alerta .eco-card__name .alt { color: var(--heat-2); }
.eco-card.alerta .eco-card__desc { color: rgba(244,239,227,0.8); }
.eco-card.alerta .eco-card__tag { color: var(--heat-2); }
.eco-card.alerta::after {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(230,138,78,0.5), transparent 70%);
}
@media (max-width: 980px) {
  .eco-grid { grid-template-columns: repeat(2, 1fr); }
  .eco-card, .eco-card.lib-r, .eco-card.lib-py, .eco-card.plus, .eco-card.educa, .eco-card.alerta, .eco-card.db { grid-column: span 1; }
}

/* ============================================================
   PINNED COLOR-SCRUB — 3 alert systems
   ============================================================ */
.scrub { position: relative; height: 480vh; }
.scrub__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--heat);
  color: #fff;
  transition: none;
}
.scrub__head {
  padding: clamp(40px, 8vh, 90px) var(--pad) 0;
  text-align: center;
  flex-shrink: 0;
}
.scrub__kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.8;
}
.scrub__title {
  font-family: "Newsreader", serif;
  font-weight: 500;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 16px 0 0;
}
.scrub__viewport {
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 24px 0;
}
.scrub__track {
  display: flex;
  gap: clamp(20px, 4vw, 64px);
  padding: 0 max(var(--pad), 12vw);
  will-change: transform;
}
.scrub-card {
  flex: 0 0 auto;
  width: min(76vw, 880px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  opacity: 0.4;
  transform: scale(0.96);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.scrub-card.active { opacity: 1; transform: none; }
.scrub-card__text { }
.scrub-card__code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.85;
}
.scrub-card__name {
  font-family: "Newsreader", serif;
  font-weight: 600;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  margin: 14px 0 0;
}
.scrub-card__name .it { font-style: italic; font-weight: 400; opacity: 0.92; }
.scrub-card__tag {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 30px);
  margin: 6px 0 0;
  opacity: 0.9;
}
.scrub-card__desc {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
  margin: 22px 0 0;
  max-width: 460px;
  opacity: 0.95;
}
.scrub-card__attrs {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.3);
}
.scrub-card__attrs .row {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  font-size: 14px;
}
.scrub-card__attrs .k { font-family: "IBM Plex Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; }
.scrub-card__attrs .v { text-align: right; font-weight: 500; }
.scrub-card__visual {
  aspect-ratio: 4/5;
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.scrub-card__visual svg { width: 100%; height: 100%; }
.scrub__foot {
  flex-shrink: 0;
  padding: 0 var(--pad) clamp(28px, 5vh, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.scrub__dots { display: flex; gap: 12px; }
.scrub__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.scrub__dot.active { background: #fff; transform: scale(1.5); }
.scrub__progress {
  width: min(280px, 60vw); height: 2px;
  background: rgba(255,255,255,0.3);
  position: relative; overflow: hidden;
}
.scrub__progress::after {
  content: ""; position: absolute; inset: 0;
  background: #fff; transform: scaleX(0); transform-origin: 0 50%;
}
.scrub__progress-fill {
  position: absolute; inset: 0; background: #fff;
  transform: scaleX(0); transform-origin: 0 50%; will-change: transform;
}
@media (max-width: 820px) {
  .scrub-card { grid-template-columns: 1fr; width: 86vw; }
  .scrub-card__visual { display: none; }
}

/* ============================================================
   FEATURE — big alternating product blocks
   ============================================================ */
.feature { padding: clamp(80px, 12vh, 160px) var(--pad); }
.feature__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.feature--reverse .feature__media { order: 2; }
.feature__eyebrow { color: var(--accent); margin-bottom: 20px; }
.feature__title {
  font-family: "Newsreader", serif;
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 66px);
  line-height: 1.0;
  letter-spacing: -0.028em;
  margin: 0 0 22px;
}
.feature__title .it { font-style: italic; color: var(--accent); font-weight: 400; }
.feature__body { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--ink-3); max-width: 540px; }
.feature__body p { margin: 0 0 16px; }
.feature__list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 0; }
.feature__list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0; border-top: 1px solid var(--rule);
  font-size: 16px; line-height: 1.4;
}
.feature__list li:last-child { border-bottom: 1px solid var(--rule); }
.feature__list .k {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); flex: 0 0 96px; padding-top: 2px;
}
.feature__media {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 5/4;
  background: var(--ink);
}
@media (max-width: 900px) {
  .feature__inner { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
}

/* code mockup */
.codewin {
  position: absolute; inset: 0;
  background: #0B1E17;
  display: flex; flex-direction: column;
}
.codewin__bar {
  height: 44px; flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 0 18px; border-bottom: 1px solid rgba(244,239,227,0.1);
}
.codewin__bar .d { width: 11px; height: 11px; border-radius: 50%; background: rgba(244,239,227,0.25); }
.codewin__bar .t { margin-left: auto; font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244,239,227,0.4); }
.codewin__body {
  flex: 1; padding: 26px 28px;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 1.85;
  color: rgba(244,239,227,0.92);
  overflow: hidden;
}
.codewin__body .cm { color: rgba(244,239,227,0.4); }
.codewin__body .fn { color: var(--drought-2); }
.codewin__body .kw { color: var(--heat-2); }
.codewin__body .st { color: var(--air-2); }
.codewin__body .out { color: rgba(244,239,227,0.55); }

/* platform mockup */
.platwin {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #1F4A3D, #0E2A22);
  display: flex; flex-direction: column;
}
.platwin__bar { height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 20px; border-bottom: 1px solid rgba(244,239,227,0.1); }
.platwin__bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.platwin__chip { margin-left: auto; font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244,239,227,0.55); }
.platwin__body { flex: 1; padding: 22px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; }
.platwin__panel { border-radius: 12px; background: rgba(244,239,227,0.06); border: 1px solid rgba(244,239,227,0.12); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.platwin__panel .lbl { font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244,239,227,0.45); }
.platwin__panel .big { font-family: "Newsreader", serif; font-style: italic; font-size: 30px; color: var(--heat-2); line-height: 1; }
.platwin__panel.wide { grid-column: span 2; }

/* educa visual */
.educawin { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 20%, #2F7D4F, #0E2A22 70%); }

/* ============================================================
   NUMBERS BAND
   ============================================================ */
.numbers { background: var(--ink); color: var(--paper); padding: clamp(80px, 12vh, 150px) var(--pad); }
.numbers__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--rule-d);
}
.num-cell {
  padding: 44px 28px 40px 0;
  border-right: 1px solid var(--rule-d);
  border-bottom: 1px solid var(--rule-d);
}
.num-cell:nth-child(4n) { border-right: none; }
.num-cell:not(:nth-child(4n)) { } /* keep */
.num-cell:not(:first-child) { padding-left: 28px; }
.num-cell .v {
  font-family: "Newsreader", serif;
  font-weight: 500; font-style: italic;
  font-size: clamp(48px, 6vw, 92px);
  line-height: 0.95; letter-spacing: -0.03em;
  color: var(--heat-2);
}
.num-cell .l { font-size: 15px; line-height: 1.4; color: rgba(244,239,227,0.78); margin-top: 14px; max-width: 230px; }
.num-cell .s { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244,239,227,0.45); margin-top: 10px; }
@media (max-width: 820px) {
  .numbers__grid { grid-template-columns: 1fr 1fr; }
  .num-cell:nth-child(2n) { border-right: none; }
  .num-cell:nth-child(odd) { padding-left: 0; }
  .num-cell:nth-child(even) { padding-left: 28px; }
}

/* ============================================================
   WHY GRID
   ============================================================ */
.why-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.why-card {
  background: var(--paper-3);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.why-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(14,42,34,0.1); }
.why-card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
}
.why-card h4 {
  font-family: "Newsreader", serif; font-weight: 500;
  font-size: 27px; line-height: 1.05; letter-spacing: -0.015em; margin: 8px 0 0;
}
.why-card p { font-size: 15.5px; line-height: 1.55; color: var(--ink-3); margin: 0; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FINALE / CTA
   ============================================================ */
.finale {
  position: relative;
  background: #07140F;
  color: var(--paper);
  padding: clamp(110px, 20vh, 220px) var(--pad);
  text-align: center;
  overflow: hidden;
}
.finale__bg { position: absolute; inset: 0; z-index: 0; }
.finale__bg .ring {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  border-radius: 50%; border: 1px solid rgba(244,239,227,0.08);
}
.finale__inner { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; }
.finale__eyebrow { color: var(--heat-2); justify-content: center; margin-bottom: 28px; }
.finale__title {
  font-family: "Newsreader", serif; font-weight: 500;
  font-size: clamp(40px, 7vw, 104px); line-height: 0.96; letter-spacing: -0.035em; margin: 0;
}
.finale__title .it { font-style: italic; color: var(--heat-2); font-weight: 400; }
.finale__sub { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.5; color: rgba(244,239,227,0.8); max-width: 680px; margin: 30px auto 0; }
.finale__cta { display: inline-flex; gap: 14px; margin-top: 46px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #050B08; color: rgba(244,239,227,0.65); padding: 80px var(--pad) 40px; }
.footer__top {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(244,239,227,0.1);
}
.footer__brand .bw { font-family: "Newsreader", serif; font-weight: 600; font-size: 40px; color: var(--paper); }
.footer__brand .bw .alt { color: var(--heat-2); font-style: italic; font-weight: 500; }
.footer__brand p { margin: 18px 0 0; font-size: 14px; line-height: 1.55; max-width: 340px; }
.footer__col h5 { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--heat-2); margin: 0 0 18px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer__col a { font-size: 14px; color: rgba(244,239,227,0.65); transition: color 0.2s; }
.footer__col a:hover { color: var(--paper); }
.footer__bottom {
  max-width: var(--maxw); margin: 32px auto 0;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244,239,227,0.4);
}
@media (max-width: 820px) { .footer__top { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__title .ch, .hero__eyebrow, .hero__sub, .hero__cta, .hero__scroll { animation: none !important; opacity: 1 !important; transform: none !important; }
}
