/* The Ashen Crown — ashencrown.org. Static, no build step. Visual system: web/DESIGN.md */

@font-face {
  font-family: "Cormorant SC";
  src: url("fonts/CormorantSC-SemiBold-latin.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("fonts/AlegreyaSans-Regular-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("fonts/AlegreyaSans-Medium-latin.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("fonts/AlegreyaSans-Bold-latin.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  color-scheme: dark;
  /* ground: ash, warmed toward ember */
  --ash-950: #0d0a09;
  --ash-900: #140f0d;
  --ash-850: #1b1411;
  --ash-800: #241a15;
  --ash-700: #35271f;
  --ash-600: #4a372b;
  /* text */
  --bone: #efe2cc;
  --bone-dim: #c7b59b;
  --bone-faint: #9d8a72;
  /* metal and fire */
  --gold: #e2b25a;
  --gold-hi: #f6d58c;
  --gold-lo: #9c7330;
  --ember: #e8662c;
  --crimson: #7c1d1f;
  --crimson-deep: #4a1113;

  --serif: "Cormorant SC", "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Alegreya Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --measure: 66ch;
  --page: 1180px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: clamp(3.5rem, 8vw, 7rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --rule: linear-gradient(90deg, transparent, var(--gold-lo) 12%, var(--gold) 50%, var(--gold-lo) 88%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ash-900);
  color: var(--bone);
  font: 400 1.0625rem/1.65 var(--sans);
  letter-spacing: 0.005em;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; text-wrap: balance; font-variant-numeric: lining-nums; }
h2 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); color: var(--gold-hi); letter-spacing: 0.01em; }
h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); color: var(--gold-hi); }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--gold-hi); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: #fff1cf; }
::selection { background: var(--ember); color: var(--ash-950); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 2px; }
html { scrollbar-color: var(--ash-600) var(--ash-950); }

.sprite { display: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--gold); color: var(--ash-950); padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Buttons: forged gold plate. The primary action is the brightest object on every screen. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.7em 1.4em;
  font: 700 1.05rem/1 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: 3px;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out), box-shadow 220ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn__icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 220ms var(--ease-out); }
