/* Wargnema studio site, set in the same Scene Mode world as valleyawakening.com.
   Palette is locked: four pine tones, paper, and marigold for whatever is live or chosen. */

@font-face {
  font-family: 'Dela Gothic One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/DelaGothicOne-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Dela Gothic One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/DelaGothicOne-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Zen Maru Gothic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/ZenMaruGothic-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Zen Maru Gothic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/ZenMaruGothic-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Zen Maru Gothic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/ZenMaruGothic-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Zen Maru Gothic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/ZenMaruGothic-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Zen Maru Gothic';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('assets/fonts/ZenMaruGothic-900-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Zen Maru Gothic';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('assets/fonts/ZenMaruGothic-900-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens (shared with valleyawakening.com) ---------- */
:root {
  --pine-900: #102624;   /* ground: the valley at dusk */
  --pine-800: #1B3A36;   /* panels, textboxes, spines */
  --pine-600: #2C5A52;   /* the cut plane behind a panel, rules, the shelf plank */
  --pine-300: #9DB5A8;   /* secondary text */
  --paper: #EFE6D2;      /* text, name tags, choice rows */
  --marigold: #F5B841;   /* the one accent: live, hovered, selected */

  --display: 'Dela Gothic One', 'Zen Maru Gothic', 'Hiragino Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --body: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem);
  --step-4: clamp(2.6rem, 1.6rem + 4vw, 4.5rem);

  --gutter: clamp(1rem, 0.4rem + 2.6vw, 3.5rem);
  --section-space: clamp(4rem, 2.5rem + 4vw, 6.5rem);
  --radius: 4px;
  --plane: 10px;          /* how far the cut plane sits behind a panel */
  --container-width: 1240px;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: color .2s var(--ease-out), background-color .2s var(--ease-out), border-color .2s var(--ease-out), transform .2s var(--ease-out);
}

/* ---------- Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--pine-600) var(--pine-900);
}

body {
  font-family: var(--body);
  font-weight: 500;
  font-size: var(--step-0);
  line-height: 1.75;
  background: var(--pine-900);
  color: var(--paper);
  caret-color: var(--marigold);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--marigold); color: var(--pine-900); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--pine-900); }
::-webkit-scrollbar-thumb { background: var(--pine-600); border: 3px solid var(--pine-900); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--pine-300); }

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

a { color: var(--paper); text-decoration-color: var(--marigold); text-underline-offset: 0.22em; text-decoration-thickness: 2px; transition: var(--transition); }
a:hover { color: var(--marigold); }

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

h1, h2, h3, h4, h5, h6 { font-family: var(--display); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; color: var(--paper); text-wrap: balance; }
h1 { font-size: var(--step-4); line-height: 1; margin-bottom: 1.25rem; }
h2 { font-size: var(--step-3); margin: 3.5rem 0 1rem; }
h3 { font-size: var(--step-1); margin: 2.25rem 0 0.6rem; }
h4, h5, h6 { font-size: var(--step-0); margin: 1.5rem 0 0.5rem; }
h1:first-child, h2:first-child, h3:first-child { margin-top: 0; }

p { margin-bottom: 1.1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 900; }
ul, ol { list-style: none; }

/* Prose lists: small rotated squares, never bullets */
.prose ul li { position: relative; padding-left: 1.4rem; margin-bottom: 0.45rem; }
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: 0.72em;
  width: 7px;
  height: 7px;
  background: var(--pine-300);
  transform: rotate(45deg);
}
.prose ul { margin: 0 0 1.4rem; }
.prose > p, .prose > ul { max-width: 70ch; }
.prose h2 { font-size: var(--step-2); margin: 2.75rem 0 0.8rem; }
.prose > :first-child { margin-top: 0; }
.prose > .section-title { font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.6rem); margin: 0 0 1.5rem; }

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

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

/* ---------- Choice rows: every button is a VN choice ---------- */
.btn, button.btn, .choice {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.4rem;
  background: var(--paper);
  color: var(--pine-900);
  font-family: var(--body);
  font-weight: 900;
  font-size: var(--step-0);
  line-height: 1.3;
  text-decoration: none;
  border: 2px solid var(--paper);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}
.btn:hover, .btn:focus-visible, .choice:hover, .choice:focus-visible {
  background: var(--marigold);
  border-color: var(--marigold);
  color: var(--pine-900);
  transform: translateX(6px);
}
.btn-secondary, .choice-outlined { background: transparent; color: var(--paper); }
.btn-secondary:hover, .btn-secondary:focus-visible, .choice-outlined:hover, .choice-outlined:focus-visible { background: var(--marigold); color: var(--pine-900); }

.choice-menu { display: grid; gap: 0.5rem; container-type: inline-size; }
.choice-menu .choice { width: 100%; }
.choice small { font-size: var(--step--1); font-weight: 700; color: var(--pine-600); text-align: right; }
.choice-outlined small { color: var(--pine-300); }
.choice:hover small, .choice:focus-visible small { color: var(--pine-900); }

/* The support row offers two equal doors: Patreon and SubscribeStar */
.choice-split { padding: 0 0 0 1.4rem; align-items: stretch; overflow: hidden; }
.choice-split > span:first-child { align-self: center; padding-block: 0.8rem; white-space: nowrap; }
.choice-split:hover { background: var(--paper); border-color: var(--paper); transform: none; }
.choice-targets { display: flex; }
.choice-targets a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 8rem;
  padding: 0.8rem 1.1rem;
  border-left: 2px solid var(--pine-900);
  color: var(--pine-900);
  font-size: var(--step-0);
  font-weight: 900;
  text-decoration: none;
  transition: var(--transition);
}
.choice-targets a:hover, .choice-targets a:focus-visible { background: var(--marigold); color: var(--pine-900); outline-offset: -5px; }

