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

:root {
    --c-bg:      #fafaf8;
    --c-surface: #f3f2ed;
    --c-text:    #0d0d0d;
    --c-muted:   #6b6b67;
    --c-border:  #ddddd6;
    --c-accent:  #1c3a5e;
    --serif:     'Cormorant Garamond', Georgia, serif;
    --sans:      'Figtree', system-ui, sans-serif;
    --max:       1100px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--c-bg);
    color: var(--c-text);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
}

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

/* ─── NAV ─────────────────────────────────────────── */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max);
    margin: 0 auto;
    padding: 2rem 2.5rem;
    border-bottom: 1px solid var(--c-border);
}

.nav-logo {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

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

.nav-links a {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--c-muted);
    transition: color 0.2s;
}

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

/* ─── HERO ────────────────────────────────────────── */
.hero {
    max-width: var(--max);
    margin: 0 auto;
    padding: 6rem 2.5rem 5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.73rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-muted);
    margin-bottom: 1.5rem;
}

.hero-badge::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.hero h1 em {
    font-style: italic;
    color: var(--c-muted);
}

.hero-tagline {
    margin-top: 1.75rem;
    font-size: 1rem;
    font-weight: 300;
    color: var(--c-muted);
    max-width: 460px;
    line-height: 1.75;
}

.hero-meta {
    text-align: right;
    font-size: 0.8rem;
    color: var(--c-muted);
    font-weight: 300;
    line-height: 2;
}

.hero-meta strong {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--c-text);
}

/* ─── DIVIDER ─────────────────────────────────────── */
.divider {
    max-width: var(--max);
    margin: 0 auto;
    border: none;
    border-top: 1px solid var(--c-border);
}

/* ─── SECTIONS ────────────────────────────────────── */
section {
    max-width: var(--max);
    margin: 0 auto;
    padding: 5rem 2.5rem;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--c-muted);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--c-border);
}

/* ─── ABOUT ───────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.about-text h2 {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 0.92rem;
    color: var(--c-muted);
    line-height: 1.85;
    margin-bottom: 1rem;
}

.skills-block h3 {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-muted);
    margin-bottom: 0.75rem;
    margin-top: 1.75rem;
}

.skills-block h3:first-child { margin-top: 0; }

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

.tag {
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.28rem 0.7rem;
    border: 1px solid var(--c-border);
    border-radius: 2px;
    color: var(--c-text);
    background: transparent;
    transition: background 0.18s, border-color 0.18s;
}

.tag:hover { background: var(--c-surface); border-color: #b4b4ac; }

/* ─── PROJECTS ────────────────────────────────────── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-card {
    background: #fff;
    border: 1px solid var(--c-border);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.07);
    border-color: #c0c0b8;
}

.project-num {
    font-family: var(--serif);
    font-size: 0.85rem;
    color: var(--c-muted);
    font-style: italic;
}

.project-card h3 {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.25;
}

.project-card p {
    font-size: 0.875rem;
    color: var(--c-muted);
    line-height: 1.75;
    flex: 1;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--c-border);
}

.project-stack { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.stack-tag {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-accent);
    background: #e5edf5;
    padding: 0.18rem 0.5rem;
    border-radius: 2px;
}

.project-link {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--c-muted);
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 1px;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}

.project-link:hover { color: var(--c-text); border-color: var(--c-text); }

/* ─── CONTACT ─────────────────────────────────────── */
#contact {
    border-top: 1px solid var(--c-border);
    text-align: center;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.contact-heading {
    font-family: var(--serif);
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.contact-heading em { font-style: italic; color: var(--c-muted); }

.contact-email {
    display: inline-block;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--c-accent);
    border-bottom: 1.5px solid var(--c-accent);
    padding-bottom: 2px;
    margin-bottom: 2.75rem;
    transition: opacity 0.2s;
}

.contact-email:hover { opacity: 0.65; }

.social-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    list-style: none;
}

.social-links a {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.18s;
}

.social-links a:hover { color: var(--c-text); }

.social-icon { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

/* ─── FOOTER ──────────────────────────────────────── */
footer {
    border-top: 1px solid var(--c-border);
    max-width: var(--max);
    margin: 0 auto;
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p { font-size: 0.76rem; color: var(--c-muted); }

/* ─── CTA BUTTONS ────────────────────────────────── */
.hero-ctas {
    display: flex;
    gap: 1rem;
    margin-top: 2.25rem;
    flex-wrap: wrap;
    animation: fadeUp 0.6s ease both 0.5s;
    opacity: 0;
}

.btn {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    border-radius: 2px;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: var(--c-accent);
    color: #fff;
    border: 1.5px solid var(--c-accent);
}

.btn-primary:hover { background: #15304f; border-color: #15304f; }

.btn-secondary {
    background: transparent;
    color: var(--c-text);
    border: 1.5px solid var(--c-border);
}

.btn-secondary:hover { border-color: var(--c-text); }

/* ─── ANIMATIONS ──────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-badge   { animation: fadeUp 0.5s ease both 0.1s; opacity: 0; }
.hero h1      { animation: fadeUp 0.6s ease both 0.2s; opacity: 0; }
.hero-tagline { animation: fadeUp 0.6s ease both 0.35s; opacity: 0; }
.hero-meta    { animation: fadeUp 0.6s ease both 0.45s; opacity: 0; }

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; }
    .hero-meta { text-align: left; }
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .projects-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
    nav { flex-direction: column; gap: 1rem; padding: 1.5rem; }
    .hero { padding: 3rem 1.5rem; }
    section { padding: 3.5rem 1.5rem; }
    .projects-grid { grid-template-columns: 1fr; }
    footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}
