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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #D4622A #0A0A0A;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0A0A0A;
}

::-webkit-scrollbar-thumb {
    background: #D4622A;
}

::selection {
    background: #D4622A;
    color: #F5E6D3;
}

body {
    background-color: #0A0A0A;
    color: #A8A29E;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    line-height: 1.75;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    position: relative;
}

/* Carbon Grain Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.018;
    filter: url(#carbon-grain);
    background: #0A0A0A;
}

.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* === VERTICAL NAVIGATION === */
#vertical-nav {
    position: fixed;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nav-link {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: #D4622A;
    text-decoration: none;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    transition: text-shadow 0.3s ease, filter 0.3s ease;
    filter: blur(0.5px);
}

.nav-link:hover {
    text-shadow: 0 0 12px rgba(212, 98, 42, 0.5);
    filter: blur(0);
}

/* === HERO SECTION === */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #0A0A0A;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.hero-title {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: #F5E6D3;
    letter-spacing: -0.02em;
    line-height: 1.1;
    padding: 0 0 12vh 8vw;
    position: relative;
    z-index: 2;
    animation: heroBlurIn 2s ease-out forwards;
}

@keyframes heroBlurIn {
    0% {
        filter: blur(12px);
        opacity: 0;
    }
    100% {
        filter: blur(0);
        opacity: 1;
    }
}

/* === HEAT COLUMNS === */
.heat-column {
    position: absolute;
    bottom: 0;
    width: 120px;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.heat-column-1 {
    left: 25%;
    background: linear-gradient(to top, rgba(212, 98, 42, 0.08), rgba(139, 69, 19, 0.03), transparent);
    animation: heatRise 20s linear infinite;
}

.heat-column-2 {
    left: 55%;
    background: linear-gradient(to top, rgba(139, 69, 19, 0.05), rgba(212, 98, 42, 0.04), transparent);
    animation: heatRise 28s linear infinite;
    animation-delay: -8s;
}

.heat-column-3 {
    left: 78%;
    background: linear-gradient(to top, rgba(212, 98, 42, 0.06), rgba(139, 69, 19, 0.02), transparent);
    animation: heatRise 24s linear infinite;
    animation-delay: -14s;
}

@keyframes heatRise {
    0% {
        transform: translateY(0) scaleX(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-5%) scaleX(1.05);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10%) scaleX(0.95);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-5%) scaleX(1.03);
        opacity: 0.7;
    }
    100% {
        transform: translateY(0) scaleX(1);
        opacity: 0.6;
    }
}

/* === EMBER PARTICLES === */
.ember-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.ember {
    position: absolute;
    border-radius: 50%;
    background: #D4622A;
    animation: emberFloat linear infinite;
}

.ember-1 {
    width: 3px; height: 3px; left: 15%; bottom: -10px; opacity: 0.6;
    animation-duration: 10s;
}
.ember-2 {
    width: 2px; height: 2px; left: 30%; bottom: -10px; opacity: 0.4;
    animation-duration: 13s; animation-delay: -2s;
}
.ember-3 {
    width: 4px; height: 4px; left: 45%; bottom: -10px; opacity: 0.7;
    animation-duration: 9s; animation-delay: -5s;
}
.ember-4 {
    width: 2px; height: 2px; left: 60%; bottom: -10px; opacity: 0.3;
    animation-duration: 15s; animation-delay: -1s;
}
.ember-5 {
    width: 3px; height: 3px; left: 72%; bottom: -10px; opacity: 0.5;
    animation-duration: 11s; animation-delay: -7s;
}
.ember-6 {
    width: 2px; height: 2px; left: 85%; bottom: -10px; opacity: 0.8;
    animation-duration: 8s; animation-delay: -3s;
}
.ember-7 {
    width: 3px; height: 3px; left: 22%; bottom: -10px; opacity: 0.45;
    animation-duration: 14s; animation-delay: -9s;
}
.ember-8 {
    width: 4px; height: 4px; left: 50%; bottom: -10px; opacity: 0.35;
    animation-duration: 12s; animation-delay: -4s;
}
.ember-9 {
    width: 2px; height: 2px; left: 38%; bottom: -10px; opacity: 0.55;
    animation-duration: 10s; animation-delay: -6s;
}
.ember-10 {
    width: 3px; height: 3px; left: 68%; bottom: -10px; opacity: 0.65;
    animation-duration: 9s; animation-delay: -8s;
}

