:root {
    --bg-color: #EAEAE6;
    --text-color: #1A1A1A;
    --text-secondary: #555555;

    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;

    --spacing-container: 4vw;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem var(--spacing-container);
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
    background-color: transparent;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link:hover {
    opacity: 0.6;
}



/* Hero Section */
.hero-section {
    min-height: 45vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 11.5rem var(--spacing-container) 5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.main-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.subtitle {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.subtitle strong {
    font-weight: 600;
    color: var(--text-color);
}

/* Gallery Section */
.gallery-section {
    padding: 0 0 calc(115vh - 175px) 0;
    /* Remove horizontal padding so grid can go to edges/cutoff */
    /* Removed overflow-x: hidden to prevent separate vertical scrolling */
    display: flex;
    justify-content: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    margin: 0 auto;
    align-items: center;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    height: 350px;
    width: 100%;
    /* No hover transform or shadow as requested */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: sepia(10%) contrast(90%) grayscale(20%);
    transition: filter 0.3s ease;
}

/* Desktop Grid Implementation */
@media (min-width: 1024px) {
    .gallery-grid {
        width: 170vw;
        grid-template-columns: 1fr 1.3fr 2.2fr 1.3fr 1fr;
        grid-template-rows: auto auto;
        gap: 2.5rem;
        justify-content: center;
        align-content: center;
    }

    .gallery-section {
        padding-bottom: calc(115vh - 300px);
    }

    .item-tall-left {
        grid-column: 1;
        grid-row: 1 / span 2;
        height: 360px;
        align-self: center;
    }

    .item-stack-left-top {
        grid-column: 2;
        grid-row: 1;
        height: 260px;
        align-self: end;
    }

    .item-stack-left-bottom {
        grid-column: 2;
        grid-row: 2;
        height: 260px;
        align-self: start;
    }

    .item-center-large {
        grid-column: 3;
        grid-row: 1 / span 2;
        height: 600px;
        border-radius: 20px;
        transform: translateY(3rem);
        background-color: #000;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        will-change: transform, width, height;
    }

    .item-stack-right-top {
        grid-column: 4;
        grid-row: 1;
        height: 260px;
        align-self: end;
    }

    .item-stack-right-bottom {
        grid-column: 4;
        grid-row: 2;
        height: 260px;
        align-self: start;
    }

    .item-tall-right {
        grid-column: 5;
        grid-row: 1 / span 2;
        height: 360px;
        align-self: center;
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}


@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 3vw, 2.5rem);
    text-align: center;
    width: 90%;
    max-width: 900px;
    z-index: 205;
    opacity: 0;
    pointer-events: none;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    will-change: opacity, transform;
    transform-origin: center bottom;
}

.quote-author {
    display: block;
    margin-top: 1rem;
    text-align: right;
    font-size: 0.8em;
    font-family: inherit;
    font-weight: 300;
    font-style: italic;
}

.polaroid-section {
    background-color: #121212;
    padding: 10rem var(--spacing-container) 10rem;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
}

.polaroid-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    gap: 4rem;
    max-width: 1400px;
    width: 100%;
    position: relative;
    padding: 0 2rem 2rem 2rem;
}

.polaroid-text-content {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
    opacity: 0;
    translate: 0 50px;
    transition: opacity 1s ease, translate 1s cubic-bezier(0.33, 1, 0.68, 1);
}

.polaroid-text-content h2 {
    font-family: var(--font-serif);
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.polaroid-subtitle {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: #cccccc;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

.polaroid-item {
    position: relative;
    z-index: 1;
    opacity: 0;
    translate: 0 100px;
    transition: opacity 1s ease, translate 1s cubic-bezier(0.33, 1, 0.68, 1), transform 0.4s ease;
}

.polaroid-item.visible {
    opacity: 1;
    translate: 0 0;
}

.item-1 {
    transition-delay: 0s, 0s, 0s;
}

.item-2 {
    transition-delay: 0.1s, 0.1s, 0s;
}

.item-3 {
    transition-delay: 0.2s, 0.2s, 0s;
}

.polaroid-text-content.visible {
    opacity: 1;
    translate: 0 0;
}

.item-4 {
    transition-delay: 0.3s, 0.3s, 0s;
}

.item-5 {
    transition-delay: 0.4s, 0.4s, 0s;
}

.item-6 {
    transition-delay: 0.5s, 0.5s, 0s;
}

.polaroid-item:hover {
    z-index: 5;
    transform: scale(1.05) rotate(0deg) !important;
}

.polaroid-item:hover .polaroid-inner img {
    filter: grayscale(0%) contrast(100%);
}

.polaroid-inner {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    transform: translateZ(0);
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.item-1 .polaroid-inner {
    animation-delay: 0s;
}

.item-2 .polaroid-inner {
    animation-delay: -1s;
}

.item-3 .polaroid-inner {
    animation-delay: -2s;
}

.item-4 .polaroid-inner {
    animation-delay: -3s;
}

.item-5 .polaroid-inner {
    animation-delay: -4s;
}

.item-6 .polaroid-inner {
    animation-delay: -5s;
}

.polaroid-inner img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    filter: sepia(10%) contrast(90%) grayscale(100%);
    transition: filter 0.4s ease;
    display: block;
}

.item-1 {
    grid-column: 1;
    grid-row: 1;
    transform: rotate(-6deg);
}

.item-2 {
    grid-column: 2;
    grid-row: 1;
    transform: rotate(3deg) translateY(20px);
}

.item-3 {
    grid-column: 3;
    grid-row: 1;
    transform: rotate(5deg);
}

.item-4 {
    grid-column: 1;
    grid-row: 3;
    transform: rotate(4deg);
}

.item-5 {
    grid-column: 2;
    grid-row: 3;
    transform: rotate(-2deg) translateY(-20px);
}

.item-6 {
    grid-column: 3;
    grid-row: 3;
    transform: rotate(-5deg);
}

@media (max-width: 1024px) {
    .polaroid-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .polaroid-text-content {
        grid-column: 1 / span 2;
        grid-row: 2;
        padding: 3rem 0;
    }

    .item-1 {
        grid-column: auto;
        grid-row: auto;
    }

    .item-2 {
        grid-column: auto;
        grid-row: auto;
    }

    .item-3 {
        grid-column: auto;
        grid-row: auto;
    }

    .item-4 {
        grid-column: auto;
        grid-row: auto;
    }

    .item-5 {
        grid-column: auto;
        grid-row: auto;
    }

    .item-6 {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .polaroid-grid {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }

    .polaroid-text-content {
        order: 2;
    }

    .item-1,
    .item-2,
    .item-3 {
        order: 1;
    }

    .item-4,
    .item-5,
    .item-6 {
        order: 3;
    }

    .polaroid-item {
        width: 80%;
        margin: 0 auto;
        transform: rotate(var(--r, 0deg));
    }

    .item-1 {
        transform: rotate(-3deg);
    }

    .item-2 {
        transform: rotate(2deg);
    }

    .item-3 {
        transform: rotate(-2deg);
    }

    .item-4 {
        transform: rotate(3deg);
    }

    .item-5 {
        transform: rotate(-1deg);
    }

    .item-6 {
        transform: rotate(2deg);
    }
}

.wonderland-section {
    background-color: #121212;
    color: #fff;
    height: 350vh;
    position: relative;
    z-index: 10;
}

.wonderland-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 var(--spacing-container);
}

.wonderland-container {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    height: 100%;
}

.wonderland-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding-right: 2rem;
}

.wonderland-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 1rem;
    color: #fff;
}

.wonderland-description {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: #cccccc;
    max-width: 500px;
}

.wonderland-description strong {
    color: #fff;
    font-weight: 600;
}

.wonderland-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    font-size: 0.75rem;
    color: #555;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.wonderland-logo-text {
    font-family: var(--font-sans);
    color: #777;
    font-weight: 600;
    line-height: 1.1;
}

