@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');


/* =========================
   GLOBAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    background: #080808;
    color: #f1f1f1;

    font-family: 'Inter', sans-serif;

    overflow-x: hidden;
}


::selection {
    background: #ffffff;
    color: #000000;
}


a {
    color: inherit;
}


/* =========================
   BACKGROUND
========================= */

.background {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100vh;

    z-index: -2;

    background-image: url("hero.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}



.background-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.20),
            rgba(0,0,0,0.55)
        );
}


/* =========================
   NAVIGATION
========================= */

nav {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 30px 5vw;

    z-index: 1000;

    mix-blend-mode: normal;

}


.brand {

    font-size: 18px;

    font-weight: 600;

    letter-spacing: -1px;

    text-decoration: none;

}


.nav-links {

    display: flex;

    align-items: center;

    gap: 30px;

}


.nav-links a {
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    color: #e6e6e6;

    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    padding: 9px 15px;

    background: rgba(12,12,12,.20);

    -webkit-backdrop-filter: blur(12px) saturate(125%);
    backdrop-filter: blur(12px) saturate(125%);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05),
        0 4px 18px rgba(0,0,0,.08);

    transition:
        background .25s ease,
        border-color .25s ease,
        transform .25s ease,
        opacity .25s ease;
}


.nav-links a:hover {
    opacity: 1;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.48);
    transform: translateY(-1px);
}


.nav-cv {
    border-color: rgba(255,255,255,.42);
    background: rgba(12,12,12,.24);
}


/* =========================
   HERO
========================= */

.hero {

    min-height: 100vh;

    display: flex;

    align-items: flex-end;

    position: relative;

    padding:

        150px
        5vw
        70px;

}


.hero-inner {

    width: 100%;

}


.hero-label {

    color: #b3b3b3;

    font-size: 11px;

    letter-spacing: 3px;

    margin-bottom: 35px;

}


.hero h1 {
    font-size: clamp(38px, 8.4vw, 100px);
    line-height: 0.9;
    letter-spacing: -0.065em;
    font-weight: 400;
    white-space: nowrap;
    margin: 0;
}

.hero-subtitle {
    margin-top: 16px;
    color: #c5c5c5;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 5px;
}

.hero-bottom {

    margin-top: 60px;

    padding-top: 25px;

    border-top: 1px solid rgba(255,255,255,.25);

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

}


.hero-description {
    color: #b3b3b3;
    line-height: 1.65;
    font-size: 16px;
    max-width: none;
    white-space: nowrap;
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


.hero-socials {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-top: 18px;
}

.hero-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 19px;
    height: 19px;

    color: #e6e6e6;
    text-decoration: none;
    opacity: 0.86;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.hero-socials svg {
    width: 17px;
    height: 17px;
    display: block;
}

.hero-socials a:hover {
    opacity: 1;
    transform: translateY(-1px);
}


.explore {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;

    border: 1px solid rgba(255,255,255,.4);
    border-radius: 50px;

    padding: 10px 17px;

    transition: 
        background 0.25s ease,
        border-color 0.25s ease,
        opacity 0.25s ease;
}

.explore:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.7);
}

.arrow {

    font-size: 20px;

}


.hero-side {

    position: absolute;

    right: 5vw;

    top: 50%;

    transform:

        translateY(-50%)
        rotate(90deg);

    transform-origin: right;

    color: #777;

    font-size: 9px;

    letter-spacing: 3px;

}


/* =========================
   SECTIONS
========================= */

.section {

    background: #0b0b0b;

    border-top: 1px solid #252525;

    padding: 120px 5vw;

}


.section-heading {

    display: flex;

    gap: 30px;

    margin-bottom: 100px;

}


.section-number {
    color: #666;
    font-size: 15px;
    font-weight: 400;
}

.section-label {
    color: #999;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 2px;
}


/* =========================
   ABOUT
========================= */

.about-section {
    background: #0b0b0b;
}


.about-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(300px, .75fr);

    gap: 9vw;

    align-items: start;
}


.about-content {
    max-width: 820px;
}




