/* ==========================================================================
   Voltrumite Empire — Imperial Chancery in Exile
   Black and gold.
   ========================================================================== */

:root {
  --black: #050505;
  --ink: #0b0a08;
  --panel: #12100c;
  --panel-2: #181510;
  --line: rgba(201, 161, 74, 0.28);
  --line-strong: rgba(201, 161, 74, 0.6);
  --gold: #c9a14a;
  --gold-bright: #e9cf8b;
  --gold-deep: #9c7a2f;
  --text: #ddd5c4;
  --text-muted: #a69d8a;
  --gold-grad: linear-gradient(135deg, #f1dc9f 0%, #c9a14a 45%, #9c7a2f 70%, #e2c47c 100%);
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif: "EB Garamond", Garamond, Georgia, serif;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 2px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* The emblem artwork sits on black; let it melt into the page. */
.brand img, .emblem, .footer-brand img { mix-blend-mode: lighten; }

a { color: var(--gold-bright); text-decoration: none; transition: color .2s ease; }
a:hover { color: #fff3cf; }

::selection { background: var(--gold); color: var(--black); }

:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--black); padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.2;
  color: var(--gold-bright);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: .1em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; }

p { margin: 0 0 1.1em; }

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--display);
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: .7rem;
}
.eyebrow::before,
.eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--gold); opacity: .6; }

.lead { font-size: clamp(1.2rem, 2vw, 1.4rem); color: var(--text); }
.muted { color: var(--text-muted); }
.center { text-align: center; }
strong { color: #f2e6c6; font-weight: 600; }

/* ---------- Official banner strip ---------- */

.gov-strip {
  background: #000;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.gov-strip .container { display: flex; justify-content: space-between; gap: 1rem; padding-top: .5rem; padding-bottom: .5rem; }
.gov-strip span:last-child { color: var(--gold); }
@media (max-width: 700px) { .gov-strip span:last-child { display: none; } }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 5, 5, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: .9rem; color: inherit; }
.brand img { width: 46px; height: 46px; }
.brand-name {
  font-family: var(--display); font-size: 1.05rem; letter-spacing: .24em;
  color: var(--gold-bright); line-height: 1.15; display: block;
}
.brand-sub {
  font-family: var(--display); font-size: .62rem; letter-spacing: .26em;
  color: var(--text-muted); text-transform: uppercase; display: block;
}

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; }
.nav a {
  font-family: var(--display); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text); padding: .4rem 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--gold); transform: scaleX(0); transition: transform .25s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-bright); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong); color: var(--gold);
  width: 44px; height: 44px; cursor: pointer; border-radius: var(--radius);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 1px; background: var(--gold); margin: 0 auto; position: relative;
  transition: transform .25s ease, background .25s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; background: rgba(5,5,5,.98);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav-open .nav { max-height: 80vh; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1.25rem; }
  .nav li { border-bottom: 1px solid rgba(201,161,74,.12); }
  .nav a { display: block; padding: 1rem 0; }
  .nav a::after { display: none; }
}
@media (max-width: 420px) {
  .brand-sub { display: none; }
  .brand-name { font-size: .92rem; letter-spacing: .18em; }
}

/* ---------- Hero ---------- */

