/* ============================================================
   Techwriter Software Inc — site stylesheet
   1. Tokens        4. Header
   2. Reset/base    5. Main + pages
   3. Backdrop      6. Footer
   ============================================================ */

/* -- 1. Tokens ---------------------------------------------- */

:root {
  --void: #000;
  --ink: #fff;

  /* Plate greys: the chrome sits well below the artwork in weight. */
  --plate: rgba(255, 255, 255, .46);
  --plate-dim: rgba(255, 255, 255, .28);
  --plate-bright: rgba(255, 255, 255, .88);

  /* Violet lifted from the corruption rim in starfield.js. */
  --rift: #ba8cff;
  --rule: rgba(255, 255, 255, .09);

  --serif: Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4.5vw, 44px);
  --shell: 1140px;
  --header-h: clamp(46px, 6vh, 58px);
}

/* -- 2. Reset / base ---------------------------------------- */

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--void);
  color: var(--ink);
  font-family: var(--serif);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 1px solid var(--rift);
  outline-offset: 4px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--void);
  border: 1px solid var(--rift);
  font: 500 13px/1 var(--sans);
  text-decoration: none;
}

.skip-link:focus {
  left: var(--gutter);
  top: 12px;
}

/* -- 3. Backdrop -------------------------------------------- */
/* Both canvases are persistent chrome: they live in the shell and
   survive every page. The corruption bloom only renders where the
   page opts in with data-fx="full". */

#stars, #corruption {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

#stars { z-index: 0; }

#corruption {
  z-index: 1;
  display: none;
}

body[data-fx="full"] #corruption { display: block; }

/* Interior pages pull the field back so text stays legible. */
body:not([data-fx="full"]) #stars { opacity: .38; }
body[data-page="home"] #stars,
body[data-page="picker"] #stars { opacity: .9; }

/* -- 4. Header ---------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  flex: 0 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(17, 17, 17, .12);
  border-bottom: 1px solid rgba(17, 17, 17, .12);
  background: #f2f4f8;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.site-header::after,
.site-footer::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: rgba(186, 140, 255, .42); box-shadow: 0 0 12px rgba(186, 140, 255, .2); }
.site-header::after { bottom: -1px; }
.site-footer::after { bottom: 0; }

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark {
  font: 400 clamp(11px, 1.15vw, 13px)/1.2 var(--serif);
  text-transform: uppercase;
  letter-spacing: .3em;
  text-indent: .3em;
  color: var(--plate);
  text-decoration: none;
  text-shadow: 0 0 18px rgba(120, 150, 255, .16);
  transition: color 220ms ease;
}

.wordmark:hover { color: var(--plate-bright); }

.brand-logo { display: block; width: 260px; line-height: 0; }
.brand-logo img { display: block; width: 100%; height: 42px; object-fit: contain; object-position: left center; mix-blend-mode: multiply; opacity: .95; }
.header-cta { margin-left: auto; padding: 10px 16px; border: 1px solid #6f43a3; border-radius: 999px; background: #6f43a3; color: #fff; font: 600 11px/1 var(--sans); letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: background 180ms ease, color 180ms ease, transform 180ms ease; }
.header-cta:hover { background: #563185; transform: translateY(-1px); }
.header-cta--disabled { border-color: rgba(17, 17, 17, .2); background: rgba(17, 17, 17, .08); color: rgba(17, 17, 17, .42); cursor: default; pointer-events: none; }
.header-cta--disabled:hover { background: rgba(17, 17, 17, .08); transform: none; }

.site-nav {
  display: flex;
  gap: clamp(18px, 3vw, 34px);
}

.site-nav a {
  position: relative;
  padding-block: 6px;
  font: 400 clamp(12px, 1.05vw, 13.5px)/1 var(--sans);
  letter-spacing: .06em;
  color: var(--plate);
  text-decoration: none;
  transition: color 220ms ease;
}

.site-nav a:hover { color: var(--plate-bright); }

/* Current page carries a violet underscore — the only accent in the
   chrome, so it reads as position rather than decoration. */
.site-nav a[aria-current="page"] {
  color: var(--plate-bright);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--rift);
  box-shadow: 0 0 10px rgba(186, 140, 255, .8);
}

/* On the splash the chrome dissolves into the void. */
body[data-page="home"] .site-header {
  position: sticky;
  background: #f2f4f8;
}

/* -- 5. Main + pages ---------------------------------------- */

.site-main {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

body[data-page="home"] .site-main { background: radial-gradient(circle at 18% 45%, rgba(111, 67, 163, .16), transparent 38%), radial-gradient(circle at 82% 54%, rgba(61, 132, 173, .14), transparent 42%); }

/* 5a. Section picker -------------------------------------- */

.picker {
  flex: 1 1 auto;
  width: min(1180px, 100%);
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vh, 48px) var(--gutter);
}

.picker-intro { margin-bottom: clamp(30px, 5vh, 58px); }

.picker-intro h1 {
  margin: 0;
  font: 400 clamp(36px, 6vw, 72px)/1 var(--serif);
  letter-spacing: -.035em;
}

.picker-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 28px);
}

.picker-card {
  position: relative;
  min-height: min(68vh, 720px);
  padding: clamp(24px, 3vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .28);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.picker-card:hover {
  transform: translateY(-5px);
  border-color: var(--rift);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .35), 0 0 26px rgba(186, 140, 255, .14);
}

