/* ============================================================
   THE INTERNAL PASSAGE — design tokens & base
   ============================================================ */

:root {
  /* Palette — warm cinematic */
  --ink:         oklch(0.13 0.012 60);
  --ink-2:       oklch(0.17 0.013 55);
  --ink-3:       oklch(0.22 0.015 55);
  --ivory:       oklch(0.93 0.015 80);
  --ivory-2:     oklch(0.84 0.02 75);
  --ivory-dim:   oklch(0.68 0.018 75);
  --gold:        oklch(0.72 0.13 65);
  --gold-deep:   oklch(0.58 0.12 55);
  --ember:       oklch(0.56 0.15 38);
  --earth:       oklch(0.42 0.045 50);
  --line:        color-mix(in oklch, var(--ivory) 14%, transparent);
  --line-strong: color-mix(in oklch, var(--ivory) 28%, transparent);

  /* Type */
  --serif: "Cormorant Garamond", "Cormorant", "EB Garamond", Georgia, serif;
  --sans:  "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --pad-x:   clamp(22px, 5vw, 88px);
  --max:     1440px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--ink); color: var(--ivory); }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ----- Page film grain (subtle) ----- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.9  0 0 0 0 0.8  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ----- Vignette ----- */
.vignette::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklch, var(--ink) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px var(--pad-x);
  border-bottom-color: var(--line);
}
.nav__brand {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  display: flex; align-items: center; gap: 12px;
}
.nav__brand-mark {
  width: 22px; height: 22px;
  border: 1px solid var(--gold);
  position: relative;
  transform: rotate(45deg);
}
.nav__brand-mark::after {
  content: ""; position: absolute; inset: 5px;
  background: var(--gold);
}
.nav__links {
  display: flex; gap: 52px; align-items: center;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ivory-2);
}
.nav__links a { transition: color 0.2s; }
.nav__links a:hover { color: var(--gold); }
.nav__cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--ivory-2);
  color: var(--ivory);
  transition: all 0.25s;
}
.nav__cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.nav__burger { display: none; }

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger {
    display: flex; flex-direction: column; gap: 5px;
    width: 28px; cursor: pointer;
  }
  .nav__burger span { height: 1px; background: var(--ivory); display: block; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--pad-x) clamp(60px, 9vh, 120px);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: -10% 0 0 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 70% 40%, oklch(0.32 0.08 50 / 0.55), transparent 60%),
    radial-gradient(ellipse at 20% 80%, oklch(0.26 0.06 30 / 0.6), transparent 55%),
    linear-gradient(180deg, oklch(0.10 0.012 55) 0%, oklch(0.14 0.015 55) 100%);
  will-change: transform;
}
.hero__bg image-slot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.55;
  filter: grayscale(0.4) contrast(1.05) brightness(0.7);
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, oklch(0.10 0.01 55 / 0.55) 0%, transparent 30%, oklch(0.10 0.01 55 / 0.85) 100%),
    linear-gradient(90deg, oklch(0.10 0.01 55 / 0.75) 0%, transparent 60%);
}
.hero__inner { position: relative; z-index: 2; max-width: var(--max); }

.hero__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 14px;
}
.hero__eyebrow::before {
  content: ""; width: 36px; height: 1px; background: var(--gold);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(54px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--ivory);
  max-width: 14ch;
  margin-bottom: 32px;
}
.hero__title em {
  font-style: italic;
  color: var(--gold);
}

.hero__lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.5;
  max-width: 52ch;
  color: var(--ivory-2);
  margin-bottom: 56px;
}

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 56px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.hero__meta-item span {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ivory);
  margin-bottom: 6px;
}

.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(180deg, var(--ivory-dim), transparent);
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; top: -20px; left: 0;
  width: 100%; height: 20px;
  background: var(--gold);
  animation: scroll-pulse 2.2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0% { transform: translateY(0); }
  100% { transform: translateY(80px); }
}

/* Hero visual — animated route map */
.hero__visual {
  position: absolute;
  right: var(--pad-x);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: min(340px, 26vw);
  opacity: 0;
  animation: hero-visual-in 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.9s forwards;
  pointer-events: none;
}
.hero__map-svg { width: 100%; height: auto; overflow: visible; }