.hero { position: relative; background: #000; border-bottom: 1px solid var(--line); }
.hero-banner { width: 100%; height: auto; aspect-ratio: 2056 / 765; }
.hero-body { text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-body .lead { max-width: 720px; margin: 0 auto 2rem; color: var(--text); }
.motto {
  font-family: var(--display); letter-spacing: .4em; font-size: .85rem; color: var(--gold);
  text-transform: uppercase; margin-bottom: 1.4rem;
}

.page-hero {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 120%, rgba(201,161,74,.22), transparent 70%),
    linear-gradient(180deg, #000 0%, #070605 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 20%, rgba(255,240,200,.7), transparent),
    radial-gradient(1px 1px at 28% 65%, rgba(255,240,200,.5), transparent),
    radial-gradient(1px 1px at 46% 30%, rgba(255,240,200,.6), transparent),
    radial-gradient(1.5px 1.5px at 63% 18%, rgba(255,240,200,.8), transparent),
    radial-gradient(1px 1px at 78% 55%, rgba(255,240,200,.5), transparent),
    radial-gradient(1px 1px at 88% 25%, rgba(255,240,200,.6), transparent),
    radial-gradient(1px 1px at 8% 80%, rgba(255,240,200,.4), transparent),
    radial-gradient(1px 1px at 92% 82%, rgba(255,240,200,.4), transparent),
    radial-gradient(1px 1px at 55% 85%, rgba(255,240,200,.3), transparent);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero .lead { max-width: 720px; margin: 0 auto; color: var(--text-muted); }
.page-hero .emblem { width: 76px; height: 76px; margin: 0 auto 1.5rem; }

/* ---------- Buttons ---------- */

.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--display); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  padding: 1rem 1.8rem; border: 1px solid var(--gold); color: var(--gold-bright);
  background: transparent; cursor: pointer; border-radius: var(--radius);
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn:hover { background: rgba(201,161,74,.1); color: #fff3cf; box-shadow: 0 0 24px rgba(201,161,74,.18); }
.btn-solid { background: var(--gold-grad); color: #120e05; border-color: transparent; font-weight: 600; }
.btn-solid:hover { color: #000; background: var(--gold-grad); filter: brightness(1.08); }

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); }
.section-head p { color: var(--text-muted); }

.rule {
  display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 2rem auto; max-width: 420px;
  color: var(--gold);
}
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.rule::after { background: linear-gradient(90deg, var(--gold), transparent); }
.rule svg { width: 18px; height: 18px; flex: none; }

/* ---------- Stats ---------- */

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); background: var(--panel);
}
.stat { padding: 2rem 1.5rem; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-value {
  font-family: var(--display); font-size: clamp(1.8rem, 3.5vw, 2.5rem); line-height: 1.1;
  margin-bottom: .5rem; display: block;
}
.stat-label { font-size: .98rem; color: var(--text-muted); line-height: 1.45; }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}

/* ---------- Two-column prose ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split-wide { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 860px) { .split, .split-wide { grid-template-columns: 1fr; } }

.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 2rem; }

/* ---------- Cards ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.card {
  position: relative; display: block;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); padding: 2rem 1.75rem; color: var(--text);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.card::before {
  content: ""; position: absolute; top: -1px; left: 1.75rem; width: 40px; height: 2px; background: var(--gold);
}
a.card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,.6), 0 0 30px rgba(201,161,74,.07); color: var(--text); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1rem; }
.card .more {
  font-family: var(--display); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.card-num { font-family: var(--display); font-size: .72rem; letter-spacing: .3em; color: var(--gold); margin-bottom: 1rem; display: block; }

/* ---------- Quote ---------- */

.quote {
  text-align: center; max-width: 820px; margin: 0 auto; padding: 0 var(--gutter);
}
.quote blockquote {
  margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); font-style: italic; line-height: 1.45; color: #f0e3bf;
}
.quote cite {
  display: block; margin-top: 1.4rem; font-style: normal; font-family: var(--display);
  font-size: .75rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold);
}

.pull {
  border-left: 2px solid var(--gold); padding: .3rem 0 .3rem 1.5rem; margin: 2rem 0;
  font-style: italic; font-size: 1.3rem; color: #f0e3bf;
}

/* ---------- Notices ---------- */

.notices { display: grid; gap: 0; border-top: 1px solid var(--line); }
.notice {
  display: grid; grid-template-columns: 180px 1fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line);
}
.notice-meta { font-family: var(--display); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); line-height: 1.8; }
.notice-meta span { display: block; color: var(--text-muted); }
.notice h3 { margin-bottom: .5rem; }
.notice p { color: var(--text-muted); margin: 0; }
@media (max-width: 680px) { .notice { grid-template-columns: 1fr; gap: .75rem; } }

/* ---------- Fact table ---------- */

.facts { width: 100%; border-collapse: collapse; border: 1px solid var(--line); background: var(--panel); }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th {
  width: 36%; font-family: var(--display); font-weight: 500; font-size: .75rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); background: rgba(201,161,74,.04);
}
.facts td { font-size: 1.05rem; }
@media (max-width: 520px) {
  .facts, .facts tbody, .facts tr, .facts th, .facts td { display: block; width: 100%; }
  .facts th { border-bottom: 0; padding-bottom: .2rem; background: none; }
}

