/* ==========================================================================
   Pastquest — stylesheet
   A museum catalogue on vellum: mounted plates, wall labels, strata.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Palette */
  --vellum: #F1EBDF;          /* page ground */
  --vellum-deep: #E8E0D1;     /* alternate ground */
  --parchment: #F8F4EC;       /* raised surfaces, plate mounts */
  --limestone: #D8CEBD;       /* rules and borders */
  --limestone-soft: #E2D9CA;
  --tufa: #6B6358;            /* secondary text */
  --tufa-light: #8F8678;
  --basalt: #1C1A17;          /* primary text, dark grounds */
  --basalt-raised: #25221E;
  --basalt-line: #3B3731;
  --gold: #A5834B;            /* decorative accent */
  --gold-ink: #7E602F;        /* accent text on light grounds */
  --gold-light: #CDAE76;      /* accent on dark grounds */
  --ivory-on-dark: #EEE7D9;
  --stone-on-dark: #A69D8E;

  /* Type */
  --font-display: "Ibarra Real Nova", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --step--2: 0.6875rem;                                   /* 11px — labels */
  --step--1: 0.8125rem;                                   /* 13px — captions, meta */
  --step-0: 1rem;                                         /* 16px — body */
  --step-1: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);      /* lead */
  --step-2: clamp(1.4rem, 1.15rem + 0.8vw, 1.8rem);       /* card titles */
  --step-3: clamp(1.65rem, 1.25rem + 1.5vw, 2.45rem);     /* passages */
  --step-4: clamp(2.4rem, 1.5rem + 3.4vw, 4.6rem);        /* section titles */
  --step-5: clamp(3.3rem, 1.2rem + 7vw, 7.6rem);          /* hero */

  /* Space & motion */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --col-gap: clamp(1rem, 2.2vw, 2.25rem);
  --max: 1360px;
  --section: clamp(5.5rem, 11vw, 10rem);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);

  /* Textures */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .25 0 0 0 0 .16 0 0 0 .34 -.1'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23g)'/%3E%3C/svg%3E");
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .9 0 0 0 0 .8 0 0 0 .22 -.07'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background-color: var(--vellum);
  background-image: var(--grain);
  color: var(--basalt);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

[hidden] { display: none !important; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, h4, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; }
button, input { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection { background: var(--gold-light); color: var(--basalt); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--basalt); color: var(--vellum); padding: .7rem 1rem;
  text-decoration: none; font-size: var(--step--1);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Wall-label typography */
.label {
  font-family: var(--font-body);
  font-size: var(--step--2);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tufa);
}

.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 52px;
  padding: .85rem 1.6rem;
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 2px;
  background: none;
  cursor: pointer;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}

.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-primary { background: var(--basalt); color: var(--vellum); border-color: var(--basalt); }
.btn-primary:hover:not(:disabled) { background: #3A332A; border-color: #3A332A; }

.btn-outline { border-color: rgba(28, 26, 23, .35); color: var(--basalt); }
.btn-outline:hover:not(:disabled) { border-color: var(--basalt); background: var(--basalt); color: var(--vellum); }

.btn-light { background: var(--ivory-on-dark); color: var(--basalt); border-color: var(--ivory-on-dark); }
.btn-light:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn-sm { min-height: 42px; padding: .6rem 1.15rem; font-size: .875rem; }
.btn-block { width: 100%; }

.arrow { width: 1.05em; height: 1.05em; flex: none; transition: transform .45s var(--ease); }
.btn:hover .arrow, .text-link:hover .arrow { transform: translateX(4px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--basalt);
  padding-block: .35rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .5s var(--ease), color .3s;
}
.text-link:hover { background-size: 0% 1px; background-position: 100% 100%; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background-color .5s var(--ease), border-color .5s var(--ease);
}

.site-header.is-scrolled,
body.menu-open .site-header {
  background-color: rgba(241, 235, 223, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(216, 206, 189, .9);
}

.nav {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--basalt);
}

.brand-mark { width: 22px; height: 22px; flex: none; color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 2.4vw, 2.5rem);
  list-style: none;
}

.nav-links a {
  position: relative;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--basalt);
  padding-block: .5rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .2rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 1.6vw, 1.5rem);
}

.nav-connect {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 42px;
  border: 0;
  background: none;
  padding: .5rem 0;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--basalt);
}
.nav-connect svg { width: 18px; height: 18px; }
.nav-connect.is-connected svg { color: var(--gold-ink); }

