/* ═══════════════════════════════════════════════════════════
   Team Bio Page Styles — Individual Expert Biography
   Matching corporate homepage dark/light alternating design
   Theme: The Crisis Academy
   ═══════════════════════════════════════════════════════════ */


/* ── BIO HERO (Dark) ──────────────────────────────────────── */

#bio-hero {
    background: radial-gradient(ellipse 85% 85% at 50% 30%, #0a2246 0%, #05142d 60%, #030b1a 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    min-height: 100dvh;
    display: grid;
    place-content: center;

    @media (width >=1200px) {
        max-height: 1080px;
    }

    /* Top & bottom vignette */
    &::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom,
                rgba(3, 11, 26, 0.4) 0%,
                transparent 25%,
                transparent 75%,
                rgba(3, 11, 26, 0.75) 100%);
        z-index: 1;
        pointer-events: none;
    }

    /* Blueprint grid overlay */
    & .hero-bg-grid {
        position: absolute;
        inset: 0;
        background-image:
            linear-gradient(rgba(0, 162, 255, 0.12) 1.5px, transparent 1.5px),
            linear-gradient(90deg, rgba(0, 162, 255, 0.12) 1.5px, transparent 1.5px),
            linear-gradient(rgba(0, 162, 255, 0.06) 1px, transparent 1px),
            linear-gradient(90deg, rgba(0, 162, 255, 0.06) 1px, transparent 1px);
        background-size: 200px 200px, 200px 200px, 40px 40px, 40px 40px;
        background-position: center center;
        mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 25%, transparent 90%);
        -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 25%, transparent 90%);
        opacity: 0.85;
        z-index: 0;
        pointer-events: none;
    }

    /* Floating background orbs */
    & .hero-bg-orbs {
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;

        & .orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(120px);
            opacity: 0.55;
            animation: bioFloatOrb 14s infinite ease-in-out alternate;
        }

        & .orb-1 {
            width: 600px;
            height: 600px;
            top: -100px;
            left: 10%;
            background: radial-gradient(circle, rgba(0, 162, 255, 0.4) 0%, transparent 70%);
            animation-duration: 16s;
        }

        & .orb-2 {
            width: 500px;
            height: 500px;
            bottom: -50px;
            right: 15%;
            background: radial-gradient(circle, rgba(30, 144, 255, 0.35) 0%, transparent 70%);
            animation-duration: 20s;
            animation-delay: -5s;
        }

        & .orb-3 {
            width: 400px;
            height: 400px;
            top: 40%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: radial-gradient(circle, rgba(0, 200, 255, 0.22) 0%, transparent 70%);
            animation-duration: 12s;
            animation-delay: -3s;
        }
    }

    /* Cursor tracking glow */
    & .hero-glow {
        position: absolute;
        inset: 0;
        background: radial-gradient(600px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
                rgba(0, 162, 255, 0.24),
                transparent 70%);
        opacity: 0;
        transition: opacity 0.4s ease;
        pointer-events: none;
        z-index: 1;
    }

    &:hover .hero-glow {
        opacity: 1;
    }

    & .content {
        display: grid;
        gap: clamp(2rem, 10vw, 4rem);
        padding-top: 120px;
        position: relative;
        z-index: 2;

        @media (width > 1024px) {
            grid-template-columns: 1fr 1fr;
            align-items: center;
        }
    }
}

/* Back link */
.bio-back-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: color-mix(in srgb, #ffffff, transparent 40%);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s ease;
    margin-bottom: 1.5rem;

    & svg {
        width: 16px;
        height: 16px;
        transition: transform .3s ease;
    }

    &:hover {
        color: #ffffff;

        & svg {
            transform: translateX(-3px);
        }
    }
}

/* Specialty tags */
.bio-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.25rem;
}

.bio-tag {
    font-size: .75rem;
    font-weight: 700;
    padding: .2rem .6rem;
    border-radius: .3rem;
    background: color-mix(in srgb, var(--wp--preset--color--focus) 15%, transparent);
    color: var(--wp--preset--color--focus);
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--focus) 35%, transparent);
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Name */
.bio-hero-name {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: .75rem;
}

