/* ─────────────────────────────────────────────────────────────
   Who Makes Your World? — Greenstone Project, 2026
   Editorial museum-catalog stylesheet
   ──────────────────────────────────────────────────────────── */

:root {
  /* Palette — cream paper + warm gold + ink */
  --paper:        #F1E9D6;
  --paper-warm:   #E9DFC7;
  --paper-deep:   #DFD4B6;
  --paper-card:   #EDE4CD;
  --ink:          #2A2118;
  --ink-soft:     #4A3F30;
  --ink-mute:     #7A6F5B;
  --gold:         #B98A3E;
  --gold-deep:    #8C6520;
  --gold-soft:    #C9A961;
  --rule:         #C9B98F;
  --rule-soft:    #D9CCA6;

  /* System tints — soft pastel rectangles that match the screenshots */
  --sys-economic:      #EDD7A1;  /* amber */
  --sys-tourism:       #E9BCA1;  /* peach */
  --sys-governance:    #C7D5B5;  /* sage */
  --sys-gender:        #CCC0D6;  /* dusty lavender */
  --sys-gentrification:#E2BDB7;  /* dusty rose */
  --sys-colonial:      #D6B399;  /* terracotta */

  /* Type scale */
  --font-serif: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  /* Motion */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --t-fast: 180ms;
  --t-base: 280ms;
  --t-slow: 480ms;
}

/* ─── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 80% -200px, #E5D9B8 0%, transparent 60%),
    radial-gradient(800px 600px at -200px 30%, #E9DFC7 0%, transparent 60%),
    var(--paper);
  background-attachment: fixed;
  overflow-x: hidden;
  font-feature-settings: "ss01", "ss02", "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

button { font-family: inherit; cursor: pointer; }

::selection { background: var(--gold-soft); color: var(--ink); }

/* Decorative paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .35;
  background-image:
    radial-gradient(rgba(120, 95, 50, .08) 1px, transparent 1px),
    radial-gradient(rgba(120, 95, 50, .06) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
  mix-blend-mode: multiply;
}

/* ─── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.5rem;
  background: rgba(241, 233, 214, .82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 8px 28px -16px rgba(80, 60, 20, .25);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: .01em;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease);
}
.nav__brand:hover { color: var(--gold-deep); }

.nav__mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(185, 138, 62, .15);
}

.nav__title { white-space: nowrap; }

.nav__links {
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--ink-soft);
}

.nav__links a {
  text-decoration: none;
  position: relative;
  padding: .25rem 0;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease);
}

.nav__links a:hover { color: var(--gold-deep); }
.nav__links a:hover::after,
.nav__links a:focus-visible::after { transform: scaleX(1); }

@media (max-width: 760px) {
  .nav { padding: .7rem 1rem; left: 1rem; right: 1rem; top: 1rem; }
  .nav__links { display: none; }
}

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero__inner {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .35em;
  color: var(--gold-deep);
  margin: 0 0 2rem;
  display: inline-flex;
  align-items: center;
  gap: .9rem;
}
.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--gold);
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: .95;
  letter-spacing: -.02em;
  margin: 0 0 1.75rem;
  color: var(--ink);
}
.hero__title em {
  font-style: italic;
  color: var(--gold-deep);
  font-weight: 500;
}

.hero__sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0 0 3.5rem;
  max-width: 720px;
}

.hero__statement {
  max-width: 620px;
  border-left: 1px solid var(--gold);
  padding-left: 1.5rem;
}
.hero__statement p {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

.scroll-cue {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: .7rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease);
}
.scroll-cue:hover { color: var(--gold-deep); }
.scroll-cue svg { animation: bob 2.4s var(--ease) infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: .65; }
  50%      { transform: translateY(5px); opacity: 1; }
}

.hero__rule {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 4rem);
  max-width: 1180px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rule), transparent);
}

/* ─── Section shell ────────────────────────────────────────── */
.section {
  position: relative;
  padding: 7rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  z-index: 2;
}

.section__header {
  margin-bottom: 4rem;
  max-width: 880px;
}

.section__num {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .35em;
  color: var(--gold-deep);
  margin-bottom: 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--gold);
}

