/* =========================================================
   The Texas Department of Corrections — Tribute Site
   A study in iron, dust, paper, and time.
   ========================================================= */

:root {
  --bg-iron:      #1a1816;
  --bg-iron-2:    #232020;
  --bg-paper:     #ede4cf;
  --bg-paper-2:   #e3d6b8;
  --ink:          #2c2620;
  --ink-soft:     #4a3f33;
  --muted:        #8a7d68;
  --rule:         #5a4d3d;
  --amber:        #c8851a;
  --amber-bright: #e2a134;
  --rust:         #8b3a1f;
  --blood:        #5c1a14;
  --denim:        #3a4a5c;
  --sage:         #6e7c5e;

  --serif:    "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --display:  "Rye", "Playfair Display", Georgia, serif;
  --type:     "Special Elite", "Courier New", monospace;
  --sans:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-iron);
  color: var(--bg-paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- Paper grain texture (SVG noise) ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
h4 { font-size: 1.15rem; letter-spacing: 0.02em; }

.eyebrow {
  font-family: var(--type);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--amber-bright);
  margin-bottom: 0.9rem;
  display: inline-block;
}

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: rgba(237, 228, 207, 0.85);
  max-width: 38em;
}

a { color: var(--amber-bright); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #fff; }

/* ---------- Top bar / navigation ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26, 24, 22, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(200, 133, 26, 0.18);
}
.topbar .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  color: var(--bg-paper);
}
.brand .star {
  width: 22px; height: 22px;
  fill: var(--amber-bright);
  filter: drop-shadow(0 0 6px rgba(226, 161, 52, 0.4));
}
.nav {
  display: flex; gap: 1.6rem;
  font-family: var(--type);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}
.nav a {
  color: rgba(237, 228, 207, 0.7);
  position: relative;
  padding: 0.3rem 0;
}
.nav a:hover, .nav a.active { color: var(--bg-paper); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--amber-bright);
}

.menu-toggle { display: none; background: none; border: 0; color: var(--bg-paper); font-size: 1.4rem; cursor: pointer; }

@media (max-width: 820px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-iron-2);
    padding: 1rem 2rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(200, 133, 26, 0.18);
  }
}

/* ---------- Layout containers ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 2; }
.narrow    { max-width: 780px;  margin: 0 auto; padding: 0 2rem; position: relative; z-index: 2; }
section    { padding: 6rem 0; position: relative; }

.section-paper {
  background: var(--bg-paper);
  color: var(--ink);
  position: relative;
}
.section-paper::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 0.2  0 0 0 0 0.15  0 0 0 0 0.1  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
  opacity: 0.08;
  mix-blend-mode: multiply;
}
.section-paper h1, .section-paper h2, .section-paper h3, .section-paper h4 { color: var(--ink); }
.section-paper .eyebrow { color: var(--rust); }
.section-paper a { color: var(--rust); }
.section-paper a:hover { color: var(--blood); }

/* ---------- Decorative rules ---------- */
.rule {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.4rem 0;
  font-family: var(--type);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.rule::before, .rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0.4;
}
.section-paper .rule { color: var(--ink-soft); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  padding: 9rem 2rem 6rem;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 700px at 70% 30%, rgba(200, 133, 26, 0.12), transparent 60%),
    radial-gradient(900px 600px at 20% 90%, rgba(92, 26, 20, 0.25), transparent 70%),
    var(--bg-iron);
}
.hero::before {
  /* faint barbed-wire silhouette top */
  content: "";
  position: absolute;
  top: 7%; left: -5%; right: -5%;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(237, 228, 207, 0.18) 0 12px, transparent 12px 28px);
  opacity: 0.5;
}
.hero-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 4rem;
  align-items: center;
  position: relative; z-index: 2;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-mark {
  font-family: var(--display);
  font-size: clamp(8rem, 22vw, 18rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #f8efd6 0%, #c8851a 60%, #5c1a14 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(200, 133, 26, 0.15);
  margin-bottom: 0.6rem;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1.4rem;
}
.hero-meta {
  display: flex; gap: 2rem; flex-wrap: wrap;
  font-family: var(--type);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(237, 228, 207, 0.6);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(237, 228, 207, 0.15);
}
.hero-meta span strong { display: block; color: var(--amber-bright); font-weight: 400; font-size: 1.2rem; margin-top: 0.3rem; }

/* Hero medallion */
.medallion {
  aspect-ratio: 1;
  display: grid; place-items: center;
  position: relative;
}
.medallion svg { width: 100%; height: 100%; max-width: 420px; }
.medallion .ring text {
  font-family: var(--type);
  font-size: 11.5px;
  letter-spacing: 0.4em;
  fill: var(--amber-bright);
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.95rem 1.7rem;
  border: 1px solid var(--amber);
  color: var(--bg-paper);
  font-family: var(--type);
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}
.btn:hover {
  background: var(--amber);
  color: var(--bg-iron);
}
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Quick stats banner ---------- */
.stats-banner {
  background: var(--bg-iron-2);
  border-top: 1px solid rgba(200, 133, 26, 0.2);
  border-bottom: 1px solid rgba(200, 133, 26, 0.2);
  padding: 3rem 2rem;
}
.stats-banner-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  text-align: center;
}
@media (max-width: 760px) { .stats-banner-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-figure {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--amber-bright);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-family: var(--type);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(237, 228, 207, 0.65);
}

