/* ==========================================================================
   HIMAÈ - Premium Himalayan Beverage Brand
   Story-Driven Editorial Website Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
    /* Colors */
    --color-white: #f8f6f3;
    --color-cream: #ece8e2;
    --color-obsidian: #0a0a0a;
    --color-charcoal: #1a1a1a;
    --color-charcoal-light: #2a2a2a;
    --color-muted: #6b6868;
    --color-garnet: #8b2942;
    --color-garnet-deep: #6b1f32;
    --color-gold: #c9a962;

    /* Typography */
    --font-headline: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-2xl: 12rem;

    /* Transitions */
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-medium: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s cubic-bezier(0.16, 1, 0.3, 1);

    /* Z-index scale */
    --z-base: 1;
    --z-parallax-back: 10;
    --z-parallax-mist: 15;
    --z-parallax-mid: 20;
    --z-parallax-front: 30;
    --z-cursor: 90;
    --z-nav: 100;
    --z-preloader: 1000;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-obsidian);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

body.loading {
    overflow: hidden;
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

a:hover {
    opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Custom Cursor (Desktop Only)
   -------------------------------------------------------------------------- */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-garnet);
    border-radius: 50%;
    pointer-events: none;
    z-index: var(--z-cursor);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    mix-blend-mode: difference;
}

.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--color-garnet);
    border-radius: 50%;
    pointer-events: none;
    z-index: var(--z-cursor);
    transform: translate(-50%, -50%);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.cursor.hovering {
    width: 50px;
    height: 50px;
    border-color: var(--color-gold);
}

@media (max-width: 768px) {

    .cursor,
    .cursor-trail {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headline);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 10vw, 9rem);
    font-weight: 600;
}

h2 {
    font-size: clamp(2rem, 6vw, 5rem);
}

h3 {
    font-size: clamp(1.5rem, 4vw, 3rem);
}

p {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    max-width: 45ch;
}

.text-muted {
    color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   Preloader
   -------------------------------------------------------------------------- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: var(--z-preloader);
    background-color: var(--color-obsidian);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader__content {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: preloaderFadeIn 1s ease forwards;
    animation-delay: 0.2s;
}

.preloader__text {
    font-family: var(--font-headline);
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 300;
    font-style: italic;
    color: var(--color-cream);
    letter-spacing: 0.05em;
}

.preloader__logo {
    width: 80px;
    height: auto;
    margin-top: var(--space-md);
    opacity: 0.6;
}

.preloader__loader {
    width: 120px;
    height: 2px;
    background: var(--color-charcoal-light);
    margin-top: var(--space-lg);
    position: relative;
    overflow: hidden;
}

.preloader__loader::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--color-garnet), var(--color-gold));
    animation: preloaderProgress 2s ease forwards;
}

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

@keyframes preloaderProgress {
    to {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    mix-blend-mode: difference;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity var(--transition-medium), transform var(--transition-medium);
}

.nav.visible {
    opacity: 1;
    transform: translateY(0);
}

.nav__logo {
    height: 28px;
    width: auto;
}

.nav__links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.nav__link {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
}

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

.hero__layer {
    position: absolute;
    inset: 0;
    will-change: transform;
}

/* Background layer - Sky */
.hero__layer--back {
    z-index: var(--z-parallax-back);
}

.hero__layer--back img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    object-position: center;
}

/* Mist layer - Animated */
.hero__layer--mist {
    z-index: var(--z-parallax-mist);
    opacity: 0.6;
}

.hero__mist {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: mistFloat 20s ease-in-out infinite alternate;
}

@keyframes mistFloat {
    0% {
        transform: translateX(-5%) scale(1.1);
        opacity: 0.4;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        transform: translateX(5%) scale(1.15);
        opacity: 0.5;
    }
}