.btn-link {
  color: var(--paper);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--marigold);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.btn-link:hover { color: var(--marigold); }

/* A choice row stacks its subline, then splits its targets, as its menu narrows */
@container (max-width: 32rem) {
  .choice:not(.choice-split) { flex-wrap: wrap; row-gap: 0.15rem; }
  .choice:not(.choice-split) small { flex-basis: 100%; text-align: left; }
  .choice-targets a { min-width: 7rem; padding-inline: 0.9rem; }
}
@container (max-width: 26rem) {
  .choice-split { flex-direction: column; padding: 0; }
  .choice-split > span:first-child { padding: 0.8rem 1.4rem 0.4rem; align-self: stretch; }
  .choice-targets a { flex: 1; min-width: 0; border-left: 0; border-top: 2px solid var(--pine-900); }
  .choice-targets a + a { border-left: 2px solid var(--pine-900); }
}

/* ---------- Textbox + namebox: the dialogue window ---------- */
.textbox {
  --panel: var(--pine-800);
  position: relative;
  isolation: isolate;
  border-radius: var(--radius);
  padding: 2.1rem 2rem 1.6rem;
}
.textbox::before {
  /* flat cut plane under the panel: depth by overlap, never by shadow */
  content: '';
  position: absolute;
  inset: var(--plane) calc(var(--plane) * -1) calc(var(--plane) * -1) var(--plane);
  background: var(--pine-600);
  border-radius: var(--radius);
  z-index: -2;
}
.textbox::after { content: ''; position: absolute; inset: 0; background: var(--panel); border-radius: inherit; z-index: -1; }
.namebox {
  position: absolute;
  margin: 0;
  top: 0;
  left: 1.5rem;
  transform: translateY(-62%);
  display: inline-block;
  padding: 0.35rem 1rem 0.3rem;
  background: var(--paper);
  color: var(--pine-900);
  font-family: var(--display);
  font-size: var(--step-0);
  line-height: 1.3;
  border-radius: var(--radius);
  white-space: nowrap;
}
.textbox p { font-size: var(--step-1); line-height: 1.55; max-width: 54ch; }

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius);
  font-size: var(--step--1);
  font-weight: 900;
  line-height: 1.4;
  background: var(--pine-600);
  color: var(--paper);
  white-space: nowrap;
}
.tag-live { background: var(--marigold); color: var(--pine-900); font-family: var(--display); font-weight: 400; }

