/* ============================================================
   AEGDE — sistema visual
   Paleta tomada del escudo: negro profundo, azul circuito,
   verde y rojo de la bandera ecuatoguineana.
   ============================================================ */

:root {
  --ink: #07090b;
  --ink-2: #0c1014;
  --panel: #11161b;
  --panel-2: #161c22;
  --bone: #f2f4f1;
  --blue: #2f7ff0;
  --blue-soft: rgba(47, 127, 240, .16);
  --green: #12a150;
  --red: #e12a30;
  --text: #e6e9ec;
  --muted: #97a1ab;
  --line: rgba(242, 244, 241, .13);
  --line-strong: rgba(242, 244, 241, .26);

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;

  --wrap: 1240px;
  --pad: clamp(1.15rem, 4vw, 3rem);
  --radius: 4px;
  --ease: cubic-bezier(.22, .68, 0, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

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

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

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

.skip {
  position: fixed;
  top: .75rem; left: .75rem;
  z-index: 200;
  padding: .7rem 1.1rem;
  background: var(--bone);
  color: var(--ink);
  font-weight: 700;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- progreso de scroll ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--green) 70%, var(--red));
}

/* ---------- cabecera ---------- */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s var(--ease), backdrop-filter .3s var(--ease), border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-head.is-stuck {
  background: rgba(7, 9, 11, .82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.brand__mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: var(--bone);
  border-radius: 3px;
  padding: 3px;
  mix-blend-mode: multiply;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.32rem;
  letter-spacing: .04em;
}
.brand__text small {
  font-size: .62rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .22rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(.6rem, 1.6vw, 1.7rem);
  font-size: .88rem;
  font-weight: 600;
}
.nav > a {
  position: relative;
  padding: .35rem 0;
  color: var(--muted);
  transition: color .2s;
}
.nav > a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav > a:hover { color: var(--bone); }
.nav > a:hover::after { transform: scaleX(1); }

.nav__cta {
  padding: .55rem 1.05rem !important;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--bone) !important;
  transition: background .2s, border-color .2s, color .2s;
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--bone); color: var(--ink) !important; border-color: var(--bone); }