.about-content h2 {
    font-size: clamp(
        45px,
        5vw,
        82px
    );

    font-weight: 300;

    line-height: 1.03;

    letter-spacing: -0.055em;

    margin-bottom: 50px;

    max-width: 800px;
}


.about-intro {
    color: #dedede;

    font-size: clamp(
        21px,
        2vw,
        29px
    );

    font-weight: 300;

    line-height: 1.5;

    max-width: 720px;

    margin-bottom: 32px;
}


.about-text {
    color: #909090;

    font-size: 16px;

    line-height: 1.8;

    max-width: 700px;

    margin-bottom: 24px;
}


.about-cv {
    display: inline-block;

    margin-top: 25px;

    color: #eeeeee;

    font-size: 14px;

    text-decoration: none;

    padding-bottom: 7px;

    border-bottom: 1px solid #555;

    transition: opacity .25s ease;
}


.about-cv:hover {
    opacity: .55;
}


/* HEADSHOT */

.about-photo-wrapper {
    width: 100%;
}


.about-photo {
    width: 100%;

    aspect-ratio: 4 / 5;

    object-fit: cover;

    object-position: center top;

    display: block;
}


.photo-caption {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding-top: 14px;

    color: #656565;

    font-size: 9px;

    letter-spacing: 1.5px;

    border-top: 1px solid #252525;

    margin-top: 12px;
}


.text-link {

    width: fit-content;

    margin-top: 20px;

    text-decoration: none;

    padding-bottom: 6px;

    border-bottom: 1px solid #555;

}


/* =========================
   SELECTED WORK
========================= */

.selected-work-section {
    background: #0b0b0b;
}

.selected-work-section .section-heading {
    margin-bottom: 56px;
}




/* six featured cards, three per row on desktop */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.work-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #303030;
    background: #111111;
    display: flex;
    flex-direction: column;
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.work-card:hover {
    transform: translateY(-6px);
    border-color: #585858;
    box-shadow: 0 18px 42px rgba(0,0,0,.28);
}

.work-art {
    height: 190px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #282828;
    background:
        radial-gradient(circle at 70% 28%, rgba(125,146,159,.10), transparent 38%),
        linear-gradient(145deg, #171717, #0e0e0e);
}

.work-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8,8,8,.18), transparent 60%);
    pointer-events: none;
}

.work-art svg {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform .55s cubic-bezier(.2,.75,.25,1), opacity .35s ease;
    opacity: .78;
}

.work-card:hover .work-art svg {
    transform: scale(1.045);
    opacity: 1;
}

.work-card-body {
    min-height: 250px;
    padding: 24px 24px 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.work-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
    color: #767676;
    font-size: 9px;
    letter-spacing: 1.45px;
}

.work-card-meta span:last-child {
    text-align: right;
}

.work-card h3 {
    font-size: clamp(23px, 1.9vw, 34px);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -.035em;
    margin-bottom: 16px;
}

.work-card-body > p {
    color: #858585;
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 24px;
}

.work-foot {
    margin-top: auto;
    color: #b8b8b8;
    font-size: 11px;
    letter-spacing: .45px;
}

.work-foot-link {
    width: fit-content;
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 1px solid #474747;
    transition: color .2s ease, border-color .2s ease;
}

.work-foot-link:hover {
    color: #fff;
    border-color: #aaa;
}

.work-foot-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.work-foot-links .work-foot-link {
    margin-top: 0;
}

/* Card animations */
.card-ir svg path,
.card-mals svg path,
.card-aorto svg path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ir-shadow { stroke: rgba(255,255,255,.06); stroke-width: 16; }
.ir-flow { stroke: rgba(215,228,235,.78); stroke-width: 2.5; stroke-dasharray: 7 10; animation: irFlow 6s linear infinite; }
.ir-branch { stroke: rgba(215,228,235,.32); stroke-width: 2; }
.ir-pulse { fill: rgba(228,240,246,.92); animation: irPulse 2.2s ease-in-out infinite; }
@keyframes irFlow { to { stroke-dashoffset: -110; } }
@keyframes irPulse { 50% { r: 8; opacity: .35; } }

