@import url('../colors_and_type.css');

:root {
    --bg: oklch(0.985 0.005 90);
    --paper: oklch(0.975 0.006 85);
    --ink: oklch(0.18 0.015 250);
    --ink-2: oklch(0.32 0.015 250);
    --muted: oklch(0.52 0.012 250);
    --line: oklch(0.90 0.008 90);
    --line-2: oklch(0.94 0.006 90);
    --accent: oklch(0.42 0.12 250);   /* deep clinical blue */
    --accent-2: oklch(0.62 0.13 30);  /* warm clinical amber */
    --accent-soft: oklch(0.92 0.04 250);
    --warn: oklch(0.55 0.16 28);
    --ok: oklch(0.55 0.10 150);
    --serif: 'Instrument Serif', 'Times New Roman', serif;
    --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
  }
  *, *::before, *::after { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.55;
    font-size: 16px;
    font-weight: 400;
  }
  a { color: inherit; text-decoration: none; }
  ::selection { background: var(--accent); color: var(--bg); }

  /* Typography utilities */
  .serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
  .mono  { font-family: var(--mono); font-feature-settings: "ss01","tnum"; }
  .eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    font-weight: 500;
  }
  .num { font-feature-settings: "tnum","lnum"; }

  /* Layout */
  .wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
  .wrap-narrow { max-width: 980px; margin: 0 auto; padding: 0 32px; }
  section { padding: 96px 0; border-bottom: 1px solid var(--line); }
  section:last-of-type { border-bottom: none; }

  /* Top bar */
  .topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(173, 216, 240, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(100, 170, 210, 0.4);
  }
  .topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; padding: 0 32px;
    max-width: 1400px; margin: 0 auto;
  }
  .brand { display: flex; align-items: center; gap: 10px; }
  .brand-logo {
    height: 46px;
    width: auto;
    display: block;
    object-fit: contain;
    mix-blend-mode: multiply;
  }
  .brand-name {
    font-family: var(--serif); font-size: 20px;
    letter-spacing: -0.01em;
    white-space: nowrap;
    display: flex; align-items: baseline; gap: 10px;
  }
  .brand-name em { font-style: italic; color: var(--muted); font-size: 13px; padding-left: 10px; border-left: 1px solid var(--line); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em; }
  @media (max-width: 720px) { .brand-name em { display: none; } }
  .nav-links {
    display: flex; gap: 28px; font-size: 13.5px; color: #0f3357;
    align-items: center;
  }
  .nav-links a:hover { color: #071e33; }

  /* Dropdown */
  .nav-dropdown {
    position: relative;
  }
  .nav-dropdown-trigger {
    display: flex; align-items: center; gap: 5px;
    cursor: pointer;
    font-size: 13.5px; color: #0f3357;
    user-select: none;
    white-space: nowrap;
  }
  .nav-dropdown-trigger:hover { color: #071e33; }
  .nav-dropdown-trigger .chevron {
    display: inline-block;
    width: 10px; height: 10px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
  }
  .nav-dropdown.open .nav-dropdown-trigger .chevron {
    transform: rotate(-135deg) translateY(-2px);
  }
  .nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(240, 250, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(100, 170, 210, 0.35);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(15, 51, 87, 0.13);
    min-width: 190px;
    padding: 8px 0;
    z-index: 100;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }
  .nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    color: #0f3357;
    white-space: nowrap;
    transition: background 0.12s;
  }
  .nav-dropdown-menu a:hover {
    background: rgba(100, 170, 210, 0.15);
    color: #071e33;
  }
  .nav-dropdown-menu a + a {
    border-top: 1px solid rgba(100, 170, 210, 0.18);
  }

  /* NVIDIA Accelerated — nested sub-menu inside Technology dropdown */
  .nav-sub-item {
    position: relative;
  }
  .nav-sub-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    font-size: 13px;
    color: #0f3357;
    cursor: pointer;
    user-select: none;
    border-top: 1px solid rgba(100, 170, 210, 0.18);
    transition: background 0.12s;
    gap: 8px;
  }
  .nav-sub-trigger:hover { background: rgba(100, 170, 210, 0.15); color: #071e33; }
  .nav-sub-trigger .sub-chevron {
    display: inline-block;
    width: 8px; height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
  }
  .nav-sub-item.open .nav-sub-trigger .sub-chevron {
    transform: rotate(45deg);
  }
  .nav-sub-menu {
    display: none;
    position: absolute;
    top: -1px;
    left: calc(100% + 4px);
    background: rgba(240, 250, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(100, 170, 210, 0.35);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(15, 51, 87, 0.13);
    z-index: 101;
    min-width: 340px;
    padding: 0;
    overflow: hidden;
  }
  .nav-sub-item.open .nav-sub-menu { display: block; }
  .nvidia-panel {
    background: oklch(0.18 0.015 250);
    border-radius: 8px;
    overflow: hidden;
    padding: 20px;
  }
  .nvidia-panel .nvidia-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: oklch(0.62 0.13 200);
    margin-bottom: 4px;
  }
  .nvidia-panel .nvidia-heading {
    font-family: var(--serif);
    font-size: 16px;
    color: oklch(0.95 0.01 250);
    margin: 0 0 16px;
    font-weight: 400;
    letter-spacing: -0.01em;
  }
  .nvidia-stack-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .nvidia-stack-mini .ns-item {
    background: oklch(0.22 0.018 250);
    border: 1px solid oklch(0.30 0.02 250);
    border-radius: 4px;
    padding: 10px 12px;
  }
  .nvidia-stack-mini .ns-item .ns-cat {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: oklch(0.62 0.13 200);
    margin-bottom: 3px;
  }
  .nvidia-stack-mini .ns-item .ns-name {
    font-size: 12.5px;
    font-weight: 600;
    color: oklch(0.95 0.01 250);
    font-family: var(--sans);
    margin-bottom: 2px;
  }
  .nvidia-stack-mini .ns-item .ns-desc {
    font-size: 11px;
    color: oklch(0.58 0.02 250);
    line-height: 1.35;
  }
  .nvidia-panel .nvidia-link {
    display: block;
    margin-top: 14px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: oklch(0.62 0.13 200);
    text-decoration: none;
    border-top: 1px solid oklch(0.30 0.02 250);
    padding-top: 12px;
  }
  .nvidia-panel .nvidia-link:hover { color: oklch(0.78 0.13 200); }
  .nav-cta {
    font-size: 13px; padding: 8px 14px;
    border: 1px solid #0f3357; border-radius: 999px;
    background: #0f3357; color: #fff;
    transition: background 0.15s, border-color 0.15s;
  }
  .nav-cta:hover { background: #071e33; color: #fff; border-color: #071e33; }

  /* Hero */
  .hero {
    padding: 0;
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: stretch;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0;
    align-items: stretch;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
  }
  .hero h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(48px, 6.6vw, 92px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 24px 0 0;
    padding-bottom: 4px;
    color: var(--ink);
    text-wrap: balance;
  }
  .hero h1 em { color: var(--accent); font-style: italic; }
  .hero-lede {
    font-size: 18px; line-height: 1.55;
    color: var(--ink-2);
    max-width: 44ch; margin-top: 32px;
    text-wrap: pretty;
  }
  .hero-meta {
    margin-top: 40px;
    display: flex; gap: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
  }
  .hero-meta b { font-weight: 500; color: var(--ink); display: block; font-family: var(--sans); font-size: 13.5px; margin-bottom: 2px; }

  .hero-card {
    border: 1px solid var(--line);
    background: var(--paper);
    padding: 28px;
    border-radius: 4px;
    position: relative;
  }
  .hero-card-label {
    position: absolute; top: -10px; left: 24px;
    background: var(--bg); padding: 0 10px;
    font-family: var(--mono); font-size: 10.5px;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted);
  }
  .hero-card h3 {
    font-family: var(--serif); font-weight: 400;
    font-size: 26px; line-height: 1.15; letter-spacing: -0.01em;
    margin: 4px 0 14px;
  }
  .hero-card p {
    font-size: 14px; color: var(--ink-2); margin: 0 0 18px;
  }
  .hero-card .stat-row {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding-top: 18px;
    border-top: 1px dashed var(--line);
  }
  .hero-card .stat-row > div .n {
    font-family: var(--serif); font-size: 36px; line-height: 1;
    color: var(--accent);
  }
  .hero-card .stat-row > div .l {
    font-family: var(--mono); font-size: 10.5px;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--muted); margin-top: 6px;
  }

  /* Section header */
  .sec-head {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 64px;
    margin-bottom: 56px;
    align-items: start;
  }
  .sec-head .label {
    font-family: var(--mono);
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--muted);
    padding-top: 14px;
    border-top: 1px solid var(--ink);
    width: fit-content;
  }
  .sec-head .label .num { color: var(--ink); margin-right: 14px; font-weight: 500; }
  .sec-head h2 {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(36px, 4.6vw, 60px);
    line-height: 1.02;
    letter-spacing: -0.018em;
    margin: 0 0 18px;
    text-wrap: balance;
  }
  .sec-head .lede {
    font-size: 18px; color: var(--ink-2); max-width: 60ch;
    text-wrap: pretty;
  }
  .sec-head h2 em { color: var(--accent); font-style: italic; }

  /* Cards / containers */
  .card {
    border: 1px solid var(--line);
    background: var(--paper);
    padding: 32px;
    border-radius: 2px;
    transition: background 0.2s;
  }
  .card:hover { background: oklch(0.97 0.006 85); }
  .card h3 {
    font-family: var(--serif); font-weight: 400;
    font-size: 26px; line-height: 1.12;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
  }
  .card p { font-size: 14.5px; color: var(--ink-2); margin: 0; }

  /* Grids */
  .g-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
  .g-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
  .g-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

  /* What is fibrosis: stages */
  .stages {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin-top: 32px;
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
  }
  .stage {
    padding: 28px 22px 22px;
    border-right: 1px solid var(--line);
    position: relative;
    background: var(--paper);
  }
  .stage:last-child { border-right: none; }
  .stage .tag {
    font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
  }
  .stage h4 {
    font-family: var(--serif); font-weight: 400;
    font-size: 22px; margin: 0 0 8px; letter-spacing: -0.01em;
  }
  .stage p { font-size: 13px; color: var(--ink-2); margin: 0; }
  .stage .bar {
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, oklch(0.92 0.04 145), oklch(0.55 0.18 30));
  }
  .stage[data-stage="0"] .bar-fill, .stage .bar-fill { display: none; }
  .stage-window {
    position: relative;
    margin-top: -4px;
    height: 28px;
    background: linear-gradient(90deg,
      oklch(0.92 0.04 145) 0%,
      oklch(0.92 0.04 145) 20%,
      oklch(0.85 0.10 90) 40%,
      oklch(0.78 0.13 60) 65%,
      oklch(0.55 0.18 30) 100%);
  }
  .stage-window .marker {
    position: absolute; top: 0; bottom: 0;
    border-left: 1px dashed rgba(0,0,0,0.3);
  }
  .stage-window .label-rev {
    position: absolute; top: 50%; transform: translateY(-50%);
    left: 30%; font-family: var(--mono); font-size: 10.5px;
    text-transform: uppercase; letter-spacing: 0.12em;
    background: var(--bg); padding: 4px 10px;
    border: 1px solid var(--line);
  }
  .stage-window .label-irr {
    position: absolute; top: 50%; transform: translateY(-50%);
    right: 4%;
    font-family: var(--mono); font-size: 10.5px;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: white;
  }

  /* Stat block */
  .stat-block {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 0;
    border-top: 1px solid var(--ink);
  }
  .stat-block > div {
    padding: 28px 24px 32px;
    border-right: 1px solid var(--line);
  }
  .stat-block > div:last-child { border-right: none; }
  .stat-block .big {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(48px, 5.5vw, 72px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--ink);
  }
  .stat-block .big em { color: var(--accent); font-style: normal; }
  .stat-block .lbl {
    font-family: var(--mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--muted); margin: 8px 0 14px;
  }
  .stat-block .desc { font-size: 13.5px; color: var(--ink-2); max-width: 32ch; }
  .stat-block .src { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 14px; }

  /* Pathway broken */
  .broken-path {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    border: 1px solid var(--line);
    margin-top: 32px;
  }
  .broken-step {
    padding: 24px;
    border-right: 1px solid var(--line);
    position: relative;
    background: var(--paper);
  }
  .broken-step:last-child { border-right: none; }
  .broken-step .step-no {
    font-family: var(--mono); font-size: 10.5px;
    color: var(--muted); letter-spacing: 0.16em;
    text-transform: uppercase; margin-bottom: 12px;
  }
  .broken-step h5 {
    font-family: var(--serif); font-weight: 400; font-size: 19px;
    margin: 0 0 8px; letter-spacing: -0.005em;
  }
  .broken-step p { font-size: 12.5px; color: var(--ink-2); margin: 0 0 16px; line-height: 1.5; }
  .broken-step .gap-flag {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--mono); font-size: 10px;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--warn);
    border-top: 1px dashed var(--line);
    padding-top: 10px;
    margin-top: 8px;
  }
  .broken-step .gap-flag::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--warn);
  }

  .broken-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px;
  }
  .broken-stat {
    padding: 18px 0;
    border-top: 1px solid var(--ink);
  }
  .broken-stat .n {
    font-family: var(--serif); font-size: 44px; line-height: 1; letter-spacing: -0.01em;
    color: var(--warn);
  }
  .broken-stat .l {
    font-family: var(--mono); font-size: 11px; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--muted); margin-top: 8px;
  }

  /* Pathway: LiverTwin */
  .lt-path {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-top: 36px;
  }
  .lt-step {
    background: var(--paper);
    padding: 28px 22px;
    position: relative;
  }
  .lt-step .marker {
    width: 28px; height: 28px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--mono); font-size: 12px;
    color: var(--accent); font-weight: 500;
    margin-bottom: 18px;
  }
  .lt-step h5 {
    font-family: var(--serif); font-weight: 400; font-size: 21px;
    margin: 0 0 8px; letter-spacing: -0.005em;
  }
  .lt-step p { font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.55; }

  /* Performance chart */
  .perf-grid {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px;
    align-items: center;
  }
  .perf-bars { display: grid; gap: 18px; }
  .perf-bar { }
  .perf-bar .row {
    display: flex; justify-content: space-between; align-items: baseline;
    font-family: var(--mono); font-size: 12px;
    margin-bottom: 6px;
  }
  .perf-bar .row .name { color: var(--ink); }
  .perf-bar .row .name.us { color: var(--accent); font-weight: 500; }
  .perf-bar .row .val { color: var(--ink-2); }
  .perf-bar .track {
    height: 6px; background: var(--line-2);
    overflow: hidden;
    border-radius: 1px;
  }
  .perf-bar .fill {
    height: 100%; background: var(--ink);
    transition: width 0.6s ease;
  }
  .perf-bar.us .fill { background: var(--accent); }

  .perf-numbers {
    display: grid; grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--line);
    background: var(--paper);
  }
  .perf-numbers > div {
    padding: 28px 22px;
    border-right: 1px solid var(--line);
  }
  .perf-numbers > div:last-child { border-right: none; }
  .perf-numbers .v {
    font-family: var(--serif); font-size: 56px; line-height: 0.95;
    letter-spacing: -0.02em; color: var(--accent);
  }
  .perf-numbers .l {
    font-family: var(--mono); font-size: 10.5px;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--muted); margin: 6px 0 8px;
  }
  .perf-numbers .d {
    font-size: 12.5px; color: var(--ink-2);
  }

  /* progression timeline */
  .progression {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-top: 36px;
    border-top: 1px solid var(--ink);
  }
  .prog-stage {
    padding: 24px 16px 18px;
    border-right: 1px solid var(--line);
    position: relative;
  }
  .prog-stage:last-child { border-right: none; }
  .prog-stage .name {
    font-family: var(--serif); font-size: 22px;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
  }
  .prog-stage .yrs {
    font-family: var(--mono); font-size: 11px;
    color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 14px;
  }
  .prog-stage .yrs b { color: var(--ink); font-weight: 500; }
  .prog-stage .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent-soft);
    margin-bottom: 12px;
    border: 1px solid var(--accent);
  }
  .prog-stage[data-tier="risk"] .dot { background: oklch(0.78 0.13 60); border-color: oklch(0.62 0.13 30); }
  .prog-stage[data-tier="late"] .dot { background: oklch(0.55 0.18 30); border-color: oklch(0.45 0.18 30); }

  /* Trust columns */
  .trust {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--ink);
  }
  .trust-col {
    padding: 28px 28px 36px;
    border-right: 1px solid var(--line);
  }
  .trust-col:last-child { border-right: none; }
  .trust-col h4 {
    font-family: var(--serif); font-weight: 400; font-size: 24px;
    margin: 16px 0 18px; letter-spacing: -0.01em;
  }
  .trust-col ul { list-style: none; padding: 0; margin: 0; }
  .trust-col li {
    padding: 10px 0;
    border-top: 1px solid var(--line);
    display: grid; grid-template-columns: 130px 1fr;
    gap: 16px;
    font-size: 13px;
  }
  .trust-col li b { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; color: var(--ink); }
  .trust-col li span { color: var(--ink-2); }

  /* Team — tabbed by department */
  .team-tabs {
    display: flex; flex-wrap: wrap; gap: 0;
    border-bottom: 1px solid var(--ink);
  }
  .team-tab {
    appearance: none; -webkit-appearance: none; background: none; border: none; cursor: pointer;
    font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--muted); padding: 18px 24px 16px;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
    display: inline-flex; align-items: baseline; gap: 8px;
    transition: color 0.18s ease, border-color 0.18s ease;
  }
  .team-tab:hover { color: var(--ink); }
  .team-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
  .team-tab .tc { font-size: 10px; color: var(--muted); font-weight: 500; }
  .team-tab.active .tc { color: var(--accent); }

  .team-panel { display: none; }
  .team-panel.active { display: block; animation: teamFade 0.3s ease; }
  @keyframes teamFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  @media (prefers-reduced-motion: reduce) { .team-panel.active { animation: none; } }

  .team-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0; background: var(--bg);
    border: 1px solid var(--line);
    border-top: 1px solid var(--ink);
  }
  .team-card {
    background: var(--bg);
    padding: 30px 28px 34px;
    display: flex; flex-direction: column;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .team-card:nth-child(3n) { border-right: none; }
  .team-card .avatar {
    width: 92px; height: 92px; border-radius: 50%;
    object-fit: cover; object-position: center top;
    border: 1px solid var(--accent);
    display: block; margin-bottom: 18px;
  }
  .team-card .avatar-initials {
    width: 92px; height: 92px; border-radius: 50%;
    border: 1px solid var(--accent);
    background: var(--accent-soft);
    display: grid; place-items: center;
    font-family: var(--mono); font-size: 24px; letter-spacing: 0.04em;
    color: var(--accent); font-weight: 500;
    margin-bottom: 18px;
  }
  .team-card .eyebrow { color: var(--accent); }
  .team-card h4 {
    font-family: var(--serif); font-weight: 400; font-size: 23px;
    margin: 10px 0 0; letter-spacing: -0.01em;
    text-wrap: balance;
  }
  .team-card .role {
    font-size: 13px; color: var(--ink-2); margin: 8px 0 0; line-height: 1.45;
  }
  .team-card .bio {
    font-size: 13.5px; color: var(--ink-2); line-height: 1.6;
    margin: 16px 0 0; padding-top: 16px;
    border-top: 1px solid var(--line);
    text-wrap: pretty;
  }
  .team-card .li {
    margin-top: auto; padding-top: 18px;
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
    color: var(--accent); display: inline-flex; align-items: center; gap: 6px;
    width: fit-content;
  }
  .team-card .li:hover { text-decoration: underline; }
  @media (max-width: 920px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .team-card:nth-child(3n) { border-right: 1px solid var(--line); }
    .team-card:nth-child(2n) { border-right: none; }
  }
  @media (max-width: 600px) {
    .team-grid { grid-template-columns: 1fr; }
    .team-card { border-right: none; }
    .team-tab { padding: 14px 16px 12px; }
  }

  /* Roadmap */
  .roadmap {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 32px;
    border: 1px solid var(--line);
  }
  .horizon {
    padding: 36px 32px;
    border-right: 1px solid var(--line);
    background: var(--paper);
    position: relative;
  }
  .horizon:last-child { border-right: none; }
  .horizon .h-label {
    font-family: var(--mono); font-size: 10.5px;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--muted);
  }
  .horizon h4 {
    font-family: var(--serif); font-weight: 400; font-size: 36px;
    letter-spacing: -0.018em;
    margin: 14px 0 10px;
  }
  .horizon h4 em { color: var(--accent); font-style: italic; }
  .horizon .target {
    font-family: var(--mono); font-size: 12px;
    color: var(--ink); padding: 4px 10px;
    border: 1px solid var(--line); border-radius: 999px;
    display: inline-block; margin: 4px 0 16px;
  }
  .horizon p { font-size: 14px; color: var(--ink-2); margin: 0; }

  /* Footer */
  footer {
    background: var(--ink);
    color: oklch(0.85 0.01 250);
    padding: 88px 0 40px;
  }
  footer h2 {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(32px, 4.5vw, 56px);
    line-height: 1.05;
    color: var(--bg);
    margin: 0 0 24px;
    letter-spacing: -0.018em;
    text-wrap: balance;
  }
  footer h2 em { font-style: italic; color: oklch(0.78 0.10 250); }
  footer .cta-grid {
    display: grid; grid-template-columns: repeat(3,1fr);
    gap: 0;
    margin: 64px 0 80px;
    border-top: 1px solid oklch(0.30 0.015 250);
  }
  footer .cta {
    padding: 32px 28px 36px;
    border-right: 1px solid oklch(0.30 0.015 250);
  }
  footer .cta:last-child { border-right: none; }
  footer .cta .l { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.16em; color: oklch(0.65 0.03 250); }
  footer .cta h5 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 14px 0 10px; color: var(--bg); letter-spacing: -0.005em; }
  footer .cta p { font-size: 13.5px; color: oklch(0.78 0.01 250); margin: 0 0 18px; line-height: 1.55; }
  footer .cta a.go {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
    color: oklch(0.92 0.05 250);
    padding-bottom: 4px;
    border-bottom: 1px solid oklch(0.40 0.10 250);
  }
  footer .cta a.go:hover { color: var(--bg); border-color: var(--bg); }

  footer .colophon {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    padding-top: 32px;
    border-top: 1px solid oklch(0.30 0.015 250);
    font-size: 13px;
  }
  footer .colophon .col-head { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.14em; color: oklch(0.65 0.03 250); margin-bottom: 14px; }
  footer .colophon a { display: block; padding: 4px 0; color: oklch(0.85 0.01 250); }
  footer .colophon a:hover { color: var(--bg); }
  footer .colophon .brandline {
    font-family: var(--serif); font-size: 28px; color: var(--bg); letter-spacing: -0.01em;
    margin: 0 0 12px;
  }
  footer .colophon .tagline { color: oklch(0.78 0.01 250); max-width: 36ch; font-size: 13.5px; }
  footer .colophon address { font-style: normal; color: oklch(0.85 0.01 250); font-size: 13px; line-height: 1.65; }
  footer .colophon a.linkedin { display: inline-flex; align-items: center; gap: 9px; }
  footer .colophon a.linkedin .li-circle {
    width: 26px; height: 26px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: oklch(0.85 0.01 250); flex-shrink: 0; transition: background .15s;
  }
  footer .colophon a.linkedin .li-circle svg { width: 14px; height: 14px; }
  footer .colophon a.linkedin:hover .li-circle { background: var(--bg); }

  footer .legal {
    display: flex; justify-content: space-between;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid oklch(0.30 0.015 250);
    font-family: var(--mono); font-size: 11px;
    color: oklch(0.65 0.03 250);
    letter-spacing: 0.04em;
  }

  /* Misc */
  .quote {
    font-family: var(--serif); font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.18; letter-spacing: -0.012em;
    color: var(--ink);
    max-width: 24ch;
    text-wrap: balance;
  }
  .quote em { font-style: italic; color: var(--accent); }
  .citation { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.04em; }

  /* MASLD comorbidity wheel */
  .comorbid-grid {
    display: grid; grid-template-columns: 1.1fr 1fr;
    gap: 56px; align-items: center;
    margin-top: 16px;
  }
  .comorbid-list {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1px; background: var(--line);
    border: 1px solid var(--line);
  }
  .comorbid-list > div {
    background: var(--paper);
    padding: 16px 18px;
    font-size: 13px;
  }
  .comorbid-list > div b {
    display: block;
    font-family: var(--mono); font-size: 10.5px; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--muted);
    margin-bottom: 4px; font-weight: 500;
  }

  /* Engine diagram */
  .engine {
    margin-top: 36px;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .engine-panel {
    border: 1px solid var(--line);
    background: var(--paper);
    padding: 28px;
  }
  .engine-panel .h {
    font-family: var(--mono); font-size: 10.5px; text-transform: uppercase;
    letter-spacing: 0.14em; color: var(--muted);
    margin-bottom: 18px;
  }
  .engine-panel h4 {
    font-family: var(--serif); font-weight: 400; font-size: 24px;
    margin: 0 0 16px; letter-spacing: -0.005em;
  }
  .input-list { display: grid; gap: 8px; }
  .input-row {
    display: grid; grid-template-columns: 130px 1fr;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    font-size: 13px;
  }
  .input-row b { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; }
  .input-row span { color: var(--ink-2); }

  .phase-stack { display: grid; gap: 12px; }
  .phase {
    border: 1px solid var(--line);
    padding: 16px 20px;
    background: var(--bg);
  }
  .phase .ph-no {
    font-family: var(--mono); font-size: 10.5px;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--accent); margin-bottom: 4px;
  }
  .phase .ph-name {
    font-family: var(--serif); font-size: 19px; letter-spacing: -0.005em;
    margin-bottom: 6px;
  }
  .phase .ph-desc {
    font-size: 12.5px; color: var(--ink-2);
  }

  /* MASLD diagram (dot pattern) */
  .undiagnosed-viz {
    display: grid;
    grid-template-columns: repeat(40, 1fr);
    gap: 3px;
    margin: 40px 0 20px;
  }
  .undiagnosed-viz .d {
    aspect-ratio: 1;
    background: var(--line-2);
    border-radius: 50%;
  }
  .undiagnosed-viz .d.diag { background: var(--ink); }
  .undiagnosed-viz .d.hidden { background: var(--accent); opacity: 0.18; }
  .undiagnosed-viz .d.flagship { background: var(--accent); }

  /* placeholder */
  .placeholder {
    background:
      repeating-linear-gradient(135deg,
        oklch(0.94 0.005 90) 0,
        oklch(0.94 0.005 90) 12px,
        oklch(0.97 0.005 90) 12px,
        oklch(0.97 0.005 90) 24px);
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 32px;
  }
  .placeholder .pcap {
    font-family: var(--mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--muted);
    background: var(--bg); padding: 6px 12px;
    border: 1px solid var(--line);
  }

  /* responsive */
  @media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .sec-head { grid-template-columns: 1fr; gap: 18px; }
    .g-3, .g-4, .stages, .lt-path, .perf-grid, .trust, .roadmap,
    .broken-path, .stat-block, .progression, .perf-numbers,
    .comorbid-grid, .engine, footer .cta-grid, footer .colophon {
      grid-template-columns: 1fr !important;
    }
    .stat-block > div, .trust-col, .horizon, .lt-step, .stage,
    .broken-step, .perf-numbers > div, .prog-stage,
    footer .cta {
      border-right: none;
      border-bottom: 1px solid var(--line);
    }
    footer .cta { border-bottom-color: oklch(0.30 0.015 250); }
    .nav-links { display: none; }
    section { padding: 64px 0; }
    .wrap, .wrap-narrow { padding: 0 20px; }
    .topbar-inner { padding: 0 20px; }
    .undiagnosed-viz { grid-template-columns: repeat(20, 1fr); }
  }


