:root {
    --black: #0a0a0a;
    --gold: #c9a96e;
    --white: #f5f0e8;
    --cream: #e8e0d4;
    --gray: #1a1a1a;
    --light-gray: #2a2a2a;
}

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

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

body {
    background: var(--black);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Grain texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.8rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;

    transition: all 0.5s ease;
}

.site-header.scrolled {
    padding: 1rem 3rem;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);

}

.site-header .logo {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    letter-spacing: 0.3em;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
}

.site-header .logo:hover { color: var(--gold); }

.site-header nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.site-header nav a {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
}

.site-header nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.site-header nav a:hover { color: var(--white); }
.site-header nav a:hover::after { width: 100%; }
.site-header nav a.active { color: var(--gold); }

.site-header .menu-btn {
    width: 44px;
    height: 44px;
    border: 2px solid var(--gold);
    background: rgba(201, 169, 110, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.site-header .menu-btn:hover {
    border-color: var(--gold);
    background: rgba(201, 169, 110, 0.05);
}

.site-header .menu-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--white);
    stroke-width: 1.5;
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14vh 5vw 10vh;
    position: relative;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 12vw, 10rem);
    font-weight: 400;
    line-height: 1.05;
    color: var(--white);
    max-width: 90vw;
    letter-spacing: -0.02em;
}

.hero-title .italic {
    font-style: italic;
    font-weight: 400;
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 300;
    font-style: italic;
    color: rgba(245, 240, 232, 0.6);
    max-width: 600px;
    margin-top: 2rem;
    line-height: 1.6;
    padding: 0 1rem;
}

.hero-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    margin-top: 3rem;
}

/* ===== SPLIT SECTION ===== */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    position: relative;
}

.split-section .split-item {
    position: relative;
    overflow: hidden;
    min-height: 50vh;
}

.split-section .split-item img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
    filter: grayscale(25%) contrast(1.05);
    transition: filter 0.6s ease;
}

.split-section .split-item:hover img {
    filter: grayscale(0%) contrast(1.1);
}

.split-section .split-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--black) 0%, transparent 25%, transparent 75%, var(--black) 100%);
    z-index: 2;
    pointer-events: none;
}

/* ===== TEXT SECTION ===== */
.text-section {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14vh 8vw;
    position: relative;
}

.text-section-inner {
    max-width: 800px;
    text-align: center;
}

.text-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 1.8rem;
}

.text-section h2 .italic {
    font-style: italic;
}

.text-section p {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    font-weight: 300;
    line-height: 1.9;
    color: rgba(245, 240, 232, 0.65);
}

.text-section .text-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    display: block;
}

/* ===== FULL BLEED ===== */
.full-bleed {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
}

.full-bleed img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
    filter: grayscale(20%) contrast(1.05);
}

.full-bleed .img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.1) 40%, rgba(10,10,10,0.5) 100%);
    z-index: 2;
    pointer-events: none;
}

.full-bleed .bleed-text {
    position: absolute;
    bottom: 8vh;
    left: 5vw;
    z-index: 10;
    max-width: 600px;
    padding-right: 2rem;
}

.full-bleed .bleed-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 0.8rem;
}

.full-bleed .bleed-text p {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: 300;
    font-style: italic;
    color: rgba(245, 240, 232, 0.85);
    line-height: 1.5;
}

/* ===== GALLERY GRID 2 ===== */
.gallery-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.gallery-grid-2 .grid-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    min-height: 400px;
}

.gallery-grid-2 .grid-item img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
    filter: grayscale(20%) contrast(1.05);
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.gallery-grid-2 .grid-item:hover img {
    transform: scale(1.06);
    filter: grayscale(0%) contrast(1.1);
}

/* ===== GALLERY GRID 3 ===== */
.gallery-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
}

.gallery-grid-3 .grid-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    min-height: 350px;
}

.gallery-grid-3 .grid-item img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
    filter: grayscale(20%) contrast(1.05);
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.gallery-grid-3 .grid-item:hover img {
    transform: scale(1.06);
    filter: grayscale(0%) contrast(1.1);
}

/* Image caption */
.grid-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 1.5rem 1.5rem;
    z-index: 5;
    background: linear-gradient(to top, rgba(10,10,10,0.75) 0%, transparent 100%);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.5s ease;
}

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

.grid-caption span {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

/* ===== QUOTE SECTION ===== */
.quote-section {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14vh 8vw;
    position: relative;
    text-align: center;
}

.quote-section::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 12rem;
    opacity: 0.06;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    line-height: 1;
    pointer-events: none;
}

.quote-section blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.4;
    color: var(--white);
    max-width: 800px;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.quote-section cite {
    display: block;
    margin-top: 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-style: normal;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 10vh 5vw 4vh;
    border-top: 1px solid rgba(245, 240, 232, 0.06);
    position: relative;
    background: var(--black);
}

