/* ─────────────────────────────────────────────
   NEW AVENUE CAPITAL — Global Design System
   global.css
   All brand tokens, reset, typography, layout,
   nav, footer, and shared components.
   Do not add page-specific styles here.
───────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

/* ─── 1. CSS CUSTOM PROPERTIES ─── */
:root {
  /* Colors */
  --c-graphite:   #565656;
  --c-sand:       #D1C6BC;
  --c-terracotta: #8D6E64;
  --c-terracotta-dark: #7b5f56;
  --c-silver:     #9F9F9F;
  --c-black:      #000000;
  --c-white:      #FFFFFF;

  /* Typography */
  --f-base: 'Outfit', system-ui, sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;

  --fs-display: clamp(20px, 5.5vw, 48px);
  --fs-headline: clamp(17px, 2.5vw, 28px);
  --fs-body: 15px;
  --fs-label: 10px;
  --fs-metric: clamp(36px, 4vw, 46px);
  --fs-caption: 11px;

  --ls-display: 0.04em;
  --ls-label: 0.14em;
  --ls-button: 0.12em;

  --lh-display: 1.1;
  --lh-headline: 1.2;
  --lh-body: 1.78;

  /* Layout */
  --nav-h: 68px;
  --section-v: 5.5rem;
  --section-h: 4rem;
  --max-w: 1200px;

  /* Dividers */
  --divider:       1px solid rgba(86, 86, 86, 0.2);
  --divider-sand:  1px solid var(--c-sand);
  --divider-terra: 1px solid rgba(141, 110, 100, 0.28);
}

/* ─── 2. RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* The HTML hidden attribute must always win over class display rules
   (e.g. a section that is display:flex/grid by class but currently hidden). */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-base);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-graphite);
  background: var(--c-sand);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font-family: var(--f-base); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ─── 3. TYPOGRAPHY UTILITIES ─── */
.display-headline {
  font-size: var(--fs-display);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  line-height: var(--lh-display);
}
.section-headline {
  font-size: var(--fs-headline);
  font-weight: var(--fw-bold);
  line-height: var(--lh-headline);
  color: var(--c-black);
}
.body-text {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-graphite);
}
.body-text + .body-text { margin-top: 1.25rem; }

.desktop-only {
  display: inline;
}