/* ---------- Timeline ---------- */

.timeline { position: relative; max-width: 900px; margin: 0 auto; padding-left: 2.5rem; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: .5rem; bottom: .5rem; width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold) 6%, var(--gold) 94%, transparent);
}
.era { position: relative; padding-bottom: 3rem; }
.era:last-child { padding-bottom: 0; }
.era::before {
  content: ""; position: absolute; left: calc(-2.5rem + 3px); top: .45rem; width: 13px; height: 13px;
  background: var(--black); border: 1px solid var(--gold); transform: rotate(45deg);
}
.era.key::before { background: var(--gold); box-shadow: 0 0 14px rgba(201,161,74,.6); }
.era-label {
  font-family: var(--display); font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
  display: block; margin-bottom: .4rem;
}
.era h3 { font-size: 1.45rem; }
.era p { color: var(--text); }
.era p.muted { color: var(--text-muted); }

.era-divider {
  font-family: var(--display); letter-spacing: .32em; text-transform: uppercase; font-size: .85rem;
  color: var(--gold-bright); padding: 1rem 0 2.5rem; position: relative;
}

/* ---------- Regalia ---------- */

.regalia { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 760px) { .regalia { grid-template-columns: 1fr; } }
.regalia .card { padding: 2.5rem 2rem; }
.regalia-icon { width: 56px; height: 56px; margin-bottom: 1.4rem; color: var(--gold); }
.regalia .card p { color: var(--text); }
.tag {
  display: inline-block; font-family: var(--display); font-size: .65rem; letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid var(--line-strong); color: var(--gold); padding: .3rem .7rem; margin: 0 .4rem .4rem 0;
}

.feature {
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  border: 1px solid var(--line); background: var(--panel); padding: clamp(1.75rem, 4vw, 3rem);
}
.feature-art { display: flex; align-items: center; justify-content: center; }
.feature-art svg { width: 100%; max-width: 260px; height: auto; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } }

/* ---------- Letter ---------- */

.letter {
  max-width: 820px; margin: 0 auto; background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); padding: clamp(2rem, 6vw, 4rem); position: relative;
}
.letter::before, .letter::after {
  content: ""; position: absolute; width: 36px; height: 36px; border: 1px solid var(--gold);
}
.letter::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.letter::after { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.letter p { font-size: 1.2rem; }
.signature { margin-top: 2.5rem; font-family: var(--display); letter-spacing: .2em; color: var(--gold-bright); }
.signature span { display: block; font-size: .75rem; letter-spacing: .26em; color: var(--text-muted); text-transform: uppercase; margin-top: .3rem; }

/* ---------- Forms ---------- */

.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field label {
  display: block; font-family: var(--display); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .5rem;
}
.field input, .field select, .field textarea {
  width: 100%; background: #0d0c09; border: 1px solid var(--line); color: var(--text);
  font-family: var(--serif); font-size: 1.1rem; padding: .85rem 1rem; border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field select { appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,161,74,.15);
}
.check { display: flex; gap: .75rem; align-items: flex-start; font-size: 1rem; color: var(--text-muted); }
.check input { margin-top: .35rem; accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
.hidden { position: absolute; left: -9999px; }

.panel { border: 1px solid var(--line); background: var(--panel); padding: clamp(1.75rem, 4vw, 2.75rem); }
.panel h3 { margin-top: 0; }

.list-star { list-style: none; padding: 0; margin: 0 0 1.2em; }
.list-star li { position: relative; padding-left: 1.6rem; margin-bottom: .7rem; }
.list-star li::before {
  content: "✦"; position: absolute; left: 0; top: 0; color: var(--gold); font-size: .85rem;
}

/* ---------- Footer ---------- */

.site-footer { background: #000; border-top: 1px solid var(--line); padding: 4rem 0 2rem; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { width: 64px; height: 64px; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); max-width: 380px; }
.site-footer h4 { color: var(--gold); font-size: .75rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer li a { color: var(--text-muted); }
.site-footer li a:hover { color: var(--gold-bright); }
.footer-base {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(201,161,74,.15);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-family: var(--display); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted);
}

/* ---------- Reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