.btn--primary {
  color: #1d1006;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #c98f3a);
  border-color: #fbe3a6;
  box-shadow: 0 1px 0 rgba(255, 240, 200, 0.5) inset, 0 10px 28px -8px rgba(232, 102, 44, 0.65), 0 2px 6px rgba(0, 0, 0, 0.5);
  font-size: 1.15rem; min-height: 56px; padding: 0.8em 1.6em;
}
.btn--primary:hover { color: #1d1006; box-shadow: 0 1px 0 rgba(255, 240, 200, 0.6) inset, 0 14px 34px -8px rgba(232, 102, 44, 0.85), 0 2px 6px rgba(0, 0, 0, 0.5); transform: translateY(-1px); }
.btn--primary:hover .btn__icon { transform: translateX(3px); }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost { color: var(--bone); border-color: rgba(226, 178, 90, 0.55); background: rgba(13, 10, 9, 0.45); }
.btn--ghost:hover { color: var(--gold-hi); border-color: var(--gold-hi); background: rgba(13, 10, 9, 0.7); }
.btn--small { min-height: 38px; padding: 0.5em 0.95em; font-size: 0.85rem; color: #1d1006; background: var(--gold); border-color: var(--gold-hi); }
.btn--small:hover { color: #1d1006; background: var(--gold-hi); }

/* Top bar */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: var(--space-3);
  padding: 10px var(--gutter);
  background: rgba(13, 10, 9, 0.88);
  border-bottom: 1px solid rgba(226, 178, 90, 0.18);
}
.bar__home { display: inline-flex; align-items: center; gap: 10px; color: var(--bone); text-decoration: none; font: 600 1.15rem/1 var(--serif); letter-spacing: 0.02em; margin-right: auto; }
.bar__home img { border-radius: 4px; }
.bar__nav { display: flex; gap: clamp(1rem, 2.4vw, 2rem); }
.bar__nav a { color: var(--bone-dim); text-decoration: none; font-weight: 500; font-size: 0.98rem; padding: 6px 0; border-bottom: 1px solid transparent; }
.bar__nav a:hover { color: var(--gold-hi); border-bottom-color: var(--gold); }

/* Hero: the key art is the ground, copy sits in its dark sky */
.hero { position: relative; isolation: isolate; min-height: min(calc(100svh - 58px), 960px); display: grid; align-items: center; overflow: hidden; background: var(--ash-950); }
.hero__art { position: absolute; inset: 0; z-index: -2; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 28% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(270deg, rgba(13, 10, 9, 0.86) 0%, rgba(13, 10, 9, 0.62) 34%, rgba(13, 10, 9, 0) 62%),
    linear-gradient(0deg, var(--ash-900) 0%, rgba(20, 15, 13, 0) 22%);
}
.hero__copy {
  justify-self: end; width: min(560px, 46vw);
  margin-right: max(var(--gutter), calc((100vw - var(--page)) / 2));
  padding: var(--space-4) 0 var(--space-5);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero__logo { width: 100%; margin-bottom: var(--space-2); }
.hero__logo img { width: 100%; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.7)); }
.hero__tagline { font: 600 clamp(1.6rem, 1rem + 2vw, 2.5rem)/1.12 var(--serif); color: var(--bone); margin: 0 0 0.5rem; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }
.hero__tagline span { color: var(--gold-hi); display: inline-block; }
.hero__sub { color: var(--bone-dim); font-size: 1.1rem; margin-bottom: var(--space-3); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__platforms { margin: var(--space-2) 0 0; color: var(--bone-dim); font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* Runes + the forge */
.runes {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem);
  max-width: var(--page); margin: 0 auto; padding: var(--space-5) var(--gutter);
  align-items: start;
}
.runes__pitch { position: sticky; top: 96px; }
.runes__pitch h2 { margin-bottom: var(--space-3); }
.lede { font-size: 1.3rem; line-height: 1.55; color: var(--bone); }
.runes__pitch p { max-width: 46ch; color: var(--bone-dim); }
.runes__pitch .lede { color: var(--bone); }
.runes__hint { margin-top: var(--space-3); padding-top: var(--space-3); position: relative; color: var(--bone) !important; font-weight: 500; }
.runes__hint::before { content: ""; position: absolute; top: 0; left: 0; width: 120px; height: 1px; background: var(--rule); }

.forge {
  position: relative;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(232, 102, 44, 0.12), transparent 60%),
    linear-gradient(180deg, var(--ash-800), var(--ash-850));
  border: 1px solid rgba(226, 178, 90, 0.35);
  border-radius: 4px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.forge::before, .forge::after { content: ""; position: absolute; left: 50%; width: 12px; height: 12px; background: var(--gold); transform: translateX(-50%) rotate(45deg); }
.forge::before { top: -7px; }
.forge::after { bottom: -7px; }
.forge__tower { text-align: center; padding-bottom: var(--space-3); margin-bottom: var(--space-3); position: relative; }
.forge__tower::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 1px; background: var(--rule); }
.forge__name { font: 600 2rem/1 var(--serif); color: var(--gold-hi); margin: 0 0 0.35rem; }
.forge__name span { display: block; font: 500 0.85rem/1.4 var(--sans); color: var(--bone-faint); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.4rem; }
.forge__desc { color: var(--bone-dim); max-width: 40ch; margin: 0 auto var(--space-3); }
.forge__sockets { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: clamp(1.25rem, 4vw, 2.5rem); }
.socket {
  --fam: var(--ash-600);
  position: relative; width: 64px; height: 64px; padding: 0; cursor: pointer;
  background: radial-gradient(circle at 50% 40%, #0a0807, #1d1511 70%);
  border: 2px solid var(--gold-lo);
  transform: rotate(45deg);
  border-radius: 6px;
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(246, 213, 140, 0.15);
  transition: border-color 200ms var(--ease-out), box-shadow 320ms var(--ease-out), background-color 200ms;
}
.socket:disabled { cursor: default; }
.socket svg { width: 34px; height: 34px; margin: auto; transform: rotate(-45deg); fill: none; stroke: var(--fam); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px var(--fam)); }
.socket.is-filled { border-color: var(--fam); box-shadow: inset 0 0 18px -4px var(--fam), 0 6px 22px -6px var(--fam); }
.socket.is-filled:hover { border-color: var(--bone); }
.socket.is-new { animation: seat 520ms var(--ease-out); }
@keyframes seat {
  0% { transform: rotate(45deg) scale(1.25); box-shadow: inset 0 0 30px var(--fam), 0 0 40px var(--fam); }
  100% { transform: rotate(45deg) scale(1); }
}
.forge.is-resonant .socket.is-filled { animation: resonate 2.4s ease-in-out infinite; }
@keyframes resonate {
  0%, 100% { box-shadow: inset 0 0 18px -4px var(--fam), 0 6px 22px -6px var(--fam); }
  50% { box-shadow: inset 0 0 26px 0 var(--fam), 0 6px 34px 0 var(--fam); }
}

.forge__label { font: 500 0.85rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-faint); margin: 0 0 0.75rem; }
.bag { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.bag li { flex: 0 1 calc(25% - 6px); min-width: 0; }
.rune {
  width: 100%; height: 100%; display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; row-gap: 2px; align-items: center;
  text-align: left; padding: 10px 12px; cursor: pointer;
  background: rgba(13, 10, 9, 0.55); color: var(--bone);
  border: 1px solid rgba(226, 178, 90, 0.2); border-radius: 3px;
  font: inherit;
  transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.rune svg { width: 26px; height: 26px; fill: none; stroke: var(--fam); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rune__name { font: 700 1rem/1.1 var(--sans); color: var(--fam); }
.rune__id { display: none; }
.rune:hover:not(:disabled) { border-color: var(--fam); background: rgba(13, 10, 9, 0.85); }
.rune:active:not(:disabled) { transform: translateY(1px); }
.rune:disabled { opacity: 0.45; cursor: not-allowed; }
.forge:not(.is-live) .rune { cursor: default; }

.forge__readout { margin-top: var(--space-3); min-height: 7.5rem; }
.forge__status { font: 600 1.35rem/1.25 var(--serif); color: var(--bone); margin-bottom: 0.6rem; }
.forge__affixes { list-style: none; margin: 0 0 0.6rem; padding: 0; display: grid; gap: 6px; }
.forge__affixes li { font-size: 0.98rem; line-height: 1.45; color: var(--bone-dim); padding-left: 1.4rem; position: relative; }
.forge__affixes li::before { content: ""; position: absolute; left: 0.2rem; top: 0.55em; width: 7px; height: 7px; background: var(--fam, var(--gold)); transform: rotate(45deg); }
.forge__affixes b { color: var(--bone); font-weight: 700; }
.forge__resonance {
  margin: 0.8rem 0; padding: 0.9rem 1rem; border-radius: 3px;
  background: linear-gradient(90deg, rgba(232, 102, 44, 0.16), rgba(226, 178, 90, 0.06));
  border: 1px solid rgba(246, 213, 140, 0.45);
  color: var(--bone);
}
.forge__resonance b { font: 600 1.25rem/1.2 var(--serif); color: var(--gold-hi); display: block; margin-bottom: 0.2rem; }
.forge__reset { font: 500 0.95rem/1 var(--sans); color: var(--gold-hi); background: none; border: 0; padding: 10px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.25em; }
.forge__reset:hover { color: #fff1cf; }
.forge__note { margin: var(--space-3) 0 0; font-size: 0.85rem; color: var(--bone-faint); }

/* How it plays: three hanging banners at staggered heights */
.how { position: relative; padding: var(--space-5) var(--gutter); background: linear-gradient(180deg, var(--ash-900), var(--ash-950)); }
.how > h2 { text-align: center; margin-bottom: var(--space-4); }
.banners { list-style: none; margin: 0 auto; padding: 0; max-width: var(--page); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
.banner {
  position: relative;
  padding: 2.75rem clamp(1.25rem, 2.2vw, 2rem) 4.5rem;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.35)),
    linear-gradient(180deg, var(--crimson), var(--crimson-deep));
  color: #f4e6d0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), 50% 100%, 0 calc(100% - 34px));
  border-top: 6px solid var(--gold);
}
.banner:nth-child(2) { margin-top: clamp(0px, 4vw, 3.5rem); }
.banner:nth-child(3) { margin-top: clamp(0px, 1.5vw, 1.25rem); }
.banner::after { content: ""; position: absolute; left: 50%; bottom: 30px; width: 10px; height: 10px; background: var(--gold); transform: translateX(-50%) rotate(45deg); }
.banner__glyph { width: 44px; height: 44px; margin: 0 auto 1.1rem; fill: none; stroke: var(--gold-hi); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.banner h3 { text-align: center; margin-bottom: 0.9rem; }
.banner p { margin: 0; color: #ecdcc4; font-size: 1.02rem; line-height: 1.6; }

/* Muster roll: what ships, set as a ledger, not a stat wall */
.muster { padding: var(--space-5) var(--gutter); background: var(--ash-950); }
.muster__inner { max-width: 820px; margin: 0 auto; }
.muster h2 { text-align: center; margin-bottom: var(--space-4); }
.roll { list-style: none; margin: 0; padding: 0; }
.roll li { position: relative; padding: 0.95rem 0 0.95rem 2rem; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); line-height: 1.4; color: var(--bone-dim); border-bottom: 1px solid rgba(226, 178, 90, 0.16); }
.roll li::before { content: ""; position: absolute; left: 0.3rem; top: 1.45em; width: 9px; height: 9px; border: 1px solid var(--gold); transform: rotate(45deg); }
.roll b { font: 600 1.45em/1 var(--serif); color: var(--gold-hi); font-variant-numeric: lining-nums; }

/* Media */
.media { max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: var(--space-5) var(--gutter); }
.media > h2 { text-align: center; margin-bottom: var(--space-4); }
.trailer { margin-bottom: var(--space-4); }
.trailer__slot { margin: 0; position: relative; border: 1px solid rgba(226, 178, 90, 0.35); border-radius: 4px; overflow: hidden; background: var(--ash-950); aspect-ratio: 16 / 9; }
.trailer__slot img, .trailer__slot video { width: 100%; height: 100%; object-fit: cover; }
.trailer__slot--pending img { filter: saturate(0.85) brightness(0.55); }
.trailer__slot--pending figcaption { position: absolute; inset: auto 0 0 0; padding: 1.25rem; text-align: center; font: 600 clamp(1.2rem, 1rem + 1vw, 1.6rem)/1.2 var(--serif); color: var(--bone); background: linear-gradient(0deg, rgba(13, 10, 9, 0.92), rgba(13, 10, 9, 0)); }
.trailer__slot video { background: #000; }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 12px; list-style: none; margin: 0; padding: 0; }
.gallery .shot:nth-child(5n + 1) { grid-column: span 2; grid-row: span 2; }
.gallery--pending { display: block; padding: 2rem 1rem; text-align: center; color: var(--bone-faint); border: 1px dashed rgba(226, 178, 90, 0.3); border-radius: 4px; }
.gallery--pending p { margin: 0; }
.shot { margin: 0; }
.shot a { display: block; position: relative; overflow: hidden; border: 1px solid rgba(226, 178, 90, 0.25); border-radius: 3px; background: var(--ash-950); aspect-ratio: 16 / 9; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out), filter 300ms var(--ease-out); }
.shot a:hover img { transform: scale(1.03); filter: brightness(1.08); }
.shot a:hover { border-color: var(--gold); }

/* Roadmap */
.roadmap { max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) var(--space-5); }
.roadmap h2 { text-align: center; margin-bottom: var(--space-4); }
.roadmap figure { margin: 0; }
.roadmap picture img { border: 1px solid rgba(226, 178, 90, 0.35); border-radius: 4px; width: 100%; }
.stages { margin: var(--space-3) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); counter-reset: stage; }
.stages li { color: var(--bone-dim); font-size: 0.95rem; line-height: 1.5; }
.stages b { display: block; color: var(--gold-hi); font: 600 1.15rem/1.2 var(--serif); margin-bottom: 0.25rem; }

/* Close */
.close { position: relative; isolation: isolate; min-height: 520px; display: grid; place-items: center; text-align: center; padding: var(--space-5) var(--gutter); overflow: hidden; }
.close__art { position: absolute; inset: 0; z-index: -2; }
.close__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.close::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 50% 55%, rgba(13, 10, 9, 0.82), rgba(13, 10, 9, 0.4) 70%), linear-gradient(180deg, var(--ash-900), rgba(20, 15, 13, 0) 25%, rgba(20, 15, 13, 0) 75%, var(--ash-950)); }
.close__copy { max-width: 40rem; }
.close h2 { margin-bottom: var(--space-2); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9); }
.close p { color: var(--bone); font-size: 1.15rem; margin-bottom: var(--space-3); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9); }