/* ─── 4. BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-base);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 40px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.18s ease,
              border-color 0.18s ease,
              color 0.18s ease,
              box-shadow 0.2s ease;
  background: none;
  border-radius: 0;
  position: relative;
}
.btn:focus-visible { outline: 2px solid var(--c-terracotta); outline-offset: 3px; }
.btn:active { transform: translateY(1px) scale(0.99); }

/* Primary — Terracotta fill, works on any background */
.btn-primary {
  background: var(--c-terracotta);
  color: var(--c-white);
  border-color: var(--c-terracotta);
  box-shadow: 0 2px 12px rgba(141, 110, 100, 0.25);
}
.btn-primary:hover {
  background: var(--c-terracotta-dark);
  border-color: var(--c-terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(141, 110, 100, 0.35);
}

/* Secondary — transparent, Graphite border — use on LIGHT backgrounds (Sand, White) */
.btn-secondary {
  background: transparent;
  color: var(--c-graphite);
  border-color: rgba(86, 86, 86, 0.5);
}
.btn-secondary:hover {
  border-color: var(--c-graphite);
  transform: translateY(-2px);
}

/* Ghost — transparent, White border — use on DARK backgrounds */
.btn-ghost {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover {
  border-color: var(--c-white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* ─── 5. NAVIGATION ─── */
.site-nav {
  background: var(--c-graphite);
  height: var(--nav-h);
  padding: 0 var(--section-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.nav-logo img {
  height: 42px;
  width: auto;
}
.nav-wordmark {
  font-size: 13px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-white);
  line-height: 1.4;
}
.nav-links {
  display: flex;
  gap: 3rem;
}
.nav-links a {
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-silver);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] { color: var(--c-white); outline: none; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--c-white);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 768px) {
  .site-nav { padding: 0 1.5rem; flex-wrap: wrap; height: auto; min-height: var(--nav-h); align-content: center; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { border-top: var(--divider-terra); }
  .nav-links a { display: block; padding: 0.875rem 0; }
}

/* ─── 6. FOOTER ─── */
.site-footer { background: var(--c-sand); }

/* ── Footer top: 4-column grid ── */
.footer-top {
  display: grid;
  grid-template-columns: 2.2fr 1fr 0.8fr 1.4fr;
  gap: 3rem;
  padding: 4rem var(--section-h) 3rem;
}
.footer-col { min-width: 0; }
.footer-logo { margin-bottom: 1.25rem; }
.footer-logo .nav-wordmark { color: var(--c-graphite); }
.footer-tagline {
  font-size: var(--fs-caption);
  line-height: 1.7;
  color: var(--c-graphite);
  max-width: 320px;
}
.footer-heading {
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-graphite);
  margin: 0 0 1.25rem;
}
.footer-col--nav ul,
.footer-col--legal ul {
  display: flex; flex-direction: column; gap: 0.75rem;
  list-style: none; padding: 0; margin: 0;
}
.footer-col--nav a,
.footer-col--legal a {
  font-size: 13px;
  color: var(--c-graphite);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col--nav a:hover,
.footer-col--legal a:hover { color: var(--c-terracotta); }

.footer-col--contact { display: flex; flex-direction: column; gap: 0.25rem; }
.footer-contact-label {
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-silver);
  margin-top: 1rem;
}
.footer-contact-label:first-child { margin-top: 0; }
.footer-col--contact a {
  font-size: 13px;
  color: var(--c-graphite);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col--contact a:hover { color: var(--c-terracotta); }

/* ── Footer mid: disclaimer bar ── */
.footer-mid {
  padding: 1.75rem var(--section-h);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.footer-disclaimer {
  font-size: 10px;
  line-height: 1.7;
  color: var(--c-silver);
  max-width: 960px;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* ── Footer bottom: entity + copyright ── */
.footer-bottom {
  padding: 1.25rem var(--section-h) 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.footer-entity {
  font-size: 10px;
  line-height: 1.65;
  color: var(--c-silver);
  margin: 0;
}
.footer-copyright {
  font-size: 10px;
  color: var(--c-silver);
  white-space: nowrap;
  margin: 0;
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding: 3rem 1.5rem 2.5rem; }
  .footer-col--brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-col--brand { grid-column: 1 / -1; }
  .footer-mid { padding: 1.5rem 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 1.25rem 1.5rem 2rem; }
  .footer-disclaimer { text-align: left; }
}

/* ─── 7. SECTION WRAPPERS ─── */
.section { padding: var(--section-v) var(--section-h); }
.section--dark  { background: var(--c-graphite); }
.section--sand  { background: var(--c-sand); }
.section--white { background: var(--c-white); }
.section--warm  { background: #f5f1ec; }
.section-inner  { max-width: var(--max-w); margin: 0 auto; }
.section-header { margin-bottom: 3.5rem; }

@media (max-width: 768px) {
  .section { padding: 3rem 1.25rem; }
  .desktop-only { display: none; }
}

/* Dark section text overrides */
.section--dark .section-headline { color: var(--c-white); }
.section--dark .body-text        { color: var(--c-silver); }

/* Standard page hero utility */
.hero-standard {
  position: relative;
  background: var(--c-graphite);
  min-height: calc(70vh - var(--nav-h));
  display: flex;
  align-items: flex-end;
  padding: var(--section-v) var(--section-h);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  opacity: 0.18;
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-copy .hero-sub {
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-silver);
  margin: 1.5rem 0 2.5rem;
  max-width: 580px;
}
@media (max-width: 768px) {
  .hero-standard {
    min-height: max(60vh, 420px);
    padding: 3rem 1.25rem 3.5rem;
    align-items: flex-end;
  }
}

/* ─── 8. SHARED COMPONENTS ─── */

/* Stat grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 0 2.5rem;
  border-right: var(--divider);
}
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child  { border-right: none; padding-right: 0; }
.stat-label-text {
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-silver);
  display: block;
  margin-bottom: 1rem;
}
.stat-number {
  font-size: var(--fs-metric);
  font-weight: var(--fw-bold);
  color: var(--c-black);
  display: block;
  line-height: 1;
  margin-bottom: 0.625rem;
  font-variant-numeric: tabular-nums;
}
.stat-note {
  font-size: var(--fs-caption);
  color: var(--c-silver);
  display: block;
  line-height: 1.55;
}
.section--dark .stat-number { color: var(--c-white); }
@media (max-width: 768px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
  .stat-item { border-right: none; padding: 0; }
}

/* Pull quote */
.pull-quote {
  border-left: 2px solid var(--c-terracotta);
  padding: 1rem 0 1rem 2rem;
  margin: 2.5rem 0;
}
.pull-quote blockquote {
  font-size: 16px;
  font-style: italic;
  line-height: 1.7;
  color: var(--c-graphite);
  margin-bottom: 1rem;
}
.section--dark .pull-quote blockquote { color: var(--c-silver); }
.pull-quote cite {
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-silver);
  font-style: normal;
  display: block;
}
.pull-quote .cite-role {
  font-size: var(--fs-label);
  color: var(--c-silver);
  font-weight: var(--fw-regular);
  letter-spacing: 0;
  text-transform: none;
  font-style: italic;
  display: block;
  margin-top: 0.25rem;
}

/* Data table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-graphite);
  text-align: left;
  padding: 0.875rem 1rem;
  border-bottom: var(--divider);
}
.data-table td {
  font-size: var(--fs-body);
  padding: 0.875rem 1rem;
  border-bottom: var(--divider);
  color: var(--c-graphite);
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table td:first-child { font-weight: var(--fw-bold); color: var(--c-black); width: 40%; }
.data-table--highlight tr.highlight td { color: var(--c-terracotta); font-weight: var(--fw-bold); }
@media (max-width: 600px) {
  .data-table thead { display: none; }
  .data-table tr { border-bottom: 1.5px solid var(--c-graphite); padding: 1.25rem 0; display: block; }
  .data-table tr:last-child { border-bottom: none; }
  .data-table td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(86, 86, 86, 0.08);
    text-align: right;
    font-size: var(--fs-body);
    color: var(--c-graphite);
    width: 100% !important;
  }
  .data-table td:last-child { border-bottom: none; }
  .data-table td:first-child {
    display: block;
    text-align: left;
    font-size: 14px;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--c-black);
    border-bottom: 1.5px solid rgba(86, 86, 86, 0.15);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .data-table--highlight tr.highlight td:first-child {
    color: var(--c-terracotta);
    border-bottom-color: rgba(141, 110, 100, 0.3);
  }
  .data-table td:not(:first-child)::before {
    content: attr(data-label);
    font-weight: var(--fw-bold);
    color: var(--c-silver);
    font-size: var(--fs-label);
    text-transform: uppercase;
    letter-spacing: var(--ls-label);
    margin-right: 1rem;
    text-align: left;
  }
}

/* Step process — used on /investors (credit structure) and /borrow (how it works) */
.credit-steps { display: flex; flex-direction: column; gap: 2rem; max-width: 720px; }
.credit-step  { display: grid; grid-template-columns: 60px 1fr; gap: 1.5rem; align-items: start; }
.step-num {
  font-size: 16px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  color: var(--c-terracotta);
  padding-top: 4px;
}
.step-title {
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  color: var(--c-black);
  margin-bottom: 0.5rem;
}
@media (max-width: 768px) {
  .credit-step { grid-template-columns: 40px 1fr; }
}

/* Entrance animation (applied by main.js via data-hero-anim attribute) */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-ready { opacity: 0; transform: translateY(22px); }
.anim-in    { animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

/* Scroll reveal (applied by main.js to .reveal elements) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── 9. FORM BASE STYLES ─── */
.inquiry-form { display: flex; flex-direction: column; gap: 1.5rem; max-width: 520px; margin: 2.5rem 0; }
.form-row { display: flex; flex-direction: column; gap: 0.5rem; }
.form-row label {
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-silver);
}
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--f-base);
  font-size: var(--fs-body);
  padding: 0.875rem 1rem;
  border: 1px solid var(--divider);
  color: var(--c-graphite);
  background: var(--c-white);
  outline: none;
  transition: border-color 0.15s;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-color: var(--c-terracotta); }
/* Dark background form variant (used on /investors CTA section) */
.section--dark .form-row input,
.section--dark .form-row select,
.section--dark .form-row textarea {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.2);
  color: var(--c-white);
}
.section--dark .form-row input::placeholder,
.section--dark .form-row textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-fallback { font-size: 13px; color: var(--c-silver); }
.form-fallback a { color: var(--c-terracotta); text-decoration: none; }
.form-fallback a:hover { text-decoration: underline; }

/* ─── 10. REDESIGN COMPONENTS (2026-06-19 audit) ─── */

/* Prose column — constrains running body copy to readable line length */
.body-prose {
  max-width: 680px;
}

/* Problem section cards (homepage) — editorial numbered rows */
.problem-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 3.5rem;
}
.problem-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2.5rem;
  padding: 2.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  align-items: start;
}
.problem-card-num {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-terracotta);
  line-height: 1;
  padding-top: 4px;
}
.problem-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-white);
  display: block;
  margin-bottom: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.3;
}
.problem-card p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-silver);
  max-width: 680px;
}
@media (max-width: 768px) {
  .problem-card { grid-template-columns: 1fr; gap: 0.625rem; padding: 2rem 0; }
  .problem-card-num { padding-top: 0; }
}

