/* JTS Interactive: studio website. */

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/InstrumentSans-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #0a0a0c;
  --bg-2: #111114;
  --bg-3: #18181c;
  --line: rgba(243, 241, 236, 0.12);
  --line-2: rgba(243, 241, 236, 0.24);
  --text: #f3f1ec;
  --muted: #aaa69e;
  --dim: #7a766f;
  --ember: #ff5a1f;
  --ember-hi: #ff7a47;
  --accent: var(--ember);
  --sc: #f4c64f;
  --ath: #4f86ff;
  --burner: #b6f27c;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, "Courier New", monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --header: 76px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #0a0a0c; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 200;
  padding: 12px 18px; background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Type */
.display {
  font-weight: 700;
  font-stretch: 75%;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.9;
}
.display em { font-style: normal; color: var(--accent); }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); flex: none; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--muted); max-width: 38em; }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; color: var(--text); }
.text-link::after { content: "→"; color: var(--accent); transition: transform 0.25s ease; }
.text-link:hover::after { transform: translateX(4px); }
.arrow { display: inline-block; transition: transform 0.25s ease; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  font: 600 15px/1.1 var(--font); letter-spacing: 0.02em; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-accent { background: var(--accent); color: #0a0a0c; }
.btn-accent:hover { background: var(--text); }
/* The header button is for Stable Champs: studio ember everywhere, Stable Champs gold on its own page. */
.site-nav .btn-accent { background: var(--ember); }
.theme-sc .site-nav .btn-accent { background: var(--sc); }
.site-nav .btn-accent:hover { background: var(--text); }
.btn-light { background: var(--text); color: #0a0a0c; }
.btn-light:hover { background: var(--accent); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(10, 10, 12, 0.25); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--text); background: rgba(243, 241, 236, 0.08); }
.play-icon { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: saturate(1.3) blur(14px);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
.has-hero .site-header:not(.scrolled):not(.open) { background: linear-gradient(rgba(10, 10, 12, 0.7), rgba(10, 10, 12, 0)); border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
main { padding-top: var(--header); }
.has-hero main { padding-top: 0; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: auto; height: 24px; }
.brand span {
  padding-left: 14px; border-left: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); line-height: 1.6;
}
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.site-nav > a:not(.btn) { position: relative; padding: 8px 0; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--muted); transition: color 0.2s ease; }
.site-nav > a:not(.btn):hover, .site-nav > a[aria-current="page"] { color: var(--text); }
.site-nav > a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); }
.menu-toggle {
  display: none; align-items: center; gap: 10px; min-height: 42px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 2px; background: none; cursor: pointer; font-size: 14px; font-weight: 600;
}
.menu-icon, .menu-icon::before { display: block; width: 16px; height: 2px; background: currentColor; transition: transform 0.25s ease; }
.menu-icon { position: relative; transform: translateY(-3px); }
.menu-icon::before { content: ""; position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(-6px) rotate(-90deg); }

/* Home hero */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-home { min-height: min(100svh, 1000px); display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--header) + 40px) 0 clamp(40px, 6vw, 72px); }
.hero-media { position: absolute; inset: 0; z-index: -1; background: #050506; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(10, 10, 12, 1) 0%, rgba(10, 10, 12, 0.72) 30%, rgba(10, 10, 12, 0.2) 62%, rgba(10, 10, 12, 0.5) 100%),
    linear-gradient(90deg, rgba(10, 10, 12, 0.78) 0%, rgba(10, 10, 12, 0.25) 55%, rgba(10, 10, 12, 0) 80%);
}
.hero-inner { position: relative; }
.hero-home h1 { margin: 22px 0 26px; max-width: 11.5em; font-size: clamp(56px, 9.4vw, 152px); }
.hero-home .lede { color: rgba(243, 241, 236, 0.84); margin-bottom: 34px; }
.hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: clamp(40px, 6vw, 72px); padding-top: 22px; border-top: 1px solid var(--line); }
.now-card { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.now-card img { width: 110px; }
.now-card small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sc); }
.now-card b { font-size: 18px; }
.now-card .arrow { color: var(--sc); }
.now-card:hover .arrow { transform: translateX(4px); }
.hero-credit { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }

/* Sections */
.section { padding: clamp(80px, 10vw, 150px) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head h2 { margin-top: 18px; font-size: clamp(44px, 6.4vw, 104px); max-width: 12em; }
.sec-head .lede { margin-top: 20px; }

/* Game panels */
.panels { display: grid; gap: clamp(16px, 2vw, 24px); }
.panel {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: clamp(540px, 56vw, 720px);
  padding: clamp(28px, 4.4vw, 64px);
  border-radius: var(--radius); background: #000;
}
.panel-art { position: absolute; inset: 0; z-index: -2; }
.panel-art img, .panel-art video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.panel:hover .panel-art img, .panel:hover .panel-art video { transform: scale(1.03); }
.panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, rgba(10, 10, 12, 0.95) 0%, rgba(10, 10, 12, 0.55) 38%, rgba(10, 10, 12, 0) 70%),
    linear-gradient(90deg, rgba(10, 10, 12, 0.8) 0%, rgba(10, 10, 12, 0.2) 50%, rgba(10, 10, 12, 0) 72%);
}
.panel-body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 620px; }
.panel-title img { width: min(360px, 78vw); filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55)); }
.panel-ath .panel-title img { width: min(480px, 80vw); }
.panel-title-text { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: clamp(56px, 8vw, 116px); font-stretch: 75%; text-transform: uppercase; line-height: 0.85; }
.panel-title-burner { font-size: clamp(64px, 8vw, 112px); letter-spacing: -0.04em; line-height: 0.85; font-stretch: 100%; }
.panel-title-burner span, .burner-word span { color: var(--burner); }
.panel-genre { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.panel-desc { font-size: 18px; color: rgba(243, 241, 236, 0.86); max-width: 560px; }
.panel-sc .panel-art img { object-position: 50% 50%; }
.panel-burner .panel-art img { object-position: 50% 50%; }
.panel-burner::before { background: linear-gradient(0deg, rgba(5, 9, 6, 0.96) 0%, rgba(5, 9, 6, 0.5) 40%, rgba(5, 9, 6, 0) 70%), linear-gradient(90deg, rgba(5, 9, 6, 0.85) 0%, rgba(5, 9, 6, 0) 60%); }

.status {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px;
  border: 1px solid var(--line-2); border-radius: 2px; background: rgba(10, 10, 12, 0.55); backdrop-filter: blur(6px);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.3;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.status-live .dot { background: #3ddc84; animation: pulse 2.2s infinite; }
.status-dev .dot { background: var(--ath); }
.status-play .dot { background: var(--burner); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

/* Spotlight: next game */
.spot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.spot-copy h2 { margin: 18px 0 24px; font-size: clamp(44px, 5.6vw, 88px); }
.spot-copy > p:not(.eyebrow) { color: var(--muted); margin-bottom: 32px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-bottom: 36px; background: var(--line); border: 1px solid var(--line); }
.stats li { padding: 18px 20px; background: var(--bg-2); }
.stats b { display: block; font-size: 46px; font-stretch: 75%; line-height: 1; color: var(--text); }
.stats span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.frame { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: #000; }
.frame video, .frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.frame-tag {
  position: absolute; left: 14px; top: 14px; padding: 5px 9px; background: rgba(10, 10, 12, 0.8);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}

/* Trailers */
.trailers { display: grid; grid-template-columns: minmax(0, 1.53fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); align-items: stretch; }
.trailer {
  position: relative; display: block; width: 100%; padding: 0; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius); background: #000; text-align: left;
}
.trailer img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease, opacity 0.3s ease; opacity: 0.86; }
.trailer-wide img { aspect-ratio: 16 / 9; }
.trailer-tall { grid-column: 2; grid-row: 1 / span 2; }
.trailer-tall img { aspect-ratio: auto; }
.trailer:hover img { transform: scale(1.03); opacity: 1; }
.trailer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 10, 12, 0.88), rgba(10, 10, 12, 0) 45%); }
.play-btn {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  background: rgba(10, 10, 12, 0.55); border: 2px solid rgba(243, 241, 236, 0.85); backdrop-filter: blur(6px);
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.play-btn::before { content: ""; margin-left: 5px; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.trailer:hover .play-btn { background: var(--accent); border-color: var(--accent); transform: translate(-50%, -50%) scale(1.06); }
.trailer-meta { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; }
.trailer-meta b { display: block; font-size: clamp(26px, 2.6vw, 36px); font-stretch: 78%; text-transform: uppercase; line-height: 1; }
.trailer-meta span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* Studio teaser and quotes */
.big-quote { margin: 26px 0 30px; }
.big-quote p { max-width: 21em; font-size: clamp(30px, 3.8vw, 56px); font-weight: 600; font-stretch: 85%; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
.big-quote footer { margin-top: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; padding: clamp(72px, 9vw, 130px) 0; background: var(--accent); color: #0a0a0c; }
.cta-band .eyebrow { color: rgba(10, 10, 12, 0.7); }
.cta-band .eyebrow::before { background: #0a0a0c; }
.cta-band h2 { margin: 18px 0 20px; font-size: clamp(44px, 6.4vw, 104px); max-width: 13em; }
.cta-band p:not(.eyebrow) { max-width: 40em; font-size: 19px; color: rgba(10, 10, 12, 0.78); margin-bottom: 30px; }
.cta-band .btn-dark { background: #0a0a0c; color: var(--text); }
.cta-band .btn-dark:hover { background: #fff; color: #0a0a0c; }
.cta-band .btn-outline { border-color: rgba(10, 10, 12, 0.45); color: #0a0a0c; }
.cta-band .btn-outline:hover { border-color: #0a0a0c; background: rgba(10, 10, 12, 0.08); }
.cta-band :focus-visible { outline-color: #0a0a0c; }

/* Page heads (inner pages without a media hero) */
.page-head { padding: clamp(64px, 9vw, 130px) 0 clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 22px 0 24px; font-size: clamp(56px, 9vw, 150px); max-width: 10em; }

/* Game pages */
.game-hero { min-height: min(92svh, 920px); display: flex; align-items: flex-end; padding: calc(var(--header) + 60px) 0 clamp(48px, 6vw, 80px); }
.game-hero .hero-media::after {
  background:
    linear-gradient(0deg, rgba(10, 10, 12, 1) 0%, rgba(10, 10, 12, 0.6) 32%, rgba(10, 10, 12, 0.05) 64%, rgba(10, 10, 12, 0.45) 100%),
    linear-gradient(90deg, rgba(10, 10, 12, 0.85) 0%, rgba(10, 10, 12, 0.3) 48%, rgba(10, 10, 12, 0) 72%);
}
.game-hero .hero-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.game-hero .lede { color: rgba(243, 241, 236, 0.86); }
.game-logo { width: min(520px, 86vw); filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.6)); }
.game-title { font-size: clamp(72px, 13vw, 210px); }
.game-tagline { font-size: clamp(26px, 3vw, 44px); font-stretch: 80%; text-transform: uppercase; line-height: 1; }
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }

.facts-bar { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.facts-bar dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 0; }
.facts-bar dl div { padding: 22px 24px 22px 0; border-right: 1px solid var(--line); }
.facts-bar dl div + div { padding-left: 24px; }
.facts-bar dl div:last-child { border-right: 0; }
.facts-bar dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.facts-bar dd { margin: 0; font-weight: 600; line-height: 1.4; }

.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro h2 { margin-top: 18px; font-size: clamp(44px, 5.6vw, 92px); }
.intro .copy p + p { margin-top: 16px; }
.intro .copy p { color: var(--muted); font-size: 18px; }
.intro .copy strong { color: var(--text); font-weight: 600; }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: clamp(40px, 5vw, 64px); background: var(--line); border: 1px solid var(--line); }
.trio li { padding: 28px; background: var(--bg); }
.trio b { display: block; font-size: clamp(40px, 4vw, 60px); font-stretch: 75%; line-height: 1; color: var(--accent); text-transform: uppercase; }
.trio span { display: block; margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.5; }

.rows { display: grid; gap: clamp(64px, 9vw, 130px); }
.row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.row:nth-child(even) .row-media { order: 2; }
.row-media { position: relative; }
.row-media img, .row-media video { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.row-copy h3 { margin: 16px 0 18px; font-size: clamp(36px, 4vw, 64px); font-stretch: 77%; text-transform: uppercase; line-height: 0.92; }
.row-copy p { color: var(--muted); }
.row-copy p + p { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips li {
  padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 2px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); line-height: 1.4;
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.card img { width: 100%; aspect-ratio: 2.2 / 1; object-fit: cover; }
.card-body { padding: 24px 26px 28px; }
.card h3 { font-size: 28px; font-stretch: 78%; text-transform: uppercase; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }

.big-feature { position: relative; padding: clamp(40px, 5vw, 72px); border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(120% 120% at 100% 0%, rgba(79, 134, 255, 0.16), rgba(10, 10, 12, 0) 60%), var(--bg-2); }
.big-feature h2 { margin: 18px 0 22px; font-size: clamp(48px, 6.4vw, 108px); max-width: 11em; }
.big-feature > p { max-width: 44em; color: var(--muted); font-size: 18px; }
.big-feature .stats { margin: clamp(32px, 4vw, 48px) 0 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.big-feature .stats li { background: var(--bg); }
.list-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 40px; margin-top: clamp(32px, 4vw, 48px); }
.list-cols li { position: relative; padding: 14px 0 14px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; line-height: 1.5; }
.list-cols li::before { content: ""; position: absolute; left: 0; top: 23px; width: 8px; height: 8px; background: var(--accent); }
.list-cols li strong { color: var(--text); font-weight: 600; }

.events { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.events div { padding: 24px; background: var(--bg); }
.events h3 { font-size: 22px; font-stretch: 80%; text-transform: uppercase; margin-bottom: 10px; color: var(--accent); }
.events p { font-size: 15px; color: var(--muted); line-height: 1.55; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.gallery button { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #000; cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.6s ease, opacity 0.3s ease; opacity: 0.92; }
.gallery button:hover img { transform: scale(1.04); opacity: 1; }
.gallery-big { grid-column: span 2; grid-row: span 2; }
.gallery-big img { height: 100%; }
.fine { margin-top: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--dim); }

.inline-trailer { max-width: 1100px; margin: 0 auto; }
.inline-trailer .trailer img { aspect-ratio: 16 / 9; }

.notice { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: 2px; background: var(--bg-2); }
.notice b { display: block; margin-bottom: 4px; }
.notice p { color: var(--muted); font-size: 15px; }
.age { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border: 2px solid var(--text); font-weight: 700; font-size: 20px; font-stretch: 80%; }

.more-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.mini { position: relative; display: flex; align-items: flex-end; min-height: 260px; padding: 24px; overflow: hidden; isolation: isolate; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; }
.mini img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.mini::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 10, 12, 0.92), rgba(10, 10, 12, 0.1) 70%); }
.mini:hover img { transform: scale(1.04); }
.theme-sc .mini-sc, .theme-ath .mini-ath, .theme-burner .mini-burner { display: none; }
.mini small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.mini b { font-size: 34px; font-stretch: 78%; text-transform: uppercase; line-height: 1; }

/* Burner page */
.theme-burner { --accent: var(--burner); }
.theme-sc { --accent: var(--sc); }
.theme-ath { --accent: var(--ath); }
.burner-hero { padding: calc(var(--header) + 48px) 0 clamp(56px, 7vw, 96px); background: radial-gradient(90% 80% at 75% 40%, rgba(110, 170, 70, 0.22), rgba(10, 10, 12, 0) 70%), #070a07; border-bottom: 1px solid var(--line); }
.burner-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.burner-grid .hero-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.burner-word { font-size: clamp(88px, 13vw, 200px); font-weight: 700; letter-spacing: -0.05em; line-height: 0.8; }
.phone {
  position: relative; width: min(360px, 78vw); margin: 0 auto; padding: 12px; border-radius: 46px;
  background: #1b1d1b; box-shadow: 0 0 0 2px #2b2f2b, 0 40px 80px -20px rgba(0, 0, 0, 0.8), 0 0 120px -30px rgba(182, 242, 124, 0.35);
}
.phone video, .phone img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 36px; background: #000; }
.phone .sound {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(7, 10, 7, 0.82); color: var(--text); font-size: 13px; font-weight: 600; backdrop-filter: blur(6px);
}
.phone .sound:hover { background: var(--burner); color: #0a0a0c; }
.phone-shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.phone-shots button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #000; cursor: zoom-in; }
.phone-shots img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; transition: transform 0.6s ease; }
.phone-shots button:hover img { transform: scale(1.03); }

/* Studio page */
.studio-story { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.studio-mark { position: sticky; top: calc(var(--header) + 40px); }
.studio-mark img { width: min(100%, 420px); }
.studio-mark p { margin-top: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.prose p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.7; color: var(--muted); }
.prose p + p { margin-top: 20px; }
.prose p:first-child { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.35; color: var(--text); font-weight: 500; }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.principles li { padding: clamp(24px, 3vw, 36px); background: var(--bg); }
.principles li::before { content: ""; display: block; width: 28px; height: 3px; margin-bottom: 22px; background: var(--accent); }
.principles h3 { font-size: clamp(26px, 2.4vw, 34px); font-stretch: 78%; text-transform: uppercase; line-height: 0.95; margin-bottom: 14px; }
.principles p { font-size: 16px; color: var(--muted); }
.timeline { border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.timeline time, .timeline .when { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.timeline h3 { font-size: clamp(30px, 3vw, 44px); font-stretch: 78%; text-transform: uppercase; line-height: 1; }
.timeline p { color: var(--muted); font-size: 16px; margin-top: 6px; }
.fact-list { border-top: 1px solid var(--line); margin: 0; }
.fact-list div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.fact-list dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
.fact-list dd { margin: 0; font-weight: 500; }
.fact-list a { text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* Contact page */
.email-big {
  display: inline-block; font-size: clamp(30px, 6.6vw, 104px); font-weight: 700; font-stretch: 75%; line-height: 1; letter-spacing: -0.01em;
  text-decoration: none; border-bottom: 3px solid var(--accent); padding-bottom: 6px; overflow-wrap: anywhere;
}
.email-big:hover { color: var(--accent); }
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contact-cards li { padding: clamp(24px, 3vw, 40px); background: var(--bg); }
.contact-cards h2 { font-size: clamp(28px, 2.6vw, 38px); font-stretch: 78%; text-transform: uppercase; margin-bottom: 14px; }
.contact-cards p { color: var(--muted); font-size: 16px; }
.contact-cards p + p { margin-top: 12px; }
.contact-cards a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 4px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 1px solid var(--line-2); border-radius: 2px; text-decoration: none; font-weight: 600; }
.socials a:hover { border-color: var(--text); }

/* Privacy and other text pages */
.legal { max-width: 760px; }
.legal h2 { margin: 48px 0 14px; font-size: clamp(26px, 2.6vw, 34px); font-stretch: 80%; text-transform: uppercase; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 14px; }
.legal ul { margin-top: 12px; }
.legal li { position: relative; padding-left: 22px; }
.legal li + li { margin-top: 10px; }
.legal li::before { content: ""; position: absolute; left: 0; top: 12px; width: 7px; height: 7px; background: var(--accent); }
.legal a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 4px; }
.updated { font-family: var(--mono); font-size: 13px; color: var(--dim); }

/* 404 */
.lost { min-height: calc(100svh - var(--header)); display: flex; align-items: center; padding: 80px 0; }
.lost h1 { margin: 22px 0 22px; font-size: clamp(64px, 11vw, 180px); }
.lost .lede { margin-bottom: 34px; }

/* Footer */
.site-footer { padding: clamp(64px, 8vw, 100px) 0 36px; border-top: 1px solid var(--line); background: var(--bg); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: clamp(40px, 6vw, 96px); padding-bottom: clamp(48px, 6vw, 72px); }
.foot-brand p { margin: 22px 0 18px; max-width: 26em; color: var(--muted); font-size: 16px; }
.foot-email { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent); }
.foot-email:hover { color: var(--accent); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-cols h2 { margin-bottom: 16px; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.foot-cols li + li { margin-top: 10px; }
.foot-cols a { font-size: 15px; text-decoration: none; color: var(--muted); }
.foot-cols a:hover { color: var(--text); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--dim); }

/* Dialogs */
.modal { max-width: none; max-height: none; padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible; }
.modal::backdrop { background: rgba(5, 5, 6, 0.94); }
.video-modal { width: min(1200px, 92vw); }
.video-modal.portrait { width: min(420px, 86vw); }
.modal-frame video { width: 100%; max-height: 84vh; background: #000; border-radius: var(--radius); }
.modal-close {
  position: absolute; right: 0; top: -58px; display: grid; place-items: center; width: 46px; height: 46px;
  border: 1px solid var(--line-2); border-radius: 50%; background: rgba(10, 10, 12, 0.7); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: var(--text); color: #0a0a0c; }
.lightbox { width: min(1280px, 94vw); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; background: #000; border-radius: var(--radius); }
.lightbox.portrait { width: min(440px, 86vw); }
.lightbox figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.lb-btn {
  position: absolute; top: calc(50% - 40px); display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(10, 10, 12, 0.7); color: var(--text); font-size: 20px;
}
.lb-btn:hover { background: var(--text); color: #0a0a0c; }
.lb-prev { left: -70px; }
.lb-next { right: -70px; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 1100px) {
  .spot-grid, .intro, .studio-story { grid-template-columns: minmax(0, 1fr); }
  .studio-mark { position: static; }
  .studio-mark img { width: 260px; }
  .row, .row:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .row:nth-child(even) .row-media { order: 0; }
  .big-feature .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-cards { grid-template-columns: minmax(0, 1fr); }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .burner-grid { grid-template-columns: minmax(0, 1fr); }
  .phone-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header: 64px; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px var(--gutter) 22px; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-header.open { background: var(--bg); }
  .site-nav > a:not(.btn) { padding: 16px 0; font-size: 22px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--line); }
  .site-nav > a[aria-current="page"]::after { display: none; }
  .site-nav > a[aria-current="page"] { color: var(--accent); }
  .site-nav .btn { margin-top: 20px; min-height: 52px; font-size: 15px; }
  html:not(.js) .site-nav { position: static; display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px 18px; padding: 0 0 12px; border: 0; background: none; }
  html:not(.js) .site-nav > a:not(.btn) { font-size: 15px; padding: 4px 0; border: 0; }
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .bar { flex-wrap: wrap; }
  .trailers { grid-template-columns: minmax(0, 1fr); }
  .trailer-tall { grid-column: auto; grid-row: auto; max-width: 420px; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .fact-list div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .modal-close { top: -56px; }
  .lb-prev, .lb-next { top: auto; bottom: -66px; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

/* Phone */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .brand img { height: 20px; }
  .brand span { font-size: 10px; letter-spacing: 0.26em; padding-left: 11px; }
  .actions .btn { flex: 1 1 auto; }
  .hero-home { min-height: 100svh; }
  .hero-home h1 { font-size: clamp(50px, 14.5vw, 80px); }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .panel { min-height: 600px; padding: 24px 20px; }
  .panel::before { background: linear-gradient(0deg, rgba(10, 10, 12, 0.97) 0%, rgba(10, 10, 12, 0.7) 45%, rgba(10, 10, 12, 0) 78%); }
  .panel-sc .panel-art img { object-position: 50% 20%; }
  .panel-ath .panel-art video { object-position: 30% 50%; }
  .panel-burner .panel-art img { object-position: 80% 50%; }
  .panel-burner::before { background: linear-gradient(0deg, rgba(5, 9, 6, 0.98) 0%, rgba(5, 9, 6, 0.93) 52%, rgba(5, 9, 6, 0.35) 80%, rgba(5, 9, 6, 0.1) 100%); }
  .panel-desc { font-size: 16px; }
  .stats b { font-size: 38px; }
  .trio { grid-template-columns: minmax(0, 1fr); }
  .big-feature .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gallery-big { grid-column: span 2; grid-row: auto; }
  .facts-bar dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-bar dl div, .facts-bar dl div + div { padding: 16px 12px 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .facts-bar dl div:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line); }
  .game-hero { min-height: 88svh; }
  .notice { flex-direction: column; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .play-btn { width: 68px; height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
