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

:root {
    --black: #0a0a08;
    --off-white: #f0ece3;
    --warm-grey: #8a857a;
    --accent: #c8a96e;
    --light-rule: rgba(240, 236, 227, 0.12);

    --font-display: 'Syne', sans-serif;
    --font-body: 'Cormorant Garamond', serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--black);
    color: var(--off-white);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* =====================
   NAV
   ===================== */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    mix-blend-mode: normal;
}

nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,10,8,0.9) 0%, transparent 100%);
    pointer-events: none;
}

.nav-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.1em;
    color: var(--off-white);
    text-decoration: none;
    position: relative;
    z-index: 1;
    transition: color 0.2s;
}

.nav-logo:hover { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--off-white);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
}

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

/* =====================
   HERO
   ===================== */
#hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.hero-image-wrap {
    position: absolute;
    inset: 0;
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(20%) contrast(1.05);
    animation: heroReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,10,8,0.2) 0%,
        rgba(10,10,8,0.0) 30%,
        rgba(10,10,8,0.55) 70%,
        rgba(10,10,8,0.95) 100%
    );
}

.hero-text {
    position: relative;
    z-index: 2;
    padding: 0 48px 72px;
    max-width: 900px;
    animation: heroTextReveal 1.2s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-eyebrow {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(72px, 10vw, 140px);
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
}

.hero-name-1 {
    color: var(--off-white);
}

.hero-name-2 {
    font-family: var(--font-body);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(64px, 9vw, 125px);
    color: var(--accent);
    padding-left: 0.08em;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 300;
    color: rgba(240, 236, 227, 0.65);
    line-height: 1.4;
    margin-bottom: 40px;
}

.hero-cta {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--off-white);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 4px;
    transition: color 0.2s, border-color 0.2s;
}

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

/* =====================
   WORK SECTION
   ===================== */
#work {
    padding: 120px 48px;
}

.section-header {
    margin-bottom: 56px;
}

.section-label {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 12px;
}

#work h2, #about h2 {
    font-family: var(--font-body);
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 300;
    line-height: 1.0;
    color: var(--off-white);
}

/* =====================
   GRID
   ===================== */
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 320px;
    gap: 3px;
}

.grid-item {
    grid-column: span 4;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.grid-item--large {
    grid-column: span 8;
    grid-row: span 2;
}

.grid-item--wide {
    grid-column: span 8;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
    filter: brightness(0.85) grayscale(10%);
}

.grid-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.0) grayscale(0%);
}

.grid-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 24px 20px 20px;
    background: linear-gradient(to top, rgba(10,10,8,0.85) 0%, transparent 100%);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.grid-item:hover .grid-caption {
    transform: translateY(0);
}

.caption-tag {
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.caption-title {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 300;
    color: var(--off-white);
}

/* =====================
   ABOUT
   ===================== */
#about {
    padding: 120px 48px;
    border-top: 1px solid var(--light-rule);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
}

.about-text {
    max-width: 520px;
}

.about-text h2 {
    margin: 16px 0 32px;
    font-size: clamp(42px, 4.5vw, 64px);
}

.about-text h2 em {
    color: var(--accent);
    font-style: italic;
}

.about-text p {
    font-size: 18px;
    color: rgba(240, 236, 227, 0.75);
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1.8;
}

.contact-link {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--off-white);
    text-decoration: none;
    margin-top: 16px;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 4px;
    transition: color 0.2s;
}

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

.about-image {
    aspect-ratio: 4/5;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(15%);
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* =====================
   FOOTER
   ===================== */
footer {
    padding: 40px 48px;
    border-top: 1px solid var(--light-rule);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--off-white);
    opacity: 0.4;
}

.footer-email {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--off-white);
    text-decoration: none;
    opacity: 0.65;
    transition: opacity 0.2s, color 0.2s;
}

.footer-email:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-copy {
    font-family: var(--font-display);
    font-size: 12px;
    opacity: 0.3;
}

/* =====================
   ANIMATIONS
   ===================== */
@keyframes heroReveal {
    from {
        transform: scale(1.06);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes heroTextReveal {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
    nav { padding: 20px 24px; }
    .nav-links { gap: 24px; }

    #hero { height: 90vh; }
    .hero-text { padding: 0 24px 56px; }

    #work { padding: 80px 24px; }

    .grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 260px;
    }

    .grid-item { grid-column: span 1; }
    .grid-item--large { grid-column: span 2; grid-row: span 1; }
    .grid-item--wide { grid-column: span 2; }

    #about { padding: 80px 24px; }
    .about-inner { grid-template-columns: 1fr; gap: 48px; }
    .about-image { display: none; }

    .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 600px) {
    nav { padding: 18px 20px; }
    .nav-links { gap: 16px; }
    .nav-links a { font-size: 11px; }

    .hero-text { padding: 0 20px 48px; }

    #work { padding: 64px 20px; }

    .grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 280px;
    }

    .grid-item { grid-column: span 1 !important; grid-row: span 1 !important; }

    .grid-caption {
        transform: translateY(0);
    }

    #about { padding: 64px 20px; }

    footer { padding: 32px 20px; }
}