/* Footer */
.foot { background: var(--ash-950); border-top: 1px solid rgba(226, 178, 90, 0.2); padding: var(--space-4) var(--gutter); }
.foot__inner { max-width: var(--page); margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-4); align-items: center; }
.foot__logo { width: 140px; }
.foot__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; justify-content: flex-end; }
.foot__links a { color: var(--bone-dim); text-decoration: none; padding: 8px 0; display: inline-block; }
.foot__links a:hover { color: var(--gold-hi); text-decoration: underline; }
.foot__legal { grid-column: 1 / -1; margin: var(--space-2) 0 0; color: var(--bone-faint); font-size: 0.88rem; }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 6, 5, 0.96); color: var(--bone); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in 260ms var(--ease-out); }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.6); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__frame { margin: 0; padding: 56px 72px; width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; gap: 12px; }
.lightbox__frame img { max-width: 100%; max-height: 100%; object-fit: contain; border: 1px solid rgba(226, 178, 90, 0.3); }
.lightbox__frame figcaption { color: var(--bone-dim); text-align: center; }
.lightbox__btn { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; color: var(--bone); background: rgba(36, 26, 21, 0.85); border: 1px solid rgba(226, 178, 90, 0.4); border-radius: 50%; cursor: pointer; }
.lightbox__btn:hover { color: var(--gold-hi); border-color: var(--gold-hi); }
.lightbox__btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__close { right: 12px; top: 12px; }