.picker-card--software { background: rgba(255, 255, 255, .58); color: #111; border-color: rgba(255, 255, 255, .88); }
.picker-card--games { background: linear-gradient(145deg, rgba(42, 29, 57, .54), rgba(5, 4, 7, .54) 68%); }

.picker-card__art {
  position: absolute;
  inset: 0 0 20%;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.picker-card__art img { width: min(72%, 340px); mix-blend-mode: screen; opacity: .76; }
.picker-card__software-art { position: absolute; inset: 0 0 22%; display: grid; place-items: center; pointer-events: none; }
.picker-card__software-art img { width: min(70%, 340px); max-width: 100%; height: auto; opacity: .92; mix-blend-mode: multiply; }
.picker-card__art img { width: min(82%, 400px); max-width: 100%; height: auto; }

.picker-card__label {
  position: relative;
  z-index: 1;
  font: 400 clamp(28px, 4vw, 52px)/1 var(--serif);
  letter-spacing: -.025em;
}

.picker-card__action {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  font: 500 12px/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: .16em;
}

.picker-card__steam {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: min(100%, 196px);
  height: 82px;
  box-sizing: border-box;
  margin-top: 40px;
  padding: 16px;
  background: #000;
}

.picker-card__steam img {
  display: block;
  width: auto;
  height: 50px;
}

.picker-card--software .picker-card__action { color: #6f43a3; }

/* -- Home chooser: paired liquid-glass surfaces ---------------- */
/* Keep this scoped to the two entry cards so the catalogue retains its own
   card system.  Both choices sit on the same pane of starfield. */
body[data-page="home"] .picker-card {
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: clamp(22px, 2.5vw, 32px);
  box-shadow: 0 22px 58px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .2);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}
body[data-page="home"] .picker-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 1px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, .12), transparent 34%, transparent 68%, rgba(255, 255, 255, .04));
}
body[data-page="home"] .picker-card--software {
  color: #151b4a;
  border-color: rgba(235, 243, 255, .72);
  background:
    radial-gradient(circle at 18% 13%, rgba(255, 255, 255, .68), transparent 36%),
    linear-gradient(145deg, rgba(221, 231, 255, .8), rgba(171, 185, 232, .58) 62%, rgba(126, 141, 196, .5));
}
body[data-page="home"] .picker-card--games {
  background:
    radial-gradient(circle at 84% 18%, rgba(155, 101, 255, .24), transparent 33%),
    linear-gradient(145deg, rgba(50, 35, 82, .5), rgba(12, 11, 28, .34) 64%, rgba(30, 51, 71, .25));
}
body[data-page="home"] .picker-card__art,
body[data-page="home"] .picker-card__software-art { z-index: 1; }
body[data-page="home"] .picker-card__software-art img {
  opacity: .96;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 12px 22px rgba(32, 46, 105, .18));
}
body[data-page="home"] .picker-card__label {
  z-index: 2;
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-shadow: none;
  font: 650 clamp(16px, 2vw, 23px)/1.1 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
}
body[data-page="home"] .picker-card--software .picker-card__label {
  color: #151b4a;
}
body[data-page="home"] .picker-card:hover {
  border-color: rgba(223, 214, 255, .68);
  box-shadow: 0 26px 66px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .3);
}
body[data-page="home"] .picker {
  max-width: 1180px;
  padding-top: clamp(24px, 4vh, 48px);
  padding-bottom: clamp(24px, 4vh, 48px);
}
body[data-page="home"] .picker-choices { width: 100%; }
body[data-page="home"] .picker-grid { max-width: none; margin-inline: 0; }
body[data-page="home"] .picker-card {
  min-height: min(68vh, 720px);
  padding: clamp(24px, 3vw, 42px);
}
body[data-page="home"] .picker-card--software .picker-card__software-art { inset: 0 0 20%; }
body[data-page="home"] .picker-card--software .picker-card__software-art img { width: min(70%, 340px); }
body[data-page="home"] .picker-card--games .picker-card__art { inset: 0 0 20%; }
body[data-page="home"] .picker-card--games .picker-card__art img { width: min(62%, 360px); }

