/* ============================================
   MDY ANALYTICS - DESIGN SYSTEM
   Version: 3.0
   Last Updated: September 2026

   Palette derived from the MDY logo (indigo and lime).
   Type: Bricolage Grotesque (headlines), Inter (text).
   Both self-hosted from assets/fonts under the OFL.

   Sections:
   1. Fonts
   2. Tokens
   3. Base and typography
   4. Layout and buttons
   5. Header and navigation
   6. Footer
   7. Home: hero and trajectory chart
   8. Home: PARIS AI band
   9. Home: solutions ledger
   10. Home: partnership
   11. Motion and accessibility
   12. Responsive
   ============================================ */

/* ============================================
   1. FONTS
   ============================================ */
@font-face {
    font-family: "Bricolage Grotesque";
    src: url("../fonts/BricolageGrotesque-Variable.woff2") format("woff2");
    font-weight: 200 800;
    font-stretch: 75% 100%;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/InterVariable.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

/* ============================================
   2. TOKENS
   ============================================ */
:root {
    --indigo: #302878;
    --indigo-deep: #211B5C;
    --indigo-tint: #E9E7F4;
    --lime: #90C020;
    --lime-deep: #79A417;
    --lime-tint: #EEF6D9;
    --ink: #14142B;
    --ink-soft: #4B4B63;
    --ink-mute: #7C7C92;
    --paper: #F5F6FA;
    --line: #DADCE6;
    --signal: #E0532F;
    --white: #FFFFFF;

    --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
    --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --measure: 62ch;
    --container: 1200px;
    --gutter: clamp(20px, 4vw, 40px);

    --s-1: 0.5rem;
    --s-2: 1rem;
    --s-3: 1.5rem;
    --s-4: 2rem;
    --s-5: 3rem;
    --s-6: 4.5rem;
    --s-7: 6.5rem;

    --radius: 6px;
    --radius-lg: 12px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================
   3. BASE AND TYPOGRAPHY
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-text);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

[hidden] {
    display: none !important;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--indigo);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--indigo-deep);
}

ul,
ol {
    list-style: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--ink);
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.9rem);
    font-weight: 800;
    font-variation-settings: "opsz" 96, "wdth" 100;
    line-height: 1.02;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-variation-settings: "opsz" 72;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    font-variation-settings: "opsz" 24;
    line-height: 1.25;
}

p {
    max-width: var(--measure);
}

.lede {
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--ink-soft);
}

.small {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--ink-soft);
}

.sr-only {
    position: absolute;
    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;
    top: -100px;
    left: var(--gutter);
    padding: 0.75rem 1rem;
    background: var(--ink);
    color: var(--white);
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 200;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   4. LAYOUT AND BUTTONS
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    padding: var(--s-7) 0;
}

.section-head {
    max-width: 44rem;
    margin-bottom: var(--s-5);
}

.section-head p {
    margin-top: var(--s-2);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.4rem;
    font-family: var(--font-text);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn svg {
    width: 1.1em;
    height: 1.1em;
    flex: none;
}

.btn-primary {
    background: var(--lime);
    color: var(--ink);
}

.btn-primary:hover {
    background: var(--lime-deep);
    color: var(--ink);
}

.btn-outline {
    background: transparent;
    color: var(--indigo);
    border: 1.5px solid var(--indigo);
}

.btn-outline:hover {
    background: var(--indigo);
    color: var(--white);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    text-decoration: none;
}

.link-arrow svg {
    width: 1.05em;
    height: 1.05em;
    transition: transform 0.18s var(--ease);
}

.link-arrow:hover svg {
    transform: translateX(3px);
}

/* ============================================
   5. HEADER AND NAVIGATION
   ============================================ */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(245, 246, 250, 0.92);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s var(--ease);
}

header.scrolled {
    border-bottom-color: var(--line);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    height: 76px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--indigo);
}

.logo-container img {
    width: 38px;
    height: 38px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--indigo);
    font-variation-settings: "opsz" 24;
}

nav ul {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.4vw, 2rem);
}

nav ul li a {
    display: inline-block;
    padding: 0.35rem 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--indigo);
    border-bottom-color: var(--lime);
}

nav ul li.nav-cta {
    margin-left: 0.5rem;
}

nav ul li.nav-cta a {
    padding: 0.6rem 1rem;
    border: 0;
    border-radius: var(--radius);
    background: var(--indigo);
    color: var(--white);
    font-weight: 600;
}

nav ul li.nav-cta a:hover,
nav ul li.nav-cta a.active {
    background: var(--indigo-deep);
    color: var(--white);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    border-radius: var(--radius);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

header.nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

header.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

header.nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   6. FOOTER
   ============================================ */
footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.72);
    padding: var(--s-6) 0 var(--s-4);
    font-size: 0.9375rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: var(--s-5);
    padding-bottom: var(--s-5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand .logo-container {
    color: var(--white);
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    margin-top: var(--s-2);
    max-width: 30ch;
}

.footer-col h4 {
    font-family: var(--font-text);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--s-2);
}

.footer-col ul li {
    margin-bottom: 0.55rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--white);
    text-decoration: underline;
}

.office-locations {
    display: grid;
    gap: var(--s-3);
}

