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

:root {
    --sienna:        #EB684C;
    --sienna-deep:   #B43C28;
    --sienna-dark:   #D9523A;
    --sienna-200:    #EFC3B7;
    --sienna-300:    #E9B2A0;
    --sienna-400:    #ED9581;
    --teal-700:      #114A5A;
    --teal-600:      #35636E;
    --teal-500:      #597C83;
    --teal-400:      #7D9597;
    --teal-300:      #A3B5B6;
    --teal-200:      #C4C7C0;
    --ink:           #161616;
    --ink-soft:      #2A2A2A;
    --bone-50:       #F7F5F1;
    --bone-100:      #F0EAE2;
    --bone-200:      #E9E6E0;
    --bone-300:      #E3DED4;
    --bone-canvas:   #F3EDE2;

    --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
    --font-serif: "Fraunces", "Plus Jakarta Sans", ui-serif, Georgia, serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
    --font-scroll: "Manrope", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  }

  * { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
  html, body { margin: 0; padding: 0; overflow-x: hidden; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bone-50);
    color: var(--ink);
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.5;
    overflow-x: hidden;
  }

  a { color: inherit; text-decoration: none; }
  button { font: inherit; cursor: pointer; }

  /* ─────────────────────── nav ─────────────────────── */
  .nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 40px;
    background: rgba(247, 245, 241, 0.78);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: border-color 240ms ease, background 240ms ease;
  }
  .nav.scrolled { border-bottom-color: rgba(22,22,22,0.06); }
  .nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--ink);
    position: relative;
    z-index: 1;
  }
  .nav-logo .nav-logo-img {
    width: clamp(153px, 16.2vw, 207px);
    height: auto;
    display: block;
  }
  .nav-logo-footer .nav-logo-img {
    width: clamp(170px, 20vw, 250px);
    filter: brightness(0) invert(1);
    opacity: 0.95;
  }
  .nav-links {
    display: flex; gap: 36px; align-items: center;
    position: absolute; left: 50%; transform: translateX(-50%);
  }
  .nav-links a {
    font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em;
    text-transform: none; color: var(--ink); opacity: 0.72;
    transition: opacity 160ms ease;
  }
  .nav-links a:hover { opacity: 1; }
  .nav-cta {
    background: var(--ink); color: var(--bone-50);
    padding: 10px 18px; border-radius: 2px; border: none;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
    text-transform: uppercase;
    display: inline-flex; gap: 8px; align-items: center;
    transition: background 160ms ease;
    position: relative;
    z-index: 1;
  }
  .nav-cta:hover { background: var(--sienna-deep); }
  .nav-cta .arrow { width: 10px; height: 10px; }

  /* ─────────────────────── hero ─────────────────────── */
  .hero {
    position: relative;
    min-height: 100vh;
    padding: 120px 40px 60px;
    background: var(--bone-canvas);
    overflow: hidden;
  }
  .hero-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: center;
    max-width: 1380px; margin: 0 auto;
    min-height: calc(100vh - 180px);
  }
  .hero-copy { position: relative; z-index: 2; }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--teal-600);
    margin-bottom: 28px;
  }
  .eyebrow .pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--sienna); position: relative;
  }
  .eyebrow .pulse::after {
    content: ""; position: absolute; inset: -4px; border-radius: 50%;
    border: 1px solid var(--sienna); opacity: 0.5;
    animation: pulse-ring 2s ease-out infinite;
  }
  @keyframes pulse-ring {
    0%   { transform: scale(0.6); opacity: 0.6; }
    80%  { transform: scale(1.8); opacity: 0;   }
    100% { transform: scale(1.8); opacity: 0;   }
  }

  h1.hero-title {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(44px, 6.4vw, 88px);
    line-height: 0.98;
    letter-spacing: -0.025em;
    margin: 0 0 28px;
    color: var(--ink);
  }
  h1.hero-title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    color: var(--sienna);
  }
  .hero-sub {
    font-size: 20px;
    line-height: 1.62;
    color: #3A3A38;
    max-width: 620px;
    margin: 0 0 24px;
  }
  .hero-sub:last-of-type { margin-bottom: 36px; }
  .hero-actions { display: flex; gap: 14px; align-items: center; }
  .btn-primary {
    background: var(--ink); color: var(--bone-50);
    padding: 14px 22px; border-radius: 2px; border: none;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
    text-transform: uppercase;
    display: inline-flex; gap: 10px; align-items: center;
    transition: background 160ms ease, transform 160ms ease;
  }
  .btn-primary:hover { background: var(--sienna-deep); }
  .btn-ghost {
    background: transparent; color: var(--ink);
    padding: 14px 4px; border: none;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
    text-transform: uppercase;
    display: inline-flex; gap: 10px; align-items: center;
    border-bottom: 1px solid var(--ink);
  }

  /* hero canvas */
  .hero-viz {
    position: relative;
    aspect-ratio: 5 / 6;
    width: 100%;
    max-width: 720px;
    justify-self: end;
  }
  .hero-viz svg.field { display: block; width: 100%; height: 100%; overflow: visible; }

  /* ── scroll flow ribbon — Bunsen capsule column ── */
  .scroll-ribbon {
    position: fixed;
    left: 14px;
    top: 50%; transform: translateY(-50%);
    width: 60px; height: 70vh; min-height: 480px;
    z-index: 30; pointer-events: none;
    display: none;
    opacity: 0;
    transition: opacity 220ms ease;
  }
  @media (min-width: 1100px) { .scroll-ribbon { display: block; } }
  .scroll-ribbon.is-visible { opacity: 1; }
  .scroll-ribbon svg { width: 100%; height: 100%; overflow: visible; }
  .scroll-ribbon .ribbon-bubble {
    fill: rgba(236, 233, 227, 0.88);
    stroke: none;
    filter: blur(0.28px);
  }
  .scroll-ribbon .label {
    font-family: var(--font-scroll); letter-spacing: 0.08em;
    fill: var(--ink); text-transform: uppercase;
    text-anchor: start;
    dominant-baseline: middle;
  }
  .scroll-ribbon .label-top { font-size: 10px; font-weight: 800; }
  .scroll-ribbon .label-bottom { font-size: 9.5px; font-weight: 700; }

  /* ─────────────────────── thesis section ─────────────────────── */
  .section { padding: 140px 40px; }
  .section-inner { max-width: 1380px; margin: 0 auto; }

  .section-tag {
    font-family: var(--font-scroll); font-size: 13px; letter-spacing: 0.11em; font-weight: 700;
    text-transform: uppercase; color: var(--teal-600);
    display: inline-flex; align-items: center; gap: 12px;
    margin-bottom: 28px;
  }
  .section-tag::before {
    content: ""; width: 24px; height: 1px; background: var(--teal-600);
  }

  .thesis {
    background: var(--bone-50);
    border-top: 1px solid var(--bone-300);
    border-bottom: 1px solid var(--bone-300);
  }
  .thesis-grid {
    display: grid; grid-template-columns: 320px 1fr; gap: 80px;
    align-items: start;
  }
  .thesis h2 {
    font-family: var(--font-serif);
    font-size: 56px; font-weight: 300; line-height: 1.02;
    letter-spacing: -0.02em; margin: 0;
    color: var(--ink);
  }
  .thesis h2 em { color: var(--sienna); font-style: italic; }
  .thesis-body p {
    font-size: 19px; line-height: 1.6; color: #2C2C2A;
    margin: 0 0 22px; max-width: 720px;
  }
  .thesis-body p strong {
    font-weight: 600; color: var(--ink);
    background: linear-gradient(transparent 60%, rgba(235,104,76,0.18) 60%);
    padding: 0 2px;
  }
  .thesis-pull {
    margin-top: 48px; padding: 28px 32px;
    background: var(--bone-100);
    border-left: 3px solid var(--sienna);
    font-family: var(--font-serif);
    font-style: italic; font-size: 22px; line-height: 1.4;
    color: var(--ink-soft);
    max-width: 720px;
  }

  /* ─────────────────────── fusion (two-layer diagram) ─────────────────────── */
  .fusion {
    background: var(--bone-100);
    position: relative;
  }
  .fusion-head {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
    align-items: end; margin-bottom: 80px;
  }
  .fusion-head h2 {
    font-family: var(--font-serif);
    font-size: 72px; font-weight: 300; line-height: 0.98; letter-spacing: -0.022em;
    margin: 0; color: var(--ink);
  }
  .fusion-head h2 em { color: var(--sienna); font-style: italic; }
  .fusion-head p {
    font-size: 17px; line-height: 1.6; color: #3A3A38; margin: 0;
    max-width: 480px;
  }

  .fusion-stack {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
    position: relative;
  }
  .layer-card {
    position: relative;
    background: var(--bone-50);
    border: 1px solid var(--bone-300);
    padding: 36px 36px 32px;
    min-height: 460px;
    display: flex; flex-direction: column;
    overflow: hidden;
  }
  .layer-card .layer-num {
    font-family: var(--font-scroll); font-size: 13px; letter-spacing: 0.1em; font-weight: 700;
    text-transform: uppercase; color: var(--teal-500);
    margin-bottom: 16px;
  }
  .layer-card h3 {
    font-family: var(--font-serif);
    font-weight: 300; font-size: 32px; line-height: 1.1;
    letter-spacing: -0.01em; margin: 0 0 16px;
    color: var(--ink);
  }
  .layer-card h3 em { color: var(--sienna); font-style: italic; }
  .layer-card .layer-desc {
    font-size: 14.5px; line-height: 1.55; color: #4A4A48;
    margin: 0 0 28px;
  }
  .layer-card .layer-viz {
    margin-top: auto;
    height: 250px;
    position: relative;
  }
  .layer-card .layer-viz svg { width: 100%; height: 100%; display: block; }
  .layer-card ul.bullets {
    list-style: none; padding: 0; margin: 0 0 28px;
    display: flex; flex-direction: column; gap: 8px;
  }
  .layer-card ul.bullets li {
    font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em;
    color: var(--ink-soft);
    padding-left: 20px; position: relative;
  }
  .layer-card ul.bullets li::before {
    content: ""; position: absolute; left: 0; top: 7px;
    width: 8px; height: 1px; background: var(--sienna);
  }

  .layer-card.measurement { border-top: 3px solid var(--teal-600); }
  .layer-card.world {       border-top: 3px solid var(--sienna); }

  .fusion-out {
    margin-top: 24px;
    background: var(--ink); color: var(--bone-100);
    padding: 32px 40px;
    display: grid; grid-template-columns: 1fr auto; gap: 40px;
    align-items: center;
  }
  .fusion-out .out-label {
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--sienna);
    margin-bottom: 10px;
  }
  .fusion-out h4 {
    font-family: var(--font-serif); font-weight: 300; font-size: 28px;
    line-height: 1.2; margin: 0; color: var(--bone-50);
    letter-spacing: -0.01em;
  }
  .fusion-out h4 em { color: var(--sienna-200); font-style: italic; }
  .fusion-out .out-stats {
    display: flex; gap: 40px;
  }
  .fusion-out .stat .num {
    font-family: var(--font-serif);
    font-weight: 300; font-size: 42px; color: var(--bone-50);
    line-height: 1;
  }
  .fusion-out .stat .lab {
    font-family: var(--font-scroll); font-size: 13px; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--bone-200); margin-top: 8px;
    font-weight: 600;
  }

  /* ─────────────────────── capabilities (cards) ─────────────────────── */
  .caps { background: var(--bone-50); }
  .caps-head {
    display: flex; justify-content: space-between; align-items: end;
    gap: 40px; margin-bottom: 60px;
  }
  .caps-head h2 {
    font-family: var(--font-serif); font-size: 56px; font-weight: 300;
    line-height: 1.02; letter-spacing: -0.02em; margin: 0;
    max-width: 720px;
  }
  .caps-head h2 em { color: var(--sienna); font-style: italic; }
  .caps-head .caps-meta {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--teal-600);
    text-align: right; line-height: 1.8;
  }
  .caps-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .cap {
    background: var(--bone-100);
    padding: 28px 28px 24px;
    border: 1px solid var(--bone-300);
    display: flex; flex-direction: column; min-height: 280px;
    transition: transform 240ms ease, border-color 240ms ease;
  }
  .cap:hover { transform: translateY(-3px); border-color: var(--sienna-300); }
  .cap .cap-num {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
    color: var(--teal-500); margin-bottom: 28px;
  }
  .cap h4 {
    font-family: var(--font-serif); font-weight: 400; font-size: 22px;
    line-height: 1.2; margin: 0 0 12px; color: var(--ink);
    letter-spacing: -0.005em;
  }
  .cap p { font-size: 14px; line-height: 1.55; color: #4A4A48; margin: 0; }
  .cap .cap-icon {
    margin-top: auto; padding-top: 24px;
    height: 60px;
  }
  .cap .cap-icon svg { width: 100%; height: 100%; display: block; overflow: visible; }

  /* ─────────────────────── applications ─────────────────────── */
  .apps {
    background: var(--ink);
    color: var(--bone-100);
  }
  .apps .section-tag { color: var(--sienna-300); }
  .apps .section-tag::before { background: var(--sienna-300); }
  .apps h2 {
    font-family: var(--font-serif); font-size: 64px; font-weight: 300;
    line-height: 1; letter-spacing: -0.022em; margin: 0 0 60px;
    color: var(--bone-50);
    max-width: 980px;
  }
  .apps h2 em { color: var(--sienna); font-style: italic; }
  .apps-list {
    display: grid; grid-template-columns: 1fr;
    border-top: 1px solid #2A2A2A;
  }
  .app {
    display: grid; grid-template-columns: 80px 1fr 2fr 220px;
    gap: 40px; align-items: start;
    padding: 32px 0;
    border-bottom: 1px solid #2A2A2A;
    transition: background 240ms ease, padding 240ms ease;
    cursor: pointer;
  }
  .app:hover { background: rgba(235,104,76,0.04); padding-left: 16px; padding-right: 16px; }
  .app .app-num {
    font-family: var(--font-scroll); font-size: 12px; letter-spacing: 0.1em; font-weight: 700;
    color: var(--teal-400);
  }
  .app .app-title {
    font-family: var(--font-scroll); font-weight: 700; font-size: 33px;
    line-height: 1.15; color: var(--bone-50); letter-spacing: -0.01em;
  }
  .app .app-title em { color: var(--sienna); font-style: italic; }
  .app .app-desc {
    font-family: var(--font-scroll);
    font-size: 18px; line-height: 1.55; color: var(--bone-300);
  }
  .app .app-tag {
    font-family: var(--font-scroll); font-size: 12px; letter-spacing: 0.09em;
    text-transform: uppercase; color: var(--sienna);
    text-align: right; align-self: center;
    font-weight: 700;
  }

  /* ─────────────────────── data flow strip ─────────────────────── */
  .flow {
    background: var(--bone-canvas);
    padding: 100px 40px;
  }
  .flow-inner {
    max-width: 1380px; margin: 0 auto;
    display: grid; grid-template-columns: 280px 1fr;
    gap: 60px; align-items: center;
  }
  .flow-side h3 {
    font-family: var(--font-serif); font-weight: 300;
    font-size: 46px; line-height: 1.08; margin: 12px 0 14px;
    letter-spacing: -0.01em; color: var(--ink);
  }
  .flow-side h3 em { color: var(--sienna); font-style: italic; }
  .flow-side p { font-family: var(--font-scroll); font-size: 18px; line-height: 1.62; color: #3f3f3d; margin: 0; }
  .flow-canvas {
    background: var(--bone-50);
    border: 1px solid var(--bone-300);
    aspect-ratio: 16 / 8;
    min-height: 460px;
    position: relative;
    overflow: hidden;
  }
  .flow-canvas svg { width: 100%; height: 100%; display: block; overflow: visible; }
  .flow-scroll-nav { display: none; }
  .flow-mini-stage {
    position: relative;
    width: min(240px, 72vw);
    max-width: 100%;
    height: 52px;
    border-radius: 8px;
    border: 1px solid rgba(125, 149, 151, 0.26);
    background: rgba(247, 245, 241, 0.94);
    overflow: hidden;
  }
  .flow-mini-content {
    position: absolute;
    inset: 0;
  }
  .flow-mini-content svg {
    width: 100%;
    height: 100%;
    display: block;
  }
  .flow-mini-viewport {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    border-radius: 6px;
    border: 1.5px solid rgba(17, 74, 90, 0.9);
    box-shadow: inset 0 0 0 999px rgba(17, 74, 90, 0.08);
    pointer-events: none;
  }
  .flow-canvas .col-tag {
    position: absolute; top: 16px;
    font-family: var(--font-mono); font-size: 9.5px;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-600);
  }

  /* ─────────────────────── team ─────────────────────── */
  .team {
    background: var(--bone-100);
    padding: 140px 40px;
  }
  .team-grid {
    display: grid; grid-template-columns: 480px 1fr;
    gap: 100px; align-items: start;
  }
  .team h2 {
    font-family: var(--font-serif); font-size: 56px; font-weight: 300;
    line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 24px;
  }
  .team h2 em { color: var(--sienna); font-style: italic; }
  .team-blurb {
    font-size: 16px; line-height: 1.65; color: #3A3A38; margin: 0 0 32px;
  }
  .team-roster {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 32px 40px;
  }
  .roster-item {
    border-top: 1px solid var(--bone-300);
    padding-top: 16px;
  }
  .roster-item .role {
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--teal-600);
    margin-bottom: 6px;
  }
  .roster-item .count {
    font-family: var(--font-serif); font-size: 38px; font-weight: 300;
    line-height: 1; color: var(--ink);
  }
  .roster-item .desc {
    font-size: 13.5px; color: #4A4A48; margin-top: 8px; line-height: 1.5;
  }

  /* ─────────────────────── cta ─────────────────────── */
  .cta {
    background: var(--bone-100); color: var(--ink);
    padding: 150px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--bone-300);
    min-height: 620px;
  }
  .cta::before, .cta::after { display: none; }
  .cta-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
  .cta-field {
    position: absolute;
    top: -8%;
    right: -2%;
    width: min(620px, 56vw);
    height: min(620px, 56vw);
    z-index: 0;
    pointer-events: none;
    opacity: 0.22;
    filter: saturate(0.9);
  }
  .cta-field svg { width: 100%; height: 100%; display: block; }
  .cta h2 {
    font-family: var(--font-serif); font-weight: 300;
    font-size: clamp(40px, 5vw, 76px); line-height: 1.05;
    letter-spacing: -0.02em; margin: 0 0 24px;
  }
  .cta h2 em { color: var(--sienna); font-style: italic; }
  .cta p {
    font-size: 17px; line-height: 1.55; max-width: 560px;
    margin: 0 auto 40px; color: #3A3A38;
  }
  .cta .btn-primary { background: var(--ink); color: var(--bone-50); }
  .cta .btn-primary:hover { background: var(--sienna-deep); }

  /* ─────────────────────── footer ─────────────────────── */
  footer {
    background: var(--ink); color: var(--bone-300);
    padding: 80px 40px 40px;
  }
  .footer-grid {
    max-width: 1380px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    border-bottom: 1px solid #2A2A2A;
    padding-bottom: 60px;
  }
  .footer-grid h5 {
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--teal-400);
    margin: 0 0 18px;
  }
  .footer-grid ul { list-style: none; padding: 0; margin: 0; }
  .footer-grid ul li { margin-bottom: 10px; font-size: 14px; }
  .footer-grid ul li a { color: var(--bone-200); }
  .footer-grid ul li a:hover { color: var(--sienna); }
  .footer-brand p {
    font-size: 14px; line-height: 1.6; max-width: 380px; color: var(--bone-300);
    margin: 16px 0 0;
  }
  .footer-bot {
    max-width: 1380px; margin: 0 auto;
    padding-top: 28px;
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em;
    text-transform: uppercase; color: #6A7877;
  }

  /* Reserve a dedicated gutter for the fixed scroll ribbon on desktop. */
  @media (min-width: 1100px) {
    :root { --ribbon-gutter: 78px; }
    .hero { padding-left: calc(40px + var(--ribbon-gutter)); }
    .section, .flow, .team, .cta { padding-left: calc(40px + var(--ribbon-gutter)); }
    footer { padding-left: calc(40px + var(--ribbon-gutter)); }
    .hero-stats { left: calc(40px + var(--ribbon-gutter)); }
  }

  /* ─────────────────────── 14-inch laptop tuning ─────────────────────── */
  @media (min-width: 1200px) and (max-width: 1366px) {
    .nav { padding: 18px 28px; }
    .hero { padding: 112px 28px 56px calc(28px + var(--ribbon-gutter)); }
    .section, .flow, .team, .cta { padding-left: calc(28px + var(--ribbon-gutter)); padding-right: 28px; }
    footer { padding-left: calc(28px + var(--ribbon-gutter)); padding-right: 28px; }
    .hero-stats { left: calc(28px + var(--ribbon-gutter)); right: 28px; }

    .hero-grid { gap: 56px; }
    .fusion-head { gap: 56px; }
    .thesis-grid { gap: 56px; }
    .flow-inner { gap: 40px; }
    .team-grid { gap: 72px; }
    .caps-grid { gap: 16px; }
    .footer-grid { gap: 44px; }

    .apps h2, .fusion-head h2 { font-size: 56px; }
    .caps-head h2, .team h2, .thesis h2 { font-size: 50px; }
    .app { grid-template-columns: 64px 1fr 1.7fr 180px; gap: 28px; }
    .hero-meta { gap: 18px; }
  }

  /* ─────────────────────── responsive ─────────────────────── */
  @media (max-width: 1200px) {
    .nav { padding: 16px 22px; }
    .nav-links { display: none; }
    .nav-logo .nav-logo-img { width: clamp(128px, 24vw, 170px); }
    .nav-cta { padding: 9px 14px; font-size: 10px; letter-spacing: 0.12em; }

    .hero { padding: 100px 22px 60px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; min-height: auto; }
    .hero-viz { justify-self: start; max-width: 100%; }
    .hero-stats { display: none; }

    .section { padding: 90px 22px; }
    .flow, .team, .cta, footer { padding-left: 22px; padding-right: 22px; }
    .thesis-grid,
    .fusion-head,
    .fusion-stack,
    .flow-inner,
    .team-grid,
    .globe-grid { grid-template-columns: 1fr; gap: 32px; }
    .fusion-out { grid-template-columns: 1fr; gap: 24px; }
    .caps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .cap { min-height: 220px; padding: 20px 18px 18px; }
    .cap .cap-num { margin-bottom: 16px; font-size: 9.5px; }
    .cap h4 { font-size: 18px; margin-bottom: 8px; }
    .cap p { font-size: 13px; line-height: 1.45; }
    .cap .cap-icon { height: 44px; padding-top: 14px; }
    .layer-card .layer-num {
      font-size: 10px;
      letter-spacing: 0.08em;
      margin-bottom: 10px;
    }

    .flow-canvas {
      aspect-ratio: auto;
      min-height: 0;
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    .flow-canvas::-webkit-scrollbar { display: none; }
    .flow-canvas svg {
      width: 960px;
      min-width: 960px;
      height: 410px;
      display: block;
    }
    .flow-scroll-nav {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0;
      margin-top: 10px;
      padding: 0 2px;
    }
    .flow-mini-stage { width: min(220px, 70vw); height: 48px; }

    .app { grid-template-columns: 1fr; gap: 10px; }
    .app .app-tag { text-align: left; }
    .globe-stage { justify-self: start; max-width: 560px; }
  }

  /* Keep a compact right-side hero field on short landscape/tablet screens. */
  @media (max-width: 1200px) and (min-width: 900px) and (max-height: 700px) {
    .hero { padding: 84px 18px 42px 14px; }
    .hero-grid {
      grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
      gap: 24px;
      align-items: center;
      min-height: calc(100vh - 126px);
    }
    .hero-copy { max-width: 100%; }
    .hero-sub { font-size: 17px; line-height: 1.52; margin-bottom: 16px; }
    .hero-viz {
      display: block;
      justify-self: end;
      width: 100%;
      max-width: 350px;
    }
  }

  @media (max-width: 980px) {
    .nav { padding: 16px 22px; }
    .nav-links { display: none; }
    .hero { padding: 100px 22px 60px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; min-height: auto; }
    .hero-viz { justify-self: start; max-width: 100%; }
    .hero-stats { display: none; }
    .section { padding: 80px 22px; }
    .cta { min-height: 0; padding: 110px 22px; }
    .thesis-grid { grid-template-columns: 1fr; gap: 32px; }
    .thesis h2 { font-size: 40px; }
    .fusion-head { grid-template-columns: 1fr; gap: 24px; }
    .fusion-stack { grid-template-columns: 1fr; }
    .fusion-out { grid-template-columns: 1fr; gap: 24px; }
    .caps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .cap { min-height: 198px; padding: 16px 14px 14px; }
    .cap .cap-num { margin-bottom: 12px; font-size: 9px; }
    .cap h4 { font-size: 16px; margin-bottom: 6px; }
    .cap p { font-size: 12.5px; line-height: 1.42; }
    .cap .cap-icon { height: 38px; padding-top: 10px; }
    .layer-card .layer-num {
      font-size: 9px;
      letter-spacing: 0.07em;
      margin-bottom: 8px;
    }
    .caps-head { flex-direction: column; align-items: start; }
    .caps-head h2, .team h2, .apps h2, .fusion-head h2 { font-size: 38px; }
    .app { grid-template-columns: 1fr; gap: 8px; }
    .app .app-tag { text-align: left; }
    .flow-inner { grid-template-columns: 1fr; gap: 24px; }
    .flow-canvas svg { width: 920px; min-width: 920px; height: 390px; }
    .flow-scroll-nav { gap: 0; margin-top: 8px; justify-content: center; }
    .flow-mini-stage { width: min(190px, 68vw); height: 42px; }
    .team-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  }
  /* ── globe section ── */
  .globe-section { background: var(--bone-50); }
  .globe-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
    align-items: center;
  }
  .globe-copy h2 {
    font-family: var(--font-serif); font-size: 56px; font-weight: 300;
    line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 24px;
  }
  .globe-copy h2 em { color: var(--sienna); font-style: italic; }
  .globe-blurb {
    font-size: 16.5px; line-height: 1.6; color: #3A3A38; margin: 0 0 40px;
    max-width: 480px;
  }
  .globe-stats { display: flex; gap: 40px; flex-wrap: wrap; }
  .gstat { border-top: 1px solid var(--bone-300); padding-top: 14px; min-width: 120px; }
  .gstat .gnum {
    font-family: var(--font-serif); font-weight: 300; font-size: 44px;
    line-height: 1; color: var(--ink);
  }
  .gstat .glab {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--teal-600); margin-top: 8px;
    line-height: 1.3;
  }
  .globe-stage {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%; max-width: 640px;
    justify-self: end;
  }
  .globe-stage svg { width: 100%; height: 100%; display: block; overflow: visible; }
  .globe-tag {
    position: absolute; left: 0; bottom: 0;
    font-family: var(--font-mono); font-size: 10.5px;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--sienna-deep);
    padding: 8px 12px;
    background: rgba(247, 245, 241, 0.85);
    border: 1px solid rgba(22,22,22,0.06);
  }
  .globe-tag::before {
    content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    background: var(--sienna); margin-right: 8px; transform: translateY(-1px);
  }
  @media (max-width: 980px) {
    .globe-grid { grid-template-columns: 1fr; gap: 32px; }
    .globe-copy h2 { font-size: 38px; }
    .globe-stage { justify-self: start; }
  }

  /* Very narrow phones: prioritize copy and hide hero field. */
  @media (max-width: 760px) {
    .hero-viz { display: none; }
  }
