/* ============================================================
 * Island Intelligence — Sticky Centered Scroll-Pinned Showroom
 * 520vh Scroll Runway · 100vh Sticky Obsidian-Glass Theater Stage
 * ============================================================ */

html,
body {
    scroll-behavior: auto;
    overflow-x: clip !important;
}

.showroom {
    position: relative;
    padding-top: clamp(18px, 2vw, 28px) !important;
    padding-bottom: clamp(48px, 5vw, 84px) !important;
    scroll-margin-top: 76px !important;
}

.showroom .section-rail {
    margin-bottom: 8px;
}

/* ============ Section Intro Header ============ */

.showroom-intro-container {
    margin-bottom: clamp(10px, 1.4vw, 18px);
}

.showroom-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-bottom: 0;
}

.showroom-intro-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    max-width: 640px;
}

.showroom-intro-title {
    margin: 0;
    font-size: clamp(1.65rem, 2.6vw, 2.35rem);
    letter-spacing: -0.03em;
    line-height: 1.04;
}

.showroom-intro-lede {
    margin: 0;
    max-width: 46ch;
    color: var(--ink-mid);
    font-size: clamp(0.88rem, 0.96vw, 0.96rem);
    line-height: 1.45;
}

/* ============ 520vh Tall Scroll Runway + 100vh Sticky Stage ============ */

.showroom-runway {
    position: relative;
    width: 100%;
    height: 520vh;
}

.showroom-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 42px;
    box-sizing: border-box;
    overflow: hidden;
}

/* ============ Centered Dark Obsidian-Glass Stage Box ============ */

.showroom-stage-box {
    --sr-rgb: 212, 168, 83;
    --sr-sec-rgb: 120, 62, 28;
    --sr-hex: #d4a853;

    position: relative;
    width: min(1320px, 94vw);
    height: min(760px, 84vh);
    max-height: calc(100vh - 86px);
    border-radius: 32px;
    padding: clamp(26px, 3vw, 42px) clamp(28px, 3.5vw, 48px);
    background:
        radial-gradient(74% 68% at 72% 52%, rgba(var(--sr-rgb), 0.22) 0%, rgba(var(--sr-rgb), 0.05) 48%, transparent 72%),
        radial-gradient(58% 58% at 18% 20%, rgba(var(--sr-rgb), 0.14) 0%, transparent 64%),
        radial-gradient(82% 74% at 54% 96%, rgba(var(--sr-sec-rgb), 0.52) 0%, transparent 72%),
        linear-gradient(155deg, #0b1618 0%, #070f11 52%, #081214 100%);
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow:
        0 48px 120px -34px rgba(4, 16, 15, 0.68),
        0 18px 44px -18px rgba(4, 16, 15, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    color: #fbf7ee;
    overflow: hidden;
    box-sizing: border-box;
}

.showroom-ambient-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(
            56% 54% at 68% 52%,
            rgba(var(--sr-rgb), 0.2) 0%,
            rgba(var(--sr-sec-rgb), 0.12) 46%,
            transparent 74%
        );
}

/* ============ Stage Grid (0.85fr Editorial · 1.45fr Visual) ============ */

.showroom-stage-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.85fr 1.45fr;
    gap: clamp(24px, 3vw, 44px);
    align-items: center;
    width: 100%;
    height: 100%;
}

/* ============ Left Editorial Column ============ */

.showroom-editorial-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-width: 0;
    gap: 16px;
}

.showroom-editorial-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.showroom-step-indicator {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: rgba(251, 247, 238, 0.52);
}

.showroom-step-current {
    font-size: 0.96rem;
    font-weight: 700;
    color: rgb(var(--sr-rgb));
}

.showroom-scroll-cue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: rgba(251, 247, 238, 0.56);
}

.showroom-scroll-cue-arrow {
    display: inline-block;
    color: rgb(var(--sr-rgb));
    animation: showroomCueBob 2.2s ease-in-out infinite;
}

@keyframes showroomCueBob {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, 3px, 0); }
}

.showroom-editorial-main {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(16px, 2vw, 28px);
    align-items: center;
    flex: 1;
    min-height: 0;
}

/* ============ Far-Left Vertical Apple-Style Progress Rail ============ */

.showroom-rail-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    justify-content: center;
    padding: 6px 0;
}

.showroom-rail-btn {
    appearance: none;
    background: none;
    border: 0;
    padding: 4px 6px 4px 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    color: rgba(251, 247, 238, 0.42);
    text-align: left;
    transition: color 220ms ease, transform 220ms ease;
}

.showroom-rail-btn:hover {
    color: rgba(251, 247, 238, 0.88);
}

.showroom-rail-btn.is-active {
    color: #ffffff;
}