/* ---------- Header ---------- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--pine-900);
  border-bottom: 1px solid var(--pine-600);
}
.header-container {
  display: flex;
  align-items: center;
  gap: 1.25rem 2rem;
  min-height: var(--header-h);
  max-width: 1440px;
}
.header-logo { flex: none; }
.header-logo img { height: 40px; width: auto; }
.main-nav { flex: 1; min-width: 0; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.6rem; }
.main-nav a {
  display: inline-block;
  padding: 0.4rem 0;
  color: var(--paper);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--marigold); }
.header-socials { display: flex; align-items: center; gap: 0.9rem; }
.header-socials a { display: block; opacity: 0.75; transition: opacity .2s var(--ease-out); }
.header-socials a:hover { opacity: 1; }
.header-socials a img { width: 20px; height: 20px; object-fit: contain; }
.header-version {
  font-family: var(--display);
  font-size: var(--step--1);
  background: var(--marigold);
  color: var(--pine-900);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
}
.header-version:hover { color: var(--pine-900); background: var(--paper); }

@media (max-width: 1080px) {
  .header-socials { display: none; }
}
@media (max-width: 820px) {
  html { scroll-padding-top: 108px; }
  .header-container { flex-wrap: wrap; padding-block: 0.6rem; gap: 0.4rem 1rem; min-height: 0; }
  .header-logo img { height: 32px; }
  .main-nav { order: 3; flex-basis: 100%; }
  .main-nav ul { gap: 0 1.1rem; }
  .main-nav a { white-space: nowrap; font-size: 0.875rem; padding: 0.25rem 0; }
  .header-version { margin-left: auto; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-space); position: relative; }
.section-dark { background: var(--pine-800); }
.section-dark .textbox { --panel: var(--pine-900); }

.section-title {
  font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.6rem);
  line-height: 1.02;
  margin: 0 0 1rem;
  max-width: 18ch;
}
.section-subtitle {
  color: var(--pine-300);
  font-size: var(--step-1);
  line-height: 1.55;
  max-width: 52ch;
  margin-bottom: 2.75rem;
}
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1rem 3rem; align-items: end; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head .section-title, .section-head .section-subtitle { margin-bottom: 0; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- The shelf (homepage first viewport) ---------- */
.studio-hero {
  /* The face-out box sets the height of every box on the shelf; it shrinks with the
     viewport height so the dialogue, the choices and the facts strip stay in the first screen */
  --cover-w: max(17rem, min(30rem, 42vw, calc((100svh - var(--header-h) - 23.5rem) * 1.262)));
  --box-h: calc(var(--cover-w) / 1.262);
  --spine-gap: 6px;
  padding-block: clamp(1.25rem, 0.5rem + 1.5vw, 2.25rem) 0;
  overflow: hidden;
}
.studio-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 3rem;
  margin-bottom: clamp(1.5rem, 1rem + 1vw, 2rem);
}
.studio-title { font-size: clamp(2.8rem, 1.6rem + 4vw, 4.75rem); line-height: 0.92; letter-spacing: -0.02em; margin: 0; }
.studio-pitch { color: var(--pine-300); font-size: var(--step-1); line-height: 1.5; max-width: 48ch; margin: 0 0 0.2rem; }

.shelf {
  position: relative;
  display: grid;
  grid-template-columns: var(--cover-w) minmax(0, 1fr);
  column-gap: clamp(2.5rem, 1rem + 4vw, 5rem);
  align-items: end;
}
/* The plank runs under the whole row, with its own cut plane */
.shelf::after {
  content: '';
  grid-column: 1 / -1;
  grid-row: 2;
  height: 14px;
  background: var(--pine-600);
  border-radius: var(--radius);
  box-sizing: content-box;
  margin-inline: calc(var(--gutter) * -1);
  border-bottom: var(--plane) solid var(--pine-800);
}