.nav-x {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 42px;
  color: var(--basalt);
  transition: color .3s;
}
.nav-x svg { width: 16px; height: 16px; fill: currentColor; }
.nav-x:hover { color: var(--gold-ink); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid rgba(28, 26, 23, .25);
  border-radius: 2px;
  background: none;
  cursor: pointer;
  position: relative;
}
.nav-toggle span[aria-hidden] {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--basalt);
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.nav-toggle span[aria-hidden]:nth-child(1) { top: 16px; }
.nav-toggle span[aria-hidden]:nth-child(2) { top: 24px; }
.nav-toggle[aria-expanded="true"] span[aria-hidden]:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span[aria-hidden]:nth-child(2) { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background-color: var(--vellum);
  background-image: var(--grain);
  padding: 2rem var(--gutter) 3rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.mobile-menu ul { list-style: none; display: grid; }
.mobile-menu li { border-bottom: 1px solid var(--limestone); }
.mobile-menu li a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-block: 1.1rem;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.1;
  text-decoration: none;
}
.mobile-menu li a small { font-family: var(--font-body); font-size: var(--step--2); letter-spacing: .16em; text-transform: uppercase; color: var(--tufa); }
.mobile-menu .btn { align-self: stretch; }

@media (max-width: 1140px) {
  .nav { grid-template-columns: auto 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-block; }
}

@media (max-width: 680px) {
  .nav-actions .btn { display: none; }
}

@media (max-width: 560px) {
  .nav-connect span { display: none; }
  .brand { letter-spacing: .24em; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section); }

.section-deep { background-color: var(--vellum-deep); background-image: var(--grain); }

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 1.25rem;
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}
.section-head > .label { grid-column: 1 / -1; }

.section-title {
  grid-column: 1 / span 7;
  font-size: var(--step-4);
  line-height: 1.02;
  letter-spacing: -.028em;
}

.section-intro {
  grid-column: 9 / span 4;
  max-width: 42ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tufa);
}

@media (max-width: 900px) {
  .section-title, .section-intro { grid-column: 1 / -1; }
}

/* ---------- Mounted plates (framed photographs) ---------- */
.plate { margin: 0; }

.plate-mount {
  position: relative;
  background: var(--parchment);
  padding: clamp(.55rem, 1.1vw, .95rem);
  border: 1px solid var(--limestone);
}

.plate-mount.is-lifted {
  box-shadow: 0 1px 0 rgba(28, 26, 23, .04), 0 40px 70px -48px rgba(28, 26, 23, .45);
}

.plate-image {
  position: relative;
  overflow: hidden;
  background-color: var(--vellum-deep);
  background-image: var(--grain);
}

.plate-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plate-caption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .9rem;
  margin-top: .95rem;
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--tufa);
}

.plate-caption .plate-no {
  font-family: var(--font-display);
  font-style: italic;
  font-size: .95rem;
  color: var(--gold-ink);
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5.5rem));
  padding-bottom: clamp(4.5rem, 9vw, 8rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: end;
}

.hero-copy {
  grid-column: 1 / span 7;
  padding-bottom: clamp(0rem, 4vw, 4.5rem);
}

.hero-title {
  margin-top: clamp(1.25rem, 2.4vw, 2rem);
  font-size: var(--step-5);
  font-weight: 400;
  line-height: .93;
  letter-spacing: -.03em;
}

.hero-title .line { display: block; }
.hero-title em { font-style: italic; color: var(--gold-ink); letter-spacing: -.02em; }

.hero-sub {
  margin-top: clamp(1.5rem, 2.8vw, 2.25rem);
  max-width: 34ch;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--tufa);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem 1.75rem;
  margin-top: clamp(2rem, 3.4vw, 2.75rem);
}

.hero-plate { grid-column: 8 / span 5; }
.hero-plate .plate-image { aspect-ratio: 4 / 5; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); row-gap: 3rem; }
  .hero-copy, .hero-plate { grid-column: 1 / -1; }
  .hero-copy { padding-bottom: 0; }
  .hero-plate .plate-image { aspect-ratio: 4 / 3; }
}

/* ---------- Featured discovery ---------- */
.featured { padding-top: 0; }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 3rem;
  align-items: center;
  padding-top: var(--section);
  border-top: 1px solid var(--limestone);
}

.featured-plate { grid-column: 1 / span 6; }
.featured-plate .plate-image { aspect-ratio: 4 / 5; }
.featured-plate img { filter: contrast(1.04); }

.featured-copy { grid-column: 8 / span 5; }

.featured-title {
  margin-top: 1.1rem;
  font-size: var(--step-4);
  line-height: 1;
  letter-spacing: -.028em;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .75rem;
  margin-top: 1.1rem;
  font-size: .9375rem;
  color: var(--tufa);
}
.meta-line span + span::before { content: "—"; margin-right: .75rem; color: var(--tufa-light); }

.passage {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-3);
  line-height: 1.26;
  letter-spacing: -.01em;
  color: var(--basalt);
}

.featured-note {
  margin-top: 1.5rem;
  max-width: 46ch;
  color: var(--tufa);
}

.figures {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem clamp(1.75rem, 3.5vw, 3rem);
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--limestone);
}
.figures div { display: flex; flex-direction: column-reverse; gap: .45rem; }
.figures dd {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.4rem + 1.3vw, 2.6rem);
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}
.figures dt { font-size: var(--step--1); color: var(--tufa); }

