/* EiP Game Studio — site styles. One file, no build step. */

:root {
  --ink: #0e0b13;
  --ink-2: #17131e;
  --ink-3: #221c2b;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f7f2ea;
  --muted: #b2a9bb;
  --orange: #fe6400;
  --orange-2: #fd2a00;
  --brand-grad: linear-gradient(135deg, #ff8a1f 0%, var(--orange) 45%, var(--orange-2) 100%);

  --bamboo: #a4d83c;
  --bamboo-deep: #12260f;

  --bb-amber: #ffb51f;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 28px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--orange); color: #fff; font-weight: 700; border-radius: 10px; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons & small parts ---------- */

.btn {
  --btn-bg: rgba(255, 255, 255, 0.08);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--btn-bg); color: inherit;
  font: 650 16px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease-out), background-color 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.25); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary {
  background: var(--brand-grad); border-color: transparent; color: #fff;
  box-shadow: 0 10px 30px -10px rgba(254, 100, 0, 0.8);
}
.btn-primary:hover { box-shadow: 0 16px 38px -10px rgba(254, 100, 0, 0.9); border-color: transparent; }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 15px; }

.play-badge { display: inline-block; border-radius: 12px; transition: transform 0.25s var(--ease-out), filter 0.25s; }
.play-badge img { height: 56px; width: auto; }
.play-badge:hover { transform: translateY(-2px); filter: brightness(1.08); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
}
.pill .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--bamboo);
  box-shadow: 0 0 0 0 rgba(164, 216, 60, 0.7); animation: ping 2s infinite;
}
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(164, 216, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(164, 216, 60, 0); } }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 13px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange);
}
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.tags li {
  padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line);
}

