/* Gameshlok Studio — v3. Studio frame: ink, bone paper, the logo's sun. Alleymental keeps its own night world (body.game). */

@font-face { font-family: "Big Shoulders"; src: url("/assets/fonts/big-shoulders.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "Schibsted"; src: url("/assets/fonts/schibsted.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Built Titling"; src: url("/assets/fonts/built-titling-bd.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: oklch(0.13 0.01 60);
  --ink-2: oklch(0.22 0.014 60);
  --ink-3: oklch(0.30 0.014 60);
  --bone: oklch(0.175 0.012 60);
  --bone-2: oklch(0.215 0.014 60);
  --sun: oklch(0.83 0.165 78);
  --sun-deep: oklch(0.70 0.17 55);
  --sun-text: oklch(0.83 0.165 78);
  --text-on-ink: oklch(0.95 0.012 85);
  --muted-on-ink: oklch(0.74 0.02 75);
  --muted-on-bone: oklch(0.74 0.02 75);
  --rule-ink: oklch(0.95 0.012 85 / 0.14);
  --rule-bone: oklch(0.95 0.012 85 / 0.14);
  --display: "Big Shoulders", "Arial Narrow", Impact, sans-serif;
  --body: "Schibsted", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--bone); color: var(--text-on-ink); font: 400 18px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 0.95; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--sun); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 8px; }
main { flex: 1; }