.nav-toggle {
  display: none;
  width: 44px; height: 40px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--bone);
  transition: transform .25s var(--ease), opacity .2s;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(6.4rem, 12vh, 9rem);
  padding-bottom: 0;
  overflow: hidden;
  isolation: isolate;
}
.hero__circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: .85;
}
.hero__glow {
  position: absolute;
  z-index: 0;
  width: 60vw;
  height: 60vw;
  right: -12vw;
  top: -18vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 127, 240, .22), transparent 62%);
  filter: blur(10px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, var(--ink) 12%, transparent);
  z-index: 0;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(18, 161, 80, .16);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 10.4vw, 8.8rem);
  line-height: .86;
  letter-spacing: -.022em;
  text-transform: uppercase;
  font-weight: 400;
  margin-left: -.025em;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .02em;
}
.hero__title .line > span {
  display: inline-block;
  transform: translateY(105%);
  animation: rise .95s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
.hero__title .accent {
  color: var(--blue);
  text-shadow: 0 0 46px rgba(47, 127, 240, .42);
}

.hero__lead {
  max-width: 46ch;
  margin-top: 1.9rem;
  color: #c3cbd3;
  font-size: clamp(1rem, .95rem + .35vw, 1.18rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .92rem 1.6rem;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .02em;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--blue); color: #fff; }
.btn--solid:hover { background: #4a92f7; }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--bone); background: rgba(242, 244, 241, .06); }

.hero__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.6rem;
  margin: 2.4rem 0 0;
  padding: 0;
  font-size: .79rem;
  color: var(--muted);
}
.hero__meta li { display: flex; align-items: center; gap: .45rem; }
.hero__meta strong {
  color: var(--bone);
  font-weight: 700;
  letter-spacing: .08em;
  font-size: .7rem;
  padding-right: .45rem;
  border-right: 1px solid var(--line-strong);
}

/* escudo */
.hero__stage { display: flex; justify-content: center; }
.crest {
  position: relative;
  width: min(100%, 330px);
}
.crest__frame {
  position: relative;
  background: var(--bone);
  padding: 10px 10px 12px;
  border-radius: 3px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .07);
  transform: rotate(-1.4deg);
}
.crest__frame::before,
.crest__frame::after {
  content: "";
  position: absolute;
  width: 26px; height: 26px;
  border: 2px solid;
}
.crest__frame::before {
  top: -9px; left: -9px;
  border-color: var(--red) var(--red) transparent transparent;
}
.crest__frame::after {
  bottom: -9px; right: -9px;
  border-color: transparent transparent var(--green) var(--green);
}
.crest__frame img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.crest__tag {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .95rem;
  padding-top: .7rem;
  border-top: 1px solid var(--line);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #b6bec7;
}
.crest__tag-region { color: var(--blue); font-weight: 700; }

/* marcador */
.scoreboard {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 1.6rem clamp(1rem, 2vw, 1.9rem) 1.7rem 0;
  border-left: 1px solid var(--line);
  padding-left: clamp(1rem, 2vw, 1.9rem);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat dt {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.stat dd {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  margin: .55rem 0 .35rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1;
  letter-spacing: .01em;
  color: var(--bone);
}
.stat dd small {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .08em;
}
.stat p { font-size: .78rem; color: var(--muted); line-height: 1.45; }

/* ---------- secciones ---------- */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }

.display {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.6vw, 4.9rem);
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: -.014em;
  font-weight: 400;
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section__note {
  color: var(--muted);
  max-width: 44ch;
  padding-bottom: .4rem;
  border-left: 2px solid var(--line-strong);
  padding-left: 1.1rem;
  font-size: .95rem;
}

/* asociación */
.section--split { background: linear-gradient(180deg, transparent, rgba(47,127,240,.045) 40%, transparent); }
.split {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
}
.split__head { position: sticky; top: 110px; align-self: start; }
.split__body p + p { margin-top: 1.1rem; color: #b8c1ca; }
.lede {
  font-size: clamp(1.12rem, 1rem + .55vw, 1.4rem);
  line-height: 1.5;
  color: var(--bone) !important;
  margin-bottom: 1.35rem;
}

.role-list {
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.role-list li {
  padding: 1rem 1rem 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .87rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.role-list li:nth-child(even) { padding-left: 1.1rem; border-left: 1px solid var(--line); }
.role-list span {
  color: var(--bone);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
}

/* cinta */
.ribbon {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ink-2);
  padding: .85rem 0;
  user-select: none;
}
.ribbon__track {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  width: max-content;
  animation: marquee 34s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #cdd4db;
  white-space: nowrap;
}
.ribbon__track i { color: var(--red); font-style: normal; font-size: .7em; }
.ribbon:hover .ribbon__track { animation-play-state: paused; }

/* disciplinas */
.games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.game {
  position: relative;
  background: var(--ink);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transition: background .3s var(--ease);
  overflow: hidden;
}
.game::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(47, 127, 240, .2), transparent 68%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.game:hover::before { opacity: 1; }
.game:hover { background: #0a0e12; }

.game__genre {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
}
.game h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  line-height: .95;
  text-transform: uppercase;
  margin-top: auto;
  padding-top: 2.2rem;
  font-weight: 400;
  color: var(--bone);
}
.game p {
  margin-top: .55rem;
  color: var(--muted);
  font-size: .87rem;
  max-width: 26ch;
}
.game__idx {
  position: absolute;
  top: 1.1rem; right: 1.2rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: rgba(242, 244, 241, .1);
}

.game--open {
  background: linear-gradient(150deg, rgba(18,161,80,.16), transparent 60%), var(--ink);
}
.game--open .game__genre { color: var(--green); }
.game__link {
  display: inline-block;
  margin-top: 1rem;
  font-size: .84rem;
  font-weight: 700;
  color: var(--bone);
  border-bottom: 1px solid var(--green);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color .2s, border-color .2s;
}
.game__link:hover { color: var(--green); }

/* trayectoria */
.section--timeline { background: var(--ink-2); border-block: 1px solid var(--line); }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 148px;
  top: .6rem;
  bottom: 1.2rem;
  width: 1px;
  background: var(--line-strong);
}
.tl {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 2.4rem;
  padding: 1.7rem 0;
  position: relative;
}
.tl + .tl { border-top: 1px solid rgba(242, 244, 241, .06); }
.tl::before {
  content: "";
  position: absolute;
  left: 144px;
  top: 2.05rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(47, 127, 240, .14);
}
.tl__date {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: .15rem;
}
.tl__body h3 {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--bone);
}
.tl__body p {
  margin-top: .4rem;
  color: var(--muted);
  font-size: .92rem;
  max-width: 62ch;
}
.tl--major::before { background: var(--green); box-shadow: 0 0 0 5px rgba(18, 161, 80, .18); }
.tl--major .tl__date { color: var(--green); }
.tl--next::before { background: var(--red); box-shadow: 0 0 0 5px rgba(225, 42, 48, .18); }
.tl--next .tl__date { color: var(--red); }
.tl--next .tl__body h3 { color: #f2b9bb; }

/* proyectos */
.projects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 4.5rem);
}
.projects li {
  padding: 1.7rem 0 1.8rem;
  border-top: 1px solid var(--line);
  position: relative;
  transition: padding-left .3s var(--ease);
}
.projects li:hover { padding-left: .6rem; }
.projects h3 {
  font-size: clamp(1.1rem, 1.7vw, 1.42rem);
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--bone);
}
.projects p { margin-top: .45rem; color: var(--muted); font-size: .92rem; max-width: 46ch; }
.projects span {
  display: inline-block;
  margin-top: .85rem;
  font-size: .65rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
}
.projects li::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  height: 1px; width: 0;
  background: var(--blue);
  transition: width .45s var(--ease);
}
.projects li:hover::before { width: 100%; }

