/* ============================================================================
   THE STEAMPUNK FIELD GUIDE — Timeline stylesheet
   by Stephen Hunt's SFcrowsnest
   ----------------------------------------------------------------------------
   No external dependencies. System font stacks only. Edit colour tokens in
   :root to re-skin. All motion is gated behind prefers-reduced-motion.
   ========================================================================== */

:root {
  /* --- Surfaces / ink --- */
  --ink:        #14100b;
  --ink-2:      #1c1710;
  --panel:      #241c13;
  --panel-2:    #2d2317;
  /* --- Brass & copper --- */
  --brass:      #c79a4b;
  --brass-lite: #ecd28a;
  --brass-dark: #8a6a2d;
  --copper:     #b16a3c;
  --copper-dark:#7d4427;
  /* --- Parchment --- */
  --parchment:  #ece0c6;
  --parchment-2:#e1d0aa;
  --parch-ink:  #2a2015;
  --parch-dim:  #5e4f37;
  /* --- Accents --- */
  --blueprint:  #3f7da0;
  --blueprint-l:#7cb8d6;
  --verdigris:  #4f9d86;
  --verdigris-d:#2f6f5e;
  --lamp:       #f2b65a;
  --oxblood:    #8a3a32;
  /* --- Text on dark --- */
  --text:       #ddcaa3;
  --text-dim:   #a18c63;
  --line:       rgba(199,154,75,.30);
  --line-soft:  rgba(199,154,75,.16);

  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans:  "Optima", "Gill Sans", "Gill Sans MT", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --mono:  "Courier New", "Courier", ui-monospace, monospace;

  --rail-w: 4px;
  --maxw: 1120px;
}

/* ----------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(16px, 1.05vw + 13px, 19px);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(242,182,90,.10), transparent 60%),
    radial-gradient(140% 120% at 50% 120%, rgba(63,125,160,.08), transparent 55%),
    repeating-linear-gradient(45deg, rgba(0,0,0,.16) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.012) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, var(--ink-2), var(--ink));
  background-attachment: fixed;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brass-lite); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--lamp); }

/* deep vignette */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  box-shadow: inset 0 0 220px 40px rgba(0,0,0,.65);
}
.wrap { position: relative; z-index: 2; }

/* ---- hero emblem medallion (logo) ---- */
.hero__emblem {
  width: clamp(122px, 18vw, 172px); aspect-ratio: 1; margin: 0 auto 24px;
  border-radius: 50%; overflow: hidden; position: relative; z-index: 3;
  border: 3px solid var(--brass);
  box-shadow:
    0 0 0 6px rgba(20,16,11,.92), 0 0 0 7px var(--brass-dark),
    0 12px 32px rgba(0,0,0,.6), 0 0 44px rgba(242,182,90,.25);
}
.hero__emblem img { width: 108%; height: 108%; object-fit: cover; margin: -4%; display: block; }

/* skip link */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 50;
  background: var(--brass); color: var(--ink); padding: 10px 16px;
  border-radius: 3px; font-family: var(--sans); font-weight: 700;
}
.skip:focus { left: 12px; top: 12px; }

/* shared focus ring */
:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---- node thumbnail (tiny framed cover, sepia duotone) ---- */
.node__head { align-items: flex-start; }
.node__titles { flex: 1; min-width: 0; }
.node__thumb {
  flex: none; width: 52px; height: 70px;
  object-fit: cover; object-position: top center; border-radius: 3px;
  border: 1px solid var(--brass-dark); background: #1c130b;
  filter: sepia(.45) saturate(.78) contrast(1.05) brightness(.92);
  box-shadow: 0 2px 6px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.14);
  transition: filter .3s ease, transform .3s ease, box-shadow .3s ease;
}
.node__card:hover .node__thumb,
.node[data-open="true"] .node__thumb {
  filter: none; transform: scale(1.04);
  box-shadow: 0 5px 14px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.2);
}
.node--hunt .node__thumb { border-color: var(--oxblood); }
@media (max-width: 560px) { .node__thumb { width: 46px; height: 62px; } }