.featured-copy .text-link { margin-top: 2.25rem; }

@media (max-width: 1200px) {
  .featured-plate { grid-column: 1 / span 5; }
  .featured-copy { grid-column: 7 / span 6; }
  .passage { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.1rem); }
}
@media (max-width: 900px) {
  .featured-plate, .featured-copy { grid-column: 1 / -1; }
  .featured-plate .plate-image { aspect-ratio: 4 / 4.2; }
}

/* ---------- Research projects ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(3.25rem, 5vw, 4.5rem) var(--col-gap);
}

@media (max-width: 1080px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .project-grid { grid-template-columns: minmax(0, 1fr); } }

.project-card { display: flex; flex-direction: column; }

.project-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--limestone-soft);
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.8) sepia(.1);
  transition: transform 1.4s var(--ease), filter .9s var(--ease);
}
.project-card:hover .project-media img { transform: scale(1.045); filter: saturate(1) sepia(0); }
.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(28, 26, 23, .08);
  pointer-events: none;
}

.project-dossier {
  position: absolute;
  left: .85rem;
  top: .85rem;
  padding: .3rem .55rem;
  background: rgba(248, 244, 236, .94);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--basalt);
}

.project-body { display: flex; flex-direction: column; flex: 1; padding-top: 1.4rem; }

.project-meta {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.project-period {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--tufa);
}

.project-title {
  margin-top: .8rem;
  font-size: var(--step-2);
  line-height: 1.12;
  letter-spacing: -.015em;
}
.project-title a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 96%;
  transition: background-size .6s var(--ease);
}
.project-card:hover .project-title a,
.project-title a:focus-visible { background-size: 100% 1px; }

.project-summary {
  margin-top: .85rem;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--tufa);
}

.funding { margin-top: auto; padding-top: 1.75rem; }

.funding-bar {
  position: relative;
  height: 3px;
  background: var(--limestone);
  overflow: hidden;
}
.funding-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p);
  background: var(--gold);
  transform-origin: left center;
  transition: transform 1.8s var(--ease) .2s;
}
.js [data-reveal] .funding-bar span { transform: scaleX(0); }
.js [data-reveal].is-visible .funding-bar span { transform: scaleX(1); }

.funding-figures {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: .9rem;
  font-size: .9375rem;
  color: var(--tufa);
  font-variant-numeric: tabular-nums;
}
.funding-figures strong { font-weight: 600; color: var(--basalt); }

.funding-pct {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--gold-ink);
  font-variant-numeric: lining-nums tabular-nums;
}

.funding-sub {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .5rem;
  margin-top: .3rem;
  font-size: var(--step--1);
  color: var(--tufa);
  font-variant-numeric: tabular-nums;
}

.project-card .btn { margin-top: 1.5rem; }

/* ---------- Discoveries that changed history ---------- */
.discoveries {
  background-color: var(--basalt);
  background-image: var(--grain-light);
  color: var(--ivory-on-dark);
}
.discoveries .label,
.discoveries .section-intro { color: var(--stone-on-dark); }

.discovery-list {
  list-style: none;
  border-top: 1px solid var(--basalt-line);
}

.discovery {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) minmax(0, 6fr);
  column-gap: var(--col-gap);
  align-items: baseline;
  padding-block: clamp(1.6rem, 2.6vw, 2.3rem);
  border-bottom: 1px solid var(--basalt-line);
  transition: opacity .5s var(--ease);
}

.discovery-year {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.4rem + 2vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--gold-light);
  font-variant-numeric: lining-nums tabular-nums;
}

.discovery-name h3 {
  font-size: var(--step-2);
  line-height: 1.1;
  color: var(--ivory-on-dark);
}
.discovery-name .label { margin-top: .55rem; }

.discovery-text {
  max-width: 50ch;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--stone-on-dark);
}

.discovery-thumb { display: none; margin: 0; }

.discovery-preview {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  width: 250px;
  padding: 8px;
  background: var(--parchment);
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s var(--ease);
  will-change: transform;
}
.discovery-preview.is-active { opacity: 1; }
.discovery-preview img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--limestone);
}

@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .discovery-list:hover .discovery[data-reveal] { opacity: .4; transition-delay: 0s; }
  .discovery-list:hover .discovery[data-reveal]:hover { opacity: 1; }
}

@media (hover: none), (max-width: 900px) {
  .discovery-preview { display: none; }
  .discovery {
    grid-template-columns: minmax(0, 1fr) 88px;
    row-gap: .8rem;
  }
  .discovery-year, .discovery-name { grid-column: 1; }
  .discovery-text { grid-column: 1 / -1; }
  .discovery-thumb {
    display: block;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--basalt-line);
  }
  .discovery-thumb img { width: 100%; height: 100%; object-fit: cover; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
}
.about-grid > .label { grid-column: 1 / -1; }

