/* ===========================================
   STREAMS HOMEPAGE V2 - FINAL CORRECTED STYLES
   =========================================== */

/* 1. VARIABLES & RESET */
:root {
    --ink: #000000;
    --ink-light: #1a1a1a;
    --paper: #ffffff;
    --paper-muted: #f5f5f7;
    --grey-light: #f5f5f7;
    --grey-border: #d2d2d7;
    --slate: #6e6e73;
    --slate-light: #86868b;
    --slate-dark: #1d1d1f;
    --accent: #0071e3;
    --page-gutter: clamp(20px, 4vw, 72px);
    --top-bar-height: 44px;
    --hero-object-position: center 30%;
}

/* Homepage AI Concierge launcher */
.homepage-ai-concierge-nav-trigger[aria-expanded="true"] {
    opacity: 1;
}

.mobile-nav-link--ask-streams {
    font-weight: 650;
}

.homepage-ai-concierge[hidden] {
    display: none;
}

.homepage-ai-concierge {
    position: fixed;
    inset: 0;
    z-index: 1100;
    pointer-events: none;
    color: #f8fafc;
}

.homepage-ai-concierge-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.homepage-ai-concierge-panel {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    width: min(420px, calc(100vw - 36px));
    max-height: min(720px, calc(100dvh - 84px));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
    pointer-events: auto;
    transform: translateY(18px);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease, width 0.22s ease, max-height 0.22s ease, border-radius 0.22s ease;
}

.homepage-ai-concierge.is-open .homepage-ai-concierge-panel {
    transform: translateY(0);
    opacity: 1;
}

.homepage-ai-concierge.is-expanded {
    pointer-events: auto;
}

.homepage-ai-concierge.is-expanded .homepage-ai-concierge-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.homepage-ai-concierge.is-expanded .homepage-ai-concierge-panel {
    inset: max(58px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
    width: auto;
    max-height: none;
    place-self: stretch;
    border-radius: 28px;
}

.homepage-ai-concierge-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.homepage-ai-concierge.is-expanded .homepage-ai-concierge-header {
    padding: 12px 16px 10px;
}

.homepage-ai-concierge-heading {
    min-width: 0;
}

.homepage-ai-concierge-kicker {
    margin: 0 0 4px;
    color: rgba(153, 246, 228, 0.92);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.homepage-ai-concierge-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 750;
    line-height: 1.18;
    letter-spacing: 0;
}

.homepage-ai-concierge-heading p:last-child {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.35;
}

.homepage-ai-concierge-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.homepage-ai-concierge-control {
    appearance: none;
    min-width: 46px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.homepage-ai-concierge-body {
    min-height: 0;
    display: grid;
    gap: 14px;
    padding: 14px 14px 0;
    overflow: hidden;
}

.homepage-ai-concierge.is-expanded .homepage-ai-concierge-body {
    place-items: center;
    padding: clamp(10px, 1.5vw, 18px);
}

.homepage-ai-concierge-stage {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
}

.homepage-ai-concierge.is-expanded .homepage-ai-concierge-stage {
    width: min(92vw, 1100px);
}

.homepage-ai-concierge-status {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.homepage-ai-concierge-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #14b8a6;
    box-shadow: 0 0 0 5px rgba(20, 184, 166, 0.16);
}

.homepage-ai-concierge-frame-shell {
    position: relative;
    min-height: 360px;
    height: min(56dvh, 520px);
    width: 100%;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background:
        radial-gradient(circle at 50% 15%, rgba(20, 184, 166, 0.10), transparent 36%),
        rgba(0, 0, 0, 0.34);
}

.homepage-ai-concierge.is-expanded .homepage-ai-concierge-frame-shell {
    width: 100%;
    height: calc(100dvh - 220px);
    min-height: min(680px, calc(100dvh - 220px));
    max-height: calc(100dvh - 220px);
    aspect-ratio: auto;
    justify-self: center;
    align-self: center;
}

.homepage-ai-concierge-frame-placeholder {
    display: grid;
    gap: 8px;
    padding: 24px;
    color: rgba(255, 255, 255, 0.86);
    text-align: center;
}

.homepage-ai-concierge-frame-placeholder strong {
    font-size: 17px;
    line-height: 1.2;
}

.homepage-ai-concierge-frame-placeholder span {
    max-width: 240px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 13px;
    line-height: 1.45;
}

.homepage-ai-concierge-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #0f172a;
    pointer-events: auto;
}

.lenis.lenis-smooth .homepage-ai-concierge-frame {
    pointer-events: auto;
}

.homepage-ai-concierge-error {
    min-height: 20px;
    margin: 0;
    padding: 10px 18px 16px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
    line-height: 1.4;
}

.homepage-ai-concierge.is-expanded .homepage-ai-concierge-error {
    padding: 0 18px 10px;
}

html.homepage-ai-concierge-scroll-locked,
html.homepage-ai-concierge-scroll-locked body {
    overflow: hidden;
}

body.homepage-ai-concierge-modal-open {
    touch-action: none;
}

@media (max-width: 833px) {
    .homepage-ai-concierge-nav-trigger {
        display: none;
    }

    .homepage-ai-concierge-panel {
        right: max(10px, env(safe-area-inset-right));
        bottom: max(10px, env(safe-area-inset-bottom));
        left: max(10px, env(safe-area-inset-left));
        width: auto;
        max-height: min(760px, calc(100dvh - 70px));
        border-radius: 22px;
    }

    .homepage-ai-concierge.is-expanded .homepage-ai-concierge-panel {
        inset: 0;
        border-radius: 0;
        border: 0;
    }

    .homepage-ai-concierge.is-expanded .homepage-ai-concierge-body {
        padding: 12px;
    }

    .homepage-ai-concierge-frame-shell,
    .homepage-ai-concierge.is-expanded .homepage-ai-concierge-frame-shell {
        min-height: 360px;
        height: calc(100dvh - 220px);
        max-width: none;
        width: 100%;
        aspect-ratio: auto;
    }

    .homepage-ai-concierge.is-expanded .homepage-ai-concierge-stage {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .homepage-ai-concierge-backdrop,
    .homepage-ai-concierge-panel {
        transition: none;
    }
}

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

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
    overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
    overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

body {
    font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
    background-color: var(--paper);
    color: var(--slate-dark);
    line-height: 1.47059;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, video {
    max-width: 100%;
    display: block;
}

/* 2. ACCESSIBILITY: FOCUS & SKIP LINK */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--ink);
    color: var(--paper);
    padding: 8px 16px;
    z-index: 1003;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

.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;
}

/* 3. LAYOUT HELPERS & GUTTER MANAGEMENT */
.creator-worlds .container,
.stream-viewer-section .container,
.streams-carousel-section .container {
    padding: 0;
    max-width: none;
}

/* 4. BUTTONS & PILLS */
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
    font-family: inherit;
    white-space: nowrap;
}

.btn-pill.primary {
    background-color: var(--paper);
    color: var(--ink);
}

.btn-pill.primary:hover {
    background-color: #f0f0f0;
}

.btn-pill.secondary {
    background-color: transparent;
    color: var(--paper);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-pill.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--paper);
}

.primary-small {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 999px;
    background-color: var(--paper);
    color: var(--ink);
    border: none;
    flex-shrink: 0;
    font-weight: 500;
}

.link-btn {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* 5. TOP BAR */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--top-bar-height);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    border-bottom: 0;
}

.top-nav {
    max-width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--page-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    color: var(--paper);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

.brand--logo {
    width: 44px;
    height: var(--top-bar-height);
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}

.brand-logo {
    display: block;
    width: 24px;
    height: 24px;
}

.brand--lockup {
    width: 112px;
    height: var(--top-bar-height);
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 112px;
    text-decoration: none;
}

.brand-logo-lockup {
    display: block;
    width: auto;
    height: 25px;
}

.brand--mobile {
    display: none;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-grow: 1;
    justify-content: center;
}

.nav-link, .nav-search {
    background: none;
    border: none;
    color: #f5f5f7;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
    font-family: inherit;
}

.nav-link:hover, .nav-search:hover {
    opacity: 1;
}

.account-icon-link {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f5f5f7;
    opacity: 0.86;
    text-decoration: none;
    border-radius: 999px;
    transition: opacity 0.2s, background-color 0.2s;
}

.account-icon-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--paper);
    cursor: pointer;
    padding: 8px;
    align-items: center;
    justify-content: center;
}

