/* =========================================================
   GROUND TRUTH — house style (locked, May 2026)
   Forest #1E3A2F · Seafoam #02C39A · Gold #cba664 · Cream #F2EFE6
   Playfair Display · DM Sans 300 · DM Mono
   ========================================================= */

:root {
  --forest: #1E3A2F;
  --deep: #0F2018;
  --mid: #2A4A3A;
  --mid-2: #2F5443;
  --seafoam: #02C39A;
  --gold: #cba664;
  --gold-soft: rgba(203, 166, 100, 0.18);
  --seafoam-soft: rgba(2, 195, 154, 0.14);
  --cream: #F2EFE6;
  --cream-soft: rgba(242, 239, 230, 0.7);
  --cream-muted: rgba(242, 239, 230, 0.55);
  --rule: rgba(242, 239, 230, 0.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--forest);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;

  /* Subtle contour-line background (SVG, low opacity) - bumped up to be visible */
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='800' height='800' viewBox='0 0 800 800'><g fill='none' stroke='%23F2EFE6' stroke-width='0.7' opacity='0.09'><path d='M-50 200 Q 200 150 400 220 T 850 200'/><path d='M-50 280 Q 200 230 400 300 T 850 280'/><path d='M-50 360 Q 200 310 400 380 T 850 360'/><path d='M-50 440 Q 200 390 400 460 T 850 440'/><path d='M-50 520 Q 200 470 400 540 T 850 520'/><path d='M-50 600 Q 200 550 400 620 T 850 600'/><path d='M-50 680 Q 200 630 400 700 T 850 680'/></g></svg>");
  background-attachment: fixed;
  background-size: 800px 800px;
  background-repeat: repeat;
}

/* TOP NAV - mobile-friendly */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 32, 24, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
@supports not (backdrop-filter: blur(12px)) {
  .topbar { background: var(--deep); }
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
.brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand em { font-style: italic; color: var(--gold); }

/* Header — Restore monogram next to wordmark */
.brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand-divider {
  width: 1px;
  height: 22px;
  background: var(--rule);
  display: block;
}
.brand-affiliate {
  display: flex;
  align-items: center;
  opacity: 0.92;
  transition: opacity 0.2s ease;
  text-decoration: none;
}
.brand-affiliate:hover { opacity: 1; }
.brand-affiliate img {
  height: 26px;
  width: auto;
  display: block;
}
@media (max-width: 540px) {
  .brand-group { gap: 12px; }
  .brand-divider { height: 18px; }
  .brand-affiliate img { height: 22px; }
}
.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-soft);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 12px 4px;
  display: inline-block;
}
.nav a:hover, .nav a.active { color: var(--seafoam); }

/* Menu toggle - properly sized for iOS (44x44 minimum) */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--rule);
  color: var(--cream);
  cursor: pointer;
  padding: 0;
  position: relative;
  -webkit-tap-highlight-color: rgba(2, 195, 154, 0.2);
}
.menu-toggle:active { background: var(--mid); }
.menu-toggle::before,
.menu-toggle::after,
.menu-toggle span {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--cream);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle::before { top: 14px; }
.menu-toggle span { top: 21px; }
.menu-toggle::after { top: 28px; }
.menu-toggle.open::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span { opacity: 0; }
.menu-toggle.open::after { transform: translateY(-7px) rotate(-45deg); }

/* FRAME */
.frame {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}
.frame-narrow { max-width: 900px; }

/* MARKERS */
.section-mark, .eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--seafoam);
}
.section-mark { display: block; margin-bottom: 18px; }
.eyebrow.gold { color: var(--gold); }

/* PAGE HERO (other pages) */
.page-hero {
  padding: 100px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 60px; right: -100px;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px solid var(--seafoam-soft);
  opacity: 0.5;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: 180px; right: 60px;
  width: 160px; height: 160px;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  opacity: 0.5;
}
.hero-mark-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.hero-mark-row .rule {
  width: 60px; height: 1px;
  background: var(--seafoam);
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  position: relative;
}
.page-hero h1 em { font-style: italic; color: var(--gold); font-weight: 700; }
.page-hero h1 .seafoam-em { font-style: italic; color: var(--seafoam); font-weight: 700; }
.page-hero .hero-sub {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--cream-soft);
  max-width: 760px;
}

