/* ============================================================
   Mitch Clark for Brockton Councillor
   Cinematic redesign — splash, panning hero, rotating quotes,
   scroll reveals, sticky nav.
   Base palette from the physical lawn sign.
   ============================================================ */

:root {
  /* palette */
  --paper:      #FCFAF4;
  --paper-2:    #F4F0E4;
  --ink:        #0F2340;
  --ink-2:      #08172D;
  --ink-3:      #050D1D;
  --stamp:      #7FB6E6;
  --stamp-2:    #A7CCF0;
  --stamp-soft: #DCE9F5;
  --rule:       #DCD5C0;
  --rule-ink:   rgba(15, 35, 64, 0.14);
  --muted:      #5B6478;

  /* type */
  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body:    "Inter", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* layout */
  --w:         1200px;
  --w-narrow:  980px;
  --gutter:    28px;

  /* motion */
  --ease:      cubic-bezier(.2, .7, .2, 1);
}

/* ---------- reset ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--rule-ink); }
a:hover { text-decoration-color: var(--ink); }
a:focus-visible { outline: 2px solid var(--stamp); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--stamp); color: var(--ink-2); }

/* ---------- splash / preloader ---------- */

.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ink-3);
  color: #fff;
  display: grid;
  place-items: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.splash[data-state="hiding"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash__ink {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(127,182,230,0.10), transparent 65%);
  opacity: 0; animation: splashInk 1.6s var(--ease) forwards;
}
.splash__inner { text-align: center; position: relative; padding: 0 24px; }
.splash__pill {
  display: inline-block;
  background: var(--stamp);
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  padding: 6px 18px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(8px);
  animation: splashPill 0.6s var(--ease) 0.05s forwards;
}
.splash__wordmark {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(3.4rem, 10vw, 7rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 28px 0 20px;
  color: #fff;
}
.splash__wordmark span {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  animation: splashWord 0.75s var(--ease) forwards;
}
.splash__wordmark span:nth-child(1) { animation-delay: 0.10s; }
.splash__wordmark span:nth-child(2) { animation-delay: 0.34s; margin-left: 0.24em; }
.splash__wordmark span:nth-child(3) { animation-delay: 0.56s; margin-left: 0.24em; }
.splash__vote { color: var(--stamp); font-style: italic; font-weight: 400; }
.splash__sub {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--stamp);
  opacity: 0;
  animation: splashSub 0.7s var(--ease) 0.85s forwards;
}
.splash__bar {
  width: 120px;
  height: 2px;
  background: rgba(255,255,255,0.15);
  margin: 32px auto 0;
  overflow: hidden;
  position: relative;
}
.splash__bar::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--stamp);
  transform: scaleX(0); transform-origin: left;
  animation: splashBar 2.4s var(--ease) 0.4s forwards;
}
.splash__skip {
  position: absolute; bottom: 32px; left: 0; right: 0;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  opacity: 0;
  animation: splashSub 0.5s var(--ease) 1.6s forwards;
}

@keyframes splashInk  { to { opacity: 1; } }
@keyframes splashPill { to { opacity: 1; transform: translateY(0); } }
@keyframes splashWord { to { opacity: 1; transform: translateY(0); } }
@keyframes splashSub  { to { opacity: 1; } }
@keyframes splashBar  { to { transform: scaleX(1); } }

/* body scroll lock while splash is up */
body[data-splash="on"] { overflow: hidden; }