/* -- Games picker ------------------------------------------ */
.games-picker { padding-top: clamp(34px, 6vh, 74px); padding-bottom: clamp(34px, 6vh, 74px); }
.games-picker .picker-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  /* iOS Safari collapses stretched aspect-ratio cards whose content is all
     absolutely positioned; size them from their own ratio instead. */
  align-items: start;
}
.games-picker { --card-head: 52px; --card-foot: 40px; }
.games-picker .picker-card { display: block; width: 100%; min-height: 0; aspect-ratio: 1 / 1; padding: 0; }
.games-picker .picker-card--featured { aspect-ratio: 8 / 5; }
.games-picker .picker-card__art--cover img { object-position: center 40%; }
.games-picker .picker-card .picker-card__art { inset: var(--card-head) 0 var(--card-foot); }
.picker-card__header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: var(--card-head);
  box-sizing: border-box;
  padding: 0 clamp(14px, 1.6vw, 22px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(0, 0, 0, .78);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.picker-card__header .picker-card__steam {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  background: none;
}
.picker-card__header .picker-card__steam img { height: 18px; width: auto; }
.games-picker .picker-card--featured { grid-column: span 2; }
.games-picker .picker-card__action { margin-top: 0; }
.picker-card--retro { background: linear-gradient(145deg, rgba(42, 29, 57, .7), rgba(5, 4, 7, .72) 68%); }
.picker-card--phonics { background: linear-gradient(145deg, rgba(12, 32, 51, .92), rgba(7, 19, 30, .88)); }
.picker-card--charred {
  background:
    linear-gradient(rgba(12, 6, 4, .44), rgba(12, 6, 4, .64));
}
.picker-card--left-right {
  justify-content: flex-end;
  background: linear-gradient(145deg, rgba(16, 91, 112, .9), rgba(4, 20, 31, .92));
}
.picker-card--fail-bike {
  justify-content: flex-end;
  background: linear-gradient(145deg, rgba(113, 39, 61, .9), rgba(28, 7, 15, .92));
}
.picker-card--fork {
  background: #101214;
}
.picker-card__art--cover { inset: var(--card-head, 0) 0 var(--card-foot, 0); }
.picker-card__art--cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: normal;
  opacity: .9;
}
.picker-card--roomfall {
  background:
    linear-gradient(180deg, rgba(11, 36, 102, .1), rgba(5, 10, 35, .86) 88%),
    url("/assets/img/roomfall-sky.png") center / cover;
}
.picker-card__art--tile img { width: min(42%, 220px); mix-blend-mode: normal; opacity: 1; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .34)); }
.picker-card__art--logo img {
  width: min(82%, 400px);
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal;
  opacity: 1;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .34));
}
.picker-card--phonics { background: linear-gradient(180deg, #2f4525, #293e23); }
.picker-card--phonics .picker-card__art--logo { background: linear-gradient(180deg, #2f4525, #293e23); }
.picker-card--phonics .picker-card__art--logo img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  filter: none;
}
.picker-card--retro .picker-card__action { color: #ba8cff; }
.picker-card--phonics .picker-card__action { color: #f0c04a; }
.picker-card__art--charred img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: normal;
  opacity: 1;
}
.picker-card--charred .picker-card__action { color: #ef8d57; }
.picker-card__art--roomfall {
  inset: 0 0 24%;
}
.picker-card__art--roomfall img {
  width: min(88%, 430px);
  max-height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .46));
}
.picker-card--roomfall .picker-card__action { color: #fbbf24; }
.picker-card--left-right .picker-card__action { color: #70d9e8; }
.picker-card--fail-bike .picker-card__action { color: #f3a0ba; }
.picker-card--fork .picker-card__action { color: #ffbd2e; }
.picker-card__art--fork { display: block; background: #101214; }
.picker-card__art--fork img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  mix-blend-mode: normal;
  opacity: 1;
}

.software-page,
body[data-page="software"] { background: var(--void); color: #111; }

body[data-page="software"] #stars { display: block; opacity: .48; }
body[data-page="software"] .site-header,
body[data-page="software"] .site-footer {
  background: #f2f4f8;
  border-color: rgba(17, 17, 17, .12);
}

body[data-page="software"] .wordmark,
body[data-page="software"] .colophon { color: rgba(17, 17, 17, .58); }

body[data-page="software"] .site-nav a,
body[data-page="software"] .footer-nav a { color: rgba(17, 17, 17, .62); }
body[data-page="software"] .brand-logo img { mix-blend-mode: multiply; opacity: .95; }
body[data-page="software"] .site-footer { background: linear-gradient(90deg, rgba(111, 67, 163, .12), rgba(61, 132, 173, .1)); }
body[data-page="software"] .site-nav a:hover,
body[data-page="software"] .footer-nav a:hover { color: #111; }
body[data-page="software"] .page-head { border-bottom-color: rgba(17, 17, 17, .12); }
body[data-page="software"] .page-head { background: none; }
body[data-page="software"] .page-head { border-top: 0; }
body[data-page="software"] .page-head { padding-top: clamp(24px, 5vh, 56px); padding-bottom: clamp(18px, 3vh, 32px); }
body[data-page="software"] .site-main { flex: 0 0 auto; }
body[data-page="software"] .site-footer { margin-top: auto; }
body[data-page="software"] .eyebrow { color: #6f43a3; }
body[data-page="software"] .page-head h1 { color: #111; }
body[data-page="software"] .page-head .standfirst,
body[data-page="software"] .prose p,
body[data-page="software"] .prose li { color: rgba(17, 17, 17, .72); }
body[data-page="software"] .prose h2 { color: #111; }
body[data-page="software"] .prose a { color: #6f43a3; }

.software-stage {
  width: min(calc(100% - (var(--gutter) * 2)), 1240px);
  margin: clamp(20px, 4vw, 56px) auto;
  padding: 0 clamp(20px, 4vw, 52px) clamp(24px, 4vw, 52px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: clamp(26px, 3vw, 42px);
  background:
    radial-gradient(circle at 8% 15%, rgba(185, 158, 240, .2), transparent 26rem),
    radial-gradient(circle at 92% 75%, rgba(125, 194, 230, .17), transparent 25rem),
    rgba(248, 249, 253, .94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .8);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.software-hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 330px); gap: clamp(36px, 8vw, 120px); align-items: end; }
.software-quote { align-self: stretch; justify-self: end; width: 100%; display: flex; flex-direction: column; justify-content: center; padding: 14px 0 12px 24px; border-left: 1px solid #6f43a3; text-align: right; }
.software-quote__text { margin: 0; font: 400 clamp(19px, 2vw, 26px)/1.22 var(--serif); letter-spacing: -.015em; color: #6f43a3; }
.software-quote__text { opacity: 1; transition: opacity 220ms ease; }
.software-quote__text.is-changing { opacity: 0; }

.software-filters { display: flex; flex-wrap: wrap; gap: 8px; padding-top: clamp(8px, 2vh, 16px); }
.software-filters button { padding: 10px 14px; border: 1px solid rgba(17, 17, 17, .22); border-radius: 999px; background: transparent; color: rgba(17, 17, 17, .68); cursor: pointer; font: 500 11px/1.1 var(--sans); letter-spacing: .04em; transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease; }
.software-filters button:hover { border-color: #6f43a3; color: #6f43a3; transform: translateY(-1px); }
.software-filters button[aria-selected="true"] { border-color: #6f43a3; background: #6f43a3; color: #fff; }
.software-section { padding-top: 1px; }
.software-section[hidden] { display: none; }
.software-section h2 { display: none; }
.software-prose { padding-top: clamp(8px, 2vh, 16px); padding-bottom: clamp(20px, 4vh, 36px); }

.legal-main { position: relative; z-index: 2; flex: 1 1 auto; padding: clamp(42px, 8vh, 88px) var(--gutter); }
.legal-document { max-width: 780px; margin: 0 auto; white-space: pre-wrap; font: 400 clamp(14px, 1.15vw, 16px)/1.72 var(--serif); color: rgba(255, 255, 255, .74); }
.legal-page .site-footer { margin-top: auto; }

.software-coming-soon {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-content: center;
  gap: 18px;
  padding: var(--gutter);
  text-align: center;
}

.software-coming-soon .eyebrow { color: #6f43a3; }
.software-coming-soon h1 { margin: 0 0 10px; font: 400 clamp(48px, 8vw, 92px)/.95 var(--serif); letter-spacing: -.04em; }
.software-coming-soon a { color: #6f43a3; font: 500 12px/1 var(--sans); letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }

/* 5a. Splash --------------------------------------------- */

.splash {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2vh) var(--gutter) 4vh;
}

.composition {
  width: min(760px, 90vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero {
  width: min(500px, 70vw);
  max-height: 52vh;
  height: auto;
  object-fit: contain;
  display: block;
  mix-blend-mode: screen;
  opacity: .78;
  filter: saturate(.95) brightness(.96);
}

.release {
  margin: 1.2vh 0 3.8vh;
  color: rgba(255, 255, 255, .36);
  font: 700 clamp(22px, 2.6vw, 31px)/1 var(--serif);
  letter-spacing: -.02em;
}

.brand-row {
  width: min(620px, 82vw);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: center;
  justify-items: center;
}

.brand-row img {
  display: block;
  width: 100%;
  height: 90px;
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: .78;
  filter: saturate(.82) brightness(.92);
}

.brand-row .reality { max-width: 165px; }
.brand-row .techwriter { max-width: 170px; }
.brand-row .byline { max-width: 220px; }

/* Load sequence: chrome, artwork, colophon. */
@keyframes plate-in {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}

body[data-page="home"] .site-header { animation: plate-in 900ms cubic-bezier(.22,.61,.36,1) 120ms both; }
body[data-page="home"] .composition { animation: plate-in 1100ms cubic-bezier(.22,.61,.36,1) 260ms both; }
body[data-page="home"] .site-footer { animation: plate-in 900ms cubic-bezier(.22,.61,.36,1) 620ms both; }

/* 5b. Interior pages ------------------------------------- */

.page-head {
  padding: clamp(56px, 11vh, 108px) 0 clamp(28px, 5vh, 48px);
  border-bottom: 1px solid var(--rule);
}

.eyebrow {
  margin: 0 0 14px;
  font: 400 11.5px/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: .26em;
  color: var(--rift);
}

.page-head h1 {
  margin: 0;
  max-width: 18ch;
  font: 400 clamp(34px, 5.4vw, 62px)/1.06 var(--serif);
  letter-spacing: -.02em;
}

.page-head .standfirst {
  margin: 20px 0 0;
  max-width: 56ch;
  font: 400 clamp(16px, 1.5vw, 19px)/1.6 var(--serif);
  color: rgba(255, 255, 255, .62);
}

.prose {
  padding: clamp(32px, 6vh, 64px) 0 clamp(56px, 10vh, 100px);
  max-width: 68ch;
}

.prose h2 {
  margin: 2.2em 0 .6em;
  font: 400 clamp(20px, 2.2vw, 27px)/1.2 var(--serif);
  letter-spacing: -.01em;
}

.prose h2:first-child { margin-top: 0; }

.prose p,
.prose li {
  font: 400 clamp(15.5px, 1.35vw, 17px)/1.75 var(--serif);
  color: rgba(255, 255, 255, .74);
}

.prose p { margin: 0 0 1.2em; }

.prose ul {
  margin: 0 0 1.4em;
  padding-left: 1.1em;
}

.prose li { margin-bottom: .5em; }

.prose li::marker { color: var(--rift); }

.prose a {
  color: var(--ink);
  text-decoration-color: var(--rift);
  text-underline-offset: 4px;
}

/* -- 6. Footer ---------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
  padding-block: 10px;
  border-top: 1px solid var(--rule);
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.site-footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
}

.colophon {
  margin: 0;
  font: 400 clamp(11px, 1vw, 12.5px)/1.5 var(--sans);
  letter-spacing: .04em;
  color: var(--plate-dim);
}

.footer-nav {
  display: flex;
  gap: clamp(16px, 2.4vw, 28px);
  flex-wrap: wrap;
}

.footer-nav a {
  font: 400 clamp(11px, 1vw, 12.5px)/1.5 var(--sans);
  letter-spacing: .04em;
  color: var(--plate-dim);
  text-decoration: none;
  transition: color 220ms ease;
}

.footer-nav a:hover { color: var(--plate-bright); }

/* The splash keeps its title-card symmetry. */
body[data-page="home"] .site-footer {
  border-top-color: var(--rule);
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  background: linear-gradient(90deg, rgba(111, 67, 163, .18), rgba(61, 132, 173, .14));
}

body[data-page="home"] .site-footer .shell {
  justify-content: space-between;
  text-align: left;
}

body[data-page="home"] .footer-nav { display: none; }

/* -- Responsive --------------------------------------------- */

@media (max-width: 700px) {
  .wordmark {
    letter-spacing: .2em;
    text-indent: .2em;
  }

  .site-header .shell {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-block: 4px;
  }

  .site-nav { gap: 20px; }

  .composition { width: 94vw; }
  .hero { width: min(520px, 84vw); }
  .picker-grid { grid-template-columns: 1fr; }
  .picker-card { min-height: 280px; }
  .software-hero-layout { grid-template-columns: 1fr; gap: 16px; }
  .software-quote { justify-self: stretch; padding: 10px 0 8px 18px; }

  .brand-row {
    width: 88vw;
    gap: 18px;
  }

  .brand-row img { height: 72px; }
  .release { margin-bottom: 3vh; }

  .site-footer .shell {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  body[data-page="home"] .site-header,
  body[data-page="home"] .composition,
  body[data-page="home"] .site-footer {
    animation: none;
  }
}

/* Retro League logo: fit inside the shorter featured card */
.games-picker .picker-card--retro .picker-card__art { display: block; }
.games-picker .picker-card--retro .picker-card__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  padding: 10px 0;
  box-sizing: border-box;
  object-fit: contain;
}

/* Phonics Factory: lift the logo */
.games-picker .picker-card--phonics .picker-card__art--logo img { transform: translateY(-22%); }

/* Left-Right: show lower part of the image so the title sits higher */
.games-picker .picker-card--left-right .picker-card__art--cover img { object-position: center 47%; }

/* Fail Bike: widest crop that still fills the box (image is square) */
.games-picker .picker-card--fail-bike .picker-card__art--cover img { object-position: center 6%; }

/* Cover art: fill the art box exactly so object-fit/object-position apply */
.games-picker .picker-card__art--cover { display: block; }
.games-picker .picker-card__art--cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}

/* Roomfall: lift the logo to sit level with its neighbours */
.games-picker .picker-card--roomfall .picker-card__art--roomfall img { transform: translateY(-14px); }

/* Card footer: short descriptor */
.picker-card__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: var(--card-foot);
  box-sizing: border-box;
  padding: 0 clamp(14px, 1.6vw, 22px);
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, .78);
  border-top: 1px solid rgba(255, 255, 255, .14);
  font: 400 10px/1.35 var(--sans);
  letter-spacing: .03em;
  color: rgba(255, 255, 255, .74);
}

/* Charred Planet: keep the art inside the area between header and footer */
.games-picker .picker-card__art--charred { display: block; overflow: hidden; }
.games-picker .picker-card__art--charred img {
  position: absolute;
  inset: 0;
  max-width: none;
}

/* Section subheads inside the games grid */
.picker-subhead {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  font: 500 11px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}
.picker-subhead::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .14);
}
.games-picker .picker-grid > .picker-subhead:not(:first-child) { margin-top: clamp(10px, 2vw, 22px); }

/* -- Videogames: shared liquid-glass surfaces ---------------- */
/* Keep the studio and game pages in the same visual family as Charred Planet,
   without inheriting its game-specific hero and feature layout. */
body[data-page="games"],
body[data-page="retro-league"],
body[data-page="studio"],
body[data-page="fail-bike"],
body[data-page="fork"],
body[data-page="left-right"] {
  background:
    radial-gradient(circle at 8% 18%, rgba(121, 84, 206, .18), transparent 28rem),
    radial-gradient(circle at 92% 40%, rgba(255, 143, 72, .15), transparent 30rem),
    #05050c;
}

body[data-page="retro-league"] .page-head,
body[data-page="studio"] .page-head,
body[data-page="fail-bike"] .page-head,
body[data-page="fork"] .page-head,
body[data-page="left-right"] .page-head {
  width: min(calc(100% - (var(--gutter) * 2)), var(--shell));
  box-sizing: border-box;
  margin: clamp(22px, 4vw, 56px) auto 0;
  padding-block: clamp(36px, 7vw, 76px) clamp(28px, 5vw, 48px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: clamp(22px, 3vw, 36px);
  background: linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .045));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .16);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}

body[data-page="retro-league"] .page-head .shell,
body[data-page="studio"] .page-head .shell,
body[data-page="fail-bike"] .page-head .shell,
body[data-page="fork"] .page-head .shell,
body[data-page="left-right"] .page-head .shell { width: 100%; }

body[data-page="retro-league"] .prose,
body[data-page="studio"] .prose,
body[data-page="fail-bike"] .prose,
body[data-page="fork"] .prose,
body[data-page="left-right"] .prose {
  box-sizing: border-box;
  margin: clamp(20px, 3vw, 36px) 0 clamp(52px, 8vw, 96px);
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: clamp(20px, 2.6vw, 30px);
  background: linear-gradient(135deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .04));
  box-shadow: 0 20px 56px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

body[data-page="games"] .games-picker {
  position: relative;
  overflow: hidden;
}
body[data-page="games"] .games-picker::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(120, 76, 208, .08), transparent 42%, rgba(255, 139, 72, .08));
}
body[data-page="games"] .games-picker .picker-card {
  overflow: hidden;
  border-color: rgba(255, 255, 255, .22);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .14);
}
body[data-page="games"] .games-picker .picker-card__header,
body[data-page="games"] .games-picker .picker-card__footer {
  background: rgba(8, 8, 17, .64);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  backdrop-filter: blur(14px) saturate(145%);
}
body[data-page="games"] .games-picker .picker-subhead {
  padding-block: 4px;
}
body[data-page="games"] .games-picker .picker-subhead::after { background: rgba(255, 255, 255, .18); }

/* Games subhead: a slim bar attached to the site header */
.subhead-bar {
  position: sticky;
  top: 56px;
  z-index: 15;
  flex: 0 0 auto;
  background: rgba(0, 0, 0, .86);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.subhead-bar__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 12px var(--gutter);
  box-sizing: border-box;
}
.subhead-bar h1 {
  margin: 0;
  font: 400 clamp(20px, 2.2vw, 26px)/1.1 var(--serif);
  letter-spacing: -.02em;
}
.subhead-bar + .games-picker { padding-top: clamp(22px, 4vh, 40px); }

/* Games grid: responsive steps (cards keep their aspect ratios) */
@media (max-width: 900px) {
  .games-picker .picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .games-picker .picker-card--featured { grid-column: 1 / -1; aspect-ratio: 7 / 3; }
}
@media (max-width: 520px) {
  .games-picker .picker-grid { grid-template-columns: minmax(0, 1fr); }
  .games-picker .picker-card,
  .games-picker .picker-card--featured { grid-column: auto; aspect-ratio: 4 / 3; }
}

/* Phonics Factory: keep the logo inside its art box at every width */
.games-picker .picker-card--phonics .picker-card__art--logo { display: block; }
.games-picker .picker-card--phonics .picker-card__art--logo img {
  position: absolute;
  inset: 0;
  max-width: none;
  object-fit: cover;
}
.games-picker .picker-card__art--charred img { object-position: center 30%; }

/* -- Game detail template ---------------------------------- */
/* Shared structure for individual game pages.  Each game supplies only its
   artwork, copy, screenshot assets, and the destination of the final CTA. */
.game-detail { overflow: hidden; }
.game-detail__hero {
  position: relative;
  min-height: clamp(340px, 37vw, 520px);
  display: grid;
  align-items: end;
  isolation: isolate;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  background: #140c09;
}
.game-detail__hero-art,
.game-detail__hero-shade { position: absolute; inset: 0; z-index: -2; }
.game-detail__hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.game-detail__hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 3, 2, .78) 0%, rgba(7, 3, 2, .3) 62%, rgba(7, 3, 2, .06) 100%),
    linear-gradient(0deg, rgba(7, 3, 2, .94) 0%, rgba(7, 3, 2, .16) 55%, rgba(7, 3, 2, .04) 100%);
}
.game-detail__hero-content { padding-top: clamp(72px, 8vw, 112px); padding-bottom: clamp(26px, 4vw, 52px); }
.game-detail__eyebrow,
.game-detail__section-label {
  margin: 0;
  color: #efa06f;
  font: 600 10px/1.2 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
}
.game-detail__hero h1 {
  max-width: 8ch;
  margin: 14px 0 0;
  font: 400 clamp(54px, 9.8vw, 132px)/.86 var(--serif);
  letter-spacing: -.06em;
  text-shadow: 0 8px 36px rgba(0, 0, 0, .35);
}
.game-detail__hero-title--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;
}
.game-detail__dek { max-width: 43ch; margin: 24px 0 0; font: 400 clamp(17px, 1.6vw, 22px)/1.45 var(--serif); color: rgba(255,255,255,.76); }
.game-detail__hero-link { display: inline-flex; gap: 10px; margin-top: 34px; color: #fff; font: 600 11px/1 var(--sans); letter-spacing: .15em; text-decoration: none; text-transform: uppercase; }
.game-detail__hero-link span { color: #efa06f; transition: transform 180ms ease; }
.game-detail__hero-link:hover span { transform: translateY(4px); }
.game-detail__intro { display: grid; grid-template-columns: minmax(150px, .65fr) minmax(0, 2fr); gap: clamp(28px, 8vw, 140px); padding-top: clamp(64px, 12vw, 160px); padding-bottom: clamp(64px, 12vw, 160px); }
.game-detail__copy { max-width: 720px; }
.game-detail__copy h2,
.game-detail__features h2,
.game-detail__closing h2 { margin: 0; font: 400 clamp(33px, 4.2vw, 58px)/1.04 var(--serif); letter-spacing: -.035em; }
.game-detail__copy p { margin: 24px 0 0; font: 400 clamp(16px, 1.45vw, 19px)/1.7 var(--serif); color: rgba(255,255,255,.7); }
.game-detail__features { padding-bottom: clamp(80px, 13vw, 180px); }
.game-detail__features-head { max-width: 700px; margin-bottom: clamp(44px, 7vw, 88px); }
.game-detail__features-head h2 { margin-top: 16px; }
.game-detail__features-head > p { margin: 14px 0 0; color: rgba(255,255,255,.44); font: 400 12px/1.5 var(--sans); letter-spacing: .04em; }
.game-detail__feature { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr); align-items: center; gap: clamp(28px, 7vw, 112px); }
.game-detail__feature + .game-detail__feature { margin-top: clamp(64px, 12vw, 168px); }
.game-detail__feature--reverse { grid-template-columns: minmax(240px, .65fr) minmax(0, 1.35fr); }
.game-detail__feature--reverse .game-detail__shot { order: 2; }
.game-detail__shot { position: relative; aspect-ratio: 16 / 9; margin: 0; overflow: hidden; border: 1px solid rgba(239, 160, 111, .3); background: #190c08; }
.game-detail__shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 3, 2, .16), transparent 42%, rgba(8, 3, 2, .56)); pointer-events: none; }
.game-detail__shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.game-detail__shot-placeholder { position: relative; min-height: clamp(220px, 31vw, 460px); margin: 0; display: flex; align-items: flex-end; padding: 22px; overflow: hidden; border: 1px dashed rgba(239, 160, 111, .42); background: linear-gradient(135deg, rgba(100, 41, 20, .34), rgba(28, 12, 9, .85)); }
.game-detail__shot-placeholder::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.08); }
.game-detail__shot-placeholder--overview { background: radial-gradient(ellipse at 62% 15%, rgba(237, 106, 50, .28), transparent 28%), linear-gradient(135deg, rgba(100, 41, 20, .34), rgba(28, 12, 9, .85)); }
.game-detail__shot-placeholder--combat { background: radial-gradient(ellipse at 22% 68%, rgba(237, 106, 50, .28), transparent 28%), linear-gradient(135deg, rgba(28, 12, 9, .85), rgba(100, 41, 20, .34)); }
.game-detail__shot-placeholder--resources { background: radial-gradient(ellipse at 64% 64%, rgba(204, 154, 55, .23), transparent 32%), linear-gradient(135deg, rgba(88, 43, 17, .42), rgba(26, 14, 8, .9)); }
.game-detail__shot-mark { position: absolute; z-index: 1; top: 22px; left: 22px; color: rgba(255, 237, 223, .9); font: 500 11px/1 var(--sans); letter-spacing: .14em; }
.game-detail__shot figcaption,
.game-detail__shot-placeholder figcaption { position: absolute; z-index: 1; right: 22px; bottom: 19px; left: 22px; max-width: 24ch; color: rgba(255,255,255,.8); font: 500 10px/1.45 var(--sans); letter-spacing: .11em; text-transform: uppercase; }
.game-detail__feature-copy { max-width: 385px; }
.game-detail__feature-number { margin: 0 0 12px; color: #efa06f; font: 600 10px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.game-detail__feature-copy h3 { margin: 0; font: 400 clamp(27px, 3vw, 42px)/1.06 var(--serif); letter-spacing: -.035em; }
.game-detail__feature-copy > p:not(.game-detail__feature-number) { margin: 20px 0 0; color: rgba(255,255,255,.68); font: 400 clamp(15.5px, 1.3vw, 17px)/1.7 var(--serif); }
.game-detail__closing { padding: clamp(74px, 13vw, 170px) 0; border-top: 1px solid rgba(239, 160, 111, .18); background: radial-gradient(ellipse at 76% 45%, rgba(160, 59, 25, .28), transparent 38%), #130a07; }
.game-detail__closing-inner { max-width: 840px; }
.game-detail__closing h2 { max-width: 12ch; margin-top: 18px; }
.game-detail__closing p:not(.game-detail__section-label) { margin: 22px 0 0; color: rgba(255,255,255,.66); font: 400 clamp(16px, 1.5vw, 19px)/1.5 var(--serif); }
.game-detail__cta { display: inline-flex; align-items: center; gap: 14px; margin-top: 34px; padding: 15px 19px; border: 1px solid #efa06f; background: #efa06f; color: #1a0c07; font: 700 11px/1 var(--sans); letter-spacing: .12em; text-decoration: none; text-transform: uppercase; transition: background 180ms ease, color 180ms ease, transform 180ms ease; }
.game-detail__cta:hover { background: transparent; color: #efa06f; transform: translateY(-2px); }

@media (max-width: 680px) {
  .game-detail__hero { min-height: clamp(320px, 108vw, 440px); }
  .game-detail__hero-art img { object-position: 28% top; }
  .game-detail__hero-shade { background: linear-gradient(0deg, rgba(7,3,2,.96), rgba(7,3,2,.1) 80%), linear-gradient(90deg, rgba(7,3,2,.54), rgba(7,3,2,.08)); }
  .game-detail__intro { grid-template-columns: 1fr; gap: 22px; }
  .game-detail__feature,
  .game-detail__feature--reverse { grid-template-columns: 1fr; gap: 28px; }
  .game-detail__feature--reverse .game-detail__shot { order: 0; }
  .game-detail__feature-copy { max-width: none; }
}

@media (max-width: 900px) {
  .games-picker .picker-card--phonics .picker-card__art--logo img { transform: none; }
}

/* -- Charred Planet: liquid glass art direction -------------- */
/* The starfield stays visible around a set of translucent reading surfaces.
   These selectors deliberately sit after the generic template so future games
   can opt into the same layout without inheriting Charred's art or copy. */
.game-detail--charred {
  --glass-surface: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .055));
  --glass-border: rgba(255, 255, 255, .22);
  --glass-shadow: 0 24px 70px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .16);
  --section-gap: clamp(18px, 2.2vw, 32px);
  position: relative;
  isolation: isolate;
  width: min(calc(100% - (var(--gutter) * 2)), 1240px);
  box-sizing: border-box;
  margin: clamp(20px, 4vw, 56px) auto;
  padding: 0 0 var(--section-gap);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: clamp(26px, 3vw, 42px);
  background:
    radial-gradient(circle at 8% 18%, rgba(185, 88, 255, .14), transparent 24rem),
    radial-gradient(circle at 92% 44%, rgba(255, 111, 51, .13), transparent 26rem),
    linear-gradient(120deg, rgba(17, 13, 35, .92), rgba(11, 10, 20, .84) 52%, rgba(40, 17, 13, .8));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.game-detail--charred::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(6, 8, 23, .18), transparent 42%, rgba(62, 16, 6, .16));
}
.game-detail--charred .game-detail__hero {
  min-height: 0;
  display: block;
  padding-bottom: 0;
  border: 0;
  background: transparent;
}
.game-detail--charred .game-detail__hero > .shell {
  width: 100%;
  max-width: none;
  padding-inline: 0;
}
.game-detail--charred .game-detail__hero-frame {
  position: relative;
  min-height: clamp(390px, 43vw, 600px);
  overflow: hidden;
  isolation: isolate;
  background: transparent;
  mask-image: linear-gradient(to bottom, #000 0%, #000 66%, rgba(0, 0, 0, .92) 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 66%, rgba(0, 0, 0, .92) 78%, transparent 100%);
}
.game-detail--charred .game-detail__hero-art,
.game-detail--charred .game-detail__hero-shade { z-index: -2; }
.game-detail--charred .game-detail__hero-art img { object-position: center top; }
.game-detail--charred .game-detail__hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 7, 21, .18) 0%, transparent 55%, rgba(9, 7, 21, .24) 100%),
    linear-gradient(0deg, rgba(7, 7, 19, .68) 0%, transparent 54%);
}
.game-detail--charred .game-detail__intro,
.game-detail--charred .game-detail__features,
.game-detail--charred .game-detail__closing-inner {
  width: min(calc(100% - (var(--gutter) * 2)), var(--shell));
  max-width: var(--shell);
  margin-inline: auto;
}
.game-detail--charred .game-detail__intro {
  display: grid;
  grid-template-columns: minmax(154px, .6fr) minmax(0, 1.8fr);
  gap: clamp(28px, 7vw, 106px);
  position: relative;
  z-index: 1;
  margin-top: clamp(-76px, -5vw, -40px);
  padding: clamp(32px, 5vw, 66px);
  border: 1px solid var(--glass-border);
  border-radius: clamp(22px, 3vw, 34px);
  background: var(--glass-surface);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}
.game-detail--charred .game-detail__copy { max-width: 710px; }
.game-detail--charred .game-detail__copy h2 { font-size: clamp(31px, 4vw, 56px); }
.game-detail--charred .game-detail__copy p { color: rgba(255, 255, 255, .8); }
.game-detail--charred .game-detail__copy strong { color: #fff; }

.game-detail--charred .game-detail__features {
  padding: var(--section-gap) 0;
}
.game-detail--charred .game-detail__feature,
.game-detail--charred .game-detail__feature--reverse {
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr);
  gap: clamp(26px, 5vw, 76px);
  margin-top: 0;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--glass-border);
  border-radius: clamp(22px, 3vw, 32px);
  background: var(--glass-surface);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}
