@font-face {
  font-family: "Sancreek";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/sancreek-latin.woff2") format("woff2");
}

:root {
  --ink: #0d1823;
  --navy: #13283a;
  --blue: #284c5d;
  --teal: #5d8d8d;
  --gold: #d7a75e;
  --gold-soft: #f0d6a3;
  --ivory: #f6efe3;
  --paper: #fffaf0;
  --plum: #5c2f41;
  --rust: #8e4f3d;
  --line: rgba(240, 214, 163, 0.24);
  --shadow: rgba(14, 23, 32, 0.22);
  --max: 1180px;
  --header-height: 72px;
  --font-display: "Sancreek", Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
textarea {
  font: inherit;
}

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

.skip-link:focus {
  z-index: 100;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  padding: 10px 14px;
  background: var(--paper);
  border: 2px solid var(--gold);
}

.scroll-progress {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(240, 214, 163, 0.12);
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(0);
  transform-origin: left center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  color: var(--paper);
  background: rgba(13, 24, 35, 0.86);
  border-bottom: 1px solid rgba(240, 214, 163, 0.22);
  backdrop-filter: blur(16px);
  transition: background 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(13, 24, 35, 0.97);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.nav-shell {
  width: min(var(--max), calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 214, 163, 0.72);
  background: linear-gradient(145deg, var(--gold-soft), var(--gold));
  color: #3c2717;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.brand-mark img {
  width: 40px;
  height: 38px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 2px 2px rgba(60, 39, 23, 0.14));
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1;
}

.brand small {
  margin-top: 3px;
  color: var(--gold-soft);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.nav-links a {
  padding: 10px 12px;
  color: rgba(255, 250, 240, 0.82);
  border-radius: 6px;
  font-size: 0.94rem;
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--paper);
  background: rgba(240, 214, 163, 0.13);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(240, 214, 163, 0.34);
  background: rgba(246, 239, 227, 0.08);
  border-radius: 6px;
  padding: 10px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--paper);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.page-grid,
.section-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 78svh;
  overflow: hidden;
  color: var(--paper);
  background: var(--navy);
  isolation: isolate;
}

.hero-media-wrap,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media-wrap {
  z-index: -1;
  margin: 0;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateY(calc(var(--scrub, 0) * -34px)) scale(calc(1 + var(--scrub, 0) * 0.045));
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 24, 35, 0.95) 0%, rgba(13, 24, 35, 0.78) 38%, rgba(13, 24, 35, 0.28) 74%),
    linear-gradient(0deg, rgba(13, 24, 35, 0.68), rgba(13, 24, 35, 0.1) 44%),
    repeating-linear-gradient(90deg, rgba(255, 250, 240, 0.03) 0 1px, transparent 1px 112px);
}

.hero-content {
  min-height: 78svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  align-items: center;
  gap: 44px;
  padding: 56px 0 64px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker,
.label {
  margin: 0 0 12px;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: 4.45rem;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.45rem;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-lede {
  max-width: 630px;
  margin-bottom: 30px;
  color: rgba(255, 250, 240, 0.86);
  font-size: 1.18rem;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--gold);
  color: #2c1b10;
  border-color: rgba(246, 239, 227, 0.36);
}

.button-secondary {
  background: rgba(246, 239, 227, 0.08);
  color: var(--paper);
  border-color: rgba(240, 214, 163, 0.42);
}

.character-art img,
.cinematic-art img,
.gallery-hero-art img,
.gallery-card img,
.screenshot-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #173346;
}

.original-art {
  opacity: 0;
  visibility: hidden;
  transition: opacity 500ms ease;
}

.original-art.is-loaded {
  opacity: 1;
  visibility: visible;
}

.original-art.is-missing {
  display: none;
}

.hero-panel {
  align-self: end;
  margin-bottom: 8px;
  padding: 22px;
  color: var(--paper);
  background: rgba(19, 40, 58, 0.72);
  border: 1px solid rgba(240, 214, 163, 0.28);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.hero-panel dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hero-panel dt {
  color: rgba(246, 239, 227, 0.58);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.hero-panel dd {
  margin: 3px 0 0;
  color: var(--paper);
  font-weight: 800;
}

.section-pad {
  padding: 96px 0;
}

.proposal {
  background: var(--paper);
}

.proposal .section-kicker,
.gallery-page .section-kicker {
  color: var(--rust);
}

.proposal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1.15fr);
  gap: 42px;
  align-items: start;
}

.proposal-copy {
  max-width: 620px;
}

.proposal-copy p:not(.section-kicker) {
  color: #4c5661;
  font-size: 1.05rem;
}