.mals-aorta { stroke: rgba(220,226,232,.70); stroke-width: 5; }
.mals-branch { stroke: rgba(220,226,232,.40); stroke-width: 3; }
.mals-ring { fill: none; stroke: rgba(242,242,242,.72); stroke-width: 2; transform-origin: 180px 68px; animation: malsCompress 2.8s ease-in-out infinite; }
.mals-focus { fill: rgba(235,235,235,.88); }
@keyframes malsCompress { 50% { transform: scaleX(.68); opacity: .42; } }

.aorto-main, .aorto-left, .aorto-right, .aorto-side { stroke: rgba(220,226,232,.62); stroke-width: 3; stroke-dasharray: 220; stroke-dashoffset: 220; animation: vesselDraw 5.6s ease-in-out infinite; }
.aorto-side { stroke-width: 2; opacity: .55; }
.aorto-node { fill: rgba(230,236,241,.86); animation: nodePulse 2.4s ease-in-out infinite; }
@keyframes vesselDraw { 0%,12% { stroke-dashoffset:220; } 48%,82% { stroke-dashoffset:0; } 100% { stroke-dashoffset:-80; } }
@keyframes nodePulse { 50% { r: 8; opacity: .42; } }

.chart-axis, .chart-error { stroke: rgba(220,225,230,.30); stroke-width: 2; }
.chart-bar { fill: rgba(203,216,226,.38); transform-box: fill-box; transform-origin: center bottom; }
.sodium-one { animation: barOne 3.8s ease-in-out infinite alternate; }
.sodium-two { animation: barTwo 4.4s ease-in-out infinite alternate; }
@keyframes barOne { from { transform: scaleY(.72); } to { transform: scaleY(1); } }
@keyframes barTwo { from { transform: scaleY(.82); } to { transform: scaleY(1); } }

.fiber { fill: none; stroke: rgba(208,220,228,.33); stroke-width: 4; stroke-linecap: round; }
.fiber.one { stroke-dasharray: 10 10; animation: fiberShift 8s linear infinite; }
.fiber.two { stroke-dasharray: 5 12; animation: fiberShiftBack 10s linear infinite; }
.nmr { fill: none; stroke: rgba(234,241,246,.80); stroke-width: 2; stroke-dasharray: 520; stroke-dashoffset: 520; animation: nmrDraw 4.8s ease-in-out infinite; }
@keyframes fiberShift { to { stroke-dashoffset: -120; } }
@keyframes fiberShiftBack { to { stroke-dashoffset: 130; } }
@keyframes nmrDraw { 0%,10% { stroke-dashoffset:520; opacity:.2; } 45%,82% { stroke-dashoffset:0; opacity:.95; } 100% { stroke-dashoffset:-100; opacity:.2; } }

.bio-wave { fill: none; stroke: rgba(213,224,232,.42); stroke-width: 4; stroke-linecap: round; }
.wave-a { animation: waveMove 5s ease-in-out infinite alternate; }
.wave-b { animation: waveMove 6.4s ease-in-out infinite alternate-reverse; }
.bio-dot { fill: rgba(235,242,246,.9); }
.d1 { animation: bioPulse 2.2s ease-in-out infinite; }
.d2 { animation: bioPulse 2.2s ease-in-out 1.1s infinite; }
@keyframes waveMove { from { transform: translateX(-8px); } to { transform: translateX(8px); } }
@keyframes bioPulse { 50% { r: 9; opacity: .35; } }

