/* Expansion Empire marketing page. Tokens are DESIGN.md's, unchanged: navy ground, brass rules, parchment type,
   gold for the next action. Georgia carries display and section headlines only; the condensed sans carries the rest. */
:root {
  --gold: #d7b774; --gold-hover: #ecd59e; --amber: #c99a45; --brass: #806b4b;
  --void: #071019; --navy: #0b1219; --panel: #111b24; --field: #111f29; --raised: #172632;
  --steel: #5a6d78; --steel-strong: #617582;
  --parchment: #eadfc8; --parchment-bright: #f5ecd8; --parchment-muted: #c5b896; --slate: #9daab2;
  --ink: #101820;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --head-h: 64px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); scrollbar-color: var(--brass) var(--void); }
body { margin: 0; background: var(--void); color: var(--parchment); font: 700 17px/1.55 var(--sans); letter-spacing: .2px; -webkit-font-smoothing: antialiased; }
::selection { background: var(--gold); color: var(--ink); }
::-webkit-scrollbar { width: 12px; } ::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--brass); border: 3px solid var(--void); border-radius: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }

h1, h2, h3 { font-family: var(--serif); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.05; letter-spacing: -.02em; font-weight: 800; }
h3 { font-size: 26px; line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1em; max-width: 62ch; text-wrap: pretty; }
.fine { font-size: 14px; color: var(--slate); max-width: 70ch; }

/* header */
.site-head { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head-h); display: flex; align-items: center; gap: 28px; padding: 0 clamp(16px, 3vw, 40px);
  background: rgba(7,16,25,.92); border-bottom: 1px solid var(--brass); box-shadow: 0 8px 28px rgba(0,0,0,.45); }
.brand { font: 800 21px/1 var(--serif); text-decoration: none; letter-spacing: -.3px; white-space: nowrap; }
.brand span, .hero h1 em { color: var(--gold); font-style: normal; }
.site-head nav { display: flex; gap: 22px; margin-left: auto; }
.site-head nav a { font: 800 12px/1 var(--sans); letter-spacing: 1px; text-transform: uppercase; text-decoration: none; color: var(--parchment-muted); padding: 12px 2px; }
.site-head nav a:hover { color: var(--parchment-bright); }

/* buttons: gold fill + ink text, 44px target, tight radius */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 3px; font: 800 14px/1 var(--sans);
  letter-spacing: .6px; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-ghost { background: var(--field); color: var(--parchment); border-color: var(--steel-strong); }
