/* Kerasnoudis — premium redesign
   White, elegant, high-end European private clinic. */

/* ===== FONTS ========================================================= */
/* Source Serif 4 — display / headlines */
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400; font-display: swap;
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
    src: url('../fonts/source-serif-4-400-normal-latin-ext.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400; font-display: swap;
    unicode-range: U+0370-03FF;
    src: url('../fonts/source-serif-4-400-normal-greek.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400; font-display: swap;
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
    src: url('../fonts/source-serif-4-400-italic-latin-ext.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400; font-display: swap;
    unicode-range: U+0370-03FF;
    src: url('../fonts/source-serif-4-400-italic-greek.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 600; font-display: swap;
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
    src: url('../fonts/source-serif-4-600-normal-latin-ext.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 600; font-display: swap;
    unicode-range: U+0370-03FF;
    src: url('../fonts/source-serif-4-600-normal-greek.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 700; font-display: swap;
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
    src: url('../fonts/source-serif-4-700-normal-latin-ext.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 700; font-display: swap;
    unicode-range: U+0370-03FF;
    src: url('../fonts/source-serif-4-700-normal-greek.woff2') format('woff2'); }

/* Inter Tight — body / UI */
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400; font-display: swap;
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+FFFD;
    src: url('../fonts/inter-tight-400-latin-ext.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400; font-display: swap;
    unicode-range: U+0370-03FF; src: url('../fonts/inter-tight-400-greek.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 500; font-display: swap;
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+FFFD;
    src: url('../fonts/inter-tight-500-latin-ext.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 500; font-display: swap;
    unicode-range: U+0370-03FF; src: url('../fonts/inter-tight-500-greek.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 600; font-display: swap;
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+FFFD;
    src: url('../fonts/inter-tight-600-latin-ext.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 600; font-display: swap;
    unicode-range: U+0370-03FF; src: url('../fonts/inter-tight-600-greek.woff2') format('woff2'); }


/* ===== TOKENS ======================================================== */
:root {
    --paper-0: #FFFFFF;
    --paper-1: #FAFAF8;
    --paper-2: #F4F4F2;
    --paper-3: #EAEAE8;
    --ink-0:   #0F1114;
    --ink-1:   #2A2D33;
    --ink-2:   #5E636C;
    --accent:  #A6B5AE;
    --accent-2:#E8EDEA;
    --brand-green: #2EC87A;
    --brand-green-soft: #39E991;

    --sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --serif: 'Source Serif 4', 'Iowan Old Style', 'Apple Garamond', Georgia, serif;

    --maxw: 1280px;
    --contentw: 680px;
    --radius: 4px;
    --radius-lg: 16px;

    --s-0:  4px;  --s-1: 8px;  --s-2: 12px; --s-3: 16px;
    --s-4: 24px;  --s-5: 32px; --s-6: 48px; --s-7: 72px;
    --s-8: 96px;  --s-9: 128px; --s-10: 176px;

    --ease: cubic-bezier(.2,.7,.3,1);
    --shadow-rest: 0 1px 2px rgba(15,17,20,.04), 0 8px 24px -12px rgba(15,17,20,.08);
    --shadow-hover: 0 2px 4px rgba(15,17,20,.04), 0 20px 40px -16px rgba(15,17,20,.12);
    --shadow-mega: 0 4px 16px -4px rgba(15,17,20,.06), 0 32px 64px -32px rgba(15,17,20,.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: clamp(15px, .97vw, 17px);
    line-height: 1.72;
    color: var(--ink-1);
    background: var(--paper-0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

/* ===== TYPOGRAPHY ==================================================== */
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; font-family: var(--serif); font-weight: 600; color: var(--ink-0); letter-spacing: -0.022em; line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); letter-spacing: -0.032em; line-height: 1.02; font-weight: 600; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); letter-spacing: -0.028em; line-height: 1.12; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); letter-spacing: -0.022em; line-height: 1.2; }
h4 { font-size: 1.125rem; letter-spacing: -0.015em; }
p  { margin: 0 0 1em; }

a  {
    color: var(--ink-1);
    text-decoration: none;
    transition: color .22s var(--ease);
    border: 0;
}
a:hover { color: var(--ink-0); }

.eyebrow {
    font-family: var(--sans);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-2);
    display: inline-block;
    margin-bottom: 1rem;
}

.lede, .serif-lede {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.125rem, 1.6vw, 1.375rem);
    color: var(--ink-1);
    line-height: 1.55;
    max-width: 48ch;
}

.script, code, kbd { font-family: var(--sans); }

/* Skip link */
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { position: fixed; left: 1rem; top: 1rem; z-index: 200; padding: .75rem 1rem; background: var(--ink-0); color: var(--paper-0); border-radius: var(--radius); }

/* ===== LAYOUT ======================================================== */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 2.5vw, 2rem); }
.container--narrow { max-width: 960px; margin-inline: auto; padding-inline: clamp(1rem, 2.5vw, 2rem); }
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--paper1 { background: var(--paper-1); }
.section--paper2 { background: var(--paper-2); }
.section--accent { background: var(--accent-2); }

.section-header { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-header h2 { margin-bottom: .4em; }
.section-header .lede { font-style: italic; color: var(--ink-2); }

/* Hairlines */
.hr-thin { border: 0; border-top: 1px solid var(--paper-3); margin: 0; }

/* ===== HEADER / NAV ================================================== */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: color-mix(in oklab, var(--paper-0) 94%, transparent);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
            backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
    padding-block: 14px;
    will-change: border-color;
}
.site-header[data-scrolled="1"] {
    border-bottom-color: var(--paper-3);
    box-shadow: 0 1px 0 var(--paper-3);
}

.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; line-height: 1.1; color: var(--ink-0); }
.brand:hover { color: var(--ink-0); }
.brand-logo {
    width: 44px; height: 44px; flex: 0 0 44px;
    object-fit: contain; display: block;
    transition: transform .28s var(--ease);
}
.brand:hover .brand-logo { transform: rotate(-3deg); }
.brand-text { display: inline-flex; flex-direction: column; gap: 2px; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.022em; color: var(--ink-0); line-height: 1.15; }
.brand-role { font-family: var(--sans); font-size: .6875rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
@media (max-width: 480px) { .brand-text { display: none; } }

.primary-nav { display: flex; flex: 1 1 auto; justify-content: flex-end; min-width: 0; }
.nav-list { display: flex; gap: clamp(.75rem, 1.6vw, 1.5rem); margin: 0; padding: 0; list-style: none; align-items: center; flex-wrap: nowrap; }
.nav-item { position: relative; flex-shrink: 0; }
.nav-item > a {
    display: inline-flex; align-items: center; gap: .25em;
    padding: .45rem 0;
    font-family: var(--sans);
    font-size: .875rem;
    font-weight: 500;
    letter-spacing: .01em;
    color: var(--ink-1);
    white-space: nowrap;
}
.nav-item > a:hover { color: var(--ink-0); }
.nav-item.active > a { color: var(--ink-0); }
.nav-item.active > a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink-0);
}
.nav-item .chev { display: inline-block; font-size: .68em; opacity: .55; transform: translateY(-1px); margin-left: .25em; }

/* Mega menu */
.mega {
    position: absolute; top: calc(100% + 10px); left: -1rem;
    min-width: 520px;
    background: var(--paper-0);
    border: 1px solid var(--paper-3);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-mega);
    padding: 1.25rem;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s .22s;
    z-index: 10;
}
.nav-item.has-mega:hover > .mega,
.nav-item.has-mega:focus-within > .mega { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.mega--wide { min-width: 720px; }
.mega-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .25rem 1.25rem; }
.mega--wide .mega-grid { grid-template-columns: repeat(3, 1fr); }
.mega-head { grid-column: 1/-1; font-family: var(--sans); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding: .4rem .6rem .6rem; border-bottom: 1px solid var(--paper-3); margin-bottom: .25rem; }
.mega a {
    display: block; padding: .55rem .6rem; font-size: .9375rem; color: var(--ink-1);
    border-radius: calc(var(--radius) - 1px);
    font-family: var(--sans);
    font-weight: 400;
    transition: background-color .2s var(--ease), color .2s var(--ease);
}
.mega a:hover { background: var(--paper-1); color: var(--ink-0); }
.mega li.active > a { color: var(--ink-0); background: var(--accent-2); }

/* Nav toggle (mobile) */
.nav-toggle { display: none; appearance: none; background: transparent; border: 0; cursor: pointer; padding: 10px; margin-right: -10px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink-0); margin: 5px 0; border-radius: 2px; transition: transform .28s var(--ease), opacity .2s var(--ease); }

@media (max-width: 1180px) {
    .nav-toggle { display: block; }
    .primary-nav {
        display: block;  /* replace desktop flex entirely */
        position: fixed;
        top: 0; right: 0; bottom: 0; left: auto;
        width: min(420px, 100%);
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;   /* accounts for mobile browser chrome */
        background: var(--paper-0);
        border-left: 1px solid var(--paper-3);
        padding: 3.75rem 1.5rem 1rem;
        transform: translateX(100%);
        transition: transform .32s var(--ease);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        box-shadow: -40px 0 80px -40px rgba(15,17,20,.2);
        z-index: 55;
        flex: initial;   /* undo desktop flex-grow */
    }
    .primary-nav.open { transform: translateX(0); }
    .nav-list {
        display: block !important;   /* override desktop flex */
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .nav-item {
        display: block;
        width: 100%;
        border-bottom: 1px solid var(--paper-3);
        position: relative;
    }
    .nav-item > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: .7rem 0;
        font-size: .95rem;
    }
    .nav-item.has-mega > .mega {
        position: static; visibility: visible; opacity: 1; transform: none; transition: none;
        border: 0; box-shadow: none; padding: 0 0 .5rem .75rem; min-width: 0; max-width: 100%;
        display: none; border-radius: 0;
    }
    .nav-item.has-mega.open > .mega { display: block; }
    .nav-item.has-mega.open > .mega .mega-grid { grid-template-columns: 1fr; gap: 0; }
    .nav-item.has-mega.open > a .chev { transform: rotate(180deg); }
    .mega-head { border: 0; padding: 0 0 .3rem; margin-bottom: 0; font-size: .65rem; }
    .mega a { padding: .4rem 0; font-size: .875rem; }
    body.nav-open { overflow: hidden; }
    /* Hide floating audio button while drawer is open to free bottom space */
    body.nav-open .audio-toggle { opacity: 0; pointer-events: none; }
}

/* ===== HERO ========================================================== */
.hero {
    position: relative;
    padding-block: clamp(3rem, 6vw, 6rem) clamp(3rem, 6vw, 6rem);
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(60% 80% at 80% 20%, var(--accent-2) 0%, transparent 60%),
        radial-gradient(40% 60% at 0% 90%, var(--paper-2) 0%, transparent 60%);
    opacity: .7;
    pointer-events: none;
    z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    min-height: min(82vh, 720px);
}
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; min-height: 0; padding-block: 1rem; }
    .hero-text { order: 1; }
    .hero-visual { order: 2; }
}