.shell { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.paper-2 { background: var(--bone-2); }

/* ---------- type ---------- */
.d { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.005em; }
.d-xxl { font-size: clamp(76px, 15vw, 232px); line-height: 0.82; }
.d-xl { font-size: clamp(56px, 9vw, 132px); line-height: 0.86; }
.d-l { font-size: clamp(40px, 5.6vw, 80px); line-height: 0.9; }
.kicker { display: block; font: 700 13px/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.lede { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; max-width: 34ch; }
.prose { max-width: 62ch; }
.muted { color: var(--muted-on-bone); }
.ulink { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--sun-text); }
.ulink:hover { text-decoration-color: currentColor; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; font: 700 16px/1 var(--body); text-decoration: none; border: 2px solid currentColor; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.btn-sun { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.btn-sun:hover { background: var(--text-on-ink); border-color: var(--text-on-ink); }
.btn-line { background: transparent; }
.btn-line:hover { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.arrow::after { content: "\2192"; font-weight: 400; margin-left: 8px; display: inline-block; transition: transform 0.3s var(--ease); }
a:hover .arrow::after, a.arrow:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.site-head { position: relative; z-index: 30; background: var(--ink); color: var(--text-on-ink); }
.site-head.over { position: absolute; inset: 0 0 auto 0; background: linear-gradient(oklch(0.12 0.02 270 / 0.55), transparent); }
.site-head .shell { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 32px); }
.nav a { font: 600 15px/1 var(--body); text-decoration: none; opacity: 0.82; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { opacity: 1; border-bottom-color: var(--sun); }
@media (max-width: 640px) { .nav { gap: 16px; } .nav a { font-size: 14px; } }
@media (max-width: 400px) { .brand img { height: 38px; } .nav { gap: 12px; } .nav a { font-size: 13px; } }

/* ---------- hero (home) ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; max-height: 1100px; overflow: hidden; background: oklch(0.12 0.02 270); color: var(--text-on-ink); isolation: isolate; }
.stage { background: linear-gradient(90deg, oklch(0.32 0.08 262) 0%, oklch(0.36 0.06 300) 48%, oklch(0.52 0.08 20) 72%, oklch(0.55 0.09 30) 100%); position: absolute; left: 50%; top: 50%; width: max(108%, calc(108svh * 2.5473)); aspect-ratio: 8192 / 3216; transform: translate(-50%, -50%); max-height: none; }

.stage img, .stage .motes { position: absolute; }
.stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 22%; background: linear-gradient(transparent, oklch(0.12 0.02 270)); }
.stage .sky, .stage .world { inset: 0; width: 100%; height: 100%; }
/* only the hero moves: pointer and scroll offsets; the sky and the city with the giants stay still */
.stage .alley { left: 32.59%; top: 37.25%; width: 35.8%; will-change: transform; transform: translate3d(calc(var(--px, 0) * 8px), calc(var(--py, 0) * 6px + var(--sy, 0) * 0.1px), 0); }
.stage .motes { inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(60% 55% at 0% 100%, oklch(0.12 0.02 270 / 0.82), transparent 70%), linear-gradient(180deg, transparent 72%, oklch(0.12 0.02 270 / 0.7) 100%); pointer-events: none; }
.hero-copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(24px, 6vh, 64px); display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.hero-copy .game { max-width: 560px; }
.hero-copy .logo { width: min(440px, 78vw); margin: 14px 0 12px; filter: drop-shadow(0 4px 14px oklch(0 0 0 / 0.5)); }
.hero-copy p { margin: 0; font-size: clamp(17px, 1.5vw, 20px); text-shadow: 0 2px 12px oklch(0 0 0 / 0.6); max-width: 40ch; }
.hero-copy .actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 720px) { .hero-copy .actions { width: 100%; } .hero-copy .actions .btn { flex: 1 1 auto; justify-content: center; white-space: nowrap; padding: 0 16px; } }
/* Every upright screen, and phones held sideways: the whole figure is shown,
   centred on his body (49.45% of the stage), with the logo and copy in flow beneath him.
   One unit --u drives the maths (stage 270u wide, figure top = stage top + 43u, figure 63u
   tall): 1vw in portrait; on short landscape screens it follows height so he fits on screen. */
@media (orientation: portrait), (orientation: landscape) and (max-height: 500px) {
  .hero { --u: 1vw; height: auto; min-height: 0; max-height: none; }
  .stage { width: calc(270 * var(--u)); left: calc(50vw - 133.5 * var(--u)); top: calc(84px - 43 * var(--u)); transform: none; }
  .hero::after { background: linear-gradient(180deg, transparent calc(84px + 50 * var(--u)), oklch(0.12 0.02 270) calc(84px + 64 * var(--u))); }
  .hero-copy { position: relative; bottom: auto; padding-top: calc(84px + 60 * var(--u)); padding-bottom: 32px; }
}
@media (orientation: landscape) and (max-height: 500px) { .hero { --u: 0.9vh; } }
/* Wide screens: site.js scales and shifts the whole stage so the hero's feet land just above the
   title block (--stage-k, --stage-dy). It is a transform, so nothing re-lays out (no layout shift);
   without the script the original centred stage stays. */
@media (orientation: landscape) and (min-height: 501px) {
  .stage.fitted { transform-origin: 50% 0; transform: translate(-50%, calc(-50% + var(--stage-dy))) scale(var(--stage-k)); }
}
/* the art fades in once placed, so it never shows in its pre-fit position */
.js .stage { opacity: 0; transition: opacity 0.35s ease-out; }
.js .stage.ready { opacity: 1; }
/* Upright screens only see the middle 37% of the art (31% to 68% of the stage), so they load
   a crop of 29% to 70% and place it exactly there; Alley and the motes keep their positions. */
@media (orientation: portrait) { .stage .sky, .stage .world { inset: 0 auto 0 29%; width: 41%; } }
/* very narrow phones (320px): header on one line, big display headings scale with the width */
@media (max-width: 400px) { .d-xxl { font-size: 21vw; } }
@media (max-width: 360px) { .brand img { height: 32px; } .nav { gap: 10px; } .nav a { font-size: 12.5px; } }
/* entrance: one orchestrated reveal on load */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .js .loaded .reveal { opacity: 1; transform: none; }
  .js .loaded .reveal + .reveal { transition-delay: 0.08s; }
  .js .loaded .actions.reveal { transition-delay: 0.16s; }
}

/* ---------- sections ---------- */
.sec { padding-block: clamp(72px, 11vw, 150px); }
.sec-tight { padding-block: clamp(48px, 7vw, 96px); }

/* ---------- inner pages ---------- */
.page-head { padding-block: clamp(64px, 10vw, 140px) clamp(40px, 6vw, 72px); }
.page-head .lede { margin-top: 24px; }

.g-credits a[href^="http"]::after, .list-plain a[href^="http"]::after { content: " \2197"; font-weight: 400; opacity: 0.6; }
.list-plain a:hover, .contact-big:hover { color: var(--sun-text); }

.faq { border-top: 2px solid var(--text-on-ink); max-width: 980px; }
.qa { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(12px, 4vw, 56px); padding-block: clamp(26px, 3vw, 40px); border-bottom: 1px solid var(--rule-ink); }
.qa h2 { font: 800 clamp(26px, 2.6vw, 36px)/1 var(--display); text-transform: uppercase; }
.qa p { margin: 0 0 10px; }
@media (max-width: 760px) { .qa { grid-template-columns: 1fr; } }

.contact-big { font: 700 clamp(34px, 6.2vw, 96px)/1 var(--body); letter-spacing: -0.03em; text-decoration: none; word-break: break-word; display: inline-block; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(40px, 6vw, 80px); }
.contact-grid h2 { font: 800 clamp(26px, 2.6vw, 34px)/1 var(--display); text-transform: uppercase; margin-bottom: 14px; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 10px 0; border-bottom: 1px solid var(--rule-ink); }
.list-plain a { text-decoration: none; font-weight: 600; }

.boiler { padding: 24px; border: 2px solid var(--text-on-ink); background: var(--bone-2); max-width: 62ch; }
.boiler p { margin: 0; }
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; }
.logos a { text-decoration: none; }
.logos .th { height: 200px; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--ink); }
.logos .th img { max-height: 100%; width: auto; }
.logos span { display: flex; justify-content: space-between; padding: 10px 2px; font-size: 15px; font-weight: 600; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--rule-bone); background: var(--ink); color: var(--text-on-ink); padding-block: clamp(56px, 8vw, 96px) 40px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-top .wm { font: 800 clamp(48px, 7vw, 104px)/0.85 var(--display); text-transform: uppercase; }
.foot-top .wm img { width: 242px; height: auto; }
.foot-top h2 { font: 700 13px/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-on-ink); margin-bottom: 14px; }
.foot-top ul { list-style: none; margin: 0; padding: 0; }
.foot-top li { padding: 5px 0; }
.foot-top a { text-decoration: none; }
.foot-top a:hover { color: var(--sun); }
.foot-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--rule-bone); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted-on-ink); }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-top > :first-child { grid-column: 1 / -1; } }

