/* ============================================================
   TIE3M — Plataforma de desarrollo / Chile transición energética
   Design tokens + layout + signature motion (CSS side)
   Motion: transform / opacity / clip-path only.
   ============================================================ */

:root {
  --red: #ED1C23;
  --coral: #F14D53;
  --blue: #0A4595;
  --ink: #111111;
  --muted: #666666;
  --surface: #FFFFFF;
  --surface-2: #EAE6E6;
  --line: rgba(17, 17, 17, .12);
  --line-light: rgba(255, 255, 255, .22);

  --font-sans: "Rubik", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Mono", "SFMono-Regular", Menlo, monospace;

  --text-base: clamp(1rem, .94rem + .3vw, 1.125rem);
  --text-lead: clamp(1.125rem, 1rem + .6vw, 1.45rem);
  --text-h2: clamp(1.75rem, 1.1rem + 3vw, 3.25rem);
  --text-hero: clamp(2.25rem, 1.2rem + 5.2vw, 5.5rem);
  --text-num: clamp(3rem, 2rem + 5vw, 6rem);

  --space-section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --wrap-max: 72rem;

  --dur-fast: 180ms;
  --dur-reveal: 450ms;
  --dur-draw: 1600ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p, dl, dd, dt, figure { margin: 0; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: min(100% - 3rem, var(--wrap-max));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* ---------- wordmark ---------- */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: .15rem;
  text-decoration: none;
}

.wordmark__text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .14em;
  color: var(--ink);
}

.wordmark__text::after {
  content: "_";
  color: var(--red);
}

.wordmark__tag {
  font-family: var(--font-mono);
  font-size: .55rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color var(--dur-fast) ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header.is-scrolled .wordmark__text,
.site-header.is-scrolled .nav__menu a { color: var(--ink); }

/* over the hero (dark photo) the nav text is light until scrolled */
.site-header:not(.is-scrolled) .wordmark__text { color: #fff; }
.site-header:not(.is-scrolled) .wordmark__tag { color: rgba(255, 255, 255, .65); }
.site-header:not(.is-scrolled) .nav__menu a { color: rgba(255, 255, 255, .92); }
.site-header:not(.is-scrolled) .nav__toggle span { background: #fff; }

.nav {
  width: min(100% - 3rem, var(--wrap-max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .9rem;
}

.nav__menu {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__menu a {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  padding-block: .3rem;
}

.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-out);
}

.nav__menu a:hover::after,
.nav__menu a:focus-visible::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
}

.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--dur-fast) ease, opacity var(--dur-fast) ease;
}

@media (max-width: 880px) {
  .nav__toggle { display: flex; }

  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: .5rem 1.5rem 1.25rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--dur-fast) ease, opacity var(--dur-fast) ease,
      visibility 0s linear var(--dur-fast);
  }

  .site-header.nav-open .nav__menu {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: transform var(--dur-fast) ease, opacity var(--dur-fast) ease;
  }

  .site-header.nav-open { background: #fff; }
  .site-header.nav-open .wordmark__text { color: var(--ink); }
  .site-header.nav-open .wordmark__tag { color: var(--muted); }
  .site-header.nav-open .nav__toggle span { background: var(--ink); }
  .site-header.nav-open .nav__menu a { color: var(--ink); }

  .nav__menu a { display: block; padding-block: .75rem; }

  .site-header.nav-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- kicker ---------- */
.kicker {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.4rem;
}

.kicker--light { color: var(--coral); }

/* legibility per surface: darker red on gray, white on blue */
.section--gray .kicker { color: #B50F16; }
.section--blue .kicker { color: rgba(255, 255, 255, .92); }

/* ============================================================
   HERO — scroll-pinned manifesto
   ============================================================ */
.hero {
  /* short pin: ~20vh extra scroll, then the next section overlaps in */
  height: 120vh;
  position: relative;
}

.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: end;
  background: var(--ink);
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, .55) 0%, rgba(17, 17, 17, .25) 40%, rgba(17, 17, 17, .82) 100%);
}

