:root {
    --navy: #33314E;
    --ink: #3B3856;
    --paper: #FBF7F2;
    --paper-2: #F3EAE1;
    --card: #FFFFFF;
    --sage: #6F9BC2;
    --sage-deep: #446E93;
    --coral: #D98C87;
    --coral-deep: #B8615C;
    --line: #E9DED2;
    --muted: #6C6685;
    --grid-line: rgba(51,49,78,0.05);
    --focus: #33314E;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    color: var(--ink);
    font-family: 'IBM Plex Sans', sans-serif;
    line-height: 1.55;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

a {
    color: inherit;
}

h1, h2, h3 {
    font-family: 'Fraunces', serif;
    margin: 0;
    color: #00a9a4;
}

::selection {
    background: var(--sage);
    color: #fff;
}

a:focus-visible, button:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    border-radius: 3px;
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 28px;
    margin-bottom: 23px;
}

/* NAV */
header.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #00a9a48c;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 28px;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

/* Updated .nav-left to arrange photo and name side-by-side */
.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0; /* Prevents flex overflow */
}

/* Styled photo container */
.photo-frame {
    width: 130px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

    .photo-frame img {
        width: 100%;
        height: 145%;
        object-fit: cover;
    }

.nav-mark {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: clamp(1.2rem, 3.5vw, 2.05rem);
    letter-spacing: 0.02em;
    color: #FFFFFF;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .nav-mark .dot {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: #FFFFFF;
        display: inline-block;
        flex-shrink: 0;
    }

nav.links {
    display: flex;
    gap: 28px;
}

    nav.links a {
        font-family: 'IBM Plex Mono', monospace;
        font-size: 0.95rem;
        font-weight: 600;
        letter-spacing: 2px;
        text-transform: uppercase;
        text-decoration: none;
        color: #fff;
        padding: 6px 2px;
        border-bottom: 2px solid transparent;
        transition: color .2s, border-color .2s;
    }

        nav.links a:hover {
            color: var(--sage-deep);
            border-color: #000;
        }

.nav-toggle {
    display: none;
    background: none;
    border: 1.5px #02b1ab;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.95rem;
    cursor: pointer;
}

/* --------------------------------------------------
   TABLET & SMALLER SCREEN BREAKPOINT (≤ 860px)
-------------------------------------------------- */
@media (max-width: 860px) {
    .nav-inner {
        padding: 10px 20px; /* Reduced side padding to prevent overflow */
    }

    /* Ensure the left branding/logo container scales smoothly */
    .nav-left {
        gap: 10px;
        min-width: 0; /* Prevents flex child from exceeding container */
    }

    /* Scale title text smoothly on mobile screen dimensions */
    .nav-mark {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
    }

    /* Compact button styling for mobile hamburger menu toggle */
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 6px 10px;
        font-size: 0.85rem;
        flex-shrink: 0; /* Ensures the toggle never squishes */
    }
}

/* --------------------------------------------------
   EXTRA SMALL MOBILE SCREENS (≤ 480px)
-------------------------------------------------- */
@media (max-width: 480px) {
    .nav-inner {
        padding: 8px 14px; /* Minimal padding for edge-to-edge layout */
    }

    /* Optional: Make photo frame slightly smaller on tiny screens */
    .photo-frame {
        width: 38px;
        height: 38px;
        border-radius: 8px;
    }
}

/*==================================================
                HERO 
==================================================*/
.hero {
    position: relative;
    padding: 39px 0 18px;
    overflow: hidden;
}

    .hero::before {
        content: "";
        position: absolute;
        top: -120px;
        right: -140px;
        width: 420px;
        height: 420px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(217,140,135,0.18), rgba(111,155,194,0.10) 60%, transparent 75%);
        pointer-events: none;
    }

.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
    padding: 0 30px;
}

.id-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.hero .photo-frame {
    width: 104px;
    height: 104px;
    border-radius: 24px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: linear-gradient(135deg, var(--navy), var(--sage-deep));
    border: 3px solid var(--card);
    box-shadow: 0 10px 26px rgba(11,37,55,0.22);
}

    .hero .photo-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 20%;
        display: block;
    }

