/* Slide 05: Let's work together. The words sit on a sticky stage; work-together.js paints the stack's die-cut stickers
   on a fixed canvas underneath. The section has no fill of its own: slide 04's backdrop canvas (.js-canvas) dithers
   out straight through it. The copy is fully visible without JS; .wt.is-armed hides it until the stage arrives. */

section.ll-section--together.wt {
    --wt-ink: #f4f2ea;
    --wt-hair: rgba(244, 242, 234, 0.3);
    --wt-sun: #FFED29;
    --wt-void: #000;
    --wt-mono: 'IBM Plex Mono', 'Sometype Mono', monospace;
    --wt-display: 'Brier', Georgia, serif;
    --wt-ease: cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    z-index: 2;
    height: 520vh;
    height: 520dvh;
    background: transparent;
    color: var(--wt-ink);
}

.wt *,
.wt *::before,
.wt *::after { box-sizing: border-box; }

.wt-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    isolation: isolate;
}

.wt-stage.is-visor-blur > *:not(.wt-glasses) {
    filter: blur(var(--wt-bg-blur, 0px));
    transition: filter 0.15s ease-out;
}

/* Viewport-fixed so the stickers can leave the stage and fall into the footer; JS clips it below slide 04 */
.wt-canvas {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    z-index: 0;
    pointer-events: none;
}

/* The reunited glasses (glasses-centrepiece.js): above the stickers, under the headline; viewport-fixed like them */
.wt-glasses {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s var(--wt-ease), visibility 0s linear 0.6s;
}
.wt-glasses.is-on { opacity: 1; visibility: visible; transition: opacity 0.6s var(--wt-ease); }

html.is-sticker-drag,
html.is-sticker-drag * {
    -webkit-user-select: none;
    user-select: none;
}

.wt-marks {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.wt-mark {
    position: absolute;
    width: 11px;
    height: 11px;
    margin: -5px 0 0 -5px;
    color: var(--wt-hair);
}
.wt-mark::before,
.wt-mark::after {
    content: '';
    position: absolute;
    background: currentColor;
}
.wt-mark::before { left: 5px; top: 0; width: 1px; height: 11px; }
.wt-mark::after { top: 5px; left: 0; height: 1px; width: 11px; }

/* ========================================================
   RUNNING MARQUEE BEHIND SPECTACLES (Slide 5 Background Stream)
   Boutique editorial typography moving Right to Left continuously
   ======================================================== */
.wt-marquee {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    padding: 3vh 0;
    opacity: 0;
    transition: opacity 0.8s var(--wt-ease);
}
.wt-marquee.is-visible {
    opacity: 1;
}

.wt-marquee__track {
    display: flex;
    width: max-content;
    white-space: nowrap;
    will-change: transform;
}

.wt-marquee__group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.wt-m-word {
    font-family: var(--wt-display), 'Brier', Georgia, serif;
    font-size: clamp(3.4rem, 8.8vw, 9.6rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1;
    color: var(--wt-ink);
    text-transform: uppercase;
    padding: 0 clamp(18px, 2.2vw, 40px);
}

.wt-m-accent {
    color: var(--wt-sun); /* #FFED29 */
    -webkit-text-stroke: 1.5px rgba(255, 237, 41, 0.9);
    text-shadow: 0 0 35px rgba(255, 237, 41, 0.35);
}

.wt-m-star {
    font-size: clamp(1.8rem, 3.8vw, 4.2rem);
    color: var(--wt-sun);
    padding: 0 clamp(10px, 1.2vw, 24px);
    opacity: 0.9;
    display: inline-block;
    transform: translateY(-0.06em);
}

.wt.is-end .wt-stage,
html.is-wt-end .wt-stage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
}

.wt-copy {
    position: absolute;
    left: 50%;
    top: calc(50% + 140px);
    z-index: 10;
    width: min(92vw, 1500px);
    transform: translate3d(-50%, -50%, 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    pointer-events: none;
}

.wt-kicker {
    margin: 0 0 clamp(18px, 2.6vh, 34px);
    font: 500 11px/1.5 var(--wt-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--wt-ink);
}

.wt-title {
    margin: 0;
    font-family: var(--wt-display) !important;
    font-weight: 700;
    font-size: clamp(52px, 8.2vw, 172px);
    line-height: 0.94;
    letter-spacing: -0.02em;
    color: var(--wt-ink);
    opacity: 0;
    will-change: opacity, transform;
}
.wt-title em {
    font-style: normal;
    color: var(--wt-sun);
}
.wt-char {
    display: inline-block;
    position: relative;
    vertical-align: baseline;
    will-change: transform, opacity;
    /* Each glyph carries its own soft halo, following its outline: a dark bed that lifts it off the dot field, a fine
       light bloom on the edge */
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8))
            drop-shadow(0 0 0.75px rgba(244, 242, 234, 0.6))
            drop-shadow(0 0 6px rgba(244, 242, 234, 0.26));
}
.wt-title em .wt-char {
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8))
            drop-shadow(0 0 0.75px rgba(255, 237, 41, 0.65))
            drop-shadow(0 0 7px rgba(255, 237, 41, 0.32));
}
.wt-char.wt-space {
    width: 0.28em;
}
.wt-ln {
    display: block;
    overflow: visible;
    padding: 0.06em 0.08em 0.14em;
    margin: -0.06em -0.08em -0.14em;
}
.wt-li { display: inline-block; }

