:root {
  --bg: #071010;
  --bg-2: #0d1514;
  --panel: rgba(10, 17, 17, 0.88);
  --panel-2: rgba(18, 25, 23, 0.78);
  --line: rgba(202, 181, 124, 0.28);
  --line-soft: rgba(231, 220, 194, 0.14);
  --text: #efe7d4;
  --muted: rgba(239, 231, 212, 0.76);
  --soft: rgba(239, 231, 212, 0.58);
  --gold: #d5a33d;
  --gold-2: #f0c86a;
  --blue: #173454;
  --max: 1220px;
  --radius: 4px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  --media-max-height: min(60svh, calc(100svh - 160px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, #071010 0%, #0e1513 34%, #071010 100%);
  background-size: 72px 72px, auto;
  color: var(--text);
  font-family: "Trebuchet MS", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 14%, rgba(37, 69, 75, 0.28), transparent 34rem),
    radial-gradient(circle at 8% 0%, rgba(213, 163, 61, 0.07), transparent 20rem);
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 19px 0;
}

.site-header::after {
  content: "";
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(4, 9, 9, 0.72);
  border-bottom: 1px solid rgba(213, 163, 61, 0.22);
  backdrop-filter: blur(10px);
}

.brand,
.nav-links,
.header-actions,
.hero-actions,
.mini-features,
.step-head,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  justify-self: start;
  color: #f5eee0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.brand img {
  width: 31px;
  height: 31px;
  border-radius: 2px;
}

.nav-links {
  justify-content: center;
  gap: clamp(18px, 3vw, 36px);
  color: rgba(239, 231, 212, 0.84);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.header-actions {
  justify-self: end;
  gap: 12px;
}

.header-cta,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-cta {
  padding: 0 18px;
  border: 1px solid rgba(213, 163, 61, 0.8);
  background: rgba(8, 16, 16, 0.72);
}

.header-cta svg,
.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid rgba(213, 163, 61, 0.22);
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: -3;
  background: url("assets/screenshots/kingdom-army-hero.webp") center 48% / cover no-repeat;
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 16, 16, 0.94) 0%, rgba(7, 16, 16, 0.75) 34%, rgba(7, 16, 16, 0.24) 74%),
    linear-gradient(180deg, rgba(7, 16, 16, 0.14) 0%, rgba(7, 16, 16, 0.18) 62%, #071010 100%);
}

.hero-inner {
  width: min(var(--max), calc(100% - 44px));
  min-height: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding-top: 68px;
}

.hero-copy {
  max-width: 560px;
  padding-top: 22px;
}

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

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: #fff3dd;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(4rem, 9vw, 7.8rem);
  text-transform: uppercase;
  text-shadow: 0 5px 28px rgba(0, 0, 0, 0.52);
}

h2 {
  font-size: clamp(2.25rem, 4.4vw, 4rem);
  text-transform: uppercase;
}

h3 {
  font-size: 1.55rem;
}

.tagline {
  margin-bottom: 22px;
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 800;
}

.hero-lede {
  max-width: 525px;
  margin-bottom: 28px;
  color: rgba(255, 248, 232, 0.92);
  font-size: 1.02rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-width: 190px;
  padding: 0 18px;
  border: 1px solid transparent;
}

