/* ============================================================
   CONDUIT — Institutional Authority
   Deep navy · Fraunces serif · warm-gold accent · ledger rules
   ============================================================ */

:root {
  /* --- THE TWO LEVERS --- */
  --bg:      #0B1521;   /* deep navy ink. try #08111B darker, #0E1A28 lighter */
  --gold:    #C8A86A;   /* one warm-gold accent. try #B9975A deeper, #D8C085 paler */

  /* navy surfaces */
  --bg-2:      #0D1926;
  --surface:   #10202F;
  --surface-2: #132738;
  --surface-hi:#163040;

  /* warm hairlines — like ruled paper */
  --line:   rgba(233,222,196,0.10);
  --line-2: rgba(233,222,196,0.17);
  --line-3: rgba(233,222,196,0.30);

  /* type */
  --text:   #ECE7DA;   /* warm white */
  --text-2: #A6B3C1;   /* cool muted */
  --text-3: #69788A;

  --gold-hi:   #D9C088;
  --gold-soft: color-mix(in srgb, var(--gold) 13%, transparent);
  --gold-line: color-mix(in srgb, var(--gold) 45%, transparent);
  --gold-ghost:color-mix(in srgb, var(--gold) 6%, transparent);

  --maxw: 1200px;
  --pad:  clamp(20px, 5vw, 64px);
  --r:    3px;          /* institutional = barely-rounded */
  --r-lg: 4px;

  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease2: cubic-bezier(0.16, 1, 0.3, 1);

  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:  "Geist Mono", ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

/* ---------------- reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* faint ruled-paper backdrop */
  background-image:
    radial-gradient(1100px 620px at 78% -8%, rgba(200,168,106,0.06), transparent 60%),
    radial-gradient(900px 700px at 8% 108%, rgba(70,110,150,0.08), transparent 62%);
  background-attachment: fixed;
}

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

::selection { background: var(--gold); color: #14100A; }

/* ---------------- layout ---------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.section { padding-block: clamp(72px, 11vw, 148px); position: relative; }
.section + .section { padding-top: 0; }

.rule { height: 1px; border: 0; background: var(--line); }
.rule.wrap { max-width: var(--maxw); }
.rule.gold { background: linear-gradient(90deg, var(--gold-line), transparent 72%); }

/* ---------------- shared type ---------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px;
  background: var(--gold); transform: rotate(45deg);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 430;
  line-height: 1.03;
  letter-spacing: -0.018em;
  font-optical-sizing: auto;
  color: var(--text);
}
h1 { font-size: clamp(2.55rem, 6vw, 5rem); }
h2 { font-size: clamp(1.95rem, 4vw, 3.15rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 480; letter-spacing: -0.012em; }

em, .ital { font-style: italic; }
.gold-ink { color: var(--gold-hi); font-style: italic; }
.muted { color: var(--text-2); }

.lead {
  font-size: clamp(1.08rem, 1.55vw, 1.32rem);
  line-height: 1.62; color: var(--text-2);
  max-width: 62ch; font-weight: 400;
}

/* section head */
.section-head { max-width: 76ch; }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head h2 { margin-bottom: 20px; }
.section-head p { color: var(--text-2); font-size: 1.08rem; max-width: 60ch; }

/* index numeral for sections */
.idx {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em;
  color: var(--text-3);
}
.idx b { color: var(--gold); font-weight: 500; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 0.94rem; font-weight: 550;
  letter-spacing: 0.005em;
  padding: 13px 22px; border-radius: var(--r);
  border: 1px solid transparent;
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
}
.btn svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--gold); color: #14100A; }
.btn-primary:hover { background: var(--gold-hi); transform: translateY(-1px); }

.btn-ghost { color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--gold-line); color: var(--gold-hi); }

.btn-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold);
  padding-bottom: 3px; border-bottom: 1px solid var(--gold-line);
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.btn-link:hover { gap: 12px; color: var(--gold-hi); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand .mark { width: 26px; height: 26px; stroke: var(--text); overflow: visible; }
.brand span {
  font-family: var(--serif); font-size: 1.32rem; font-weight: 500;
  letter-spacing: -0.01em;
}
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 0.9rem; color: var(--text-2); position: relative;
  transition: color .3s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 10px 17px; font-size: 0.88rem; }