.avatar-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Fraunces', serif;
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #000000;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .eyebrow::before {
        content: "";
        width: 26px;
        height: 1.5px;
        background: #0000003d;
        display: inline-block;
    }

.hero h1 {
    color: #00a9a4;
    font-size: clamp(2.4rem, 5.4vw, 4rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.01em;
}

.hero .role {
    color: #000000;
    margin-top: 12px;
    font-weight: 500;
    font-family: 'Fraunces', serif;
    font-style: italic;
}

.hero p.lede {
    max-width: 46ch;
    margin-top: 20px;
    color: var(--muted);
    font-size: 1.02rem;
    text-decoration: none;
}

.hospital-link {
    color: #3B3856;
    text-decoration: none;
    font-style: italic;
    font-weight: 600;
    transition: opacity 0.2s;
}

    .hospital-link:hover {
        opacity: 0.8;
    }

.hero-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    border: 1px solid #00a9a4;
    border-radius: 30px;
    padding: 9px 16px 9px 14px;
    font-size: 0.86rem;
    text-decoration: none;
    color: var(--ink);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .pill:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(19,43,69,0.08);
        border-color: #0000003d;
    }

    .pill svg {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
    }

.growth-path.p2 {
    animation-delay: 0.55s;
}

.growth-path.p3 {
    animation-delay: 0.8s;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.chart-caption {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 8px;
    text-align: center;
}

section {
    padding: 20px 0;
}

.section-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 34px;
}

    .section-head .num {
        font-family: 'IBM Plex Mono', monospace;
        color: #0000007a;
        font-size: 0.85rem;
    }

    .section-head h2 {
        font-size: clamp(1.5rem, 3vw, 2rem);
    }

    .section-head .rule {
        flex: 1;
        height: 1px;
        background: #00000045;
    }

/* HERO ANIMATIONS */

.hero .photo-frame,
.eyebrow,
.hero h1,
.hero .role,
.hero .lede,
.hero-contact .pill,
.chart-box {
    opacity: 0;
}

.hero .photo-frame {
    animation: zoomIn .8s ease forwards;
}

.eyebrow {
    animation: fadeUp .8s ease .2s forwards;
}

.hero h1 {
    animation: fadeUp .8s ease .4s forwards;
}

.hero .role {
    animation: fadeUp .8s ease .6s forwards;
}

.hero .lede {
    animation: fadeUp .8s ease .8s forwards;
}

.hero-contact .pill:nth-child(1) {
    animation: fadeUp .6s ease 1s forwards;
}

.hero-contact .pill:nth-child(2) {
    animation: fadeUp .6s ease 1.2s forwards;
}

.hero-contact .pill:nth-child(3) {
    animation: fadeUp .6s ease 1.4s forwards;
}

.chart-box {
    animation: slideRight .9s ease .5s forwards;
}

.hero .photo-frame {
    transition: .4s;
}

    .hero .photo-frame:hover {
        transform: scale(1.08) rotate(-4deg);
    }

.doctor-photo {
    transition: .45s;
}

    .doctor-photo:hover {
        transform: scale(1.04);
    }

.hero h1 {
    transition: .3s;
}

    .hero h1:hover {
        color: var(--sage-deep);
    }

.hero-contact .pill {
    transition: .35s;
}

    .hero-contact .pill:hover {
        transform: translateY(-5px);
    }

/* IMAGE */
.wave-divider {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, #0d5ea8, #1d8ed1);
    overflow: visible;
}

.doctor-image {
    position: absolute;
    left: 50%;
    bottom: -90px;
    transform: translateX(-50%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: #fff;
    padding: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,.2);
}

    .doctor-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        display: block;
    }

