:root {
  --ink: #0a0d0b;
  --ink-2: #0d110f;
  --panel: #121714;
  --panel-2: #171c18;
  --paper: #eee7da;
  --paper-dim: #d4cbbc;
  --muted: #9a9b8e;
  --faint: #6d7369;
  --gold: #d7a54c;
  --gold-soft: #e8cc95;
  --rust: #b45c3d;
  --green: #8ca88f;
  --line: rgba(238, 231, 218, 0.12);
  --line-strong: rgba(238, 231, 218, 0.22);
  --display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --body: "DM Sans", "Segoe UI", Arial, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 78% -8%, rgba(215, 165, 76, 0.08), transparent 30rem),
    var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3,
h4,
dl,
dd {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--gold);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

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

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

/* ------------------------------------------------------------------ */
/* Type and shared chrome                                             */
/* ------------------------------------------------------------------ */

.eyebrow,
.micro-label,
.section-kicker,
.page-meta,
.news-meta,
.hero-note,
.form-hint,
.faction-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.17em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--gold-soft);
}

.eyebrow-line {
  display: inline-block;
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.micro-label {
  color: var(--faint);
}

.section-kicker {
  margin-bottom: 18px;
  color: var(--gold);
}

.section {
  position: relative;
  padding: 112px 0;
  border-bottom: 1px solid var(--line);
}

.section-soft {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 45%),
    var(--ink-2);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 38px;
  margin-bottom: 48px;
}

.section-head-compact {
  align-items: center;
  margin-bottom: 28px;
}

.section-title,
.page-title {
  font-family: var(--display);
  font-size: clamp(52px, 7.3vw, 94px);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 0.88;
  text-transform: uppercase;
}

.section-title em,
.page-title em {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.48em;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.045em;
  text-transform: none;
}

.section-title-small {
  font-size: clamp(46px, 5.4vw, 72px);
}

.section-note {
  max-width: 260px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
  padding-bottom: 5px;
  color: var(--paper-dim);
  border-bottom: 1px solid var(--line-strong);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease;
}

.text-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.btn {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
  transition: transform 180ms var(--ease), background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

.btn-ghost {
  color: var(--paper);
  background: rgba(10, 13, 11, 0.2);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  color: var(--gold-soft);
  border-color: var(--gold);
}

.btn-wide {
  width: 100%;
}

.text-button {
  padding: 0;
  color: var(--muted);
  background: none;
  border: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.text-button:hover {
  color: var(--gold);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-stuck {
  background: rgba(8, 11, 9, 0.86);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.brand img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  color: var(--paper);
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 0.12em;
  line-height: 0.86;
  text-transform: uppercase;
}

.brand-meta {
  color: var(--faint);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links > a:not(.nav-play) {
  position: relative;
  padding: 12px 0;
  color: var(--muted);
  transition: color 180ms ease;
}

.nav-links > a:not(.nav-play)::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--ease);
}

.nav-links > a:not(.nav-play):hover,
.nav-links > a.is-active {
  color: var(--paper);
}

.nav-links > a:not(.nav-play):hover::after,
.nav-links > a.is-active::after {
  transform: scaleX(1);
}

.nav-play {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 11px 14px;
  color: var(--ink);
  background: var(--gold);
  border: 1px solid var(--gold);
  transition: background 180ms ease, color 180ms ease;
}

.nav-play:hover {
  color: var(--ink);
  background: var(--gold-soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 1px;
  margin: 5px 0;
  background: var(--paper);
  transition: transform 180ms ease, opacity 180ms ease;
}

/* ------------------------------------------------------------------ */
/* Home hero                                                          */
/* ------------------------------------------------------------------ */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 148px 0 94px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 78% 22%, rgba(215, 165, 76, 0.15), transparent 23rem),
    linear-gradient(90deg, rgba(8, 11, 9, 0.94) 0%, rgba(8, 11, 9, 0.58) 48%, rgba(8, 11, 9, 0.18) 100%);
  content: "";
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 24%;
  background: linear-gradient(180deg, transparent, var(--ink));
  content: "";
}

.hero-wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(238, 231, 218, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 231, 218, 0.04) 1px, transparent 1px);
  background-size: 100% 90px, 120px 100%;
  mask-image: linear-gradient(90deg, black, transparent 75%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.62fr);
  gap: clamp(44px, 7vw, 108px);
  align-items: end;
}