.button.primary {
  color: #2a1a06;
  background: linear-gradient(180deg, #edc364, #b7822d);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.button.secondary {
  color: #fff7e7;
  border-color: rgba(239, 231, 212, 0.38);
  background: rgba(4, 9, 9, 0.54);
}

.button-mark,
.feature-icon,
.mini-icon {
  display: inline-block;
  position: relative;
  flex: 0 0 auto;
}

.button-mark {
  width: 18px;
  height: 14px;
}

.button-mark::before,
.button-mark::after {
  content: "";
  position: absolute;
  left: 6px;
  background: currentColor;
}

.button-mark::before {
  top: 1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.button-mark::after {
  top: 8px;
  width: 16px;
  height: 7px;
  left: 1px;
  border-radius: 10px 10px 2px 2px;
  background: currentColor;
}

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

section[id] {
  scroll-margin-top: 86px;
}

.perspective-section {
  padding: 26px 0 18px;
}

.perspective-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.perspective-card,
.crossover,
.features,
.gallery,
.status-panel,
.roadmap-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    var(--panel);
  box-shadow: var(--shadow);
}

.perspective-card {
  position: relative;
  min-width: 0;
  padding: 0 0 18px;
}

.label-tab {
  position: relative;
  padding: 9px 15px 8px;
  background: linear-gradient(180deg, #1c436b, #102842);
  color: #fff8e5;
  border-right: 1px solid rgba(213, 163, 61, 0.45);
  border-bottom: 1px solid rgba(213, 163, 61, 0.45);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.perspective-card figure {
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: #050808;
}

.perspective-card img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: var(--media-max-height);
  margin-inline: auto;
  object-fit: contain;
}

.card-copy {
  max-width: 470px;
  margin: 0 auto;
  padding: 20px 18px 10px;
  text-align: center;
}

.card-copy h3 {
  margin-bottom: 10px;
  color: var(--gold-2);
}

.card-copy p,
.crossover p,
.feature-grid p,
.development p,
.development li,
.join p,
.site-footer p {
  color: var(--muted);
  font-size: 0.93rem;
}

.mini-features {
  justify-content: space-around;
  gap: 10px;
  padding: 8px 18px 0;
  color: rgba(239, 231, 212, 0.82);
  text-align: center;
  font-size: 0.75rem;
}

.mini-features span {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon-line,
.mini-icon svg,
.feature-icon svg,
.status-icon,
.arrow svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(213, 163, 61, 0.5);
  border-radius: 50%;
  color: var(--gold);
}

.mini-icon svg {
  width: 19px;
  height: 19px;
}

.crossover {
  margin-top: 18px;
  padding: 24px;
}

.section-title {
  text-align: center;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.section-title h2::before,
.section-title h2::after {
  content: "";
  position: absolute;
  top: 50%;
  width: min(210px, 24vw);
  height: 1px;
  background: rgba(213, 163, 61, 0.34);
}

.section-title h2::before {
  right: calc(100% + 18px);
}

.section-title h2::after {
  left: calc(100% + 18px);
}

.section-title p {
  margin-bottom: 22px;
  color: var(--muted);
}

.crossover-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}

.crossover-grid article {
  display: grid;
  grid-template-columns: 1fr 128px;
  gap: 16px;
  align-items: end;
  min-height: 118px;
  border-left: 1px solid rgba(213, 163, 61, 0.38);
  padding-left: 18px;
}

.step-head {
  gap: 12px;
  grid-column: 1 / -1;
}

.step-head span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 800;
}

.step-head h3 {
  margin: 0;
  color: var(--gold-2);
  font-size: 1.05rem;
  text-transform: uppercase;
}

.crossover-grid p {
  margin: 0;
  font-size: 0.82rem;
}

.crossover-grid img {
  width: 128px;
  height: 72px;
  object-fit: cover;
  border: 1px solid var(--line-soft);
}

.arrow {
  color: rgba(239, 231, 212, 0.82);
}

.arrow.gold {
  color: var(--gold);
}

.arrow svg {
  width: 34px;
  height: 34px;
  stroke-width: 2.2;
}

.crossover-line {
  margin: 24px 0 0;
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
}

.features,
.gallery {
  margin-top: 20px;
  padding: 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--line-soft);
}

.feature-grid article {
  min-width: 0;
  padding: 22px 16px 20px;
  border-right: 1px solid var(--line-soft);
}

.feature-grid article:last-child {
  border-right: 0;
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  color: var(--gold);
}

.feature-icon svg {
  width: 44px;
  height: 44px;
  stroke-width: 1.3;
}

.feature-grid h3 {
  margin-bottom: 12px;
  font-size: 1.08rem;
  text-transform: uppercase;
}

.feature-grid p {
  margin-bottom: 0;
  font-size: 0.84rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.gallery-grid figure {
  margin: 0;
}

.gallery-grid figure.expandable img {
  cursor: zoom-in;
  transition: border-color 160ms ease, filter 160ms ease, transform 160ms ease;
}

.gallery-grid figure.expandable img:hover,
.gallery-grid figure.expandable img:focus-visible {
  border-color: rgba(240, 200, 106, 0.9);
  filter: brightness(1.14);
  outline: none;
  transform: translateY(-1px);
}

.gallery-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 125 / 74;
  object-fit: contain;
  background: #101719;
  border: 1px solid var(--line-soft);
}