.about-statement {
  grid-column: 1 / span 11;
  margin-top: 1.5rem;
  font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -.028em;
}
.about-statement em { font-style: italic; color: var(--gold-ink); }

.about-text {
  grid-column: 1 / span 5;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  max-width: 44ch;
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--tufa);
}

.principles {
  grid-column: 7 / span 6;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  list-style: none;
  border-top: 1px solid var(--basalt);
}
.principles li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: .5rem var(--col-gap);
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--limestone);
}
.principles h3 { font-size: 1.4rem; line-height: 1.2; }
.principles p { font-size: .9375rem; color: var(--tufa); }

.evidence-key { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }

.evidence-tag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .28rem .7rem .28rem .5rem;
  border: 1px solid var(--limestone);
  border-radius: 999px;
  background: var(--parchment);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--basalt);
  white-space: nowrap;
}
.evidence-tag::before {
  content: "";
  width: .62rem;
  height: .62rem;
  flex: none;
  border: 1.5px solid var(--basalt);
  border-radius: 50%;
}
.evidence-tag.is-confirmed::before { background: var(--basalt); }
.evidence-tag.is-hypothesis::before { background: transparent; }
.evidence-tag.is-ongoing::before { background: linear-gradient(90deg, var(--basalt) 50%, transparent 50%); }

@media (max-width: 900px) {
  .about-statement, .about-text, .principles { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .principles li { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- How it works ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem var(--col-gap);
  border-top: 1px solid var(--basalt);
}

.step { position: relative; padding-top: 2.25rem; }
.step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.step-no {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 2.4rem + 3vw, 5.4rem);
  line-height: .9;
  letter-spacing: -.03em;
  color: var(--gold);
  font-variant-numeric: lining-nums;
}

.step h3 { margin-top: 1.4rem; font-size: clamp(1.8rem, 1.5rem + 1vw, 2.3rem); line-height: 1.05; }
.step p { margin-top: .8rem; max-width: 34ch; color: var(--tufa); }

.note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: clamp(3.5rem, 6vw, 5rem);
  padding: 1.4rem 1.6rem;
  background: var(--parchment);
  border: 1px solid var(--limestone);
}
.note svg { width: 26px; height: 26px; color: var(--gold-ink); }
.note p { font-size: .9375rem; line-height: 1.55; }
.note strong { font-weight: 600; }

@media (max-width: 820px) {
  .steps { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .step { border-top: 1px solid var(--basalt); }
  .note { grid-template-columns: auto minmax(0, 1fr); }
  .note .text-link { grid-column: 2; justify-self: start; }
}

/* ---------- Transparency: strata ---------- */
.ledger-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 3.5rem;
  align-items: start;
}

.strata-figure { grid-column: 1 / span 5; margin: 0; }
.ledger-panel { grid-column: 7 / span 6; }

.strata {
  --strata-h: clamp(420px, 44vw, 580px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: .9rem;
}

.strata-scale {
  position: relative;
  width: 46px;
  height: var(--strata-h);
}
.strata-scale .bar {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  border: 1px solid var(--basalt);
  background: repeating-linear-gradient(180deg, var(--basalt) 0 10%, var(--parchment) 10% 20%);
}
.strata-scale .tick {
  position: absolute;
  right: 13px;
  transform: translateY(-50%);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--tufa);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.strata-column {
  position: relative;
  height: var(--strata-h);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--basalt);
  background: var(--parchment);
  overflow: hidden;
}

.stratum {
  position: relative;
  flex: 0 1 calc(var(--h) * 1%);
  min-height: 0;
  box-shadow: inset 0 1px 0 rgba(28, 26, 23, .55);
  transition: opacity .45s var(--ease), flex-basis 1.6s var(--ease);
}
.stratum:first-child { box-shadow: none; }

.js .strata-figure[data-reveal] .stratum { flex-basis: 0; }
.js .strata-figure[data-reveal].is-visible .stratum { flex-basis: calc(var(--h) * 1%); }

.strata.has-active .stratum:not(.is-active) { opacity: .28; }

.stratum-pct {
  position: absolute;
  left: .7rem;
  top: 50%;
  transform: translateY(-50%);
  padding: .15rem .45rem;
  background: var(--parchment);
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--basalt);
  font-variant-numeric: lining-nums tabular-nums;
}

