:root {
  --bg: #fff9f0;
  --ink: #173044;
  --ink2: #5a7282;
  --ink3: #9aabb6;
  --green: #0b8f77;
  --navy: #22405f;
  --gold: #c39b61;
  --rule: rgba(34,64,95,.08);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --ease: cubic-bezier(.16,1,.3,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Grain ── */
.grain {
  position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* ── Cursor glow ── */
.cursor-glow {
  position: fixed; width: 320px; height: 320px; border-radius: 50%;
  pointer-events: none; z-index: 80;
  background: radial-gradient(circle, rgba(11,143,119,.07) 0%, transparent 70%);
  transform: translate(-50%,-50%); transition: opacity .4s; opacity: 0; will-change: left, top;
}
.cursor-glow.active { opacity: 1; }

/* ── Nav ── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  height: 52px; padding: 0 clamp(24px,5vw,56px);
  background: rgba(255,249,240,.6);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s;
}
.nav.scrolled {
  background: rgba(255,249,240,.88);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom-color: var(--rule);
}
.nav-mark img { height: 36px; width: 36px; border-radius: 8px; }
.nav-r { display: flex; align-items: center; gap: 28px; }
.nav-r a { font-size: .82rem; font-weight: 500; color: var(--ink2); transition: color .2s; }
.nav-r a:hover { color: var(--ink); }
.nav-wp {
  padding: 5px 14px; border-radius: 980px;
  background: rgba(34,64,95,.06); font-weight: 600 !important;
  color: var(--ink) !important; transition: background .2s !important;
}
.nav-wp:hover { background: rgba(34,64,95,.12) !important; }

/* ── Sections ── */
.s { max-width: 980px; margin: 0 auto; padding: 0 clamp(24px,5vw,56px); }
.over {
  display: block; font-size: .7rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
}

/* ── Hero ── */
.hero { position: relative; padding-top: 180px; padding-bottom: 160px; text-align: center; }
.hero-mesh { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero .over, .hero h1, .hero p, .hero-cta { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--serif); font-size: clamp(3rem,7.5vw,6.4rem);
  font-weight: 700; line-height: .9; letter-spacing: -.05em; color: var(--navy);
}
.hero p {
  margin-top: 28px; font-size: clamp(1rem,1.8vw,1.2rem); color: var(--ink2);
  max-width: 34rem; margin-left: auto; margin-right: auto; line-height: 1.7;
}
.hero-cta { margin-top: 40px; display: flex; align-items: center; justify-content: center; gap: 24px; }
.btn {
  display: inline-flex; align-items: center; height: 48px; padding: 0 28px;
  border-radius: 980px; font-weight: 600; font-size: .9rem;
  background: linear-gradient(135deg, var(--green), var(--navy)); color: #fffdf8;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(11,143,119,.18); }
.link { font-size: .9rem; font-weight: 500; color: var(--green); transition: opacity .2s; }
.link:hover { opacity: .7; }

/* ── Quote ── */
.quote { padding-top: 80px; padding-bottom: 80px; text-align: center; border-top: 1px solid var(--rule); overflow: hidden; }
.quote p {
  font-family: var(--serif); font-size: clamp(1.3rem,2.8vw,2rem);
  font-weight: 300; line-height: 1.35; color: var(--navy);
  max-width: 38rem; margin: 0 auto; will-change: transform;
}
.quote em { color: var(--green); font-style: italic; }

/* ── Pillars ── */
.pillars { padding-top: 120px; padding-bottom: 120px; text-align: center; }
.pillars h2 {
  font-family: var(--serif); font-size: clamp(2rem,4.5vw,3.6rem);
  font-weight: 700; line-height: .94; letter-spacing: -.04em; color: var(--navy);
}
.pillar-row {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1px;
  margin-top: 64px; background: var(--rule); border: 1px solid var(--rule);
  border-radius: 16px; overflow: hidden;
}
.pillar { background: var(--bg); padding: 40px 32px; text-align: left; transition: background .3s; }
.pillar:hover { background: rgba(255,255,255,.6); }
.p-num { font-family: var(--serif); font-size: .9rem; color: var(--ink3); margin-bottom: 20px; }
.pillar h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.pillar p { font-size: .9rem; color: var(--ink2); line-height: 1.65; }

/* ── Feature ── */
.feature { padding-top: 140px; padding-bottom: 80px; text-align: center; border-top: 1px solid var(--rule); }
.feature h2 {
  font-family: var(--serif); font-size: clamp(2rem,4.5vw,3.6rem);
  font-weight: 700; line-height: .94; letter-spacing: -.04em; color: var(--navy);
}
.feature p { margin-top: 20px; font-size: 1.05rem; color: var(--ink2); }

/* ── Layer strip ── */
.layer-strip { padding-top: 0; padding-bottom: 140px; }
.layer {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px;
  padding: 24px 0; border-bottom: 1px solid var(--rule); align-items: baseline;
  position: relative; transition: padding-left .3s var(--ease);
}
.layer::before {
  content: ''; position: absolute; left: 0; top: 16px; bottom: 16px;
  width: 2px; background: var(--green); border-radius: 1px;
  transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease);
}
.layer:hover { padding-left: 14px; }
.layer:hover::before { transform: scaleY(1); }
.layer:first-child { border-top: 1px solid var(--rule); }
.l-label { font-weight: 600; font-size: .88rem; color: var(--navy); }
.l-body { font-size: .95rem; color: var(--ink2); line-height: 1.6; }

/* ── Architecture grid ── */
.arch { padding-top: 140px; padding-bottom: 140px; text-align: center; border-top: 1px solid var(--rule); }
.arch h2 {
  font-family: var(--serif); font-size: clamp(2rem,4.5vw,3.6rem);
  font-weight: 700; line-height: .94; letter-spacing: -.04em; color: var(--navy);
}
.arch-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1px;
  margin-top: 64px; background: var(--rule); border: 1px solid var(--rule);
  border-radius: 16px; overflow: hidden;
}
.arch-card {
  background: var(--bg); padding: 36px 28px; text-align: left;
  transition: background .3s;
}
.arch-card:hover { background: rgba(255,255,255,.6); }
.arch-card > span {
  font-family: var(--serif); font-size: .85rem; color: var(--ink3);
  display: block; margin-bottom: 14px;
}
.arch-card h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.arch-card p { font-size: .88rem; color: var(--ink2); line-height: 1.6; }

/* ── Sequence ── */
.sequence { padding-top: 140px; padding-bottom: 140px; text-align: center; border-top: 1px solid var(--rule); }
.sequence h2 {
  font-family: var(--serif); font-size: clamp(2rem,4.5vw,3.6rem);
  font-weight: 700; line-height: .94; letter-spacing: -.04em; color: var(--navy);
}
.seq-track {
  display: grid; grid-template-columns: repeat(5,1fr); gap: 1px;
  margin-top: 64px; background: var(--rule); border: 1px solid var(--rule);
  border-radius: 16px; overflow: hidden;
}
.seq-step { background: var(--bg); padding: 32px 22px; text-align: left; transition: background .3s; }
.seq-step:hover { background: rgba(255,255,255,.6); }
.seq-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--ink3); margin-bottom: 18px;
  transition: all .3s var(--ease);
}
.seq-step:first-child .seq-dot { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 4px rgba(11,143,119,.12); }
.seq-step:hover .seq-dot { border-color: var(--green); background: var(--green); }
.seq-step h3 { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.seq-step p { font-size: .82rem; color: var(--ink2); line-height: 1.6; }

/* ── Token ── */
.token { padding-top: 140px; padding-bottom: 140px; text-align: center; border-top: 1px solid var(--rule); }
.token h2 {
  font-family: var(--serif); font-size: clamp(2rem,4.5vw,3.6rem);
  font-weight: 700; line-height: .94; letter-spacing: -.04em; color: var(--navy);
}
.token > p { margin-top: 16px; font-size: 1.05rem; color: var(--ink2); max-width: 30rem; margin-left: auto; margin-right: auto; }

/* ── Donut (conic-gradient) ── */
.pie-wrap {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(32px,5vw,64px); margin-top: 56px;
}
.donut {
  width: 220px; height: 220px; border-radius: 50%; flex-shrink: 0;
  position: relative;
  background: conic-gradient(
    #0b8f77   0%   29%,
    #22405f  29%   50%,
    #3a8a7a  50%   66%,
    #1a5c6e  66%   80%,
    #c39b61  80%   92%,
    #9aabb6  92%  100%
  );
  transform: scale(.6) rotate(-90deg);
  opacity: 0;
  transition: transform 1s var(--ease), opacity .8s var(--ease);
}
.donut.revealed { transform: scale(1) rotate(0deg); opacity: 1; }
.donut-hole {
  position: absolute; inset: 36px; border-radius: 50%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.donut-hole span {
  font-family: var(--serif); font-weight: 700; font-size: 1.1rem;
  color: var(--navy); letter-spacing: .04em;
}
.pie-legend { list-style: none; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.pie-legend li { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--ink2); }
.pie-legend i { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.pie-legend b { margin-left: auto; font-weight: 600; color: var(--navy); min-width: 36px; text-align: right; }

/* ── Token utilities ── */
.token-utils {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1px;
  margin-top: 56px; background: var(--rule); border: 1px solid var(--rule);
  border-radius: 16px; overflow: hidden;
}
.tu { background: var(--bg); padding: 28px 22px; text-align: left; transition: background .3s; }
.tu:hover { background: rgba(255,255,255,.6); }
.tu h4 { font-size: .92rem; color: var(--navy); margin-bottom: 8px; }
.tu p { font-size: .84rem; color: var(--ink2); line-height: 1.6; }

/* ── Governance ── */
.governance { padding-top: 140px; padding-bottom: 140px; text-align: center; border-top: 1px solid var(--rule); }
.governance h2 {
  font-family: var(--serif); font-size: clamp(2rem,4.5vw,3.6rem);
  font-weight: 700; line-height: .94; letter-spacing: -.04em; color: var(--navy);
}
.gov-sub { margin-top: 16px; font-size: 1.05rem; color: var(--ink2); max-width: 34rem; margin-left: auto; margin-right: auto; }
.gov-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1px;
  margin-top: 56px; background: var(--rule); border: 1px solid var(--rule);
  border-radius: 16px; overflow: hidden;
}
.gov-card { background: var(--bg); padding: 32px 24px; text-align: left; transition: background .3s; }
.gov-card:hover { background: rgba(255,255,255,.6); }
.gov-card h4 { font-size: .95rem; color: var(--navy); margin-bottom: 6px; }
.gov-card > span { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.gov-card p { margin-top: 10px; font-size: .84rem; color: var(--ink2); line-height: 1.6; }

/* ── Roadmap ── */
.roadmap { padding-top: 140px; padding-bottom: 140px; text-align: center; border-top: 1px solid var(--rule); }
.roadmap h2 {
  font-family: var(--serif); font-size: clamp(2rem,4.5vw,3.6rem);
  font-weight: 700; line-height: .94; letter-spacing: -.04em; color: var(--navy);
}
.rm-track {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1px;
  margin-top: 56px; background: var(--rule); border: 1px solid var(--rule);
  border-radius: 16px; overflow: hidden;
}
.rm-phase { background: var(--bg); padding: 32px 24px; text-align: left; transition: background .3s; }
.rm-phase:hover { background: rgba(255,255,255,.6); }
.rm-active { background: var(--navy) !important; color: rgba(255,253,248,.7); }
.rm-active h3 { color: #fffdf8; }
.rm-active .rm-tag { color: rgba(255,253,248,.5); }
.rm-tag { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); margin-bottom: 14px; }
.rm-phase h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.rm-phase p { font-size: .84rem; line-height: 1.6; }

/* ── Boundary ── */
.boundary {
  padding-top: 120px; padding-bottom: 120px; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
}
.bnd-col ul { margin-top: 20px; list-style: none; }
.bnd-col li {
  padding: 14px 0 14px 22px; border-bottom: 1px solid var(--rule);
  font-size: .95rem; color: var(--ink2); position: relative;
}
.bnd-col li::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 7px; height: 7px;
  border-radius: 50%; transform: translateY(-50%); background: var(--green);
}
.bnd-not li::before { background: var(--ink3); }

/* ── Close ── */
.close { padding-top: 140px; padding-bottom: 140px; text-align: center; border-top: 1px solid var(--rule); }
.close-mark {
  width: 52px; height: 52px; margin: 0 auto 32px; border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(34,64,95,.1), 0 12px 32px rgba(34,64,95,.07);
}
.close h2 {
  font-family: var(--serif); font-size: clamp(1.8rem,4vw,3rem);
  font-weight: 700; line-height: .96; letter-spacing: -.04em; color: var(--navy);
}
.close-chapters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 28px 0 36px;
}
.close-chapters span {
  padding: 5px 14px; border-radius: 20px; border: 1px solid var(--rule);
  font-size: .76rem; font-weight: 500; color: var(--ink2); background: rgba(255,255,255,.5);
}
.close-socials {
  display: flex; gap: 16px; justify-content: center; margin-top: 32px;
}
.close-socials a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--rule); color: var(--ink2);
  transition: color .2s, border-color .2s, transform .25s var(--ease);
}
.close-socials a:hover {
  color: var(--green); border-color: var(--green); transform: translateY(-2px);
}

/* ── Reveal ── */
[data-r] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-r].v { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .seq-track { grid-template-columns: repeat(3,1fr); }
  .token-utils { grid-template-columns: repeat(2,1fr); }
  .gov-grid { grid-template-columns: repeat(2,1fr); }
  .rm-track { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 720px) {
  .cursor-glow { display: none; }
  .hero { padding-top: 140px; padding-bottom: 100px; }
  .hero h1 { font-size: 2.6rem; }
  .hero-cta { flex-direction: column; gap: 14px; }
  .pillar-row, .arch-grid { grid-template-columns: 1fr; }
  .seq-track { grid-template-columns: 1fr; }
  .layer { grid-template-columns: 1fr; gap: 6px; }
  .token-utils, .gov-grid, .rm-track { grid-template-columns: 1fr; }
  .boundary { grid-template-columns: 1fr; gap: 48px; }
  .pie-wrap { flex-direction: column; }
  .donut { width: 180px; height: 180px; }
  .donut-hole { inset: 30px; }
  .pillars, .feature, .token, .close, .arch, .sequence, .governance, .roadmap { padding-top: 80px; padding-bottom: 80px; }
  .nav-r a:not(.nav-wp) { display: none; }
}