.mobile-nav-panel {
    position: fixed;
    top: var(--top-bar-height);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px var(--page-gutter);
    display: none;
    flex-direction: column;
    gap: 12px;
    z-index: 1001;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-panel.open {
    display: flex;
}

.mobile-nav-link {
    color: var(--paper);
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    padding: 12px 0;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
}

.search-overlay {
    position: fixed;
    top: var(--top-bar-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1002;
    padding: 20px var(--page-gutter);
    border-bottom: 1px solid var(--grey-border);
}

.search-container {
    display: flex;
    gap: 12px;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

#creatorSearchInput {
    flex: 1;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid var(--grey-border);
    font-size: 16px;
    font-family: inherit;
    background: var(--paper);
    color: var(--ink);
}

#creatorSearchInput:focus {
    outline: none;
    border-color: var(--accent);
}

.search-close {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 15px;
    cursor: pointer;
    font-family: inherit;
    padding: 8px;
}

.search-results {
    max-width: 600px;
    margin: 16px auto 0;
    list-style: none;
    max-height: 50vh;
    overflow-y: auto;
}

.search-results li {
    min-width: 0;
    padding: 14px 16px;
    border-radius: 12px;
    cursor: pointer;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    transition: background 0.2s;
}

.search-results li.active, .search-results li:hover {
    background: var(--paper-muted);
}

.search-no-results {
    color: var(--slate);
    cursor: default;
}

.search-results li.search-no-results {
    display: block;
}

.result-media {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #e8f3fb;
    color: #43606f;
    font-size: 15px;
    font-weight: 750;
    flex: 0 0 auto;
}

.result-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.result-name {
    min-width: 0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 650;
    line-height: 1.24;
    overflow-wrap: anywhere;
}

.result-role {
    min-width: 0;
    font-size: 14px;
    color: var(--slate);
    line-height: 1.34;
    overflow-wrap: anywhere;
}

@media (max-width: 833px) {
    .brand--lockup {
        display: none;
    }

    .brand--mobile {
        display: inline-flex;
    }

    .nav-center {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
}

/* 6. HERO */
.hero {
    position: relative;
    height: 100svh;
    min-height: 600px;
    width: 100%;
    background-color: var(--ink);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

#heroVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    object-position: var(--hero-object-position);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 var(--page-gutter);
    padding-bottom: clamp(48px, 9vh, 120px);
    padding-left: clamp(28px, 7vw, 110px);
    max-width: 620px;
}

.hero-title {
    color: var(--paper);
    font-size: clamp(36px, 5.5vw, 72px);
    font-weight: 650;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 24px;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.video-control {
    position: absolute;
    top: calc(var(--top-bar-height) + 16px);
    right: var(--page-gutter);
    z-index: 4;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.video-control:hover {
    background: rgba(0,0,0,0.6);
}

/* 7. CREATOR WORLDS */
.creator-worlds {
    position: relative;
    min-height: clamp(820px, 118svh, 1120px);
    background:
        radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 34%),
        radial-gradient(circle at 84% 18%, rgba(193, 241, 255, 0.78), rgba(193, 241, 255, 0) 32%),
        linear-gradient(160deg, #d9f4ff 0%, #bfe9fb 48%, #d8f2ff 100%);
    overflow: hidden;
    isolation: isolate;
    padding: clamp(108px, 14vh, 180px) var(--page-gutter);
}

.section-title {
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 650;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin-bottom: 48px;
    padding: 0 var(--page-gutter);
    max-width: 1000px;
}

.creator-worlds-media-field {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.creator-worlds-media-card {
    --cw-start-x: -42vw;
    --cw-mid-x: 34vw;
    --cw-end-x: 112vw;
    --cw-y-drift: 8px;
    --cw-drift-duration: 44s;
    --cw-drift-delay: -8s;
    --cw-depth: 1;
    position: absolute;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.42);
    box-shadow: 0 24px 60px rgba(26, 74, 105, 0.18);
    pointer-events: auto;
    animation: creatorWorldDrift var(--cw-drift-duration) linear var(--cw-drift-delay) infinite;
    will-change: transform;
}

.creator-worlds-media-card img,
.creator-worlds-media-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.84;
    filter: saturate(0.94) contrast(0.96);
    pointer-events: none;
    transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.creator-worlds-media-card:hover img,
.creator-worlds-media-card:hover video,
.creator-worlds-media-card.is-hovered img,
.creator-worlds-media-card.is-hovered video {
    transform: scale(1.025);
}

.creator-worlds-media-field:has(.creator-worlds-media-card:hover) .creator-worlds-media-card,
.creator-worlds.is-media-paused .creator-worlds-media-card {
    animation-play-state: paused;
}

.creator-worlds-media-card--1 { width: min(25vw, 360px); aspect-ratio: 4 / 3; left: 4%; top: 9%; z-index: 2; --cw-drift-duration: 52s; --cw-drift-delay: -34s; --cw-start-x: -54vw; --cw-mid-x: 31vw; --cw-end-x: 116vw; --cw-y-drift: 10px; }
.creator-worlds-media-card--2 { width: min(18vw, 250px); aspect-ratio: 3 / 4; left: 34%; top: 5%; z-index: 4; --cw-drift-duration: 46s; --cw-drift-delay: -12s; --cw-start-x: -66vw; --cw-mid-x: 22vw; --cw-end-x: 110vw; --cw-y-drift: -8px; }
.creator-worlds-media-card--3 { width: min(22vw, 320px); aspect-ratio: 16 / 10; right: 8%; top: 11%; z-index: 3; --cw-drift-duration: 58s; --cw-drift-delay: -48s; --cw-start-x: -92vw; --cw-mid-x: -3vw; --cw-end-x: 86vw; --cw-y-drift: 12px; }
.creator-worlds-media-card--4 { width: min(15vw, 220px); aspect-ratio: 1; left: 13%; top: 39%; z-index: 5; --cw-drift-duration: 39s; --cw-drift-delay: -20s; --cw-start-x: -46vw; --cw-mid-x: 36vw; --cw-end-x: 118vw; --cw-y-drift: -6px; }
.creator-worlds-media-card--5 { width: min(19vw, 280px); aspect-ratio: 4 / 5; right: 19%; top: 33%; z-index: 4; --cw-drift-duration: 50s; --cw-drift-delay: -5s; --cw-start-x: -88vw; --cw-mid-x: 2vw; --cw-end-x: 92vw; --cw-y-drift: 9px; }
.creator-worlds-media-card--6 { width: min(28vw, 410px); aspect-ratio: 16 / 9; left: 2%; bottom: 10%; z-index: 2; --cw-drift-duration: 64s; --cw-drift-delay: -28s; --cw-start-x: -58vw; --cw-mid-x: 28vw; --cw-end-x: 114vw; --cw-y-drift: -10px; }
.creator-worlds-media-card--7 { width: min(16vw, 235px); aspect-ratio: 3 / 4; right: 5%; bottom: 12%; z-index: 5; --cw-drift-duration: 43s; --cw-drift-delay: -37s; --cw-start-x: -96vw; --cw-mid-x: -5vw; --cw-end-x: 86vw; --cw-y-drift: 7px; }
.creator-worlds-media-card--8 { width: min(14vw, 205px); aspect-ratio: 1; left: 52%; top: 25%; z-index: 3; --cw-drift-duration: 55s; --cw-drift-delay: -18s; --cw-start-x: -80vw; --cw-mid-x: 8vw; --cw-end-x: 96vw; --cw-y-drift: -9px; }
.creator-worlds-media-card--9 { width: min(17vw, 245px); aspect-ratio: 4 / 3; left: 31%; bottom: 12%; z-index: 4; --cw-drift-duration: 47s; --cw-drift-delay: -31s; --cw-start-x: -70vw; --cw-mid-x: 17vw; --cw-end-x: 104vw; --cw-y-drift: 11px; }
.creator-worlds-media-card--10 { width: min(13vw, 190px); aspect-ratio: 3 / 4; left: 73%; top: 2%; z-index: 2; --cw-drift-duration: 61s; --cw-drift-delay: -42s; --cw-start-x: -100vw; --cw-mid-x: -10vw; --cw-end-x: 80vw; --cw-y-drift: -7px; }
.creator-worlds-media-card--11 { width: min(15vw, 220px); aspect-ratio: 4 / 3; left: 23%; top: 22%; z-index: 5; --cw-drift-duration: 41s; --cw-drift-delay: -8s; --cw-start-x: -58vw; --cw-mid-x: 27vw; --cw-end-x: 112vw; --cw-y-drift: 8px; }
.creator-worlds-media-card--12 { width: min(13vw, 190px); aspect-ratio: 1; right: 33%; bottom: 4%; z-index: 3; --cw-drift-duration: 53s; --cw-drift-delay: -24s; --cw-start-x: -84vw; --cw-mid-x: 5vw; --cw-end-x: 94vw; --cw-y-drift: -8px; }
.creator-worlds-media-card--13 { width: min(18vw, 260px); aspect-ratio: 16 / 10; right: 14%; bottom: 30%; z-index: 4; --cw-drift-duration: 45s; --cw-drift-delay: -16s; --cw-start-x: -92vw; --cw-mid-x: -2vw; --cw-end-x: 88vw; --cw-y-drift: 10px; }
.creator-worlds-media-card--14 { width: min(20vw, 290px); aspect-ratio: 16 / 9; left: 56%; bottom: 15%; z-index: 3; --cw-drift-duration: 57s; --cw-drift-delay: -52s; --cw-start-x: -88vw; --cw-mid-x: 3vw; --cw-end-x: 94vw; --cw-y-drift: -6px; }

@keyframes creatorWorldDrift {
    0% {
        transform: translate3d(var(--cw-start-x), 0, 0);
    }
    50% {
        transform: translate3d(var(--cw-mid-x), var(--cw-y-drift), 0);
    }
    100% {
        transform: translate3d(var(--cw-end-x), 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .creator-worlds-media-card {
        animation: none !important;
        transform: none !important;
    }

    .creator-worlds-media-card img,
    .creator-worlds-media-card video {
        transition: none !important;
        transform: none !important;
    }

    .creator-worlds .creator-worlds-kicker,
    .creator-worlds .creator-worlds-title span,
    .creator-worlds .creator-worlds-body {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

.creator-worlds-scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center, rgba(223, 247, 255, 0.68) 0%, rgba(223, 247, 255, 0.36) 32%, rgba(223, 247, 255, 0.08) 68%),
        linear-gradient(90deg, rgba(217, 244, 255, 0.78), rgba(255, 255, 255, 0.18) 42%, rgba(217, 244, 255, 0.62));
}

.creator-worlds-copy {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: none;
    min-height: min(760px, calc(118svh - 216px));
    margin: 0;
    color: #071927;
    pointer-events: none;
    text-shadow: 0 8px 34px rgba(232, 250, 255, 0.92), 0 1px 0 rgba(255, 255, 255, 0.82);
}

.creator-worlds-kicker {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 420px;
    color: rgba(7, 25, 39, 0.72);
    font-size: clamp(14px, 1.55vw, 19px);
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.creator-worlds-title {
    position: absolute;
    inset: clamp(72px, 11vh, 120px) 0 0 0;
    display: block;
    color: #111f2a;
    font-size: clamp(58px, 11.4vw, 164px);
    font-weight: 700;
    line-height: 0.9;
}

.creator-worlds-title span {
    display: block;
}

.creator-worlds-title span:nth-child(1) {
    margin-left: 0;
}

.creator-worlds-title span:nth-child(2) {
    margin-left: clamp(34px, 8vw, 118px);
    margin-top: clamp(2px, 0.8vw, 12px);
}

.creator-worlds-title span:nth-child(3) {
    position: absolute;
    right: 0;
    bottom: 0;
    width: max-content;
    padding-right: 0;
}

.creator-worlds-body {
    position: absolute;
    left: 0;
    bottom: clamp(0px, 2vh, 24px);
    max-width: 620px;
    color: rgba(7, 25, 39, 0.84);
    font-size: clamp(18px, 1.8vw, 25px);
    font-weight: 520;
    line-height: 1.26;
}

.creator-worlds-body span {
    display: block;
}

.creator-worlds .creator-worlds-kicker,
.creator-worlds .creator-worlds-title span,
.creator-worlds .creator-worlds-body {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 980ms ease, transform 1080ms cubic-bezier(0.16, 1, 0.3, 1);
}

.creator-worlds.is-visible .creator-worlds-kicker,
.creator-worlds.is-visible .creator-worlds-title span,
.creator-worlds.is-visible .creator-worlds-body {
    opacity: 1;
    transform: translateX(0);
}

.creator-worlds.is-visible .creator-worlds-title span:nth-child(1) { transition-delay: 120ms; }
.creator-worlds.is-visible .creator-worlds-title span:nth-child(2) { transition-delay: 240ms; }
.creator-worlds.is-visible .creator-worlds-title span:nth-child(3) { transition-delay: 360ms; }
.creator-worlds.is-visible .creator-worlds-body { transition-delay: 480ms; }

.carousel-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--grey-border);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
    padding: 0;
    border: none;
}

.dot.active {
    background-color: var(--ink);
}

/* 8. ONE WINDOW / ONE WORLD BRIDGE */
.bridge-section {
    background: var(--grey-light);
    padding: 100px var(--page-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.bridge-content {
    flex: 1;
    max-width: 600px;
}

.bridge-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 650;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--ink);
}

.bridge-sub {
    font-size: 19px;
    color: var(--slate);
    margin-top: 16px;
}

.bridge-section .bridge-title,
.bridge-section .bridge-sub {
    opacity: 0;
    transform: translateY(42px);
    transition: opacity 1080ms ease, transform 1220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.bridge-section.is-visible .bridge-title,
.bridge-section.is-visible .bridge-sub {
    opacity: 1;
    transform: translateY(0);
}

.bridge-section.is-visible .bridge-sub {
    transition-delay: 180ms;
}

/* 9. THERE'S A STREAM FOR THAT (VIEWER) */
.stream-viewer-section {
    background: var(--paper);
    padding: 84px 0 100px;
}

.section-title-small {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 8px;
    color: var(--slate);
    padding: 0 var(--page-gutter);
}

.section-sub {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 650;
    letter-spacing: -0.04em;
    text-align: center;
    margin-bottom: 56px;
    color: var(--ink);
    padding: 0 var(--page-gutter);
}

.stream-viewer-section .section-title-small,
.stream-viewer-section .section-sub {
    opacity: 0;
    transform: translateY(42px);
    transition: opacity 1080ms ease, transform 1220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.stream-viewer-section.is-visible .section-title-small,
.stream-viewer-section.is-visible .section-sub {
    opacity: 1;
    transform: translateY(0);
}

.stream-viewer-section.is-visible .section-sub {
    transition-delay: 160ms;
}

.viewer-wrapper {
    background: var(--grey-light);
    border-radius: 24px;
    padding: 40px;
    width: auto;
    max-width: none;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    margin-inline: var(--page-gutter);
    box-sizing: border-box;
}

.viewer-selectors {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: center;
}

.viewer-btn {
    text-align: left;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--slate-dark);
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    font-family: inherit;
}

.viewer-btn:hover {
    background: rgba(0,0,0,0.04);
}

.viewer-btn[aria-selected="true"] {
    background: var(--paper);
    border-color: var(--ink);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.viewer-stage {
    background: var(--paper);
    border-radius: 16px;
    min-height: 520px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.stage-item {
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: row;
    gap: 40px;
    align-items: center;
}

.stage-item.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stage-copy {
    flex: 0 0 280px;
}

.stage-stream {
    font-size: 28px;
    font-weight: 650;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.stage-benefit {
    color: var(--slate);
    font-size: 17px;
    line-height: 1.5;
}

.stage-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mockup-card {
    background: var(--paper-muted);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mockup-title { font-size: 22px; font-weight: 650; color: var(--ink); }
.mockup-desc { font-size: 15px; color: var(--slate); line-height: 1.4; }
.mockup-thumb { width: 100%; height: 180px; background: var(--grey-border); border-radius: 12px; }
.mockup-price { font-size: 24px; font-weight: 600; color: var(--ink); }
.mockup-cal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.cal-day { padding: 12px; border: 1px solid var(--grey-border); border-radius: 8px; font-size: 14px; text-align: center; }
.cal-day.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mockup-badge { display: inline-block; padding: 6px 12px; background: #e8f5e9; color: #2e7d32; border-radius: 999px; font-size: 12px; font-weight: 600; width: fit-content; }
.mockup-progress { height: 12px; background: var(--grey-border); border-radius: 6px; overflow: hidden; }
.mockup-progress .bar { height: 100%; background: var(--accent); }
.mockup-raised { font-size: 16px; font-weight: 500; color: var(--ink); }
.mockup-actions { display: flex; gap: 12px; }
.mockup-btn-visual { padding: 12px 24px; border: 1px solid var(--slate); border-radius: 999px; font-size: 16px; font-weight: 500; color: var(--ink); }
.mockup-primary-visual { margin-top: 8px; padding: 16px; background: var(--ink); color: var(--paper); border-radius: 999px; text-align: center; font-weight: 500; font-size: 16px; }
.mockup-split { display: flex; }
.avatar { width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--paper-muted); }
.avatar.a1 { background: #ffcdd2; margin-right: -16px; z-index: 2; }
.avatar.a2 { background: #bbdefb; }

.stage-item:nth-child(1) .mockup-card { border-top: 6px solid #fbbf24; align-items: center; text-align: center; }
.stage-item:nth-child(2) .mockup-card { flex-direction: row; align-items: center; gap: 24px; }
.stage-item:nth-child(2) .mockup-thumb { width: 50%; height: 220px; }
.stage-item:nth-child(3) .mockup-card { border-top: 6px solid #4facfe; }
.stage-item:nth-child(4) .mockup-card { border-top: 6px solid #f43f5e; align-items: center; text-align: center; }
.stage-item:nth-child(5) .mockup-card { border-top: 6px solid #22c55e; }
.stage-item:nth-child(6) .mockup-card { border-top: 6px solid #a855f7; }
.stage-item:nth-child(7) .mockup-card { border-top: 6px solid #6366f1; align-items: center; }

/* 10. 35 STREAMS CAROUSEL */
.streams-carousel-section {
    background: var(--grey-light);
    padding: 100px 0;
    overflow: hidden;
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
    padding: 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    gap: 20px;
}

.carousel-slide {
    flex: 0 0 min(88vw, 1600px);
    background: var(--paper);
    border-radius: 18px;
    padding: 32px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 1fr;
    gap: 20px;
}

.stream-card {
    background: var(--paper-muted);
    border-radius: 12px;
    aspect-ratio: 3/4;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.stream-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 65%;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f7);
    z-index: 0;
}

.carousel-slide .stream-card:nth-child(1)::before { background: linear-gradient(135deg, #a1c4fd, #c2e9fb); }
.carousel-slide .stream-card:nth-child(2)::before { background: linear-gradient(135deg, #fbc2eb, #a6c1ee); }
.carousel-slide .stream-card:nth-child(3)::before { background: linear-gradient(135deg, #84fab0, #8fd3f4); }
.carousel-slide .stream-card:nth-child(4)::before { background: linear-gradient(135deg, #ffecd2, #fcb69f); }
.carousel-slide .stream-card:nth-child(5)::before { background: linear-gradient(135deg, #e0c3fc, #8ec5fc); }
.carousel-slide .stream-card:nth-child(6)::before { background: linear-gradient(135deg, #f093fb, #f5576c); }
.carousel-slide .stream-card:nth-child(7)::before { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.carousel-slide .stream-card:nth-child(8)::before { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.carousel-slide .stream-card:nth-child(9)::before { background: linear-gradient(135deg, #fa709a, #fee140); }
.carousel-slide .stream-card:nth-child(10)::before { background: linear-gradient(135deg, #30cfd0, #330867); }

.card-surface {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.card-surface.surface-hub {
    background: rgba(255, 255, 255, 0.8);
    color: var(--slate-dark);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-surface.surface-dashboard {
    background: rgba(0, 113, 227, 0.12);
    color: #0040a9;
    border: 1px solid rgba(0, 113, 227, 0.2);
}

.card-surface.surface-hybrid {
    background: rgba(168, 85, 247, 0.15);
    color: #5b21b6;
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.stream-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    position: relative;
    z-index: 1;
    background: var(--paper);
    padding: 8px;
    border-radius: 8px;
    margin: 0;
    width: 100%;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
    padding: 0 var(--page-gutter);
}

.homepage-carousel-empty {
    margin: 0 var(--page-gutter);
    min-height: 260px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--paper);
    color: var(--slate);
    text-align: center;
    padding: 32px;
}

/* 10a. DOWN THE RABBIT HOLE / WORLD SIGNATURE */
.world-signature-section {
    --world-signature-bg: #151a20;
    --world-signature-bg-soft: #1d232b;
    --world-signature-ink: #12161c;
    --world-signature-muted: #65707d;
    --world-signature-line: rgba(18, 22, 28, 0.12);
    --world-signature-panel-width: min(88vw, 1600px);
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 16%, rgba(108, 112, 232, 0.12), rgba(108, 112, 232, 0) 34%),
        radial-gradient(circle at 58% 6%, rgba(211, 72, 92, 0.09), rgba(211, 72, 92, 0) 26%),
        var(--world-signature-bg);
    color: var(--paper);
    padding: clamp(68px, 8vw, 104px) 0 clamp(82px, 10vw, 128px);
}

.world-signature-edge {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    pointer-events: none;
}

.world-signature-edge--top {
    top: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.22), rgba(255,255,255,0));
}

.world-signature-edge--bottom {
    bottom: 0;
    height: 28px;
    background: linear-gradient(to bottom, rgba(21, 26, 32, 0), rgba(30, 41, 59, 0.48));
}

.world-signature-shell {
    position: relative;
    z-index: 1;
    width: var(--world-signature-panel-width);
    margin: 0 auto;
}

.world-signature-title-area {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.world-signature-eyebrow {
    margin: 0 0 16px;
    color: rgba(235, 238, 244, 0.72);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.12em;
}

.world-signature-title-area h2 {
    margin: 0 auto;
    max-width: 920px;
    color: #f7f8fb;
    font-size: clamp(42px, 6vw, 78px);
    font-weight: 650;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.world-signature-gradient-word {
    color: #2997ff;
    white-space: nowrap;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    .world-signature-gradient-word {
        background-image: linear-gradient(90deg, #2997ff 0%, #6e5ce6 48%, #ff375f 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

.world-signature-prompt {
    display: grid;
    justify-items: center;
    gap: 16px;
    margin-top: 24px;
}

.world-signature-prompt p {
    margin: 0;
    color: rgba(235, 238, 244, 0.68);
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.45;
}

.world-signature-prompt span {
    display: block;
}

.world-signature-toggle {
    position: relative;
    isolation: isolate;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 999px;
    padding: 0 20px;
    background: #f3f6fb;
    color: #111820;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    line-height: 1;
    overflow: hidden;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.world-signature-toggle:hover,
.world-signature-toggle:focus-visible {
    background: #ffffff;
}

.world-signature-toggle:focus-visible {
    outline: 2px solid #80bfff;
    outline-offset: 4px;
}

.world-signature-toggle-icon {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.world-signature-toggle[aria-expanded="true"] .world-signature-toggle-icon {
    transform: rotate(180deg);
}

.world-signature-toggle > span:not(.world-signature-trace) {
    position: relative;
    z-index: 2;
}

.world-signature-trace {
    position: absolute;
    inset: 4px;
    z-index: 1;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
}

.world-signature-toggle.is-tracing .world-signature-trace {
    opacity: 1;
}

.world-signature-toggle.is-tracing .world-signature-trace::before {
    content: "";
    position: absolute;
    width: 52px;
    height: 2px;
    left: -58px;
    top: 50%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(47, 125, 209, 0), rgba(47, 125, 209, 0.7), rgba(211, 72, 92, 0));
    box-shadow: 0 0 14px rgba(47, 125, 209, 0.28);
    transform: translateY(-50%) rotate(-9deg);
    animation: world-signature-trace 1450ms cubic-bezier(0.16, 1, 0.3, 1) 1;
}

@keyframes world-signature-trace {
    0% {
        left: -58px;
        opacity: 0;
        transform: translateY(10px) rotate(-9deg);
    }
    22% {
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        left: calc(100% + 16px);
        opacity: 0;
        transform: translateY(-18px) rotate(-9deg);
    }
}

.world-signature-expanded {
    height: auto;
    margin-top: clamp(42px, 6vw, 72px);
    overflow: hidden;
}

.world-signature-expanded.is-collapsing,
.world-signature-expanded.is-expanding {
    transition: height 520ms cubic-bezier(0.16, 1, 0.3, 1), opacity 360ms ease;
}

.world-signature-expanded[aria-hidden="true"] {
    opacity: 0;
}

.world-signature-expanded[aria-hidden="false"] {
    opacity: 1;
}

.world-signature-expanded-inner {
    display: grid;
    gap: 22px;
}

.world-signature-panel {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
}

.world-signature-panel--light {
    background: #fff;
    color: var(--world-signature-ink);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.world-signature-panel-intro {
    padding: clamp(34px, 4.4vw, 64px) clamp(24px, 4vw, 64px) clamp(28px, 3.5vw, 48px);
}

.world-signature-panel-intro--light {
    max-width: 760px;
}

.world-signature-panel-intro h3 {
    max-width: 700px;
    margin: 0;
    color: #151a20;
    font-size: clamp(28px, 3.2vw, 44px);
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.world-signature-panel-intro p {
    max-width: 690px;
    margin: 16px 0 0;
    color: #5b6571;
    font-size: clamp(16px, 1.45vw, 19px);
    line-height: 1.52;
}

.world-signature-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--world-signature-line);
    border-bottom: 1px solid var(--world-signature-line);
}

.world-signature-strip > div {
    padding: 24px clamp(18px, 2.2vw, 34px);
}

.world-signature-strip > div + div {
    border-left: 1px solid var(--world-signature-line);
}

.world-signature-strip h3 {
    margin: 0 0 7px;
    color: #151a20;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
}

.world-signature-strip p {
    margin: 0;
    color: var(--world-signature-muted);
    font-size: 14px;
    line-height: 1.42;
}

.world-signature-examples {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.world-signature-example {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 18px;
    padding: clamp(24px, 3vw, 38px);
}

.world-signature-example + .world-signature-example {
    border-left: 1px solid var(--world-signature-line);
}

.world-signature-example-wheel,
.world-signature-stream-wheel {
    display: grid;
    place-items: center;
}

.world-signature-section .streams-signature-wheel {
    max-width: 100%;
}

.world-signature-section .streams-signature-wheel__shape {
    filter: none;
}

.world-signature-panel--dark .streams-signature-wheel {
    --streams-signature-bg: #11161c;
    --streams-signature-ink: #f7f8fb;
    --streams-signature-muted: rgba(236, 240, 246, 0.62);
    --streams-signature-axis: rgba(236, 240, 246, 0.18);
    --streams-signature-ring: rgba(236, 240, 246, 0.12);
    --streams-signature-fill: rgba(47, 125, 209, 0.22);
}

.world-signature-panel--dark .streams-signature-wheel__hover-label {
    stroke: rgba(17, 22, 28, 0.92);
}

.world-signature-example-copy h3,
.world-signature-stream-copy h3,
.world-signature-streams-head h3 {
    margin: 0;
    letter-spacing: 0;
}

.world-signature-example-copy h3 {
    color: #151a20;
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 650;
    line-height: 1.14;
}

.world-signature-example-copy p {
    margin: 10px 0 0;
    color: #5b6571;
    font-size: 15px;
    line-height: 1.46;
}

.world-signature-built-with {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.world-signature-built-with span:first-child {
    color: #7a8490;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.world-signature-built-with strong {
    color: #242a32;
    font-size: 13px;
    font-weight: 650;
}

.world-signature-built-stream {
    appearance: none;
    border: 0;
    border-radius: 4px;
    padding: 1px 2px;
    background: transparent;
    color: #242a32;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
}

.world-signature-built-stream strong {
    color: inherit;
}

.world-signature-built-stream:hover,
.world-signature-built-stream.is-tooltip-active {
    color: #111820;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.world-signature-built-stream:focus-visible {
    outline: 2px solid rgba(36, 124, 107, 0.55);
    outline-offset: 3px;
}

.world-signature-mode-pills,
.world-signature-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.world-signature-mode-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid color-mix(in srgb, var(--world-signature-mode-color) 44%, transparent);
    border-radius: 999px;
    padding: 0 10px;
    background: color-mix(in srgb, var(--world-signature-mode-color) 12%, transparent);
    color: var(--world-signature-mode-color);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, filter 160ms ease;
}

.world-signature-mode-pill.is-linked-active {
    border-color: color-mix(in srgb, var(--world-signature-mode-color) 82%, transparent);
    background: color-mix(in srgb, var(--world-signature-mode-color) 24%, rgba(255, 255, 255, 0.82));
    filter: saturate(1.16);
    transform: translateY(-1px);
}

.world-signature-signals {
    align-items: center;
}

.world-signature-signals-label {
    color: #7a8490;
    font-size: 12px;
    font-weight: 700;
}

.world-signature-signal {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    border-radius: 999px;
    padding: 0 10px;
    background: rgba(18, 22, 28, 0.06);
    color: #3d4650;
    font-size: 12px;
    font-weight: 650;
}

.world-signature-panel--dark {
    background: #0f141a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f7f8fb;
}

.world-signature-streams-head {
    display: grid;
    gap: 10px;
    justify-items: end;
    text-align: right;
    padding: clamp(26px, 3vw, 38px) clamp(24px, 3.4vw, 46px) 0;
}

.world-signature-streams-head h3 {
    color: #ffffff;
    font-size: clamp(24px, 2.8vw, 36px);
    font-weight: 650;
    line-height: 1.1;
}

.world-signature-streams-head p {
    max-width: 660px;
    margin: 0;
    color: rgba(235, 238, 244, 0.66);
    font-size: 16px;
    line-height: 1.5;
}

.world-signature-stream-gallery {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: clamp(22px, 3vw, 34px) clamp(18px, 2.6vw, 34px) clamp(24px, 3vw, 38px);
}

.world-signature-stream-item {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 14px;
    padding: 18px;
    border-right: 1px solid rgba(235, 238, 244, 0.1);
}

.world-signature-stream-item:last-child {
    border-right: 0;
}

.world-signature-stream-copy {
    min-width: 0;
}

.world-signature-stream-copy h3 {
    color: #ffffff;
    font-size: 17px;
    font-weight: 650;
    line-height: 1.2;
}

.world-signature-stream-copy p {
    margin: 8px 0 0;
    color: rgba(235, 238, 244, 0.62);
    font-size: 13px;
    line-height: 1.42;
}

.world-signature-panel--dark .world-signature-mode-pill {
    background: color-mix(in srgb, var(--world-signature-mode-color) 16%, rgba(255, 255, 255, 0.04));
    border-color: color-mix(in srgb, var(--world-signature-mode-color) 46%, rgba(255, 255, 255, 0.08));
}

.world-signature-panel--dark .world-signature-mode-pill.is-linked-active {
    background: color-mix(in srgb, var(--world-signature-mode-color) 30%, rgba(255, 255, 255, 0.08));
    border-color: color-mix(in srgb, var(--world-signature-mode-color) 78%, rgba(255, 255, 255, 0.18));
    color: color-mix(in srgb, var(--world-signature-mode-color) 82%, #ffffff);
}

.world-signature-stream-tooltip {
    position: fixed;
    z-index: 1000;
    max-width: min(280px, calc(100vw - 24px));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    padding: 9px 11px 10px;
    background: #1b2027;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    line-height: 1.36;
    box-shadow: 0 10px 24px rgba(12, 16, 20, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(2px);
    transition: opacity 120ms ease, transform 120ms ease;
}

.world-signature-stream-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.world-signature-stream-tooltip__name,
.world-signature-stream-tooltip__description {
    display: block;
}

.world-signature-stream-tooltip__name {
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 1279px) {
    .world-signature-stream-gallery {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        row-gap: 14px;
    }

    .world-signature-stream-item {
        grid-column: span 2;
        border-right: 1px solid rgba(235, 238, 244, 0.1);
        border-bottom: 1px solid rgba(235, 238, 244, 0.1);
    }

    .world-signature-stream-item:nth-child(3),
    .world-signature-stream-item:nth-child(5) {
        border-right: 0;
    }

    .world-signature-stream-item:nth-child(4) {
        grid-column: 2 / span 2;
        border-bottom: 0;
    }

    .world-signature-stream-item:nth-child(5) {
        grid-column: 4 / span 2;
        border-bottom: 0;
    }
}

@media (max-width: 1024px) {
    .world-signature-panel-intro--light {
        max-width: 820px;
    }

    .world-signature-examples {
        grid-template-columns: 1fr;
    }

    .world-signature-example {
        grid-template-columns: 230px minmax(0, 1fr);
        grid-template-rows: auto;
        align-items: center;
    }

    .world-signature-example + .world-signature-example {
        border-left: 0;
        border-top: 1px solid var(--world-signature-line);
    }
}

@media (max-width: 899px) {
    .world-signature-stream-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .world-signature-stream-item,
    .world-signature-stream-item:nth-child(3),
    .world-signature-stream-item:nth-child(4),
    .world-signature-stream-item:nth-child(5) {
        grid-column: auto;
        border-right: 1px solid rgba(235, 238, 244, 0.1);
        border-bottom: 1px solid rgba(235, 238, 244, 0.1);
    }

    .world-signature-stream-item:nth-child(2),
    .world-signature-stream-item:nth-child(4) {
        border-right: 0;
    }

    .world-signature-stream-item:nth-child(5) {
        grid-column: 1 / -1;
        justify-self: center;
        width: min(100%, 360px);
        border-right: 0;
        border-bottom: 0;
    }
}

@media (max-width: 760px) {
    .world-signature-section {
        --world-signature-panel-width: calc(100% - 32px);
        padding-top: 64px;
        padding-bottom: 76px;
    }

    .world-signature-title-area h2 {
        font-size: clamp(36px, 10vw, 52px);
    }

    .world-signature-panel-intro {
        padding: 30px 24px 28px;
    }

    .world-signature-panel-intro--light {
        max-width: none;
    }

    .world-signature-streams-head {
        justify-items: start;
        text-align: left;
    }

    .world-signature-strip {
        grid-template-columns: 1fr;
    }

    .world-signature-strip > div + div {
        border-left: 0;
        border-top: 1px solid var(--world-signature-line);
    }

    .world-signature-example {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .world-signature-example-copy {
        width: 100%;
    }

    .world-signature-built-with,
    .world-signature-mode-pills,
    .world-signature-signals {
        justify-content: center;
    }
}

@media (max-width: 699px) {
    .world-signature-stream-gallery {
        grid-template-columns: 1fr;
    }

    .world-signature-stream-item,
    .world-signature-stream-item:nth-child(2),
    .world-signature-stream-item:nth-child(3),
    .world-signature-stream-item:nth-child(4),
    .world-signature-stream-item:nth-child(5) {
        width: 100%;
        grid-column: auto;
        justify-self: stretch;
        border-right: 0;
        border-bottom: 1px solid rgba(235, 238, 244, 0.1);
    }

    .world-signature-stream-item:last-child,
    .world-signature-stream-item:nth-child(5) {
        border-bottom: 0;
    }
}

@media (max-width: 520px) {
    .world-signature-section {
        --world-signature-panel-width: calc(100% - 24px);
    }

    .world-signature-panel {
        border-radius: 14px;
    }

    .world-signature-example,
    .world-signature-stream-gallery,
    .world-signature-streams-head {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .world-signature-expanded,
    .world-signature-expanded.is-collapsing,
    .world-signature-expanded.is-expanding,
    .world-signature-toggle,
    .world-signature-toggle-icon,
    .world-signature-mode-pill,
    .world-signature-stream-tooltip {
        transition: none !important;
    }

    .world-signature-toggle.is-tracing .world-signature-trace::before {
        animation: none !important;
    }

    .world-signature-mode-pill.is-linked-active,
    .world-signature-stream-tooltip {
        transform: none !important;
    }
}

.carousel-arrow {
    background: var(--paper);
    border: 1px solid var(--grey-border);
    border-radius: 999px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-dark);
    transition: background-color 0.2s;
}

.carousel-arrow:hover {
    background: var(--paper-muted);
}

.streams-carousel-section .carousel-arrow {
    border: 0;
}

.streams-carousel-section .carousel-arrow:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.16);
}

/* 11. UNDREAMED SECTION */
.undreamed-section {
    background: var(--ink);
    position: relative;
    overflow: hidden;
    padding: 140px var(--page-gutter);
    text-align: center;
    color: var(--paper);
}

.undreamed-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
}

.undreamed-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.undreamed-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.undreamed-content .section-title {
    color: var(--paper);
    text-align: center;
    padding: 0;
    margin: 0 auto 24px auto;
}

.undreamed-body {
    font-size: 19px;
    color: #a1a1a6;
    margin-bottom: 32px;
    line-height: 1.5;
}

.undreamed-quote {
    font-size: 24px;
    font-style: italic;
    color: var(--paper);
    margin-bottom: 40px;
    font-weight: 500;
}

/* 12. FOOTER */
.site-footer {
    background: var(--ink);
    color: #a1a1a6;
    padding: 80px var(--page-gutter);
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 650;
    letter-spacing: -0.03em;
    color: var(--paper);
    margin-bottom: 12px;
}

.footer-sub {
    font-size: 17px;
    margin-bottom: 32px;
}

.footer-ctas {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 14px;
    flex-wrap: wrap;
}

.footer-links a, .footer-links button {
    color: #a1a1a6;
    text-decoration: none;
}

.footer-links a:hover, .footer-links button:hover {
    color: var(--paper);
}

/* 13. RESPONSIVE BEHAVIOR */
@media (max-width: 1024px) {
    .carousel-slide {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .creator-worlds {
        min-height: 980px;
        padding-top: 118px;
        padding-bottom: 118px;
    }
    .creator-worlds-copy {
        min-height: 744px;
    }
    .creator-worlds-title {
        inset: 82px 0 86px 0;
        font-size: clamp(62px, 14vw, 118px);
    }
    .creator-worlds-title span:nth-child(2) {
        margin-left: clamp(32px, 8vw, 72px);
    }
    .creator-worlds-title span:nth-child(3) {
        right: 0;
        bottom: 0;
        padding-right: 0;
    }
    .creator-worlds-media-card--1 { width: 260px; left: -34px; top: 48px; }
    .creator-worlds-media-card--2 { width: 178px; left: auto; right: 20px; top: 86px; }
    .creator-worlds-media-card--3 { width: 238px; right: -46px; top: 280px; }
    .creator-worlds-media-card--4 { width: 154px; left: 18px; top: 420px; }
    .creator-worlds-media-card--5 { width: 188px; right: 14px; top: 536px; }
    .creator-worlds-media-card--6 { width: 278px; left: -42px; bottom: 96px; }
    .creator-worlds-media-card--7 { width: 156px; right: 8px; bottom: 60px; }
    .creator-worlds-media-card--8 { width: 136px; left: 46%; top: 36px; }
    .creator-worlds-media-card--9,
    .creator-worlds-media-card--10,
    .creator-worlds-media-card--11,
    .creator-worlds-media-card--12,
    .creator-worlds-media-card--13,
    .creator-worlds-media-card--14 {
        display: none;
    }
    .creator-worlds-media-card {
        --cw-end-x: 82vw;
    }
    .bridge-section {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .viewer-wrapper {
        grid-template-columns: 1fr;
        padding: 24px;
        width: auto;
        margin-inline: 16px;
    }
    .viewer-selectors {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        gap: 12px;
        justify-content: flex-start;
    }
    .viewer-btn {
        white-space: nowrap;
        padding: 10px 16px;
        font-size: 14px;
    }
    .stage-item {
        flex-direction: column;
        gap: 20px;
    }
    .stage-copy {
        flex: 1 1 auto;
        text-align: center;
    }
}

@media (max-width: 600px) {
    :root {
        --hero-object-position: center center;
    }
    .hero-content {
        text-align: center;
        padding-left: var(--page-gutter);
        padding-right: var(--page-gutter);
        margin: 0 auto;
    }
    .hero-ctas {
        justify-content: center;
    }
    .carousel-slide {
        grid-template-columns: repeat(3, 1fr);
        padding: 16px;
        gap: 12px;
        flex: 0 0 90vw;
    }
    .stream-card {
        padding: 8px;
        aspect-ratio: 4/5;
    }
    .stream-card h4 {
        font-size: 12px;
        padding: 4px;
    }
    .card-surface {
        font-size: 8px;
        padding: 2px 6px;
        top: 6px;
        left: 6px;
    }
    .stream-viewer-section, .streams-carousel-section {
        padding: 60px 0;
    }
    .creator-worlds {
        min-height: 860px;
        padding: 84px 20px;
    }
    .creator-worlds-copy {
        min-height: 692px;
    }
    .creator-worlds-title {
        font-size: clamp(58px, 19vw, 92px);
        inset: 86px 0 124px 0;
        line-height: 0.9;
    }
    .creator-worlds-title span:nth-child(1) {
        margin-left: 0;
    }
    .creator-worlds-title span:nth-child(2) {
        margin-left: clamp(24px, 11vw, 52px);
    }
    .creator-worlds-title span:nth-child(3) {
        right: 0;
        bottom: 0;
    }
    .creator-worlds-body {
        max-width: 340px;
        bottom: 0;
        font-size: 18px;
        line-height: 1.28;
    }
    .creator-worlds-body span {
        display: inline;
    }
    .creator-worlds-kicker {
        font-size: 13px;
        line-height: 1.25;
    }
    .creator-worlds-media-card {
        border-radius: 7px;
        box-shadow: 0 18px 44px rgba(26, 74, 105, 0.16);
        animation: none;
        transform: none;
    }
    .creator-worlds-media-card:hover img,
    .creator-worlds-media-card:hover video {
        transform: none;
    }
    .creator-worlds-media-card--1 { width: 190px; left: -46px; top: 36px; }
    .creator-worlds-media-card--2 { width: 132px; right: -16px; top: 84px; }
    .creator-worlds-media-card--3 { width: 184px; right: -54px; top: 278px; }
    .creator-worlds-media-card--4 { width: 126px; left: -12px; top: 404px; }
    .creator-worlds-media-card--5 { width: 146px; right: 6px; bottom: 154px; top: auto; }
    .creator-worlds-media-card--6 { width: 212px; left: -58px; bottom: 64px; }
    .creator-worlds-media-card--7 { width: 118px; right: -16px; bottom: 42px; }
    .hero-title {
        font-size: 32px;
    }
    .viewer-stage {
        padding: 20px;
    }
    .mockup-card {
        padding: 24px;
    }
    .stage-item:nth-child(2) .mockup-card {
        flex-direction: column;
    }
    .stage-item:nth-child(2) .mockup-thumb {
        width: 100%;
        height: 160px;
    }
}

@media (max-width: 400px) {
    .carousel-slide {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 14. REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero {
        background: #222;
    }

    .undreamed-content {
        opacity: 1;
        transform: none;
    }
}


/* ===========================================
   V2.1 POLISH PASS
   =========================================== */

/* One Window / One World: uninterrupted white field and exact current Streams orb. */
.bridge-section {
    background: var(--paper);
}

.bridge-window-word {
    color: #9a9aa0;
}

.bridge-world-word {
    color: #3c67ea;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    .bridge-world-word {
        color: transparent;
        background-image: linear-gradient(90deg, #2997ff 0%, #6e5ce6 48%, #ff375f 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

.bridge-orb-wrap {
    position: relative;
    display: grid;
    place-items: center;
    width: min(42vw, 470px);
    min-width: 300px;
    min-height: 390px;
    flex-shrink: 0;
}

.bridge-orb-wrap::before {
    content: "";
    position: absolute;
    width: 76%;
    aspect-ratio: 1;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 66%);
    filter: blur(2px);
}

.bridge-orb {
    position: relative;
    width: min(100%, 470px);
    height: auto;
    overflow: visible;
}

.bridge-orb-shadow {
    fill: rgba(24, 32, 42, 0.16);
    filter: url(#streams-v21-orb-soft);
}

.bridge-orb-halo {
    fill: rgba(255, 255, 255, 0.24);
    stroke: rgba(255, 255, 255, 0.7);
    stroke-width: 1;
    filter: drop-shadow(0 0 42px rgba(79, 201, 193, 0.38));
}

.bridge-orb-planet {
    fill: url(#streams-v21-orb-core);
    filter: drop-shadow(0 30px 54px rgba(24, 32, 42, 0.28));
}

.bridge-orb-shine { fill: url(#streams-v21-orb-shine); }
.bridge-orb-world { transform-origin: 260px 250px; }
.bridge-orb-continent { fill: rgba(255, 255, 255, 0.2); mix-blend-mode: screen; }
.bridge-orb-continent--two { fill: rgba(255, 240, 163, 0.2); }
.bridge-orb-band {
    fill: none;
    stroke: rgba(255, 255, 255, 0.3);
    stroke-linecap: round;
    stroke-width: 4;
    mix-blend-mode: screen;
}
.bridge-orb-band--two { stroke: rgba(255, 240, 163, 0.22); stroke-width: 2; }
.bridge-orb-rings { transform-origin: 260px 262px; }
.bridge-orb-ring {
    fill: none;
    stroke: url(#streams-v21-orb-ring);
    stroke-linecap: round;
    transform-origin: 260px 262px;
}
.bridge-orb-ring--one { stroke-width: 10; opacity: 0.62; transform: rotate(-16deg); }
.bridge-orb-ring--two { stroke-width: 2; opacity: 0.74; transform: rotate(22deg); stroke-dasharray: 18 20; }
.bridge-orb-orbit-lights {
    fill: #fff7bd;
    filter: drop-shadow(0 0 12px rgba(255, 247, 189, 0.6));
    transform-origin: 260px 250px;
}
.bridge-orb-sparks {
    fill: #fff7bd;
    filter: drop-shadow(0 0 14px rgba(246, 167, 198, 0.7));
}

/* Viewer: one flat grey field, expanding selector bubbles, and centered white cards. */
.viewer-wrapper {
    grid-template-columns: minmax(330px, 390px) 1fr;
    min-height: 660px;
    align-items: stretch;
    background: #f1f1f3;
    padding: 42px;
}

.viewer-selectors {
    align-self: center;
    gap: 8px;
}

.viewer-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border: 0;
    background: transparent;
    border-radius: 999px;
    font-size: 16px;
    line-height: 1.35;
    overflow: hidden;
    transition: background-color 230ms ease, padding 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.viewer-btn:hover:not([aria-selected="true"]) {
    background: #e3e3e7;
}

.viewer-btn[aria-selected="true"] {
    background: var(--paper);
    border: 0;
    box-shadow: none;
    padding-top: 18px;
    padding-bottom: 18px;
}

.viewer-btn-label {
    display: block;
    font-weight: 600;
}

.viewer-btn-detail {
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    color: var(--slate);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    white-space: normal;
    transition: max-height 340ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease, margin-top 300ms ease;
}

.viewer-btn[aria-selected="true"] .viewer-btn-detail {
    max-height: 130px;
    opacity: 1;
    margin-top: 9px;
}

.viewer-btn-detail strong { color: var(--slate-dark); font-weight: 650; }

.viewer-stage {
    min-height: 576px;
    padding: 38px;
    background: transparent;
    border-radius: 18px;
}

.stage-item {
    align-items: center;
    justify-content: center;
    gap: 0;
}

.stage-mockup {
    width: 100%;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.mockup-card {
    background: var(--paper);
    border: 1px solid #dedee2;
    box-shadow: none;
}

/* Carousel: durable heading, quiet activity cue, smooth glide, and real card imagery. */
.carousel-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 0 var(--page-gutter);
    margin-bottom: 48px;
}

.carousel-heading-row .section-title {
    padding: 0;
    margin: 0;
}

.streams-carousel-section .carousel-heading-row .section-title {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 980ms ease, transform 1080ms cubic-bezier(0.16, 1, 0.3, 1);
}

.streams-carousel-section.is-visible .carousel-heading-row .section-title {
    opacity: 1;
    transform: translateX(0);
}

.new-stream-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    color: var(--slate);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding-bottom: 7px;
}

.new-stream-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #34c759;
}

.carousel-track {
    transition: none;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.carousel-track.is-ready {
    transition: transform 980ms cubic-bezier(0.22, 1, 0.36, 1);
}

.stream-card::before {
    height: 100%;
}

.stream-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    filter: saturate(0.82) contrast(0.94) brightness(0.9);
    mix-blend-mode: multiply;
    z-index: 1;
}

.stream-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(255,255,255,0.04) 20%, rgba(255,255,255,0.2) 58%, rgba(255,255,255,0.92) 100%);
}

.stream-card h4 {
    z-index: 3;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.card-surface { display: none !important; }

/* Undreamed: exact V1 hero atmosphere and more legible staged reveal. */
.undreamed-section {
    background: radial-gradient(circle at 50% 100%, #1e293b 0%, #111823 70%);
}

.undreamed-content {
    opacity: 1;
    transform: none;
}

.undreamed-content > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 760ms ease, transform 840ms cubic-bezier(0.22, 1, 0.36, 1);
}

.undreamed-content.visible > * {
    opacity: 1;
    transform: none;
}

.undreamed-content.visible > :nth-child(2) { transition-delay: 110ms; }
.undreamed-content.visible > :nth-child(3) { transition-delay: 210ms; }
.undreamed-content.visible > :nth-child(4) { transition-delay: 300ms; }

/* The single closing CTA stays centered. */
.footer-ctas { justify-content: center; }

@media (prefers-reduced-motion: no-preference) {
    .bridge-orb-wrap::before { animation: bridge-orb-aura 8s ease-in-out infinite alternate; }
    .bridge-orb-world { animation: bridge-orb-world-drift 13s ease-in-out infinite alternate; }
    .bridge-orb-halo { animation: bridge-orb-glow 7.5s ease-in-out infinite alternate; }
    .bridge-orb-rings { animation: bridge-orb-drift 9s ease-in-out infinite alternate; }
    .bridge-orb-ring--two { animation: bridge-orb-ring-shimmer 18s linear infinite; }
    .bridge-orb-band { animation: bridge-orb-band-shimmer 6.5s ease-in-out infinite alternate; }
    .bridge-orb-orbit-lights { animation: bridge-orb-orbit 16s linear infinite; }
    .bridge-orb-sparks { animation: bridge-orb-sparkle 5.5s ease-in-out infinite alternate; }
    .new-stream-status { animation: new-stream-added 7.5s ease-in-out infinite; }

    @keyframes bridge-orb-aura { from { opacity: 0.72; transform: scale(0.96); } to { opacity: 1; transform: scale(1.04); } }
    @keyframes bridge-orb-world-drift { from { transform: rotate(-1.2deg) translateY(-2px); } to { transform: rotate(1.6deg) translateY(3px); } }
    @keyframes bridge-orb-glow { from { opacity: 0.82; } to { opacity: 1; } }
    @keyframes bridge-orb-drift { from { transform: rotate(-2deg) translateY(-3px); } to { transform: rotate(2deg) translateY(4px); } }
    @keyframes bridge-orb-ring-shimmer { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -76; } }
    @keyframes bridge-orb-band-shimmer { from { opacity: 0.44; transform: translateX(-3px); } to { opacity: 0.86; transform: translateX(4px); } }
    @keyframes bridge-orb-orbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
    @keyframes bridge-orb-sparkle { from { opacity: 0.6; transform: translateY(0); } to { opacity: 1; transform: translateY(-6px); } }
    @keyframes new-stream-added {
        0%, 48%, 100% { opacity: 0.38; color: var(--slate); }
        58%, 70% { opacity: 1; color: #1d1d1f; }
        64% { transform: translateY(-1px); }
    }
}

@media (max-width: 900px) {
    .bridge-orb-wrap {
        width: min(100%, 390px);
        min-width: 0;
        min-height: 320px;
    }

    .viewer-wrapper {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .viewer-selectors {
        align-self: stretch;
    }

    .viewer-btn {
        flex: 0 0 min(78vw, 360px);
        white-space: normal;
    }

    .viewer-stage {
        min-height: 520px;
    }

    .carousel-heading-row {
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .bridge-orb-wrap {
        width: min(100%, 330px);
        min-height: 280px;
    }

    .viewer-wrapper {
        padding: 24px;
    }

    .viewer-stage {
        min-height: 450px;
        padding: 18px;
    }

    .carousel-heading-row {
        display: block;
    }

    .new-stream-status {
        margin-top: 14px;
        padding-bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .viewer-btn,
    .viewer-btn-detail,
    .carousel-track,
    .bridge-section .bridge-title,
    .bridge-section .bridge-sub,
    .stream-viewer-section .section-title-small,
    .stream-viewer-section .section-sub,
    .streams-carousel-section .carousel-heading-row .section-title,
    .hub-overview-flip-inner,
    .hub-overview-face,
    .undreamed-content > * {
        transition: none !important;
        animation: none !important;
    }

    .bridge-section .bridge-title,
    .bridge-section .bridge-sub,
    .stream-viewer-section .section-title-small,
    .stream-viewer-section .section-sub,
    .streams-carousel-section .carousel-heading-row .section-title,
    .undreamed-content > * {
        opacity: 1;
        transform: none;
    }

    .hub-overview-flip-inner,
    .hub-overview-flip.is-flipped .hub-overview-flip-inner,
    .hub-overview-face,
    .hub-overview-face--back {
        transform: none !important;
    }

    .hub-overview-face--front {
        opacity: 1;
        z-index: 2;
    }

    .hub-overview-face--back {
        opacity: 0;
        pointer-events: none;
        z-index: 1;
    }

    .hub-overview-flip.is-flipped .hub-overview-face--front {
        opacity: 0;
        z-index: 1;
    }

    .hub-overview-flip.is-flipped .hub-overview-face--back {
        opacity: 1;
        pointer-events: auto;
        z-index: 2;
    }

    .new-stream-status { opacity: 0.72; }
}


/* ===========================================
   STREAMS HOMEPAGE V2.2 — FINAL POLISH
   =========================================== */

/* Tighten the uninterrupted One Window / One World bridge equally above and below. */
.bridge-section {
    padding-top: 70px;
    padding-bottom: 70px;
}

/* Viewer: narrower, taller, initially neutral, and flat throughout. */
.viewer-wrapper {
    width: min(80vw, 1380px);
    min-height: 730px;
    margin-inline: auto;
    grid-template-columns: minmax(330px, 390px) 1fr;
    align-items: stretch;
    padding: 44px;
}

.viewer-selectors {
    align-items: flex-start;
    align-self: center;
    width: 100%;
    gap: 9px;
}

.viewer-btn {
    display: inline-block;
    align-self: flex-start;
    width: max-content;
    max-width: 100%;
    padding: 14px 21px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-size: 17px;
    line-height: 1.38;
    overflow: hidden;
    box-shadow: none;
    transition: width 360ms cubic-bezier(0.22, 1, 0.36, 1),
                padding 360ms cubic-bezier(0.22, 1, 0.36, 1),
                border-radius 300ms ease,
                background-color 220ms ease;
}

.viewer-btn:hover:not([aria-expanded="true"]) {
    background: #e1e1e5;
}

.viewer-btn[aria-expanded="true"] {
    width: 100%;
    padding: 20px 22px;
    border: 0;
    border-radius: 22px;
    background: #dedee2;
    box-shadow: none;
}

.viewer-btn-label {
    display: block;
    max-height: 3.2em;
    opacity: 1;
    overflow: hidden;
    font-weight: 600;
    transition: max-height 280ms ease, opacity 180ms ease;
}

.viewer-btn-detail {
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin: 0;
    color: var(--slate-dark);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.48;
    white-space: normal;
    transition: max-height 360ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms ease;
}

.viewer-btn[aria-expanded="true"] .viewer-btn-label {
    max-height: 0;
    opacity: 0;
}

.viewer-btn[aria-expanded="true"] .viewer-btn-detail {
    max-height: 170px;
    opacity: 1;
}

.viewer-btn-detail strong {
    color: #111113;
    font-weight: 700;
}

.viewer-stage {
    min-height: 635px;
    padding: 42px;
    background: transparent;
}

.stage-item {
    align-items: center;
    justify-content: center;
}

.mockup-card {
    max-width: 585px;
    padding: 36px;
    background: var(--paper);
    border: 1px solid #dedee2;
    box-shadow: none;
}

.viewer-default {
    width: 100%;
    display: grid;
    place-items: center;
}

.hub-overview-card {
    width: min(100%, 650px);
    padding: 34px;
    border: 1px solid #dedee2;
    border-radius: 22px;
    background: #fff;
}

.hub-overview-flip {
    width: min(100%, 650px);
    border-radius: 22px;
    perspective: 1200px;
    cursor: pointer;
}

.hub-overview-flip:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    box-shadow: 0 0 0 5px rgba(0, 113, 227, 0.14);
}

.hub-overview-flip-inner {
    display: grid;
    transform-style: preserve-3d;
    transition: transform 780ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-overview-flip.is-flipped .hub-overview-flip-inner {
    transform: rotateX(180deg);
}

.hub-overview-face {
    width: 100%;
    grid-area: 1 / 1;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hub-overview-face--back {
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding-left: clamp(58px, 7vw, 92px);
    overflow: hidden;
    transform: rotateX(180deg);
}

.hub-overview-top {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.hub-overview-flip-cue {
    margin-left: auto;
    align-self: flex-start;
    flex: 0 0 auto;
    border: 1px solid rgba(17, 24, 35, 0.12);
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--slate);
    background: #f7f8fa;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hub-overview-flip-cue--back {
    position: absolute;
    top: 24px;
    right: 24px;
}

.hub-overview-avatar {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 16px;
    background: #111823;
    color: #fff;
    font-size: 24px;
    font-weight: 750;
}

.hub-overview-kicker {
    margin: 0 0 4px;
    color: var(--slate);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.hub-overview-title {
    margin: 0;
    color: var(--ink);
    font-size: clamp(22px, 2.1vw, 31px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.hub-overview-sub {
    margin: 8px 0 0;
    color: var(--slate);
    font-size: 15px;
}

.hub-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.hub-overview-stream {
    min-height: 94px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
    padding: 13px;
    border-radius: 15px;
    background: #f1f1f3;
}

.hub-overview-stream span {
    color: var(--slate);
    font-size: 11px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hub-overview-stream strong {
    color: #1d1d1f;
    font-size: 14px;
    line-height: 1.15;
}

.hub-overview-stream--1 { background: #fff4d7; }
.hub-overview-stream--2 { background: #e8efff; }
.hub-overview-stream--3 { background: #e8f7f3; }
.hub-overview-stream--4 { background: #ffe9ed; }
.hub-overview-stream--5 { background: #eee9ff; }
.hub-overview-stream--6 { background: #edf1f5; }
.hub-overview-stream--7 { background: #f4ebff; grid-column: span 2; }

.hub-overview-definition-kicker {
    max-width: 480px;
    margin: 0;
    color: var(--ink);
    font-size: clamp(30px, 3.4vw, 46px);
    font-weight: 760;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.hub-overview-definition-copy {
    max-width: 500px;
    margin: 0;
    color: rgba(17, 24, 35, 0.78);
    font-size: clamp(18px, 1.55vw, 23px);
    font-weight: 560;
    line-height: 1.22;
}

.hub-overview-definition-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 500px;
    cursor: default;
}

.hub-overview-definition-actions span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    border: 1px solid rgba(0, 113, 227, 0.12);
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(217, 244, 255, 0.72);
    color: #0f3448;
    font-size: 13px;
    font-weight: 720;
    line-height: 1;
    cursor: default;
}

.hub-overview-definition-actions span:nth-child(1) {
    background: rgba(217, 244, 255, 0.72);
    border-color: rgba(0, 113, 227, 0.12);
    color: #0f3448;
}

.hub-overview-definition-actions span:nth-child(2) {
    background: rgba(255, 242, 204, 0.78);
    border-color: rgba(184, 134, 36, 0.14);
    color: #4d3a12;
}

.hub-overview-definition-actions span:nth-child(3) {
    background: rgba(224, 247, 236, 0.78);
    border-color: rgba(40, 132, 90, 0.12);
    color: #173f30;
}

.hub-overview-definition-actions span:nth-child(4) {
    background: rgba(238, 232, 255, 0.8);
    border-color: rgba(113, 83, 188, 0.13);
    color: #33265f;
}

.hub-overview-definition-actions span:nth-child(5) {
    background: rgba(255, 232, 218, 0.78);
    border-color: rgba(199, 104, 58, 0.13);
    color: #54301f;
}

.hub-overview-definition-actions span:nth-child(6) {
    background: rgba(219, 247, 246, 0.76);
    border-color: rgba(20, 139, 135, 0.12);
    color: #123f40;
}

.hub-overview-definition-actions span:nth-child(7) {
    background: rgba(255, 231, 238, 0.76);
    border-color: rgba(191, 82, 112, 0.12);
    color: #542232;
}

.hub-overview-definition-actions span:nth-child(8) {
    background: rgba(226, 242, 222, 0.78);
    border-color: rgba(69, 135, 68, 0.12);
    color: #213f24;
}

/* Circular carousel: true endless loop with a slower, softer glide. */
.carousel-track.is-ready {
    transition: transform 1080ms cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide.is-clone {
    pointer-events: none;
}

.stream-card-image {
    object-position: center;
}

/* Image-less or failed Marketplace cards retain the CSS-generated fallback art. */
.stream-card.image-fallback::before {
    opacity: 1;
}

/* Undreamed: 25% more breathing room and a deliberately visible staged entrance. */
.undreamed-section {
    min-height: clamp(720px, 78svh, 920px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: clamp(160px, 18vh, 220px);
    padding-bottom: clamp(160px, 18vh, 220px);
}

.undreamed-content {
    width: min(100%, 800px);
}

.undreamed-content > * {
    transition: opacity 1350ms ease, transform 1500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.undreamed-content.visible > :nth-child(2) { transition-delay: 180ms; }
.undreamed-content.visible > :nth-child(3) { transition-delay: 360ms; }
.undreamed-content.visible > :nth-child(4) { transition-delay: 540ms; }

@media (max-width: 900px) {
    .viewer-wrapper {
        width: calc(100% - 32px);
        min-height: 0;
        margin-inline: 16px;
        padding: 28px;
    }

    .viewer-selectors {
        align-items: stretch;
    }

    .viewer-btn {
        flex: 0 0 auto;
        width: max-content;
    }

    .viewer-btn[aria-expanded="true"] {
        width: min(82vw, 390px);
        flex-basis: min(82vw, 390px);
    }

    .viewer-stage {
        min-height: 540px;
    }

    .hub-overview-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hub-overview-stream--7 {
        grid-column: span 1;
    }
}

@media (max-width: 600px) {
    .bridge-section {
        padding-top: 54px;
        padding-bottom: 54px;
    }

    .viewer-wrapper {
        padding: 22px;
    }

    .viewer-stage {
        min-height: 480px;
        padding: 16px;
    }

    .mockup-card,
    .hub-overview-card {
        padding: 24px;
    }

    .hub-overview-face--back {
        gap: 18px;
        padding-left: 24px;
    }

    .hub-overview-flip-cue--back {
        top: 18px;
        right: 18px;
    }

    .hub-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hub-overview-stream--7 {
        grid-column: span 2;
    }

    .undreamed-section {
        min-height: 680px;
        padding-top: 130px;
        padding-bottom: 130px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .viewer-btn,
    .viewer-btn-label,
    .viewer-btn-detail,
    .carousel-track,
    .bridge-section .bridge-title,
    .bridge-section .bridge-sub,
    .stream-viewer-section .section-title-small,
    .stream-viewer-section .section-sub,
    .streams-carousel-section .carousel-heading-row .section-title,
    .hub-overview-flip-inner,
    .hub-overview-face,
    .undreamed-content > * {
        transition: none !important;
    }
}


/* ===========================================
   STREAMS HOMEPAGE V2.3 — NITTY-GRITTY POLISH
   =========================================== */

/* Pull the One Window copy and world graphic into a tighter shared composition. */
.bridge-section {
    justify-content: center;
    gap: clamp(22px, 3vw, 46px);
}

.bridge-content {
    flex: 0 1 680px;
    max-width: 680px;
}

.bridge-orb-wrap {
    width: min(36vw, 430px);
}

/* Restore roughly half of the width removed in V2.2 while retaining a composed object. */
.viewer-wrapper {
    width: min(88vw, 1510px);
}

/* Refined Tip Jar preview: clearer hierarchy and a more credible experience shape. */
.stage-item:first-of-type .mockup-card,
.tipjar-card {
    align-items: stretch;
    text-align: left;
    max-width: 630px;
    padding: 38px;
    border-top: 1px solid #dedee2;
    border-radius: 26px;
}

.tipjar-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tipjar-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 17px;
    background: linear-gradient(145deg, #ffd86f, #ff9f43);
    color: #5b3511;
    font-size: 22px;
    line-height: 1;
}

.tipjar-eyebrow {
    margin: 0 0 3px;
    color: var(--slate);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.12em;
}

.tipjar-card .mockup-title {
    margin: 0;
    font-size: clamp(24px, 2vw, 31px);
    letter-spacing: -0.025em;
}

.tipjar-card .mockup-desc {
    max-width: 460px;
    font-size: 16px;
}

.tipjar-amounts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.tipjar-amount {
    display: grid;
    place-items: center;
    min-height: 54px;
    border: 1px solid #d2d2d7;
    border-radius: 15px;
    background: #fff;
    color: #1d1d1f;
    font-size: 18px;
    font-weight: 700;
}

.tipjar-amount.is-selected {
    border-color: #111823;
    background: #111823;
    color: #fff;
}

.tipjar-note-box {
    min-height: 66px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    padding: 12px 16px;
    border-radius: 15px;
    background: #f5f5f7;
}

.tipjar-note-label {
    color: var(--slate);
    font-size: 13px;
    font-weight: 600;
}

.tipjar-note-line {
    display: block;
    width: 72%;
    height: 5px;
    border-radius: 999px;
    background: #d6d6db;
}

.tipjar-card .mockup-primary-visual {
    margin-top: 2px;
}

.tipjar-foot {
    margin: 0;
    color: var(--slate);
    font-size: 13px;
    text-align: center;
}

/* Local placeholder artwork for Streams whose Marketplace portrait is not yet populated. */
.stream-card[data-stream-name="Tip Jar"] .stream-card-image,
.stream-card[data-stream-name="Digital Product Sale"] .stream-card-image,
.stream-card[data-stream-name="Invoice"] .stream-card-image,
.stream-card[data-stream-name="Social Radar"] .stream-card-image,
.stream-card[data-stream-name="Atmosphere Theme Pack"] .stream-card-image {
    opacity: 0.7;
    filter: saturate(0.94) contrast(0.96) brightness(0.94);
    mix-blend-mode: multiply;
}

@media (max-width: 900px) {
    .bridge-section {
        gap: 18px;
    }

    .bridge-content {
        flex-basis: auto;
    }

    .bridge-orb-wrap {
        width: min(100%, 370px);
    }

    .viewer-wrapper {
        width: calc(100% - 32px);
    }
}

@media (max-width: 600px) {
    .tipjar-card {
        padding: 26px;
        border-radius: 21px;
    }

    .tipjar-icon {
        width: 48px;
        height: 48px;
        border-radius: 15px;
    }

    .tipjar-amount {
        min-height: 48px;
        font-size: 16px;
    }
}

/* ===========================================
   STREAMS HOMEPAGE V2.4 — FINAL VIEWER FIXES
   =========================================== */

/* The bridge was slightly over-tightened in V2.3; restore a small amount of air. */
.bridge-section {
    gap: clamp(30px, 3.4vw, 54px);
}

/* Prevent legacy nth-child rules from turning the Tip Jar experience into a row. */
.viewer-stage .stage-item .tipjar-card {
    display: flex;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start;
    width: min(100%, 630px);
    min-width: 0;
    max-width: 630px;
    overflow: hidden;
    text-align: left !important;
}

.tipjar-card > *,
.tipjar-card-header > * {
    min-width: 0;
    max-width: 100%;
}

.tipjar-card-header {
    width: 100%;
}

.tipjar-card .mockup-title,
.tipjar-card .mockup-desc,
.tipjar-card .tipjar-foot {
    overflow-wrap: break-word;
    word-break: normal;
}

.tipjar-card .tipjar-amounts,
.tipjar-card .tipjar-note-box,
.tipjar-card .mockup-primary-visual {
    width: 100%;
}

.viewer-stage .stage-item .digital-product-card,
.viewer-stage .stage-item .deals-card {
    display: flex;
    flex-direction: column !important;
    align-items: stretch !important;
    width: min(100%, 630px);
    min-width: 0;
    max-width: 630px;
    overflow: hidden;
    text-align: left !important;
    border-top: 1px solid #dedee2;
    border-radius: 26px;
}

.digital-product-card > *,
.deals-card > * {
    min-width: 0;
    max-width: 100%;
}

.digital-product-preview {
    position: relative;
    min-height: 214px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #d9e2ef;
    border-radius: 20px;
    background:
        radial-gradient(circle at 18% 22%, rgba(79, 172, 254, 0.18), transparent 30%),
        linear-gradient(145deg, #f7fbff, #edf5ff);
}

.digital-product-sheet {
    width: min(78%, 310px);
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 26px;
    border: 1px solid rgba(17, 24, 35, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 38px rgba(24, 61, 102, 0.12);
}

.digital-product-kicker {
    color: #2563a8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.digital-product-line {
    display: block;
    width: 68%;
    height: 8px;
    border-radius: 999px;
    background: #bfd3ea;
}

.digital-product-line--wide {
    width: 100%;
    height: 12px;
    background: #111823;
}

.digital-product-line--short {
    width: 46%;
}

.digital-product-download {
    position: absolute;
    right: clamp(18px, 7%, 44px);
    bottom: clamp(16px, 7%, 38px);
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #111823;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 14px 30px rgba(17, 24, 35, 0.18);
}

.digital-product-card .mockup-title,
.digital-product-card .mockup-price,
.deals-card .mockup-title,
.deals-card .mockup-desc {
    overflow-wrap: break-word;
    word-break: normal;
}

.digital-product-card .mockup-price {
    margin: -2px 0 0;
}

.digital-product-card .mockup-primary-visual,
.deals-card .mockup-primary-visual {
    width: 100%;
}

.deals-ticket {
    position: relative;
    display: grid;
    gap: 8px;
    min-height: 172px;
    padding: 26px;
    overflow: hidden;
    border: 1px solid #cfe8da;
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.18), transparent 32%),
        linear-gradient(145deg, #f7fff9, #eefaf2);
}

.deals-ticket::before,
.deals-ticket::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: var(--paper);
    border: 1px solid #cfe8da;
    transform: translateY(-50%);
}

.deals-ticket::before {
    left: -14px;
}

.deals-ticket::after {
    right: -14px;
}

.deals-ticket-kicker {
    color: #237047;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.deals-ticket-value {
    color: #111823;
    font-size: clamp(34px, 4.8vw, 52px);
    font-weight: 800;
    line-height: 0.95;
}

.deals-ticket-code {
    width: fit-content;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px dashed #78b78f;
    border-radius: 999px;
    color: #237047;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.deals-claim-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 15px;
    background: #f5f5f7;
    color: var(--slate);
    font-size: 13px;
    font-weight: 650;
}

.deals-badge {
    flex: 0 0 auto;
    background: #e8f5e9;
    color: #2e7d32;
}

.viewer-stage .stage-item .booking-card,
.viewer-stage .stage-item .quest-card,
.viewer-stage .stage-item .fundloop-card,
.viewer-stage .stage-item .collaborate-card {
    display: flex;
    flex-direction: column !important;
    align-items: stretch !important;
    width: min(100%, 630px);
    min-width: 0;
    max-width: 630px;
    overflow: hidden;
    text-align: left !important;
    border-top: 1px solid #dedee2;
    border-radius: 26px;
}

.booking-card > *,
.quest-card > *,
.fundloop-card > *,
.collaborate-card > * {
    min-width: 0;
    max-width: 100%;
}

.booking-card .mockup-title,
.booking-card .mockup-desc,
.quest-card .mockup-title,
.quest-card .mockup-desc,
.fundloop-card .mockup-title,
.fundloop-card .mockup-desc,
.fundloop-card .mockup-raised,
.collaborate-card .mockup-title,
.collaborate-card .mockup-desc {
    overflow-wrap: break-word;
    word-break: normal;
}

.booking-card .mockup-primary-visual,
.quest-card .mockup-primary-visual,
.fundloop-card .mockup-primary-visual,
.collaborate-card .mockup-primary-visual {
    width: 100%;
}

.booking-panel,
.quest-panel,
.fundloop-panel,
.collaborate-panel {
    overflow: hidden;
    border: 1px solid #dedee2;
    border-radius: 20px;
    background: #f7f8fa;
}

.booking-panel {
    display: grid;
    gap: 14px;
    padding: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(244, 63, 94, 0.12), transparent 34%),
        linear-gradient(145deg, #fff8fa, #f5f7fb);
}

.booking-panel-top,
.quest-progress-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--slate);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.booking-days,
.booking-slots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.booking-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booking-days span,
.booking-slots span {
    display: grid;
    place-items: center;
    min-height: 46px;
    padding: 10px;
    border: 1px solid rgba(17, 24, 35, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    color: #1d1d1f;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.booking-days .is-selected,
.booking-slots .is-selected {
    border-color: #111823;
    background: #111823;
    color: #fff;
}

.quest-panel {
    display: grid;
    gap: 18px;
    padding: 24px;
    background:
        radial-gradient(circle at 16% 18%, rgba(168, 85, 247, 0.14), transparent 34%),
        linear-gradient(145deg, #fbf8ff, #f4f0ff);
}

.quest-map {
    display: grid;
    grid-template-columns: auto minmax(24px, 1fr) auto minmax(24px, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.quest-node {
    width: 34px;
    height: 34px;
    border: 2px solid #d8c7f4;
    border-radius: 999px;
    background: #fff;
}

.quest-node.is-complete {
    border-color: #7c3aed;
    background: #7c3aed;
}

.quest-node.is-active {
    border-color: #111823;
    background: #fff;
    box-shadow: inset 0 0 0 8px #111823;
}

.quest-path {
    height: 4px;
    border-radius: 999px;
    background: #d8c7f4;
}

.quest-progress-label strong {
    color: #111823;
    font-size: 16px;
}

.quest-progress,
.fundloop-progress {
    width: 100%;
}

.quest-progress .bar {
    background: #7c3aed;
}

.fundloop-panel {
    display: grid;
    gap: 18px;
    padding: 24px;
    background:
        radial-gradient(circle at 90% 8%, rgba(99, 102, 241, 0.13), transparent 34%),
        linear-gradient(145deg, #f8f9ff, #eef2ff);
}

.fundloop-meter {
    height: 18px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.16);
}

.fundloop-meter-fill {
    display: block;
    width: 84%;
    height: 100%;
    border-radius: inherit;
    background: #111823;
}

.fundloop-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.fundloop-stats span {
    display: grid;
    gap: 4px;
    min-height: 72px;
    padding: 14px;
    border: 1px solid rgba(17, 24, 35, 0.09);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--slate);
    font-size: 12px;
    font-weight: 700;
}

.fundloop-stats strong {
    color: #111823;
    font-size: clamp(21px, 2.6vw, 28px);
    line-height: 1;
}

.fundloop-card .mockup-raised {
    margin: -2px 0 0;
}

.fundloop-progress .bar {
    background: #6366f1;
}

.collaborate-panel {
    display: grid;
    gap: 20px;
    padding: 26px;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 205, 210, 0.42), transparent 30%),
        radial-gradient(circle at 88% 18%, rgba(187, 222, 251, 0.46), transparent 30%),
        linear-gradient(145deg, #fbfcff, #f2f5fa);
}

.collaborate-circles {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

.collaborate-circle {
    width: min(100%, 116px);
    aspect-ratio: 1;
    justify-self: center;
    border: 1px solid rgba(17, 24, 35, 0.08);
    border-radius: 999px;
    box-shadow: 0 18px 32px rgba(24, 32, 42, 0.1);
}

.collaborate-circle--one {
    background: linear-gradient(145deg, #ffd1d6, #ff9fb0);
}

.collaborate-circle--two {
    background: linear-gradient(145deg, #d8ecff, #9ac7ff);
}

.collaborate-link {
    width: 46px;
    height: 3px;
    border-radius: 999px;
    background: #111823;
}

.collaborate-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    color: var(--slate);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
}

.collaborate-split strong {
    padding: 8px 12px;
    border-radius: 999px;
    background: #111823;
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.04em;
}

/* Tablet/mobile: make the visual unmistakably present, then show all choices below it. */
@media (max-width: 900px) {
    .bridge-section {
        gap: 22px;
    }

    .viewer-wrapper {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        overflow: visible;
    }

    .viewer-stage {
        order: 1;
        width: 100%;
        min-width: 0;
    }

    .viewer-selectors {
        order: 2;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        overflow: visible;
        padding: 0;
        align-items: stretch;
    }

    .viewer-btn {
        width: 100%;
        min-width: 0;
        max-width: none;
        flex: none;
        white-space: normal;
    }

    .viewer-btn[aria-expanded="true"] {
        grid-column: 1 / -1;
        width: 100%;
        max-width: none;
        flex-basis: auto;
    }
}

@media (max-width: 600px) {
    .viewer-wrapper {
        width: calc(100% - 24px);
        margin-inline: 12px;
        padding: 18px;
        gap: 18px;
    }

    .viewer-selectors {
        grid-template-columns: minmax(0, 1fr);
    }

    .viewer-btn {
        width: max-content;
        max-width: 100%;
    }

    .viewer-btn[aria-expanded="true"] {
        width: 100%;
    }

    .viewer-stage {
        min-height: 460px;
        padding: 14px;
    }

    .viewer-stage .stage-item .tipjar-card {
        padding: 24px;
        border-radius: 20px;
    }

    .viewer-stage .stage-item .digital-product-card,
    .viewer-stage .stage-item .deals-card {
        padding: 24px;
        border-radius: 20px;
    }

    .digital-product-preview {
        min-height: 190px;
    }

    .digital-product-sheet {
        width: 86%;
        padding: 22px;
    }

    .digital-product-download {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        font-size: 21px;
    }

    .deals-ticket {
        min-height: 158px;
        padding: 22px;
    }

    .deals-claim-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .viewer-stage .stage-item .booking-card,
    .viewer-stage .stage-item .quest-card,
    .viewer-stage .stage-item .fundloop-card,
    .viewer-stage .stage-item .collaborate-card {
        padding: 24px;
        border-radius: 20px;
    }

    .booking-panel,
    .quest-panel,
    .fundloop-panel,
    .collaborate-panel {
        padding: 20px;
        border-radius: 18px;
    }

    .booking-panel-top,
    .quest-progress-label {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .booking-days span,
    .booking-slots span {
        min-height: 42px;
        padding: 8px;
        font-size: 13px;
    }

    .fundloop-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .collaborate-circles {
        gap: 8px;
    }

    .collaborate-link {
        width: 28px;
    }

    .collaborate-split {
        grid-template-columns: minmax(0, 1fr);
    }
}