.gallery-grid figcaption {
  padding-top: 8px;
  color: rgba(239, 231, 212, 0.82);
  font-size: 0.78rem;
  text-align: center;
}

.gallery-note {
  margin: 18px 0 0;
  color: var(--soft);
  font-size: 0.82rem;
  text-align: center;
}

.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  color: inherit;
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(46px, 0.12fr) minmax(0, 1fr) minmax(46px, 0.12fr);
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  padding: clamp(16px, 3vw, 38px);
  background:
    radial-gradient(circle at 50% 15%, rgba(37, 69, 75, 0.28), transparent 34rem),
    rgba(3, 7, 7, 0.92);
  backdrop-filter: blur(10px);
}

.lightbox:not([open]) {
  display: none;
}

.lightbox-frame {
  grid-column: 2;
  margin: 0;
  max-height: calc(100vh - 76px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border: 1px solid rgba(213, 163, 61, 0.42);
  background: rgba(5, 8, 8, 0.9);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.62);
}

.lightbox-frame img {
  width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  background: #030606;
}

.lightbox-frame figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 16px;
  border-top: 1px solid rgba(213, 163, 61, 0.24);
  color: var(--text);
  font-weight: 800;
}

.lightbox-counter {
  color: var(--soft);
  font-weight: 700;
}

.lightbox button {
  color: var(--text);
  border: 1px solid rgba(213, 163, 61, 0.42);
  background: rgba(8, 16, 16, 0.76);
  border-radius: var(--radius);
  cursor: pointer;
}

