/* Game Devs UPN — estilos (mobile-first) */

:root {
  /* color */
  --c-bg: #08080a;
  --c-surface: #141417;
  --c-surface-2: #1c1c20;
  --c-text: #fafaf8;
  --c-muted: #9a9894;
  --c-accent: #fdb934;
  --c-accent-ink: #08080a;
  --c-nav: #f2f0ea;
  --c-line: rgba(250, 250, 248, 0.12);
  --c-line-strong: rgba(250, 250, 248, 0.22);
  --c-line-dark: rgba(8, 8, 10, 0.18);

  /* type */
  --f-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xxl: clamp(2.1rem, 9.6vw, 8.5rem);
  --fs-xl: clamp(2.1rem, 8vw, 5.25rem);
  --fs-xl-col: clamp(2.1rem, 3.9vw, 3.6rem);
  --fs-l: clamp(1.25rem, 2.4vw, 1.625rem);
  --fs-body: 1rem;
  --fs-lead: clamp(1.0625rem, 1.4vw, 1.1875rem);
  --fs-xs: 0.8125rem;   /* 13px: badges, notes, legal */
  --fs-small: 0.875rem; /* 14px: meta, labels */
  --fs-md: 1.125rem;    /* 18px: list titles, questions */
  --fs-card: 1.25rem;   /* 20px: card titles */

  /* space + shape */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.25rem, 7vw, 5.75rem);
  --max: 82rem;
  --r-s: 0.5rem;
  --r-m: 1rem;
  --r-l: 1.5rem;
  --r-pill: 999px;
  --cut: 14px;

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --t-fast: 160ms;
  --t-med: 280ms;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font: 400 var(--fs-body)/1.65 var(--f-body);
  letter-spacing: 0.003em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, blockquote { margin: 0; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }
.next :focus-visible, .nav :focus-visible { outline-color: var(--c-accent-ink); }
::selection { background: var(--c-accent); color: var(--c-accent-ink); }
html { scrollbar-color: var(--c-accent) var(--c-bg); scrollbar-width: thin; }
input, textarea { caret-color: var(--c-accent); }
.form--card input, .form--card textarea { caret-color: var(--c-accent-ink); }
.prose a { text-underline-offset: 0.2em; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--c-accent); color: var(--c-accent-ink);
  padding: 0.75rem 1rem; border-radius: var(--r-s); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