.hero__inner {
  position: relative;
  z-index: 3;
  width: min(100% - 3rem, var(--wrap-max));
  margin-inline: auto;
  padding-bottom: clamp(3rem, 8vh, 6rem);
  color: #fff;
  /* JS drives --hero-p (0→1) while pinned: content lifts + fades out */
  opacity: calc(1 - var(--hero-p, 0) * 1.4);
  transform: translateY(calc(var(--hero-p, 0) * -8vh));
  will-change: transform, opacity;
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.02em;
  max-width: 18ch;
  margin-bottom: 1.4rem;
}

.hero__accent { color: var(--coral); }

.hero__lead {
  font-size: var(--text-lead);
  line-height: 1.5;
  max-width: 54ch;
  color: rgba(255, 255, 255, .88);
}

.hero__lead--close { margin-top: 1.1rem; }

.hero__scrollcue {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  margin-top: 2.2rem;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
}

.hero__scrollcue::after {
  content: "";
  width: 1px;
  height: 2rem;
  background: var(--red);
  animation: cue-pulse 2s var(--ease-out) infinite;
  transform-origin: top;
}

@keyframes cue-pulse {
  0% { transform: scaleY(0); opacity: 1; }
  70% { transform: scaleY(1); opacity: .4; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* short viewports: compress hero type so the kicker never rides up into the nav */
@media (max-height: 840px) {
  .hero__title { font-size: clamp(2rem, 1rem + 4.4vw, 4.4rem); }
  .hero__lead { font-size: clamp(1rem, .9rem + .45vw, 1.2rem); }
  .hero__scrollcue { margin-top: 1.4rem; }
}

@media (max-height: 700px) {
  .hero__title { font-size: clamp(1.8rem, .9rem + 3.8vw, 3.6rem); margin-bottom: 1rem; }
  .hero__lead { font-size: 1rem; line-height: 1.45; }
  .hero__scrollcue { display: none; }
}

/* ============================================================
   CONNECTOR-NODE GRID (signature motif)
   SVG injected by main.js into every [data-grid] layer
   ============================================================ */
.grid-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.grid-layer--hero { z-index: 2; mix-blend-mode: screen; }

.grid-svg { width: 100%; height: 100%; display: block; }

.grid-line {
  fill: none;
  stroke-width: 1.25;
  /* dasharray/dashoffset set inline by JS; transition draws the line */
  transition: stroke-dashoffset var(--dur-draw) var(--ease-out);
}

.grid-node {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transition: opacity var(--dur-reveal) ease;
}

.is-drawn .grid-node,
.grid-node.is-on { opacity: 1; }

.grid-node.is-on { animation: node-pulse 2.6s ease-in-out infinite; }
.is-drawn .grid-node { animation: node-pulse 2.6s ease-in-out infinite; }

.grid-node:nth-of-type(2n) { animation-delay: .65s; }
.grid-node:nth-of-type(3n) { animation-delay: 1.3s; }

@keyframes node-pulse {
  0%, 100% { transform: scale(1); opacity: .55; }
  50% { transform: scale(1.55); opacity: 1; }
}

/* grid color per surface */
.grid-layer--section .grid-line { stroke: rgba(17, 17, 17, .14); }
.grid-layer--section .grid-node { fill: var(--red); }

.section--blue .grid-line,
.section--dark .grid-line { stroke: var(--line-light); }
.section--blue .grid-node { fill: var(--coral); }
.section--dark .grid-node { fill: var(--red); }

.site-footer .grid-layer { opacity: .25; }
.site-footer .grid-line { stroke: var(--line-light); }
.site-footer .grid-node { fill: var(--red); }

.grid-layer--hero .grid-line { stroke: rgba(255, 255, 255, .34); }
.grid-layer--hero .grid-node { fill: var(--coral); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  position: relative;
  padding-block: var(--space-section);
  overflow: clip;
}

.section--surface { background: var(--surface); }
.section--gray { background: var(--surface-2); }

.section--blue {
  background: var(--blue);
  color: #fff;
}

.section--dark {
  background: var(--ink);
  color: #fff;
}

/* the section after the pinned hero overlaps / reveals over it */
#plataforma {
  margin-top: -14vh;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -24px 60px rgba(17, 17, 17, .25);
  z-index: 3;
}

.section__title {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.015em;
  max-width: 24ch;
  margin-bottom: 1.2rem;
}

.section__title--light { color: #fff; }

.section__lead {
  font-size: var(--text-lead);
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 2.5rem;
}

.section--blue .section__lead,
.section--dark .section__lead { color: rgba(255, 255, 255, .8); }

/* ---------- pillars (section 2) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-block: 2.5rem 3rem;
}

.pillar {
  background: var(--surface);
  padding: 1.6rem 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  position: relative;
  transition: transform var(--dur-fast) var(--ease-out);
}

.pillar::after {
  content: "";
  position: absolute;
  left: 1.2rem;
  bottom: 1.05rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0;
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
  transform: scale(.4);
}

.pillar:hover { transform: translateY(-4px); }
.pillar:hover::after { opacity: 1; transform: scale(1); }

.pillar__idx {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2rem;
  color: var(--red);
  line-height: 1;
}

.pillar__name {
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .02em;
}

/* ---------- ticker (real counts only) ---------- */
.ticker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 2.2rem;
}

.ticker__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--text-num);
  line-height: 1;
  color: var(--ink);
}

