/* ANIMATE! — see DESIGN.md for the token rationale */
:root {
  --ink: #1E2340;
  --ink-soft: #4A4F6A;
  --paper: #FFFFFF;
  --sky: #E8F5FC;
  --line: #D5DCE8;

  /* logo letters */
  --blue: #009FE3;
  --magenta: #E6007E;
  --magenta-dark: #B80065;
  --green: #00A33C;
  --orange: #F7A600;
  --yellow: #FFE500;

  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px;
  --section: clamp(64px, 10vw, 128px);
  --gutter: clamp(16px, 4vw, 40px);
  --radius-sm: 6px;
  --radius-lg: 20px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  --aud: var(--magenta);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: var(--s2); top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: var(--s1) var(--s2); border-radius: var(--radius-sm);
}
.skip:focus { top: var(--s2); }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(2.5rem, 4.6vw, 4.5rem);
  line-height: .98;
  letter-spacing: -0.02em;
}
.display .line { display: block; }
.h2 {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 850;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 20ch;
}
h3 {
  font-family: var(--display);
  font-stretch: 100%;
  font-weight: 750;
  font-size: 1.3rem;
  line-height: 1.2;
}
.lead { font-size: 1.1875rem; color: var(--ink-soft); max-width: 58ch; }

.text-link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--magenta);
}
.text-link:hover { text-decoration-color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 2px solid transparent; border-radius: 999px;
  font-family: var(--display); font-stretch: 105%; font-weight: 750; font-size: 1.0625rem;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, transform .15s var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--magenta); color: #fff; }
.btn-primary:hover { background: var(--magenta-dark); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 1rem; }
.wa { width: 22px; height: 22px; fill: currentColor; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 72px; }
.brand img { width: 165px; }
.site-nav { display: flex; align-items: center; gap: 12px; }
/* nav links sit together in one pill, like a segmented control */
.site-nav ul { display: flex; gap: 2px; padding: 4px; background: var(--sky); border-radius: 999px; }
.site-nav ul a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  font-family: var(--display); font-weight: 650; font-size: .9375rem;
  text-decoration: none; transition: background-color .2s;
}
.site-nav ul a:hover { background: #fff; }
.menu-toggle { display: none; }

@media (max-width: 1080px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 0 14px;
    background: none; border: 2px solid var(--ink); border-radius: 999px;
    font-family: var(--display); font-weight: 700; cursor: pointer;
  }
  .menu-icon { display: grid; gap: 5px; width: 18px; }
  .menu-icon span { display: block; height: 2px; background: currentColor; transition: transform .2s var(--ease-out); }
  .menu-toggle[aria-expanded="true"] .menu-icon span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .site-nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: var(--s3);
    padding: var(--s3) var(--gutter) var(--s4);
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(30, 35, 64, .25);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .25s var(--ease-out), visibility 0s .25s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .25s var(--ease-out); }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0; background: none; border-radius: 0; }
  .site-nav ul a { display: flex; min-height: 56px; padding: 0; border-radius: 0; font-size: 1.375rem; border-bottom: 1px solid var(--line); background: none; }
  .site-nav .btn { width: 100%; min-height: 52px; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(32px, 6vw, 80px) var(--section); }
.hero[data-audience="cumple"]  { --aud: var(--magenta); --pos: 12% center; }
.hero[data-audience="empresa"] { --aud: var(--blue); --pos: 45% center; }
.hero[data-audience="colegio"] { --aud: var(--green); --pos: 40% center; }
.hero[data-audience="boda"]    { --aud: var(--orange); --pos: 35% center; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: var(--s4); }

.chooser { border: 0; margin: 0; padding: 0; min-width: 0; }
.chooser legend {
  padding: 0; margin-bottom: 12px;
  font-family: var(--display); font-weight: 700; font-size: 1.1875rem;
}
.chips, .radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip, .pill { position: relative; cursor: pointer; }
.chip input, .pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip > span, .pill > span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px;
  border: 2px solid var(--ink); border-radius: 999px;
  font-family: var(--display); font-weight: 650; font-size: 1rem; line-height: 1.15;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover > span, .pill:hover > span { background: var(--sky); }
.chip input:checked + span, .pill input:checked + span { background: var(--c); border-color: var(--c); color: var(--on); }
.chip input:focus-visible + span, .pill input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }

.hero-pitch { font-size: 1.1875rem; max-width: 46ch; min-height: 3.2em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }

.hero-figure { position: relative; }
.hero-frame {
  position: relative;
  aspect-ratio: 4 / 4;
  border-radius: var(--radius-lg);
  /* the audience color as a solid block behind the photo */
  box-shadow: 18px 18px 0 0 var(--aud);
  transition: box-shadow .35s var(--ease-out);
}
.hero-img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); border-radius: var(--radius-lg);
  transition: opacity .3s;
}
.hero-img.is-swapping { opacity: 0; }

/* the one orchestrated load moment */
@media (prefers-reduced-motion: no-preference) {
  .js .display .line { opacity: 0; transform: translateY(.35em); animation: rise .7s var(--ease-out) forwards; }
  .js .display .line:nth-child(2) { animation-delay: .08s; }
  .js .display .line:nth-child(3) { animation-delay: .16s; }
  .js .display .line:nth-child(4) { animation-delay: .24s; }
  .js .hero-frame { animation: frame-in .9s var(--ease-out) .2s both; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes frame-in {
    from { box-shadow: 0 0 0 0 var(--aud); clip-path: inset(8% 8% 8% 8% round var(--radius-lg)); }
    to   { box-shadow: 18px 18px 0 0 var(--aud); clip-path: inset(-30px -30px -30px -30px round var(--radius-lg)); }
  }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; margin-right: 14px; }
  .hero-frame { aspect-ratio: 16 / 10; box-shadow: 12px 12px 0 0 var(--aud); }
  @keyframes frame-in {
    from { box-shadow: 0 0 0 0 var(--aud); clip-path: inset(8% 8% 8% 8% round var(--radius-lg)); }
    to   { box-shadow: 12px 12px 0 0 var(--aud); clip-path: inset(-30px -30px -30px -30px round var(--radius-lg)); }
  }
  .hero-pitch { min-height: 0; font-size: 1.0625rem; }
}
@media (max-width: 520px) {
  .hero { padding-top: 16px; }
  .hero-copy { gap: var(--s3); }
  .hero-frame { aspect-ratio: 16 / 9; }
  .chips { gap: 8px; }
  .chip span { min-height: 44px; padding: 0 14px; font-size: .9375rem; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- proof ---------- */
.proof { background: var(--ink); color: #fff; padding-block: clamp(48px, 7vw, 88px); }
.proof-line {
  font-family: var(--display); font-stretch: 112%; font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.8rem); line-height: 1.15; letter-spacing: -0.01em;
  max-width: 26ch;
}
.proof-line strong { color: var(--yellow); font-weight: 900; }
.clients { margin-top: var(--s4); max-width: 80ch; color: #C9CDE0; font-size: 1rem; line-height: 1.75; }

/* ---------- generic section ---------- */
.section { padding-block: var(--section); }
.section-head { display: grid; gap: var(--s2); margin-bottom: var(--s5); }

/* ---------- activities ---------- */
.act-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.act-list { border-top: 2px solid var(--ink); }
.act { border-bottom: 1px solid var(--line); }
.act summary {
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: var(--s2);
  padding: 20px 0; cursor: pointer; list-style: none;
}
.act summary::-webkit-details-marker { display: none; }
.act summary::after {
  content: ""; grid-row: 1 / span 2; grid-column: 2;
  width: 14px; height: 14px; margin-right: 6px;
  border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  transform: rotate(45deg) translateY(-4px);
  transition: transform .25s var(--ease-out);
}
.act[open] summary::after { transform: rotate(-135deg) translateY(-4px); }
.act-name { font-family: var(--display); font-stretch: 110%; font-weight: 800; font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.15; }
.act-hint { color: var(--ink-soft); font-size: 1rem; }
.act summary:hover .act-name { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; text-decoration-color: var(--magenta); }
.act-body { display: grid; gap: 12px; padding-bottom: var(--s3); max-width: 60ch; }
.act-thumb { display: none; border-radius: 12px; aspect-ratio: 16/10; object-fit: cover; width: 100%; }

.act-figure { position: sticky; top: 104px; }
.act-figure img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius-lg); transition: opacity .25s; }
.act-figure img.is-swapping { opacity: 0; }
.rental { margin-top: var(--s5); font-size: 1.125rem; }

@media (max-width: 860px) {
  .act-grid { grid-template-columns: 1fr; }
  .act-figure { display: none; }
  .act-thumb { display: block; }
}

/* ---------- occasions ---------- */
.occasions { background: var(--sky); }
.occ-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s5); }
.occ { border-top: 8px solid var(--c); padding-top: var(--s3); }
.occ h3 { margin-bottom: 12px; }
.occ li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.occ li:last-child { border-bottom: 0; }
@media (max-width: 960px) { .occ-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); } }
@media (max-width: 560px) { .occ-grid { grid-template-columns: 1fr; } }