.nav-toggle { display: none; color: var(--text); padding: 6px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-block: clamp(64px, 12vw, 132px) clamp(48px, 7vw, 92px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* faint meridian grid behind hero */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image:
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    linear-gradient(var(--line) 1px, transparent 1px);
  background-size: clamp(90px, 12vw, 150px) clamp(90px, 12vw, 150px);
  -webkit-mask-image: radial-gradient(120% 90% at 72% 8%, #000 0%, transparent 68%);
          mask-image: radial-gradient(120% 90% at 72% 8%, #000 0%, transparent 68%);
}
.hero .wrap { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-2);
  padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 100px;
  margin-bottom: 30px;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
  animation: pulse 3.4s var(--ease) infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.45} }

.hero h1 { max-width: 16ch; margin-bottom: 30px; }
.hero h1 .muted { color: var(--text-2); }
.hero .lead { margin-bottom: 16px; }
.hero .sub {
  font-family: var(--serif); font-style: italic; font-size: 1.24rem;
  color: var(--gold-hi); margin-bottom: 38px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ledger stat strip */
.hero-strip {
  margin-top: clamp(48px, 7vw, 84px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-2);
}
.hero-strip .cell {
  padding: 26px 26px 26px 0; position: relative;
}
.hero-strip .cell + .cell { padding-left: 26px; border-left: 1px solid var(--line); }
.hero-strip .n {
  font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 430; letter-spacing: -0.02em; line-height: 1; color: var(--text);
}
.hero-strip .n span { color: var(--gold); }
.hero-strip .k {
  margin-top: 12px; font-size: 0.86rem; color: var(--text-2); line-height: 1.4;
  max-width: 22ch;
}

/* ============================================================
   SECTION HEAD with numbering rail
   ============================================================ */
.sec-top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; padding-bottom: 22px; margin-bottom: 52px;
  border-bottom: 1px solid var(--line);
}

/* ============================================================
   PROBLEM
   ============================================================ */
.problem-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.problem-copy p { color: var(--text-2); margin-bottom: 20px; max-width: 60ch; }
.problem-copy p strong { color: var(--text); font-weight: 600; }
.problem-copy .kicker {
  font-family: var(--serif); font-size: 1.4rem; line-height: 1.3;
  color: var(--text); margin-top: 8px; max-width: 26ch;
}
.problem-copy .kicker em { color: var(--gold-hi); }

/* fragmentation schematic */
.frag {
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  padding: 26px; position: sticky; top: 96px;
}
.frag h4 {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 20px;
}
.frag-portals { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.02em;
  padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 100px;
  color: var(--text-2); white-space: nowrap;
}
.chip.dim { color: var(--text-3); border-color: var(--line); }
.frag-arrow {
  display: flex; align-items: center; gap: 12px; margin: 24px 2px 22px;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-3);
}
.frag-arrow .ln { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), var(--gold-line)); }
.frag-one {
  display: flex; align-items: center; gap: 14px;
  padding: 18px; border: 1px solid var(--gold-line); border-radius: var(--r);
  background: var(--gold-ghost);
}
.frag-one .mark { width: 30px; height: 30px; stroke: var(--gold); flex-shrink: 0; overflow: visible; }
.frag-one b { font-family: var(--serif); font-size: 1.1rem; }
.frag-one span { font-size: 0.82rem; color: var(--text-2); }

/* ============================================================
   PILLARS — three numbered editorial columns
   ============================================================ */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-2);
}
.pillar {
  padding: 38px 30px 34px 0; position: relative;
}
.pillar + .pillar { padding-left: 30px; border-left: 1px solid var(--line); }
.pillar .num {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.16em;
  color: var(--gold); display: block; margin-bottom: 22px;
}
.pillar .ico { width: 30px; height: 30px; stroke: var(--text); fill: none; margin-bottom: 20px; overflow: visible; }
.pillar h3 { margin-bottom: 14px; max-width: 20ch; }
.pillar p { color: var(--text-2); font-size: 0.98rem; }

/* ============================================================
   HOW IT WORKS — ledger of stages
   ============================================================ */
.steps-flow {
  font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.9rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 18px;
}
.steps-flow .ar { color: var(--gold); font-family: var(--sans); font-weight: 300; }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line-2); margin-top: 8px;
}
.step { padding: 34px 30px 30px 0; position: relative; }
.step + .step { padding-left: 30px; border-left: 1px solid var(--line); }
.step .tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.step .tag .b { width: 8px; height: 8px; border: 1px solid var(--gold); transform: rotate(45deg); }
.step h3 { margin-bottom: 12px; }
.step p { color: var(--text-2); font-size: 0.97rem; }

/* ============================================================
   MARKETS
   ============================================================ */