.stars { color: #ffc531; letter-spacing: 2px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(14, 11, 19, 0.78);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.nav { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: block; flex: none; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a {
  display: block; padding: 10px 14px; border-radius: 999px; white-space: nowrap;
  font-weight: 600; font-size: 15px; text-decoration: none; color: rgba(255, 255, 255, 0.86);
  transition: background-color 0.2s, color 0.2s;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav-social { display: flex; gap: 2px; }
.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: #fff; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; margin: auto; background: currentColor; border-radius: 2px;
  position: relative; transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.social {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: rgba(255, 255, 255, 0.8); transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.social:hover { background: rgba(255, 255, 255, 0.1); color: #fff; transform: translateY(-1px); }
.social svg { width: 20px; height: 20px; }

/* ---------- Hero (new release) ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(940px, 100svh);
  padding: calc(var(--header-h) + clamp(32px, 6vw, 72px)) 0 clamp(56px, 8vw, 96px);
  display: flex; align-items: center;
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(164, 216, 60, 0.35), transparent 70%),
    radial-gradient(50% 60% at 10% 100%, rgba(254, 100, 0, 0.18), transparent 70%),
    linear-gradient(180deg, #0c1a0b 0%, var(--bamboo-deep) 55%, var(--ink) 100%);
}
/* Faint bamboo stalks in the backdrop. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background:
    repeating-linear-gradient(90deg, transparent 0 86px, rgba(164, 216, 60, 0.07) 86px 104px, transparent 104px 190px),
    repeating-linear-gradient(0deg, transparent 0 140px, rgba(0, 0, 0, 0.18) 140px 146px);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 60%, transparent);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-copy { display: grid; gap: 20px; justify-items: start; }
.hero-logo { width: min(100%, 400px); margin: 0 0 -4px -8px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45)); }
.hero-title {
  font-size: clamp(36px, 4.4vw, 58px); font-weight: 800;
}
.hero-title em { font-style: normal; color: var(--bamboo); }
.hero-lede { font-size: clamp(17px, 1.6vw, 20px); color: rgba(247, 242, 234, 0.82); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: rgba(247, 242, 234, 0.65); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin-right: 10px; }

/* Store screenshots as a deck: the front card flies out, the next ones step forward. */
.hero-media { position: relative; padding-top: 8%; } /* room for the cards fanned out behind */
.deck { position: relative; aspect-ratio: 16 / 9; cursor: pointer; }
.deck-card {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: 24px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.14);
  opacity: 0; z-index: 0; pointer-events: none;
  transform: translate(10%, -24%) scale(0.8) rotate(6deg); filter: brightness(0.45);
  transition: transform 0.8s var(--ease-out), opacity 0.6s ease, filter 0.6s ease;
}
.deck-card[data-pos="0"] { opacity: 1; z-index: 3; transform: none; filter: none; pointer-events: auto; }
.deck-card[data-pos="1"] { opacity: 0.8; z-index: 2; transform: translate(4%, -10%) scale(0.93) rotate(2.5deg); filter: brightness(0.7); }
.deck-card[data-pos="2"] { opacity: 0.5; z-index: 1; transform: translate(8%, -19%) scale(0.86) rotate(5deg); filter: brightness(0.5); }
.deck-card[data-pos="out"] { opacity: 0; z-index: 4; transform: translate(-32%, 8%) scale(0.96) rotate(-9deg); filter: none; }
.deck-progress { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.deck-progress button {
  display: grid; align-items: center; flex: 0 1 64px; height: 24px; padding: 0;
  border: 0; background: none; cursor: pointer;
}
.deck-progress .bar { position: relative; height: 4px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, 0.2); }
.deck-progress .fill { position: absolute; inset: 0; background: var(--bamboo); transform: scaleX(0); transform-origin: left; }
.deck-progress [data-done] .fill { transform: scaleX(1); opacity: 0.55; }
.deck-progress [aria-current="true"] .fill { animation: deck-fill var(--deck-interval, 3.6s) linear forwards; }
.deck.is-paused + .deck-progress .fill { animation-play-state: paused; }
@keyframes deck-fill { to { transform: scaleX(1); } }


/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden; background: var(--brand-grad); color: #fff;
  border-block: 1px solid rgba(255, 255, 255, 0.15);
  transform: rotate(-1.2deg) scale(1.02); margin: -18px 0 0; position: relative; z-index: 3;
  box-shadow: 0 20px 40px -20px rgba(254, 100, 0, 0.6);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 28px; padding: 16px 14px;
  font: 800 clamp(16px, 1.8vw, 22px)/1 var(--font-display); letter-spacing: 0.01em; text-transform: uppercase; white-space: nowrap;
}
.marquee-track span::after { content: "✦"; font-size: 0.8em; opacity: 0.8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }
.section-head h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; }
.section-head p { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); }

/* ---------- Game cards ---------- */

