  :root {
    --bg: #0B1120;
    --bg-2: #0E1526;
    --surface: #111A2E;
    --ink: #E6EDF6;
    --ink-2: #B6C2D4;
    --ink-3: #8494AC;
    --accent: #4CA9DD;
    --accent-2: #E9B457;
    --accent-dim: rgba(76, 169, 221, 0.14);
    --grad: linear-gradient(90deg, #4CA9DD, #E9B457);
    --border: #1E2A40;
    --serif: "Newsreader", Georgia, serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  ::selection { background: var(--accent-dim); }
  .wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }
  .narrow { max-width: 46rem; }

  a { color: var(--accent); text-decoration: none; }
  a:hover { text-decoration: underline; text-underline-offset: 3px; }
  a:focus-visible, .cta:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
  }

  .label {
    font-family: var(--mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-3);
  }

  /* ---------- Header ---------- */
  header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    background: transparent;
    transition: background 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
    border-bottom: 1px solid transparent;
  }
  header.scrolled {
    background: rgba(11, 17, 32, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
  }
  .header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  .wordmark {
    font-family: var(--serif);
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
  }
  .wordmark a { color: var(--ink); }
  .wordmark a:hover { text-decoration: none; }
  .wordmark .data { color: var(--accent); }
  nav { display: flex; gap: 1.75rem; align-items: center; }
  nav a {
    position: relative;
    color: var(--ink-3);
    font-family: var(--mono); font-size: 0.6875rem; font-weight: 500;
    letter-spacing: 0.14em; text-transform: uppercase;
    transition: color 200ms ease;
    padding: 0.25rem 0;
  }
  nav a::after {
    content: ""; position: absolute; left: 0; bottom: -2px;
    width: 100%; height: 2px; background: var(--grad); border-radius: 2px;
    transform: scaleX(0); transform-origin: left;
    transition: transform 300ms var(--ease-out);
  }
  nav a:hover { color: var(--ink); text-decoration: none; }
  nav a:hover::after, nav a.active::after { transform: scaleX(1); }
  nav a.active { color: var(--ink); }
  .menu-btn {
    display: none; background: none; border: 1px solid var(--border);
    border-radius: 8px; padding: 0.5rem 0.65rem; cursor: pointer; color: var(--ink);
  }
  .menu-btn svg { display: block; }

  /* nav dropdown */
  .has-sub { position: relative; display: flex; align-items: center; }
  .sub {
    position: absolute; top: 100%; left: 50%;
    transform: translate(-50%, 10px);
    min-width: 17rem;
    background: rgba(14, 21, 38, 0.97);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem;
    display: grid; gap: 2px;
    opacity: 0; visibility: hidden;
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 220ms;
    box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
  }
  .has-sub:hover .sub, .has-sub:focus-within .sub {
    opacity: 1; visibility: visible; transform: translate(-50%, 4px);
  }
  .sub a { padding: 0.55rem 0.8rem; border-radius: 8px; width: auto; }
  .sub a::after { display: none; }
  .sub a:hover { background: var(--accent-dim); color: var(--ink); }
  @media (max-width: 700px) {
    .has-sub { flex-direction: column; align-items: stretch; width: 100%; }
    .sub {
      position: static; transform: none; opacity: 1; visibility: visible;
      background: none; border: none; box-shadow: none; backdrop-filter: none;
      padding: 0 0 0 1rem; min-width: 0;
    }
    .sub a { border-top: none; padding: 0.6rem 1.5rem; font-size: 0.625rem; }
  }

  #progress {
    position: fixed; top: 0; left: 0; height: 2px; width: 0;
    background: var(--grad); z-index: 200; border-radius: 0 2px 2px 0;
  }
  @media (max-width: 700px) {
    .menu-btn { display: block; }
    nav {
      position: absolute; top: 100%; left: 0; right: 0;
      flex-direction: column; align-items: flex-start; gap: 0;
      background: rgba(11,17,32,0.97); backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      max-height: 0; overflow: hidden; transition: max-height 350ms var(--ease-out);
    }
    nav.open { max-height: calc(100dvh - 4.75rem); overflow-y: auto; overscroll-behavior: contain; }
    nav a { width: 100%; padding: 1rem 1.5rem; border-top: 1px solid var(--border); }
    nav a::after { display: none; }

    .header-row { position: relative; }
  }

  /* ---------- Hero ---------- */
  .hero {
    position: relative;
    padding: 10.5rem 0 6rem;
    overflow: hidden;
  }
  #field {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
  }
  #smooth-wrapper { z-index: 1; }
  .hero-grid { position: relative; }
  .hero-art { position: relative; }
  .hero-art img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 24px 80px -30px rgba(76,169,221,0.25);
    animation: float 7s ease-in-out infinite alternate;
  }
  @keyframes float {
    from { transform: translateY(0); }
    to   { transform: translateY(-12px); }
  }
  @media (max-width: 920px) { .hero-art { max-width: 26rem; } }
  .hero::before {
    content: "";
    position: absolute;
    top: -20%; left: 50%;
    width: 70rem; height: 42rem;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(76,169,221,0.09) 0%, transparent 62%);
    pointer-events: none;
    animation: glow 9s ease-in-out infinite alternate;
  }
  @keyframes glow {
    from { opacity: 0.65; transform: translateX(-52%) scale(1); }
    to   { opacity: 1;    transform: translateX(-48%) scale(1.06); }
  }
  h1 {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 7vw, 4.25rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-wrap: balance;
    margin-bottom: 1.75rem;
    max-width: 18ch;
  }
  h1 em {
    font-style: italic;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .case > .label { color: var(--accent-2); }
  .hero p.lede {
    font-size: 1.25rem;
    color: var(--ink-2);
    max-width: 38rem;
    text-wrap: pretty;
  }
  .stats { display: flex; gap: 3rem; flex-wrap: wrap; margin-top: 3rem; }
  .stat .n {
    font-family: var(--serif);
    font-size: 2.25rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    display: block;
    font-variant-numeric: tabular-nums;
  }
  .stat .t {
    font-family: var(--mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .credential { margin-top: 2.25rem; font-size: 0.9375rem; color: var(--ink-3); max-width: 36rem; text-wrap: pretty; }
  .hero-ctas { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; margin-top: 2.25rem; }
  .hero-ctas .cta { margin-top: 0; }
  .cta-quiet {
    font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
    transition: color 200ms ease;
  }
  .cta-quiet:hover { color: var(--accent); text-decoration: none; }
  .related { margin-top: 1rem; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
  .related a { color: var(--ink-3); border-bottom: 1px solid var(--border); padding-bottom: 1px; transition: color 200ms ease, border-color 200ms ease; }
  .related a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

  /* hero entrance */
  .hero .stagger { opacity: 0; transform: translateY(22px); animation: rise 900ms var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
  @keyframes rise { to { opacity: 1; transform: none; } }

  /* ---------- Story scene (scroll-scrubbed canvas) ---------- */
  #story {
    position: relative;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
  }
  .story-text {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    text-align: center; pointer-events: none;
  }
  .story-text .inner { position: relative; max-width: 46rem; padding: 0 1.5rem; }
  .story-text .inner::before {
    content: "";
    position: absolute;
    inset: -22% -18%;
    background: radial-gradient(ellipse at center, rgba(11,17,32,0.78) 0%, rgba(11,17,32,0.4) 55%, transparent 78%);
    z-index: -1;
    pointer-events: none;
  }
  .story-text .label { display: block; margin-bottom: 1rem; }
  .story-text h2 {
    font-family: var(--serif);
    font-size: clamp(2rem, 5.5vw, 3.75rem);
    font-weight: 500; line-height: 1.1; letter-spacing: -0.02em;
    text-wrap: balance;
  }
  .story-text h2 em { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  #story-t1 { opacity: 1; }
  #story-t2, #story-t3 { opacity: 0; }
  .story-hint {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--ink-3);
    animation: hint 2s ease-in-out infinite;
  }
  @keyframes hint { 50% { transform: translate(-50%, 6px); } }

  /* ---------- Markets marquee ---------- */
  .markets {
    margin: 5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.125rem 0;
    overflow: hidden;
    position: relative;
    background: rgba(14, 21, 38, 0.6);
    backdrop-filter: blur(2px);
  }
  .markets::before, .markets::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 6rem; z-index: 2; pointer-events: none;
  }
  .markets::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
  .markets::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
  .marquee { display: flex; width: max-content; animation: marquee 36s linear infinite; }
  .marquee-group { display: flex; align-items: center; gap: 3rem; padding-right: 3rem; }
  .marquee .m {
    font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
  }
  .marquee .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent-2); flex: none; }
  @keyframes marquee { to { transform: translateX(-50%); } }
  @media (prefers-reduced-motion: reduce) {
    .marquee { animation: none; flex-wrap: wrap; width: auto; }
  }

  /* ---------- Sections ---------- */
  section { padding: 5.5rem 0; border-top: 1px solid var(--border); }
  .section-head { margin-bottom: 3rem; }
  .section-head .label { display: block; margin-bottom: 0.875rem; }
  h2.section-title {
    font-family: var(--serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.15;
    text-wrap: balance;
    max-width: 24ch;
  }
  .section-head::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    margin-top: 1.125rem;
    background: var(--grad);
    border-radius: 2px;
    transition: width 900ms var(--ease-out) 250ms;
  }
  .section-head.in::after { width: 72px; }

  /* scroll reveal */
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .reveal.in { opacity: 1; transform: none; }
  .vertical-block .vertical-intro.reveal { transform: translateX(-34px); }
  .vertical-block .case.reveal { transform: translateX(34px); }
  .vertical-block .vertical-intro.reveal.in, .vertical-block .case.reveal.in { transform: none; }
  a.cap { will-change: transform; transform-style: preserve-3d; }
  .hero-art { will-change: transform; }

  /* ---------- What we do ---------- */
  .moves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  @media (max-width: 860px) { .moves { grid-template-columns: 1fr; } }
  .move {
    border-top: 1px solid var(--border);
    padding: 1.75rem 0 0;
    transition: border-color 300ms ease;
  }
  .move:hover { border-top-color: var(--accent-2); }
  .move .num { font-family: var(--mono); font-size: 0.8125rem; color: var(--accent); display: block; margin-bottom: 1.25rem; }
  .move h3 { font-family: var(--serif); font-size: 1.875rem; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 0.625rem; }
  .move p { color: var(--ink-2); font-size: 0.9844rem; }

  /* ---------- Verticals ---------- */
  .vertical-block {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 3rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    align-items: start;
  }
  .vertical-block:first-of-type { border-top: none; padding-top: 0; }
  @media (max-width: 860px) { .vertical-block { grid-template-columns: 1fr; gap: 1.5rem; } }
  .vertical-intro .label { display: block; margin-bottom: 0.75rem; color: var(--accent); }
  .vertical-intro img {
    width: 100%;
    max-width: 22rem;
    height: auto;
    display: block;
    border-radius: 10px;
    margin-bottom: 1.375rem;
    box-shadow: 0 20px 70px -30px rgba(76,169,221,0.3);
    transition: transform 400ms var(--ease-out);
  }
  .vertical-block:hover .vertical-intro img { transform: scale(1.02); }
  .vertical-intro h3 {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    text-wrap: balance;
  }
  .vertical-intro p { color: var(--ink-2); font-size: 0.9844rem; max-width: 30rem; }
  .case {
    border-top: 1px solid var(--border);
    padding: 1.75rem 0 0;
    transition: border-color 300ms ease;
  }
  .case:hover { border-top-color: var(--accent-2); }
  .case .label { display: block; margin-bottom: 1rem; }
  .case h4 { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 0.625rem; text-wrap: balance; }
  .case p { color: var(--ink-2); font-size: 0.9375rem; margin-bottom: 0.875rem; }
  .case p:last-of-type { margin-bottom: 0; }
  .case .outcome { color: var(--ink); font-size: 0.9375rem; }
  .case .outcome strong { font-weight: 600; }

  /* ---------- Partner ---------- */
  .note {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3.6vw, 2.125rem);
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.01em;
    max-width: 40rem;
    text-wrap: balance;
  }
  .note em { font-style: italic; color: var(--accent); }
  .caps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 4rem; }
  @media (max-width: 860px) { .caps { grid-template-columns: 1fr; } }
  a.cap {
    display: block;
    border-top: 1px solid var(--border);
    padding: 1.5rem 0 1.375rem;
    color: var(--ink);
    transition: border-color 300ms ease, padding-left 300ms var(--ease-out);
  }
  a.cap:hover { border-top-color: var(--accent-2); padding-left: 0.75rem; text-decoration: none; }
  a.cap h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 0.375rem; display: inline-block; }
  a.cap:hover h3 { color: var(--accent); }
  a.cap p { color: var(--ink-3); font-size: 0.9063rem; line-height: 1.55; max-width: 30rem; }
  a.cap .go { display: inline-block; margin-top: 0.75rem; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); transition: transform 250ms var(--ease-out); }
  a.cap:hover .go { transform: translateX(6px); }
  .partner-start, .contact-hint { margin-top: 1.5rem; color: var(--ink-2); font-size: 0.9844rem; max-width: 38rem; text-wrap: pretty; }
  .currencies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
  @media (max-width: 860px) { .currencies { grid-template-columns: 1fr; } }
  .currency { border-top: 2px solid var(--border); padding-top: 1.25rem; transition: border-color 300ms ease; }
  .currency:hover { border-top-color: var(--accent); }
  .currency h4 { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; margin-bottom: 0.5rem; }
  .currency p { color: var(--ink-2); font-size: 0.9375rem; }

  /* ---------- Contact ---------- */
  .contact-inner { text-align: left; }
  .cta {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 1.875rem;
    background: var(--ink);
    color: var(--bg);
    font-family: var(--sans);
    font-size: 0.9844rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 250ms var(--ease-out), box-shadow 250ms ease;
  }
  .cta:hover { transform: translateY(-2px); box-shadow: 0 10px 32px -12px rgba(230,237,246,0.35); text-decoration: none; }
  .cta:active { transform: translateY(0) scale(0.98); }

  footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 3.5rem;
  }
  .footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
  footer .label { letter-spacing: 0.12em; }

  /* ---------- Scroll-linked layers ---------- */
  .orb {
    position: absolute;
    width: 22rem; height: 22rem;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
    opacity: 0.5;
    z-index: 0;
  }
  .orb.cyan { background: radial-gradient(circle, rgba(76,169,221,0.16), transparent 65%); }
  .orb.gold { background: radial-gradient(circle, rgba(233,180,87,0.10), transparent 65%); }
  section { position: relative; overflow: hidden; }
  section > .wrap { position: relative; z-index: 1; }

  @keyframes wipe-in {
    from { clip-path: inset(0 92% 0 0 round 12px); opacity: 0.3; }
    to   { clip-path: inset(0 0 0 0 round 12px); opacity: 1; }
  }

  /* ---------- Mobile polish ---------- */
  @media (max-width: 640px) {
    .hero { padding: 7.5rem 0 4rem; }
    .stats { gap: 1.75rem 2.25rem; margin-top: 2.25rem; }
    .stat .n { font-size: 1.75rem; }
    section { padding: 4rem 0; }
    .vertical-block { padding: 2.25rem 0; }
    .case { padding: 1.5rem 0 0; }
    .move { padding: 1.625rem 0 0; }
    .note { font-size: 1.375rem; }
    .credential { font-size: 0.875rem; }
    .orb { width: 14rem; height: 14rem; }
    .marquee-group { gap: 2rem; padding-right: 2rem; }
  }

  /* ---------- Reduced motion ---------- */
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    #story { height: auto; padding: 4rem 0; }
    .story-text { position: static; display: block; margin: 3rem 0; }
    .story-text .inner { margin-inline: auto; }
    #story-t2, #story-t3 { opacity: 1; }
    .story-hint { display: none; }
    .marquee-group[aria-hidden] { display: none; }
    .marquee-group { flex-wrap: wrap; justify-content: center; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .hero .stagger, .reveal { opacity: 1 !important; transform: none !important; }
  }

/* ===== SUBPAGE-ONLY OVERRIDES (re-append after any re-extract from index.html) ===== */
@media (min-width: 921px) {
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 3rem;
    align-items: center;
  }
}
@supports (animation-timeline: view()) {
  .vertical-intro img, .hero-art img {
    animation: wipe-in linear both;
    animation-timeline: view();
    animation-range: entry 5% entry 55%;
  }
}

