/* =====================================================================
   ONNVO — investor-facing site
   Type: Fraunces (display/serif, certificate register) + IBM Plex Sans
   (body) + IBM Plex Mono (ledger codes, data, labels)
   Palette: near-black dossier ground, off-white ink, one indigo accent
   ===================================================================== */

:root{
  --bg: #0a0a0c;
  --bg-raised: #121116;
  --bg-raised-2: #17161d;
  --fg: #efeef2;
  --fg-muted: #9a97a6;
  --fg-faint: #605d6c;
  --line: rgba(239,238,242,0.11);
  --line-strong: rgba(239,238,242,0.22);
  --accent: #4b3ce8;
  --accent-bright: #6c5ff5;
  --accent-soft: rgba(75,60,232,0.16);
  --accent-ink: #1a1430;
  --error: #4b3ce8; /* on-brand indigo, one step deeper than --accent-bright so error != focus */

  --serif: 'Fraunces', 'Iowan Old Style', 'Georgia', serif;
  --sans: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  /* Wordmark face. Stand-in for Cocogoose (commercial, license required) —
     Baloo 2 is the closest free match: bold, geometric, rounded terminals.
     Swap to 'Cocogoose Pro' here (plus a @font-face block) once licensed. */
  --logo-font: 'Baloo 2', 'Poppins', 'Helvetica Neue', sans-serif;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --radius: 2px;
}