/* ---------- Section navigation cards ---------- */
.nav-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 900px) { .nav-cards { grid-template-columns: 1fr; } }

.nav-card {
  display: block;
  padding: 2.2rem 1.8rem;
  background: var(--bg-iron-2);
  border: 1px solid rgba(237, 228, 207, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.nav-card:hover {
  transform: translateY(-4px);
  border-color: var(--amber);
  background: linear-gradient(180deg, var(--bg-iron-2), #2c2724);
}
.nav-card .num {
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.4em;
  color: var(--amber);
  margin-bottom: 1rem;
}
.nav-card h3 {
  font-family: var(--serif);
  margin-bottom: 0.6rem;
  color: var(--bg-paper);
}
.nav-card p {
  color: rgba(237, 228, 207, 0.65);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---------- Pull quote ---------- */
.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.4;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
  position: relative;
}
.pullquote::before, .pullquote::after {
  content: "";
  display: block;
  width: 60px; height: 1px;
  background: var(--amber);
  margin: 2rem auto;
}
.pullquote cite {
  display: block;
  font-family: var(--type);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.5rem;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--amber) 8%, var(--amber) 92%, transparent);
  transform: translateX(-50%);
}
.tl-row {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  margin-bottom: 3rem;
  align-items: start;
}
.tl-row .tl-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg-iron);
  border: 2px solid var(--amber-bright);
  margin: 1.2rem auto 0;
  position: relative;
  box-shadow: 0 0 0 6px rgba(26, 24, 22, 1), 0 0 24px rgba(226, 161, 52, 0.4);
}
.tl-card {
  background: rgba(35, 32, 32, 0.7);
  border: 1px solid rgba(200, 133, 26, 0.2);
  padding: 1.5rem 1.6rem;
  transition: all 0.3s ease;
}
.tl-card:hover { border-color: var(--amber); transform: translateY(-2px); }
.tl-year {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--amber-bright);
  display: block;
  margin-bottom: 0.4rem;
}
.tl-title { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 0.5rem; }
.tl-body  { font-size: 0.95rem; color: rgba(237, 228, 207, 0.78); line-height: 1.55; }
.tl-row.left  .tl-card { grid-column: 1; text-align: right; }
.tl-row.right .tl-card { grid-column: 3; text-align: left; }
.tl-row .tl-dot { grid-column: 2; }

@media (max-width: 720px) {
  .timeline::before { left: 28px; }
  .tl-row { grid-template-columns: 56px 1fr; }
  .tl-row .tl-dot { grid-column: 1; margin: 1.2rem 0 0; }
  .tl-row.left .tl-card,
  .tl-row.right .tl-card { grid-column: 2; text-align: left; }
}