.hero-text h1 { margin-bottom: .25em; font-size: clamp(2.75rem, 6vw, 5rem); }
.hero-text .lede { margin: 1.25rem 0 2rem; max-width: 46ch; }
.hero-text .hero-meta { margin-top: 2.5rem; display: flex; gap: 2rem; flex-wrap: wrap; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.hero-text .hero-meta a { color: var(--ink-1); border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color .2s var(--ease); }
.hero-text .hero-meta a:hover { border-bottom-color: var(--ink-2); }
.hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Hero visual frame */
.hero-visual {
    position: relative;
    aspect-ratio: 4/5;
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
}
@media (max-width: 1024px) {
    .hero-visual { aspect-ratio: 4/3; max-width: 560px; }
}
.hero-visual::before {
    content: ''; position: absolute; inset: -8%;
    background: radial-gradient(60% 60% at 50% 50%, var(--accent-2) 0%, transparent 75%);
    z-index: 0;
    filter: blur(6px);
}
.hero-stage {
    position: absolute; inset: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--paper-0);
    border: 1px solid var(--paper-3);
    box-shadow: 0 2px 6px rgba(15,17,20,.03), 0 32px 80px -24px rgba(15,17,20,.14);
    z-index: 1;
}

/* Scenes */
.scene {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 1.2s var(--ease);
    pointer-events: none;
}
.scene.is-active { opacity: 1; pointer-events: auto; }
.scene img { width: 100%; height: 100%; object-fit: cover; }
.scene--photo::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(250,250,248,.25) 0%, rgba(250,250,248,.45) 100%);
    mix-blend-mode: lighten;
}
.scene-svg { width: 78%; height: 78%; }

@media (prefers-reduced-motion: no-preference) {
    .scene--photo img { animation: kenburns 14s ease-in-out infinite alternate; }
    .scene-book img  { animation: bookfloat 18s ease-in-out infinite; transform-origin: center; }
    .scene-brain svg { animation: floatY 10s ease-in-out infinite; }
    .scene-waves svg { animation: floatY 7s ease-in-out infinite; }
}
@keyframes bookfloat {
    0%, 100% { transform: scale(1.02) translate(0,0) rotate(-.4deg); }
    50%      { transform: scale(1.04) translate(-1%, 1%) rotate(.4deg); }
}
@keyframes kenburns {
    from { transform: scale(1) translate(0,0); }
    to   { transform: scale(1.06) translate(-1.5%, 1.5%); }
}
@keyframes floatY {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50%      { transform: translateY(-10px) rotate(1deg); }
}

/* Scene paging dots */
.scene-dots {
    position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 5;
}
.scene-dots button {
    width: 6px; height: 6px; padding: 0;
    border: 0; background: color-mix(in oklab, var(--ink-0) 20%, transparent);
    border-radius: 999px;
    cursor: pointer;
    transition: width .3s var(--ease), background-color .3s var(--ease);
}
.scene-dots button.is-current { width: 22px; background: var(--ink-0); }

