/* Revolando Games — corporate site */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f6fa;
  --ink: #0b0d1a;
  --ink-2: #474c63;
  --ink-3: #80869e;
  --line: #e4e6ef;
  --accent: #2d3bff;
  --accent-press: #1f2be0;
  --accent-soft: #eef0ff;
  --live: #16a34a;
  --soft: #f59e0b;
  --soon: #9aa0b4;

  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --container: 1240px;
  --gutter: 24px;

  /* close to a critically damped spring (damping 1.0, response ~0.4s) */
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --shadow-card: 0 1px 2px rgba(11, 13, 26, 0.04), 0 8px 24px rgba(11, 13, 26, 0.06);
  --shadow-lift: 0 2px 6px rgba(11, 13, 26, 0.05), 0 22px 44px rgba(11, 13, 26, 0.11);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); color: var(--ink); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.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; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 16px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(88px, 11vw, 148px) 0; }
.section--soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 13px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.h-display { font-size: clamp(2.6rem, 6.2vw, 5.4rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
.h-section { font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }
.h-card { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.015em; font-weight: 650; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--split { max-width: none; grid-template-columns: 1fr minmax(0, 420px); align-items: end; gap: 24px 64px; }

/* Buttons — feedback on press, not on release */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 999px; border: 0;
  font: 600 16px/1 var(--font-body); letter-spacing: -0.005em; text-decoration: none; cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease), transform 100ms ease-out;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(45, 59, 255, 0.28); }
.btn--primary:hover { background: var(--accent-press); }
.btn--ghost { background: rgba(255, 255, 255, 0.72); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(11, 13, 26, 0.12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--ghost:hover { background: #fff; }
.btn--white { background: #fff; color: var(--accent); }
.btn--white:hover { background: var(--accent-soft); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.header__bar { display: flex; align-items: center; gap: 28px; height: 72px; }
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(11, 13, 26, 0.06);
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo svg { width: 34px; height: 34px; }
.logo__word { font: 700 21px/1 var(--font-display); letter-spacing: -0.035em; }
.logo__word span { color: var(--ink-3); font-weight: 500; margin-left: 4px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 9px 13px; border-radius: 999px; text-decoration: none;
  font: 500 15px/1 var(--font-body); color: var(--ink-2);
  transition: color 200ms var(--ease), background-color 200ms var(--ease);
}
.nav a:hover { color: var(--ink); background: rgba(11, 13, 26, 0.05); }
.nav a.is-active { color: var(--ink); background: rgba(11, 13, 26, 0.06); }
.header__cta { flex: none; }
.burger { display: none; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: 12px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(11,13,26,.1); cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; margin: 4px auto; border-radius: 2px; background: var(--ink); transition: transform 250ms var(--ease), opacity 200ms; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 72px 12px auto; z-index: 49; padding: 12px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--shadow-lift); transform-origin: top right;
  opacity: 0; transform: translateY(-8px) scale(0.98); pointer-events: none; visibility: hidden;
  transition: opacity 220ms var(--ease), transform 320ms var(--ease), visibility 0s 320ms;
}
.menu-open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity 220ms var(--ease), transform 320ms var(--ease); }
.mobile-menu a { display: block; padding: 14px 16px; border-radius: 12px; text-decoration: none; font: 600 18px/1.2 var(--font-display); letter-spacing: -0.01em; }
.mobile-menu a:active { background: var(--bg-soft); }
.mobile-menu .btn { width: 100%; margin-top: 8px; }

/* ---------- Hero (scroll-scrubbed film) ---------- */
.hero { position: relative; height: 100vh; height: 100svh; background: #e9efff; }
.scrub .hero { height: 420vh; }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__media, .hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity 400ms ease; }
.hero.has-video .hero__video { opacity: 1; }
.hero__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.62) 32%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 22%);
}
.hero__chapters { position: absolute; inset: 0; }
.hero__chapters .container { position: relative; height: 100%; }
.chapter {
  position: absolute; z-index: 0; left: var(--gutter); top: 50%; width: min(560px, calc(100% - var(--gutter) * 2));
  display: grid; gap: 22px; transform: translateY(-50%);
}
.chapter::before {
  content: ""; position: absolute; z-index: -1; inset: -90px -140px -90px -160px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,255,255,.82), rgba(255,255,255,.5) 55%, rgba(255,255,255,0));
  filter: blur(8px);
}
.chapter .h-display { font-size: clamp(2.5rem, 5.4vw, 4.9rem); }
.chapter__title { font-size: clamp(2.2rem, 4.6vw, 4.1rem); line-height: 1.03; letter-spacing: -0.034em; font-weight: 700; }
.chapter .lead { max-width: 480px; color: #2c3047; }
.chapter__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.chapter__tags span { padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px rgba(11,13,26,.08); font: 500 13px/1 var(--font-body); color: var(--ink-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.scrub .hero .chapter:not(:first-child) { opacity: 0; }
.scrub .hero .chapter { will-change: opacity, transform; }
html:not(.scrub) .hero .chapter:not(:first-child) { display: none; }

.hero__rail { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); display: none; gap: 10px; flex-direction: column; }
.scrub .hero .hero__rail { display: flex; }
.hero__rail i { width: 3px; height: 28px; border-radius: 3px; background: rgba(11, 13, 26, 0.14); overflow: hidden; position: relative; }
.hero__rail i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleY(var(--fill, 0)); transform-origin: top; }
.hero__cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: none; align-items: center; gap: 10px; font: 500 13px/1 var(--font-body); color: var(--ink-2);
  padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.scrub .hero .hero__cue { display: inline-flex; }
.hero__cue i { width: 14px; height: 22px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--ink-2); position: relative; }
.hero__cue i::after { content: ""; position: absolute; left: 50%; top: 5px; width: 2px; height: 5px; margin-left: -1px; border-radius: 2px; background: var(--ink-2); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(7px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__text { display: grid; gap: 22px; }
.about__text p { color: var(--ink-2); }
.about__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 12px; border-top: 1px solid var(--line); }
.about__facts div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.about__facts div:nth-child(odd) { padding-right: 20px; }
.about__facts dt { font: 500 13px/1.3 var(--font-body); color: var(--ink-3); margin-bottom: 6px; }
.about__facts dd { margin: 0; font: 600 16px/1.35 var(--font-body); color: var(--ink); }
.about__media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: var(--shadow-card); }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__badge {
  position: absolute; left: 18px; bottom: 18px; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 16px; background: rgba(255,255,255,.86);
  backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 10px 30px rgba(11,13,26,.12); font: 500 14px/1.3 var(--font-body); color: var(--ink-2);
}
.about__badge b { display: block; font: 700 15px/1.2 var(--font-display); color: var(--ink); letter-spacing: -0.01em; }
.about__badge svg { width: 40px; height: 40px; flex: none; }

