/* steerling.dev (T-037, landing v5): a studio site. Mobile first. Brand: marketing/brand/BRAND.md.
   The studio's colors everywhere: Midnight, Deep, Steer Blue, Sterling, Signal Amber (amber is light only:
   glows, underlines, focus; never a fill). Oxanium throughout. A game's own palette and type appear only
   inside that game's card, portal and pages (RIG FOR SILENT: Sonar aqua, the trench's teal, Oswald).
   Behind the home page, on capable devices, the live 3D studio world (world.js) on a fixed canvas; every
   other device and page gets a still backdrop with the same layout, decided before first paint (boot.js).
   Contrast on Midnight #070B1A: Sterling #DDE4F3 about 15.4:1, Sterling low #A9B5D2 about 9.5:1,
   Sterling mute #7E8BAD about 5.0:1 (used at 0.875rem and up). Panels stay at 85% Midnight or more. */

@font-face {
  font-family: "Oxanium";
  src: url("/fonts/Oxanium.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Oswald";
  src: url("/type/Oswald-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --midnight: #070b1a;
  --deep: #121a3e;
  --steer-blue: #3b6bff;
  --steer-dark: #0f1f66;
  --sterling: #dde4f3;
  --sterling-low: #a9b5d2;
  --sterling-mute: #7e8bad;
  --amber: #ffa52e;
  --sonar: #8ff3e3;
  --sea-twilight: #1e4752;
  --sea-deep: #0b2025;
  --surface: #0c1330;
  --line: rgba(169, 181, 210, 0.14);
  --panel: linear-gradient(180deg, rgba(14, 21, 52, 0.9), rgba(7, 11, 26, 0.92));

  --step--1: 0.875rem;
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2.125rem);
  --step-3: clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem);
  --step-hero: clamp(2.6rem, 1.2rem + 5.6vw, 5.6rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --page: 76rem;
  --measure: 36rem;
  --space-m: 1.5rem;
  --space-l: clamp(3rem, 8vw, 6rem);
  --space-xl: clamp(4.5rem, 12vw, 9rem);
  --radius: 28px;
  --nav-h: 4rem;

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--midnight);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--sterling);
  background:
    radial-gradient(80rem 50rem at 80% -10%, rgba(59, 107, 255, 0.16), rgba(59, 107, 255, 0) 70%),
    radial-gradient(60rem 40rem at -10% 40%, rgba(15, 31, 102, 0.35), rgba(15, 31, 102, 0) 70%),
    var(--midnight);
  font-family: "Oxanium", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ---------- accessibility ---------- */

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.5rem 0.75rem;
  background: var(--deep);
  color: var(--sterling);
  border: 1px solid var(--amber);
  border-radius: 6px;
  z-index: 50;
  text-decoration: none;
}

.skip:focus-visible {
  top: calc(0.75rem + env(safe-area-inset-top, 0px));
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- links and buttons ---------- */

a {
  color: var(--sterling);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover {
  color: #fff;
}

.button {
  --lift: #8d9abb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 160ms ease, color 160ms ease;
}

.button-primary,
.button-small {
  color: var(--midnight);
  background: linear-gradient(180deg, #ffffff 0%, var(--sterling) 55%, #c5cfe6 100%);
  box-shadow: 0 5px 0 var(--lift), 0 10px 28px rgba(0, 0, 0, 0.45);
}

.button-primary:hover,
.button-small:hover {
  color: var(--midnight);
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--lift), 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 26px 2px rgba(255, 165, 46, 0.45);
}

.button-primary:active,
.button-small:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--lift), 0 4px 12px rgba(0, 0, 0, 0.45);
}

.button-ghost {
  color: #fff;
  background: rgba(7, 11, 26, 0.45);
  border: 1.5px solid rgba(221, 228, 243, 0.42);
}

.button-ghost:hover {
  color: #fff;
  border-color: var(--amber);
  box-shadow: 0 0 22px rgba(255, 165, 46, 0.3);
}

.button-small,
.button-compact {
  min-height: 2.875rem;
  padding: 0 1.15rem;
  font-size: 0.9375rem;
}

/* ---------- the world behind the home page ---------- */

