/* ========================================
   KOMUSO FLEX — AIRLINE TRADE SHOW
   Apple-inspired scroll-driven design
   ======================================== */

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

:root {
    --gold: #ab8c52;
    --gold-hover: #806430;
    --dark: #0a0a0a;
    --darker: #050505;
    --light: #f7f9fa;
    --text: #212121;
    --text-muted: #646464;
    --text-faint: #999;
    --white-90: rgba(255,255,255,0.9);
    --white-60: rgba(255,255,255,0.6);
    --white-40: rgba(255,255,255,0.4);
    --white-20: rgba(255,255,255,0.2);
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: var(--darker);
    overflow-x: hidden;
}

/* ============ PRELOADER ============ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--darker);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.preloader-inner { text-align: center; }

.preloader-logo {
    height: 32px;
    filter: brightness(0) invert(1);
    opacity: 0.5;
    margin-bottom: 32px;
}

.preloader-bar {
    width: 120px;
    height: 2px;
    background: var(--white-20);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.preloader-fill {
    width: 0%;
    height: 100%;
    background: var(--gold);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* ============ NAV ============ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 28px 48px;
    mix-blend-mode: difference;
}

.nav-logo {
    height: 24px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

/* ============ SECTIONS ============ */
.section {
    position: relative;
    overflow: hidden;
}

.section-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 160px 48px;
    text-align: center;
}

.section-label {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 300;
    color: var(--gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 80px;
}

/* ============ HERO ============ */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-wrap {
    position: absolute;
    inset: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.6) 0%,
        rgba(0,0,0,0.3) 40%,
        rgba(0,0,0,0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-eyebrow {
    font-size: clamp(0.75rem, 1.2vw, 0.95rem);
    font-weight: 400;
    color: var(--gold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 40px;
    opacity: 0;
}

.hero-stat-wrap { margin-bottom: 32px; }

.hero-number-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    line-height: 1;
}

.hero-number {
    font-size: clamp(8rem, 18vw, 16rem);
    font-weight: 800;
    color: #fff;
    opacity: 0;
}

.hero-percent {
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 200;
    color: var(--gold);
    margin-left: 4px;
    opacity: 0;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    color: var(--white-60);
    margin-top: 8px;
    opacity: 0;
}

.hero-question {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 500;
    color: #fff;
    opacity: 0;
}

/* Scroll cue */
.scroll-cue {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
}

.scroll-cue span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white-40);
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--white-40), transparent);
    animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
    0% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.3; }
    100% { transform: scaleY(1); opacity: 1; }
}

/* ============ STATS PINNED ============ */
.stats-pinned {
    overflow: visible;
    background: var(--dark);
}

.stats-pin-container {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.stat-slide {
    position: absolute;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.stat-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.stat-progress {
    position: absolute;
    bottom: 48px;
    display: flex;
    gap: 12px;
}

.stat-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--white-20);
    transition: background 0.4s ease, transform 0.4s ease;
}

.stat-progress-dot.active {
    background: var(--gold);
    transform: scale(1.3);
}

.stat-big-number {
    font-size: clamp(6rem, 14vw, 12rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.stat-big-symbol {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 200;
    color: var(--gold);
}

.stat-big-desc {
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 300;
    color: var(--white-60);
    margin-top: 16px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.stat-big-desc strong { color: #fff; font-weight: 500; }

.stat-big-source {
    display: block;
    font-size: 0.7rem;
    color: var(--white-20);
    margin-top: 16px;
    font-style: italic;
    letter-spacing: 0.05em;
}

/* Progress dots removed — slides are now standalone snap sections */

/* ============ THE MOMENT ============ */
.moment-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.moment-bg-wrap {
    position: absolute;
    inset: 0;
}

.moment-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.moment-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0,0,0,0.35) 0%,
        rgba(0,0,0,0.15) 50%,
        rgba(0,0,0,0.3) 100%
    );
}

.moment-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.moment-small {
    font-size: clamp(0.75rem, 1.2vw, 0.95rem);
    font-weight: 400;
    color: var(--gold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0;
}

.moment-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 32px;
    opacity: 0;
}

.moment-desc {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: 300;
    color: var(--white-60);
    line-height: 1.7;
    opacity: 0;
}

/* ============ PRODUCT REVEAL ============ */
.product-reveal {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 120px 48px;
}

.product-reveal-inner {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.product-img-hero {
    margin-bottom: 64px;
}

.reveal-img {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    transform: scale(0.85);
    opacity: 0;
}

.reveal-eyebrow {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: 0;
}

.reveal-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.05;
    margin-bottom: 20px;
    opacity: 0;
}

.reveal-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.6;
    opacity: 0;
}