/* ---------- reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body{
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p,figure{ margin: 0; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea{ font: inherit; color: inherit; }

::selection{ background: var(--accent); color: #fff; }

:focus-visible{
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- background texture: faint registry grid ---------- */
body{
  background-image:
    linear-gradient(rgba(239,238,242,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239,238,242,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
}

/* ---------- eyebrow / mono labels ---------- */
.eyebrow{
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before{
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-bright);
  display: inline-block;
  border-radius: 1px;
}
.eyebrow.no-dot::before{ display: none; }

.reg-code{
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--fg-faint);
  letter-spacing: 0.04em;
}

/* ---------- type ---------- */
.display{
  font-family: var(--serif);
  font-weight: 480;
  letter-spacing: -0.01em;
  line-height: 1.04;
}
h1.display{ font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
h2.display{ font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3.display{ font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 500; }

.lede{
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 46em;
}
p.body-text{ color: var(--fg-muted); max-width: 62ch; }
.body-text + .body-text{ margin-top: 1em; }

.stat-figure{
  font-family: var(--serif);
  font-weight: 480;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  letter-spacing: -0.01em;
  color: var(--fg);
}

/* ---------- layout helpers ---------- */
.section{ padding: clamp(4rem, 9vw, 8rem) 0; position: relative; }
.section-tight{ padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-border-top{ border-top: 1px solid var(--line); }
.hr{ border: 0; border-top: 1px solid var(--line); margin: 0; }

.grid-2{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.grid-3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.grid-3 > *{ background: var(--bg); }
@media (max-width: 860px){
  .grid-2{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
}

.kicker-row{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
}
@media (max-width: 760px){
  .kicker-row{ grid-template-columns: 1fr; gap: 1rem; }
}

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.95em 1.6em;
  border: 1px solid var(--line-strong);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--accent);
  border-color: var(--accent);
  color: #fdfdff;
}
.btn-primary:hover{ background: var(--accent-bright); border-color: var(--accent-bright); transform: translateY(-1px); }
.btn-ghost{ color: var(--fg); }
.btn-ghost:hover{ border-color: var(--fg-muted); background: var(--bg-raised); }
.btn-arrow{ transition: transform 0.2s ease; }
.btn:hover .btn-arrow{ transform: translateX(3px); }

/* ---------- nav ---------- */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,12,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.15rem; padding-bottom: 1.15rem;
}
.brand{
  font-family: var(--logo-font);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 0.5em;
}
.brand-mark{
  width: 9px; height: 9px;
  background: var(--accent-bright);
  display: inline-block;
  transform: rotate(45deg);
}
.nav-links{ display: flex; align-items: center; gap: clamp(1.4rem, 2.6vw, 2.4rem); }
.nav-links a{
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 0.3em 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"]{ color: var(--fg); border-color: var(--accent-bright); }
.nav-cta{ display: flex; align-items: center; gap: 1.4rem; }
.nav-toggle{ display: none; }

@media (max-width: 860px){
  /* backdrop-filter on an ancestor makes it a containing block for
     position:fixed descendants — that was collapsing the full-screen
     mobile menu down into the header's own ~64px box, leaving the
     menu items rendering with no opaque background behind them.
     Disabling it here (mobile only; desktop keeps the frosted-glass
     header) is the fix. */
  .site-header{
    backdrop-filter: none;
    background: var(--bg);
  }
  .nav-links{
    position: fixed; inset: 64px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem var(--gutter);
    gap: 1.6rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border-top: 1px solid var(--line);
  }
  .nav-links a{ font-size: 0.95rem; }
  .nav-links.is-open{ opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-cta .btn-primary{ display: none; }
  .nav-toggle{
    display: inline-flex; flex-direction: column; gap: 5px; padding: 6px;
  }
  .nav-toggle span{ width: 20px; height: 1px; background: var(--fg); display: block; transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero{
  padding-top: clamp(3.5rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
}
.hero-stamp{
  position: absolute;
  top: clamp(1rem, 4vw, 2.5rem);
  right: var(--gutter);
  text-align: right;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--fg-faint);
  line-height: 1.7;
  display: none;
}
@media (min-width: 760px){ .hero-stamp{ display: block; } }
.hero-head{ max-width: 62rem; margin-top: 1.6rem; }
.hero-head .display{ margin-top: 0.9rem; }
.hero-actions{ display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }
.hero-foot{
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem);
}
.hero-foot-item{ font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--fg-faint); }
.hero-foot-item b{ color: var(--fg-muted); font-weight: 500; }

/* ---------- register rows (ledger-style lists) ---------- */
.register{ border-top: 1px solid var(--line); }
.register-row{
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.6rem, 3vw, 2.4rem) 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 640px){
  .register-row{ grid-template-columns: 1fr; gap: 0.6rem; }
}
.register-row .reg-code{ padding-top: 0.3em; }
.register-row h4{
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 480;
  margin-bottom: 0.5rem;
}
.register-row p{ color: var(--fg-muted); max-width: 58ch; }

/* ---------- stat grid (spec-sheet) ---------- */
.stat-table{ border-top: 1px solid var(--line); border-left: 1px solid var(--line); display: grid; }
.stat-table.cols-4{ grid-template-columns: repeat(4, 1fr); }
.stat-table.cols-3{ grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px){
  .stat-table.cols-4, .stat-table.cols-3{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px){
  .stat-table.cols-4, .stat-table.cols-3{ grid-template-columns: 1fr; }
}
.stat-cell{
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.2rem);
}
.stat-cell .eyebrow{ margin-bottom: 1.1rem; }
.stat-cell .stat-figure{ display: block; }
.stat-cell .stat-caption{ margin-top: 0.6rem; color: var(--fg-muted); font-size: 0.92rem; max-width: 30ch; }

/* market data table */
.data-table{ width: 100%; border-collapse: collapse; }
.data-table thead th{
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-faint); text-align: left; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line-strong);
}
.data-table tbody td{
  padding: 1.15rem 1rem; border-bottom: 1px solid var(--line);
  font-size: 0.95rem; color: var(--fg);
}
.data-table tbody td:first-child{ font-family: var(--serif); font-size: 1.05rem; }
.data-table tbody tr:hover{ background: var(--bg-raised); }
.data-table-wrap{ overflow-x: auto; }

/* ---------- cards ---------- */
.card{
  padding: clamp(1.8rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  background: var(--bg-raised);
  height: 100%;
}
.card .reg-code{ display: block; margin-bottom: 1rem; }
.card h4{ font-family: var(--serif); font-size: 1.3rem; font-weight: 480; margin-bottom: 0.7rem; }
.card p{ color: var(--fg-muted); }

/* ---------- phase / roadmap ---------- */
.phase-list{ border-top: 1px solid var(--line); }
.phase{
  display: grid;
  grid-template-columns: 140px 200px 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.8rem, 3vw, 2.6rem) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
@media (max-width: 780px){
  .phase{ grid-template-columns: 1fr; gap: 0.5rem; }
}
.phase-num{ font-family: var(--serif); font-size: 2rem; color: var(--fg-faint); font-weight: 480; }
.phase-window{ font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--accent-bright); padding-top: 0.4rem; }
.phase-body h4{ font-family: var(--serif); font-size: 1.25rem; font-weight: 480; margin-bottom: 0.5rem; }
.phase-body p{ color: var(--fg-muted); max-width: 56ch; }
.phase-tags{ display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.tag{
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-muted); border: 1px solid var(--line-strong); padding: 0.35em 0.7em;
}

/* ---------- diagram (owner staking / two-channel supply) ---------- */
.flow{
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
}
.flow-row{ display: grid; grid-template-columns: 1fr 1fr; }
.flow-col{ padding: clamp(1.6rem, 3vw, 2.4rem); border-top: 1px solid var(--line); }
.flow-col:first-child{ border-right: 1px solid var(--line); }
.flow-col:nth-child(-n+2){ border-top: none; }
@media (max-width: 700px){
  .flow-row{ grid-template-columns: 1fr; }
  .flow-col:first-child{ border-right: none; }
  .flow-col:nth-child(2){ border-top: 1px solid var(--line); }
}
.flow-head{ display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.9rem; }
.flow-col h4{ font-family: var(--serif); font-size: 1.2rem; font-weight: 480; }
.flow-steps{ margin-top: 1.1rem; display: flex; flex-direction: column; gap: 0.55rem; }
.flow-step{ display: flex; gap: 0.7em; font-size: 0.92rem; color: var(--fg-muted); }
.flow-step .reg-code{ color: var(--accent-bright); min-width: 2.4em; }
.flow-merge{
  padding: clamp(1.4rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

/* ---------- pull quote / thesis statement ---------- */
.thesis-line{
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 480;
  line-height: 1.28;
  color: var(--fg);
  max-width: 40ch;
}
.thesis-line em{ color: var(--fg-muted); font-style: italic; }

/* ---------- CTA band ---------- */
.cta-band{
  border-top: 1px solid var(--line);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  text-align: center;
}
.cta-band .display{ max-width: 34ch; margin: 0 auto; }
.cta-band .lede{ margin: 1.2rem auto 0; text-align: center; }
.cta-band .hero-actions{ justify-content: center; }

/* ---------- footer ---------- */
.site-footer{ border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; }
.footer-top{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 780px){ .footer-top{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer-top{ grid-template-columns: 1fr; } }
.footer-brand .brand{ margin-bottom: 1rem; }
.footer-brand p{ color: var(--fg-muted); max-width: 32ch; font-size: 0.9rem; }
.footer-col h5{
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-faint); margin-bottom: 1rem;
}
.footer-col ul{ display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a{ color: var(--fg-muted); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-col a:hover{ color: var(--fg); }
.footer-legal{
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.03em; color: var(--fg-faint); line-height: 1.7;
}
.footer-legal p{ max-width: 62ch; }

/* ---------- reveal on scroll ---------- */
.reveal{ opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; }
}

/* ---------- misc utility ---------- */
.mt-1{ margin-top: 1rem; } .mt-2{ margin-top: 2rem; } .mt-3{ margin-top: 3rem; }
.text-center{ text-align: center; }
.divider-label{
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint);
  margin-bottom: 1.6rem;
}
.divider-label::after{ content:''; flex: 1; height: 1px; background: var(--line); }

.pill-note{
  /* inline-block, not inline-flex: several instances now hold full
     sentences with an inline <a> in them, and flex would treat the
     text and the link as separate flex items, scrambling wrap order
     across lines. inline-block keeps it hugging its content width
     (the original intent) while wrapping like ordinary text. */
  display: inline-block;
  max-width: 100%;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; line-height: 1.6;
  color: var(--fg-muted); border: 1px solid var(--line-strong); padding: 0.5em 0.9em;
}

/* ---------- forms ---------- */
.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.6rem;
}
@media (max-width: 640px){ .form-grid{ grid-template-columns: 1fr; } }
.form-field{ display: flex; flex-direction: column; gap: 0.55rem; }
.form-field.full{ grid-column: 1 / -1; }
.form-field label{
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-muted);
}
.form-field label .req{ color: var(--accent-bright); margin-left: 0.2em; }
.form-field input, .form-field select, .form-field textarea{
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  color: var(--fg);
  padding: 0.85em 1em;
  font-family: var(--sans);
  font-size: 0.95rem;
  width: 100%;
  border-radius: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-field select{
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-muted) 50%), linear-gradient(135deg, var(--fg-muted) 50%, transparent 50%);
  background-position: calc(100% - 1.2em) center, calc(100% - 0.9em) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.form-field textarea{ resize: vertical; min-height: 130px; }
.form-field input::placeholder, .form-field textarea::placeholder{ color: var(--fg-faint); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  outline: none; border-color: var(--accent-bright); background: var(--bg-raised-2);
}
.form-field .field-error{
  font-family: var(--mono); font-size: 0.7rem; color: var(--error);
  display: none;
}
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea{
  border-color: var(--error);
}
.form-field.has-error .field-error{ display: block; }
.form-actions{
  grid-column: 1 / -1;
  display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem;
  margin-top: 0.5rem;
}
.form-note{ font-family: var(--mono); font-size: 0.72rem; color: var(--fg-faint); }

/* ---------- modal ---------- */
.modal-overlay{
  position: fixed; inset: 0;
  background: rgba(5,5,7,0.74);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.is-open{ opacity: 1; pointer-events: auto; }
.modal-box{
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  max-width: 460px; width: 100%;
  padding: clamp(1.8rem, 4vw, 2.6rem);
  transform: translateY(10px);
  transition: transform 0.2s ease;
}
.modal-overlay.is-open .modal-box{ transform: translateY(0); }
.modal-box .reg-code{ display: block; margin-bottom: 1rem; }
.modal-box h3{ font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 480; margin-bottom: 0.9rem; }
.modal-box p{ color: var(--fg-muted); }
.modal-actions{ margin-top: 1.8rem; display: flex; gap: 1rem; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce){
  .modal-overlay, .modal-box{ transition: none; }
}

/* ---------- proportional bar rows (use of funds) ---------- */
.bar-list{ border-top: 1px solid var(--line); }
.bar-row{
  display: grid;
  grid-template-columns: 180px 1fr 64px;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.4rem);
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 560px){
  .bar-row{ grid-template-columns: 1fr; gap: 0.4rem; }
  .bar-pct{ text-align: left; }
}
.bar-label{ font-family: var(--serif); font-size: 1.02rem; }
.bar-track{ height: 7px; background: var(--bg-raised-2); position: relative; overflow: hidden; }
.bar-fill{ position: absolute; inset: 0 auto 0 0; background: var(--accent); }
.bar-pct{ font-family: var(--mono); font-size: 0.82rem; color: var(--fg-muted); text-align: right; }

/* ---------- footer legal row (bottom links) ---------- */
.footer-legal-row{
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
}
.footer-legal-links{ display: flex; flex-wrap: wrap; align-items: center; gap: 1.3rem; }
.footer-legal-links a, .footer-legal-links button{
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-faint); background: none; border: 0; padding: 0; cursor: pointer;
  transition: color 0.2s ease;
}
.footer-legal-links a:hover, .footer-legal-links button:hover{ color: var(--fg-muted); }

/* ---------- cookie consent banner ---------- */
.cookie-banner{
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 150;
  background: var(--bg-raised);
  border-top: 1px solid var(--line-strong);
  padding: 1.2rem var(--gutter);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.cookie-banner.is-visible{ transform: translateY(0); }
.cookie-banner-inner{
  max-width: var(--container);
  margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem;
}
.cookie-banner-inner p{ color: var(--fg-muted); font-size: 0.88rem; max-width: 62ch; margin: 0; }
.cookie-banner-inner a{ color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions{ display: flex; gap: 0.8rem; flex-shrink: 0; }
@media (prefers-reduced-motion: reduce){ .cookie-banner{ transition: none; } }

/* ---------- breadcrumb (SEO + wayfinding) ---------- */
.breadcrumb{
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.55em;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-faint); margin-bottom: 1.4rem;
}
.breadcrumb a{ color: var(--fg-muted); transition: color 0.2s ease; }
.breadcrumb a:hover{ color: var(--fg); }
.breadcrumb .sep{ color: var(--fg-faint); }
.breadcrumb [aria-current="page"]{ color: var(--fg-faint); }

/* anchors (glossary terms, in-page jumps) landing under the sticky header */
:target{ scroll-margin-top: 96px; }

/* ---------- card as a full clickable link (Insights hub) ---------- */
a.card{ display: block; text-decoration: none; transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease; }
a.card:hover{ border-color: var(--fg-muted); background: var(--bg-raised-2); transform: translateY(-2px); }
.card .reg-code + .card-date{ float: right; }
.card-date{ font-family: var(--mono); font-size: 0.68rem; color: var(--fg-faint); }

/* ---------- article meta (Insights posts) ---------- */
.article-meta{
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em; color: var(--fg-faint);
  margin-top: 0.9rem;
}

/* ---------- FAQ accordion (native <details>, no JS required) ---------- */
.faq{ border-top: 1px solid var(--line); }
.faq-item{ border-bottom: 1px solid var(--line); }
.faq-item summary{
  cursor: pointer; list-style: none;
  padding: clamp(1.3rem, 2.6vw, 1.8rem) 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  font-family: var(--serif); font-weight: 480; font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  color: var(--fg);
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: '+'; flex-shrink: 0; font-family: var(--mono); font-size: 1.2rem; color: var(--accent-bright);
}
.faq-item[open] summary::after{ content: '\2013'; }
.faq-item p{ color: var(--fg-muted); max-width: 62ch; margin: 0; padding-bottom: clamp(1.3rem, 2.6vw, 1.8rem); }

/* ---------- glossary ---------- */
.glossary-jump{ display: flex; flex-wrap: wrap; gap: 0.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.2rem 0; }
.glossary-jump a{
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--fg-muted);
  border: 1px solid var(--line-strong); padding: 0.35em 0.7em; transition: color 0.2s ease, border-color 0.2s ease;
}
.glossary-jump a:hover{ color: var(--fg); border-color: var(--fg-muted); }
.glossary-letter{
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-bright);
  margin: clamp(2.4rem, 4vw, 3.2rem) 0 0.4rem;
}
.glossary-letter:first-of-type{ margin-top: 0; }