/* ===== Multi-page: home overview cards ===== */
.ov-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width:900px){ .ov-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .ov-grid{ grid-template-columns:1fr; } }
.ov-card { display:flex; flex-direction:column; text-decoration:none; padding:28px 28px 24px; border:1px solid var(--line); border-radius:4px; background:var(--paper); transition:border-color .15s, transform .15s; }
.ov-card:hover { border-color:var(--accent); transform:translateY(-2px); }
.ov-num { font-family:var(--mono); font-size:11px; letter-spacing:.14em; color:var(--accent); margin-bottom:14px; }
.ov-title { font-family:var(--serif); font-size:24px; font-weight:400; color:var(--ink); line-height:1.15; margin-bottom:10px; }
.ov-desc { font-size:14px; color:var(--ink-2); line-height:1.55; flex:1; }
.ov-go { margin-top:18px; font-family:var(--mono); font-size:11px; color:var(--accent); letter-spacing:.06em; }
/* Partners band — full-width image background with brand fade */
.partners-band {
  position: relative;
  padding: 92px 24px 100px;
  overflow: hidden;
  background: url('../assets/imagery/cells-molecules.jpg') center 40% / cover no-repeat;
}
.partners-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(7,15,44,0.88) 0%,
    rgba(8,20,64,0.96) 42%,
    rgba(8,20,64,0.96) 60%,
    rgba(7,15,44,0.88) 100%);
}
.partners-band-inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; text-align: center; }
.partners-title {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.partners-rule {
  display: inline-block;
  width: 56px; height: 3px; border-radius: 2px;
  background: var(--accent-2);
  margin: 18px 0 52px;
}
.partner-logos {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 30px 60px;
}
.partner-logo {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  height: 84px;
}
.partner-logo img {
  width: auto; max-width: 100%;
  opacity: 0.95; transition: opacity 0.2s;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.45));
}
.partner-logo:hover img { opacity: 1; }
/* per-logo optical sizing */
.partner-logo img[alt^="KIMS"]      { max-height: 80px; }
.partner-logo img[alt^="Sapien"]    { max-height: 66px; }
.partner-logo img[alt^="MedGenome"] { max-height: 28px; }
.partner-logo img[alt^="NVIDIA"]    { max-height: 80px; }
.partner-logo img[alt^="Lightning"] { max-height: 42px; }
@media (max-width: 760px) {
  .partner-logos { gap: 28px 40px; }
  .partner-logo { height: 60px; }
}
/* active nav link */
.nav-links a.active { color:var(--accent); }
.nav-dropdown-trigger.active { color:var(--accent); }


