:root {
    /* Color Palette */
    --color-sand: #e6e2dd;
    --color-sand-light: #f4f2ef;
    --color-slate: #7a8288;
    --color-charcoal: #2b2d2f;
    --color-white: #ffffff;
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    /* Transitions */
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    background-color: var(--color-sand-light);
    color: var(--color-charcoal);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Nav Trigger (Cinematic Corner Nav) */
.nav-trigger {
    position: fixed;
    top: 2.5rem;
    right: 3rem;
    z-index: 100;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    cursor: pointer;
    /* Use mix-blend-mode to dynamically adjust color based on background */
    mix-blend-mode: difference;
    transition: transform var(--transition-fast);
}

.nav-trigger:hover {
    transform: translateY(-2px);
}

/* Fallback for open state */
.nav-trigger.open {
    mix-blend-mode: normal;
    color: var(--color-charcoal);
}

/* Overlay Menu */
.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-sand);
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-slow);
}

.overlay-menu.active {
    opacity: 1;
    pointer-events: all;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 3rem;
}

.overlay-content a {
    text-decoration: none;
    font-family: var(--font-serif);
    font-size: clamp(3rem, 5vw, 6rem);
    color: var(--color-charcoal);
    position: relative;
    transition: color var(--transition-fast), font-style var(--transition-fast);
}

.overlay-content a:hover {
    color: var(--color-slate);
    font-style: italic;
}

/* Section 1: Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero_bg_1791059447018.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.25); /* Subtle vignette/darkening */
}

.hero-content {
    z-index: 1;
    text-align: center;
    padding: 0 2rem;
}

.hero-headline {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: clamp(0.2em, 4vw, 0.4em);
    font-size: clamp(0.75rem, 1.5vw, 1.2rem);
    color: var(--color-white);
    font-weight: 400;
    text-indent: clamp(0.2em, 4vw, 0.4em); /* Align correctly with tracking */
    opacity: 0;
    animation: fadeIn 2s ease 1s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Section 2: Horizontal Scroll Section */
.horizontal-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-sand-light);
    position: relative;
}

.section-label {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    color: var(--color-slate);
    margin-left: 5vw;
    margin-bottom: var(--spacing-lg);
}

.scroll-container {
    display: flex;
    gap: clamp(2rem, 4vw, 4rem);
    padding: 0 5vw;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* Hide scrollbar for clean aesthetic */
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: var(--spacing-md);
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-item {
    flex: 0 0 85vw; /* Full width on mobile */
    scroll-snap-align: center;
}

.scroll-item figure {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0;
}

.scroll-item img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    border-radius: 2px;
    filter: brightness(0.95) contrast(1.05);
    transition: filter var(--transition-slow);
}

.scroll-item:hover img {
    filter: brightness(1) contrast(1);
}

.item-details h3 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.item-details p {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.7rem;
    color: var(--color-slate);
}

/* Section 3: Massive Footer */
.massive-footer {
    width: 100%;
    height: 100vh;
    background-color: var(--color-charcoal);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.footer-link {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 12vw, 15rem);
    color: var(--color-sand);
    text-decoration: none;
    transition: color var(--transition-slow);
    line-height: 1;
}

.footer-link:hover {
    color: var(--color-white);
    font-style: italic;
}

/* Responsive Breakpoints */
@media (max-width: 767px) {
    .scroll-container {
        gap: 16px;
    }
    .scroll-item {
        flex: 0 0 85vw;
        scroll-snap-align: start;
    }
}

@media (min-width: 768px) {
    .scroll-item {
        flex: 0 0 55vw;
    }
    
    .scroll-item img {
        height: 70vh;
    }
}

@media (min-width: 1024px) {
    .nav-trigger {
        right: 4rem;
        top: 3rem;
    }
    
    .scroll-item {
        flex: 0 0 45vw;
    }
    
    .scroll-item img {
        height: 80vh;
    }
}

/* Elm St Digital Return Badge */
.elm-st-return-badge {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #111827;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 50px;
  font-family: sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.elm-st-return-badge:hover {
  background-color: #374151;
  transform: translateY(-2px);
}