/* ---- footer emblem ---- */
.footer-emblem {
  width: 66px; height: 66px; border-radius: 50%; overflow: hidden; margin: 0 auto 18px;
  border: 2px solid var(--brass-dark); box-shadow: 0 0 0 3px rgba(20,16,11,.85), 0 4px 14px rgba(0,0,0,.5);
}
.footer-emblem img { width: 110%; height: 110%; object-fit: cover; margin: -5%; display: block; }

/* small caps plaque text helper */
.smallcaps {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 600;
}

/* ============================================================== HERO ===== */
.hero {
  position: relative;
  padding: clamp(48px, 9vw, 110px) 20px clamp(28px, 5vw, 56px);
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__sky {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(242,182,90,.16), transparent 70%);
}
.hero__airship {
  position: absolute; top: 14%; left: -28%; width: min(360px, 46vw); z-index: 0;
  opacity: .5; color: var(--brass-dark);
  animation: drift 46s linear infinite;
}
.hero__gear { position: absolute; z-index: 0; opacity: .16; color: var(--brass); }
.hero__gear--a { top: -40px; left: -30px; width: 180px; animation: spin 60s linear infinite; }
.hero__gear--b { bottom: -60px; right: -40px; width: 240px; animation: spin 90s linear infinite reverse; }

.hero__inner { position: relative; z-index: 2; max-width: 940px; margin: 0 auto; }
.hero__eyebrow {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .42em;
  font-size: .72rem; color: var(--brass); margin: 0 0 18px; padding-left: .42em;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  line-height: .98;
  margin: 0;
  color: var(--brass-lite);
  letter-spacing: .005em;
  text-shadow:
    0 1px 0 #5a430f,
    0 2px 1px rgba(0,0,0,.6),
    0 0 36px rgba(242,182,90,.22);
}
.hero h1 .ampersand { font-style: italic; color: var(--copper); }
.hero__rule {
  width: 200px; height: 2px; margin: 22px auto 20px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  position: relative;
}
.hero__rule::before, .hero__rule::after {
  content: ""; position: absolute; top: 50%; width: 9px; height: 9px;
  border-radius: 50%; background: var(--brass); transform: translateY(-50%);
  box-shadow: 0 0 8px rgba(242,182,90,.5);
}
.hero__rule::before { left: -4px; } .hero__rule::after { right: -4px; }
.hero__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  color: var(--text); max-width: 680px; margin: 0 auto;
  text-wrap: pretty;
}
.hero__lede em { color: var(--brass-lite); font-style: italic; }

/* ----- legend ----- */
.legend {
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center;
  margin: 30px auto 0; max-width: 760px;
  font-family: var(--sans); font-size: .82rem;
}
.legend__item { display: inline-flex; align-items: center; gap: 9px; color: var(--text-dim); }
.legend__item b { color: var(--text); font-weight: 700; }
.legend__swatch {
  width: 15px; height: 15px; border-radius: 3px; flex: none;
  border: 1px solid rgba(0,0,0,.4);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.25);
}
.sw-proto     { background: var(--blueprint); }
.sw-core      { background: var(--brass); }
.sw-adjacent  { background: var(--verdigris); }
.sw-borderland{ background: var(--copper); }