/* ===== Multi-page: mobile nav toggle ===== */
.nav-toggle { display:none; background:none; border:none; cursor:pointer; padding:8px; margin-left:auto; }
.nav-toggle span { display:block; width:22px; height:2px; background:#0f3357; margin:4px 0; border-radius:2px; transition:.2s; }
.nav-toggle.open span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }
@media (max-width: 980px) {
  .topbar-inner { position:relative; }
  .nav-toggle { display:inline-flex; flex-direction:column; }
  .nav-links.open {
    display:flex; flex-direction:column; align-items:flex-start; gap:16px;
    position:absolute; top:100%; left:0; right:0;
    background:rgba(207,230,245,0.99); backdrop-filter:blur(12px);
    padding:22px 24px; border-top:1px solid var(--line);
    max-height:78vh; overflow:auto; box-shadow:0 18px 40px rgba(15,51,87,.16);
  }
  .nav-links.open .nav-dropdown { width:100%; position:static; }
  .nav-links.open .nav-dropdown-trigger { display:inline-flex; }
  .nav-links.open .nav-dropdown-menu {
    position:static; display:block; box-shadow:none; background:transparent;
    padding:12px 0 0 14px; min-width:0; opacity:1; visibility:visible; transform:none; border:none;
  }
  .nav-links.open .nav-dropdown-menu > a { padding:6px 0; }
  .nav-links.open .nav-sub-menu { display:none !important; }
  .nav-links.open .nav-sub-trigger { display:none; }
}