/* Middle layer - Text */
.hero__layer--mid {
    z-index: var(--z-parallax-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.hero__content {
    text-align: center;
    position: relative;
    padding: var(--space-lg);
}

.hero__title {
    color: var(--color-white);
    text-shadow:
        0 0 20px rgba(0, 0, 0, 0.9),
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 4px 20px rgba(0, 0, 0, 0.8),
        0 8px 40px rgba(0, 0, 0, 0.7),
        0 12px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease 0.5s, transform 1s ease 0.5s;
}

.hero__title.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero__title-line {
    display: block;
}

/* Desktop title visible, mobile hidden */
.hero__title--desktop {
    display: block;
}

.hero__title--mobile {
    display: none;
}

.hero__subtitle {
    font-family: var(--font-headline);
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-style: italic;
    color: var(--color-cream);
    margin-top: var(--space-md);
    text-shadow:
        0 0 15px rgba(0, 0, 0, 0.9),
        0 2px 10px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease 1.1s, transform 1s ease 1.1s;
}

.hero__subtitle.visible {
    opacity: 0.8;
    transform: translateY(0);
}

/* Snow Particles */
.hero__particles {
    position: absolute;
    inset: 0;
    z-index: var(--z-parallax-mid);
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFall linear infinite;
}

@keyframes particleFall {
    0% {
        transform: translateY(-10vh) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) translateX(100px);
        opacity: 0;
    }
}

/* Foreground layer - Mountains */
.hero__layer--front {
    z-index: var(--z-parallax-front);
    bottom: 0;
    top: auto;
    height: 70%;
}

.hero__layer--front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom center;
}

/* Scroll Indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-parallax-front);
    text-align: center;
    animation: floatUpDown 2s ease-in-out infinite;
}

.hero__scroll-indicator span {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-cream);
    margin-bottom: 0.5rem;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-cream), transparent);
    margin: 0 auto;
}

@keyframes floatUpDown {

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

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

/* --------------------------------------------------------------------------
   Flower Section
   -------------------------------------------------------------------------- */
.flower-section {
    position: relative;
    min-height: 100vh;
    background-color: var(--color-obsidian);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--space-xl) var(--space-lg);
}

.flower-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flower-glow {
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(139, 41, 66, 0.15) 0%, transparent 70%);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.flower-image {
    width: clamp(280px, 40vw, 500px);
    height: auto;
    will-change: transform;
    transition: transform 0.1s linear;
    position: relative;
    z-index: 2;
}

.flower-story {
    text-align: center;
    margin-top: var(--space-xl);
    max-width: 700px;
    padding: 0 var(--space-md);
}

.flower-story__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--color-garnet);
    margin-bottom: var(--space-md);
}

.flower-story__text {
    color: var(--color-muted);
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.9;
    max-width: 60ch;
    margin: 0 auto;
}

/* Marquee Text */
.marquee {
    position: absolute;
    width: 100%;
    overflow: hidden;
}

.marquee--top {
    top: var(--space-lg);
}

.marquee--bottom {
    bottom: var(--space-lg);
}

.marquee__inner {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

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

.marquee__text {
    font-family: var(--font-headline);
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-style: italic;
    color: var(--color-muted);
    white-space: nowrap;
    padding: 0 var(--space-lg);
    opacity: 0.6;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

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

/* --------------------------------------------------------------------------
   Story Image Section (Full-width image + text)
   -------------------------------------------------------------------------- */
.story-image-section {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--color-obsidian);
}

.story-image-section__image {
    position: relative;
    overflow: hidden;
}

.story-image-section__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.story-image-section:hover .story-image-section__image img {
    transform: scale(1.03);
}

.story-image-section__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-xl);
    background-color: var(--color-charcoal);
}

.story-image-section__chapter {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-garnet);
    margin-bottom: var(--space-md);
}

.story-image-section__title {
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--color-cream);
    margin-bottom: var(--space-lg);
    line-height: 1.1;
}

.story-image-section__text {
    color: var(--color-muted);
    font-size: clamp(1.125rem, 1.5vw, 1.375rem);
    line-height: 1.9;
    margin-bottom: var(--space-md);
    max-width: 50ch;
}

.story-image-section__text--secondary {
    font-family: var(--font-headline);
    font-style: italic;
    color: var(--color-cream);
    opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Editorial Portrait Sections
   -------------------------------------------------------------------------- */
.editorial-section {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--color-obsidian);
}