.stand { grid-column: 1; grid-row: 1; position: relative; }
.stand-cover {
  position: relative;
  isolation: isolate;
  display: block;
  width: var(--cover-w);
  height: var(--box-h);
}
.stand-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.stand-cover::before {
  content: '';
  position: absolute;
  inset: var(--plane) calc(var(--plane) * -1) 0 var(--plane);
  background: var(--pine-800);
  border-radius: var(--radius);
  z-index: -1;
}
.stand-tag { position: absolute; top: 0; left: 1rem; transform: translateY(-55%); z-index: 2; }
/* Above 900px the title sits right over the cover: the tag rides the right corner, clear of the g's descender */
@media (min-width: 901px) { .stand-tag { left: auto; right: 1rem; } }

.spines {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: var(--spine-gap);
  min-width: 0;
}
.spines li { flex: 1 1 0; max-width: 4.25rem; min-width: 0; }
.spine {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: var(--box-h);
  background: var(--pine-800);
  border-radius: var(--radius) var(--radius) 0 0;
  text-decoration: none;
  color: var(--paper);
  overflow: hidden;
  transition: transform .25s var(--ease-out), background-color .2s var(--ease-out);
}
.spine img { width: 100%; aspect-ratio: 1; object-fit: cover; flex: none; filter: saturate(0.6); transition: filter .25s var(--ease-out); }
.spine-title {
  flex: 1;
  min-height: 0;
  writing-mode: vertical-rl;
  font-family: var(--display);
  font-size: clamp(0.72rem, calc(var(--box-h) * 0.043), 1.05rem);
  line-height: 1;
  letter-spacing: 0;
  padding: 0.8rem 0;
  white-space: nowrap;
}
.spine-year { flex: none; padding: 0 0 0.6rem; font-size: 0.75rem; font-weight: 900; line-height: 1; color: var(--pine-300); }
.spine-year.is-now { color: var(--marigold); }
.spine:hover, .spine:focus-visible { transform: translateY(-14px); color: var(--paper); }
.spine:hover img, .spine:focus-visible img { filter: none; }
.spine:focus-visible { outline-offset: 2px; }
/* The box out on the stand leaves its slot empty: designed absence, captioned like a locked slot */
.spine[aria-current="true"] {
  background: transparent;
  border: 2px dashed var(--pine-600);
  transform: none;
}
.spine[aria-current="true"] > * { visibility: hidden; }
.spine[aria-current="true"]::after {
  content: 'On the stand';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  color: var(--pine-300);
  font-size: var(--step--1);
  font-weight: 900;
  white-space: nowrap;
}

/* The dialogue: its textbox overlaps the face-out box and the plank, its choices stand under the spines */
.stand-dialogue { display: contents; }
.stand-dialogue > .textbox {
  grid-column: 1;
  grid-row: 3;
  align-self: start;
  z-index: 3;
  margin: calc(-3.5rem - 24px) -3rem 0 1.25rem;
}
.stand-dialogue > .choice-menu {
  grid-column: 2;
  grid-row: 3;
  align-self: start;
  width: 100%;
  max-width: 34rem;
  margin-top: 1.25rem;
}
.stand-dialogue .textbox p { font-size: var(--step-0); line-height: 1.6; }
.stand-line { margin-bottom: 0; }
.stand-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-top: 0.6rem; color: var(--pine-300); font-size: var(--step--1); font-weight: 700; }

.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2.25rem;
  margin-top: clamp(1.25rem, 0.5rem + 1.5vw, 2rem);
  padding: 0.9rem 0;
  border-top: 1px solid var(--pine-600);
  color: var(--pine-300);
  font-size: var(--step--1);
  font-weight: 700;
}
.quick-facts strong { color: var(--paper); font-family: var(--display); font-weight: 400; margin-right: 0.35rem; }