.proposal-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.proposal-metrics article {
  min-height: 260px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(19, 40, 58, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(19, 40, 58, 0.08);
}

.proposal-metrics span {
  display: block;
  margin-bottom: 38px;
  color: var(--rust);
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
}

.proposal-metrics strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.proposal-metrics p {
  margin-bottom: 0;
  color: #4c5661;
}

.intro-band {
  padding: 46px 0;
  color: var(--paper);
  background: var(--plum);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 46px;
  align-items: start;
}

.intro-layout h2 {
  margin-bottom: 0;
  color: var(--paper);
  font-size: 2rem;
}

.intro-layout p:last-child {
  margin: 0;
  color: rgba(255, 250, 240, 0.84);
  font-size: 1.06rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading.compact {
  max-width: 820px;
}

.section-heading p:not(.section-kicker) {
  color: #4a5360;
  font-size: 1.05rem;
}

.pillars {
  background: var(--paper);
}

.pillars .section-kicker,
.gameplay .section-kicker,
.press .section-kicker {
  color: var(--rust);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pillar-card {
  min-height: 280px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(19, 40, 58, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(19, 40, 58, 0.08);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(19, 40, 58, 0.12);
}

.card-index {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--rust);
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
}

.pillar-card p,
.feature-list p,
.market-copy p,
.contact p,
.press-link strong {
  color: #4c5661;
}

.character {
  color: var(--paper);
  background:
    radial-gradient(circle at 88% 12%, rgba(215, 167, 94, 0.12), transparent 28%),
    var(--navy);
}

.character-layout {
  display: grid;
  grid-template-columns: minmax(280px, 460px) minmax(0, 1fr);
  gap: 70px;
  align-items: center;
}

.character-art {
  min-height: 580px;
  margin: 0;
  border: 1px solid rgba(240, 214, 163, 0.36);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
  background: #173346;
}

.character-copy {
  max-width: 620px;
}

.character-copy p:not(.section-kicker) {
  color: rgba(255, 250, 240, 0.82);
  font-size: 1.05rem;
}

.traits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.traits span {
  padding: 8px 12px;
  color: var(--gold-soft);
  background: rgba(246, 239, 227, 0.08);
  border: 1px solid rgba(240, 214, 163, 0.28);
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 800;
}

.gallery-hero {
  color: var(--paper);
  background:
    linear-gradient(120deg, rgba(13, 24, 35, 0.96), rgba(19, 40, 58, 0.94) 58%, rgba(92, 47, 65, 0.92)),
    var(--navy);
  overflow: hidden;
}

.gallery-hero-layout {
  min-height: calc(76svh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: 46px;
  align-items: center;
}

.gallery-hero-copy {
  max-width: 640px;
}

.gallery-hero h1 {
  font-size: 3.7rem;
}

.gallery-hero-copy p:not(.section-kicker) {
  color: rgba(255, 250, 240, 0.82);
  font-size: 1.1rem;
}

.gallery-hero-art {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(240, 214, 163, 0.32);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  transform: translateY(calc(var(--scrub, 0) * -24px)) scale(calc(1 + var(--scrub, 0) * 0.035));
}

.gallery-hero-art img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gallery-page {
  background: var(--ivory);
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.gallery-tab {
  min-height: 42px;
  padding: 9px 14px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(19, 40, 58, 0.14);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.gallery-tab:hover,
.gallery-tab:focus-visible,
.gallery-tab.is-active {
  color: #2c1b10;
  background: var(--gold-soft);
  border-color: rgba(142, 79, 61, 0.34);
  transform: translateY(-1px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.gallery-card {
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(19, 40, 58, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(19, 40, 58, 0.1);
}

.gallery-card img {
  width: 100%;
  height: clamp(270px, 36vw, 520px);
  object-fit: contain;
  background: #ffffff;
}

.gallery-card figcaption {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  min-height: 96px;
  padding: 18px 20px 20px;
  border-top: 1px solid rgba(19, 40, 58, 0.1);
}

.gallery-card figcaption span {
  display: block;
  margin-bottom: 4px;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.gallery-card figcaption strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.25;
}

.gallery-card figcaption a {
  display: inline-block;
  margin-top: 8px;
  color: var(--rust);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(142, 79, 61, 0.32);
  text-underline-offset: 3px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.gallery-card figcaption a:hover,
.gallery-card figcaption a:focus-visible {
  color: var(--navy);
  text-decoration-color: currentColor;
}

.gallery-empty {
  margin: 0;
  padding: 24px;
  color: #4c5661;
  background: #ffffff;
  border: 1px solid rgba(19, 40, 58, 0.12);
  border-radius: 8px;
}

.cinematic {
  color: var(--paper);
  background: #101925;
  border-top: 1px solid rgba(240, 214, 163, 0.16);
  border-bottom: 1px solid rgba(240, 214, 163, 0.16);
  overflow: clip;
}

.cinematic-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: 54px;
  align-items: start;
}

.cinematic-layout::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(min(100%, 1180px) * 0.44);
  width: 1px;
  background: rgba(240, 214, 163, 0.14);
  transform: translateX(28px);
}

.cinematic-layout::after {
  content: "";
  position: absolute;
  top: 0;
  left: calc(min(100%, 1180px) * 0.44);
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold), var(--rust));
  border-radius: 999px;
  transform: translateX(27px) scaleY(var(--cinematic-progress, 0));
  transform-origin: top center;
}

.cinematic-stage {
  position: sticky;
  top: calc(var(--header-height) + 34px);
  min-height: 640px;
  display: grid;
  align-items: center;
}

.cinematic-art {
  width: 100%;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(240, 214, 163, 0.32);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  transform: translateY(calc((var(--scrub, 0) - 0.5) * 38px)) scale(calc(0.98 + var(--scrub, 0) * 0.045));
}

.cinematic-copy .section-heading p:not(.section-kicker) {
  color: rgba(255, 250, 240, 0.72);
}

.cinematic-step {
  position: relative;
  min-height: 220px;
  margin-bottom: 18px;
  padding: 26px;
  background: rgba(246, 239, 227, 0.08);
  border: 1px solid rgba(240, 214, 163, 0.18);
  border-radius: 8px;
  opacity: calc(0.62 + var(--step-progress, 0) * 0.38);
  transform: translateX(calc((1 - var(--step-progress, 0)) * 22px)) scale(calc(0.98 + var(--step-progress, 0) * 0.02));
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease, opacity 220ms ease;
}

.cinematic-step.is-active {
  background: rgba(246, 239, 227, 0.12);
  border-color: rgba(240, 214, 163, 0.5);
  opacity: 1;
  transform: translateX(8px) scale(1);
}

.cinematic-step.is-passed {
  border-color: rgba(240, 214, 163, 0.34);
}

.cinematic-step span {
  display: block;
  margin-bottom: 42px;
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
}

.cinematic-step p {
  margin-bottom: 0;
  color: rgba(255, 250, 240, 0.74);
}

.cinematic-stage:has(.cinematic-art.is-missing) {
  display: none;
}

.cinematic-layout:has(.cinematic-art.is-missing) {
  grid-template-columns: minmax(0, 820px);
  justify-content: start;
}

.cinematic-layout:has(.cinematic-art.is-missing)::before,
.cinematic-layout:has(.cinematic-art.is-missing)::after {
  left: auto;
  right: 0;
}

.gameplay {
  background: #fbf4e8;
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.78fr);
  gap: 22px;
  align-items: stretch;
}

.screenshot-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(19, 40, 58, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(19, 40, 58, 0.1);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #173346;
}

.screenshot-card div {
  padding: 22px;
}

.screenshot-card .label {
  color: var(--rust);
}

.screenshot-card p:last-child {
  margin-bottom: 0;
  color: #4c5661;
}

.feature-list {
  display: grid;
  gap: 14px;
}

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

.feature-list article {
  min-height: 220px;
  padding: 24px;
  background: #ffffff;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(19, 40, 58, 0.08);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.feature-list article:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(19, 40, 58, 0.12);
}

.feature-list p {
  margin-bottom: 0;
}

.market {
  color: var(--paper);
  background: #162131;
}

.market-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 1.06fr);
  gap: 42px;
  align-items: start;
}

.market .section-kicker,
.contact .section-kicker {
  color: var(--gold-soft);
}

.market h2,
.market-copy p {
  color: var(--paper);
}

.market-copy p {
  color: rgba(255, 250, 240, 0.82);
}

.market-cards {
  display: grid;
  gap: 14px;
}

.market-cards article {
  padding: 22px;
  background: rgba(246, 239, 227, 0.08);
  border: 1px solid rgba(240, 214, 163, 0.22);
  border-radius: 8px;
}

.market-cards span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-soft);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.market-cards strong {
  color: var(--paper);
  font-size: 1.02rem;
  line-height: 1.45;
}

.press {
  background: var(--ivory);
}

.press-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 42px;
  align-items: start;
}

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

.press-link {
  min-height: 180px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid rgba(19, 40, 58, 0.12);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(19, 40, 58, 0.08);
  transition: transform 160ms ease, border-color 160ms ease;
}

.press-link:hover,
.press-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(142, 79, 61, 0.38);
}