/* ─── 10a. ENLARGED PROCESS TIMELINE (borrow page) ─── */
.timeline-wrapper {
  position: relative;
  width: 100%;
  margin-top: 5rem;
}
.timeline-svg {
  position: absolute;
  left: 0;
  width: 100%;
  height: 20px;
  top: 2.25rem; /* vertical center of the 4.5rem circle */
  transform: translateY(-50%); /* perfectly aligns the 20px height center vertically */
  z-index: 1;
  pointer-events: none;
}
.timeline-track-bg {
  stroke: #E5DCD5;
}
.timeline-track-fg {
  stroke: var(--c-terracotta);
  stroke-dasharray: 800; /* Will be animated in JS, default full */
  stroke-dashoffset: 800;
}
.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}
.timeline-step {
  text-align: center;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
}
.timeline-num {
  width: 4.5rem;
  height: 4.5rem;
  border: 2px solid rgba(86, 86, 86, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: var(--fw-bold);
  color: var(--c-silver);
  background: var(--c-white);
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 2;
  transition: color 0.4s ease, border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}
.timeline-step.is-active .timeline-num {
  color: var(--c-white);
  border-color: var(--c-terracotta);
  background: var(--c-terracotta);
  box-shadow: 0 0 20px rgba(141, 110, 100, 0.4);
}
.timeline-title {
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-black);
  display: block;
  margin-bottom: 0.75rem;
}
.timeline-desc {
  font-size: var(--fs-caption);
  line-height: 1.65;
  color: var(--c-graphite);
  max-width: 220px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .timeline-wrapper { margin-top: 2.5rem; }
  .timeline-svg { display: none; }
  .process-timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline-step { 
    padding: 2rem 0; 
    border-bottom: var(--divider); 
    text-align: left; 
    display: grid; 
    grid-template-columns: 3.5rem 1fr; 
    gap: 1.5rem; 
    align-items: start; 
  }
  .timeline-step:last-child { border-bottom: none; }
  .timeline-num { 
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.15rem;
    margin: 0; 
    background: var(--c-terracotta);
    border-color: var(--c-terracotta);
    color: var(--c-white);
  }
  .timeline-desc {
    max-width: none;
    margin: 0;
  }
}

