:root {
    --ink: #182126;
    --muted-ink: #5d6a70;
    --paper: #fbfaf7;
    --soft: #eef2ef;
    --line: #d9ded9;
    --teal: #1f6f68;
    --cranberry: #a83b4a;
    --gold: #b8892f;
    --moss: #617148;
    --white: #ffffff;
    --shadow: 0 18px 48px rgba(24, 33, 38, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Inter", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 14px clamp(18px, 4vw, 56px);
    background: rgba(251, 250, 247, 0.92);
    border-bottom: 1px solid rgba(217, 222, 217, 0.8);
    backdrop-filter: blur(18px);
}

.brand {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--white);
    font-weight: 800;
    background: var(--ink);
    border-radius: 8px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    padding: 10px 13px;
    color: var(--muted-ink);
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 8px;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--ink);
    background: var(--soft);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.section {
    padding: clamp(68px, 9vw, 118px) clamp(20px, 5vw, 72px);
}

.section > * {
    max-width: 1120px;
    margin-right: auto;
    margin-left: auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
    gap: clamp(34px, 7vw, 92px);
    align-items: center;
    min-height: calc(100vh - 72px);
    padding-top: clamp(36px, 6vw, 72px);
    background:
        linear-gradient(135deg, rgba(31, 111, 104, 0.10), transparent 38%),
        linear-gradient(315deg, rgba(168, 59, 74, 0.08), transparent 42%),
        var(--paper);
}

.hero > * {
    max-width: none;
    margin: 0;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.08;
}

h1,
h2 {
    font-family: "Source Serif 4", Georgia, serif;
}

h1 {
    max-width: 760px;
    font-size: clamp(3.1rem, 8vw, 7.2rem);
    letter-spacing: 0;
}

h2 {
    max-width: 820px;
    font-size: clamp(2rem, 4vw, 4rem);
    letter-spacing: 0;
}

h3 {
    font-size: 1.08rem;
    font-weight: 800;
}

.lead {
    max-width: 690px;
    margin: 24px 0 0;
    color: var(--muted-ink);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 34px 0 0;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    color: var(--ink);
    font-weight: 800;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.button.primary {
    color: var(--white);
    background: var(--teal);
    border-color: var(--teal);
}

.quick-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 44px 0 0;
}