/* subtle dot texture for the page */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(250, 250, 248, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ---------- type ---------- */
.title {
  position: relative;
  font-family: var(--f-display);
  font-weight: 850; font-stretch: 125%;
  font-size: var(--fs-xl); line-height: 0.92;
  letter-spacing: -0.01em; text-transform: uppercase;
  margin-bottom: clamp(1.25rem, 3vw, 2.25rem);
  text-wrap: balance;
}
.title--dark { color: var(--c-accent-ink); }
.prose { color: rgba(250, 250, 248, 0.82); font-size: var(--fs-lead); line-height: 1.65; max-width: 38rem; text-wrap: pretty; }
.prose p + p { margin-top: 1rem; }
.prose a { color: var(--c-accent); }

/* ---------- icons ---------- */
.i-arrow, .i-close { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-med) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  a:hover > .i-arrow, button:hover > .i-arrow { transform: translateX(4px); }
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--c-text); --btn-bd: var(--c-line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.4rem;
  border: 1px solid var(--btn-bd); border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 700 var(--fs-small)/1 var(--f-body); letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; user-select: none;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.btn--primary { --btn-bg: var(--c-accent); --btn-fg: var(--c-accent-ink); --btn-bd: var(--c-accent); }
.btn--dark { --btn-bg: var(--c-accent-ink); --btn-fg: var(--c-text); --btn-bd: var(--c-accent-ink); }
.btn--ghost { --btn-bg: transparent; }
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover { --btn-bd: var(--c-text); }
  .btn--primary:hover { --btn-bg: #ffc95a; }
  .btn--dark:hover { --btn-bg: #24242a; }
}

/* ---------- promo strip: a cartridge-style label with a pixel-cut edge ---------- */
.promo { position: relative; z-index: 2; background: var(--c-accent); color: var(--c-accent-ink); }
.promo::after {
  /* pixel teeth along the bottom edge */
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 6px;
  background: linear-gradient(90deg, var(--c-accent) 50%, transparent 50%) 0 0 / 12px 6px repeat-x;
}
.promo__inner { display: flex; align-items: center; gap: 0.75rem; min-height: 52px; padding-block: 0.45rem; }
.promo__pad { width: 20px; height: 20px; flex: none; fill: var(--c-accent-ink); }
.promo__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.promo__label { font: 800 var(--fs-xs)/1.15 var(--f-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; }
.promo__info { font-size: var(--fs-small); line-height: 1.3; font-weight: 500; color: rgba(8, 8, 10, 0.78); }
.promo__cta {
  flex: none; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px;
  padding: 0 0.9rem 2px; border-radius: 10px;
  background: var(--c-accent-ink); color: var(--c-accent);
  font: 800 var(--fs-xs)/1 var(--f-display); font-stretch: 112%; text-transform: uppercase; text-decoration: none;
  box-shadow: inset 0 -4px 6px -2px rgba(253, 185, 52, 0.22), 0 6px 14px -6px rgba(8, 8, 10, 0.6);
  transition: box-shadow var(--t-fast) ease, transform var(--t-fast) ease;
}
.promo__cta:active { transform: translateY(2px); box-shadow: inset 0 -2px 4px -2px rgba(253, 185, 52, 0.22), 0 2px 6px -3px rgba(8, 8, 10, 0.6); }
.promo__cta .i-arrow { width: 14px; height: 14px; }
/* coupon stub: perforated edge with punched notches */
.promo__stub { position: relative; flex: none; align-self: stretch; display: flex; align-items: center; padding-left: 1rem; margin-block: -0.45rem; }
.promo__stub::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px;
  border-left: 2px dashed rgba(8, 8, 10, 0.4);
}
.promo__stub::after {
  /* notches punched out of the top and bottom edge */
  content: ""; position: absolute; left: -7px; top: -7px; bottom: -7px; width: 14px;
  background:
    radial-gradient(circle at 50% 0, var(--c-bg) 6.5px, transparent 7px) top / 14px 14px no-repeat,
    radial-gradient(circle at 50% 100%, var(--c-bg) 6.5px, transparent 7px) bottom / 14px 14px no-repeat;
}
.promo__scissors {
  position: absolute; left: -11px; top: 0; z-index: 2; width: 22px; height: 22px; opacity: 0;
  fill: var(--c-accent); stroke: var(--c-accent-ink); stroke-width: 2; stroke-linecap: round;
  pointer-events: none;
}
.promo__scissors path { fill: none; }
.promo__stub.is-cutting::before { border-left-style: solid; border-left-color: rgba(8, 8, 10, 0.15); }
.promo__cta { position: relative; overflow: hidden; }
.promo__cta::after {
  /* periodic light sweep across the key */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(253, 185, 52, 0.35) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: shine 4.5s var(--ease-out) 1.6s infinite;
}
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.promo.is-offscreen .promo__cta::after { animation-play-state: paused; }

@media (min-width: 640px) {
  .promo__text { flex-direction: row; align-items: baseline; gap: 0.75rem; }
  .promo__label { font-size: var(--fs-small); }
  .promo__info { font-size: 0.9375rem; }
}
@media (max-width: 479px) {
  .promo__extra { display: none; }
  .promo__label { font-stretch: 100%; white-space: normal; }
  .promo__inner { gap: 0.6rem; }
}

/* ---------- nav ---------- */
.nav { position: sticky; top: 0.6rem; z-index: 50; padding-inline: 0.6rem; margin-top: 1rem; }
.nav__bar {
  max-width: 62rem; margin-inline: auto;
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(242, 240, 234, 0.94); color: var(--c-accent-ink);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: var(--r-pill);
  padding: 0.35rem 0.4rem 0.35rem 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.nav__brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; margin-right: auto; min-height: 44px; }
.nav__brand img { width: 34px; height: auto; }
.nav__brand span { font: 900 1.05rem/1 var(--f-display); font-stretch: 112%; letter-spacing: 0.02em; }
.nav__links { display: none; }
.nav__cta { display: none; }
.nav__toggle {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--c-accent-ink); display: grid; place-items: center;
}
.nav__burger, .nav__burger::before, .nav__burger::after {
  display: block; width: 18px; height: 2px; background: var(--c-text); border-radius: 2px;
  transition: transform var(--t-med) var(--ease-out), opacity var(--t-fast) ease;
}
.nav__burger { position: relative; }
.nav__burger::before, .nav__burger::after { content: ""; position: absolute; left: 0; }
.nav__burger::before { transform: translateY(-6px); }
.nav__burger::after { transform: translateY(6px); }
[aria-expanded="true"] .nav__burger { background: transparent; }
[aria-expanded="true"] .nav__burger::before { transform: rotate(45deg); }
[aria-expanded="true"] .nav__burger::after { transform: rotate(-45deg); }

@media (min-width: 900px) {
  .nav__links { display: flex; gap: 0.15rem; }
  .nav__links a {
    font: 700 var(--fs-xs)/1 var(--f-body); letter-spacing: 0.08em; text-transform: uppercase;
    text-decoration: none; padding: 0.85rem 1rem; border-radius: var(--r-pill);
    transition: background-color var(--t-fast) ease, color var(--t-fast) ease;
  }
  .nav__links a.is-active { background: var(--c-accent); }
  .nav__cta { display: inline-flex; min-height: 44px; }
  .nav__toggle { display: none; }
}
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .nav__links a:not(.is-active):hover { background: rgba(8, 8, 10, 0.07); }
}

/* mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--c-bg);
  padding: calc(var(--menu-top, 8.5rem) + 1rem) var(--gutter) max(2rem, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu nav a .i-arrow { width: 22px; height: 22px; color: var(--c-accent); }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font: 800 clamp(1.5rem, 6.4vw, 2rem)/1.15 var(--f-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: 0.01em;
  text-decoration: none; min-height: 56px; padding-block: 0.85rem; border-bottom: 1px solid var(--c-line);
}
body.menu-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(3rem, 9vw, 6rem) clamp(3rem, 8vw, 6rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.hero__title {
  font-family: var(--f-display); font-weight: 900; font-stretch: 125%;
  font-size: var(--fs-xxl); line-height: 0.9; letter-spacing: -0.015em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__line > span { display: inline-block; }
.hero__line--accent { color: var(--c-accent); }
.hero__lead { font-size: var(--fs-lead); line-height: 1.6; color: rgba(250, 250, 248, 0.82); max-width: 34rem; margin-bottom: 2rem; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__actions .btn { flex: 1 1 12rem; }
.hero__art { position: relative; display: grid; place-items: center; order: -1; }
.hero__glow {
  position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 185, 52, 0.22), transparent 65%);
  filter: blur(10px);
}
.hero__mando { position: relative; display: flex; width: min(78vw, 22rem); }
.hero__half { width: auto; height: auto; }
.hero__half[data-half="left"] { width: 46.04%; }
.hero__half[data-half="right"] { width: 53.96%; }

@media (min-width: 900px) {
  .hero { padding-block: 5rem 6rem; }
  .hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3rem; }
  .hero__title { font-size: clamp(2.8rem, 4.9vw, 4.5rem); }
  .hero__art { order: 0; }
  .hero__mando { width: min(36vw, 30rem); }
  .hero__actions .btn { flex: 0 0 auto; }
}

/* ---------- marquee (allies + quotes) ---------- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { --gap: 1rem; display: flex; gap: var(--gap); width: max-content; animation: marquee var(--dur, 32s) linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(var(--shift, 50%) * -1)); } }

.allies { border-block: 1px solid var(--c-line); padding-block: 1.75rem; }
.allies__title { text-align: center; font: 600 1rem/1.3 var(--f-body); color: var(--c-muted); margin-bottom: 1.25rem; padding-inline: var(--gutter); }
.allies__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; padding-inline: var(--gutter); }
.ally {
  display: grid; place-items: center; height: 64px; min-width: 150px; padding-inline: 1.5rem;
  border: 1px dashed var(--c-line-strong); border-radius: var(--r-m);
  color: var(--c-muted); font-weight: 600; font-size: var(--fs-small);
}
.ally img { height: 36px; width: auto; opacity: 0.72; transition: opacity var(--t-fast) ease; }
.ally { border-style: solid; border-color: var(--c-line); }
@media (hover: hover) and (pointer: fine) { .ally:hover img { opacity: 1; } }

/* ---------- placeholders (reemplazar por fotos reales) ---------- */
.ph {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%;
  min-height: 8rem; border-radius: var(--r-m); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(253, 185, 52, 0.06) 0 12px, transparent 12px 24px),
    var(--c-surface);
  border: 1px dashed rgba(253, 185, 52, 0.35);
  color: var(--c-muted); font-size: var(--fs-small); font-weight: 600; text-align: center;
}
.ph::before {
  content: ""; position: absolute; width: 44px; height: 30px; top: calc(50% - 38px);
  background: url("/assets/mando-amarillo-480.webp") center/contain no-repeat; opacity: 0.45;
}
.ph span { margin-top: 2.25rem; }
.ph--portrait, .ph--wide, .ph--poster { height: auto; min-height: 0; }
.ph--portrait { aspect-ratio: 4 / 5; }
.ph--wide { aspect-ratio: 16 / 10; }
.ph--poster { aspect-ratio: 4 / 5; border-radius: var(--r-m) var(--r-m) 0 0; }

/* ---------- about ---------- */
.about__grid { display: grid; gap: 2.5rem; align-items: center; }
/* interactive controller */
.pad { position: relative; width: min(100%, 26rem); justify-self: center; padding: 1rem 0 0; perspective: 900px; }
.pad__glow {
  position: absolute; inset: 10% 0 25%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(253, 185, 52, 0.18), transparent);
}
.pad__body { position: relative; display: flex; aspect-ratio: 960 / 640; transform-style: preserve-3d; }
.pad__half[data-pad-half="left"] { width: 46.04%; height: auto; }
.pad__half[data-pad-half="right"] { width: 53.96%; height: auto; }
.pad__key {
  position: absolute; padding: 0; border: 0; background: none; cursor: pointer;
  width: 6.04%; height: 9.06%; border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}
.pad__key::before { content: ""; position: absolute; inset: -10px; } /* bigger touch area */
.pad__key--btn { background: var(--c-bg); transition: background-color var(--t-med) ease, box-shadow var(--t-med) ease; }
.pad__key--dpad { border-radius: 0; }
.pad__key--dpad svg { display: block; width: 100%; height: 100%; fill: var(--c-bg); transition: fill var(--t-med) ease, filter var(--t-med) ease; }
.pad__key.is-lit { background: var(--c-text); box-shadow: 0 0 0 3px rgba(8, 8, 10, 0.9), 0 0 22px 6px rgba(255, 236, 190, 0.55); }
.pad__key--dpad.is-lit { background: none; box-shadow: none; }
.pad__key--dpad.is-lit svg { fill: var(--c-text); filter: drop-shadow(0 0 10px rgba(255, 236, 190, 0.75)); }
.pad__hint { margin-top: 1rem; text-align: center; color: var(--c-muted); font-size: var(--fs-small); }

.facts { display: grid; margin-top: 2.5rem; border-top: 1px solid var(--c-line); }
.facts li { border-bottom: 1px solid var(--c-line); }
.fact {
  display: flex; align-items: center; gap: 0.85rem; width: 100%; min-height: 56px; padding: 0.9rem 0.75rem;
  border: 0; border-radius: var(--r-s); background: transparent; color: rgba(250, 250, 248, 0.78);
  font: 600 1rem/1.35 var(--f-body); text-align: left; cursor: pointer;
  transition: background-color var(--t-med) ease, color var(--t-med) ease;
}
.fact__icon { width: 22px; height: 22px; flex: none; fill: var(--c-muted); transition: fill var(--t-med) ease, transform var(--t-med) var(--ease-out); }
.fact__icon .off { fill: none; stroke: var(--c-muted); stroke-width: 1.5; }
.fact[aria-pressed="true"] { background: rgba(253, 185, 52, 0.1); color: var(--c-text); }
.fact[aria-pressed="true"] .fact__icon { fill: var(--c-accent); transform: scale(1.12); }
.fact[aria-pressed="true"] .fact__icon .off { fill: none; stroke: var(--c-accent); }
@media (hover: hover) and (pointer: fine) { .fact:hover { color: var(--c-text); } }
@media (min-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3.5rem; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--c-line); }
  .facts li { border-bottom: 0; padding: 0.4rem; }
  .facts li + li { border-left: 1px solid var(--c-line); }
  .fact { height: 100%; align-items: flex-start; }
}

/* ---------- team ---------- */
.team { padding-top: 0; }
.team__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 60rem; }
.person__photo { aspect-ratio: 4 / 5; border-radius: var(--r-m); overflow: hidden; background: var(--c-surface); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out), filter 600ms var(--ease-out); filter: saturate(0.9); }
@media (hover: hover) and (pointer: fine) { .person:hover .person__photo img { transform: scale(1.05); filter: saturate(1.05); } }
.person__name { font: 800 var(--fs-card)/1.2 var(--f-display); margin-top: 0.9rem; text-wrap: balance; }
.person__role { font: 600 var(--fs-small)/1.3 var(--f-body); color: var(--c-accent); margin-top: 0.3rem; }
@media (min-width: 640px) { .team__grid { gap: 1.75rem; } }