/* Publications list */
.publications-block { margin-top: 130px; }
.publications-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:30px; padding-bottom:22px; border-bottom:1px solid #303030; }
.publications-heading p { color:#b0b0b0; font-size:15px; letter-spacing:2px; }
.publications-heading span { color:#666; font-size:13px; }
.pub-year-group { display:grid; grid-template-columns:120px minmax(0,1fr); gap:34px; padding-top:42px; }
.pub-year { color:#858585; font-size:16px; }
.pub-list { border-top:1px solid #2c2c2c; }
.pub-entry { position:relative; display:block; padding:30px 56px 30px 0; border-bottom:1px solid #2c2c2c; color:inherit; text-decoration:none; transition:padding-left .25s ease, background .25s ease; }
a.pub-entry:hover { padding-left:12px; background:rgba(255,255,255,.018); }
.pub-meta { display:flex; flex-wrap:wrap; gap:14px; margin-bottom:12px; color:#666; font-size:9px; letter-spacing:1.5px; }
.pub-meta span + span::before { content:"•"; margin-right:14px; color:#444; }
.pub-entry h3 { max-width:1080px; font-size:clamp(20px,1.8vw,29px); font-weight:300; line-height:1.28; letter-spacing:-.02em; margin-bottom:17px; }
.pub-bottom { display:flex; justify-content:space-between; gap:28px; color:#767676; font-size:12px; line-height:1.55; }
.pub-bottom strong { color:#b7b7b7; font-weight:500; }
.pub-role { white-space:nowrap; }
.pub-arrow { position:absolute; right:4px; top:50%; transform:translateY(-50%); color:#777; font-size:20px; transition:transform .2s ease,color .2s ease; }
a.pub-entry:hover .pub-arrow { color:#ddd; transform:translate(4px,calc(-50% - 4px)); }

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

@media (max-width: 760px) {
    .work-grid { grid-template-columns:1fr; }
    .work-art { height:180px; }
    .work-card-body { min-height:auto; }
    .pub-year-group { grid-template-columns:1fr; gap:16px; }
    .pub-bottom { flex-direction:column; gap:7px; }
    .pub-role { white-space:normal; }
}

@media (max-width: 560px) {
    .publications-block { margin-top:95px; }
    .publications-heading { flex-direction:column; align-items:flex-start; gap:8px; }
    .pub-entry { padding-right:36px; }
    .pub-meta { flex-direction:column; gap:5px; }
    .pub-meta span + span::before { content:""; margin-right:0; }
}

/* =========================
   EXPERIENCE
========================= */

/* =========================
   EXPERIENCE
========================= */

.experience-grid {

    display: grid;

    grid-template-columns:
        .8fr
        1.2fr;

    gap: 10vw;

}


.experience-intro h2 {

    font-size: clamp(
        50px,
        6vw,
        95px
    );

    font-weight: 300;

    line-height: 1;

    letter-spacing: -.06em;

}


.experience-list {

    border-top: 1px solid #292929;

}


.experience-row {

    display: flex;

    justify-content: space-between;

    gap: 30px;

    padding: 30px 0;

    border-bottom: 1px solid #292929;

}


.experience-row h3 {

    font-size: 18px;

    font-weight: 400;

    margin-bottom: 7px;

}


.experience-row p,

.experience-row span {

    color: #6f6f6f;

    font-size: 13px;

}



/* =========================
   CONTACT
========================= */

.contact-section {

    min-height: 90vh;

    background: #eeeeea;

    color: #111111;

    padding:

        100px
        5vw
        40px;

}


.contact-label {

    font-size: 11px;

    letter-spacing: 2px;

    margin-top: 10px;

}


.contact-section h2 {

    margin-top: 100px;

    font-size: clamp(
        75px,
        12vw,
        190px
    );

    font-weight: 300;

    letter-spacing: -.08em;

    line-height: .85;

}


.contact-description {

    margin-top: 50px;

    max-width: 450px;

    color: #555;

    line-height: 1.6;

}


.contact-links {

    display: flex;

    gap: 40px;

    margin-top: 60px;

    flex-wrap: wrap;

}


.contact-links a {
    color: #111;
    text-decoration: none;
}

.contact-links a:not(.contact-cv) {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    opacity: .86;
    transition: opacity .2s ease, transform .2s ease;
}

.contact-links a:not(.contact-cv):hover {
    opacity: 1;
    transform: translateY(-1px);
}

.contact-links svg {
    width: 19px;
    height: 19px;
    display: block;
}

.contact-cv {
    border-bottom: 1px solid #777;
    padding-bottom: 6px;
}

footer {

    margin-top: 160px;

    padding-top: 25px;

    border-top: 1px solid #bdbdbd;

    display: flex;

    justify-content: space-between;

    color: #666;

    font-size: 12px;

}


footer a {

    color: #555;

    text-decoration: none;

}


/* =========================
   MOBILE
========================= */

@media (max-width: 800px) {

    nav {

        padding:
            25px
            22px;

    }


    .nav-links {

        gap: 16px;

    }


    .nav-links a:not(.nav-cv) {

        display: none;

    }


    .hero {

        min-height: 100svh;

        padding:

            130px
            22px
            45px;

    }


  .hero h1 {
    font-size: clamp(34px, 9vw, 70px);
    letter-spacing: -0.06em;
    white-space: nowrap;
}
   
   .hero-description {
        white-space: normal;
        max-width: 430px;
    }
   
    .hero-bottom {

        flex-direction: column;

        align-items: flex-start;

        gap: 40px;

    }


    .hero-side {

        display: none;

    }


    .section {

        padding:

            90px
            22px;

    }


    .section-heading {

        margin-bottom: 65px;

    }


    .about-grid,

    .experience-grid {

        grid-template-columns:
            1fr;

        gap: 70px;

    }


    .research-header {

        align-items: flex-start;

        flex-direction: column;

        gap: 30px;

    }


    .research-item {

        grid-template-columns:
            35px
            1fr
            25px;

        gap: 15px;

    }


    .research-description {

        grid-column:
            2 / 4;

    }


    .contact-section {

        padding:

            80px
            22px
            35px;

    }


    .contact-section h2 {

        margin-top: 70px;

    }


    footer {

        margin-top: 120px;

    }
   .about-layout {
    grid-template-columns: 1fr;

    gap: 65px;
}


.about-content h2 {
    font-size: clamp(
        42px,
        12vw,
        68px
    );
}


.about-photo-wrapper {
    max-width: 460px;
}


.about-photo {
    aspect-ratio: 4 / 5;
}

} /* end original mobile media query */


/* =========================================
   ABOUT SECTION - FINAL OVERRIDE
========================================= */

.about-section {
    background: #0b0b0b;
    padding: 110px 5vw 140px;
}


.about-section .section-heading {
    display: flex;
    gap: 55px;
    margin-bottom: 80px;
}


.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 8vw;
    align-items: start;
}


.about-content {
    max-width: 850px;
}




.about-content h2 {
    font-size: clamp(48px, 5vw, 80px);
    font-weight: 300;
    line-height: 1.03;
    letter-spacing: -0.055em;
    margin: 0 0 45px 0;
    color: #f1f1f1;
}


.about-intro {
    color: #dedede;
    font-size: clamp(21px, 1.7vw, 28px);
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 760px;
}


.about-text {
    color: #929292;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 22px;
    max-width: 740px;
}


.about-cv {
    display: inline-block;
    margin-top: 25px;
    color: #eeeeee;
    font-size: 15px;
    text-decoration: none;
    padding-bottom: 7px;
    border-bottom: 1px solid #555;
    transition: opacity 0.25s ease;
}


.about-cv:hover {
    opacity: 0.55;
}


/* HEADSHOT */

.about-photo-wrapper {
    width: 100%;
    max-width: 430px;
    justify-self: end;
}


.about-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    display: block;
}


.photo-caption {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #292929;
    color: #666;
    font-size: 9px;
    letter-spacing: 1.5px;
}


/* MOBILE */

@media (max-width: 800px) {

    .about-section {
        padding: 90px 22px;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-content h2 {
        font-size: clamp(42px, 12vw, 65px);
    }

    .about-photo-wrapper {
        max-width: 430px;
        justify-self: start;
    }

    .photo-caption {
        flex-direction: column;
        gap: 5px;
    }
}

/* =========================================
   CONTINUOUS ABOUT → CONTACT COLOR GRADIENT
   Pulled from the cool blue/steel palette of the hero image.
========================================= */

.site-gradient {
    position: relative;
    background:
        linear-gradient(
            180deg,
            #0a0b0c 0%,
            #0b0e12 20%,
            #0b1116 45%,
            #0d141a 70%,
            #09131c 100%
        );
}

/* Let the single parent gradient flow uninterrupted behind every section. */
.site-gradient .section,
.site-gradient .about-section,
.site-gradient .selected-work-section,
.site-gradient .contact-section {
    background: transparent;
}

/* Keep the section dividers subtle against the changing background. */
.site-gradient .section,
.site-gradient .contact-section {
    border-top-color: rgba(255,255,255,.09);
}

/* Contact used to be a light section; adapt it to the dark end of the gradient. */
.site-gradient .contact-section {
    color: #f1f1f1;
}

.site-gradient .contact-label {
    color: #a7afb7;
}

.site-gradient .contact-description {
    color: #98a2ab;
}

.site-gradient .contact-links a {
    color: #edf1f4;
}

.site-gradient .contact-cv {
    border-bottom-color: rgba(237,241,244,.42);
}

.site-gradient .contact-cv:hover {
    border-bottom-color: rgba(255,255,255,.85);
}

.site-gradient footer {
    border-top-color: rgba(255,255,255,.14);
    color: #77828c;
}

.site-gradient footer a {
    color: #aeb6bd;
}

/* Experience activity cards */
#experience .activity-card {
    border-radius: 16px;
}

#experience .activity-card .work-card-body {
    min-height: 285px;
}

#experience .activity-card .work-foot {
    letter-spacing: .3px;
}

/* =========================================
   FINAL POLISH — FROSTED UI + SECTION LABELS
========================================= */

/* Shared frosted-glass treatment */
.brand,
.explore,
.section-heading,
.frosted-section-pill {
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(12,16,20,.24);
    -webkit-backdrop-filter: blur(12px) saturate(125%);
    backdrop-filter: blur(12px) saturate(125%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05),
        0 4px 18px rgba(0,0,0,.08);
}


/* Top-left YV logo */
.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 14px;
    border-radius: 999px;

    color: #f0f0f0;

    transition:
        background .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.brand:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.48);
    transform: translateY(-1px);
}


/* Hero social icons — slightly larger */
.hero-socials {
    gap: 19px;
}

.hero-socials a {
    width: 25px;
    height: 25px;
}

.hero-socials svg {
    width: 21px;
    height: 21px;
}


/* Explore button — same frosted language as nav buttons */
.explore {
    background: rgba(12,16,20,.24);
    border-color: rgba(255,255,255,.28);

    -webkit-backdrop-filter: blur(12px) saturate(125%);
    backdrop-filter: blur(12px) saturate(125%);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05),
        0 4px 18px rgba(0,0,0,.08);
}

.explore:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.48);
}


/* 01 ABOUT / 02 SELECTED WORK / 03 EXPERIENCE / 04 CONTACT */
.section-heading,
.about-section .section-heading,
.selected-work-section .section-heading,
.contact-section .section-heading {
    display: inline-flex;
    align-items: center;
    width: fit-content;

    gap: 12px;

    padding: 10px 16px;
    border-radius: 999px;

    margin-bottom: 80px;
}

.section-heading .section-number {
    color: #7f8890;
    font-size: 13px;
}

.section-heading .section-label {
    color: #c0c5c9;
    font-size: 13px;
    letter-spacing: 1.8px;
}


/* Publications / Leadership frosted single-title pills */
.heading-pill-row {
    justify-content: flex-start;
    align-items: center;
}

.frosted-section-pill {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    padding: 10px 16px;
    border-radius: 999px;

    color: #c0c5c9 !important;
    font-size: 13px !important;
    letter-spacing: 1.8px !important;
}

/* Keep the normal publications divider, but remove it under Leadership & Involvement. */
.leadership-heading {
    padding-bottom: 0;
    border-bottom: 0;
    margin-bottom: 34px;
}


/* Contact now follows the same section-heading system */
.contact-section {
    padding-top: 120px;
}

.contact-section .contact-section-heading {
    margin-bottom: 90px;
}

.contact-section h2 {
    margin-top: 0;
}

.contact-description {
    max-width: none;
    white-space: nowrap;
}


/* Bottom social icons — match landing-page scale */
.contact-links {
    align-items: center;
    gap: 28px;
}

.contact-links a:not(.contact-cv) {
    width: 25px;
    height: 25px;
}

.contact-links svg {
    width: 21px;
    height: 21px;
}

.contact-cv {
    font-size: 17px;
    line-height: 1;
    font-weight: 400;
}


/* Mobile safeguards */
@media (max-width: 800px) {

    .section-heading,
    .about-section .section-heading,
    .selected-work-section .section-heading,
    .contact-section .section-heading {
        margin-bottom: 62px;
    }

    .contact-description {
        white-space: normal;
    }

    .hero-socials a,
    .contact-links a:not(.contact-cv) {
        width: 24px;
        height: 24px;
    }

    .hero-socials svg,
    .contact-links svg {
        width: 20px;
        height: 20px;
    }

}

/* =========================================
   FROSTED SECTION PILLS — STRONG OVERRIDE
========================================= */

#about .section-heading,
#research > .section-heading,
#experience > .section-heading,
#contact .contact-section-heading {
    display: inline-flex !important;
    align-items: center !important;
    width: fit-content !important;

    gap: 14px !important;
    padding: 10px 17px !important;

    border: 1px solid rgba(255,255,255,.34) !important;
    border-radius: 999px !important;

    background: rgba(25,31,37,.34) !important;

    -webkit-backdrop-filter: blur(16px) saturate(135%) !important;
    backdrop-filter: blur(16px) saturate(135%) !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 6px 22px rgba(0,0,0,.16) !important;
}

#about .section-heading .section-number,
#research > .section-heading .section-number,
#experience > .section-heading .section-number,
#contact .contact-section-heading .section-number {
    color: #939ba2 !important;
    font-size: 13px !important;
}

