/* ==========================================================================
   Ellabook Cloud — design system
   Concept: "cross-border intelligence dossier" — editorial fintech.
   Montserrat (display) · IBM Plex Mono (data/labels) · Newsreader (serif body).
   Mobile-first: every rule targets a 390px phone, then enhances upward.
   ========================================================================== */

:root {
  /* Brand palette (from the Ellabook letterhead) */
  --blue: #006cb8;
  --blue-cyan: #009de1;
  --blue-deep: #0b3a5e;
  --orange: #ef7b02;

  /* Ink & neutrals */
  --ink: #10243a;
  --muted: #5b6b7a;
  --rule: #e2e6ea;
  --soft: #f4f6f8;
  --paper: #ffffff;
  --night: #0a1a2b;
  --night-2: #0f2740;

  /* Type */
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-body: "Newsreader", Georgia, "Times New Roman", serif;

  /* Layout */
  --maxw: 1120px;
  --pad: clamp(20px, 6vw, 56px);
  --gap: clamp(20px, 4vw, 32px);
  --radius: 14px;
  --section-y: clamp(56px, 13vw, 120px);

  --shadow-sm: 0 1px 2px rgba(16, 36, 58, 0.06);
  --shadow-md: 0 18px 40px -22px rgba(11, 58, 94, 0.45);
  --shadow-lg: 0 40px 80px -40px rgba(11, 58, 94, 0.55);
}

/* ----------------------------- reset ----------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

/* --------------------------- type scale -------------------------- */
.h1 {
  font-size: clamp(2.1rem, 9vw, 4.1rem);
}
.h2 {
  font-size: clamp(1.7rem, 6.4vw, 2.9rem);
}
.h3 {
  font-size: clamp(1.25rem, 4.4vw, 1.6rem);
}
.lede {
  font-size: clamp(1.12rem, 3.4vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink);
}
.muted {
  color: var(--muted);
}
p + p {
  margin-top: 1em;
}

/* eyebrow / kicker — the mono "data label" signal */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
}
.eyebrow.is-light {
  color: var(--blue-cyan);
}

/* section number, dossier style */
.sec-no {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* ------------------------- skip link ---------------------------- */
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* --------------------------- layout ----------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
section {
  padding-block: var(--section-y);
}
.section-soft {
  background: var(--soft);
}
.section-tight {
  padding-block: clamp(36px, 8vw, 64px);
}
.stack > * + * {
  margin-top: var(--gap);
}
.lead-stack > * + * {
  margin-top: 1.1rem;
}

/* hairline rule with cyan tail — the letterhead motif */
.rule {
  position: relative;
  height: 3px;
  width: 100%;
  background: var(--blue);
  border-radius: 3px;
}
.rule::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 28%;
  background: var(--blue-cyan);
  border-radius: 0 3px 3px 0;
}
.rule-soft {
  height: 1px;
  background: var(--rule);
  border: 0;
}

/* ledger-bar bullet (the brand mark, abstracted) */
.ledger {
  display: inline-grid;
  gap: 3px;
  width: 26px;
  flex: 0 0 auto;
}
.ledger i {
  height: 4px;
  border-radius: 2px;
  background: var(--blue);
  display: block;
}
.ledger i:nth-child(1) {
  width: 100%;
}
.ledger i:nth-child(2) {
  width: 62%;
}
.ledger i:nth-child(3) {
  width: 100%;
}