.world {
  display: none;
}

.world-wanted .world {
  display: block;
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 30% at 70% 58%, rgba(255, 165, 46, 0.18), rgba(255, 165, 46, 0) 70%),
    linear-gradient(180deg, #03050d 0%, #070b1a 45%, #0f1a44 60%, #050816 61%, #02040a 100%);
}

/* Until the live world fades in (it loads after the first paint), the hero shows the world's own still, the
   same image the still page uses; the canvas then fades in over it and covers it. */
.world-wanted .world {
  background:
    url("/images/studio-world-900.webp") 50% 30% / cover no-repeat,
    linear-gradient(180deg, #03050d 0%, #070b1a 45%, #0f1a44 60%, #050816 61%, #02040a 100%);
}

@media (min-width: 48rem) {
  .world-wanted .world {
    background:
      url("/images/studio-world-1920.webp") center / cover no-repeat,
      linear-gradient(180deg, #03050d 0%, #070b1a 45%, #0f1a44 60%, #050816 61%, #02040a 100%);
  }
}

.world-canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1200ms ease;
}

.world-on .world-canvas {
  opacity: 1;
}

.world-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 5, 13, 0.55) 0, rgba(3, 5, 13, 0) 16%),
    linear-gradient(0deg, rgba(3, 5, 13, 0.45) 0, rgba(3, 5, 13, 0) 22%);
}

.world-wanted body {
  background: var(--midnight);
}

.is-portal-hover,
.is-portal-hover body {
  cursor: pointer;
}

.nav,
main,
.footer {
  position: relative;
  z-index: 1;
}

/* ---------- navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 26, 0.6);
  border-bottom: 1px solid rgba(221, 228, 243, 0.08);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.nav.is-scrolled::before,
.nav.is-open::before,
body:not(.home) .nav::before {
  opacity: 1;
}

.nav-inner {
  position: relative;
  max-width: var(--page);
  margin: 0 auto;
  min-height: var(--nav-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
  margin-right: auto;
}

.lockup img {
  width: 1.85rem;
  height: 1.85rem;
}

.lockup-name {
  font-weight: 800;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.8rem;
  color: var(--sterling-low);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
  background: rgba(221, 228, 243, 0.08);
}

.button-nav {
  min-height: 2.6rem;
  padding: 0 1rem;
  font-size: 0.875rem;
  border-radius: 12px;
  color: var(--midnight);
  background: linear-gradient(180deg, #ffffff, var(--sterling));
  box-shadow: 0 3px 0 #8d9abb, 0 6px 18px rgba(0, 0, 0, 0.4);
}

.button-nav:hover {
  color: var(--midnight);
  box-shadow: 0 3px 0 #8d9abb, 0 0 20px rgba(255, 165, 46, 0.45);
}

.nav-toggle {
  display: none;
}

@media (max-width: 47.99rem) {
  .lockup-name {
    font-size: 1.05rem;
  }

  .button-nav {
    min-height: 2.4rem;
    padding: 0 0.85rem;
    font-size: 0.8125rem;
  }

  .nav-inner {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 4;
    flex-basis: 100%;
    overflow-x: auto;
    padding-bottom: 0.4rem;
  }

  .js .nav-toggle {
    display: inline-grid;
    place-content: center;
    gap: 6px;
    order: 3;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(221, 228, 243, 0.2);
    border-radius: 12px;
    background: rgba(7, 11, 26, 0.5);
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--sterling);
    transition: transform 200ms ease;
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .js .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    padding: 0.5rem;
    border-radius: 18px;
    background: rgba(9, 14, 34, 0.97);
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  }

  .js .nav.is-open .nav-links {
    display: flex;
  }

  .js .nav-links a {
    min-height: 48px;
    font-size: 1.05rem;
    color: var(--sterling);
  }
}

/* ---------- shared section parts ---------- */

.section-inner {
  position: relative;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(221, 228, 243, 0.18);
  background: rgba(7, 11, 26, 0.5);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sterling);
}

.eyebrow-light {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px 2px rgba(255, 165, 46, 0.7);
}