/* Role */
.bio-hero-role {
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    font-weight: 500;
    color: color-mix(in srgb, #ffffff, transparent 30%);
    margin-bottom: 0;
    font-family: var(--wp--preset--font-family--manrope);
}

/* Hero Quote */
.bio-hero-quote {
    position: relative;
    background: color-mix(in srgb, #ffffff 5%, transparent);
    border: 1px solid color-mix(in srgb, #ffffff 10%, transparent);
    border-radius: 1rem;
    padding: 1.5rem 1.75rem 1.5rem 3.25rem;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    & .quote-icon {
        position: absolute;
        top: 1.5rem;
        left: 1rem;
        width: 1.5rem;
        height: 1.5rem;
        color: color-mix(in srgb, var(--wp--preset--color--focus) 40%, transparent);
    }

    & p {
        font-size: 1.1rem;
        line-height: 1.6;
        font-style: italic;
        color: color-mix(in srgb, #ffffff, transparent 10%);
        margin: 0;
    }
}

/* Portrait Frame */
.bio-hero-visual {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.bio-portrait-frame {
    position: relative;
    width: 100%;
    max-width: 420px;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, #ffffff 15%, transparent);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
    transition: all 0.5s cubic-bezier(.25, 1, .5, 1);

    &:hover {
        transform: translateY(-6px);
        border-color: color-mix(in srgb, var(--wp--preset--color--focus) 40%, transparent);
        box-shadow: 0 40px 100px -25px rgba(0, 0, 0, 0.7),
                    0 0 60px color-mix(in srgb, var(--wp--preset--color--focus) 15%, transparent);

        & .corner-reticle.top-left    { top: 8px;    left: 8px; }
        & .corner-reticle.top-right   { top: 8px;    right: 8px; }
        & .corner-reticle.bottom-left { bottom: 8px; left: 8px; }
        & .corner-reticle.bottom-right{ bottom: 8px; right: 8px; }
    }

    & .bio-portrait-img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        aspect-ratio: 3 / 4;
    }

    & .bio-portrait-gradient {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 40%;
        background: linear-gradient(to top, rgba(3, 11, 26, 0.8) 0%, transparent 100%);
        pointer-events: none;
    }
}

/* Corner reticles */
.bio-portrait-frame .corner-reticle {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2.5px solid var(--wp--preset--color--focus);
    z-index: 2;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);

    &.top-left     { top: -6px; left: -6px; border-right: none; border-bottom: none; }
    &.top-right    { top: -6px; right: -6px; border-left: none; border-bottom: none; }
    &.bottom-left  { bottom: -6px; left: -6px; border-right: none; border-top: none; }
    &.bottom-right { bottom: -6px; right: -6px; border-left: none; border-top: none; }
}

/* Stats Strip */
.bio-stats-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 420px;

    @media (width >=640px) {
        grid-template-columns: repeat(4, 1fr);
    }
}

.bio-stat {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: .75rem 1rem;
    background: color-mix(in srgb, #ffffff 4%, transparent);
    border-radius: .5rem;
    border: 1px solid color-mix(in srgb, #ffffff 8%, transparent);
    text-align: center;
    transition: all .3s ease;

    &:hover {
        background: color-mix(in srgb, #ffffff 8%, transparent);
        border-color: color-mix(in srgb, var(--wp--preset--color--focus) 30%, transparent);
    }

    & .stat-number {
        font-size: clamp(1.3rem, 2vw, 1.8rem);
        font-weight: 900;
        color: var(--wp--preset--color--focus);
        line-height: 1;
        letter-spacing: -0.02em;
    }

    & .stat-label {
        font-size: 0.75rem;
        color: color-mix(in srgb, #ffffff, transparent 40%);
        line-height: 1.3;
    }
}


/* ── TRAJECTORY (Light Theme) ─────────────────────────────── */

#bio-trajectory {
    background-color: #ebe8e6;
    color: var(--wp--preset--color--contrast);
    position: relative;
    overflow: hidden;
    border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast), transparent 88%);
    border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast), transparent 88%);

    & .trajectory-bg-grid {
        position: absolute;
        inset: 0;
        background-image:
            linear-gradient(color-mix(in srgb, var(--wp--preset--color--contrast), transparent 90%) 1px, transparent 1px),
            linear-gradient(90deg, color-mix(in srgb, var(--wp--preset--color--contrast), transparent 90%) 1px, transparent 1px);
        background-size: 60px 60px;
        background-position: center center;
        mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 30%, transparent 85%);
        -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 30%, transparent 85%);
        opacity: 0.85;
        z-index: 0;
        pointer-events: none;
    }

    &::before {
        content: '';
        position: absolute;
        width: 700px;
        height: 700px;
        top: 50%;
        left: 30%;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        background-color: var(--wp--preset--color--base);
        z-index: 0;
        filter: blur(140px);
        pointer-events: none;
    }

    & .content {
        position: relative;
        z-index: 1;
    }
}