/* ============ VIDEO SECTION ============ */
.video-section {
    background: var(--light);
    padding: 0;
}

.video-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 48px;
}

.product-video {
    width: 100%;
    border-radius: 20px;
    display: block;
    box-shadow: 0 8px 60px rgba(0,0,0,0.12);
}

/* ============ HOW IT WORKS ============ */
.how-section {
    background: #fff;
    min-height: 80vh;
}

.how-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
}

.how-image-side {
    overflow: hidden;
}

.how-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.how-text-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 72px;
}

.how-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 48px;
}

.how-steps { display: flex; flex-direction: column; gap: 36px; }

.how-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.how-step-num {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.1em;
    flex-shrink: 0;
    margin-top: 4px;
}

.how-step-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
}

.how-step-desc {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-muted);
}

/* ============ SCIENCE ============ */
.science-section { background: #f7f9fa; }
.science-section .section-label { color: var(--gold); }

.science-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.science-card {
    padding: 48px 24px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 20px;
    opacity: 0;
    transform: translateY(40px);
    background: var(--light);
}

.science-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--gold);
    display: block;
    margin-bottom: 16px;
}

.science-desc {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.6;
}

.science-desc strong { color: var(--text); font-weight: 500; }

.science-source {
    display: block;
    font-size: 0.7rem;
    color: var(--text-faint);
    margin-top: 16px;
    font-style: italic;
}

/* ============ PRESS ============ */
.press-section {
    background: #fff;
    min-height: auto;
}

.press-section .section-inner { padding: 80px 48px; }

.press-label {
    font-size: 0.75rem;
    color: var(--text-faint);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.press-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 64px;
    flex-wrap: wrap;
}

.press-logos img {
    height: 22px;
    opacity: 0.35;
    filter: grayscale(1);
    transition: opacity 0.3s ease;
}

.press-logos img:hover { opacity: 0.7; }

/* ============ COMPETITORS ============ */
.competitors-section { background: #f3efe6; }
.competitors-section .section-label { color: var(--gold); }

.competitor-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 650px;
    margin: 0 auto 72px;
}

.competitor-item {
    padding: 28px 32px;
    border-left: 2px solid var(--gold);
    text-align: left;
    opacity: 0;
    transform: translateX(-30px);
}

.competitor-airline {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    display: block;
    margin-bottom: 6px;
}

.competitor-item p {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.5;
}

.competitor-cta {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.7;
    opacity: 0;
    transform: translateY(20px);
}

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

/* ============ CO-BRANDED PACKAGING ============ */
.packaging-section {
    background: #fff;
    padding: 0;
}

.packaging-section .section-inner {
    max-width: 100%;
    padding: 160px 64px;
}

.packaging-section .section-label {
    color: var(--text);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: none;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 16px;
}

.packaging-intro {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 72px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.packaging-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 56px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.packaging-card {
    opacity: 0;
    transform: translateY(30px);
}

.packaging-img-wrap {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 6px 40px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.packaging-img-wrap:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 56px rgba(0,0,0,0.15);
}

.packaging-img-wrap img {
    width: 100%;
    display: block;
}

.packaging-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.packaging-detail {
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text-muted);
}

.packaging-note {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-faint);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 32px;
}