.section-title {
  margin: 0 0 1.5rem;
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-bottom: 1.5rem;
}

.section-head .section-title {
  margin: 0;
}

.section-note {
  margin: 0;
  max-width: 24rem;
  color: var(--sterling-low);
  font-size: var(--step--1);
}

.sub-title {
  margin: var(--space-l) 0 1.25rem;
  font-size: var(--step-2);
  font-weight: 800;
  color: #fff;
}

.panel {
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.panel-kicker {
  margin: 0 0 0.75rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sterling-low);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 clamp(5.5rem, 14vh, 8rem);
}

.hero-fallback {
  position: absolute;
  inset: calc(var(--nav-h) * -1 - env(safe-area-inset-top, 0px)) 0 0;
  z-index: -1;
}

html:not(.world-wanted) .hero-fallback {
  background:
    linear-gradient(180deg, rgba(7, 11, 26, 0.35) 0%, rgba(7, 11, 26, 0) 30%, rgba(7, 11, 26, 0.55) 62%, var(--midnight) 100%),
    url("/images/studio-world-900.webp") 50% 30% / cover no-repeat,
    var(--midnight);
}

@media (min-width: 48rem) {
  html:not(.world-wanted) .hero-fallback {
    background:
      linear-gradient(90deg, rgba(7, 11, 26, 0.7) 0%, rgba(7, 11, 26, 0.15) 55%, rgba(7, 11, 26, 0) 100%),
      linear-gradient(180deg, rgba(7, 11, 26, 0) 70%, var(--midnight) 100%),
      url("/images/studio-world-1920.webp") center / cover no-repeat,
      var(--midnight);
  }
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero-title {
  margin: 0;
  max-width: 10.5em;
  font-size: var(--step-hero);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 2px rgba(3, 5, 13, 0.4), 0 10px 40px rgba(3, 5, 13, 0.65);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1rem;
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sterling-low);
  white-space: nowrap;
}

.scroll-cue-line {
  width: 1px;
  height: 2.25rem;
  background: linear-gradient(180deg, rgba(221, 228, 243, 0), var(--sterling));
}

@media (max-width: 47.99rem) {
  .scroll-cue {
    display: none;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }
}

/* ---------- the portal window: open space where the world shows RIG FOR SILENT's portal ---------- */

.window {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12vh;
}

.portal-still {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(78vw, 30rem);
  aspect-ratio: 1.1547;
  transform: translate(-50%, -58%);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: linear-gradient(140deg, var(--sterling), var(--steer-blue));
  padding: 10px;
}

.portal-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.world-wanted .portal-still {
  display: none;
}

.window-label {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.75rem 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(143, 243, 227, 0.4);
  background: rgba(2, 14, 18, 0.72);
  text-decoration: none;
  box-shadow: 0 0 40px rgba(143, 243, 227, 0.18);
}

.window-label-name {
  font-family: "Oswald", "Arial Narrow", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.1;
  color: #fff;
}

.window-label-status {
  font-size: 0.875rem;
  color: var(--sonar);
}

.window-label:hover {
  border-color: var(--sonar);
}

/* ---------- games ---------- */

.games {
  padding: var(--space-l) 0;
}

.games-grid {
  display: grid;
  gap: 1rem;
}

.game-card {
  position: relative;
  display: grid;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(8, 30, 36, 0.94), rgba(4, 14, 18, 0.96));
  border: 1px solid rgba(143, 243, 227, 0.22);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.game-card-art {
  position: relative;
  display: block;
}

.game-card-art img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.game-card:hover .game-card-art img {
  transform: scale(1.04);
}