/* ---------- process (a real sequence) ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s5); }
.steps li { counter-increment: step; display: grid; gap: 10px; align-content: start; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 8px;
  border: 3px solid var(--ink); border-radius: 50%;
  font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 1.5rem;
}
.steps li:last-child::before { background: var(--yellow); border-color: var(--yellow); }
.steps p { color: var(--ink-soft); max-width: 32ch; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- quotes ---------- */
.quotes { background: var(--ink); color: #fff; }
.quote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 80px); margin-top: var(--s5); }
.quote blockquote p {
  font-family: var(--body); font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.55;
  max-width: 44ch;
}
.quote figcaption { display: grid; margin-top: var(--s3); }
.quote figcaption strong { color: var(--yellow); }
.quote figcaption span { color: #C9CDE0; }
@media (max-width: 760px) { .quote-grid { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.gal-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(140px, 16vw, 220px); grid-auto-flow: dense; gap: 12px;
}
.gal-grid li { min-width: 0; }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }
.gal-item {
  position: relative; display: block; width: 100%; height: 100%; padding: 0;
  border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--sky);
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease-out); }
.gal-item:hover img { transform: scale(1.03); }
.gal-item .cap {
  position: absolute; left: 10px; bottom: 10px;
  padding: 8px 14px; border-radius: 999px; line-height: 1.2;
  background: #fff; color: var(--ink);
  font-family: var(--display); font-weight: 650; font-size: .875rem;
}
@media (max-width: 760px) {
  .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; }
}

/* ---------- about ---------- */
.about { background: var(--sky); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-photos img { border-radius: var(--radius-lg); aspect-ratio: 5/6; object-fit: cover; }
.about-photos img:last-child { margin-top: var(--s6); }
.about-copy { display: grid; gap: var(--s3); }
.about-copy p { max-width: 58ch; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photos img:last-child { margin-top: var(--s4); }
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-intro { display: grid; gap: var(--s3); }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s3); margin-top: var(--s2); }
.person { display: grid; gap: 2px; align-content: start; }
.person h3 { font-size: 1.125rem; }
.person .role { color: var(--ink-soft); margin-bottom: 6px; }
.person a { font-weight: 700; text-underline-offset: 3px; overflow-wrap: anywhere; }

