/* Iron Daydream Works
   Layout: one descending column. The studio's gold surface sits at the top; below it the page sinks
   into AVERNWAKE's silver mist, with full-bleed concept-art plates for the seven realms and a thin
   horizontal "wake" line as the recurring mark. A single dark theme by design: the approved brand
   system is Obsidian, Iron, Gold, Ember, Dawn and Sky, set in Cinzel (primary) and Lora (secondary).
   Studio pages run warm (Dawn headings); AVERNWAKE runs cool (silver headings, violet-white wake). */

:root {
  color-scheme: dark;

  /* Approved palette (IDW logo system & brand guide) */
  --obsidian: #0b0b0f;
  --iron: #6b6b6e;
  --gold: #d4af37;
  --ember: #c05621;
  --dawn: #ebd6b8;
  --sky: #4a7fb8;

  /* Surfaces and text, derived from the palette */
  --bg: var(--obsidian);
  --bg-raise: #111116;      /* raised bands and panels */
  --bg-sunk: #070709;       /* deepest wells: hero, wake panel, footer */
  --bg-glass: rgba(11, 11, 15, 0.88);
  --shade: 7 7 9;           /* rgb channels for image overlays */
  --line: #232328;          /* hairlines, Iron at low strength */
  --line-strong: #37373d;
  --fg: #ddd3c3;            /* running text, Dawn softened */
  --fg-dim: #a39e96;        /* captions and secondary text */
  --fg-faint: #827e77;      /* placeholders: 4.9:1 on --bg */
  --heading: var(--dawn);   /* studio headings */
  --silver: #e4e7eb;        /* AVERNWAKE title and game headings */
  --white: #f8f3ea;
  --gold-hi: #e6c869;
  --gold-ink: #120f04;      /* text on gold */
  --gold-glow: rgba(212, 175, 55, 0.12);
  --wake: #cfc7ff;          /* violet-white energy: AVERNWAKE's wake line only */
  --wake-glow: rgba(207, 199, 255, 0.07);
  --error: #ff9d8e;

  /* Type: Cinzel for titles and labels, Lora for reading */
  --font-brand: "Cinzel", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-label: "Cinzel", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Lora", Georgia, "Times New Roman", serif;

  --step--1: 0.88rem;
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.15rem, 1.07rem + 0.4vw, 1.36rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.75vw, 1.85rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.5vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.7rem + 2.6vw, 3.9rem);

  /* Space */
  --gutter: clamp(16px, 4.5vw, 56px);
  --wrap: 1180px;
  --measure: 40rem;
  --section: clamp(64px, 9vw, 128px);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--step-0)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 500; text-wrap: balance; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
p { text-wrap: pretty; }