@keyframes hero-visual-in {
  from { opacity: 0; transform: translateY(calc(-50% + 18px)); }
  to   { opacity: 0.88; transform: translateY(-50%); }
}

@media (max-width: 1100px) { .hero__visual { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero__visual { display: none; }
}

/* ============================================================
   SECTION primitives
   ============================================================ */
section { position: relative; }
.section {
  padding: clamp(96px, 14vh, 168px) var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
}
.section--full {
  max-width: none;
  padding-left: 0; padding-right: 0;
}
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px;
  margin-bottom: 64px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.section__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 16ch;
  margin-top: 14px;
}
.section__title em { font-style: italic; color: var(--gold); }
.section__aside {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  text-align: right;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .section__head { flex-direction: column; align-items: flex-start; }
  .section__aside { text-align: left; }
}

/* ============================================================
   TRAILER
   ============================================================ */
.trailer {
  background: var(--ink);
  padding: clamp(60px, 8vh, 100px) var(--pad-x) clamp(96px, 12vh, 140px);
}
.trailer__frame {
  position: relative;
  aspect-ratio: 21 / 9;
  max-width: var(--max);
  margin: 0 auto;
  overflow: hidden;
  background: linear-gradient(135deg, oklch(0.18 0.02 50), oklch(0.10 0.01 50));
  cursor: pointer;
}
.trailer__frame image-slot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  filter: grayscale(0.3) contrast(1.05) brightness(0.65);
  transition: filter 0.6s, transform 0.8s;
}
.trailer__frame:hover image-slot {
  filter: grayscale(0.1) contrast(1.1) brightness(0.75);
  transform: scale(1.02);
}
.trailer__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(180deg, transparent 0%, oklch(0.10 0.01 55 / 0.4) 100%);
  pointer-events: none;
}
.trailer__play {
  width: clamp(80px, 9vw, 124px); height: clamp(80px, 9vw, 124px);
  border: 1px solid var(--ivory);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: all 0.3s;
}
.trailer__frame:hover .trailer__play {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.08);
}
.trailer__play::before {
  content: ""; position: absolute; inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0.5;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}
.trailer__play svg { width: 28px; height: 28px; margin-left: 6px; fill: var(--ivory); transition: fill 0.3s; }
.trailer__frame:hover .trailer__play svg { fill: var(--ink); }
.trailer__caption {
  position: absolute; bottom: 28px; left: 28px; right: 28px;
  display: flex; justify-content: space-between; align-items: flex-end;
  z-index: 2;
}
.trailer__caption-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 28px);
  color: var(--ivory);
}
.trailer__caption-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

/* ============================================================
   MISSION
   ============================================================ */
.mission {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mission__quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  max-width: 22ch;
  text-wrap: balance;
}
.mission__quote em { font-style: italic; color: var(--gold); }
.mission__body {
  max-width: 56ch;
  margin-top: 56px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ivory-2);
}
.mission__body p + p { margin-top: 1.2em; }
.mission__cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: flex-start;
}
@media (max-width: 880px) {
  .mission__cols { grid-template-columns: 1fr; gap: 32px; }
}
.mission__sig {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex; gap: 20px; align-items: center;
}
.mission__sig-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ivory);
}
.mission__sig-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  margin-top: 4px;
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  background: var(--ink);
  padding-top: clamp(96px, 14vh, 168px);
  padding-bottom: clamp(96px, 14vh, 168px);
}
.timeline__head {
  padding: 0 var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
}
.timeline__track {
  position: relative;
  margin-top: 80px;
  padding: 0 var(--pad-x);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.timeline__track::-webkit-scrollbar { display: none; }
.timeline__rail {
  display: flex;
  gap: 0;
  min-width: max-content;
  position: relative;
}
.timeline__rail::before {
  content: ""; position: absolute;
  top: 64px; left: 0; right: 0;
  height: 1px;
  background: var(--line-strong);
}
.tl-event {
  flex: 0 0 320px;
  scroll-snap-align: start;
  padding: 0 32px 0 0;
  position: relative;
}
.tl-event__year {
  font-family: var(--serif);
  font-style: italic;
  font-size: 56px;
  line-height: 1;
  color: var(--ivory);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.tl-event__node {
  position: relative;
  height: 1px;
  margin-bottom: 36px;
}
.tl-event__node::before {
  content: ""; position: absolute;
  top: -5px; left: 0;
  width: 11px; height: 11px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--ink);
}
.tl-event__node::after {
  content: ""; position: absolute;
  top: -1px; left: 11px; right: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.5;
}
.tl-event__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.tl-event__title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.25;
  color: var(--ivory);
  margin-bottom: 14px;
  max-width: 18ch;
}
.tl-event__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ivory-dim);
  max-width: 36ch;
}