/* Era headers within timeline */
.era {
  text-align: center;
  margin: 4rem 0 2rem;
  position: relative;
  z-index: 2;
}
.era .era-label {
  display: inline-block;
  background: var(--bg-iron);
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--amber);
  font-family: var(--type);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber-bright);
}
.era h3 { margin-top: 1rem; font-family: var(--serif); }

/* ---------- Units page ---------- */
.units-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 980px) { .units-layout { grid-template-columns: 1fr; } }

.tx-map-wrap {
  position: sticky;
  top: 90px;
  background: var(--bg-iron-2);
  border: 1px solid rgba(200, 133, 26, 0.2);
  padding: 1.5rem;
}
.tx-map-wrap h3 { font-family: var(--type); font-size: 0.78rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--amber-bright); margin-bottom: 1rem; }
#tx-map { width: 100%; height: auto; }
#tx-map .border    { fill: rgba(237, 228, 207, 0.06); stroke: var(--amber); stroke-width: 1.2; }
#tx-map .unit-dot  { fill: var(--amber); cursor: pointer; transition: all 0.2s ease; }
#tx-map .unit-dot:hover, #tx-map .unit-dot.active { fill: var(--amber-bright); r: 8; filter: drop-shadow(0 0 8px var(--amber-bright)); }
#tx-map .unit-label { font-family: var(--type); font-size: 9px; fill: var(--muted); pointer-events: none; }

.unit-list { display: flex; flex-direction: column; gap: 1rem; }
.unit {
  padding: 1.4rem 1.6rem;
  background: var(--bg-iron-2);
  border-left: 3px solid var(--rust);
  cursor: pointer;
  transition: all 0.25s ease;
}
.unit:hover, .unit.active { border-left-color: var(--amber-bright); background: #2c2724; }
.unit-name { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 0.2rem; }
.unit-meta {
  font-family: var(--type);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.7rem;
}
.unit p { font-size: 0.95rem; color: rgba(237, 228, 207, 0.75); }

/* ---------- Rodeo page ---------- */
.rodeo-hero {
  min-height: 80vh;
  background:
    radial-gradient(800px 500px at 30% 40%, rgba(200, 133, 26, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-iron) 30%, #1f1a14 100%);
  display: flex; align-items: center;
  padding: 9rem 2rem 4rem;
  text-align: center;
}
.rodeo-hero h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 9vw, 7rem);
  background: linear-gradient(180deg, #f8efd6, #c8851a 70%, #8b3a1f);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.rodeo-hero .ticket {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2rem;
  border: 2px dashed var(--amber);
  font-family: var(--type);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber-bright);
}

.event-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
.event-card {
  padding: 1.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(200, 133, 26, 0.25);
  position: relative;
}
.event-card .reward {
  position: absolute; top: -12px; right: 1rem;
  background: var(--blood);
  color: var(--bg-paper);
  font-family: var(--type);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  padding: 0.3rem 0.7rem;
}
.event-card h4 { font-family: var(--display); font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--amber-bright); }
.event-card p  { font-size: 0.92rem; color: rgba(237, 228, 207, 0.75); }