/* ---------- kinds of events ---------- */
.kinds { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.kind__photo { aspect-ratio: 16 / 10; border-radius: var(--r-m); overflow: hidden; background: var(--c-surface); }
.kind__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .kind:hover .kind__photo img { transform: scale(1.04); } }
.kind__tag { font: 700 var(--fs-small)/1.2 var(--f-body); color: var(--c-accent); margin-top: 1rem; }
.kind__title { font: 800 var(--fs-l)/1.2 var(--f-display); margin-top: 0.4rem; text-wrap: balance; }
@media (min-width: 640px) { .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.5rem; } }

/* ---------- past events (horizontal rail on mobile) ---------- */
.past__rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 20rem); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 0.5rem var(--gutter) 1.5rem; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--c-accent) transparent;
}
.event {
  scroll-snap-align: start;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-m);
  display: flex; flex-direction: column;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.event .ph { border: 0; border-bottom: 1px dashed rgba(253, 185, 52, 0.35); }
.event__poster { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-m) var(--r-m) 0 0; }
.event__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .event:hover .event__poster img { transform: scale(1.04); } }
.badge:not(.badge--own) { background: transparent; color: var(--c-accent); box-shadow: inset 0 0 0 1px rgba(253, 185, 52, 0.5); }
.event__body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.event__date { font: 700 var(--fs-small)/1.2 var(--f-body); color: var(--c-accent); font-variant-numeric: tabular-nums; }
.event__title { font: 800 var(--fs-card)/1.2 var(--f-display); text-wrap: balance; }
.event__text { color: rgba(250, 250, 248, 0.78); font-size: 0.9375rem; line-height: 1.55; text-wrap: pretty; }
.event__meta { color: var(--c-muted); font-size: var(--fs-xs); line-height: 1.4; margin-top: auto; padding-top: 0.25rem; }
.badge {
  align-self: flex-start; margin-bottom: 0.25rem;
  background: var(--c-accent); color: var(--c-accent-ink);
  font-weight: 700; font-size: var(--fs-xs); line-height: 1.2; padding: 0.35rem 0.75rem; border-radius: var(--r-pill);
}
@media (min-width: 1024px) {
  .past__rail {
    grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible;
    max-width: var(--max); margin-inline: auto; padding-bottom: 0;
  }
}

/* ---------- gallery ---------- */
.chips { display: flex; gap: 0.5rem; overflow-x: auto; margin-bottom: 1.5rem; padding-bottom: 0.25rem; scrollbar-width: none; }
.chip {
  flex: none; min-height: 44px; padding: 0 1.1rem; border-radius: var(--r-pill);
  border: 1px solid var(--c-line-strong); background: transparent; cursor: pointer;
  font-weight: 600; font-size: var(--fs-small);
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.chip.is-active { background: var(--c-accent); color: var(--c-accent-ink); border-color: var(--c-accent); }
@media (hover: hover) and (pointer: fine) { .chip:not(.is-active):hover { border-color: var(--c-text); } }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.gallery__item { aspect-ratio: 4 / 5; }
.tile img { transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tile:hover img { transform: scale(1.04); } }
.gallery__more { margin-top: 1.5rem; max-width: 22rem; }
.gallery__more .link-row { border-top: 1px solid var(--c-line); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item[hidden] { display: none; }
.tile { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--r-m); overflow: hidden; position: relative; }
.tile .ph, .tile img, .tile video { width: 100%; height: 100%; object-fit: cover; }
.tile--video::after {
  content: ""; position: absolute; right: 0.75rem; bottom: 0.75rem; width: 36px; height: 36px; border-radius: 50%;
  background: var(--c-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%2308080a'/%3E%3C/svg%3E") center/16px no-repeat;
}
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }

/* full-screen photo viewer: the photo takes all the room it can; tap to zoom in */
.lightbox {
  position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; border-radius: 0;
  background: rgba(8, 8, 10, 0.97); color: var(--c-text); overflow: hidden;
}
.lightbox::backdrop { background: transparent; }
.lightbox__stage {
  width: 100%; height: 100%; display: grid; place-items: center;
  padding: max(4rem, env(safe-area-inset-top)) 0.75rem max(2.75rem, env(safe-area-inset-bottom));
  overflow: hidden; overscroll-behavior: contain;
}
.lightbox__stage > img, .lightbox__stage > video {
  display: block; width: auto; height: auto;
  max-width: calc(100vw - 1.5rem); max-height: calc(100dvh - 6.75rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  border-radius: 12px; cursor: zoom-in; user-select: none; -webkit-user-drag: none;
}
.lightbox.is-zoomed .lightbox__stage { display: block; padding: 0; overflow: auto; cursor: zoom-out; }
.lightbox.is-zoomed .lightbox__stage > img { max-width: none; max-height: none; border-radius: 0; cursor: zoom-out; margin: auto; }
.lightbox__stage > .ph { width: min(92vw, 40rem); aspect-ratio: 3 / 2; }
.lightbox__stage .ph { border-radius: 0; font-size: 1rem; }
.lightbox__close {
  position: fixed; top: max(0.9rem, env(safe-area-inset-top)); right: 0.9rem; z-index: 3;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--c-accent); color: var(--c-accent-ink); display: grid; place-items: center;
}
.lightbox__hint {
  position: fixed; left: 0; right: 0; bottom: max(0.8rem, env(safe-area-inset-bottom)); z-index: 3;
  text-align: center; font-size: var(--fs-small); color: rgba(250, 250, 248, 0.7); pointer-events: none;
}
.lightbox.is-zoomed .lightbox__hint { opacity: 0; }

/* ---------- next event / registration (yellow block) ---------- */
.next { background: var(--c-accent); color: var(--c-accent-ink); padding-block: var(--section); position: relative; overflow: hidden; }
.next::after {
  content: ""; position: absolute; right: -6rem; bottom: -4rem; width: 26rem; aspect-ratio: 3 / 2;
  background: url("/assets/mando-negro-96.webp") center/contain no-repeat; opacity: 0.07; pointer-events: none;
  transform: rotate(-12deg);
}
.next__grid { display: grid; gap: 2.5rem; position: relative; z-index: 1; }
.next__lead { font-size: var(--fs-lead); max-width: 30rem; font-weight: 500; }
.next__info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2rem; border-top: 1px solid var(--c-line-dark); }
.next__info div { padding: 1rem 0; border-bottom: 1px solid var(--c-line-dark); }
.next__info dt { font: 600 var(--fs-small)/1.2 var(--f-body); color: rgba(8, 8, 10, 0.72); }
.next__info dd { font: 800 var(--fs-md)/1.25 var(--f-display); margin-top: 0.35rem; }
@media (min-width: 900px) { .next__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; align-items: center; } }

