:root {
  color-scheme: dark;
  --charcoal: #111315;
  --gunmetal: #1a1e21;
  --gunmetal-2: #21262a;
  --gold: #d5a928;
  --gold-light: #b58a12;
  --electric-blue: #38bdf8;
  --text: #f1f3f3;
  --muted: #9aa0a4;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background-color: var(--charcoal);
  color: var(--text);
  font-family: Aptos, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  width: min(92%, 74rem);
  margin: 0 auto;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(17, 19, 21, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 0;
}
.nav-logo { height: 4.8rem; width: auto; flex-shrink: 0; }
.nav-links {
  display: flex;
  gap: 2.625rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1.275rem;
  color: var(--muted);
}
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--gold); }
@media (max-width: 48rem) {
  .nav-links { display: none; }
}

/* Eyebrow / section numbering */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eyebrow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid rgba(213, 169, 40, 0.4);
  border-radius: 50%;
  font-size: 0.7rem;
  color: var(--gold);
}

section { padding: 6rem 0; }
section.tight { padding: 4.5rem 0; }
.section-border-top { border-top: 1px solid var(--line); }

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 40rem;
}
.lede {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Hero */
.hero {
  min-height: calc(100vh - 3.4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-image: url("assets/chain-hero-bg.png");
  background-size: cover;
  background-position: center 40%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17,19,21,0.55) 0%, rgba(17,19,21,0.75) 55%, rgba(17,19,21,0.96) 100%),
    linear-gradient(90deg, rgba(17,19,21,0.92) 0%, rgba(17,19,21,0.55) 45%, rgba(17,19,21,0.3) 100%),
    radial-gradient(circle at 85% 75%, rgba(56, 189, 248, 0.05), transparent 40%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
  max-width: 46rem;
  margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.04;
}
.hero .lede { max-width: 36rem; font-size: 1.15rem; margin-bottom: 2.25rem; }
.hero-tagline {
  max-width: 34rem;
  margin: -1.25rem 0 2.25rem;
  color: var(--gold-light);
  font-size: 0.9rem;
  font-style: italic;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.85; }
.btn-primary {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  color: #16130a;
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}
.hero-tags {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.tag-mark {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}
.tag-rotator { position: relative; height: 1.3em; overflow: hidden; min-width: 8rem; }
.tag-rotator span {
  position: absolute;
  left: 0;
  opacity: 0;
  animation: rotateWords 9s infinite;
  color: var(--text);
}
.tag-rotator span:nth-child(1) { animation-delay: 0s; }
.tag-rotator span:nth-child(2) { animation-delay: 3s; }
.tag-rotator span:nth-child(3) { animation-delay: 6s; }
@keyframes rotateWords {
  0%, 3% { opacity: 0; transform: translateY(0.3em); }
  8%, 25% { opacity: 1; transform: translateY(0); }
  31%, 100% { opacity: 0; transform: translateY(-0.3em); }
}
.hero-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}
.scroll-hint { display: flex; align-items: center; gap: 0.5rem; }
.scroll-hint::before {
  content: "";
  width: 1px;
  height: 1.4rem;
  background: var(--gold);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .tag-rotator span, .scroll-hint::before { animation: none; opacity: 1; }
}

/* Card grid */
.grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 64rem) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 40rem) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

.card {
  background: var(--gunmetal);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1.5rem;
}
.card-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: rgba(213, 169, 40, 0.12);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
}
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.card-usecase {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-usecase .arrow {
  margin-top: 1.2rem;
  color: var(--gold);
  font-size: 1.1rem;
}

/* Platform rails diagram */
.rails {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 56rem) {
  .rails { grid-template-columns: 1fr; }
}
.rail {
  background: var(--gunmetal);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1.5rem;
}
.rail h4 {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.rail ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.rail li {
  padding: 0.6rem 0.8rem;
  background: var(--gunmetal-2);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  font-size: 0.9rem;
}
.rail-core {
  text-align: center;
  padding: 1.5rem 1rem;
}
.rail-core .core-mark {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  background: radial-gradient(circle, #3a3f34, #1a1e21);
  border: 1px solid rgba(213, 169, 40, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--gold);
  font-size: 1.3rem;
}
.rail-core h4 { color: var(--text); font-size: 1rem; margin-bottom: 0.4rem; text-transform: none; letter-spacing: 0; }
.rail-core p { color: var(--muted); font-size: 0.85rem; margin: 0; }

.institutional-transfer {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.institutional-transfer h4 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 1rem;
}
.pill-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.pill {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
}
.note {
  margin-top: 1.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
}

/* Operating model diagram */
.diagram-frame { width: 100%; margin-top: 1rem; }
.diagram-frame svg { width: 100%; height: auto; display: block; overflow: visible; }
.flow-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 8 42;
  filter: drop-shadow(0 0 4px rgba(213, 169, 40, 0.75));
  animation: flow 5.2s linear infinite;
}
.base-line { fill: none; stroke: var(--line); stroke-width: 1; }
@keyframes flow { to { stroke-dashoffset: -500; } }
.hub-ring {
  fill: none;
  stroke: rgba(213, 169, 40, 0.35);
  stroke-width: 1;
  animation: pulse 3.2s ease-in-out infinite;
  transform-origin: 500px 380px;
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.035); }
}
.hub-glow { fill: url(#hubGradient); }
.hub-label {
  fill: var(--text);
  font-family: Aptos, "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.03em;
  text-anchor: middle;
}
.hub-sub {
  fill: var(--gold-light);
  font-family: Aptos, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-anchor: middle;
}
.node circle.node-bg {
  fill: var(--gunmetal-2);
  stroke: var(--gold);
  stroke-opacity: 0.55;
  stroke-width: 1.5;
}
.node-icon {
  stroke: var(--gold);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.node-num {
  fill: var(--gold-light);
  font-family: Aptos, "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-anchor: middle;
}
.node-label {
  fill: var(--text);
  font-family: Aptos, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-anchor: middle;
}
.node-sub {
  fill: var(--muted);
  font-family: Aptos, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  text-anchor: middle;
}
@media (prefers-reduced-motion: reduce) {
  .flow-line, .hub-ring { animation: none; }
}

/* Numbered core list */
.core-list {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 64rem) { .core-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .core-list { grid-template-columns: 1fr; } }
.core-item .num {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  display: block;
}
.core-item h3 { margin: 0 0 0.5rem; font-size: 1rem; font-weight: 600; }
.core-item p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

/* Team */
.team-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
@media (max-width: 56rem) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  background: var(--gunmetal);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1.75rem;
}
.avatar {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #16130a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.team-card .role {
  color: var(--gold-light);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.3rem;
}
.team-card h3 { margin: 0 0 0.75rem; font-size: 1.1rem; }
.team-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.65; margin: 0 0 1rem; }
.team-card a {
  font-size: 0.85rem;
  color: var(--electric-blue);
  text-decoration: none;
}
.team-card a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}
.site-footer .footer-logo { height: 1.4rem; margin: 0 auto 1.25rem; }
.site-footer h3 {
  max-width: 30rem;
  margin: 0 auto 0.9rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.site-footer .confidential {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0 0 2rem;
}
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.85rem;
}

