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

.hero-video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white-text);
    padding: 0 20px;
}

.hero-title {
    font-family: "Fraunces", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: italic;
    font-variation-settings: "SOFT" 0, "WONK" 1;
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.arrow {
    width: 1px; height: 50px;
    background: linear-gradient(to bottom, var(--white-text), transparent);
    animation: scroll-line 2s infinite;
}

@keyframes scroll-line {
    0%    { transform: scaleY(0); transform-origin: top; }
    50%   { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100%  { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Desktop: Scrollytelling ── */
.scroll-section {
    position: relative;
    z-index: 10;
    height: 200vh;
    background-color: #fdfdfb;
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-visual {
    position: absolute;
    width: 100%; height: 100%;
}

.product-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.product-image {
    position: absolute;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    will-change: opacity;
    object-fit: cover;
    z-index: 1;
}

.product-image.active { opacity: 1; }

.text-overlay {
    position: absolute;
    max-width: 800px;
    width: 90%;
    text-align: center;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 3;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.text-overlay.active {
    opacity: 1;
    transform: translateY(0);
}

.text-overlay p {
    font-family: "Cormorant Garamond", serif;
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.1;
    padding: 0 20px;
}

.text-overlay.left  { left: 7%; text-align: left; }
.text-overlay.right { right: 7%; text-align: right; }


/* ── Mobile: Stacked Story Panels (hidden on desktop) ── */
.mobile-story-section { display: none; }

.mobile-story-panel {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

.mobile-story-panel img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.mobile-story-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.mobile-story-text {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.mobile-story-text p {
    font-family: "Cormorant Garamond", serif;
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.2;
}


/* ── Desktop: Horizontal Sustainability Cards ── */
.footprint-section {
    position: relative;
    padding: 0;
    line-height: 0;
    background: #fafafa;
}

.nav-buttons {
    position: absolute;
    top: 20px; right: 20px;
    display: flex;
    gap: 8px;
    z-index: 100;
}

.nav-btn {
    width: 50px; height: 50px;
    background: #9ea894;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #fff;
    line-height: 1;
    padding: 0;
}

.nav-btn:hover { opacity: 0.7; }

.prev-btn { left: unset; }
.next-btn { right: unset; }

.scroller-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0;
    scroll-behavior: auto;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
    will-change: scroll-position;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scroller-container::-webkit-scrollbar { display: none; }
.scroller-container:active { cursor: grabbing; }

.title-card {
    flex: 0 0 400px;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.title-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    z-index: 1;
}

.title-card .card-image {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}

.title-card h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 2;
    text-align: left;
    color: rgba(255, 255, 255, 1);
}

.footprint-card {
    flex: 0 0 450px;
    height: 500px;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.card-image-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image {
    width: 100%; height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    z-index: 1;
}

.card-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 3rem;
    z-index: 2;
    color: white;
}

.card-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card-description {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}


/* ── Mobile: Stacked Sustainability Cards (hidden on desktop) ── */
.mobile-footprint-section { display: none; }

.mobile-footprint-card {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden;
}

.mobile-footprint-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.mobile-footprint-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    z-index: 1;
}

.mobile-footprint-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 2;
    padding: 2rem 1.5rem 3rem;
}

.mobile-footprint-content h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.mobile-footprint-content p {
    font-family: "Source Sans 3", sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}

@media (max-width: 768px) {

    .hero-video-container { height: 60vh; }
    .hero-video { width: 100%; height: 100%; object-fit: cover; }

    .scroll-section           { display: none; }
    .mobile-story-section     { display: block; }

    .footprint-section        { display: none; }
    .mobile-footprint-section { display: block; }
}