.ticker__num::after {
  content: "";
  display: inline-block;
  width: .45em;
  height: .45em;
  margin-left: .12em;
  border-radius: 50%;
  background: var(--red);
}

.ticker__label {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .5rem;
}

.goals__label {
  font-family: var(--font-mono);
  font-size: .85rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: .6rem;
}

/* ---------- goals (section 3) ---------- */
.goals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.4rem 2.5rem;
  margin-top: 2.5rem;
  counter-reset: goal;
}

.goal {
  position: relative;
  padding: 1.3rem 0 1.3rem 2.1rem;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}

.goal__node {
  position: absolute;
  left: 0;
  top: 1.75rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}

.goal__node::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--red);
  opacity: 0;
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease;
  transform: scale(.6);
}

.goal:hover .goal__node::after { opacity: .7; transform: scale(1); }

/* ---------- impact (section 4, blue) ---------- */
.impact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  margin-top: 2.5rem;
}

.impact__item {
  background: var(--blue);
  padding: 1.5rem 1.4rem;
  font-size: .98rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .92);
  position: relative;
  transition: transform var(--dur-fast) var(--ease-out);
}

.impact__item::before {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--coral);
  margin-bottom: 1rem;
}

.impact__item:hover { transform: translateY(-3px); }

.impact__subtitle {
  font-family: var(--font-mono);
  font-size: .85rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--coral);
  margin-top: 3.2rem;
}

.impact--secondary {
  margin-top: 1.4rem;
  background: transparent;
  border: 0;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.impact--secondary .impact__item {
  outline: 1px solid var(--line-light);
  outline-offset: -.5px;
}

/* ---------- arenas (section 5) ---------- */
.arenas {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
  align-items: start;
}

.arena {
  border-top: 2px solid var(--ink);
  padding-top: 1.3rem;
  position: relative;
}

.arena:first-child { border-top-color: var(--red); }

.arena__idx {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--muted);
}

.arena__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-block: .55rem .6rem;
}

.arena__body { color: var(--muted); line-height: 1.55; }

.arena__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  margin-top: 1.4rem;
}

.arena__shot {
  overflow: hidden;
  border-radius: 6px;
}

.arena__shot img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
  transition: transform .6s var(--ease-out);
}

.arena__shot:hover img { transform: scale(1.05); }

.arena__gallery--cases { grid-template-columns: repeat(3, 1fr); }

.arena__cap {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: .55rem;
}

@media (max-width: 560px) {
  .arena__gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .arenas { grid-template-columns: 1fr; }
}

/* ---------- initiatives (section 6 — Chile map node-art) ---------- */
.initiatives {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-top: 2.5rem;
  align-items: stretch;
}

.initiatives__map {
  position: relative;
  min-height: 640px;
  height: 100%;
}

.initiatives__map .grid-svg { position: absolute; inset: 0; }

.initiatives__map .grid-node { fill: var(--red); }
.initiatives__map .grid-line { stroke: rgba(17, 17, 17, .25); }

