/* ============================================================
   Azevan Pharmaceuticals — Main Stylesheet
   ============================================================ */

/* --- Tokens --- */
:root {
    --c-navy:        #0c4a82;
    --c-navy-dark:   #08365e;
    --c-navy-deep:   #052546;
    --c-teal:        #0e8f9c;
    --c-teal-dark:   #086e79;
    --c-teal-light:  #66c4ce;
    --c-accent:      #e0a526;
    --c-accent-warm: #c97a16;
    --c-text:        #1a2942;
    --c-text-soft:   #4b5b73;
    --c-text-mute:   #6b7c93;
    --c-bg:          #ffffff;
    --c-bg-alt:      #f6f9fc;
    --c-bg-alt2:     #eaf1f8;
    --c-border:      #dde5ee;
    --c-success:     #1f8a5b;
    --c-warning:     #c97a16;
    --c-danger:      #b62c2c;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Source Serif Pro", "Georgia", serif;

    --radius-sm: 4px;
    --radius:    8px;
    --radius-lg: 14px;
    --radius-xl: 22px;

    --shadow-sm: 0 1px 2px rgba(8,54,94,0.06);
    --shadow:    0 4px 14px rgba(8,54,94,0.08);
    --shadow-lg: 0 12px 36px rgba(8,54,94,0.12);

    --container:        1200px;
    --container-narrow: 920px;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.75rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    --space-2xl: 7rem;
}

/* --- Reset / base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--c-teal); }
h1, h2, h3, h4 {
    color: var(--c-navy-deep);
    line-height: 1.2;
    margin: 0 0 0.5em;
    font-weight: 700;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 3.5vw + 1rem, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem); letter-spacing: -0.015em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em 1.25em; padding: 0; }
li { margin-bottom: .35em; }

.sr-only {
    position: absolute !important; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--c-navy); color: #fff; padding: .6rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 0; }

/* --- Layout --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 1.5rem;
}
section {
    padding: clamp(3rem, 7vw, 6rem) 0;
}
section.tight { padding-block: 2.5rem; }
section.flush { padding: 0; }

/* --- Header / Nav --- */
.site-header {
    background: rgba(255,255,255,0.96);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--c-border);
    position: sticky; top: 0; z-index: 100;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 76px; gap: 1rem;
}
.brand-logo { height: 42px; width: auto; }
.primary-nav ul {
    list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0;
}
.primary-nav a {
    text-decoration: none; color: var(--c-text); font-weight: 500;
    padding: .5rem 0; position: relative; font-size: .96rem;
}
.primary-nav a:hover { color: var(--c-teal); }
.primary-nav a.active { color: var(--c-navy); }
.primary-nav a.active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
    height: 2px; background: var(--c-teal);
}

.nav-toggle {
    display: none;
    border: 0; background: transparent; cursor: pointer;
    padding: .6rem; width: 44px; height: 44px;
    position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
    content: ""; position: absolute; left: 50%; transform: translateX(-50%);
    height: 2px; width: 26px; background: var(--c-navy); border-radius: 2px;
    transition: all .2s;
}
.nav-toggle-bar { top: 50%; }
.nav-toggle-bar::before { top: -8px; }
.nav-toggle-bar::after  { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { top: 0; transform: translateX(-50%) rotate(-45deg); }

@media (max-width: 940px) {
    .nav-toggle { display: block; }
    .primary-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--c-border);
        max-height: 0; overflow: hidden;
        transition: max-height .25s ease;
    }
    .primary-nav.open { max-height: 600px; }
    .primary-nav ul {
        flex-direction: column; gap: 0; padding: .5rem 1.5rem 1rem;
    }
    .primary-nav li { border-top: 1px solid var(--c-border); }
    .primary-nav a { display: block; padding: .85rem 0; }
}