.card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  margin: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(7, 11, 26, 0.75);
  border: 1px solid rgba(143, 243, 227, 0.4);
  color: var(--sonar);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-tag-inline {
  position: static;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.game-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.game-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.game-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.game-name {
  margin: 0;
  font-family: "Oswald", "Arial Narrow", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: #fff;
}

.game-name a {
  color: inherit;
  text-decoration: none;
}

.game-status {
  margin: 0.35rem 0 0;
  color: var(--sonar);
  font-weight: 600;
  font-size: 0.9375rem;
}

.game-line {
  margin: 1rem 0 0;
  max-width: 32rem;
  font-size: var(--step-1);
  line-height: 1.5;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.game-play {
  margin: 0;
}

/* release switch: data-release="soon" shows the status, "live" shows Play. */

[data-release="soon"] .game-play {
  display: none;
}

[data-release="live"] .game-status {
  display: none;
}

.classified {
  position: relative;
  min-height: 12rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(59, 107, 255, 0.3), rgba(59, 107, 255, 0) 60%),
    linear-gradient(180deg, rgba(14, 20, 50, 0.94), rgba(7, 11, 26, 0.96));
  border: 1px dashed rgba(169, 181, 210, 0.32);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.classified-alt {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(155, 140, 255, 0.24), rgba(155, 140, 255, 0) 60%),
    linear-gradient(180deg, rgba(18, 16, 48, 0.94), rgba(7, 8, 24, 0.96));
}

.classified-fx {
  position: absolute;
  inset: 0;
  background: url("/images/fx/static.png");
  opacity: 0.08;
  mix-blend-mode: screen;
  pointer-events: none;
}

.lock {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  color: var(--sterling-low);
}

.sealed-tag {
  position: relative;
  align-self: flex-start;
  margin: 0 0 0.6rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(169, 181, 210, 0.35);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sterling-low);
}

.classified-title {
  position: relative;
  margin: 0;
  font-size: var(--step-1);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

.redact {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.75rem 0 0;
}

.redact span {
  display: block;
  height: 0.6rem;
  border-radius: 3px;
  background: rgba(221, 228, 243, 0.2);
}

.redact span:nth-child(1) {
  width: 46%;
}

.redact span:nth-child(2) {
  width: 30%;
}

.redact span:nth-child(3) {
  width: 62%;
}

/* ---------- studio ---------- */

.studio {
  padding: var(--space-xl) 0 var(--space-l);
}

.studio-grid {
  display: grid;
  gap: 1rem;
}

.lead {
  margin: 0;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}

.lead-small {
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.65rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--sterling);
}

.body {
  margin: 1rem 0 0;
  max-width: var(--measure);
  color: var(--sterling-low);
}

.make-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.make-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.35rem 1.4rem;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.make-tile::after {
  content: "";
  position: absolute;
  inset: auto -20% -60% 30%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(59, 107, 255, 0.28), rgba(59, 107, 255, 0));
  pointer-events: none;
}

.make-icon {
  flex: 0 0 auto;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0.6rem;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(160deg, var(--steer-blue), var(--steer-dark));
  box-shadow: 0 6px 0 #0a1440, 0 0 24px rgba(59, 107, 255, 0.5);
}

.make-tile h4 {
  margin: 0;
  font-size: var(--step-2);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: #fff;
}

/* ---------- community and calls to action ---------- */

.community {
  padding: var(--space-l) 0 var(--space-xl);
}

.cta-grid {
  display: grid;
  gap: 1rem;
}

.cta {
  position: relative;
  display: block;
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  text-decoration: none;
  color: var(--sterling);
  overflow: hidden;
}

.cta h2,
.cta h3 {
  margin: 0;
  font-size: var(--step-2);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.cta-community {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(59, 107, 255, 0.4), rgba(59, 107, 255, 0) 60%),
    var(--panel);
}

.cta-mark {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 18px rgba(59, 107, 255, 0.6));
}

.cta-action {
  margin: 1.25rem 0 0;
}

.cta-press p {
  margin: 0.6rem 3rem 0 0;
  color: var(--sterling-low);
}

.cta-arrow {
  position: absolute;
  right: 1.4rem;
  top: 50%;
  width: 2.5rem;
  height: 2.5rem;
  margin-top: -1.25rem;
  border-radius: 50%;
  border: 1.5px solid rgba(221, 228, 243, 0.35);
  transition: border-color 160ms ease, transform 160ms ease;
}

.cta-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border-top: 2px solid var(--sterling);
  border-right: 2px solid var(--sterling);
  transform: translate(-65%, -50%) rotate(45deg);
}

.cta-press:hover {
  color: var(--sterling);
  border-color: rgba(221, 228, 243, 0.3);
}

