/* Dark Matter Game Production — site styles (dark, cinematic).
   Brand tokens (colours, fonts) come from _ds/styles.css.
   The game art carries the colour. The page is black; text is white;
   cyan only marks actions, focus, progress and the current page. */

:root {
  --bg: var(--dm-black);
  --panel: var(--dm-ink-900);
  --text: var(--dm-white);
  --text-2: var(--dm-gray-100);
  --text-3: var(--dm-gray-400);
  --line: rgba(255, 255, 255, 0.14);
  --signal: var(--dm-cyan-500);
  --gutter: clamp(20px, 3.2vw, 56px);
  --max: 1600px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.125rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; z-index: 300; background: var(--text); color: var(--bg); padding: 10px 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: clamp(56px, 7vw, 104px); }
.dark { background: var(--panel); }
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.rule { border-top: 1px solid var(--line); }

/* ---------- type ---------- */
.display { font: 700 clamp(3rem, 6vw, 6.25rem)/0.94 var(--font-heading); letter-spacing: -0.025em; text-wrap: balance; }
.title { font: 700 clamp(2.5rem, 5.2vw, 5rem)/0.95 var(--font-heading); letter-spacing: -0.025em; text-wrap: balance; }
.h2 { font: 700 clamp(2rem, 3.6vw, 3.25rem)/1 var(--font-heading); letter-spacing: -0.02em; text-wrap: balance; }
.h3 { font: 600 1.5rem/1.15 var(--font-heading); }
.lede { font: 500 clamp(1.25rem, 2vw, 1.75rem)/1.3 var(--font-heading); max-width: 36ch; text-wrap: pretty; }
.muted { color: var(--text-2); }
.prose { max-width: 62ch; }
.prose p + p { margin-top: 1em; }
.small { font-size: 0.875rem; line-height: 1.5; }
.link { color: var(--signal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.link:hover { text-decoration-thickness: 2px; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0.2em 28px 0; border-radius: var(--radius-pill); border: 0; font: 600 1.0625rem/1 var(--font-heading); text-decoration: none; cursor: pointer; transition: background-color 150ms var(--ease), color 150ms var(--ease), box-shadow 150ms var(--ease); }
.btn-primary { background: var(--signal); color: #000; }
.btn-primary:hover { background: var(--text); color: #000; }
.btn-line { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.7); }
.btn-line:hover { background: var(--text); color: #000; box-shadow: inset 0 0 0 2px var(--text); }
.btn-white { background: var(--text); color: #000; }
.btn-white:hover { background: var(--signal); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.nav-logo img { height: 36px; width: auto; }
.menu-btn { display: none; }
/* #site-menu is a popover on phones and a plain inline list on wider screens */
.nav-menu { position: static; inset: auto; width: auto; height: auto; margin: 0; padding: 0; border: 0; overflow: visible; background: none; color: inherit; display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav-menu a { font: 500 1rem/1 var(--font-heading); text-decoration: none; padding: 10px 0 6px; border-bottom: 2px solid transparent; transition: color 150ms var(--ease); }
.nav-menu a:hover { color: var(--signal); }
.nav-menu a[aria-current="page"] { border-bottom-color: var(--signal); }

/* ---------- home showcase: the worlds cycle behind the headline ---------- */
.showcase { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: calc(100svh - var(--nav-h)); min-height: 620px; max-height: 940px; overflow: hidden; background: #000; isolation: isolate; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); opacity: 0; transition: opacity 1.2s var(--ease); z-index: -2; }
.slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .slide.is-active { animation: drift 10s linear both; }
  .showcase h1 span { animation: rise 0.9s var(--ease) both; }
  .showcase h1 span + span { animation-delay: 0.12s; }
  .showcase-sub, .showcase .actions, .switcher { animation: fade 0.8s 0.4s both; }
}
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1); } }
@keyframes rise { from { opacity: 0; transform: translateY(0.3em); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.showcase::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0) 72%), linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 32%, rgba(0,0,0,0) 58%); }
.showcase-copy { padding-bottom: clamp(28px, 4vw, 52px); }
.showcase h1 span { display: block; }
.showcase-sub { margin-top: 22px; max-width: 46ch; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--text-2); }
.showcase .actions { margin-top: 28px; }
.switcher { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: stretch; border-top: 1px solid var(--line); }
.switcher a { position: relative; display: block; padding: 18px 24px 26px 0; text-decoration: none; color: var(--text-3); transition: color 200ms var(--ease); }
.switcher a::before { content: ""; position: absolute; top: -1px; left: 0; right: 24px; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; }
.switcher a.is-active { color: var(--text); }
.switcher a.is-active::before { animation: fill 6.5s linear forwards; }
.showcase.is-paused .switcher a.is-active::before { animation: none; transform: scaleX(1); }
.switcher strong { display: block; font: 600 1.1875rem/1.2 var(--font-heading); padding-top: 0.1em; }
.switcher span { display: block; margin-top: 4px; font-size: 0.875rem; }
.switcher a:hover strong { text-decoration: underline; text-underline-offset: 0.18em; }
.slide-toggle { align-self: center; background: none; border: 0; padding: 8px 0 8px 12px; color: var(--text-2); font: 500 0.9375rem/1 var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- studio intro ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.statement { font: 500 clamp(1.5rem, 2.4vw, 2.25rem)/1.25 var(--font-heading); letter-spacing: -0.01em; text-wrap: pretty; max-width: 32ch; }
.intro-meta { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 32px; }
.intro-meta div { display: grid; }
.intro-meta dt { order: 2; font-size: 0.875rem; color: var(--text-3); }
.intro-meta dd { font: 700 clamp(1.5rem, 2.2vw, 2rem)/1.1 var(--font-heading); padding-top: 0.08em; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.sec-head .link { font-size: 1.0625rem; }
.sec-head p { max-width: 56ch; color: var(--text-2); }

/* ---------- lineup: games as store-shelf tiles ---------- */
.lineup { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.tile { position: relative; display: flex; align-items: flex-end; min-height: 420px; overflow: hidden; border-radius: 8px; background: #111; color: var(--text); text-decoration: none; isolation: isolate; }
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 700ms var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.35) 42%, rgba(0,0,0,0) 66%); }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); transition: box-shadow 200ms var(--ease); pointer-events: none; }
.tile:hover > img { transform: scale(1.04); }
.tile:hover::after { box-shadow: inset 0 0 0 2px var(--signal); }
.tile-in { display: grid; justify-items: start; padding: clamp(20px, 2.2vw, 32px); }
.tile .status { margin-bottom: 12px; }
.tile-title { font: 700 clamp(2rem, 3vw, 3rem)/0.95 var(--font-heading); letter-spacing: -0.02em; padding-top: 0.08em; }
.t-7 .tile-title { font-size: clamp(2.25rem, 3.8vw, 3.75rem); }
.tile-logo { width: auto; max-width: min(78%, 340px); max-height: 120px; object-fit: contain; filter: drop-shadow(0 6px 20px rgba(0,0,0,0.55)); }
.tile-line { margin-top: 10px; max-width: 42ch; font-size: 1rem; color: var(--text-2); }
.t-7 { grid-column: span 7; min-height: 540px; }
.t-5 { grid-column: span 5; min-height: 540px; }
.t-4 { grid-column: span 4; }