/* ---------- layout primitives ---------- */

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: var(--w-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.rule   { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* scroll-fade utility (set by JS via IntersectionObserver) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* ---------- typography ---------- */

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; color: var(--ink); margin: 0; line-height: 1.12; letter-spacing: -0.012em; }
.h-xxl { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.h-xl  { font-size: clamp(2.4rem, 5.4vw, 3.6rem); font-weight: 500; letter-spacing: -0.02em; }
.h-l   { font-size: clamp(1.75rem, 3.4vw, 2.25rem); font-weight: 500; }
.h-m   { font-size: 1.35rem; font-weight: 600; }
.h-s   { font-size: 1.05rem; font-weight: 600; }

.mono      { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.eyebrow   { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.20em; text-transform: uppercase; color: var(--muted); }
.eyebrow-ink { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.20em; text-transform: uppercase; color: var(--ink); }
.eyebrow-light { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.30em; text-transform: uppercase; color: var(--stamp); }

.lede { font-family: var(--f-body); font-size: 1.18rem; line-height: 1.55; color: var(--ink); max-width: 36em; margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.stamp {
  display: inline-block;
  background: var(--stamp);
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  vertical-align: middle;
}
.stamp-outline {
  display: inline-block;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}
.stamp-outline--light {
  border-color: rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.9);
}

/* ---------- sticky topbar ---------- */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  background: transparent;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), box-shadow 0.35s var(--ease), padding 0.35s var(--ease);
}
.topbar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.topbar--onlight .topbar__inner { color: var(--ink); }
.topbar--onlight .wordmark__name { color: var(--ink); }
.topbar--onlight .wordmark__tag  { color: var(--muted); }
.topbar--onlight .nav a          { color: var(--ink); }

/* transparent-over-dark hero variant (home) */
.topbar--onhero .wordmark__name { color: #fff; }
.topbar--onhero .wordmark__tag  { color: var(--stamp); }
.topbar--onhero .nav a          { color: rgba(255,255,255,0.9); }
.topbar--onhero .nav a:hover    { color: #fff; }
.topbar--onhero .topbar__stamp .stamp-outline { border-color: rgba(255,255,255,0.4); color: rgba(255,255,255,0.95); }

/* scrolled state — both variants converge to opaque paper */
.topbar.is-stuck {
  background: rgba(252,250,244,0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 rgba(15,35,64,0.08), 0 8px 24px rgba(15,35,64,0.05);
  padding: 10px 0;
}
.topbar.is-stuck .wordmark__name { color: var(--ink); }
.topbar.is-stuck .wordmark__tag  { color: var(--muted); }
.topbar.is-stuck .nav a          { color: var(--ink); }
.topbar.is-stuck .topbar__stamp .stamp-outline { border-color: var(--ink); color: var(--ink); }

.wordmark { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.wordmark__name { font-family: var(--f-display); font-weight: 600; font-size: 1.32rem; letter-spacing: -0.01em; transition: color 0.35s var(--ease); }
.wordmark__tag  { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; transition: color 0.35s var(--ease); }

.nav { display: flex; gap: 26px; align-items: center; justify-self: end; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.topbar__stamp { justify-self: center; }

/* mobile nav toggle (progressive enhancement) */
.nav-toggle { display: none; background: transparent; border: 0; color: inherit; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- hero (home) ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: -2;
  background: var(--ink-3);
}
.hero__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
  animation: kenBurns 24s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenBurns {
  from { transform: scale(1.05) translate(0, 0); }
  to   { transform: scale(1.14) translate(-1.5%, -1%); }
}
.hero__scrim {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,13,29,0.55) 0%, rgba(5,13,29,0.35) 30%, rgba(5,13,29,0.75) 100%),
    linear-gradient(90deg, rgba(5,13,29,0.55) 0%, rgba(5,13,29,0.10) 60%);
}
.hero__grain {
  position: absolute; inset: 0;
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.06 0 0 0 0 0.09 0 0 0 0 0.18 0 0 0 0.4 0'/></filter><rect width='120' height='120' filter='url(%23n)' opacity='0.55'/></svg>");
  mix-blend-mode: overlay;
}

.hero__inner {
  padding: 160px 0 120px;
}

/* Portrait cutout used on the About page beside the bio */
.bio-portrait {
  position: sticky;
  top: 96px;
  margin: 0;
  text-align: center;
}
.bio-portrait__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 320px;
  margin: 0 auto;
  filter: drop-shadow(0 12px 32px rgba(15, 35, 64, 0.18));
}
.bio-portrait__cap {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 20px;
}
.bio-portrait__cap strong { color: var(--ink); font-weight: 500; letter-spacing: 0.16em; }
.hero__eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
}
.hero__title {
  margin: 0 0 24px;
  max-width: none;
  color: #fff;
}
.hero__title em { font-style: italic; font-weight: 400; color: var(--stamp); display: inline-block; }
.hero__lede {
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  max-width: 34em;
  margin-bottom: 40px;
}
.hero__cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.hero__meta {
  position: absolute; bottom: 40px; left: 0; right: 0;
  z-index: 1;
  display: flex; justify-content: space-between; align-items: end;
  padding: 0 var(--gutter);
  max-width: var(--w);
  margin: 0 auto;
  color: rgba(255,255,255,0.65);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}
.hero__slidedots { display: flex; gap: 8px; align-items: center; }
.hero__slidedots button {
  width: 26px; height: 2px; padding: 0; border: 0;
  background: rgba(255,255,255,0.28);
  cursor: pointer;
  transition: background 0.3s var(--ease);
}
.hero__slidedots button.is-active { background: var(--stamp); }
.hero__scroll {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  animation: hint 2.4s ease-in-out infinite;
}
@keyframes hint {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* buttons */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  will-change: transform;
}
.btn:hover      { transform: translateY(-1px); }
.btn:active     { transform: translateY(0); }
.btn--stamp     { background: var(--stamp); color: var(--ink-3); box-shadow: 0 8px 24px rgba(127,182,230,0.35); }
.btn--stamp:hover { background: var(--stamp-2); box-shadow: 0 10px 28px rgba(127,182,230,0.45); }
.btn--outline-light { border-color: rgba(255,255,255,0.55); color: #fff; background: transparent; }
.btn--outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn--solid   { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--ink-2); color: var(--paper); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn__arrow { display: inline-block; transition: transform 0.2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- communities strip (below hero) ---------- */

.communities {
  background: var(--ink-2);
  color: rgba(255, 255, 255, 0.75);
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.communities__inner {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 var(--gutter);
  max-width: var(--w);
  margin: 0 auto;
  line-height: 1.9;
}
.communities__lead {
  color: var(--stamp);
  margin-right: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.communities__list { color: rgba(255, 255, 255, 0.68); }

/* ---------- stat strip ---------- */

.stats {
  padding: 72px 0;
  background: var(--ink);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  align-items: center;
  justify-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat__num {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat__num .prefix { color: var(--stamp); font-size: 0.62em; margin-right: 4px; vertical-align: 0.06em; font-weight: 300; }
.stat__num .suffix { color: rgba(255,255,255,0.6); font-size: 0.5em; margin-left: 4px; vertical-align: 0.2em; font-weight: 400; }
.stat__label {
  display: block;
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ---------- life-in-brockton photo band ---------- */

.life { padding: 120px 0; background: var(--paper-2); }
.life__head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 20px; margin-bottom: 32px;
  border-bottom: 2px solid var(--ink);
  gap: 24px; flex-wrap: wrap;
}
.life__head h2 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); }

/* Auto-scrolling two-row marquee for the Life in Brockton photo band */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 12px 0;
  margin: 8px -24px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.marquee__track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 12px 0;
  will-change: transform;
}
.marquee__track--left  { animation: marqueeL 80s linear infinite; }
.marquee__track--right { animation: marqueeR 80s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marqueeL { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marqueeR { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.marquee__img {
  height: 240px;
  width: auto;
  display: block;
  flex-shrink: 0;
  border-radius: 4px;
  object-fit: cover;
  filter: saturate(0.96);
  transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
  box-shadow: 0 1px 3px rgba(15,35,64,0.08), 0 12px 24px rgba(15,35,64,0.06);
}
.marquee__img:hover { filter: saturate(1.08); transform: scale(1.02); }

@media (max-width: 720px) {
  .marquee__img { height: 180px; }
  .marquee__track--left, .marquee__track--right { animation-duration: 60s; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track--left, .marquee__track--right { animation: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
}

/* ---------- about hero portrait ---------- */

.portrait {
  padding: 40px 0 0;
  background: var(--paper);
}
.portrait__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: end;
}
.portrait__fig { margin: 0; position: relative; }
.portrait__fig img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 3 / 2; object-fit: cover;
  filter: saturate(0.96);
}
.portrait__fig figcaption {
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.portrait__side {
  padding-bottom: 12px;
}
.portrait__side p {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}
.portrait__side .credit {
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 14px;
  display: block;
}

/* ---------- manifesto / personal-mission section ---------- */

.manifesto { padding: 120px 0; background: var(--paper-2); position: relative; overflow: hidden; }
.manifesto__mark {
  font-family: var(--f-display);
  font-size: clamp(8rem, 20vw, 18rem);
  line-height: 1;
  color: var(--ink);
  opacity: 0.05;
  position: absolute;
  top: -20px; right: -20px;
  pointer-events: none;
  user-select: none;
}
.manifesto__grid { max-width: 780px; margin: 0 auto; position: relative; z-index: 1; }
.manifesto__label {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
}
.manifesto__lead {
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.75rem, 3.4vw, 2.4rem);
  line-height: 1.24;
  color: var(--ink);
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}
.manifesto__body { font-size: 1.12rem; line-height: 1.7; color: var(--ink); }
.manifesto__body p { margin: 0 0 18px; }
.manifesto__body p:last-child { margin-bottom: 0; }
.manifesto__sig {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 32px 0 0;
}

/* ---------- rotating quote ---------- */

.quotes {
  padding: 120px 0;
  background: var(--ink-2);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.quotes::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(127,182,230,0.12), transparent 55%);
  pointer-events: none;
}
.quotes__mark {
  font-family: var(--f-display);
  font-size: clamp(6rem, 14vw, 12rem);
  line-height: 1;
  color: var(--stamp);
  opacity: 0.35;
  position: absolute;
  top: 24px; left: 40px;
  pointer-events: none;
  user-select: none;
}
/* Stage uses grid; all quotes stack in the same cell so only the
   active one is visible without layout thrash between transitions. */
.quotes__stage {
  display: grid;
  min-height: 280px;
}
.quote {
  grid-area: 1 / 1;
  display: grid; align-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), visibility 0s linear 0.55s;
  pointer-events: none;
}
.quote.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), visibility 0s;
}
.quote__text {
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin: 0 0 24px;
  color: #fff;
}
.quote__cite {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--stamp);
}
.quotes__dots {
  display: flex; gap: 10px; margin-top: 40px;
}
.quotes__dots button {
  width: 32px; height: 2px; padding: 0; border: 0;
  background: rgba(255,255,255,0.2);
  cursor: pointer; transition: background 0.3s var(--ease);
}
.quotes__dots button.is-active { background: var(--stamp); }

/* ---------- ledger (kept, refined) ---------- */

.section { padding: 120px 0; }
.section--paper2 { background: var(--paper-2); }
.section__head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 20px; margin-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  gap: 24px;
  flex-wrap: wrap;
}
.section__head h2 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); }
.section__eyebrow { margin-bottom: 12px; }