/* ─── 10b. INTERACTIVE S-CURVE DUAL-ENTITY STRUCTURE (investors page) ─── */
.structure-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 5rem auto;
  padding: 2rem 0;
}
.structure-svg {
  position: absolute;
  top: 0.5rem;
  left: 0;
  width: 100%;
  height: calc(100% - 1rem);
  z-index: 1;
  pointer-events: none;
}
.track-bg {
  stroke: #E5DCD5;
}
.track-fg {
  stroke: var(--c-terracotta);
  stroke-dasharray: 1500; /* animated in JS */
  stroke-dashoffset: 1500;
}
.structure-nodes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 8rem;
  column-gap: 12rem;
  position: relative;
  z-index: 2;
}
.structure-node {
  width: 100%;
  max-width: 380px;
  position: relative;
  background: rgba(86, 86, 86, 0.04); /* Outer bezel tray tint */
  border: 1px solid rgba(86, 86, 86, 0.08);
  border-radius: 1.5rem;
  padding: 8px; /* Offset gap */
  transition: border-color 0.5s ease, background-color 0.5s ease, transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.structure-node.is-active {
  background: rgba(141, 110, 100, 0.05);
  border-color: rgba(141, 110, 100, 0.2);
}
.node-left {
  grid-column: 1;
  justify-self: end;
  text-align: right;
}
.node-right {
  grid-column: 2;
  justify-self: start;
  text-align: left;
}
.structure-card {
  background: rgba(255, 255, 255, 0.85); /* Frosted glass */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2.25rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: calc(1.5rem - 8px);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9), 0 4px 15px rgba(0, 0, 0, 0.01);
  transition: border-color 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.structure-node.is-active .structure-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(141, 110, 100, 0.35);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 1), 0 15px 40px rgba(141, 110, 100, 0.12);
  transform: translateY(-2px);
}
/* Hover effect when node is active */
.structure-node.is-active:hover {
  transform: translateY(-6px) scale(1.02);
}
.structure-node.is-active:hover .structure-card {
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 1), 0 20px 50px rgba(141, 110, 100, 0.18);
  border-color: var(--c-terracotta);
}