.editorial-section--reverse {
    direction: rtl;
}

.editorial-section--reverse>* {
    direction: ltr;
}

.editorial__image {
    position: relative;
    overflow: hidden;
}

.editorial__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.editorial-section:hover .editorial__image img {
    transform: scale(1.03);
}

.editorial__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-xl);
    background-color: var(--color-charcoal);
}

.editorial__label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-garnet);
    margin-bottom: var(--space-md);
}

.editorial__title {
    margin-bottom: var(--space-lg);
    color: var(--color-cream);
    line-height: 1.15;
}

.editorial__text {
    color: var(--color-muted);
    font-size: clamp(1.125rem, 1.5vw, 1.375rem);
    line-height: 1.9;
    margin-bottom: var(--space-md);
    max-width: 50ch;
}

/* --------------------------------------------------------------------------
   Brand Story Section
   -------------------------------------------------------------------------- */
.story-section {
    background-color: var(--color-charcoal);
    padding: var(--space-2xl) var(--space-lg);
}

.story-container {
    max-width: 900px;
    margin: 0 auto;
}

.story-block {
    margin-bottom: var(--space-2xl);
}

.story-block:last-child {
    margin-bottom: 0;
}

.story-block--center {
    text-align: center;
}

.story__heading {
    color: var(--color-cream);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.story__text {
    color: var(--color-muted);
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    line-height: 1.9;
    margin: 0 auto;
}

.story__text--large {
    font-family: var(--font-headline);
    font-style: italic;
    font-size: clamp(1.375rem, 2.5vw, 2rem);
    color: var(--color-cream);
    opacity: 0.9;
    max-width: 700px;
}

/* Accent Line */
.accent-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, var(--color-garnet), var(--color-gold));
    margin: var(--space-lg) auto;
}

/* --------------------------------------------------------------------------
   Product Section
   -------------------------------------------------------------------------- */
.product-section {
    min-height: 100vh;
    background: linear-gradient(to bottom, var(--color-charcoal), var(--color-obsidian));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-lg);
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    max-width: 1200px;
    align-items: center;
}

.product__image {
    display: flex;
    justify-content: center;
    position: relative;
}

.product__glow {
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background: radial-gradient(circle, rgba(139, 41, 66, 0.25) 0%, transparent 70%);
    filter: blur(40px);
    animation: productGlow 4s ease-in-out infinite alternate;
}

@keyframes productGlow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.product__image img {
    max-height: 70vh;
    width: auto;
    filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.5));
    position: relative;
    z-index: 2;
    transition: transform var(--transition-medium);
}

.product__content {
    padding: var(--space-lg);
}

.product__label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-garnet);
    margin-bottom: var(--space-sm);
}

.product__name {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-cream);
    margin-bottom: var(--space-sm);
}

.product__subtitle {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-muted);
    margin-bottom: var(--space-lg);
}

.product__notes {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.product__note {
    padding: 0.5rem 1rem;
    background: var(--color-charcoal-light);
    border-radius: 100px;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--color-cream);
}

.product__description {
    color: var(--color-muted);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.9;
    margin-bottom: var(--space-md);
    max-width: 45ch;
}

/* --------------------------------------------------------------------------
   Immersive Full-Bleed Image Section
   -------------------------------------------------------------------------- */
.immersive-image {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.immersive-image__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transform: scale(1.05);
    transition: transform 1s ease;
}

.immersive-image:hover .immersive-image__bg {
    transform: scale(1.1);
}

.immersive-image__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(10, 10, 10, 0.3) 0%,
            rgba(10, 10, 10, 0.5) 50%,
            rgba(10, 10, 10, 0.8) 100%);
}

.immersive-image__content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: var(--space-lg);
}

.immersive-image__label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-garnet);
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 1s ease 0.3s forwards;
}

.immersive-image__title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    color: var(--color-white);
    line-height: 1.1;
    text-shadow:
        0 2px 20px rgba(0, 0, 0, 0.8),
        0 4px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideUp 1s ease 0.5s forwards;
}