/* Layer fills — each share drawn like a soil deposit */
.s-fieldwork   { background-color: #E7DDCA; background-image: radial-gradient(rgba(28, 26, 23, .32) .8px, transparent 1.3px); background-size: 7px 7px; }
.s-specialists { background-color: #DDD0B7; background-image: repeating-linear-gradient(135deg, rgba(28, 26, 23, .24) 0 1px, transparent 1px 7px); }
.s-equipment   { background-color: #CFBFA2; background-image: repeating-linear-gradient(0deg, rgba(28, 26, 23, .24) 0 1px, transparent 1px 6px); }
.s-archives    { background-color: #BFAE8E; background-image: repeating-linear-gradient(45deg, rgba(28, 26, 23, .2) 0 1px, transparent 1px 8px), repeating-linear-gradient(135deg, rgba(28, 26, 23, .2) 0 1px, transparent 1px 8px); }
.s-platform    { background-color: var(--basalt); background-image: repeating-linear-gradient(135deg, rgba(238, 231, 217, .14) 0 1px, transparent 1px 6px); }
.s-rewards     { background-color: var(--gold); }

.s-platform .stratum-pct { background: var(--basalt); color: var(--ivory-on-dark); }

.strata-brackets {
  position: relative;
  width: 7.5rem;
  height: var(--strata-h);
}
.bracket {
  position: absolute;
  left: 0;
  right: 0;
  border-left: 1px solid var(--basalt);
  padding-left: .8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bracket::before, .bracket::after {
  content: "";
  position: absolute;
  left: 0;
  width: 8px;
  height: 1px;
  background: var(--basalt);
}
.bracket::before { top: 0; }
.bracket::after { bottom: 0; }
.bracket strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1;
  font-variant-numeric: lining-nums;
}
.bracket span { font-size: var(--step--1); color: var(--tufa); line-height: 1.3; }
.bracket.is-fee strong { font-size: 1.1rem; }

.strata-caption {
  margin-top: 1.1rem;
  font-size: var(--step--1);
  color: var(--tufa);
  max-width: 44ch;
}
.strata-caption b { color: var(--gold-ink); font-weight: 600; }

.ledger-lead { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem; align-items: center; margin-bottom: 2.5rem; }
.ledger-figure {
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 3rem + 4vw, 7rem);
  line-height: .82;
  letter-spacing: -.04em;
  color: var(--basalt);
  font-variant-numeric: lining-nums;
}
.ledger-figure small { font-size: .45em; letter-spacing: 0; color: var(--gold-ink); }
.ledger-lead p { max-width: 40ch; color: var(--tufa); }

.ledger-group + .ledger-group { margin-top: 2rem; }
.ledger-group-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--basalt);
}
.ledger-group-title .ledger-total {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.ledger-group ul { list-style: none; }

.ledger-item {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr) auto;
  gap: .25rem 1rem;
  align-items: start;
  padding: 1rem .5rem 1rem 0;
  border-bottom: 1px solid var(--limestone);
  transition: background-color .35s var(--ease), opacity .35s var(--ease);
}
.ledger-item .swatch {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .2rem;
  border: 1px solid rgba(28, 26, 23, .55);
}
.ledger-item h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}
.ledger-item p { margin-top: .15rem; font-size: .875rem; line-height: 1.5; color: var(--tufa); }
.ledger-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.ledger-item.is-reward { background: linear-gradient(90deg, rgba(165, 131, 75, .16), rgba(165, 131, 75, 0) 75%); }
.ledger-item.is-reward .ledger-value { color: var(--gold-ink); }
.ledger.has-active .ledger-item:not(.is-active) { opacity: .45; }

.commitments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem var(--col-gap);
  margin-top: clamp(4.5rem, 8vw, 7rem);
}
.commitment { padding-top: 1.25rem; border-top: 1px solid var(--basalt); }
.commitment h3 { font-size: 1.4rem; line-height: 1.2; }
.commitment p { margin-top: .5rem; font-size: .9375rem; color: var(--tufa); max-width: 36ch; }

@media (max-width: 1000px) {
  .strata-figure, .ledger-panel { grid-column: 1 / -1; }
  .strata-figure { max-width: 560px; }
}
@media (max-width: 760px) {
  .commitments { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .strata-brackets { width: 5.5rem; }
  .bracket strong { font-size: 1.25rem; }
  .ledger-lead { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 2.5rem;
}
.faq-head { grid-column: 1 / span 4; }
.faq-head .section-title { margin-top: 1.25rem; font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.5rem); }
.faq-list { grid-column: 6 / span 7; border-top: 1px solid var(--basalt); }

.faq-item { border-bottom: 1px solid var(--limestone); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.4rem;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem);
  line-height: 1.25;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform .45s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--gold-ink); }
.faq-item p { max-width: 62ch; padding-bottom: 1.5rem; color: var(--tufa); }

@media (max-width: 900px) {
  .faq-head, .faq-list { grid-column: 1 / -1; }
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--basalt);
  background-image: var(--grain-light);
  color: var(--ivory-on-dark);
  padding-top: var(--section);
  padding-bottom: 2.5rem;
}
.site-footer .label { color: var(--stone-on-dark); }

