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

:root {
    --bg: #f4f2ed;
    --bg-card: #edeae3;
    --bg-card-hover: #e4e0d7;
    --fg: #181816;
    --fg-muted: #68685f;
    --fg-faint: #a5a59c;
    --accent: #c17f3c;
    --accent-dim: #e9d0b0;
    --border: rgba(24, 24, 22, 0.1);
    --serif: "Plus Jakarta Sans", sans-serif;
    --mono: "Fira Code", monospace;
    /* --serif: "Fraunces", serif;
    --mono: "DM Mono", monospace; */
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.75;
    cursor: none;
}

/* Cursor */
#cur {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition:
        width 0.2s,
        height 0.2s;
}
#cur-r {
    position: fixed;
    width: 28px;
    height: 28px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    opacity: 0.4;
    transition:
        width 0.2s,
        height 0.2s,
        opacity 0.2s;
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 3rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: var(--fg);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}
nav a {
    color: var(--fg-muted);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s;
}
nav a:hover {
    color: var(--fg);
}

/* ── HERO: Split layout ── */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 64px;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 4rem 3rem;
    border-right: 1px solid var(--border);
    position: relative;
}

.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4rem 3rem;
}

.hero-eyebrow {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg-faint);
    margin-bottom: 1.5rem;
}

.hero-name {
    font-family: var(--serif);
    font-size: clamp(4rem, 9vw, 8rem);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -0.02em;
}

.hero-name em {
    font-style: italic;
    color: var(--fg-muted);
    display: block;
}

.hero-right-top {
    padding-top: 2rem;
}

.hero-statement {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-statement em {
    font-style: italic;
    color: var(--fg-muted);
    display: inline;
}

.hero-right-top p {
    color: var(--fg-muted);
    font-size: 13px;
    line-height: 1.85;
    max-width: 340px;
    margin-bottom: 2.5rem;
}

.hero-contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-link {
    color: var(--fg-muted);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2px;
    width: fit-content;
    transition: color 0.2s;
}

.hero-link:hover {
    color: var(--accent);
}

.hero-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.hero-stat {
    padding: 1.2rem 1rem;
    border-right: 1px solid var(--border);
}

.hero-stat:last-child {
    border-right: none;
}

.stat-num {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    color: var(--fg);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg-faint);
}

.hero-right-bottom {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-solid {
    padding: 0.7rem 1.5rem;
    background: var(--fg);
    color: var(--bg);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 0.2s;
    font-family: var(--mono);
}

.btn-solid:hover {
    background: var(--accent);
}

.btn-line {
    color: var(--fg-muted);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2px;
    transition: color 0.2s;
}

.btn-line:hover {
    color: var(--fg);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 3rem;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fg-faint);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-scroll-hint::after {
    content: "";
    display: block;
    width: 1px;
    height: 32px;
    background: var(--fg-faint);
}

/* Sections */
section {
    padding: 6rem 3rem;
    border-top: 1px solid var(--border);
}

.sec-label {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg-faint);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sec-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
    max-width: 48px;
}

/* 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.8rem, 3vw, 2.6rem);
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--fg-muted);
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 1rem;
}

.about-meta {
    display: flex;
    flex-direction: column;
}

.meta-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}

.meta-row:first-child {
    border-top: 1px solid var(--border);
}
.meta-key {
    color: var(--fg-faint);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    align-self: start;
    padding-top: 2px;
}

.chip {
    display: inline-block;
    padding: 1px 7px;
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 3px 3px 0;
}

/* ── WORK: Professional Project List ── */
section {
    padding: 6rem 4rem;
}
.project-item {
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
    align-items: center;
}
.project-item:hover {
    color: var(--accent);
    padding-left: 1rem;
}
.project-title {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 300;
}
.tag {
    font-size: 10px;
    border: 1px solid var(--border);
    padding: 2px 8px;
    margin-right: 5px;
    display: inline-block;
}

.project-container {
    border-bottom: 1px solid var(--border);
}

.project-item {
    border-bottom: none !important; /* Move border to container */
}

.project-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.02);
}

.details-content {
    padding: 0 100px 2.5rem 100px; /* Aligns with the title in grid */
    max-width: 800px;
}

.details-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--fg-muted);
    margin-bottom: 1.5rem;
}

.details-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.private-repo {
    font-size: 11px;
    color: var(--fg-faint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-item.active .project-arrow {
    transform: rotate(180deg);
    color: var(--accent);
}

.project-arrow {
    transition: transform 0.3s ease;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}
.skill-group h3 {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.2rem;
}
.skill-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.skill-list li {
    font-size: 12px;
    color: var(--fg-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.skill-list li::before {
    content: "";
    width: 3px;
    height: 3px;
    background: var(--fg-faint);
    border-radius: 50%;
    flex-shrink: 0;
}

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

.contact-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.c-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--fg-muted);
    font-size: 12px;
    transition: color 0.2s;
}

.c-link:first-child {
    border-top: 1px solid var(--border);
}
.c-link:hover {
    color: var(--fg);
}
.c-link:hover .c-arr {
    color: var(--accent);
    transform: translate(2px, -2px);
}
.c-arr {
    transition:
        color 0.2s,
        transform 0.2s;
}

footer {
    padding: 1.8rem 3rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--fg-faint);
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }
    .hero-left {
        border-right: none;
        border-bottom: 1px solid var(--border);
        min-height: 55vh;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }
    nav {
        padding: 1.2rem 1.5rem;
    }
    nav ul {
        display: none;
    }
    section {
        padding: 4rem 1.5rem;
    }
    .hero-left,
    .hero-right {
        padding: 2.5rem 1.5rem;
    }
}