/* ---------- icon system ----------
   24x24 grid, hairline 1.5px stroke, currentColor — matches the site's
   line-based, no-fill visual language. See assets/icons/icons.svg. */
.icon{
  width: 1.5em; height: 1.5em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  display: block;
}
.icon-tile{
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  background: var(--bg-raised-2);
  color: var(--accent-bright);
  margin-bottom: 1.1rem;
}
.icon-tile .icon{ width: 22px; height: 22px; }
.card .icon-tile{ margin-bottom: 1rem; }
.register-row .icon-tile{ width: 36px; height: 36px; margin-bottom: 0; }
.register-row .icon-tile .icon{ width: 18px; height: 18px; }
.register-row-head{ display: flex; align-items: center; gap: 1rem; margin-bottom: 0.6rem; }

/* ---------- schematics (SPV structure, regulatory pathway) ---------- */
.diagram{
  border: 1px solid var(--line);
  background: var(--bg-raised);
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 2rem);
  overflow-x: auto;
}
.diagram svg{ display: block; width: 100%; height: auto; min-width: 480px; }
.diagram-caption{
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--fg-faint);
  text-align: center; margin-top: 1rem;
}
/* diagram internals — CSS classes rather than var() in presentation
   attributes, so color stays reliably themed across browsers */
.diagram .d-box{ fill: var(--bg-raised-2); stroke: var(--line-strong); stroke-width: 1; }
.diagram .d-box-accent{ fill: var(--accent-ink); stroke: var(--accent-bright); stroke-width: 1.25; }
.diagram .d-line{ stroke: var(--line-strong); stroke-width: 1; fill: none; }
.diagram .d-accent{ stroke: var(--accent-bright); stroke-width: 1.5; fill: none; }
.diagram .d-dot{ fill: var(--accent-bright); }
.diagram .d-label{ font-family: var(--mono); font-size: 11px; fill: var(--fg-muted); }
.diagram .d-label-strong{ font-family: var(--serif); font-size: 14px; fill: var(--fg); }
.diagram .d-faint{ font-family: var(--mono); font-size: 9px; letter-spacing: 0.05em; fill: var(--fg-faint); }
.diagram .d-arrow{ fill: var(--line-strong); }