a { color: var(--gold-hi); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.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;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- Type roles ---------- */

.eyebrow {
  font: 600 0.74rem/1.5 var(--font-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.h1 { font: 500 var(--step-4)/1.12 var(--font-brand); color: var(--heading); letter-spacing: 0.02em; }
.h2 { font: 500 var(--step-3)/1.15 var(--font-display); color: var(--heading); }
.page-game { --heading: var(--silver); }
.lead { font-size: var(--step-1); line-height: 1.5; max-width: var(--measure); }
.gold { color: var(--gold); font-style: italic; }
.note { margin-top: 20px; font-size: var(--step--1); color: var(--fg-dim); }

.game-title {
  font: 600 var(--step-4)/1 var(--font-brand);
  letter-spacing: 0.2em;
  margin-right: -0.2em; /* tracking adds space after the last letter */
  text-transform: uppercase;
  color: var(--silver);
}
.game-title--xl { font-size: clamp(2.15rem, 9.2vw, 8.25rem); letter-spacing: 0.19em; margin-right: -0.19em; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font: 600 0.8rem/1.4 var(--font-label); letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform 0.2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Buttons and chips ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions--center { justify-content: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.75em 1.35em;
  border: 1px solid transparent; border-radius: 2px;
  font: 600 0.8rem/1 var(--font-label); letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--gold { background: var(--gold); color: var(--gold-ink); }
.btn--gold:hover { background: var(--gold-hi); color: var(--gold-ink); }
.btn--silver { background: var(--silver); color: var(--bg); }
.btn--silver:hover { background: var(--white); color: var(--bg); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--fg); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn--sm { min-height: 40px; padding: 0.6em 1em; font-size: 0.72rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start;
  padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 2px;
  font: 600 0.68rem/1 var(--font-label); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-dim); white-space: nowrap; text-decoration: none;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.chip--done { color: var(--heading); }
.chip--active { color: var(--gold); border-color: rgba(216, 160, 96, 0.45); }
.chip--next { color: var(--gold-hi); border-style: dashed; }
.chip--later::before { background: transparent; border: 1px solid currentColor; }
.chip--link:hover { border-color: var(--gold); color: var(--gold-hi); }

@media (prefers-reduced-motion: no-preference) {
  .chip--active::before { animation: pulse 2.6s ease-in-out infinite; }
}
@keyframes pulse { 50% { opacity: 0.35; } }

.tag {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 2px;
  background: rgb(var(--shade) / 0.74);
  font: 600 0.64rem/1 var(--font-label); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg);
}

/* ---------- Header ---------- */

.skip {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  padding: 0.7em 1em; background: var(--gold); color: var(--gold-ink); text-decoration: none;
}
.skip:focus { top: 12px; }

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  position: relative;
  width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto;
  display: flex; align-items: center; gap: 20px; min-height: 66px;
}

.lockup { display: flex; align-items: center; gap: 11px; margin-right: auto; text-decoration: none; }
.lockup__crest { width: 40px; height: 40px; flex: none; }
.lockup__text { display: flex; flex-direction: column; line-height: 1; }
.lockup__iron {
  font: 600 1rem/1 var(--font-brand); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
}
.lockup__works {
  display: flex; align-items: center; gap: 6px; margin-top: 5px;
  font: 600 0.62rem/1 var(--font-label); letter-spacing: 0.5em; text-transform: uppercase; color: var(--dawn);
}
/* Brand rule: IRON DAYDREAM stays dominant; WORKS sits between two fine gold rules. */
.lockup__works::before,
.lockup__works::after { content: ""; height: 1px; flex: 1 1 10px; background: linear-gradient(90deg, transparent, var(--gold)); }
.lockup__works::after { background: linear-gradient(90deg, var(--gold), transparent); margin-left: -0.5em; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.site-nav ul a {
  display: block; padding: 8px 0;
  font: 600 0.76rem/1 var(--font-label); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg); text-decoration: none; border-bottom: 1px solid transparent;
}
.site-nav ul a:hover,
.site-nav ul a[aria-current="page"] { color: var(--gold-hi); border-bottom-color: var(--gold); }

.nav-toggle { display: none; }

@media (max-width: 960px) {
  .site-header__inner { flex-wrap: wrap; }
  html:not(.js) .site-nav { width: 100%; flex-wrap: wrap; padding-bottom: 12px; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }

  html.js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; padding: 0;
    background: transparent; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--fg); cursor: pointer;
  }
  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before,
  .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  html.js .site-nav {
    display: none; position: absolute; top: 100%; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter));
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 6px var(--gutter) 24px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  html.js .site-nav[data-open] { display: flex; }
  html.js .site-nav ul { flex-direction: column; gap: 0; }
  html.js .site-nav ul a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 0.82rem; }
  html.js .site-nav ul a[aria-current="page"] { border-bottom-color: var(--line); }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section--raise { background: var(--bg-raise); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head > p:not(.eyebrow) { max-width: var(--measure); }

.two-col {
  display: grid; gap: clamp(32px, 5vw, 80px); align-items: start;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.two-col__lead { display: grid; gap: 16px; }
@media (min-width: 961px) {
  .two-col__lead { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); }
}
@media (max-width: 960px) {
  .two-col { grid-template-columns: minmax(0, 1fr); }
}

.page-head {
  padding-block: clamp(56px, 8vw, 112px) clamp(44px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(70% 120% at 88% 0%, var(--gold-glow), transparent 62%), var(--bg);
}
.page-head .wrap { display: grid; gap: 18px; }

/* ---------- Studio hero (home) ---------- */

.studio-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(48px, 7vw, 104px) clamp(56px, 8vw, 112px);
  text-align: center;
}
.studio-hero::before {
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: 0; width: min(1000px, 160vw); aspect-ratio: 1; transform: translate(-50%, -22%);
  background: radial-gradient(closest-side, var(--gold-glow), transparent 72%);
}
.studio-hero__inner { display: grid; justify-items: center; gap: 20px; }

/* The approved primary logo (full cinematic). Its star gets a slow glow: the brand's
   "brighter tomorrow" mark. The logo is fully visible at rest; motion only adds light. */
.studio-hero__logo { position: relative; width: min(100%, 600px); margin: 0; line-height: 0; }
.studio-hero__logo img { display: block; width: 100%; height: auto; }
.studio-hero__star {
  position: absolute; left: 49.7%; top: 7.2%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 244, 214, 0.55) 0%, rgba(212, 175, 55, 0.22) 22%, transparent 62%);
  mix-blend-mode: screen; pointer-events: none; opacity: 0.55;
}
@media (prefers-reduced-motion: no-preference) {
  .studio-hero__logo img { animation: ident-light 1.6s ease-out both; }
  .studio-hero__star { animation: star-flare 1.6s ease-out both, star-breathe 5.5s ease-in-out 1.6s infinite; }
}
@keyframes ident-light { from { filter: brightness(0.82); } to { filter: none; } }
@keyframes star-flare { 0% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.6); } 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); } }
@keyframes star-breathe { 50% { opacity: 0.85; transform: translate(-50%, -50%) scale(1.12); } }

.studio-hero__promise {
  font: 600 clamp(0.72rem, 0.62rem + 0.5vw, 0.95rem)/1.6 var(--font-brand);
  letter-spacing: 0.34em; margin-right: -0.34em; text-transform: uppercase; color: var(--gold);
}
.studio-hero__statement { font: 400 var(--step-3)/1.22 var(--font-display); color: var(--heading); max-width: 32ch; }
.studio-hero__statement span { display: block; }
.studio-hero__iron { color: var(--gold); font-style: italic; }
.studio-hero .lead { margin-inline: auto; }

/* ---------- AVERNWAKE feature (home) ---------- */

.feature { position: relative; display: grid; background: var(--bg-sunk); border-block: 1px solid var(--line); }
.feature__art { position: relative; }
.feature__art img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature__body {
  display: grid; gap: 16px; justify-items: start;
  width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto;
  padding-block: 36px 60px;
}
.feature__body > p:not(.eyebrow) { max-width: 34rem; }
.feature__tagline { font: italic 400 var(--step-2)/1.2 var(--font-display); color: var(--heading); }

@media (min-width: 961px) {
  .feature { grid-template-areas: "stack"; }
  .feature__art,
  .feature__body { grid-area: stack; }
  .feature__art img { aspect-ratio: auto; height: clamp(540px, 56vw, 760px); }
  .feature__art::after {
    content: ""; position: absolute; inset: 0;
    background:
      linear-gradient(90deg, rgb(var(--shade) / 0.94) 0%, rgb(var(--shade) / 0.72) 36%, rgb(var(--shade) / 0) 68%),
      linear-gradient(0deg, rgb(var(--shade) / 0.7), rgb(var(--shade) / 0) 30%);
  }
  .feature__body { position: relative; z-index: 1; align-self: center; padding-block: 72px; }
}

/* ---------- Development status ---------- */

