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

:root {
    --bg: #F8F7F4;
    --bg-card: #FFFFFF;
    --text: #1C1C1E;
    --text-secondary: #6E6E73;
    --text-tertiary: #AEAEB2;
    --accent: #2D5A8E;
    --accent-light: #EBF1F8;
    --border: #E5E4E0;
    --border-card: #EBEBEA;
    --radius: 14px;
    --radius-sm: 8px;
    --nav-height: 64px;
    --serif: 'Lora', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.22s ease;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity var(--transition);
}

a:hover {
    opacity: 0.72;
}

img {
    max-width: 100%;
    display: block;
}

/* ========================
   NAVIGATION
   ======================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 100;
    background: rgba(248, 247, 244, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition);
}

#navbar.scrolled {
    border-bottom-color: var(--border);
}

.nav-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: color var(--transition);
}

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

/* ========================
   SECTIONS SHARED
   ======================== */
section {
    padding: 96px 24px;
}

section+section {
    padding-top: 0;
}

.section-inner {
    max-width: 760px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 40px;
}

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

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

/* ========================
   HERO
   ======================== */
#hero {
    padding-top: calc(var(--nav-height) + 80px);
    padding-bottom: 96px;
    text-align: center;
}

.hero-inner {
    max-width: 600px;
    margin: 0 auto;
}

.avatar-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-card);
    box-shadow: 0 0 0 1px var(--border), var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar:hover {
    transform: scale(1.03);
    box-shadow: 0 0 0 1px var(--border), var(--shadow-hover);
}

h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text);
}

.hero-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.hero-tagline a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--border);
}

.hero-tagline a:hover {
    text-decoration-color: var(--accent);
    opacity: 1;
}

.hero-social {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 7px 14px;
    transition: color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    font-weight: 400;
}

.social-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.social-link:hover {
    color: var(--text);
    border-color: var(--text);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
    opacity: 1;
}

/* ========================
   ABOUT
   ======================== */
#about {
    padding-top: 96px;
}

.about-text p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 620px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text strong {
    color: var(--text);
    font-weight: 500;
}

.about-text a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--border);
}

.about-text a:hover {
    text-decoration-color: var(--accent);
    opacity: 1;
}

/* ========================
   WORK / VENTURES
   ======================== */
.ventures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.venture-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text);
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
    cursor: pointer;
}

.venture-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    border-color: transparent;
    opacity: 1;
}

.venture-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.venture-emoji {
    font-size: 1.5rem;
    line-height: 1;
}

.venture-arrow {
    font-size: 1rem;
    color: var(--text-tertiary);
    transition: color var(--transition), transform var(--transition);
}

.venture-card:hover .venture-arrow {
    color: var(--accent);
    transform: translate(2px, -2px);
}

.venture-card h3 {
    font-family: var(--serif);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text);
}

.venture-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.venture-role {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 400;
    letter-spacing: 0.01em;
    display: block;
    margin-top: 8px;
}

/* ========================
   PERSONAL / BEYOND WORK
   ======================== */
.personal-intro {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 560px;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.interest-item {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    transition: box-shadow var(--transition), transform var(--transition);
}

.interest-item:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.interest-icon {
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 8px;
}

.interest-item span:not(.interest-icon) {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
}

.interest-item small {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    line-height: 1.4;
}

/* ========================
   CONNECT
   ======================== */
#connect {
    padding-bottom: 120px;
}

.connect-heading {
    font-family: var(--serif);
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 500;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.2;
}

.connect-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 460px;
    line-height: 1.7;
}

.connect-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.connect-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 10px 22px;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.connect-pill:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
    opacity: 1;
}

/* ========================
   FOOTER
   ======================== */
footer {
    border-top: 1px solid var(--border);
    padding: 24px;
}

.footer-inner {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.footer-sep {
    color: var(--border);
}

footer a {
    color: var(--text-tertiary);
    transition: color var(--transition);
}

footer a:hover {
    color: var(--text);
    opacity: 1;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 640px) {
    section {
        padding: 72px 20px;
    }

    section+section {
        padding-top: 0;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 0.8125rem;
    }

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

    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .connect-links {
        flex-direction: column;
    }

    .connect-pill {
        justify-content: center;
    }

    .footer-inner {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 400px) {
    .interests-grid {
        grid-template-columns: 1fr;
    }
}