/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --bg-3: #18181b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #ecebe6;
  --text-2: #c9c9cf;
  --muted: #9a9aa2;
  --dim: #6b6b73;
  --accent: #e5732b;      /* overridden inline from site.config.ts */
  --accent-ink: #140b05;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --r: 10px;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.muted { color: var(--muted); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1; margin: 0; }
h1 { font-size: clamp(46px, 7.2vw, 98px); }
h2 { font-size: clamp(38px, 5vw, 66px); }
h3 { font-size: clamp(26px, 2.4vw, 32px); }
h1 em, h2 em { font-style: italic; color: var(--accent); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 56ch; margin-top: 26px; }
.platforms { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin: 0; }

/* ── Buttons & pills ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 14px; letter-spacing: 0.02em; line-height: 1;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--text); box-shadow: none; }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.cta-center { justify-content: center; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1;
  border: 1px solid var(--line-2); color: var(--text); white-space: nowrap;
}
.pill-released { border-color: color-mix(in srgb, #5fbf8a 50%, transparent); color: #8be0b0; }
.pill-upcoming { border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: var(--accent); }
.pill-development { color: var(--muted); }

/* ── Nav ────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 68px;
  display: flex; align-items: center;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.75), rgba(10, 10, 11, 0));
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.nav.scrolled { background: rgba(10, 10, 11, 0.74); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.mark { flex: none; object-fit: contain; }
.wordmark {
  font-weight: 700; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; line-height: 1;
  background: linear-gradient(180deg, #ffffff, #c9c9cf 55%, #f0f0f2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.links { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; color: var(--muted); }
.links a:hover { color: var(--text); }
.links .btn { color: var(--accent-ink); }
.burger { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 0; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; align-items: center; }
.burger span { width: 22px; height: 2px; background: var(--text); transition: transform 0.25s; }
.nav.open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 130px 0 40px; overflow: hidden;
  background:
    radial-gradient(900px 620px at 12% 108%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%),
    radial-gradient(700px 500px at 92% -8%, rgba(255, 255, 255, 0.05), transparent 60%),
    var(--bg);
}
.hero-short { min-height: 70svh; }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.85; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-plate {
  position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line-2);
  transform: perspective(1400px) rotateY(-8deg) rotateX(2deg);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-plate:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.hero-plate img, .hero-plate svg { width: 100%; height: 100%; object-fit: cover; }
.hero-plate::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55)); pointer-events: none; }
.plate-label { position: absolute; z-index: 1; left: 16px; bottom: 14px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }
.ticker { display: flex; align-items: center; gap: 14px; margin-top: clamp(48px, 7vh, 80px); padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); position: relative; }
.ticker strong { color: var(--text); font-weight: 600; }
.ticker a { margin-left: auto; color: var(--accent); white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); flex: none; }

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 56px; }
.sec-sub { color: var(--muted); max-width: 44ch; justify-self: end; margin: 0; }

/* ── Game cards ─────────────────────────────────────────────────────────── */
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg-2);
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.card-art { aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.card-art img, .card-art svg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.card:hover .card-art :is(img, svg) { transform: scale(1.04); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.card-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.card-body p { margin: 0; color: var(--muted); }
.card-wide { grid-column: span 2; display: grid; grid-template-columns: 1.25fr 1fr; }
.card-wide .card-art { aspect-ratio: auto; min-height: 320px; }
.card-wide .card-body { justify-content: center; padding: 32px; gap: 14px; }
.card-wide h3 { font-size: clamp(34px, 3.4vw, 48px); }

/* ── Studio ─────────────────────────────────────────────────────────────── */
.studio-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: start; }
.studio-grid h2 { margin-bottom: 28px; }
.studio-grid p { color: var(--muted); font-size: 17px; max-width: 58ch; }
.facts { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.facts div { padding: 22px; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts div:nth-last-child(-n + 2) { border-bottom: 0; }
.facts dt { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 30px; line-height: 1; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 88px; }
.pillar { padding: 28px; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, var(--bg-2), transparent); }
.pillar .n { font-family: var(--serif); font-size: 16px; color: var(--accent); margin-bottom: 26px; display: block; }
.pillar h4 { margin: 0 0 10px; font-size: 19px; font-weight: 600; }
.pillar p { margin: 0; color: var(--muted); font-size: 15px; }
.timeline { margin-top: 88px; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--line-2); }
.tl { padding: 26px 12px 0 0; position: relative; }
.tl::before { content: ""; position: absolute; top: 2px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--muted); }
.tl.now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 14px var(--accent); }
.tl .y { font-family: var(--serif); font-size: 28px; line-height: 1; }
.tl .t { font-size: 14px; color: var(--muted); margin-top: 6px; }
.tl:hover .t { color: var(--text); }

