/* =========================================================================
   Feudline - shared stylesheet for index.html, lore.html, built.html
   Colour rule: GOLD is the factions, the heraldry, the human side.
                PURPLE is the Vein, the corruption, the thing underneath.
                Keep them on their own jobs and the page stays coherent.
   ========================================================================= */

:root {
  --void:   #08060d;
  --deep:   #0d0a16;
  --panel:  #140f22;
  --edge:   rgba(160,130,220,.16);
  --edge-2: rgba(160,130,220,.34);
  --bone:   #f0ebfa;
  --dim:    #aba1c4;
  --far:    #7d7495;
  --vein:   #8b5cf6;
  --hot:    #c9a7ff;
  --ember:  #e8825a;
  /* pulled from the crest */
  --gold:   #d7a94a;
  --gold-2: #f0cd7a;
  --gold-3: #8a6a24;
  --gold-w: rgba(215,169,74,.14);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: "Manrope", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px; line-height: 1.62; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
::selection { background: var(--vein); color: #fff; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 {
  font-family: "Oxanium", "Segoe UI", Arial, sans-serif;
  font-weight: 800; letter-spacing: -0.005em; line-height: 1.04; text-wrap: balance; margin: 0;
}
.m { font-family: "Chivo Mono", ui-monospace, monospace; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; }
.wrap { width: min(1280px, 100% - 44px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 44px); margin-inline: auto; }

/* ---------------- ambient corruption layer ----------------
   Fixed canvas painted by roots.js, panned by scroll. STATIC: nothing grows,
   nothing animates. Sits above the page background, below all content. */
body { position: relative; }
.rootlayer {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}
/* everything real sits above the roots */
.hero, .site-head, .bar, main, footer, .page-hero { position: relative; z-index: 1; }

/* ---------------- site nav ---------------- */
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.logo img { width: 40px; height: 40px; display: block; }
.logo span { font-family: "Oxanium", Arial, sans-serif; font-weight: 800; font-size: 20px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--dim); padding: 8px 14px; border-radius: 999px;
  font-family: "Chivo Mono", monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  transition: color .18s, background .18s;
}
.nav a:hover { color: var(--gold-2); background: var(--gold-w); }
.nav a[aria-current="page"] { color: var(--gold-2); background: var(--gold-w); }

/* sticky header used on the subpages */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(10,8,18,.82); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(215,169,74,.22); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; padding: 14px 0; }
.site-head .push { flex: 1 1 auto; }

/* ---------------- hero (home) ---------------- */
.hero { position: relative; height: min(84vh, 800px); min-height: 520px; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; background: linear-gradient(176deg, #0a0712 0%, #180f2a 46%, #2d1650 100%); }
.hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* banner art stands in for the flyby: blurred hard so its own wordmark reads as
   texture rather than competing with the crest sitting on top of it */
.hero-art {
  position: absolute; inset: -6%;
  background: url("/assets/banner.jpg") center/cover no-repeat;
  filter: blur(26px) saturate(1.25) brightness(.72);
  transform: scale(1.08);
}
#motes { position: absolute; inset: 0; width: 100%; height: 100%; }
.beam {
  position: absolute; left: 50%; bottom: -8%; width: min(320px, 30vw); height: 92%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(201,167,255,0) 0%, rgba(139,92,246,.4) 44%, rgba(201,167,255,.75) 100%);
  filter: blur(32px); animation: pulse 8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:.72 } 50% { opacity:1 } }
.hero-shade { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,6,13,.78) 0%, rgba(8,6,13,.06) 32%, rgba(8,6,13,.55) 70%, var(--void) 100%); }
.hero-top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; padding: 20px 0; }
.hero-top .wrap { display: flex; align-items: center; gap: 18px; }
.hero-top .push { flex: 1 1 auto; }
.status { display: inline-flex; align-items: center; gap: 9px; color: var(--dim);
  background: rgba(20,15,34,.55); border-radius: 999px; padding: 7px 15px; backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(215,169,74,.22); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 10px 2px rgba(139,92,246,.9); }
.hero-roots { position: absolute; inset: 0; z-index: 1; pointer-events: none; display: block; }
.hero-inner { position: relative; z-index: 2; padding-bottom: 52px; }
.crest { display: block; width: clamp(230px, 34vw, 420px); height: auto; margin: 0 0 6px -12px;
  filter: drop-shadow(0 18px 46px rgba(0,0,0,.62)); }