.status { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.status li {
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 18px; align-items: start;
  padding-block: 22px; border-bottom: 1px solid var(--line);
}
.status h3 { font: 600 var(--step-1)/1.25 var(--font-display); color: var(--heading); margin-bottom: 4px; }
.status p { color: var(--fg-dim); }
@media (max-width: 560px) {
  .status li { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* ---------- Journal cards and devlogs ---------- */

.cards { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .cards { grid-template-columns: minmax(0, 1fr); } }

.card {
  position: relative; display: grid; gap: 12px; align-content: start;
  padding: 26px 24px; background: var(--bg); border: 1px solid var(--line);
  transition: border-color 0.2s ease;
}
.card:hover { border-color: var(--line-strong); }
.card h3 { font: 600 var(--step-1)/1.2 var(--font-display); }
.card h3 a { color: var(--heading); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:hover h3 a { color: var(--gold-hi); }
.card p:last-child { color: var(--fg-dim); }
.card__meta { font: 600 0.7rem/1.5 var(--font-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-dim); }

.devlog {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  margin-bottom: 20px; background: var(--bg); border: 1px solid var(--line);
}
.devlog__frame {
  position: relative; display: grid; place-content: center; justify-items: center; gap: 6px;
  min-height: 220px; aspect-ratio: 16 / 9; overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 50% 120%, var(--wake-glow), transparent 70%),
    linear-gradient(180deg, var(--bg-raise), var(--bg-sunk));
}
.devlog__frame::after {
  content: ""; position: absolute; left: 8%; right: 8%; top: 72%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(207, 199, 255, 0.55) 45%, rgba(207, 199, 255, 0.15) 75%, transparent);
}
.devlog__label { font: 600 0.7rem/1 var(--font-label); letter-spacing: 0.4em; text-transform: uppercase; color: var(--fg-dim); margin-right: -0.4em; }
.devlog__num { font: 600 clamp(3.5rem, 8vw, 5.5rem)/1 var(--font-brand); letter-spacing: 0.08em; color: var(--heading); }
.devlog__body { display: grid; gap: 12px; align-content: center; justify-items: start; padding: clamp(22px, 3vw, 36px); }
.devlog__body h3 { font: 500 var(--step-2)/1.15 var(--font-display); color: var(--heading); }
.devlog__body p:not(.card__meta) { color: var(--fg-dim); max-width: 36rem; }
.devlog--quiet .devlog__num { color: var(--fg-dim); }
@media (max-width: 760px) {
  .devlog { grid-template-columns: minmax(0, 1fr); }
  .devlog__frame { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
}

/* ---------- The Wake panel and forms ---------- */

.wake-panel {
  padding-block: var(--section);
  background: radial-gradient(110% 140% at 0% 0%, var(--wake-glow), transparent 55%), var(--bg-sunk);
  border-block: 1px solid var(--line);
  scroll-margin-top: 70px;
}
.wake-panel__inner {
  display: grid; gap: clamp(28px, 4vw, 72px); align-items: center;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}
.wake-panel__copy { display: grid; gap: 16px; }
.wake-panel__copy > p:not(.eyebrow) { max-width: 30rem; }
@media (max-width: 960px) { .wake-panel__inner { grid-template-columns: minmax(0, 1fr); } }

.form { position: relative; display: grid; gap: 18px; min-width: 0; }
.field { display: grid; gap: 8px; min-width: 0; }
.field-row { display: flex; flex-wrap: wrap; gap: 10px; }
.field-row .input { flex: 1 1 15rem; min-width: 0; }
.field-row .btn { flex: 0 0 auto; }
.field-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .field-grid { grid-template-columns: minmax(0, 1fr); } }

.label {
  font: 600 0.7rem/1.4 var(--font-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-dim);
}
.input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--line-strong); border-radius: 2px;
  font: 400 1rem/1.4 var(--font-body);
}
.input::placeholder { color: var(--fg-faint); }
.input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.textarea { resize: vertical; min-height: 130px; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg-dim) 50%), linear-gradient(135deg, var(--fg-dim) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }

.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; border: 0; min-width: 0; }
.checks legend { width: 100%; padding: 0; margin-bottom: 10px; }
.checks label { display: inline-flex; align-items: center; gap: 10px; font-size: 0.98rem; cursor: pointer; }
.checks input { width: 18px; height: 18px; margin: 0; accent-color: var(--gold); }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-status { min-height: 1.5em; font-size: 0.98rem; color: var(--fg-dim); }
.form-status:empty { min-height: 0; }
.form-status[data-state="ok"] { color: var(--gold-hi); }
.form-status[data-state="note"] { color: var(--wake); }
.form-status[data-state="error"] { color: var(--error); }
.fine { font-size: 0.86rem; color: var(--fg-dim); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Principles (home) ---------- */

.principles {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.principles li { display: grid; gap: 10px; align-content: start; padding: 30px 32px 32px 0; border-bottom: 1px solid var(--line); }
.principles li:nth-child(odd) { border-right: 1px solid var(--line); }
.principles li:nth-child(even) { padding-left: 32px; padding-right: 0; }
.principles h3 { font: italic 500 var(--step-2)/1.15 var(--font-display); color: var(--heading); }
.principles p { color: var(--fg-dim); max-width: 32rem; }
@media (max-width: 760px) {
  .principles { grid-template-columns: minmax(0, 1fr); }
  .principles li:nth-child(n) { padding: 26px 0; border-right: 0; }
}

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

.game-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; min-height: clamp(600px, 84vh, 860px);
  background: var(--bg-sunk);
}
.game-hero__art { position: absolute; inset: 0; z-index: -2; }
.game-hero__art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 28% 42%; }
.game-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(var(--shade) / 0.35) 0%, rgb(var(--shade) / 0.1) 30%, rgb(var(--shade) / 0.82) 66%, var(--bg) 100%),
    linear-gradient(90deg, rgb(var(--shade) / 0.5), rgb(var(--shade) / 0) 60%);
}
.game-hero::after {
  content: ""; position: absolute; inset: -10% -30%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 18% at 30% 62%, rgba(214, 210, 200, 0.07), transparent 70%),
    radial-gradient(35% 14% at 75% 70%, rgba(214, 210, 200, 0.06), transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  .game-hero::after { animation: mist 48s ease-in-out infinite alternate; }
}
@keyframes mist { to { transform: translate3d(8%, -2%, 0); } }