.press-link span {
  display: block;
  margin-bottom: 28px;
  color: var(--rust);
  font-weight: 800;
}

.press-link strong {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
}

.contact {
  color: var(--paper);
  background: var(--blue);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.9fr);
  gap: 56px;
  align-items: start;
}

.contact p {
  max-width: 580px;
  color: rgba(255, 250, 240, 0.84);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: rgba(14, 23, 32, 0.22);
  border: 1px solid rgba(240, 214, 163, 0.28);
  border-radius: 8px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--gold-soft);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  color: var(--paper);
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.28);
  border-radius: 6px;
  padding: 12px 13px;
  outline: none;
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold-soft);
  box-shadow: 0 0 0 3px rgba(240, 214, 163, 0.16);
}

.site-footer {
  padding: 24px 0;
  color: rgba(255, 250, 240, 0.78);
  background: var(--ink);
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-layout p {
  margin: 0;
}

.footer-layout a {
  color: var(--gold-soft);
  font-weight: 800;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.license-page {
  min-height: calc(100svh - var(--header-height));
  color: var(--ink);
  background: var(--paper);
}

.license-intro {
  max-width: 900px;
  padding-top: 24px;
}

.license-intro h1 {
  max-width: 820px;
}

.license-intro > p:not(.section-kicker) {
  max-width: 760px;
  color: #4c5661;
  font-size: 1.12rem;
}

.license-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 54px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.license-summary article {
  padding: 26px 26px 28px 0;
}

.license-summary article + article {
  padding-left: 26px;
  border-left: 1px solid var(--hairline);
}

.license-summary span {
  display: block;
  margin-bottom: 8px;
  color: var(--rust);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.license-summary strong {
  display: block;
  margin-bottom: 7px;
}

.license-summary p {
  margin: 0;
  color: #4c5661;
}

.license-details {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 72px;
  padding-top: 70px;
}

.license-details h2 {
  font-size: 2.25rem;
}

.license-copy {
  max-width: 760px;
}

.license-copy section {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--hairline);
}

.license-copy section + section {
  padding-top: 30px;
}

.license-copy h3 {
  margin-bottom: 10px;
}

.license-copy p,
.license-copy li {
  color: #4c5661;
}

.license-copy ul {
  margin: 0;
  padding-left: 20px;
}

.license-copy .button {
  margin-top: 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 700ms cubic-bezier(0.21, 0.72, 0.24, 1),
    transform 700ms cubic-bezier(0.21, 0.72, 0.24, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cinematic-step.reveal.is-visible {
  opacity: calc(0.62 + var(--step-progress, 0) * 0.38);
  transform: translateX(calc((1 - var(--step-progress, 0)) * 22px)) scale(calc(0.98 + var(--step-progress, 0) * 0.02));
}

.cinematic-step.reveal.is-visible.is-active {
  opacity: 1;
  transform: translateX(8px) scale(1);
}

.pillar-grid .reveal:nth-child(2),
.feature-list .reveal:nth-child(2),
.market-cards .reveal:nth-child(2),
.press-actions .reveal:nth-child(2) {
  --reveal-delay: 90ms;
}

.pillar-grid .reveal:nth-child(3),
.feature-list .reveal:nth-child(3),
.market-cards .reveal:nth-child(3),
.press-actions .reveal:nth-child(3) {
  --reveal-delay: 180ms;
}

.press-actions .reveal:nth-child(4) {
  --reveal-delay: 270ms;
}

@media (max-width: 1080px) {
  .hero-content,
  .gallery-hero-layout,
  .proposal-layout,
  .intro-layout,
  .character-layout,
  .showcase-grid,
  .cinematic-layout,
  .market-layout,
  .press-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-content {
    align-items: end;
    gap: 26px;
  }

  .character-art,
  .cinematic-art {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .hero-panel {
    width: min(100%, 620px);
  }

  .hero-panel dl,
  .proposal-metrics,
  .pillar-grid,
  .gallery-grid,
  .feature-list-wide,
  .press-actions {
    grid-template-columns: 1fr;
  }

  .cinematic-stage {
    position: relative;
    top: auto;
    min-height: 0;
  }

  h1 {
    font-size: 3.25rem;
  }

  .gallery-hero h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .pillar-card,
  .feature-list article {
    min-height: auto;
  }

  .card-index {
    margin-bottom: 22px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 66px;
  }

  .nav-shell,
  .page-grid,
  .section-inner {
    width: min(100% - 28px, var(--max));
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: var(--header-height);
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: rgba(13, 24, 35, 0.98);
    border: 1px solid rgba(240, 214, 163, 0.22);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  }

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

  .nav-links a {
    padding: 12px;
  }

  .hero {
    min-height: calc(86svh - var(--header-height));
  }

  .hero-content {
    min-height: calc(86svh - var(--header-height));
    padding: 44px 0 38px;
  }

  h1 {
    font-size: 2.45rem;
  }

  .gallery-hero h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.78rem;
  }

  .hero-lede {
    font-size: 1rem;
  }

  .hero-panel {
    display: none;
  }

  .section-pad {
    padding: 66px 0;
  }

  .intro-band {
    padding: 36px 0;
  }

  .hero-actions,
  .press-actions {
    align-items: stretch;
  }

  .button,
  .press-link {
    width: 100%;
  }

  .cinematic-step {
    min-height: auto;
  }

  .gallery-card figcaption {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-card figcaption a {
    width: 100%;
    text-align: center;
  }

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

@media (max-width: 430px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 2.08rem;
  }

  .gallery-hero h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.56rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-mark img {
    width: 34px;
    height: 32px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-content {
    padding-top: 34px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Professional editorial layout */

:root {
  --max: 1240px;
  --section-space: 112px;
  --hairline: rgba(19, 40, 58, 0.14);
}

h1 {
  font-size: 4.8rem;
}

h2 {
  font-size: 2.7rem;
}

h3 {
  font-size: 1.12rem;
}

.section-pad {
  padding: var(--section-space) 0;
}

.section-heading {
  max-width: 880px;
  margin-bottom: 48px;
}

.hero {
  min-height: calc(94svh - var(--header-height));
}

.hero-content {
  min-height: calc(94svh - var(--header-height));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 52px;
  padding: 90px 0 58px;
}

.hero-copy {
  max-width: 790px;
}

.hero-lede {
  max-width: 670px;
}

.hero-facts {
  width: min(100%, 860px);
  align-self: flex-end;
  border-top: 1px solid rgba(240, 214, 163, 0.4);
}

.hero-facts dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.hero-facts div {
  min-width: 0;
  padding: 16px 18px 0 0;
}

.hero-facts div + div {
  padding-left: 18px;
  border-left: 1px solid rgba(240, 214, 163, 0.2);
}

.hero-facts dt {
  color: rgba(255, 250, 240, 0.56);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 4px 0 0;
  color: var(--paper);
  font-weight: 800;
}

.story {
  color: var(--paper);
  background:
    linear-gradient(130deg, rgba(92, 47, 65, 0.26), transparent 40%),
    #111c2a;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 88px;
  align-items: center;
}

.story-copy {
  max-width: 720px;
}

.story-copy p:not(.section-kicker) {
  color: rgba(255, 250, 240, 0.76);
}

.story-lede {
  color: var(--paper) !important;
  font-size: 1.2rem;
}

.story-art {
  max-height: 720px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(240, 214, 163, 0.3);
  box-shadow: 0 34px 86px rgba(0, 0, 0, 0.3);
}

.story-art img {
  width: 100%;
  max-height: 720px;
  object-fit: cover;
  transform: translateY(calc((var(--scrub, 0) - 0.5) * -18px)) scale(1.035);
}

.story-beats {
  margin-top: 44px;
  border-top: 1px solid rgba(240, 214, 163, 0.28);
}

.story-beats div {
  display: grid;
  grid-template-columns: 44px 130px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid rgba(240, 214, 163, 0.16);
}

.story-beats span {
  color: var(--gold);
  font-family: var(--font-display);
}

.story-beats small {
  color: rgba(255, 250, 240, 0.62);
}

.character {
  color: var(--ink);
  background: var(--paper);
}

.character-layout {
  grid-template-columns: minmax(300px, 500px) minmax(0, 1fr);
  gap: 88px;
}

.character-art {
  min-height: 0;
  aspect-ratio: 0.72;
  overflow: visible;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.character-art img {
  background: transparent;
  transform: translateY(calc((var(--scrub, 0) - 0.5) * -14px)) scale(1.02);
}

.character-copy p:not(.section-kicker) {
  color: #4c5661;
}

.character .section-kicker {
  color: var(--rust);
}

.character-facts {
  margin: 34px 0 0;
  border-top: 1px solid var(--hairline);
}

.character-facts div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}

.character-facts dt {
  color: var(--rust);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.character-facts dd {
  margin: 0;
  font-weight: 700;
}

.gameplay {
  color: var(--paper);
  background: #142130;
}

.gameplay .section-heading p:not(.section-kicker) {
  color: rgba(255, 250, 240, 0.68);
}

.experience-showcase {
  display: grid;
  gap: 38px;
}

.screenshot-card {
  border-color: rgba(240, 214, 163, 0.24);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
}

.screenshot-card img {
  aspect-ratio: 16 / 8.6;
}

.screenshot-card div {
  display: grid;
  grid-template-columns: 160px 260px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 20px 24px;
  color: var(--ink);
}

.screenshot-card h3,
.screenshot-card p {
  margin-bottom: 0;
}

.screenshot-card h3 {
  color: var(--navy);
}

.screenshot-card .label {
  color: var(--blue);
}

.feature-list-wide {
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(240, 214, 163, 0.25);
  border-bottom: 1px solid rgba(240, 214, 163, 0.25);
}

.feature-list article {
  min-height: 0;
  padding: 28px 28px 30px 0;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.feature-list article + article {
  padding-left: 28px;
  border-left: 1px solid rgba(240, 214, 163, 0.2);
}

.feature-list article:hover {
  transform: none;
  box-shadow: none;
}

.feature-list span {
  display: block;
  margin-bottom: 22px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.feature-list p {
  color: rgba(255, 250, 240, 0.68);
}

.proposal {
  background: var(--ivory);
}

.proposal-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 78px;
}

.proposal-rows {
  border-top: 1px solid var(--hairline);
}

.proposal-rows article {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
}

.proposal-rows span {
  color: var(--rust);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.proposal-rows strong {
  display: block;
  margin-bottom: 4px;
}

.proposal-rows p {
  margin-bottom: 0;
  color: #4c5661;
}

.market-layout {
  gap: 78px;
}

.market-list {
  border-top: 1px solid rgba(240, 214, 163, 0.28);
}

.market-list article {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(240, 214, 163, 0.2);
}

.market-list span {
  color: var(--gold-soft);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.market-list strong {
  color: var(--paper);
  line-height: 1.5;
}

.project-overview {
  background: var(--ivory);
}

.project-overview-heading {
  max-width: 1100px;
  margin-bottom: 48px;
}

.project-overview-heading h2 {
  font-size: clamp(2.35rem, 3.3vw, 3.5rem);
  line-height: 1.04;
}

.project-overview-heading p:not(.section-kicker),
.project-column > p:not(.section-kicker) {
  color: #4c5661;
  line-height: 1.75;
}

.project-overview .section-kicker {
  color: var(--rust);
}

.project-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.project-column {
  min-width: 0;
  display: grid;
  grid-template-rows: 210px 1fr;
  padding: 38px 46px 42px 0;
}

.project-column + .project-column {
  padding-right: 0;
  padding-left: 46px;
  border-left: 1px solid var(--hairline);
}

.project-column h3 {
  max-width: 26ch;
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 1.8vw, 1.85rem);
  line-height: 1.22;
}

.project-column-intro {
  padding-bottom: 28px;
}

.project-column-intro > p:not(.section-kicker) {
  margin-bottom: 0;
  color: #4c5661;
  line-height: 1.65;
}

.project-points {
  display: grid;
  grid-template-rows: repeat(3, minmax(112px, 1fr));
  border-top: 1px solid var(--hairline);
}

.project-points article {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  align-content: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}

.project-points span {
  color: var(--rust);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.project-points strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.98rem;
}

.project-points p {
  margin: 0;
  color: #4c5661;
  line-height: 1.55;
}

.project-overview .market-list article {
  border-color: var(--hairline);
}

.project-overview .market-list span {
  color: var(--rust);
}

.project-overview .market-list strong {
  color: var(--ink);
  line-height: 1.55;
}

.press-layout {
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 78px;
  align-items: start;
}

.press-intro {
  align-self: start;
}

.press-summary {
  max-width: 46ch;
  color: #4c5661;
}

.press-character-sheet {
  width: min(100%, 420px);
  margin: 34px 0 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--hairline);
  box-shadow: 0 24px 64px rgba(19, 40, 58, 0.12);
}

.press-character-sheet img {
  display: block;
  width: 100%;
  height: auto;
}

.press-character-sheet figcaption {
  padding: 12px 14px;
  color: var(--rust);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.press-list {
  border-top: 1px solid var(--hairline);
}

.press-link {
  min-height: 0;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 24px;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  box-shadow: none;
}

.press-link:hover,
.press-link:focus-visible {
  transform: none;
  padding-left: 10px;
  border-color: var(--rust);
}

.press-link span {
  margin-bottom: 0;
  font-size: 0.8rem;
}

.press-link strong {
  color: var(--ink);
}

.press-link b {
  color: var(--rust);
  font-size: 1.25rem;
}

.contact {
  background:
    linear-gradient(115deg, rgba(13, 24, 35, 0.3), transparent 62%),
    var(--plum);
}

.contact-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: start;
  gap: 78px;
}

.contact-copy {
  max-width: 620px;
}

.contact-copy h2 {
  max-width: none;
  font-size: clamp(2.8rem, 4vw, 4.1rem);
  line-height: 1.04;
}

.contact-copy > p:not(.section-kicker) {
  font-size: 1.05rem;
  line-height: 1.75;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 30px;
  background: rgba(13, 24, 35, 0.22);
  border: 1px solid rgba(240, 214, 163, 0.3);
  border-radius: 6px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form label {
  gap: 8px;
  font-size: 0.78rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 13px 14px;
}

.contact-form select {
  width: 100%;
  color: var(--paper);
  appearance: none;
  background-color: rgba(255, 250, 240, 0.08);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold-soft) 50%),
    linear-gradient(135deg, var(--gold-soft) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 13px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 250, 240, 0.28);
  border-radius: 6px;
  outline: none;
}

.contact-form select option {
  color: var(--ink);
}

.contact-form textarea {
  min-height: 150px;
}

.contact-form select:focus {
  border-color: var(--gold-soft);
  box-shadow: 0 0 0 3px rgba(240, 214, 163, 0.16);
}

.contact-form .button {
  justify-self: start;
}

.contact-form-status {
  min-height: 1.4em;
  margin: -6px 0 0;
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.86rem;
}

.gallery-hero {
  position: relative;
  min-height: calc(82svh - var(--header-height));
  padding: 0;
  isolation: isolate;
}

.gallery-hero-media,
.gallery-hero-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

.gallery-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(calc(var(--scrub, 0) * -24px)) scale(calc(1.02 + var(--scrub, 0) * 0.035));
}

.gallery-hero-shade {
  background:
    linear-gradient(90deg, rgba(13, 24, 35, 0.96), rgba(13, 24, 35, 0.62) 52%, rgba(13, 24, 35, 0.14)),
    linear-gradient(0deg, rgba(13, 24, 35, 0.82), transparent 55%);
}

.gallery-hero-layout {
  min-height: calc(82svh - var(--header-height));
  display: flex;
  align-items: flex-end;
  padding: 80px 0 72px;
}

.gallery-hero-copy {
  max-width: 720px;
}

.gallery-hero h1 {
  font-size: 4.25rem;
}

.gallery-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--hairline);
}

.gallery-toolbar .section-heading {
  margin-bottom: 26px;
}

.gallery-count {
  margin-bottom: 30px;
  color: #6c737b;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.gallery-filter-bar {
  position: sticky;
  z-index: 20;
  top: calc(var(--header-height) + 12px);
  margin-bottom: 34px;
}

.gallery-tabs {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 0;
  padding: 7px;
  background: rgba(255, 250, 240, 0.92);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(19, 40, 58, 0.1);
  backdrop-filter: blur(14px);
}

.gallery-tab {
  background: transparent;
  border-color: transparent;
}

.gallery-tab:hover,
.gallery-tab:focus-visible,
.gallery-tab.is-active {
  transform: none;
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.gallery-card {
  grid-column: auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 38px rgba(19, 40, 58, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 54px rgba(19, 40, 58, 0.13);
}

.gallery-card.is-wide,
.gallery-card.is-portrait {
  grid-column: auto;
}

.gallery-card img,
.gallery-card.is-wide img,
.gallery-card.is-portrait img {
  width: 100%;
  height: clamp(260px, 24vw, 340px);
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}

.gallery-card figcaption {
  flex: 1;
}

.reveal {
  opacity: 1;
  transform: none;
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  :root {
    --section-space: 88px;
  }

  .story-layout,
  .character-layout,
  .proposal-layout,
  .market-layout,
  .press-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .story-art {
    width: min(100%, 520px);
  }

  .character-art {
    width: min(100%, 560px);
  }

  .screenshot-card div {
    grid-template-columns: 130px 220px minmax(0, 1fr);
  }

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

  .gallery-card.is-portrait {
    grid-column: auto;
  }

  .license-details {
    grid-template-columns: 1fr;
    gap: 30px;
  }

}

@media (max-width: 760px) {
  :root {
    --section-space: 68px;
  }

  body.menu-open {
    overflow: hidden;
  }

  .hero {
    min-height: calc(92svh - var(--header-height));
  }

  .hero-content {
    min-height: calc(92svh - var(--header-height));
    gap: 34px;
    padding: 54px 0 32px;
  }

  .hero-facts {
    display: none;
  }

  .story-beats div {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .story-beats small {
    grid-column: 2;
  }

  .story-art,
  .character-art {
    width: 100%;
  }

  .character-facts div,
  .market-list article {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .screenshot-card div {
    display: block;
  }

  .screenshot-card .label,
  .screenshot-card h3 {
    margin-bottom: 8px;
  }

  .feature-list-wide {
    grid-template-columns: 1fr;
  }

  .feature-list article {
    padding: 24px 0;
  }

  .feature-list article + article {
    padding-left: 0;
    border-top: 1px solid rgba(240, 214, 163, 0.2);
    border-left: 0;
  }

  .proposal-rows article,
  .project-points article {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .project-overview-grid {
    grid-template-columns: 1fr;
  }

  .project-column,
  .project-column + .project-column {
    display: block;
    padding: 38px 0;
  }

  .project-column + .project-column {
    border-top: 1px solid var(--hairline);
    border-left: 0;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 22px;
  }

  .contact-form .button {
    width: 100%;
  }

  .press-link {
    grid-template-columns: 1fr 24px;
  }

  .press-link span {
    grid-column: 1 / -1;
  }

  .gallery-hero {
    min-height: calc(76svh - var(--header-height));
  }

  .gallery-hero-layout {
    min-height: calc(76svh - var(--header-height));
    padding-bottom: 44px;
  }

  .gallery-hero h1 {
    font-size: 2.45rem;
  }

  .gallery-toolbar {
    display: block;
  }

  .gallery-count {
    margin: -14px 0 24px;
  }

  .gallery-filter-bar {
    top: calc(var(--header-height) + 8px);
    margin-right: -14px;
    margin-left: -14px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .gallery-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .gallery-tabs {
    width: max-content;
    margin: 0 14px;
    flex-wrap: nowrap;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card,
  .gallery-card.is-wide,
  .gallery-card.is-portrait {
    grid-column: auto;
  }

  .gallery-card img,
  .gallery-card.is-wide img,
  .gallery-card.is-portrait img {
    height: clamp(240px, 76vw, 360px);
    max-height: none;
  }

  .license-intro {
    padding-top: 8px;
  }

  .license-summary {
    grid-template-columns: 1fr;
  }

  .license-summary article,
  .license-summary article + article {
    padding: 22px 0;
    border-left: 0;
  }

  .license-summary article + article {
    border-top: 1px solid var(--hairline);
  }

  .footer-layout,
  .footer-links {
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready .reveal {
    opacity: 1;
    transform: none;
  }
}

.hero-banner {
  width: min(430px, 100%);
  margin: 24px 0 0;
}

.hero-banner img {
  width: 100%;
  max-height: 190px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.28));
}

.footer-logo {
  width: 70px;
  height: 52px;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
  margin-right: 4px;
}

.documentation-page {
  background:
    linear-gradient(180deg, var(--ivory) 0%, var(--paper) 44%, #f2e7d4 100%);
}

.docs-hero {
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(13, 24, 35, 0.98), rgba(19, 40, 58, 0.94) 56%, rgba(40, 76, 93, 0.9)),
    linear-gradient(180deg, rgba(240, 214, 163, 0.12), transparent 45%);
  border-bottom: 1px solid rgba(240, 214, 163, 0.22);
}

.docs-hero-layout {
  min-height: calc(68svh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.55fr);
  align-items: end;
  gap: 64px;
  padding: 58px 0 18px;
}

.docs-hero-copy {
  max-width: 760px;
}

.docs-hero-copy h1 {
  max-width: 760px;
  font-size: clamp(3rem, 6.4vw, 5.9rem);
}

.docs-hero-copy p:not(.section-kicker) {
  max-width: 690px;
  color: rgba(255, 250, 240, 0.78);
  font-size: 1.08rem;
}

.docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.docs-quick {
  display: grid;
  gap: 0;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(240, 214, 163, 0.24);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.docs-quick article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 4px 18px;
  padding: 24px;
}

.docs-quick article + article {
  border-top: 1px solid rgba(240, 214, 163, 0.18);
}

.docs-quick span {
  grid-row: span 2;
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 1.22rem;
}

.docs-quick strong {
  color: var(--paper);
  line-height: 1.25;
}

.docs-quick p {
  margin: 0;
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.94rem;
}

.docs-shell {
  color: var(--ink);
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.docs-layout > * {
  min-width: 0;
}

.docs-toc {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  min-width: 0;
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.docs-toc nav {
  display: grid;
  width: 100%;
  gap: 2px;
  max-height: calc(100svh - var(--header-height) - 88px);
  overflow: auto;
  padding-right: 6px;
}

.docs-toc a {
  padding: 8px 0;
  color: #415060;
  font-size: 0.9rem;
  line-height: 1.35;
  border-bottom: 1px solid rgba(19, 40, 58, 0.07);
  overflow-wrap: anywhere;
}

.docs-toc a:hover,
.docs-toc a:focus-visible {
  color: var(--blue);
}

.docs-toc a.is-subitem {
  padding-left: 16px;
  font-size: 0.84rem;
}

.docs-reader {
  min-width: 0;
  padding: 42px clamp(24px, 5vw, 64px);
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(19, 40, 58, 0.08);
}

.docs-gate {
  min-width: 0;
  padding: 42px clamp(24px, 5vw, 58px);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.94), rgba(246, 239, 227, 0.9)),
    linear-gradient(180deg, rgba(40, 76, 93, 0.08), transparent);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(19, 40, 58, 0.08);
}

.docs-gate h2 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
}

.docs-gate > p:not(.section-kicker) {
  max-width: 680px;
  color: #394654;
}

.docs-unlock-form {
  display: grid;
  max-width: 520px;
  gap: 16px;
  margin-top: 28px;
}

.docs-unlock-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.docs-unlock-form input {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.86);
  border: 1px solid rgba(19, 40, 58, 0.18);
  border-radius: 6px;
  outline: 0;
}

.docs-unlock-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(40, 76, 93, 0.14);
}

.docs-unlock-form .button {
  justify-self: start;
}

.docs-status {
  min-height: 1.4em;
  margin: 0;
  color: #415060;
  font-size: 0.9rem;
}

.docs-status.is-error {
  color: var(--rust);
  font-weight: 800;
}

.docs-reader > *:first-child {
  margin-top: 0;
}

.docs-reader h1,
.docs-reader h2,
.docs-reader h3,
.docs-reader h4 {
  max-width: 880px;
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.docs-reader h1 {
  font-size: clamp(2.35rem, 4.2vw, 4.4rem);
  margin-bottom: 18px;
}

.docs-reader h2 {
  margin-top: 56px;
  padding-top: 32px;
  color: var(--ink);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  border-top: 1px solid var(--hairline);
}

.docs-reader h3 {
  margin-top: 34px;
  color: var(--blue);
  font-size: 1.25rem;
}

.docs-reader h4 {
  margin-top: 24px;
  font-size: 1.05rem;
}

.docs-reader p,
.docs-reader li {
  max-width: 860px;
  color: #394654;
  overflow-wrap: anywhere;
}

.docs-reader a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.docs-reader ul,
.docs-reader ol {
  max-width: 860px;
  margin: 14px 0 22px;
  padding-left: 24px;
}

.docs-reader li + li {
  margin-top: 8px;
}

.docs-reader code {
  padding: 0.14em 0.34em;
  color: #1b3849;
  background: rgba(40, 76, 93, 0.1);
  border-radius: 5px;
  font-size: 0.93em;
}

.docs-reader pre {
  max-width: 100%;
  overflow: auto;
  margin: 20px 0 28px;
  padding: 20px;
  color: #f8efe0;
  background: #10202d;
  border: 1px solid rgba(240, 214, 163, 0.18);
  border-radius: 8px;
}

.docs-reader pre code {
  padding: 0;
  color: inherit;
  background: transparent;
  border-radius: 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.docs-loading {
  color: #6c737b;
}

@media (max-width: 1080px) {
  .docs-hero-layout,
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-quick {
    max-width: 720px;
  }

  .docs-toc {
    position: static;
  }

  .docs-toc nav {
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }
}

@media (max-width: 760px) {
  .nav-links a {
    padding: 11px 12px;
  }

  .docs-hero-layout {
    min-height: calc(78svh - var(--header-height));
    padding-top: 36px;
    gap: 30px;
  }

  .docs-hero-copy h1 {
    font-size: 2.52rem;
  }

  .docs-actions .button {
    width: 100%;
  }

  .docs-quick article {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 20px;
  }

  .docs-toc nav {
    grid-template-columns: 1fr;
    max-height: 320px;
    overflow: auto;
  }

  .docs-reader {
    padding: 28px 18px;
  }

  .docs-gate {
    padding: 28px 18px;
  }

  .docs-unlock-form .button {
    width: 100%;
  }

  .docs-reader h2 {
    margin-top: 42px;
  }
}
