:root {
    /* Premium Colors */
    --paper: #f4f2ee; /* Warm off-white */
    --charcoal: #1c1b1f; /* Off-black for text */
    --charcoal-light: #2b2a2d;
    --indigo: #4f46e5; /* Accent, saturation < 80% */
    --indigo-soft: #e0e7ff;
    --border: #e5e5e5;
    
    /* Typography */
    --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', system-ui, sans-serif;

    /* Layout & Spacing */
    --wrap-w: 1200px;
    --space-sm: 12px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 96px;
    
    /* Transitions */
    --spring: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.1); /* Custom spring-like easing */
    --ease: 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background-color: var(--paper);
    color: var(--charcoal);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Lenis Smooth Scroll CSS */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* Utilities */
.wrap {
    max-width: var(--wrap-w);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.eb {
    font-family: var(--font-display);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--indigo);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    display: inline-flex;
    align-items: center;
}
.eb::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--indigo);
    margin-right: 8px;
    border-radius: 2px;
}

.sec-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.lede {
    font-size: 1.125rem;
    color: var(--charcoal-light);
    margin-bottom: var(--space-md);
    max-width: 600px;
}

.mb-lg { margin-bottom: var(--space-lg); }
.text-light { color: var(--paper); }
.text-indigo { color: var(--indigo); }
.bg-dark { background-color: var(--charcoal); color: var(--paper); }
.text-center { text-align: center; }

/* Sticky Nav */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(244, 242, 238, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(28, 27, 31, 0.05);
    padding: 16px 0;
}
.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}
.nav-links {
    display: flex;
    gap: 16px;
}
.nav-btn {
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--ease);
}
.nav-btn:hover {
    color: var(--indigo);
}

/* Sections */
.sec {
    padding: var(--space-xl) 0;
}

/* Hero */
.hero {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 100px; /* Offset for nav */
}
.hero-top {
    margin-bottom: 24px;
}
.eyebrow {
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--charcoal-light);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 20px;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}
.hero-positioning {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    color: var(--charcoal-light);
    font-weight: 400;
    margin-bottom: var(--space-lg);
    line-height: 1.3;
}
.hero-stats {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-top: var(--space-md);
}
.stat-card {
    border-left: 2px solid var(--indigo);
    padding-left: 16px;
}
.stat-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--charcoal);
}
.stat-label {
    font-size: 0.9rem;
    color: var(--charcoal-light);
    margin-top: 4px;
    max-width: 150px;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}
.grid-2-asym {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-lg);
}

/* Profil */
.prof-side {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.prof-img-wrap {
    width: 100%;
    aspect-ratio: 4/5;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}
.prof-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: var(--ease);
}
.prof-img:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}
.quick-facts {
    display: flex;
    gap: var(--space-md);
}
.q-fact {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.q-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--charcoal-light);
    margin-bottom: 8px;
}
.q-val {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.bento-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--spring);
    cursor: pointer;
}
.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}
.bento-card:active {
    transform: scale(0.98);
}
.span-2 {
    grid-column: span 2;
}
.b-img-box {
    width: 100%;
    aspect-ratio: 16/9;
    background: #f0f0f0;
    overflow: hidden;
}
.feed-box {
    aspect-ratio: auto;
    height: 300px;
}
.b-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--spring);
}
.bento-card:hover .b-img {
    transform: scale(1.03);
}
.b-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.b-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 4px;
}
.b-role {
    font-size: 0.85rem;
    color: var(--indigo);
    font-weight: 600;
    margin-bottom: 12px;
}
.b-content p {
    font-size: 0.95rem;
    color: var(--charcoal-light);
    margin-bottom: 20px;
    flex: 1;
}
.b-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.b-tools span {
    background: var(--paper);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}
.b-link {
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: var(--ease);
}
.b-link:hover {
    color: var(--indigo);
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.skill-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 12px;
}
.skill-box.full {
    grid-column: span 2;
}
.sk-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--paper);
}
.skill-box.full .sk-title {
    color: #818cf8; /* Lighter indigo for dark bg */
}
.sk-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.sk-tags span {
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
}
.sk-desc {
    color: #a1a1aa;
}

/* Process */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}
.p-step {
    padding-top: 24px;
    border-top: 2px solid var(--charcoal);
}
.p-num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--indigo);
    margin-bottom: 16px;
    line-height: 1;
}
.p-step h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}
.p-step p {
    color: var(--charcoal-light);
}

/* Achievements */
.achieve-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.ach-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}
.ach-item h5 {
    font-size: 1.1rem;
    font-weight: 600;
}
.ach-item span {
    font-size: 0.9rem;
    color: var(--charcoal-light);
    text-align: right;
}

/* Footer */
.footer {
    background: white;
    padding: var(--space-xl) 0 40px;
    border-top: 1px solid var(--border);
}
.footer-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 16px;
}
.footer-sub {
    font-size: 1.1rem;
    color: var(--charcoal-light);
    margin-bottom: 40px;
}
.footer-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--spring);
    cursor: pointer;
}
.cta-btn:active {
    transform: scale(0.96);
}
.cta-btn.primary {
    background: var(--charcoal);
    color: white;
}
.cta-btn.primary:hover {
    background: var(--indigo);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}
.cta-btn.outline {
    background: transparent;
    color: var(--charcoal);
    border: 1px solid var(--charcoal);
}
.cta-btn.outline:hover {
    background: var(--paper);
    transform: translateY(-2px);
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
}
.footer-links a {
    color: var(--charcoal-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--ease);
}
.footer-links a:hover {
    color: var(--indigo);
}
.copyright {
    font-size: 0.85rem;
    color: #888;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .grid-2, .grid-2-asym {
        grid-template-columns: 1fr;
    }
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .span-2 {
        grid-column: span 1;
    }
    .process-grid {
        grid-template-columns: 1fr;
    }
    .ach-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .ach-item span {
        text-align: left;
    }
}
@media (max-width: 600px) {
    :root {
        --space-xl: 60px;
        --space-lg: 32px;
    }
    .quick-facts {
        flex-direction: column;
    }
    .footer-ctas {
        flex-direction: column;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .skill-box.full {
        grid-column: span 1;
    }
}