/* ---------- forms ---------- */
.form { display: grid; gap: 1rem; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-l); padding: clamp(1.25rem, 4vw, 2rem); }
.form--card { background: var(--c-nav); border-color: transparent; color: var(--c-accent-ink); box-shadow: 0 30px 60px rgba(8, 8, 10, 0.25); }
.form__title { font: 850 1.5rem/1.1 var(--f-display); font-stretch: 115%; text-transform: uppercase; margin-bottom: 0.25rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: var(--fs-small); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.75rem 0.9rem;
  font-size: 16px; /* evita zoom en iOS */
  background: var(--c-bg); border: 1px solid var(--c-line-strong); border-radius: var(--r-s);
  transition: border-color var(--t-fast) ease;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%239a9894' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 18px; padding-right: 2.5rem; }
.form--card .field input, .form--card .field select { background-color: #fff; border-color: var(--c-line-dark); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-accent); outline: none; box-shadow: 0 0 0 3px rgba(253, 185, 52, 0.3); }
.form--card .field input:focus, .form--card .field select:focus { border-color: var(--c-accent-ink); box-shadow: 0 0 0 3px rgba(8, 8, 10, 0.15); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ff6b5b; }
.form__note { font-size: var(--fs-xs); line-height: 1.45; color: var(--c-muted); text-align: center; }
.form--card .form__note { color: rgba(8, 8, 10, 0.65); }
.form__note.is-alert { color: #ff8a7a; font-weight: 600; }
.form--card .form__note.is-alert { color: #a3200f; }

/* ---------- volunteer ---------- */
.volunteer__grid { display: grid; gap: 2.5rem; }
.roles { display: grid; gap: 0.75rem; margin-top: 2rem; }
.roles li {
  display: grid; gap: 0.25rem; padding: 1.1rem 1.25rem;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-m);
  grid-template-columns: auto 1fr; column-gap: 0.75rem; align-items: start;
}
.roles__icon { grid-row: span 2; width: 18px; height: 18px; margin-top: 0.15rem; fill: var(--c-accent); }
.roles strong { font: 800 var(--fs-md)/1.25 var(--f-display); }
.roles span { color: rgba(250, 250, 248, 0.76); font-size: 0.9375rem; line-height: 1.5; }
.volunteer__gain { margin-top: 1.5rem; color: var(--c-muted); max-width: 36rem; }
@media (min-width: 640px) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .volunteer__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 3rem; align-items: start; } }

/* ---------- quotes ---------- */
.voices { padding-bottom: calc(var(--section) * 0.8); }
.quote {
  flex: none; width: min(84vw, 25rem); display: flex; flex-direction: column; gap: 0.85rem;
  padding: 1.35rem 1.4rem 1.25rem; border-radius: var(--r-l);
  background: var(--c-surface); border: 1px solid var(--c-line);
}
.quote__mark { display: block; height: 1.6rem; font: 900 3.6rem/1 var(--f-display); color: var(--c-accent); margin-left: -0.08em; }
.quote blockquote { font: 600 var(--fs-md)/1.5 var(--f-body); text-wrap: pretty; }
.quote__who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.5rem; margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--c-line); }
.quote__who strong { font: 800 var(--fs-small)/1.3 var(--f-display); color: var(--c-accent); }
.quote__who span { font-size: var(--fs-small); color: var(--c-muted); }
.marquee--quotes .marquee__track { --gap: 1.25rem; align-items: stretch; padding-block: 0.25rem; }

/* ---------- faq ---------- */
.faq__grid { display: grid; gap: 1.5rem; }
.faq__list { border-top: 1px solid var(--c-line); }
.qa { border-bottom: 1px solid var(--c-line); }
.qa summary {
  list-style: none; cursor: pointer; min-height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.1rem; font: 700 var(--fs-md)/1.35 var(--f-body); text-wrap: balance;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__icon { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1px solid var(--c-line-strong); transition: transform var(--t-med) var(--ease-out), background-color var(--t-fast) ease; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; transform: translate(-50%, -50%); }
.qa__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa__icon { transform: rotate(45deg); background: var(--c-accent); color: var(--c-accent-ink); border-color: var(--c-accent); }
.qa__body { padding-bottom: 1.25rem; color: rgba(250, 250, 248, 0.78); max-width: 40rem; }
@media (hover: hover) and (pointer: fine) { .qa summary:hover .qa__icon { border-color: var(--c-accent); } }
@media (min-width: 900px) { .faq__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 3rem; } }