.structure-node-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-silver);
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.4s ease;
}
.structure-node.is-active .structure-node-label {
  color: var(--c-terracotta);
}
.structure-node-name {
  font-size: 21px; /* Increased from 16px */
  font-weight: var(--fw-bold);
  color: var(--c-black);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.structure-node-detail {
  font-size: 14px; /* Increased from var(--fs-caption) */
  color: var(--c-graphite);
  line-height: 1.6;
}
.structure-node-detail strong {
  color: var(--c-black);
  font-weight: 600;
}

@media (max-width: 768px) {
  .structure-wrapper { margin: 2.5rem auto; padding: 0; }
  .structure-svg { display: none; }
  .structure-nodes { grid-template-columns: 1fr; row-gap: 2.5rem; column-gap: 0; }
  .structure-node { max-width: none; justify-self: stretch; text-align: left; padding: 0; background: none; border: none; }
  .node-left, .node-right {
    grid-column: auto !important;
    justify-self: stretch !important;
    text-align: left !important;
  }
  .structure-card {
    background: var(--c-white);
    border: 1px solid rgba(86, 86, 86, 0.12);
    border-top: 3px solid var(--c-terracotta);
    padding: 1.75rem 1.5rem;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  }
  .structure-node-label {
    color: var(--c-terracotta);
  }
}

/* Key-value list — replaces dense terms table on investors page */
.kv-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 2.5rem;
  border-top: var(--divider);
}
.kv-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 1.25rem 0;
  border-bottom: var(--divider);
  align-items: baseline;
}
.kv-item:nth-child(odd)  { padding-right: 3rem; }
.kv-item:nth-child(even) { padding-left: 3rem; border-left: var(--divider); }
.kv-key {
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-silver);
}
.kv-value {
  font-size: var(--fs-body);
  color: var(--c-black);
  font-weight: var(--fw-bold);
  line-height: 1.4;
}
.kv-value em {
  font-style: normal;
  font-weight: var(--fw-regular);
  color: var(--c-graphite);
  font-size: var(--fs-caption);
  display: block;
  margin-top: 0.25rem;
}
@media (max-width: 768px) {
  .kv-list { grid-template-columns: 1fr; }
  .kv-item { grid-template-columns: 1fr; gap: 0.375rem; padding-left: 0 !important; padding-right: 0 !important; border-left: none !important; }
}

/* Credit structure cards (investors page) */
.credit-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 3rem;
}
.credit-card {
  background: rgba(255,255,255,0.05);
  padding: 2.5rem 2rem;
}
.credit-card-num {
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  color: var(--c-terracotta);
  display: block;
  margin-bottom: 1rem;
}
.credit-card-title {
  font-size: 16px;
  font-weight: var(--fw-bold);
  color: var(--c-white);
  margin-bottom: 0.875rem;
  line-height: 1.3;
}
.credit-card p {
  font-size: var(--fs-body);
  color: var(--c-silver);
  line-height: var(--lh-body);
}
.credit-card strong { color: var(--c-white); }
@media (max-width: 768px) {
  .credit-cards { grid-template-columns: 1fr; }
}

/* Roadmap timeline — about page */
.roadmap-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3rem;
  position: relative;
}
.roadmap-track::before {
  content: '';
  position: absolute;
  top: 0.75rem;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--divider);
}
.roadmap-milestone {
  padding: 0 2rem 0 0;
  position: relative;
}
.roadmap-milestone:last-child { padding-right: 0; }
.roadmap-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--c-terracotta);
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
}
.roadmap-when {
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-terracotta);
  display: block;
  margin-bottom: 0.75rem;
}
.roadmap-title {
  font-size: 16px;
  font-weight: var(--fw-bold);
  color: var(--c-black);
  margin-bottom: 0.75rem;
}
.roadmap-body {
  font-size: var(--fs-body);
  color: var(--c-graphite);
  line-height: var(--lh-body);
}
@media (max-width: 768px) {
  .roadmap-track { grid-template-columns: 1fr; gap: 2.5rem; }
  .roadmap-track::before { display: none; }
}

/* 3-founder testimonial grid (borrow page) */
.testimonials-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}
@media (max-width: 768px) {
  .testimonials-3col { grid-template-columns: 1fr; gap: 2rem; }
}