.trajectory-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;

    @media (width >=1024px) {
        grid-template-columns: 1.2fr 1fr;
        gap: 5rem;
    }
}

.trajectory-bio {

    & .pretext {
        color: var(--wp--preset--color--focus);
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        background: color-mix(in srgb, var(--wp--preset--color--focus) 10%, transparent);
        border: 1px solid color-mix(in srgb, var(--wp--preset--color--focus) 25%, transparent);
        padding: 0.25rem 0.75rem;
        border-radius: 99px;
        display: inline-block;
    }

    & h2 {
        font-size: clamp(2rem, 3.5vw, 3rem);
        font-weight: 800;
        color: var(--wp--preset--color--contrast);
        margin-bottom: 2rem;
        letter-spacing: -0.02em;
    }
}

.bio-paragraphs {
    & p {
        font-size: 1.08rem;
        line-height: 1.75;
        color: color-mix(in srgb, var(--wp--preset--color--contrast), transparent 20%);
        margin-bottom: 1.25rem;

        &:last-child {
            margin-bottom: 0;
        }
    }
}

/* Timeline */
.trajectory-timeline {

    @media (width >=1024px) {
        position: sticky;
        top: 130px;
    }
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: color-mix(in srgb, var(--wp--preset--color--contrast), transparent 40%);
    margin-bottom: 2rem;

    & svg {
        color: var(--wp--preset--color--focus);
        width: 18px;
        height: 18px;
    }
}

.timeline-track {
    position: relative;
    padding-left: 2rem;

    /* Vertical line */
    &::before {
        content: '';
        position: absolute;
        left: 5px;
        top: 10px;
        bottom: 10px;
        width: 2px;
        background: linear-gradient(to bottom,
                color-mix(in srgb, var(--wp--preset--color--focus) 40%, transparent),
                color-mix(in srgb, var(--wp--preset--color--focus) 10%, transparent));
        border-radius: 99px;
    }
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;

    &:last-child {
        padding-bottom: 0;
    }
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: .4rem;
    width: 12px;
    height: 12px;
    background: var(--wp--preset--color--focus);
    border-radius: 50%;
    border: 3px solid #ebe8e6;
    z-index: 1;

    & .dot-pulse {
        position: absolute;
        inset: -4px;
        border-radius: 50%;
        border: 1px solid color-mix(in srgb, var(--wp--preset--color--focus) 30%, transparent);
        animation: bioTimelinePulse 3s ease-in-out infinite;
    }
}

.timeline-content {
    & .timeline-year {
        display: inline-block;
        font-size: .75rem;
        font-weight: 700;
        color: var(--wp--preset--color--focus);
        background: color-mix(in srgb, var(--wp--preset--color--focus) 10%, transparent);
        border: 1px solid color-mix(in srgb, var(--wp--preset--color--focus) 25%, transparent);
        padding: .1rem .5rem;
        border-radius: .25rem;
        margin-bottom: .5rem;
        letter-spacing: .04em;
    }

    & .timeline-title {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--wp--preset--color--contrast);
        margin: 0 0 .35rem;
    }

    & .timeline-desc {
        font-size: .92rem;
        line-height: 1.5;
        color: color-mix(in srgb, var(--wp--preset--color--contrast), transparent 35%);
        margin: 0;
    }
}