/* ---------- Principles & achievements ---------- */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.principle {
  display: grid; align-content: start; gap: 14px; padding: 28px 26px 30px;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-card);
}
.principle__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 8px; }
.principle__icon svg { width: 24px; height: 24px; }
.principle__num { font: 600 13px/1 var(--font-body); color: var(--ink-3); letter-spacing: 0.04em; }
.principle p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }

.pipeline { margin-top: clamp(56px, 8vw, 96px); }
.pipeline__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.pipeline__head h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.025em; line-height: 1.1; }
.pipeline__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.pipeline__steps li { position: relative; padding-top: 30px; }
.pipeline__steps li::before { content: ""; position: absolute; left: 0; right: -16px; top: 7px; height: 2px; background: linear-gradient(90deg, var(--accent) 0%, rgba(45,59,255,.18) 100%); }
.pipeline__steps li:last-child::before { right: 0; background: linear-gradient(90deg, var(--accent) 0%, rgba(45,59,255,0) 100%); }
.pipeline__steps li::after { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 4px var(--accent); }
.pipeline__steps b { display: block; font: 650 18px/1.25 var(--font-display); letter-spacing: -0.015em; margin-bottom: 4px; }
.pipeline__steps small { display: block; font: 500 13px/1.3 var(--font-body); color: var(--accent); margin-bottom: 8px; }
.pipeline__steps p { font-size: 15px; line-height: 1.55; color: var(--ink-2); padding-right: 12px; }