/* ---------- contact ---------- */
.contact { border-top: 1px solid var(--c-line); }
.contact__grid { display: grid; gap: 2.5rem; }
.links { margin-top: 2rem; border-top: 1px solid var(--c-line); }
.link-row {
  display: flex; justify-content: space-between; align-items: center; min-height: 60px;
  border-bottom: 1px solid var(--c-line); text-decoration: none; font-weight: 700; font-size: var(--fs-md);
}
.link-row .i-arrow { color: var(--c-accent); }
@media (min-width: 900px) { .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--c-line); padding-block: 3.5rem max(1.5rem, env(safe-area-inset-bottom)); }
.footer__grid { display: grid; gap: 2rem; }
.footer__brand > img { width: 160px; }
.footer__brand p { color: var(--c-muted); margin-top: 0.75rem; }
.footer__nav, .footer__social { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.footer__nav a, .footer__social a { text-decoration: none; color: rgba(250, 250, 248, 0.8); min-height: 44px; display: inline-flex; align-items: center; }
.footer__social a { color: var(--c-accent); font-weight: 700; }
.footer__legal {
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--c-line); color: var(--c-muted); font-size: var(--fs-small);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}

/* Bellmachet seal */
.seal {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px;
  padding: 0.45rem 1rem 0.45rem 0.55rem; border: 1px solid var(--c-line-strong); border-radius: var(--r-pill);
  color: rgba(250, 250, 248, 0.78); text-decoration: none; font-size: var(--fs-small);
  transition: border-color var(--t-fast) ease, color var(--t-fast) ease, background-color var(--t-fast) ease;
}
.seal__mark { width: 22px; height: 22px; flex: none; transition: transform var(--t-med) var(--ease-out); }
.seal strong { color: var(--c-text); font-weight: 700; }
@media (hover: hover) and (pointer: fine) {
  .seal:hover { border-color: rgba(250, 250, 248, 0.45); background: rgba(250, 250, 248, 0.04); color: var(--c-text); }
  .seal:hover .seal__mark { transform: rotate(-12deg) scale(1.08); }
}
@media (hover: hover) and (pointer: fine) { .footer__nav a:hover { color: var(--c-accent); } }
@media (min-width: 900px) { .footer__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: start; } }

@media (min-width: 900px) {
  .faq .title { font-size: clamp(2rem, 3.2vw, 3rem); }
  .volunteer .title, .contact .title, .next .title, .about .title { font-size: var(--fs-xl-col); }
}

/* ---------- motion initial states (only with JS + Motion) ---------- */
.js [data-reveal], .js [data-stagger] > * { opacity: 0; transform: translateY(16px); }
.js [data-title] { clip-path: inset(0 0 100% 0); }
.js [data-promo] { clip-path: inset(0 100% -10px 0); }
.js [data-hero-line] { transform: translateY(105%); }
.js [data-half] { opacity: 0; }
.js [data-pad-half], .js [data-presenter], .js .title-row__mascot, .js .footer__mascot, .js [data-hero-mascot] { opacity: 0; }
.js .peek [data-mascot] { transform: translateY(100%); }
.no-motion [data-reveal], .no-motion [data-stagger] > *, .no-motion [data-hero-line], .no-motion [data-half] { opacity: 1 !important; transform: none !important; }
.no-motion [data-title], .no-motion [data-promo] { clip-path: none !important; }
.no-motion [data-pad-half], .no-motion [data-presenter], .no-motion .title-row__mascot, .no-motion .footer__mascot, .no-motion [data-hero-mascot] { opacity: 1 !important; }
.no-motion .peek [data-mascot] { transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-stagger] > *, .js [data-hero-line] { transform: none; }
  .js [data-title], .js [data-promo] { clip-path: none; opacity: 0; }
  .js [data-pad-half], .js [data-presenter], .js .title-row__mascot, .js .footer__mascot, .js [data-hero-mascot] { opacity: 1; }
  .js .peek [data-mascot] { transform: none; }
  .marquee__track, .promo__cta::after { animation: none; }
  .marquee { overflow-x: auto; }
}

/* ================= Mascot: poses from the official pose sheet =================
   --mh is the height of a standing pose; every other pose keeps the same scale via --r. */
.mascot { --mh: 140px; position: relative; display: block; width: max-content; pointer-events: none; }
.mascot__img { display: block; height: calc(var(--mh) * var(--r, 1)); width: auto; transform-origin: 50% 100%; }
.mascot--flip { transform: scaleX(-1); }
.mascot.is-on:not(.is-running) .mascot__img { animation: m-breathe 3.4s ease-in-out infinite; }
.mascot.is-running .mascot__img { animation: m-runbob 0.24s ease-in-out infinite; }
@keyframes m-breathe { 50% { transform: scaleY(1.018); } }
@keyframes m-runbob { 50% { transform: translateY(-4%); } }

/* speech bubble */
.bubble {
  position: absolute; z-index: 3; width: max-content; max-width: min(15rem, 70vw);
  padding: 0.65rem 0.9rem; border-radius: 16px;
  background: var(--c-text); color: var(--c-accent-ink);
  font: 700 0.9375rem/1.35 var(--f-body); text-wrap: balance; pointer-events: none;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.55);
}
.bubble::after {
  content: ""; position: absolute; width: 14px; height: 14px; background: inherit; border-radius: 2px;
  bottom: -6px; right: var(--tail, 26px); transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .mascot .mascot__img { animation: none !important; }
}

/* ---------- mascot placements ---------- */
/* hero: beside the controller, waving */
.hero__mascot { position: absolute; right: -4%; bottom: -8%; width: 34%; z-index: 2; }
.hero__bubble { right: 62%; top: -6%; --tail: 10px; }
@media (min-width: 900px) { .hero__mascot { right: -10%; width: 32%; } }