/* ============================================================
   KARYON.BIO DESIGN-SYSTEM RESKIN
   Remaps the LiverTwin tokens to Karyon's palette + Gotham type,
   then overrides the signature components (hero, nav, cards, footer).
   ============================================================ */
:root {
  --bg: #f5f8fb;
  --paper: #ffffff;
  --ink: #1A327C;          /* deep navy text + footer bg */
  --ink-2: #475569;
  --muted: #64748b;
  --line: #dde5ee;
  --line-2: #eef2f7;
  --accent: #004AA3;       /* royal blue: links / numbers / em */
  --accent-2: #28E593;     /* teal-green spark */
  --accent-soft: #d8f7e9;
  --serif: 'Gotham Pro','Gotham',sans-serif;
  --sans:  'Gotham Pro','Gotham',sans-serif;
  --mono:  'Gotham Pro','Gotham',sans-serif;
}
body { background: var(--bg); color: var(--ink); font-family: var(--sans); }

/* --- Headings: Gotham, confident weights (override inline 400s) --- */
h1, .hero h1 { font-weight: 800 !important; letter-spacing: -0.02em !important; }
h2, .sec-head h2, footer h2 { font-weight: 700 !important; letter-spacing: -0.02em !important; }
h3, h4, h5, .card h3, .hero-card h3, .stage h4 { font-weight: 600 !important; letter-spacing: -0.01em !important; }
.brand-name { font-weight: 700; }