.showroom-rail-num {
    font-family: var(--f-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    min-width: 18px;
    color: inherit;
}

.showroom-rail-btn.is-active .showroom-rail-num {
    color: rgb(var(--sr-rgb));
}

.showroom-rail-track {
    position: relative;
    width: 4px;
    height: 30px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
    transition: height 280ms var(--ease-out), background 240ms ease;
}

.showroom-rail-btn.is-active .showroom-rail-track {
    height: 46px;
    background: rgba(255, 255, 255, 0.2);
}

.showroom-rail-fill {
    position: absolute;
    inset: 0 0 auto 0;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: rgb(var(--sr-rgb));
    box-shadow: 0 0 10px rgba(var(--sr-rgb), 0.8);
    transform-origin: 50% 0%;
    transform: scaleY(0);
}

.showroom-rail-name {
    display: none;
}

/* ============ Crossfading / Sliding Customer Story Stack ============ */

.showroom-story-stack {
    position: relative;
    display: grid;
    align-items: center;
    min-width: 0;
    width: 100%;
}

.showroom-story-slide {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(12px, 1.5vw, 18px);
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 24px, 0);
    filter: blur(6px);
    will-change: opacity, transform, filter;
}

.showroom-story-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    filter: blur(0px);
    z-index: 3;
}

.showroom-kicker-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(var(--sr-rgb), 0.42);
    color: rgb(var(--sr-rgb));
    font-family: var(--f-sans);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.25;
}

.showroom-kicker-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgb(var(--sr-rgb));
    box-shadow: 0 0 10px rgb(var(--sr-rgb));
    flex-shrink: 0;
}

.showroom-story-title {
    margin: 0;
    font-family: var(--f-display);
    font-size: clamp(2.2rem, 3.8vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.02;
    color: #ffffff;
}

.showroom-story-desc {
    margin: 0;
    max-width: 44ch;
    font-size: clamp(0.92rem, 1.02vw, 1.02rem);
    line-height: 1.54;
    color: rgba(251, 247, 238, 0.78);
}

.showroom-capability-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.showroom-cap-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: rgba(251, 247, 238, 0.9);
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.showroom-story-actions {
    margin-top: 6px;
}

.showroom-cta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    background: rgb(var(--sr-rgb));
    color: #071012;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 14px 32px -10px rgba(var(--sr-rgb), 0.65);
    transition:
        transform 220ms var(--ease-out),
        filter 220ms ease,
        box-shadow 220ms ease;
}

.showroom-cta-pill:hover {
    transform: translate3d(0, -1.5px, 0);
    filter: brightness(1.07);
    box-shadow: 0 18px 36px -10px rgba(var(--sr-rgb), 0.82);
}

.showroom-cta-arrow {
    font-size: 0.88rem;
    transition: transform 220ms var(--ease-out);
}

.showroom-cta-pill:hover .showroom-cta-arrow {
    transform: translate3d(2px, -2px, 0);
}

/* ============ Bottom Quick-Jump Customer Strip ============ */

.showroom-editorial-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.showroom-JumpChip {
    appearance: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(251, 247, 238, 0.54);
    font-family: var(--f-sans);
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.15;
    cursor: pointer;
    transition:
        background 200ms ease,
        border-color 200ms ease,
        color 200ms ease;
}

.showroom-JumpChip:hover {
    background: rgba(255, 255, 255, 0.09);
    color: rgba(251, 247, 238, 0.92);
}

.showroom-JumpChip.is-active {
    background: rgba(var(--sr-rgb), 0.15);
    border-color: rgba(var(--sr-rgb), 0.45);
    color: #ffffff;
}

.showroom-JumpChip-num {
    font-family: var(--f-mono);
    font-size: 0.64rem;
    font-weight: 600;
    color: rgba(251, 247, 238, 0.4);
}

.showroom-JumpChip.is-active .showroom-JumpChip-num {
    color: rgb(var(--sr-rgb));
}

/* ============ Right Visual Stage (1.45fr · Frameless 16:10 Cinema + iPhone Pro) ============ */

.showroom-visual-col {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 6px 20px 16px 0;
    box-sizing: border-box;
}

.showroom-cinema-rig {
    --sheen-x: 30%;
    --sheen-y: 18%;

    position: relative;
    width: 100%;
    max-width: 830px;
    margin: 0 auto;
    transform: perspective(1800px) rotateX(2deg) rotateY(-2deg) scale(1);
    transform-style: preserve-3d;
    will-change: transform;
}

.showroom-cinema-backlight {
    position: absolute;
    inset: -8% -6%;
    z-index: 0;
    border-radius: 44px;
    background: radial-gradient(
        58% 58% at 50% 52%,
        rgba(var(--sr-rgb), 0.36) 0%,
        rgba(var(--sr-sec-rgb), 0.18) 44%,
        transparent 74%
    );
    pointer-events: none;
}