.ledger { border-bottom: 1px solid var(--rule); }
.row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 28px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  transition: background 0.2s var(--ease);
}
.row:last-child { border-bottom: 0; }
.row:hover { background: rgba(15,35,64,0.02); }
.row__date { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.row__item { font-family: var(--f-body); font-size: 1.02rem; line-height: 1.5; color: var(--ink); }
.row__item strong { font-weight: 600; }
.row__item .note { display: block; font-size: 0.9rem; color: var(--muted); margin-top: 6px; }
.row__out  { font-family: var(--f-mono); font-size: 0.82rem; letter-spacing: 0.06em; text-align: right; color: var(--ink); white-space: nowrap; }

.section__foot { margin-top: 32px; }

/* ---------- platform TOC ---------- */

.toc__list { list-style: none; margin: 0; padding: 0; }
.toc__item { border-bottom: 1px solid var(--rule); }
.toc__item a {
  display: grid;
  grid-template-columns: 56px 1fr auto 24px;
  align-items: baseline;
  gap: 20px;
  padding: 26px 0;
  text-decoration: none;
  color: var(--ink);
  transition: padding 0.3s var(--ease), color 0.3s var(--ease);
}
.toc__item a:hover { padding-left: 12px; color: var(--ink-2); }
.toc__num { font-family: var(--f-mono); font-size: 0.88rem; color: var(--muted); }
.toc__title { font-family: var(--f-display); font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 500; letter-spacing: -0.01em; }
.toc__hint { font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); white-space: nowrap; letter-spacing: 0.05em; }
.toc__arrow { font-family: var(--f-mono); color: var(--muted); transition: transform 0.3s var(--ease), color 0.3s var(--ease); }
.toc__item a:hover .toc__arrow { transform: translateX(6px); color: var(--ink); }