.section__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 1rem;
}

.section__deck {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: var(--ink-soft);
  margin: 0;
  max-width: 720px;
  line-height: 1.45;
}

/* ─── Prose ────────────────────────────────────────────────── */
.prose {
  max-width: 720px;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink-soft);
}
.prose--narrow { max-width: 720px; margin-bottom: 4rem; }

.prose p { margin: 0 0 1.5rem; }

.prose__lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 2.5rem !important;
  letter-spacing: -.005em;
}

.prose__invite {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--gold-deep);
  border-top: 1px solid var(--rule);
  padding-top: 2rem;
  margin-top: 2.5rem !important;
}

/* ─── Stats grid ───────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  padding: 3rem 1.5rem;
  margin: 5rem 0 6rem;
  position: relative;
}
.stats::before,
.stats::after {
  content: "";
  position: absolute;
  left: 1.5rem; right: 1.5rem;
  height: 1px;
  background: var(--rule-soft);
}
.stats::before { top: 50%; }

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--rule-soft);
}
.stat:nth-child(5),
.stat:nth-child(10),
.stat:last-child { border-right: none; }
.stat:nth-child(5n) { border-right: none; }

.stat__num {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1;
  color: var(--gold-deep);
  letter-spacing: -.02em;
  margin-bottom: .85rem;
}
.stat__num sup {
  font-size: .55em;
  font-style: italic;
  vertical-align: top;
  top: .15em;
  position: relative;
  margin-left: .05em;
}

.stat__label {
  font-family: var(--font-sans);
  font-size: .65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--ink-mute);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.5rem;
  }
  .stats::before { display: none; }
  .stat {
    border-right: 1px solid var(--rule-soft);
    border-bottom: 1px solid var(--rule-soft);
    padding: 1.75rem 1rem;
  }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-last-child(-n+1) { border-bottom: none; }
  .stat:last-child { grid-column: 1 / -1; border-right: none; }
}

/* ─── Six Systems grid ─────────────────────────────────────── */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.sys-card {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  padding: 2.25rem 2rem 2.5rem;
  position: relative;
  transition: transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}
.sys-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--sys);
  opacity: .9;
}
.sys-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -25px rgba(80, 60, 20, .35);
  border-color: var(--gold-soft);
}

.sys-card[data-system="economic"]      { --sys: var(--sys-economic); }
.sys-card[data-system="tourism"]       { --sys: var(--sys-tourism); }
.sys-card[data-system="governance"]    { --sys: var(--sys-governance); }
.sys-card[data-system="gentrification"]{ --sys: var(--sys-gentrification); }
.sys-card[data-system="gender"]        { --sys: var(--sys-gender); }
.sys-card[data-system="colonial"]      { --sys: var(--sys-colonial); }

.sys-card__head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: .75rem 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule-soft);
}

.sys-card__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  grid-row: span 2;
}

.sys-card__kind {
  font-family: var(--font-sans);
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--ink-mute);
}

.sys-card__title {
  grid-column: 2;
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.15;
  color: var(--ink);
}

.sys-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sys-card__list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 1.1rem;
  font-size: .9rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.sys-card__list li:last-child { margin-bottom: 0; }
.sys-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sys);
  border: 1px solid var(--gold-deep);
}
.sys-card__list strong {
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-sans);
  letter-spacing: .005em;
}

/* ─── Intersect grid ───────────────────────────────────────── */
.intersect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 1.5rem;
}

.intersect {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  padding: 2rem 1.75rem;
  position: relative;
  transition: border-color var(--t-base) var(--ease);
}
.intersect:hover { border-color: var(--gold); }

.intersect__head {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule-soft);
}

.intersect__tag {
  font-family: var(--font-sans);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 600;
  padding: .35rem .75rem;
  background: var(--tag-bg, var(--paper-warm));
  color: var(--ink);
  border: 1px solid var(--gold-soft);
}
.intersect__tag[data-tag="economic"]      { background: var(--sys-economic); }
.intersect__tag[data-tag="tourism"]       { background: var(--sys-tourism); }
.intersect__tag[data-tag="governance"]    { background: var(--sys-governance); }
.intersect__tag[data-tag="gender"]        { background: var(--sys-gender); }
.intersect__tag[data-tag="gentrification"]{ background: var(--sys-gentrification); }
.intersect__tag[data-tag="colonial"]      { background: var(--sys-colonial); }

