:root {
  --bg: #080706;
  --bg-deep: #12100f;
  --panel: rgba(23, 18, 16, 0.9);
  --panel-strong: rgba(33, 25, 22, 0.96);
  --panel-soft: rgba(34, 28, 25, 0.82);
  --line: rgba(224, 198, 150, 0.16);
  --line-strong: rgba(224, 198, 150, 0.34);
  --ink: #f6ecdc;
  --muted: #d5bea0;
  --muted-soft: #b69774;
  --gold: #d6a55b;
  --gold-bright: #f2c77c;
  --red: #922c20;
  --red-bright: #c94b38;
  --olive: #4d5e3a;
  --shadow-lg: 0 40px 90px rgba(0, 0, 0, 0.42);
  --shadow-md: 0 20px 42px rgba(0, 0, 0, 0.24);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(146, 44, 32, 0.3), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(214, 165, 91, 0.16), transparent 18%),
    radial-gradient(circle at 50% 100%, rgba(77, 94, 58, 0.2), transparent 24%),
    linear-gradient(180deg, #050505 0%, #0d0b0a 36%, #15100e 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 136px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 136px);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.11;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px);
  background-size: 170px 170px, 210px 210px, 150px 150px;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
li {
  line-height: 1.7;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  line-height: 0.98;
  letter-spacing: 0.01em;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(224, 198, 150, 0.12);
  background: linear-gradient(180deg, rgba(10, 8, 8, 0.95), rgba(10, 8, 8, 0.82));
}

.topbar-inner {
  width: min(1380px, calc(100% - 24px));
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-mark {
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-note {
  color: var(--muted-soft);
  font-size: 0.78rem;
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-link,
.mini-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(35, 28, 24, 0.72);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.mini-link:hover,
.mini-link:focus-visible,
.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(46, 36, 31, 0.82);
}

.button--primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1d120b;
  border-color: transparent;
}

.page-shell {
  width: min(1380px, calc(100% - 24px));
  margin: 18px auto 42px;
  padding-bottom: 20px;
  position: relative;
  z-index: 1;
}

.hero,
.section,
.part-section,
.quote-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(214, 165, 91, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(22, 17, 15, 0.96), rgba(13, 10, 9, 0.98));
  box-shadow: var(--shadow-lg);
}

.hero,
.section,
.part-section,
.quote-panel,
.footer-panel {
  animation: fade-rise 720ms ease both;
}

.hero {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.88fr);
  gap: 18px;
}

.hero-copy,
.hero-panel,
.callout,
.timeline-card,
.faq-card,
.resource-card,
.policy-card,
.footer-panel,
.guide-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(34, 26, 22, 0.92), rgba(17, 13, 12, 0.94));
  box-shadow: var(--shadow-md);
}

.hero-copy {
  padding: 26px;
}

.eyebrow {
  margin: 0;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.76rem;
  font-weight: 800;
}

.hero-title {
  margin-top: 16px;
  max-width: 14ch;
  font-size: clamp(3.1rem, 7vw, 6rem);
}

.hero-title-top,
.hero-title-mid,
.hero-title-bottom {
  display: block;
}

.hero-title-mid,
.hero-title-bottom {
  margin-top: 10px;
}

.title-reframe {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
}

.title-strike {
  position: relative;
  color: rgba(246, 236, 220, 0.56);
}

.title-strike::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  top: 54%;
  height: 0.12em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red-bright), var(--gold-bright));
  transform: rotate(-3deg);
  box-shadow: 0 0 22px rgba(201, 75, 56, 0.32);
}

.title-replace {
  color: var(--gold-bright);
  text-shadow: 0 0 24px rgba(214, 165, 91, 0.18);
}