/* ── SPECIALTIES (Dark) ───────────────────────────────────── */

#bio-specialties {
    background: radial-gradient(ellipse 90% 80% at 50% 20%, #0d1527 0%, #080d19 60%, #03060c 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--focus) 25%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--focus) 25%, transparent);

    & .specialties-bg-overlay {
        position: absolute;
        inset: 0;
        background-image:
            radial-gradient(color-mix(in srgb, var(--wp--preset--color--focus) 20%, transparent) 1.5px, transparent 1.5px),
            radial-gradient(color-mix(in srgb, var(--wp--preset--color--focus) 12%, transparent) 1.5px, transparent 1.5px);
        background-size: 40px 40px;
        background-position: 0 0, 20px 20px;
        mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 30%, transparent 90%);
        -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 30%, transparent 90%);
        opacity: 0.85;
        z-index: 0;
        pointer-events: none;
    }

    &::before {
        content: '';
        position: absolute;
        width: 800px;
        height: 600px;
        top: -150px;
        left: 50%;
        transform: translateX(-50%);
        background: radial-gradient(ellipse 60% 40% at 50% 0%, color-mix(in srgb, var(--wp--preset--color--focus) 35%, transparent) 0%, transparent 75%);
        filter: blur(60px);
        z-index: 0;
        pointer-events: none;
    }

    & .specialties-bg-glow {
        position: absolute;
        top: 45%;
        left: 15%;
        width: 450px;
        height: 450px;
        background: radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--primary) 22%, transparent) 0%, transparent 70%);
        filter: blur(100px);
        pointer-events: none;
        z-index: 0;
        animation: bioFloatOrb 18s infinite ease-in-out alternate;
    }

    & .content {
        position: relative;
        z-index: 1;
    }
}

.specialties-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;

    & .pretext {
        background: color-mix(in srgb, #cf2e2e 20%, transparent);
        color: var(--wp--preset--color--base);
        border-color: color-mix(in srgb, #cf2e2e 50%, transparent);
    }

    & h2 {
        font-size: clamp(1.8rem, 3.5vw, 2.8rem);
        line-height: 1.25;
        font-weight: 600;
        color: #ffffff;
        margin-top: .75rem;
    }
}

.specialties-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;

    @media (width >=640px) {
        grid-template-columns: repeat(2, 1fr);
    }

    @media (width >=1200px) {
        grid-template-columns: repeat(3, 1fr);
    }
}

.specialty-card {
    position: relative;
    background: color-mix(in srgb, var(--wp--preset--color--footer-background), transparent 40%);
    border: 1px solid color-mix(in srgb, #ffffff, transparent 92%);
    border-radius: 1rem;
    padding: 2rem 1.75rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;

    /* Radial glow on hover */
    &::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(600px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(0, 162, 255, 0.12), transparent 50%);
        opacity: 0;
        transition: opacity 0.4s ease;
        pointer-events: none;
        z-index: -1;
        border-radius: inherit;
    }

    /* Border glow following cursor */
    &::after {
        content: "";
        position: absolute;
        inset: -1px;
        background: radial-gradient(350px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(0, 162, 255, 0.8), transparent 50%);
        opacity: 0;
        transition: opacity 0.4s ease;
        pointer-events: none;
        z-index: 1;
        border-radius: inherit;
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        padding: 1px;
    }

    &:hover::before,
    &:hover::after {
        opacity: 1;
    }

    &:hover {
        border-color: rgba(255, 255, 255, 0.06);
        background: color-mix(in srgb, var(--wp--preset--color--contrast) 50%, transparent);
        box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.4),
                    inset 0 0 20px color-mix(in srgb, var(--wp--preset--color--focus) 5%, transparent);
        transform: translateY(-4px);
    }
}