.intersect__times {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 500;
}

.intersect p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ─── Voices ───────────────────────────────────────────────── */
.section--voices { padding-bottom: 4rem; }

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.5rem;
  margin-bottom: 6rem;
}

.quote {
  background: var(--paper-card);
  border: 1px dashed var(--gold-soft);
  margin: 0;
  padding: 2.25rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.quote:hover {
  border-color: var(--gold-deep);
  background: var(--paper-warm);
}

.quote--empty { opacity: .65; }

.quote blockquote {
  margin: 0 0 1.5rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  position: relative;
  padding-left: 1.25rem;
}
.quote blockquote::before {
  content: "“";
  position: absolute;
  left: -.35rem;
  top: -1.1rem;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--gold-soft);
  font-style: italic;
  font-family: var(--font-serif);
}

.quote blockquote p { margin: 0; }

.quote figcaption {
  font-family: var(--font-sans);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--ink-mute);
  margin-bottom: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-soft);
}

/* Audio player */
.player {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: auto;
}

.player__btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.player__btn:hover { background: var(--gold); color: var(--paper); }
.player__btn:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

.player__wave {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 28px;
  overflow: hidden;
}
.player__wave span {
  flex: 1;
  background: var(--gold-soft);
  border-radius: 1px;
  min-width: 2px;
  opacity: .7;
}
.player__wave span:nth-child(1)  { height: 30%; }
.player__wave span:nth-child(2)  { height: 55%; }
.player__wave span:nth-child(3)  { height: 78%; }
.player__wave span:nth-child(4)  { height: 45%; }
.player__wave span:nth-child(5)  { height: 60%; }
.player__wave span:nth-child(6)  { height: 35%; }
.player__wave span:nth-child(7)  { height: 70%; }
.player__wave span:nth-child(8)  { height: 90%; }
.player__wave span:nth-child(9)  { height: 50%; }
.player__wave span:nth-child(10) { height: 25%; }
.player__wave span:nth-child(11) { height: 65%; }
.player__wave span:nth-child(12) { height: 80%; }
.player__wave span:nth-child(13) { height: 40%; }
.player__wave span:nth-child(14) { height: 55%; }
.player__wave span:nth-child(15) { height: 75%; }
.player__wave span:nth-child(16) { height: 30%; }
.player__wave span:nth-child(17) { height: 50%; }
.player__wave span:nth-child(18) { height: 85%; }
.player__wave span:nth-child(19) { height: 45%; }
.player__wave span:nth-child(20) { height: 65%; }
.player__wave span:nth-child(21) { height: 28%; }
.player__wave span:nth-child(22) { height: 70%; }
.player__wave span:nth-child(23) { height: 55%; }
.player__wave span:nth-child(24) { height: 40%; }
.player__wave span:nth-child(25) { height: 80%; }
.player__wave span:nth-child(26) { height: 50%; }
.player__wave span:nth-child(27) { height: 35%; }
.player__wave span:nth-child(28) { height: 60%; }
.player__wave span:nth-child(29) { height: 45%; }

.player__meta {
  font-family: var(--font-sans);
  font-size: .55rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--gold-deep);
  white-space: nowrap;
}

/* Stories — longer narratives */
.stories { margin-top: 4rem; }

.stories__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 2.25rem;
  margin: 0 0 .5rem;
  color: var(--ink);
}
.stories__sub {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 3rem;
  font-size: 1.1rem;
}

.story {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 3rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.story:first-of-type { border-top: 1px solid var(--rule-soft); }
.story:last-of-type  { border-bottom: none; }

.story__head { position: sticky; top: 7rem; align-self: start; }

.story__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 3.5rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: .75rem;
}

.story__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 0 0 .65rem;
  color: var(--ink);
}