.lightbox button:hover,
.lightbox button:focus-visible {
  color: #2a1a06;
  background: linear-gradient(180deg, #edc364, #b7822d);
  outline: none;
}

.lightbox button svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox-close {
  position: absolute;
  top: clamp(14px, 2.5vw, 26px);
  right: clamp(14px, 2.5vw, 26px);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav {
  width: 52px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav.prev {
  grid-column: 1;
  justify-self: end;
}

.lightbox-nav.next {
  grid-column: 3;
  justify-self: start;
}

.development {
  display: grid;
  grid-template-columns: 0.52fr 1fr;
  gap: 0;
  margin-top: 20px;
}

.status-panel,
.roadmap-panel {
  padding: 24px 28px;
}

.status-panel {
  border-right: 0;
}

.development h2 {
  margin-bottom: 14px;
  font-size: 1.72rem;
}

.development h3 {
  color: var(--gold-2);
  font-size: 1.08rem;
}

.status-panel ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.status-panel li {
  display: flex;
  align-items: center;
  gap: 11px;
}

.status-icon {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  color: var(--gold);
}

.roadmap-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0 26px;
}

.roadmap-line::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 12px;
  height: 2px;
  background: rgba(213, 163, 61, 0.5);
}

.roadmap-line span {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  justify-self: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: #10201e;
}

.roadmap-line span:last-child {
  border-color: #6ea3d4;
}

.roadmap-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.roadmap-columns h3 {
  margin-bottom: 8px;
  color: #fff3dd;
  text-transform: uppercase;
}

.roadmap-columns ul {
  display: grid;
  gap: 7px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.roadmap-columns li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.84rem;
}

.roadmap-columns li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.roadmap-target {
  margin-bottom: 0;
  color: var(--gold-2);
  font-size: 0.88rem;
  font-weight: 800;
}

.roadmap-target.beyond {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.roadmap-status {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.roadmap-status.status-done {
  border: 1px solid rgba(127, 214, 160, 0.5);
  color: #8fd6a0;
}

.roadmap-status.status-partial {
  border: 1px solid rgba(213, 163, 61, 0.55);
  color: var(--gold-2);
}

.join {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  padding: 38px 20px 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 18% 100%, rgba(213, 120, 40, 0.16), transparent 46%),
    radial-gradient(ellipse at 84% 100%, rgba(213, 120, 40, 0.12), transparent 42%),
    linear-gradient(90deg, rgba(7, 16, 16, 0.94), rgba(7, 16, 16, 0.78), rgba(7, 16, 16, 0.94)),
    url("assets/screenshots/kingdom-army-hero.webp") center 72% / cover no-repeat;
}

.join-ornament {
  position: absolute;
  bottom: -12px;
  color: rgba(213, 163, 61, 0.4);
  pointer-events: none;
}

.join-ornament svg {
  height: 120px;
  width: auto;
}

.join-ornament.left {
  left: clamp(8px, 4vw, 60px);
  transform: rotate(-8deg);
}

.join-ornament.right {
  right: clamp(8px, 4vw, 60px);
  transform: rotate(6deg);
  color: rgba(35, 73, 111, 0.75);
}

@media (max-width: 820px) {
  .join-ornament {
    display: none;
  }
}

.join-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  text-align: center;
}

.join h2 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.join .hero-actions {
  justify-content: center;
  margin-top: 22px;
}

.site-footer {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 0 28px;
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff3dd;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem !important;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-brand img {
  border-radius: 2px;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  color: rgba(239, 231, 212, 0.72);
  transition: color 0.15s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--gold-2);
}

.footer-social svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.footer-legal {
  text-align: right;
}

.footer-legal p {
  color: var(--soft);
}

@media (max-width: 820px) {
  .footer-legal {
    text-align: left;
  }
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

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

  .feature-grid article {
    border-bottom: 1px solid var(--line-soft);
  }

  .feature-grid article:nth-child(3n) {
    border-right: 0;
  }

  .feature-grid article:nth-last-child(-n + 3) {
    border-bottom: 0;
  }
}

@media (max-width: 820px) {
  .site-header {
    width: min(100% - 28px, var(--max));
    padding: 14px 0;
  }

  .brand {
    font-size: 1.1rem;
  }

  .brand img {
    width: 27px;
    height: 27px;
  }

  .header-cta {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.72rem;
  }

  .hero,
  .hero-inner {
    min-height: 680px;
  }

  .hero-bg {
    background-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(7, 16, 16, 0.42), rgba(7, 16, 16, 0.88) 78%, #071010 100%),
      linear-gradient(90deg, rgba(7, 16, 16, 0.8), rgba(7, 16, 16, 0.34));
  }

  .hero-inner,
  .section,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .hero-inner {
    align-items: end;
    padding-bottom: 34px;
  }

  .hero-copy {
    padding-top: 80px;
  }

  h1 {
    font-size: clamp(2.8rem, 13.4vw, 4rem);
  }

  .perspective-grid,
  .development,
  .roadmap-columns {
    grid-template-columns: 1fr;
  }

  .status-panel {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

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

  .arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .arrow svg {
    width: 26px;
    height: 26px;
  }

  .crossover-grid article {
    grid-template-columns: 1fr 120px;
  }

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

@media (max-width: 560px) {
  .hero,
  .hero-inner {
    min-height: 645px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    min-width: 0;
  }

  .perspective-section {
    padding-top: 18px;
  }

  .perspective-card,
  .crossover,
  .features,
  .gallery,
  .status-panel,
  .roadmap-panel {
    box-shadow: none;
  }

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

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

  .feature-grid article,
  .feature-grid article:nth-child(3n) {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .feature-grid article:last-child {
    border-bottom: 0;
  }

  .section-title h2::before,
  .section-title h2::after {
    display: none;
  }

  .crossover,
  .features,
  .gallery,
  .status-panel,
  .roadmap-panel {
    padding: 20px 16px;
  }

  .crossover-grid article {
    grid-template-columns: 1fr;
  }

  .crossover-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .lightbox {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 58px 12px 16px;
  }

  .lightbox-frame {
    grid-column: 1 / -1;
    max-height: calc(100vh - 134px);
  }

  .lightbox-frame img {
    max-height: calc(100vh - 198px);
  }

  .lightbox-frame figcaption {
    flex-direction: column;
    gap: 4px;
    padding: 11px 12px;
    font-size: 0.86rem;
  }

  .lightbox-nav {
    grid-row: 2;
    width: 100%;
    height: 44px;
  }

  .lightbox-nav.prev {
    grid-column: 1;
    justify-self: stretch;
  }

  .lightbox-nav.next {
    grid-column: 2;
    justify-self: stretch;
  }
}

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

/* ─────────────────────────────────────────────────────────────────────────────
   Tabbed navigation, mobile menu, and accessibility basics.
   Appended after the original rules so the mobile overrides win on source order
   (the earlier `@media (max-width: 1040px) { .nav-links { display: none } }` has
   identical specificity).
   ───────────────────────────────────────────────────────────────────────────── */

.skip-link {
  position: absolute;
  z-index: 60;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: #071010;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: translateY(-160%);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
img[role="button"]:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
  border-radius: 2px;
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.16s ease;
}

.nav-links a:hover {
  color: #f7efdd;
}

.nav-links a[aria-current="page"] {
  color: var(--gold-2);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 2px;
  background: var(--gold);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(213, 163, 61, 0.8);
  border-radius: var(--radius);
  background: rgba(8, 16, 16, 0.72);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-toggle .nav-toggle-close,
body.nav-open .nav-toggle .nav-toggle-open {
  display: none;
}

body.nav-open .nav-toggle .nav-toggle-close {
  display: block;
}

/* Sub-page heading block — the fixed header is 72px tall and only the hero on Home
   clears it on its own. */
.page-head {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 132px 0 4px;
}

.page-head h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.page-head p {
  max-width: 62ch;
  margin: 10px 0 0;
  color: var(--muted);
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    z-index: 30;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 10px;
    border-bottom: 1px solid rgba(213, 163, 61, 0.28);
    background: rgba(4, 9, 9, 0.97);
    backdrop-filter: blur(10px);
  }

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

  .nav-links a {
    padding: 15px clamp(14px, 5vw, 22px);
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .nav-links a[aria-current="page"]::after {
    right: auto;
    bottom: auto;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
  }

  .page-head {
    padding-top: 108px;
  }
}

@media (max-width: 820px) {
  .nav-links {
    top: 62px;
  }

  .nav-toggle {
    width: 36px;
    height: 36px;
  }
}

/* ── Roadmap "you are here" marker ─────────────────────────────────────────── */
/* Sits near the end of the V1 column: V0 is fully complete and V1 (private
   beta) is nearly done, with the private-beta target not yet reached. */

.roadmap-here {
  position: absolute;
  z-index: 2;
  left: 62%;
  bottom: calc(100% + 12px);
  max-width: 250px;
  margin: 0;
  padding: 7px 12px 8px 14px;
  transform: translateX(-50%);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: #101f1d;
  color: var(--gold-2);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-align: center;
}

.roadmap-here::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 11px;
  height: 11px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  background: #101f1d;
}

.roadmap-line {
  margin-top: 92px;
}

.roadmap-progress {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border: 1px solid rgba(213, 163, 61, 0.55);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .roadmap-here {
    /* Becomes a grid item at this width, so span the full row above the nodes
       rather than sitting as a fourth column. */
    position: static;
    grid-column: 1 / -1;
    order: -1;
    max-width: none;
    margin: 0 0 18px;
    transform: none;
    text-align: left;
  }

  .roadmap-here::after {
    display: none;
  }

  .roadmap-line {
    margin-top: 18px;
  }
}

/* Current alpha media: preserve the complete gameplay HUD and native controls. */
.gameplay-film { margin: 0; min-width: 0; }
.gameplay-film video { display: block; width: auto; max-width: 100%; height: auto; max-height: var(--media-max-height); margin-inline: auto; object-fit: contain; background: #050808; border: 1px solid var(--line-soft); }
.gameplay-film figcaption { color: var(--muted); font-size: .88rem; padding: 12px 0; line-height: 1.6; }
.crossover > .gameplay-film { max-width: 1000px; margin: 0 auto; }
.crossover-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; max-width: 1000px; margin: 22px auto; }
.crossover-steps h3 { color: var(--gold-2); margin-bottom: 8px; }
.media-more { text-align: center; }
.media-more a { color: var(--gold-2); text-underline-offset: 4px; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.gameplay-recordings { padding: 28px; }
.gameplay-recordings > p { color: var(--muted); margin-bottom: 24px; }
.heraldry-section { margin-top: 42px; }
.heraldry-section > p { margin-bottom: 24px; }
.heraldry-section figure { margin: 24px 0; }
.heraldry-section img { display: block; width: auto; max-width: 100%; height: auto; max-height: var(--media-max-height); object-fit: contain; border: 1px solid var(--line-soft); }
.heraldry-section figcaption { color: var(--muted); font-size: .88rem; padding: 10px 0; }
.crest-sheet { max-width: 960px; }
@media (max-width: 700px) {
  .video-grid, .crossover-steps { grid-template-columns: 1fr; }
  .gameplay-recordings { padding: 18px; }
}