#about .section-heading .section-label,
#research > .section-heading .section-label,
#experience > .section-heading .section-label,
#contact .contact-section-heading .section-label {
    color: #d4d8db !important;
    font-size: 13px !important;
    letter-spacing: 1.8px !important;
}


/* Also strengthen YV and Explore frosted treatment */
.brand,
.explore {
    border: 1px solid rgba(255,255,255,.34) !important;
    background: rgba(25,31,37,.34) !important;
    -webkit-backdrop-filter: blur(16px) saturate(135%) !important;
    backdrop-filter: blur(16px) saturate(135%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 6px 22px rgba(0,0,0,.16) !important;
}

/* Experiences & Education heading */
#experience > .section-heading .section-label {
    white-space: nowrap;
}

/* Research cards — rounded corners only */
#research .work-card {
    border-radius: 16px;
}

/* Professional memberships — compact cards */
.membership-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
}

.membership-card {
    min-height: 170px;
    padding: 22px 22px 24px;

    border: 1px solid rgba(255,255,255,.13);
    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.025),
            rgba(255,255,255,.008)
        );

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    transition:
        transform .25s ease,
        border-color .25s ease,
        background .25s ease;
}

.membership-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,.27);
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.04),
            rgba(255,255,255,.012)
        );
}

.membership-acronym {
    color: #717980;
    font-size: 10px;
    letter-spacing: 1.8px;
}