/* --------------------------- buttons ---------------------------- */
.btn {
  --bg: var(--blue);
  --fg: #fff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 50px;
  padding: 0 1.4rem;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--bg);
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn .arr {
  transition: transform 0.18s ease;
}
.btn:hover .arr {
  transform: translateX(4px);
}
.btn-ghost {
  --bg: transparent;
  --fg: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover {
  border-color: var(--blue);
}
.btn-light {
  --bg: #fff;
  --fg: var(--ink);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ----------------------------- nav ------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.logo-mark {
  width: 30px;
  height: 30px;
}
.logo-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  color: var(--blue);
}
.nav-links {
  display: none;
}
/* CSS-only mobile menu via the checkbox hack — no JS needed */
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nav-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 10px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.nav-burger span {
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-panel {
  position: fixed;
  inset: 66px 0 auto 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  box-shadow: var(--shadow-lg);
  padding: 16px var(--pad) 28px;
  display: grid;
  gap: 2px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  max-height: calc(100dvh - 66px);
  overflow-y: auto;
}
.nav-toggle:checked ~ .nav-panel {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
.nav-toggle:checked ~ .nav-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle:checked ~ .nav-burger span:nth-child(2) {
  opacity: 0;
}
.nav-toggle:checked ~ .nav-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-panel a {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 6px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-panel a[aria-current="page"] {
  color: var(--blue);
}
.nav-panel .btn {
  margin-top: 16px;
  justify-content: center;
}

/* ----------------------------- hero ----------------------------- */
.hero {
  position: relative;
  padding-block: clamp(48px, 14vw, 110px) var(--section-y);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 90% -10%, rgba(0, 157, 225, 0.16), transparent 55%),
    radial-gradient(90% 80% at -10% 10%, rgba(0, 108, 184, 0.1), transparent 60%),
    var(--paper);
}
.hero::before {
  /* faint blueprint grid for "data" atmosphere */
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.26;
  -webkit-mask-image: radial-gradient(85% 75% at 70% 18%, #000 18%, transparent 72%);
  mask-image: radial-gradient(85% 75% at 70% 18%, #000 18%, transparent 72%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
}
.hero-head {
  margin-top: 1.1rem;
}
.hero-sub {
  margin-top: 1.4rem;
  max-width: 36ch;
}
.hero .btn-row {
  margin-top: 2rem;
}

/* interior page hero — shorter than the home hero */
.page-hero {
  padding-block: clamp(40px, 12vw, 88px) clamp(34px, 8vw, 58px);
}
.page-hero .hero-sub {
  max-width: 54ch;
}

/* ------------------------- grids / cards ------------------------ */
.grid {
  display: grid;
  gap: var(--gap);
}
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(22px, 5vw, 32px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cdd6df;
}
.card .card-no {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--orange);
}
.card h3 {
  margin-top: 0.8rem;
}
.card p {
  margin-top: 0.6rem;
  color: var(--muted);
}
.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(0, 108, 184, 0.08);
  color: var(--blue);
  margin-bottom: 1rem;
}
.card-icon svg {
  width: 24px;
  height: 24px;
}

/* offer points list (check bullets) */
.offer-points {
  list-style: none;
  padding: 0;
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.offer-points li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.92rem;
  color: var(--ink);
}
.offer-points .tick {
  color: var(--blue);
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.offer-points .tick svg {
  width: 18px;
  height: 18px;
}

/* metric block */
.metric {
  display: grid;
  gap: 4px;
}
.metric .n {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  color: var(--ink);
  letter-spacing: -0.02em;
}
.metric .l {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* section header block */
.sec-head {
  max-width: 56ch;
}
.sec-head .h2 {
  margin-top: 0.7rem;
}
.sec-head p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.08rem;
}

/* numbered steps (how-it-works) */
.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid var(--rule);
}
.step:last-child {
  border-bottom: 1px solid var(--rule);
}
.step .step-n {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--blue);
  padding-top: 4px;
}
.step h3 {
  font-size: 1.15rem;
}
.step p {
  margin-top: 0.4rem;
  color: var(--muted);
}

/* two-column boundary table (Ellabook vs partner) */
.boundary {
  display: grid;
  gap: 16px;
}
.boundary .col {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px;
}
.boundary .col.does {
  border-color: rgba(0, 108, 184, 0.4);
  background: rgba(0, 108, 184, 0.04);
}
.boundary .col h3 {
  font-size: 1.05rem;
}
.boundary ul {
  margin-top: 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.boundary li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
}
.boundary li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.boundary .does li::before {
  background: var(--blue);
}
.boundary .not li::before {
  background: var(--rule);
  border: 1px solid #c4ccd4;
}

/* feature list with ledger bullets */
.flist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 18px;
}
.flist li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  align-items: start;
}
.flist h3 {
  font-size: 1.08rem;
}
.flist p {
  margin-top: 0.3rem;
  color: var(--muted);
}

/* --------------------------- case card -------------------------- */
.case-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.case .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(239, 123, 2, 0.14);
  flex: 0 0 auto;
}
.case-market {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.case-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: auto;
}
.case-narrative {
  margin-top: 14px;
  color: var(--muted);
}
.case-intro {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
}
.case-metrics {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.case-metrics .metric .n {
  font-size: clamp(1.1rem, 4.4vw, 1.5rem);
}
.case-metrics .metric .l {
  font-size: 0.6rem;
}

/* --------------------- cross-border map ------------------------- */
.map {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--soft);
  padding: clamp(20px, 5vw, 34px);
}
.map-grid {
  display: grid;
  gap: 12px;
}
.node {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 16px 18px;
}
.node .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  flex: 0 0 auto;
  box-shadow: 0 0 0 5px rgba(239, 123, 2, 0.14);
}
.node .place {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.node .role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: auto;
}