/* KEYFRAMES */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(80px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(.75);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* HERO RESPONSIVE */

.chart-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.doctor-photo {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    object-fit: cover;
}

@media (max-width:991px) {
    .hero {
        padding: 70px 0 50px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 45px;
        text-align: center;
    }

    .chart-box {
        order: -1;
    }

    .doctor-photo {
        max-width: 320px;
        margin: auto;
    }

    .id-row {
        flex-direction: column;
        justify-content: center;
        gap: 18px;
        margin-bottom: 15px;
    }

    .hero .photo-frame {
        margin: auto;
    }

    .eyebrow {
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.6rem !important;
    }

    .hero .role {
        font-size: 1.15rem;
    }

    .hero .lede {
        max-width: 100%;
        font-size: 1rem;
        margin: 20px auto;
    }

    .hero-contact {
        justify-content: center;
    }
}

@media (max-width:576px) {
    .hero {
        padding: 45px 0 30px;
    }

    .hero-inner {
        gap: 30px;
    }

    .doctor-photo {
        max-width: 230px;
    }

    .hero .photo-frame {
        width: 80px;
        height: 80px;
        border-radius: 18px;
    }

    .avatar-fallback {
        font-size: 1.4rem;
    }

    .id-row {
        gap: 15px;
    }

    .eyebrow {
        justify-content: center;
        font-size: .72rem;
        letter-spacing: .08em;
    }

        .eyebrow::before {
            width: 18px;
        }

    .hero h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    .hero .role {
        font-size: 1rem;
        margin-top: 10px;
    }

    .hero .lede {
        font-size: .95rem;
        line-height: 1.7;
        margin-top: 18px;
    }

    .hero-contact {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }

        .hero-contact .pill {
            width: 100%;
            justify-content: center;
            padding: 12px 18px;
            font-size: .9rem;
        }

    .pill svg {
        width: 16px;
        height: 16px;
    }
}

/* ABOUT */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 44px;
    align-items: start;
}

    .about-grid p {
        color: var(--muted);
        margin: 0 0 14px;
        text-align: justify;
    }

    .about-grid strong {
        color: var(--ink);
        font-weight: 600;
    }

.stat-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.stat {
    background: var(--card);
    border: 1px solid #0000003d;
    border-radius: 14px;
    padding: 16px 18px;
}

    .stat .n {
        font-family: 'Fraunces', serif;
        font-size: 1.7rem;
        color: #00a9a4;
        font-weight: 600;
    }

    .stat .l {
        font-size: 0.78rem;
        color: var(--muted);
        font-family: 'IBM Plex Mono', monospace;
        letter-spacing: 0.02em;
    }

/* Left Content */

.about-grid > div:first-child,
.stat {
    opacity: 0;
    transform: translateY(40px);
}

    .about-grid > div:first-child.show {
        animation: aboutLeft .8s forwards;
    }

    .stat.show {
        animation: statPop .7s forwards;
    }

    .stat:hover {
        transform: translateY(-8px) scale(1.04);
        box-shadow: 0 20px 40px rgba(0,0,0,.08);
        border-color: #00a9a4;
    }

    .stat .n {
        transition: .35s;
    }

    .stat:hover .n {
        color: #000000;
    }

@keyframes aboutLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes statPop {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(.8);
    }

    70% {
        opacity: 1;
        transform: translateY(-6px) scale(1.05);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/*==================================================
            EXPERIENCE
==================================================*/
.timeline {
    width: 100%;
    position: relative;
    padding-left: 28px;
    border-left: 2px solid #00000024;
}

.t-item {
    position: relative;
    padding-bottom: 34px;
    color: var(--sage-deep);
}

    .t-item:last-child {
        padding-bottom: 0;
    }

    .t-item::before {
        content: "";
        position: absolute;
        left: -34.5px;
        top: 4px;
        width: 11px;
        height: 11px;
        border-radius: 50%;
        background: var(--paper);
        border: 2.5px solid #0e7976;
    }

.t-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.76rem;
    color: #000000;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
    display: block;
}

.t-org {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #000000;
}

.t-role {
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 2px;
}