/* HOMEPAGE HERO with photo background */
.home-hero {
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: 720px;
}
.home-hero h1 { font-size: clamp(56px, 9vw, 110px); margin-bottom: 36px; }
.home-hero .hero-sub { font-size: clamp(20px, 2.4vw, 28px); margin-bottom: 48px; max-width: 720px; }

/* The photo, layered behind hero content */
.home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.home-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.35;
  filter: contrast(1.05);
}
/* Gradient wash to keep text legible */
.home-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,32,24,0.55) 0%, rgba(30,58,47,0.45) 50%, rgba(30,58,47,0.85) 100%),
    linear-gradient(90deg, rgba(15,32,24,0.6) 0%, rgba(15,32,24,0.2) 60%, rgba(15,32,24,0.5) 100%);
}
.home-hero-caption {
  position: absolute;
  bottom: 18px;
  right: 24px;
  z-index: 3;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-soft);
  background: rgba(15, 32, 24, 0.55);
  padding: 8px 12px;
  border: 1px solid var(--rule);
}

/* SECTIONS */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--rule);
  position: relative;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 36px;
}
.section h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.section h2 em { font-style: italic; color: var(--gold); }
.section-intro {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--cream-soft);
  max-width: 760px;
  margin-bottom: 40px;
}
.section-intro .highlight, .highlight {
  color: var(--seafoam);
  font-style: italic;
}
.section-intro .gold-em, .gold-em {
  color: var(--gold);
  font-style: italic;
}

/* HERO META */
.hero-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 28px;
  margin-top: 36px;
  border-top: 1px solid var(--rule);
}
.hero-meta-item .label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-bottom: 6px;
}
.hero-meta-item .value {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--gold);
}

/* MANIFESTO */
.manifesto { max-width: 800px; }
.manifesto p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--cream-soft);
  margin-bottom: 24px;
}
.manifesto p strong {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  color: var(--gold);
}
.manifesto p em { font-style: italic; color: var(--seafoam); }

/* CALLOUT */
.callout {
  background: var(--mid);
  border-left: 3px solid var(--gold);
  padding: 32px 36px;
  margin: 40px 0;
}
.callout.seafoam { border-left-color: var(--seafoam); }
.callout .label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.callout.seafoam .label { color: var(--seafoam); }
.callout p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--cream);
}
.callout p em { color: var(--gold); font-style: italic; }

/* RESOURCE GRID */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.resource-card {
  display: block;
  background: var(--mid);
  border-left: 3px solid var(--seafoam);
  padding: 32px 28px;
  text-decoration: none;
  color: var(--cream);
  transition: transform 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}
.resource-card:nth-child(2n) { border-left-color: var(--gold); }
.resource-card:hover { transform: translateY(-3px); background: var(--mid-2); }
.resource-card .num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--cream-muted);
  margin-bottom: 14px;
}
.resource-card h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.resource-card h3 em { font-style: italic; color: var(--gold); }
.resource-card:nth-child(2n) h3 em { color: var(--seafoam); }
.resource-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--cream-soft);
  margin-bottom: 20px;
}
.resource-card .open {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--seafoam);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.resource-card:nth-child(2n) .open { color: var(--gold); }
.resource-card .open::after {
  content: '→';
  transition: transform 0.3s ease;
}
.resource-card:hover .open::after { transform: translateX(4px); }

/* RESOURCE CARD STAT BADGE */
.resource-card .stat {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-muted);
  text-align: right;
  line-height: 1.5;
  opacity: 0.6;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.resource-card .stat strong {
  color: var(--seafoam);
  font-weight: 400;
  font-size: 11px;
  display: block;
  margin-bottom: 2px;
}
.resource-card:nth-child(2n) .stat strong { color: var(--gold); }
.resource-card:hover .stat { opacity: 1; }