.footer-statement h2 {
  max-width: 16ch;
  margin-top: 1.5rem;
  font-size: clamp(2.6rem, 1.3rem + 4.8vw, 6.2rem);
  line-height: 1;
  letter-spacing: -.03em;
}
.footer-statement h2 em { display: block; font-style: italic; color: var(--gold-light); }
.footer-statement .btn { margin-top: 2.75rem; }

.footer-nav {
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-top: 2rem;
  border-top: 1px solid var(--basalt-line);
}
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .8rem 2.25rem; }
.footer-nav a { font-size: .9375rem; text-decoration: none; color: var(--ivory-on-dark); transition: color .3s; }
.footer-nav a:hover { color: var(--gold-light); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 3.5rem;
  font-size: var(--step--1);
  color: var(--stone-on-dark);
}
.footer-base a { color: inherit; }
.footer-base .brand { color: var(--ivory-on-dark); font-size: .95rem; }

/* ---------- Dialogs ---------- */
.dialog {
  width: min(560px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--limestone);
  background-color: var(--vellum);
  background-image: var(--grain);
  color: var(--basalt);
  box-shadow: 0 50px 120px -40px rgba(28, 26, 23, .6);
  overflow-y: auto;
}
.dialog::backdrop { background: rgba(28, 26, 23, .58); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dialog[open] { animation: dialog-in .55s var(--ease); }

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.dialog-inner { display: grid; gap: 1.5rem; padding: clamp(1.5rem, 4vw, 2.5rem); }

.dialog-head { position: relative; padding-right: 3rem; }
.dialog-head h2 { margin-top: .55rem; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.15rem); line-height: 1.08; }
.dialog-head .dialog-meta { margin-top: .5rem; font-size: .875rem; color: var(--tufa); }

.dialog-close {
  position: absolute;
  top: -.6rem;
  right: -.6rem;
  width: 44px;
  height: 44px;
  border: 0;
  background:
    linear-gradient(45deg, transparent calc(50% - .75px), var(--basalt) calc(50% - .75px), var(--basalt) calc(50% + .75px), transparent calc(50% + .75px)) center / 18px 18px no-repeat,
    linear-gradient(-45deg, transparent calc(50% - .75px), var(--basalt) calc(50% - .75px), var(--basalt) calc(50% + .75px), transparent calc(50% + .75px)) center / 18px 18px no-repeat;
  cursor: pointer;
  border-radius: 2px;
}
.dialog-close:hover { background-color: var(--limestone-soft); }

.amounts { margin: 0; padding: 0; border: 0; min-width: 0; }
.amounts legend { padding: 0; margin-bottom: .75rem; }

.amount-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.amount-options label { position: relative; }
.amount-options input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.amount-options span {
  display: grid;
  place-items: center;
  height: 52px;
  border: 1px solid var(--limestone);
  background: var(--parchment);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.amount-options label:hover span { border-color: var(--basalt); }
.amount-options input:checked + span { background: var(--basalt); border-color: var(--basalt); color: var(--vellum); }
.amount-options input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.amount-custom {
  display: flex;
  align-items: center;
  gap: .5rem;
  height: 52px;
  margin-top: .5rem;
  padding-inline: 1rem;
  border: 1px solid var(--limestone);
  background: var(--parchment);
}
.amount-custom:focus-within { border-color: var(--basalt); }
.amount-custom .currency { color: var(--tufa); }
.amount-custom input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-variant-numeric: tabular-nums;
}

.breakdown { border-top: 1px solid var(--basalt); }
.breakdown div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: .8rem;
  border-bottom: 1px solid var(--limestone);
  font-size: .9375rem;
}
.breakdown dt small { display: block; font-size: .75rem; color: var(--tufa); }
.breakdown dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.breakdown .is-reward dd { color: var(--gold-ink); }

.dialog-note { font-size: var(--step--1); line-height: 1.55; color: var(--tufa); }
.dialog-lead { color: var(--tufa); }
.dialog-lead strong { color: var(--basalt); font-weight: 600; overflow-wrap: anywhere; }

.field-group { display: grid; gap: .5rem; }
.field-label { font-size: .875rem; font-weight: 500; }
.field {
  width: 100%;
  height: 52px;
  padding-inline: 1rem;
  border: 1px solid var(--limestone);
  border-radius: 2px;
  background: var(--parchment);
  color: var(--basalt);
}
.field:focus { outline: none; border-color: var(--basalt); }

.divider { display: flex; align-items: center; gap: 1rem; font-size: var(--step--1); color: var(--tufa); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--limestone); }

.dialog-done .passage { margin-top: 0; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }

