:root {
  --ink: #0f1012;
  --ink-2: #16181b;
  --surface: #1c1f23;
  --surface-2: #24282d;
  --line: rgba(244, 237, 226, 0.1);
  --text: #f4ede2;
  --muted: #a9a196;
  --ember: #ff6a1a;
  --ember-hot: #ffb04a;
  --ember-deep: #d9361b;
  --flame: linear-gradient(135deg, var(--ember-hot) 0%, var(--ember) 45%, var(--ember-deep) 100%);
  --radius: 14px;
  --display: "Fraunces", Georgia, serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1200px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ember-hot);
}
.flame-text { background: var(--flame); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, .site-header.solid {
  background: rgba(15, 16, 18, 0.88); backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand img { height: 50px; width: auto; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links .pill { color: var(--ink); background: var(--flame); padding: 8px 16px; border-radius: 999px; }
.nav-links .pill:hover { color: var(--ink); filter: brightness(1.08); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media, .hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,16,18,0.55) 0%, rgba(15,16,18,0.05) 30%, rgba(15,16,18,0.35) 60%, var(--ink) 100%),
    linear-gradient(90deg, rgba(15,16,18,0.85) 0%, rgba(15,16,18,0.2) 60%, transparent 100%);
}
.hero-content { position: relative; z-index: 1; padding-bottom: 96px; padding-top: 140px; }
.hero h1 { font-size: clamp(44px, 7.5vw, 96px); max-width: 11ch; margin: 18px 0 22px; }
.hero .lede { font-size: clamp(17px, 2vw, 20px); color: #ddd4c8; max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer;
  background: rgba(244,237,226,0.06); color: var(--text); font-family: var(--body); transition: transform 0.2s, filter 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); background: rgba(244,237,226,0.12); }
.btn.primary { background: var(--flame); color: var(--ink); border: 0; }
.btn.primary:hover { filter: brightness(1.08); }
.now-showing {
  position: absolute; z-index: 1; right: 24px; bottom: 32px; font-size: 13px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.now-showing::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 12px var(--ember); }

/* ---------- stats band ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.stats li { padding: 28px 16px; text-align: center; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; }
.stats strong { display: block; font-family: var(--display); font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; line-height: 1.1; }
.stats span { font-size: 14px; color: var(--muted); }

/* ---------- sections ---------- */
section.block { padding: 112px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 56px); margin: 14px 0 18px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* spotlight */
.spotlight { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.spotlight-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface); box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.spotlight-media img, .spotlight-media video { width: 100%; height: 100%; object-fit: cover; }
.spotlight-media .logo-over { position: absolute; left: 50%; top: 50%; width: 62%; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 8px 20px rgba(0,0,0,0.6)); }
.spotlight h3 { font-size: clamp(30px, 3.4vw, 44px); margin: 12px 0 16px; }
.spotlight p { color: #d8cfc3; }
.symbol-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 28px; }
.sym { margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--surface); border: 1px solid var(--line); }
.sym video { width: 100%; height: 100%; object-fit: cover; }
.symbol-caption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.audio-btn { margin-top: 24px; }
.audio-btn .bars { display: inline-flex; gap: 3px; align-items: flex-end; height: 16px; }
.audio-btn .bars i { width: 3px; height: 30%; background: currentColor; border-radius: 2px; }
.audio-btn.playing .bars i { animation: eq 0.9s ease-in-out infinite; }
.audio-btn.playing .bars i:nth-child(2) { animation-delay: -0.3s; }
.audio-btn.playing .bars i:nth-child(3) { animation-delay: -0.6s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

.tags { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: rgba(255,106,26,0.12); color: var(--ember-hot); border: 1px solid rgba(255,106,26,0.25); }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 28px; margin: 20px 0 0; }
.facts div { display: flex; flex-direction: column-reverse; }
.facts dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.facts dd { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 600; }

/* featured grid */
.featured-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 96px; }
.game-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s, border-color 0.3s; }
.game-card:hover { transform: translateY(-4px); border-color: rgba(255,106,26,0.4); }
.card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-2); }
.card-media img, .card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media video { opacity: 0; transition: opacity 0.4s; }
.game-card.playing .card-media video { opacity: 1; }
.card-body { padding: 24px 26px 28px; }
.card-body h3 { font-size: 26px; margin-bottom: 10px; }
.card-body p { color: var(--muted); font-size: 16px; }
.card-body .facts dd { font-size: 20px; }
.more-row { display: flex; justify-content: center; margin-top: 56px; }