.timeline__nav {
  display: flex; gap: 12px;
  margin-top: 48px;
  padding: 0 var(--pad-x);
  max-width: var(--max);
  margin-left: auto; margin-right: auto;
  justify-content: flex-end;
  align-items: center;
}
.timeline__progress {
  flex: 1;
  height: 1px;
  background: var(--line);
  position: relative;
  margin-right: 32px;
  max-width: 260px;
}
.timeline__progress-fill {
  position: absolute; top: 0; left: 0; bottom: 0;
  background: var(--gold);
  width: 12%;
  transition: width 0.3s;
}
.tl-btn {
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--ivory-2);
  transition: all 0.2s;
}
.tl-btn:hover { border-color: var(--gold); color: var(--gold); }
.tl-btn svg { width: 14px; height: 14px; }

/* ============================================================
   SCHOLARS
   ============================================================ */
.scholars {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}
.scholars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
@media (max-width: 820px) { .scholars__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .scholars__grid { grid-template-columns: 1fr; } }

.scholar {
  position: relative;
}
.scholar__portrait {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, oklch(0.22 0.025 55), oklch(0.14 0.015 55));
  margin-bottom: 24px;
}
.scholar__portrait image-slot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  filter: grayscale(0.7) contrast(1.1) brightness(0.85);
  transition: filter 0.5s, transform 0.6s;
}
.scholar:hover .scholar__portrait image-slot {
  filter: grayscale(0.1) contrast(1.05) brightness(1);
  transform: scale(1.04);
}
.scholar__portrait::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, oklch(0.10 0.01 55 / 0.7) 100%);
  pointer-events: none;
}
.scholar__num {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--ivory);
  z-index: 2;
  mix-blend-mode: difference;
}
.scholar__name {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  color: var(--ivory);
  margin-bottom: 8px;
}
.scholar__role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.scholar__inst {
  font-size: 13px;
  color: var(--ivory-dim);
  line-height: 1.5;
}

/* ============================================================
   JOURNAL
   ============================================================ */
.journal {
  background: var(--ink);
}
.journal__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 1000px) { .journal__grid { grid-template-columns: 1fr; gap: 64px; } }

.post {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  transition: border-color 0.3s;
  cursor: pointer;
}
.post:hover { border-top-color: var(--gold); }
.post__cover {
  aspect-ratio: 16 / 10;
  margin-bottom: 28px;
  overflow: hidden;
  position: relative;
  background: oklch(0.18 0.02 50);
}
.post__cover image-slot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  filter: grayscale(0.5) contrast(1.05) brightness(0.85);
  transition: transform 0.6s, filter 0.6s;
}
.post:hover .post__cover image-slot { transform: scale(1.05); filter: grayscale(0.2) brightness(0.95); }
.post--feature .post__cover { aspect-ratio: 4 / 5; }
.post__meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: flex; gap: 14px;
}
.post__meta-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ivory-dim);
  align-self: center;
}
.post__title {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: var(--ivory);
  margin-bottom: 16px;
  max-width: 20ch;
}
.post--feature .post__title { font-size: 40px; }
.post__excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ivory-dim);
  max-width: 42ch;
  margin-bottom: 24px;
}
.post__author {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-2);
}

/* ============================================================
   DONATE
   ============================================================ */