.immersive-image__subtitle {
    font-family: var(--font-headline);
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--color-cream);
    margin-top: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 1s ease 0.8s forwards;
}

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

/* --------------------------------------------------------------------------
   Bottle Scroll Theater
   -------------------------------------------------------------------------- */
.bottle-theater {
    position: relative;
    height: 600vh;
    /* Extended for smoother experience with 192 frames */
    background: linear-gradient(to bottom,
            var(--color-obsidian) 0%,
            #0a0808 50%,
            var(--color-obsidian) 100%);
}

.bottle-theater__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    transition: background 0.3s ease;
}

.bottle-theater__canvas {
    position: relative;
    z-index: 1;
    max-width: 60vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    transition: transform 0.1s ease-out, opacity 0.2s ease, filter 0.2s ease;
    will-change: transform, opacity, filter;
}

.bottle-theater__loader {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: var(--color-charcoal-light);
    border-radius: 2px;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.bottle-theater__loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.bottle-theater__loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--color-garnet), var(--color-gold));
    transition: width 0.1s linear;
}

.bottle-theater__captions {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.caption {
    position: absolute;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    padding: var(--space-lg);
}

.caption.active {
    opacity: 1;
    transform: translateY(0);
}

.caption__label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-garnet);
    margin-bottom: var(--space-sm);
}

.caption__title {
    font-size: clamp(3rem, 10vw, 8rem);
    color: var(--color-cream);
    font-weight: 300;
    line-height: 1;
}

.caption__verse {
    font-family: var(--font-headline);
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-style: italic;
    color: var(--color-cream);
    line-height: 1.6;
    opacity: 0.9;
}

/* Caption positioning */
.caption--intro {
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    text-align: left;
}

.caption--intro.active {
    transform: translateY(-50%);
}

.caption--verse {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.caption--finale {
    top: 50%;
    right: 10%;
    left: auto;
    transform: translateY(-50%);
    text-align: right;
}

.caption--finale.active {
    transform: translateY(-50%);
}

.bottle-theater__progress {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 30vh;
    background: var(--color-charcoal-light);
    border-radius: 2px;
}

.bottle-theater__progress-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, var(--color-garnet), var(--color-gold));
    border-radius: 2px;
    transition: height 0.1s linear;
}

/* --------------------------------------------------------------------------
   Tasting Notes Section
   -------------------------------------------------------------------------- */
.tasting-notes {
    min-height: 100vh;
    background-color: var(--color-obsidian);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-lg);
}

.tasting-notes__container {
    text-align: center;
    max-width: 900px;
}

.tasting-notes__words {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.tasting-word {
    font-family: var(--font-headline);
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 300;
    color: var(--color-cream);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease, color 0.5s ease;
}

.tasting-word.visible {
    opacity: 1;
    transform: translateY(0);
}

.tasting-word:hover {
    color: var(--color-garnet);
}

.tasting-notes__coda {
    font-family: var(--font-headline);
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-muted);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}

.tasting-notes.visible .tasting-notes__coda {
    opacity: 0.7;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Cinematic Closing Statement
   -------------------------------------------------------------------------- */
.closing-statement {
    min-height: 80vh;
    background-color: var(--color-obsidian);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-lg);
}

.closing-statement__content {
    text-align: center;
    max-width: 800px;
}

.closing-statement__text {
    font-family: var(--font-headline);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--color-cream);
    line-height: 1.3;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.closing-statement.visible .closing-statement__text {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background-color: var(--color-obsidian);
    padding: var(--space-xl) var(--space-lg);
    border-top: 1px solid var(--color-charcoal-light);
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__logo {
    height: 40px;
    width: auto;
    opacity: 0.8;
}

.footer__tagline {
    font-size: 0.875rem;
    color: var(--color-muted);
}

.footer__links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.footer__link {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted);
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--color-cream);
    opacity: 1;
}