.specialty-icon {
    width: 48px;
    height: 48px;
    border-radius: .6rem;
    background: color-mix(in srgb, var(--wp--preset--color--focus) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--focus) 25%, transparent);
    color: var(--wp--preset--color--focus);
    display: grid;
    place-items: center;
    margin-bottom: 1.25rem;
    transition: all .3s ease;
    position: relative;
    z-index: 2;

    .specialty-card:hover & {
        background: color-mix(in srgb, var(--wp--preset--color--focus) 20%, transparent);
        border-color: color-mix(in srgb, var(--wp--preset--color--focus) 45%, transparent);
    }
}

.specialty-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 .5rem;
    position: relative;
    z-index: 2;
    transition: color .3s ease;

    .specialty-card:hover & {
        color: var(--wp--preset--color--focus);
    }
}

.specialty-desc {
    font-size: .92rem;
    line-height: 1.55;
    color: color-mix(in srgb, #ffffff, transparent 35%);
    margin: 0;
    position: relative;
    z-index: 2;

    .specialty-card:hover & {
        color: color-mix(in srgb, #ffffff, transparent 15%);
    }
}


/* ── CASES (Light) ────────────────────────────────────────── */

#bio-cases {
    background-color: #ebe8e6;
    color: var(--wp--preset--color--contrast);
    position: relative;
    overflow: hidden;
    border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast), transparent 88%);
    border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast), transparent 88%);

    & .cases-bg-grid {
        position: absolute;
        inset: 0;
        background-image:
            linear-gradient(color-mix(in srgb, var(--wp--preset--color--contrast), transparent 92%) 1px, transparent 1px),
            linear-gradient(90deg, color-mix(in srgb, var(--wp--preset--color--contrast), transparent 92%) 1px, transparent 1px);
        background-size: 60px 60px;
        mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 30%, transparent 85%);
        -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 30%, transparent 85%);
        opacity: 0.85;
        z-index: 0;
        pointer-events: none;
    }

    &::before {
        content: '';
        position: absolute;
        width: 600px;
        height: 600px;
        top: 30%;
        right: 10%;
        border-radius: 50%;
        background-color: var(--wp--preset--color--base);
        z-index: 0;
        filter: blur(140px);
        pointer-events: none;
    }

    & .content {
        position: relative;
        z-index: 1;
    }
}

.cases-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;

    @media (width >=1024px) {
        grid-template-columns: 1fr 1.3fr;
        gap: 5rem;
    }
}

.cases-header {

    @media (width >=1024px) {
        position: sticky;
        top: 130px;
    }

    & .pretext {
        color: var(--wp--preset--color--focus);
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        background: color-mix(in srgb, var(--wp--preset--color--focus) 10%, transparent);
        border: 1px solid color-mix(in srgb, var(--wp--preset--color--focus) 25%, transparent);
        padding: 0.25rem 0.75rem;
        border-radius: 99px;
        display: inline-block;
    }

    & h2 {
        font-size: clamp(1.8rem, 3.5vw, 2.8rem);
        font-weight: 800;
        color: var(--wp--preset--color--contrast);
        margin-top: 1rem;
        letter-spacing: -0.02em;
    }

    & .cases-intro {
        font-size: 1.05rem;
        line-height: 1.6;
        color: color-mix(in srgb, var(--wp--preset--color--contrast), transparent 30%);
    }
}

.cases-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.case-card {
    position: relative;
    background: #ffffff;
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast), transparent 88%);
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: start;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--wp--preset--color--contrast), transparent 96%);

    &:hover {
        transform: translateY(-3px);
        border-color: color-mix(in srgb, var(--wp--preset--color--focus) 35%, transparent);
        box-shadow: 0 12px 30px color-mix(in srgb, var(--wp--preset--color--contrast), transparent 92%);
    }
}

.case-number {
    font-family: var(--wp--preset--font-family--manrope);
    font-size: 1.1rem;
    font-weight: 800;
    color: color-mix(in srgb, var(--wp--preset--color--contrast), transparent 75%);
    transition: color .3s ease;

    .case-card:hover & {
        color: var(--wp--preset--color--focus);
    }
}

.case-body {

    & .case-title {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--wp--preset--color--contrast);
        margin: 0 0 .35rem;
        transition: color .3s ease;

        .case-card:hover & {
            color: var(--wp--preset--color--focus);
        }
    }

    & .case-desc {
        font-size: .92rem;
        line-height: 1.55;
        color: color-mix(in srgb, var(--wp--preset--color--contrast), transparent 35%);
        margin: 0;
    }
}