.quick-facts div {
    min-height: 136px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.quick-facts dt {
    margin-bottom: 9px;
    color: var(--cranberry);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.quick-facts dd {
    margin: 0;
    font-weight: 700;
    line-height: 1.45;
}

.hero-media {
    position: relative;
    align-self: stretch;
    min-height: 560px;
}

.hero-media::before {
    position: absolute;
    inset: 34px -18px -18px 34px;
    content: "";
    background: var(--gold);
    border-radius: 8px;
}

.hero-media img {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 560px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.muted {
    background: var(--soft);
}

.intro-band {
    color: var(--white);
    background: var(--ink);
}

.intro-band .eyebrow {
    color: #8cd6ca;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 5vw, 64px);
    margin-top: 34px;
}

.intro-grid p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.08rem;
}

.section-heading {
    margin-bottom: clamp(28px, 5vw, 52px);
}

.section-heading.compact {
    margin-bottom: 28px;
}

.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
}

.pill-grid span {
    padding: 9px 13px;
    color: var(--teal);
    font-size: 0.92rem;
    font-weight: 800;
    background: #e7f0ec;
    border: 1px solid #cee1db;
    border-radius: 8px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-list article,
.publication-card,
.timeline article,
.education-grid article,
.award-grid article,
.skills-grid article,
.project-card,
.certification-list article {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.feature-list article {
    padding: 24px;
}

.feature-list i {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    place-items: center;
    color: var(--white);
    background: var(--teal);
    border-radius: 8px;
}

.feature-list article:nth-child(2) i {
    background: var(--cranberry);
}

.feature-list article:nth-child(3) i {
    background: var(--moss);
}

.feature-list p,
.publication-card p,
.timeline p,
.education-grid p,
.award-grid p,
.skills-grid p,
.project-card p {
    margin: 10px 0 0;
    color: var(--muted-ink);
}

.publication-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.28fr);
    gap: clamp(24px, 5vw, 58px);
    align-items: end;
}

.publication-heading > p {
    margin: 0;
    color: var(--muted-ink);
    font-size: 1rem;
}

.tag {
    align-self: start;
    padding: 7px 10px;
    color: var(--cranberry);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    background: #f6e7e9;
    border-radius: 8px;
}

.publication-timeline {
    position: relative;
    display: grid;
    gap: 0;
}

.publication-timeline::before {
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 150px;
    width: 1px;
    content: "";
    background: var(--line);
}

.publication-entry {
    position: relative;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 60px;
    padding: 0 0 22px;
}

.publication-entry::before {
    position: absolute;
    top: 25px;
    left: 144px;
    width: 13px;
    height: 13px;
    content: "";
    background: var(--soft);
    border: 3px solid var(--teal);
    border-radius: 50%;
    z-index: 1;
}

.publication-entry.thesis-entry::before {
    border-color: var(--gold);
}

.publication-date {
    padding-top: 10px;
    text-align: right;
}

.publication-date span {
    display: block;
    color: var(--ink);
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.publication-date small {
    display: block;
    margin-top: 8px;
    color: var(--muted-ink);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.publication-card {
    padding: 22px 24px;
}

.publication-card .tag {
    display: inline-flex;
    margin-bottom: 12px;
}

.publication-card h3 {
    max-width: 830px;
    font-size: clamp(1.05rem, 2vw, 1.34rem);
    line-height: 1.25;
}

.thesis-entry .publication-card {
    background: #fcfbf8;
    border-color: #d9c28e;
}

.split {
    display: grid;
    grid-template-columns: minmax(260px, 0.36fr) minmax(0, 0.64fr);
    gap: clamp(30px, 6vw, 78px);
}

.split > * {
    max-width: none;
    margin: 0;
}

.timeline {
    display: grid;
    gap: 16px;
}

.timeline article,
.education-grid article,
.award-grid article,
.skills-grid article {
    padding: 22px;
}

.timeline time,
.education-grid span,
.award-grid span {
    display: block;
    margin-bottom: 9px;
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.timeline ul {
    padding-left: 20px;
    margin: 12px 0 0;
    color: var(--muted-ink);
}

.education-grid,
.award-grid,
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

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

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

.project-grid,
.certificate-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.certificate-grid {
    margin-top: 18px;
}

.project-card {
    overflow: hidden;
}

.project-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--soft);
}

.project-card > div {
    padding: 18px;
}

.project-card .tag {
    display: inline-flex;
    margin-bottom: 12px;
}

.card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.card-links a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 11px;
    color: var(--teal);
    font-size: 0.82rem;
    font-weight: 800;
    background: #e7f0ec;
    border: 1px solid #cee1db;
    border-radius: 8px;
}

.card-links a:hover {
    color: var(--white);
    background: var(--teal);
    border-color: var(--teal);
}

.certification-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.certification-list article {
    padding: 22px;
}

.certification-list ul {
    padding-left: 20px;
    margin: 14px 0 0;
    color: var(--muted-ink);
}

.contact-section {
    background:
        linear-gradient(90deg, rgba(31, 111, 104, 0.12), transparent 48%),
        var(--paper);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.contact-grid a {
    display: flex;
    min-height: 112px;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    color: var(--ink);
    font-weight: 800;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.contact-grid a:hover {
    color: var(--teal);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.contact-grid i {
    font-size: 1.35rem;
}

.contact-grid span {
    overflow-wrap: anywhere;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px clamp(20px, 5vw, 72px);
    color: rgba(255, 255, 255, 0.74);
    background: var(--ink);
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

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

    .hero {
        min-height: auto;
    }

    .hero-media {
        max-width: 520px;
        min-height: auto;
    }

    .hero-media img {
        aspect-ratio: 4 / 5;
        min-height: auto;
    }

    .feature-list,
    .education-grid,
    .award-grid,
    .project-grid,
    .certificate-grid,
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: grid;
        place-items: center;
    }

    .site-nav {
        position: fixed;
        top: 72px;
        right: 0;
        left: 0;
        display: grid;
        gap: 0;
        padding: 10px 18px 18px;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        transform: translateY(-140%);
        transition: transform 180ms ease;
    }

    .site-nav.open {
        transform: translateY(0);
    }

    .site-nav a {
        padding: 14px 10px;
    }

    .quick-facts,
    .intro-grid,
    .publication-heading,
    .feature-list,
    .education-grid,
    .award-grid,
    .project-grid,
    .certificate-grid,
    .certification-list,
    .skills-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .publication-timeline::before {
        left: 7px;
    }

    .publication-entry {
        grid-template-columns: 1fr;
        gap: 10px;
        padding-left: 34px;
    }

    .publication-entry::before {
        top: 10px;
        left: 1px;
    }

    .publication-date {
        display: flex;
        align-items: baseline;
        gap: 12px;
        padding-top: 0;
        text-align: left;
    }

    .publication-date span {
        font-size: 1.42rem;
    }

    .publication-date small {
        margin-top: 0;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 15px;
    }

    .site-header {
        min-height: 66px;
    }

    .site-nav {
        top: 66px;
    }

    .section {
        padding-right: 18px;
        padding-left: 18px;
    }

    h1 {
        font-size: 3rem;
    }

    .hero-actions,
    .button {
        width: 100%;
    }

    .button {
        justify-content: center;
    }

    .hero-media::before {
        inset: 20px -10px -10px 20px;
    }
}