/* ===== HERO FULL-WIDTH VARIANT ======================================= */
.hero--full {
    position: relative;
    min-height: min(92vh, 880px);
    padding: 0;
    overflow: hidden;
    isolation: isolate;
}
.hero--full::before { content: none; }
.hero-stage--full {
    position: absolute !important;
    inset: 0 !important;
    border-radius: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    z-index: 0;
}
.hero-stage--full .scene { position: absolute; inset: 0; }
.hero-stage--full .scene img { width: 100%; height: 100%; object-fit: cover; }
.hero-stage--full .scene svg { width: 100%; height: 100%; }
.hero-stage--full .scene--photo::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(250,250,248,.08);
    mix-blend-mode: lighten;
}

.hero-full-overlay {
    position: absolute; inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        linear-gradient(180deg,
            rgba(255,255,255,.55) 0%,
            rgba(255,255,255,.15) 30%,
            rgba(255,255,255,.15) 60%,
            rgba(255,255,255,.85) 100%);
}
@media (min-width: 900px) {
    .hero-full-overlay {
        background:
            linear-gradient(90deg,
                rgba(255,255,255,.88) 0%,
                rgba(255,255,255,.55) 38%,
                rgba(255,255,255,.15) 62%,
                rgba(255,255,255,.10) 100%),
            linear-gradient(180deg,
                rgba(255,255,255,.25) 0%,
                rgba(255,255,255,0) 30%,
                rgba(255,255,255,0) 60%,
                rgba(255,255,255,.8) 100%);
    }
}

.hero-full-text {
    position: relative;
    z-index: 2;
    padding-top: clamp(5rem, 12vw, 9rem);
    padding-bottom: clamp(4rem, 9vw, 7rem);
    max-width: 680px;
    margin-left: 0;
}
.hero-full-text .eyebrow { color: var(--ink-1); }
.hero-full-text h1 { color: var(--ink-0); }
.hero-full-text .lede { color: var(--ink-1); }
.hero-full-text .brainpoetry--hero { color: var(--brand-green); text-shadow: 0 0 24px rgba(255,255,255,.6); }
.hero-full-text .hero-meta a { color: var(--ink-1); }

.scene-dots--full {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    z-index: 4;
}

/* Full-width rotator keeps color on hover too (grayscale stays) */
.hero-stage--full .scene img { filter: grayscale(1) contrast(0.98); transition: filter .55s var(--ease); }
.hero-stage--full:hover .scene.is-active img { filter: grayscale(0) contrast(1); }

/* Mobile */
@media (max-width: 900px) {
    .hero--full { min-height: 88vh; }
    .hero-full-text { padding-top: clamp(3.5rem, 14vw, 6rem); padding-bottom: 4rem; max-width: none; }
    .hero-full-text h1 { font-size: clamp(2.25rem, 9vw, 3rem); }
}

/* ===== BUTTONS ======================================================= */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .95rem 1.6rem;
    font-family: var(--sans);
    font-size: .9rem; font-weight: 500; letter-spacing: .02em;
    background: var(--ink-0); color: var(--paper-0);
    border: 1px solid var(--ink-0);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}
.btn:hover { background: var(--ink-1); border-color: var(--ink-1); color: var(--paper-0); transform: translateY(-1px); }
.btn .arrow { display: inline-block; transition: transform .22s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-ghost {
    background: transparent; color: var(--ink-0); border-color: var(--paper-3);
}
.btn-ghost:hover { background: var(--paper-0); color: var(--ink-0); border-color: var(--ink-0); }

/* ===== TRUST STRIP =================================================== */
.trust {
    border-top: 1px solid var(--paper-3);
    border-bottom: 1px solid var(--paper-3);
}
.trust-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    padding: clamp(1.25rem, 2.5vw, 1.5rem) 0;
}
.trust-item { padding: 0 clamp(1rem, 3vw, 2rem); border-left: 1px solid var(--paper-3); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item .num { font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 1.875rem); font-weight: 600; color: var(--ink-0); letter-spacing: -0.02em; line-height: 1; margin-bottom: .5rem; }
.trust-item p { font-size: .875rem; color: var(--ink-2); margin: 0; line-height: 1.55; }
@media (max-width: 720px) {
    .trust-grid { grid-template-columns: 1fr; gap: 1rem; }
    .trust-item { border-left: 0; border-top: 1px solid var(--paper-3); padding: 1rem 0; }
    .trust-item:first-child { border-top: 0; padding-top: 0; }
}

/* ===== BRAIN IS POERTY — the doctor's mark =========================== */
.brainpoetry {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: var(--brand-green);
    letter-spacing: .28em;
    text-transform: uppercase;
    line-height: 1;
    margin: 1.5rem 0 2rem;
}
.brainpoetry--hero {
    margin: 1.75rem 0 2rem;
}

/* ===== IMAGES: grayscale by default, color on hover ================== */
img { transition: filter .55s var(--ease); }
.scene img,
.about-figure img,
.choros-figure img,
.prose img,
.hero-visual img,
figure.grayable img {
    filter: grayscale(1) contrast(0.98);
}
/* Reveal color on interaction */
.hero-visual:hover img,
.scene img:hover,
.about-figure:hover img,
.card:hover img,
.feature:hover img,
figure:hover img,
.choros-figure:hover img,
a:hover img { filter: grayscale(0) contrast(1); }
/* Always color: brand logo, icons, signature mark */
.brand-logo, .footer-logo { filter: none !important; }

/* ===== WELCOME / PHILOSOPHICAL ======================================= */
.welcome { background: var(--paper-0); }
.welcome-grid {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(0, 3.2fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
    max-width: 1080px;
    margin-inline: auto;
}
.welcome-eyebrow { padding-top: .5rem; position: sticky; top: 120px; }
.welcome-eyebrow .eyebrow { margin: 0; }
.welcome-text { max-width: 680px; }
.welcome-lead {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.375rem, 2.2vw, 1.75rem);
    line-height: 1.45;
    letter-spacing: -0.014em;
    color: var(--ink-0);
    margin: 0 0 1.5rem;
}
.welcome-lead em { font-style: italic; color: var(--ink-0); }
.welcome-text p {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.0625rem, 1.2vw, 1.1875rem);
    line-height: 1.75;
    color: var(--ink-1);
    margin: 0 0 1.25em;
}
.welcome-closing {
    font-style: italic;
    color: var(--ink-1) !important;
    margin-top: 2rem !important;
}

.signature {
    display: grid; grid-template-columns: auto 1fr; gap: 1.25rem;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--paper-3);
}
.sig-mark { width: 140px; height: 44px; color: var(--ink-0); flex-shrink: 0; }
.sig-mark svg { width: 100%; height: 100%; }
.sig-image {
    width: 170px; height: auto; max-height: 80px;
    object-fit: contain; display: block; flex-shrink: 0;
    filter: none;
}
.sig-image:hover { filter: none; }
.sig-meta { display: flex; flex-direction: column; gap: .25rem; }
.sig-name { font-family: var(--serif); font-size: 1rem; font-weight: 600; color: var(--ink-0); letter-spacing: -0.015em; }
.sig-role { font-family: var(--sans); font-size: .8125rem; color: var(--ink-2); letter-spacing: .02em; line-height: 1.5; }

