:root {
    --ink: #16302b;
    --muted: #5b6d68;
    --line: #dce5e1;
    --paper: #ffffff;
    --tint: #f3f7f5;
    --green: #176c5a;
    --green-dark: #0f5144;
    --green-light: #48a68f;
    --accent: #d6a64f;
    --shell: 1180px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    margin: 0;
    padding: 0 !important;
    color: var(--ink);
    background: var(--paper);
    font-family: "IBM Plex Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}

*, *::before, *::after { box-sizing: border-box; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.page-shell { width: min(calc(100% - 48px), var(--shell)); margin: 0 auto; }
.section-content { min-width: 0; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.site-identity {
    display: flex;
    align-items: baseline;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}

.site-identity strong { font-family: "Source Serif 4", Georgia, serif; font-size: 1.25rem; }
.site-identity span { color: var(--muted); font-size: 0.77rem; letter-spacing: 0.08em; text-transform: uppercase; }

.primary-nav { display: flex; justify-content: flex-end; gap: clamp(14px, 2.1vw, 28px); }
.primary-nav a { position: relative; color: #32443f; font-size: 0.84rem; font-weight: 500; text-decoration: none; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--green); transition: right 160ms ease; }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { right: 0; }

.profile-hero {
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.11) 0 4px, transparent 5px),
        radial-gradient(circle at 88% 38%, rgba(255, 255, 255, 0.09) 0 3px, transparent 4px),
        linear-gradient(135deg, var(--green-dark), var(--green) 62%, #21836e);
}

.profile-grid {
    min-height: 420px;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: center;
    gap: clamp(44px, 7vw, 92px);
    padding-top: 68px;
    padding-bottom: 72px;
}

.profile-mark {
    position: relative;
    width: 218px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 18px rgba(255, 255, 255, 0.04);
}

.profile-mark::before, .profile-mark::after { content: ""; position: absolute; inset: 34px; border: 1px solid rgba(255, 255, 255, 0.25); transform: rotate(45deg); }
.profile-mark::after { inset: 59px; transform: rotate(0deg); }
.profile-mark span { position: relative; z-index: 2; font-family: "Source Serif 4", Georgia, serif; font-size: 3.7rem; letter-spacing: -0.08em; }
.profile-mark .node { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.node-one { top: 32px; left: 103px; }
.node-two { right: 31px; bottom: 62px; }
.node-three { left: 45px; bottom: 46px; }

.profile-kicker { margin: 0 0 12px; color: #c8ede4; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.profile-copy { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.profile-copy h1 { margin: 0; color: #fff; font-family: "Source Serif 4", Georgia, serif; font-size: clamp(2.7rem, 5vw, 4.2rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; text-transform: none; }
.profile-affiliation { margin: 16px 0 0; color: #d9eee9; }
.profile-research { max-width: 760px; margin: 22px 0 0; color: #edf8f5; font-size: 1rem; }
.profile-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 24px; }
.profile-links a { min-width: 0; color: #fff; font-size: 0.9rem; overflow-wrap: anywhere; }

.profile-section { border-bottom: 1px solid var(--line); }
.section-tint { background: var(--tint); }
.section-grid { display: grid; grid-template-columns: minmax(190px, 0.78fr) minmax(0, 2.35fr); gap: clamp(48px, 8vw, 112px); padding-top: 78px; padding-bottom: 82px; }
.section-label p { margin: 0 0 10px; color: var(--green-light); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; }
.section-label h2 { margin: 0; color: var(--ink); font-family: "Source Serif 4", Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.55rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; text-transform: none; }
.section-source { display: inline-block; margin-top: 22px; color: var(--green); font-size: 0.82rem; }
.section-lead { max-width: 770px; margin: 0 0 30px; color: #3f514c; font-family: "Source Serif 4", Georgia, serif; font-size: 1.23rem; line-height: 1.55; }

.timeline-list { border-top: 1px solid var(--line); }
.timeline-group + .timeline-group { margin-top: 42px; }
.timeline-group-title { margin: 0 0 10px; color: var(--green); font-family: "Source Serif 4", Georgia, serif; font-size: 1.2rem; font-weight: 700; }
.timeline-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.timeline-entry h3 { margin: 0; color: var(--ink); font-size: 1rem; font-weight: 600; text-transform: none; }
.timeline-entry p { margin: 4px 0 0; color: var(--muted); }
.timeline-entry time { color: var(--green); font-size: 0.82rem; font-weight: 500; white-space: nowrap; }

.publication-heading { margin: 0 0 10px; color: var(--green); font-family: "Source Serif 4", Georgia, serif; font-size: 1.22rem; font-weight: 700; text-transform: none; }
.publication-heading:not(:first-child) { margin-top: 46px; }
.publication-list { margin: 0; padding: 0; list-style: none; counter-reset: papers; border-top: 1px solid var(--line); }
.publication-list[start="5"] { counter-reset: papers 4; }
.publication-list li { counter-increment: papers; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding: 20px 0 20px 45px; border-bottom: 1px solid var(--line); }
.publication-list li::before { content: counter(papers, decimal-leading-zero); position: absolute; top: 22px; left: 0; color: #789088; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; }
.publication-list p { margin: 0; color: #344842; font-size: 0.93rem; }
.publication-list a { align-self: start; color: var(--green); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; white-space: nowrap; }

.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.service-list li { padding: 15px 0; border-bottom: 1px solid var(--line); }

.resource-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.resource-list > a { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 112px; padding: 22px; color: var(--ink); background: #fff; border: 1px solid var(--line); text-decoration: none; transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.resource-list > a:hover, .resource-list > a:focus-visible { transform: translateY(-2px); border-color: var(--green-light); box-shadow: 0 12px 28px rgba(27, 74, 63, 0.08); }
.resource-list span { display: grid; gap: 4px; }
.resource-list small { color: var(--muted); }
.resource-list b { color: var(--green); font-size: 0.72rem; letter-spacing: 0.08em; }

.site-footer { color: #dcebe7; background: #102d27; }
.footer-inner { display: grid; grid-template-columns: 0.7fr 1.7fr auto; align-items: start; gap: 48px; padding-top: 38px; padding-bottom: 40px; }
.footer-inner > div { display: grid; }
.footer-inner strong { color: #fff; font-family: "Source Serif 4", Georgia, serif; font-size: 1.05rem; }
.footer-inner span, .footer-inner p { margin: 0; color: #a9c1ba; font-size: 0.74rem; line-height: 1.6; }
.footer-inner a { color: #dcebe7; }
.page-count { white-space: nowrap; }

@media (max-width: 980px) {
    .header-inner { align-items: flex-start; flex-direction: column; gap: 14px; padding-top: 15px; padding-bottom: 15px; }
    .primary-nav { width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
    .primary-nav::-webkit-scrollbar { display: none; }
    .profile-grid { grid-template-columns: 170px minmax(0, 1fr); min-height: 0; gap: 42px; }
    .profile-mark { width: 165px; }
    .profile-mark span { font-size: 2.8rem; }
    .node-one { top: 22px; left: 78px; }
    .node-two { right: 23px; bottom: 45px; }
    .node-three { left: 33px; bottom: 34px; }
    .section-grid { grid-template-columns: 170px minmax(0, 1fr); gap: 48px; }
    .footer-inner { grid-template-columns: 1fr 2fr; }
    .page-count { grid-column: 2; }
}

@media (max-width: 720px) {
    html { scroll-padding-top: 122px; }
    .page-shell { width: min(calc(100% - 32px), var(--shell)); }
    .site-identity span { display: none; }
    .profile-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 46px; padding-bottom: 52px; }
    .profile-mark { width: 138px; }
    .profile-mark span { font-size: 2.35rem; }
    .profile-mark::before { inset: 27px; }
    .profile-mark::after { inset: 42px; }
    .node-one { top: 19px; left: 65px; }
    .node-two { right: 20px; bottom: 38px; }
    .node-three { left: 29px; bottom: 28px; }
    .profile-copy h1 { font-size: clamp(2.65rem, 13vw, 3.45rem); }
    .section-grid { grid-template-columns: 1fr; gap: 34px; padding-top: 56px; padding-bottom: 60px; }
    .section-label { max-width: 280px; }
    .timeline-entry { grid-template-columns: 1fr; gap: 8px; }
    .timeline-entry time { grid-row: 1; }
    .publication-list li { grid-template-columns: 1fr; gap: 10px; padding-left: 36px; }
    .service-list, .resource-list { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 22px; }
    .page-count { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