.location-name {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.footer-bottom {
    padding-top: var(--s-4);
    font-size: 0.8125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
}

.footer-bottom p {
    max-width: none;
}

.footer-bottom p + p {
    margin-top: 0.4rem;
}

/* ============================================
   7. HOME: HERO AND TRAJECTORY CHART
   ============================================ */
.hero {
    padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hero-copy .lede {
    margin-top: var(--s-3);
    max-width: 34rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-2) var(--s-3);
    margin-top: var(--s-4);
}

.hero-evidence {
    margin-top: var(--s-5);
    padding-top: var(--s-3);
    border-top: 1px solid var(--line);
    max-width: 34rem;
}

.hero-evidence cite {
    display: block;
    margin-top: 0.4rem;
    font-style: normal;
    color: var(--ink-mute);
}

.chart-figure {
    margin: 0;
}

.chart-figure figcaption {
    margin-top: var(--s-2);
    font-size: 0.8125rem;
    color: var(--ink-mute);
}

.trajectory {
    width: 100%;
    height: auto;
    overflow: visible;
    font-family: var(--font-text);
}

.trajectory .grid {
    stroke: var(--line);
    stroke-width: 1;
}

.trajectory .axis-label {
    fill: var(--ink-mute);
    font-size: 14px;
}

.trajectory .observed {
    fill: none;
    stroke: var(--indigo);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trajectory .fan {
    fill: var(--indigo);
    fill-opacity: 0.14;
    transform-box: fill-box;
    transform-origin: left center;
}

.trajectory .median {
    fill: none;
    stroke: var(--indigo);
    stroke-width: 2;
    stroke-dasharray: 5 6;
    stroke-linecap: round;
}

.trajectory .threshold {
    fill: none;
    stroke: var(--signal);
    stroke-width: 1.75;
    stroke-dasharray: 8 6;
}

.trajectory .threshold-label {
    fill: var(--signal);
    font-size: 14px;
    font-weight: 600;
}

.trajectory .now-line {
    stroke: var(--ink-mute);
    stroke-width: 1;
    stroke-dasharray: 3 4;
}

.trajectory .now-label {
    fill: var(--ink-soft);
    font-size: 14px;
    font-weight: 600;
}

.trajectory .window {
    fill: var(--lime);
    fill-opacity: 0.28;
}

.trajectory .window-bracket {
    fill: none;
    stroke: var(--lime-deep);
    stroke-width: 2;
}

.trajectory .window-label {
    fill: var(--ink);
    font-size: 16px;
    font-weight: 600;
}

.trajectory .crossing {
    fill: var(--white);
    stroke: var(--signal);
    stroke-width: 3;
}

/* One orchestrated draw on load */
.trajectory .observed {
    stroke-dasharray: 700;
    stroke-dashoffset: 700;
    animation: draw 1.4s var(--ease) 0.2s forwards;
}

.trajectory .fan {
    transform: scaleX(0);
    animation: fan 0.9s var(--ease) 1.4s forwards;
}

.trajectory .median {
    opacity: 0;
    animation: appear 0.5s var(--ease) 1.9s forwards;
}

.trajectory .threshold,
.trajectory .threshold-label {
    opacity: 0;
    animation: appear 0.5s var(--ease) 2.2s forwards;
}

.trajectory .window,
.trajectory .window-bracket,
.trajectory .window-label,
.trajectory .crossing {
    opacity: 0;
    animation: appear 0.6s var(--ease) 2.7s forwards;
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

@keyframes fan {
    to { transform: scaleX(1); }
}

@keyframes appear {
    to { opacity: 1; }
}

/* ============================================
   8. HOME: PARIS AI BAND
   ============================================ */
.paris-band {
    background: var(--indigo);
    color: var(--white);
}

.paris-band h2,
.paris-band h3 {
    color: var(--white);
}

.paris-band .section-head p {
    color: rgba(255, 255, 255, 0.78);
}

.paris-name {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--lime);
    margin-bottom: var(--s-2);
}

.pillars {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--s-4);
    padding-top: var(--s-4);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.pillar svg {
    width: 32px;
    height: 32px;
    color: var(--lime);
    margin-bottom: var(--s-2);
}

.pillar h3 {
    margin-bottom: 0.5rem;
}

.pillar p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.paris-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
    margin-top: var(--s-5);
    padding-top: var(--s-4);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.paris-foot p {
    color: rgba(255, 255, 255, 0.78);
    max-width: 44rem;
}

.paris-foot .link-arrow {
    color: var(--white);
}

/* ============================================
   9. HOME: SOLUTIONS LEDGER
   ============================================ */
.ledger-section {
    background: var(--white);
}

.ledger {
    border-top: 1px solid var(--line);
}

.ledger-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) auto;
    gap: var(--s-3) var(--s-4);
    align-items: center;
    padding: var(--s-3) 0;
    border-bottom: 1px solid var(--line);
}

.ledger-row h3 {
    font-size: 1.375rem;
}

.ledger-row .kind {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.875rem;
    color: var(--ink-mute);
}

.ledger-row p {
    color: var(--ink-soft);
    font-size: 1rem;
}

.ledger-row .link-arrow {
    justify-self: end;
}

/* ============================================
   10. HOME: PARTNERSHIP
   ============================================ */
.partner-section {
    background: var(--paper);
}

.partner-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: var(--s-5);
    align-items: center;
}

.partner-grid .lede {
    margin-top: var(--s-2);
}

.partner-grid .hero-actions {
    margin-top: 0;
    justify-content: flex-end;
}

/* ============================================
   11. MOTION AND ACCESSIBILITY
   ============================================ */
:focus-visible {
    outline: 3px solid var(--lime-deep);
    outline-offset: 3px;
}

.paris-band :focus-visible,
footer :focus-visible {
    outline-color: var(--lime);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .trajectory .observed,
    .trajectory .fan,
    .trajectory .median,
    .trajectory .threshold,
    .trajectory .threshold-label,
    .trajectory .window,
    .trajectory .window-bracket,
    .trajectory .window-label,
    .trajectory .crossing {
        animation: none;
        opacity: 1;
        stroke-dashoffset: 0;
        transform: none;
    }

    .link-arrow svg,
    .menu-toggle span {
        transition: none;
    }
}

/* ============================================
   12. RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .pillars {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy .lede,
    .hero-evidence {
        max-width: var(--measure);
    }

    .partner-grid {
        grid-template-columns: 1fr;
    }

    .partner-grid .hero-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .section {
        padding: var(--s-6) 0;
    }

    .header-container {
        height: 64px;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s var(--ease);
    }

    header.nav-open nav {
        max-height: 420px;
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: var(--s-2) var(--gutter) var(--s-3);
    }

    nav ul li a {
        display: block;
        padding: 0.8rem 0;
        font-size: 1.0625rem;
        border-bottom: 1px solid var(--line);
    }

    nav ul li a:hover,
    nav ul li a.active {
        border-bottom-color: var(--line);
    }

    nav ul li.nav-cta {
        margin: var(--s-2) 0 0;
    }

    nav ul li.nav-cta a {
        text-align: center;
        border-bottom: 0;
    }

    .ledger-row {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .ledger-row .link-arrow {
        justify-self: start;
    }
}

@media (max-width: 600px) {
    .pillars {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   13. INNER PAGES: OPENER AND PROSE
   ============================================ */
.page-opener {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
}

.page-opener h1 {
    font-size: clamp(2.25rem, 4.6vw, 3.5rem);
}

.page-opener .lede {
    margin-top: var(--s-2);
    max-width: 40rem;
}

.section-white {
    background: var(--white);
}

.prose p + p {
    margin-top: var(--s-2);
}

.prose ul {
    margin-top: var(--s-2);
}

.pull {
    margin: var(--s-4) 0;
    padding-left: var(--s-3);
    border-left: 3px solid var(--lime);
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--indigo);
    max-width: 30ch;
}

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--s-6);
    align-items: start;
}