@media (max-width: 820px) {
    .welcome-grid { grid-template-columns: 1fr; gap: 1rem; }
    .welcome-eyebrow { position: static; padding-top: 0; }
    .signature { grid-template-columns: 1fr; gap: .75rem; }
    .sig-mark { width: 120px; height: 38px; }
}

/* ===== BIOGRAPHY (CV) ================================================ */
.bio-hero {
    padding: clamp(5rem, 9vw, 7rem) 0 clamp(3rem, 5vw, 4rem);
    background: var(--paper-0);
    border-bottom: 1px solid var(--paper-3);
}
.bio-hero-grid {
    display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
.bio-hero-text h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); margin-bottom: .25em; }
.bio-hero-text .lede { margin: 1rem 0 2rem; }

.bio-key {
    display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 0; margin: 2rem 0 0; padding: 0;
    border-top: 1px solid var(--paper-3);
}
.bio-key > div {
    padding: 1.25rem 1rem 1.25rem 0;
    border-right: 1px solid var(--paper-3);
}
.bio-key > div:last-child { border-right: 0; padding-right: 0; }
.bio-key > div:not(:first-child) { padding-left: 1rem; }
.bio-key dt {
    font-family: var(--sans); font-size: .6875rem; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
    margin-bottom: .35rem;
}
.bio-key dd { margin: 0; font-family: var(--serif); font-size: 1.0625rem; color: var(--ink-0); font-weight: 500; }

.bio-hero-figure {
    position: relative; aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--paper-2);
    border: 1px solid var(--paper-3);
}
.bio-hero-figure img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 880px) {
    .bio-hero-grid { grid-template-columns: 1fr; }
    .bio-hero-figure { aspect-ratio: 4/3; max-width: 480px; }
    .bio-key { grid-template-columns: 1fr; }
    .bio-key > div { border-right: 0; border-bottom: 1px solid var(--paper-3); padding: 1rem 0 !important; }
    .bio-key > div:last-child { border-bottom: 0; }
}

/* Shared split: heading left, content right */
.bio-split {
    display: grid; grid-template-columns: 4fr 8fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}
.bio-split-head { position: sticky; top: 110px; }
.bio-split-head h2 { margin-bottom: .5em; }
@media (max-width: 900px) {
    .bio-split { grid-template-columns: 1fr; gap: 2rem; }
    .bio-split-head { position: static; }
}

/* Section numbering */
.section-num {
    display: block;
    font-family: var(--serif);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--paper-3);
    margin-bottom: 1rem;
}

/* Bio prose body — slightly larger than regular prose for reading */
.bio-prose { max-width: 680px; font-size: clamp(1rem, 1.1vw, 1.0625rem); line-height: 1.8; color: var(--ink-1); }
.bio-prose p { margin: 0 0 1.15em; }
.bio-prose em {
    font-style: italic;
    color: var(--ink-0);
    font-weight: 500;
}
.bio-prose strong { color: var(--ink-0); font-weight: 600; }

/* Drop cap on first paragraph of each section */
.bio-prose .has-dropcap::first-letter {
    font-family: var(--serif);
    font-weight: 600;
    float: left;
    font-size: 3.75em;
    line-height: .88;
    padding: .08em .12em 0 0;
    color: var(--ink-0);
}

/* Awards strip inside bio */
.awards-strip {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
    background: var(--paper-3);
    border: 1px solid var(--paper-3);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 2rem 0;
}
.aw {
    background: var(--paper-0);
    padding: 1.5rem 1.75rem;
    display: flex; flex-direction: column; gap: .25rem;
}
.aw-year {
    font-family: var(--serif); font-size: 1.75rem; font-weight: 600;
    color: var(--brand-green); letter-spacing: -0.02em; line-height: 1;
}
.aw-name {
    font-family: var(--serif); font-size: 1.0625rem; color: var(--ink-0); font-weight: 500;
    margin-top: .75rem;
}
.aw-org {
    font-family: var(--sans); font-size: .75rem; letter-spacing: .1em;
    text-transform: uppercase; color: var(--ink-2);
}
@media (max-width: 640px) { .awards-strip { grid-template-columns: 1fr; } }

/* Credential list — numbered 1/2/3 */
.cred-list { list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: cred; }
.cred-list li {
    display: grid; grid-template-columns: 56px 1fr; gap: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--paper-3);
}
.cred-list li:last-child { border-bottom: 1px solid var(--paper-3); }
.cl-num {
    font-family: var(--serif); font-size: 2rem; font-weight: 400;
    color: var(--ink-0); line-height: 1; text-align: center;
    padding-top: .15rem;
    border-right: 1px solid var(--paper-3);
    padding-right: 1.5rem;
}
.cl-body p { margin: 0; font-size: 1rem; line-height: 1.7; color: var(--ink-1); }
.cl-body strong { color: var(--ink-0); }

/* Journals pills */
.journals {
    margin: 2rem 0;
    padding: 1.75rem;
    border: 1px solid var(--paper-3);
    border-radius: var(--radius-lg);
    background: var(--paper-0);
}
.j-label {
    display: block;
    font-family: var(--sans); font-size: .7rem; font-weight: 500;
    letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
    margin-bottom: 1rem;
}
.j-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.j-list li {
    font-family: var(--serif); font-size: .9375rem;
    padding: .5rem .9rem;
    background: var(--paper-1);
    border: 1px solid var(--paper-3);
    border-radius: 999px;
    color: var(--ink-0);
}

/* Publishers grid */
.publishers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 2rem 0 0; }
.pub {
    padding: 1.75rem;
    background: var(--paper-0);
    border: 1px solid var(--paper-3);
    border-radius: var(--radius-lg);
    display: flex; flex-direction: column; gap: .4rem;
    box-shadow: var(--shadow-rest);
}
.pub-kind {
    font-family: var(--sans); font-size: .6875rem; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase; color: var(--brand-green);
}
.pub h3 {
    font-family: var(--serif); font-size: 1.125rem; font-weight: 600;
    color: var(--ink-0); margin: .5em 0 .25em; letter-spacing: -0.015em;
}
.pub > p {
    font-size: .9375rem; color: var(--ink-1); margin: 0 0 1rem;
}
.pub-house {
    margin-top: auto; padding-top: 1rem;
    border-top: 1px solid var(--paper-3);
    font-family: var(--serif); font-style: italic;
    color: var(--ink-2); font-size: .8125rem;
}

/* Team hero – variant of bio-hero with wider image */
.team-hero .bio-hero-figure { aspect-ratio: 4/3; }
.team-hero h1 {
    font-size: clamp(1.75rem, 3.8vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

/* Team member sections */
.team-member {
    display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
    max-width: 1100px;
    margin-inline: auto;
}
.team-member[data-layout="right"] { grid-template-columns: 7fr 5fr; }
.team-member[data-layout="right"] .member-photo { order: 2; }
.team-member[data-layout="right"] .member-body  { order: 1; }

.member-photo {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--paper-2);
    border: 1px solid var(--paper-3);
    position: sticky; top: 110px;
    box-shadow: var(--shadow-rest);
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }

.member-body .section-num { margin-bottom: .5rem; }
.member-body h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin: .25em 0 .15em;
    letter-spacing: -0.022em;
}
.member-body .role-line {
    font-family: var(--serif);
    font-style: italic;
    color: var(--ink-2);
    font-size: 1.0625rem;
    margin: 0 0 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--paper-3);
}