/* comunidad */
.community {
  background: var(--blue);
  color: #fff;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}
.community::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, transparent 0 34px, rgba(255, 255, 255, .05) 34px 35px);
  pointer-events: none;
}
.community__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.community .eyebrow { color: rgba(255, 255, 255, .72); }
.community .eyebrow .dot { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .22); }
.community .display { color: #fff; font-size: clamp(2.2rem, 4.6vw, 4rem); }

.community__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .32);
}
.community__links a {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: 1.15rem 0 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .32);
  transition: background .25s, padding-left .25s var(--ease);
}
.community__links a:nth-child(even) { padding-left: 1.1rem; border-left: 1px solid rgba(255, 255, 255, .32); }
.community__links a:hover { background: rgba(255, 255, 255, .12); padding-left: .5rem; }
.community__links a:nth-child(even):hover { padding-left: 1.5rem; }
.community__links span {
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, .74);
}
.community__links em {
  font-style: normal;
  font-weight: 800;
  font-size: 1.05rem;
}

/* contacto */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact__copy > p:not(.eyebrow) {
  max-width: 42ch;
  margin-top: 1.5rem;
  color: var(--muted);
}
.mail {
  display: inline-block;
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.1vw, 2.5rem);
  letter-spacing: .01em;
  color: var(--bone);
  border-bottom: 2px solid var(--red);
  padding-bottom: .2rem;
  overflow-wrap: anywhere;
  transition: color .25s, border-color .25s;
}
.mail:hover { color: var(--red); }

.contact__card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.8vw, 2rem);
}
.contact__card h3 {
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 1rem;
}
.contact__card dl { margin: 0; }
.contact__card dl > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: .6rem;
  padding: .85rem 0;
  border-top: 1px solid rgba(242, 244, 241, .08);
  font-size: .88rem;
}
.contact__card dt { color: var(--muted); font-size: .78rem; letter-spacing: .04em; }
.contact__card dd { margin: 0; color: var(--text); }
.contact__card dd small { color: var(--muted); font-size: .74rem; }
.contact__fine { margin-top: 1.1rem; font-size: .74rem; color: #6f7a85; line-height: 1.5; }

/* pie */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 2.6rem;
  background: #05070a;
}
.site-foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}
.site-foot__brand { display: flex; align-items: center; gap: .8rem; }
.site-foot__brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  background: var(--bone);
  padding: 2px;
  border-radius: 2px;
  mix-blend-mode: multiply;
}
.site-foot__brand p { font-size: .75rem; color: var(--muted); line-height: 1.4; }
.site-foot__brand strong { color: var(--bone); font-family: var(--font-display); letter-spacing: .06em; font-size: .95rem; }
.site-foot__nav { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: .82rem; color: var(--muted); }
.site-foot__nav a { transition: color .2s; }
.site-foot__nav a:hover { color: var(--bone); }
.site-foot__note { font-size: .74rem; color: #626c76; }

/* ---------- revelado ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  to { transform: translateY(0); }
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { order: -1; justify-content: flex-start; }
  .crest { width: min(76%, 300px); transform: rotate(-1.5deg); }
  .hero__title { font-size: clamp(3.4rem, 14vw, 8rem); }
  .scoreboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(3),
  .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; }
  .split__head { position: static; }
  .section__head { grid-template-columns: 1fr; align-items: start; }
  .section__note { border-left: 0; border-top: 1px solid var(--line-strong); padding: .9rem 0 0; }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community__inner,
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(7, 9, 11, .97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--pad) 1.4rem;
    transform: translateY(-110%);
    transition: transform .35s var(--ease);
    visibility: hidden;
  }
  .nav a {
    padding: .95rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(242, 244, 241, .07);
    color: var(--text);
  }
  .nav__cta {
    margin-top: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--line-strong) !important;
  }
  .nav-toggle { display: block; }
  .site-head.nav-open .nav { transform: none; visibility: visible; }
  .site-head.nav-open .nav-toggle span:first-child { transform: translateY(3px) rotate(45deg); }
  .site-head.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

  .hero { padding-top: 6.2rem; }
  .hero__title { font-size: clamp(3rem, 17.5vw, 5.2rem); }
  .crest { width: min(70%, 260px); }
  .crest__tag { font-size: .66rem; letter-spacing: .1em; }
  .scoreboard { grid-template-columns: 1fr; }
  .stat,
  .stat:nth-child(3),
  .stat:nth-child(4) {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
  }
  .stat:first-child { border-top: 0; }
  .stat dd { font-size: 2.4rem; }

  .games { grid-template-columns: 1fr; }
  .game { min-height: 168px; padding: 1.4rem; }
  .game h3 { padding-top: 1.6rem; }

  .timeline::before { left: 5px; }
  .tl { grid-template-columns: 1fr; gap: .5rem; padding-left: 1.7rem; }
  .tl::before { left: 1px; top: 1.95rem; }

  .projects { grid-template-columns: 1fr; }
  .role-list { grid-template-columns: 1fr; }
  .role-list li:nth-child(even) { padding-left: 0; border-left: 0; }

  .community__links { grid-template-columns: 1fr; }
  .community__links a:nth-child(even) { padding-left: 0; border-left: 0; }

  .contact__card dl > div { grid-template-columns: 1fr; gap: .15rem; }

  .site-foot__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
  .ribbon__track { animation: none; }
}