.cols-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-5) var(--s-4);
}

.sheet {
    padding-top: var(--s-3);
    border-top: 2px solid var(--indigo);
}

.sheet .kind {
    display: block;
    margin: 0.25rem 0 var(--s-2);
    font-size: 0.875rem;
    color: var(--ink-mute);
}

.sheet p {
    color: var(--ink-soft);
    font-size: 1rem;
}

.sheet h4 {
    font-family: var(--font-text);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    margin: var(--s-3) 0 0.5rem;
}

.sheet ul li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.9375rem;
    color: var(--ink-soft);
    line-height: 1.5;
    margin-bottom: 0.35rem;
}

.sheet ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime-deep);
}

.sheet .link-arrow {
    margin-top: var(--s-3);
}

.icon-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--s-4);
}

.icon-row svg {
    width: 32px;
    height: 32px;
    color: var(--indigo);
    margin-bottom: var(--s-2);
}

.icon-row h3 {
    margin-bottom: 0.4rem;
}

.icon-row p {
    color: var(--ink-soft);
    font-size: 0.9375rem;
}

/* ============================================
   14. SOLUTIONS: EVIDENCE, QUESTIONS, APPLICATIONS
   ============================================ */
.evidence {
    display: grid;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.evidence li {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: var(--s-3);
    align-items: baseline;
    padding: var(--s-2) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.evidence .figure {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--lime);
    font-variation-settings: "opsz" 48;
}

.evidence p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
}

.evidence-source {
    margin-top: var(--s-2);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.55);
}

.questions {
    margin-top: var(--s-3);
}

.questions li {
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.85);
}

.questions li strong {
    color: var(--white);
    font-weight: 600;
}

.paris-band .two-col h3 {
    margin-bottom: var(--s-2);
}

.applications {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--s-3);
    margin-top: var(--s-4);
}

.applications li {
    padding: var(--s-2) 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.applications strong {
    display: block;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.applications span {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.72);
}

/* ============================================
   15. ABOUT: VALUES AND TIMELINE
   ============================================ */
.values li {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: var(--s-2);
    padding: var(--s-2) 0;
    border-top: 1px solid var(--line);
}

.values li:last-child {
    border-bottom: 1px solid var(--line);
}

.values svg {
    width: 24px;
    height: 24px;
    color: var(--lime-deep);
    margin-top: 0.15rem;
}

.values h3 {
    margin-bottom: 0.25rem;
}

.values p {
    color: var(--ink-soft);
    font-size: 0.9375rem;
}

.timeline {
    display: grid;
    gap: 0;
    max-width: 44rem;
}

.timeline li {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: var(--s-3);
    padding: var(--s-3) 0;
    border-top: 1px solid var(--line);
}

.timeline li:last-child {
    border-bottom: 1px solid var(--line);
}

.timeline .year {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--indigo);
    font-variation-settings: "opsz" 48;
    line-height: 1.2;
}

.timeline h3 {
    margin-bottom: 0.3rem;
}

.timeline p {
    color: var(--ink-soft);
    font-size: 1rem;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: var(--s-3);
}

.badges li {
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    color: var(--ink-soft);
    background: var(--white);
}