.member-prose { max-width: 640px; font-size: 1rem; line-height: 1.8; color: var(--ink-1); }
.member-prose p { margin: 0 0 1em; }
.member-prose em { font-style: italic; color: var(--ink-0); font-weight: 500; }

/* Member quick facts (key/value) */
.member-key {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 2.25rem 0 0; padding: 0;
    border-top: 1px solid var(--paper-3);
}
.member-key > div {
    padding: 1.25rem 1rem 0 0;
    border-right: 1px solid var(--paper-3);
}
.member-key > div:last-child { border-right: 0; padding-right: 0; }
.member-key > div:not(:first-child) { padding-left: 1rem; }
.member-key dt {
    font-family: var(--sans); font-size: .6875rem; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
    margin-bottom: .35rem;
}
.member-key dd {
    margin: 0;
    font-family: var(--serif); font-size: .9375rem; color: var(--ink-0);
    line-height: 1.4;
}

/* Credentials chips (Tania) */
.credentials-chips {
    margin-top: 2rem;
    padding: 1.75rem;
    border: 1px solid var(--paper-3);
    border-radius: var(--radius-lg);
    background: var(--paper-0);
}
.credentials-chips .chip-label {
    display: block;
    font-family: var(--sans); font-size: .7rem; font-weight: 500;
    letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
    margin-bottom: 1rem;
}
.credentials-chips ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-wrap: wrap; gap: .5rem;
}
.credentials-chips li {
    font-family: var(--serif); font-size: .9375rem;
    padding: .5rem .9rem;
    background: var(--paper-1);
    border: 1px solid var(--paper-3);
    border-radius: 999px;
    color: var(--ink-0);
}

@media (max-width: 880px) {
    .team-member,
    .team-member[data-layout="right"] { grid-template-columns: 1fr; gap: 2rem; }
    .team-member[data-layout="right"] .member-photo { order: 1; }
    .team-member[data-layout="right"] .member-body  { order: 2; }
    .member-photo { position: static; aspect-ratio: 4/3; max-width: 420px; }
    .member-key { grid-template-columns: 1fr; }
    .member-key > div {
        border-right: 0; border-bottom: 1px solid var(--paper-3);
        padding: 1rem 0 !important;
    }
    .member-key > div:last-child { border-bottom: 0; }
}

/* ===== SPACE / CHOROS ================================================ */
.choros-hero .bio-hero-figure { aspect-ratio: 4/3; }

/* Mosaic gallery */
.space-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 240px;
    gap: .75rem;
}
.space-gallery figure {
    margin: 0; position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--paper-3);
    background: var(--paper-2);
}
.space-gallery figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.space-gallery figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 1rem 1.25rem;
    font-family: var(--sans); font-size: .8125rem; letter-spacing: .05em;
    color: #fff;
    background: linear-gradient(180deg, rgba(15,17,20,0) 0%, rgba(15,17,20,.62) 100%);
    opacity: 0; transform: translateY(6px);
    transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.space-gallery figure:hover figcaption { opacity: 1; transform: translateY(0); }

.space-gallery .g-big  { grid-column: span 3; grid-row: span 2; }
.space-gallery .g-tall { grid-column: span 3; grid-row: span 1; }
.space-gallery .g-wide { grid-column: span 4; grid-row: span 1; }
.space-gallery .g-sq   { grid-column: span 2; grid-row: span 1; }

@media (max-width: 880px) {
    .space-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
    .space-gallery .g-big,
    .space-gallery .g-tall,
    .space-gallery .g-wide,
    .space-gallery .g-sq { grid-column: span 2; grid-row: span 1; }
}

/* Principles (3-up) */
.principles {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem;
    margin-top: 2.5rem;
}
.principle {
    padding: clamp(1.75rem, 2.8vw, 2.25rem);
    background: var(--paper-0);
    border: 1px solid var(--paper-3);
    border-radius: var(--radius-lg);
    display: flex; flex-direction: column; gap: .5rem;
    box-shadow: var(--shadow-rest);
}
.p-icon {
    width: 38px; height: 38px; color: var(--ink-0);
    margin-bottom: 1rem;
}
.principle h3 {
    font-family: var(--serif); font-size: 1.125rem; color: var(--ink-0);
    margin: 0 0 .3em; letter-spacing: -0.018em;
}
.principle p { font-size: .9375rem; color: var(--ink-1); margin: 0; line-height: 1.7; }

/* Equipment list */
.equipment-list {
    margin: 2rem 0 0; display: flex; flex-direction: column;
    border-top: 1px solid var(--paper-3);
}
.eq-item {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--paper-3);
    color: var(--ink-1);
    transition: padding .28s var(--ease), color .2s var(--ease);
}
.eq-item:hover { padding-left: .75rem; color: var(--ink-0); }
.eq-item h3 {
    font-family: var(--serif); font-size: 1.125rem; margin: 0 0 .25em;
    color: var(--ink-0); letter-spacing: -0.018em;
}
.eq-item p { font-size: .9375rem; color: var(--ink-2); margin: 0; max-width: 52ch; }
.eq-arrow {
    color: var(--ink-2); flex-shrink: 0; transition: transform .22s var(--ease), color .22s var(--ease);
}
.eq-item:hover .eq-arrow { transform: translateX(4px); color: var(--ink-0); }

/* Location card */
.location-card {
    display: grid; grid-template-columns: 5fr 7fr; gap: 0;
    background: var(--paper-0);
    border: 1px solid var(--paper-3);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-rest);
}
.loc-info {
    padding: clamp(2rem, 4vw, 3rem);
    display: flex; flex-direction: column;
}
.loc-info h3 {
    font-family: var(--serif); font-size: 1.5rem; color: var(--ink-0);
    margin: 0 0 1rem; letter-spacing: -0.022em;
}
.loc-info address {
    font-style: normal; font-family: var(--serif); font-size: 1.125rem;
    color: var(--ink-0); line-height: 1.5; margin-bottom: 2rem;
}
.loc-facts { margin: 0; padding: 1.5rem 0 0; border-top: 1px solid var(--paper-3); display: flex; flex-direction: column; gap: 1.25rem; }
.loc-facts div { display: grid; grid-template-columns: 100px 1fr; gap: 1rem; align-items: baseline; }
.loc-facts dt {
    font-family: var(--sans); font-size: .6875rem; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}
.loc-facts dd {
    margin: 0; font-size: .9375rem; color: var(--ink-1); line-height: 1.55;
}
.loc-facts dd a { color: var(--ink-0); border-bottom: 1px solid var(--paper-3); padding-bottom: 1px; }
.loc-facts dd a:hover { border-bottom-color: var(--ink-0); }

.loc-map { position: relative; min-height: 380px; background: var(--paper-2); }
.loc-map iframe {
    position: absolute; inset: 0; width: 100%; height: 100%;
    border: 0; display: block;
    filter: grayscale(1) contrast(.98);
    transition: filter .6s var(--ease);
}
.loc-map:hover iframe { filter: grayscale(0) contrast(1); }