.story__meta {
  font-family: var(--font-sans);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--ink-mute);
  margin: 0;
}

.story p {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
  max-width: 680px;
}

@media (max-width: 800px) {
  .story { grid-template-columns: 1fr; gap: 1.25rem; }
  .story__head { position: static; }
  .story__num { font-size: 2.5rem; }
}

/* ─── Interconnection Mind Map ─────────────────────────────── */
.section--map { padding-bottom: 9rem; }

/* Theme palette specific to the map (red/teal/rust/brown/purple) */
.section--map {
  --mm-ink:      #1a1410;
  --mm-paper:    #f4ede0;
  --mm-paper2:   #ece2d0;
  --mm-line:     #3a3128;
  --mm-shadow:   rgba(40, 28, 18, .18);
  --mm-red:      #b4302a;
  --mm-red-soft: #c8615b;
  --mm-teal:     #2f6b66;
  --mm-rust:     #a8592b;
  --mm-brown:    #5a4632;
  --mm-purple:   #6a3d8a;
}

/* ── Legend ─── */
.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.1rem 1.4rem;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--ink-soft);
  font-weight: 500;
}
.legend__item       { display: inline-flex; align-items: center; gap: .55rem; }
.legend__item--muted{ color: var(--ink-mute); }

.dot {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  border: 1px solid var(--mm-line);
}
.dot[data-theme="gender"]   { background: var(--mm-red); }
.dot[data-theme="law"]      { background: var(--mm-teal); }
.dot[data-theme="econ"]     { background: var(--mm-rust); }
.dot[data-theme="colonial"] { background: var(--mm-brown); }
.dot[data-theme="space"]    { background: var(--mm-purple); }
.dot.dot--annot {
  background: transparent;
  border: 1px dashed var(--mm-red-soft);
}

/* ── Viewport ─── */
.map-viewport {
  position: relative;
  width: 100%;
  height: 720px;
  background:
    radial-gradient(circle at 18% 22%, rgba(180, 48, 42, .05), transparent 40%),
    radial-gradient(circle at 82% 78%, rgba(47, 107, 102, .06), transparent 42%),
    var(--mm-paper);
  border: 1px solid var(--rule);
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.map-viewport.is-grabbing { cursor: grabbing; }

.map-world {
  position: absolute;
  top: 0;
  left: 0;
  width: 2600px;
  height: 1700px;
  transform-origin: 0 0;
  will-change: transform;
}

.map-links {
  position: absolute;
  top: 0;
  left: 0;
  width: 2600px;
  height: 1700px;
  overflow: visible;
  pointer-events: none;
}
.map-links path { fill: none; stroke-linecap: round; }

/* ── Nodes ─── */
.mind-node {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 1.5px solid var(--mm-line);
  background: var(--mm-paper2);
  border-radius: 9px;
  padding: 9px 12px;
  box-shadow: 2px 3px 0 var(--mm-shadow);
  cursor: pointer;
  max-width: 230px;
  font-family: var(--font-sans);
  color: var(--mm-ink);
  transition:
    transform .18s cubic-bezier(.34, 1.56, .64, 1),
    box-shadow .18s var(--ease),
    background  .18s var(--ease),
    opacity     .25s var(--ease);
  will-change: transform;
}
.mind-node:hover {
  box-shadow: 4px 6px 0 var(--mm-shadow);
  z-index: 30;
}
.mind-node__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .4px;
  text-transform: uppercase;
  line-height: 1.2;
}
.mind-node__body { font-size: 11.5px; line-height: 1.34; font-weight: 500; }
.mind-node__body ul { margin: 5px 0 0 14px; padding: 0; }
.mind-node__body li { font-size: 11px; line-height: 1.34; margin-bottom: 1px; }
.mind-node__body b  { font-family: var(--font-serif); font-weight: 600; }

/* Hub variants */
.mind-node.hub {
  border-radius: 50px;
  border-width: 2px;
  text-align: center;
  background: var(--mm-paper);
  box-shadow: 3px 4px 0 var(--mm-shadow);
  padding: 11px 18px;
}
.mind-node.center {
  border-color: var(--mm-red);
  border-width: 2.5px;
  background: #fff;
}
.mind-node.center .mind-node__title {
  font-size: 20px;
  color: var(--mm-red);
}