.cta-press:hover .cta-arrow {
  border-color: var(--amber);
  transform: translateX(4px);
}

/* ---------- a game's own page: its palette, inside its pages only ---------- */

.game-page {
  background:
    radial-gradient(70rem 40rem at 70% 0%, rgba(30, 71, 82, 0.55), rgba(30, 71, 82, 0) 70%),
    linear-gradient(180deg, #06161b 0%, var(--sea-deep) 40%, #040c0f 100%);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  font-size: var(--step--1);
  color: var(--sterling-low);
}

.crumbs a {
  color: var(--sterling-low);
}

.game-hero {
  position: relative;
  min-height: min(88vh, 52rem);
  display: flex;
  align-items: flex-end;
  padding: 0 0 var(--space-l);
  margin-top: calc(var(--nav-h) * -1);
}

.game-hero-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.game-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
}

.game-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 12, 15, 0.55) 0%, rgba(4, 12, 15, 0.1) 30%, rgba(4, 12, 15, 0.75) 70%, #071a1f 100%),
    linear-gradient(90deg, rgba(4, 12, 15, 0.6), rgba(4, 12, 15, 0) 60%);
}

.game-hero-inner {
  width: 100%;
  padding-top: calc(var(--nav-h) + 2rem);
}

.game-name-big {
  font-size: clamp(2.6rem, 1.6rem + 5vw, 5.5rem);
}

.game-media {
  display: grid;
  gap: 1.5rem;
  padding-top: var(--space-l);
  padding-bottom: var(--space-l);
}

.trailer {
  margin: 0;
}

.trailer video {
  display: block;
  width: 100%;
  max-width: 17rem;
  height: auto;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border-radius: 20px;
  background: #000;
  border: 1px solid rgba(143, 243, 227, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.trailer figcaption,
.gallery figcaption {
  margin-top: 0.7rem;
  text-align: center;
  font-size: var(--step--1);
  color: var(--sterling-mute);
}

.gallery {
  margin: 0;
}

.gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(143, 243, 227, 0.14);
}

.game-press {
  padding-bottom: var(--space-xl);
}

.game-page .cta {
  background: linear-gradient(180deg, rgba(8, 30, 36, 0.94), rgba(4, 14, 18, 0.96));
  border-color: rgba(143, 243, 227, 0.2);
}

/* ---------- press kits ---------- */

.label {
  margin: 0 0 1rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sterling-low);
}

.press {
  max-width: var(--page);
  width: 100%;
  margin: 0 auto;
  padding: var(--space-l) var(--gutter) var(--space-xl);
}

.press-intro h1 {
  margin: 0;
  max-width: 16em;
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}

.press-section {
  margin-top: var(--space-l);
}

.press-section h2 {
  margin: 0 0 1rem;
  font-size: var(--step-1);
  font-weight: 700;
  color: #fff;
}

.facts {
  display: grid;
  gap: 0;
  margin: 0;
  max-width: 48rem;
  border-top: 1px solid var(--line);
}

.facts > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  color: var(--sterling-mute);
  font-size: var(--step--1);
  line-height: 1.6;
}

.facts dd {
  margin: 0;
}

.downloads,
.swatches {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
}

.download {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--sterling);
  transition: border-color 160ms ease;
}

.download:hover {
  color: #fff;
  border-color: rgba(169, 181, 210, 0.35);
}

.download-preview {
  flex: 0 0 auto;
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  overflow: hidden;
  background: var(--midnight);
}

.download-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.download-preview-mark img {
  width: 2.75rem;
  height: 2.75rem;
}

.download-preview-wide {
  width: 7.125rem;
}

.download-preview-tall img {
  width: 2.25rem;
}

.download-text {
  display: grid;
  gap: 0.1rem;
}

.download-name {
  font-weight: 600;
}

.download-meta {
  font-size: var(--step--1);
  color: var(--sterling-mute);
}

.swatches {
  grid-template-columns: repeat(2, 1fr);
}