/* status marker: filled = live, ring = beta, white ring = in production, square = prototype */
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9375rem; }
.status::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); }
.status.beta::before { background: transparent; box-shadow: inset 0 0 0 2px var(--signal); }
.status.dev::before { background: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.status.proto::before { border-radius: 1px; background: currentColor; }

/* ---------- partners ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.plate { display: flex; align-items: center; justify-content: center; height: clamp(120px, 10vw, 160px); padding: 20px 28px; background: #fff; border-radius: 8px; }
.plate img { width: auto; max-width: 82%; max-height: min(64px, 100%); }
.plate img.tall { max-height: min(112px, 100%); }
.plate-text { font: 700 clamp(1.25rem, 1.8vw, 1.75rem)/1.05 var(--font-heading); color: #000; text-align: center; letter-spacing: -0.01em; }
.logo-wall small { display: block; margin-top: 10px; font-size: 0.9375rem; color: var(--text-3); }
.case { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; margin-top: clamp(40px, 5vw, 72px); }
.case-media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.5vw, 20px); padding: clamp(16px, 3vw, 44px); background: radial-gradient(ellipse at 50% 30%, #14306a 0%, #050b1c 70%); border-radius: 8px; }
.case-media img { width: 100%; border-radius: 12px; box-shadow: 0 20px 50px -20px rgba(0,0,0,0.8); }
.case .by { margin-bottom: 12px; font-size: 0.9375rem; color: var(--text-3); }
.case .prose { margin-top: 16px; color: var(--text-2); }
.case .facts { margin-top: 24px; }
.case .actions { margin-top: 28px; }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.project-media { aspect-ratio: 16 / 10; background: #111; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-media.contain img { object-fit: contain; height: 92%; width: auto; }
.project h3 { margin-top: 16px; }
.project .by { margin-top: 4px; font-size: 0.9375rem; color: var(--text-3); }
.project p:last-child { margin-top: 8px; font-size: 1rem; color: var(--text-2); max-width: 48ch; }

/* facts list */
.facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0 10px; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--text-3); font-size: 1rem; }
.facts dd { font: 600 1.0625rem/1.3 var(--font-heading); text-align: right; }