.quote-form {
  display: grid; gap: var(--s3);
  padding: clamp(20px, 4vw, 40px);
  border: 2px solid var(--ink); border-radius: var(--radius-lg);
}
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-family: var(--display); font-weight: 700; font-size: 1rem; padding: 0; }
.field legend { margin-bottom: 8px; }
.opt { font-family: var(--body); font-weight: 400; color: var(--ink-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 2px solid #A9B1C6; border-radius: 10px; background: #fff;
  font-size: 1rem; /* ≥16px avoids iOS zoom */
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field textarea:hover { border-color: var(--ink-soft); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #6E748C; }
.field input[aria-invalid="true"] { border-color: #C4002B; }
.error { color: #C4002B; font-weight: 700; font-size: .9375rem; }
.pill > span { min-height: 42px; padding: 0 14px; font-size: .9375rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-status { min-height: 1.5em; font-weight: 700; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  /* on phones the form comes first; direct contacts follow it */
  .contact-intro { display: contents; }
  .contact-intro .h2 { order: 1; }
  .contact-intro .lead { order: 2; margin-top: calc(-1 * var(--s3)); }
  .quote-form { order: 3; }
  .people { order: 4; margin-top: 0; }
}
@media (max-width: 520px) {
  .field-row, .people { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding-block: var(--s5); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); }
.footer-logo { width: 200px; background: #fff; padding: 12px 16px; border-radius: 14px; box-sizing: content-box; }
.footer-inner p { color: #C9CDE0; margin-right: auto; }
.social { display: flex; gap: var(--s3); }
.social a { font-weight: 700; text-underline-offset: 4px; display: inline-block; padding: 8px 0; }

/* ---------- lightbox ---------- */
.lightbox {
  max-width: min(1100px, 94vw); max-height: 92vh; padding: 0;
  border: 0; border-radius: var(--radius-lg); background: var(--ink); color: #fff; overflow: hidden;
}
.lightbox::backdrop { background: rgba(30, 35, 64, .82); }
.lightbox img { max-height: calc(92vh - 56px); width: auto; margin-inline: auto; }
.lightbox-cap { padding: 14px 20px; font-family: var(--display); font-weight: 650; }
.lightbox-close {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: #fff; color: var(--ink);
  font-size: 1.75rem; line-height: 1; cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: pop .22s var(--ease-out); }
  @keyframes pop { from { opacity: 0; transform: scale(.96); } }
}

/* ---------- shared ---------- */
[hidden] { display: none !important; } /* .btn sets display, which would otherwise beat the hidden attribute */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.h3-like {
  font-family: var(--display); font-stretch: 108%; font-weight: 800;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.15;
}
.clients a { color: #fff; font-weight: 700; text-underline-offset: 4px; white-space: nowrap; }

/* ---------- rental catalog ---------- */
.rental-catalog { border-top: 1px solid var(--line); }
.rent-filter { border: 0; margin: 0 0 var(--s4); padding: 0; min-width: 0; }
.rent-filter .count { font-weight: 500; opacity: .75; margin-left: 2px; }
.rent-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s4) var(--s3);
}
.game-card {
  display: grid; gap: 6px; align-content: start; width: 100%;
  padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit;
}
.game-photo {
  display: block; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--sky);
  margin-bottom: 6px;
}
.game-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease-out); }
.game-card:hover .game-photo img { transform: scale(1.04); }
.game-name { font-family: var(--display); font-weight: 750; font-size: 1.0625rem; line-height: 1.25; }
.game-card:hover .game-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--magenta); }
.game-sub { color: var(--ink-soft); font-size: .9375rem; line-height: 1.4; }
.rent-more { margin-top: var(--s5); }
@media (max-width: 1000px) { .rent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .rent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s2); } .game-name { font-size: 1rem; } }

/* game detail dialog */
.game-dialog {
  width: min(960px, 94vw); max-height: 90vh; padding: 0;
  border: 0; border-radius: var(--radius-lg); background: #fff; color: var(--ink); overflow: hidden;
}
.game-dialog::backdrop { background: rgba(30, 35, 64, .82); }
.game-dialog-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); max-height: 90vh; }
.game-media { background: var(--sky); min-height: 0; }
.game-media img { width: 100%; height: 100%; max-height: 90vh; object-fit: cover; }
.game-info { display: grid; gap: var(--s2); align-content: start; padding: clamp(24px, 4vw, 40px); overflow-y: auto; }
.game-info .h3-like { padding-right: 48px; }
.game-meta { color: var(--ink-soft); font-weight: 700; }
.game-facts { display: grid; gap: 4px 0; margin: 0; }
.game-facts dt { font-family: var(--display); font-weight: 750; margin-top: 10px; }
.game-facts dd { margin: 0; }
.game-plus { color: var(--ink-soft); }
.game-info .btn { justify-self: start; margin-top: var(--s2); }
.game-dialog .lightbox-close { background: var(--ink); color: #fff; }
@media (max-width: 720px) {
  .game-dialog-inner { grid-template-columns: 1fr; overflow-y: auto; }
  .game-media { min-height: auto; }
  .game-media img { height: auto; aspect-ratio: 4 / 3; max-height: 42vh; } /* % height collapses in a single-column grid */
  .game-info { overflow: visible; }
  .game-info .btn { justify-self: stretch; font-size: 1rem; padding: 0 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  .game-dialog[open] { animation: pop .22s var(--ease-out); }
}

/* ---------- client logos marquee ---------- */
.logos { padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); overflow: hidden; }
.logos-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s2) var(--s4); margin-bottom: var(--s4); }
.logos-head .h3-like { max-width: 30ch; }
.logos-toggle {
  min-height: 44px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 999px;
  background: #fff; font-family: var(--display); font-weight: 700; cursor: pointer;
}
.logos-toggle:hover { background: var(--sky); }
.marquee {
  /* soft fade at both edges so logos enter and leave instead of being cut */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; width: max-content; }
