/* =============================================================================
   The Translation Archive — visual system
   Built on the Unshaken Voice Productions "premium technical studio" language:
   deep navy ground, cyan energy, oversized display type, glow + grid.
   Adapted here for a scholarly reference: added prose, timeline, and archive UI.
   Dark theme only, by design.
   ========================================================================== */

/* ===== TOKENS ============================================================= */
:root {
  color-scheme: dark;

  --ink: #eef6ff;
  --muted: #8aabbd;
  --soft: #c4dcef;

  --navy-990: #020810;
  --navy-970: #040c1a;
  --navy-940: #070f1e;
  --navy-900: #0a1728;
  --navy-850: #0e2038;
  --steel-800: #1a3049;
  --steel-700: #2c4d68;

  --cyan: #22d9ff;
  --cyan-2: #55e8ff;
  --blue: #0b82e0;
  --amber: #f5c96b; /* used sparingly, for "source text" accents */

  --line: rgba(140, 210, 240, 0.12);
  --line-strong: rgba(55, 205, 255, 0.26);
  --panel: rgba(7, 18, 34, 0.82);
  --glass: rgba(255, 255, 255, 0.04);

  --max: 1200px;
  --measure: 68ch;
  --radius: 28px;
  --radius-sm: 16px;

  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 48px 140px rgba(0, 0, 0, 0.52);
  --glow: 0 0 80px rgba(34, 217, 255, 0.22);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
}

/* ===== RESET ============================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--navy-990);
  background-image:
    radial-gradient(ellipse 72% 56% at 6% -7%, rgba(34, 217, 255, 0.17), transparent),
    radial-gradient(ellipse 62% 46% at 93% 11%, rgba(11, 130, 224, 0.11), transparent),
    linear-gradient(180deg, var(--navy-990) 0%, var(--navy-970) 44%, #060d1b 100%);
  background-repeat: no-repeat;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(34, 217, 255, 0.038) 1px, transparent 1px),
    linear-gradient(0deg, rgba(34, 217, 255, 0.028) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.48), transparent 70%);
  z-index: -2;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
strong {
  color: var(--ink);
}
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.85em;
  padding: 0.12em 0.4em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--soft);
}
::selection {
  background: rgba(34, 217, 255, 0.28);
  color: #fff;
}

/* ===== SKIP LINK ======================================================== */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 999;
  background: var(--cyan);
  color: #010d18;
  padding: 0.7rem 1rem;
  border-radius: 0 0 12px 0;
  font-weight: 900;
}
.skip-link:focus {
  left: 0;
}

/* ===== HEADER ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 16, 0.86);
  backdrop-filter: blur(22px) saturate(1.5);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(34, 217, 255, 0.2);
}
.brand-title {
  display: block;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: 0.98rem;
}
.brand-tag {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  margin-top: 0.12rem;
  letter-spacing: 0.02em;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 0.58rem 0.9rem;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a {
  color: var(--soft);
  padding: 0.5rem 0.72rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: linear-gradient(135deg, rgba(34, 217, 255, 0.2), rgba(11, 130, 224, 0.14));
  color: var(--cyan-2);
}

/* ===== LAYOUT ========================================================== */
.main {
  min-height: 70vh;
}
.section {
  position: relative;
  padding: 6.5rem 1.5rem;
}
.section.compact {
  padding: 4.25rem 1.5rem;
}
.section.tight {
  padding: 3rem 1.5rem;
}
.container {
  max-width: var(--max);
  margin: 0 auto;
}
.container.narrow {
  max-width: 860px;
}
.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem;
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}
.section-head .lede {
  margin-bottom: 0;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
.band-line {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ===== TYPOGRAPHY ===================================================== */
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
}
h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 5.6vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.9rem, 3.6vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
}
h3 {
  margin-bottom: 0.45rem;
  font-size: 1.3rem;
  line-height: 1.16;
  letter-spacing: -0.01em;
}
h4 {
  margin-bottom: 0.35rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-2);
}
.lede {
  max-width: var(--measure);
  color: var(--soft);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}
.muted {
  color: var(--muted);
}
.fineprint,
.small {
  font-size: 0.85rem;
  color: var(--muted);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  color: var(--cyan-2);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--cyan);
  flex: none;
}
.eyebrow.center {
  justify-content: center;
}