/* Theme colors */
.mind-node.t-law      { border-color: var(--mm-teal); }
.mind-node.t-law .mind-node__title    { color: var(--mm-teal); }
.mind-node.t-econ     { border-color: var(--mm-rust); }
.mind-node.t-econ .mind-node__title   { color: var(--mm-rust); }
.mind-node.t-gender   { border-color: var(--mm-red); }
.mind-node.t-gender .mind-node__title { color: var(--mm-red); }
.mind-node.t-colonial { border-color: var(--mm-brown); }
.mind-node.t-colonial .mind-node__title { color: var(--mm-brown); }
.mind-node.t-space    { border-color: var(--mm-purple); }
.mind-node.t-space .mind-node__title    { color: var(--mm-purple); }

.mind-node.annot {
  color: var(--mm-red);
  font-style: italic;
  font-family: var(--font-serif);
  background: transparent;
  border: 1.2px dashed var(--mm-red-soft);
  box-shadow: none;
}
.mind-node.annot .mind-node__body { color: var(--mm-red); }
.mind-node.annot.quote { font-style: italic; }

.mind-node.interview {
  border-style: dashed;
  background: #eef3ec;
  border-color: #4f8a85;
}

/* Focus mode */
.map-world.is-focusing .mind-node { opacity: .22; }
.map-world.is-focusing .mind-node.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.06);
}
.map-world.is-focusing .mind-node.is-neighbor { opacity: 1; }
.map-links.is-focusing path { opacity: .08; }
.map-links.is-focusing path.is-active { opacity: 1; }

/* ── Controls ─── */
.map-controls {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  z-index: 5;
}
.map-ctrl {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--mm-line);
  background: var(--mm-paper2);
  border-radius: 10px;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--mm-ink);
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--mm-shadow);
  transition: transform .12s var(--ease), background .12s var(--ease);
  display: grid;
  place-items: center;
  line-height: 1;
}
.map-ctrl:hover  { background: #fff; transform: translateY(-1px); }
.map-ctrl:active { transform: translateY(1px); box-shadow: 1px 1px 0 var(--mm-shadow); }

.map-hint {
  position: absolute;
  top: 1rem;
  left: 1rem;
  margin: 0;
  font-family: var(--font-sans);
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--ink-mute);
  background: rgba(244, 237, 224, .88);
  padding: .35rem .7rem;
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
  z-index: 5;
  pointer-events: none;
}

.map-footnote {
  text-align: center;
  margin: 3rem 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-mute);
}

@media (max-width: 700px) {
  .map-viewport { height: 540px; }
  .legend       { font-size: .58rem; gap: .85rem 1.2rem; }
  .map-hint     { display: none; }
}

/* ─── Footer / Closing ─────────────────────────────────────── */
.footer {
  position: relative;
  padding: 8rem 2rem 4rem;
  text-align: center;
  z-index: 2;
}

.footer__rule {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 4rem);
  max-width: 1180px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rule), transparent);
}

.footer__quote {
  max-width: 720px;
  margin: 0 auto 6rem;
}
.footer__quote p:first-of-type {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 1.5rem;
}
.footer__cite {
  font-family: var(--font-sans);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--gold-deep);
  margin: 0;
}

.footer__credit { padding-top: 3rem; }

.footer__brand {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 0 0 .5rem;
}

.footer__meta {
  font-family: var(--font-sans);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .35em;
  color: var(--ink-mute);
  margin: 0;
}

/* ─── Reveal-on-scroll animation ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ─── Mobile tweaks ────────────────────────────────────────── */
@media (max-width: 640px) {
  .section { padding: 5rem 1.25rem; }
  .hero { padding: 7rem 1.25rem 4rem; }
  .footer { padding: 5rem 1.25rem 3rem; }
  .hero__statement { padding-left: 1rem; }
  .sys-card { padding: 1.75rem 1.5rem 2rem; }
  .quote { padding: 2rem 1.5rem 1.5rem; }
  .stats { padding: 1rem; }
}
