/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== Tokens ===== */
:root {
    --white: #ffffff;
    --black: #0a0a0a;
    --grey-1: #f5f5f5;
    --grey-2: #e5e5e5;
    --grey-3: #999999;
    --grey-4: #666666;
    --red: #d63031;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    --serif: 'DM Serif Display', Georgia, serif;
    --col-gap: 32px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--black);
    color: var(--white);
}

/* ===== Grid ===== */
.grid {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 var(--col-gap);
}

/* ===== Rule ===== */
.rule {
    border: none;
    border-top: 1px solid var(--grey-2);
    max-width: 1080px;
    margin: 0 auto;
}

/* ===== Topbar ===== */
.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--grey-2);
}

.topbar .grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.mark {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.topnav {
    display: flex;
    gap: 32px;
}

.topnav a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--grey-4);
    text-decoration: none;
    transition: color 0.2s;
}

.topnav a:hover { color: var(--black); }

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--black);
    cursor: pointer;
}

/* ===== Hero ===== */
.hero {
    padding: 160px 0 80px;
}

.hero .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: end;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--black);
}

.hero-col-right {
    padding-bottom: 8px;
}

.hero-col-right p {
    font-size: 1.0625rem;
    color: var(--grey-4);
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 380px;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meta-item {
    display: flex;
    gap: 16px;
    align-items: baseline;
}

.meta-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--grey-3);
    min-width: 80px;
}

.meta-value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--black);
}

/* ===== Sections ===== */
.section {
    padding: 72px 0;
}

.section-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 48px;
}

.section-num {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--red);
    letter-spacing: 0.04em;
}

.section-head h2 {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--black);
    letter-spacing: -0.01em;
}

.section-body p {
    font-size: 1rem;
    color: var(--grey-4);
    line-height: 1.8;
    margin-bottom: 16px;
}

.body-narrow {
    max-width: 640px;
}

.lead {
    font-size: 1.1875rem !important;
    color: var(--black) !important;
    line-height: 1.7 !important;
}

/* Blockquote */
blockquote {
    margin-top: 32px;
    padding-left: 24px;
    border-left: 3px solid var(--red);
}

blockquote p,
blockquote {
    font-size: 1.0625rem;
    font-style: italic;
    color: var(--black);
    line-height: 1.75;
}

blockquote cite {
    display: block;
    margin-top: 12px;
    font-style: normal;
    font-size: 0.8125rem;
    color: var(--grey-3);
}

/* ===== Numbers ===== */
.section-numbers {
    padding: 56px 0;
}

.numbers-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.number {
    display: block;
    font-family: var(--serif);
    font-size: 3rem;
    font-weight: 400;
    color: var(--black);
    line-height: 1.1;
    margin-bottom: 4px;
}

.number-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--grey-3);
}

/* ===== Experience ===== */
.exp-row {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--grey-2);
    align-items: start;
}

.exp-row:first-child {
    border-top: 1px solid var(--grey-2);
}

.exp-period {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--grey-3);
    padding-top: 3px;
    letter-spacing: 0.02em;
}

.exp-detail h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 2px;
}

.exp-org {
    font-size: 0.8125rem;
    color: var(--grey-3);
    margin-bottom: 8px;
}

.exp-desc {
    font-size: 0.9375rem;
    color: var(--grey-4);
    line-height: 1.7;
    max-width: 560px;
}

.exp-tag {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--red);
    padding-top: 4px;
}

/* ===== Capabilities ===== */
.cap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.cap-col h4 {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--black);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--black);
}

.cap-col ul {
    list-style: none;
}

.cap-col li {
    font-size: 0.9375rem;
    color: var(--grey-4);
    padding: 6px 0;
    border-bottom: 1px solid var(--grey-1);
}

.cap-col li:last-child {
    border-bottom: none;
}

/* ===== Publications ===== */
.pub-row {
    display: grid;
    grid-template-columns: 64px 1fr 48px;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--grey-2);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    align-items: center;
}

.pub-row:first-child {
    border-top: 1px solid var(--grey-2);
}

.pub-row:hover {
    background: var(--grey-1);
}

.pub-venue {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--red);
}

.pub-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--black);
    line-height: 1.5;
}

.pub-year {
    font-size: 0.8125rem;
    color: var(--grey-3);
    text-align: right;
}

/* ===== Contact ===== */
.section-contact {
    padding-bottom: 96px;
}

.contact-link {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
    border-bottom: 2px solid var(--black);
    padding-bottom: 2px;
    margin: 8px 0 32px;
    transition: color 0.2s, border-color 0.2s;
}

.contact-link:hover {
    color: var(--red);
    border-color: var(--red);
}

.contact-row {
    display: flex;
    gap: 24px;
}

.contact-row a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--grey-4);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-row a:hover {
    color: var(--black);
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid var(--grey-2);
    padding: 24px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--grey-3);
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    :root { --col-gap: 20px; }

    .topnav { display: none; }
    .topnav.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 56px; left: 0; right: 0; bottom: 0;
        background: var(--white);
        align-items: center;
        justify-content: center;
        gap: 28px;
        z-index: 99;
    }
    .topnav.open a { font-size: 1.25rem; color: var(--black); }
    .menu-btn { display: block; }

    .hero { padding: 120px 0 56px; }
    .hero .grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero h1 { font-size: clamp(3rem, 12vw, 4.5rem); }

    .numbers-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .exp-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .exp-period { padding-top: 0; }
    .exp-tag { position: absolute; top: 24px; right: 0; }
    .exp-row { position: relative; }

    .cap-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .pub-row {
        grid-template-columns: 48px 1fr;
    }
    .pub-year { display: none; }

    .section { padding: 48px 0; }

    .contact-link { font-size: 1.125rem; }

    .footer-inner {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .cap-grid { grid-template-columns: 1fr; }
    .number { font-size: 2.25rem; }
}