/* ESSAY LIST */
.essay-list { list-style: none; }
.essay-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 28px;
  align-items: baseline;
}
.essay-item:last-child { border-bottom: none; }
.essay-item .num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 20px;
}
.essay-item h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 6px;
}
.essay-item h4 em { font-style: italic; color: var(--gold); }
.essay-item p {
  font-size: 14px;
  color: var(--cream-soft);
  line-height: 1.5;
}
.essay-item .status {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-muted);
  white-space: nowrap;
}
.essay-item .status.live { color: var(--seafoam); }
.essay-item .status.draft { color: var(--gold); }

/* ABOUT */
.about-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}
.about-row .label-stack p {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-bottom: 10px;
}
.about-row .label-stack p strong {
  color: var(--seafoam);
  font-weight: 400;
}
.about-row .body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--cream-soft);
  margin-bottom: 18px;
}
.about-row .body p em { font-style: italic; color: var(--gold); }
.about-row .body a {
  color: var(--seafoam);
  text-decoration: none;
  border-bottom: 1px solid var(--seafoam-soft);
  transition: border-color 0.2s ease;
}
.about-row .body a:hover { border-bottom-color: var(--seafoam); }

/* ABOUT PHOTO - sits within the body column, after the prose */
.about-photo {
  margin-top: 36px;
  position: relative;
  background: var(--deep);
  border: 1px solid var(--rule);
}
.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.88) brightness(0.92);
}
.about-photo .caption {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-muted);
  padding: 10px 14px;
  border-top: 1px solid var(--rule);
  background: var(--deep);
}

/* SEARCH */
.search-wrap {
  background: var(--mid);
  border: 1px solid var(--rule);
  padding: 8px 8px 8px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.search-wrap .icon {
  color: var(--seafoam);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
}
.search-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 300;
  padding: 14px 0;
}
.search-wrap input::placeholder { color: var(--cream-muted); font-style: italic; }
.search-wrap .clear-btn {
  background: var(--deep);
  border: none;
  color: var(--cream-soft);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 12px 18px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.search-wrap .clear-btn:hover { color: var(--seafoam); }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.filter-chip {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--cream-soft);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 36px;
}
.filter-chip:hover { border-color: var(--seafoam); color: var(--seafoam); }
.filter-chip.active {
  background: var(--seafoam);
  color: var(--deep);
  border-color: var(--seafoam);
}

/* ACRONYM CARDS */
.acronym-count {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-bottom: 24px;
}
.acronym-count strong { color: var(--seafoam); font-weight: 400; }
.acronym-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.acronym-card {
  background: var(--mid);
  border-left: 3px solid var(--seafoam);
  padding: 22px 24px;
  transition: transform 0.2s ease;
}
.acronym-card.cat-policy { border-left-color: var(--gold); }
.acronym-card.cat-disclosure { border-left-color: var(--seafoam); }
.acronym-card.cat-uk { border-left-color: var(--gold); }
.acronym-card.cat-market { border-left-color: var(--seafoam); }
.acronym-card.cat-tech { border-left-color: var(--gold); }
.acronym-card:hover { transform: translateX(2px); }
.acronym-card .head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}
.acronym-card .term {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  color: var(--cream);
  letter-spacing: 0.02em;
}
.acronym-card .cat {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--seafoam);
  white-space: nowrap;
}
.acronym-card.cat-policy .cat,
.acronym-card.cat-uk .cat,
.acronym-card.cat-tech .cat { color: var(--gold); }
.acronym-card .full {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  color: var(--cream-soft);
  margin-bottom: 10px;
  font-weight: 400;
}
.acronym-card .desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--cream-soft);
}
.no-results {
  padding: 40px;
  background: var(--mid);
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--cream-muted);
  display: none;
}
.no-results.show { display: block; }

