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

/* ── Tokens ── */
:root {
    --bg: #FAFAFA;
    --fg: #111111;
    --fg2: #6B6B6B;
    --fg3: #999999;
    --line: #EAEAEA;
    --green: #34C759;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

::selection {
    background: var(--fg);
    color: var(--bg);
}

/* ── Layout ── */
section, .numbers {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Nav ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 250, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--fg);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.875rem;
    color: var(--fg2);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--fg); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 18px;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--fg);
    transition: all 0.3s;
}

/* ── Hero ── */
.hero {
    padding-top: 180px;
    padding-bottom: 120px;
    max-width: 1120px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 7.5vw, 6rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--fg);
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--fg2);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 2rem;
}

.pill {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 100px;
    font-size: 0.8125rem;
    color: var(--fg2);
    font-weight: 500;
    transition: border-color 0.2s, color 0.2s;
    cursor: default;
}

.pill:hover {
    border-color: var(--fg);
    color: var(--fg);
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--fg2);
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* ── Numbers ── */
.numbers {
    padding-top: 0;
    padding-bottom: 120px;
    border-top: 1px solid var(--line);
    padding-top: 60px;
}

.number-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.num-item { text-align: center; }

.num {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--fg);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

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

/* ── Section Label ── */
.section-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--fg3);
    margin-bottom: 3.5rem;
    font-weight: 600;
}

/* ── Work ── */
.work {
    padding-top: 120px;
    padding-bottom: 120px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project {
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.project-meta {
    font-size: 0.75rem;
    color: var(--fg3);
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
}

.project h3 {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    letter-spacing: -0.01em;
}

.project p {
    font-size: 0.9rem;
    color: var(--fg2);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.tags span {
    font-size: 0.6875rem;
    padding: 0.3rem 0.75rem;
    background: var(--bg);
    border-radius: 100px;
    color: var(--fg2);
    font-weight: 500;
}

/* ── About ── */
.about {
    padding-top: 120px;
    padding-bottom: 120px;
    border-top: 1px solid var(--line);
}

.about-grid {
    max-width: 720px;
}

.about-right h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    letter-spacing: -0.015em;
}

.about-right p {
    font-size: 0.95rem;
    color: var(--fg2);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.skill-block { margin-top: 2.5rem; }

.skill-group { margin-bottom: 1.75rem; }

.skill-group h4 {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--fg3);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-pills span {
    padding: 0.4rem 1rem;
    border: 1px solid var(--line);
    border-radius: 100px;
    font-size: 0.8125rem;
    color: var(--fg2);
    transition: border-color 0.2s, color 0.2s;
}

.skill-pills span:hover {
    border-color: var(--fg);
    color: var(--fg);
}

/* ── Timeline ── */
.recognition {
    padding-top: 120px;
    padding-bottom: 120px;
    border-top: 1px solid var(--line);
}

.timeline {
    position: relative;
    padding-left: 140px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 120px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line);
}

.tl-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fg);
}

.tl-date {
    position: absolute;
    left: -140px;
    top: 0;
    width: 100px;
    text-align: right;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--fg3);
}

.tl-body h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    letter-spacing: -0.005em;
}

.tl-body p {
    font-size: 0.875rem;
    color: var(--fg2);
    line-height: 1.65;
    max-width: 560px;
}

/* ── Contact ── */
.contact {
    padding-top: 120px;
    padding-bottom: 120px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.contact h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.contact > p {
    font-size: 1rem;
    color: var(--fg2);
    margin-bottom: 2.5rem;
}

.contact-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-row a {
    font-size: 0.9rem;
    color: var(--fg2);
    text-decoration: none;
    padding: 0.65rem 1.75rem;
    border: 1px solid var(--line);
    border-radius: 100px;
    transition: border-color 0.2s, color 0.2s;
}

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

/* ── Footer ── */
footer {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2rem;
    border-top: 1px solid var(--line);
    text-align: center;
}

footer p {
    font-size: 0.75rem;
    color: var(--fg3);
    letter-spacing: 0.02em;
}

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

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

/* ── Responsive ── */
@media (max-width: 900px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        max-width: 100%;
    }

    .number-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .timeline {
        padding-left: 100px;
    }

    .timeline::before {
        left: 80px;
    }

    .tl-date {
        left: -100px;
        width: 64px;
        font-size: 0.75rem;
    }

    .tl-item::before {
        left: -24px;
    }
}

@media (max-width: 640px) {
    .hero { padding-top: 140px; padding-bottom: 80px; }
    .hero h1 { font-size: 2.75rem; }

    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--line);
    }

    .menu-toggle { display: flex; }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .number-row {
        grid-template-columns: 1fr 1fr;
    }

    .num { font-size: 2rem; }

    .timeline {
        padding-left: 24px;
    }

    .timeline::before {
        left: 4px;
    }

    .tl-date {
        position: static;
        width: auto;
        text-align: left;
        margin-bottom: 0.25rem;
    }

    .tl-item::before {
        left: -24px;
    }

    section, .numbers {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .nav-inner { padding: 1rem 1.25rem; }

    .hero {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .work, .about, .recognition, .contact, .numbers {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}