.membership-card h3 {
    max-width: 250px;

    color: #ececec;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.3;
}

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

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

    .membership-card {
        min-height: 145px;
    }
}

/* =========================================
   PROFESSIONAL MEMBERSHIPS — FORCED CARD LAYOUT
========================================= */

#experience .membership-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin-top: 34px !important;
    width: 100% !important;
}

#experience .membership-card {
    min-width: 0 !important;
    min-height: 170px !important;

    padding: 22px 22px 24px !important;

    border: 1px solid rgba(255,255,255,.13) !important;
    border-radius: 16px !important;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.028),
            rgba(255,255,255,.009)
        ) !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;

    overflow: hidden !important;

    transition:
        transform .25s ease,
        border-color .25s ease,
        background .25s ease !important;
}

#experience .membership-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,.28) !important;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.045),
            rgba(255,255,255,.014)
        ) !important;
}

#experience .membership-acronym {
    display: block !important;

    color: #747d85 !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    letter-spacing: 1.8px !important;
}

#experience .membership-card h3 {
    margin: 0 !important;
    max-width: 250px !important;

    color: #ececec !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
}

@media (max-width: 1100px) {
    #experience .membership-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 650px) {
    #experience .membership-grid {
        grid-template-columns: 1fr !important;
    }

    #experience .membership-card {
        min-height: 145px !important;
    }
}