/* ---------- GCC coordinate map ---------- */
.map-wrap{
  border: 1px solid var(--line);
  background: var(--bg-raised);
  padding: clamp(1rem, 3vw, 1.5rem);
}
.map-wrap svg{ display: block; width: 100%; height: auto; }
.map-wrap .m-grid{ stroke: var(--line); stroke-width: 1; }
.map-wrap .m-link{ stroke: var(--accent); stroke-width: 1; opacity: 0.7; }
.map-wrap .m-node{ fill: var(--accent-bright); stroke: none; }
.map-wrap .m-node-origin{ fill: var(--bg-raised); stroke: var(--accent-bright); stroke-width: 1.5; }
.map-wrap .m-label{ font-family: var(--mono); font-size: 11px; fill: var(--fg); }
.map-wrap .m-coord{ font-family: var(--mono); font-size: 8.5px; fill: var(--fg-faint); letter-spacing: 0.02em; }

/* ---------- legal / prose pages ---------- */
.prose{ max-width: 68ch; }
.prose h2{
  font-family: var(--serif); font-weight: 480;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-top: 2.6rem; margin-bottom: 0.9rem;
}
.prose h2:first-child{ margin-top: 0; }
.prose p{ color: var(--fg-muted); margin-bottom: 1rem; }
.prose ul{ margin: 0 0 1.2rem 0; padding-left: 1.2rem; list-style: disc; color: var(--fg-muted); }
.prose li{ margin-bottom: 0.5rem; }
.prose strong{ color: var(--fg); font-weight: 600; }
.prose a{ color: var(--accent-bright); text-decoration: underline; text-underline-offset: 2px; }