/* ============================================
   16. TEAM
   ============================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-6) var(--s-4);
}

.member img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--indigo-tint);
}

.member h3 {
    margin-top: var(--s-2);
    font-size: 1.375rem;
}

.member .role {
    display: block;
    margin: 0.2rem 0 0.75rem;
    font-size: 0.9375rem;
    color: var(--indigo);
    font-weight: 600;
}

.member p {
    color: var(--ink-soft);
    font-size: 0.9375rem;
}

.member-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin-top: 0.75rem;
}

.member-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink-soft);
}

.member-links a:hover {
    color: var(--indigo);
}

.member-links svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   17. CONTACT
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: var(--s-6);
    align-items: start;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-2) var(--s-3);
}

.form-group {
    margin-bottom: var(--s-3);
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9375rem;
    font-weight: 600;
}

.form-group label .optional {
    font-weight: 400;
    color: var(--ink-mute);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 0.9rem;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--indigo);
    box-shadow: 0 0 0 3px var(--indigo-tint);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--signal);
}

.form-group textarea {
    min-height: 9rem;
    resize: vertical;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B4B63' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1.1rem;
    padding-right: 2.6rem;
}

.form-check {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin-bottom: var(--s-3);
    font-size: 0.9375rem;
    color: var(--ink-soft);
}

.form-check input {
    margin-top: 0.3rem;
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--indigo);
}

.success-message {
    margin-bottom: var(--s-3);
    padding: var(--s-2) var(--s-3);
    background: var(--lime-tint);
    border: 1px solid var(--lime);
    border-radius: var(--radius);
}

.success-message h3 {
    margin-bottom: 0.25rem;
}

.success-message p {
    color: var(--ink-soft);
    font-size: 0.9375rem;
}

.contact-details {
    display: grid;
    gap: var(--s-3);
}

.contact-details > div {
    padding-top: var(--s-2);
    border-top: 1px solid var(--line);
}

.contact-details h3 {
    margin-bottom: 0.3rem;
}

.contact-details p {
    color: var(--ink-soft);
}

.contact-details address {
    font-style: normal;
    color: var(--ink-soft);
}

.map-container {
    margin-top: var(--s-5);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--indigo-tint);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

/* ============================================
   18. BLOG
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: var(--s-6);
    align-items: start;
}

.blog-posts-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--s-3);
    margin-bottom: var(--s-3);
}

.results-count {
    margin-top: 0.3rem;
    font-size: 0.875rem;
    color: var(--ink-mute);
}

.results-count:empty {
    display: none;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--indigo);
    border-radius: var(--radius);
    color: var(--indigo);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.filter-badge svg {
    width: 14px;
    height: 14px;
}

.filter-badge:hover {
    background: var(--indigo);
    color: var(--white);
}

.blog-posts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4);
}

.blog-post {
    display: flex;
    flex-direction: column;
    padding-top: var(--s-2);
    border-top: 2px solid var(--indigo);
}

.blog-post.featured {
    grid-column: 1 / -1;
    border-top-width: 3px;
}

.blog-post .post-category {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--indigo);
}

.blog-post .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin: 0.35rem 0 0.6rem;
    font-size: 0.8125rem;
    color: var(--ink-mute);
}

.blog-post h2 {
    font-size: 1.25rem;
    font-variation-settings: "opsz" 24;
    line-height: 1.25;
}

.blog-post.featured h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-variation-settings: "opsz" 48;
}

.blog-post h2 a {
    color: var(--ink);
    text-decoration: none;
}

.blog-post h2 a:hover {
    color: var(--indigo);
    text-decoration: underline;
}

.blog-post .post-content > p {
    margin: 0.6rem 0 0.9rem;
    color: var(--ink-soft);
    font-size: 0.9375rem;
    flex: 1;
}

.blog-post.featured .post-content > p {
    font-size: 1.0625rem;
    max-width: 60ch;
}

.blog-post .post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-post .post-meta svg {
    width: 14px;
    height: 14px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--indigo);
}

.read-more svg {
    width: 1em;
    height: 1em;
    transition: transform 0.18s var(--ease);
}

.read-more:hover svg {
    transform: translateX(3px);
}

.blog-post .read-more {
    font-size: 0.9375rem;
}

.blog-post[hidden] {
    display: none;
}

.no-results {
    padding: var(--s-5) 0;
    text-align: left;
    border-top: 1px solid var(--line);
}

.no-results p {
    margin-bottom: var(--s-2);
    color: var(--ink-soft);
}

.pagination {
    display: flex;
    gap: 0.5rem;
    margin-top: var(--s-5);
}

.pagination:empty {
    display: none;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 0.6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--ink-soft);
    background: var(--white);
}

.pagination-btn:hover:not(:disabled):not(.active) {
    border-color: var(--indigo);
    color: var(--indigo);
}

.pagination-btn.active {
    background: var(--indigo);
    border-color: var(--indigo);
    color: var(--white);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.pagination-btn svg {
    width: 18px;
    height: 18px;
}

.newsletter-panel {
    margin-top: var(--s-6);
    padding-top: var(--s-4);
    border-top: 1px solid var(--line);
}

.newsletter-panel p {
    margin: var(--s-2) 0;
    color: var(--ink-soft);
}

.sidebar {
    display: grid;
    gap: var(--s-5);
}

.sidebar-widget h3 {
    margin-bottom: var(--s-2);
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    font: inherit;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.search-form input:focus {
    outline: none;
    border-color: var(--indigo);
    box-shadow: 0 0 0 3px var(--indigo-tint);
}

.search-form .btn {
    padding: 0.7rem 0.9rem;
    background: var(--indigo);
    color: var(--white);
}

.search-form .btn:hover {
    background: var(--indigo-deep);
    color: var(--white);
}

.sidebar-widget ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.9375rem;
    text-decoration: none;
}

.sidebar-widget ul li:last-child a {
    border-bottom: 1px solid var(--line);
}

.sidebar-widget ul li a:hover,
.sidebar-widget ul li a.is-active {
    color: var(--indigo);
}

.sidebar-widget ul li a .count {
    min-width: 1.6rem;
    text-align: center;
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius);
    background: var(--indigo-tint);
    color: var(--indigo);
    font-size: 0.8125rem;
    font-weight: 600;
}

.sidebar-widget ul li a.is-active .count {
    background: var(--indigo);
    color: var(--white);
}

.newsletter-widget {
    padding: var(--s-3);
    background: var(--indigo);
    color: var(--white);
    border-radius: var(--radius-lg);
}

.newsletter-widget h3 {
    color: var(--white);
}

.newsletter-widget > p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--s-2);
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.6rem;
    font: inherit;
    border: 1px solid transparent;
    border-radius: var(--radius);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--lime);
    box-shadow: 0 0 0 3px rgba(144, 192, 32, 0.35);
}

.newsletter-form .btn {
    width: 100%;
    justify-content: center;
    background: var(--lime);
    color: var(--ink);
}

.newsletter-form .btn:hover {
    background: var(--lime-deep);
}

.newsletter-form .btn:disabled {
    opacity: 0.6;
}

.newsletter-note {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-success {
    margin-top: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.9375rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    font-size: 0.875rem;
    color: var(--ink-soft);
    text-decoration: none;
}

.tag:hover,
.tag.is-active {
    border-color: var(--indigo);
    color: var(--indigo);
}

.tag.is-active {
    background: var(--indigo);
    color: var(--white);
}

/* ============================================
   19. INNER PAGES: RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .icon-row,
    .applications {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .two-col,
    .contact-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-posts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .cols-3,
    .icon-row,
    .applications,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .evidence li {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .timeline li {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .blog-posts-header {
        flex-direction: column;
    }
}

/* ============================================
   20. LANDING PAGE: PARIS AI SEPSIS AEP
   ============================================ */
.hero-dark {
    background: var(--indigo);
    color: var(--white);
    padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero-dark h1 {
    color: var(--white);
}

.hero-dark .lede {
    color: rgba(255, 255, 255, 0.82);
}

.hero-dark .eyebrow {
    display: block;
    margin-bottom: var(--s-3);
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--lime);
}

.hero-dark .hero-evidence {
    border-top-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.78);
}

.hero-dark .hero-evidence cite {
    color: rgba(255, 255, 255, 0.5);
}

.hero-dark .chart-figure figcaption {
    color: rgba(255, 255, 255, 0.55);
}

.hero-dark .btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.55);
}

.hero-dark .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
}