.marquee-track li { flex: none; padding-right: 12px; } /* padding, not gap, so both halves are exactly equal */
.marquee-track img { width: 150px; height: 76px; object-fit: contain; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee-ltr var(--marquee-duration, 240s) linear infinite; }
  .marquee:hover .marquee-track,
  .marquee:focus-within .marquee-track,
  .marquee.is-paused .marquee-track { animation-play-state: paused; }
  /* left → right: start shifted one half to the left, slide to 0, loop */
  @keyframes marquee-ltr { from { transform: translateX(-50%); } to { transform: translateX(0); } }
}
@media (prefers-reduced-motion: reduce) {
  /* no motion: a row people can scroll themselves */
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding-inline: var(--gutter); }
  .marquee-track li[aria-hidden="true"] { display: none; }
}
@media (max-width: 640px) { .marquee-track img { width: 120px; height: 61px; } }

/* ---------- 3D letter stage ---------- */
.stage-section { padding-top: clamp(24px, 4vw, 48px); }
.stage-intro {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s3) var(--s5);
  align-items: end; margin-bottom: clamp(24px, 3vw, 40px);
}
.intro-statement {
  font-family: var(--display); font-stretch: 110%; font-weight: 800;
  font-size: clamp(1.75rem, 3.4vw, 3rem); line-height: 1.06; letter-spacing: -0.015em; max-width: 22ch;
}
.intro-sub { color: var(--ink-soft); font-size: 1.125rem; max-width: 40ch; justify-self: end; }
.stage {
  /* sized like lusion.co's hero box: 90vw wide, fills the rest of the first screen */
  position: relative; overflow: hidden;
  width: 90vw; margin-left: calc(50% - 45vw);
  height: max(440px, calc(100vh - 250px));
  height: max(440px, calc(100svh - 250px));
  border-radius: 16px;
  background: #F4F4F3;
  touch-action: pan-y;               /* vertical swipes still scroll the page */
  cursor: default;
}
.stage-letters { position: absolute; inset: 0; }
.stage-letters canvas { display: block; width: 100%; height: 100%; }
.stage-fallback {
  position: absolute; left: 50%; top: 50%; width: min(82%, 1000px); transform: translate(-50%, -50%);
}
.stage.is-live .stage-fallback { display: none; }
.stage-hint {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  padding: 8px 16px; border-radius: 999px; background: #fff; box-shadow: 0 2px 10px rgba(30, 35, 64, .1);
  font-family: var(--display); font-weight: 650; font-size: .875rem; white-space: nowrap;
  transition: opacity .4s;
}
.stage-hint.is-gone { opacity: 0; }
.stage:not(.is-live) .stage-hint { display: none; }
.stage-foot {
  width: 90vw; margin-left: calc(50% - 45vw);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  margin-top: 14px; font-family: var(--display); font-weight: 650; font-size: .875rem; color: var(--ink-soft);
}
.stage-foot-label { text-align: center; }
.tick { width: 14px; height: 14px; position: relative; }
.tick::before, .tick::after { content: ""; position: absolute; background: var(--ink); }
.tick::before { left: 6px; top: 0; width: 2px; height: 14px; }
.tick::after { top: 6px; left: 0; height: 2px; width: 14px; }
.stage-section + .hero { padding-top: var(--section); }
@media (max-width: 860px) {
  .stage-intro { grid-template-columns: 1fr; }
  .intro-sub { justify-self: start; }
}
@media (max-width: 640px) {
  .stage, .stage-foot { width: calc(100vw - 24px); margin-left: calc(50% - 50vw + 12px); }
  .stage { height: max(420px, calc(100svh - 230px)); border-radius: 14px; }
}

/* ---------- finale + wave ---------- */
.finale { position: relative; background: var(--ink); color: #fff; padding-top: var(--section); overflow: hidden; }
.finale-inner { display: grid; gap: var(--s4); justify-items: start; }
.finale-title {
  font-family: var(--display); font-stretch: 120%; font-weight: 900;
  font-size: clamp(2.4rem, 7vw, 6.4rem); line-height: .98; letter-spacing: -0.02em; max-width: 14ch;
}
.finale-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sky); }
.wave { display: block; width: 100%; height: clamp(200px, 26vw, 340px); margin-top: var(--s5); touch-action: pan-y; }
.finale + .site-footer { border-top: 1px solid rgba(255, 255, 255, .12); }