/* Professional memberships — tighter vertical spacing */
#experience .membership-card {
    min-height: 118px !important;
    padding: 17px 20px 18px !important;
}

#experience .membership-acronym {
    margin-bottom: 20px !important;
}

@media (max-width: 650px) {
    #experience .membership-card {
        min-height: 112px !important;
    }
}

/* =========================================
   RESPONSIVE FROSTED NAVIGATION MENU
========================================= */

.menu-toggle {
    display: none;

    width: 54px;
    height: 46px;

    padding: 0;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 999px;

    background: rgba(25,31,37,.34);

    -webkit-backdrop-filter: blur(16px) saturate(135%);
    backdrop-filter: blur(16px) saturate(135%);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 6px 22px rgba(0,0,0,.16);

    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;

    cursor: pointer;
    z-index: 1202;

    transition:
        background .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.menu-toggle:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.50);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #f0f0f0;

    transition:
        transform .25s ease,
        opacity .2s ease;
}

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

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

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


.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1180;

    background: rgba(0,0,0,.24);

    opacity: 0;
    pointer-events: none;

    transition: opacity .25s ease;
}


.mobile-menu {
    position: fixed;
    top: 82px;
    right: 22px;

    width: min(300px, calc(100vw - 44px));

    padding: 14px;

    border: 1px solid rgba(255,255,255,.26);
    border-radius: 24px;

    background: rgba(12,16,20,.62);

    -webkit-backdrop-filter: blur(22px) saturate(135%);
    backdrop-filter: blur(22px) saturate(135%);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 18px 55px rgba(0,0,0,.35);

    z-index: 1190;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-10px) scale(.985);
    transform-origin: top right;

    transition:
        opacity .22s ease,
        transform .22s ease,
        visibility .22s ease;
}