/* ---------- art strip ---------- */
.strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); padding-bottom: 16px; scroll-padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); scrollbar-color: var(--text-3) transparent; }
.strip figure { flex: none; scroll-snap-align: start; }
.strip img { height: clamp(260px, 36vw, 520px); width: auto; border-radius: 8px; }
.strip figcaption { margin-top: 10px; font-size: 0.9375rem; color: var(--text-3); }

/* ---------- community ---------- */
.community { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.community-poster img { width: 100%; border-radius: 8px; }
.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; }
.pairs li { padding-top: 16px; border-top: 1px solid var(--line); }
.pairs h3 { font: 600 1.25rem/1.2 var(--font-heading); }
.pairs p { margin-top: 6px; font-size: 1rem; color: var(--text-2); }
.rows li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 32px; padding: 18px 0 16px; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows h3 { font: 600 1.25rem/1.2 var(--font-heading); padding-top: 0.1em; }
.rows p { color: var(--text-2); font-size: 1rem; }

/* numbered sequence (timeline, process) */
.steps li { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 8px 28px; padding: 20px 0 18px; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .when { font: 700 1.5rem/1.2 var(--font-heading); color: var(--signal); padding-top: 0.08em; }
.steps h3 { font: 600 1.25rem/1.25 var(--font-heading); padding-top: 0.1em; }
.steps p { margin-top: 6px; color: var(--text-2); font-size: 1rem; max-width: 60ch; }

/* ---------- cta ---------- */
.cta .lede { margin-top: 20px; color: var(--text-2); }
.cta .actions { margin-top: 32px; }
.cta-aside { margin-top: clamp(40px, 5vw, 64px); max-width: 64ch; font-size: 1rem; color: var(--text-3); }

/* ---------- inner pages ---------- */
.page-head { padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(36px, 4vw, 64px); }
.page-head .lede { margin-top: clamp(16px, 2vw, 28px); color: var(--text-2); }
.photo img { width: 100%; border-radius: 8px; }
.photo figcaption { margin-top: 10px; font-size: 0.9375rem; color: var(--text-3); }
.photo-wide img { aspect-ratio: 21 / 9; object-fit: cover; }

/* worlds (full-bleed game panels on the games page) */
.world { position: relative; display: flex; align-items: flex-end; min-height: clamp(520px, 80vh, 820px); background: #000; overflow: hidden; isolation: isolate; }
.world-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); z-index: -2; }
.world::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 36%, rgba(0,0,0,0) 64%), linear-gradient(to right, rgba(0,0,0,0.45), rgba(0,0,0,0) 55%); }
.world-in { width: 100%; padding-block: clamp(36px, 5vw, 72px); }
.world .status { margin-bottom: 16px; }
.world-logo { width: auto; max-width: min(80%, 420px); max-height: 150px; filter: drop-shadow(0 6px 20px rgba(0,0,0,0.55)); }
.world-line { margin-top: 16px; font: 600 clamp(1.25rem, 2vw, 1.625rem)/1.2 var(--font-heading); }
.world-text { margin-top: 10px; max-width: 50ch; color: var(--text-2); }
.world .actions { margin-top: 24px; }
@media (min-width: 761px) {
  .world.art-right .world-art { left: auto; width: 60%; }
  .world.art-right::before { background: linear-gradient(to right, #000 40%, rgba(0,0,0,0) 62%), linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0) 40%); }
  .world.art-right .world-in > * { max-width: min(40%, 34rem); }
}

/* roster (games index) */
.roster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.roster a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px; padding: 20px; overflow: hidden; border-radius: 8px; background: #111; text-decoration: none; isolation: isolate; }
.roster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 600ms var(--ease); }
.roster a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0,0,0,0.88), rgba(0,0,0,0.1) 70%); }
.roster a:hover img { transform: scale(1.05); }
.roster-name { font: 700 clamp(1.5rem, 2.4vw, 2.25rem)/1 var(--font-heading); letter-spacing: -0.015em; padding-top: 0.1em; }
.roster .status { order: -1; margin-bottom: 8px; color: var(--text-2); }