@media (max-width: 880px) {
    .location-card { grid-template-columns: 1fr; }
    .loc-map { min-height: 300px; order: 2; }
    .loc-info { order: 1; }
}

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--paper-3); }
.timeline li {
    display: grid; grid-template-columns: 140px 1fr; gap: 1.75rem;
    padding: 1.5rem 0 1.5rem 1.75rem;
    border-bottom: 1px solid var(--paper-3);
    position: relative;
}
.timeline li::before {
    content: ''; position: absolute; left: -5px; top: 2.1rem;
    width: 9px; height: 9px; border-radius: 999px;
    background: var(--paper-0); border: 2px solid var(--ink-0);
}
.timeline li:last-child { border-bottom: 0; }
.t-year {
    font-family: var(--sans); font-size: .75rem;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--ink-2); font-weight: 500;
    padding-top: .25rem;
}
.t-body h3 {
    font-family: var(--serif); font-size: 1.125rem; font-weight: 600;
    margin: 0 0 .4em; color: var(--ink-0); letter-spacing: -0.015em;
}
.t-body p { margin: 0; color: var(--ink-1); font-size: .9375rem; line-height: 1.7; }
.t-body em { font-style: italic; color: var(--ink-0); }
@media (max-width: 640px) {
    .timeline li { grid-template-columns: 1fr; gap: .4rem; padding-left: 1.25rem; }
    .timeline li::before { top: .9rem; left: -5.5px; }
}

/* Certifications grid */
.cred-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 2rem; }
.cred {
    padding: clamp(1.5rem, 2.5vw, 2rem);
    background: var(--paper-0);
    border: 1px solid var(--paper-3);
    border-radius: var(--radius-lg);
    transition: border-color .28s var(--ease), transform .28s var(--ease), box-shadow .28s var(--ease);
    position: relative;
    box-shadow: var(--shadow-rest);
}
.cred:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.cred-num {
    position: absolute; top: 1.25rem; right: 1.25rem;
    font-family: var(--serif); font-size: 2rem; color: var(--paper-3); font-weight: 400;
    line-height: 1;
}
.cred h3 { font-size: 1.125rem; margin: 0 2.25rem .75em 0; color: var(--ink-0); }
.cred p { font-size: .9375rem; color: var(--ink-1); margin: 0 0 1rem; line-height: 1.6; }
.cred-orgs { list-style: none; padding: 0; margin: 1rem 0 0; border-top: 1px solid var(--paper-3); padding-top: 1rem; }
.cred-orgs li {
    font-size: .8125rem; color: var(--ink-2); margin: .3em 0; padding-left: 1em; position: relative;
}
.cred-orgs li::before { content: '·'; position: absolute; left: 0; color: var(--accent); font-weight: 600; }

/* Awards */
.awards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.awards li {
    display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--paper-3);
}
.awards li:last-child { border-bottom: 1px solid var(--paper-3); }
.a-year {
    font-family: var(--serif); font-size: 1.5rem; color: var(--ink-0); font-weight: 600;
    letter-spacing: -0.02em; padding-top: .15rem;
}
.awards h3 { font-family: var(--serif); font-size: 1.125rem; margin: 0 0 .3em; color: var(--ink-0); }
.awards p { margin: 0; color: var(--ink-1); font-size: .9375rem; }
@media (max-width: 640px) { .awards li { grid-template-columns: 1fr; gap: .25rem; } }

/* Publications */
.pub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.pub-col h3 {
    font-family: var(--sans); font-size: .75rem; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
    margin: 0 0 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--paper-3);
}
.pub-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pub-tags li {
    font-family: var(--serif); font-size: 1rem;
    padding: .5rem .85rem;
    background: var(--paper-1);
    border: 1px solid var(--paper-3);
    border-radius: 999px;
    color: var(--ink-0);
}
.pub-plain { list-style: none; padding: 0; margin: 0; }
.pub-plain li {
    font-family: var(--serif); font-size: 1rem; color: var(--ink-1);
    padding: .5rem 0; border-bottom: 1px solid var(--paper-3);
}
.pub-plain li:last-child { border-bottom: 0; }

/* Books */
.books-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.book {
    padding: clamp(1.75rem, 3vw, 2.25rem);
    background: var(--paper-0);
    border: 1px solid var(--paper-3);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-rest);
    display: flex; flex-direction: column; gap: .5rem;
}
.book-kind {
    font-family: var(--sans); font-size: .7rem; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase; color: var(--brand-green);
}
.book h3 {
    font-family: var(--serif); font-size: 1.25rem; color: var(--ink-0);
    margin: .25em 0 .5em; letter-spacing: -0.02em;
}
.book p { font-size: .9375rem; color: var(--ink-1); margin: 0; line-height: 1.6; }
.book-pub {
    margin-top: auto !important; padding-top: 1.25rem;
    font-family: var(--serif); font-style: italic; color: var(--ink-2) !important;
    border-top: 1px solid var(--paper-3); font-size: .875rem !important;
}

/* ===== ABOUT BLOCK =================================================== */
.about-block {
    display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
.about-block .about-figure {
    position: relative; aspect-ratio: 5/6; overflow: hidden; border-radius: var(--radius-lg);
    background: var(--paper-2);
}
.about-block .about-figure img { width: 100%; height: 100%; object-fit: cover; }
.about-block .about-figure::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(15,17,20,.04);
    pointer-events: none;
}
.about-block h2 { margin-bottom: .8rem; }
.about-block .about-sig { margin-top: 2rem; font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 820px) {
    .about-block { grid-template-columns: 1fr; gap: 2rem; }
    .about-block .about-figure { aspect-ratio: 4/3; max-width: 420px; }
}

/* ===== FEATURE GRID (services) ======================================= */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--paper-3); border: 1px solid var(--paper-3); border-radius: var(--radius-lg); overflow: hidden; }
.feature {
    background: var(--paper-0);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    transition: background-color .3s var(--ease);
    display: flex; flex-direction: column; gap: .75rem; color: var(--ink-1);
}
.feature:hover { background: var(--paper-1); color: var(--ink-0); }
.feature .feature-icon {
    width: 44px; height: 44px; border-radius: 999px;
    background: var(--accent-2);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--ink-0);
    margin-bottom: .5rem;
}
.feature .feature-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.feature h3 { font-size: 1.125rem; margin: 0; color: var(--ink-0); }
.feature p { font-size: .9375rem; color: var(--ink-2); margin: 0 0 auto; }
.feature .feature-more { font-size: .8125rem; color: var(--ink-0); letter-spacing: .02em; border-bottom: 1px solid var(--paper-3); padding-bottom: 2px; width: fit-content; transition: border-color .2s var(--ease); }
.feature:hover .feature-more { border-color: var(--ink-0); }
@media (max-width: 720px) { .feature-grid { grid-template-columns: 1fr; } }

