/* ============================================
   ANDACTION — COMING SOON
   Immersive Scroll-Based Cinematic Experience
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #0a0a0a;
    --color-white: #f5f5f5;
    --color-accent: #e50914;
    --color-grey: #888;
    --color-dark-grey: #1a1a1a;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    background: var(--color-bg);
    color: var(--color-white);
    font-family: var(--font-body);
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* --- CUSTOM CURSOR --- */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    pointer-events: none;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--color-white);
    border-radius: 50%;
    position: absolute;
    top: -4px;
    left: -4px;
    transition: transform 0.1s ease;
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    position: absolute;
    top: -20px;
    left: -20px;
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease, top 0.3s ease, left 0.3s ease;
}

.cursor.hovering .cursor-ring {
    width: 60px;
    height: 60px;
    top: -30px;
    left: -30px;
    border-color: var(--color-accent);
}

.cursor.hovering .cursor-dot {
    transform: scale(2);
    background: var(--color-accent);
}

/* --- NOISE OVERLAY --- */
.noise-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    animation: noiseMove 0.2s steps(2) infinite;
}

@keyframes noiseMove {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-5%, -5%); }
    50% { transform: translate(5%, 0%); }
    75% { transform: translate(0%, 5%); }
    100% { transform: translate(-5%, 5%); }
}

/* --- PRELOADER --- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.preloader-inner {
    text-align: center;
    z-index: 2;
}

.preloader-logo {
    margin-bottom: 2rem;
    overflow: hidden;
}

.preloader-logo-img {
    width: clamp(180px, 30vw, 350px);
    height: auto;
    opacity: 0;
    transform: translateY(30px);
    filter: brightness(0) invert(1);
}

.preloader-bar-container {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1px;
}

.preloader-bar {
    width: 0%;
    height: 100%;
    background: var(--color-white);
    transition: width 0.1s ease;
}

.preloader-percent {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--color-grey);
    margin-top: 1rem;
    font-weight: 300;
}

.preloader-wipe {
    position: absolute;
    inset: 0;
    background: var(--color-bg);
    transform: scaleY(0);
    transform-origin: bottom;
    z-index: 3;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
}

.hero-letterbox {
    position: absolute;
    left: 0;
    width: 100%;
    height: 12vh;
    background: var(--color-bg);
    z-index: 10;
}

.hero-letterbox--top {
    top: 0;
}

.hero-letterbox--bottom {
    bottom: 0;
}

/* --- HERO PANELS (pre-cropped diagonal images) --- */
.hero-panels {
    position: absolute;
    inset: 0 0 0 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.hero-panel {
    flex-shrink: 0;
    height: 100%;
    position: relative;
    will-change: transform, opacity;
    overflow: hidden;
}

/* Overlap: panels slide together (0.745 * 100vh) */
.hero-panel:not(:first-child) {
    margin-left: -74.5vh;
}

.hero-panel-img {
    height: 100%;
    width: auto;
    display: block;
    will-change: transform;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
}

.hero-panel:hover .hero-panel-img {
    transform: scale(1.04);
}

/* Single overlay covering all panels */
.hero-panels::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2;
    pointer-events: none;
}

/* --- HERO LOGO --- */
.hero-logo {
    position: relative;
    z-index: 20;
    text-align: center;
    will-change: transform, opacity;
}

.hero-logo-img {
    width: clamp(280px, 35vw, 550px);
    height: auto;
    filter: brightness(0) invert(1);
    pointer-events: none;
}

/* --- SCROLL INDICATOR --- */
.hero-scroll-indicator {
    position: absolute;
    bottom: 14vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
}

.hero-scroll-indicator span {
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    font-weight: 300;
    color: var(--color-grey);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, var(--color-white), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- TAGLINE SECTION --- */
.tagline-section {
    height: 300vh;
    position: relative;
}

.tagline-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tagline-content {
    text-align: center;
}

.tagline-line {
    overflow: hidden;
    perspective: 600px;
}

.tagline-line span {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(4rem, 15vw, 15rem);
    line-height: 1;
    letter-spacing: 0.05em;
    transform: translateY(100%) rotateX(-40deg);
    opacity: 0;
    will-change: transform, opacity;
}

.tagline-sub {
    margin-top: 2rem;
    overflow: hidden;
}

.tagline-sub p {
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 1.5vw, 1.2rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--color-grey);
    transform: translateY(100%);
    opacity: 0;
}

/* --- REEL SECTION (Horizontal Scroll) --- */
.reel-section {
    height: 400vh;
    position: relative;
}

.reel-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.reel-track {
    display: flex;
    gap: 3vw;
    padding: 0 5vw;
    will-change: transform;
}

.reel-item {
    flex-shrink: 0;
    width: 35vw;
    height: 55vh;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: none;
    will-change: transform;
}

.reel-item-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reel-item:hover .reel-item-img {
    transform: scale(1.08);
}

.reel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 60%);
    z-index: 1;
}

.reel-item-info {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 2;
}

.reel-item-number {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
}

.reel-item-info h3 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 0.05em;
}

.reel-progress {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 1px;
    overflow: hidden;
}

.reel-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--color-white);
    border-radius: 1px;
    will-change: width;
}

/* --- MANIFESTO SECTION --- */
.manifesto-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10vh 8vw;
    overflow: hidden;
}