/* ---------- full-bleed CTA ---------- */

.cta {
  padding: 140px 0;
  background: var(--ink);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(127,182,230,0.14), transparent 60%);
  pointer-events: none;
}
.cta__eyebrow { color: var(--stamp); margin-bottom: 20px; }
.cta__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 16ch;
  margin: 0 auto 24px;
  line-height: 1.05;
}
.cta__lede {
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  max-width: 34em;
  margin: 0 auto 40px;
}
.cta__buttons { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.cta__date {
  margin-top: 40px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ---------- generic page shell (inner pages) ---------- */

.pagehead { padding: 160px 0 56px; border-bottom: 1px solid var(--rule); background: var(--paper); }
.pagehead__eyebrow { margin-bottom: 16px; }
.pagehead h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0 0 16px; letter-spacing: -0.02em; }
.pagehead p  { color: var(--muted); max-width: 42em; font-size: 1.12rem; }

/* Cinematic page banner (used on About, ready for Platform/Record later) */
.pagehero {
  position: relative;
  min-height: 62vh;
  min-height: 62svh;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: end;
}
.pagehero__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
  z-index: -2;
  animation: kenBurns 26s ease-in-out infinite alternate;
}
.pagehero__scrim {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,13,29,0.35) 0%, rgba(5,13,29,0.15) 30%, rgba(5,13,29,0.82) 100%);
}
.pagehero__inner { padding: 160px 0 64px; position: relative; z-index: 1; }
.pagehero__eyebrow { color: var(--stamp); margin-bottom: 16px; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; }
.pagehero h1 {
  color: #fff;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.08;
}
.pagehero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  max-width: 42em;
  margin: 0;
}

/* editorial (About) - clean, modern, spacious */
.editorial { padding: 80px 0 120px; background: var(--paper); }

/* horizontal "at a glance" facts strip that sits above the bio */
.about-facts {
  max-width: var(--w-narrow);
  margin: 0 auto 72px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.about-facts__item { padding: 0; }
.about-facts__label {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.about-facts__value {
  font-family: var(--f-body);
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}
.about-facts__value strong { font-weight: 500; }

/* two-column bio layout: sticky portrait beside prose */
.bio-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 72px;
  align-items: start;
  max-width: var(--w-narrow);
  margin: 0 auto;
}
@media (max-width: 900px) {
  .bio-grid { grid-template-columns: 1fr; gap: 40px; }
  .bio-portrait { position: static; }
  .bio-portrait__img { max-width: 240px; }
}

/* clean prose column, generous width and spacing */
.prose {
  max-width: 720px;
  margin: 0 auto;
}
.bio-grid .prose { max-width: none; margin: 0; }
.prose h2 {
  font-family: var(--f-display);
  font-size: clamp(1.55rem, 2.6vw, 1.9rem);
  font-weight: 500;
  margin: 64px 0 20px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.prose h2:first-child { margin-top: 0; }
.prose p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 20px;
}
.prose p:last-child { margin-bottom: 0; }
.prose blockquote {
  border-left: 3px solid var(--stamp);
  margin: 28px 0;
  padding: 6px 0 6px 22px;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--ink);
}
.prose blockquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
}

