/* dilemma.studio — Split-Screen Noir Cinema
   Palette: #0D0D12 #1A1A24 #FF4136 #A8B2C1 #FFB627 #F0EDE8 #6B6E75 #2ECC71
*/

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0D0D12;
    color: #F0EDE8;
    font-family: 'Source Serif 4', serif;
    font-weight: 400;
    font-size: clamp(1.1rem, 1.4vw, 1.3rem);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Noise Overlay */
#noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* The Divide Line */
#divide-line {
    position: fixed;
    left: 50%;
    top: 0;
    width: 1px;
    height: 100vh;
    background: #FF4136;
    z-index: 50;
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 1.5s ease;
    animation: dividePulse 4s ease-in-out infinite;
    animation-play-state: paused;
}

#divide-line.visible {
    transform: scaleY(1);
    animation-play-state: running;
}

#divide-line.healed {
    transform: scaleX(0);
    transition: transform 2s ease;
}

@keyframes dividePulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

/* Split Viewport */
.split-viewport {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.split-left {
    width: 50%;
    background: #0D0D12;
    position: relative;
    overflow: hidden;
}

.split-right {
    width: 50%;
    background: #1A1A24;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.split-right.visible {
    opacity: 1;
}

/* Hero */
.hero-left,
.hero-right {
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.hero-text-left {
    width: 100%;
    text-align: right;
    padding: 40px 40px 40px 20px;
}

.hero-text-right {
    width: 100%;
    text-align: left;
    padding: 40px 20px 40px 40px;
}

.hero-title-left {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 0.08em;
    color: #FF4136;
    opacity: 0;
    filter: blur(6px);
    transition: opacity 0.8s ease, filter 0.8s ease;
}

.hero-title-left.visible {
    opacity: 1;
    filter: blur(0);
}

.hero-title-right {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 0.08em;
    color: #A8B2C1;
    opacity: 0;
    filter: blur(6px);
    transition: opacity 0.8s ease, filter 0.8s ease;
}

.hero-title-right.visible {
    opacity: 1;
    filter: blur(0);
}

.hero-tagline {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #6B6E75;
    margin-top: 16px;
}

/* Showcase Sections */
.showcase {
    min-height: 120vh;
}

.showcase-content {
    padding: 80px 40px;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.left-aligned {
    text-align: right;
    padding-right: 48px;
    transform: translateX(20px);
}

.right-aligned {
    text-align: left;
    padding-left: 48px;
    transform: translateX(-20px);
}

.showcase-content.visible {
    opacity: 1;
    transform: translateX(0);
}

.choice-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #FFB627;
    display: block;
    margin-bottom: 16px;
}

.showcase-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: 0.08em;
    color: #F0EDE8;
    margin-bottom: 24px;
}

.showcase-body {
    color: #F0EDE8;
    max-width: 400px;
    margin-bottom: 32px;
}

.left-aligned .showcase-body {
    margin-left: auto;
}

/* Fork Section */
.fork-viewport {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0D0D12;
    overflow: hidden;
}

.fork-svg {
    position: absolute;
    width: 80%;
    height: 80%;
    z-index: 1;
}

.fork-path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 2s ease;
}

.fork-path.drawn {
    stroke-dashoffset: 0;
}

.fork-title {
    position: absolute;
    top: 15%;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fork-title.visible {
    opacity: 1;
}

.fork-title-left {
    left: 10%;
}

.fork-title-right {
    right: 10%;
}

.fork-game-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 0.08em;
    color: #F0EDE8;
}

.fork-center-point {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #FF4136;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255, 65, 54, 0.5);
    z-index: 2;
}

/* Footer Verdict */
#footer-verdict {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0D0D12;
    transition: background 2s ease;
    text-align: center;
}

.verdict-content {
    opacity: 0;
    transition: opacity 1s ease;
}

.verdict-content.visible {
    opacity: 1;
}

.verdict-word {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #2ECC71;
}

.verdict-meta {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #6B6E75;
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .split-viewport {
        flex-direction: column;
    }

    .split-left,
    .split-right {
        width: 100%;
    }

    #divide-line {
        display: none;
    }

    .left-aligned {
        text-align: left;
        padding: 40px 24px;
    }

    .right-aligned {
        text-align: left;
        padding: 40px 24px;
    }

    .hero-text-left {
        text-align: center;
        padding: 40px 24px;
    }

    .hero-text-right {
        text-align: center;
        padding: 40px 24px;
    }

    .showcase {
        min-height: auto;
    }
}