.donate {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  padding: 0;
}
.donate__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, oklch(0.40 0.10 50 / 0.4), transparent 60%),
    radial-gradient(ellipse at 10% 90%, oklch(0.30 0.08 30 / 0.5), transparent 55%),
    var(--ink);
  z-index: 0;
}
.donate__bg image-slot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0.25;
  filter: grayscale(0.6) brightness(0.55);
}
.donate__inner {
  position: relative; z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(120px, 18vh, 200px) var(--pad-x);
  text-align: center;
}
.donate__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 36px;
  display: inline-flex; gap: 14px; align-items: center;
}
.donate__eyebrow::before, .donate__eyebrow::after {
  content: ""; width: 32px; height: 1px; background: var(--gold);
}
.donate__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  max-width: 18ch;
  margin: 0 auto 32px;
  text-wrap: balance;
}
.donate__title em { font-style: italic; color: var(--gold); }
.donate__body {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--ivory-2);
  max-width: 54ch;
  margin: 0 auto 56px;
}
.donate__amounts {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}
.donate__amount {
  padding: 16px 28px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ivory);
  transition: all 0.2s;
}
.donate__amount:hover, .donate__amount.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.donate__cta {
  padding: 20px 56px;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: all 0.25s;
}
.donate__cta:hover { background: var(--gold); transform: translateY(-2px); }
.donate__note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  margin-top: 24px;
}

/* ============================================================
   SIGNUP
   ============================================================ */
.signup {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}
.signup__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 880px) {
  .signup__inner { grid-template-columns: 1fr; gap: 40px; }
}
.signup__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.signup__title em { font-style: italic; color: var(--gold); }
.signup__sub {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ivory-dim);
  line-height: 1.65;
  max-width: 50ch;
}
.signup__form {
  display: flex;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 14px;
  transition: border-color 0.3s;
}
.signup__form:focus-within { border-color: var(--gold); }
.signup__input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  padding: 12px 0;
  outline: none;
}
.signup__input::placeholder { color: var(--ivory-dim); }
.signup__btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 12px 0 12px 24px;
  transition: color 0.2s;
}
.signup__btn:hover { color: var(--ivory); }
.signup__legal {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  margin-top: 22px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: oklch(0.09 0.01 55);
  padding: 80px var(--pad-x) 36px;
  border-top: 1px solid var(--line);
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 880px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}
.footer__brand {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.footer__brand em { font-style: italic; color: var(--gold); }
.footer__tag {
  font-size: 13px;
  color: var(--ivory-dim);
  max-width: 32ch;
  line-height: 1.55;
}
.footer__col-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer__col a {
  font-size: 14px;
  color: var(--ivory-2);
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--gold); }

.footer__base {
  max-width: var(--max);
  margin: 36px auto 0;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll-line::after { animation: none; }
  .trailer__play::before { animation: none; }
}

/* Image slot placeholder text style override */
image-slot {
  --is-bg: oklch(0.20 0.02 55);
  --is-fg: oklch(0.55 0.02 75);
  --is-border: var(--line);
}

/* ============================================================
   STORY
   ============================================================ */
.story {
  background: var(--ink-3);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.story__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
@media (max-width: 880px) { .story__cards { grid-template-columns: 1fr; gap: 40px; } }

.story__card {
  border-top: 2px solid var(--gold-deep);
  padding-top: 32px;
  transition: border-top-color 0.3s;
}
.story__card:hover { border-top-color: var(--gold); }
.story__card-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.story__card-title {
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.1;
  color: var(--ivory);
  margin-bottom: 18px;
}
.story__card-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ivory-dim);
}

/* ============================================================
   BLOG
   ============================================================ */
.blog {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}
.blog__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 1000px) { .blog__grid { grid-template-columns: 1fr; gap: 64px; } }

/* ============================================================
   DONATE — PROGRESS BAR
   ============================================================ */
.donate__progress-wrap {
  max-width: 480px;
  margin: 0 auto 48px;
}
.donate__progress-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  margin-bottom: 14px;
  text-align: left;
}
.donate__progress-bar {
  height: 2px;
  background: var(--line-strong);
  position: relative;
}
.donate__progress-bar-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: var(--gold);
  min-width: 3px;
  transition: width 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.donate__progress-bar-fill::after {
  content: "";
  position: absolute;
  right: -4px; top: -3px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
}