.timeline,
.t-item {
    opacity: 0;
}

    .timeline.active {
        animation: fadeUp .8s ease forwards;
    }

    .t-item:nth-child(1).active {
        animation: slideLeft .8s ease forwards;
    }

    .t-item:nth-child(2).active {
        animation: slideRight .8s ease .3s forwards;
    }

.t-item {
    transition: .35s ease;
}

    .t-item:hover {
        transform: translateX(12px);
    }

    .t-item::before {
        transition: .35s ease;
    }

    .t-item:hover::before {
        background: #00a9a4;
        transform: scale(1.4);
    }

.t-org {
    transition: .3s;
}

.t-item:hover .t-org {
    color: #00a9a4;
}

.t-role {
    transition: .3s;
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* EXPERIENCE LAYOUT */

.experience-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
}

.experience-image {
    flex: 0 0 40%;
}

.experience-slider {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,.15);
    display: inline-block;
    position: relative;
}

    .experience-slider img {
        width: 100%;
        height: auto;
        display: none;
        object-fit: contain;
    }

        .experience-slider img.active {
            display: block;
        }

.timeline {
    flex: 1;
}

@media (max-width:991px) {
/*    #experience {
        padding: 20px 0;
    }*/

    .experience-wrapper {
        flex-direction: column;
        gap: 30px;padding:15px:
    }

    .experience-image {
        width: 100%;
        flex: none;
    }

    .experience-slider {
        width: 100%;
        max-width: 450px;
        margin: auto;
    }

    .timeline {
        padding-left: 24px;
        width: 100%;
    }

    .t-item {
        padding-bottom: 30px;
    }

        .t-item::before {
            left: -31px;
            width: 12px;
            height: 12px;
        }

    .t-date {
        font-size: .75rem;
    }

    .t-org {
        font-size: 1.15rem;
        line-height: 1.4;
    }

    .t-role {
        font-size: .95rem;
        line-height: 1.6;
    }
}

@media (max-width:576px) {
    .timeline {
        padding-left: 18px;
        border-left: 2px solid var(--line);
    }

    .t-item {
        padding-bottom: 24px;
    }

        .t-item:last-child {
            padding-bottom: 0;
        }

        .t-item::before {
            left: -23.5px;
            width: 10px;
            height: 10px;
        }

    .t-date {
        font-size: .72rem;
        margin-bottom: 6px;
    }

    .t-org {
        font-size: 1rem;
        line-height: 1.5;
    }

    .t-role {
        font-size: .9rem;
        line-height: 1.7;
        margin-top: 4px;
    }
}

/* ==========================================================================
   RESEARCH & PUBLICATIONS
   ========================================================================== */

.researchSection {
    margin: 0 auto;
    max-width: 1080px;
    padding: 0 28px;
}

.researchStackContainer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.paperCard {
    position: relative;
    width: 100%;
    
    border: 1px solid #00000024;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(51,49,78,.04);
     
}

    .paperCard:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,.12);
    }

.paperTag {
    display: inline-block;
    padding: 6px 14px;
    background: #00a9a41c;
    color: #026a67;
    font-family: 'IBM Plex Mono', monospace;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-radius: 30px;
    margin-bottom: 20px;
}

    .paperTag.alt {
        background: rgba(111,155,194,.15);
        color: var(--sage-deep);
    }

.paperCard h3 {
    font-size: 1.1rem;
    color: var(--navy);
    margin: 0 0 14px;
    line-height: 1.3;
    text-align: left;
}

.paperCard p {
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.6;
    margin: 0;
}