/* --------------------- compliance strip ------------------------- */
.compliance {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--blue);
  border-radius: 10px;
  background: var(--soft);
  padding: 18px 20px;
  display: grid;
  gap: 8px;
}
.compliance .tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}
.compliance p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

/* illustrative note */
.illus {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
}

/* --------------------- dark "ink" section ----------------------- */
.ink {
  background: var(--night);
  color: #e7eef5;
  position: relative;
  overflow: hidden;
}
.ink::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 80% 0%, rgba(0, 157, 225, 0.22), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(0, 108, 184, 0.2), transparent 60%);
  pointer-events: none;
}
.ink .wrap {
  position: relative;
}
.ink h1,
.ink h2,
.ink h3 {
  color: #fff;
}
.ink .muted {
  color: #9fb3c4;
}
.ink .card {
  background: var(--night-2);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}
.ink .card p {
  color: #9fb3c4;
}
.ink .card-icon {
  background: rgba(0, 157, 225, 0.22);
  color: #82d4f6;
  box-shadow: inset 0 0 0 1px rgba(130, 212, 246, 0.25);
}
.ink .rule-soft {
  background: rgba(255, 255, 255, 0.12);
}

/* ----------------------- prose (legal) -------------------------- */
.prose {
  max-width: 70ch;
}
.prose h2 {
  font-size: clamp(1.3rem, 4.4vw, 1.7rem);
  margin-top: 2.2rem;
  margin-bottom: 0.6rem;
}
.prose h3 {
  font-size: 1.12rem;
  margin-top: 1.6rem;
  margin-bottom: 0.4rem;
}
.prose p,
.prose li {
  color: var(--ink);
}
.prose ul,
.prose ol {
  margin: 0.6rem 0 0.6rem 1.1rem;
  display: grid;
  gap: 0.5rem;
}
.prose a {
  color: var(--blue);
}
.prose .updated {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.prose .callout {
  border-left: 3px solid var(--orange);
  background: var(--soft);
  padding: 14px 18px;
  border-radius: 8px;
  margin: 1.4rem 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* --------------------------- facts card ------------------------- */
.facts {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  align-self: start;
}
.facts dl {
  margin-top: 12px;
}
.facts dl > div {
  display: grid;
  gap: 3px;
  padding: 13px 0;
  border-top: 1px solid var(--rule);
}
.facts dt {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd {
  font-size: 0.96rem;
  color: var(--ink);
  line-height: 1.45;
}

/* --------------------------- contact ---------------------------- */
.contact-grid {
  display: grid;
  gap: 16px;
}
.contact-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--paper);
}
.contact-card .k {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-card .v {
  margin-top: 6px;
  font-size: 1.05rem;
}
.contact-card a {
  text-decoration: none;
}

/* ----------------------------- CTA ------------------------------ */
.cta {
  background: var(--night);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(30px, 7vw, 56px);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 85% 10%, rgba(0, 157, 225, 0.3), transparent 60%);
}
.cta .wrap-in {
  position: relative;
}
.cta h2 {
  color: #fff;
}
.cta p {
  color: #9fb3c4;
  margin-top: 0.8rem;
  max-width: 44ch;
}
.cta .btn-row {
  margin-top: 1.8rem;
}

/* ---------------------------- footer ---------------------------- */
.footer {
  background: var(--night);
  color: #c3d2e0;
  padding-block: clamp(44px, 9vw, 72px) 28px;
}
.footer a {
  color: #c3d2e0;
  text-decoration: none;
}
.footer a:hover {
  color: #fff;
}
.footer-top {
  display: grid;
  gap: 30px;
}
.footer .logo-word {
  color: #fff;
}
.footer .f-nature {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #8aa0b4;
  margin-top: 12px;
}
.footer .f-addr {
  margin-top: 14px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #9fb3c4;
}
.footer .f-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7d93a8;
  margin-bottom: 12px;
}
.footer .f-col ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
}
.footer .f-disclosure {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  line-height: 1.6;
  color: #8aa0b4;
  max-width: 90ch;
}
.footer .f-foot {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #7d93a8;
}
.footer .f-print {
  color: var(--blue-cyan);
}

