/* home.css: scroll-driven home page. Loaded after style.css on index.html only.
   Static by default. html.motion (set in <head> unless reduced motion is on)
   switches on the pinned and animated layouts; home.js drives them. */

/* --- ACT 1: LAYERED HERO --- */
.home .hero { min-height: 92vh; min-height: 92svh; isolation: isolate; padding-bottom: 160px; }
.hero-layer { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.layer-back { inset: -12% -4%; z-index: 0; }
.layer-back .hero-video { z-index: auto; }
.layer-mid { z-index: 1; }
.home .hero-content { z-index: 2; }
.layer-front { z-index: 3; }

.sticker {
    position: absolute; display: inline-block; border: var(--border); box-shadow: var(--shadow);
    font-family: var(--font-head); font-weight: 800; text-transform: uppercase; line-height: 1;
    padding: 12px 18px; white-space: nowrap;
}
.sticker-behind {
    top: 3%; right: 3%; transform: rotate(9deg); background: var(--lime);
    font-size: clamp(1.4rem, 3vw, 2.6rem); padding: 16px 24px; border-radius: 999px;
}
.sticker-suits { bottom: 36px; right: 2%; transform: rotate(-7deg); background: var(--pink); font-size: 1.2rem; }
.sticker-stack { bottom: 40px; left: 2%; transform: rotate(5deg); background: #fff; font-size: 1rem; }
@media (max-width: 1150px) { .sticker-stack { display: none; } }

/* --- ACT 2: THE TRAP --- */
.trap { max-width: 1100px; margin: 0 auto; padding: 16vh 20px 22vh; }
.trap-label {
    display: inline-block; margin: 0 0 30px; background: var(--purple); color: #fff; border: var(--border);
    padding: 5px 15px; font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
}
.trap-text {
    font-family: var(--font-head); font-weight: 700; font-size: clamp(1.7rem, 4.2vw, 3.4rem);
    line-height: 1.15; margin: 0 0 40px; letter-spacing: -0.5px;
}
.trap-punch {
    display: inline-block; margin: 0; background: var(--pink); border: var(--border); box-shadow: var(--shadow);
    padding: 10px 22px; font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
    font-size: clamp(1.5rem, 3.5vw, 2.6rem); transform: rotate(-2deg);
}
.motion .trap-text .w { opacity: 0.14; transition: opacity 0.25s linear; }
.motion .trap-text .w.lit { opacity: 1; }

/* --- ACT 3: THE HEADCOUNT COLLAPSE (PEAK) --- */
.collapse { background: var(--purple); color: #fff; border-top: var(--border); border-bottom: var(--border); }
.collapse-stage {
    display: flex; flex-direction: column; align-items: center; gap: 30px;
    padding: 80px 20px; text-align: center;
}
.collapse-captions h2 { font-size: clamp(1.8rem, 4.5vw, 3.6rem); }
.cap-after { margin-top: 10px; }
.crowd, .crew-card { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.crowd { max-width: 860px; }
.badge, .slot {
    display: inline-block; background: #fff; color: #000; border: 2px solid #000; border-radius: 50px;
    padding: 9px 16px; font-weight: 700; font-size: 1rem; line-height: 1.2; white-space: nowrap;
}
.badge { box-shadow: 3px 3px 0 #000; }
.badge.drop { background: var(--bg); text-decoration: line-through; }
.crew { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.crew-card {
    flex-direction: column; align-items: flex-start; gap: 10px; width: 270px;
    background: #fff; color: #000; border: var(--border); border-radius: var(--radius);
    padding: 18px; box-shadow: 6px 6px 0 var(--lime); text-align: left;
}
.crew-name { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: 1.15rem; margin-bottom: 4px; }
.slot { background: var(--lime); }
.collapse-note { font-size: 1.2rem; font-weight: 700; margin: 0; max-width: 640px; }
.collapse-note a { color: var(--lime); border-bottom: 3px solid var(--lime); white-space: nowrap; }
.collapse-note:focus-within { opacity: 1 !important; transform: none !important; }

/* Pinned version: one sticky stage, crowd and crew share the same spot. */
.motion .collapse { height: 320vh; }
.motion .collapse-stage {
    position: sticky; top: 0; height: 100vh; height: 100svh; justify-content: center;
    padding: 100px 20px 40px; overflow: hidden;
}
.motion .collapse-captions, .motion .collapse-arena { display: grid; }
.motion .collapse-captions > *, .motion .collapse-arena > * { grid-area: 1 / 1; }
.motion .collapse-arena { place-items: center; width: 100%; }
.motion .slot { visibility: hidden; }
.motion .badge { position: relative; z-index: 2; will-change: transform, opacity; font-size: 1.45rem; padding: 12px 24px; box-shadow: 4px 4px 0 #000; }
.motion .crowd { max-width: 1000px; gap: 22px 18px; }
.motion .badge.landed { background: var(--lime); }
.motion .crew { z-index: 1; }

/* --- ACT 4: THE WORK --- */
.work { max-width: 1200px; margin: 0 auto; padding: 120px 20px 80px; }
.work-title { font-size: clamp(2rem, 5vw, 3.8rem); max-width: 800px; margin-bottom: 70px; }
.work-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; margin-bottom: 100px; }
.work-row.flip .work-frame { order: 2; }
.work-frame {
    border: var(--border); border-radius: var(--radius); box-shadow: 8px 8px 0 #000;
    overflow: hidden; aspect-ratio: 4 / 3; background: #000;
}
.work-frame img { display: block; width: 100%; height: 124%; object-fit: cover; margin-top: -12%; will-change: transform; }
.work-row:nth-child(3) .work-frame { transform: rotate(-1.5deg); }
.work-row:nth-child(4) .work-frame { transform: rotate(1.5deg); }
.work-copy h3 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 15px; }
.work-copy p { font-size: 1.25rem; font-weight: 500; margin: 0 0 25px; max-width: 460px; }

/* --- ACT 5: MOMENTUM --- */
.motion .marquee-content { animation: none; will-change: transform; }

/* --- ACT 6: THE CLOSE --- */
.calm {
    background: var(--lime); border-top: var(--border); min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 100px max(20px, calc((100% - 1200px) / 2));
}
.calm-title { font-size: clamp(2.2rem, 7vw, 5.4rem); line-height: 0.95; margin-bottom: 40px; }
.calm-line { display: block; }
.calm-line .ch { display: inline-block; will-change: transform; }
.calm p { font-size: 1.4rem; font-weight: 500; max-width: 560px; margin: 0 0 40px; }
.btn-big { font-size: 1.6rem; padding: 20px 40px; }

/* --- MOBILE --- */
@media (max-width: 768px) {
    .sticker-stack { display: none; }
    .sticker-behind { top: 2%; right: -3%; font-size: 1.1rem; padding: 10px 16px; }
    .sticker-suits { bottom: 22px; right: 3%; font-size: 0.85rem; padding: 8px 11px; }
    .trap { padding: 12vh 16px 10vh; }
    .collapse-stage { gap: 20px; }
    .motion .collapse-stage { padding: 125px 12px 24px; }
    .badge, .slot { font-size: 0.85rem; padding: 6px 11px; }
    .motion .badge { font-size: 1rem; padding: 8px 14px; }
    .motion .crowd { gap: 12px 10px; }
    .crowd { gap: 8px; }
    .crew { gap: 12px; flex-wrap: nowrap; }
    .crew-card { width: auto; flex: 1; max-width: 170px; padding: 12px; gap: 7px; }
    .crew-name { font-size: 0.9rem; }
    .collapse-note { font-size: 1rem; }
    .work { padding: 80px 16px 40px; }
    .work-title { margin-bottom: 40px; }
    .work-row { grid-template-columns: minmax(0, 1fr); gap: 25px; margin-bottom: 70px; }
    .work-copy h3 { font-size: min(1.9rem, 7vw); }
    .work-row.flip .work-frame { order: 0; }
    .calm { padding: 80px 16px; }
    .btn-big { font-size: 1.2rem; padding: 16px 26px; }
}

/* Short or very narrow phones: tighten the collapse stage so it fits one screen. */
@media (max-width: 360px), (max-height: 640px) and (max-width: 768px) {
    .motion .collapse-stage { gap: 12px; padding-top: 118px; }
    .collapse-captions h2 { font-size: 1.35rem; }
    .motion .badge { font-size: 0.8rem; padding: 5px 10px; }
    .badge, .slot { font-size: 0.75rem; padding: 4px 9px; }
    .motion .crowd { gap: 8px 6px; }
    .crew-card { padding: 9px; gap: 5px; }
    .crew-name { font-size: 0.8rem; }
    .collapse-note { font-size: 0.85rem; }
}