.showroom-cinema-display {
    position: relative;
    z-index: 2;
    width: 100%;
    border-radius: 22px;
    background: #070d0e;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 44px 100px -28px rgba(0, 0, 0, 0.86),
        0 0 0 1px rgba(var(--sr-rgb), 0.2),
        0 20px 60px -24px rgba(var(--sr-rgb), 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    overflow: hidden;
}

.showroom-cinema-sheen {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background:
        radial-gradient(
            560px circle at var(--sheen-x, 30%) var(--sheen-y, 18%),
            rgba(255, 255, 255, 0.13),
            rgba(255, 255, 255, 0.03) 42%,
            transparent 70%
        ),
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.08) 0%,
            transparent 36%
        );
}

.showroom-cinema-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #080f10;
    overflow: hidden;
}

.showroom-device-slide {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.96) translate3d(0, 16px, 0);
    filter: blur(6px);
    will-change: opacity, transform, filter;
}

.showroom-device-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translate3d(0, 0, 0);
    filter: blur(0px);
    z-index: 3;
}

.showroom-device-slide img {
    width: 100%;
    height: auto;
    display: block;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
}

/* ============ Overlapping Frameless Floating iPhone Pro ============ */

.showroom-iphone-frame {
    position: absolute;
    right: -18px;
    bottom: -18px;
    z-index: 6;
    width: clamp(134px, 21%, 184px);
    padding: 6px;
    border-radius: 30px;
    background: linear-gradient(155deg, #273033 0%, #0d1214 55%, #1c2426 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        -24px 32px 68px -14px rgba(0, 0, 0, 0.88),
        0 0 0 1px rgba(var(--sr-rgb), 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
    transform: translate3d(0, 0, 0);
    will-change: transform;
    pointer-events: none;
}

.showroom-iphone-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 19.2;
    border-radius: 24px;
    background: #080d0e;
    overflow: hidden;
}

.showroom-mobile-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.96) translate3d(0, 12px, 0);
    filter: blur(5px);
    will-change: opacity, transform, filter;
}

.showroom-mobile-slide.is-active {
    opacity: 1;
    transform: scale(1) translate3d(0, 0, 0);
    filter: blur(0px);
    z-index: 3;
}

.showroom-mobile-slide img {
    width: 100%;
    height: auto;
    display: block;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
}

/* ============ Responsive Breakpoints & Reduced Motion ============ */

@media (max-width: 1080px) {
    .showroom-stage-box {
        height: min(860px, 90vh);
        padding: 24px;
        border-radius: 28px;
    }

    .showroom-stage-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        gap: 18px;
    }

    .showroom-editorial-col {
        gap: 10px;
    }

    .showroom-editorial-main {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .showroom-rail-nav {
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        padding: 0;
    }

    .showroom-rail-track {
        width: 34px;
        height: 4px;
    }

    .showroom-rail-btn.is-active .showroom-rail-track {
        width: 52px;
        height: 4px;
    }

    .showroom-rail-fill {
        transform-origin: 0% 50%;
    }

    .showroom-story-title {
        font-size: clamp(1.85rem, 3.4vw, 2.5rem);
    }

    .showroom-story-desc {
        max-width: 64ch;
        font-size: 0.9rem;
    }

    .showroom-visual-col {
        padding: 0 14px 12px 0;
    }

    .showroom-cinema-rig {
        max-width: 680px;
    }
}

@media (max-width: 720px) {
    .showroom-sticky {
        padding-top: 32px;
    }

    .showroom-stage-box {
        width: 94vw;
        height: min(780px, 88vh);
        padding: 18px 16px 22px;
        border-radius: 24px;
    }

    .showroom-story-slide {
        gap: 8px;
    }

    .showroom-story-title {
        font-size: clamp(1.55rem, 6vw, 2rem);
    }

    .showroom-story-desc {
        font-size: 0.84rem;
        line-height: 1.42;
    }

    .showroom-cap-pill {
        padding: 4px 10px;
        font-size: 0.7rem;
    }

    .showroom-cta-pill {
        padding: 8px 16px;
        font-size: 0.78rem;
    }

    .showroom-cinema-rig {
        transform: none !important;
    }

    .showroom-cinema-display {
        border-radius: 16px;
    }

    .showroom-iphone-frame {
        width: 102px;
        right: -6px;
        bottom: -10px;
        border-radius: 20px;
        padding: 4px;
        transform: none !important;
    }

    .showroom-iphone-viewport {
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .showroom-scroll-cue-arrow {
        animation: none;
    }

    .showroom-story-slide,
    .showroom-device-slide,
    .showroom-mobile-slide {
        filter: none !important;
    }

    .showroom-cinema-rig {
        transform: none !important;
    }
}