/* --- Signature gradient highlight on emphasized words --- */
h1 em, h2 em, h3 em, .hero h1 em, .sec-head h2 em, footer h2 em {
  font-style: italic;
  background: var(--grad-green-blue);
  -webkit-background-clip: text; background-clip: text;
  color: transparent !important;
  padding: 0 0.12em;
  margin: 0 -0.04em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* --- Top bar: frosted white --- */
.topbar { background: rgba(255,255,255,.82) !important; backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-links a, .nav-dropdown-trigger { color: var(--ink) !important; font-weight: 600; }
.nav-links a:hover, .nav-links a.active, .nav-dropdown-trigger.active { color: var(--accent) !important; }
.nav-cta {
  background: var(--grad-brand) !important; color: #fff !important;
  border: none !important; border-radius: 999px !important;
  padding: 10px 20px !important; font-weight: 700;
  box-shadow: var(--shadow-brand);
}
.nav-toggle span { background: var(--ink); }

/* --- Hero: deep navy gradient, white type, green eyebrow --- */
.hero { background: var(--grad-deep) !important; border-bottom: none !important; }
.hero h1 { color: #fff !important; }
.hero .hero-lede, .hero p { color: rgba(255,255,255,.82) !important; }
.hero .eyebrow { color: var(--k-green) !important; }
.hero .serif { color: #fff; }
.hero-meta { border-color: rgba(255,255,255,.22) !important; color: rgba(255,255,255,.72) !important; }
.hero-meta b { color: #fff !important; }

/* --- Cards: rounded + soft cool shadow --- */
.card, .hero-card { border-radius: 14px !important; box-shadow: var(--shadow-sm); }
.card:hover { background: var(--paper) !important; box-shadow: var(--shadow-md); transform: translateY(-2px); transition: .2s; }
.stages, .hero-card { border-radius: 14px !important; }
.ov-card { border-radius: 16px; box-shadow: var(--shadow-sm); }
.ov-card:hover { border-color: var(--accent-2); box-shadow: var(--shadow-md); }
.ov-title { font-family: var(--sans); font-weight: 700; }

/* --- Section label rule in brand blue --- */
.sec-head .label { border-top-color: var(--accent); }
.sec-head .label .num, .label .num { color: var(--accent); }

/* --- Numbers / stats accents stay readable --- */
.hero-card .stat-row > div .n { color: var(--accent); font-weight: 800; }

/* --- Footer: deep navy (via --ink) with green em already handled --- */
footer { background: var(--surface-deep) !important; }
footer .legal, footer .legal span { font-family: var(--sans) !important; letter-spacing: 0.01em; }

/* --- Header logo: stacked color logo (icon above wordmark) --- */
.topbar-inner { height: 92px !important; }
.brand-logo { display: none !important; }
.brand {
  display: block;
  width: 132px; height: 76px;
  background: url('../assets/logos/karyon-stacked-bright.png') left center / contain no-repeat;
}
/* --- Technology dropdown trigger: chevron stacked under the label --- */
.nav-dropdown-trigger { display: inline-flex !important; flex-direction: column; align-items: center; gap: 3px; line-height: 1.1; }
/* --- Nav links: top-align every item and add breathing room above --- */
.nav-links { align-items: flex-start !important; padding-top: 16px; }
.nav-links > a, .nav-links > .nav-dropdown { padding-top: 0; }
/* --- Footer brand: white logo on the navy footer --- */
.footer-logo { height: 84px; width: auto; display: block; margin-bottom: 6px; }

/* --- Footer intro block: always centered --- */
footer .wrap > div:first-child {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
footer .wrap > div:first-child p,
footer .wrap > div:first-child h2 {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* --- Footer inverted: white background, dark text --- */
footer { background: #ffffff !important; color: var(--ink-2) !important; border-top: 1px solid var(--line); }
footer .eyebrow { color: var(--accent) !important; }
footer h2 { color: var(--ink) !important; }
footer p { color: var(--ink-2) !important; }
footer .cta-grid { border-top-color: var(--line) !important; }
footer .cta { border-right-color: var(--line) !important; }
footer .cta .l { color: var(--muted) !important; }
footer .cta h5 { color: var(--ink) !important; }
footer .cta a.go { color: var(--accent) !important; border-color: var(--accent) !important; }
footer .cta a.go:hover { color: var(--ink) !important; border-color: var(--ink) !important; }
footer .colophon { border-top-color: var(--line) !important; }
footer .colophon .col-head { color: var(--muted) !important; }
footer .colophon a { color: var(--ink-2) !important; }
footer .colophon a:hover { color: var(--accent) !important; }
footer .colophon .brandline { color: var(--ink) !important; }
footer .colophon .tagline { color: var(--ink-2) !important; }
footer .colophon .brandline + .tagline { margin-bottom: 16px; }
footer .colophon > div:first-child .linkedin { margin-top: 4px; }
footer .colophon address { color: var(--ink-2) !important; }
footer .colophon a.linkedin .li-circle { background: var(--accent) !important; }
footer .colophon a.linkedin .li-circle svg,
footer .colophon a.linkedin .li-circle svg path { fill: #ffffff !important; }
footer .colophon a.linkedin:hover .li-circle { background: var(--ink) !important; }
footer .legal { border-top-color: var(--line) !important; color: var(--muted) !important; }
.footer-logo { height: 46px !important; }
footer .colophon a.footer-contact-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: fit-content; align-self: start;
  margin-top: 16px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff !important;
  background: var(--accent); border: 1px solid var(--accent);
  padding: 10px 22px; border-radius: var(--r-pill, 999px);
  transition: background .15s, color .15s, transform .15s;
}
footer .colophon a.footer-contact-btn span { color: #fff !important; white-space: nowrap; line-height: 1; }
footer .colophon a.footer-contact-btn .cb-mail { width: 15px; height: 15px; color: #fff; flex-shrink: 0; display: block; }
footer .colophon a.footer-contact-btn:hover { background: var(--ink) !important; border-color: var(--ink); transform: translateY(-1px); }
footer .colophon a.footer-contact-btn:hover span, footer .colophon a.footer-contact-btn:hover .cb-mail { color: #fff !important; }

/* --- Section heads: remove the small numbered eyebrow labels; headline is the header --- */
.sec-head .label { display: none !important; }
.sec-head { grid-template-columns: 1fr !important; }

/* --- Page hero banner (inner pages) --- */
.page-hero {
  position: relative;
  background: var(--grad-deep);
  padding: clamp(38px, 5.5vw, 70px) 24px;
  text-align: center;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.20;
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }
.page-hero-eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 20px;
}
.page-hero h1 {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(40px, 6vw, 76px); line-height: 1.04; letter-spacing: -0.02em;
  color: #fff; margin: 0;
}
.page-hero h1 em {
  font-style: italic;
  background: var(--grad-green-blue);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.page-hero-sub {
  font-size: clamp(17px, 2vw, 21px); line-height: 1.55;
  color: rgba(255,255,255,0.82); margin: 24px auto 0; max-width: 62ch;
}

/* --- Centered section intros --- */
.sec-head { text-align: center; justify-items: center; }
.sec-head > div { max-width: 780px; }
.sec-head .lede { margin-left: auto; margin-right: auto; }

/* Disease intro on a clean white panel */
#disease .sec-head {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 48px 56px;
  box-shadow: 0 12px 40px rgba(26,50,124,0.06);
}
@media (max-width: 640px) { #disease .sec-head { padding: 32px 24px; } }
.page-intro-centered { text-align: center; max-width: 820px; margin-left: auto; margin-right: auto; }
.page-intro-centered h2 { margin-left: auto !important; margin-right: auto !important; }
.page-intro-centered p { margin-left: auto !important; margin-right: auto !important; }

/* --- Partners page --- */
#partners { padding: 72px 0 96px; }
.partner-logos-wall {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.plogo {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  height: 150px; display: grid; place-items: center; padding: 28px 32px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.plogo:hover { border-color: var(--accent); transform: translateY(-2px); }
.plogo img { max-width: 100%; max-height: 72px; object-fit: contain; }
.plogo--dark { background: var(--ink); border-color: var(--ink); }
.partner-cta {
  margin-top: 80px; text-align: center; background: var(--grad-deep);
  border-radius: 16px; padding: 56px 40px; color: #fff;
}
.partner-cta h3 { font-family: var(--sans); font-weight: 700; font-size: clamp(24px, 3vw, 34px); color: #fff; margin: 0; letter-spacing: -0.01em; }
.partner-cta p { color: rgba(255,255,255,0.82); font-size: 17px; max-width: 60ch; margin: 18px auto 28px; line-height: 1.6; }
.partner-cta .nav-cta { display: inline-flex; }
@media (max-width: 880px) { .partner-logos-wall { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .partner-logos-wall { grid-template-columns: repeat(2, 1fr); } }


/* ============================================================
   CONTACT MODAL — "Let's Collaborate" pop-up form
   ============================================================ */
.contact-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(12, 23, 66, 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .26s ease, visibility .26s ease;
}
.contact-overlay.open { opacity: 1; visibility: visible; }

.contact-modal {
  position: relative;
  width: 100%; max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  background: var(--paper);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(.98);
  opacity: 0;
  transition: transform .3s cubic-bezier(.21,.99,.4,1), opacity .3s ease;
}
.contact-overlay.open .contact-modal { transform: translateY(0) scale(1); opacity: 1; }

/* Gradient header band */
.contact-modal .cm-head {
  background: var(--grad-deep);
  padding: 26px 36px 22px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.contact-modal .cm-eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--k-green);
  margin-bottom: 10px;
}
.contact-modal .cm-title {
  font-family: var(--serif); font-weight: 700; font-size: 27px;
  line-height: 1.12; letter-spacing: -0.02em;
  color: #fff; margin: 0 0 8px;
}
.contact-modal .cm-sub {
  font-size: 14px; line-height: 1.55;
  color: rgba(255,255,255,.82); margin: 0; max-width: 42ch;
}

/* Close button */
.cm-close {
  position: absolute; top: 18px; right: 18px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%; cursor: pointer;
  color: #fff; font-size: 18px; line-height: 1;
  transition: background .15s, transform .15s;
}
.cm-close:hover { background: rgba(255,255,255,.24); transform: rotate(90deg); }

/* Form body */
.contact-modal form { padding: 22px 36px 26px; display: grid; gap: 14px; }
.cm-field { display: grid; gap: 7px; }
.cm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cm-field label {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted);
}
.cm-field label .req { color: var(--accent); }
.cm-field input,
.cm-field textarea {
  font-family: var(--sans); font-size: 14.5px; color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  width: 100%; resize: vertical;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.cm-field textarea { min-height: 82px; line-height: 1.5; }
.cm-field input::placeholder,
.cm-field textarea::placeholder { color: var(--gray-400); }
.cm-field input:focus,
.cm-field textarea:focus {
  outline: none; background: var(--paper);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.cm-actions { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.cm-submit {
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  color: #fff; background: var(--grad-brand);
  border: none; border-radius: var(--r-pill);
  padding: 13px 28px; cursor: pointer;
  box-shadow: var(--shadow-brand);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.cm-submit:hover { transform: translateY(-1px); box-shadow: var(--shadow-green); }
.cm-submit:active { transform: translateY(0); }
.cm-note {
  font-size: 12px; color: var(--muted); line-height: 1.45; max-width: 30ch;
}

/* Success state */
.cm-success {
  padding: 48px 40px 52px; text-align: center;
  display: none;
}
.contact-modal.is-sent .cm-success { display: block; }
.contact-modal.is-sent form { display: none; }
.cm-success .cm-check {
  width: 64px; height: 64px; margin: 0 auto 22px;
  border-radius: 50%; background: var(--accent-soft);
  display: grid; place-items: center;
  color: var(--fg-accent); font-size: 30px;
}
.cm-success h4 {
  font-family: var(--serif); font-weight: 700; font-size: 24px;
  letter-spacing: -0.01em; color: var(--ink); margin: 0 0 10px;
}
.cm-success p { font-size: 14.5px; color: var(--ink-2); margin: 0 auto; max-width: 38ch; line-height: 1.55; }

@media (max-width: 540px) {
  .cm-row { grid-template-columns: 1fr; }
  .contact-modal .cm-head { padding: 26px 24px 24px; }
  .contact-modal form { padding: 24px 24px 30px; }
  .cm-actions { flex-direction: column; align-items: stretch; }
  .cm-note { max-width: none; }
}

/* ============================================================
   Progression timeline — fancy hover interaction
   ============================================================ */
.progression .prog-stage {
  cursor: default;
  overflow: hidden;
  transform: translateY(0);
  transition:
    transform .42s cubic-bezier(.22,1,.36,1),
    background-color .35s ease,
    box-shadow .42s cubic-bezier(.22,1,.36,1),
    opacity .35s ease;
  --tier-c: var(--accent);
}
.progression .prog-stage[data-tier="risk"] { --tier-c: oklch(0.70 0.16 62); }
.progression .prog-stage[data-tier="late"] { --tier-c: oklch(0.55 0.20 28); }

/* wipe-in top accent bar */
.progression .prog-stage::before {
  content: "";
  position: absolute; top: -1px; left: 0;
  height: 3px; width: 100%;
  background: var(--tier-c);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
/* soft radial glow that blooms from the dot */
.progression .prog-stage::after {
  content: "";
  position: absolute; top: 8px; left: 16px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklch, var(--tier-c) 30%, transparent) 0%, transparent 68%);
  opacity: 0; transform: scale(.4);
  transform-origin: top left;
  transition: opacity .5s ease, transform .55s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}

.progression .prog-stage .dot,
.progression .prog-stage .name,
.progression .prog-stage .yrs {
  position: relative; z-index: 1;
  transition: transform .42s cubic-bezier(.22,1,.36,1), color .3s ease;
}
.progression .prog-stage .dot { transition: transform .42s cubic-bezier(.34,1.56,.64,1), box-shadow .42s ease, background-color .3s ease; }

/* dim siblings to spotlight the hovered stage */
.progression:hover .prog-stage { opacity: .5; }
.progression:hover .prog-stage:hover { opacity: 1; }

/* the hover itself */
.progression .prog-stage:hover {
  transform: translateY(-10px);
  background-color: color-mix(in oklch, var(--tier-c) 7%, transparent);
  box-shadow: 0 22px 44px -18px color-mix(in oklch, var(--tier-c) 60%, transparent);
}
.progression .prog-stage:hover::before { transform: scaleX(1); }
.progression .prog-stage:hover::after  { opacity: 1; transform: scale(1); }
.progression .prog-stage:hover .name   { color: var(--tier-c); transform: translateY(-2px); }
.progression .prog-stage:hover .yrs    { transform: translateY(-2px); }
.progression .prog-stage:hover .dot {
  transform: scale(1.9);
  background: var(--tier-c) !important;
  border-color: var(--tier-c) !important;
}

/* expanding pulse ring on the dot */
@media (prefers-reduced-motion: no-preference) {
  .progression .prog-stage:hover .dot {
    animation: progDotPulse 1.6s cubic-bezier(.22,1,.36,1) infinite;
  }
}
@keyframes progDotPulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklch, var(--tier-c) 55%, transparent); }
  70%  { box-shadow: 0 0 0 12px color-mix(in oklch, var(--tier-c) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--tier-c) 0%, transparent); }
}

@media (prefers-reduced-motion: reduce) {
  .progression .prog-stage,
  .progression .prog-stage::before,
  .progression .prog-stage::after,
  .progression .prog-stage .dot { transition: none; }
  .progression .prog-stage:hover { transform: none; }
}

/* ============================================================
   AI Solutions page
   ============================================================ */
.pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 30px 34px;
  box-shadow: 0 12px 40px rgba(26,50,124,0.05);
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
}
.pillar:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(26,50,124,0.12); }
.pillar-num {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; color: var(--accent);
  margin-bottom: 18px;
}
.pillar h4 { font-size: 21px; margin: 0 0 12px; color: var(--ink); }
.pillar p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }

.ai-pipeline {
  display: flex; align-items: stretch; justify-content: center;
  gap: 12px; flex-wrap: wrap;
}
.ai-step {
  flex: 1 1 0; min-width: 180px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 26px 24px;
  border-top: 3px solid var(--accent);
}
.ai-step-no {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.ai-step-name { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.ai-step-desc { font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.ai-arrow {
  display: flex; align-items: center;
  font-size: 22px; color: var(--accent-2); font-weight: 300;
}
@media (max-width: 880px) {
  .ai-pipeline { flex-direction: column; }
  .ai-arrow { justify-content: center; transform: rotate(90deg); padding: 4px 0; }
}

/* AI tools listing */
.tools-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.tools-head h2 { margin: 0 0 12px; }
.tools-head .lede { margin: 0 auto; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) { .tool-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tool-grid { grid-template-columns: 1fr; } }
.tool-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 26px 30px;
  box-shadow: 0 12px 40px rgba(26,50,124,0.05);
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
}
a.tool-card { text-decoration: none; }
.tool-logo {
  width: 52px; height: 52px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  background: var(--grad-icon, linear-gradient(135deg,#28E593,#2865DD));
  color: #fff;
  font-family: var(--mono); font-weight: 700; font-size: 15px;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px rgba(40,101,221,0.28);
}
.tool-logo-dx { background: var(--grad-deep, linear-gradient(160deg,#252584,#004AA3)); box-shadow: 0 6px 16px rgba(0,74,163,0.28); }
.tool-logo-img {
  height: 58px; width: auto; max-width: 100%;
  align-self: flex-start; object-fit: contain;
  display: block; margin-bottom: 20px;
}
.tool-card:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(26,50,124,0.12); }
.tool-card h4 { font-size: 22px; margin: 0 0 12px; color: var(--ink); }
.tool-card p { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.tool-card .tool-demo {
  margin-top: 16px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
a.tool-card:hover .tool-demo { color: var(--accent-2); }

.tool-subtitle {
  font-size: 13px; font-weight: 500; color: #14a36a;
  margin: 4px 0 12px !important; line-height: 1.45;
}

.tool-card--featured {
  border-color: #28E593;
  box-shadow: 0 0 0 1px #28E593, 0 12px 40px -8px color-mix(in oklch, #28E593 55%, transparent);
  position: relative;
}
.tool-card--featured::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 120% at 50% 0%, color-mix(in oklch, #28E593 16%, transparent), transparent 60%);
}

/* --- Video modal --- */
.video-modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.video-modal.is-open { display: block; }
.video-modal-overlay { position: absolute; inset: 0; background: rgba(8,14,32,0.78); backdrop-filter: blur(4px); }
.video-modal-dialog {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(960px, 92vw);
}
.video-modal-frame {
  position: relative; width: 100%; padding-top: 56.25%;
  background: #000; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,0.5);
}
.video-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal-close {
  position: absolute; top: -44px; right: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background 0.18s ease;
}
.video-modal-close:hover { background: rgba(255,255,255,0.24); }