/* details under a world */
.details { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.details .muted { color: var(--text-2); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.gallery .wide { grid-column: 1 / -1; }
.gallery .wide img { aspect-ratio: 16 / 7; }
.cast { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cast img { width: 100%; aspect-ratio: 1; object-fit: contain; background: radial-gradient(circle at 50% 40%, #cfe9ff, #7fb8ec); border-radius: 8px; padding: 8px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 22px; }
.feature { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.feature-media img { width: 100%; border-radius: 8px; }
.feature .status { margin-bottom: 14px; }
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; }
.phones img { width: 100%; border-radius: 14px; }

/* services */
.service { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px clamp(28px, 4vw, 72px); padding-block: clamp(28px, 3.5vw, 44px); border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service h2 { font: 700 clamp(1.75rem, 3vw, 2.75rem)/1.02 var(--font-heading); letter-spacing: -0.015em; padding-top: 0.08em; }
.service .prose { color: var(--text-2); }
.service ul { margin-top: 14px; display: grid; gap: 6px; }
.service li { position: relative; padding-left: 20px; font-size: 1rem; }
.service li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 8px; height: 2px; background: var(--signal); }
.service .actions { margin-top: 20px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(36px, 5vw, 96px); align-items: start; }
.contact-list div { padding: 16px 0 14px; border-top: 1px solid var(--line); }
.contact-list div:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: 0.9375rem; color: var(--text-3); }
.contact-list dd { margin-top: 4px; font: 600 1.25rem/1.35 var(--font-heading); overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--signal); }
.form { display: grid; gap: 20px; }
.form label { display: grid; gap: 8px; font: 600 1rem/1.2 var(--font-heading); }
.form input, .form textarea, .form select { width: 100%; border: 0; border-bottom: 2px solid rgba(255,255,255,0.6); border-radius: 0; padding: 12px 0; background: transparent; font: 400 1.125rem/1.4 var(--font-body); color: var(--text); }
.form select option { color: #000; }
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-bottom-color: var(--signal); box-shadow: 0 2px 0 0 var(--signal); }
.form .btn { justify-self: start; margin-top: 8px; }
.form-note { font-size: 0.9375rem; color: var(--text-3); }

/* ---------- footer ---------- */
.footer { background: var(--panel); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)) minmax(206px, 1fr); gap: 48px clamp(32px, 4vw, 64px); padding-block: clamp(56px, 7vw, 96px) clamp(48px, 5vw, 72px); }
.footer-logo { height: 44px; width: auto; }
.footer p { margin-top: 24px; max-width: 36ch; font-size: 1.0625rem; color: var(--text-2); }
.footer address { display: grid; gap: 6px; margin-top: 24px; font-style: normal; font-size: 1rem; color: var(--text-2); }
.footer address a { color: var(--text); }
.footer h2 { margin-bottom: 20px; padding-top: 0.08em; font: 700 1.125rem/1.2 var(--font-heading); color: var(--text); }
.footer ul { display: grid; gap: 12px; }
.footer ul a { font-size: 1.0625rem; color: var(--text-2); }
.footer a { text-decoration: none; transition: color 150ms; }
.footer a:hover { color: var(--signal); }
.footer .social { display: flex; flex-wrap: wrap; gap: 10px; }
.footer .social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: var(--text); transition: background-color 150ms, color 150ms; }
.footer .social a:hover { background: var(--signal); color: #000; }
.footer .social svg { width: 20px; height: 20px; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 24px 32px; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--text-3); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .switcher { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slide-toggle { grid-column: 1 / -1; justify-self: start; padding-left: 0; }
}
@media (max-width: 960px) {
  .split, .intro, .details, .feature, .community, .contact-grid, .service, .case { grid-template-columns: 1fr; }
  .t-7, .t-5 { grid-column: span 12; min-height: 460px; }
  .t-4 { grid-column: span 6; min-height: 380px; }
  .t-4:last-child { grid-column: span 12; }
  .logo-wall { grid-template-columns: 1fr 1fr; }
  .projects, .roster { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-follow { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav-logo img { height: 30px; }
  .menu-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0.15em 18px 0; border: 0; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 2px var(--line); background: none; color: var(--text); font: 600 1rem/1 var(--font-heading); cursor: pointer; }
  .nav-menu:not(:popover-open) { display: none; }
  .nav-menu { position: fixed; inset: var(--nav-h) 0 auto 0; width: 100%; max-height: calc(100svh - var(--nav-h)); overflow-y: auto; flex-direction: column; gap: 0; padding: 4px var(--gutter) 32px; background: #000; border-top: 1px solid var(--line); }
  .nav-menu::backdrop { background: rgba(0, 0, 0, 0.6); }
  .nav-menu a { font-size: 1.75rem; font-weight: 600; padding: 18px 0 12px; border-bottom: 1px solid var(--line); }
  .nav-menu a[aria-current="page"] { color: var(--signal); border-bottom-color: var(--line); }
}
@media (max-width: 760px) {
  .showcase { height: auto; min-height: 640px; max-height: none; }
  .showcase-copy { padding-top: 220px; }
  .showcase::before { background: linear-gradient(to top, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.7) 45%, rgba(0,0,0,0.15) 80%); }
  .switcher a { padding: 14px 12px 18px 0; }
  .switcher strong { font-size: 1.0625rem; }
  .t-7, .t-5, .t-4, .t-4:last-child { grid-column: span 12; min-height: 0; aspect-ratio: 4 / 3.6; }
  .world { display: block; min-height: 0; }
  .world-art { position: relative; height: auto; aspect-ratio: 4 / 3; z-index: auto; }
  .world::before { display: none; }
  .world-in { padding-block: 24px 48px; }
  .projects, .roster { grid-template-columns: 1fr; }
  .roster a { min-height: 180px; }
  .pairs, .rows li, .steps li { grid-template-columns: 1fr; }
  .pairs { gap: 18px; }
  .steps .when { font-size: 1.25rem; }
  .photo-wide img { aspect-ratio: 4 / 3; }
  .intro-meta { gap: 12px 28px; }
}
@media (max-width: 480px) {
  .footer-grid { column-gap: 24px; }
  .actions .btn { flex: 1 1 auto; }
  .logo-wall { gap: 8px; }
  .plate { height: 104px; padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* =====================================================================
   Riot-style home components (v5). Brand rules unchanged:
   black and white, cyan accent, Josefin Sans headings, REM body.
   ===================================================================== */
:root { --panel-2: #10131b; }
.nav-menu a.nav-cta { padding: 12px 18px 9px; border: 0; border-radius: 999px; background: var(--signal); color: #000; font-weight: 600; }
.nav-menu a.nav-cta:hover { background: var(--text); color: #000; }
.btn svg { width: 18px; height: 18px; margin-right: 10px; margin-top: -0.2em; }
.btn-sm { min-height: 40px; padding: 0.2em 18px 0; font-size: 0.9375rem; }

/* featured carousel */
.feat { --h: clamp(540px, 56vw, 760px); position: relative; height: var(--h); overflow: hidden; background: #000; isolation: isolate; }
.feat-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.8s var(--ease), visibility 0s linear 0.8s; }
.feat-slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.8s var(--ease); }
.feat-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); z-index: -2; }
.feat-slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.62) 30%, rgba(0,0,0,0) 62%), linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 34%); }
.feat-slide .wrap { width: 100%; }
.feat-copy { max-width: 540px; padding-bottom: 40px; }
.feat-logo { width: auto; max-width: 340px; max-height: 120px; margin-bottom: 22px; filter: drop-shadow(0 6px 20px rgba(0,0,0,0.5)); }
.feat-copy .status { margin-bottom: 14px; color: var(--text-2); }
.feat-title { font: 700 clamp(2.5rem, 4.6vw, 4.25rem)/0.95 var(--font-heading); letter-spacing: -0.02em; text-wrap: balance; }
.feat-copy p { margin-top: 16px; max-width: 44ch; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); color: var(--text-2); }
.feat-copy .actions { margin-top: 26px; }
@media (prefers-reduced-motion: no-preference) { .feat-slide.is-active .feat-art { animation: drift 9s linear both; } }
.feat-nav { position: absolute; left: 0; right: 0; bottom: clamp(20px, 3vw, 36px); z-index: 2; }
.feat-nav .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 40px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255,255,255,0.35); cursor: pointer; }
.dots button.is-active { background: var(--signal); }
.arrows { display: flex; gap: 8px; }
.arrows button, .row-arrows button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,0.12); color: var(--text); cursor: pointer; }
.arrows button:hover, .row-arrows button:hover { background: var(--signal); color: #000; }
.arrows svg, .row-arrows svg { width: 18px; height: 18px; }

/* what's happening */
.news { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; }
.news a { text-decoration: none; }
.news-feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; transition: filter 200ms; }
.news-feature:hover img { filter: brightness(1.12); }
.news-feature h3 { margin-top: 16px; font: 700 clamp(1.375rem, 2vw, 1.875rem)/1.15 var(--font-heading); text-wrap: balance; }
.news-feature:hover h3, .news-item:hover h3 { text-decoration: underline; text-underline-offset: 0.15em; }
.news-tag { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.8125rem; color: var(--text-3); }
.news-tag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--signal); }
.news-list { display: grid; gap: 12px; align-content: start; }
.news-item { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 16px; align-items: center; padding: 12px 12px 12px 18px; border-radius: 8px; background: var(--panel-2); transition: background-color 150ms; }
.news-item:hover { background: #181c27; }
.news-item img { width: 132px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; }
.news-item h3 { font: 600 1.0625rem/1.25 var(--font-heading); padding-top: 0.08em; }
.news-item .news-tag { margin-top: 8px; }

/* games: tall poster cards with logos */
.row-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: clamp(20px, 2.4vw, 32px); }
.row-arrows { display: flex; gap: 8px; }
.posters { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 12px) / 6); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.posters::-webkit-scrollbar { display: none; }
.poster { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 2 / 3.1; padding: 18px; overflow: hidden; border-radius: 8px; background: #111; color: var(--text); text-decoration: none; isolation: isolate; scroll-snap-align: start; }
.poster > .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); z-index: -2; transition: transform 600ms var(--ease); }
.poster::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 32%, rgba(0,0,0,0) 58%, rgba(0,0,0,0.88) 100%); }
.poster::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); transition: box-shadow 200ms; pointer-events: none; }
.poster:hover > .art { transform: scale(1.05); }
.poster:hover::after { box-shadow: inset 0 0 0 2px var(--signal); }
.poster-logo { width: auto; max-width: 92%; max-height: 72px; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(0,0,0,0.6)); }
.poster-name { font: 700 1.625rem/0.98 var(--font-heading); letter-spacing: -0.01em; text-shadow: 0 2px 14px rgba(0,0,0,0.6); padding-top: 0.08em; }
.poster-foot { display: grid; gap: 6px; }
.poster-foot .status { color: var(--text); }
.platforms { font-size: 0.8125rem; color: var(--text-2); }