/* chart on indigo */
.trajectory-dark .grid { stroke: rgba(255, 255, 255, 0.16); }
.trajectory-dark .axis-label { fill: rgba(255, 255, 255, 0.6); }
.trajectory-dark .observed { stroke: var(--white); }
.trajectory-dark .fan { fill: var(--white); fill-opacity: 0.16; }
.trajectory-dark .median { stroke: var(--white); }
.trajectory-dark .threshold { stroke: #FF8A6A; }
.trajectory-dark .threshold-label { fill: #FF8A6A; }
.trajectory-dark .now-line { stroke: rgba(255, 255, 255, 0.55); }
.trajectory-dark .now-label { fill: rgba(255, 255, 255, 0.85); }
.trajectory-dark .window { fill: var(--lime); fill-opacity: 0.45; }
.trajectory-dark .window-bracket { stroke: var(--lime); }
.trajectory-dark .window-label { fill: var(--lime); }
.trajectory-dark .crossing { fill: var(--indigo); stroke: #FF8A6A; }

/* burden ledger */
.burden {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 var(--s-5);
    border-top: 1px solid var(--line);
}

.burden li {
    padding: var(--s-3) 0;
    border-bottom: 1px solid var(--line);
}

.burden .figure {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1;
    color: var(--indigo);
    font-variation-settings: "opsz" 72;
    letter-spacing: -0.02em;
}

.burden p {
    margin-top: 0.6rem;
    color: var(--ink);
    font-size: 1rem;
}

.burden cite {
    display: block;
    margin-top: 0.35rem;
    font-style: normal;
    font-size: 0.8125rem;
    color: var(--ink-mute);
}

/* instruments table */
.instruments {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.instruments th,
.instruments td {
    padding: var(--s-2) var(--s-2) var(--s-2) 0;
    vertical-align: top;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.instruments th {
    font-weight: 600;
    color: var(--ink);
    border-bottom: 2px solid var(--indigo);
}

.instruments td:first-child {
    font-weight: 600;
    color: var(--indigo);
    width: 24%;
}

.instruments td {
    color: var(--ink-soft);
}

.instruments td:last-child {
    color: var(--ink);
}

.gap-statement {
    margin-top: var(--s-5);
    padding: var(--s-4);
    background: var(--indigo);
    color: var(--white);
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--s-4);
}

.gap-statement h3 {
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-text);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gap-statement p {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.2vw, 1.625rem);
    font-weight: 600;
    line-height: 1.25;
    color: var(--white);
}

.gap-statement .answer p {
    color: var(--lime);
}

/* two readings */
.readings {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--s-4);
    margin-top: var(--s-4);
}

.reading {
    padding: var(--s-3) 0 0;
    border-top: 2px solid var(--lime);
}

.reading h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.reading .when {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: var(--lime);
    font-weight: 600;
}

.reading p,
.reading li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

.reading ul {
    margin-top: 0.75rem;
}

.reading li {
    padding: 0.3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.properties {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-3) var(--s-4);
    margin-top: var(--s-5);
    padding-top: var(--s-4);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.properties h3 {
    color: var(--white);
    font-size: 1.0625rem;
    margin-bottom: 0.35rem;
}

.properties p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9375rem;
}

/* modules across the stay */
.stay-phases {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--s-3);
    margin-top: var(--s-4);
}

.phase {
    padding-top: var(--s-2);
    border-top: 3px solid var(--indigo-tint);
    position: relative;
}

.phase::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 0;
    width: 32px;
    height: 3px;
    background: var(--lime);
}

.phase h3 {
    font-family: var(--font-text);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink-mute);
    margin-bottom: var(--s-2);
}

.module {
    padding: 0.75rem 0;
    border-top: 1px solid var(--line);
}

.module strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.2rem;
}

.module span {
    font-size: 0.9rem;
    color: var(--ink-soft);
    line-height: 1.5;
}

.module .tag-kind {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--lime-deep);
}

/* evidence questions */
.questions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 var(--s-5);
    border-top: 1px solid var(--line);
}

.questions-grid li {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: var(--s-2);
    padding: var(--s-2) 0;
    border-bottom: 1px solid var(--line);
}

.questions-grid .n {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lime-deep);
    line-height: 1.4;
}

.questions-grid strong {
    display: block;
    font-weight: 600;
    color: var(--ink);
}

.questions-grid span {
    font-size: 0.9375rem;
    color: var(--ink-soft);
}

.scale-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--s-3);
    margin-top: var(--s-5);
}

.scale-strip li {
    padding-top: var(--s-2);
    border-top: 2px solid var(--indigo);
}

.scale-strip .figure {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--indigo);
    font-variation-settings: "opsz" 48;
    line-height: 1.1;
}

.scale-strip span {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.nda-note {
    margin-top: var(--s-4);
    padding: var(--s-3);
    background: var(--lime-tint);
    border-left: 3px solid var(--lime);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.nda-note p {
    max-width: none;
    color: var(--ink);
}

/* pathway stages */
.stages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-4);
}

.stage {
    padding-top: var(--s-2);
    border-top: 2px solid var(--indigo);
}

.stage .n {
    display: block;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lime-deep);
    margin-bottom: 0.4rem;
}

.stage h3 {
    margin-bottom: 0.4rem;
}

.stage p {
    font-size: 0.9375rem;
    color: var(--ink-soft);
}

.policy {
    margin-top: var(--s-5);
}

.policy li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: var(--s-3);
    padding: var(--s-2) 0;
    border-top: 1px solid var(--line);
    font-size: 0.9375rem;
}

.policy li:last-child {
    border-bottom: 1px solid var(--line);
}

.policy strong {
    color: var(--ink);
    font-weight: 600;
}

.policy span {
    color: var(--ink-soft);
}

.cta-dark {
    background: var(--indigo);
    color: var(--white);
}

.cta-dark h2 {
    color: var(--white);
}

.cta-dark .lede {
    color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 1024px) {
    .burden,
    .properties,
    .stages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stay-phases,
    .scale-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .gap-statement,
    .readings,
    .questions-grid {
        grid-template-columns: 1fr;
    }

    .instruments thead {
        display: none;
    }

    .instruments td {
        display: block;
        width: auto;
        padding: 0.25rem 0;
        border: 0;
    }

    .instruments td:first-child {
        padding-top: var(--s-2);
    }

    .instruments td:last-child {
        padding-bottom: var(--s-2);
        border-bottom: 1px solid var(--line);
    }

    .instruments td:last-child::before {
        content: "Cannot: ";
        font-weight: 600;
        color: var(--signal);
    }
}

@media (max-width: 600px) {
    .burden,
    .properties,
    .stages,
    .stay-phases,
    .scale-strip {
        grid-template-columns: 1fr;
    }

    .policy li {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

/* ============================================
   21. HIERARCHY: TRAIL, TREE, DOMAIN CARDS
   ============================================ */
.trail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-bottom: var(--s-3);
    font-size: 0.8125rem;
    color: var(--ink-mute);
}

.trail a {
    color: var(--ink-soft);
    text-decoration: none;
}

.trail a:hover {
    color: var(--indigo);
    text-decoration: underline;
}

.trail svg {
    width: 12px;
    height: 12px;
    color: var(--line);
}

.trail .current {
    color: var(--indigo);
    font-weight: 600;
}

.hero-dark .trail,
.hero-dark .trail a {
    color: rgba(255, 255, 255, 0.6);
}

.hero-dark .trail svg {
    color: rgba(255, 255, 255, 0.3);
}

.hero-dark .trail .current {
    color: var(--lime);
}

/* Portfolio tree */
.tree {
    --rail: 1.5rem;
    font-size: 0.9375rem;
}

.tree ul {
    margin-left: var(--rail);
    padding-left: var(--rail);
    border-left: 1px solid var(--line);
}

.tree > ul {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
}

.tree li {
    position: relative;
    padding: 0.35rem 0;
}

.tree ul li::before {
    content: "";
    position: absolute;
    left: calc(var(--rail) * -1);
    top: 1.15rem;
    width: calc(var(--rail) - 0.6rem);
    height: 1px;
    background: var(--line);
}

.tree .node {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.tree .node a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
}

.tree .node a:hover {
    color: var(--indigo);
    text-decoration: underline;
}

.tree .company {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--indigo);
}