/* WEB CANVAS */
.web-canvas-wrap {
  background: var(--mid);
  border: 1px solid var(--rule);
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
}
.web-canvas { width: 100%; height: 100%; cursor: grab; }
.web-canvas:active { cursor: grabbing; }
.web-canvas .link {
  stroke: rgba(242, 239, 230, 0.18);
  stroke-width: 1px;
  transition: stroke 0.3s ease, stroke-width 0.3s ease;
}
.web-canvas .link.highlight {
  stroke: var(--seafoam);
  stroke-width: 1.6px;
}
.web-canvas .node circle {
  cursor: pointer;
  transition: fill 0.2s ease, stroke 0.2s ease;
}
.web-canvas .node text {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  fill: var(--cream-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  text-anchor: middle;
}
.web-legend {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(15, 32, 24, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--rule);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.web-legend .label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-bottom: 4px;
}
.web-legend .item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-soft);
}
.web-legend .dot { width: 10px; height: 10px; border-radius: 50%; }
.web-info {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(15, 32, 24, 0.92);
  border: 1px solid var(--rule);
  padding: 18px 22px;
  max-width: 300px;
  display: none;
}
.web-info.show { display: block; }
.web-info .term {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 18px;
  color: var(--cream);
  margin-bottom: 4px;
}
.web-info .full {
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 8px;
}
.web-info .desc {
  font-size: 13px;
  color: var(--cream-soft);
  line-height: 1.5;
}

/* FRAMEWORK STACK */
.layer-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}
.layer {
  background: var(--mid);
  border-left: 3px solid var(--seafoam);
  padding: 32px 36px;
  position: relative;
}
.layer.gold { border-left-color: var(--gold); }
.layer .layer-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.layer .layer-num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 28px;
  color: var(--seafoam);
}
.layer.gold .layer-num { color: var(--gold); }
.layer .layer-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-muted);
}
.layer h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.layer h3 em { font-style: italic; color: var(--gold); }
.layer.gold h3 em { color: var(--seafoam); }
.layer .layer-intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream-soft);
  margin-bottom: 24px;
  max-width: 700px;
}
.layer-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.layer-item {
  background: var(--deep);
  padding: 18px 20px;
  border-top: 2px solid var(--seafoam);
  cursor: default;
  transition: transform 0.2s ease;
}
.layer.gold .layer-item { border-top-color: var(--gold); }
.layer-item:hover { transform: translateY(-2px); }
.layer-item .term {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 18px;
  color: var(--cream);
  margin-bottom: 6px;
}
.layer-item .full {
  font-size: 12px;
  color: var(--cream-muted);
  line-height: 1.4;
}
.layer-arrow {
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--cream-muted);
  padding: 4px 0;
}

.unit-anchor {
  background: var(--deep);
  border: 1px solid var(--gold);
  padding: 40px 40px;
  margin-top: 48px;
  position: relative;
}
.unit-anchor::before {
  content: '↓';
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: var(--deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.unit-anchor .label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.unit-anchor h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 32px;
  margin-bottom: 14px;
}
.unit-anchor h3 em { font-style: italic; color: var(--gold); }
.unit-anchor p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  color: var(--cream-soft);
}
.unit-anchor p .seafoam { color: var(--seafoam); }

/* SIGNAL */
.signal-list { list-style: none; }
.signal-entry {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
}
.signal-entry:first-child { padding-top: 0; }
.signal-entry .when {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.signal-entry .when .date { color: var(--seafoam); display: block; margin-bottom: 6px; }
.signal-entry .when .tag { color: var(--cream-muted); }
.signal-entry .body h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: 10px;
}
.signal-entry .body h4 em { font-style: italic; color: var(--gold); }
.signal-entry .body p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--cream-soft);
  margin-bottom: 10px;
}
.signal-entry .body p em { font-style: italic; color: var(--gold); }
.signal-entry .body .why {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--seafoam);
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  margin-top: 14px;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--rule);
  padding: 60px 0 50px;
  margin-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 40px;
}
.footer-affiliation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
}
.footer-affiliation .label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-muted);
}
.footer-affiliation a {
  display: block;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}