/* --- Hero --- */
.hero {
    position: relative;
    color: #fff;
    background-color: var(--c-navy-deep);
    background:
        linear-gradient(120deg, rgba(5,37,70,.92) 0%, rgba(8,54,94,.90) 50%, rgba(8,54,94,.68) 70%, rgba(14,143,156,.35) 100%),
        linear-gradient(120deg, var(--c-navy-deep) 0%, var(--c-navy-deep) 50%, rgba(5,37,70,0) 80%),
        url('../images/hero-bg.jpg') right center/auto 100% no-repeat,
        var(--c-navy-deep);
    padding: clamp(5rem, 11vw, 9rem) 0 clamp(5rem, 11vw, 8rem);
    overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse at top right, rgba(102,196,206,.18), transparent 60%);
    pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 {
    color: #fff;
    max-width: 24ch;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 18px rgba(0,0,0,.18);
}
.hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .82rem;
    color: var(--c-teal-light);
    margin-bottom: 1rem;
    font-weight: 600;
}
.hero p.lead {
    max-width: 62ch;
    font-size: clamp(1.05rem, 0.5vw + 1rem, 1.22rem);
    color: rgba(255,255,255,0.92);
    line-height: 1.6;
}
.hero .cta-row {
    margin-top: 2rem;
    display: flex; flex-wrap: wrap; gap: .85rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .8rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600; text-decoration: none;
    transition: all .15s ease;
    border: 2px solid transparent;
    cursor: pointer; font-size: .98rem;
    line-height: 1.2;
    font-family: inherit;
}
.btn::after { content: "→"; transition: transform .15s; font-weight: 400; }
.btn:hover::after { transform: translateX(3px); }
.btn-primary { background: var(--c-accent); color: #1a1300; border-color: var(--c-accent); }
.btn-primary:hover { background: #f4b836; border-color: #f4b836; color: #1a1300; }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-secondary:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn-outline { background: transparent; color: var(--c-navy); border-color: var(--c-navy); }
.btn-outline:hover { background: var(--c-navy); color: #fff; }
.btn-plain { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }
.btn-plain:hover { background: var(--c-teal); border-color: var(--c-teal); color: #fff; }
.btn-sm { padding: .5rem .95rem; font-size: .9rem; }
.btn-danger { background: var(--c-danger); color: #fff; border-color: var(--c-danger); }
.btn-danger:hover { background: #952121; border-color: #952121; }
.btn-danger::after, .btn-danger:hover::after { content: ""; }
.btn-no-arrow::after { content: ""; }

/* --- Section labels --- */
.eyebrow {
    text-transform: uppercase; letter-spacing: .14em;
    font-size: .8rem; color: var(--c-teal); font-weight: 700;
    margin-bottom: .75rem; display: inline-block;
}
.eyebrow-center { display: block; text-align: center; }

.section-head { max-width: 760px; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { margin-bottom: .65rem; }
.section-lead {
    color: var(--c-text-soft);
    font-size: clamp(1.05rem, 0.4vw + 1rem, 1.25rem);
    line-height: 1.6;
}

.bg-alt   { background: var(--c-bg-alt); }
.bg-alt2  { background: var(--c-bg-alt2); }
.bg-navy {
    background:
        linear-gradient(160deg, var(--c-navy-deep) 0%, var(--c-navy) 60%, var(--c-teal-dark) 100%);
    color: #fff;
    position: relative; overflow: hidden;
}
.bg-navy::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 40%, rgba(102,196,206,0.18), transparent 60%);
    pointer-events: none;
}
.bg-navy > .container { position: relative; z-index: 1; }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.bg-navy .eyebrow { color: var(--c-teal-light); }
.bg-navy .section-lead { color: rgba(255,255,255,0.85); }
.bg-navy a:not(.btn) { color: var(--c-teal-light); }

/* --- Pillars (3 icon columns) --- */
.pillars {
    display: grid; gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 1rem;
}
.pillar {
    text-align: left;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.pillar:hover {
    border-color: var(--c-teal-light);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.pillar-icon {
    width: 56px; height: 56px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--c-teal-light) 0%, var(--c-teal) 100%);
    color: #fff;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 22px rgba(14,143,156,.22);
}
.pillar-icon svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { margin: 0 0 .55rem; font-size: 1.18rem; }
.pillar p { color: var(--c-text-soft); margin: 0 0 .75rem; }
.pillar ul { margin: 0 0 .25rem 1rem; color: var(--c-text-soft); }
.pillar ul li { margin-bottom: .4rem; }
.pillar a {
    font-size: .92rem; font-weight: 600;
    text-decoration: none; color: var(--c-teal);
}
.pillar a:hover { color: var(--c-navy); }
.pillar a::after { content: " →"; }

/* --- Stats strip --- */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
    border-top: 1px solid rgba(255,255,255,.14);
    border-bottom: 1px solid rgba(255,255,255,.14);
    padding: 2.5rem 0;
}
.stat {
    padding: 0 1.5rem;
    border-right: 1px solid rgba(255,255,255,.14);
    text-align: left;
}
.stat:last-child { border-right: 0; }
.stat-value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 2.5vw + 1rem, 3rem);
    line-height: 1.05;
    color: var(--c-accent);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: .35rem;
}
.stat-label {
    font-size: .9rem; line-height: 1.4;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase; letter-spacing: .08em;
}
.stats-strip.on-light {
    border-color: var(--c-border);
}
.stats-strip.on-light .stat { border-color: var(--c-border); }
.stats-strip.on-light .stat-value { color: var(--c-navy); }
.stats-strip.on-light .stat-label { color: var(--c-text-mute); }

@media (max-width: 700px) {
    .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); padding: 1.25rem 1rem; }
    .stat:last-child { border-bottom: 0; }
}