/* ---------- rolling game balls (ride on the waves) ---------- */
.wave-zone { position: relative; margin-top: var(--s5); }
.wave-zone .wave { margin-top: 0; }
.wave-zone .wave { height: clamp(320px, 30vw, 420px); }
.ball-run {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  display: grid; gap: 22px;
  overflow: hidden; padding-block: 16px;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.ball-run.is-dragging { cursor: grabbing; }
.ball-track { display: flex; width: max-content; will-change: transform; }
.ball-track li { flex: none; padding-right: 28px; }
.ball {
  position: relative; display: block; padding: 0; border: 0; background: none; color: #fff; cursor: pointer;
  /* each ball bobs a little out of step with its neighbours, like it is riding the strings */
  animation: bob 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.37s);
}
.ball-face {
  display: block; width: 104px; height: 104px; border-radius: 50%; overflow: hidden;
  border: 5px solid var(--c); background: #fff;
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .6);
  transform: rotate(var(--spin, 0deg));
  transition: border-width .2s, box-shadow .2s;
}
.ball-face img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ball-name {
  position: absolute; left: 50%; top: calc(100% - 18px); transform: translate(-50%, 4px); z-index: 1;
  padding: 4px 12px; border-radius: 999px; background: #fff; color: var(--ink); white-space: nowrap;
  font-family: var(--display); font-weight: 700; font-size: .8125rem;
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .2s var(--ease-out);
}
.ball:hover .ball-face, .ball:focus-visible .ball-face { box-shadow: 0 0 0 4px #fff, 0 14px 28px -10px rgba(0, 0, 0, .7); }
.ball:hover .ball-name, .ball:focus-visible .ball-name { opacity: 1; transform: translate(-50%, 0); }
.ball:focus-visible { outline: none; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (max-width: 640px) {
  .ball-face { width: 80px; height: 80px; border-width: 4px; }
  .ball-track li { padding-right: 20px; }
  .ball-run { gap: 16px; }
}
/* reduced motion: no rolling or bobbing, just a row people scroll themselves */
.ball-run.is-static { overflow-x: auto; cursor: auto; padding-inline: var(--gutter); }
.ball-run.is-static .ball { animation: none; }
@media (prefers-reduced-motion: reduce) { .ball { animation: none; } }

/* ---------- headline reveal (fx.js splits words) ---------- */
.reveal-ready .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.reveal-ready .w > span {
  display: inline-block; transform: translateY(105%);
  transition: transform .8s var(--ease-out); transition-delay: calc(var(--i) * 55ms);
}
.reveal-ready.is-in .w > span { transform: none; }

/* ---------- rolling button labels ---------- */
.roll { display: inline-block; overflow: hidden; line-height: 1.3; height: 1.3em; vertical-align: middle; }
.roll-in { display: inline-block; text-shadow: 0 1.3em currentColor; transition: transform .45s var(--ease-out); }
a:hover > .roll .roll-in, button:hover > .roll .roll-in,
a:focus-visible > .roll .roll-in, button:focus-visible > .roll .roll-in { transform: translateY(-1.3em); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- CV viewer dialog ---------- */
.cv-dialog {
  width: min(860px, 94vw); max-height: 92vh; padding: 0; border: 0;
  border-radius: var(--radius-lg); background: #fff; color: var(--ink); overflow: hidden;
}
.cv-dialog[open] { display: flex; flex-direction: column; }
.cv-dialog::backdrop { background: rgba(30, 35, 64, .82); }
.cv-bar {
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 20px;
  border-bottom: 1px solid var(--line); background: #fff;
}
.cv-title { font-family: var(--display); font-weight: 750; font-size: 1.0625rem; line-height: 1.2; margin: 0 auto 0 0; }
.cv-dialog .lightbox-close { position: static; flex: none; background: var(--ink); color: #fff; }
.cv-scroll { overflow-y: auto; overscroll-behavior: contain; background: #EDEEF3; padding: clamp(8px, 2vw, 20px); }
.cv-scroll img { display: block; width: 100%; height: auto; background: #fff; border-radius: 6px; box-shadow: 0 4px 24px rgba(30, 35, 64, .14); }
@media (max-width: 560px) {
  .cv-dialog { width: 100vw; max-width: 100vw; max-height: 100svh; height: 100svh; border-radius: 0; }
  .cv-title { font-size: .9375rem; }
  .cv-bar .btn { padding-inline: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .cv-dialog[open] { animation: pop .22s var(--ease-out); }
}