/* ===== CURATED LIST (conditions) ===================================== */
.curated-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.curated-list li { border-top: 1px solid var(--paper-3); }
.curated-list li:nth-child(-n+2) { border-top: 0; }
.curated-list a {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
    padding: 1.25rem 1.25rem 1.25rem 0;
    font-family: var(--serif); font-size: 1.125rem; font-weight: 500;
    color: var(--ink-0);
    transition: padding .28s var(--ease), color .2s var(--ease);
}
.curated-list a:hover { padding-left: .75rem; color: var(--ink-0); background: var(--paper-1); }
.curated-list a .num { font-family: var(--sans); font-size: .75rem; color: var(--ink-2); font-weight: 500; letter-spacing: .1em; }
.curated-list a .arrow { color: var(--ink-2); transition: transform .22s var(--ease), color .22s var(--ease); }
.curated-list a:hover .arrow { transform: translateX(4px); color: var(--ink-0); }
@media (max-width: 720px) {
    .curated-list { grid-template-columns: 1fr; }
    .curated-list li:nth-child(-n+2) { border-top: 1px solid var(--paper-3); }
    .curated-list li:first-child { border-top: 0; }
}

/* ===== ARTICLES PREVIEW ============================================== */
.articles { display: grid; gap: 0; }
.article-row {
    display: grid; grid-template-columns: 180px 1fr auto;
    gap: clamp(1rem, 3vw, 3rem);
    align-items: baseline;
    padding-block: 1.75rem;
    border-top: 1px solid var(--paper-3);
    color: var(--ink-1);
    transition: color .2s var(--ease);
}
.article-row:first-child { border-top: 0; }
.article-row:hover { color: var(--ink-0); }
.article-row .date { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }
.article-row h3 { font-size: 1.25rem; margin: 0 0 .3rem; font-weight: 600; }
.article-row p { font-size: .9375rem; color: var(--ink-2); margin: 0; }
.article-row .arrow { color: var(--ink-2); transition: transform .22s var(--ease); }
.article-row:hover .arrow { transform: translateX(4px); color: var(--ink-0); }
@media (max-width: 720px) {
    .article-row { grid-template-columns: 1fr; gap: .25rem; padding-block: 1.25rem; }
    .article-row .arrow { display: none; }
}

/* ===== CONTACT CTA =================================================== */
.contact-cta {
    background: var(--paper-1);
    padding-block: clamp(4rem, 7vw, 6rem);
    border-top: 1px solid var(--paper-3);
    border-bottom: 1px solid var(--paper-3);
}
.contact-cta h2 { margin-bottom: 1rem; }
.contact-cta .lede { margin-bottom: 2rem; color: var(--ink-2); }
.contact-cta .cta-meta { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 2rem; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.contact-cta .cta-meta a { color: var(--ink-1); border-bottom: 1px solid var(--paper-3); padding-bottom: 2px; }
.contact-cta .cta-meta a:hover { border-bottom-color: var(--ink-0); color: var(--ink-0); }

/* ===== PAGE HERO (inner) ============================================= */
.page-hero {
    padding: clamp(5rem, 9vw, 7rem) 0 clamp(3rem, 5vw, 4rem);
    background: var(--paper-0);
    border-bottom: 1px solid var(--paper-3);
}
.page-hero .container > * { max-width: 860px; }
.page-hero h1 { margin-bottom: .2em; }
.page-hero .lede { margin-top: .75rem; }

/* Breadcrumbs */
.crumbs { font-family: var(--sans); font-size: .8125rem; color: var(--ink-2); margin-bottom: 1.5rem; letter-spacing: .01em; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--ink-0); }
.crumbs .sep { opacity: .45; margin-inline: .4em; }

/* ===== CONTENT (prose) =============================================== */
.content { padding-block: clamp(3rem, 5vw, 4rem); }
.prose { max-width: var(--contentw); font-size: clamp(1rem, 1.1vw, 1.0625rem); line-height: 1.8; color: var(--ink-1); }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); margin-top: 2.5rem; margin-bottom: .6em; }
.prose h3 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: .5em; }
.prose h4 { font-size: 1.0625rem; margin-top: 1.5rem; margin-bottom: .3em; font-family: var(--sans); font-weight: 600; }
.prose a { color: var(--ink-0); border-bottom: 1px solid var(--paper-3); padding-bottom: 1px; transition: border-color .2s var(--ease); }
.prose a:hover { border-bottom-color: var(--ink-0); }
.prose strong, .prose b { color: var(--ink-0); font-weight: 600; }
.prose em, .prose i { font-style: italic; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-block: .35em; }
.prose ul li::marker { color: var(--ink-2); }
.prose img { border-radius: var(--radius-lg); margin: 1.5rem 0; border: 1px solid var(--paper-3); max-width: 100%; height: auto; }
.prose figure { margin: 1.75rem 0; }
.prose figure img { margin: 0; }
.prose figcaption { font-family: var(--serif); font-style: italic; font-size: .9rem; color: var(--ink-2); text-align: center; margin-top: .75rem; }
.prose blockquote {
    margin: 2rem 0; padding: .5rem 0 .5rem 1.5rem;
    border-left: 2px solid var(--accent);
    font-family: var(--serif); font-style: italic; font-size: 1.25rem;
    color: var(--ink-1); line-height: 1.5;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9375rem; }
.prose th, .prose td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--paper-3); }
.prose th { font-family: var(--sans); font-weight: 600; color: var(--ink-0); font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; }

/* Split layout (disease/test inner) */
.split {
    display: grid; grid-template-columns: minmax(0, 1fr) 280px;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
    padding-block: clamp(3rem, 5vw, 4rem);
}
.split .rail {
    position: sticky; top: 100px;
    padding: 1.5rem;
    border: 1px solid var(--paper-3);
    border-radius: var(--radius-lg);
    background: var(--paper-1);
}
.split .rail h4 {
    font-family: var(--sans); font-size: .7rem; letter-spacing: .14em;
    text-transform: uppercase; color: var(--ink-2); font-weight: 500;
    margin-bottom: .75rem;
}
.split .rail ul { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.split .rail li { border-top: 1px solid var(--paper-3); }
.split .rail li:first-child { border-top: 0; }
.split .rail a { display: block; padding: .6rem 0; font-size: .9375rem; color: var(--ink-1); }
.split .rail a:hover { color: var(--ink-0); }
.split .rail li.active a { color: var(--ink-0); font-weight: 500; }
.split .rail .mini-cta { display: block; margin-top: 1rem; padding: .85rem 1rem; text-align: center; background: var(--ink-0); color: var(--paper-0); border-radius: var(--radius); font-size: .875rem; font-weight: 500; transition: background-color .22s var(--ease); }
.split .rail .mini-cta:hover { background: var(--ink-1); color: var(--paper-0); }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } .split .rail { position: static; } }

/* ===== CARD GRID (indices) =========================================== */
.card-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem;
}
.card {
    display: flex; flex-direction: column; gap: .5rem;
    padding: clamp(1.5rem, 2.5vw, 2rem);
    background: var(--paper-0);
    border: 1px solid var(--paper-3);
    border-radius: var(--radius-lg);
    color: var(--ink-1);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
    box-shadow: var(--shadow-rest);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--paper-3); }
