:root {
  --ink: #080b0a;
  --charcoal: #151a17;
  --moss: #4d5d3e;
  --river: #718493;
  --parchment: #ead8aa;
  --gold: #cda643;
  --royal: #244f9e;
  --white: #f7f3e8;
  --muted: #c9c7bd;
  --line: rgb(234 216 170 / 22%);
  --content: 1180px;
  --shadow: 0 22px 70px rgb(0 0 0 / 34%);
}

@font-face {
  font-family: "Cinzel";
  src: url("../fonts/brand/Cinzel-Variable.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/brand/SourceSans3-Variable.ttf") format("truetype");
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 72% 4%, rgb(36 79 158 / 20%), transparent 26rem),
    linear-gradient(180deg, #0b100d, var(--ink) 42rem);
  font: 400 1.04rem/1.65 "Source Sans 3", system-ui, sans-serif;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: .5rem;
  left: .5rem;
  padding: .7rem 1rem;
  color: var(--ink);
  background: var(--parchment);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgb(8 11 10 / 88%);
  backdrop-filter: blur(16px);
}
.nav-shell {
  width: min(calc(100% - 2rem), var(--content));
  min-height: 74px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  font: 650 .95rem/1 "Cinzel", serif;
  letter-spacing: .09em;
}
.brand img { width: 190px; height: 72px; object-fit: cover; }
.brand { flex-shrink: 0; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  padding: .55rem .75rem;
  color: var(--white);
  background: transparent;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-links a, .language-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 650;
}
.nav-links a:hover, .nav-links a:focus-visible,
.language-links a:hover, .language-links a:focus-visible,
.language-links a[aria-current="page"] { color: var(--parchment); }
.language-menu { position: relative; }
.language-menu summary { cursor: pointer; color: var(--parchment); border: 1px solid var(--line); padding: .5rem .8rem; font-size: .85rem; }
.language-links { position: absolute; top: calc(100% + .5rem); right: 0; display: grid; min-width: 170px; padding: .4rem; background: #101713; border: 1px solid var(--line); box-shadow: var(--shadow); }
.language-links a { display: block; padding: .45rem .7rem; }
.language-links a:hover, .language-links a[aria-current="page"] { background: #233027; }
.footer-brand img { width: 220px; height: 88px; object-fit: cover; }
.studio-hero-copy { width: min(calc(100% - 2rem), var(--content)); margin: auto; padding-block: 1.7rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem; }
.studio-hero-copy h1 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); letter-spacing: 0; margin-bottom: .8rem; }
.studio-hero-copy .lead { margin-bottom: 0; font-size: 1.08rem; max-width: 680px; }
.studio-hero-copy .button-row { flex-direction: column; }
.studio-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; }
.studio-feature figure { margin: 0; }
.studio-feature img { width: 100%; height: auto; }
.studio-feature .button { margin-top: 1.2rem; }
.principles-title { margin-top: 3.5rem; font-size: 1.5rem; }
#our-story { scroll-margin-top: 90px; }

.hero {
  position: relative;
  display: grid;
  border-bottom: 1px solid var(--line);
  background: #0b100d;
}
.hero-media { grid-area: 1 / 1; }
.hero-media img { width: 100%; height: auto; }
.hero-heading {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  z-index: 1;
  max-width: calc(100% - 2rem);
  text-align: center;
  text-shadow: 0 2px 16px #080b0a, 0 2px 4px #080b0a;
}
.hero-heading h1 { font-size: clamp(2rem, 5.8vw, 5.5rem); letter-spacing: .025em; }
.hero-heading .tagline { margin-bottom: 0; }
.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .6rem 2rem;
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
  padding-block: 1.4rem;
}
.hero-copy .lead { max-width: 640px; margin: 0; font-size: 1.12rem; }
.hero-copy .status-line { grid-column: 1 / -1; margin: 0; font-size: .82rem; }
.kicker, .eyebrow {
  margin: 0 0 .6rem;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, h3 { overflow-wrap: anywhere; font-family: "Cinzel", Georgia, serif; line-height: 1.14; }
h1 { margin: 0; font-size: clamp(3.6rem, 10vw, 8.4rem); letter-spacing: .035em; }
.section h1 { font-size: clamp(2.4rem, 8vw, 5rem); overflow-wrap: anywhere; }
h2 { margin: 0 0 1rem; font-size: clamp(1.8rem, 3.4vw, 3rem); }
h3 { margin: 0 0 .6rem; font-size: 1.3rem; }
.tagline { margin: .1rem 0 1rem; color: var(--parchment); font: 600 clamp(1.1rem, 2.2vw, 1.55rem)/1.3 "Cinzel", serif; }
.lead { margin: 0 0 1.5rem; color: #eeece4; font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
.status-line { margin: 1.2rem 0 0; color: var(--muted); font-size: .91rem; }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.15rem;
  border: 1px solid var(--gold);
  color: var(--ink);
  background: var(--gold);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .035em;
}
.button.secondary { color: var(--white); background: rgb(8 11 10 / 28%); }
.hero-actions { min-width: 0; max-width: 450px; }
.steam-cta { margin-top: .8rem; }
.button.steam { color: #dce5ee; border-color: #657c91; background: #182b3b; }
.button.steam:disabled { cursor: default; opacity: .82; transform: none; filter: none; }
.steam-note { margin: .35rem 0 0; color: var(--muted); font-size: .82rem; }
.studio-feature .steam-cta .button { margin-top: 0; }

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

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--charcoal);
}
.proof-strip div { padding: 1.25rem; text-align: center; border-right: 1px solid var(--line); }
.proof-strip div:last-child { border-right: 0; }
.proof-strip strong { display: block; color: var(--parchment); font: 650 .92rem/1.3 "Cinzel", serif; }
.proof-strip span { color: var(--muted); font-size: .86rem; }

