:root {
  color-scheme: dark;
  --ink: #050b13;
  --ink-2: #07111f;
  --ink-3: #0b1a2d;
  --panel: rgba(10, 25, 43, .78);
  --panel-solid: #0c1b2d;
  --paper: #f2eee5;
  --muted: #9fb0c4;
  --faint: #688098;
  --gold: #e8b85e;
  --gold-bright: #ffd88a;
  --cyan: #6bdcf4;
  --crimson: #ef6262;
  --line: rgba(159, 190, 216, .18);
  --line-gold: rgba(232, 184, 94, .3);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow: 0 28px 80px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}
body::selection { background: var(--gold); color: var(--ink); }
a { color: inherit; }
button, input { font: inherit; }
img { max-width: 100%; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 200; padding: .75rem 1rem; background: var(--gold); color: var(--ink); font-weight: 800; text-decoration: none; border-radius: .35rem; }
.skip-link:focus { top: 1rem; }
.ambient-glow { position: fixed; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(circle at 75% 18%, rgba(44, 169, 207, .1), transparent 28%), radial-gradient(circle at 10% 70%, rgba(232, 184, 94, .06), transparent 30%); }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  min-height: 5.25rem;
  padding: .85rem clamp(1rem, 4vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(180deg, rgba(5, 11, 19, .94), rgba(5, 11, 19, .62));
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: min-height .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled { min-height: 4.5rem; border-color: var(--line); background: rgba(5, 11, 19, .9); }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; line-height: 1; min-width: 0; }
.brand-seal { width: 2.35rem; height: 2.35rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .18rem; align-items: end; padding: .55rem .45rem .4rem; color: var(--gold); border: 1px solid var(--line-gold); border-radius: 50%; background: rgba(232, 184, 94, .06); position: relative; flex: 0 0 auto; }
.brand-seal::before { content: ''; position: absolute; left: .45rem; right: .45rem; top: .48rem; border-top: .26rem solid currentColor; border-left: .25rem solid transparent; border-right: .25rem solid transparent; }
.brand-seal span { height: .85rem; border-left: 2px solid currentColor; }
.brand-seal.mini { width: 1.8rem; height: 1.8rem; padding: .45rem .37rem .32rem; }
.brand-seal.mini::before { left: .35rem; right: .35rem; top: .33rem; }
.brand-seal.mini span { height: .6rem; }
.brand-copy { display: grid; gap: .23rem; }
.brand-copy strong { font-family: var(--serif); font-size: 1.06rem; letter-spacing: .02em; }
.brand-copy small { color: var(--muted); font-size: .64rem; letter-spacing: .15em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: .35rem; }
.site-nav a { padding: .62rem .8rem; color: var(--muted); font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; transition: color .2s ease, background .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a.is-current { color: var(--paper); }
.site-nav a.is-current { position: relative; }
.site-nav a.is-current::after { content: ''; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 1px; background: var(--gold); }
.site-nav .nav-mission { margin-left: .4rem; padding: .75rem 1rem; border: 1px solid var(--line-gold); color: var(--gold-bright); border-radius: .25rem; background: rgba(232, 184, 94, .06); }
.site-nav .nav-mission:hover { background: var(--gold); color: var(--ink); }
.nav-toggle { display: none; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.02); color: var(--paper); }
.nav-toggle span { display: block; width: 1rem; margin: .28rem auto; border-top: 1px solid currentColor; transition: transform .2s ease; }

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, .68fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  padding: 8.5rem clamp(1.2rem, 6vw, 7rem) 6.5rem;
  isolation: isolate;
  overflow: hidden;
}
.hero-art { position: absolute; inset: 0; z-index: -4; background: #081320 url('republic-engine-key-art.png') center / cover no-repeat; transform: scale(1.01); animation: hero-breathe 16s ease-in-out infinite alternate; }
.hero-shade { position: absolute; inset: 0; z-index: -3; background: linear-gradient(90deg, rgba(3,8,14,.98) 0%, rgba(3,8,14,.91) 30%, rgba(3,8,14,.42) 64%, rgba(3,8,14,.2) 100%), linear-gradient(0deg, var(--ink) 0%, transparent 28%, rgba(4,9,16,.32) 100%); }
.hero-grid { position: absolute; z-index: -2; inset: auto 0 0; height: 42%; opacity: .24; transform: perspective(450px) rotateX(58deg) translateY(35%); transform-origin: bottom; background-image: linear-gradient(rgba(107,220,244,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(107,220,244,.28) 1px, transparent 1px); background-size: 3.25rem 3.25rem; -webkit-mask-image: linear-gradient(transparent, #000 55%); mask-image: linear-gradient(transparent, #000 55%); }
@keyframes hero-breathe { from { transform: scale(1.01); } to { transform: scale(1.045); } }
.hero-content { max-width: 49rem; padding: 2rem 0; }
.eyebrow { margin: 0 0 1.1rem; color: var(--gold); font-size: .73rem; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.signal-dot { display: inline-block; width: .42rem; height: .42rem; margin-right: .55rem; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 .28rem rgba(107,220,244,.08), 0 0 1.2rem rgba(107,220,244,.65); }
.hero h1 { margin: 0; max-width: 13ch; font: 500 clamp(3.25rem, 7vw, 7rem)/.92 var(--serif); letter-spacing: -.055em; text-wrap: balance; }
.hero h1 em { color: var(--gold-bright); font-weight: 400; }
.hero-lede { max-width: 37rem; margin: 1.75rem 0 0; color: #c4d0dc; font-size: clamp(1.05rem, 1.5vw, 1.24rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.button { min-height: 3.25rem; padding: .83rem 1.25rem; display: inline-flex; align-items: center; justify-content: center; gap: .85rem; border: 1px solid transparent; border-radius: .28rem; font-size: .78rem; font-weight: 850; letter-spacing: .075em; text-decoration: none; text-transform: uppercase; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { background: var(--gold); color: #07101b; box-shadow: 0 12px 38px rgba(232,184,94,.17); }
.button-primary:hover { background: var(--gold-bright); box-shadow: 0 16px 44px rgba(232,184,94,.25); }
.button-ghost { border-color: rgba(255,255,255,.2); background: rgba(6,13,22,.45); color: var(--paper); backdrop-filter: blur(10px); }
.button-ghost:hover { border-color: var(--cyan); }
.hero-stats { display: flex; gap: 0; margin-top: clamp(3rem, 8vh, 6rem); border-top: 1px solid rgba(255,255,255,.14); max-width: 40rem; }
.hero-stats div { flex: 1; padding: 1.05rem 1rem 0 0; }
.hero-stats div + div { padding-left: 1.3rem; border-left: 1px solid rgba(255,255,255,.14); }
.hero-stats strong { display: block; color: var(--paper); font: 500 1.35rem/1 var(--serif); }
.hero-stats span { display: block; margin-top: .45rem; color: var(--faint); font-size: .69rem; letter-spacing: .08em; text-transform: uppercase; }

.live-docket { justify-self: end; width: min(100%, 25.5rem); padding: 1.25rem; border: 1px solid rgba(255,255,255,.17); background: linear-gradient(145deg, rgba(9, 25, 42, .82), rgba(5, 12, 20, .72)); box-shadow: var(--shadow); backdrop-filter: blur(20px); position: relative; overflow: hidden; }
.live-docket::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.055) 45%, transparent 61%); transform: translateX(-110%); animation: docket-scan 7s ease-in-out infinite; }
@keyframes docket-scan { 0%, 60% { transform: translateX(-110%); } 90%, 100% { transform: translateX(110%); } }
.docket-topline { display: flex; justify-content: space-between; padding-bottom: .8rem; border-bottom: 1px solid var(--line); color: var(--faint); font-size: .65rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.docket-status { color: var(--cyan); }
.docket-orbit { width: 9rem; height: 9rem; margin: 2rem auto 1.2rem; position: relative; display: grid; place-items: center; }
.orbit { position: absolute; inset: 0; border: 1px solid rgba(107,220,244,.28); border-radius: 50%; }
.orbit::after { content: ''; position: absolute; top: 45%; right: -.22rem; width: .42rem; height: .42rem; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 .9rem var(--cyan); }
.orbit-one { animation: spin 9s linear infinite; }
.orbit-two { inset: 1.25rem; border-color: var(--line-gold); animation: spin 6s linear infinite reverse; }
.orbit-two::after { background: var(--gold); box-shadow: 0 0 .9rem var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-core { display: grid; place-items: center; width: 4rem; height: 4rem; border: 1px solid var(--line-gold); border-radius: 50%; color: var(--gold-bright); background: rgba(232,184,94,.06); font: 500 1.45rem/1 var(--serif); }
.docket-kicker { margin: 0 0 .5rem; color: var(--cyan); font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.live-docket h2 { margin: 0; font: 500 1.8rem/1.1 var(--serif); }
.live-docket > p:not(.docket-kicker) { color: var(--muted); font-size: .9rem; }
.docket-rule { display: grid; gap: .1rem; padding: .85rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.docket-rule span { color: var(--faint); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; }
.docket-rule strong { color: #dce7f0; font-size: .82rem; }
.docket-link { display: flex; justify-content: space-between; margin-top: 1.1rem; color: var(--gold-bright); font-size: .75rem; font-weight: 850; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.scroll-cue { position: absolute; left: clamp(1.2rem, 6vw, 7rem); bottom: 1.7rem; display: flex; align-items: center; gap: .8rem; color: var(--faint); font-size: .64rem; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; }
.scroll-cue i { width: 3.2rem; border-top: 1px solid var(--gold); }

.campaign-shell { padding: clamp(5.5rem, 10vw, 9rem) clamp(1.2rem, 6vw, 7rem); background: linear-gradient(180deg, var(--ink), #07111e 45%, var(--ink)); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(17rem, .65fr); gap: 3rem; align-items: end; max-width: 90rem; margin: 0 auto 3rem; }
.section-heading h2, .protocol-copy h2 { max-width: 13ch; margin: 0; font: 500 clamp(2.35rem, 4.7vw, 4.7rem)/.98 var(--serif); letter-spacing: -.04em; }
.section-heading > p { margin: 0; color: var(--muted); max-width: 38rem; }
.progress-rail { max-width: 90rem; margin: 0 auto 1.1rem; padding: 1rem 1.15rem; background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.progress-copy { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; font-size: .71rem; letter-spacing: .09em; text-transform: uppercase; }
.progress-copy span { color: var(--faint); }
.progress-copy strong { color: var(--gold-bright); }
.progress-track { height: .2rem; background: rgba(255,255,255,.08); overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--gold), var(--cyan)); transition: width .7s cubic-bezier(.2,.8,.2,1); }
.chapter-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; max-width: 90rem; margin: 0 auto; }
.chapter-card { grid-column: span 4; min-height: 26rem; padding: 1.45rem; display: flex; flex-direction: column; position: relative; isolation: isolate; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(13,30,49,.8), rgba(8,17,29,.8)); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.chapter-card::before { content: ''; position: absolute; z-index: -1; width: 13rem; height: 13rem; right: -7rem; top: -6rem; border-radius: 50%; background: radial-gradient(circle, rgba(107,220,244,.11), transparent 70%); transition: transform .4s ease; }
.chapter-card:hover { transform: translateY(-5px); border-color: rgba(107,220,244,.4); box-shadow: 0 24px 60px rgba(0,0,0,.27); }
.chapter-card:hover::before { transform: scale(1.4); }
.chapter-feature { grid-column: span 8; background: linear-gradient(110deg, rgba(12,31,50,.92), rgba(12,31,50,.75)), radial-gradient(circle at 80% 30%, rgba(232,184,94,.12), transparent 35%); }
.chapter-capstone { grid-column: span 8; border-color: var(--line-gold); background: linear-gradient(120deg, rgba(34,31,30,.75), rgba(9,24,39,.9)); }
.chapter-index { color: var(--faint); font: 500 .72rem/1 var(--sans); letter-spacing: .14em; }
.chapter-sigil { position: absolute; right: 1.45rem; top: 1.25rem; width: 3.15rem; height: 3.15rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font: 500 .92rem/1 var(--serif); }
.chapter-domain { margin: auto 0 .55rem; color: var(--cyan); font-size: .66rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.chapter-card h3 { margin: 0; max-width: 12ch; font: 500 clamp(1.55rem, 2.7vw, 2.25rem)/1.05 var(--serif); }
.chapter-card > p:not(.chapter-domain) { max-width: 38rem; color: var(--muted); font-size: .9rem; }
.topic-row { display: flex; flex-wrap: wrap; gap: .42rem; margin: .4rem 0 1.2rem; }
.topic-row span { padding: .26rem .46rem; border: 1px solid var(--line); color: var(--faint); font-size: .63rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.chapter-actions { display: flex; gap: 1rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.chapter-actions a { color: var(--paper); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.chapter-actions a:last-child { color: var(--gold); }
.chapter-card.is-complete::after { content: 'Complete'; position: absolute; right: 1rem; bottom: 1rem; color: var(--cyan); font-size: .58rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }

.protocol-section { min-height: 42rem; padding: 6rem clamp(1.2rem, 8vw, 10rem); display: grid; grid-template-columns: minmax(19rem, .8fr) minmax(0, 1fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; border-top: 1px solid var(--line); background: radial-gradient(circle at 20% 50%, rgba(107,220,244,.09), transparent 28%), #050b13; }
.protocol-visual { width: min(100%, 30rem); aspect-ratio: 1; margin: auto; position: relative; display: grid; place-items: center; }
.protocol-ring { position: absolute; border-radius: 50%; border: 1px solid var(--line); }
.ring-a { inset: 6%; border-color: rgba(107,220,244,.28); }
.ring-b { inset: 22%; border-color: var(--line-gold); }
.protocol-ring::before, .protocol-ring::after { content: ''; position: absolute; width: .65rem; height: .65rem; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 1rem rgba(107,220,244,.8); }
.protocol-ring::before { left: 8%; top: 24%; }
.protocol-ring::after { right: 12%; bottom: 18%; background: var(--gold); box-shadow: 0 0 1rem rgba(232,184,94,.8); }
.protocol-center { width: 8rem; height: 8rem; display: grid; place-content: center; text-align: center; border-radius: 50%; border: 1px solid var(--line-gold); background: radial-gradient(circle, rgba(232,184,94,.13), rgba(232,184,94,.03)); box-shadow: 0 0 5rem rgba(232,184,94,.08); }
.protocol-center span { font: 500 2.7rem/1 var(--serif); color: var(--gold-bright); }
.protocol-center small { color: var(--muted); font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; }
.protocol-copy p:not(.eyebrow) { max-width: 39rem; color: var(--muted); }
.text-link { display: inline-flex; gap: .9rem; color: var(--gold-bright); font-size: .76rem; font-weight: 850; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }

.site-footer { padding: 1.6rem clamp(1.2rem, 6vw, 7rem); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; border-top: 1px solid var(--line); color: var(--faint); font-size: .73rem; }
.site-footer > div { display: flex; align-items: center; gap: .65rem; color: var(--paper); font-family: var(--serif); }
.site-footer p { text-align: center; }
.site-footer nav { display: flex; justify-content: flex-end; gap: 1.2rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

/* Shared chapter treatment. The source lesson text stays intact. */
body.chapter-page { max-width: none !important; padding: 7.8rem clamp(1rem, 5vw, 5rem) 5rem !important; background: radial-gradient(circle at 80% 8%, rgba(107,220,244,.07), transparent 25%), var(--ink) !important; color: var(--paper) !important; }
.chapter-page .site-header { font-family: var(--sans); }
.chapter-page .legacy-chapter { max-width: 64rem; margin: 0 auto; padding: clamp(1.4rem, 4vw, 4rem); border: 1px solid var(--line); background: rgba(9,20,33,.8); box-shadow: var(--shadow); }
.chapter-page .legacy-chapter::before { content: attr(data-chapter-label); display: block; margin-bottom: 2rem; color: var(--gold); font: 800 .72rem/1 var(--sans); letter-spacing: .17em; text-transform: uppercase; }
.chapter-page .legacy-chapter h1, .chapter-page .legacy-chapter h1 span { color: var(--paper) !important; font-family: var(--serif) !important; }
.chapter-page .legacy-chapter h1 span, .chapter-page .legacy-chapter h2 span, .chapter-page .legacy-chapter h3 span, .chapter-page .legacy-chapter h4 span { font-size: inherit !important; line-height: inherit !important; letter-spacing: inherit !important; }
.chapter-page .legacy-chapter h1 { margin: 1.3rem 0 2.5rem !important; font-size: clamp(2.3rem, 5vw, 4.5rem) !important; line-height: 1.03 !important; letter-spacing: -.045em !important; }
.chapter-page .legacy-chapter h2, .chapter-page .legacy-chapter h2 span { color: var(--gold-bright) !important; font-family: var(--serif) !important; }
.chapter-page .legacy-chapter h2 { margin: 3.5rem 0 1rem !important; padding-top: 1.3rem !important; border-top: 1px solid var(--line-gold); font-size: clamp(1.55rem, 3vw, 2.3rem) !important; line-height: 1.15 !important; }
.chapter-page .legacy-chapter h3, .chapter-page .legacy-chapter h3 span, .chapter-page .legacy-chapter h4, .chapter-page .legacy-chapter h4 span { color: var(--cyan) !important; font-family: var(--sans) !important; }
.chapter-page .legacy-chapter h3 { margin-top: 2rem !important; font-size: 1.22rem !important; }
.chapter-page .legacy-chapter h4 { margin-top: 1.6rem !important; font-size: 1rem !important; }
.chapter-page .legacy-chapter p, .chapter-page .legacy-chapter li, .chapter-page .legacy-chapter p span, .chapter-page .legacy-chapter li span { color: #cad5df !important; font-family: var(--sans) !important; font-size: 1rem !important; line-height: 1.78 !important; }
.chapter-page .legacy-chapter p { margin: .9rem 0 !important; padding: 0 !important; }
.chapter-page .legacy-chapter ul, .chapter-page .legacy-chapter ol { padding-left: 1.45rem !important; }
.chapter-page .legacy-chapter li { margin: .7rem 0 !important; padding-left: .25rem !important; }
.chapter-page .legacy-chapter li::marker { color: var(--gold); }
.chapter-page .legacy-chapter a { color: var(--cyan) !important; }
.chapter-page .legacy-chapter table { width: 100% !important; display: block; overflow-x: auto; border-collapse: collapse; }
.chapter-page .legacy-chapter td, .chapter-page .legacy-chapter th { border-color: var(--line) !important; background: rgba(255,255,255,.02) !important; }
.chapter-tools { max-width: 64rem; margin: 0 auto 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; font-family: var(--sans); }
.chapter-tools .crumb { margin-right: auto; color: var(--muted); font-size: .78rem; }
.chapter-tools button, .chapter-tools a { min-height: 2.55rem; padding: .62rem .8rem; border: 1px solid var(--line); background: rgba(255,255,255,.025); color: var(--paper); border-radius: .25rem; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.chapter-tools button:hover, .chapter-tools a:hover { border-color: var(--gold); }
.chapter-tools .complete-toggle.is-complete { color: var(--ink); background: var(--cyan); border-color: var(--cyan); }
.chapter-tools .crumb a { color: var(--gold); text-decoration: none; }
.chapter-jump { position: relative; }
.chapter-jump summary { list-style: none; min-height: 2.55rem; padding: .62rem .8rem; border: 1px solid var(--line); color: var(--paper); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.chapter-jump summary::-webkit-details-marker { display: none; }
.chapter-jump[open] summary { border-color: var(--gold); color: var(--gold); }
.chapter-jump > div { position: absolute; z-index: 50; top: calc(100% + .35rem); right: 0; width: min(21rem, calc(100vw - 2rem)); display: grid; padding: .45rem; border: 1px solid var(--line-gold); background: #09182a; box-shadow: var(--shadow); }
.chapter-jump > div a { min-height: auto; display: flex; gap: .75rem; border: 0; border-radius: 0; }
.chapter-jump > div a:hover, .chapter-jump > div a[aria-current="page"] { background: rgba(107,220,244,.07); color: var(--cyan); }
.chapter-jump > div a span { color: var(--faint); font-size: .6rem; }
.chapter-pagination { max-width: 64rem; margin: 1rem auto 0; display: flex; justify-content: space-between; gap: 1rem; font-family: var(--sans); }
.chapter-pagination a { flex: 1; padding: 1rem; border: 1px solid var(--line); color: var(--paper); text-decoration: none; }
.chapter-pagination a:last-child { text-align: right; }
.chapter-pagination small { display: block; color: var(--faint); font-size: .63rem; letter-spacing: .1em; text-transform: uppercase; }
.chapter-pagination strong { color: var(--gold-bright); font-size: .82rem; }
body.focus-mode .site-header, body.focus-mode .chapter-tools, body.focus-mode .chapter-pagination { display: none; }
body.focus-mode.chapter-page { padding-top: 2rem !important; }
body.focus-mode .legacy-chapter { max-width: 50rem; border-color: transparent; background: transparent; box-shadow: none; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 8rem; }
  .hero-content { padding-bottom: 0; }
  .live-docket { justify-self: start; }
  .hero-shade { background: linear-gradient(90deg, rgba(3,8,14,.96), rgba(3,8,14,.64)), linear-gradient(0deg, var(--ink), transparent 50%); }
  .chapter-card, .chapter-feature, .chapter-capstone { grid-column: span 6; }
  .section-heading { grid-template-columns: 1fr; }
  .protocol-section { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .site-footer > div, .site-footer nav { justify-content: center; }
}

@media (max-width: 720px) {
  .site-header { min-height: 4.6rem; padding-inline: 1rem; }
  .brand-copy small { display: none; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; padding: 1rem; display: grid; gap: .2rem; background: rgba(5,11,19,.98); border-bottom: 1px solid var(--line); transform: translateY(-1rem); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a { padding: .85rem; }
  .site-nav .nav-mission { margin: .4rem 0 0; }
  .hero { min-height: auto; padding: 7rem 1.1rem 5.5rem; }
  .hero h1 { font-size: clamp(3.15rem, 16vw, 5.2rem); }
  .hero-art { background-position: 58% center; }
  .hero-stats span { font-size: .57rem; }
  .live-docket { width: 100%; }
  .scroll-cue { display: none; }
  .campaign-shell { padding-inline: 1rem; }
  .chapter-grid { grid-template-columns: 1fr; }
  .chapter-card, .chapter-feature, .chapter-capstone { grid-column: auto; min-height: 23rem; }
  .protocol-section { padding-inline: 1.2rem; }
  .protocol-visual { max-width: 21rem; }
  .chapter-page .site-header .brand-copy strong { max-width: 14rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.chapter-page { padding: 6.2rem .75rem 3rem !important; }
  .chapter-page .legacy-chapter { padding: 1.25rem; }
  .chapter-page .legacy-chapter h1 { font-size: 2.25rem !important; }
  .chapter-tools .crumb { width: 100%; }
  .chapter-pagination { flex-direction: column; }
  .chapter-pagination a:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}