.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}


.mobile-menu-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 48px;
    padding: 0 17px;

    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;

    background: rgba(255,255,255,.025);

    color: #ededed;
    text-decoration: none;

    font-size: 15px;
    font-weight: 400;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}


.mobile-menu-links a:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.34);
    transform: translateX(-2px);
}


.mobile-menu-cv::after {
    content: "";
}


.menu-open .mobile-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0) scale(1);
}


.menu-open .mobile-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
}


@media (max-width: 900px) {

    .nav-links {
        display: none !important;
    }

    .menu-toggle {
        display: flex;
    }

}


@media (min-width: 901px) {

    .mobile-menu,
    .mobile-menu-backdrop {
        display: none !important;
    }

}


@media (max-width: 520px) {

    nav {
        padding-left: 22px;
        padding-right: 22px;
    }

    .mobile-menu {
        top: 80px;
        right: 18px;
        width: calc(100vw - 36px);
    }

}

/* =========================================
   ACTIVE NAVIGATION INDICATOR
========================================= */

.nav-links a.is-active {
    color: #ffffff;

    background: rgba(255,255,255,.115);
    border-color: rgba(255,255,255,.56);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.10),
        0 5px 20px rgba(0,0,0,.12);

    opacity: 1;
}

.nav-links a.is-active:hover {
    background: rgba(255,255,255,.145);
    border-color: rgba(255,255,255,.68);
}


/* Same active language inside the mobile menu */
.mobile-menu-links a.is-active {
    color: #ffffff;

    background: rgba(255,255,255,.11);
    border-color: rgba(255,255,255,.42);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.07);
}

.mobile-menu-links a.is-active::after {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 auto;

    margin-left: 14px;

    border-radius: 50%;
    background: rgba(255,255,255,.85);

    box-shadow: 0 0 10px rgba(255,255,255,.24);
}