.card h3 {
    font-family: var(--serif); font-size: 1.25rem; margin: 0; color: var(--ink-0); letter-spacing: -0.018em;
}
.card p { font-size: .9375rem; color: var(--ink-2); margin: 0; }
.card .card-more { margin-top: auto; padding-top: 1rem; font-size: .8125rem; letter-spacing: .04em; color: var(--ink-0); display: inline-flex; align-items: center; gap: .4em; }
.card .card-more .arrow { transition: transform .22s var(--ease); }
.card:hover .card-more .arrow { transform: translateX(3px); }

/* ===== POST LIST ===================================================== */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { border-top: 1px solid var(--paper-3); padding: 2rem 0; display: grid; grid-template-columns: 180px 1fr auto; gap: clamp(1rem, 3vw, 3rem); align-items: baseline; }
.post-list li:first-child { border-top: 0; }
.post-list .post-date { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; font-family: var(--sans); }
.post-list h2 { font-size: 1.375rem; margin: 0 0 .4em; font-weight: 600; }
.post-list h2 a { color: var(--ink-0); }
.post-list h2 a:hover { color: var(--ink-0); }
.post-list p { font-size: .9375rem; color: var(--ink-2); margin: 0; max-width: 58ch; }
.post-list .arrow { color: var(--ink-2); transition: transform .22s var(--ease), color .22s var(--ease); }
.post-list li:hover .arrow { transform: translateX(4px); color: var(--ink-0); }
@media (max-width: 820px) { .post-list li { grid-template-columns: 1fr; gap: .4rem; } .post-list .arrow { display: none; } }

/* ===== CONTACT PAGE ================================================== */
.contact-grid {
    display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4rem);
    padding-block: clamp(2.5rem, 4vw, 4rem);
}
.contact-info h3 { font-family: var(--sans); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; margin: 2rem 0 .5rem; }
.contact-info h3:first-of-type { margin-top: 0; }
.contact-info p { margin: 0; color: var(--ink-1); line-height: 1.72; }
.contact-info a { color: var(--ink-0); border-bottom: 1px solid var(--paper-3); padding-bottom: 1px; transition: border-color .2s var(--ease); }
.contact-info a:hover { border-bottom-color: var(--ink-0); }

.form { display: grid; gap: 1.25rem; max-width: 540px; }
.form .field { display: grid; gap: .4rem; }
.form label { font-family: var(--sans); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }
.form input, .form textarea {
    appearance: none; width: 100%;
    padding: .85rem 1rem;
    font-family: var(--sans); font-size: 1rem;
    color: var(--ink-0); background: var(--paper-0);
    border: 1px solid var(--paper-3);
    border-radius: var(--radius);
    transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.form input:focus, .form textarea:focus {
    outline: none; border-color: var(--ink-0);
    box-shadow: 0 0 0 3px var(--accent-2);
}
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .875rem; color: var(--ink-2); margin: 0; min-height: 1.2em; }
.form-status.ok  { color: #2f6f4a; }
.form-status.err { color: #a44434; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ===== FOOTER ======================================================== */
.site-footer {
    background: var(--paper-1);
    border-top: 1px solid var(--paper-3);
    padding: clamp(3rem, 5vw, 4rem) 0 2rem;
    font-size: .9375rem;
    color: var(--ink-2);
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(1.5rem, 3vw, 3rem);
    padding-bottom: 2.5rem;
}
.footer-grid h4 { font-family: var(--sans); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; margin: 0 0 .75rem; }
.footer-grid p { margin: 0; line-height: 1.72; }
.footer-grid a { color: var(--ink-1); border-bottom: 1px solid transparent; padding-bottom: 1px; transition: border-color .2s var(--ease); }
.footer-grid a:hover { border-bottom-color: var(--paper-3); color: var(--ink-0); }
.footer-brand { display: flex; flex-direction: column; gap: .75rem; }
.footer-logo { width: 56px; height: 56px; object-fit: contain; display: block; }
.footer-brand .name { color: var(--ink-0); font-family: var(--serif); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.02em; }
.footer-brand .role { color: var(--ink-2); font-size: .875rem; line-height: 1.55; }
.footer-legal {
    border-top: 1px solid var(--paper-3);
    padding-top: 1.25rem;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    font-size: .8125rem; color: var(--ink-2);
}
@media (max-width: 820px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ===== REVEALS ======================================================= */
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
    .reveal.is-in { opacity: 1; transform: none; }
}

/* ===== Misc helpers ================================================== */
.visually-hidden { clip: rect(0 0 0 0); clip-path: inset(100%); height: 1px; width: 1px; overflow: hidden; position: absolute; white-space: nowrap; }

.arrow-right::after { content: '→'; display: inline-block; margin-left: .3em; transition: transform .22s var(--ease); }
a:hover .arrow-right::after { transform: translateX(3px); }

/* ===== BACKGROUND AUDIO TOGGLE ====================================== */
.audio-toggle {
    position: fixed; bottom: 20px; right: 20px; z-index: 70;
    appearance: none; border: 1px solid var(--paper-3);
    background: color-mix(in oklab, var(--paper-0) 92%, transparent);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
            backdrop-filter: saturate(140%) blur(10px);
    color: var(--ink-0);
    padding: 10px 16px 10px 12px;
    border-radius: 999px;
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: var(--sans); font-size: .75rem; font-weight: 500;
    letter-spacing: .06em;
    cursor: pointer;
    box-shadow: 0 2px 8px -2px rgba(15,17,20,.08), 0 16px 40px -24px rgba(15,17,20,.18);
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), background-color .22s var(--ease);
}
.audio-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(15,17,20,.1), 0 24px 48px -20px rgba(15,17,20,.24);
    background: var(--paper-0);
}
.audio-toggle:focus-visible { outline: 2px solid var(--ink-0); outline-offset: 3px; }
.audio-toggle svg { width: 16px; height: 16px; flex: 0 0 16px; }
.audio-toggle .ico-pause { display: none; }
.audio-toggle.is-playing .ico-play  { display: none; }
.audio-toggle.is-playing .ico-pause { display: block; }
.audio-toggle .audio-label {
    max-width: 180px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    color: var(--ink-1);
}
.audio-toggle.is-playing .audio-label { color: var(--ink-0); }
.audio-toggle::before {
    content: ''; width: 6px; height: 6px; border-radius: 999px;
    background: var(--brand-green);
    box-shadow: 0 0 0 0 color-mix(in oklab, var(--brand-green) 60%, transparent);
    animation: pulse 1.6s ease-in-out infinite;
    transition: background-color .22s var(--ease);
}
.audio-toggle.is-playing::before {
    background: var(--brand-green);
}
.audio-toggle:not(.is-playing)::before {
    /* Still pulsing while paused to invite click */
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--brand-green) 50%, transparent); }
    50%      { box-shadow: 0 0 0 6px transparent; }
}
@media (max-width: 520px) {
    .audio-toggle { bottom: 14px; right: 14px; padding: 8px 14px 8px 10px; }
    .audio-toggle .audio-label { display: none; }
}

/* Selection */
::selection { background: var(--ink-0); color: var(--paper-0); }

/* Focus */
:where(a, button, [role=button], input, textarea, select):focus-visible {
    outline: 2px solid var(--ink-0);
    outline-offset: 3px;
    border-radius: 2px;
}