.swatch {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  align-items: center;
  padding: 0.6rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.swatch-chip {
  grid-row: 1 / 3;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  border: 1px solid rgba(221, 228, 243, 0.2);
}

.swatch-name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.swatch-hex {
  font-size: var(--step--1);
  color: var(--sterling-mute);
  font-variant-numeric: tabular-nums;
}

.swatch-midnight .swatch-chip {
  background: #070b1a;
}

.swatch-deep .swatch-chip {
  background: #121a3e;
}

.swatch-steer-blue .swatch-chip {
  background: #3b6bff;
}

.swatch-steer-blue-dark .swatch-chip {
  background: #0f1f66;
}

.swatch-sterling .swatch-chip {
  background: #dde4f3;
}

.swatch-signal-amber .swatch-chip {
  background: #ffa52e;
}

/* ---------- footer ---------- */

.footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: rgba(3, 5, 13, 0.9);
}

.footer-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--space-l) var(--gutter) max(var(--space-m), env(safe-area-inset-bottom));
  display: grid;
  gap: 2rem;
  font-size: var(--step--1);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
}

.footer-tag {
  margin: 0.4rem 0 0;
  color: var(--sterling-low);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
}

.footer-col h2 {
  margin: 0 0 0.4rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sterling-mute);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--sterling-low);
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--amber);
}

.footer-legal {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--sterling-mute);
}

/* ---------- wide screens ---------- */

@media (min-width: 48rem) {
  .hero {
    justify-content: center;
    padding-bottom: 6rem;
  }

  .games-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .game-card {
    grid-column: 1 / -1;
    grid-template-columns: 1.3fr 1fr;
  }

  .game-card-art img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 22rem;
  }

  .game-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
  }

  .classified {
    min-height: 14rem;
    padding: 1.75rem;
  }

  .studio-grid {
    grid-template-columns: 1.1fr 1fr;
  }

  .panel {
    padding: 2.25rem;
  }

  .make-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .make-tile {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
    min-height: 15rem;
    padding: 1.75rem;
  }

  .make-icon {
    width: 4rem;
    height: 4rem;
  }

  .cta-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .cta-community {
    grid-row: span 2;
  }

  .cta {
    padding: 2rem;
  }

  .game-media {
    grid-template-columns: minmax(15rem, 19rem) 1fr;
    align-items: start;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .swatches {
    grid-template-columns: repeat(3, 1fr);
  }

  .facts {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 2.6fr;
  }

  .footer-cols {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-legal {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .games-grid {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
  }

  .game-card {
    grid-column: 1;
    grid-row: 1 / 3;
    grid-template-columns: 1fr;
  }

  .game-card-art img {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
}

@media (hover: hover) and (min-width: 64rem) {
  .panel,
  .cta,
  .classified,
  .make-tile {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- scroll reveal and ambient motion: only with motion allowed ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  .make-tile:nth-child(2),
  .classified + .classified {
    transition-delay: 90ms;
  }

  .make-tile:nth-child(3) {
    transition-delay: 180ms;
  }

  .hero-inner > * {
    animation: rise 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero-title {
    animation-delay: 120ms;
  }

  .hero-actions {
    animation-delay: 260ms;
  }

  .scroll-cue-line {
    animation: cue 2.4s ease-in-out infinite;
    transform-origin: top;
  }

  .eyebrow-light {
    animation: pulse 2.6s ease-in-out infinite;
  }

  .classified-fx {
    animation: static 0.9s steps(6) infinite;
  }

  .redact span {
    background: linear-gradient(90deg, rgba(221, 228, 243, 0.14), rgba(221, 228, 243, 0.34), rgba(221, 228, 243, 0.14));
    background-size: 200% 100%;
    animation: shimmer 2.8s linear infinite;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cue {
  0%,
  100% {
    transform: scaleY(0.3);
    opacity: 0.4;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 6px 1px rgba(255, 165, 46, 0.5);
  }

  50% {
    box-shadow: 0 0 14px 4px rgba(255, 165, 46, 0.85);
  }
}

@keyframes static {
  to {
    background-position: 96px 48px;
  }
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

@media (forced-colors: active) {
  .button,
  .game-card,
  .panel,
  .cta,
  .classified,
  .make-tile {
    border: 1px solid CanvasText;
  }
}
