#together-scene {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #ffffff;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
}

/* Loader — injected by JS, removed once fonts+images are ready */
#sop-loader { pointer-events: none; }

.scene-boundary {
    position: relative;
    width: 80vw;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: auto;
}

.text-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding-top: 3vh;
    z-index: 10;
    pointer-events: none;
}

.hero-text {
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Each line is its own nowrap row — line breaks are fixed by the HTML,
   not by available width. Font scales with vw so the whole block
   shrinks/grows as one unit without ever reflowing. */
#together-scene .text-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    font-size: clamp(18px, 3.2vw, 70px);
    color: #1a2a5e;
    text-transform: uppercase;
    line-height: 1.25;
    font-weight: 300;
    letter-spacing: 0.02em;
    width: 100%;
    white-space: nowrap;
}

#together-scene .text-row > * {
    margin: 0.06em 0.5vw;
    flex-shrink: 0;
}

#together-scene .txt-word {
    color: #1a2a5e;
    display: inline-block;
    font-weight: 300;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-variation-settings: 'wght' 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-synthesis: none;
}

.img-wrap {
    position: relative;
    display: inline-block;
    width: clamp(28px, 2.6vw, 58px);
    height: clamp(28px, 2.6vw, 58px);
    flex-shrink: 0;
}

.photo-component-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    pointer-events: auto;
}

.active-photo {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    text-decoration: none;
    will-change: transform;
}

.photo-shimmer {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: sway-float 6s ease-in-out infinite alternate;
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: #1a2a5e;
    mix-blend-mode: multiply;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.photo-expand-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(20px, 1.6vw, 28px);
    height: clamp(20px, 1.6vw, 28px);
    color: white;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    user-select: none;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.photo-expand-icon svg { display: block; width: 100%; height: 100%; }

.dynamic-photo-label {
    position: absolute;
    left: -50%;
    width: 200%;
    top: 100%;
    margin-top: 12px;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #1a2a5e;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.01em;
    text-transform: none;
    white-space: normal;
    text-align: left;
    will-change: transform, opacity;
    -webkit-font-smoothing: antialiased;
}

.dynamic-photo-label b { font-weight: 700 !important; }

@keyframes sway-float {
    0%   { transform: translate(0px, 0px) rotate(0deg); }
    50%  { transform: translate(2px, -4px) rotate(0.5deg); }
    100% { transform: translate(-3px, 2px) rotate(-0.5deg); }
}

#center-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    z-index: 5;
    width: 100%;
    pointer-events: none;
}

.center-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #1a2a5e;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: clamp(24px, 2.2vw, 42px);
    margin: 0;
    white-space: nowrap;
}

.center-cta {
    font-family: 'Inter', sans-serif;
    display: block;
    font-size: clamp(11px, 0.95vw, 15px);
    color: #1a2a5e;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 12px;
    font-weight: 500;
}

#center-bodycopy {
    font-family: 'Inter', sans-serif;
    font-size: clamp(13px, 1vw, 17px);
    color: rgba(130, 130, 130, 1);
    max-width: 28vw;
    text-align: center;
    line-height: 1.65;
    margin: clamp(18px, 2.2vh, 30px) auto 0 auto;
    font-weight: 400;
    letter-spacing: 0em;
}

.sub-text {
    font-size: clamp(12px, 0.8vw, 16px);
    color: rgba(115, 115, 115, 1);
    width: 100%;
    max-width: 35vw;
    text-align: center;
    line-height: 1.6;
    margin: clamp(15px, 2vh, 30px) 0 0 0;
}

/* Icon mode — same spacing as sub-text, centred */
.sub-icon-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin-top comes from the inherited .sub-text rule above */
    pointer-events: none;
}
.sub-icon-wrap .sub-icon-img {
    display: block;
    max-width: 100%;
    height: auto;
}

.final-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

/* Position is set inline by scene.js (left/top in %). */
.target-pad {
    position: absolute;
    width: clamp(56px, 4.2vw, 96px);
    height: clamp(56px, 4.2vw, 96px);
    transform: translate(-50%, -50%);
    visibility: hidden;
}

#mobile-carousel { display: none; }

@media (max-width: 1024px) or (orientation: portrait) {
    #together-scene {
        height: auto !important;
        min-height: 0;
        overflow: visible !important;
        display: block;
    }
    .scene-boundary {
        width: 100%;
        height: auto;
        display: block;
        position: static;
        margin: 0;
    }
    /* The whole desktop hero (headline, scatter, center text) is hidden on mobile. */
    .text-container,
    #center-content,
    .final-grid { display: none !important; }

    #mobile-carousel {
        display: block;
        width: 100%;
        padding: 16px 0 20px;
        box-sizing: border-box;
        font-family: 'Inter', sans-serif;
    }
    .m-head { padding: 0 24px 22px; text-align: center; }
    .m-title {
        font-weight: 600;
        color: #1a2a5e;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        font-size: clamp(22px, 6vw, 30px);
        margin: 0 0 14px;
    }
    .m-body {
        font-size: 15px;
        line-height: 1.6;
        color: rgba(120, 120, 120, 1);
        margin: 0 auto;
        max-width: 520px;
    }
    .m-track {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 7.5vw;
        position: relative;
    }
    .m-track::-webkit-scrollbar { display: none; }
    .m-slide {
        flex: 0 0 85vw;
        scroll-snap-align: center;
        text-decoration: none;
        color: #1a2a5e;
        display: block;
    }
    .m-slide-img {
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        object-fit: cover;
        object-position: center;
        display: block;
        border-radius: 2px;
        background: #f2f2f2;
    }
    .m-slide-label {
        font-size: 15px;
        line-height: 1.4;
        color: #1a2a5e;
        margin-top: 14px;
        padding: 0 2px;
    }
    .m-slide-label b { font-weight: 700; }
    .m-dots {
        display: flex;
        justify-content: center;
        gap: 9px;
        margin-top: 18px;
    }
    .m-dot {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        border: none;
        padding: 0;
        background: #cfd2dd;
        cursor: pointer;
        transition: background .2s, transform .2s;
    }
    .m-dot.active { background: #1a2a5e; transform: scale(1.15); }
}