/* platform page chapters */
.chapter { padding: 72px 0; border-bottom: 1px solid var(--rule); }
.chapter:last-of-type { border-bottom: 0; }
.chapter__num { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.20em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.chapter__title { font-family: var(--f-display); font-size: clamp(1.9rem, 3.4vw, 2.4rem); font-weight: 500; margin: 0 0 20px; letter-spacing: -0.015em; }
.chapter__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.chapter__body { color: var(--ink); }
.chapter__body p { font-size: 1.08rem; line-height: 1.65; }
.chapter__list  { margin: 0; padding: 0; list-style: none; }
.chapter__list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.98rem;
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
}
.chapter__list li::before {
  content: "→";
  font-family: var(--f-mono);
  color: var(--stamp);
  font-size: 0.9rem;
  line-height: 1.55;
}
.chapter__list li:last-child { border-bottom: 0; }

/* news clips */
.clip { padding: 26px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: baseline; transition: background 0.2s var(--ease); }
.clip:hover { background: rgba(15,35,64,0.02); }
.clip:last-child { border-bottom: 0; }
.clip__date { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.10em; text-transform: uppercase; color: var(--muted); }
.clip__title { font-family: var(--f-display); font-size: 1.25rem; font-weight: 500; margin: 0 0 6px; line-height: 1.3; letter-spacing: -0.01em; }
.clip__title a { text-decoration: none; color: var(--ink); background-image: linear-gradient(var(--rule-ink), var(--rule-ink)); background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 0.2s var(--ease); }
.clip__title a:hover { background-size: 100% 2px; background-image: linear-gradient(var(--ink), var(--ink)); }
.clip__source { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.clip__q {
  border-left: 2px solid var(--stamp);
  padding: 6px 0 6px 16px;
  margin: 10px 0 0;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--ink);
}

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; margin: 40px 0; }
.contact-card { padding: 32px 0; border-top: 2px solid var(--ink); }
.contact-card .kicker { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.20em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.contact-card h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.35rem; margin: 0 0 10px; letter-spacing: -0.01em; }
.contact-card p  { margin: 6px 0; }
.contact-card a  { font-weight: 500; }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--ink); padding: 40px 0 48px; margin-top: 96px; background: var(--paper); }
.foot__grid { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.foot__auth { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); max-width: 900px; line-height: 1.6; }
.foot__meta { text-align: center; font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
.foot__meta a { color: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .stats__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .chapter__grid { grid-template-columns: 1fr; gap: 28px; }
  .about-facts { grid-template-columns: 1fr 1fr; gap: 24px 32px; padding: 24px 0; margin-bottom: 48px; }
  .life__row--three { grid-template-columns: 1fr 1fr; }
  .life__row--three .life__fig:nth-child(3) { grid-column: 1 / -1; max-width: 60%; margin: 0 auto; }
  .life__row--two { grid-template-columns: 1fr 1fr; max-width: 640px; }
  .portrait__grid { grid-template-columns: 1fr; gap: 24px; }
  .portrait__side { padding-bottom: 0; }
}
@media (max-width: 560px) {
  .stats__grid { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .life__row--three, .life__row--two { grid-template-columns: 1fr; }
  .life__row--three .life__fig:nth-child(3) { grid-column: auto; max-width: 100%; }
}

@media (max-width: 720px) {
  .topbar__inner { grid-template-columns: 1fr auto auto; }
  .topbar__stamp { display: none; }
  .nav { position: fixed; inset: 60px 12px auto 12px; background: rgba(252,250,244,0.98); backdrop-filter: blur(16px); padding: 20px; border-radius: 8px; box-shadow: 0 24px 60px rgba(15,35,64,0.15); flex-direction: column; align-items: stretch; gap: 6px; display: none; }
  .nav.is-open { display: flex; }
  .nav a { color: var(--ink) !important; padding: 10px 6px; border-bottom: 1px solid var(--rule); }
  .nav a::after { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .topbar--onhero .nav-toggle { color: #fff; }
  .topbar.is-stuck .nav-toggle { color: var(--ink); }
  .hero__inner { padding: 120px 0 100px; }
  .hero__meta { flex-direction: column; align-items: flex-start; gap: 16px; bottom: 24px; }
  .hero__scroll { display: none; }
  .row { grid-template-columns: 90px 1fr; row-gap: 4px; }
  .row__out { grid-column: 2; text-align: left; font-size: 0.78rem; color: var(--muted); }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .clip { grid-template-columns: 1fr; gap: 6px; }
  .foot__auth { font-size: 0.68rem; }
  .toc__item a { grid-template-columns: 40px 1fr 20px; }
  .toc__hint { display: none; }
  .section { padding: 80px 0; }
  .quotes { padding: 80px 0; }
  .cta { padding: 100px 0; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
}

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

/* ============================================================
   Timeline (Record page) — scroll-pinned "Time Mode" experience
   ------------------------------------------------------------
   Base (no JS / narrow viewport / prefers-reduced-motion):
     the whole thing degrades to a plain vertical stack of cards.
   When JS activates on wide viewports it adds `.timeline--active`
   which turns on the pinned stage, rail, and card animation.
   ============================================================ */

.pagehead--compact { padding: 140px 0 40px; border-bottom: 0; }

.timeline {
  position: relative;
  background: var(--ink-3);
  color: #fff;
}

/* --- base (fallback) card stack --- */
.timeline__pin { padding: 40px 0 60px; }
.timeline__bg,
.timeline__hud,
.timeline__yearbox,
.timeline__rail,
.timeline__scrollhint { display: none; }
.timeline__grid { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }
.timeline__stage { display: flex; flex-direction: column; gap: 18px; }
.tcard {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--stamp);
  padding: 24px 26px;
  border-radius: 4px;
  color: #fff;
}
.tcard__date {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stamp);
  margin-bottom: 12px;
}
.tcard__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 14px;
  color: #fff;
}
.tcard__body {
  font-family: var(--f-body);
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
  margin: 0 0 18px;
  max-width: 44em;
}
.tcard__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.tcard__out {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stamp);
  padding: 4px 10px;
  border: 1px solid rgba(127,182,230,0.5);
  border-radius: 999px;
}
.tcard__out--num { letter-spacing: 0.06em; text-transform: none; font-weight: 500; }
.tcard__out--big { font-size: 0.95rem; padding: 6px 14px; background: var(--stamp); color: var(--ink-3); border-color: var(--stamp); font-weight: 600; }
.tcard__src {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 2px;
}
.tcard__src:hover { color: var(--stamp); border-bottom-color: var(--stamp); }

/* --- active (JS + wide viewport + motion) --- */
.timeline--active { }
.timeline--active .timeline__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  padding: 0;
  background: var(--ink-3);
}
.timeline--active .timeline__bg {
  display: block;
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.timeline--active .timeline__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.35) brightness(0.55) contrast(1.05);
  transform: scale(1.06);
  animation: tlBgPan 40s var(--ease) infinite alternate;
}
.timeline--active .timeline__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 30% 40%, rgba(8,23,45,0.55), rgba(5,13,29,0.92) 70%),
    linear-gradient(180deg, rgba(5,13,29,0.7) 0%, rgba(5,13,29,0.4) 40%, rgba(5,13,29,0.85) 100%);
}
.timeline--active .timeline__grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.6;
  mix-blend-mode: overlay;
  pointer-events: none;
}
@keyframes tlBgPan {
  from { transform: scale(1.06) translate(0, 0); }
  to   { transform: scale(1.12) translate(-2%, -1.5%); }
}

