:root {
    --bg: #FAF9F6;
    --creme: #F5F5F0;
    --text: #111111;
    --text-muted: #444444;
    --border: #dfdfdf;
    --highlight: #e13434;
    --font-heading: "BBH Bogle", sans-serif;
    --font-hero: "Raleway Dots", cursive;
    --font-sans: "Inter", sans-serif;
    --font-mono: "ui-monospace", "SFMono-Regular", "Menlo", "Monaco", "Consolas", monospace;
    --nav-height: 70px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.5;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.03;
    z-index: 9999;
}

.cursor {
    width: 20px;
    height: 20px;
    background: var(--text);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

.mono {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.italic {
    font-style: italic;
}

main {
    flex: 1;
}

/* Navigation - Glassy & Refined */
.minimal-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 4rem;
    height: var(--nav-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(250, 249, 246, 0.5);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-logo {
    height: 28px;
    width: auto;
    filter: brightness(0);
}

.nav-center {
    justify-self: center;
}

.nav-right {
    justify-self: end;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-header {
    list-style: none;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-header a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-header a:hover {
    background: var(--text);
    color: var(--bg);
    transform: translateY(-1px);
}

.cv-btn {
    background: var(--highlight) !important;
    color: white !important;
    border-color: var(--highlight) !important;
}

.cv-btn:hover {
    background: #c32d2d !important;
    border-color: #c32d2d !important;
}

/* Hero - Kinetic Typography & Protected Image (v18) */
.hero-postmodern {
    min-height: 100vh;
    padding: 0 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.hero-main-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 4rem;
}

.frame {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    font-family: var(--font-hero);
    font-size: clamp(3rem, 10vw, 12rem);
    line-height: 0.8;
    letter-spacing: 0.02em;
    max-width: 60%;
    cursor: default;
    /* Selection Protection for Name */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.frame span {
    transition: letter-spacing 0.8s cubic-bezier(0.2, 0, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0, 0.2, 1), color 0.6s ease, text-shadow 0.6s ease;
}

.line-1 {
    font-weight: 700;
    color: var(--text);
}

.line-2 {
    font-weight: 800;
    margin-left: 1.5rem;
    color: var(--highlight);
}

.frame:hover .line-1 {
    letter-spacing: 0.06em;
    transform: translateX(-10px);
    color: var(--highlight);
}

.frame:hover .line-2 {
    letter-spacing: 0.09em;
    transform: translateX(15px);
    text-shadow: 0 0 30px rgba(225, 52, 52, 0.15);
}

.hero-image-frame {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.psv-hero-img {
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    border-radius: 4px;
    transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
    /* Image Protection Layer 1 */
    user-drag: none;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

.psv-hero-img:hover {
    transform: scale(1.02);
}

.hero-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 5rem;
}

.scroll-ind {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.scroll-ind:hover {
    opacity: 1;
}

/* Currently Modular Section */
.currently-section {
    padding: 12rem 4rem;
    background: #FAF9F6;
    border-top: 1px solid var(--border);
}

.section-label {
    margin-bottom: 4rem;
    font-weight: 700;
    color: var(--text);
    font-size: 0.9rem;
    opacity: 0.8;
}

.currently-grid-modular {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem;
}

.currently-card {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.currently-card:hover {
    border-top-color: var(--highlight);
    transform: translateY(-4px);
}

.currently-card h3 {
    font-size: 1.6rem;
    font-family: var(--font-heading);
    margin: 1.5rem 0 0.75rem;
    font-weight: 800;
    line-height: 1.25;
}

.currently-card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Sub-page Spacing Utility */
.sub-page-main {
    padding-bottom: 12rem;
}

/* Contact Info Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 4rem auto;
}

.contact-card {
    background: white;
    padding: 3rem 2rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--highlight);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-card .mono {
    color: var(--highlight);
    margin-bottom: 1.5rem;
    display: block;
}

.contact-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-card p,
.contact-card a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.contact-card a:hover {
    color: var(--highlight);
}

/* Footer - Slimmed */
.footer-meta {
    display: flex;
    justify-content: space-between;
    padding: 2.5rem 4rem;
    border-top: 1px solid var(--border);
    background: white;
}

/* Responsive */
@media (max-width: 1100px) {
    .minimal-nav {
        padding: 0 2rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .currently-grid-modular {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-main-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .frame {
        max-width: 100%;
        font-size: 6rem;
    }

    .line-2 {
        margin-left: 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .nav-center {
        display: none;
    }

    .minimal-nav {
        grid-template-columns: 1fr 1fr;
    }

    .hero-postmodern {
        padding: 0 2rem;
    }

    .frame {
        font-size: 4rem;
    }
}