.site-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
}

.footer-brand h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(245, 240, 232, 0.5);
    max-width: 280px;
}

.footer-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.footer-col a, .footer-col p {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(245, 240, 232, 0.5);
    text-decoration: none;
    margin-bottom: 0.9rem;
    transition: color 0.3s;
}

.footer-col a:hover { color: var(--white); }

.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.2rem;
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    margin-top: 1rem;
    transition: all 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.footer-cta:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 5rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(245, 240, 232, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    color: rgba(245, 240, 232, 0.3);
    letter-spacing: 0.1em;
}

.footer-social {
    display: flex;
    gap: 2rem;
}

.footer-social a {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.4);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-social a:hover { color: var(--gold); }

/* ===== SCROLL ANIMATIONS ===== */
[data-animate] {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate="fade"] {
    opacity: 0;
    transform: none;
}

[data-animate="scale"] {
    opacity: 0;
    transform: scale(0.92);
}

[data-animate].in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }
[data-animate-delay="5"] { transition-delay: 0.5s; }

/* Parallax images */
[data-parallax] {
    will-change: transform;
}

/* Accent glows */
.accent-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.accent-glow.top-right {
    top: -20vw;
    right: -20vw;
}

.accent-glow.bottom-left {
    bottom: -20vw;
    left: -20vw;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(245, 240, 232, 0.2);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 99;
    text-decoration: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .site-header {
        padding: 1.2rem 2rem;
    }

    .site-header.scrolled {
        padding: 0.8rem 2rem;
    }

    .site-header nav {
        display: none;
    }

    .site-header .menu-btn {
        display: flex;
    }

    .split-section {
        grid-template-columns: 1fr;
    }

    .split-section .split-item {
        min-height: 60vh;
    }

    .gallery-grid-2 {
        grid-template-columns: 1fr;
    }

    .gallery-grid-2 .grid-item {
        aspect-ratio: 16/10;
        min-height: 350px;
    }

    .gallery-grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid-3 .grid-item {
        aspect-ratio: 1/1;
        min-height: 300px;
    }

    .gallery-grid-3 .grid-item:nth-child(3) {
        grid-column: 1 / -1;
        aspect-ratio: 21/9;
    }

    .site-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .text-section {
        padding: 10vh 6vw;
    }

    .hero-section {
        padding: 16vh 5vw 8vh;
    }

    .full-bleed {
        min-height: 60vh;
    }

    .full-bleed .bleed-text {
        bottom: 5vh;
        left: 5vw;
        right: 5vw;
    }

    .quote-section {
        padding: 10vh 6vw;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 1rem 1.5rem;
    }

    .site-header.scrolled {
        padding: 0.8rem 1.5rem;
    }

    .hero-section {
        padding: 18vh 1.5rem 8vh;
        min-height: 90vh;
    }

    .hero-title {
        font-size: clamp(2.8rem, 14vw, 4.5rem);
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-top: 1.5rem;
    }

    .hero-line {
        height: 60px;
        margin-top: 2rem;
    }

    .split-section .split-item {
        min-height: 45vh;
    }

    .gallery-grid-3 {
        grid-template-columns: 1fr;
    }

    .gallery-grid-3 .grid-item {
        aspect-ratio: 4/5;
        min-height: auto;
    }

    .gallery-grid-3 .grid-item:nth-child(3) {
        grid-column: auto;
        aspect-ratio: 4/5;
    }

    .gallery-grid-2 .grid-item {
        aspect-ratio: 4/5;
        min-height: auto;
    }

    .text-section {
        padding: 8vh 1.5rem;
    }

    .text-section h2 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 1.2rem;
    }

    .text-section p {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .full-bleed {
        height: 70vh;
        min-height: 400px;
    }

    .full-bleed .bleed-text {
        bottom: 3vh;
        left: 1.5rem;
        right: 1.5rem;
        padding-right: 0;
    }

    .full-bleed .bleed-text h3 {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

    .full-bleed .bleed-text p {
        font-size: 1rem;
    }

    .quote-section {
        padding: 8vh 1.5rem;
    }

    .quote-section blockquote {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
    }

    .quote-section::before {
        font-size: 8rem;
    }

    .site-footer {
        padding: 8vh 1.5rem 4vh;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.2rem;
        text-align: center;
        margin-top: 3rem;
    }

    .grid-caption {
        opacity: 1;
        transform: translateY(0);
        padding: 2rem 1rem 1rem;
    }

    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .text-section h2 {
        font-size: 1.6rem;
    }

    .full-bleed {
        height: 60vh;
        min-height: 350px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}