.game-hero__body { align-self: end; display: grid; justify-items: start; gap: 14px; padding-block: 140px clamp(48px, 7vw, 88px); }
.game-hero .tag { top: calc(78px + env(safe-area-inset-top, 0px)); bottom: auto; }
.wake-line { display: block; width: min(100%, 52rem); height: 34px; margin-block: -2px 2px; }
.game-hero__tagline { font: italic 400 var(--step-2)/1.2 var(--font-display); color: var(--heading); }
.game-hero__hook {
  display: grid; gap: 2px;
  font: 600 0.8rem/1.7 var(--font-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg);
}
.game-hero__wake { color: var(--wake); }
.game-hero__lead { max-width: 34rem; }
.game-hero .actions { margin-top: 10px; }

/* ---------- Premise and definition ---------- */

.premise__grid {
  display: grid; gap: clamp(36px, 6vw, 96px); align-items: start;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.premise__text { display: grid; gap: 18px; }
.premise__text > p:not(.eyebrow) { max-width: var(--measure); }
.premise__word { font: italic 500 var(--step-2)/1.2 var(--font-display); color: var(--wake); }
.premise__question { font: 500 var(--step-1)/1.45 var(--font-display); color: var(--heading); }

.definition {
  display: grid; gap: 12px; padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--wake-glow), transparent 70%), var(--bg-raise);
}
.definition__word { font: 600 var(--step-3)/1 var(--font-brand); letter-spacing: 0.06em; color: var(--heading); }
.definition__say { font: 600 0.78rem/1.4 var(--font-label); letter-spacing: 0.12em; color: var(--wake); }
.definition__body { font: 400 var(--step-1)/1.45 var(--font-display); color: var(--fg); }
.definition__root { padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--fg-dim); }
@media (max-width: 960px) { .premise__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Cast ---------- */

.cast {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.cast li {
  display: grid; gap: 10px; align-content: start;
  padding: clamp(22px, 3vw, 32px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cast__role { font: 600 0.7rem/1.4 var(--font-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.cast h3 { font: 500 var(--step-2)/1.1 var(--font-display); color: var(--heading); }
.cast li p:last-child { color: var(--fg-dim); }
@media (max-width: 960px) { .cast { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Seven realms ---------- */

.realms { padding-top: var(--section); }
.realm-list { list-style: none; padding: 0; }
.realm { border-top: 1px solid var(--line); scroll-margin-top: 70px; }
.realm__art { position: relative; max-width: 1600px; margin-inline: auto; }
.realm__art img { display: block; width: 100%; aspect-ratio: 1600 / 686; object-fit: cover; }
.realm__plate {
  width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto;
  padding-block: 26px 46px;
  display: grid; align-items: start; gap: 12px 32px;
  grid-template-columns: 4.5rem minmax(0, 3fr) minmax(0, 5fr) minmax(0, 3.4fr);
}
.realm__num { font: 500 var(--step-2)/1 var(--font-brand); color: var(--gold); padding-top: 4px; }
.realm__title { display: grid; gap: 6px; }
.realm__name { font: 600 var(--step-2)/1 var(--font-brand); letter-spacing: 0.12em; text-transform: uppercase; color: var(--heading); }
.realm__word { font: italic 500 var(--step-1)/1.2 var(--font-display); color: var(--gold-hi); }
.realm__line { font-size: var(--step-0); }
.realm__meta { display: grid; gap: 10px; }
.realm__meta div { display: grid; gap: 2px; }
.realm__meta dt { font: 600 0.66rem/1.4 var(--font-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-dim); }
.realm__meta dd { margin: 0; font-size: 0.95rem; color: var(--fg); }
@media (max-width: 960px) {
  .realm__plate { grid-template-columns: 3.4rem minmax(0, 1fr); padding-block: 22px 40px; }
  .realm__line,
  .realm__meta { grid-column: 2; }
  .realm__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .realm__meta { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Combat ---------- */

.progression {
  list-style: none; padding: 0; margin-bottom: clamp(32px, 5vw, 48px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.progression li {
  position: relative; display: grid; gap: 10px; align-content: start;
  padding: 30px 30px 28px 0; border-top: 1px solid var(--line-strong);
}
.progression li + li { padding-left: 30px; border-left: 1px solid var(--line); }
.progression li::before {
  content: ""; position: absolute; top: -4.5px; left: 0;
  width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg);
}
.progression li + li::before { left: 30px; }
.progression__step { font: 600 0.72rem/1 var(--font-label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.progression h3 { font: 500 var(--step-2)/1.1 var(--font-display); color: var(--heading); }
.progression li p:last-child { color: var(--fg-dim); }
@media (max-width: 760px) {
  .progression { grid-template-columns: minmax(0, 1fr); }
  .progression li,
  .progression li + li { padding: 26px 0; border-left: 0; }
  .progression li + li::before { left: 0; }
}

.footage {
  display: grid; gap: 12px; padding: clamp(24px, 4vw, 40px);
  border: 1px dashed var(--line-strong); background: var(--bg-raise);
}
.footage__title { font: 600 var(--step-2)/1.1 var(--font-brand); letter-spacing: 0.12em; text-transform: uppercase; color: var(--heading); }
.footage p:last-child { max-width: 46rem; color: var(--fg-dim); }

/* ---------- Choice ---------- */

.choice__grid {
  display: grid; gap: clamp(36px, 6vw, 96px); align-items: center;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.choice__text { display: grid; gap: 16px; }
.choice__text > p:not(.eyebrow) { max-width: var(--measure); }
.seals { display: grid; justify-items: center; gap: 20px; }
.seals__row { display: flex; gap: clamp(14px, 3vw, 26px); }
.seal {
  position: relative; width: clamp(60px, 9vw, 92px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 50% 38%, var(--gold-glow), transparent 64%), var(--bg);
}
.seal::after {
  content: ""; position: absolute; inset: 31%;
  border: 1px solid rgba(216, 160, 96, 0.5); transform: rotate(45deg);
}
.seals__note { font: 600 0.72rem/1.5 var(--font-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-dim); text-align: center; }
@media (max-width: 960px) { .choice__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Quote band and facts ---------- */

.quote-band {
  padding-block: var(--section);
  background: radial-gradient(80% 100% at 15% 50%, var(--wake-glow), transparent 60%), var(--bg-sunk);
  border-block: 1px solid var(--line);
}
.quote-band blockquote p {
  max-width: 30ch;
  font: italic 400 var(--step-3)/1.2 var(--font-display); color: var(--heading);
}
.quote-band figcaption { margin-top: 22px; font: 600 0.74rem/1.4 var(--font-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.themes { margin-top: 40px; font: 600 0.74rem/2 var(--font-label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-dim); }

.facts { display: grid; gap: 20px; }
.facts__list {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.facts__list div { display: grid; gap: 6px; align-content: start; padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts__list dt { font: 600 0.66rem/1.4 var(--font-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-dim); }
.facts__list dd { margin: 0; font-weight: 500; line-height: 1.4; color: var(--heading); }
@media (max-width: 960px) { .facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .facts__list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Journal page ---------- */

.journal { max-width: 46rem; }
.entry { display: grid; gap: 16px; padding-block: 40px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.entry:first-child { padding-top: 0; border-top: 0; }
.entry h3 { font: 500 var(--step-3)/1.1 var(--font-display); color: var(--heading); }
.entry__meta { font: 600 0.7rem/1.5 var(--font-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }

/* ---------- The Wake page ---------- */

.page-head--wake { background: radial-gradient(90% 120% at 0% 0%, var(--wake-glow), transparent 60%), var(--bg-sunk); scroll-margin-top: 70px; }
.wake-hero { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; column-gap: clamp(32px, 5vw, 80px); }
.wake-hero__copy { display: grid; gap: 18px; }
@media (max-width: 960px) { .wake-hero { grid-template-columns: minmax(0, 1fr); } }

.offer {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
}
.offer li { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 1px solid var(--gold); }
.offer h3 { font: 500 var(--step-1)/1.2 var(--font-display); color: var(--heading); }
.offer p { color: var(--fg-dim); }
@media (max-width: 960px) { .offer { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .offer { grid-template-columns: minmax(0, 1fr); } }

.question { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; scroll-margin-top: 80px; }
.question__prompt { display: grid; gap: 18px; }
.question__text { font: italic 400 var(--step-3)/1.18 var(--font-display); color: var(--heading); }
.question__prompt p:last-child { color: var(--fg-dim); max-width: 30rem; }
@media (max-width: 960px) { .question { grid-template-columns: minmax(0, 1fr); } }

.channels { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.channels li {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-block: 22px; border-bottom: 1px solid var(--line);
}
.channels li > div { display: grid; gap: 4px; min-width: 0; }
.channels h3 { font: 500 var(--step-1)/1.2 var(--font-display); color: var(--heading); }
.channels p { color: var(--fg-dim); }
@media (max-width: 520px) {
  .channels li { flex-direction: column; align-items: flex-start; gap: 12px; }
}

.formats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.formats div { display: grid; gap: 10px; align-content: start; padding: 22px 0 0; border-top: 1px solid var(--line-strong); }
.formats dt { font: 500 var(--step-1)/1.2 var(--font-display); color: var(--heading); }
.formats dd { margin: 0; color: var(--fg-dim); }
@media (max-width: 1100px) { .formats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .formats { grid-template-columns: minmax(0, 1fr); } }

.rules { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.rules li { padding: 20px 0 20px 30px; border-bottom: 1px solid var(--line); position: relative; font-size: var(--step-1); line-height: 1.45; }
.rules li::before {
  content: ""; position: absolute; left: 4px; top: calc(20px + 0.68em);
  width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg);
}

/* ---------- Studio page ---------- */

.studio-head { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: clamp(28px, 5vw, 64px); }
.studio-head__crest { width: clamp(120px, 18vw, 200px); }
.studio-head__copy { display: grid; gap: 18px; }
@media (max-width: 760px) { .studio-head { grid-template-columns: minmax(0, 1fr); } }

.founder blockquote { display: grid; gap: 18px; }
.founder blockquote p { font: 400 var(--step-2)/1.35 var(--font-display); color: var(--fg); }
.founder blockquote p:last-child { color: var(--heading); font-style: italic; }
.founder figcaption { margin-top: 22px; font: 600 0.74rem/1.4 var(--font-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }

.makes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.makes__item { display: grid; gap: 10px; align-content: start; padding: 24px; border: 1px solid var(--line); background: var(--bg); }
.makes__item h3 { font: 600 var(--step-2)/1 var(--font-brand); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); }
.makes__item p:last-child { color: var(--fg-dim); }
.makes__item--live { border-color: rgba(212, 175, 55, 0.5); }
.makes__item--live h3 { color: var(--gold); }
.makes__item--live .card__meta { color: var(--gold); }
@media (max-width: 1100px) {
  .makes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .makes__item--live { grid-column: span 2; }
}
@media (max-width: 560px) {
  .makes { grid-template-columns: minmax(0, 1fr); }
  .makes__item--live { grid-column: auto; }
}

.standard { list-style: none; padding: 0; counter-reset: q; border-top: 1px solid var(--line); }
.standard li {
  counter-increment: q; display: grid; grid-template-columns: 3rem minmax(0, 1fr); align-items: baseline;
  padding-block: 18px; border-bottom: 1px solid var(--line);
  font: italic 500 var(--step-3)/1.1 var(--font-display); color: var(--heading);
}
.standard li::before { content: counter(q); font: 600 0.8rem/1 var(--font-label); letter-spacing: 0.1em; color: var(--gold); font-style: normal; grid-row: span 2; }
.standard li span { display: block; font: 600 0.72rem/1.4 var(--font-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-dim); font-style: normal; margin-bottom: 6px; }

.contact { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
.contact__copy { display: grid; gap: 16px; }
.contact__copy > p:not(.eyebrow) { color: var(--fg-dim); max-width: 30rem; }
@media (max-width: 960px) { .contact { grid-template-columns: minmax(0, 1fr); } }

.email-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 6px; }
.email-line__address { font: 500 var(--step-1)/1.3 var(--font-display); color: var(--heading); overflow-wrap: anywhere; user-select: all; }
.press-social { margin-top: 14px; color: var(--fg-dim); }

/* ---------- Press page ---------- */

.press-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .press-grid { grid-template-columns: minmax(0, 1fr); } }
.press-block { display: grid; gap: 16px; align-content: start; padding: 24px; border: 1px solid var(--line); background: var(--bg-raise); }
.press-block__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.press-block__text { font: 400 var(--step-1)/1.45 var(--font-display); color: var(--fg); }
.press-lines { list-style: none; padding: 0; display: grid; gap: 10px; }
.press-lines li { font: italic 400 var(--step-1)/1.35 var(--font-display); color: var(--heading); }

.assets { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.assets li { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.assets li > div { display: grid; gap: 4px; min-width: 0; }
.assets h3 { font: 500 var(--step-1)/1.2 var(--font-display); color: var(--heading); }
.assets p { color: var(--fg-dim); }
@media (max-width: 520px) { .assets li { flex-direction: column; align-items: flex-start; gap: 12px; } }

.press-contact { display: grid; gap: 16px; }
.press-contact > p { max-width: var(--measure); }

/* ---------- Privacy prose and 404 ---------- */

.prose { max-width: 44rem; display: grid; gap: 16px; }
.prose h2 { margin-top: 20px; font: 500 var(--step-2)/1.15 var(--font-display); color: var(--heading); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; display: grid; gap: 10px; }
.prose strong { color: var(--heading); font-weight: 500; }

.lost {
  padding-block: clamp(96px, 16vw, 200px);
  background: radial-gradient(60% 80% at 50% 0%, var(--gold-glow), transparent 65%), var(--bg);
  text-align: center;
}
.lost__inner { display: grid; justify-items: center; gap: 20px; }
.lost .lead { margin-inline: auto; }

/* ---------- Footer ---------- */

.site-footer { padding-block: 64px 32px; background: var(--bg-sunk); border-top: 1px solid var(--line); }
.site-footer__grid { display: grid; gap: 44px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.site-footer__brand { display: grid; gap: 12px; justify-items: start; align-content: start; }
.site-footer__logo { display: block; width: min(100%, 340px); height: auto; margin-left: -10px; }
.site-footer__est { font: 600 0.7rem/1.4 var(--font-label); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.site-footer__promise { font: italic 400 var(--step-1)/1.3 var(--font-display); color: var(--heading); }
.site-footer__lines { font: 600 0.72rem/1.6 var(--font-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-dim); }

.footer-nav { display: grid; gap: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer-nav h2 { font: 600 0.7rem/1.4 var(--font-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-dim); }
.footer-nav ul { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 10px; }
.footer-nav a { color: var(--fg); text-decoration: none; }
.footer-nav a:hover { color: var(--gold-hi); }
.footer-nav__note { margin-top: 14px; color: var(--fg-dim); font-size: 0.95rem; }
.footer-nav__note a { color: var(--gold-hi); text-decoration: underline; }

.site-footer__legal {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 0.86rem; color: var(--fg-dim);
}
.site-footer__legal a { color: var(--fg-dim); }
.site-footer__legal a:hover { color: var(--gold-hi); }

@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Anchored sections clear the sticky header. */
[id] { scroll-margin-top: calc(80px + env(safe-area-inset-top, 0px)); }

/* On narrow screens, keep Elias's silhouette in the Limbo hero crop. */
@media (max-width: 760px) {
  .game-hero__art img { object-position: 14% 50%; }
}

/* ---------- Studio page: approved horizontal lockup, meaning, poster ---------- */

.studio-head--logo { grid-template-columns: minmax(0, 1fr); justify-items: start; }
.studio-head__lockup { display: block; width: min(100%, 760px); height: auto; margin: -12px 0 4px -14px; }

.meaning {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.meaning li {
  display: grid; gap: 10px; align-content: start;
  padding: clamp(22px, 3vw, 32px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.meaning__mark { font: 600 0.7rem/1.4 var(--font-label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.meaning h3 { font: 600 var(--step-2)/1.1 var(--font-brand); letter-spacing: 0.06em; color: var(--heading); }
.meaning li p:last-child { color: var(--fg-dim); }
.meaning li:last-child .meaning__mark { color: var(--sky); }
@media (max-width: 960px) { .meaning { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .meaning { grid-template-columns: minmax(0, 1fr); } }

.dream {
  display: grid; gap: clamp(28px, 5vw, 72px); align-items: center;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
}
.dream__art { position: relative; margin: 0; }
.dream__art img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.dream__copy { display: grid; gap: 16px; }
.dream__line { font: italic 400 var(--step-3)/1.2 var(--font-display); color: var(--heading); }
.dream__copy p:not(.eyebrow):not(.dream__line) { color: var(--fg-dim); max-width: 30rem; }
@media (max-width: 960px) { .dream { grid-template-columns: minmax(0, 1fr); } }

/* ---------- AVERNWAKE: the verb ladder ---------- */

.verbs {
  padding-block: clamp(56px, 8vw, 104px);
  text-align: center;
  background: radial-gradient(60% 120% at 50% 50%, rgba(192, 86, 33, 0.1), transparent 70%), var(--bg-sunk);
  border-block: 1px solid var(--line);
}
.verbs__list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px clamp(12px, 2.4vw, 28px);
  list-style: none; margin: 0 auto; padding: 0;
  font: 600 clamp(1.05rem, 0.75rem + 1.5vw, 2rem)/1.35 var(--font-brand);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--silver);
}
/* Separators trail each word, so a wrapped line never starts with a dot. */
.verbs__list li:not(:last-child)::after { content: "·"; margin-left: clamp(12px, 2.4vw, 28px); color: var(--ember); }
.verbs__line { margin-top: 18px; font: italic 400 var(--step-1)/1.4 var(--font-display); color: var(--fg-dim); }

/* ---------- Press page: brand basics and logo previews ---------- */

.swatches { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.swatches li { display: grid; gap: 6px; justify-items: start; }
.swatches__chip { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); }
.swatches b { font: 600 0.74rem/1.3 var(--font-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--heading); }
.swatches span { font-size: 0.86rem; color: var(--fg-dim); font-variant-numeric: tabular-nums; user-select: all; }
@media (max-width: 760px) { .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.type-specimens { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; }
.type-specimens div { display: grid; gap: 6px; padding: 20px; border: 1px solid var(--line); background: var(--bg); }
.type-specimens .cinzel { font: 600 1.5rem/1.2 var(--font-brand); letter-spacing: 0.08em; color: var(--heading); }
.type-specimens .lora { font: italic 400 1.4rem/1.3 var(--font-display); color: var(--heading); }
.type-specimens small { font: 600 0.68rem/1.4 var(--font-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-dim); }
@media (max-width: 640px) { .type-specimens { grid-template-columns: minmax(0, 1fr); } }

.logo-previews { display: grid; gap: 20px; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) minmax(0, 3fr); align-items: stretch; margin-bottom: 28px; }
.logo-previews figure { display: grid; gap: 10px; align-content: space-between; margin: 0; padding: 18px; border: 1px solid var(--line); background: var(--bg-sunk); }
.logo-previews img { display: block; width: 100%; height: auto; }
.logo-previews figcaption { font: 600 0.68rem/1.4 var(--font-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-dim); }
@media (max-width: 860px) { .logo-previews { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   Phase 8: narrative home, devlog system, contact architecture
   ===================================================================== */

/* ---------- Home hero (AVERNWAKE first) ---------- */

.presents {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 0.74rem/1.4 var(--font-label); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-hi);
  text-shadow: 0 1px 12px rgb(var(--shade) / 0.9), 0 0 2px rgb(var(--shade) / 0.9);
}
.presents img { width: 34px; height: 34px; }
@media (prefers-reduced-motion: no-preference) {
  .presents { animation: presents-in 1.4s ease-out both; }
}
@keyframes presents-in { from { opacity: 0.7; letter-spacing: 0.3em; } to { opacity: 1; } }

.embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.home-hero .game-hero__tagline { max-width: 30ch; }
.home-hero .game-hero__lead { max-width: 40rem; font-size: var(--step-1); line-height: 1.5; }

/* ---------- Human stakes ---------- */

.stakes {
  padding-block: clamp(80px, 12vw, 160px) clamp(24px, 4vw, 56px);
  background: radial-gradient(70% 90% at 50% 0%, rgba(192, 86, 33, 0.08), transparent 70%), var(--bg);
  text-align: center;
}
.stakes__inner { display: grid; justify-items: center; gap: 22px; max-width: 46rem; }
.stakes__title { font: 600 var(--step-4)/1.12 var(--font-brand); letter-spacing: 0.02em; color: var(--heading); }
.stakes__lead { font: 400 var(--step-1)/1.6 var(--font-display); color: var(--fg); }
.stakes__inner > p:not(.eyebrow):not(.stakes__lead):not(.stakes__question) { color: var(--fg-dim); }
.stakes__question { font: italic 400 var(--step-2)/1.35 var(--font-display); color: var(--gold); max-width: 34ch; }

/* ---------- The descent: seven slices ---------- */

.glimpses { padding-bottom: clamp(56px, 8vw, 104px); }
.glimpses__strip-wrap { position: relative; max-width: 1600px; margin-inline: auto; }
.glimpses__strip {
  list-style: none; margin: 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px;
}
.glimpses__strip a {
  position: relative; display: block; overflow: hidden; aspect-ratio: 9 / 20;
  border: 1px solid var(--line); color: var(--silver); text-decoration: none; background: var(--bg-sunk);
}
.glimpses__strip img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, filter 0.6s ease; filter: saturate(0.9) brightness(0.88); }
.glimpses__strip a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(var(--shade) / 0.92), rgb(var(--shade) / 0) 45%); }
.glimpses__num, .glimpses__name { position: absolute; left: 0; right: 0; z-index: 1; text-align: center; }
.glimpses__num { bottom: 46px; font: 600 1rem/1 var(--font-brand); color: var(--gold); }
.glimpses__name { bottom: 18px; font: 600 0.82rem/1 var(--font-label); letter-spacing: 0.16em; text-transform: uppercase; }
.glimpses__strip a:hover img,
.glimpses__strip a:focus-visible img { transform: scale(1.04); filter: saturate(1) brightness(1); }
.glimpses__strip a:hover, .glimpses__strip a:focus-visible { border-color: var(--gold); }
.glimpses__tag { position: static; display: inline-block; margin: 14px var(--gutter) 0; }
@media (prefers-reduced-motion: reduce) { .glimpses__strip img { transition: none; } }
@media (max-width: 960px) {
  .glimpses__strip {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 6px;
    scrollbar-width: thin;
  }
  .glimpses__strip li { flex: 0 0 min(42vw, 220px); scroll-snap-align: start; }
}

/* ---------- Pillars ---------- */

.pillars { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pillars li { display: grid; gap: 12px; align-content: start; padding: 26px 24px 28px; border-top: 2px solid var(--gold); background: var(--bg); }
.pillars h3 { font: 600 var(--step-1)/1.25 var(--font-brand); letter-spacing: 0.04em; color: var(--heading); }
.pillars p { color: var(--fg-dim); }
.pillars__cta { margin-top: 28px; }
@media (max-width: 1100px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pillars { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Studio statement ---------- */

.statement__grid { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.statement__logo { margin: 0; max-width: 460px; }
.statement__logo img { display: block; width: 100%; height: auto; }
.statement__copy { display: grid; gap: 16px; }
.statement__title { font: 400 var(--step-3)/1.2 var(--font-display); color: var(--heading); }
.statement__title span { display: block; }
.statement__iron { color: var(--gold); font-style: italic; }
.statement__copy > p:not(.eyebrow) { max-width: 36rem; }
.statement__founder { font: 600 0.78rem/1.5 var(--font-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-dim); }
.statement__promise { font: italic 400 var(--step-1)/1.4 var(--font-display); color: var(--gold); }
@media (max-width: 960px) {
  .statement__grid { grid-template-columns: minmax(0, 1fr); }
  .statement__logo { max-width: 340px; }
}

/* ---------- Development strip and post cards ---------- */

.section-head--split { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px 40px; }
.section-head--split > div { display: grid; gap: 14px; }
.status-strip { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.status-strip li { display: flex; align-items: center; gap: 12px; color: var(--fg-dim); font-size: 0.95rem; }
.status-strip .chip { min-width: 9.2rem; justify-content: center; }
@media (max-width: 760px) { .section-head--split { grid-template-columns: minmax(0, 1fr); } }

.posts-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.posts-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .posts-grid, .posts-grid--two { grid-template-columns: minmax(0, 1fr); } }

.post-card { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--bg); border: 1px solid var(--line); transition: border-color 0.2s ease; }
.post-card:hover { border-color: var(--line-strong); }
.post-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 7; }
.post-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card__media .tag { top: 10px; right: 10px; bottom: auto; font-size: 0.6rem; }
.post-card__body { display: grid; gap: 10px; align-content: start; padding: 22px 22px 24px; }
.post-card h3 { font: 500 var(--step-1)/1.25 var(--font-display); }
.post-card h3 a { color: var(--heading); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card:hover h3 a { color: var(--gold-hi); }
.post-card__body > p:last-child { color: var(--fg-dim); }
.post-card .link-arrow { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .post-card__media img { transition: none; } }

.post-card--featured { grid-template-rows: none; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); margin-bottom: 20px; }
.post-card--featured .post-card__media { aspect-ratio: auto; min-height: 300px; }
.post-card--featured .post-card__body { padding: clamp(24px, 3vw, 40px); align-content: center; }
.post-card--featured h3 { font-size: var(--step-2); }
@media (max-width: 860px) {
  .post-card--featured { grid-template-columns: minmax(0, 1fr); }
  .post-card--featured .post-card__media { aspect-ratio: 16 / 8; min-height: 0; }
}

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 8px 22px; }
.filter {
  min-height: 40px; padding: 0.55em 1em; border: 1px solid var(--line-strong); border-radius: 2px; background: transparent; color: var(--fg);
  font: 600 0.72rem/1 var(--font-label); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
}
.filter:hover { border-color: var(--gold); color: var(--gold-hi); }
.filter[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
html:not(.js) .filters { display: none; }

/* ---------- Community invitation ---------- */

.community {
  padding-block: clamp(72px, 10vw, 136px); text-align: center;
  background: radial-gradient(70% 120% at 50% 100%, var(--gold-glow), transparent 65%), var(--bg-sunk);
  border-top: 1px solid var(--line);
}
.community__inner { display: grid; justify-items: center; gap: 18px; max-width: 44rem; }
.community__inner > p:not(.eyebrow) { color: var(--fg-dim); }
.community__social { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.community__social a {
  display: inline-flex; align-items: baseline; gap: 10px; min-height: 44px; padding: 13px 18px;
  border: 1px solid var(--line-strong); border-radius: 2px; color: var(--fg); text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.community__social a:hover { border-color: var(--gold); color: var(--gold-hi); }
.community__net { font: 600 0.74rem/1 var(--font-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.community__handle { font: 500 1rem/1 var(--font-body); }

/* ---------- Devlog article ---------- */

.post-head { padding-block: clamp(48px, 7vw, 96px) clamp(28px, 4vw, 44px); background: radial-gradient(70% 120% at 85% 0%, var(--gold-glow), transparent 62%), var(--bg); }
.post-head__inner { display: grid; gap: 18px; max-width: 52rem; }
.post-meta { font: 600 0.72rem/1.6 var(--font-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-dim); }
.post-meta a { color: var(--gold); text-decoration: none; }
.post-title { font: 500 var(--step-4)/1.12 var(--font-brand); letter-spacing: 0.01em; color: var(--heading); }
.post-hero { position: relative; margin: 0 auto; max-width: 1600px; }
.post-hero img { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: cover; }
.post-video { margin-top: 36px; }
.post-video__frame { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: var(--bg-sunk); }
.post-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-body { max-width: 44rem; padding-block: clamp(36px, 5vw, 64px) 20px; font-size: clamp(1.04rem, 1rem + 0.2vw, 1.14rem); line-height: 1.75; gap: 20px; }
.post-body h2 { margin-top: 18px; font: 500 var(--step-2)/1.2 var(--font-display); color: var(--heading); }
.post-body strong { color: var(--heading); }
.post-note { padding: 14px 18px; border-left: 2px solid var(--gold); background: var(--bg-raise); color: var(--fg-dim); font-size: 0.95rem; }
.post-foot { max-width: 44rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.post-byline { font: 600 0.74rem/1.5 var(--font-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-dim); }
.post-share { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; display: block; padding: 20px 44px 20px 0; cursor: pointer; list-style: none;
  font: 500 var(--step-1)/1.35 var(--font-display); color: var(--heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px;
  border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq summary:hover { color: var(--gold-hi); }
.faq details p { padding: 0 0 22px; max-width: 40rem; color: var(--fg-dim); }
.facts__list--compact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 8px; }

/* ---------- About ---------- */

.beliefs { list-style: none; padding: 0; display: grid; border-top: 1px solid var(--line); }
.beliefs li { display: grid; gap: 8px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.beliefs h3 { font: 600 var(--step-1)/1.3 var(--font-brand); letter-spacing: 0.03em; color: var(--heading); }
.beliefs p { color: var(--fg-dim); max-width: 38rem; }
.founder__role { font: 600 0.78rem/1.5 var(--font-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.dream__lines { font: 600 0.74rem/1.6 var(--font-label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }

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

.inboxes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.inboxes li { display: grid; gap: 12px; align-content: start; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); background: var(--bg-raise); }
.inboxes h3 { font: 500 var(--step-1)/1.3 var(--font-display); color: var(--heading); }
.inboxes .email-line__address { font-size: 1.02rem; }
.inboxes__note { font-size: 0.92rem; color: var(--fg-dim); }
@media (max-width: 1000px) { .inboxes { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer additions ---------- */

.site-footer__name { font: 600 0.82rem/1.4 var(--font-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--heading); }
.site-footer__mail a { color: var(--gold-hi); }

/* Devlog filters: author display rules must respect the hidden attribute. */
.post-card[hidden] { display: none; }