@keyframes emberFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: var(--ember-start-opacity, 0.5);
    }
    25% {
        transform: translateY(-25vh) translateX(8px);
    }
    50% {
        transform: translateY(-50vh) translateX(-5px);
    }
    75% {
        transform: translateY(-75vh) translateX(10px);
    }
    100% {
        transform: translateY(-110vh) translateX(3px);
        opacity: 0;
    }
}

/* === BURN LINE DIVIDER === */
.burn-line {
    width: 100%;
    height: 1px;
    background: radial-gradient(ellipse at var(--burn-center, 50%) 50%, #D4622A, transparent 70%);
    margin: 0;
    animation: burnPulse 4s ease-in-out infinite;
}

@keyframes burnPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* === STATEMENT SECTION === */
#statement {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 8vw;
    position: relative;
}

.statement-text {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    color: #F5E6D3;
    line-height: 1.5;
    letter-spacing: -0.01em;
    max-width: 800px;
    text-align: center;
}

/* === WORK GRID SECTION === */
#work {
    padding: 80px 8vw 80px;
    position: relative;
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr 1.618fr 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.work-card {
    background: #1A1208;
    border: 1px solid #8B4513;
    padding: 32px;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, filter 0.3s ease;
    filter: blur(0.5px);
}

.work-card:hover {
    border-color: #D4622A;
    box-shadow: 0 0 20px rgba(212, 98, 42, 0.15);
    filter: blur(0);
}

.work-card-wide {
    grid-column: span 2;
}

.work-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #D4622A;
    display: block;
    margin-bottom: 12px;
}

.work-title {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #F5E6D3;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 12px;
}

.work-desc {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    color: #A8A29E;
    line-height: 1.75;
}

/* === ABOUT SECTION === */
#about {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 80px 8vw;
    position: relative;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.618fr 1fr;
    gap: 32px;
}

.about-heading {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    color: #F5E6D3;
    letter-spacing: -0.02em;
    line-height: 1.1;
    grid-column: 2;
    margin-bottom: 24px;
}

.about-text {
    grid-column: 2;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 300;
    color: #A8A29E;
    line-height: 1.75;
    margin-bottom: 16px;
}

/* === CONTACT SECTION === */
#contact {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 8vw;
}

.contact-email {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #F5E6D3;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: filter 0.3s ease;
    filter: blur(0.5px);
}

.contact-email:hover {
    filter: blur(0);
}

.at-symbol {
    color: #D4622A;
}

/* === FOOTER === */
#footer {
    width: 100%;
    background: #0A0A0A;
    padding: 40px 8vw;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.footer-text {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8B4513;
}

/* === REVEAL ANIMATION === */
.reveal {
    filter: blur(6px);
    opacity: 0.4;
    transition: filter 0.4s ease-out, opacity 0.4s ease-out;
}

.reveal.revealed {
    filter: blur(0);
    opacity: 1;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .work-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .work-card-wide {
        grid-column: span 1;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-heading,
    .about-text {
        grid-column: 1;
    }

    #vertical-nav {
        left: 12px;
        gap: 16px;
    }

    .nav-link {
        font-size: 10px;
    }

    body {
        padding-left: 0;
    }
}

@media (max-width: 600px) {
    #hero {
        padding: 0;
    }

    .hero-title {
        padding: 0 0 10vh 6vw;
        font-size: clamp(2rem, 8vw, 3rem);
    }

    #statement {
        padding: 60px 24px;
    }

    #work {
        padding: 60px 24px;
    }

    #about {
        padding: 60px 24px;
    }

    #contact {
        padding: 60px 24px;
    }

    .contact-email {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    #vertical-nav {
        display: none;
    }
}