/* ---------- youtube (click to load) ---------- */
.yt { position: relative; aspect-ratio: 16 / 9; width: 100%; padding: 0; border: 0; cursor: pointer; display: block; background: #0b0b14 center / cover no-repeat; }
.yt .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; transition: transform 0.3s var(--ease); }
.yt:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.yt .play::before { content: ""; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--ink); margin-left: 5px; }
.yt-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

/* =====================================================================
   ALLEYMENTAL (body.game): its own night world inside the studio frame
   ===================================================================== */
body.game { --night: oklch(0.16 0.04 268); --night-2: oklch(0.21 0.05 266); --night-3: oklch(0.27 0.06 264); --element: oklch(0.80 0.13 225); --g-text: oklch(0.95 0.01 260); --g-muted: oklch(0.76 0.03 262); --g-rule: oklch(0.95 0.01 260 / 0.12); background: var(--night); color: var(--g-text); }
.game .gt { font-family: "Built Titling", var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.005em; }
.game .muted { color: var(--g-muted); }
.game .kicker { color: var(--sun); }
.game .band { background: var(--night-2); }
.g-hero { position: relative; }
.g-hero .key { width: 100%; aspect-ratio: 2400 / 942; object-fit: cover; }
.g-hero::after { content: ""; position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 2400 / 942; background: linear-gradient(transparent 68%, var(--night)); pointer-events: none; }
.g-hero .shell { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; padding-block: 8px clamp(48px, 7vw, 88px); }
.g-hero .lede { max-width: 46ch; }
.g-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.g-hero .meta { margin-top: 14px; font-size: 14px; color: var(--g-muted); }
@media (max-width: 720px) { .g-hero .key, .g-hero::after { aspect-ratio: 4 / 3; } .g-hero .key { object-position: 50% 0; } }