/* partner work: wide logo cards */
.partner-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pcard { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; background: #111; text-decoration: none; isolation: isolate; }
.pcard > .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.42) saturate(1.1); z-index: -1; transition: filter 250ms, transform 600ms var(--ease); }
.pcard:hover > .bg { filter: brightness(0.62); transform: scale(1.04); }
.pcard .plogo { width: auto; max-width: 62%; max-height: 52%; filter: drop-shadow(0 4px 16px rgba(0,0,0,0.6)); }
.pcard .pname { padding: 0 16px; font: 700 clamp(1.375rem, 2vw, 1.875rem)/1 var(--font-heading); text-align: center; }
.pcard small { position: absolute; left: 14px; right: 14px; bottom: 12px; font-size: 0.8125rem; color: var(--text-2); }
.trusted { display: grid; gap: 20px; margin-top: clamp(32px, 4vw, 56px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line); }
.trusted h3 { font: 600 1.125rem/1.3 var(--font-heading); color: var(--text-2); }
.trusted .plate { height: clamp(88px, 7vw, 112px); }
.trusted .plate img { max-height: min(48px, 100%); }
.trusted .plate img.tall { max-height: min(84px, 100%); }
.logo-wall li { min-width: 0; }

/* join the team */
.hire { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); overflow: hidden; border-radius: 8px; }
.hire-copy { display: grid; align-content: center; justify-items: start; gap: 0; padding: clamp(32px, 4vw, 64px); background: var(--text); color: #000; }
.hire-copy p { margin-top: 14px; max-width: 40ch; color: #3c3c3c; }
.hire-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 26px; }
.hire-stats div { display: grid; padding: 16px 12px; border: 1px solid #dcdcdc; border-radius: 8px; text-align: center; }
.hire-stats dt { order: 2; font-size: 0.875rem; color: #555; }
.hire-stats dd { font: 700 2rem/1.1 var(--font-heading); padding-top: 0.08em; }
.hire-copy .actions { margin-top: 26px; }
.hire-media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }

/* rounded closing card on dark */
.cta-card { padding: clamp(36px, 5vw, 72px); border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.cta-card .lede { margin-top: 18px; color: var(--text-2); }
.cta-card .actions { margin-top: 30px; }

/* full-cover slides: the art runs edge to edge on the right; a strip of its own left edge, stretched, carries the scene across the slide */
.feat-slide.is-framed .feat-art { object-fit: fill; animation: none; }
.feat-media { position: absolute; top: 0; right: 0; bottom: 0; z-index: -1; display: flex; gap: 3px; width: min(58%, calc(var(--h) * var(--ar, 1))); -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade, 12%)); mask-image: linear-gradient(90deg, transparent, #000 var(--fade, 12%)); }
.feat-media img { flex: 1 1 0; min-width: 0; height: 100%; object-fit: cover; }
.feat-media::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(0deg, rgba(0,0,0,0.78), rgba(0,0,0,0)); pointer-events: none; }
.is-framed .feat-copy { max-width: min(540px, 40vw); }
/* lighter shade than photo slides so the backdrop colour carries across the middle on wide screens */
.feat-slide.is-framed::before { background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 28%, rgba(0,0,0,0) 50%), linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 30%); }
@media (max-width: 760px) {
  .feat-slide.is-framed { flex-direction: column; align-items: stretch; justify-content: flex-start; }
  .feat-media { position: relative; width: 100%; height: auto; max-height: 340px; aspect-ratio: var(--ar, 1); -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .is-framed .feat-copy { max-width: none; }
  .feat-media img { object-position: center top; }
  .feat-slide.is-framed::before { background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.1) 85%); }
  .is-framed .wrap { margin-top: -28px; }
}