/* Picking a box: it rises off the shelf onto the stand, then its line arrives */
@media (prefers-reduced-motion: no-preference) {
  .stand.is-swapping .stand-cover img { animation: rise-in .55s var(--ease-out) both; }
  .stand-dialogue.is-swapping .textbox { animation: box-in .45s var(--ease-out) .12s both; }
  .stand-dialogue.is-swapping .choice { animation: box-in .4s var(--ease-out) both; }
  .stand-dialogue.is-swapping .choice:nth-child(1) { animation-delay: .2s; }
  .stand-dialogue.is-swapping .choice:nth-child(2) { animation-delay: .28s; }
}
@keyframes rise-in { from { transform: translateY(18%); clip-path: inset(0 0 100% 0); } to { transform: none; clip-path: inset(0 0 0 0); } }
@keyframes box-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Narrow screens: the shelf comes first, then the box on the stand and its dialogue */
@media (max-width: 900px) {
  .studio-hero { --cover-w: 100%; }
  .studio-pitch { font-size: var(--step-0); }
  .shelf { grid-template-columns: minmax(0, 1fr); }
  .spines {
    --box-h: 9.5rem;
    grid-column: 1;
    grid-row: 1;
    justify-content: space-between;
  }
  .spines li { max-width: 4.75rem; }
  .shelf::after { grid-row: 2; }
  .stand { grid-column: 1; grid-row: 3; margin-top: 1.25rem; }
  .stand-cover { height: auto; aspect-ratio: 631 / 500; }
  .stand-dialogue > .textbox { grid-column: 1; grid-row: 4; margin: -2.25rem 0 0; }
  .stand-dialogue > .choice-menu { grid-column: 1; grid-row: 5; max-width: none; margin-top: 0.9rem; }
  .spine-title { font-size: 0.72rem; line-height: 1.05; white-space: normal; padding: 0.55rem 0; }
  .spine-year { display: none; }
  .spine[aria-current="true"]::after { font-size: 0.7rem; }
  .spine:hover, .spine:focus-visible { transform: translateY(-8px); }
}
@media (max-width: 640px) {
  .spines { --spine-gap: 4px; }
  .stand-meta { display: none; }
  .stand-dialogue .textbox { padding: 1.9rem 1.25rem 1.25rem; }
}

/* ---------- Catalogue: the release log, newest first ---------- */
.catalogue { border-top: 1px solid var(--pine-600); }
.release {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr) 13rem;
  align-items: center;
  gap: 1rem 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--pine-600);
}
.release-cover img { width: 100%; aspect-ratio: 63 / 50; object-fit: cover; border-radius: var(--radius); }
.release h3 { margin: 0 0 0.2rem; font-size: var(--step-2); line-height: 1.1; }
.release h3 a { text-decoration: none; }
.release p { color: var(--pine-300); margin: 0; }
.release .release-facts { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-top: 0.5rem; font-size: var(--step--1); font-weight: 700; color: var(--pine-300); }
.release-facts .tag { margin-right: -0.5rem; }
.release-links { display: grid; gap: 0.4rem; justify-items: end; text-align: right; }
.release-now h3 a { color: var(--paper); }
@media (max-width: 820px) {
  .release { grid-template-columns: 7.5rem minmax(0, 1fr); }
  .release-links { grid-column: 2; justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; gap: 1.25rem; }
}
@media (max-width: 520px) {
  .release { grid-template-columns: 1fr; }
  .release-cover { max-width: 16rem; }
  .release-links { grid-column: 1; }
}

/* ---------- Studio ---------- */
.studio-about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem 4rem; align-items: start; }
.studio-about .prose p { font-size: var(--step-1); line-height: 1.6; }
@media (max-width: 900px) { .studio-about { grid-template-columns: 1fr; } }

/* Ruled spec rows */
.spec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; margin: 0 0 2rem; border-top: 1px solid var(--pine-600); }
.spec-list > div { padding: 0.7rem 0; border-bottom: 1px solid var(--pine-600); }
.spec-list dt { color: var(--pine-300); font-size: var(--step--1); font-weight: 700; }
.spec-list dd { font-weight: 900; }
.spec-list--single { grid-template-columns: 1fr; }