/* ====================================================== FILTER TABBAR ===== */
.filterbar {
  position: sticky; top: 0; z-index: 20;
  padding: 12px 14px;
  background:
    linear-gradient(180deg, rgba(20,16,11,.96), rgba(20,16,11,.82));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 22px rgba(0,0,0,.4);
}
.filterbar__label {
  display: block; text-align: center; margin: 0 0 10px;
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .28em;
  font-size: .64rem; color: var(--brass);
}
.tablist {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  max-width: var(--maxw); margin: 0 auto;
}
.tab {
  font-family: var(--sans); font-weight: 600; font-size: .82rem;
  letter-spacing: .04em;
  color: var(--text-dim);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 15px;
  cursor: pointer;
  transition: color .2s, background .2s, box-shadow .2s, transform .12s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 1px 2px rgba(0,0,0,.4);
}
.tab:hover { color: var(--brass-lite); border-color: var(--brass); }
.tab:active { transform: translateY(1px); }
.tab[aria-selected="true"] {
  color: var(--ink);
  background: linear-gradient(180deg, var(--brass-lite), var(--brass));
  border-color: var(--brass-dark);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 0 14px rgba(242,182,90,.35);
}
.tab--hunt[aria-selected="true"] {
  background: linear-gradient(180deg, #c6584e, var(--oxblood));
  color: #fff2e6; border-color: #4f1c18;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 0 14px rgba(138,58,50,.5);
}

/* =========================================================== TIMELINE ===== */
.timeline-section { padding: clamp(30px, 5vw, 64px) 18px 20px; }
.timeline {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
}
/* central rail */
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: var(--rail-w); transform: translateX(-50%);
  background:
    linear-gradient(180deg, transparent, var(--brass-dark) 3%, var(--brass-dark) 97%, transparent),
    repeating-linear-gradient(180deg, rgba(0,0,0,.35) 0 6px, transparent 6px 22px);
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), inset 0 0 4px rgba(0,0,0,.6);
}
/* glowing progress fill driven by --progress (0..1) */
.timeline::after {
  content: ""; position: absolute; top: 0; left: 50%; width: var(--rail-w);
  transform: translateX(-50%);
  height: calc(var(--progress, 0) * 100%);
  background: linear-gradient(180deg, var(--lamp), var(--copper));
  box-shadow: 0 0 12px rgba(242,182,90,.6);
  border-radius: 4px; opacity: .9; pointer-events: none;
  transition: height .15s linear;
}

/* ----- era chapter plate ----- */
.chapter {
  position: relative; z-index: 3;
  width: min(660px, 92%);
  margin: clamp(40px, 6vw, 78px) auto clamp(26px, 4vw, 46px);
  text-align: center;
  padding: 22px 30px;
  color: var(--brass-lite);
  background:
    linear-gradient(180deg, var(--panel-2), #1d160e);
  border: 1px solid var(--brass-dark);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 0 24px rgba(0,0,0,.5),
    0 10px 28px rgba(0,0,0,.45);
  /* rivets */
}
.chapter::before, .chapter::after {
  content: ""; position: absolute; top: 10px; width: 9px; height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--brass-lite), var(--brass-dark) 70%);
  box-shadow: 0 1px 1px rgba(0,0,0,.6);
}
.chapter::before { left: 12px; } .chapter::after { right: 12px; }
.chapter__num {
  font-family: var(--sans); font-size: .68rem; letter-spacing: .34em;
  text-transform: uppercase; color: var(--brass); margin: 0 0 6px;
}
.chapter__title {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(1.3rem, 2.6vw, 1.95rem); line-height: 1.12;
  margin: 0; color: var(--brass-lite);
  text-shadow: 0 1px 0 #4a3408;
}
.chapter__range {
  display: inline-block; margin-top: 10px;
  font-family: var(--mono); font-size: .9rem; letter-spacing: .08em;
  color: var(--copper);
}
/* reveal animation */
.chapter { opacity: 0; transform: perspective(800px) rotateX(-32deg) translateY(20px); transform-origin: top center; }
.chapter.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1); }

/* ----- node ----- */
.node {
  position: relative; z-index: 2;
  width: calc(50% - 46px);
  margin: 16px 0;
}
.node--left  { margin-right: auto; }
.node--right { margin-left: auto; }

/* connector arm + bolt to the rail */
.node__rail {
  position: absolute; top: 30px; height: 2px; width: 46px;
  background: linear-gradient(90deg, var(--brass-dark), var(--brass));
}
.node--left  .node__rail { right: -46px; }
.node--right .node__rail { left: -46px; background: linear-gradient(90deg, var(--brass), var(--brass-dark)); }
.node__bolt {
  position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle at 34% 30%, var(--brass-lite), var(--brass) 45%, var(--brass-dark) 80%);
  box-shadow: 0 0 0 2px rgba(0,0,0,.45), 0 0 10px rgba(242,182,90,.35);
}
.node--left  .node__bolt { right: -8px; }
.node--right .node__bolt { left: -8px; }