.case-check {
    color: color-mix(in srgb, var(--wp--preset--color--contrast), transparent 80%);
    transition: all .3s ease;

    .case-card:hover & {
        color: var(--wp--preset--color--focus);
    }
}


/* ── PUBLICATIONS (Dark) ──────────────────────────────────── */

#bio-publications {
    background: var(--wp--preset--color--footer-background);
    color: #ffffff;
    position: relative;
    overflow: hidden;

    &::before {
        content: '';
        position: absolute;
        width: 700px;
        height: 700px;
        top: 50%;
        left: 20%;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        background: radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--primary) 12%, transparent) 0%, transparent 70%);
        z-index: 0;
        pointer-events: none;
    }

    &::after {
        content: '';
        position: absolute;
        inset: 0;
        background-image:
            linear-gradient(rgba(30, 144, 255, 0.25) 1px, transparent 1px),
            linear-gradient(90deg, rgba(30, 144, 255, 0.25) 1px, transparent 1px);
        background-size: 100px 100px;
        mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
        z-index: 0;
        opacity: 0.25;
        pointer-events: none;
    }

    & .content {
        position: relative;
        z-index: 1;
    }
}

.publications-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;

    & .pretext {
        background: color-mix(in srgb, #cf2e2e 20%, transparent);
        color: var(--wp--preset--color--base);
        border-color: color-mix(in srgb, #cf2e2e 50%, transparent);
    }

    & h2 {
        font-size: clamp(1.8rem, 3.5vw, 2.8rem);
        line-height: 1.25;
        font-weight: 600;
        color: var(--wp--preset--color--base);
        margin-top: .75rem;
    }
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.publication-item {
    position: relative;
    background: color-mix(in srgb, var(--wp--preset--color--footer-background), transparent 40%);
    border: 1px solid color-mix(in srgb, #ffffff, transparent 92%);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all .4s cubic-bezier(.25, 1, .5, 1);

    &:hover {
        background: color-mix(in srgb, var(--wp--preset--color--contrast) 50%, transparent);
        border-color: color-mix(in srgb, #ffffff, transparent 85%);
        transform: translateX(6px);
    }

    @media (width < 640px) {
        flex-direction: column;
        gap: .75rem;
    }
}

.pub-type-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .25rem .6rem;
    border-radius: .3rem;
    background: color-mix(in srgb, var(--wp--preset--color--focus) 12%, transparent);
    color: var(--wp--preset--color--focus);
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--focus) 25%, transparent);
    white-space: nowrap;
    flex-shrink: 0;

    & svg {
        width: 14px;
        height: 14px;
    }
}

.pub-body {
    flex: 1;
    min-width: 0;
}

.pub-title {
    font-size: 1.02rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 .35rem;
    line-height: 1.4;
}

.pub-meta {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    font-size: .85rem;

    & .pub-venue {
        color: color-mix(in srgb, #ffffff, transparent 40%);
    }

    & .pub-year {
        color: var(--wp--preset--color--focus);
        font-weight: 700;
    }
}


/* ── CTA (Dark — Reuses team-cta patterns) ────────────────── */

#bio-cta {
    background: linear-gradient(170deg, var(--wp--preset--color--contrast) 0%, var(--wp--preset--color--footer-background) 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    text-align: center;

    & .backdrop-glow {
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 0;

        & .circle {
            position: absolute;
            border-radius: 50%;
            filter: blur(100px);
            opacity: .5;
        }

        & .circle-1 { width: 400px; height: 400px; top: -100px; right: -50px; background: color-mix(in srgb, var(--wp--preset--color--focus) 15%, transparent); }
        & .circle-2 { width: 350px; height: 350px; bottom: -80px; left: 10%; background: color-mix(in srgb, var(--wp--preset--color--primary) 12%, transparent); }
        & .circle-3 { width: 250px; height: 250px; top: 30%; left: 60%; background: color-mix(in srgb, var(--wp--preset--color--focus) 8%, transparent); }
        & .circle-4 { width: 300px; height: 300px; bottom: 20%; right: 30%; background: color-mix(in srgb, var(--wp--preset--color--tertiary) 10%, transparent); }
    }

    & .content {
        position: relative;
        z-index: 1;
        max-width: 700px;
        margin: 0 auto;

        & .content-backdrop-glow {
            position: absolute;
            inset: 0;
            pointer-events: none;
            z-index: 0;

            & .circle {
                position: absolute;
                border-radius: 50%;
                filter: blur(80px);
                opacity: .3;
            }

            & .circle-1 { width: 200px; height: 200px; top: -50px; left: -50px; background: var(--wp--preset--color--focus); }
            & .circle-2 { width: 180px; height: 180px; bottom: -40px; right: -40px; background: var(--wp--preset--color--primary); }
        }
    }

    & .cta-intro {
        position: relative;
        z-index: 1;

        & .pretext {
            background: color-mix(in srgb, #cf2e2e 20%, transparent);
            color: var(--wp--preset--color--base);
            border-color: color-mix(in srgb, #cf2e2e 50%, transparent);
        }

        & .title-section {
            font-size: clamp(1.8rem, 3.5vw, 2.6rem);
            line-height: 1.25;
            font-weight: 700;
            margin: 1.5rem 0;
        }

        & .cta-description {
            font-size: 1.1rem;
            line-height: 1.6;
            color: color-mix(in srgb, #ffffff, transparent 25%);
            margin-bottom: 2.5rem;
        }
    }

    & .cta-action {
        position: relative;
        z-index: 1;
    }

    & .cta-buttons {
        display: flex;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 1.5rem;
    }

    & .btn.primary {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        background: var(--wp--preset--color--focus);
        color: var(--wp--preset--color--base);
        padding: .75rem 1.5rem;
        border-radius: 99px;
        font-weight: 700;
        font-size: 1rem;
        text-decoration: none;
        border: none;
        cursor: pointer;
        transition: all .3s ease;

        & svg { width: 18px; height: 18px; }

        &:hover {
            filter: brightness(1.1);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px color-mix(in srgb, var(--wp--preset--color--focus) 30%, transparent);
        }
    }

    & .btn.secondary {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
        padding: .75rem 1.5rem;
        border-radius: 99px;
        font-weight: 600;
        font-size: 1rem;
        text-decoration: none;
        border: 1px solid rgba(255, 255, 255, 0.15);
        cursor: pointer;
        transition: all .3s ease;

        &:hover {
            background: rgba(255, 255, 255, 0.14);
            border-color: rgba(255, 255, 255, 0.25);
        }
    }

    & .cta-micro-copy {
        display: flex;
        align-items: center;
        gap: .5rem;
        justify-content: center;
        font-size: .85rem;
        color: color-mix(in srgb, #ffffff, transparent 50%);

        & svg {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
        }
    }
}


/* ── CHROMIUM SQUIRCLE OVERRIDES ──────────────────────────── */

.is-chromium {

    & .bio-portrait-frame {
        border-radius: 2.5rem !important;
        corner-shape: squircle;
    }

    & .bio-hero-quote {
        border-radius: 2rem !important;
        corner-shape: squircle;
    }

    & .bio-stat {
        border-radius: 1rem !important;
        corner-shape: squircle;
    }

    & .specialty-card {
        border-radius: 2rem !important;
        corner-shape: squircle;

        &::before, &::after {
            border-radius: inherit;
            corner-shape: inherit;
        }
    }

    & .specialty-icon {
        border-radius: 1rem;
        corner-shape: squircle;
    }

    & .case-card {
        border-radius: 2rem !important;
        corner-shape: squircle;
    }

    & .publication-item {
        border-radius: 2rem !important;
        corner-shape: squircle;
    }
}


/* ── ANIMATIONS ──────────────────────────────────────────── */

@keyframes bioFloatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -40px) scale(1.08);
    }
    100% {
        transform: translate(-20px, 30px) scale(0.95);
    }
}

@keyframes bioTimelinePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.8);
    }
}