.stats { margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 30px 20px 6px 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat__num { font: 700 clamp(2.2rem, 3.6vw, 3.2rem)/1 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.stat__num em { font-style: normal; color: var(--accent); }
.stat__label { margin-top: 10px; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }

/* ---------- Games ---------- */
.games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.game {
  position: relative; display: grid; grid-template-rows: auto 1fr; background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); overflow: hidden;
  transition: transform 450ms var(--ease), box-shadow 450ms var(--ease);
}
.game__art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.game__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.game__status {
  position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 11px 7px 9px; border-radius: 999px; background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 600 12px/1 var(--font-body); color: var(--ink);
}
.game__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(22,163,74,.16); }
.game__status--soft i { background: var(--soft); box-shadow: 0 0 0 3px rgba(245,158,11,.18); }
.game__status--soon i { background: var(--soon); box-shadow: 0 0 0 3px rgba(154,160,180,.2); }
.game__body { display: grid; align-content: start; gap: 6px; padding: 18px 20px 20px; }
.game__genre { font: 600 12px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.game__name { font: 650 19px/1.2 var(--font-display); letter-spacing: -0.02em; margin-top: 4px; }
.game__desc { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.game__platforms { display: flex; gap: 6px; margin-top: 10px; }
.game__platforms span { padding: 5px 9px; border-radius: 7px; background: var(--bg-soft); font: 500 12px/1 var(--font-body); color: var(--ink-2); }
@media (hover: hover) {
  .game:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
  .game:hover .game__art img { transform: scale(1.05); }
}

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.member { display: grid; gap: 16px; }
.member__photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: #e7e8ec; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.member__city {
  position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px 8px 10px; border-radius: 999px; background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font: 500 13px/1 var(--font-body); color: var(--ink);
  transform: translateY(6px); opacity: 0; transition: transform 400ms var(--ease), opacity 300ms var(--ease);
}
.member__city svg { width: 14px; height: 14px; color: var(--accent); }
.member__name { font: 650 20px/1.2 var(--font-display); letter-spacing: -0.02em; }
.member__role { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
@media (hover: hover) {
  .member:hover .member__photo img { transform: scale(1.035); }
  .member:hover .member__city { transform: none; opacity: 1; }
}
@media (hover: none) { .member__city { transform: none; opacity: 1; } }

/* ---------- Offices + map ---------- */
.offices { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 20px; align-items: stretch; }
.office-list { display: grid; gap: 12px; align-content: start; }
.office {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: center; width: 100%;
  padding: 12px 16px 12px 12px; text-align: left; border: 0; border-radius: 20px; background: #fff; cursor: pointer;
  box-shadow: var(--shadow-card), inset 0 0 0 1.5px transparent;
  transition: box-shadow 250ms var(--ease), transform 100ms ease-out, background-color 250ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.office:active { transform: scale(0.985); }
.office.is-active { box-shadow: var(--shadow-lift), inset 0 0 0 1.5px var(--accent); }
.office__img { aspect-ratio: 3 / 2.2; border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
.office__img img { width: 100%; height: 100%; object-fit: cover; }
.office__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.office__city { font: 650 19px/1.2 var(--font-display); letter-spacing: -0.02em; }
.office__tag { padding: 5px 8px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font: 600 11.5px/1 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; }
.office__meta { margin-top: 5px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.office__time { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font: 500 13px/1 var(--font-body); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.office__time svg { width: 13px; height: 13px; }
.map-wrap { position: relative; min-height: 520px; border-radius: var(--r-lg); overflow: hidden; background: #eef0f4; box-shadow: var(--shadow-card); }
.map { position: absolute; inset: 0; z-index: 0; }
.map-reset { position: absolute; left: 16px; top: 16px; z-index: 500; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: 14px; }
.pin { position: relative; width: 18px; height: 18px; }
.pin i { position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(45,59,255,.45); }
.pin::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: rgba(45,59,255,.22); animation: pulse 2.6s var(--ease) infinite; }
.pin--hq { width: 24px; height: 24px; }
.pin--hq i { inset: 3px; }
@keyframes pulse { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.leaflet-container { font: 500 13px/1.4 var(--font-body); background: #eef0f4; }
.leaflet-tile-pane { filter: grayscale(1) contrast(0.82) brightness(1.08); }
.leaflet-tooltip.pin-label { padding: 6px 10px; border: 0; border-radius: 8px; background: #fff; color: var(--ink); font: 600 12.5px/1 var(--font-body); box-shadow: 0 6px 16px rgba(11,13,26,.12); }
.leaflet-tooltip.pin-label::before { display: none; }
.leaflet-control-zoom a { color: var(--ink) !important; }
.leaflet-bar { border: 0 !important; box-shadow: var(--shadow-card) !important; border-radius: 12px !important; overflow: hidden; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-layout .section-head { margin-bottom: 0; position: sticky; top: 112px; }
.faq-contact { margin-top: 10px; padding: 22px; border-radius: 20px; background: var(--bg-soft); }
.faq-contact p { font-size: 15px; color: var(--ink-2); }
.faq-contact a { color: var(--accent); font-weight: 600; text-decoration: none; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0;
  cursor: pointer; list-style: none; font: 600 19px/1.35 var(--font-display); letter-spacing: -0.015em;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-soft); transition: background-color 250ms var(--ease), transform 350ms var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--ink); transition: transform 350ms var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open]:not(.is-closing) summary i { background: var(--accent-soft); transform: rotate(180deg); }
.faq details[open]:not(.is-closing) summary i::after { transform: rotate(0deg); }
.faq summary:hover i { background: var(--accent-soft); }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 56px 26px 0; color: var(--ink-2); }
.faq__a a { color: var(--accent); }

/* ---------- Partner form ---------- */
.partner { background: var(--accent); color: #fff; position: relative; overflow: hidden; }
.partner::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -320px; top: -380px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.16), rgba(255,255,255,0)); pointer-events: none;
}
.partner .container { position: relative; }
.partner-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.partner .eyebrow { color: #fff; }
.partner h2 { color: #fff; }
.partner__intro { display: grid; gap: 22px; }
.partner__intro .lead { color: rgba(255,255,255,.82); }
.partner__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.partner__list li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.partner__list svg { width: 22px; height: 22px; flex: none; padding: 4px; border-radius: 50%; background: rgba(255,255,255,.16); }
.partner__note { margin-top: 10px; font-size: 15px; color: rgba(255,255,255,.75); }
.partner__note a { color: #fff; }
.form-card { background: #fff; color: var(--ink); border-radius: 28px; padding: clamp(24px, 3.4vw, 40px); box-shadow: 0 30px 80px rgba(8, 12, 90, 0.35); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font: 600 14px/1.2 var(--font-body); color: var(--ink); }
.field label small { font-weight: 500; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 13px 15px; border: 0; border-radius: 12px;
  background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; line-height: 1.4;
  transition: box-shadow 200ms var(--ease), background-color 200ms var(--ease); appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 132px; resize: vertical; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23474c63' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px #cfd3e0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px rgba(45,59,255,.12); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { box-shadow: inset 0 0 0 1.5px #e5484d; background: #fff; }
.field__err { display: none; font-size: 13px; color: #d93036; }
.field.is-invalid .field__err { display: block; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.form-foot p { font-size: 13.5px; line-height: 1.45; color: var(--ink-3); max-width: 300px; }
.form-foot p a { color: var(--ink-2); }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 14.5px; }
.form-status.is-error { display: block; background: #fff1f1; color: #b4232a; }
.form-status a { color: inherit; font-weight: 600; }
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading .btn__label::after { content: "…"; }
.form-success { display: none; text-align: left; padding: 12px 4px; }
.form-success svg { width: 56px; height: 56px; color: var(--live); margin-bottom: 18px; }
.form-success h3 { font-size: 26px; letter-spacing: -0.025em; margin-bottom: 10px; }
.form-success p { color: var(--ink-2); }
.form-card.is-sent form { display: none; }
.form-card.is-sent .form-success { display: block; animation: rise 500ms var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.footer { background: var(--bg-soft); padding: 72px 0 36px; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer__brand p { margin-top: 16px; max-width: 320px; font-size: 15px; color: var(--ink-2); }
.footer h4 { font: 600 13px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer li, .footer li a { font-size: 15px; color: var(--ink-2); text-decoration: none; }
.footer li a:hover { color: var(--accent); }
.footer__legal { display: flex; justify-content: space-between; gap: 24px; padding-top: 28px; flex-wrap: wrap; }
.footer__legal p { font-size: 13.5px; line-height: 1.6; color: var(--ink-3); }
.footer__legal a { color: var(--ink-2); }

/* ---------- Reveal (screenshot-safe: only when JS runs, never for reduced motion) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease), transform 900ms var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Legal page ---------- */
.legal { padding: 140px 0 96px; }
.legal__inner { max-width: 760px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.035em; line-height: 1.05; margin: 16px 0 12px; }
.legal h2 { font-size: 1.45rem; letter-spacing: -0.02em; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 14px; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal a { color: var(--accent); }
.legal .updated { color: var(--ink-3); font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__cta { display: none; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .offices { grid-template-columns: 1fr; }
  .office-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-wrap { min-height: 440px; order: -1; }
}
@media (max-width: 860px) {
  :root { --gutter: 20px; }
  .section-head--split { grid-template-columns: 1fr; }
  .about, .faq-layout, .partner-layout { grid-template-columns: 1fr; }
  .faq-layout .section-head { position: static; }
  .about__media { aspect-ratio: 4 / 3; }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .pipeline__steps li:nth-child(2)::before { right: 0; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .hero__veil { background: linear-gradient(180deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.62) 38%, rgba(255,255,255,0) 66%); }
  .chapter { top: 104px; transform: none; gap: 16px; }
  .scrub .hero .chapter { transform: none; }
  .chapter .lead { font-size: 1.02rem; }
  .hero__rail { display: none !important; }
  .cta-row .btn { flex: 1 1 auto; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .principles { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat, .stat + .stat { padding: 24px 12px 6px 0; border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .stats { border-top: 0; }
  .games { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .member__name { font-size: 17px; }
  .member__role { font-size: 13.5px; }
  .member__city { left: 8px; bottom: 8px; font-size: 11.5px; padding: 6px 9px 6px 8px; }
  .office-list { grid-template-columns: 1fr; }
  .office { grid-template-columns: 84px minmax(0, 1fr); }
  .map-wrap { min-height: 360px; }
  .pipeline__steps { grid-template-columns: 1fr; }
  .pipeline__steps li::before { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .faq summary { font-size: 17px; padding: 20px 0; }
  .faq__a p { padding-right: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .game, .game__art img, .member__photo img { transition: none; }
  .pin::before { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .header.is-scrolled, .mobile-menu, .btn--ghost, .about__badge, .game__status, .member__city { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