/* ---------- Support: platform rows ---------- */
.platform-list { border-top: 1px solid var(--pine-600); }
.platform {
  display: grid;
  grid-template-columns: 48px 11rem minmax(0, 1fr) 15rem;
  align-items: center;
  column-gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--pine-600);
}
.platform-icon { width: 48px; height: 48px; display: grid; place-items: center; background: var(--pine-900); border-radius: var(--radius); }
.platform-icon img { width: 26px; height: 26px; object-fit: contain; }
.platform h3 { margin: 0; font-size: var(--step-1); }
.platform p { color: var(--pine-300); font-size: var(--step--1); margin: 0; }
.platform .btn-link { justify-self: end; text-align: right; }
@media (max-width: 820px) {
  .platform { grid-template-columns: 48px 1fr; row-gap: 0.4rem; }
  .platform-icon { grid-row: 1 / 4; align-self: start; }
  .platform .btn-link { justify-self: start; text-align: left; }
}

/* ---------- Game pages ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 1.25rem 0 0; font-size: var(--step--1); color: var(--pine-300); }
.breadcrumb a { color: var(--paper); font-weight: 700; }
.breadcrumb a:hover { color: var(--marigold); }
.game-hero { padding-block: clamp(2rem, 1.5rem + 2.5vw, 4rem) clamp(3rem, 2rem + 3vw, 5rem); }
.game-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2.5rem 4rem; align-items: start; }
.game-cover { position: relative; isolation: isolate; max-width: 32rem; }
.game-cover img { width: 100%; aspect-ratio: 63 / 50; object-fit: cover; border-radius: var(--radius); }
.game-cover::before {
  content: '';
  position: absolute;
  inset: var(--plane) calc(var(--plane) * -1) calc(var(--plane) * -1) var(--plane);
  background: var(--pine-600);
  border-radius: var(--radius);
  z-index: -1;
}
.game-cover .tag { position: absolute; top: 0; left: 1rem; transform: translateY(-55%); }
.game-hero h1 { font-size: var(--step-4); line-height: 0.98; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.game-tagline { color: var(--pine-300); font-size: var(--step-1); line-height: 1.5; margin-bottom: 1.75rem; }
.game-hero .choice-menu { margin-top: 0.5rem; max-width: 40rem; }
@media (max-width: 900px) { .game-hero-grid { grid-template-columns: 1fr; } }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 3rem; }
.post-nav a { display: block; padding: 1rem 1.2rem; background: var(--pine-800); border-radius: var(--radius); text-decoration: none; font-weight: 900; border: 2px solid var(--pine-800); }
.post-nav a:hover, .post-nav a:focus-visible { border-color: var(--marigold); color: var(--paper); }
.post-nav .nav-label { display: block; color: var(--pine-300); font-size: var(--step--1); font-weight: 700; margin-bottom: 0.1rem; }
.post-nav .nav-next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav .nav-next { text-align: left; grid-column: 1; } }

.now-making { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 2.5rem 4rem; align-items: center; }
.now-making img { border-radius: var(--radius); width: 100%; }
@media (max-width: 900px) { .now-making { grid-template-columns: 1fr; } }

/* ---------- Plain pages: contact, privacy, thank-you, 404 ---------- */
.page-plain { padding-block: var(--section-space); min-height: 60vh; }
.page-plain .container > * { max-width: 760px; }
.page-plain h1 { font-size: var(--step-4); line-height: 1; letter-spacing: -0.02em; }
.page-lead { color: var(--pine-300); font-size: var(--step-1); line-height: 1.55; }
.effective-date { color: var(--pine-300); font-size: var(--step--1); }
.contact-form { display: grid; gap: 1.25rem; margin: 2rem 0; }
.form-group { display: grid; gap: 0.4rem; }
.form-group label { font-weight: 900; font-size: var(--step--1); }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--pine-800);
  color: var(--paper);
  border: 2px solid var(--pine-600);
  border-radius: var(--radius);
  font: inherit;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--pine-300); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--marigold); }
.form-group textarea { min-height: 180px; resize: vertical; }
.contact-form button { justify-self: start; }
.hidden-field { display: none; }