.g-about { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.g-about .cycle { font-family: "Built Titling", var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.2; color: var(--element); margin-top: 28px; }
@media (max-width: 900px) { .g-about { grid-template-columns: 1fr; } }
/* Astrapunk: the coined word, set like a dictionary entry */
.astra-def { margin: 0 0 28px; padding: 4px 0 4px 20px; border-left: 3px solid var(--sun); max-width: 52ch; }
.astra-def dt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 6px; }
.astra-def dt .gt { font-size: 26px; line-height: 1; color: var(--sun); }
.astra-def .dev { font: 600 15px/1 var(--body); color: var(--g-muted); letter-spacing: 0.04em; }
.astra-def dd { margin: 0; }

/* How it plays: intro copy beside the example combo chain */
.play-intro { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; margin-bottom: 8px; }
.play-intro .lede { max-width: 40ch; }
.chain { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--g-text); }
.chain li { display: grid; grid-template-columns: 5.5em 1fr; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--g-rule); }
.chain .el { font: 700 30px/1 "Built Titling", var(--display); text-transform: uppercase; }
.el.fire { color: oklch(0.72 0.17 45); }
.el.water { color: var(--element); }
.el.earth { color: oklch(0.80 0.12 85); }
.chain-note { margin: 12px 0 0; font: 700 12px/1.4 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--g-muted); }
@media (max-width: 900px) { .play-intro { grid-template-columns: 1fr; } }

.shots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.shots button { padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.6s var(--ease); }
.shots button:hover img { transform: scale(1.04); }
.shots button:nth-child(-n+2) { grid-column: span 3; }
.shots button:nth-child(n+3) { grid-column: span 2; }
@media (max-width: 640px) { .shots button:nth-child(n) { grid-column: span 6; } }
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; padding: 16px; place-items: center; background: oklch(0.1 0.02 268 / 0.94); color: var(--g-text); cursor: zoom-out; }
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: transparent; }
.lightbox-close { position: absolute; top: 12px; right: 16px; width: 48px; height: 48px; border: 0; background: none; color: inherit; font: 400 36px/1 var(--body); cursor: pointer; }
.lightbox img { max-height: 90vh; width: auto; }

.steam-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.steam-row iframe { width: 100%; max-width: 646px; height: 190px; border: 0; }
@media (max-width: 900px) { .steam-row { grid-template-columns: 1fr; } }

.vids { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.vids h3 { font: 700 18px/1.3 var(--body); margin: 12px 0 0; }

.g-credits { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--g-text); }
.g-credits li { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--g-rule); }
.g-credits .r { font: 700 13px/1.4 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--g-muted); }
.g-credits a { font-weight: 700; text-decoration: none; }
.g-credits a:hover { color: var(--sun); }
@media (max-width: 560px) { .g-credits li { grid-template-columns: 1fr; gap: 4px; } }

/* press kit (presskit() layout) */
.pk { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.pk-facts { position: sticky; top: 24px; border-top: 2px solid var(--g-text); }
.pk-facts div { padding: 14px 0; border-bottom: 1px solid var(--g-rule); }
.pk-facts dt { font: 700 12px/1.4 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--g-muted); }
.pk-facts dd { margin: 4px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.pk-facts a { color: var(--sun); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pk-body h2 { font-family: "Built Titling", var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(30px, 3vw, 42px); margin: 0 0 18px; }
.pk-body section + section { margin-top: clamp(48px, 6vw, 80px); }
.pk-body ul { padding-left: 1.1em; }
.pk-body li { margin-bottom: 8px; color: var(--g-muted); }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pk-grid a { display: block; text-decoration: none; }
.pk-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--night-2); }
.pk-grid img.contain { object-fit: contain; padding: 18px; }
.pk-grid span { display: block; font-size: 14px; color: var(--g-muted); padding: 8px 0 4px; }
@media (max-width: 900px) { .pk { grid-template-columns: minmax(0, 1fr); } .pk-facts { position: static; } }

.game .site-foot { background: oklch(0.12 0.03 268); }
.game .site-head { background: oklch(0.12 0.03 268); }
.logos .th.light { background: var(--bone); border: 1px solid var(--rule-ink); }