.game-detail--charred .game-detail__feature + .game-detail__feature { margin-top: var(--section-gap); }
.game-detail--charred .game-detail__feature--reverse { grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr); }
.game-detail--charred .game-detail__feature--reverse .game-detail__shot { order: 2; }
.game-detail--charred .game-detail__shot {
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 18px;
  box-shadow: 0 15px 36px rgba(4, 4, 16, .32), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.game-detail--charred .game-detail__shot img { transition: transform 700ms cubic-bezier(.2, .7, .2, 1); }
.game-detail--charred .game-detail__feature:hover .game-detail__shot img { transform: scale(1.025); }
.game-detail--charred .game-detail__feature-copy { padding: clamp(4px, 1vw, 14px); }
.game-detail--charred .game-detail__feature-copy > p:not(.game-detail__feature-number) { color: rgba(255, 255, 255, .78); }

.game-detail--charred .game-detail__closing { padding: 0; border: 0; background: transparent; }
.game-detail--charred .game-detail__closing-inner {
  max-width: var(--shell);
  padding: clamp(18px, 2.2vw, 32px) 0 0;
  text-align: center;
}
.game-detail--charred .game-detail__closing h2 { max-width: 15ch; margin-inline: auto; }
.game-detail--charred .game-detail__cta { border-radius: 999px; box-shadow: 0 7px 23px rgba(239, 160, 111, .22); }

@media (max-width: 680px) {
  .game-detail--charred .game-detail__hero-frame { min-height: clamp(420px, 118vw, 520px); }
  .game-detail--charred .game-detail__hero-art img { object-position: 28% top; }
  .game-detail--charred .game-detail__intro { grid-template-columns: 1fr; gap: 22px; margin-top: -36px; padding: 27px 23px; }
  .game-detail--charred .game-detail__feature,
  .game-detail--charred .game-detail__feature--reverse { grid-template-columns: 1fr; gap: 19px; padding: 12px; }
  .game-detail--charred .game-detail__feature--reverse .game-detail__shot { order: 0; }
  .game-detail--charred .game-detail__feature-copy { padding: 10px 11px 15px; }
}

/* -- Contact form ------------------------------------------- */

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

.contact { padding: clamp(32px, 6vh, 64px) 0 clamp(56px, 10vh, 100px); max-width: 640px; }

.contact-form { display: grid; gap: 22px; }

.field { display: grid; gap: 8px; }

.field label {
  font: 400 11.5px/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--plate-bright);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 0;
  background: rgba(0, 0, 0, .45);
  color: var(--ink);
  font: 400 16px/1.5 var(--serif);
  transition: border-color 180ms ease, background 180ms ease;
}