.wonderland-gallery-scroll-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    height: 120vh;
    align-items: center;
    position: relative;
}

.wonderland-gallery-scroll-container::before,
.wonderland-gallery-scroll-container::after {
    content: '';
    position: absolute;
    left: -10%;
    width: 120%;
    height: 600px;
    z-index: 2;
    pointer-events: none;
}

.wonderland-gallery-scroll-container::before {
    top: 0;
    background: linear-gradient(to bottom, #121212 0%, transparent 100%);
}

.wonderland-gallery-scroll-container::after {
    bottom: 0;
    height: 900px;
    background: linear-gradient(to top, #121212 20%, transparent 100%);
}

.w-col-left,
.w-col-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    will-change: transform;
}

.w-item {
    border-radius: 12px;
    overflow: hidden;
    filter: sepia(20%) grayscale(20%);
    transition: filter 0.3s ease;
    height: 350px;
    flex-shrink: 0;
}

.w-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1024px) {
    .wonderland-section {
        height: auto;
        padding: 4rem 1rem;
    }

    .wonderland-sticky-wrapper {
        position: relative;
        height: auto;
        display: block;
        overflow: visible;
        padding: 0;
    }

    .wonderland-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        height: auto;
    }

    .wonderland-content {
        padding-right: 0;
        align-items: center;
        text-align: center;
    }

    .wonderland-description {
        margin: 0 auto;
    }

    .wonderland-footer {
        justify-content: center;
    }

    .wonderland-gallery-scroll-container {
        grid-template-columns: 1fr 1fr;
        height: auto;
    }

    .w-col-left,
    .w-col-right {
        transform: none !important;
    }
}

.text-carousel-section {
    background-color: #121212;
    padding: 10rem 0;
    padding-bottom: 2rem;
    overflow: hidden;
    position: relative;
}

.text-carousel-section:first-of-type {
    padding-top: 12rem;
    padding-bottom: 0;
}

.text-carousel-section:last-of-type {
    padding-bottom: 6rem;
    padding-top: 0;
    margin-top: -1rem;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: inline-block;
    animation: marquee-scroll 40s linear infinite;
    will-change: transform;
}

.marquee-content.reverse {
    animation-direction: reverse;
}

.marquee-content span {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 4rem);
    color: #fff;
    font-weight: 300;
    margin-right: 2rem;
    display: inline-block;
    line-height: 1;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}