/* --- Alternating content blocks --- */
.alt-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    margin: 0;
    padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}
.alt-block + .alt-block {
    border-top: 1px solid var(--c-border);
}
.alt-block.flip .alt-block-media { order: 2; }
.alt-block-content h2 { margin-bottom: .65rem; }
.alt-block-content p  { color: var(--c-text-soft); margin-bottom: 1.1rem; }
.alt-block-content .eyebrow { margin-bottom: .55rem; }
.alt-block-content .alt-cta {
    display: inline-flex; align-items: center; gap: .4rem;
    color: var(--c-teal); font-weight: 600; text-decoration: none;
    font-size: .96rem;
}
.alt-block-content .alt-cta:hover { color: var(--c-navy); }
.alt-cta-arrow { display: inline-block; transition: transform .15s; margin-left: .15rem; }
.alt-block-content .alt-cta:hover .alt-cta-arrow { transform: translateX(3px); }

.alt-block-media {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    position: relative;
    background: var(--c-bg-alt2);
}
.alt-block-media svg, .alt-block-media img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
}

/* --- Mini pipeline (inside alt-block-media) --- */
.alt-block-media.mini-pipeline-wrap {
    aspect-ratio: auto;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}
.mini-pipeline {
    background: linear-gradient(140deg, var(--c-navy-deep) 0%, var(--c-navy-dark) 100%);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 1.75rem 1.75rem 1.5rem;
    box-shadow: var(--shadow-lg);
    height: 100%;
}
.mini-pipeline-head {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    color: var(--c-teal-light);
    margin-bottom: 1.25rem;
    font-weight: 600;
}
.mini-pipeline-row {
    display: grid;
    grid-template-columns: 1.1fr 1.6fr auto;
    gap: 1rem;
    align-items: center;
    padding: .7rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mini-pipeline-row:last-of-type { border-bottom: 0; }
.mini-program-info strong {
    display: block;
    font-size: .9rem;
    color: #fff;
    font-weight: 600;
    line-height: 1.25;
}
.mini-program-info span {
    display: block;
    font-size: .72rem;
    color: rgba(255,255,255,0.6);
    margin-top: .15rem;
    line-height: 1.3;
}
.mini-pipeline-track {
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
}
.mini-pipeline-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--c-teal) 0%, var(--c-teal-light) 60%, var(--c-accent) 100%);
    border-radius: 4px;
}
.mini-stage-label {
    font-size: .72rem;
    color: var(--c-teal-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
    min-width: 60px;
    text-align: right;
}
@media (max-width: 540px) {
    .mini-pipeline-row {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: .35rem .75rem;
    }
    .mini-pipeline-track { grid-column: 1 / -1; }
}

/* --- Mechanism flow diagrams (inside alt-block-media) --- */
.alt-block-media.mech-wrap {
    aspect-ratio: auto;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}
.mech-diagram {
    background: linear-gradient(140deg, var(--c-navy-deep) 0%, var(--c-navy-dark) 100%);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
    height: 100%;
}
.mech-head {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    color: var(--c-teal-light);
    margin-bottom: 1.25rem;
    font-weight: 600;
}
.mech-flow {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.mech-node {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    align-items: center;
    gap: .85rem;
    padding: .6rem .9rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
}
.mech-node .dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.35);
}
.mech-node .label {
    font-size: .9rem;
    color: #fff;
    font-weight: 500;
    line-height: 1.25;
}
.mech-node .label small {
    display: block;
    color: rgba(255,255,255,0.55);
    font-size: .7rem;
    font-weight: 400;
    margin-top: .1rem;
}
.mech-node.intervention {
    background: linear-gradient(135deg, rgba(14,143,156,0.22), rgba(102,196,206,0.10));
    border-color: rgba(102,196,206,0.55);
}
.mech-node.intervention .dot {
    background: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(224,165,38,0.18);
}
.mech-tag {
    font-size: .65rem;
    color: var(--c-accent);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
    background: rgba(224,165,38,0.12);
    padding: .2rem .55rem;
    border-radius: 999px;
    border: 1px solid rgba(224,165,38,0.3);
    white-space: nowrap;
}
.mech-arrow {
    text-align: center;
    color: rgba(255,255,255,0.25);
    font-size: 1.1rem;
    line-height: 1;
    padding: .15rem 0;
    margin-left: 5px;
}
.mech-caption {
    margin-top: 1rem;
    font-size: .8rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
}