.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 28px); }
.game-card {
  --card-accent: var(--orange);
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--card-bg, var(--ink-2)); border: 1px solid var(--line);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
}
.game-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px var(--card-glow, rgba(0, 0, 0, 0.8)); border-color: rgba(255, 255, 255, 0.18); }
.game-card--panda { --card-bg: linear-gradient(180deg, #1a3313, #10200d); --card-accent: var(--bamboo); --card-glow: rgba(164, 216, 60, 0.45); }
.game-card--bagbound { --card-bg: linear-gradient(180deg, #13214a, #0b142f); --card-accent: var(--bb-amber); --card-glow: rgba(42, 140, 255, 0.45); }
.game-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.game-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--media-pos, 50% 50%); transition: transform 0.8s var(--ease-out); }
.game-card--panda .game-card-media { --media-pos: 100% 50%; } /* keep the baked-in logo whole */
.game-card:hover .game-card-media img { transform: scale(1.05); }
.game-card-media::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, var(--card-fade, #10200d)); }
.game-card--bagbound .game-card-media { --card-fade: #13214a; }
.game-card--panda .game-card-media { --card-fade: #1a3313; }
.game-card-flag {
  position: absolute; top: 18px; left: 18px; z-index: 1;
  padding: 7px 14px; border-radius: 999px; font: 800 13px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--bamboo); color: #13240c; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.5);
}
.game-card-body { position: relative; display: grid; gap: 18px; padding: 0 clamp(22px, 3vw, 34px) clamp(24px, 3vw, 34px); flex: 1; align-content: start; }
.game-card-id { display: flex; align-items: flex-end; gap: 16px; margin-top: -44px; }
.game-card-icon {
  width: 88px; height: 88px; border-radius: 24px; flex: none;
  box-shadow: 0 0 0 4px var(--ink-2), 0 14px 30px -8px rgba(0, 0, 0, 0.7);
}
.game-card h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; }
.game-card-genre { color: var(--card-accent); font-weight: 700; font-size: 15px; margin-top: 4px; }
.game-card-text { color: rgba(247, 242, 234, 0.78); }
.game-card-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: rgba(247, 242, 234, 0.7); }
.game-card-stats strong { color: #fff; font-size: 16px; }
.game-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; padding-top: 6px; }
.game-card-actions .play-badge img { height: 48px; }

/* ---------- Studio ---------- */

.studio { background: var(--ink); padding-top: 0; } /* follows the games section directly */
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.studio-copy { display: grid; gap: 22px; }
.studio-copy h2 { font-size: clamp(36px, 4.8vw, 62px); font-weight: 800; }
.studio-copy h2 .grad { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.studio-copy p { color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.stat { padding: 22px 20px; border-radius: 22px; background: var(--ink-2); border: 1px solid var(--line); }
.stat strong { display: block; font: 800 clamp(30px, 3.4vw, 44px)/1 var(--font-display); letter-spacing: -0.02em; }
.stat span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
.principles { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.principle {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start;
  padding: 24px; border-radius: 24px; background: var(--ink-2); border: 1px solid var(--line);
}
.principle-num {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(254, 100, 0, 0.12); color: var(--orange); font: 800 20px/1 var(--font-display);
}
.principle h3 { font: 750 19px/1.3 var(--font-body); }
.principle p { margin-top: 4px; color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */

.contact { padding-top: 0; }
.contact-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 32px; align-items: end;
  padding: clamp(32px, 6vw, 72px); border-radius: 36px; background: var(--brand-grad);
  box-shadow: 0 40px 80px -40px rgba(254, 100, 0, 0.7);
}
.contact-card::before {
  content: ""; position: absolute; z-index: -1; right: -6%; top: -30%; width: 46%; aspect-ratio: 1;
  background: url("../img/brand/eip-logo-white.png") center / contain no-repeat; opacity: 0.12; rotate: -12deg;
}
.contact-card h2 { font-size: clamp(40px, 6vw, 80px); font-weight: 800; }
.contact-card p { font-size: clamp(17px, 1.6vw, 20px); margin-top: 14px; max-width: 32em; color: rgba(255, 255, 255, 0.9); }
.contact-actions { display: grid; gap: 12px; justify-items: stretch; }
.contact-actions .btn { background: #fff; color: #1a0d05; border-color: transparent; justify-content: flex-start; }
.contact-actions .btn-outline { background: rgba(0, 0, 0, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.contact-actions small { display: block; font-size: 12px; font-weight: 600; opacity: 0.65; margin-bottom: 3px; }
.contact-actions .btn { min-height: 64px; padding: 0 24px; }
.contact-actions .btn span { text-align: left; line-height: 1.2; }
.contact-social { display: flex; gap: 6px; margin-top: 26px; }
.contact-social .social { background: rgba(0, 0, 0, 0.14); color: #fff; width: 46px; height: 46px; }
.contact-social .social:hover { background: rgba(0, 0, 0, 0.26); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 56px 0 36px; background: #0a080e; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand img { height: 44px; width: auto; }
.footer-brand p { margin-top: 14px; color: var(--muted); max-width: 26em; }
.footer-col h2 { font: 700 13px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; color: rgba(247, 242, 234, 0.86); }
.footer-col a:hover { color: var(--orange); }
.footer-col h2 a { color: inherit; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-social { display: flex; gap: 2px; margin-top: 16px; margin-left: -10px; }

/* ---------- Trailer dialog ---------- */

.trailer {
  width: min(100% - 32px, 1040px); padding: 0; border: 0; border-radius: 24px; overflow: hidden;
  background: #000; color: #fff; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}
.trailer::backdrop { background: rgba(6, 4, 10, 0.82); backdrop-filter: blur(6px); }
.trailer[open] { animation: pop 0.35s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } }
.trailer-frame { aspect-ratio: 16 / 9; }
.trailer--tall { width: min(100% - 32px, calc((100svh - 64px) * 9 / 16)); } /* vertical (phone) trailers */
.trailer--tall .trailer-frame { aspect-ratio: 9 / 16; }
.trailer-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.trailer-close {
  position: absolute; top: 12px; right: 12px; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.trailer-close:hover { background: var(--orange); }

/* ---------- Legal pages ---------- */

.page-hero {
  padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(36px, 5vw, 56px);
  background: radial-gradient(60% 120% at 85% 0%, rgba(254, 100, 0, 0.22), transparent 70%), var(--ink);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 800; margin-top: 18px; }
.page-hero p { margin-top: 16px; color: var(--muted); }
.legal { padding: clamp(40px, 6vw, 72px) 0 clamp(80px, 10vw, 120px); }
.prose { max-width: 760px; color: rgba(247, 242, 234, 0.84); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font: 750 clamp(21px, 2.2vw, 26px)/1.25 var(--font-display); letter-spacing: -0.01em; color: #fff; margin-top: 2.2em; padding-top: 0.2em; }
.prose h3 { font: 700 19px/1.3 var(--font-body); color: #fff; margin-top: 1.6em; }
.prose a { color: var(--orange); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose strong { color: #fff; }
.prose .callout { gap: 10px; }
.prose .callout ul { margin: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--ink-2); color: #fff; font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: #fff; font-weight: 600; white-space: nowrap; }
.callout {
  display: grid; gap: 18px; padding: clamp(24px, 4vw, 40px); border-radius: 28px;
  background: var(--ink-2); border: 1px solid var(--line); max-width: 760px;
}
.callout-warn { padding: 16px 18px; border-radius: 16px; background: rgba(254, 100, 0, 0.1); border: 1px solid rgba(254, 100, 0, 0.35); color: #ffd9bf; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.steps li::before {
  content: counter(step); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(254, 100, 0, 0.14); color: var(--orange); font: 800 18px/1 var(--font-display);
}
.steps li p { padding-top: 7px; }

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; translate: 0 28px; transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-social { display: none; }
}

/* Phones: the links move into the menu. */
@media (max-width: 640px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; gap: 4px; margin: 0;
    padding: 14px var(--gutter) 22px; background: rgba(14, 11, 19, 0.96); backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; translate: 0 -10px; transition: opacity 0.25s, translate 0.3s var(--ease-out), visibility 0.25s;
  }
  .nav-links a { padding: 14px 12px; font-size: 18px; border-radius: 14px; }
  .nav-open .nav-links { opacity: 1; visibility: visible; translate: 0 0; }
  .nav-open .site-header { background: rgba(14, 11, 19, 0.96); }
}

@media (max-width: 880px) {
  :root { --header-h: 64px; }
  .brand img { height: 34px; }
  .hero { min-height: 0; }
  .hero-grid, .studio-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-media { width: min(100%, 640px); justify-self: center; }
  .game-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-card { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-logo { margin-left: -6px; }
  .deck-card { border-radius: 16px; }
  .play-badge img { height: 50px; }
  .btn { min-height: 50px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { display: flex; align-items: baseline; gap: 14px; }
  .stat span { margin: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; translate: none; }
  .deck-progress [aria-current="true"] .fill { animation: none; transform: scaleX(1); }
}