/* 2-column form layout */
.form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2.5rem;
  max-width: 600px;
}
.form-2col .form-row--full {
  grid-column: 1 / -1;
}
@media (max-width: 600px) {
  .form-2col { grid-template-columns: 1fr; }
}

/* ─── 11. SECTION FLOW + VISUAL REFINEMENTS ─── */

/* Stagger children inside reveal containers */
.problem-cards .problem-card:nth-child(2) { transition-delay: 0.08s; }
.problem-cards .problem-card:nth-child(3) { transition-delay: 0.16s; }

.credit-cards .credit-card:nth-child(2) { transition-delay: 0.08s; }
.credit-cards .credit-card:nth-child(3) { transition-delay: 0.16s; }
.credit-cards .credit-card:nth-child(4) { transition-delay: 0.24s; }

.roadmap-milestone:nth-child(2) { transition-delay: 0.1s; }
.roadmap-milestone:nth-child(3) { transition-delay: 0.2s; }

.partner-card:nth-child(2) { transition-delay: 0.08s; }
.partner-card:nth-child(3) { transition-delay: 0.16s; }

/* ─── 12. LOG IN NAV ITEM (site-wide) ─── */
.nav-login {
  color: var(--c-white) !important;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.45rem 1.1rem !important;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.nav-login:hover { background: var(--c-terracotta); border-color: var(--c-terracotta); }
.nav-login[aria-current="page"] { background: var(--c-terracotta); border-color: var(--c-terracotta); }
@media (max-width: 768px) {
  .nav-login { display: block; border: none; padding: 0.875rem 0 !important; }
}

/* ── Inquiry form success / error message ── */
.form-message {
  margin-top: 1.5rem;
  padding: 1.1rem 1.3rem;
  background: #f2efe9;
  border-left: 3px solid var(--c-terracotta);
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-graphite);
}
.form-message strong { color: var(--c-black); }
.form-message--error { border-left-color: #b4453c; }

/* ── Accredited-investor gate (interstitial) ── */
.ai-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(20, 18, 17, 0.86);
  backdrop-filter: blur(4px);
}
.ai-gate[hidden] { display: none; }
.ai-gate-card {
  background: var(--c-white);
  max-width: 560px;
  width: 100%;
  padding: 2.5rem 2.5rem 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.ai-gate-eyebrow {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-terracotta);
  font-weight: var(--fw-bold);
  display: block;
  margin-bottom: 0.6rem;
}
.ai-gate-card h2 { font-size: 1.5rem; line-height: 1.15; margin: 0 0 0.9rem; color: var(--c-black); }
.ai-gate-card p { font-size: 13.5px; line-height: 1.65; color: var(--c-graphite); margin: 0 0 1rem; }
.ai-gate-card p.ai-gate-fine { font-size: 11.5px; color: var(--c-silver); }
.ai-gate-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.ai-gate-actions .btn { flex: 1 1 auto; }
@media (max-width: 520px) { .ai-gate-card { padding: 1.75rem 1.5rem; } .ai-gate-actions .btn { flex: 1 1 100%; } }

/* ── Justified body copy — clean text blocks ──
   Applied to flowing multi-sentence prose only (not headlines, stats,
   captions, or short labels). Paired with auto-hyphenation so the
   justification doesn't open up large inter-word gaps. Reverts to
   left-aligned on narrow screens where justify reads poorly. */
.body-prose,
.legal-body p,
.deal-card-body,
.partner-detail,
.principle-card .body-text,
.team-callout .body-text {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
@media (max-width: 640px) {
  .body-prose,
  .legal-body p,
  .deal-card-body,
  .partner-detail,
  .principle-card .body-text,
  .team-callout .body-text {
    text-align: left;
    -webkit-hyphens: manual;
    hyphens: manual;
  }
}

/* ── Custom Checkbox Styling ── */
input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--c-silver);
  border-radius: 2px;
  background: var(--c-white);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
  vertical-align: middle;
}
input[type="checkbox"]:checked {
  border-color: var(--c-terracotta);
  background: var(--c-terracotta);
}
input[type="checkbox"]:checked::after {
  content: '✕';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--c-white);
  font-size: 13px;
  font-weight: bold;
  line-height: 1;
}
input[type="checkbox"]:hover {
  border-color: var(--c-terracotta);
}
input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--c-terracotta);
  outline-offset: 2px;
}

/* ── Mobile touch & iOS fixes ── */
.card-carousel-track { touch-action: pan-y; }
input, select, textarea { font-size: 16px !important; }
@media (min-width: 769px) {
  input, select, textarea { font-size: inherit !important; }
}