/* Why Now stat cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 2.5rem 0 2rem;
}
@media (max-width: 64rem) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .stat-grid { grid-template-columns: 1fr; } }
.stat-card {
  background: var(--gunmetal);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1.4rem;
}
.stat-card .stat-value {
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.stat-card p { margin: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.55; }
.source-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
}

/* Step flow (5-step platform sequence) */
.step-flow {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: 2.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.step-flow-item {
  flex: 1 1 0;
  min-width: 9.5rem;
  background: var(--gunmetal);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1.1rem;
  text-align: center;
}
.step-flow-item .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: rgba(213, 169, 40, 0.14);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.7rem;
}
.step-flow-item p { margin: 0; font-size: 0.82rem; color: var(--text); line-height: 1.5; }
.step-arrow {
  display: flex;
  align-items: center;
  color: var(--gold);
  font-size: 1rem;
  flex: 0 0 auto;
  padding: 0 0.15rem;
}
@media (max-width: 40rem) {
  .step-flow { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); align-self: center; padding: 0.2rem 0; }
}

/* Simple bar chart (capital case) */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 3rem;
  height: 14rem;
  margin: 2rem 0 0.75rem;
  padding: 0 0.5rem;
}
.bar-col { display: flex; flex-direction: column; align-items: center; flex: 1; max-width: 10rem; }
.bar-value { font-weight: 700; color: var(--gold); margin-bottom: 0.5rem; font-size: 1.1rem; }
.bar-shape {
  width: 100%;
  background: linear-gradient(180deg, var(--gold), var(--gold-light));
  border-radius: 0.3rem 0.3rem 0 0;
}
.bar-label { margin-top: 0.75rem; font-size: 0.82rem; color: var(--muted); text-align: center; }

/* Pull quote */
.pull-quote {
  margin: 2.5rem auto 0;
  max-width: 38rem;
  border-left: 2px solid var(--gold);
  padding-left: 1.25rem;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
}

/* Use case liquidity mechanism tag */
.mechanism {
  display: block;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--gold-light);
}

.callout-box {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--gunmetal);
  border: 1px solid rgba(213, 169, 40, 0.3);
  border-radius: 0.6rem;
  font-size: 0.95rem;
  color: var(--text);
}
.callout-box strong { color: var(--gold); }

/* Blog / Insights */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (max-width: 64rem) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .blog-grid { grid-template-columns: 1fr; } }
.post-card {
  display: block;
  background: var(--gunmetal);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease;
}
.post-card:hover { border-color: rgba(213, 169, 40, 0.4); }
.post-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 0.6rem;
}
.post-card h3 { margin: 0 0 0.6rem; font-size: 1.1rem; font-weight: 600; line-height: 1.35; }
.post-card p { margin: 0 0 1rem; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.post-meta { font-size: 0.8rem; color: var(--muted); }
.post-read { color: var(--gold); font-size: 0.85rem; font-weight: 600; margin-top: 0.5rem; display: inline-block; }

.page-header {
  padding: 3.5rem 0 1rem;
}
.page-header .eyebrow { margin-bottom: 0.75rem; }
.page-header h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  max-width: 42rem;
}

/* Article */
.article {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 0 5rem;
}
.article .kicker {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.article h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
}
.article .byline {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.article-body { font-size: 1.05rem; line-height: 1.8; color: var(--text); }
.article-body p { margin: 0 0 1.4rem; }
.article-body h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 2.2rem 0 1rem;
  max-width: none;
}
.article-body em.pull { font-style: italic; color: var(--gold-light); }
.article-body ul { margin: 0 0 1.4rem; padding-left: 1.3rem; color: var(--text); }
.article-body li { margin-bottom: 0.5rem; }
.article-body .disclaimer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}
/* Nav spacing fix: single-line labels, even gaps */
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo { flex-shrink: 0; }
.nav-links {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links li { flex: 0 0 auto; }
.nav-links a {
  white-space: nowrap;
  line-height: 1;
}
@media (max-width: 1100px) {
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.9rem; }
}