/* ---------- games page: title posters ---------- */
.poster { position: relative; display: block; text-decoration: none; color: var(--text-on-ink); background: var(--ink); overflow: hidden; }
.poster img.bg { width: 100%; aspect-ratio: 2400 / 942; object-fit: cover; transition: transform 1s var(--ease); }
.poster:hover img.bg { transform: scale(1.02); }
.poster .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 3vw, 40px); display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; background: linear-gradient(transparent, oklch(0.12 0.02 270 / 0.7) 35%, oklch(0.12 0.02 270 / 0.94)); text-shadow: 0 1px 10px oklch(0 0 0 / 0.7); }
.poster .cap img { width: min(380px, 60vw); }
.poster .cap p { margin: 8px 0 0; max-width: 46ch; }
@media (max-width: 720px) { .poster img.bg { aspect-ratio: 4 / 3; } .poster .cap { position: static; background: var(--ink); } }
.after-poster { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
/* ---------- alleymental page: character lineup, features, cards ---------- */
/* story lineup: the hero in front, two unnamed giants of equal height looming behind him */
.lineup { position: relative; height: clamp(280px, 40vw, 540px); margin-top: clamp(28px, 4vw, 48px); overflow: hidden; }
.lineup img { position: absolute; bottom: 0; max-width: none; }
.lineup .side { height: 100%; width: auto; opacity: 0.55; -webkit-mask-image: linear-gradient(to top, transparent, #000 40%); mask-image: linear-gradient(to top, transparent, #000 40%); }
.lineup .left { left: -2%; }
.lineup .right { right: -2%; }
.lineup .center { left: 50%; transform: translateX(-50%); width: min(54%, 620px); z-index: 1; }
@media (max-width: 640px) { .lineup .left { left: -22%; } .lineup .right { right: -22%; } .lineup .center { width: 84%; } }

.g-feat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 5vw, 72px) clamp(28px, 5vw, 80px); }
.g-feat-grid h3 { font-family: "Built Titling", var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(26px, 2.4vw, 34px); line-height: 1; color: var(--sun); margin: 0 0 6px; }
.g-feat-grid h4 { margin: 0 0 10px; font: 700 18px/1.3 var(--body); }
.g-feat-grid p { margin: 0; color: var(--g-muted); max-width: 52ch; }
@media (max-width: 760px) { .g-feat-grid { grid-template-columns: 1fr; } }
.g-hero .logo-h1 { margin: 0 0 14px; }
.g-hero .logo-h1 img { width: min(520px, 80vw); }
/* home: studio intro + two titles */
.studio-intro { display: block; }
.studio-intro h1 { margin-bottom: clamp(32px, 4vw, 56px); }
.studio-copy { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.studio-copy .lede { max-width: 46ch; margin: 0; }
.founder-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule-ink); }
.founder-row li { border-bottom: 1px solid var(--rule-ink); }
.founder-row li + li { border-left: 1px solid var(--rule-ink); }
.founder-row a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 16px 0; text-decoration: none; }
.founder-row li + li a { padding-left: 18px; }
.founder-row b { font-weight: 700; font-size: 18px; }
.founder-row span { font: 700 12px/1.4 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-on-bone); }
.founder-row a:hover b { color: var(--sun); }
@media (max-width: 860px) { .studio-copy { grid-template-columns: 1fr; } }

.titles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.title-card { position: relative; overflow: hidden; min-height: clamp(420px, 42vw, 560px); background: var(--ink); display: flex; align-items: flex-end; text-decoration: none; isolation: isolate; }
.title-art { position: absolute; right: -6%; top: 0; width: 88%; z-index: -1; transition: transform 1s var(--ease); }
a.title-card:hover .title-art { transform: scale(1.03); }
.title-card.is-locked .title-art { filter: brightness(0.32) saturate(0.15); right: -10%; top: 6%; width: 96%; }
/* text sits on a dark fade so it reads over any art: clear at the top, near-solid behind the copy */
.title-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 28%, oklch(0.13 0.01 60 / 0.78) 52%, oklch(0.13 0.01 60 / 0.96) 74%); }
.title-text { padding: clamp(24px, 3vw, 40px); text-shadow: 0 1px 10px oklch(0 0 0 / 0.7); }
.title-text h3 { font: 800 clamp(40px, 4.4vw, 64px)/0.9 var(--display); text-transform: uppercase; margin-bottom: 10px; }
.title-text p { margin: 0 0 16px; color: oklch(0.90 0.01 80); }
.title-text .kicker { color: var(--sun); margin-bottom: 12px; }
.title-card.is-locked .kicker { color: var(--muted-on-ink); }
@media (max-width: 860px) { .titles { grid-template-columns: 1fr; } }
.title-card.is-locked .title-art.tease { inset: 0; width: 100%; height: 100%; object-fit: cover; right: auto; top: 0; filter: brightness(0.8) saturate(1); transition: filter 0.8s var(--ease), transform 1.2s var(--ease); }
.title-card.is-locked:hover .title-art.tease { filter: brightness(1) saturate(1.05); transform: scale(1.03); }