/* HUD overlay */
.timeline--active .timeline__hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 32px; left: 40px; right: 40px;
  z-index: 3;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.timeline__mode { display: inline-flex; align-items: center; gap: 10px; }
.timeline__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--stamp);
  box-shadow: 0 0 10px rgba(127,182,230,0.7);
  animation: tlDotPulse 2.4s ease-in-out infinite;
}
@keyframes tlDotPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%     { transform: scale(1.35); opacity: 0.55; }
}
.timeline__counter { font-variant-numeric: tabular-nums; }
.timeline__counter-sep { color: rgba(255,255,255,0.35); margin: 0 2px; }

/* Grid: year | rail | card */
.timeline--active .timeline__grid {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr 120px minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

/* Big italic year on the left */
.timeline--active .timeline__yearbox {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding-right: 20px;
}
.timeline__year-label {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.timeline__year {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(6rem, 12vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #fff;
  display: inline-block;
  transition: transform 0.5s var(--ease), opacity 0.35s var(--ease);
}
.timeline__year.is-swapping { opacity: 0; transform: translateY(-14px); }

/* Vertical rail in the centre */
.timeline--active .timeline__rail {
  display: block;
  position: relative;
  height: 78%;
  width: 100%;
  justify-self: center;
}
.timeline__rail-line {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.06) 0%,
    rgba(255,255,255,0.22) 20%,
    rgba(255,255,255,0.22) 80%,
    rgba(255,255,255,0.06) 100%);
}
.timeline__ticks {
  position: absolute; inset: 0;
  list-style: none; margin: 0; padding: 0;
}
.timeline__ticks li {
  position: absolute;
  left: 50%;
  top: calc(var(--pos) * 100%);
  transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,0.35);
  transition: color 0.4s var(--ease);
}
.timeline__ticks li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
  order: 2;
}
.timeline__ticks li span {
  order: 1;
  padding-right: 18px;
  min-width: 4ch;
  text-align: right;
}
.timeline__ticks li.is-current {
  color: var(--stamp);
}
.timeline__ticks li.is-current::before {
  background: var(--stamp);
  box-shadow: 0 0 0 4px rgba(127,182,230,0.18), 0 0 14px rgba(127,182,230,0.55);
  transform: scale(1.25);
}

