:root {
  --paper: #faf6ec;
  --paper-deep: #f2ecdb;
  --paper-hi: #fffdf7;
  --ink: #1a1712;
  --ink-soft: #6b6252;
  --gold: #b8893b;
  --gold-light: #d9b365;
  --gold-deep: #8a6420;
  --line: rgba(138, 100, 32, 0.18);
  --shadow-sm: 3px 3px 0 var(--gold-deep);
  --shadow: 5px 5px 0 var(--gold-deep);
  --radius: 16px;
  --max-width: 1140px;
  --font-d: "Fraunces", Georgia, "Times New Roman", serif;
  --font-b: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-b);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* subtle paper grain, consistent across the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; }

h1, h2, h3 { font-family: var(--font-d); margin: 0; font-weight: 600; }

.wrap { width: min(var(--max-width), 92vw); margin-inline: auto; position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: 0.7rem;
}

/* Particle canvas */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 236, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  padding: 0.9rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 1.2rem;
}

.brand-mark { width: 32px; height: 32px; object-fit: contain; }

.main-nav { display: flex; gap: 1.9rem; flex: 1; justify-content: center; }

.main-nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.25rem 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:hover::after { transform: scaleX(1); }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--gold-deep);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
}

.ticker-seg {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-right: 0;
}

.ticker-seg i { color: var(--gold-light); font-style: normal; margin: 0 1.4rem; }

@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-b);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper-hi);
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--gold-deep); }
.btn-primary:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--gold-deep); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-secondary:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-sm); background: var(--paper-hi); }
.btn-secondary:active { transform: translate(1px, 1px); box-shadow: none; }

.btn-nav { padding: 0.6rem 1.35rem; font-size: 0.86rem; }

/* ---------- CA chip ---------- */
.ca-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.4rem;
  padding: 0.55em 0.8em;
  background: var(--paper-hi);
  border: 2px dashed var(--gold-deep);
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  max-width: 100%;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.ca-chip:hover { transform: translateY(-2px); border-color: var(--gold); }

.ca-lbl {
  font-family: var(--font-b);
  font-weight: 800;
  color: var(--gold-deep);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.ca-chip code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}

.ca-copy-icon { display: flex; flex-shrink: 0; width: 15px; height: 15px; color: var(--gold-deep); }
.ca-copy-icon svg { width: 100%; height: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 5.5rem) 0 3rem; }

.hero-glow {
  position: absolute;
  top: -18%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  max-width: 200vw;
  background: radial-gradient(circle, rgba(217, 179, 101, 0.35) 0%, rgba(217, 179, 101, 0.1) 45%, rgba(250, 246, 236, 0) 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-actions, .ca-chip { justify-content: center; margin-inline: auto; }
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.06;
  margin: 0.5rem 0 1.1rem;
}

.hero h1 em { color: var(--gold-deep); font-style: italic; }

.hero-sub { font-size: 1.15rem; font-weight: 600; margin: 0 0 0.6rem; max-width: 40ch; }

.hero-tagline { color: var(--ink-soft); font-size: 1.02rem; margin: 0 0 1.9rem; max-width: 42ch; }

@media (max-width: 900px) {
  .hero-sub, .hero-tagline { margin-inline: auto; }
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-art { display: flex; align-items: center; justify-content: center; }

.badge {
  position: relative;
  width: min(300px, 60vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper-hi);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  animation: breathe 4.5s ease-in-out infinite;
}

.badge img { width: 62%; }

.badge-ring {
  position: absolute;
  inset: -22px;
  border: 2px dashed var(--gold);
  border-radius: 50%;
  opacity: 0.7;
  animation: spin 32s linear infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .badge, .badge-ring { animation: none; }
}

/* ---------- Scripture ---------- */
.scripture {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 3rem 0;
  text-align: center;
  flex-direction: column;
}

.scripture-icon { width: 48px; height: 48px; opacity: 0.9; }

.scripture blockquote { margin: 0; max-width: 620px; }

.scripture p {
  font-family: var(--font-d);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 500;
  margin: 0 0 0.6rem;
  line-height: 1.35;
}

.scripture p em { color: var(--gold-deep); font-style: italic; }

.scripture cite {
  display: inline-block;
  font-family: var(--font-b);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-top: 0.6rem;
}

.scripture cite::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 2px;
  background: var(--gold);
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }

.sec-head { text-align: center; margin-bottom: 2.75rem; }

.section h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }

.sec-head-left { text-align: left; margin-bottom: 2.5rem; max-width: 60ch; }

/* ---------- Mission ---------- */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 840px) {
  .mission-grid { grid-template-columns: 1fr; text-align: center; }
}

.mission-copy h2 { margin-bottom: 1rem; }

.mission-copy .lead { font-size: 1.3rem; font-weight: 700; margin: 0 0 0.9rem; }

.mission-copy p { color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 0.9rem; max-width: 46ch; }

@media (max-width: 840px) {
  .mission-copy p { margin-inline: auto; }
}

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