.field textarea { resize: vertical; min-height: 160px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--rift);
  outline-offset: 2px;
  border-color: var(--rift);
  background: rgba(0, 0, 0, .65);
}

.field input:user-invalid,
.field textarea:user-invalid { border-color: #ff8f8f; }

/* Honeypot: off-screen rather than display:none, which some bots detect. */
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-submit {
  justify-self: start;
  padding: 15px 22px;
  border: 1px solid var(--rift);
  background: var(--rift);
  color: #10091a;
  font: 700 11px/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.contact-submit:hover:not(:disabled) { background: transparent; color: var(--rift); transform: translateY(-2px); }
.contact-submit:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.contact-submit:disabled { opacity: .6; cursor: progress; }

.contact-alt { margin: 0; font: 400 14px/1.6 var(--serif); color: rgba(255, 255, 255, .6); }
.contact-alt a { color: var(--ink); text-decoration-color: var(--rift); text-underline-offset: 4px; }

.contact-status { margin: 0 0 26px; padding: 14px 16px; border: 1px solid; font: 400 15px/1.5 var(--serif); }
.contact-status[hidden] { display: none; }
.contact-status--ok { border-color: var(--rift); background: rgba(186, 140, 255, .12); color: var(--ink); }
.contact-status--error { border-color: #ff8f8f; background: rgba(255, 143, 143, .1); color: var(--ink); }