.map-img {
  opacity: 0;
  transition: opacity 900ms var(--ease-out);
}

.is-drawn .map-img { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .map-img { opacity: 1 !important; transition: none !important; }
}

.map-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  fill: var(--muted);
}

.initiatives__list { display: grid; gap: 0; }

.initiative {
  border-top: 1px solid var(--line);
  padding-block: 1.6rem;
  position: relative;
  padding-left: 1.9rem;
}

.initiative::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2.15rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}

.initiative__title {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: .45rem;
}

.initiative p { color: var(--muted); line-height: 1.55; }

.initiatives__close {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: var(--text-lead);
  color: var(--ink);
  max-width: 58ch;
}

@media (max-width: 900px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .initiatives { grid-template-columns: 1fr; }
  /* stacked: let the map take real vertical room so Chile reads */
  .initiatives__map { min-height: clamp(420px, 128vw, 640px); }
}

@media (max-width: 560px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .ticker { grid-template-columns: 1fr; gap: 1.1rem; }
  .arena__gallery--cases { grid-template-columns: 1fr; }
  .map-label { font-size: 12px; }
}

/* ---------- motor (section 7, dark) ---------- */
.motor {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 2.8rem;
}

.motor__card figure {
  overflow: hidden;
  border-radius: 6px;
}

.motor__card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}

.motor__card:hover img { transform: scale(1.035); }

.motor__cap {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-light);
  margin-top: 1rem;
}

.motor__cap h3 {
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
}

.motor__cap p {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .65);
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .motor { grid-template-columns: 1fr; }
}

/* ---------- héroes (section 8) ---------- */
.heroes {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.heroes__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem;
  align-self: stretch;
}

.heroes__portrait {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
}

.heroes__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 2 / 3;
}

.heroes__portrait--lead { grid-row: span 1; }

/* second portrait drops slightly — editorial offset */
.heroes__portrait:nth-child(2),
.heroes__portrait:nth-child(4) { transform: translateY(1.4rem); }

.heroes__portrait::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: var(--red);
}

@media (max-width: 860px) {
  .heroes { grid-template-columns: 1fr; }
  .heroes__portrait:nth-child(2),
  .heroes__portrait:nth-child(4) { transform: translateY(.9rem); }
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding-block: clamp(3.5rem, 6vw, 6rem) 2.5rem;
  overflow: clip;
}

.site-footer__inner {
  display: grid;
  gap: 2.2rem;
}

.site-footer .wordmark__text { color: #fff; font-size: 1.8rem; }
.site-footer .wordmark__tag { color: rgba(255, 255, 255, .55); }

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
}

.site-footer__nav a {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, .8);
  position: relative;
  padding-block: .25rem;
}

.site-footer__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-out);
}

.site-footer__nav a:hover::after,
.site-footer__nav a:focus-visible::after { transform: scaleX(1); }

.site-footer__inst {
  border-top: 1px solid var(--line-light);
  padding-top: 1.6rem;
  font-size: .85rem;
  color: rgba(255, 255, 255, .55);
}

/* ============================================================
   REVEAL ON SCROLL (IntersectionObserver adds .is-visible)
   Gated on .js so a no-JS visit still shows everything.
   ============================================================ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* hero content is driven by --hero-p, not the reveal transform */
.js .hero [data-reveal] { transform: none; }

/* ============================================================
   REDUCED MOTION — no pin, lines fully drawn, no pulse/reveal
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  /* unpin the hero */
  .hero { height: auto; }
  .hero__sticky { position: relative; height: 100svh; }
  .hero__inner { opacity: 1 !important; transform: none !important; will-change: auto; }
  #plataforma { margin-top: 0; border-radius: 0; box-shadow: none; }

  /* lines fully drawn, no draw transition (beats inline style) */
  .grid-line,
  .map-outline {
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }

  /* no pulsing nodes, but visible */
  .grid-node {
    animation: none !important;
    opacity: 1 !important;
    transition: none !important;
  }

  /* no reveal motion */
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero__scrollcue::after { animation: none; }

  .arena__shot img,
  .motor__card img,
  .pillar,
  .impact__item { transition: none; }
}