/* ===== BUTTONS ======================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font: inherit;
  font-weight: 900;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s;
  white-space: nowrap;
}
.btn.primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #010e1c;
  border: 0;
}
.btn.secondary {
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  border-color: var(--line);
}
.btn.outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(34, 217, 255, 0.15);
}
.btn:active {
  transform: translateY(0);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}
.actions.center {
  justify-content: center;
}
.text-link {
  color: var(--cyan-2);
  font-weight: 800;
  border-bottom: 1px solid rgba(85, 232, 255, 0.35);
  transition: border-color 0.15s, color 0.15s;
}
.text-link:hover {
  color: #fff;
  border-color: var(--cyan-2);
}

:focus-visible {
  outline: 3px solid rgba(85, 232, 255, 0.55);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== HERO ========================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 1.5rem 4.5rem;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -4rem 0;
  height: 11rem;
  background: linear-gradient(to bottom, transparent, rgba(4, 10, 24, 0.85));
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 3.2rem;
  align-items: center;
}
.hero h1 {
  max-width: 15ch;
}
.hero .lede {
  margin-top: 1.4rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.9rem;
}

/* Hero side panel — archive dashboard */
.hero-panel {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-panel .cell {
  background: linear-gradient(160deg, rgba(10, 23, 40, 0.96), rgba(7, 15, 30, 0.96));
  padding: 1.35rem 1.4rem;
}
.hero-panel .metric {
  display: block;
  font-family: var(--serif);
  font-size: 2.7rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero-panel .metric-label {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.hero-panel .cell.wide {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--soft);
  font-size: 0.86rem;
}
.pulse-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34, 217, 255, 0.5);
  animation: pulse 2.6s infinite;
  flex: none;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 217, 255, 0.45);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(34, 217, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 217, 255, 0);
  }
}

/* ===== PAGE HERO (interior pages) =================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem 3.5rem;
  background:
    radial-gradient(ellipse 62% 80% at 15% 0%, rgba(34, 217, 255, 0.16), transparent),
    linear-gradient(135deg, var(--navy-990), var(--navy-900));
  border-bottom: 1px solid var(--line);
}
.page-hero .inner {
  max-width: var(--max);
  margin: 0 auto;
}
.page-hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  margin-bottom: 0.7rem;
}
.page-hero .lede {
  margin-bottom: 0;
}

/* ===== STAT / PROOF STRIP ========================================== */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.strip .item {
  background: rgba(6, 13, 27, 0.86);
  padding: 1.2rem 1.25rem;
}
.strip .item strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.strip .item span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

/* ===== ERA RAIL ==================================================== */
.era-list {
  border-top: 1px solid var(--line);
}
.era-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 15rem) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s;
}
.era-row:hover {
  background: rgba(34, 217, 255, 0.025);
}
.era-row .num {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--cyan-2), rgba(34, 217, 255, 0.3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.era-row .era-name {
  font-size: 1.24rem;
  font-family: var(--serif);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.era-row .era-range {
  display: block;
  margin-top: 0.15rem;
  color: var(--cyan-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.era-row p {
  color: var(--soft);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ===== CARD GRID ================================================== */
.card {
  min-width: 0;
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}
.card h3 {
  font-family: var(--serif);
}
.card p {
  color: var(--soft);
  margin: 0;
  font-size: 0.95rem;
}
.card p + p {
  margin-top: 0.7rem;
}

/* ===== FEATURE BAND ============================================== */
.feature-band {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.4rem;
  align-items: stretch;
}
.feature-copy {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(5, 13, 26, 0.97), rgba(13, 32, 58, 0.77));
  padding: 2.2rem;
  box-shadow: var(--shadow);
}
.feature-copy::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -10rem;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(34, 217, 255, 0.15), transparent 64%);
  pointer-events: none;
}
.feature-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  align-content: start;
}
.feature-list li {
  position: relative;
  padding: 0.9rem 1rem 0.9rem 2rem;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
}
.feature-list li:first-child {
  border-top: 1px solid var(--line);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 1.4rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(34, 217, 255, 0.55);
}
.feature-list li strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
  margin-bottom: 0.15rem;
}

/* ===== NOTE / CALLOUT BAND ===================================== */
.note-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(34, 217, 255, 0.1), rgba(7, 17, 33, 0.96));
  padding: 1.6rem 1.9rem;
  box-shadow: var(--shadow);
}
.note-band p {
  margin: 0;
}
.note-band .lede {
  margin: 0;
}