@media (max-width: 480px) {
  .amount-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Header over a dark hero (research pages) ---------- */
body:not(.menu-open) .header-on-dark:not(.is-scrolled) .brand,
body:not(.menu-open) .header-on-dark:not(.is-scrolled) .nav-links a,
body:not(.menu-open) .header-on-dark:not(.is-scrolled) .nav-connect,
body:not(.menu-open) .header-on-dark:not(.is-scrolled) .nav-x { color: var(--ivory-on-dark); }
body:not(.menu-open) .header-on-dark:not(.is-scrolled) .nav-actions .btn-primary { background: var(--ivory-on-dark); border-color: var(--ivory-on-dark); color: var(--basalt); }
body:not(.menu-open) .header-on-dark:not(.is-scrolled) .nav-toggle { border-color: rgba(238, 231, 217, .45); }
body:not(.menu-open) .header-on-dark:not(.is-scrolled) .nav-toggle span[aria-hidden] { background: var(--ivory-on-dark); }

/* ---------- Research dossier page ---------- */
.dossier-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(560px, 86vh, 900px);
  overflow: hidden;
  background: var(--basalt);
  color: var(--ivory-on-dark);
}

.dossier-hero-media { position: absolute; inset: 0; }
.dossier-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.85) sepia(.08);
}
.js .dossier-hero-media img { animation: settle 2.4s var(--ease) both; }

.dossier-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 26, 23, .62) 0%, rgba(28, 26, 23, .08) 22%, rgba(28, 26, 23, .38) 44%, rgba(28, 26, 23, .86) 70%, rgba(28, 26, 23, .96) 100%);
}

.dossier-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.js .dossier-hero-inner > * { animation: rise 1.1s var(--ease) both; }
.js .dossier-hero-inner > :nth-child(2) { animation-delay: .06s; }
.js .dossier-hero-inner > :nth-child(3) { animation-delay: .12s; }
.js .dossier-hero-inner > :nth-child(4) { animation-delay: .24s; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.75rem;
  font-size: .875rem;
  color: rgba(238, 231, 217, .72);
}
.breadcrumb a { color: var(--ivory-on-dark); text-decoration: none; border-bottom: 1px solid rgba(238, 231, 217, .4); }
.breadcrumb a:hover { border-bottom-color: var(--ivory-on-dark); }

.dossier-hero .label { color: var(--gold-light); }

.dossier-title {
  max-width: 17ch;
  margin-top: .9rem;
  font-size: clamp(2.7rem, 1.2rem + 5.2vw, 6.4rem);
  line-height: .96;
  letter-spacing: -.03em;
  color: #F6F1E7;
}

.dossier-facts {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 1.25rem clamp(2rem, 4.5vw, 4rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(238, 231, 217, .25);
}
.dossier-facts dt {
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stone-on-dark);
}
.dossier-facts dd { margin-top: .35rem; color: var(--ivory-on-dark); }

.dossier-credit {
  display: flex;
  gap: .75rem;
  padding-top: .9rem;
  padding-bottom: .9rem;
  font-size: var(--step--1);
  color: var(--tufa);
}
.dossier-credit a { color: inherit; }
.dossier-credit .plate-no { font-family: var(--font-display); font-style: italic; color: var(--gold-ink); }

.dossier-intro { padding-top: clamp(3rem, 6vw, 5rem); }
.dossier-intro .passage {
  max-width: 34ch;
  margin-top: 0;
  font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.9rem);
  line-height: 1.2;
}

.dossier-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: var(--section);
}

.dossier-aside {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
.dossier-main { grid-column: 1; grid-row: 1; min-width: 0; }

.dossier-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--col-gap);
}

.dossier-section {
  padding-top: 1.5rem;
  padding-bottom: clamp(2.75rem, 5vw, 4rem);
  border-top: 1px solid var(--basalt);
}

.dossier-heading {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -.02em;
}

.dossier-text {
  margin-top: 1rem;
  max-width: 60ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tufa);
}

.evidence-list { list-style: none; margin-top: 1.25rem; }
.evidence-item {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: .6rem 1.5rem;
  align-items: baseline;
  padding-block: 1rem;
  border-bottom: 1px solid var(--limestone);
}
.evidence-item .evidence-tag { justify-self: start; }

.questions { list-style: none; margin-top: 1.25rem; }
.questions li {
  padding-block: .9rem;
  border-bottom: 1px solid var(--limestone);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem);
  line-height: 1.3;
}

.team { list-style: none; margin-top: 1.25rem; }
.team li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: .8rem;
  border-bottom: 1px solid var(--limestone);
}
.monogram {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: var(--basalt);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.team h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.team p { font-size: .875rem; color: var(--tufa); }

.budget-bar { margin-top: 1.5rem; }
.budget-bar .strata { display: block; }
.budget-bar .strata-scale,
.budget-bar .strata-brackets { display: none; }
.budget-bar .strata-column { height: 64px; flex-direction: row; }
.budget-bar .stratum { box-shadow: inset 1px 0 0 rgba(28, 26, 23, .55); }
.budget-bar .stratum:first-child { box-shadow: none; }
.budget-bar .stratum-pct {
  left: 50%;
  transform: translate(-50%, -50%);
  padding: .05rem .35rem;
  font-size: .95rem;
}

#funding .ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem var(--col-gap);
  margin-top: 2rem;
}
#funding .ledger-group + .ledger-group { margin-top: 0; }
#funding .ledger-item { grid-template-columns: 1.15rem minmax(0, 1fr) auto; align-items: center; }
#funding .ledger-item p { display: none; }
#funding .ledger-value { font-size: 1.4rem; text-align: right; }
.ledger-value small {
  display: block;
  margin-top: .25rem;
  font-family: var(--font-body);
  font-size: .75rem;
  color: var(--tufa);
}