/* ---------- Footer ---------- */
.main-footer { background: var(--pine-800); padding: 4.5rem 0 2rem; border-top: 3px solid var(--pine-600); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 2.5rem 2rem; margin-bottom: 3rem; }
.main-footer h4 { font-family: var(--display); font-weight: 400; font-size: 1.375rem; margin: 0 0 1rem; }
.footer-logo img { height: 44px; width: auto; margin-bottom: 1rem; }
.footer-about p { color: var(--pine-300); font-size: var(--step--1); max-width: 34ch; }
.footer-socials { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer-socials a { display: grid; place-items: center; width: 40px; height: 40px; background: var(--pine-900); border-radius: var(--radius); transition: var(--transition); }
.footer-socials a:hover { background: var(--pine-600); }
.footer-socials img { width: 20px; height: 20px; object-fit: contain; }
.main-footer ul li { margin-bottom: 0.45rem; }
.main-footer ul li a { color: var(--paper); font-size: var(--step--1); text-decoration: none; font-weight: 700; }
.main-footer ul li a:hover { color: var(--marigold); }
.footer-latest-content img { width: 100%; max-width: 220px; border-radius: var(--radius); margin-bottom: 0.75rem; }
.footer-latest-title { font-family: var(--display); font-size: var(--step-0); margin: 0 0 0.2rem; }
.footer-latest-date { color: var(--pine-300); font-size: var(--step--1); margin-bottom: 0.5rem; }
.footer-bottom { border-top: 1px solid var(--pine-600); padding-top: 1.5rem; color: var(--pine-300); font-size: 0.8rem; line-height: 1.7; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Age gate ---------- */
#ageGate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: flex-end;
  justify-content: flex-start;
  padding: var(--gutter);
  background: var(--pine-900) url('assets/img/va/va-hero-juno-1600w.webp') 66% 40% / cover no-repeat;
}
.age-pending #ageGate { display: flex; }
.age-pending { overflow: hidden; }
#ageGate::before { content: ''; position: absolute; inset: 0; background: var(--pine-900); opacity: 0.55; }
.age-content {
  position: relative;
  isolation: isolate;
  width: min(100%, 720px);
  border-radius: var(--radius);
  padding: 2rem 2rem 1.75rem;
  margin: 0 0 clamp(0rem, 4vh, 3rem) clamp(0rem, 4vw, 4rem);
}
.age-content::before { content: ''; position: absolute; inset: var(--plane) calc(var(--plane) * -1) calc(var(--plane) * -1) var(--plane); background: var(--pine-600); border-radius: var(--radius); z-index: -2; }
.age-content::after { content: ''; position: absolute; inset: 0; background: var(--pine-800); border-radius: inherit; z-index: -1; }
.age-content h1 { font-size: var(--step-3); margin: 0 0 0.4rem; }
.age-content h2 { font-family: var(--body); font-weight: 900; font-size: var(--step-0); color: var(--pine-300); margin: 0 0 0.75rem; }
.age-content p { margin-bottom: 1.5rem; }
.age-buttons { display: grid; gap: 0.6rem; }
.age-buttons .btn { width: 100%; }
.age-leaving #ageGate { opacity: 0; transition: opacity .4s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.footer-games { grid-column: span 2; }
.footer-games ul { columns: 2; column-gap: 2rem; }
@media (max-width: 1000px) { .footer-games { grid-column: 1 / -1; } }

/* ---------- Cookie choice ---------- */
.cookie-bar {
  position: fixed;
  right: var(--gutter);
  bottom: 1rem;
  width: min(calc(100% - var(--gutter) * 2), 34rem);
  z-index: 900;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--pine-800);
  border: 2px solid var(--pine-600);
  border-radius: var(--radius);
  font-size: var(--step--1);
}
.cookie-bar p { margin: 0; max-width: 60ch; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-actions .btn { min-height: 2.75rem; padding: 0.5rem 1rem; font-size: var(--step--1); }
.age-pending .cookie-bar { display: none; }

.choice-menu--narrow { max-width: 36rem; margin-top: 2rem; }