.hero-copy {
  max-width: 730px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  margin: 26px 0 27px;
  font-family: var(--display);
  font-size: clamp(82px, 11.2vw, 164px);
  font-weight: 400;
  letter-spacing: 0.018em;
  line-height: 0.76;
  text-transform: uppercase;
}

.hero-title span {
  display: block;
}

.hero-title em {
  display: block;
  margin-top: 0.12em;
  margin-left: 0.08em;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.42em;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.05;
  text-transform: none;
}

.hero-lede {
  max-width: 530px;
  color: var(--paper-dim);
  font-size: 15px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-note {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 20px;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(140, 168, 143, 0.08);
}

.dossier {
  position: relative;
  padding: 24px;
  overflow: hidden;
  background: rgba(13, 17, 14, 0.74);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.dossier::before,
.dossier::after {
  position: absolute;
  width: 17px;
  height: 17px;
  border-color: var(--gold);
  content: "";
  opacity: 0.65;
}

.dossier::before {
  top: 8px;
  left: 8px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.dossier::after {
  right: 8px;
  bottom: 8px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.dossier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dossier-state {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--green);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dossier-state i {
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
}

.dossier-title {
  margin: 25px 0 14px;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(54px, 5.4vw, 76px);
  letter-spacing: 0.06em;
  line-height: 0.72;
  text-transform: uppercase;
}

.dossier-copy {
  max-width: 230px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.dossier-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 23px 0 17px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.dossier-stats div {
  padding: 11px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dossier-stats dt {
  color: var(--faint);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.dossier-stats dd {
  margin-top: 3px;
  color: var(--paper-dim);
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.04em;
  line-height: 1;
}

.dossier-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 3px;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dossier-foot a {
  color: var(--gold-soft);
  transition: color 180ms ease;
}

.dossier-foot a:hover {
  color: var(--paper);
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--faint);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue span {
  width: 1px;
  height: 24px;
  background: var(--gold);
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.55); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ------------------------------------------------------------------ */
/* Marquee                                                            */
/* ------------------------------------------------------------------ */

.marquee {
  overflow: hidden;
  padding: 14px 0;
  color: var(--muted);
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  gap: 24px;
  align-items: center;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee-track i {
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
}

.marquee-track span {
  margin-right: 12px;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ------------------------------------------------------------------ */
/* Intro and principles                                               */
/* ------------------------------------------------------------------ */

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: clamp(38px, 8vw, 120px);
  align-items: start;
}

.intro-copy {
  max-width: 500px;
  padding-top: 8px;
}

.intro-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.intro-copy .lead {
  color: var(--paper-dim);
  font-size: 19px;
  line-height: 1.6;
}

.intro-copy p + p {
  margin-top: 18px;
}

.intro-copy .text-link {
  margin-top: 26px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 78px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.principle {
  min-height: 190px;
  padding: 25px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 200ms ease;
}

.principle:hover {
  background: rgba(238, 231, 218, 0.025);
}

.principle-num {
  color: var(--gold);
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 0.1em;
}

.principle h3 {
  margin: 23px 0 8px;
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.principle p {
  max-width: 250px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* ------------------------------------------------------------------ */
/* Lore cards                                                         */
/* ------------------------------------------------------------------ */

.lore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.lore-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 355px;
  padding: 27px;
  overflow: hidden;
  background: var(--ink);
  transition: background 220ms ease;
}

.lore-card:hover {
  background: var(--panel);
}

.lore-card::after {
  position: absolute;
  right: -35px;
  bottom: -55px;
  width: 165px;
  height: 165px;
  border: 1px solid rgba(215, 165, 76, 0.14);
  border-radius: 50%;
  content: "";
  transition: transform 350ms var(--ease);
}

.lore-card:hover::after {
  transform: scale(1.2);
}

.lore-index {
  margin-bottom: 40px;
  color: var(--gold);
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.08em;
  line-height: 1;
}

.lore-card h3 {
  margin: 13px 0 15px;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(31px, 3.2vw, 44px);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 0.9;
  text-transform: uppercase;
}

.lore-card p:not(.micro-label) {
  max-width: 250px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.lore-card .text-link {
  margin-top: auto;
  padding-top: 30px;
}

/* ------------------------------------------------------------------ */
/* News                                                               */
/* ------------------------------------------------------------------ */

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

.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 24px;
  overflow: hidden;
  background: rgba(18, 23, 20, 0.72);
  border: 1px solid var(--line);
  transition: transform 220ms var(--ease), border-color 220ms ease, background 220ms ease;
}

.news-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 1px;
  background: var(--gold);
  content: "";
  transition: width 240ms var(--ease);
}

.news-card:hover {
  background: var(--panel-2);
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.news-card:hover::before {
  width: 100%;
}

.news-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--faint);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.news-category {
  color: var(--gold);
}

.news-meta i {
  width: 3px;
  height: 3px;
  background: var(--faint);
  border-radius: 50%;
}

.news-card h3 {
  margin: 30px 0 13px;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(31px, 3.1vw, 42px);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 0.91;
  text-transform: uppercase;
}

.news-card-excerpt {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.card-arrow {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding-top: 24px;
  color: var(--gold-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.news-card:hover .card-arrow {
  color: var(--paper);
}

.news-loading {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.news-loading span {
  display: block;
  min-height: 320px;
  background: linear-gradient(100deg, rgba(238, 231, 218, 0.04) 20%, rgba(238, 231, 218, 0.09) 40%, rgba(238, 231, 218, 0.04) 60%);
  background-size: 200% 100%;
  border: 1px solid var(--line);
  animation: shimmer 1.8s linear infinite;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.news-empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  color: var(--muted);
  border: 1px solid var(--line);
  text-align: center;
}

.noscript-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
}

/* ------------------------------------------------------------------ */
/* Factions                                                           */
/* ------------------------------------------------------------------ */

.faction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.faction {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 175px;
  padding: 21px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 200ms ease;
}

.faction:hover {
  background: rgba(215, 165, 76, 0.045);
}

.faction-code {
  color: var(--faint);
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.1em;
}

.faction-mark {
  margin-top: auto;
  color: var(--paper);
  font-family: var(--display);
  font-size: 42px;
  letter-spacing: 0.06em;
  line-height: 0.82;
}

.faction-name {
  margin-top: 10px;
  color: var(--paper-dim);
  font-size: 11px;
  font-weight: 600;
}

.faction-desc {
  max-width: 200px;
  margin-top: 5px;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.5;
}

/* ------------------------------------------------------------------ */
/* Join and footer                                                    */
/* ------------------------------------------------------------------ */

.join {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 77% 25%, rgba(215, 165, 76, 0.15), transparent 23rem),
    linear-gradient(105deg, rgba(10, 13, 11, 0.97) 20%, rgba(10, 13, 11, 0.55)),
    url("assets/skyline.svg") center 70% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.join-wash {
  position: absolute;
  inset: 0;
  opacity: 0.26;
  background-image: linear-gradient(90deg, rgba(215, 165, 76, 0.3) 1px, transparent 1px);
  background-size: 120px 100%;
  mask-image: linear-gradient(90deg, black, transparent 60%);
}

.join-inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.join h2 {
  margin: 24px 0 17px;
  font-family: var(--display);
  font-size: clamp(55px, 8vw, 100px);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 0.82;
  text-transform: uppercase;
}

.join h2 em {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.47em;
  font-style: italic;
  letter-spacing: -0.05em;
  text-transform: none;
}

.join p:not(.eyebrow):not(.join-small) {
  max-width: 430px;
  color: var(--paper-dim);
  font-size: 15px;
  line-height: 1.7;
}

.join-small {
  margin-top: 19px;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.site-footer {
  padding: 66px 0 27px;
  background: #070a08;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 46px;
}

.footer-brand p {
  max-width: 260px;
  margin-top: 20px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 78px;
}

.footer-links > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links .micro-label {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--muted);
  font-size: 12px;
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: var(--gold-soft);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 19px;
  color: var(--faint);
  border-top: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.footer-signoff {
  color: var(--gold-soft);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Inner page hero                                                    */
/* ------------------------------------------------------------------ */

.page-hero {
  position: relative;
  padding: 175px 0 82px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 20%, rgba(215, 165, 76, 0.11), transparent 25rem),
    linear-gradient(140deg, rgba(18, 23, 20, 0.7), var(--ink));
}

.page-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  content: "";
  opacity: 0.4;
}

.page-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(238, 231, 218, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 231, 218, 0.04) 1px, transparent 1px);
  background-size: 100% 82px, 112px 100%;
  mask-image: linear-gradient(90deg, black, transparent 75%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-title {
  max-width: 980px;
  margin: 24px 0 22px;
  font-size: clamp(64px, 10vw, 138px);
  line-height: 0.79;
}

.page-lede {
  max-width: 560px;
  color: var(--paper-dim);
  font-size: 15px;
  line-height: 1.8;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 34px;
  color: var(--faint);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.page-meta span {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.page-meta span::before {
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  content: "";
}

/* ------------------------------------------------------------------ */
/* Lore page                                                          */
/* ------------------------------------------------------------------ */

.lore-section {
  padding-top: 82px;
}

.lore-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(40px, 9vw, 135px);
  align-items: start;
}

.toc {
  position: sticky;
  top: 118px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.toc .micro-label {
  margin-bottom: 11px;
}

.toc > a {
  color: var(--muted);
  font-size: 11px;
  transition: color 180ms ease;
}

.toc > a:hover {
  color: var(--gold);
}

.toc-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 30px;
  padding-top: 17px;
  color: var(--faint);
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.6;
}

.toc-note .status-dot {
  margin-top: 5px;
  background: var(--gold);
  box-shadow: none;
}

.lore-body {
  max-width: 760px;
}

.chapter {
  scroll-margin-top: 115px;
  padding-bottom: 78px;
  border-bottom: 1px solid var(--line);
}

.chapter + .chapter {
  padding-top: 78px;
}

.chapter-marker {
  display: flex;
  gap: 16px;
  align-items: baseline;
  color: var(--gold);
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.08em;
}

.chapter-marker span {
  color: var(--faint);
  font-family: var(--body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chapter h2 {
  margin: 17px 0 24px;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(43px, 6vw, 74px);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 0.88;
  text-transform: uppercase;
}

.chapter h2 em {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.49em;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.05em;
  text-transform: none;
}

.chapter p {
  max-width: 660px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.chapter p + p {
  margin-top: 17px;
}

.chapter .chapter-lead {
  margin-bottom: 22px;
  color: var(--paper-dim);
  font-size: 18px;
  line-height: 1.7;
}

.chapter blockquote {
  max-width: 610px;
  margin: 34px 0;
  padding: 9px 0 9px 25px;
  color: var(--gold-soft);
  border-left: 1px solid var(--gold);
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  line-height: 1.5;
}

.chapter blockquote cite {
  display: block;
  margin-top: 13px;
  color: var(--faint);
  font-family: var(--body);
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 37px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.timeline div {
  padding: 17px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline span {
  color: var(--gold);
  font-family: var(--display);
  font-size: 23px;
  letter-spacing: 0.06em;
}

.timeline p {
  margin-top: 5px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.6;
}

.faction-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 33px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.faction-detail {
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.faction-detail h3 {
  margin: 17px 0 8px;
  color: var(--paper);
  font-family: var(--display);
  font-size: 37px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 0.8;
}

.faction-detail p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.faction-tag {
  display: block;
  margin-top: 16px;
  color: var(--gold);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.tenets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.tenets div {
  padding: 21px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tenets span {
  color: var(--gold);
  font-family: var(--display);
  font-size: 18px;
}

.tenets h3 {
  margin: 15px 0 7px;
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
}

.tenets p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.article-end {
  padding-top: 60px;
}

.article-end h2 {
  margin: 14px 0 16px;
  font-family: var(--display);
  font-size: clamp(46px, 6.4vw, 81px);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 0.86;
  text-transform: uppercase;
}

.article-end h2 em {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.49em;
  font-style: italic;
  letter-spacing: -0.05em;
  text-transform: none;
}

.article-end p:not(.micro-label) {
  max-width: 450px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

/* ------------------------------------------------------------------ */
/* Newsroom                                                           */
/* ------------------------------------------------------------------ */

.newsroom-section {
  padding-top: 77px;
}

.newsroom-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}

.newsroom-aside {
  position: sticky;
  top: 118px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aside-card {
  padding: 23px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.aside-card h3 {
  margin: 18px 0 13px;
  color: var(--paper);
  font-family: var(--display);
  font-size: 35px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.85;
  text-transform: uppercase;
}

.aside-card p:not(.micro-label) {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.aside-card .text-link {
  margin-top: 18px;
}

.aside-rule {
  height: 1px;
  margin: 22px 0;
  background: var(--line);
}

.aside-stamp {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 14px;
  color: var(--faint);
  border: 1px solid var(--line);
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.08em;
  line-height: 0.9;
  text-transform: uppercase;
}

.news-grid-archive {
  grid-template-columns: 1fr 1fr;
}

.article-view {
  animation: articleIn 320ms var(--ease);
}

@keyframes articleIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.article-back {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 31px;
}

.article-header {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.article-header .news-meta {
  margin-bottom: 21px;
}

.article-header h1 {
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(52px, 7vw, 94px);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 0.84;
  text-transform: uppercase;
}

.article-header h1 em {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.47em;
  font-style: italic;
  letter-spacing: -0.05em;
  text-transform: none;
}

.article-subhead {
  max-width: 650px;
  margin-top: 20px;
  color: var(--paper-dim);
  font-size: 18px;
  line-height: 1.7;
}

.article-body {
  max-width: 680px;
  padding-top: 32px;
}

.article-body p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
}

.article-body p + p {
  margin-top: 20px;
}

.article-body p:first-child {
  color: var(--paper-dim);
  font-size: 17px;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.article-footer span {
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* Account                                                            */
/* ------------------------------------------------------------------ */

.account-section {
  padding-top: 72px;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(250px, 0.62fr);
  gap: 20px;
  align-items: start;
}

.panel {
  background: rgba(18, 23, 20, 0.84);
  border: 1px solid var(--line);
}

.auth-panel {
  padding: clamp(24px, 4vw, 49px);
}

.auth-mark {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 34px;
}

.auth-panel h2,
.admin-gate h2 {
  max-width: 520px;
  margin: 0 0 15px;
  font-family: var(--display);
  font-size: clamp(46px, 6vw, 78px);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 0.82;
  text-transform: uppercase;
}

.auth-panel h2 em,
.admin-gate h2 em {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.47em;
  font-style: italic;
  letter-spacing: -0.05em;
  text-transform: none;
}

.auth-lead {
  max-width: 520px;
  margin-bottom: 27px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.form-note {
  margin: 12px 0;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.6;
}

.auth-divider {
  display: flex;
  gap: 13px;
  align-items: center;
  margin: 31px 0 20px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.auth-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-list li {
  display: flex;
  gap: 13px;
  align-items: baseline;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.auth-list span {
  color: var(--gold);
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.06em;
}

.auth-footnote {
  max-width: 480px;
  margin-top: 27px;
  padding-top: 17px;
  color: var(--faint);
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.7;
}

.account-card {
  padding: clamp(24px, 3.4vw, 38px);
}

.identity-head {
  display: flex;
  gap: 15px;
  align-items: center;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  overflow: hidden;
  color: var(--ink);
  background: var(--gold);
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.07em;
  border-radius: 50%;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-large {
  width: 70px;
  height: 70px;
  font-size: 33px;
}

.identity-copy {
  min-width: 0;
}

.identity-copy h2 {
  overflow: hidden;
  color: var(--paper);
  font-family: var(--display);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.9;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.identity-handle {
  margin-top: 3px;
  color: var(--faint);
  font-size: 11px;
}

.role-badge {
  margin-left: auto;
  padding: 5px 8px;
  color: var(--gold-soft);
  background: rgba(215, 165, 76, 0.09);
  border: 1px solid rgba(215, 165, 76, 0.26);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.role-badge.role-owner,
.role-badge.role-admin {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.identity-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 29px;
}

.identity-meta > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.identity-meta strong {
  overflow: hidden;
  color: var(--paper-dim);
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-good {
  color: var(--green) !important;
}

.panel-rule {
  height: 1px;
  margin: 28px 0;
  background: var(--line);
}

.form-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.form-heading h3 {
  margin-top: 9px;
  color: var(--paper);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.form-hint,
.field small {
  color: var(--faint);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 15px;
}

.field > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select,
.search-form input {
  width: 100%;
  padding: 11px 12px;
  color: var(--paper);
  background: rgba(6, 9, 7, 0.52);
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  font-size: 12px;
  transition: border-color 180ms ease;
}

.field textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.65;
}

.field input::placeholder,
.field textarea::placeholder,
.search-form input::placeholder {
  color: var(--faint);
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.search-form input:focus {
  border-color: var(--gold);
}

.field select {
  appearance: none;
  cursor: pointer;
}

.field select option {
  color: var(--ink);
  background: var(--paper);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
}

.account-actions {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-top: 31px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.account-footnote {
  color: var(--faint);
  font-size: 9px;
}

.account-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mini-fact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.mini-fact:last-child {
  border-bottom: 0;
}

.mini-fact span {
  color: var(--faint);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mini-fact strong {
  color: var(--paper-dim);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}

.quote-card {
  position: relative;
  padding: 25px;
  overflow: hidden;
  background: var(--gold);
  color: var(--ink);
}

.quote-mark {
  position: absolute;
  top: -22px;
  right: 10px;
  color: rgba(10, 13, 11, 0.15);
  font-family: var(--serif);
  font-size: 150px;
  line-height: 1;
}

.quote-card p {
  position: relative;
  z-index: 1;
  max-width: 220px;
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
  line-height: 1.45;
}

.quote-card .micro-label {
  position: relative;
  z-index: 1;
  margin-top: 19px;
  color: rgba(10, 13, 11, 0.55);
}

.notice {
  padding: 12px 15px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
}

.notice-error {
  color: #e6b5a4;
  background: rgba(180, 92, 61, 0.09);
  border-color: rgba(180, 92, 61, 0.42);
}

.notice-success {
  color: var(--green);
  background: rgba(140, 168, 143, 0.07);
  border-color: rgba(140, 168, 143, 0.32);
}

/* ------------------------------------------------------------------ */
/* Admin                                                              */
/* ------------------------------------------------------------------ */

.admin-section {
  padding-top: 70px;
}

.admin-gate {
  max-width: 650px;
  padding: clamp(24px, 4vw, 48px);
}

.gate-back {
  display: flex;
  margin-top: 26px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 116px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.admin-identity {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.admin-identity strong {
  display: block;
  overflow: hidden;
  max-width: 125px;
  color: var(--paper);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-identity span:not(.avatar) {
  display: block;
  margin-top: 2px;
  color: var(--gold);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-tabs {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.admin-tabs button {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 4px;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, padding 180ms ease;
}

.admin-tabs button span {
  color: var(--faint);
  font-family: var(--display);
  font-size: 14px;
}

.admin-tabs button:hover,
.admin-tabs button.is-active {
  padding-left: 10px;
  color: var(--gold-soft);
}

.admin-tabs button.is-active span {
  color: var(--gold);
}

.admin-sidebar-foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.admin-main {
  min-width: 0;
}

.admin-panel {
  padding: clamp(21px, 3vw, 34px);
  background: rgba(18, 23, 20, 0.72);
  border: 1px solid var(--line);
}

.admin-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 26px;
}

.admin-heading h2 {
  margin: 8px 0 8px;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 0.86;
  text-transform: uppercase;
}

.admin-heading p:not(.section-kicker) {
  max-width: 520px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.count-badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: var(--gold-soft);
  border: 1px solid var(--line-strong);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.search-form input {
  flex: 1;
  min-width: 0;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: left;
}

.data-table th {
  padding: 11px 12px;
  color: var(--faint);
  border-bottom: 1px solid var(--line);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  padding: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tr:hover td {
  background: rgba(238, 231, 218, 0.02);
}

.table-empty {
  padding: 30px 12px !important;
  color: var(--faint) !important;
  text-align: center;
}

.person {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 155px;
}

.person .avatar {
  width: 31px;
  height: 31px;
  font-size: 15px;
}

.person-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.person-copy strong {
  overflow: hidden;
  max-width: 180px;
  color: var(--paper-dim);
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-copy span {
  overflow: hidden;
  max-width: 180px;
  color: var(--faint);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-select {
  min-width: 86px;
  padding: 6px 7px;
  color: var(--paper-dim);
  background: var(--ink-2);
  border: 1px solid var(--line);
  font-size: 10px;
}

.table-button {
  padding: 7px 9px;
  color: var(--ink);
  background: var(--gold);
  border: 0;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.table-button:hover {
  background: var(--gold-soft);
}

.table-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.role-label {
  color: var(--gold-soft);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.status-label {
  color: var(--green);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.status-label.suspended {
  color: #d5927e;
}

.dispatch-form {
  padding: 19px;
  margin-bottom: 30px;
  background: rgba(6, 9, 7, 0.25);
  border: 1px solid var(--line);
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(120px, 0.5fr);
  gap: 12px;
}

.checkbox {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}

.checkbox input {
  accent-color: var(--gold);
}

.admin-subhead {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 12px;
}

.admin-subhead h3 {
  color: var(--paper);
  font-family: var(--display);
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dispatch-title {
  display: block;
  overflow: hidden;
  max-width: 290px;
  color: var(--paper-dim);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dispatch-slug {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 9px;
}

.action-link {
  padding: 0;
  color: var(--gold-soft);
  background: none;
  border: 0;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.action-link:hover {
  color: var(--paper);
}

/* ------------------------------------------------------------------ */
/* Toast and error page                                               */
/* ------------------------------------------------------------------ */

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  max-width: 340px;
  padding: 12px 15px;
  color: var(--ink);
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  font-size: 11px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-error {
  color: var(--paper);
  background: #4c2921;
  border-color: var(--rust);
}

.error-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  max-width: 700px;
  padding: 80px 24px;
  margin: 0 auto;
}

.error-page .brand {
  margin-bottom: 90px;
}

.error-page h1 {
  margin: 22px 0 17px;
  font-family: var(--display);
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 0.81;
  text-transform: uppercase;
}

.error-page h1 em {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.45em;
  font-style: italic;
  letter-spacing: -0.05em;
  text-transform: none;
}

.error-page > p:not(.eyebrow) {
  max-width: 430px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* ------------------------------------------------------------------ */
/* Reveal and responsive                                              */
/* ------------------------------------------------------------------ */

html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

html.reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.58fr);
    gap: 45px;
  }

  .hero-title {
    font-size: clamp(76px, 11.8vw, 136px);
  }

  .newsroom-layout,
  .lore-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 50px;
  }

  .account-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 36px, var(--max));
  }

  .header-inner {
    min-height: 72px;
  }

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

  .brand-name {
    font-size: 21px;
  }

  .brand-meta {
    font-size: 7px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 72px 0 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 22px 18px;
    background: rgba(8, 11, 9, 0.97);
    border-top: 1px solid var(--line);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms var(--ease);
  }

  .nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links > a:not(.nav-play) {
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--display);
    font-size: 26px;
    letter-spacing: 0.08em;
  }

  .nav-links > a:not(.nav-play)::after {
    display: none;
  }

  .nav-play {
    justify-content: center;
    margin-top: 20px;
    padding: 15px;
  }

  .nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero {
    min-height: auto;
    padding: 140px 0 80px;
  }

  .hero::before {
    background:
      radial-gradient(circle at 78% 22%, rgba(215, 165, 76, 0.14), transparent 20rem),
      linear-gradient(90deg, rgba(8, 11, 9, 0.94), rgba(8, 11, 9, 0.55));
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-title {
    font-size: clamp(75px, 16vw, 128px);
  }

  .dossier {
    max-width: 390px;
  }

  .scroll-cue {
    position: static;
    margin-top: 42px;
    transform: none;
  }

  .section {
    padding: 80px 0;
  }

  .section-head {
    display: block;
    margin-bottom: 32px;
  }

  .section-head .text-link,
  .section-note {
    margin-top: 24px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .principle-grid,
  .lore-grid,
  .faction-grid {
    grid-template-columns: 1fr 1fr;
  }

  .principle:last-child,
  .lore-card:last-child {
    grid-column: 1 / -1;
  }

  .lore-card {
    min-height: 300px;
  }

  .news-grid,
  .news-grid-archive {
    grid-template-columns: 1fr;
  }

  .news-card {
    min-height: 0;
  }

  .news-loading {
    grid-template-columns: 1fr;
  }

  .news-loading span {
    min-height: 150px;
  }

  .faction-grid .faction:last-child {
    grid-column: auto;
  }

  .page-hero {
    padding: 135px 0 62px;
  }

  .page-title {
    font-size: clamp(62px, 14vw, 112px);
  }

  .lore-layout,
  .newsroom-layout,
  .account-layout,
  .admin-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .toc,
  .newsroom-aside,
  .admin-sidebar {
    position: static;
  }

  .toc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 18px;
    padding-bottom: 23px;
    border-bottom: 1px solid var(--line);
  }

  .toc .micro-label,
  .toc-note {
    grid-column: 1 / -1;
  }

  .toc-note {
    margin-top: 15px;
  }

  .newsroom-aside {
    order: -1;
  }

  .aside-card {
    padding: 20px;
  }

  .account-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .admin-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
    align-items: start;
  }

  .admin-identity {
    grid-column: 1 / -1;
  }

  .admin-tabs {
    grid-column: 1 / -1;
    flex-direction: row;
    overflow-x: auto;
  }

  .admin-tabs button {
    flex: 1 0 auto;
    border-bottom: 0;
    border-top: 1px solid var(--line);
  }

  .admin-tabs button:hover,
  .admin-tabs button.is-active {
    padding-left: 4px;
  }

  .admin-sidebar-foot {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-top {
    display: block;
  }

  .footer-links {
    margin-top: 35px;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 32px);
  }

  .hero {
    padding-top: 126px;
  }

  .hero-title {
    font-size: clamp(69px, 19vw, 101px);
  }

  .hero-lede {
    font-size: 14px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-note {
    align-items: flex-start;
    line-height: 1.6;
  }

  .dossier {
    max-width: none;
  }

  .section {
    padding: 68px 0;
  }

  .section-title {
    font-size: clamp(48px, 14vw, 72px);
  }

  .principle-grid,
  .lore-grid,
  .faction-grid,
  .timeline,
  .faction-detail-grid,
  .tenets,
  .account-aside {
    grid-template-columns: 1fr;
  }

  .principle:last-child,
  .lore-card:last-child {
    grid-column: auto;
  }

  .lore-card {
    min-height: 0;
  }

  .lore-index {
    margin-bottom: 25px;
  }

  .faction {
    min-height: 150px;
  }

  .join {
    padding: 82px 0;
  }

  .join h2 {
    font-size: clamp(53px, 16vw, 78px);
  }

  .footer-links {
    gap: 38px;
  }

  .footer-bottom {
    display: block;
  }

  .footer-signoff {
    margin-top: 10px;
  }

  .page-title {
    font-size: clamp(58px, 18vw, 92px);
  }

  .page-lede {
    font-size: 14px;
  }

  .chapter h2 {
    font-size: clamp(40px, 12vw, 57px);
  }

  .chapter .chapter-lead {
    font-size: 16px;
  }

  .chapter blockquote {
    font-size: 19px;
  }

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

  .toc .micro-label,
  .toc-note {
    grid-column: auto;
  }

  .identity-head {
    align-items: flex-start;
  }

  .identity-copy h2 {
    font-size: 27px;
  }

  .role-badge {
    padding: 4px 6px;
    font-size: 7px;
  }

  .identity-meta {
    gap: 7px;
  }

  .identity-meta strong {
    font-size: 10px;
  }

  .form-heading {
    display: block;
  }

  .form-hint {
    display: block;
    margin-top: 8px;
  }

  .account-actions {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .admin-panel {
    padding: 17px;
  }

  .admin-heading {
    display: block;
  }

  .count-badge {
    display: inline-block;
    margin-top: 12px;
  }

  .search-form {
    flex-direction: column;
  }

  .search-form .btn {
    width: 100%;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    max-width: none;
  }

  .article-header h1 {
    font-size: clamp(47px, 14vw, 72px);
  }

  .article-footer {
    display: block;
  }

  .article-footer .text-link {
    margin-top: 14px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