.title-card .title-art.cover { inset: 0; right: auto; width: 100%; height: 100%; object-fit: cover; object-position: 46% 70%; }

/* team: two equal founder cards */
.founder-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.founder-cards article { background: var(--bone-2); border: 1px solid var(--rule-ink); display: flex; flex-direction: column; }
.founder-cards .photo { width: 100%; max-width: none; aspect-ratio: 4 / 5; object-fit: cover; margin: 0; filter: saturate(0.9); }
.founder-cards .body { padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.founder-cards h2 { font: 800 clamp(32px, 3.4vw, 48px)/0.9 var(--display); text-transform: uppercase; }
.founder-cards .role { font: 700 13px/1.4 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sun); }
.founder-cards p { margin: 0; color: var(--muted-on-ink); min-height: 3.2em; }
/* favourite game: small label over the title, set in the display face */
.founder-cards .fav { min-height: 0; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--rule-ink); color: inherit; }
.founder-cards .fav span { display: block; font: 700 12px/1.4 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-on-ink); margin-bottom: 6px; }
.founder-cards .fav b { display: block; font: 800 clamp(26px, 2.4vw, 34px)/0.95 var(--display); text-transform: uppercase; color: var(--sun); }
.founder-cards .links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; margin-top: auto; padding-top: 8px; }
/* phones: a shorter, face-first crop so each card (photo, name, bio, links) fits one screen */
@media (max-width: 760px) { .founder-cards { grid-template-columns: minmax(0, 1fr); } .founder-cards .photo { aspect-ratio: 4 / 3; object-position: 50% 28%; } }
.title-card .title-art.cover.splash { object-position: 44% 30%; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin-top: 24px; }
.card-grid figure { margin: 0; }
.card-grid img { width: 100%; aspect-ratio: 3 / 2; transition: transform 0.5s var(--ease); }
.card-grid figure:hover img { transform: translateY(-4px); }
.card-grid figcaption { margin-top: 8px; font-size: 14px; color: var(--g-muted); }
.card-grid figcaption b { display: block; font: 700 20px/1.1 "Built Titling", var(--display); text-transform: uppercase; color: var(--g-text); }
@media (max-width: 760px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vids.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vids .still { display: block; }
.vids .still img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.vids .src { display: block; margin-top: 12px; font: 700 12px/1.3 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sun); }
.vids .src + h3 { margin-top: 6px; }
@media (max-width: 860px) { .vids.four { grid-template-columns: 1fr; } }

.studio-h1 span { display: block; }
.studio-h1 .l2 { display: flex; align-items: center; gap: 0.12em; }
.studio-h1 .h1-mark { height: 0.86em; width: auto; margin-left: 0.14em; }
.poster.is-locked img.bg { filter: brightness(0.85) saturate(1); transition: filter 0.8s var(--ease), transform 1.2s var(--ease); }
.poster.is-locked:hover img.bg { filter: brightness(1) saturate(1.05); transform: scale(1.02); }

.poster.is-locked { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.poster.is-locked img.bg { aspect-ratio: 1 / 1; height: 100%; object-position: 50% 50%; grid-column: 2; grid-row: 1; }
.poster.is-locked .cap { position: static; grid-column: 1; grid-row: 1; background: var(--ink); align-items: end; }
@media (max-width: 720px) { .poster.is-locked { grid-template-columns: 1fr; } .poster.is-locked img.bg { grid-column: 1; aspect-ratio: 4 / 3; } .poster.is-locked .cap { grid-row: 2; } }