/* Prose pages (privacy, press kit) */
.page { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: var(--space-4) var(--gutter) var(--space-5); }
.page h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); color: var(--gold-hi); margin-bottom: var(--space-2); }
.page h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); margin: var(--space-4) 0 var(--space-2); }
.page h3 { font-size: 1.35rem; margin: var(--space-3) 0 0.5rem; }
.page p, .page li { color: var(--bone-dim); }
.page strong { color: var(--bone); }
.page ul { padding-left: 1.2rem; }
.page li { margin-bottom: 0.4rem; }
.page .meta { color: var(--bone-faint); font-size: 0.95rem; }
.page--wide { max-width: calc(var(--page) + 2 * var(--gutter)); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; margin: 0; }
.facts dt { color: var(--bone-faint); font-weight: 500; }
.facts dd { margin: 0; color: var(--bone); }
.downloads { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.downloads li { margin: 0; }
.downloads a { display: block; text-decoration: none; border: 1px solid rgba(226, 178, 90, 0.3); border-radius: 3px; overflow: hidden; background: var(--ash-850); color: var(--bone); }
.downloads a:hover { border-color: var(--gold); }
.downloads img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ash-950); }
.downloads img.contain { object-fit: contain; padding: 10px; }
.downloads span { display: block; padding: 10px 12px; font-size: 0.95rem; }
.downloads small { color: var(--bone-faint); display: block; }
.press-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }

/* Responsive */
/* The roadmap art carries its own text at desktop size; the list is its accessible twin. */
@media (min-width: 761px) {
  .stages { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 1000px) {
  .runes { grid-template-columns: 1fr; }
  .runes__pitch { position: static; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .runes__pitch p { max-width: var(--measure); }
  .banners { grid-template-columns: 1fr; max-width: 640px; }
  .banner:nth-child(n) { margin-top: 0; }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .press-split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .bar__nav { display: none; }
  .bag li { flex-basis: calc(33.333% - 6px); }
  .hero { min-height: 0; display: block; background: var(--ash-900); }
  .hero__art { position: relative; inset: auto; aspect-ratio: 4 / 3; }
  .hero__art img { object-position: 22% 50%; }
  .hero::before { inset: 0 0 auto 0; aspect-ratio: 4 / 3; background: linear-gradient(0deg, var(--ash-900) 0%, rgba(20, 15, 13, 0) 45%); }
  .hero__copy { width: auto; margin: -20vw var(--gutter) 0; padding: 0 0 var(--space-4); position: relative; }
  .hero__logo { width: min(86%, 380px); }
  .socket { width: 54px; height: 54px; }
  .socket svg { width: 28px; height: 28px; }
  .foot__inner { grid-template-columns: 1fr; justify-items: start; }
  .foot__links { justify-content: flex-start; }
  .lightbox__frame { padding: 64px 8px 80px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; transform: none; }
  .lightbox__prev { left: calc(50% - 64px); }
  .lightbox__next { right: calc(50% - 64px); }
  .facts { grid-template-columns: 1fr; gap: 0.1rem; }
  .facts dd { margin-bottom: 0.6rem; }
}
@media (max-width: 480px) {
  .bar__home span { display: none; }
  .bag li { flex-basis: calc(50% - 4px); }
  .rune { grid-template-columns: 22px 1fr; padding: 9px 10px; column-gap: 8px; }
  .rune svg { width: 22px; height: 22px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .shot:nth-child(n + 7) { display: none; }
  .gallery .shot:nth-child(5n + 1) { grid-column: auto; grid-row: auto; }
  .stages { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}

/* Reduced motion: no movement, no loops. Colour and glow changes stay, so a seated rune and a
   woken resonance still read as state changes. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .socket.is-new { animation: seat-calm 200ms linear; }
  .forge.is-resonant .socket.is-filled { animation: none; box-shadow: inset 0 0 26px 0 var(--fam), 0 6px 34px 0 var(--fam); }
  .btn--primary:hover, .btn--primary:active, .rune:active:not(:disabled), .shot a:hover img { transform: none; }
  .btn--primary:hover .btn__icon { transform: none; }
  .lightbox[open] { animation: none; }
}
@keyframes seat-calm { from { opacity: 0.4; } to { opacity: 1; } }