.tree .domain {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--indigo);
}

.tree .meta {
    font-size: 0.8125rem;
    color: var(--ink-mute);
}

.tree .featured {
    color: var(--lime-deep);
}

.tree .level {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius);
    background: var(--indigo-tint);
    color: var(--indigo);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Innovation entries */
.domain-section + .domain-section {
    border-top: 1px solid var(--line);
}

.domain-head {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: var(--s-5);
    align-items: start;
    margin-bottom: var(--s-5);
}

.domain-head .count {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lime-deep);
}

.domain-head p {
    color: var(--ink-soft);
}

.innovations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-4) var(--s-5);
}

.innovation {
    padding-top: var(--s-2);
    border-top: 2px solid var(--indigo);
}

.innovation.is-featured {
    border-top-color: var(--lime);
}

.innovation h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.innovation h3 .expand {
    font-family: var(--font-text);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ink-mute);
}

.innovation .role {
    display: block;
    margin: 0.25rem 0 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--indigo);
}

.innovation p {
    color: var(--ink-soft);
    font-size: 0.9375rem;
}

.innovation dl {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 0.25rem 0.75rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
}

.innovation dt {
    color: var(--ink-mute);
}

.innovation dd {
    color: var(--ink-soft);
}

.innovation .link-arrow {
    margin-top: 0.75rem;
    font-size: 0.9375rem;
}

.foundations {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--s-4);
}

.foundations li {
    padding-top: var(--s-2);
    border-top: 2px solid var(--lime);
}

.foundations strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.foundations span {
    font-size: 0.9rem;
    color: var(--ink-soft);
}

/* Clinical domain applications (PARIS AI page) */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-4) var(--s-5);
}

.app {
    padding-top: var(--s-2);
    border-top: 1px solid var(--line);
}

.app.is-featured {
    border-top: 2px solid var(--lime);
}

.app h3 {
    margin-bottom: 0.4rem;
}

.app .setting {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--indigo);
    font-weight: 600;
}

.app p {
    font-size: 0.9375rem;
    color: var(--ink-soft);
}

.app details {
    margin-top: 0.6rem;
}

.app summary {
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--indigo);
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.app summary::-webkit-details-marker {
    display: none;
}

.app summary::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid currentColor;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transition: transform 0.15s var(--ease);
}

.app details[open] summary::before {
    transform: rotate(90deg);
}

.app details ul {
    margin-top: 0.5rem;
    columns: 1;
}

.app details li {
    position: relative;
    padding: 0.25rem 0 0.25rem 1rem;
    font-size: 0.875rem;
    color: var(--ink-soft);
    border-top: 1px solid var(--line);
}

.app details li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--lime-deep);
}

.app .link-arrow {
    margin-top: 0.6rem;
    font-size: 0.9375rem;
}

.family {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--s-4);
}

.family li {
    padding-top: var(--s-2);
    border-top: 2px solid var(--indigo);
}

.family strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.family span {
    display: block;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.family a {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .foundations,
    .family {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .domain-head,
    .innovations,
    .apps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .foundations,
    .family {
        grid-template-columns: 1fr;
    }

    .tree {
        --rail: 1rem;
    }

    .innovation dl {
        grid-template-columns: 1fr;
        gap: 0.1rem;
    }
}

/* ============================================
   22. LANDING PAGE: THE NEED
   ============================================ */
.need-band {
    background: var(--paper);
    border-top: 4px solid var(--lime);
}

.findings {
    border-top: 1px solid var(--line);
}

.findings li {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: var(--s-3);
    padding: var(--s-2) 0;
    border-bottom: 1px solid var(--line);
}

.findings strong {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--indigo);
    font-variation-settings: "opsz" 24;
}

.findings span {
    color: var(--ink-soft);
    font-size: 0.9375rem;
}

.musts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-3) var(--s-4);
    margin-top: var(--s-4);
}

.musts li {
    padding-top: var(--s-2);
    border-top: 2px solid var(--indigo);
}

.musts strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.musts span {
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.value-layers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-4);
    margin-top: var(--s-4);
}

.value-layers li {
    padding-top: var(--s-2);
    border-top: 2px solid var(--lime);
}