/* ===== STATEMENT + CTA BANDS ================================== */
.statement-band,
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 6.5rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--line);
}
.statement-band {
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(34, 217, 255, 0.09), transparent);
}
.cta-band {
  background:
    radial-gradient(ellipse 80% 80% at 50% 100%, rgba(34, 217, 255, 0.12), transparent),
    linear-gradient(180deg, transparent, rgba(5, 10, 22, 0.96));
}
.statement-band .inner,
.cta-band .inner {
  max-width: 780px;
  margin: 0 auto;
}
.statement-band h2 {
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
}
.statement-band .lede,
.cta-band .lede {
  margin: 0 auto;
}
.statement-band .actions,
.cta-band .actions {
  justify-content: center;
}
.pull {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: 24ch;
  margin: 0 auto;
}
.pull .by {
  display: block;
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-2);
}

/* ===== ARCHIVE: FILTER CONTROLS ============================== */
.controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(150px, 1fr));
  gap: 0.9rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(7, 16, 30, 0.72);
  box-shadow: var(--shadow);
}
.field {
  display: grid;
  gap: 0.35rem;
}
.field label {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
input[type="search"],
input[type="text"],
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 0.85rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}
input::placeholder {
  color: #6d879a;
}
.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.1rem 0 1.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.chip-btn {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--cyan-2);
  font: inherit;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}
.chip-btn:hover {
  background: rgba(34, 217, 255, 0.1);
}

/* ===== ARCHIVE: ENTRY GRID ================================== */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.entry-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  text-align: left;
  padding: 1.4rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.16s, border-color 0.16s, background 0.16s;
}
.entry-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: rgba(11, 26, 50, 0.92);
}
.entry-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--cyan-2);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.entry-topline .lang {
  color: var(--muted);
}
.entry-card h3 {
  margin: 0.35rem 0 0;
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.22;
}
.entry-date {
  margin: 0;
  color: var(--amber);
  font-weight: 800;
  font-size: 0.82rem;
}
.entry-card p.summary {
  margin: 0.25rem 0 0;
  color: var(--soft);
  font-size: 0.92rem;
  line-height: 1.55;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.9rem;
}
.tag-row span {
  padding: 0.28rem 0.6rem;
  background: rgba(34, 217, 255, 0.08);
  border: 1px solid rgba(34, 217, 255, 0.18);
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.7rem;
  font-weight: 800;
}
.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-align: center;
}

