:root {
  --ink: #07101f;
  --ink-raised: #0a1629;
  --panel: #0d1b33;
  --line: #263b58;
  --line-soft: rgba(143, 209, 255, 0.17);
  --text: #f7fbff;
  --muted: #91a7bd;
  --blue: #8fd1ff;
  --blue-strong: #4aaeff;
  --red: #b9e5ff;
  --shell: min(1180px, calc(100% - 48px));
  --display: "Montserrat Variable", "Montserrat", "Segoe UI", sans-serif;
  --brand: "Cinzel Variable", "Times New Roman", serif;
  --body: "Montserrat Variable", "Montserrat", "Segoe UI", sans-serif;
}

@font-face {
  font-family: "Montserrat Variable";
  src: url("/assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Cinzel Variable";
  src: url("/assets/fonts/cinzel-latin-wght-normal.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 72% 12%, rgba(74, 174, 255, 0.16), transparent 36rem),
    linear-gradient(180deg, #09152a 0%, #07101f 56%, #081326 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

::selection {
  background: var(--blue);
  color: var(--ink);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  transform: translateY(-150%);
  background: var(--blue);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 760;
  line-height: 0.98;
  text-wrap: balance;
}

h1,
h2 {
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

h1 span,
h2 span {
  color: var(--blue);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line-soft);
  background: rgba(8, 11, 15, 0.88);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  flex: 0 0 auto;
}

.brand-type {
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  line-height: 1;
  text-transform: uppercase;
}

.brand-type strong {
  font-family: var(--brand);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.brand-type span {
  margin-top: 5px;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.56rem;
  letter-spacing: 0.34em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.site-nav a {
  position: relative;
  color: #cbd3da;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--blue);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 780px;
  padding-top: 84px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(125, 217, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 217, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to right, transparent, #000 38%, #000);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  min-height: 620px;
  min-width: 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 80px 0;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(4.4rem, 8.6vw, 8.2rem);
}

.hero h1 span {
  position: relative;
  color: var(--blue);
  filter: drop-shadow(0 0 12px rgba(74, 174, 255, 0.46));
  -webkit-text-stroke: 0;
}

.hero-lede {
  max-width: 620px;
  margin-bottom: 38px;
  color: #bbc5ce;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--blue);
  background: linear-gradient(180deg, #dff4ff 0%, var(--blue) 100%);
  color: #061017;
  box-shadow: 0 0 24px rgba(74, 174, 255, 0.22);
}

.button-primary:hover {
  border-color: #b6ebff;
  background: #b6ebff;
}

.button-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.hero-frame {
  position: absolute;
  top: 50%;
  right: -80px;
  width: min(43vw, 540px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(125, 217, 255, 0.05), transparent 44%),
    rgba(9, 14, 20, 0.75);
  box-shadow: 0 0 90px rgba(20, 131, 180, 0.12);
  clip-path: polygon(0 8%, 8% 0, 100% 0, 100% 92%, 92% 100%, 0 100%);
}

.hero-frame::before,
.hero-frame::after {
  position: absolute;
  content: "";
  background: var(--blue);
}

.hero-frame::before {
  top: 0;
  left: 8%;
  width: 23%;
  height: 2px;
}

.hero-frame::after {
  right: 0;
  bottom: 8%;
  width: 2px;
  height: 20%;
}

.sector-disc {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(-14deg);
  border: 1px solid rgba(125, 217, 255, 0.58);
  border-radius: 50%;
  box-shadow: inset 0 0 52px rgba(125, 217, 255, 0.07);
}

.sector-disc::before,
.sector-disc::after {
  position: absolute;
  inset: 9%;
  content: "";
  border: 1px dashed rgba(125, 217, 255, 0.28);
  border-radius: 50%;
}

.sector-disc::after {
  inset: 29%;
  border-style: solid;
  border-color: rgba(143, 209, 255, 0.72);
}

.disc-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: var(--red);
  box-shadow: 0 0 28px rgba(143, 209, 255, 0.58);
}

.disc-track {
  position: absolute;
  background: var(--ink-raised);
}

.disc-track-one {
  top: -2px;
  left: 29%;
  width: 29%;
  height: 8px;
}

.disc-track-two {
  right: -2px;
  bottom: 26%;
  width: 8px;
  height: 22%;
}

.visual-code {
  position: absolute;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.code-top { top: 7%; left: 8%; }
.code-bottom { right: 8%; bottom: 7%; color: var(--blue); }

.crosshair {
  position: absolute;
  width: 13px;
  height: 13px;
}

.crosshair::before,
.crosshair::after {
  position: absolute;
  content: "";
  background: var(--muted);
}

.crosshair::before { top: 6px; left: 0; width: 13px; height: 1px; }
.crosshair::after { top: 0; left: 6px; width: 1px; height: 13px; }
.crosshair-one { top: 18%; right: 16%; }
.crosshair-two { bottom: 17%; left: 14%; }

.hero-status {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.hero-status span {
  padding: 20px 26px;
  border-right: 1px solid var(--line);
  color: #c7d0d8;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-status span:first-child { border-left: 1px solid var(--line); }
.hero-status i { margin-right: 12px; color: var(--blue); font-style: normal; }

.section {
  padding: 120px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 60px;
}

.section-heading h2,
.capability-intro h2,
.studio-band h2 {
  margin: 0;
  font-size: clamp(2.8rem, 5.7vw, 5.8rem);
}

.section-heading > p {
  margin: 0 0 7px;
  color: var(--muted);
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

.game-card {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 480px;
  border: 1px solid var(--line);
  background: var(--ink-raised);
}

.game-art {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 58% 45%, rgba(125, 217, 255, 0.12), transparent 28%),
    linear-gradient(145deg, #0d151d, #090c11);
}

.game-art::before {
  position: absolute;
  inset: 12%;
  content: "";
  border: 1px solid rgba(125, 217, 255, 0.22);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.media-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 217, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 217, 255, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
}

.media-corner {
  position: absolute;
  bottom: 24px;
  left: 24px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
}

.sector-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(125, 217, 255, 0.64);
  border-radius: 50%;
  box-shadow: 0 0 48px rgba(50, 179, 232, 0.12);
}

.sector-orbit::before,
.sector-orbit::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.sector-orbit::before { inset: 17%; border: 1px dashed rgba(125, 217, 255, 0.36); }
.sector-orbit::after { inset: 38%; background: var(--red); border-radius: 0; }

.sector-orbit i {
  position: absolute;
  top: 49%;
  left: -18%;
  width: 136%;
  height: 2px;
  transform: rotate(-32deg);
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.game-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 78px);
}

.game-card-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 4vw, 4.4rem);
}

.game-card-copy > p:not(.eyebrow) {
  margin-bottom: 30px;
  color: var(--muted);
}

.game-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #d8dee4;
  font-size: 0.82rem;
}

.game-meta small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin-top: 28px;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-link span {
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.capabilities {
  border-top: 1px solid var(--line);
  background: #0a0e13;
}

.capability-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 80px;
  align-items: end;
  margin-bottom: 70px;
}

.capability-intro .eyebrow {
  grid-column: 1 / -1;
}

.capability-intro > p:last-child {
  margin: 0 0 9px;
  color: var(--muted);
}

.capability-grid,
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.capability-grid article,
.principle-grid article {
  min-height: 250px;
  padding: 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capability-grid article > span,
.principle-grid article > span {
  display: block;
  margin-bottom: 54px;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.64rem;
}

.capability-grid h3,
.principle-grid h3 {
  margin-bottom: 14px;
  font-size: 1.48rem;
  text-transform: uppercase;
}

.capability-grid p,
.principle-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.studio-band {
  padding: 105px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(100deg, rgba(125, 217, 255, 0.07), transparent 42%),
    #0c1117;
}

.studio-band-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 100px;
  align-items: end;
}

.studio-band-grid > div:last-child {
  padding-left: 38px;
  border-left: 1px solid var(--line);
}

.studio-band-grid > div:last-child p {
  color: #bac4cd;
}

.page-hero {
  position: relative;
  padding: 210px 0 105px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero::after {
  position: absolute;
  top: 82px;
  right: -8%;
  width: 48%;
  height: 100%;
  content: "";
  background-image:
    linear-gradient(rgba(125, 217, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 217, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to right, transparent, #000);
}

.page-hero .shell {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  max-width: 980px;
  margin-bottom: 28px;
  font-size: clamp(4rem, 8vw, 7.8rem);
}

.page-hero .lede {
  max-width: 700px;
  margin: 0;
  color: #aeb9c3;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}

.game-index {
  padding-top: 96px;
}

.archive-note {
  padding: 72px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-raised);
}

.archive-note-grid {
  display: grid;
  grid-template-columns: 0.32fr 1fr;
  gap: 50px;
}

.archive-index {
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.archive-note h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.archive-note p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.editorial-grid {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: 90px;
}

.editorial-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(125, 217, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 217, 255, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
}

.editorial-marker span {
  color: transparent;
  font-family: var(--display);
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  -webkit-text-stroke: 1px var(--blue);
}

.editorial-marker i {
  width: 54px;
  height: 3px;
  margin: 24px 0;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.editorial-marker small {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  margin-bottom: 30px;
  font-size: clamp(2.2rem, 4.6vw, 4.6rem);
}

.prose p:not(.eyebrow):not(.legal-flag) {
  color: #aeb8c2;
  font-size: 1.04rem;
}

.prose-large > p:not(.eyebrow) {
  font-size: 1.12rem;
}

.principles {
  padding: 100px 0 120px;
  border-top: 1px solid var(--line);
  background: #0a0e13;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
}

.contact-copy h2 {
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 4.7vw, 4.7rem);
}

.contact-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.status-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 38px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--ink-raised);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-panel span {
  color: var(--muted);
}

.status-panel i,
.system-state i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px rgba(143, 209, 255, 0.68);
}

.status-panel strong {
  color: #c8ebff;
}

.contact-channels {
  border-top: 1px solid var(--line);
}

.contact-channels article {
  display: grid;
  gap: 7px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.contact-channels span,
.contact-channels small {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-channels strong {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.2vw, 1.8rem);
  overflow-wrap: anywhere;
}

.contact-channels small {
  color: #a9d8f5;
}

.contact-note {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-raised);
}

.contact-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.legal-hero {
  padding-bottom: 76px;
}

.legal-hero h1 {
  font-size: clamp(3.5rem, 7vw, 6.6rem);
}

.legal-layout {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: 90px;
}

.legal-layout aside {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.legal-copy h2 {
  margin: 48px 0 16px;
  font-size: 1.7rem;
}

.legal-copy h2:first-of-type {
  margin-top: 30px;
}

.legal-flag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 9px 12px;
  border: 1px solid rgba(143, 209, 255, 0.4);
  color: #bfe7ff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.game-detail-hero {
  padding: 180px 0 90px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 40%, rgba(125, 217, 255, 0.08), transparent 28rem);
}

.back-link {
  display: inline-block;
  margin-bottom: 60px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--blue);
}

.game-detail-grid {
  display: grid;
  grid-template-columns: 1fr 0.5fr;
  gap: 100px;
  align-items: end;
}

.game-detail-grid h1 {
  margin-bottom: 28px;
  font-size: clamp(4rem, 8vw, 8rem);
}

.game-detail-grid .lede {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.project-readout {
  border-top: 1px solid var(--line);
}

.project-readout > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.project-readout span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-readout strong {
  font-size: 0.82rem;
  text-align: right;
}

.detail-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
}

.media-placeholder {
  position: relative;
  min-height: 420px;
  padding: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-raised);
}

.media-placeholder::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160px;
  height: 160px;
  content: "";
  transform: translate(-50%, -50%);
  border: 1px solid rgba(125, 217, 255, 0.22);
  border-radius: 50%;
}

.media-placeholder > *:not(.media-grid) {
  position: relative;
  z-index: 2;
}

.media-placeholder strong,
.media-placeholder p {
  display: block;
  max-width: 300px;
}

.media-placeholder strong {
  margin-top: 220px;
  font-family: var(--display);
  font-size: 1.5rem;
  text-transform: uppercase;
}

.media-placeholder p {
  color: var(--muted);
  font-size: 0.85rem;
}

.placeholder-code {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.not-found {
  display: flex;
  align-items: center;
  min-height: 82vh;
  padding: 160px 0 80px;
  text-align: center;
}

.not-found h1 {
  margin-bottom: 20px;
  font-size: clamp(4rem, 10vw, 9rem);
}

.not-found p:not(.error-code) {
  margin-bottom: 34px;
  color: var(--muted);
}

.error-code {
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
}

.site-footer {
  padding-top: 78px;
  background: #06090c;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding-bottom: 70px;
}

.footer-brand {
  margin-bottom: 24px;
}

.footer-grid > div:first-child > p {
  max-width: 360px;
  color: var(--muted);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-links > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  color: #c5ced6;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: #778491;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.59rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.system-state i {
  width: 6px;
  height: 6px;
  background: var(--blue);
  box-shadow: 0 0 10px rgba(125, 217, 255, 0.65);
}

@media (max-width: 900px) {
  :root { --shell: min(100% - 36px, 720px); }
  .site-nav {
    position: absolute;
    top: 76px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    background: rgba(8, 11, 15, 0.98);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 15px; }
  .site-nav a[aria-current="page"]::after { display: none; }
  .nav-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 12px;
    border: 1px solid var(--line);
    background: var(--ink-raised);
    place-content: center;
    gap: 6px;
  }
  .nav-toggle > span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 1px;
    background: var(--text);
  }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 100px 0 30px; }
  .hero-visual { min-height: 430px; }
  .hero-frame { right: 50%; width: min(82vw, 460px); transform: translate(50%, -50%); }
  .section-heading,
  .capability-intro,
  .studio-band-grid,
  .editorial-grid,
  .contact-grid,
  .legal-layout,
  .game-detail-grid,
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .game-card { grid-template-columns: 1fr; }
  .game-art { border-right: 0; border-bottom: 1px solid var(--line); }
  .studio-band-grid > div:last-child { padding: 0; border-left: 0; }
  .editorial-marker { max-width: 450px; }
  .game-detail-grid { align-items: start; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 28px); }
  .nav-shell { min-height: 72px; }
  .brand-type strong { font-size: 0.78rem; }
  .hero { padding-top: 72px; }
  .hero-copy { padding-top: 80px; }
  .hero h1 { max-width: 100%; font-size: clamp(3.35rem, 16.2vw, 4.6rem); }
  .hero-lede { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-visual { min-height: 340px; }
  .hero-status { grid-template-columns: 1fr; }
  .hero-status span,
  .hero-status span:first-child { border: 0; border-top: 1px solid var(--line); }
  .section { padding: 82px 0; }
  .section-heading { gap: 24px; margin-bottom: 38px; }
  .game-art { min-height: 320px; }
  .game-card-copy { padding: 34px 24px; }
  .game-meta { grid-template-columns: 1fr; }
  .capability-grid,
  .principle-grid { grid-template-columns: 1fr; }
  .capability-grid article,
  .principle-grid article { min-height: auto; }
  .capability-grid article > span,
  .principle-grid article > span { margin-bottom: 34px; }
  .page-hero { padding: 160px 0 72px; }
  .page-hero h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .archive-note-grid { grid-template-columns: 1fr; gap: 18px; }
  .studio-band { padding: 76px 0; }
  .contact-grid { gap: 60px; }
  .status-panel { align-items: flex-start; flex-direction: column; }
  .game-detail-hero { padding-top: 140px; }
  .back-link { margin-bottom: 40px; }
  .media-placeholder { min-height: 360px; padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 46px; }
  .footer-base { flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