/* ============ OPPORTUNITY ============ */
.opportunity-section {
    overflow: visible;
    background: #faf7f2;
}

.opp-pin-container {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opp-slide {
    position: absolute;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.opp-slide.active {
    opacity: 1;
    transform: translateY(0);
}

.opp-progress {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.opp-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    transition: background 0.4s ease, transform 0.4s ease;
}

.opp-progress-dot.active {
    background: var(--gold);
    transform: scale(1.3);
}

.opp-number {
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 800;
    color: var(--text);
    display: block;
    line-height: 1;
}

.opp-desc {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 16px;
}

.opp-detail {
    font-size: 0.85rem;
    color: var(--text-faint);
    display: block;
    margin-top: 8px;
}

/* ============ CABIN ============ */
.cabin-section {
    background: #fff;
    min-height: 80vh;
}

.cabin-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
}

.cabin-image-side {
    overflow: hidden;
}

.cabin-image-side img,
.cabin-image-side video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cabin-text-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 72px;
}

.cabin-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 48px;
    line-height: 1.15;
}

.cabin-features { display: flex; flex-direction: column; gap: 28px; }

.cabin-feature { display: flex; align-items: flex-start; gap: 16px; }

.cabin-icon {
    color: var(--gold);
    font-size: 0.6rem;
    flex-shrink: 0;
    margin-top: 6px;
}

.cabin-feature-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 2px;
}

.cabin-feature-desc {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-muted);
}

/* ============ HORIZONTAL SCROLL GALLERY ============ */
.hscroll-section {
    overflow: visible;
    background: #f5f1eb;
}

.hscroll-pin {
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hscroll-track {
    display: flex;
    gap: 24px;
    padding: 0 48px;
    will-change: transform;
}

.hscroll-card {
    flex: 0 0 auto;
    width: 50vw;
    height: 70vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 32px rgba(0,0,0,0.1);
}

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

/* ============ CTA ============ */
.cta-section {
    background: linear-gradient(160deg, #f0ebe3 0%, #faf7f2 50%, #f0ebe3 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 48px;
    line-height: 1.1;
    opacity: 0;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 72px;
    opacity: 0;
}

.btn {
    padding: 18px 52px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.4s ease;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--gold);
    color: #fff;
    border: 2px solid var(--gold);
}

.btn-primary:hover { background: var(--gold-hover); border-color: var(--gold-hover); transform: translateY(-2px); }

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid rgba(0,0,0,0.15);
}

.btn-secondary:hover { border-color: var(--text); transform: translateY(-2px); }

.cta-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
}

.cta-logo { height: 28px; opacity: 0.6; }
.cta-x { color: var(--text-faint); font-size: 1.2rem; }

/* ============ BACK TO TOP ============ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

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


/* ============ THE STORY — Immersive scroll ============ */
.story-section {
    background: var(--darker);
    padding: 0;
    overflow: hidden;
}

/* --- Panels --- */
.story-panel {
    position: relative;
    overflow: hidden;
}

.story-panel--intro {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--darker);
}

.story-panel--image {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-panel--reveal {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-panel--textonly {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--darker);
}

.story-panel--pinned {
    position: relative;
    height: 200vh;
}

.story-panel--transition {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--darker);
}

/* --- Background images --- */
.story-panel__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.story-panel__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

/* --- Overlays --- */
.story-panel__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.25) 0%,
        rgba(0,0,0,0.15) 40%,
        rgba(0,0,0,0.65) 100%
    );
    pointer-events: none;
}

.story-panel__overlay--heavy {
    background: rgba(0,0,0,0.55);
}

.story-panel__overlay--gradient {
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.6) 70%,
        rgba(0,0,0,0.85) 100%
    );
}

/* --- Content / text --- */
.story-panel__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 48px;
    max-width: 900px;
}

.story-panel__content--bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 80px 48px;
    z-index: 2;
}