.value-layers strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.value-layers span {
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.subhead {
    margin: var(--s-5) 0 var(--s-2);
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
}

.subhead:first-of-type {
    margin-top: 0;
}

.way-forward {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: var(--s-4);
    padding: var(--s-4) 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.way-forward p {
    color: var(--ink-soft);
}

@media (max-width: 900px) {
    .musts,
    .value-layers {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .findings li,
    .musts,
    .value-layers,
    .way-forward {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   23. LANDING PAGE: SURVIVORSHIP FIGURE
   ============================================ */
.survivorship {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: var(--s-5);
    align-items: center;
    margin-top: var(--s-6);
    padding-top: var(--s-5);
    border-top: 1px solid var(--line);
}

.survivorship h3 {
    font-size: 1.5rem;
    font-variation-settings: "opsz" 48;
    margin-bottom: var(--s-2);
}

.survivorship .pull {
    margin: var(--s-3) 0 0;
}

.survivorship figure {
    margin: 0;
}

.survivorship figcaption {
    margin-top: var(--s-2);
    font-size: 0.8125rem;
    color: var(--ink-mute);
}

.outcomes {
    width: 100%;
    height: auto;
    font-family: var(--font-text);
    overflow: visible;
}

.outcomes .grid { stroke: var(--line); stroke-width: 1; }
.outcomes .axis-label { fill: var(--ink-mute); font-size: 13px; }
.outcomes .readmission { fill: none; stroke: var(--lime-deep); stroke-width: 3; stroke-dasharray: 8 6; stroke-linecap: round; }
.outcomes .mortality { fill: none; stroke: var(--indigo); stroke-width: 3; stroke-linecap: round; }
.outcomes .pt-r { fill: var(--lime-deep); }
.outcomes .pt-m { fill: var(--indigo); }
.outcomes .val-r { fill: var(--lime-deep); font-size: 14px; font-weight: 700; }
.outcomes .val-m { fill: var(--indigo); font-size: 14px; font-weight: 700; }
.outcomes .series-r { fill: var(--lime-deep); font-size: 13px; font-weight: 600; }
.outcomes .series-m { fill: var(--indigo); font-size: 13px; font-weight: 600; }

@media (max-width: 900px) {
    .survivorship {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   24. LANDING PAGE: THE NEED (COMPACT)
   ============================================ */
.need-figure {
    margin: var(--s-4) 0 var(--s-5);
}

.need-figure figcaption {
    margin-top: var(--s-2);
    font-size: 0.8125rem;
    color: var(--ink-mute);
    max-width: 60ch;
}

.interval {
    width: 100%;
    height: auto;
    font-family: var(--font-text);
    overflow: visible;
}

.interval .axis { stroke: var(--indigo); stroke-width: 2; }
.interval .tick { stroke: var(--indigo); stroke-width: 2; }
.interval .criteria { fill: var(--indigo); }
.interval .delay { stroke: var(--lime-deep); stroke-width: 5; stroke-linecap: round; }
.interval .management-band { fill: var(--indigo-tint); }
.interval .management { stroke: var(--indigo); stroke-width: 7; opacity: 0.35; stroke-linecap: round; }
.interval .axis-label { fill: var(--ink-mute); font-size: 13px; }
.interval .note { fill: var(--ink-soft); font-size: 12.5px; font-style: italic; }
.interval .delay-label { fill: var(--lime-deep); font-size: 14px; font-weight: 700; }
.interval .delay-sub { fill: var(--lime-deep); font-size: 12px; }
.interval .mgmt-label { fill: var(--indigo); font-size: 14px; font-weight: 700; }
.interval .mgmt-sub { fill: var(--indigo); font-size: 12.5px; font-style: italic; }
.interval .lactate { fill: var(--indigo); font-size: 12.5px; font-weight: 700; }

.need-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-3) var(--s-5);
    border-top: 1px solid var(--line);
}

.need-grid li {
    padding: var(--s-2) 0;
    border-bottom: 1px solid var(--line);
}

.need-grid strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--indigo);
    font-variation-settings: "opsz" 24;
    margin-bottom: 0.3rem;
}

.need-grid span {
    font-size: 0.9375rem;
    color: var(--ink-soft);
}

.need-must {
    margin: var(--s-5) 0 0;
    padding: var(--s-3) var(--s-4);
    background: var(--indigo);
    color: var(--white);
    border-radius: var(--radius-lg);
    font-family: var(--font-display);
    font-size: clamp(1.125rem, 1.8vw, 1.375rem);
    font-weight: 600;
    line-height: 1.4;
    max-width: none;
}

.need-must em {
    font-style: normal;
    color: var(--lime);
}

.named-by {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 var(--s-5);
    margin-top: var(--s-4);
}

.named-by li {
    padding: 0.6rem 0;
    border-top: 1px solid var(--line);
    font-size: 0.9375rem;
}

.named-by strong {
    color: var(--ink);
    font-weight: 600;
}

.named-by span {
    color: var(--ink-soft);
}

@media (max-width: 768px) {
    .need-grid,
    .named-by {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   25. LANDING PAGE: TWO READINGS FIGURE
   ============================================ */
.readings-figure {
    margin: 0 0 var(--s-4);
}

.readings-figure figcaption {
    margin-top: var(--s-2);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 64ch;
}

.two-readings {
    width: 100%;
    height: auto;
    font-family: var(--font-text);
    overflow: visible;
}

.two-readings .panel { fill: rgba(255, 255, 255, 0.06); }
.two-readings .now-line { stroke: rgba(255, 255, 255, 0.5); stroke-width: 1; stroke-dasharray: 3 4; }
.two-readings .boundary { stroke: #FF8A6A; stroke-width: 2; stroke-dasharray: 8 6; }
.two-readings .warning-path { fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; }
.two-readings .stable-path { fill: none; stroke: var(--lime); stroke-width: 3; stroke-dasharray: 8 6; stroke-linecap: round; }
.two-readings .crossing { fill: var(--indigo); stroke: #FF8A6A; stroke-width: 3; }
.two-readings .lead { stroke: var(--lime); stroke-width: 2; }
.two-readings .lead-head { fill: var(--lime); }
.two-readings .axis-label { fill: rgba(255, 255, 255, 0.6); font-size: 12.5px; }
.two-readings .boundary-label { fill: #FF8A6A; font-size: 12.5px; font-weight: 700; }
.two-readings .lead-label { fill: var(--lime); font-size: 13.5px; font-weight: 700; }
.two-readings .warn-label { fill: var(--white); font-size: 14px; font-weight: 700; }
.two-readings .warn-sub { fill: rgba(255, 255, 255, 0.75); font-size: 12px; }
.two-readings .stable-label { fill: var(--lime); font-size: 14px; font-weight: 700; }
.two-readings .stable-sub { fill: rgba(255, 255, 255, 0.75); font-size: 12px; }
.two-readings .time-label { fill: rgba(255, 255, 255, 0.55); font-size: 12px; font-style: italic; }

/* ============================================
   26. LANDING PAGE: JOURNEY AND PARTNERS
   ============================================ */
.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: var(--s-3);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--lime);
}

.hero-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lime);
}

.journey-figure {
    margin: var(--s-4) 0 0;
}

.journey-figure figcaption {
    margin-top: var(--s-2);
    font-size: 0.8125rem;
    color: var(--ink-mute);
    max-width: 64ch;
}

.journey {
    width: 100%;
    height: auto;
    font-family: var(--font-text);
    overflow: visible;
}

.journey .rail { stroke: var(--indigo); stroke-width: 2; }
.journey .node { fill: var(--indigo); }
.journey .node-v { fill: var(--lime-deep); }
.journey .box { fill: var(--white); stroke: var(--indigo); stroke-width: 1.5; }
.journey .box-v { fill: var(--white); stroke: var(--lime-deep); stroke-width: 1.5; }
.journey .cap { fill: var(--indigo); }
.journey .cap-v { fill: var(--lime-deep); }
.journey .n { fill: var(--indigo); font-size: 13px; font-weight: 700; }
.journey .n-v { fill: var(--lime-deep); font-size: 13px; font-weight: 700; }
.journey .stage { fill: var(--ink); font-size: 12.5px; font-weight: 700; }
.journey .sub { fill: var(--ink-soft); font-size: 10.5px; }
.journey .io { fill: var(--ink-mute); font-size: 12px; font-style: italic; }

.partners-band {
    background: var(--indigo);
    color: var(--white);
}

.partners-band h2,
.partners-band h3 {
    color: var(--white);
}

.partners-band .section-head p {
    color: rgba(255, 255, 255, 0.82);
}

.partners {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-4) var(--s-5);
}

.partner {
    padding-top: var(--s-3);
    border-top: 2px solid var(--lime);
}

.partner .place {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lime);
}

.partner ul li {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.partner p {
    margin-top: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

.programme {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-4);
    margin-top: var(--s-6);
    padding-top: var(--s-4);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.programme li {
    position: relative;
    padding-left: 1.5rem;
}

.programme li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--lime);
}

.programme strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.programme span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

.partners-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
    margin-top: var(--s-5);
    padding-top: var(--s-4);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.partners-foot p {
    color: rgba(255, 255, 255, 0.82);
    max-width: 48rem;
}

@media (max-width: 900px) {
    .partners,
    .programme {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   27. DEVELOPMENT TIMELINE AND COLLABORATORS
   ============================================ */
.dev-timeline {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--s-3);
    margin-top: var(--s-4);
    position: relative;
}

.dev-timeline::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 7px;
    height: 2px;
    background: var(--line);
}

.dev-timeline li {
    position: relative;
    padding-top: var(--s-3);
}

.dev-timeline li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--indigo);
    border: 3px solid var(--paper);
    box-shadow: 0 0 0 2px var(--indigo);
}