.markets { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.market {
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 40px); position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.market:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.market.feature { grid-row: span 2; display: flex; flex-direction: column; }
.market .map {
  position: absolute; top: -30px; right: -30px; width: 220px; height: 220px;
  stroke: var(--gold-line); opacity: 0.5; pointer-events: none;
}
.market .label {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 20px;
  position: relative; z-index: 1;
}
.market .label .pin { color: var(--gold); }
.market h3 { margin-bottom: 14px; max-width: 20ch; position: relative; z-index: 1; }
.market p { color: var(--text-2); font-size: 0.97rem; position: relative; z-index: 1; }
.market.feature p { max-width: 52ch; }

.eu-points { list-style: none; margin: 26px 0 22px; display: grid; gap: 15px; }
.eu-points li { display: flex; gap: 13px; font-size: 0.95rem; color: var(--text-2); }
.eu-points svg {
  width: 17px; height: 17px; stroke: var(--gold); flex-shrink: 0; margin-top: 3px;
}
.eu-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

.markets-foot {
  text-align: center; margin-top: 44px;
  font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.6rem); color: var(--text-2);
}
.markets-foot b { color: var(--text); }

/* ============================================================
   THESIS / compounds
   ============================================================ */
.thesis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.thesis-card {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 26px; background: var(--bg-2);
  transition: border-color .4s var(--ease);
}
.thesis-card:hover { border-color: var(--line-3); }
.thesis-card .ix {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em;
  color: var(--gold); margin-bottom: 18px;
}
.thesis-card h3 { margin-bottom: 12px; }
.thesis-card p { color: var(--text-2); font-size: 0.95rem; }
.thesis-card p b { color: var(--text); font-weight: 600; }

/* ============================================================
   MODEL — fee schedule
   ============================================================ */
.model {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.model .lead { margin-top: 18px; }
.fee-list { border-top: 1px solid var(--line-2); }
.fee {
  display: grid; grid-template-columns: 0.4fr 1fr; gap: 20px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.fee .ph {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold);
}
.fee .ds { color: var(--text-2); font-size: 0.98rem; }
.fee .ds b { color: var(--text); font-weight: 600; }
.fee-note {
  margin-top: 22px; font-family: var(--serif); font-style: italic;
  font-size: 1.15rem; color: var(--gold-hi);
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto { text-align: center; }
.manifesto blockquote {
  font-family: var(--serif); font-weight: 420;
  font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.25;
  letter-spacing: -0.015em; max-width: 22ch; margin-inline: auto;
  color: var(--text-2);
}
.manifesto .hl { color: var(--text); }
.manifesto .hl em { color: var(--gold-hi); }
.manifesto .src {
  margin-top: 30px; font-family: var(--mono); font-size: 0.76rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3);
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-final {
  text-align: center; padding-block: clamp(84px, 12vw, 150px);
  border-top: 1px solid var(--line); position: relative; overflow: hidden;
}
.cta-final::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(700px 340px at 50% 0%, var(--gold-soft), transparent 66%);
}
.cta-final .wrap { position: relative; z-index: 1; }
.cta-final h2 { max-width: 20ch; margin-inline: auto; margin-top: 22px; }
.cta-final .actions {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 38px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 76px) 36px; }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.footer .brand span { font-size: 1.25rem; }
.footer .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer .col h5 {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 500;
}
.footer .col a {
  display: block; color: var(--text-2); font-size: 0.92rem; padding: 5px 0;
  transition: color .3s var(--ease);
}
.footer .col a:hover { color: var(--text); }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 26px; font-size: 0.82rem; color: var(--text-3);
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .9s var(--ease2), transform .9s var(--ease2);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-badge .dot { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .problem-grid, .model { grid-template-columns: 1fr; gap: 44px; }
  .frag { position: static; }
  .markets { grid-template-columns: 1fr; }
  .market.feature { grid-row: auto; }
  .pillars, .steps, .thesis { grid-template-columns: 1fr; }
  .pillar, .step {
    padding: 30px 0; border-left: 0 !important; border-top: 1px solid var(--line);
  }
  .pillar:first-child, .step:first-child { border-top: 0; }
  .thesis-card { padding: 26px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--bg-2); border-block: 1px solid var(--line);
    padding: 16px var(--pad);
  }
  .nav.open .nav-links a { padding: 10px 0; font-size: 1rem; }
  .hero-strip { grid-template-columns: 1fr 1fr; }
  .hero-strip .cell { padding: 22px 18px 22px 0; }
  .hero-strip .cell:nth-child(2) { border-left: 1px solid var(--line); padding-left: 18px; }
  .hero-strip .cell:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero-strip .cell:nth-child(odd) { border-left: 0; padding-left: 0; }
  .hero-strip .cell:nth-child(even) { border-left: 1px solid var(--line); padding-left: 18px; }
  .footer .cols { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; }
}