/* The moving cursor */
.timeline__cursor {
  position: absolute;
  left: 50%; top: 0;
  transform: translate(-50%, -50%);
  width: 22px; height: 22px;
  pointer-events: none;
  transition: top 0.35s var(--ease);
}
.timeline__cursor-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(127,182,230,0.55);
  animation: tlCursorRing 2.4s ease-in-out infinite;
}
.timeline__cursor-dot {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--stamp);
  box-shadow: 0 0 18px rgba(127,182,230,0.75);
}
@keyframes tlCursorRing {
  0%,100% { transform: scale(1); opacity: 0.7; }
  50%     { transform: scale(1.55); opacity: 0.15; }
}

/* Stage — cards stack absolutely, one shown at a time */
.timeline--active .timeline__stage {
  position: relative;
  display: block;
  height: 100%;
  max-height: 68vh;
}
.timeline--active .tcard {
  position: absolute;
  inset: 0;
  margin: auto;
  background: transparent;
  border: 0;
  padding: 0 20px 0 0;
  max-width: 560px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.timeline--active .tcard.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.timeline--active .tcard.is-past {
  opacity: 0;
  transform: translateY(-24px);
}
.timeline--active .tcard__date {
  color: var(--stamp);
  margin-bottom: 22px;
}
.timeline--active .tcard__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: #fff;
  text-wrap: balance;
}
.timeline--active .tcard__body {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  margin: 0 0 26px;
}
.timeline--active .tcard--finale .tcard__title { color: var(--stamp); }

/* Card list — used by pillar cards on the platform page */
.tcard__list {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.tcard__list li {
  font-family: var(--f-body);
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  padding-left: 22px;
  position: relative;
}
.tcard__list li::before {
  content: "→";
  position: absolute; left: 0; top: 0;
  color: var(--stamp);
  font-family: var(--f-mono);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Card quote — used inside a bio-style timeline card */
.tcard__quote {
  margin: 4px 0 20px;
  padding: 8px 0 8px 20px;
  border-left: 3px solid var(--stamp);
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.4;
  color: #fff;
}
.tcard__quote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* Card CTA row */
.tcard__cta {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}

/* Scroll hint (bottom centre) */
.timeline--active .timeline__scrollhint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: opacity 0.4s var(--ease);
}
.timeline__scrollhint-line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0));
  animation: tlScrollLine 1.8s ease-in-out infinite;
  transform-origin: top;
}
@keyframes tlScrollLine {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(20px); opacity: 0; }
}
.timeline--active .timeline__scrollhint.is-hidden { opacity: 0; pointer-events: none; }

/* Narrow viewport: force the fallback path even if JS ran */
@media (max-width: 899px) {
  .timeline--active .timeline__pin {
    position: static;
    height: auto;
    overflow: visible;
    padding: 40px 0 60px;
  }
  .timeline--active .timeline__bg,
  .timeline--active .timeline__hud,
  .timeline--active .timeline__yearbox,
  .timeline--active .timeline__rail,
  .timeline--active .timeline__scrollhint { display: none; }
  .timeline--active .timeline__grid {
    display: block;
    padding: 0 var(--gutter);
    max-width: 720px;
    height: auto;
  }
  .timeline--active .timeline__stage {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: auto;
    max-height: none;
  }
  .timeline--active .tcard {
    position: static;
    opacity: 1;
    transform: none;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 3px solid var(--stamp);
    padding: 24px 26px;
    max-width: none;
    pointer-events: auto;
  }
  .timeline--active .tcard__title { font-size: clamp(1.15rem, 4vw, 1.5rem); }
  .timeline--active .tcard__body { font-size: 0.98rem; }
}

/* ============================================================
   Dark harmony (v8)
   ------------------------------------------------------------
   The site's earlier layers had cream sections between navy
   sections, which created harsh dark→light transitions between
   things like the quotes strip and the "Rural Life" band. This
   block folds every cream section into the deep-navy palette so
   the whole page reads as one continuous dark surface. Kept as
   one override block so the paper theme is still legible below
   it — nothing above was deleted.
   ============================================================ */