/* Tablet */
@media (max-width:992px) {
    .researchStackContainer {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile */
@media (max-width:768px) {
    .researchSection {
        padding: 0 18px;
    }

    .researchStackContainer {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .paperCard {
        padding: 24px;
    }

        .paperCard h3 {
            font-size: 1.15rem;
        }
}

/* SKILLS */
.skills-wrap {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
}

.cert {
    margin-bottom: 26px;
}

    .cert:last-child {
        margin-bottom: 0;
    }

.cert-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

    .cert-head .name {
        font-family: 'Fraunces', serif;
        font-weight: 600;
        font-size: 1.05rem;
        color: var(--navy);
    }

    .cert-head .year {
        font-family: 'IBM Plex Mono', monospace;
        font-size: 0.76rem;
        color: var(--muted);
    }

.track {
    height: 10px;
    background: var(--paper-2);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.fill {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--sage-deep), var(--sage));
    width: 0%;
}

.cert-note {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 6px;
    font-family: 'IBM Plex Mono', monospace;
}

.lang-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lang-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 16px;
}

    .lang-item .name {
        font-weight: 600;
        font-family: 'Fraunces', serif;
        color: var(--navy);
    }

.lang-dots {
    display: flex;
    gap: 4px;
}

    .lang-dots span {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--sage);
    }

.info-line {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px dashed var(--line);
    font-size: 0.9rem;
    color: var(--muted);
    display: flex;
    gap: 10px;
    align-items: center;
}

/*=========================================
        VIDEO GALLERY
=========================================*/

.video-gallery {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
    margin-top: 40px;
}

.video-pure-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--card);
    box-shadow: 0 16px 40px rgba(51,49,78,.08);
    overflow: hidden;
    aspect-ratio: 9/16;
}

    .video-pure-wrapper iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

@media (max-width:991px) {
    .video-gallery {
        grid-template-columns: repeat(2,1fr);
        gap: 20px;
    }
}

@media (max-width:576px) {
    .video-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* CONTACT / FOOTER */
.contact-band {
    background: #00a9a41a;
    color: #EAF1EC;
    border-radius: 24px;
    padding: 48px 40px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

    .contact-band::after {
        content: "";
        position: absolute;
        right: -40px;
        bottom: -60px;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: radial-gradient(circle at 30% 30%, rgb(14 184 164 / 35%), #0000000a 70%);
    }

    .contact-band h2 {
        font-size: clamp(1.5rem,3vw,2.1rem);
    }

    .contact-band p {
        color: #000000;
        max-width: 42ch;
    }

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

    .contact-links a {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        color: var(--muted);
        background: rgb(255 255 255 / 68%);
        border: 1px solid rgba(255,255,255,0.16);
        padding: 12px 16px;
        border-radius: 12px;
        font-size: 0.92rem;
        transition: .18s ease;
    }

        .contact-links a:hover {
            background: rgba(255,255,255,0.16);
        }

    .contact-links svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

footer {
    background: #000000;
    text-align: center;
    padding: 15px 10px;
    font-size: 0.8rem;
    color: #FFFFFF;
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.02em;
}

.footer-bottom {
    background: #000;
    padding: 18px 20px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
}

    .footer-bottom p {
        margin: 0;
        color: #ffffff;
        font-family: 'IBM Plex Mono', monospace;
        font-size: 14px;
        letter-spacing: .5px;
        line-height: 1.8;
    }

    .footer-bottom strong {
        font-weight: 600;
    }

    .footer-bottom a {
        color: #9ED8FF;
        font-weight: 600;
        transition: .3s;
    }

        .footer-bottom a:hover {
            color: #ffffff;
        }

/* GLOBAL RESPONSIVE OVERRIDES */
@media (max-width:860px) {
    .nav-inner {
        padding: 12px 18px;
    }

    nav.links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--paper);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s ease;
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

        nav.links.open {
            max-height: 350px;
            padding: 6px 0;
        }

        nav.links a {
            padding: 14px 28px;
            width: 100%;
            color: #181616;
        }

    .nav-toggle {
        display: block;
        color: #fff;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .skills-wrap {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-band {
        grid-template-columns: 1fr;
        padding: 34px 24px;
        text-align: left;
    }
}

@media (max-width:520px) {
    .wrap {
        padding: 0 18px;
    }

    .hero {
        padding: 40px 0 24px;
    }

    .stat-row {
        grid-template-columns: 1fr 1fr;
    }

    .id-row {
        gap: 14px;
    }
}

.services-list ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.services-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

    .services-list li::before {
        content: "•";
        color: var(--sage-deep);
        position: absolute;
        left: 0;
        font-weight: bold;
    }