.btn-ghost:hover { background: #172b38; border-color: var(--gold); }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 17px; }

/* hero: the painted campaign art from the game's start screen */
.hero { position: relative; min-height: 66vh; display: grid; align-items: end; padding: calc(var(--head-h) + 48px) clamp(16px, 5vw, 80px) 56px;
  background: linear-gradient(180deg, rgba(7,16,25,.35) 0%, rgba(7,16,25,.15) 45%, var(--void) 100%), url("./media/hero-bg.webp") center / cover no-repeat; }
.hero-copy { max-width: 760px; }
.hero h1 { font-size: clamp(46px, 9vw, 112px); line-height: .9; letter-spacing: -.03em; font-weight: 800; margin-bottom: 24px; text-shadow: 0 6px 30px rgba(0,0,0,.6); }
.hero h1 span { color: var(--parchment-bright); }
.lede { font: 400 clamp(18px, 2vw, 23px)/1.5 var(--sans); color: var(--parchment); max-width: 46ch; margin-bottom: 28px; text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }

/* the three scales. Default = a plain stacked tour (works with no JS and on narrow screens).
   With JS on a wide viewport (.js, below) the same markup becomes a scroll-pinned zoom. */
.scales { position: relative; padding: 56px clamp(16px, 4vw, 44px); background: var(--void); border-top: 1px solid var(--brass); }
.stage-main { position: relative; width: 100%; max-width: 1200px; margin-inline: auto; }
.frame { display: grid; gap: 40px; }
.tier-shot { margin: 0; }
.tier-shot img { width: 100%; height: auto; border: 2px solid var(--brass); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.tier-shot figcaption { margin-top: 12px; font: 400 15px/1.45 var(--sans); color: var(--parchment-muted); }
.tier-shot figcaption b { color: var(--parchment-bright); font-weight: 800; }
.tier-copy { display: none; }
.scale-bar { margin-top: 28px; }
.scale-bar .chips { display: none; }
.scale-bar .note { margin: 0; font: 400 14px/1.4 var(--sans); color: var(--slate); max-width: 56ch; }
.chips { flex: none; display: flex; border: 2px solid var(--brass); background: var(--navy); border-radius: 4px; overflow: hidden; }
.chip { all: unset; box-sizing: border-box; cursor: pointer; padding: 9px 18px; min-height: 44px; display: inline-flex; align-items: center; font: 800 12px/1 var(--sans); letter-spacing: 1px; text-transform: uppercase; color: var(--parchment); }
.chip + .chip { border-left: 1px solid var(--steel); }
.chip:hover { background: var(--raised); }
.chip[aria-pressed="true"] { background: var(--parchment-bright); color: var(--ink); }
.chip:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }

@media (min-width: 900px) {
  .js .scales { height: 340vh; padding: 0; }
  .js .stage { position: sticky; top: 0; height: 100vh; display: grid; place-items: center;
    padding: calc(var(--head-h) + 16px) clamp(16px, 3vw, 44px) 20px; }
  .js .stage-main { width: min(100%, calc((100vh - var(--head-h) - 118px) * 16 / 9)); max-width: none; margin: 0; }
  .js .frame { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 2px solid var(--brass); background: var(--navy); box-shadow: 0 28px 70px rgba(0,0,0,.6); }
  .js .tier-shot { position: absolute; inset: 0; transition: opacity .7s var(--ease), transform .9s var(--ease); will-change: opacity, transform; }
  .js .tier-shot img { height: 100%; object-fit: cover; border: 0; box-shadow: none; }
  .js .tier-shot figcaption { display: none; }
  .js .tier-shot[data-state="ahead"] { opacity: 0; transform: scale(.9); }
  .js .tier-shot[data-state="on"] { opacity: 1; transform: none; }
  .js .tier-shot[data-state="passed"] { opacity: 0; transform: scale(1.12); }
  /* the claim rides on the capture like one of the game's own panels, over the clipped outliner edge */
  .js .tier-copy { display: block; position: absolute; z-index: 2; right: 2.2%; top: 13%; width: min(23rem, 36%); min-height: 12.5rem; padding: 18px 20px 14px;
    background: rgba(11,18,25,.95); border: 1px solid var(--brass); border-top: 3px solid var(--gold); box-shadow: 0 18px 44px rgba(0,0,0,.55); }
  .js .tier-copy article { position: absolute; inset: 18px 20px auto 20px; transition: opacity .6s var(--ease), transform .7s var(--ease); }
  .js .tier-copy article[data-state="ahead"] { opacity: 0; transform: translateY(14px); pointer-events: none; }
  .js .tier-copy article[data-state="passed"] { opacity: 0; transform: translateY(-14px); pointer-events: none; }
  .js .tier-copy article[data-state="on"] { opacity: 1; transform: none; }
  .js .tier-copy h3 { margin-bottom: 10px; font-size: clamp(22px, 1.9vw, 28px); }
  .js .tier-copy p { font-weight: 500; font-size: 16px; margin: 0; }
  .js .scale-bar { display: flex; align-items: center; gap: 24px; margin-top: 14px; }
  .js .scale-bar .chips { display: flex; }
}

/* split sections: capture + copy, alternating */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center;
  padding: clamp(64px, 11vw, 150px) clamp(16px, 5vw, 80px); border-top: 1px solid var(--brass); background: var(--navy); }
.split.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--void); }
.split.flip .shot { order: 2; }
.shot { margin: 0; }
.shot img { width: 100%; border: 2px solid var(--brass); box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.shot figcaption { margin-top: 12px; font: 400 14px/1.4 var(--sans); color: var(--slate); max-width: 60ch; }
.copy h2 { margin-bottom: 24px; }
.copy p, .eras-head p { font-weight: 500; }
.rule { font: 800 19px/1.4 var(--serif); color: var(--gold); border-top: 1px solid var(--brass); border-bottom: 1px solid var(--brass); padding: 16px 0; margin: 28px 0; max-width: 40ch; }
.list-label { margin-top: 28px; font-size: 22px; }
.list-label + .ruled { margin-top: 12px; }
.ruled { list-style: none; margin: 28px 0 0; padding: 0; max-width: 46ch; }
.ruled li { padding: 12px 0; border-top: 1px solid var(--steel); font: 700 16px/1.3 var(--sans); }
.ruled li:last-child { border-bottom: 1px solid var(--steel); }

/* eras: a ruled ledger, not cards */
.eras { padding: clamp(64px, 10vw, 130px) clamp(16px, 5vw, 80px); border-top: 1px solid var(--brass); background: var(--panel);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); }
.eras-head h2 { margin-bottom: 20px; }
.era-list { list-style: none; margin: 0; padding: 0; align-self: center; }
.era-list li { display: grid; grid-template-columns: 5.5rem 1fr auto; align-items: baseline; gap: 16px; padding: 13px 0; border-top: 1px solid var(--steel); font-variant-numeric: tabular-nums; }
.era-list li:last-child { border-bottom: 1px solid var(--steel); }
.era-list .yr { font: 800 26px/1 var(--serif); color: var(--gold); }
.era-list .nm { font: 700 18px/1.2 var(--sans); }
.era-list .code { font: 800 12px/1 var(--sans); letter-spacing: 1px; color: var(--slate); }