.dev-timeline li.is-now::before {
    background: var(--lime);
    box-shadow: 0 0 0 2px var(--lime-deep);
}

.dev-timeline li.is-next::before {
    background: var(--paper);
    box-shadow: 0 0 0 2px var(--indigo);
}

.dev-timeline .when {
    display: block;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--indigo);
    font-variation-settings: "opsz" 24;
}

.dev-timeline li.is-now .when {
    color: var(--lime-deep);
}

.dev-timeline .what {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.9375rem;
    color: var(--ink-soft);
    line-height: 1.5;
}

.collaborators {
    padding: var(--s-4) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    margin-bottom: var(--s-5);
}

.collaborators .label {
    display: block;
    margin-bottom: var(--s-2);
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
}

.collaborators ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-2) var(--s-5);
}

.collaborators li {
    display: flex;
    align-items: center;
    min-height: 44px;
}

.collaborators img {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    background: var(--white);
    padding: 6px 10px;
    border-radius: var(--radius);
}

.collaborators .wordmark {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.25;
}

@media (max-width: 1024px) {
    .dev-timeline {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .dev-timeline {
        grid-template-columns: 1fr;
        gap: var(--s-2);
    }

    .dev-timeline::before {
        left: 7px;
        right: auto;
        top: 0;
        bottom: 0;
        width: 2px;
        height: auto;
    }

    .dev-timeline li {
        padding: 0 0 var(--s-2) 2rem;
    }

    .collaborators ul {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--s-2);
    }
}

/* ============================================
   28. TEAM: FOUNDER FEATURE AND FOUR-UP GRID
   ============================================ */
.founder {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: var(--s-5);
    align-items: center;
    padding-bottom: var(--s-6);
    margin-bottom: var(--s-6);
    border-bottom: 1px solid var(--line);
}

.founder img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-lg);
    background: var(--indigo-tint);
}

.founder h2 {
    margin-bottom: 0.25rem;
}

.founder .role {
    display: block;
    margin-bottom: var(--s-3);
    font-size: 1rem;
    color: var(--indigo);
    font-weight: 600;
}

.founder p {
    color: var(--ink-soft);
}

.founder p + p {
    margin-top: var(--s-2);
}

.founder .member-links {
    margin-top: var(--s-3);
}

.team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--s-5) var(--s-4);
}

.member {
    display: flex;
    flex-direction: column;
}

.member .member-links {
    margin-top: auto;
    padding-top: 0.75rem;
}

@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .founder {
        grid-template-columns: 1fr;
    }

    .founder img {
        max-width: 22rem;
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   29. FAQ AND LEGAL PAGES
   ============================================ */
.faq-group {
    max-width: 52rem;
}

.faq-group + .faq-group {
    margin-top: var(--s-5);
}

.faq-group h2 {
    font-size: 1.5rem;
    font-variation-settings: "opsz" 48;
    margin-bottom: var(--s-2);
}

.faq details {
    border-top: 1px solid var(--line);
}

.faq details:last-child {
    border-bottom: 1px solid var(--line);
}

.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-3);
    padding: 1rem 0;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ink);
    font-variation-settings: "opsz" 24;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "";
    flex: none;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--indigo);
    border-bottom: 2px solid var(--indigo);
    transform: rotate(45deg);
    transition: transform 0.18s var(--ease);
    margin-right: 4px;
}

.faq details[open] summary::after {
    transform: rotate(-135deg);
}

.faq summary:hover {
    color: var(--indigo);
}

.faq .answer {
    padding: 0 0 1.25rem;
    color: var(--ink-soft);
}

.faq .answer p + p {
    margin-top: 0.75rem;
}

.faq .answer a {
    font-weight: 600;
}

.legal {
    max-width: 46rem;
}

.legal .meta {
    display: block;
    margin-bottom: var(--s-4);
    font-size: 0.9375rem;
    color: var(--ink-mute);
}

.legal h2 {
    font-size: 1.375rem;
    font-variation-settings: "opsz" 32;
    margin: var(--s-5) 0 var(--s-2);
}

.legal h2:first-of-type {
    margin-top: 0;
}

.legal p,
.legal li {
    color: var(--ink-soft);
}

.legal p + p {
    margin-top: var(--s-2);
}

.legal ul {
    margin: var(--s-2) 0;
}

.legal ul li {
    position: relative;
    padding: 0.3rem 0 0.3rem 1.25rem;
}

.legal ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime-deep);
}

.legal table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--s-2) 0 var(--s-3);
    font-size: 0.9375rem;
}

.legal th,
.legal td {
    padding: 0.6rem 0.75rem 0.6rem 0;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
}

.legal th {
    color: var(--ink);
    font-weight: 600;
    border-bottom: 2px solid var(--indigo);
}

/* ============================================
   30. DEVICE GATE FIXES
   ============================================ */
/* Blog sidebar could exceed its column at tablet widths: grid items default to min-width auto */
.blog-grid > *,
.sidebar,
.sidebar-widget {
    min-width: 0;
}

.search-form input {
    width: 100%;
}

/* Tap targets of at least 24 px on links set in small type */
.footer-col ul li a,
.member-links a,
.trail a {
    display: inline-block;
    padding: 0.2rem 0;
}

.footer-col ul li {
    margin-bottom: 0.25rem;
}