/* ===== ARCHIVE: DETAIL DIALOG ============================== */
.entry-dialog {
  width: min(680px, calc(100vw - 2rem));
  max-height: min(86vh, 900px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(10, 23, 40, 0.98), rgba(6, 14, 28, 0.98));
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.entry-dialog::backdrop {
  background: rgba(2, 6, 14, 0.72);
  backdrop-filter: blur(4px);
}
.entry-dialog .dialog-body {
  padding: 1.9rem;
  overflow-y: auto;
  max-height: min(86vh, 900px);
}
.entry-dialog .close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.entry-dialog .close:hover {
  background: rgba(34, 217, 255, 0.14);
}
.entry-dialog h2 {
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
}
.entry-dialog .kv {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.3rem 1rem;
  margin: 1.2rem 0;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.entry-dialog .kv dt {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  padding-top: 0.15rem;
}
.entry-dialog .kv dd {
  margin: 0;
  color: var(--soft);
}
.entry-dialog h4 {
  margin-top: 1.2rem;
}
.entry-dialog p {
  color: var(--soft);
  font-size: 0.98rem;
}

/* ===== TIMELINE ========================================== */
.timeline {
  position: relative;
  max-width: 960px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 9.5rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line-strong) 8%, var(--line-strong) 92%, transparent);
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 2.4rem;
  padding: 1.5rem 0;
}
.timeline .t-date {
  text-align: right;
  color: var(--cyan-2);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding-top: 0.15rem;
}
.timeline .t-body {
  position: relative;
}
.timeline .t-body::before {
  content: "";
  position: absolute;
  left: -2.4rem;
  top: 0.5rem;
  transform: translateX(-50%);
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--navy-990);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 14px rgba(34, 217, 255, 0.5);
}
.timeline h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}
.timeline p {
  margin: 0;
  color: var(--soft);
  font-size: 0.95rem;
  line-height: 1.6;
}
.timeline .t-era {
  display: inline-block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===== LONG-FORM ARTICLE =============================== */
.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: 3.5rem;
  max-width: var(--max);
  margin: 0 auto;
  align-items: start;
}
.article-wrap .prose {
  grid-column: 1;
  grid-row: 1;
}
.article-wrap .toc {
  grid-column: 2;
  grid-row: 1;
}
.toc {
  position: sticky;
  top: 5.5rem;
  align-self: start;
  border-left: 1px solid var(--line);
  padding-left: 1.1rem;
  font-size: 0.86rem;
}
.toc p {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  margin-bottom: 0.7rem;
}
.toc a {
  display: block;
  padding: 0.32rem 0;
  color: var(--soft);
  border-bottom: 1px solid transparent;
}
.toc a:hover {
  color: var(--cyan-2);
}
.prose {
  max-width: var(--measure);
}
.prose > section {
  margin-bottom: 3rem;
  scroll-margin-top: 5.5rem;
}
.prose h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 1rem;
  padding-top: 0.5rem;
}
.prose h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 1.8rem 0 0.5rem;
  color: var(--cyan-2);
}
.prose p {
  color: var(--soft);
  margin-bottom: 1.05rem;
  font-size: 1.02rem;
  line-height: 1.75;
}
.prose p .lead-in {
  color: var(--ink);
  font-weight: 700;
}
.prose blockquote {
  margin: 1.5rem 0;
  padding: 0.4rem 0 0.4rem 1.4rem;
  border-left: 2px solid var(--cyan);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.5;
}
.prose ul {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
  color: var(--soft);
}
.prose ul li {
  margin-bottom: 0.4rem;
}
.prose .defs {
  margin: 1.2rem 0;
  border-top: 1px solid var(--line);
}
.prose .defs div {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.prose .defs dt {
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
}
.prose .defs dd {
  margin: 0;
  color: var(--soft);
  font-size: 0.95rem;
}

/* ===== SOURCES LIST ================================== */
.sources {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.sources li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.92rem;
}
.sources li:first-child {
  border-top: 1px solid var(--line);
}
.sources li strong {
  color: var(--ink);
}

/* ===== FOOTER ====================================== */
.site-footer {
  background: rgba(2, 4, 11, 0.97);
  border-top: 1px solid var(--line);
  padding: 3rem 1.5rem 2.25rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.footer-brand-block {
  max-width: 460px;
}
.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}
.footer-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
}
.footer-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.9rem 0 0;
}
.footer-free {
  margin: 0.9rem 0 0;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(34, 217, 255, 0.06);
  color: var(--soft);
  font-size: 0.82rem;
  line-height: 1.55;
}
.footer-free strong {
  color: var(--cyan-2);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}
.footer-links a {
  color: var(--soft);
  font-weight: 800;
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: var(--cyan-2);
}
.footer-baseline {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== RESPONSIVE ================================= */
@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 74px;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(2, 6, 16, 0.98);
    box-shadow: var(--shadow);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 0.7rem 0.8rem;
  }
  .brand-tag {
    display: none;
  }
  .hero-grid,
  .feature-band,
  .two-col,
  .three-col {
    grid-template-columns: 1fr;
  }
  .article-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .article-wrap .prose,
  .article-wrap .toc {
    grid-column: 1;
    grid-row: auto;
  }
  .toc {
    position: static;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 1rem;
  }
  .section-head,
  .note-band,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-links {
    align-items: flex-start;
  }
  .entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .controls {
    grid-template-columns: 1fr 1fr;
  }
  .section {
    padding: 4.5rem 1.15rem;
  }
  .statement-band,
  .cta-band {
    padding: 4.5rem 1.15rem;
  }
}

@media (max-width: 620px) {
  .era-row {
    grid-template-columns: 2.5rem 1fr;
    gap: 0.9rem 1rem;
  }
  .era-row p {
    grid-column: 1 / -1;
  }
  .entry-grid {
    grid-template-columns: 1fr;
  }
  .strip,
  .controls {
    grid-template-columns: 1fr;
  }
  .timeline::before {
    left: 0.35rem;
  }
  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding-left: 1.6rem;
  }
  .timeline .t-date {
    text-align: left;
  }
  .timeline .t-body::before {
    left: -1.25rem;
  }
  .prose .defs div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .hero-actions,
  .actions {
    flex-direction: column;
  }
  .hero-actions .btn,
  .actions .btn {
    width: 100%;
  }
}

/* ===== REVEAL-ON-SCROLL (progressive enhancement; fails open) ===== */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