/* local pipeline */
.forge { background: radial-gradient(1200px 500px at 80% 0%, rgba(255,106,26,0.10), transparent 60%), var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.pillar .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,106,26,0.12); color: var(--ember-hot); margin-bottom: 18px; }
.pillar .icon svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 22px; margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: 15.5px; }
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.why h4 { margin: 0 0 8px; font-size: 17px; }
.why p { color: var(--muted); font-size: 15.5px; }

/* pipeline steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { position: relative; padding: 26px 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--display); font-size: 34px; font-weight: 600; background: var(--flame); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 10px; }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }

/* verification */
.verify { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.verify .section-head { margin-bottom: 0; position: sticky; top: 110px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.checks svg { width: 24px; height: 24px; color: var(--ember); margin-top: 2px; }
.checks h4 { margin: 0 0 4px; font-size: 17px; }
.checks p { color: var(--muted); font-size: 15px; }

/* hand-off */
.handoff { background: var(--ink-2); border-top: 1px solid var(--line); }
.deliverables { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
.deliverables li { padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.deliverables code { font-size: 14px; color: var(--ember-hot); font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }
.deliverables span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }

/* closing */
.closing { text-align: center; padding: 120px 0; background: radial-gradient(700px 360px at 50% 100%, rgba(255,106,26,0.18), transparent 70%); }
.closing h2 { font-size: clamp(34px, 5vw, 60px); max-width: 16ch; margin: 0 auto 20px; }
.closing p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.closing .cta-row { justify-content: center; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.site-footer img { height: 30px; width: auto; }

/* ---------- catalog page ---------- */
.catalog-head { padding: 150px 0 48px; }
.catalog-head h1 { font-size: clamp(40px, 6vw, 72px); margin: 14px 0 16px; }
.catalog-head p { color: var(--muted); max-width: 620px; font-size: 18px; }
.catalog { list-style: none; margin: 0; padding: 0 0 120px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.catalog figure { margin: 0; }
.catalog img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); transition: transform 0.25s, box-shadow 0.25s; }
.catalog li:hover img { transform: translateY(-3px) scale(1.015); box-shadow: 0 16px 40px rgba(0,0,0,0.5); }
.catalog figcaption { font-size: 14px; font-weight: 600; margin-top: 10px; color: #d8cfc3; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .pillars, .steps, .deliverables { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .spotlight { grid-template-columns: 1fr; gap: 36px; }
  .verify { grid-template-columns: 1fr; gap: 40px; }
  .verify .section-head { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav-links li.opt { display: none; }
  .nav-links { gap: 16px; }
  .brand img { height: 40px; }
  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .stats li { border-left: 0; border-top: 1px solid var(--line); }
  .stats li:nth-child(-n+2) { border-top: 0; }
  .stats li:last-child { grid-column: 1 / -1; }
  section.block { padding: 80px 0; }
  .featured-grid, .pillars, .steps, .why, .deliverables { grid-template-columns: 1fr; }
  .symbol-row { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .facts { gap: 20px; }
  .now-showing { display: none; }
  .hero-content { padding-bottom: 64px; }
  .catalog { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .catalog figcaption { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .game-card, .catalog img, .btn { transition: none; }
}

/* formats */
.formats { padding-bottom: 0; }
.format-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.format { position: relative; padding: 34px 30px 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.format::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--flame); }
.format-kicker { font-family: var(--display); font-size: 15px; color: var(--ember-hot); margin-bottom: 14px; }
.format h3 { font-size: 30px; margin-bottom: 14px; }
.format p { color: var(--muted); font-size: 16px; }
.format ul { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 15px; font-weight: 600; }
.format li::before { content: "—"; color: var(--ember); margin-right: 10px; }
@media (max-width: 1024px) { .format-grid { grid-template-columns: 1fr; } }

/* landing-page game list */
.game-list { border-top: 1px solid var(--line); }
.list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.list-head .section-head { margin-bottom: 0; }
.game-list .catalog { padding-bottom: 0; }
.game-list .more-row { gap: 14px; flex-wrap: wrap; }