.value-list li {
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  text-align: left;
}

.value-list li:last-child { border-bottom: 1px solid var(--line); }

@media (max-width: 840px) {
  .value-list li { text-align: left; }
}

.value-mark {
  flex-shrink: 0;
  font-family: var(--font-d);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
  min-width: 1.6em;
}

.value-list h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 0.2rem; }

.value-list p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Transparency ledger ---------- */
.ledger {
  position: relative;
  background: var(--paper-hi);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 1.5rem 1.75rem;
}

.ledger-tag {
  position: absolute;
  top: -0.75em;
  left: 1.75rem;
  background: var(--paper-hi);
  padding: 0 0.6rem;
  font-family: var(--font-b);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
}

.ledger-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 700px) {
  .ledger-row { grid-template-columns: 1fr; gap: 1.5rem 0; }
}

.ledger-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.5rem 1.5rem;
  border-left: 1px dashed var(--line);
}

.ledger-item:first-child { border-left: none; }

@media (max-width: 700px) {
  .ledger-item { border-left: none; border-top: 1px dashed var(--line); padding: 1rem 0 0; }
  .ledger-item:first-child { border-top: none; }
}

.ledger-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.ledger-value { font-family: var(--font-d); font-size: 1.7rem; font-weight: 600; color: var(--gold-deep); }

.ledger-value-text { font-size: 1.1rem; }

.ledger-note { font-size: 0.8rem; color: var(--ink-soft); }

.donation-log {
  position: relative;
  margin-top: 1.75rem;
  background: var(--paper-hi);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 1.5rem 0.5rem;
}

.donation-log table { width: 100%; border-collapse: collapse; }

.donation-log th, .donation-log td {
  padding: 0.8rem 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  text-align: left;
}

.donation-log th {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  font-weight: 700;
}

.donation-log tbody tr:last-child td { border-bottom: none; }

.donation-log td:last-child { font-family: var(--font-d); font-weight: 600; color: var(--gold-deep); }

/* ---------- Live stats band ---------- */
.stats-band {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.live-dot {
  width: 0.5em; height: 0.5em;
  border-radius: 50%;
  background: var(--gold-deep);
  display: inline-block;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(138, 100, 32, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(138, 100, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(138, 100, 32, 0); }
}

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-item {
  position: relative;
  flex: 1 1 160px;
  padding: 1.5rem 1.5rem;
  text-align: center;
}

.stat-item:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 1px;
  background: var(--line);
}

@media (max-width: 700px) {
  .stat-item:not(:first-child)::before { display: none; }
  .stat-item { border-top: 1px solid var(--line); }
  .stat-item:first-child { border-top: none; }
}

.stat-value { font-family: var(--font-d); font-size: 1.8rem; font-weight: 600; color: var(--gold-deep); }

.stat-label { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.3rem; }

/* ---------- Roadmap phase list ---------- */
.phase-list { list-style: none; margin: 0; padding: 0; }

.phase {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
  transition: opacity 0.2s ease;
}

.phase:last-child { border-bottom: 1px solid var(--line); }

@media (max-width: 620px) {
  .phase { grid-template-columns: 56px 1fr; gap: 1rem; }
}

.phase-num {
  font-family: var(--font-d);
  font-size: 2.75rem;
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
  -webkit-text-stroke: 1.5px var(--gold);
  color: transparent;
  transition: color 0.25s ease;
}

@supports not (-webkit-text-stroke: 1px black) {
  .phase-num { color: var(--gold); }
}

.phase:hover .phase-num { color: var(--gold-deep); -webkit-text-stroke-width: 0; }

@media (max-width: 620px) {
  .phase-num { font-size: 1.9rem; }
}

.phase-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.7rem; flex-wrap: wrap; }

.phase-head h3 { font-size: 1.25rem; }

.phase-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--paper-hi);
  background: var(--gold-deep);
  padding: 0.3em 0.7em;
  border-radius: 999px;
}

.phase-body ul { margin: 0; padding-left: 1.1rem; }

.phase-body li { margin-bottom: 0.4rem; font-size: 0.96rem; color: var(--ink-soft); }

/* ---------- Community ---------- */
.community { text-align: center; }

.social-icons { display: flex; justify-content: center; gap: 1.1rem; margin: 1.8rem 0 1.4rem; }

.social-icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--paper-hi);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.18s, color 0.18s;
}

.social-icon svg { width: 20px; height: 20px; }

.social-icon:hover {
  background: var(--ink);
  color: var(--gold-light);
  transform: translateY(-4px) rotate(-6deg);
}

.community-text { color: var(--ink-soft); font-size: 1.05rem; max-width: 480px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
  background: var(--paper-deep);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.footer-top .ca-chip { margin-top: 0; }

.footer-link { font-weight: 700; font-size: 0.9rem; color: var(--gold-deep); }

.footer-link:hover { text-decoration: underline; }

.disclaimer {
  max-width: 720px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .main-nav { display: none; }
}