.footer__copyright {
    font-size: 0.75rem;
    color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   Scroll Reveal Animations
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .story-image-section {
        grid-template-columns: 1fr;
    }

    .story-image-section__image {
        min-height: 60vh;
    }

    .story-image-section__content {
        padding: var(--space-lg);
    }

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

    .editorial-section--reverse {
        direction: ltr;
    }

    .editorial__image {
        min-height: 60vh;
    }

    .editorial__content {
        padding: var(--space-lg);
    }

    .product-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .product__content {
        order: -1;
    }

    .product__notes {
        justify-content: center;
    }

    .product__description {
        margin-left: auto;
        margin-right: auto;
    }

    .footer__inner {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }

    .footer__brand {
        align-items: center;
    }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 2rem;
        --space-xl: 4rem;
        --space-2xl: 6rem;
    }

    .nav {
        padding: var(--space-sm) var(--space-md);
    }

    .nav__links {
        display: none;
    }

    /* HERO - Static on Mobile, Different Text, More Height */
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
    }

    /* Static layers on mobile - no parallax, no animation on front layer */
    .hero__layer--back,
    .hero__layer--front {
        transform: none !important;
    }

    .hero__layer--mist {
        display: none;
        /* Hide mist on mobile for cleaner look */
    }

    .hero__layer--mid {
        z-index: var(--z-parallax-mid);
        padding: var(--space-lg) var(--space-md);
        padding-bottom: 15vh;
    }

    /* Switch titles: hide desktop, show mobile */
    .hero__title--desktop {
        display: none;
    }

    .hero__title--mobile {
        display: block;
        font-size: clamp(2.5rem, 12vw, 4rem);
        line-height: 1.15;
        text-shadow:
            0 2px 4px rgba(0, 0, 0, 0.9),
            0 4px 15px rgba(0, 0, 0, 0.7),
            0 8px 40px rgba(0, 0, 0, 0.5);
    }

    .hero__subtitle {
        font-size: 1rem;
        margin-top: var(--space-md);
    }

    .hero__layer--front {
        height: 50%;
        bottom: 0;
    }

    .hero__layer--front img {
        object-fit: cover;
        object-position: center bottom;
    }

    .hero__scroll-indicator {
        display: none;
    }

    .flower-image {
        width: 70vw;
        max-width: 300px;
    }

    .flower-story {
        margin-top: var(--space-lg);
    }

    .flower-story__text {
        font-size: 1rem;
    }

    .story-image-section__image {
        min-height: 50vh;
    }

    .editorial__image {
        min-height: 50vh;
    }

    /* Immersive Image - Mobile */
    .immersive-image__title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .immersive-image__subtitle {
        font-size: 1rem;
    }

    /* Bottle Theater - Mobile: Allow cropping, fill the screen */
    .bottle-theater {
        height: 450vh;
    }

    .bottle-theater__sticky {
        align-items: center;
    }

    .bottle-theater__canvas {
        /* Allow the bottle to be large and crop sides - it's centered on black bg */
        max-width: none;
        max-height: none;
        width: 120vw;
        /* Intentionally wider than viewport for immersive effect */
        height: auto;
    }

    /* Move captions above/below the bottle area */
    .bottle-theater__captions {
        flex-direction: column;
        padding: var(--space-xl) var(--space-md);
    }

    .caption--intro,
    .caption--verse,
    .caption--finale {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        text-align: center;
    }

    .caption--intro.active,
    .caption--verse.active,
    .caption--finale.active {
        transform: none;
    }

    .caption__title {
        font-size: clamp(2.5rem, 14vw, 5rem);
    }

    .caption__verse {
        font-size: clamp(1.25rem, 5vw, 2rem);
        padding: 0 var(--space-md);
    }

    .bottle-theater__progress {
        display: none;
    }

    /* Tasting Notes - Mobile */
    .tasting-word {
        font-size: clamp(2rem, 10vw, 4rem);
    }

    .tasting-notes__words {
        gap: var(--space-sm);
    }

    /* Closing Statement - Mobile */
    .closing-statement__text {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }
}

@media (max-width: 480px) {
    .hero__title--mobile {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .hero__layer--front {
        height: 30%;
    }

    .editorial__content,
    .story-image-section__content {
        padding: var(--space-md);
    }

    .closing__text {
        font-size: 1.25rem;
    }
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}