:root {
    --ww-black: #080808;
    --ww-white: #ffffff;
    --ww-muted: #6f6f6f;
    --ww-border: rgba(0, 0, 0, 0.12);
    --ww-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: auto;
}

body {
    color: var(--ww-black);
    background: var(--ww-white);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-rendering: optimizeLegibility;
}

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

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.site-main {
    overflow: clip;
}

.section-padding {
    padding: clamp(5rem, 10vw, 10rem) 0;
}

.container-narrow {
    max-width: 860px;
}

.section-kicker {
    margin-bottom: 1rem;
    color: var(--ww-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.post-card {
    color: inherit;
    border-bottom: 1px solid var(--ww-border);
    padding-bottom: 2rem;
}

.video-scroll-section {
    position: relative;
    min-height: 420vh;
    background: #000;
}

.video-scroll-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #fff;
}

.video-scroll-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.92;
}

.video-scroll-overlay {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 2rem));
    padding-top: 5rem;
    mix-blend-mode: difference;
}

.video-scroll-overlay h1 {
    max-width: 11ch;
    line-height: 0.92;
    letter-spacing: -0.06em;
}

.demo-slide {
    min-height: 420px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 1.5rem;
    font-size: clamp(2rem, 6vw, 6rem);
}

[data-scroll-reveal] {
    visibility: hidden;
}

.scroll-reveal-ready {
    visibility: visible;
}

.scroll-reveal-word {
    display: inline-block;
    will-change: opacity, filter, transform;
}

.falling-text-ready {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.18em;
    cursor: default;
}

.falling-text-word {
    display: inline-block;
    will-change: transform, opacity;
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(24px);
}

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

    [data-scroll-reveal] {
        visibility: visible;
    }
}

/* Three-phase pinned video sequence */
.ww-video-sequence {
    position: relative;
    min-height: 100vh;
    background: #000;
    overflow: clip;
}

.ww-video-sequence__stage {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
    isolation: isolate;
}

.ww-video-sequence__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    will-change: opacity;
}

.ww-video-sequence__media.is-active {
    opacity: 1;
    visibility: visible;
}

.ww-video-sequence__wipe {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
}

.ww-video-sequence__wipe svg {
    width: 130vmax;
    height: 130vmax;
    max-width: none;
    max-height: none;
    display: block;
    filter: drop-shadow(0 2rem 6rem rgba(0, 0, 0, 0.28));
}

@media (max-width: 767.98px) {
    .ww-video-sequence__wipe svg {
        width: 165vmax;
        height: 165vmax;
    }
}