.hero-sub { margin: 16px 0 0; font-size: clamp(1.05rem, 1.9vw, 1.3rem); color: var(--dim); max-width: 34ch; }
.hero-sub b { color: var(--gold-2); font-weight: 700; }
.pending-tag { position: absolute; right: 26px; bottom: 24px; z-index: 3; color: var(--far);
  background: rgba(13,10,22,.6); border-radius: 999px; padding: 7px 14px; backdrop-filter: blur(8px); }

/* ---------------- connect bar ---------------- */
.bar { position: sticky; top: 0; z-index: 30; background: rgba(10,8,18,.8); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(215,169,74,.24); }
.bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; padding: 13px 0; }
.addr { font-family: "Chivo Mono", monospace; font-size: 16px; font-weight: 500; color: var(--gold-2); }
.bar .far { color: var(--far); }
.bar .push { flex: 1 1 auto; }
.copybtn { font-family: "Chivo Mono", monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  background: linear-gradient(100deg, var(--gold), #b98c30); border: 0; color: #1c1405; font-weight: 500;
  padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: filter .18s, transform .18s; }
.copybtn:hover { filter: brightness(1.12); transform: translateY(-1px); }

/* ---------------- section heads ---------------- */
.head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 30px; position: relative; padding-bottom: 15px; }
.head::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(215,169,74,.42), rgba(215,169,74,.06) 42%, transparent 70%); }
.head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 74px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold-3)); }
.head h2 { font-size: clamp(1.65rem, 3.4vw, 2.3rem); }
.head .m { color: var(--far); margin-left: auto; text-align: right; }