.wt-cta {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.wt-cta__arrow {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #121316;
    color: var(--wt-ink);
    overflow: hidden;
    transition: background-color 0.4s var(--wt-ease), color 0.4s var(--wt-ease);
}
.wt-cta__arrow svg {
    width: 12px;
    height: 12px;
    transition: transform 0.55s var(--wt-ease);
}
.wt-cta:hover,
.wt-cta:focus-visible { background: var(--wt-sun); }
.wt-cta:hover .wt-cta__arrow svg,
.wt-cta:focus-visible .wt-cta__arrow svg { transform: translate3d(0, 0, 0) rotate(-45deg); }
.wt-cta:focus-visible { outline: 1px solid var(--wt-sun); outline-offset: 4px; }

/* Slide 06 End Screen Top Navigation & Scroll Progress Loader */
.wt-end-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 25;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(20px, 3.8vh, 38px) clamp(24px, 4.5vw, 64px);
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, -14px, 0);
    transition: opacity 0.5s var(--wt-ease), transform 0.5s var(--wt-ease);
}

.wt.is-end .wt-end-nav,
html.is-wt-end .wt-end-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
}

.wt-end-nav__left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.wt-scroll-cue {
    font: 600 clamp(10px, 0.88vw, 12px)/1 var(--wt-mono);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffffff;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.wt-scroll-cue::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--wt-sun);
    box-shadow: 0 0 8px var(--wt-sun);
    animation: wtPulse 1.8s infinite ease-in-out;
}

@keyframes wtPulse {
    0%, 100% { opacity: 0.45; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.25); box-shadow: 0 0 12px var(--wt-sun); }
}

.wt-scroll-loader {
    width: clamp(210px, 22vw, 320px);
    height: 4px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 237, 41, 0.28);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 0, 0, 0.4);
}

.wt-scroll-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--wt-sun);
    box-shadow: 0 0 10px rgba(255, 237, 41, 0.85), 0 0 20px rgba(255, 237, 41, 0.45);
    transform-origin: left center;
    transform: scaleX(0);
    will-change: transform;
    border-radius: 999px;
    transition: transform 0.04s linear;
}

.wt-end-nav__right {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.2vw, 32px);
}

.wt-end-nav__link {
    font: 500 clamp(10px, 0.88vw, 12px)/1 var(--wt-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(244, 242, 234, 0.78);
    text-decoration: none;
    position: relative;
    padding: 6px 0;
    transition: color 0.3s ease;
}

.wt-end-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--wt-sun);
    transform-origin: right center;
    transform: scaleX(0);
    transition: transform 0.35s var(--wt-ease);
}

.wt-end-nav__link:hover {
    color: #ffffff;
}

.wt-end-nav__link:hover::after {
    transform-origin: left center;
    transform: scaleX(1);
}

.wt-end-nav__link--contact {
    color: var(--wt-sun);
}

.wt-contact {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
html.is-wt-end .ap-nav__pill {
    animation: none;
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(-50%, -24px, 0);
    transition: clip-path 0.55s var(--nav-ease), opacity 0.4s ease, transform 0.6s var(--nav-ease), visibility 0s linear 0.4s;
}

.wt-sr {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Entrance, armed by JS: the kicker and CTA fade up, headline lines rise inside their masks */
.wt.is-armed .wt-kicker,
.wt.is-armed .wt-cta {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    transition: opacity 0.6s var(--wt-ease), transform 0.9s var(--wt-ease), background-color 0.4s var(--wt-ease), color 0.4s var(--wt-ease);
}
.wt.is-armed .wt-cta { pointer-events: none; }
.wt.is-armed .wt-li {
    transform: translate3d(0, 108%, 0);
    transition: transform 1.1s var(--wt-ease);
}
.wt.is-armed .wt-ln:nth-child(2) .wt-li { transition-delay: 0.08s; }
.wt.is-armed.is-in .wt-kicker,
.wt.is-armed.is-in .wt-cta {
    opacity: 1;
    transform: none;
}
.wt.is-armed.is-in .wt-cta { transition-delay: 0.22s, 0.22s, 0s, 0s; pointer-events: auto; }
.wt.is-armed.is-in .wt-li { transform: none; }

/* Footer links: no rule, no bar; they fade up over the floor the stickers land on */
.wt-stage .sig-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 28px;
    padding: 14px clamp(20px, 3.2vw, 56px) clamp(16px, 2.6vh, 28px);
    font: 500 11px/1.5 var(--wt-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0;
    will-change: transform, opacity;
    background: transparent;
}
.wt-stage .sig-copy { margin: 0; color: var(--wt-ink); }
.wt-stage .sig-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px clamp(18px, 2.4vw, 36px);
}
.wt-stage .sig-nav a {
    color: var(--wt-ink);
    text-decoration: none;
    transition: color 0.35s var(--wt-ease);
}
.wt-stage .sig-nav a:hover,
.wt-stage .sig-nav a:focus-visible { color: var(--wt-sun); }
.wt-stage .sig-nav a:focus-visible { outline: 1px solid var(--wt-sun); outline-offset: 4px; }

/* Redundant separate footer hidden - Slide 5 & 6 are unified */
footer.sig-footer {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

@media (max-width: 700px) {
    .wt-title { font-size: clamp(44px, 12.8vw, 70px); line-height: 0.96; }
    .wt-title em { display: block; }
    .wt-kicker { font-size: 10px; }
    .wt-stage .sig-bar { display: grid; grid-template-columns: 1fr auto; font-size: 10px; }
    .wt-stage .sig-nav { grid-column: 1 / -1; order: -1; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
    section.ll-section--together.wt { height: auto; }
    .wt-stage { position: relative; }
    .wt.is-armed .wt-kicker,
    .wt.is-armed .wt-cta,
    .wt.is-armed .wt-li {
        opacity: 1;
        transform: none;
        transition: none;
        pointer-events: auto;
    }
}