.footer-affiliation a:hover { opacity: 1; }
.footer-affiliation img {
  height: 38px;
  width: auto;
  display: block;
}
@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .footer-affiliation {
    align-items: flex-start;
    padding: 24px 0 0;
    border-top: 1px solid var(--rule);
  }
  .footer-meta { text-align: left; }
}
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 28px;
}
.footer-brand em { font-style: italic; color: var(--gold); }
.footer-meta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-muted);
  text-align: right;
}
.footer-meta a {
  color: var(--cream-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-meta a:hover { color: var(--seafoam); }

/* RESPONSIVE */
@media (max-width: 820px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--deep);
    flex-direction: column;
    padding: 18px 32px;
    gap: 4px;
    border-bottom: 1px solid var(--rule);
  }
  .nav.open a {
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
  }
  .nav.open a:last-child { border-bottom: none; }
  .menu-toggle { display: block; }
  .about-row { grid-template-columns: 1fr; gap: 28px; }
  .essay-item { grid-template-columns: 1fr; gap: 4px; }
  .essay-item .status { justify-self: start; margin-top: 8px; }
  .signal-entry { grid-template-columns: 1fr; gap: 14px; }
  .frame, .topbar-inner { padding-left: 24px; padding-right: 24px; }
  .home-hero { padding: 80px 0 60px; min-height: 600px; }
  .home-hero-bg img { object-position: center 30%; }
  .page-hero { padding: 70px 0 50px; }
  .section { padding: 60px 0; }
  .web-canvas-wrap { height: 80vh; }
  .resource-card .stat { opacity: 1; }
}

/* ========================================================
   THE GUIDE (book pages)
   ======================================================== */

.book-hero {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: center;
  padding: 100px 0 80px;
}
.book-cover {
  background: var(--deep);
  border: 1px solid var(--gold);
  aspect-ratio: 2/3;
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}
.book-cover::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid var(--gold-soft);
  pointer-events: none;
}
.book-cover .cover-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--seafoam);
}
.book-cover .cover-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.book-cover .cover-title em {
  font-style: italic;
  color: var(--gold);
  display: block;
}
.book-cover .cover-foot {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-muted);
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.book-cover .cover-foot .author {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold);
  margin-top: 6px;
}
.book-blurb h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.book-blurb h1 em { font-style: italic; color: var(--gold); }
.book-blurb .lede {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--cream-soft);
  margin-bottom: 24px;
}
.book-blurb .lede em { color: var(--seafoam); }
.book-blurb p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--cream-soft);
  margin-bottom: 16px;
}
.book-blurb p em { font-style: italic; color: var(--gold); }

.toc-part {
  margin-bottom: 56px;
}
.toc-part-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.toc-part-num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  color: var(--gold);
}
.toc-part-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 28px);
}
.toc-part-title em { font-style: italic; color: var(--seafoam); }
.toc-list { list-style: none; }
.toc-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px dashed var(--rule);
  text-decoration: none;
  color: var(--cream);
  transition: padding 0.2s ease, color 0.2s ease;
}
.toc-item:last-child { border-bottom: none; }
.toc-item:hover { padding-left: 8px; }
.toc-item.live { cursor: pointer; }
.toc-item.coming { cursor: default; opacity: 0.55; }
.toc-num {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cream-muted);
}
.toc-item.live .toc-num { color: var(--seafoam); }
.toc-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
}
.toc-title em { font-style: italic; color: var(--gold); }
.toc-item:hover .toc-title { color: var(--cream); }
.toc-item.live:hover .toc-title em { color: var(--seafoam); }
.toc-status {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--cream-muted);
}
.toc-item.live .toc-status { color: var(--seafoam); }
.toc-item.coming .toc-status { color: var(--gold); }

/* ========================================================
   CHAPTER LAYOUT
   ======================================================== */
.chapter-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 32px 80px;
}
.chapter-mast {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 40px;
  margin-bottom: 48px;
}
.chapter-mast .meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.chapter-mast .meta .part { color: var(--seafoam); }
.chapter-mast .meta .sep { color: var(--cream-muted); }
.chapter-mast .meta .num { color: var(--gold); }
.chapter-mast h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}
.chapter-mast h1 em { font-style: italic; color: var(--gold); }
.chapter-mast .standfirst {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--cream-soft);
}
.chapter-mast .standfirst em { color: var(--seafoam); }