/* ---------------- showcase rows ---------------- */
.showcase { padding: 34px 0 20px; }
.row { position: relative; padding: 58px 0; }
.bleed { position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  overflow: hidden; pointer-events: none; }
.bleed i {
  position: absolute; inset: -18%; display: block;
  background-image: var(--shot, none); background-color: #1a1030;
  background-size: cover; background-position: center;
  filter: blur(78px) saturate(1.5); opacity: .48; transform: scale(1.15);
}
.bleed::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--void) 0%, rgba(8,6,13,0) 26%, rgba(8,6,13,0) 74%, var(--void) 100%),
    linear-gradient(180deg, var(--void) 0%, rgba(8,6,13,0) 22%, rgba(8,6,13,0) 78%, var(--void) 100%);
}
.row .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: 26px 60px; align-items: center; }
@media (min-width: 920px) {
  .row .wrap { grid-template-columns: 1.12fr .88fr; gap: 64px; }
  .row.flip .scene { order: 2; }
}
.scene { position: relative; }
.scene .art {
  width: 100%; aspect-ratio: 16 / 10; border-radius: 22px;
  background-image: var(--shot, none); background-size: cover; background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 82% 84% at 50% 50%, #000 46%, rgba(0,0,0,.55) 74%, transparent 100%);
  mask-image: radial-gradient(ellipse 82% 84% at 50% 50%, #000 46%, rgba(0,0,0,.55) 74%, transparent 100%);
  display: grid; place-items: center; overflow: hidden;
}
.scene .art.hasph, .tile .art.hasph {
  background-image:
    radial-gradient(ellipse 58% 66% at 50% 116%, rgba(139,92,246,.5), transparent 66%),
    linear-gradient(162deg, #150f26 0%, #241541 100%);
}
.scene .art video, .scene .art img { width: 100%; height: 100%; object-fit: cover; }
.ph { text-align: center; padding: 22px; }
.ph .lbl { color: var(--gold-2); display: block; margin-bottom: 8px; }
.ph .note { color: var(--far); font-size: .9rem; max-width: 30ch; margin: 0 auto; line-height: 1.5; }

.rt .tag { color: var(--gold-2); display: block; margin-bottom: 13px; font-size: 14px; font-weight: 500; letter-spacing: .1em; }
.rt h2 { font-size: clamp(1.85rem, 3.7vw, 2.8rem); }
.rt p { margin: 15px 0 0; color: var(--dim); max-width: 44ch; }
.spec { margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.spec span {
  font-family: "Chivo Mono", monospace; font-size: 12px; letter-spacing: .03em;
  color: var(--gold-2); background: var(--gold-w); border-radius: 999px; padding: 7px 14px;
  font-variant-numeric: tabular-nums; backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(215,169,74,.2);
}

/* ---------------- world mosaic ---------------- */
.world { padding: 92px 0 0; position: relative; }
.mosaic { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: start; }
@media (min-width: 900px) { .mosaic { grid-template-columns: repeat(12, 1fr); column-gap: 32px; row-gap: 42px; } }
.tile { position: relative; }
@media (min-width: 900px) {
  .tile.a { grid-column: span 7; }
  .tile.b { grid-column: span 5; margin-top: 56px; }
  .tile.c { grid-column: span 5; }
  .tile.d { grid-column: span 7; margin-top: 56px; }
  .tile.e { grid-column: span 7; }
  .tile.f { grid-column: span 5; margin-top: 56px; }
}
.tile .glow {
  position: absolute; left: 5%; right: 5%; top: 8%; bottom: 22%; border-radius: 48px; z-index: 0;
  background-image: var(--shot, none); background-color: #20143c;
  background-size: cover; background-position: center;
  filter: blur(58px) saturate(1.5); opacity: .5;
}
.tile .art {
  position: relative; z-index: 1; width: 100%; border-radius: 22px;
  background-image: var(--shot, none); background-size: cover; background-position: center;
  display: grid; place-items: center; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 88% 90% at 50% 50%, #000 58%, rgba(0,0,0,.6) 82%, transparent 100%);
  mask-image: radial-gradient(ellipse 88% 90% at 50% 50%, #000 58%, rgba(0,0,0,.6) 82%, transparent 100%);
}
.tile.a .art, .tile.d .art { aspect-ratio: 16 / 10; }
.tile.b .art, .tile.f .art { aspect-ratio: 4 / 5; }
.tile.c .art { aspect-ratio: 1 / 1; }
.tile.e .art { aspect-ratio: 21 / 9; }
.tile figcaption { position: relative; z-index: 2; margin-top: 14px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tile figcaption b { font-family: "Oxanium", Arial, sans-serif; font-weight: 700; font-size: 1.08rem; letter-spacing: .02em; color: var(--gold-2); }
.tile figcaption span { color: var(--far); font-size: .9rem; }

/* ---------------- systems flow ---------------- */
.systems { padding: 92px 0 0; }
.flow { columns: 1; column-gap: 54px; }
@media (min-width: 700px) { .flow { columns: 2; } }
@media (min-width: 1060px) { .flow { columns: 3; } }
.f { break-inside: avoid; margin: 0 0 26px; }
.f h3 { font-size: 1.06rem; font-weight: 700; letter-spacing: 0; display: flex; align-items: baseline; gap: 10px; }
.f h3::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; transform: translateY(-3px); }
.f p { margin: 5px 0 0 16px; color: var(--far); font-size: .95rem; line-height: 1.55; }

/* ---------------- rank stair (accordion) ---------------- */
.ranks { padding: 96px 0 0; }
.stair { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.step { border-radius: 18px; overflow: hidden;
  background: linear-gradient(100deg, rgba(139,92,246,calc(var(--o) * .3)) 0%, rgba(139,92,246,calc(var(--o) * .07)) 46%, rgba(139,92,246,0) 84%);
  box-shadow: inset 0 0 0 1px rgba(215,169,74,calc(.05 + var(--o) * .17)); }
@media (min-width: 780px) { .step { margin-left: calc(var(--i) * 26px); } }
.step-btn {
  width: 100%; text-align: left; background: none; border: 0; color: inherit; cursor: pointer; font: inherit;
  display: grid; grid-template-columns: 58px 1fr auto; gap: 6px 18px; align-items: center;
  padding: 13px 20px 13px 13px;
  transition: background .18s;
}
@media (min-width: 780px) { .step-btn { grid-template-columns: 58px 190px 1fr auto auto; } }
.step-btn:hover { background: rgba(215,169,74,.06); }
.rank-icon {
  width: 58px; height: 58px; border-radius: 15px;
  background-color: rgba(215,169,74,.09);
  background-image: var(--icon, none);
  background-size: 62%; background-position: center; background-repeat: no-repeat;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(215,169,74,calc(.16 + var(--o) * .5));
}
.rank-icon span { font-family: "Chivo Mono", monospace; font-size: 10px; color: var(--far); letter-spacing: .1em; }
.step .name { font-family: "Oxanium", Arial, sans-serif; font-weight: 700; font-size: 1.14rem; letter-spacing: .05em; text-transform: uppercase; color: var(--gold-2); }
.step .perk { color: var(--far); font-size: .93rem; }
.step .cost { font-family: "Chivo Mono", monospace; font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chev { width: 11px; height: 11px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(45deg) translate(-2px,-2px); transition: transform .28s ease; justify-self: end; }
.step-btn[aria-expanded="true"] .chev { transform: rotate(225deg) translate(-3px,-3px); }
.step-panel { height: 0; overflow: hidden; transition: height .32s cubic-bezier(.4,0,.2,1); }
.step-panel-in { padding: 4px 22px 22px 79px; }
@media (max-width: 779px) { .step-panel-in { padding-left: 22px; } }
.step-panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
@media (min-width: 900px) { .step-panel ul { grid-template-columns: 1fr 1fr; gap: 7px 30px; } }
.step-panel li { display: flex; gap: 11px; align-items: baseline; color: var(--dim); font-size: .96rem; }
.step-panel li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; transform: translateY(-3px); }
.step-panel li code { font-family: "Chivo Mono", monospace; font-size: .88em; color: var(--gold-2); }
.step-panel .inherit { color: var(--far); font-style: italic; }
.step-panel .foot { margin: 14px 0 0; color: var(--far); font-size: .88rem; }
.ranks-note { margin-top: 20px; color: var(--far); }

/* ---------------- creed ---------------- */
.creed { margin-top: 104px; padding: 100px 0; position: relative; overflow: hidden; }
.creed::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 90% at 50% 50%, rgba(139,92,246,.16), transparent 68%); }
.creed .wrap { position: relative; max-width: 960px; }
.creed .m { color: var(--gold); }
.creed h2 { margin: 16px 0 20px; font-size: clamp(2rem, 5.6vw, 3.8rem); }
.creed h2 em { font-style: normal; color: var(--gold-2); }
.creed p { margin: 0; color: var(--dim); max-width: 54ch; }
.nolist { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 30px; }
.nolist span { display: inline-flex; align-items: center; gap: 10px; color: var(--dim); font-size: 1rem; }
.nolist span::before {
  content: "\00d7"; color: var(--ember); font-size: 1.05em; line-height: 1;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(232,130,90,.13); display: grid; place-items: center; flex: 0 0 auto;
}

/* ---------------- donate ---------------- */
.upkeep { padding: 40px 0 0; }
.upkeep .body { display: grid; grid-template-columns: 1fr; gap: 30px 60px; margin-top: 18px; }
@media (min-width: 900px) { .upkeep .body { grid-template-columns: 1.2fr .8fr; align-items: center; } }
.upkeep p { margin: 14px 0 0; color: var(--dim); max-width: 47ch; }
.give { display: flex; flex-direction: column; gap: 11px; }
.give a { text-decoration: none; padding: 17px 24px; border-radius: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: "Chivo Mono", monospace; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  transition: transform .18s, filter .18s, background .18s; }
.give .p1 { background: linear-gradient(100deg, var(--gold-2), var(--gold)); color: #1c1405; font-weight: 500; }
.give .p1:hover { filter: brightness(1.08); transform: translateY(-2px); }
.give .p2 { background: rgba(215,169,74,.1); color: var(--gold-2); box-shadow: inset 0 0 0 1px rgba(215,169,74,.28); }
.give .p2:hover { background: rgba(215,169,74,.18); transform: translateY(-2px); }

/* ---------------- footer ---------------- */
footer { margin-top: 84px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding: 24px 0 56px; color: var(--far);
  box-shadow: 0 -1px 0 rgba(215,169,74,.2); }
footer .push { flex: 1; }
footer img { width: 26px; height: 26px; display: block; }
footer .brand { color: var(--gold-2); }
footer a { text-decoration: none; }
footer a:hover { color: var(--gold-2); }

/* =========================================================================
   Subpage furniture: lore.html + built.html
   ========================================================================= */
.page-hero { position: relative; padding: 76px 0 44px; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 130%;
  background: radial-gradient(ellipse 46% 60% at 50% 0%, rgba(139,92,246,.22), transparent 70%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-hero .m { color: var(--gold); }
.page-hero h1 { margin: 14px 0 0; font-size: clamp(2.4rem, 6.6vw, 4.4rem); }
.page-hero .stand { margin: 20px 0 0; color: var(--dim); font-size: clamp(1.05rem, 1.8vw, 1.24rem); max-width: 56ch; }
.rule-gold { height: 3px; width: 74px; border-radius: 3px; margin-top: 26px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold-3)); }

/* long-form reading column */
.prose { padding: 20px 0 0; }
.prose h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.05rem); margin: 62px 0 16px;
  display: flex; align-items: baseline; gap: 14px;
}
.prose h2 .num { font-family: "Chivo Mono", monospace; font-size: 13px; letter-spacing: .14em; color: var(--gold); flex: 0 0 auto; }
.prose h3 { font-size: 1.16rem; margin: 34px 0 10px; color: var(--gold-2); }
.prose p { margin: 0 0 1.05em; color: var(--dim); }
.prose p:last-child { margin-bottom: 0; }
.prose p strong, .prose li strong { color: var(--bone); font-weight: 700; }
.prose .lead { font-size: 1.12rem; color: var(--bone); }
.prose ul { margin: 0 0 1.2em; padding: 0; list-style: none; display: grid; gap: 9px; }
.prose ul li { display: flex; gap: 12px; align-items: baseline; color: var(--dim); }
.prose ul li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; transform: translateY(-3px); }
.prose code { font-family: "Chivo Mono", monospace; font-size: .89em; color: var(--gold-2); }

.callout {
  position: relative; overflow: hidden;
  margin: 34px 0; padding: 26px 30px; border-radius: 18px;
  background: linear-gradient(100deg, rgba(215,169,74,.09), rgba(215,169,74,.02) 70%);
  box-shadow: inset 0 0 0 1px rgba(215,169,74,.24);
}
/* a little of the Vein creeping in at the corner of every aside */
.callout::after {
  content: ""; position: absolute; right: -26px; top: -26px;
  width: 132px; height: 132px; pointer-events: none;
  background:
    radial-gradient(circle at 74% 26%, rgba(139,92,246,.34), transparent 62%),
    radial-gradient(circle at 88% 12%, rgba(201,167,255,.3), transparent 44%);
}
.callout p { color: var(--bone); margin: 0; }
.callout .m { color: var(--gold); display: block; margin-bottom: 10px; }

.pull {
  position: relative;
  margin: 44px 0; padding-left: 26px;
  border-left: 3px solid var(--gold);
  font-family: "Oxanium", Arial, sans-serif; font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 1.72rem); line-height: 1.24; color: var(--bone); text-wrap: balance;
}
/* the gold rule frays into the Vein at its base */
.pull::before {
  content: ""; position: absolute; left: -3px; bottom: -14px;
  width: 3px; height: 34px; border-radius: 3px;
  background: linear-gradient(180deg, var(--gold), rgba(139,92,246,.85) 46%, rgba(139,92,246,0));
}
.pull::after {
  content: ""; position: absolute; left: -13px; bottom: -18px;
  width: 24px; height: 24px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(139,92,246,.4), transparent 68%);
}