.story-panel__content--bottom-right {
    position: absolute;
    bottom: 0;
    right: 0;
    left: auto;
    max-width: 55%;
    padding: 80px 6vw;
    z-index: 2;
    text-align: right;
}

.story-panel__content--bottom-right .story-panel__text {
    text-wrap: balance;
}

.story-panel__eyebrow {
    font-size: clamp(0.75rem, 1.2vw, 0.95rem);
    font-weight: 400;
    color: var(--gold);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 32px;
    opacity: 0;
}

.story-panel__headline {
    font-size: clamp(3.5rem, 9vw, 8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.05;
    opacity: 0;
}

.story-panel__text {
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 300;
    color: #fff;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(40px);
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.story-panel__text--light {
    color: var(--white-60);
    text-shadow: none;
    font-size: clamp(1.2rem, 2.2vw, 1.8rem);
}

.story-panel__question {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(40px);
}

/* --- Clip reveal (panel 2) --- */
.story-panel__bg--clip {
    clip-path: inset(15% 15% 15% 15% round 16px);
    will-change: clip-path;
}

.story-panel--reveal .story-panel__img {
    object-position: center 30%;
}

/* --- Pinned section (panel 6) --- */
.story-pinned__img-wrap {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.story-pinned__text-track {
    position: relative;
    z-index: 3;
    margin-top: -100vh;
    pointer-events: none;
}

.story-pinned__text-slide {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.story-pinned__text-slide .story-panel__text {
    text-align: center;
    max-width: 800px;
}

/* --- Final panel darkens --- */
.story-panel--final .story-panel__overlay {
    transition: background 1s ease;
}

/* === Story panel composition variants === */

/* Shared: all compose variants get the dark bg visible around the image */
.story-panel--compose-right,
.story-panel--compose-left,
.story-panel--compose-center {
    background: var(--darker);
}

/* --- Compose: image RIGHT, text LEFT --- */
.story-panel--compose-right .story-panel__bg,
.story-panel--compose-right .story-panel__overlay {
    left: auto;
    right: 4vw;
    top: 8vh;
    bottom: 8vh;
    width: 52%;
    border-radius: 16px;
    overflow: hidden;
}

.story-panel--compose-right .story-panel__content,
.story-panel--compose-right .story-panel__content--bottom {
    position: absolute;
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    width: 44%;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 2vw 48px 4vw;
    text-align: left;
}

.story-panel--compose-right .story-panel__text {
    text-shadow: none;
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    text-wrap: balance;
}

/* --- Compose: image LEFT, text RIGHT --- */
.story-panel--compose-left .story-panel__bg,
.story-panel--compose-left .story-panel__overlay {
    right: auto;
    left: 4vw;
    top: 8vh;
    bottom: 8vh;
    width: 52%;
    border-radius: 16px;
    overflow: hidden;
}

.story-panel--compose-left .story-panel__content,
.story-panel--compose-left .story-panel__content--bottom {
    position: absolute;
    right: 0;
    left: auto;
    top: 0;
    bottom: 0;
    width: 46%;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 4vw 48px 4vw;
    text-align: left;
}

.story-panel--compose-left .story-panel__text {
    text-shadow: none;
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    text-wrap: balance;
}

/* --- Compose: centered inset card --- */
.story-panel--compose-center .story-panel__bg,
.story-panel--compose-center .story-panel__overlay {
    top: 8vh;
    bottom: 8vh;
    left: 10vw;
    right: 10vw;
    border-radius: 20px;
    overflow: hidden;
}

.story-panel--compose-center .story-panel__content,
.story-panel--compose-center .story-panel__content--bottom {
    position: absolute;
    left: 10vw;
    right: 10vw;
    top: auto;
    bottom: 8vh;
    width: auto;
    max-width: none;
    padding: 48px 5vw;
    text-align: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.story-panel--compose-center .story-panel__text {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    text-wrap: balance;
}

/* Override overlay gradient for compose panels — no dark fade at bottom */
.story-panel--compose-right .story-panel__overlay,
.story-panel--compose-left .story-panel__overlay {
    background: rgba(0,0,0,0.2);
}

.story-panel--compose-right .story-panel__overlay--heavy,
.story-panel--compose-left .story-panel__overlay--heavy {
    background: rgba(0,0,0,0.35);
}

.story-panel--compose-center .story-panel__overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
}


/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .science-grid { grid-template-columns: 1fr; gap: 24px; }
    .how-split, .cabin-split { grid-template-columns: 1fr; }
    .how-image-side, .cabin-image-side { height: 50vh; }
    .how-text-side, .cabin-text-side { padding: 48px 32px; }
    .section-inner { padding: 120px 32px; }
    .packaging-grid { grid-template-columns: 1fr; gap: 40px; max-width: 100%; margin: 0 auto 48px; }

    /* === STATS: stacked cards on mobile === */
    .stats-pin-container {
        position: relative;
        height: auto;
        padding: 80px 24px;
    }
    .stat-slide {
        position: relative !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto;
        min-height: 60vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transform: translateY(30px);
    }
    .stat-progress { display: none; }

    /* === OPPORTUNITY: stacked cards on mobile === */
    .opp-pin-container {
        height: auto;
        padding: 80px 24px;
    }
    .opp-slide {
        position: relative !important;
        opacity: 0 !important;
        transform: translateY(30px) !important;
        min-height: 60vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .opp-slide:first-child {
        opacity: 0 !important;
        transform: translateY(30px) !important;
    }

    /* === GALLERY: vertical stack with scroll-snap carousel === */
    .hscroll-pin {
        height: auto;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 48px 0;
    }

    .hscroll-track {
        padding: 0 24px;
    }

    .hscroll-card {
        width: 80vw;
        height: 50vh;
        flex-shrink: 0;
        scroll-snap-align: center;
        border-radius: 12px;
    }

    .video-container { padding: 48px 24px; }
    .product-video { border-radius: 12px; }
}

@media (max-width: 768px) {
    .nav { padding: 20px 24px; }
    .section-inner { padding: 80px 24px; }
    .how-text-side, .cabin-text-side { padding: 40px 24px; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 280px; text-align: center; }
    .press-logos { gap: 28px; }
    .press-logos img { height: 16px; }
    .hscroll-card { width: 85vw; height: 55vh; }
    .science-grid { gap: 16px; }
    .science-card { padding: 32px 20px; }
    .product-reveal { padding: 80px 24px; }
    .reveal-img { max-width: 100%; border-radius: 12px; }
    .stat-big-number { font-size: clamp(5rem, 20vw, 8rem); }
    .opp-number { font-size: clamp(4rem, 16vw, 7rem); }
    .moment-title { font-size: clamp(2.5rem, 10vw, 4rem); }
    .competitor-item { padding: 20px 20px; }

    .how-step { gap: 14px; }
    .video-container { padding: 32px 16px; }
    .product-video { border-radius: 10px; }
    .packaging-section .section-label { font-size: clamp(1.3rem, 5vw, 1.8rem); }
}

/* iPad landscape — trade show booth display */
@media (min-width: 1024px) and (max-height: 900px) and (orientation: landscape) {
    .stat-slide, .opp-slide {
    height: 100vh; }
    .hscroll-card { width: 45vw; height: 65vh; }
}

@media (max-width: 1024px) {
    /* Reset compose variants to full-bleed on mobile */
    .story-panel--compose-right .story-panel__bg,
    .story-panel--compose-right .story-panel__overlay,
    .story-panel--compose-left .story-panel__bg,
    .story-panel--compose-left .story-panel__overlay,
    .story-panel--compose-center .story-panel__bg,
    .story-panel--compose-center .story-panel__overlay {
        top: 0; right: 0; bottom: 0; left: 0;
        width: auto;
        border-radius: 0;
    }

    .story-panel--compose-right .story-panel__content,
    .story-panel--compose-right .story-panel__content--bottom,
    .story-panel--compose-left .story-panel__content,
    .story-panel--compose-left .story-panel__content--bottom {
        position: relative;
        width: 100%;
        max-width: 900px;
        padding: 48px 32px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .story-panel--compose-center .story-panel__content,
    .story-panel--compose-center .story-panel__content--bottom {
        left: 0; right: 0;
        padding: 48px 32px;
    }

    .story-panel--compose-right .story-panel__text,
    .story-panel--compose-left .story-panel__text {
        text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    }

    .story-block,
    .story-block--right,
    .story-block--left {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .story-block--left .story-img-wrap {
        order: 1;
    }

    .story-block--left .story-text {
        order: 2;
    }

    .story-img-wrap {
        height: 50vh;
    }

    .story-text {
        padding: 40px 32px;
    }

    .story-intro {
        padding: 100px 32px 60px;
    }

    .story-copy-centered {
        padding: 32px 32px 60px;
    }

    .story-transition {
        padding: 80px 32px 100px;
    }
}

@media (max-width: 768px) {
    .story-intro {
        padding: 80px 24px 48px;
    }

    .story-img-wrap {
        height: 40vh;
    }

    .story-text {
        padding: 32px 24px;
    }

    .story-copy-centered {
        padding: 24px 24px 48px;
    }

    .story-transition {
        padding: 60px 24px 80px;
    }
}

/* Story responsive */
@media (max-width: 1024px) {
    .story-panel__content {
        padding: 32px;
    }
    .story-panel__content--bottom {
        padding: 48px 32px;
    }
    .story-panel__text {
        font-size: clamp(1.1rem, 3vw, 1.5rem);
    }
    .story-panel__question {
        font-size: clamp(1.6rem, 6vw, 2.8rem);
    }
    .story-panel--textonly {
        min-height: 40vh;
    }
}

@media (max-width: 768px) {
    .story-panel__content {
        padding: 24px;
    }
    .story-panel__content--bottom {
        padding: 32px 24px;
    }
    .story-panel__headline {
        font-size: clamp(2.5rem, 12vw, 5rem);
    }
    .story-pinned__text-slide {
        padding: 24px;
    }
}

/* Packaging responsive */
@media (max-width: 1024px) {
    .packaging-section .section-inner {
        padding: 120px 32px;
    }
}

@media (max-width: 768px) {
    .packaging-section .section-inner {
        padding: 80px 24px;
    }
    .packaging-grid {
        gap: 32px;
    }
}

/* ============ CONTACT MODAL ============ */
.contact-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    padding: 24px;
}

.contact-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal {
    background: #111;
    border: 1px solid rgba(171, 140, 82, 0.2);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 48px 40px;
    position: relative;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.35s ease;
}

.contact-modal-overlay.active .contact-modal {
    transform: translateY(0) scale(1);
}

.contact-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white-40);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    padding: 4px 8px;
}

.contact-modal-close:hover {
    color: #fff;
}

.contact-modal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.contact-modal-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--white-40);
    margin-bottom: 32px;
}

.contact-form label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--white-60);
    margin-bottom: 6px;
    letter-spacing: 0.03em;
}

.contact-form label .required {
    color: var(--gold);
}

.contact-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.contact-form-group {
    flex: 1;
}

.contact-form-group--full {
    margin-bottom: 24px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--white-20);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form-submit {
    width: 100%;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    padding: 16px;
}

.contact-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-form-status {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.contact-form-status .status-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-form-success .status-icon {
    background: rgba(171, 140, 82, 0.15);
    color: var(--gold);
    border: 2px solid var(--gold);
}

.contact-form-error .status-icon {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 2px solid #dc3545;
}

.contact-form-status h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.contact-form-status p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--white-60);
}

.contact-form-status a {
    color: var(--gold);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .contact-modal {
        padding: 36px 24px;
    }

    .contact-form-row {
        flex-direction: column;
        gap: 16px;
    }
}