@media (max-width: 1100px) {
  .posters { grid-auto-columns: calc((100% - 3 * 12px) / 3.6); }
  .partner-row { grid-template-columns: 1fr 1fr; }
  .trusted { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .news, .hire { grid-template-columns: 1fr; }
  .nav-menu a.nav-cta { margin-top: 18px; text-align: center; padding: 16px; }
}
@media (max-width: 760px) {
  .feat { display: grid; height: auto; }
  .feat-slide { position: relative; grid-area: 1 / 1; min-height: 600px; align-items: flex-end; }
  .feat-slide::before { background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.1) 85%); }
  .feat-copy { padding-bottom: 96px; }
  .feat-logo { max-width: 240px; max-height: 90px; }
  .posters { grid-auto-columns: 62%; }
  .partner-row { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: minmax(0, 1fr) 104px; }
  .news-item img { width: 104px; }
}

/* client logos on dark: white marks, no plates, one consistent height */

/* client logos: white marks centred in an open hairline grid */
.logo-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.logo-row li { display: grid; justify-items: center; min-width: 0; padding: 6px clamp(12px, 1.6vw, 24px); }
.logo-row li + li { border-left: 1px solid var(--line); }
.logo-box { display: flex; justify-content: center; align-items: center; justify-self: stretch; height: 76px; }
.logo-box img { width: auto; height: min(var(--h, 40px), 100%); max-width: 100%; object-fit: contain; }
.logo-box img.mono { filter: brightness(0) invert(1); }
.logo-text { font: 700 1.375rem/1 var(--font-heading); letter-spacing: -0.01em; padding-top: 0.1em; }
@media (max-width: 760px) {
  .logo-row { grid-template-columns: 1fr 1fr; }
  .logo-row li { padding: 20px 12px; }
  .logo-row li:nth-child(odd) { border-left: 0; }
  .logo-row li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .logo-row li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .logo-box { height: 64px; }
}