/* about: presenter next to the controller */
.pad { padding-top: 5.5rem; }
.pad__mascot { position: absolute; right: -2%; bottom: 2.4rem; z-index: 2; }
.pad__mascot { --mh: clamp(118px, 33vw, 176px); width: calc(var(--mh) * 0.72); display: flex; justify-content: center; align-items: flex-end; }
.pad__mascot .mascot { --mh: inherit; transform-origin: 50% 100%; }
.pad__bubble { top: 0.25rem; right: 0; max-width: min(15rem, 72%); --tail: 34px; }
@media (min-width: 900px) { .pad__mascot { right: -12%; } .pad__bubble { right: -8%; } }

/* title rows: heading + mascot */
.title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.75rem; margin-bottom: clamp(1.25rem, 3vw, 2.25rem); }
.title-row .title { margin-bottom: 0; min-width: 0; }
.title-row__mascot { position: relative; flex: none; }
.title-row__mascot .mascot { --mh: clamp(112px, 28vw, 168px); }
.title-row__bubble { right: 70%; bottom: 92%; font-size: var(--fs-small); --tail: 12px; }

/* peeking from behind a line */
.form--card { position: relative; }
.peek--card { position: absolute; right: 1.25rem; bottom: 100%; height: 66px; overflow: hidden; }
.peek--card .mascot { --mh: 120px; }


/* footer: saying goodbye */
.footer__brand { position: relative; }
.footer__mascot { position: relative; width: max-content; margin-top: 4.25rem; }
.footer__mascot .mascot { --mh: 130px; }
.footer__bubble { left: 92%; bottom: 72%; --tail: auto; font-size: var(--fs-small); }
.footer__bubble::after { left: 14px; right: auto; }
/* stacked rows: mascot above the heading, bubble beside it */
.title-row--stack { flex-direction: column-reverse; align-items: flex-start; gap: 0.5rem; }
.title-row--stack .title-row__mascot .mascot { --mh: clamp(108px, 26vw, 150px); }
.title-row--stack .title-row__bubble { left: 100%; right: auto; bottom: 52%; margin-left: 0.6rem; }
.title-row--stack .title-row__bubble::after { left: -5px; right: auto; bottom: 14px; }

.footer__brand .footer__bubble { color: var(--c-accent-ink); margin-top: 0; }

/* allies: a walkway along the strip's bottom line */
.allies { position: relative; padding-bottom: calc(clamp(120px, 30vw, 160px) * 0.68 + 1.75rem); }
.walkway { position: absolute; left: 0; right: 0; bottom: 0; height: 0; pointer-events: none; }
.walker { position: absolute; left: 0; bottom: 0; will-change: transform; }
.walker .mascot { --mh: clamp(120px, 30vw, 160px); width: calc(var(--mh) * 1.06); display: flex; justify-content: center; }

/* allies: round badges sit a bit larger than wordmarks */
.ally--badge { min-width: 0; padding-inline: 0.75rem; }
.ally--badge img { height: 46px; opacity: 0.9; }
@media (max-width: 639px) {
  .allies__list { gap: 0.6rem; }
  .ally { min-width: 0; height: 56px; padding-inline: 1rem; }
  .ally img { height: 28px; }
  .ally--badge img { height: 40px; }
}
/* logos whose own colors need a light ground (kept exactly as the brand sends them) */
.ally--light { background: var(--c-nav); border-color: transparent; min-width: 0; padding-inline: 0.9rem; }
.ally--light img { opacity: 1; height: 54px; }
@media (max-width: 639px) { .ally--light img { height: 46px; } }
/* allies carousel */
.marquee--allies .marquee__track { --gap: 0.85rem; padding-block: 0.25rem; }
/* allies never stop */
.marquee--allies:hover .marquee__track, .marquee--allies:focus-within .marquee__track { animation-play-state: running; }
.marquee--allies .ally { flex: none; }

/* allies: one shared dark card for every logo */
.marquee--allies .ally { background: var(--c-surface); border: 1px solid var(--c-line); min-width: 0; height: 64px; padding-inline: 1.25rem; }
.marquee--allies .ally img { opacity: 1; height: 30px; }
.marquee--allies .ally--light img, .marquee--allies .ally--badge img { height: 50px; }
@media (max-width: 639px) {
  .marquee--allies .ally { height: 56px; padding-inline: 1rem; }
  .marquee--allies .ally img { height: 24px; }
  .marquee--allies .ally--light img, .marquee--allies .ally--badge img { height: 44px; }
}
.footer__bubble { max-width: min(14rem, 52vw); }
/* gallery: the mascot lies on the top edge of the photo grid, looking over the photos */
.gallery-stage { position: relative; }
.gallery-stage__mascot { position: absolute; right: 3%; top: 0; z-index: 2; transform: translateY(calc(-100% + 8px)); }
.gallery-stage__mascot .mascot { --mh: clamp(112px, 26vw, 150px); }
#galeria .chips { margin-bottom: calc(clamp(112px, 26vw, 150px) * 0.66 + 0.5rem); }