/* --------------------------- reveal ----------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
.js .stagger > * {
  opacity: 0;
  transform: translateY(14px);
}
.js .stagger.in > * {
  animation: rise 0.6s ease forwards;
}
.js .stagger.in > *:nth-child(2) {
  animation-delay: 0.08s;
}
.js .stagger.in > *:nth-child(3) {
  animation-delay: 0.16s;
}
.js .stagger.in > *:nth-child(4) {
  animation-delay: 0.24s;
}
@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* hero load animation */
.hero .anim {
  opacity: 0;
  animation: rise 0.7s ease forwards;
}
.hero .anim.d1 { animation-delay: 0.05s; }
.hero .anim.d2 { animation-delay: 0.16s; }
.hero .anim.d3 { animation-delay: 0.28s; }
.hero .anim.d4 { animation-delay: 0.4s; }

/* --------------------------- utilities -------------------------- */
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.maxw-prose { max-width: 60ch; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.6rem; }
.mt-4 { margin-top: 2.4rem; }
.hide { display: none; }

/* ---------------------- hero stats + flow ----------------------- */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}
.hero-stats .metric {
  padding-right: 14px;
}
.hero-stats .metric + .metric {
  padding-left: 16px;
  border-left: 1px solid var(--rule);
}
.hero-stats .metric .n {
  font-size: clamp(1.4rem, 6.4vw, 2rem);
}
.hero-stats .metric .l {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.flow-head {
  margin-bottom: 16px;
}
.flow-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.hero-visual {
  margin-top: 2.4rem;
}
.flow {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(20px, 5vw, 28px);
}
.flow-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.flow-row > div {
  display: grid;
  gap: 2px;
}
.flow-k {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.flow-v {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}
.flow-badge {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
}
.flow-row.is-ai .flow-badge {
  background: linear-gradient(135deg, var(--blue), var(--blue-cyan));
}
.flow .dot-node {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(239, 123, 2, 0.12);
  position: relative;
}
.flow .dot-node::after {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(239, 123, 2, 0.16);
}
.flow-line {
  width: 2px;
  height: 22px;
  margin-left: 20px;
  background: linear-gradient(var(--blue), var(--blue-cyan));
  opacity: 0.5;
}

/* accent stat — the "0 client funds" compliance punchline */
.metric.is-accent .n {
  color: var(--orange);
}
.metric.is-accent .l {
  color: var(--ink);
}

/* one moment of life: the introduction node pulses */
.js .flow .dot-node.pulse::after {
  animation: nodePulse 2.8s ease-in-out infinite;
}
@keyframes nodePulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(239, 123, 2, 0.16); }
  50% { box-shadow: 0 0 0 9px rgba(239, 123, 2, 0.05); }
}

/* cross-border bridge line threading the market nodes */
.map-grid { position: relative; }
.map-bridge {
  position: absolute;
  left: calc(18px + 6px);
  top: 26px;
  bottom: 26px;
  width: 2px;
  background: linear-gradient(var(--blue-cyan), var(--orange));
  opacity: 0.5;
}
.map .node { position: relative; }

/* illustrative chip (confident, top of each case card) */
.illus-chip {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid rgba(0, 108, 184, 0.3);
  border-radius: 999px;
  padding: 3px 9px;
}
.case-tag-line {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* mobile nav: persistent Contact + burger */
.nav-mobile {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-cta-sm {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.76rem;
}

/* contact card tappability cue */
.contact-card {
  position: relative;
}
.contact-card::after {
  content: "→";
  position: absolute;
  top: 22px;
  right: 22px;
  color: var(--blue);
  font-family: var(--font-mono);
  opacity: 0.5;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.contact-card:hover::after {
  transform: translateX(3px);
  opacity: 1;
}

/* =========================== TABLET ============================= */
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .boundary { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
  }
  .cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
  }
  .cta .btn-row { margin-top: 0; }
}

/* =========================== DESKTOP =========================== */
@media (min-width: 1024px) {
  .nav-mobile { display: none; }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  .nav-links a {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: var(--ink);
    text-decoration: none;
    transition: color 0.15s ease;
  }
  .nav-links a:hover { color: var(--blue); }
  .nav-links a[aria-current="page"] { color: var(--blue); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    column-gap: 52px;
    align-items: start;
  }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .hero-visual { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin-top: 0; }
  .hero-stats { grid-column: 1; grid-row: 2; }
  .map-grid { gap: 14px; }
  .split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: start;
  }
  .h1 { font-size: clamp(3rem, 4.6vw, 4.4rem); }
}

/* ====================== reduced motion ========================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal,
  .js .stagger > *,
  .hero .anim {
    opacity: 1 !important;
    transform: none !important;
  }
}