.chapter-prose p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--cream);
  margin-bottom: 22px;
}
.chapter-prose p em { font-style: italic; color: var(--gold); }
.chapter-prose p strong {
  font-weight: 500;
  color: var(--cream);
}
.chapter-prose p:first-of-type::first-letter {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 76px;
  line-height: 0.85;
  float: left;
  padding: 6px 12px 0 0;
  color: var(--gold);
}
.chapter-prose h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 56px 0 22px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
}
.chapter-prose h2 em { font-style: italic; color: var(--gold); }
.chapter-prose h3 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  color: var(--seafoam);
  margin: 36px 0 14px;
}
.chapter-prose blockquote {
  border-left: 3px solid var(--gold);
  padding: 8px 0 8px 28px;
  margin: 32px 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.55;
  color: var(--cream);
}
.chapter-prose blockquote em { color: var(--seafoam); font-style: italic; }
.chapter-prose hr {
  border: none;
  text-align: center;
  margin: 48px 0;
}
.chapter-prose hr::before {
  content: '§';
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--gold);
  letter-spacing: 0.5em;
}
.chapter-prose ul, .chapter-prose ol {
  margin: 22px 0 22px 24px;
}
.chapter-prose li {
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 12px;
  color: var(--cream);
}
.chapter-prose ul li::marker { color: var(--seafoam); }
.chapter-prose ol li::marker { color: var(--gold); font-family: 'Playfair Display', serif; font-style: italic; }
.chapter-prose a {
  color: var(--seafoam);
  text-decoration: none;
  border-bottom: 1px solid var(--seafoam-soft);
  transition: border-color 0.2s ease;
}
.chapter-prose a:hover { border-bottom-color: var(--seafoam); }

.chapter-foot {
  max-width: 720px;
  margin: 60px auto 0;
  padding: 40px 32px;
  border-top: 1px solid var(--rule);
}
.chapter-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.pager-link {
  display: block;
  padding: 22px 24px;
  background: var(--mid);
  border-left: 3px solid var(--seafoam);
  text-decoration: none;
  color: var(--cream);
  transition: background 0.2s ease, transform 0.2s ease;
}
.pager-link:hover { background: var(--mid-2); transform: translateY(-2px); }
.pager-link.next { border-left: none; border-right: 3px solid var(--gold); text-align: right; }
.pager-link .label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-bottom: 6px;
}
.pager-link.next .label { color: var(--cream-muted); }
.pager-link .title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--cream);
}
.pager-link.disabled { opacity: 0.35; pointer-events: none; }
.chapter-back {
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.chapter-back a {
  color: var(--seafoam);
  text-decoration: none;
}
.chapter-back a:hover { color: var(--cream); }

@media (max-width: 820px) {
  .book-hero { grid-template-columns: 1fr; gap: 40px; padding: 60px 0 40px; }
  .book-cover { max-width: 320px; margin: 0 auto; }
  .toc-item { grid-template-columns: 50px 1fr; }
  .toc-status { grid-column: 2; padding-top: 4px; }
  .chapter-pager { grid-template-columns: 1fr; }
  .pager-link.next { text-align: left; border-right: none; border-left: 3px solid var(--gold); }
}

/* FADE-INS */
.fade-in { opacity: 0; transform: translateY(12px); animation: fadeIn 0.8s ease forwards; }
.fade-in.d1 { animation-delay: 0.1s; }
.fade-in.d2 { animation-delay: 0.2s; }
.fade-in.d3 { animation-delay: 0.3s; }
.fade-in.d4 { animation-delay: 0.4s; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }

/* =========================================================
   RESTORE CHAPTER BYLINE — added May 2026
   Small Restore wordmark under standfirst on chapter pages.
   ========================================================= */
.chapter-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-muted);
  flex-wrap: wrap;
}
.chapter-byline a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.chapter-byline a:hover { color: var(--seafoam); }
.chapter-byline img {
  height: 18px;
  width: auto;
  display: block;
  opacity: 0.85;
}