/* ---------- sponsors ---------- */
.sponsors { border-top: 1px solid var(--c-line); }
.sponsors__lead { margin-bottom: 1.75rem; }
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.way {
  display: grid; gap: 0.35rem; padding: 1.1rem 1.15rem; border-radius: var(--r-m);
  background: var(--c-accent); color: var(--c-accent-ink);
}
.way strong { font: 850 var(--fs-md)/1.15 var(--f-display); font-stretch: 112%; text-transform: uppercase; }
.way span { font-size: var(--fs-small); line-height: 1.45; color: rgba(8, 8, 10, 0.78); }
.sponsors__subtitle { font: 800 var(--fs-l)/1.2 var(--f-display); margin-bottom: 1rem; }
.perks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.perk { padding: 1.15rem 1.25rem; border-radius: var(--r-m); background: var(--c-surface); border: 1px solid var(--c-line); }
.perk__title { font: 800 var(--fs-md)/1.25 var(--f-display); margin-bottom: 0.35rem; }
.perk__text { font-size: 0.9375rem; line-height: 1.5; color: rgba(250, 250, 248, 0.76); }
.sponsors__cta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.sponsors__bubble { min-width: 0; }
.sponsors__host { position: relative; display: flex; align-items: flex-end; gap: 0.75rem; }
.sponsors__host .mascot { --mh: clamp(120px, 30vw, 170px); order: -1; }
.sponsors__bubble { position: relative; max-width: 17rem; margin-bottom: 4.5rem; --tail: auto; }
.sponsors__bubble::after { left: -5px; right: auto; bottom: 18px; }
@media (min-width: 900px) {
  .sponsors__cta { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: end; gap: 3rem; }
  .sponsors__cta .form { grid-column: 1; grid-row: 1; }
  .sponsors__host { grid-column: 2; grid-row: 1; flex-direction: column; align-items: flex-start; padding-bottom: 1rem; }
  .sponsors__host .mascot { --mh: clamp(190px, 18vw, 250px); order: 0; }
  .sponsors__bubble { margin-bottom: 0; max-width: 19rem; }
  .sponsors__bubble::after { left: 34px; bottom: -6px; }
}
.form__row { display: grid; gap: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: 0.6; cursor: progress; }
@media (min-width: 640px) {
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .ways { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .perks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* run cycle: three stacked frames take turns, so the legs never freeze */
.mascot__run { display: none; position: relative; }
.mascot.is-running .mascot__img { display: none; }
.mascot.is-running .mascot__run { display: grid; place-items: end center; }
.mascot__frame { grid-area: 1 / 1; display: block; height: calc(var(--mh) * var(--r, 1)); width: auto; opacity: 0; }
.mascot.is-running .mascot__frame--1 { animation: m-f1 0.33s steps(1, end) infinite; }
.mascot.is-running .mascot__frame--2 { animation: m-f2 0.33s steps(1, end) infinite; }
.mascot.is-running .mascot__frame--3 { animation: m-f3 0.33s steps(1, end) infinite; }
.mascot.is-running .mascot__run { animation: m-runbob 0.165s ease-in-out infinite; }
@keyframes m-f1 { 0% { opacity: 1; } 33.33% { opacity: 0; } }
@keyframes m-f2 { 0% { opacity: 0; } 33.33% { opacity: 1; } 66.66% { opacity: 0; } }
@keyframes m-f3 { 0% { opacity: 0; } 66.66% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .mascot.is-running .mascot__frame--1 { animation: none; opacity: 1; }
  .mascot.is-running .mascot__run { animation: none; }
}



/* ---------- XP bar: fills as you scroll ---------- */
.xpbar { position: fixed; left: 0; right: 0; top: 0; height: 4px; z-index: 70; pointer-events: none; }
.xpbar__fill { display: block; height: 100%; background: linear-gradient(90deg, var(--c-accent), #ffe08a); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px rgba(253, 185, 52, 0.55); }

/* ---------- 3D tilt for cards (desktop pointers only) ---------- */
@media (hover: hover) and (pointer: fine) {
  .event, .kind, .perk, .way { transform-style: preserve-3d; will-change: transform; }
}

/* initial states for the new reveals (only when JS + Motion run) */
.js .event__poster img, .js .tile img { clip-path: inset(0 0 100% 0); }
.no-motion .event__poster img, .no-motion .tile img { clip-path: none !important; }
@media (prefers-reduced-motion: reduce) { .js .event__poster img, .js .tile img { clip-path: none; } }

/* ---------- join the community (yellow block) ---------- */
.join { display: grid; gap: 0.6rem; margin-top: 1.5rem; }
.join li { display: grid; gap: 0.2rem; padding: 0.95rem 1.1rem; border-radius: var(--r-m); background: rgba(8, 8, 10, 0.08); }
.join strong { font: 800 var(--fs-md)/1.2 var(--f-display); }
.join span { font-size: 0.9375rem; line-height: 1.45; color: rgba(8, 8, 10, 0.78); }
.next__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.75rem; }
.next__cta { min-height: 52px; padding-inline: 1.6rem; }
.next__link { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; font-weight: 700; color: var(--c-accent-ink); text-underline-offset: 0.2em; }
.next__art { position: relative; justify-self: center; display: flex; flex-direction: column; align-items: center; }
.next__hero { width: min(70vw, 24rem); height: auto; filter: drop-shadow(0 20px 26px rgba(8, 8, 10, 0.25)); transform-origin: 50% 100%; }
.next.is-on .next__hero { animation: join-float 4.5s ease-in-out infinite; }
@keyframes join-float { 50% { transform: translateY(-10px) rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .next.is-on .next__hero { animation: none; } }
.next__bubble { position: relative; margin-bottom: 0.75rem; font-size: 1.05rem; --tail: 50%; }
.next__bubble::after { right: calc(50% - 7px); }
@media (min-width: 640px) { .join { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .join { grid-template-columns: minmax(0, 1fr); } }

/* video testimonial card */
.quote--video { gap: 0.75rem; }
.quote__video {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0;
  border-radius: var(--r-m); overflow: hidden; background: #000; cursor: pointer;
}
.quote__video video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; opacity: 0.85; }
.quote__play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; background: var(--c-accent); color: var(--c-accent-ink);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.6); transition: transform var(--t-med) var(--ease-out);
}
.quote__play svg { width: 26px; height: 26px; fill: currentColor; margin-left: 3px; }
@media (hover: hover) and (pointer: fine) { .quote__video:hover .quote__play { transform: scale(1.1); } }
.lightbox__stage > video { max-height: calc(100dvh - 6.75rem); max-width: calc(100vw - 1.5rem); border-radius: 12px; background: #000; }