.node__card {
  position: relative;
  background:
    linear-gradient(180deg, var(--parchment), var(--parchment-2));
  color: var(--parch-ink);
  border: 1px solid #b89d6a;
  border-left: 5px solid var(--brass);
  border-radius: 7px;
  padding: 16px 18px 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.5);
}
.node--left .node__card { border-left: 1px solid #b89d6a; border-right: 5px solid var(--brass); }
/* classification accent on the card edge */
.node--proto      .node__card { --accent: var(--blueprint); }
.node--core       .node__card { --accent: var(--brass); }
.node--adjacent   .node__card { --accent: var(--verdigris); }
.node--borderland .node__card { --accent: var(--copper); }
.node--right .node__card { border-left-color: var(--accent); }
.node--left  .node__card { border-right-color: var(--accent); }

.node__head { display: flex; align-items: baseline; gap: 14px; }
.node__year {
  font-family: var(--mono); font-weight: 700;
  font-size: 1.5rem; line-height: 1; color: var(--copper-dark);
  flex: none; letter-spacing: .01em;
}
.node__title {
  font-family: var(--serif); font-weight: 800;
  font-size: 1.18rem; line-height: 1.18; margin: 0; color: var(--parch-ink);
}
.node__media {
  margin: 4px 0 0; font-size: .9rem; font-style: italic; color: var(--parch-dim);
}
.node__badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }

.node__toggle {
  margin-top: 12px;
  font-family: var(--sans); font-weight: 600; font-size: .78rem; letter-spacing: .04em;
  color: var(--copper-dark); background: transparent;
  border: 1px solid rgba(125,68,39,.4); border-radius: 5px;
  padding: 6px 12px; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.node__toggle:hover { background: rgba(177,106,60,.12); border-color: var(--copper); }
.node__toggle .chev { display: inline-block; transition: transform .25s; }
.node__toggle[aria-expanded="true"] .chev { transform: rotate(90deg); }

.node__why {
  margin-top: 12px;
  border-top: 1px dashed rgba(125,68,39,.35);
  padding-top: 12px;
}
.node__why p { margin: 0; font-size: .98rem; color: #3b2e1d; text-wrap: pretty; }
/* JS-enhanced collapse: only when .js present on <html> */
.js .node__why {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  border-top: 0; padding-top: 0; margin-top: 0;
  transition: grid-template-rows .32s ease, opacity .25s ease, margin-top .25s, padding-top .25s;
}
.js .node__why > div { overflow: hidden; }
.js .node[data-open="true"] .node__why {
  grid-template-rows: 1fr; opacity: 1; margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed rgba(125,68,39,.35);
}

/* ----- Stephen Hunt cluster styling ----- */
.node--hunt .node__card {
  background: linear-gradient(180deg, #f1e4cb, #e7d3a8);
  border-color: #6f2c27;
}
.node--hunt.node--right .node__card { border-left-color: var(--oxblood); border-left-width: 5px; }
.node--hunt.node--left  .node__card { border-right-color: var(--oxblood); border-right-width: 5px; }
.node--hunt .node__bolt {
  background: radial-gradient(circle at 34% 30%, #d98a7f, var(--oxblood) 70%);
  box-shadow: 0 0 0 2px rgba(0,0,0,.45), 0 0 10px rgba(138,58,50,.5);
}
.hunt-ribbon {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 12px;
  font-family: var(--sans); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 700;
  color: #f3e4d0; background: linear-gradient(180deg, #9b443b, var(--oxblood));
  border: 1px solid #4f1c18; border-radius: 4px; padding: 5px 11px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.hunt-ribbon svg { width: 13px; height: 13px; flex: none; }

/* ===== Jackelian focus plaque (shown only when Hunt filter active) ===== */
.hunt-intro {
  display: none;
  width: min(720px, 94%); margin: 8px auto 4px;
  background: linear-gradient(180deg, #2a1714, #1c100e);
  border: 1px solid #6f2c27; border-radius: 8px;
  padding: 22px 26px; text-align: center;
  box-shadow: inset 0 0 24px rgba(0,0,0,.5), 0 10px 24px rgba(0,0,0,.4);
}
.timeline[data-filter="hunt"] .hunt-intro { display: block; }
.hunt-intro h3 {
  font-family: var(--serif); font-weight: 800; color: #e7b3a8;
  font-size: 1.4rem; margin: 0 0 8px;
}
.hunt-intro p { margin: 0 auto; max-width: 560px; color: var(--text); font-size: .98rem; }
.hunt-intro .smallcaps { color: var(--brass); font-size: .66rem; display: block; margin-bottom: 12px; }

/* ====================================================== BADGES ============ */
.badge, .tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--sans); font-weight: 700; font-size: .64rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 4px; white-space: nowrap;
  border: 1px solid rgba(0,0,0,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.badge--book  { background: var(--brass);      color: #2a1e05; }
.badge--film  { background: var(--copper);     color: #2c1407; }
.badge--tv    { background: var(--blueprint);  color: #06222f; }
.badge--anime { background: var(--verdigris);  color: #06241d; }
.badge--manga { background: #6fb39e;           color: #06241d; }
.badge--comic { background: #8f76a8;           color: #1c0f29; }
.badge--rpg   { background: #8a924f;           color: #1f2406; }
.badge--game  { background: #5f8298;           color: #06202c; }
.badge--term  { background: var(--lamp);       color: #3a2403; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 0 10px rgba(242,182,90,.5); }
.badge--hunt  { background: var(--oxblood);    color: #f4ddd2; }

/* classification tag = outlined, lighter */
.tag { background: transparent; box-shadow: none; }
.tag--proto      { color: #1f4d63; border-color: var(--blueprint); }
.tag--core       { color: #6a4e12; border-color: var(--brass-dark); }
.tag--adjacent   { color: #1f5747; border-color: var(--verdigris-d); }
.tag--borderland { color: #7d4427; border-color: var(--copper); }

/* ===================================== 1987 PRESSURE-VALVE STAMP ========== */
.stamp {
  position: relative; z-index: 4;
  width: min(820px, 96%); margin: 40px auto;
  background:
    linear-gradient(180deg, #34281a, #1c130b);
  border: 2px solid var(--brass-dark);
  border-radius: 12px;
  padding: 34px 30px 30px;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.1),
    inset 0 0 40px rgba(0,0,0,.6),
    0 16px 40px rgba(0,0,0,.55),
    0 0 50px rgba(242,182,90,.12);
  overflow: hidden;
}
/* corner rivets */
.stamp::before, .stamp::after {
  content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--brass-lite), var(--brass-dark) 72%);
  box-shadow: 0 1px 2px rgba(0,0,0,.7); top: 12px;
}
.stamp::before { left: 14px; } .stamp::after { right: 14px; }
.stamp__pre {
  font-family: var(--mono); letter-spacing: .12em; color: var(--copper);
  margin: 0 0 6px; font-size: .92rem;
}
.stamp__gauge {
  width: 84px; height: 84px; margin: 4px auto 14px; color: var(--brass);
}
.stamp__word {
  display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(2px, .6vw, 7px);
  margin: 8px 0 10px;
}
.stamp__word span {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(2.1rem, 8vw, 4.6rem); line-height: .9;
  color: var(--brass-lite);
  text-shadow: 0 2px 0 #5a430f, 0 3px 6px rgba(0,0,0,.6);
}
/* stamping animation: letters start lifted + faint, slam down */
.stamp__word span { opacity: 0; transform: translateY(-26px) scale(1.5); }
.stamp.stamped .stamp__word span {
  animation: slam .42s cubic-bezier(.2,1.4,.3,1) forwards;
}
.stamp__by {
  font-family: var(--serif); font-style: italic; font-size: 1.15rem;
  color: var(--lamp); margin: 0 0 14px;
}
.stamp__why { max-width: 560px; margin: 0 auto 16px; color: var(--text); font-size: .98rem; }
.stamp .badge--term { font-size: .72rem; }
/* steam puffs */
.stamp__steam { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.stamp__steam i {
  position: absolute; bottom: 24%; left: 50%; width: 46px; height: 46px;
  border-radius: 50%; background: radial-gradient(circle, rgba(236,224,198,.5), transparent 70%);
  opacity: 0;
}
.stamp.stamped .stamp__steam i { animation: puff 2.6s ease-out forwards; }
.stamp.stamped .stamp__steam i:nth-child(2) { left: 40%; animation-delay: .2s; }
.stamp.stamped .stamp__steam i:nth-child(3) { left: 60%; animation-delay: .35s; }
.stamp__needle { transform-box: fill-box; transform-origin: 50% 92%; }
.stamp.stamped .stamp__needle { animation: swing 1.4s cubic-bezier(.3,1.5,.4,1) forwards; }

/* ===================================== BRANCH (tracks fork) ============== */
.branch {
  position: relative; z-index: 3;
  width: min(880px, 96%); margin: 6px auto 30px; text-align: center;
}
.branch__label {
  font-family: var(--serif); font-style: italic; color: var(--brass);
  font-size: 1.05rem; margin: 0 0 16px;
}
.branch__fan { width: 100%; height: 70px; color: var(--brass-dark); }
.branch__tracks {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 6px;
}
.branch__tracks span {
  font-family: var(--sans); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 4px; padding: 5px 10px;
}

/* ============================= node reveal (mechanical) =================== */
.node { opacity: 0; transform: translateY(30px); }
.node--left  { transform: translate(-26px, 30px) rotate(-1.5deg); }
.node--right { transform: translate(26px, 30px) rotate(1.5deg); }
.node.in { opacity: 1; transform: none; transition: opacity .55s ease, transform .65s cubic-bezier(.2,.8,.2,1); }
.stamp, .branch { opacity: 0; transform: translateY(26px); }
.stamp.in, .branch.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1); }

/* filtered-out */
.node.is-hidden, .chapter.is-hidden, .branch.is-hidden, .stamp.is-hidden { display: none; }

/* spinning gear utility (decorative) */
.spin { animation: spin 40s linear infinite; }
.spin--rev { animation: spin 52s linear infinite reverse; }

/* ============================================== FULL TABLE / SEO ========= */
.full {
  max-width: var(--maxw); margin: 30px auto 0; padding: clamp(36px, 5vw, 70px) 18px 40px;
  border-top: 1px solid var(--line);
}
.full__head { text-align: center; margin-bottom: 28px; }
.full__head h2 {
  font-family: var(--serif); font-weight: 800; color: var(--brass-lite);
  font-size: clamp(1.5rem, 3.4vw, 2.3rem); margin: 0 0 8px;
}
.full__head p { color: var(--text-dim); margin: 0; font-size: .98rem; }

.toc-group { margin-bottom: 30px; }
.toc-group > h3 {
  font-family: var(--serif); font-weight: 800; color: var(--copper);
  font-size: 1.2rem; margin: 0 0 4px;
  border-bottom: 1px solid var(--line-soft); padding-bottom: 8px;
}
.toc-group > h3 small { font-family: var(--mono); color: var(--text-dim); font-weight: 400; font-size: .8rem; margin-left: 8px; }

table.full__table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.full__table caption { text-align: left; color: var(--text-dim); font-style: italic; padding: 6px 0; }
.full__table th, .full__table td {
  text-align: left; padding: 9px 12px; vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.full__table thead th {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .1em;
  font-size: .68rem; color: var(--brass); border-bottom: 1px solid var(--line);
}
.full__table td.col-year { font-family: var(--mono); color: var(--copper); white-space: nowrap; }
.full__table td.col-title { color: var(--text); font-weight: 600; }
.full__table td.col-title .hunt-flag { color: #e08c80; font-style: italic; font-weight: 400; font-size: .82rem; }
.full__table td.col-why { color: var(--text-dim); }
.full__table tbody tr:hover { background: rgba(199,154,75,.05); }

/* ================================================= FOOTER / CTA ========== */
.cta { text-align: center; padding: 10px 18px 8px; }
.cta__btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  font-size: .82rem; color: var(--ink); text-decoration: none;
  background: linear-gradient(180deg, var(--brass-lite), var(--brass));
  border: 1px solid var(--brass-dark); border-radius: 8px;
  padding: 14px 28px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 8px 20px rgba(0,0,0,.4), 0 0 18px rgba(242,182,90,.25);
  transition: transform .14s, box-shadow .2s;
}
.cta__btn:hover { transform: translateY(-2px); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 12px 26px rgba(0,0,0,.5), 0 0 26px rgba(242,182,90,.4); }
.cta__btn svg { width: 18px; height: 18px; }

.site-footer {
  text-align: center; padding: 40px 18px 56px; margin-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text-dim); font-size: .92rem;
}
.site-footer strong { color: var(--brass-lite); font-family: var(--serif); font-weight: 700; }
.site-footer .footer-rule {
  width: 140px; height: 1px; margin: 0 auto 20px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
}
.site-footer a { font-family: var(--sans); letter-spacing: .04em; }

/* noscript notice */
.noscript-note {
  max-width: var(--maxw); margin: 16px auto 0; padding: 14px 18px;
  background: rgba(138,58,50,.16); border: 1px solid var(--oxblood); border-radius: 6px;
  color: var(--text); text-align: center; font-size: .92rem;
}

/* =================================================== RESPONSIVE =========== */
@media (max-width: 860px) {
  .timeline::before, .timeline::after { left: 26px; }
  .node { width: auto; margin-left: 56px; }
  .node--left, .node--right { margin-left: 56px; margin-right: 0; }
  .node--left  { transform: translate(26px, 30px) rotate(1deg); }
  .node--left .node__rail, .node--right .node__rail { left: -56px; right: auto; width: 56px;
    background: linear-gradient(90deg, var(--brass), var(--brass-dark)); }
  .node--left .node__bolt, .node--right .node__bolt { left: -8px; right: auto; }
  .node--left .node__card { border-right: 1px solid #b89d6a; border-left: 5px solid var(--accent, var(--brass)); }
  .node--right .node__card { border-left: 5px solid var(--accent, var(--brass)); }
  .node--hunt.node--left .node__card,
  .node--hunt.node--right .node__card { border-left-color: var(--oxblood); border-right-color: #6f2c27; }
  .chapter { width: auto; margin-left: 0; margin-right: 0; }
}
@media (max-width: 560px) {
  .node__head { flex-direction: column; gap: 2px; }
  .node__year { font-size: 1.3rem; }
  .tab { font-size: .76rem; padding: 7px 12px; }
  .full__table thead { position: absolute; left: -9999px; }
  .full__table, .full__table tbody, .full__table tr, .full__table td { display: block; width: 100%; }
  .full__table tr { border: 1px solid var(--line-soft); border-radius: 6px; margin-bottom: 12px; padding: 8px 10px; }
  .full__table td { border: 0; padding: 4px 0; }
  .full__table td::before {
    content: attr(data-label) "  "; font-family: var(--sans); text-transform: uppercase;
    letter-spacing: .08em; font-size: .62rem; color: var(--brass); display: block;
  }
}

/* =================================================== REDUCED MOTION ======= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * , *::before, *::after { animation: none !important; transition: none !important; }
  .node, .chapter, .stamp, .branch { opacity: 1 !important; transform: none !important; }
  .stamp__word span { opacity: 1 !important; transform: none !important; }
  .timeline::after { display: none; }
  .hero__airship { display: none; }
}

/* =================================================== KEYFRAMES ============ */
@keyframes spin  { to { transform: rotate(360deg); } }
@keyframes drift { 0% { transform: translateX(0); } 100% { transform: translateX(170vw); } }
@keyframes slam  { 0% { opacity: 0; transform: translateY(-26px) scale(1.5); } 70% { opacity: 1; transform: translateY(3px) scale(.96); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes puff  { 0% { opacity: 0; transform: translateY(0) scale(.5); } 25% { opacity: .7; } 100% { opacity: 0; transform: translateY(-120px) scale(2.4); } }
@keyframes swing { 0% { transform: rotate(-58deg); } 60% { transform: rotate(28deg); } 100% { transform: rotate(8deg); } }