/* ── News ───────────────────────────────────────────────────────────────── */
.news-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.news { display: grid; grid-template-columns: 150px 1fr auto; gap: 32px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); }
.news time { font-size: 13px; color: var(--dim); letter-spacing: 0.06em; text-transform: uppercase; }
.news h3 { font-size: clamp(24px, 2.2vw, 30px); }
.news p { margin: 10px 0 0; color: var(--muted); max-width: 64ch; }

/* ── Contact & footer ───────────────────────────────────────────────────── */
.contact {
  padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); text-align: center;
  background: radial-gradient(760px 320px at 50% 125%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%);
}
.contact h2 { margin-bottom: 8px; }
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h5 { margin: 0 0 14px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.foot-grid a:not(.brand) { display: block; padding: 4px 0; }
.foot-grid a:not(.brand):hover { color: var(--text); }
.foot-blurb { margin: 16px 0 0; max-width: 34ch; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }

/* ── Game detail ────────────────────────────────────────────────────────── */
.game-hero { position: relative; min-height: 80svh; display: flex; align-items: flex-end; padding: 140px 0 64px; overflow: hidden; }
.game-hero-art { position: absolute; inset: 0; z-index: 0; }
.game-hero-art :is(img, svg) { width: 100%; height: 100%; object-fit: cover; }
.game-hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 11, 0.5), rgba(10, 10, 11, 0.15) 35%, rgba(10, 10, 11, 0.7) 70%, var(--bg) 100%); }
.game-hero-art.light::after { background: linear-gradient(180deg, rgba(10, 10, 11, 0.78), rgba(10, 10, 11, 0.5) 40%, rgba(10, 10, 11, 0.82) 70%, var(--bg) 100%); }
.game-hero-copy { position: relative; z-index: 1; max-width: 800px; }
.game-hero-copy .lede { color: var(--text-2); }
.game-hero-copy .platforms { margin-top: 22px; color: var(--muted); }
.back { font-size: 13px; color: var(--muted); display: inline-block; margin-bottom: 28px; }
.back:hover { color: var(--text); }
.game-body { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 64px; padding: 72px 0 56px; }
.game-desc p { font-size: 18px; color: var(--text-2); max-width: 64ch; margin-bottom: 1.2em; }
.game-desc p:first-child { font-size: clamp(22px, 2vw, 26px); color: var(--text); font-family: var(--serif); line-height: 1.3; }
.game-side { border: 1px solid var(--line); border-radius: var(--r); padding: 26px; background: var(--bg-2); align-self: start; position: sticky; top: 96px; }
.game-side h4 { margin: 0 0 12px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.game-side ul { margin: 0 0 26px; padding: 0; list-style: none; }
.game-side li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.game-side dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 14px; align-items: center; }
.game-side dt { color: var(--dim); }
.game-side dd { margin: 0; }
.shots { padding-bottom: 96px; }
.shots-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shot { aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.shot :is(img, svg) { width: 100%; height: 100%; object-fit: cover; }
.more { padding: 0 0 110px; }
.more h2 { font-size: clamp(30px, 3vw, 40px); margin-bottom: 28px; }

/* ── Reveal ─────────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-plate, .hero-plate:hover { transform: none; }
  .games-grid { grid-template-columns: 1fr 1fr; }
  .card-wide { grid-template-columns: 1fr; }
  .card-wide .card-art { aspect-ratio: 16 / 10; min-height: 0; }
  .studio-grid { grid-template-columns: 1fr; gap: 40px; }
  .pillars { grid-template-columns: 1fr; }
  .game-body { grid-template-columns: 1fr; gap: 40px; }
  .game-side { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .sec-head { grid-template-columns: 1fr; gap: 16px; }
  .sec-sub { justify-self: start; }
  .links {
    display: none; position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: flex-start;
    background: var(--bg); padding: 20px var(--gutter) 28px; border-bottom: 1px solid var(--line); gap: 18px; font-size: 18px;
  }
  .nav.open { background: var(--bg); border-color: var(--line); }
  .nav.open .links { display: flex; }
  .burger { display: flex; }
}
@media (max-width: 600px) {
  .games-grid, .shots-strip, .facts, .foot-grid { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; }
  .facts div:nth-child(odd) { border-right: 0; }
  .facts div:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .facts div:last-child { border-bottom: 0; }
  .news { grid-template-columns: 1fr; gap: 8px; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .timeline::before { display: none; }
  .ticker { flex-wrap: wrap; }
  .ticker a { margin-left: 22px; }
  .hero { padding-top: 110px; }
}

/* ── Single-game feature section (home) ─────────────────────────────────── */
.sec-sub-serif { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.2; color: var(--text-2); max-width: 20ch; }
.feature-body { padding: 0 0 40px; }
.platforms-spaced { margin-top: 22px; }
.game-side.reveal { align-self: start; }
a.shot { display: block; transition: transform 0.35s, border-color 0.35s; }
a.shot:hover { transform: translateY(-3px); border-color: var(--line-2); }
.facts div:nth-last-child(-n + 2) { border-bottom: 0; }
@media (max-width: 600px) {
  .sec-sub-serif { max-width: none; }
}
