/* ---------- Base ---------- */
:root {
  --bg: #100c09;
  --bg-tint: #17120d;
  --panel: #1c1611;
  --line: rgba(227, 183, 101, 0.16);
  --ink: #f3ead9;
  --ink-muted: #b9ab93;
  --gold: #e3b765;
  --gold-bright: #f6d98c;
  --rose: #d98f6f;
  --maxw: 1180px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-muted); }
em { color: var(--gold-bright); font-style: italic; }
strong { color: var(--ink); font-weight: 600; }

a { color: var(--gold-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(16, 12, 9, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.brand-mark { display: block; width: 28px; height: 28px; flex: none; }
.brand-mark circle.bm-node { fill: var(--gold-bright); }
.brand-mark circle.bm-core { fill: var(--gold-bright); opacity: 0.9; }
.brand-mark line, .brand-mark circle.bm-ring { stroke: var(--gold); }

.site-nav { display: flex; gap: 28px; }
.site-nav a { color: var(--ink-muted); font-size: 0.92rem; letter-spacing: 0.01em; }
.site-nav a:hover { color: var(--gold-bright); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--gold-bright); transition: transform 0.25s ease, opacity 0.25s ease; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav-mobile {
  display: none;
  flex-direction: column;
  padding: 4px 28px 18px;
  border-top: 1px solid var(--line);
}
.site-nav-mobile.is-open { display: flex; }
.site-nav-mobile a { padding: 10px 0; color: var(--ink-muted); border-bottom: 1px solid var(--line); }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 72px 28px 88px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero-lede { font-size: 1.15rem; color: var(--ink); }
.hero-statement { font-size: 1.02rem; }
.hero-sub { font-size: 0.98rem; }
.hero-goal { color: var(--ink); font-size: 1.05rem; }

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 13px 26px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-bright);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover {
  background: var(--gold);
  color: #140f0a;
  text-decoration: none;
}

.hero-core {
  display: flex;
  justify-content: center;
}

.core-visual {
  position: relative;
  width: min(480px, 100%);
  aspect-ratio: 1 / 1;
}

#core-canvas { display: block; width: 100%; height: 100%; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-core { order: -1; }
  .core-visual { width: min(380px, 78vw); margin: 0 auto 8px; }
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: left; }
.section-head p { font-size: 1.05rem; }

.statement-section { padding: 90px 0; text-align: center; }
.statement-section .wrap { max-width: 760px; }
.statement-section p { font-size: clamp(1.2rem, 2.4vw, 1.5rem); color: var(--ink); font-family: "Fraunces", serif; font-weight: 400; line-height: 1.4; }

.vision-section { padding: 110px 0 130px; text-align: center; background: var(--bg-tint); border-top: 1px solid var(--line); }
.vision-section .wrap { max-width: 760px; }
.vision-section p { font-size: clamp(1.25rem, 2.6vw, 1.7rem); color: var(--ink); font-family: "Fraunces", serif; font-weight: 400; line-height: 1.42; }
.vision-note { margin-top: 28px; font-family: "Inter", sans-serif; font-size: 0.85rem; color: var(--ink-muted); }

/* ---------- Grids / cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } }

.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(227, 183, 101, 0.1);
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.96rem; }

.pillar-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pillar-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-muted);
  font-size: 0.98rem;
}
.pillar-list li::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.pillar-list strong { color: var(--ink); }

/* ---------- Roles & transfer ---------- */
.roles-copy { max-width: 760px; margin: 0 auto 56px; }
.roles-copy p { font-size: 1.02rem; }

.transfer { display: flex; align-items: flex-start; justify-content: center; gap: 0; flex-wrap: wrap; }

.transfer-stage { display: flex; flex-direction: column; align-items: center; width: 160px; text-align: center; }

.transfer-orb {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fff2cf 0%, var(--gold-bright) 22%, var(--gold) 52%, rgba(227,183,101,0.05) 78%);
  box-shadow: 0 0 34px rgba(227, 183, 101, 0.35), inset 0 0 18px rgba(255, 244, 214, 0.5);
  margin-bottom: 16px;
}

.transfer-stage.is-core .transfer-orb {
  width: 76px; height: 76px;
  animation: core-pulse 3.2s ease-in-out infinite;
}

@keyframes core-pulse {
  0%, 100% { box-shadow: 0 0 24px rgba(227, 183, 101, 0.3), inset 0 0 14px rgba(255, 244, 214, 0.5); }
  50% { box-shadow: 0 0 44px rgba(227, 183, 101, 0.55), inset 0 0 20px rgba(255, 244, 214, 0.65); }
}

.transfer-stage h3 { font-size: 1.02rem; margin-bottom: 4px; }
.transfer-stage span { font-size: 0.86rem; color: var(--ink-muted); }

.transfer-link {
  position: relative;
  flex: 1 1 90px;
  min-width: 70px;
  height: 2px;
  margin-top: 46px;
  background: linear-gradient(90deg, rgba(227,183,101,0) 0%, var(--gold-bright) 50%, rgba(227,183,101,0) 100%);
  background-size: 200% 100%;
  animation: flow 3.6s linear infinite;
}
.transfer-link::after {
  content: "\00BB";
  position: absolute;
  right: -2px; top: 50%;
  transform: translate(50%, -52%);
  color: var(--gold-bright);
  font-size: 1.1rem;
}

@keyframes flow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .transfer-link, .transfer-stage.is-core .transfer-orb { animation: none; }
}

@media (max-width: 760px) {
  .transfer { flex-direction: column; align-items: center; }
  .transfer-link { width: 2px; height: 46px; margin-top: 0; background: linear-gradient(180deg, rgba(227,183,101,0) 0%, var(--gold-bright) 50%, rgba(227,183,101,0) 100%); background-size: 100% 200%; animation: flow-v 3.6s linear infinite; }
  .transfer-link::after { content: "\2228"; right: 50%; top: calc(100% - 4px); transform: translate(50%, 0); }
  @keyframes flow-v { 0% { background-position: 0 200%; } 100% { background-position: 0 -200%; } }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  color: var(--ink-muted);
  font-size: 0.86rem;
}
.site-footer .wrap { display: flex; flex-direction: column; gap: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { color: var(--ink-muted); }
.footer-note { max-width: 680px; color: var(--ink-muted); opacity: 0.8; }