.manifesto-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: clamp(2.5rem, 5vw, 4rem);
    box-shadow:
        0 0 80px rgba(229, 9, 20, 0.04),
        0 0 200px rgba(255, 255, 255, 0.02),
        inset 0 0 60px rgba(0, 0, 0, 0.4);
}

/* CRT scan lines */
.manifesto-content::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 4px
    );
    pointer-events: none;
    z-index: 10;
}

/* Vignette / screen glow */
.manifesto-content::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: radial-gradient(
        ellipse at center,
        transparent 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    pointer-events: none;
    z-index: 10;
}

/* Subtle screen flicker */
@keyframes screenFlicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.92; }
    94% { opacity: 1; }
    96% { opacity: 0.96; }
    97% { opacity: 1; }
}

.manifesto-text {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 2.5vw, 2.2rem);
    line-height: 1.6;
    font-weight: 300;
    animation: screenFlicker 6s ease-in-out infinite;
}

.manifesto-text .word {
    display: inline-block;
    opacity: 0.15;
    transition: opacity 0.3s ease;
    will-change: opacity;
}

.manifesto-text .word.active {
    opacity: 1;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

.manifesto-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: clamp(10rem, 25vw, 30rem);
    letter-spacing: 0.05em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.03);
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

/* --- COUNTDOWN SECTION --- */
.countdown-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 5vh 0;
}

.countdown-bg-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.countdown-bg-particles .particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--color-white);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    20% { opacity: 0.6; }
    80% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

.countdown-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.countdown-title {
    margin-bottom: 3rem;
}

.countdown-title-line {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 12rem);
    line-height: 0.9;
    letter-spacing: 0.05em;
    overflow: hidden;
}

.countdown-title-line:last-child {
    color: var(--color-accent);
    -webkit-text-stroke: 0;
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.countdown-unit {
    text-align: center;
}

.countdown-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    letter-spacing: 0.05em;
    position: relative;
}

.countdown-number::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 2px;
    background: var(--color-accent);
    opacity: 0.5;
}

.countdown-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--color-grey);
    margin-top: 0.75rem;
    font-weight: 300;
}

.countdown-separator {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--color-grey);
    opacity: 0.3;
    margin-top: -1.5rem;
}

/* --- NOTIFY FORM --- */
.notify-form {
    margin-top: 1rem;
}

.notify-input-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 4px;
    max-width: 450px;
    margin: 0 auto;
    transition: border-color 0.3s ease;
}

.notify-input-wrap:focus-within {
    border-color: var(--color-accent);
}

.notify-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    padding: 0.8rem 1.5rem;
    letter-spacing: 0.05em;
}

.notify-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.notify-btn {
    background: var(--color-white);
    color: var(--color-bg);
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    cursor: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.notify-btn:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

.notify-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.notify-btn:hover svg {
    transform: translateX(3px);
}

/* --- GLITCH LINES --- */
.countdown-glitch-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.countdown-glitch-lines::before,
.countdown-glitch-lines::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-accent);
    opacity: 0;
    animation: glitchLine 4s ease-in-out infinite;
}

.countdown-glitch-lines::before {
    top: 30%;
    animation-delay: 0s;
}

.countdown-glitch-lines::after {
    top: 70%;
    animation-delay: 2s;
}

@keyframes glitchLine {
    0%, 90%, 100% { opacity: 0; transform: translateX(-100%); }
    92% { opacity: 0.5; transform: translateX(0%); }
    95% { opacity: 0.3; transform: translateX(100%); }
}

/* --- FOOTER --- */
.footer {
    padding: 4rem 5vw 2rem;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-img {
    width: 150px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    font-weight: 600;
    padding: 0.8rem 1.2rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: none;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-white);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}

.social-link:hover {
    color: var(--color-bg);
    border-color: var(--color-white);
}

.social-link:hover::before {
    transform: scaleX(1);
}

.footer-bottom {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--color-grey);
    font-weight: 300;
}

/* --- RESPONSIVE --- */
/* --- MOBILE --- */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor {
        display: none !important;
    }
    .hero-logo-img {
        width: clamp(180px, 55vw, 300px);
    }

    .hero-panels {
        inset: 0;
        display: block;
    }

    /* All panels: absolute, sized to their quadrant */
    .hero-panel {
        position: absolute !important;
        margin-left: 0 !important;
        flex-shrink: unset;
        width: 55%;
        height: 50%;
    }

    .hero-panel-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    /* 2x2 diagonal grid - zero gaps */
    /* Top-left */
    .hero-panel:nth-child(1) {
        top: 0; left: 0;
        clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
    }

    /* Top-right */
    .hero-panel:nth-child(2) {
        top: 0; right: 0; left: auto;
        clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
    }

    /* Bottom-left */
    .hero-panel:nth-child(3) {
        bottom: 0; left: 0; top: auto;
        clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
    }

    /* Bottom-right */
    .hero-panel:nth-child(4) {
        bottom: 0; right: 0; top: auto; left: auto;
        clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
    }

    /* Overlay stays on top */
    .hero-panels::after {
        z-index: 3;
    }

    .hero-scroll-indicator {
        bottom: 3vh;
    }

    .countdown-timer {
        gap: 0.8rem;
    }

    .countdown-separator {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-logo-img {
        width: clamp(160px, 50vw, 250px);
    }

    .countdown-timer {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .countdown-separator {
        display: none;
    }

    .countdown-unit {
        width: 40%;
    }
}

/* --- UTILITY --- */
.magnetic-btn {
    will-change: transform;
}