.section { padding: clamp(3rem, 5vw, 4.5rem) 1rem; }
.section.alt { background: #111713; }
.section.royal { background: linear-gradient(135deg, #13234a, #0b100d 72%); }
.section-inner { width: min(100%, var(--content)); margin-inline: auto; }
.section-intro { max-width: 760px; margin-bottom: 2.3rem; }
.section-intro p:last-child { color: var(--muted); font-size: 1.12rem; }
.grid-3, .grid-2, .fact-grid, .gallery { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.fact-grid { grid-template-columns: repeat(4, 1fr); }
.facts-three { grid-template-columns: repeat(3, 1fr); }
.card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 4%);
}
.card p { margin: 0; color: var(--muted); }
.card .number { display: block; margin-bottom: .7rem; color: var(--gold); font-weight: 800; }
.story-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); overflow: hidden; border: 1px solid var(--line); background: #151a17; }
.story-card:nth-child(even) { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.story-card:nth-child(even) figure { order: 2; }
.story-card figure { margin: 0; min-height: 330px; }
.story-card img { width: 100%; height: 100%; object-fit: cover; }
.story-copy { align-self: center; padding: clamp(1.5rem, 5vw, 4rem); }
.story-copy p { color: var(--muted); }
.story-list { display: grid; gap: 1rem; }

.gallery { grid-template-columns: repeat(12, 1fr); }
.gallery figure { margin: 0; grid-column: span 4; border: 1px solid var(--line); background: #101511; }
.gallery figure:nth-child(1), .gallery figure:nth-child(2) { grid-column: span 6; }
.gallery img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery figcaption { padding: .75rem .9rem; color: var(--muted); font-size: .85rem; }

.trailer-section {
  scroll-margin-top: 74px;
  padding-top: clamp(3rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 12%, rgb(36 79 158 / 24%), transparent 26rem),
    linear-gradient(180deg, #0d1310, #080b0a);
}
.trailer-intro { max-width: 850px; }
.trailer-frame {
  overflow: hidden;
  border: 1px solid rgb(205 166 67 / 52%);
  background: #020302;
  box-shadow: var(--shadow);
}
.trailer-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020302;
  object-fit: contain;
}

.factions-section {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle at 14% 24%, rgb(36 79 158 / 18%), transparent 24rem),
    linear-gradient(155deg, #111713, #080b0a 72%);
}
.faction-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.faction-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 4%);
  box-shadow: 0 14px 42px rgb(0 0 0 / 22%);
}
.faction-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0a0e0b;
}
.faction-visual img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.faction-visual-placeholder {
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  background-color: #101612;
  background-image:
    linear-gradient(135deg, rgb(5 7 6 / 32%), rgb(5 7 6 / 92%)),
    url("../marchlands/marchlands-mark.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover, 70px;
}
.faction-visual-placeholder::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px dashed rgb(234 216 170 / 32%);
}
.faction-visual-placeholder p { position: relative; max-width: 24ch; margin: 4.2rem 0 0; color: var(--muted); font-size: .9rem; }
.faction-forest { background-color: #132018; }
.faction-samurai { background-color: #201817; }
.faction-card-copy { padding: 1.2rem; }
.faction-card-copy > p { color: var(--muted); }
.faction-heading { display: grid; align-content: start; gap: .7rem; margin-bottom: .9rem; }
.faction-heading h3 { margin: 0; font-size: 1.15rem; }
.faction-card-copy { display: flex; flex-direction: column; flex: 1; }
.faction-card { display: flex; flex-direction: column; }
.faction-card-copy > p { margin: 0 0 1rem; }
.status-pill {
  width: fit-content;
  padding: .28rem .55rem;
  border: 1px solid currentColor;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.faction-asset-gaps { display: grid; grid-template-columns: 1fr; gap: .5rem; margin-top: auto; }
.faction-asset-gaps div { min-height: 44px; display: grid; place-items: center; padding: .7rem; border: 1px dashed rgb(234 216 170 / 30%); background: rgb(8 11 10 / 56%); text-align: center; }
.faction-asset-gaps span { color: #b8b9b2; font-size: .76rem; line-height: 1.35; }

.status-table { width: 100%; border-collapse: collapse; background: rgb(255 255 255 / 3%); }
.status-table th, .status-table td { padding: 1rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.status-table th { color: var(--parchment); font-family: "Cinzel", serif; }
.status-now { color: #a9d6a5; font-weight: 750; }
.status-work { color: #f1cf78; font-weight: 750; }
.status-plan { color: #b9c7d8; font-weight: 750; }

.form-shell { width: min(100%, 760px); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label, fieldset legend { color: var(--parchment); font-weight: 750; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 48px;
  padding: .75rem;
  border: 1px solid rgb(234 216 170 / 38%);
  border-radius: 0;
  color: var(--white);
  background: #0c100e;
}
.field textarea { min-height: 150px; resize: vertical; }
.consent { display: flex; align-items: flex-start; gap: .65rem; color: var(--muted); font-size: .92rem; }
.consent input { width: 1.1rem; height: 1.1rem; margin-top: .25rem; }
.form-note, .form-status { color: var(--muted); font-size: .9rem; }
.form-status { min-height: 1.5em; }

.legal { max-width: 820px; }
.legal h2 { margin-top: 2.6rem; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.legal p, .legal li { color: var(--muted); }

.site-footer { padding: 3rem 1rem; border-top: 1px solid var(--line); background: #060806; }
.footer-inner { width: min(100%, var(--content)); margin-inline: auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer p, .site-footer a { color: var(--muted); }
.footer-links { display: grid; align-content: start; gap: .45rem; }
.footer-links a { text-decoration: none; }
.legal-line { width: min(100%, var(--content)); margin: 2rem auto 0; padding-top: 1rem; border-top: 1px solid var(--line); color: #8e918b; font-size: .82rem; }

@media (max-width: 1100px) {
  .faction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    inset: 74px 0 auto;
    display: none;
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    background: #080b0a;
  }
  .nav-links.is-open { display: flex; }
  .language-links { position: static; margin-top: .5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-hero-copy, .studio-feature { grid-template-columns: 1fr; }
  .studio-hero-copy .button-row { flex-direction: row; }
  .hero-copy { grid-template-columns: 1fr; }
  .proof-strip, .grid-3, .fact-grid { grid-template-columns: 1fr; }
  .proof-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .story-card, .story-card:nth-child(even) { grid-template-columns: 1fr; }
  .story-card:nth-child(even) figure { order: 0; }
  .gallery figure, .gallery figure:nth-child(1), .gallery figure:nth-child(2) { grid-column: span 12; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand img { width: 164px; height: 64px; }
  .hero-heading { grid-area: auto; padding-top: 1.2rem; }
  .hero-heading h1 { font-size: clamp(1.8rem, 8.5vw, 2.6rem); }
  .hero-heading .kicker { font-size: .65rem; }
  .hero-copy { padding-top: 1rem; }
  .hero-copy .lead { font-size: 1.05rem; }
  .hero-copy .status-line { margin-top: .4rem; }
  .faction-grid { grid-template-columns: 1fr; }
  .button-row, .button { width: 100%; }
  .grid-2, .form-grid { grid-template-columns: 1fr; }
  .faction-heading { display: grid; }
  .status-pill { width: fit-content; }
  .faction-asset-gaps { grid-template-columns: 1fr; }
  .status-table, .status-table tbody, .status-table tr, .status-table th, .status-table td { display: block; width: 100%; }
  .status-table tr { border: 1px solid var(--line); }
  .status-table th, .status-table td { border: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.hero-message { margin: 0 0 .7rem; font-size: clamp(1.35rem, 2.3vw, 2rem); color: var(--gold); }
.trailer-frame iframe { border: 0; }
.trailer-play { position: relative; display: grid; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #020302; color: white; cursor: pointer; place-items: center; }
.trailer-play img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; }
.trailer-play-label { position: absolute; bottom: 6%; max-width: 90%; padding: .85rem 1.4rem; border: 1px solid var(--gold); border-radius: .3rem; background: #101b18; font: inherit; font-weight: 700; }
.trailer-play-label span { margin-right: .5rem; color: var(--gold); }
.trailer-play:hover .trailer-play-label { background: #253b30; }
.trailer-play:focus-visible { outline: 3px solid var(--gold); outline-offset: -5px; }
.trailer-privacy { margin: 1rem 0 .4rem; font-size: .85rem; }
.trailer-external { font-size: .9rem; }