@media (max-width: 800px) {
    .alt-block { grid-template-columns: 1fr; gap: 1.75rem; }
    .alt-block.flip .alt-block-media { order: 0; }
    .alt-block-media { aspect-ratio: 16 / 9; }
    .alt-block-media.talk-doctor-card { aspect-ratio: auto; min-height: 260px; }
}

/* --- Pipeline preview (compact, on home) --- */
.pipeline-preview {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

/* --- VacV-style pipeline chart --- */
.pipeline-chart {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.pipeline-chart-head,
.pipeline-row {
    display: grid;
    grid-template-columns: 220px 110px 1fr 180px;
    gap: 1.25rem;
    align-items: center;
    padding: 1.1rem 1.5rem;
}
.pipeline-chart-head {
    background: var(--c-bg-alt);
    border-bottom: 1px solid var(--c-border);
    font-weight: 600; font-size: .8rem;
    color: var(--c-text-mute);
    text-transform: uppercase; letter-spacing: .08em;
}
.pipeline-row + .pipeline-row {
    border-top: 1px solid var(--c-border);
}
.pipeline-row {
    transition: background .15s;
    cursor: pointer;
}
.pipeline-row:hover { background: var(--c-bg-alt); }

.pipeline-row .program-meta { line-height: 1.35; }
.pipeline-row .program-name { font-weight: 700; color: var(--c-navy); font-size: 1rem; }
.pipeline-row .program-indication { font-size: .85rem; color: var(--c-text-mute); margin-top: 2px; }

.pipeline-row .program-asset {
    font-family: var(--font-display);
    font-style: italic; color: var(--c-text-soft);
    font-size: .95rem;
}

.pipeline-stage-track {
    position: relative;
    height: 36px;
    background:
        linear-gradient(to right, var(--c-bg-alt2) 0, var(--c-bg-alt2) 100%);
    border-radius: 18px;
}
/* Six tick lines on the track */
.pipeline-stage-track::before {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    background-image:
        linear-gradient(to right,
            transparent calc(100%/6 - 0.5px),
            rgba(12,74,130,.10) calc(100%/6 - 0.5px),
            rgba(12,74,130,.10) calc(100%/6 + 0.5px),
            transparent calc(100%/6 + 0.5px)),
        linear-gradient(to right,
            transparent calc(2*100%/6 - 0.5px),
            rgba(12,74,130,.10) calc(2*100%/6 - 0.5px),
            rgba(12,74,130,.10) calc(2*100%/6 + 0.5px),
            transparent calc(2*100%/6 + 0.5px)),
        linear-gradient(to right,
            transparent calc(3*100%/6 - 0.5px),
            rgba(12,74,130,.10) calc(3*100%/6 - 0.5px),
            rgba(12,74,130,.10) calc(3*100%/6 + 0.5px),
            transparent calc(3*100%/6 + 0.5px)),
        linear-gradient(to right,
            transparent calc(4*100%/6 - 0.5px),
            rgba(12,74,130,.10) calc(4*100%/6 - 0.5px),
            rgba(12,74,130,.10) calc(4*100%/6 + 0.5px),
            transparent calc(4*100%/6 + 0.5px)),
        linear-gradient(to right,
            transparent calc(5*100%/6 - 0.5px),
            rgba(12,74,130,.10) calc(5*100%/6 - 0.5px),
            rgba(12,74,130,.10) calc(5*100%/6 + 0.5px),
            transparent calc(5*100%/6 + 0.5px));
    pointer-events: none;
}
.pipeline-stage-fill {
    position: absolute; left: 0; top: 0; bottom: 0;
    border-radius: 18px 0 0 18px;
    background: linear-gradient(90deg, var(--c-teal) 0%, var(--c-navy) 100%);
    transition: width .8s cubic-bezier(.18,.7,.34,1);
}
.pipeline-stage-fill.full { border-radius: 18px; }
.pipeline-stage-fill::after {
    /* triangle/chevron at the leading edge */
    content: "";
    position: absolute;
    right: -10px; top: 50%; transform: translateY(-50%);
    border-left: 12px solid var(--c-navy);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}
.pipeline-stage-fill.full::after { display: none; }

.pipeline-row .program-status {
    font-size: .82rem; line-height: 1.35; text-align: right;
}
.pipeline-row .program-status .status-pill {
    display: inline-block; padding: .2rem .65rem;
    background: var(--c-bg-alt2); color: var(--c-navy);
    border-radius: 999px; font-weight: 600;
    margin-bottom: 4px;
    font-size: .8rem;
}
.status-pill.is-active   { background: #fff5d8; color: #8a5a00; }
.status-pill.is-complete { background: #d6f0e0; color: #115b3b; }
.status-pill.is-ready    { background: #d0e3f5; color: #0c4a82; }
.status-pill.is-preclin  { background: #efe3f5; color: #5b1d7a; }
.status-pill.is-funded   { background: #fce8c4; color: #7a4f00; }
.program-status .badges {
    display: flex; flex-wrap: wrap; gap: 4px;
    justify-content: flex-end;
    margin-top: 2px;
}
.program-status .badge {
    display: inline-block;
    padding: .12rem .5rem;
    border: 1px solid var(--c-border);
    border-radius: 4px;
    font-size: .72rem;
    color: var(--c-text-mute);
    text-transform: uppercase; letter-spacing: .04em;
    background: #fff;
}

/* Stage labels under chart */
.pipeline-stage-labels {
    display: grid;
    grid-template-columns: 220px 110px 1fr 180px;
    gap: 1.25rem;
    padding: .5rem 1.5rem 1rem;
    background: var(--c-bg-alt);
    border-top: 1px solid var(--c-border);
}
.pipeline-stage-labels .stage-cols {
    display: grid; grid-template-columns: repeat(6, 1fr);
    font-size: .72rem; color: var(--c-text-mute);
    font-weight: 600;
    text-transform: uppercase; letter-spacing: .06em;
    text-align: center;
}
.pipeline-stage-labels .stage-cols span {
    border-right: 1px solid transparent;
    padding: 0 4px;
    line-height: 1.2;
}

/* Detail row (expand) */
.pipeline-row .program-detail {
    grid-column: 1 / -1;
    padding-top: 1rem; margin-top: .25rem;
    display: none;
    border-top: 1px dashed var(--c-border);
    color: var(--c-text-soft); font-size: .95rem;
}
.pipeline-row.open .program-detail { display: block; }
.pipeline-row .program-detail dl { margin: 0; }
.pipeline-row .program-detail dt {
    font-weight: 700; color: var(--c-navy); margin-top: .65rem;
    text-transform: uppercase; letter-spacing: .06em; font-size: .75rem;
}
.pipeline-row .program-detail dd { margin: .25rem 0 0; }

@media (max-width: 880px) {
    .pipeline-chart-head,
    .pipeline-row,
    .pipeline-stage-labels {
        grid-template-columns: 1fr;
        gap: .65rem;
    }
    .pipeline-chart-head { display: none; }
    .pipeline-row { padding: 1.25rem; }
    .pipeline-row .program-asset { font-size: .85rem; }
    .pipeline-row .program-status { text-align: left; }
    .pipeline-stage-labels { display: none; }
}

/* --- Team grid (still used on About) --- */
.team-grid {
    display: grid; gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.team-grid-compact {
    display: grid; gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}
.team-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.team-card.compact {
    flex-direction: row;
    align-items: stretch;
}
.team-card.compact .team-photo {
    aspect-ratio: 1;
    width: 140px;
    flex: 0 0 140px;
}
.team-card.compact .team-body {
    padding: 1rem 1.25rem;
    flex: 1;
}
.team-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.team-photo {
    aspect-ratio: 1 / 1.05;
    width: 100%; object-fit: cover; background: var(--c-bg-alt);
}
.team-body { padding: 1.4rem; }
.team-name { margin: 0 0 .15rem; font-size: 1.1rem; color: var(--c-navy); }
.team-title { color: var(--c-text-soft); font-weight: 500; margin: 0 0 .65rem; font-size: .9rem; }
.team-bio-toggle {
    background: transparent; border: 0; color: var(--c-teal);
    padding: 0; cursor: pointer; font-weight: 600; font-size: .9rem;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: .25rem;
    font-family: inherit;
}
.team-bio-toggle::after { content: " →"; }
.team-bio-toggle[aria-expanded="true"]::after { content: " ↑"; }
.team-bio-toggle:hover { color: var(--c-navy); }
.team-bio { display: none; margin-top: .75rem; font-size: .92rem; color: var(--c-text-soft); }
.team-bio.open { display: block; }

/* --- News --- */
.news-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.news-item {
    background: #fff; padding: 1.65rem 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-border);
    border-left: 4px solid var(--c-teal);
    transition: box-shadow .15s, transform .15s;
}
.news-item:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.news-date {
    color: var(--c-teal); font-weight: 600; font-size: .82rem;
    text-transform: uppercase; letter-spacing: .1em; margin-bottom: .35rem;
}
.news-title { margin: 0 0 .55rem; color: var(--c-navy); font-size: 1.15rem; }

.news-teaser-grid {
    display: grid; gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.news-teaser {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s, transform .15s, border-color .15s;
    display: flex; flex-direction: column;
    height: 100%;
}
.news-teaser:hover {
    box-shadow: var(--shadow);
    border-color: var(--c-teal-light);
    transform: translateY(-2px);
    color: inherit;
}
.news-teaser .news-date { margin-bottom: .35rem; }
.news-teaser h3 { font-size: 1.05rem; color: var(--c-navy); margin-bottom: .5rem; }
.news-teaser .read-more {
    margin-top: auto; padding-top: .75rem;
    color: var(--c-teal); font-weight: 600; font-size: .88rem;
}
.news-teaser .read-more::after { content: " →"; }

/* --- Publications --- */
.pub-group { margin-bottom: 2.25rem; }
.pub-group:last-child { margin-bottom: 0; }
.pub-category-title {
    font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--c-accent, var(--c-navy)); margin: 0 0 .35rem;
    padding-bottom: .5rem; border-bottom: 2px solid var(--c-border);
}
.pub-list { list-style: none; padding: 0; margin: 0; }
.pub-item {
    padding: 1.1rem 0; border-bottom: 1px solid var(--c-border);
}
.pub-item:last-child { border-bottom: 0; }
.pub-title { font-weight: 600; color: var(--c-navy); font-size: 1.02rem; }
.pub-meta { color: var(--c-text-mute); font-size: .9rem; margin-top: .15rem; }

/* --- Patient blocks (used on /patients) --- */
.patient-block {
    background: #fff; border: 1px solid var(--c-border);
    border-left: 4px solid var(--c-accent);
    padding: 1.6rem 1.85rem; border-radius: var(--radius);
    margin-bottom: 1.25rem;
}
.patient-block h3 { margin-top: 0; }
.callout {
    background: #fff8e1; border-left: 4px solid var(--c-warning);
    padding: 1.1rem 1.3rem; border-radius: var(--radius);
    margin: 1.5rem 0;
}

/* --- Indication summary cards (Science page) --- */
.science-grid {
    display: grid; gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.science-card {
    background: #fff; padding: 1.6rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    border-top: 4px solid var(--c-teal);
    transition: transform .15s, box-shadow .15s;
}
.science-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.science-card h3 { margin: 0 0 .65rem; color: var(--c-navy); font-size: 1.1rem; }
.science-card ul { margin-left: 1rem; color: var(--c-text-soft); }
.science-card ul li { margin-bottom: .45rem; }

/* --- Tables --- */
.data-table {
    width: 100%; border-collapse: collapse; font-size: .95rem;
    background: #fff; border: 1px solid var(--c-border);
    border-radius: var(--radius); overflow: hidden;
}
.data-table th, .data-table td {
    padding: .85rem 1.15rem; text-align: left;
    border-bottom: 1px solid var(--c-border);
}
.data-table thead th {
    background: var(--c-navy); color: #fff; font-weight: 600;
    font-size: .85rem; text-transform: uppercase; letter-spacing: .04em;
}
.data-table tbody tr:hover { background: var(--c-bg-alt); }
.data-table tbody tr:last-child td { border-bottom: 0; }

/* --- Footer --- */
.site-footer {
    background: var(--c-navy-deep); color: #cbd6e3;
    padding: 4rem 0 1.5rem;
}
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer h3 { font-size: 1rem; margin-bottom: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { color: #cfe6f5; }
.site-footer a:hover { color: #fff; }
.footer-inner {
    display: grid; gap: 2.5rem;
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
}
.footer-logo { height: 48px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { color: #94a8c0; font-size: .92rem; max-width: 38ch; }
.footer-brand address { font-style: normal; color: #cbd6e3; font-size: .92rem; line-height: 1.6; margin-top: .85rem; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: .5rem; }
.footer-nav a { text-decoration: none; font-size: .92rem; }
.footer-contact p { color: #cbd6e3; font-size: .92rem; line-height: 1.6; }
.footer-bottom {
    margin-top: 3rem; padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #6b7c93; font-size: .85rem;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem;
}

@media (max-width: 800px) {
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* --- Forms (admin) --- */
.form-stack { display: grid; gap: 1rem; max-width: 720px; }
.form-row { display: grid; gap: .35rem; }
.form-row label { font-weight: 600; color: var(--c-navy); }
.form-row input[type=text],
.form-row input[type=email],
.form-row input[type=password],
.form-row input[type=url],
.form-row input[type=date],
.form-row input[type=number],
.form-row input[type=file],
.form-row select,
.form-row textarea {
    width: 100%; padding: .7rem .85rem; border: 1px solid var(--c-border);
    border-radius: var(--radius-sm); font-size: 1rem; font-family: inherit;
    background: #fff;
}
.form-row textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.form-row .help { color: var(--c-text-mute); font-size: .85rem; }
.form-row.invalid input,
.form-row.invalid textarea,
.form-row.invalid select { border-color: var(--c-danger); }
.form-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.checkbox-row { display: flex; align-items: center; gap: .5rem; }

/* --- Alerts / flash --- */
.alert {
    padding: .9rem 1.15rem; border-radius: var(--radius);
    margin-bottom: 1.25rem; border-left: 4px solid;
}
.alert-success { background: #ecf8f1; border-color: var(--c-success); color: #115b3b; }
.alert-error   { background: #fbe9e9; border-color: var(--c-danger);  color: #7c1c1c; }
.alert-info    { background: #e8f0f8; border-color: var(--c-navy);    color: var(--c-navy-deep); }

/* --- Admin shell --- */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--c-navy-deep); color: #cfd8e3; padding: 1.5rem 1rem; }
.admin-sidebar h2 { color: #fff; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.admin-nav { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.admin-nav li { margin-bottom: .25rem; }
.admin-nav a { display: block; padding: .55rem .75rem; border-radius: var(--radius-sm); color: #cfd8e3; text-decoration: none; font-weight: 500; }
.admin-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav a.active { background: var(--c-navy); color: #fff; }
.admin-main { padding: 2rem; background: var(--c-bg-alt); }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 1rem 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 1.5rem; }
.admin-topbar .who { color: var(--c-text-soft); font-size: .9rem; }
.admin-table-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: .75rem; }

@media (max-width: 800px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: sticky; top: 0; padding: 1rem; }
    .admin-nav { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: 0; }
    .admin-nav a { padding: .5rem .8rem; }
}

/* --- Admin cards & dashboard panels --- */
.card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.card h3 { color: var(--c-navy-deep); margin: 0 0 .75rem; font-size: 1.05rem; }

.admin-panels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.admin-panel {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--c-border);
    border-top: 3px solid var(--c-teal);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease, transform .2s ease;
}
.admin-panel:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.admin-panel__head { display: flex; align-items: center; gap: .85rem; margin-bottom: .9rem; }
.admin-panel__icon {
    flex: none;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: var(--c-bg-alt2);
    color: var(--c-navy);
}
.admin-panel__icon svg { width: 22px; height: 22px; }
.admin-panel__title { margin: 0; font-size: 1.1rem; color: var(--c-navy-deep); }
.admin-panel__count {
    display: flex; align-items: baseline; gap: .4rem;
    margin: 0 0 .4rem;
}
.admin-panel__count b { font-size: 2rem; line-height: 1; color: var(--c-navy); }
.admin-panel__count span { color: var(--c-text-mute); font-size: .9rem; }
.admin-panel__desc { margin: 0 0 1.25rem; color: var(--c-text-soft); font-size: .92rem; line-height: 1.5; }
.admin-panel__actions { margin-top: auto; display: flex; gap: .6rem; flex-wrap: wrap; }

@media (max-width: 720px) {
    .admin-panels { grid-template-columns: 1fr; }
}

/* --- Login screen --- */
.login-split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Left: gradient hero panel */
.login-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: 3.5rem;
    color: #fff;
    background: linear-gradient(135deg, var(--c-navy-deep), var(--c-teal));
    overflow: hidden;
}
.login-hero::after {
    content: "";
    position: absolute;
    right: -20%;
    bottom: -25%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(255,255,255,0.10), transparent 70%);
    pointer-events: none;
}
.login-hero__logo { width: 190px; max-width: 60%; height: auto; }
.login-hero__body { position: relative; max-width: 30rem; }
.login-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    font-weight: 600;
    color: var(--c-teal-light);
    margin-bottom: .75rem;
}
.login-hero__body h2 {
    color: #fff;
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: .9rem;
}
.login-hero__body p {
    color: rgba(255,255,255,0.82);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}
.login-hero__foot {
    position: relative;
    font-size: .82rem;
    color: rgba(255,255,255,0.6);
}

/* Right: form pane */
.login-pane {
    display: grid;
    place-items: center;
    padding: 2.5rem 1.5rem;
    background: var(--c-bg);
}
.login-card {
    width: 100%;
    max-width: 380px;
}
.login-card h1 { color: var(--c-navy-deep); margin-bottom: .25rem; }
.login-card .login-sub { color: var(--c-text-mute); margin-bottom: 1.5rem; }

@media (max-width: 820px) {
    .login-split { grid-template-columns: 1fr; }
    .login-hero {
        padding: 2.5rem 1.75rem;
        gap: 1.5rem;
        min-height: auto;
    }
    .login-hero__body h2 { font-size: 1.6rem; }
    .login-hero__foot { display: none; }
}

/* --- Scroll-fade animation --- */
.scroll-fade {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s ease;
    will-change: opacity, transform;
}
.scroll-fade.in-view {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .scroll-fade { opacity: 1; transform: none; transition: none; }
}

/* --- Responsive helpers --- */
@media (max-width: 720px) {
    .data-table { font-size: .9rem; }
    .data-table th, .data-table td { padding: .6rem .7rem; }
}