.updates { list-style: none; margin-top: 1.25rem; }
.update { padding-block: 1rem; border-bottom: 1px solid var(--limestone); }
.update time {
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.update h3 { margin-top: .35rem; font-size: 1.25rem; line-height: 1.2; }
.update p { margin-top: .3rem; font-size: .9375rem; color: var(--tufa); }

.documents { list-style: none; margin-top: 1.25rem; }
.document {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: .75rem 1rem;
  align-items: center;
  padding-block: 1rem;
  border-bottom: 1px solid var(--limestone);
}
.doc-icon { width: 2rem; height: 2rem; color: var(--gold-ink); }
.document h3 { margin-top: .15rem; font-family: var(--font-body); font-size: .9375rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.doc-meta { font-size: var(--step--1); color: var(--tufa); }
.doc-access { font-size: .75rem; color: var(--tufa); text-align: right; max-width: 9ch; line-height: 1.3; }
.document .text-link { font-size: .875rem; }

.support-card {
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--parchment);
  border: 1px solid var(--limestone);
  box-shadow: 0 30px 60px -45px rgba(28, 26, 23, .45);
}
.support-raised {
  margin-top: .9rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 2rem + 1.2vw, 3rem);
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.support-goal { margin-top: .4rem; font-size: .9375rem; color: var(--tufa); }
.support-card .funding-bar { height: 4px; margin-top: 1.5rem; }
.support-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--limestone);
}
.support-stats dt {
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tufa);
}
.support-stats dd {
  margin-top: .35rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.support-card .btn { margin-top: 1.5rem; }
.support-note { margin-top: 1rem; font-size: var(--step--1); line-height: 1.5; color: var(--tufa); }
.support-note b { font-weight: 600; color: var(--gold-ink); }

.support-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem var(--gutter);
  background: rgba(248, 244, 236, .96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--limestone);
  transform: translateY(110%);
  transition: transform .5s var(--ease);
}
.support-bar.is-visible { transform: none; }
.support-bar p { font-size: .875rem; color: var(--tufa); }
.support-bar strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; color: var(--basalt); }

.not-found { padding-top: calc(var(--header-h) + var(--section)); }
.not-found .section-title { margin-top: 1.25rem; max-width: 18ch; }
.not-found-text { margin-top: 1.25rem; margin-bottom: 2rem; color: var(--tufa); }

@media (max-width: 1200px) {
  .dossier-pair { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1000px) {
  .dossier-layout { grid-template-columns: minmax(0, 1fr); }
  .dossier-aside { grid-column: 1; grid-row: auto; position: static; }
  .dossier-main { grid-row: auto; }
  .support-bar { display: flex; }
}

@media (max-width: 760px) {
  .dossier-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dossier-pair { grid-template-columns: minmax(0, 1fr); }
  #funding .ledger { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .budget-bar .stratum-pct { display: none; }
  .evidence-item { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Information page ---------- */
.info-page { padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)); padding-bottom: var(--section); }
.info-title { margin-top: 1.25rem; font-size: var(--step-4); line-height: 1.02; letter-spacing: -.028em; }
.info-section {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 1rem var(--col-gap);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--basalt);
}
.info-section h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); line-height: 1.1; }
.info-section p { max-width: 62ch; color: var(--tufa); }
.info-section p + p { margin-top: .8rem; }
.credits { list-style: none; }
.credits li { padding-block: .8rem; border-bottom: 1px solid var(--limestone); font-size: .9375rem; color: var(--tufa); }
.credits li:first-child { padding-top: 0; }
.credits strong { font-weight: 600; color: var(--basalt); }

@media (max-width: 760px) {
  .info-section { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Motion ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(0.35em); }
  to { opacity: 1; transform: none; }
}

@keyframes unveil {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes settle {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

.js .hero-title .line { animation: rise 1.1s var(--ease) both; }
.js .hero-title .line:nth-child(2) { animation-delay: .12s; }
.js .hero .label,
.js .hero-sub,
.js .hero-actions { animation: rise 1.1s var(--ease) both; }
.js .hero .label { animation-delay: .05s; }
.js .hero-sub { animation-delay: .3s; }
.js .hero-actions { animation-delay: .42s; }
.js .hero-plate .plate-mount { animation: unveil 1.4s var(--ease) .15s both; }
.js .hero-plate .plate-image img { animation: settle 2.2s var(--ease) .15s both; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

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