/* glossary */
.glossary { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px 34px; margin: 8px 0 0; }
.glossary div { margin: 0; }
.glossary dt { font-family: "Chivo Mono", monospace; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 6px; }
.glossary dd { margin: 0; color: var(--dim); font-size: .95rem; line-height: 1.55; }

/* cross-section figure */
.figwrap { overflow-x: auto; border-radius: 18px; background: linear-gradient(160deg, #100b1c, #180f2a);
  box-shadow: inset 0 0 0 1px rgba(215,169,74,.16); padding: 10px; margin-top: 12px; }
.figwrap svg { display: block; min-width: 780px; width: 100%; height: auto; }
figure.diagram { margin: 34px 0 0; }
figure.diagram figcaption { margin-top: 12px; color: var(--far); font-size: .9rem; }

/* next-page link */
.next {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 76px; padding: 26px 30px; border-radius: 20px; text-decoration: none;
  background: linear-gradient(100deg, rgba(215,169,74,.1), rgba(139,92,246,.08) 80%);
  box-shadow: inset 0 0 0 1px rgba(215,169,74,.22);
  transition: transform .18s, background .18s;
}
.next:hover { transform: translateY(-2px); background: linear-gradient(100deg, rgba(215,169,74,.16), rgba(139,92,246,.12) 80%); }
.next .m { color: var(--gold); display: block; margin-bottom: 6px; }
.next b { font-family: "Oxanium", Arial, sans-serif; font-weight: 800; font-size: 1.3rem; }
.next .arrow { font-size: 1.5rem; color: var(--gold-2); }