.poster {
  background: var(--bg-paper);
  color: var(--ink);
  padding: 3rem 2.5rem;
  text-align: center;
  border: 1px solid var(--ink-soft);
  font-family: var(--display);
  position: relative;
  max-width: 520px;
  margin: 3rem auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.poster::before, .poster::after {
  content: "★ ★ ★";
  display: block;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: var(--rust);
  margin: 0.5rem 0 1rem;
}
.poster::after { margin: 1rem 0 0.5rem; }
.poster .small  { font-family: var(--type); font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase; }
.poster .huge   { font-family: var(--display); font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; margin: 0.7rem 0; color: var(--blood); }
.poster .where  { font-family: var(--serif); font-size: 1.1rem; font-style: italic; margin-top: 0.6rem; }
.poster .price  { font-family: var(--display); font-size: 1.4rem; color: var(--rust); margin-top: 1rem; }

/* ---------- Stats page ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.stat-card {
  padding: 2rem 1.6rem;
  background: var(--bg-iron-2);
  border: 1px solid rgba(200, 133, 26, 0.2);
  text-align: center;
}
.stat-card .big {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--amber-bright);
  line-height: 1;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.stat-card .label {
  font-family: var(--type);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.stat-card .note {
  font-size: 0.88rem;
  color: rgba(237, 228, 207, 0.7);
  line-height: 1.45;
}

.chart-card {
  background: var(--bg-iron-2);
  border: 1px solid rgba(200, 133, 26, 0.2);
  padding: 2rem;
  margin: 2rem 0;
}
.chart-card h3 { font-family: var(--serif); margin-bottom: 0.5rem; }
.chart-card .sub { font-family: var(--type); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; }

.bar-chart { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.5rem; }
.bar-row { display: grid; grid-template-columns: 80px 1fr 100px; gap: 1rem; align-items: center; font-family: var(--type); font-size: 0.85rem; }
.bar-row .yr { color: var(--amber-bright); }
.bar-row .num { color: var(--bg-paper); text-align: right; }
.bar-row .bar {
  height: 16px;
  background: rgba(237, 228, 207, 0.06);
  position: relative;
  overflow: hidden;
}
.bar-row .bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rust), var(--amber));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bar-row.in .bar-fill { transform: scaleX(var(--w, 0)); }

/* ---------- Figures page ---------- */
.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.figure-card {
  background: var(--bg-iron-2);
  border: 1px solid rgba(200, 133, 26, 0.18);
  padding: 0;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.figure-card .portrait {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 50% 35%, rgba(200, 133, 26, 0.4), rgba(26, 24, 22, 0)),
    linear-gradient(180deg, #2c2724, #1a1816);
  position: relative;
  display: grid; place-items: center;
  border-bottom: 1px solid rgba(200, 133, 26, 0.2);
  overflow: hidden;
}
.figure-card .initials {
  font-family: var(--display);
  font-size: 4rem;
  color: var(--amber-bright);
  letter-spacing: 0.04em;
  text-shadow: 0 0 30px rgba(226, 161, 52, 0.4);
}
.figure-card .body { padding: 1.6rem 1.8rem 2rem; }
.figure-card h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 0.2rem; }
.figure-card .role {
  font-family: var(--type);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}
.figure-card p { font-size: 0.95rem; color: rgba(237, 228, 207, 0.78); }
.figure-card .span {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(237, 228, 207, 0.1);
  font-family: var(--type);
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.footer {
  background: #100e0d;
  border-top: 1px solid rgba(200, 133, 26, 0.18);
  padding: 4rem 2rem 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}
.footer-mark {
  font-family: var(--display);
  letter-spacing: 0.4em;
  color: var(--amber);
  font-size: 1.1rem;
}
.footer p { color: var(--muted); font-size: 0.9rem; margin-top: 1rem; max-width: 620px; margin-inline: auto; }
.footer .tiny {
  margin-top: 2rem;
  font-family: var(--type);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(237, 228, 207, 0.35);
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ---------- Marquee (subtle moving text) ---------- */
.marquee {
  background: var(--blood);
  color: var(--bg-paper);
  padding: 0.7rem 0;
  font-family: var(--type);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.marquee-inner { display: inline-block; padding-left: 100%; animation: marquee 32s linear infinite; }
.marquee-inner span { margin-right: 4rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- Misc ---------- */
::selection { background: var(--amber); color: var(--bg-iron); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #100e0d; }
::-webkit-scrollbar-thumb { background: var(--ink-soft); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--amber); }

/* paragraph helpers */
.prose p { margin-bottom: 1.2rem; }
.prose p:first-of-type::first-letter {
  font-family: var(--display);
  font-size: 4rem;
  float: left;
  line-height: 0.85;
  padding: 0.4rem 0.6rem 0 0;
  color: var(--amber-bright);
}
.section-paper .prose p:first-of-type::first-letter { color: var(--rust); }
