/* XL Projects + EQZ: Escape. One stylesheet for every page.
   Studio pages use the blueprint look (.studio), the game pages the asphalt + hazard look (.eqz).
   Type: the pixel font (Silkscreen) only BIG (logo-like headings, buttons); small labels use
   Barlow Condensed so they stay readable. */

:root {
  --ink: #0b0b0f;
  --asphalt: #16151b;
  --asphalt-2: #1f1d25;
  --line: #2e2b36;
  --cream: #f1ead8;
  --muted: #b3adbd;
  --hazard: #f28c28;
  --hazard-dark: #b85e10;
  --yellow: #f5c518;
  --blood: #e2464f;
  --blueprint: #0d2a4a;
  --blueprint-line: #2f5a86;
  --blueprint-ink: #dbe8f5;
  --gold: #f0b43c;
  --pixel: "Silkscreen", ui-monospace, monospace;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--asphalt);
  color: var(--cream);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }  /* (height: auto keeps an image's shape when it's scaled) */
[id] { scroll-margin-top: 76px; }  /* jump links land below the sticky header bar, not under it */
a { color: var(--hazard); }
a:hover { color: var(--yellow); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 8px 12px; }
.pixelated { image-rendering: pixelated; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- header / footer */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font: 700 1rem/1 var(--pixel); letter-spacing: .04em; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 2px solid var(--blueprint-ink); color: var(--blueprint-ink);
  font: 700 .85rem/1 var(--pixel); background: var(--blueprint);
}
.nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font: 700 .95rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; padding: 10px 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); }
.nav a.nav-cta { color: var(--ink); background: var(--hazard); margin-left: 8px; padding: 9px 14px; }
.nav a.nav-cta:hover { background: var(--yellow); color: var(--ink); }
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: .95rem; background: var(--ink); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot-grid h2 { font: 700 .82rem/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--cream); margin: 0 0 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--cream); }
.foot-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --plate: var(--hazard); --text: var(--ink); --edge: var(--hazard-dark);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 28px 16px 34px; min-height: 56px;
  background: var(--plate); color: var(--text); text-decoration: none; border: 0; cursor: pointer;
  font: 700 1rem/1 var(--pixel); letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 4px 0 var(--edge), 0 12px 28px rgb(0 0 0 / .35);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn::before { /* the hazard-striped end, like the game's nameplates */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px;
  background: repeating-linear-gradient(-45deg, var(--ink) 0 5px, var(--yellow) 5px 10px);
}
.btn:hover { color: var(--text); filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.btn.ghost { --plate: #2a2832; --text: var(--cream); --edge: #111; }
.btn.ghost::before { background: #3a3744; }
.btn svg { width: 18px; height: 18px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.text-link { font: 700 1rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--cream); text-decoration: none; padding: 12px 6px; border-bottom: 2px solid var(--hazard); }
.text-link:hover { color: var(--yellow); border-color: var(--yellow); }

.chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 12px 6px; border: 1px solid currentColor; color: var(--yellow);
  font: 700 .85rem/1 var(--head); letter-spacing: .16em; text-transform: uppercase;
}
.chip::before { content: ""; width: 8px; height: 8px; background: currentColor; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------------------------------------------------------------- sections + type */
section { padding: 96px 0; }
.kicker { font: 700 .88rem/1 var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--hazard); margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.02; margin: 0 0 .45em; letter-spacing: .005em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: uppercase; }
h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); text-transform: uppercase; letter-spacing: .02em; }
.lead { font-size: clamp(1.12rem, 2vw, 1.32rem); color: var(--cream); max-width: 62ch; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ================================================================ STUDIO (blueprint) */
.studio { background: var(--blueprint); color: var(--blueprint-ink); }
.studio .site-head { background: color-mix(in srgb, #071a30 88%, transparent); border-color: var(--blueprint-line); }
.studio .site-foot { background: #071a30; border-color: var(--blueprint-line); }
.studio .site-foot .foot-note, .studio .foot-grid { border-color: var(--blueprint-line); }
.studio .kicker { color: var(--gold); }
.grid-bg {
  background-color: var(--blueprint);
  background-image:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(rgb(47 90 134 / .35) 1px, transparent 1px),
    linear-gradient(90deg, rgb(47 90 134 / .35) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.studio-hero { padding: 0; background: #0a2240; border-bottom: 1px solid var(--blueprint-line); }
.studio-hero video, .studio-hero img { width: 100%; max-height: 78vh; aspect-ratio: 16 / 9; object-fit: cover; background: #0a2240; }
.studio-intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: end; }
.studio-intro h1 { font-size: clamp(3rem, 7.5vw, 6rem); text-transform: uppercase; color: #fff; margin: 0; }
.studio-intro p { color: var(--blueprint-ink); font-size: 1.12rem; }

.featured { background: var(--asphalt); color: var(--cream); padding: 0; }
.game-card { display: grid; grid-template-columns: 1.3fr 1fr; min-height: 560px; }
.game-card .media { position: relative; overflow: hidden; background: #000; }
.game-card .media video, .game-card .media img { width: 100%; height: 100%; object-fit: cover; }
.game-card .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, var(--asphalt)); }
.game-card .info { padding: 64px 52px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.game-card .logo { width: min(380px, 100%); margin-bottom: 10px; }

.contact-block { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.mail {
  display: inline-block; font: 700 clamp(1.15rem, 6vw, 2.1rem)/1.2 var(--head); letter-spacing: .02em;
  color: #fff; text-decoration: none; border-bottom: 3px solid var(--gold); padding-bottom: 6px; white-space: nowrap;  /* always one line */
}
.mail:hover { color: var(--gold); }

/* ================================================================ EQZ (asphalt + hazard) */
.eqz { background: var(--asphalt); }
.hazard-bar { height: 12px; background: repeating-linear-gradient(-45deg, var(--ink) 0 14px, var(--yellow) 14px 28px); }
.eqz-hero { position: relative; min-height: min(94vh, 900px); display: grid; align-items: center; padding: 0; overflow: hidden; isolation: isolate; }
.eqz-hero .bg { position: absolute; inset: 0; z-index: -2; }
.eqz-hero .bg video, .eqz-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.eqz-hero::after { /* a dark band behind the words, so they read over the motion */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(11 11 15 / .92) 0%, rgb(11 11 15 / .78) 32%, rgb(11 11 15 / .2) 62%, transparent 80%),
    linear-gradient(180deg, rgb(11 11 15 / .5) 0%, transparent 25%, transparent 70%, var(--asphalt) 100%);
}
.eqz-hero .wrap { padding: 120px 0 96px; }
.hero-copy { max-width: 600px; }
.eqz-hero .logo { width: min(600px, 100%); filter: drop-shadow(0 12px 30px rgb(0 0 0 / .7)); margin: 0 0 26px -10px; }
.eqz-hero h1 { font: 700 clamp(2.1rem, 4.6vw, 3.4rem)/1 var(--head); text-transform: uppercase; margin-bottom: 12px; text-shadow: 0 2px 14px rgb(0 0 0 / .8); }
.eqz-hero .sub { font-size: clamp(1.1rem, 1.9vw, 1.28rem); color: var(--cream); max-width: 34ch; margin-bottom: 30px; text-shadow: 0 2px 10px rgb(0 0 0 / .8); }
.eqz-hero .chip { margin-bottom: 26px; }

.motion-toggle { /* accessibility: stop the background motion */
  position: absolute; right: 16px; bottom: 28px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px;
  background: rgb(11 11 15 / .75); color: var(--cream); border: 1px solid var(--line); cursor: pointer;
  font: 700 .8rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase;
}
.motion-toggle:hover { border-color: var(--cream); }
.motion-toggle svg { width: 12px; height: 12px; }

.trailer-box { position: relative; border: 3px solid var(--ink); outline: 1px solid var(--line); background: #000; box-shadow: 0 30px 80px rgb(0 0 0 / .55); }
.trailer-box video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.play-cover { /* the custom cover: an action frame + a big play plate, until it's clicked */
  position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: #000; display: grid; place-items: center;
}
.play-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.72); transition: filter .25s, transform .4s; }
.play-cover:hover img { filter: brightness(.9); transform: scale(1.015); }
.play-cover .plate {
  position: relative; display: inline-flex; align-items: center; gap: 16px; padding: 20px 34px 20px 42px;
  background: var(--hazard); color: var(--ink); font: 700 clamp(1rem, 2.4vw, 1.5rem)/1 var(--pixel); text-transform: uppercase;
  box-shadow: 0 6px 0 var(--hazard-dark), 0 18px 40px rgb(0 0 0 / .5);
}
.play-cover .plate::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: repeating-linear-gradient(-45deg, var(--ink) 0 6px, var(--yellow) 6px 12px); }
.play-cover .plate svg { width: 26px; height: 26px; }
.play-cover .len { position: absolute; right: 18px; bottom: 16px; font: 700 .9rem/1 var(--head); letter-spacing: .14em; color: var(--cream); background: rgb(0 0 0 / .6); padding: 7px 10px; }
.play-cover[hidden] { display: none; }
.trailer-box.yt { aspect-ratio: 16 / 9; }
.trailer-box.yt .play-cover { text-decoration: none; }
.trailer-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 16px 0 0; font: 700 .9rem/1.4 var(--head); letter-spacing: .12em; text-transform: uppercase; }
.trailer-links a { color: var(--cream); text-decoration: none; border-bottom: 2px solid var(--hazard); }
.trailer-links a:hover { color: var(--yellow); border-color: var(--yellow); }
.trailer-links span { color: var(--muted); }

.pitch { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.pitch .big { font: 700 clamp(2.2rem, 4.6vw, 3.6rem)/1 var(--head); text-transform: uppercase; }
.pitch .big em { font-style: normal; color: var(--hazard); }

.feature-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; padding: 44px 0; }
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row:nth-child(even) { grid-template-columns: 1fr 1.35fr; }
.feature-row:nth-child(even) .clip { order: 2; }
.clip { position: relative; background: #000; border: 3px solid var(--ink); outline: 1px solid var(--line); box-shadow: 0 24px 60px rgb(0 0 0 / .5); }
.clip video, .clip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature-row h3 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.feature-row p { color: var(--muted); font-size: 1.1rem; max-width: 46ch; }
.feature-row .num { font: 700 .88rem/1 var(--head); letter-spacing: .2em; color: var(--hazard); display: block; margin-bottom: 12px; }

.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.mini { background: var(--asphalt-2); border: 1px solid var(--line); }
.mini img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 3px solid var(--hazard); }
.mini .txt { padding: 20px 22px 24px; }
.mini h3 { font-size: 1.5rem; margin-bottom: .3em; }
.mini p { color: var(--muted); margin: 0; }

.zones { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); counter-reset: zone; }
.zone { padding: 30px 28px 32px; border-right: 1px solid var(--line); background: var(--asphalt-2); }
.zone:last-child { border-right: 0; }
.zone::before { counter-increment: zone; content: "Zone " counter(zone); display: block; font: 700 .88rem/1 var(--head); color: var(--hazard); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 16px; }
.zone h3 { font-size: 2rem; }
.zone p { color: var(--muted); margin: 0; }
.zone .boss { margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--line); font: 700 .95rem/1.4 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--cream); }
.zone .boss span { color: var(--blood); }
.escape-tag { text-align: center; padding: 20px; border: 1px solid var(--line); border-top: 0; font: 700 1rem/1 var(--pixel); letter-spacing: .08em; color: var(--yellow); background: var(--ink); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery button { padding: 0; border: 0; background: #000; cursor: zoom-in; overflow: hidden; }
.gallery button:nth-child(1), .gallery button:nth-child(6) { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s, filter .35s; }
.gallery button:hover img { transform: scale(1.04); filter: brightness(1.1); }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgb(5 5 8 / .95); display: none; place-items: center; padding: 24px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 86vh; width: auto; border: 3px solid var(--ink); box-shadow: 0 20px 60px #000; }
.lightbox .close, .lightbox .step { position: absolute; background: #2a2832; color: var(--cream); border: 0; width: 48px; height: 48px; font: 700 1.2rem/1 var(--pixel); cursor: pointer; }
.lightbox .close { top: 16px; right: 16px; }
.lightbox .prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox .next { right: 16px; top: 50%; translate: 0 -50%; }

.wishlist { background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wishlist .logo { width: min(320px, 76%); margin: 0 auto 26px; }
.wishlist .actions { justify-content: center; margin-top: 28px; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0; }
.facts div { background: var(--asphalt-2); padding: 18px 20px; }
.facts dt { font: 700 .82rem/1.4 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--hazard); margin-bottom: 6px; }
.facts dd { margin: 0; font-weight: 600; }

/* ---------------------------------------------------------------- inner pages (press kit, FAQ) */
.page-head { padding: 72px 0 40px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--ink), var(--asphalt)); }
.page-head h1 { font-size: clamp(2.8rem, 7vw, 5rem); text-transform: uppercase; margin: 0 0 10px; }
.crumbs { font: 700 .85rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--cream); }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.press-grid { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.press-side { position: sticky; top: 92px; display: grid; gap: 14px; }
.press-side .facts { grid-template-columns: 1fr; }
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.downloads a { display: block; background: #000; position: relative; }
.downloads img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.downloads a span { position: absolute; left: 0; bottom: 0; background: rgb(0 0 0 / .75); color: var(--cream); font: 700 .78rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; padding: 6px 8px; }
.logo-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.logo-tiles a { display: grid; place-items: center; min-height: 180px; padding: 20px; border: 1px solid var(--line); text-decoration: none; color: var(--muted); font: 700 .8rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; gap: 12px; }
.logo-tiles a.dark { background: var(--ink); }
.logo-tiles a.light { background: #e9e4d6; color: #333; }
.logo-tiles img { max-height: 120px; width: auto; }
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font: 700 clamp(1.3rem, 2.4vw, 1.65rem)/1.15 var(--head); text-transform: uppercase; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 700 1.6rem/1 var(--pixel); color: var(--hazard); }
.faq details[open] summary::after { content: "-"; }
.faq details > div { padding: 0 0 22px; color: var(--muted); font-size: 1.08rem; max-width: 68ch; }

/* ---------------------------------------------------------------- 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.lost .code { font: 700 clamp(4rem, 14vw, 9rem)/1 var(--pixel); color: var(--hazard); margin: 0; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 960px) {
  section { padding: 68px 0; }
  .studio-intro, .contact-block, .pitch, .press-grid { grid-template-columns: 1fr; gap: 28px; }
  .press-side { position: static; }
  .game-card { grid-template-columns: 1fr; }
  .game-card .media { aspect-ratio: 16 / 9; }
  .game-card .media::after { background: linear-gradient(180deg, transparent 60%, var(--asphalt)); }
  .game-card .info { padding: 30px 20px 60px; }
  .feature-row, .feature-row:nth-child(even) { grid-template-columns: 1fr; gap: 26px; padding: 36px 0; }
  .feature-row:nth-child(even) .clip { order: 0; }
  .minis { grid-template-columns: 1fr 1fr; }
  .zones { grid-template-columns: 1fr; }
  .zone { border-right: 0; border-bottom: 1px solid var(--line); }
  .zone:last-child { border-bottom: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .downloads { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .eqz-hero::after { background: linear-gradient(180deg, rgb(11 11 15 / .55) 0%, rgb(11 11 15 / .35) 30%, rgb(11 11 15 / .88) 70%, var(--asphalt) 100%); }
  .eqz-hero { align-items: end; }
}
@media (max-width: 560px) {
  .minis { grid-template-columns: 1fr; }
  .nav a { padding: 10px 6px; font-size: .85rem; letter-spacing: .06em; }
  .nav a.nav-cta { margin-left: 4px; padding: 8px 10px; }
  .nav .hide-small { display: none; }
  .brand span:last-child { display: none; }
  .btn { width: 100%; }
  .eqz-hero { min-height: 90vh; }
  .eqz-hero .wrap { padding: 96px 0 84px; }
  .foot-grid { grid-template-columns: 1fr; }
  .logo-tiles { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chip::before { animation: none; }
  .gallery img, .btn, .play-cover img { transition: none; }
}