/* screens */
.screens { padding: clamp(64px, 10vw, 130px) clamp(16px, 5vw, 80px); border-top: 1px solid var(--brass); background: var(--navy); }
.screens h2 { margin-bottom: 8px; }
.screens-sub { color: var(--slate); font-weight: 400; margin-bottom: 36px; }
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.g { all: unset; box-sizing: border-box; cursor: zoom-in; position: relative; grid-column: span 2; border: 2px solid var(--brass); background: var(--void); overflow: hidden; }
.g-lg { grid-column: span 4; grid-row: span 2; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.g:hover img { transform: scale(1.03); }
.g span { position: absolute; left: 0; bottom: 0; padding: 8px 12px; background: rgba(7,16,25,.88); font: 800 12px/1 var(--sans); letter-spacing: 1px; text-transform: uppercase; }
.g:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.video-slot { margin: 56px 0 0; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.video-poster { aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 16px; text-align: center; font: 800 14px/1.3 var(--sans); letter-spacing: 1px; text-transform: uppercase; color: var(--parchment-muted); border: 2px dashed var(--steel-strong); background: var(--field); }
.video-slot figcaption { font: 400 16px/1.5 var(--sans); color: var(--parchment-muted); }

/* close */
.play { padding: clamp(72px, 12vw, 160px) clamp(16px, 5vw, 80px); border-top: 1px solid var(--brass); background: var(--void); text-align: center; display: grid; justify-items: center; }
.play h2 { margin-bottom: 18px; }
.play p { margin-inline: auto; }
.play .btn { margin: 14px 0 26px; }
.site-foot { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding: 22px clamp(16px, 5vw, 80px); border-top: 1px solid var(--brass); background: var(--navy); font: 400 13px/1.4 var(--sans); color: var(--slate); }

/* lightbox */
#lightbox { width: min(96vw, 1700px); max-height: 94vh; padding: 0; border: 2px solid var(--brass); background: var(--void); color: var(--parchment); }
#lightbox::backdrop { background: rgba(3,8,13,.88); }
#lightbox img { width: 100%; max-height: 82vh; object-fit: contain; }
#lightbox p { margin: 0; padding: 12px 16px; font: 400 15px/1.4 var(--sans); }
.lb-close { all: unset; cursor: pointer; position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center; font: 800 26px/1 var(--sans); background: var(--navy); border: 2px solid var(--brass); }
.lb-close:focus-visible { outline: 3px solid var(--gold); }

/* narrow screens */
@media (max-width: 899px) {
  .site-head nav { display: none; }
  .site-head .btn { margin-left: auto; }
  .split, .split.flip, .eras { grid-template-columns: minmax(0, 1fr); }
  .split.flip .shot { order: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .g, .g-lg { grid-column: span 2; grid-row: auto; }
  .g:not(.g-lg) { grid-column: span 1; }
  .g:last-child { grid-column: span 2; }
  .video-slot { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 70vh; }
}
@media (max-width: 480px) {
  .site-head { gap: 12px; }
  .brand { font-size: 17px; }
  .site-head .btn { padding: 8px 12px; font-size: 12px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001s !important; }
}

/* mods page */
.steps { margin: 0 0 1.2em; padding-left: 1.3em; font-weight: 500; max-width: 62ch; }
.steps li { margin-bottom: .7em; }
.steps b { color: var(--parchment-bright); }
code { font: 700 .92em/1 ui-monospace, "SFMono-Regular", Menlo, monospace; background: var(--field); border: 1px solid var(--brass); padding: 1px 5px; border-radius: 2px; color: var(--gold); overflow-wrap: anywhere; }
.play .btn + .btn { margin-left: 8px; margin-top: 8px; }