.hero-intro {
  margin-top: 18px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-manifesto {
  margin: 16px 0 0;
  max-width: 60ch;
  color: var(--gold-bright);
  font-size: 1rem;
  font-weight: 700;
}

.pill-row,
.action-row,
.stat-strip,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-row,
.action-row {
  margin-top: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(214, 165, 91, 0.09);
  border: 1px solid rgba(214, 165, 91, 0.2);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-panel {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.callout {
  padding: 16px;
}

.hero-panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.hero-panel p {
  margin: 0;
  color: var(--muted);
}

.stat-strip {
  margin-top: 4px;
}

.stat-card {
  flex: 1 1 160px;
  min-width: 0;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.14);
}

.stat-card span {
  display: block;
}

.stat-label {
  color: var(--muted-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.stat-value {
  margin-top: 8px;
  color: var(--gold-bright);
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 2rem;
}

.blurb {
  margin-top: 8px;
  color: var(--muted);
}

.section,
.part-section,
.quote-panel,
.footer-panel {
  margin-top: 16px;
  padding: 24px;
}

.section-head,
.part-head {
  display: grid;
  gap: 10px;
}

.section-head h2,
.part-head h2,
.quote-panel h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-copy,
.part-copy,
.quote-panel p {
  margin: 0;
  max-width: 70ch;
  color: var(--muted);
}

.timeline {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.timeline-card,
.resource-card,
.policy-card,
.guide-card {
  padding: 18px;
}

.timeline-card span,
.resource-card span,
.policy-card span,
.guide-card span {
  display: inline-block;
  color: var(--gold-bright);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.timeline-card h3,
.resource-card h3,
.policy-card h3,
.guide-card h3,
.faq-card h3 {
  margin-top: 12px;
  font-size: 1.36rem;
}

.timeline-card p,
.resource-card p,
.policy-card p,
.guide-card p,
.faq-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.part-section {
  padding: 24px;
}

.module-stack,
.resource-grid,
.policy-grid,
.faq-grid,
.guide-grid {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.policy-grid,
.faq-grid,
.guide-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.process-board-wrap {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 20% 0%, rgba(201, 75, 56, 0.12), transparent 24%),
    radial-gradient(circle at 80% 0%, rgba(214, 165, 91, 0.11), transparent 24%),
    linear-gradient(180deg, rgba(24, 18, 16, 0.98), rgba(12, 10, 9, 1));
}

.process-board-head {
  margin-bottom: 18px;
}

.process-board {
  display: grid;
  grid-template-columns: 150px repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.process-board-label,
.process-stage,
.process-cell {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.process-board-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.process-board-label--stage {
  color: var(--muted-soft);
  background: rgba(255, 255, 255, 0.03);
}

.process-board-label--old {
  color: #ffd0c7;
  background: linear-gradient(180deg, rgba(146, 44, 32, 0.22), rgba(67, 20, 16, 0.72));
}

.process-board-label--new {
  color: #ffe4b7;
  background: linear-gradient(180deg, rgba(214, 165, 91, 0.2), rgba(72, 52, 19, 0.76));
}

.process-board-label--opps {
  color: #dcebc6;
  background: linear-gradient(180deg, rgba(77, 94, 58, 0.26), rgba(33, 42, 25, 0.78));
}

.process-stage {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--gold-bright);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.process-cell {
  padding: 16px;
}

.process-cell--old {
  background: linear-gradient(180deg, rgba(70, 21, 17, 0.88), rgba(29, 12, 11, 0.98));
}

.process-cell--new {
  background: linear-gradient(180deg, rgba(72, 52, 19, 0.88), rgba(28, 22, 10, 0.98));
}

.process-cell--opps {
  background: linear-gradient(180deg, rgba(34, 42, 25, 0.9), rgba(16, 22, 13, 0.98));
}

.process-cell h3 {
  font-size: 1.16rem;
}

.process-cell p {
  margin: 10px 0 0;
  color: var(--muted);
}

.module-card,
.appendix-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(30, 23, 20, 0.94), rgba(15, 12, 11, 0.98));
  overflow: hidden;
}

.module-card[open],
.appendix-card[open] {
  border-color: rgba(214, 165, 91, 0.26);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.module-card summary,
.appendix-card summary {
  list-style: none;
  cursor: pointer;
}

.module-card summary::-webkit-details-marker,
.appendix-card summary::-webkit-details-marker {
  display: none;
}

.module-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
}

.module-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(214, 165, 91, 0.2), rgba(146, 44, 32, 0.22));
  color: var(--gold-bright);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.module-summary h3 {
  font-size: 1.5rem;
}

.module-summary p {
  margin: 8px 0 0;
  color: var(--muted);
}

.module-week {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.module-body,
.appendix-body {
  padding: 0 20px 20px;
}

.module-body > p,
.appendix-body > p {
  margin: 14px 0 0;
  color: var(--muted);
}

.module-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.module-panel,
.checklist,
pre {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.module-panel h4,
.appendix-body h4 {
  color: var(--gold-bright);
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.bullet-list,
.checklist {
  margin: 12px 0 0;
  padding-left: 18px;
}

.bullet-list li,
.checklist li {
  color: var(--muted);
}

.reference-note {
  margin-top: 16px;
  color: var(--muted-soft);
  font-size: 0.92rem;
}

.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: rgba(15, 12, 11, 0.94);
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(224, 198, 150, 0.1);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--gold-bright);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(214, 165, 91, 0.08);
}

td {
  color: var(--muted);
}

.faq-card {
  padding: 18px;
}

.faq-card h3 {
  font-size: 1.24rem;
}

.appendix-stack {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

pre {
  margin: 16px 0 0;
  color: var(--muted);
  overflow-x: auto;
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 0.88rem;
  line-height: 1.65;
}

.quote-panel {
  display: grid;
  gap: 10px;
  text-align: center;
}

.quote-mark {
  color: var(--gold-bright);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.quote-panel blockquote {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
}

.footer-panel {
  margin-top: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(23, 18, 16, 0.96), rgba(11, 9, 8, 1));
  box-shadow: var(--shadow-lg);
}

.footer-panel p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  margin-top: 16px;
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .hero,
  .resource-grid,
  .policy-grid,
  .faq-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-board {
    grid-template-columns: 1fr;
  }

  .process-board-label {
    display: none;
  }

  .process-stage {
    margin-top: 8px;
    justify-content: center;
  }
}

@media (max-width: 860px) {
  .topbar-inner,
  .page-shell {
    width: min(100%, calc(100% - 20px));
  }

  .hero {
    padding: 18px;
  }

  .hero-copy,
  .hero-panel,
  .section,
  .part-section,
  .quote-panel,
  .footer-panel {
    padding: 18px;
  }

  .module-summary,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .module-index {
    width: 52px;
    height: 52px;
  }

  .module-week {
    min-width: 0;
    justify-self: start;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .process-board-wrap {
    padding: 14px;
  }
}

@media (max-width: 640px) {
  .hero-title,
  .section-head h2,
  .part-head h2,
  .quote-panel blockquote {
    max-width: none;
  }

  .nav-row {
    justify-content: flex-start;
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