body {
  background: var(--ink-2);
  color: #fff;
}
a { color: rgba(255,255,255,0.92); text-decoration-color: rgba(255,255,255,0.22); }
a:hover { text-decoration-color: #fff; }

/* Cream-turned-navy section backgrounds */
.pagehead,
.foot,
.editorial,
.portrait,
.life,
.manifesto,
.section--paper2 {
  background: var(--ink-2);
  color: #fff;
}

/* Page head (inner pages that still use it) */
.pagehead { border-bottom: 1px solid rgba(255,255,255,0.10); }
.pagehead h1 { color: #fff; }
.pagehead p  { color: rgba(255,255,255,0.65); }

/* Footer */
.foot { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 0; }
.foot__auth { color: rgba(255,255,255,0.5); }
.foot__meta { color: rgba(255,255,255,0.5); }
.foot__meta a { color: #fff; }

/* Rural Life band */
.life__head { border-bottom-color: rgba(255,255,255,0.22); }
.life__head h2 { color: #fff; }
.marquee__img {
  box-shadow: 0 1px 3px rgba(0,0,0,0.4), 0 12px 28px rgba(0,0,0,0.35);
  filter: saturate(0.9) brightness(0.95);
}
.marquee__img:hover { filter: saturate(1.05) brightness(1); }

/* Manifesto */
.manifesto__mark { color: #fff; opacity: 0.06; }
.manifesto__lead { color: #fff; }
.manifesto__body { color: rgba(255,255,255,0.85); }
.manifesto__label,
.manifesto__sig { color: rgba(255,255,255,0.5); }

/* Section head rule + heads used inside dark sections */
.section__head { border-bottom-color: rgba(255,255,255,0.14); }
.section__head h2,
.section__head h3 { color: #fff; }
.section__eyebrow { color: rgba(255,255,255,0.55); }

/* Home TOC list — navy chips on navy */
.toc__item a { color: rgba(255,255,255,0.92); }
.toc__item + .toc__item { border-top-color: rgba(255,255,255,0.10); }
.toc__num   { color: var(--stamp); }
.toc__title { color: #fff; }
.toc__hint,
.toc__arrow { color: rgba(255,255,255,0.55); }
.toc__item a:hover { background: rgba(255,255,255,0.03); }

/* About facts strip (if reused elsewhere) */
.about-facts { border-color: rgba(255,255,255,0.14); }
.about-facts__label { color: rgba(255,255,255,0.5); }
.about-facts__value { color: #fff; }

/* Contact cards */
.contact-card { border-top-color: var(--stamp); }
.contact-card .kicker { color: rgba(255,255,255,0.55); }
.contact-card h3 { color: #fff; }
.contact-card p  { color: rgba(255,255,255,0.85); }
.contact-card a  { color: var(--stamp); }
.contact-card a:hover { color: #fff; }

/* Portrait (if reused) */
.portrait__side p { color: #fff; }
.portrait__fig figcaption { color: rgba(255,255,255,0.55); }

/* Sticky topbar scrolled state — dark backdrop instead of cream */
.topbar.is-stuck {
  background: rgba(8,23,45,0.82);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 8px 24px rgba(0,0,0,0.35);
}
.topbar.is-stuck .wordmark__name { color: #fff; }
.topbar.is-stuck .wordmark__tag  { color: rgba(255,255,255,0.6); }
.topbar.is-stuck .nav a          { color: rgba(255,255,255,0.9); }
.topbar.is-stuck .topbar__stamp .stamp-outline { border-color: rgba(255,255,255,0.4); color: rgba(255,255,255,0.95); }

/* Mobile nav drawer — dark backdrop */
@media (max-width: 720px) {
  .nav {
    background: rgba(8,23,45,0.96);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  }
  .nav a { color: #fff !important; border-bottom-color: rgba(255,255,255,0.10); }
  .topbar.is-stuck .nav-toggle { color: #fff; }
}

/* Buttons on dark: the paper-era .btn--solid / .btn--outline now
   sit on navy, so tweak them so they don't disappear or read as
   the same colour as the surface. */
.btn--solid   { background: var(--stamp); color: var(--ink-3); }
.btn--solid:hover { background: var(--stamp-2); color: var(--ink-3); }
.btn--outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }

/* Pull strip (used on home) - soften the rule */
.pull { border-color: rgba(255,255,255,0.14); }

/* ------------------------------------------------------------
   Section rhythm — subtle navy bands so each home-page panel
   reads as a distinct section without breaking the dark palette.
   Rhythm alternates ink-3 / ink-2 / ink through the page so no
   two neighbours share the same tone.
   ------------------------------------------------------------ */
.communities     { background: var(--ink-3); }
.stats           { background: var(--ink-2); }
.quotes          { background: var(--ink);   }
.life            { background: var(--ink-2); }
.manifesto       { background: var(--ink-3); }
.section--paper2 { background: var(--ink-2); }
.cta             { background: var(--ink);   }
.foot            { background: var(--ink-3); }

/* Add a hairline seam between adjacent bands so the tone
   change reads as intentional structure, not a rendering glitch. */
.stats,
.quotes,
.life,
.manifesto,
.section--paper2,
.cta,
.foot {
  border-top: 1px solid rgba(255,255,255,0.05);
}

