@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: #0a0a0a;
    color: #fafafa;
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.65;
    letter-spacing: 0.005em;
    overflow-x: hidden;
    position: relative;
}

/* Aurora Background */
.aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
    transition: opacity 0.8s ease;
}

body.aurora-intense .aurora {
    opacity: 0.55;
}

.aurora-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: screen;
    will-change: transform;
}

.aurora-layer-1 {
    background: radial-gradient(ellipse 600px 400px at 30% 20%, #ff2d6f 0%, transparent 70%);
    animation: aurora-drift-1 25s ease-in-out infinite alternate;
}

.aurora-layer-2 {
    background: radial-gradient(ellipse 500px 500px at 70% 60%, #a6ff00 0%, transparent 70%);
    animation: aurora-drift-2 30s ease-in-out infinite alternate;
    opacity: 0;
    transition: opacity 1.5s ease;
}

body.aurora-phase-2 .aurora-layer-2 {
    opacity: 1;
}

.aurora-layer-3 {
    background: radial-gradient(ellipse 450px 350px at 50% 80%, #7b2dff 0%, transparent 70%);
    animation: aurora-drift-3 35s ease-in-out infinite;
    opacity: 0;
    transition: opacity 1.5s ease;
}

body.aurora-phase-3 .aurora-layer-3 {
    opacity: 1;
}

@keyframes aurora-drift-1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 5%) scale(1.1); }
}

@keyframes aurora-drift-2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-5%, -10%) scale(1.15); }
}

@keyframes aurora-drift-3 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(8%, -5%) scale(1.05); }
    66% { transform: translate(-5%, 8%) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Watermarks */
.watermark {
    position: fixed;
    font-family: 'Commissioner', sans-serif;
    font-weight: 900;
    font-size: clamp(15rem, 30vw, 40rem);
    color: rgba(255, 255, 255, 0.06);
    pointer-events: none;
    z-index: 1;
    line-height: 1;
    will-change: transform;
}

.watermark-1 { top: 5%; left: -5%; }
.watermark-2 { top: 30%; right: -10%; }
.watermark-3 { top: 55%; left: 10%; }
.watermark-4 { top: 80%; right: 5%; }

/* Floating Glyph */
.floating-glyph {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Commissioner', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #fafafa;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    z-index: 100;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-glyph:hover {
    transform: scale(1.15);
}

/* Scenes */
.scene {
    position: relative;
    z-index: 2;
    min-height: 100vh;
}

/* Scene 1: The Premise */
.scene-1 {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5vw;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.wordmark {
    font-family: 'Commissioner', sans-serif;
    font-weight: 800;
    font-size: clamp(4rem, 10vw, 9rem);
    letter-spacing: -0.04em;
    line-height: 0.95;
    color: #fafafa;
}

.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: letter-arrive 800ms cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.letter:nth-child(1) { animation-delay: 0ms; }
.letter:nth-child(2) { animation-delay: 120ms; }
.letter:nth-child(3) { animation-delay: 240ms; }
.letter:nth-child(4) { animation-delay: 360ms; }
.letter:nth-child(5) { animation-delay: 480ms; }
.letter:nth-child(6) { animation-delay: 600ms; }
.letter:nth-child(7) { animation-delay: 720ms; }
.letter:nth-child(8) { animation-delay: 840ms; }
.letter:nth-child(9) { animation-delay: 960ms; }

@keyframes letter-arrive {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-underline {
    width: 75%;
    height: 5px;
    background: #0a0a0a;
    margin-top: 1rem;
    background: #fafafa;
}

.hero-right {
    max-width: 400px;
}

.tagline-card {
    padding: 2rem;
}

.tagline {
    font-family: 'Commissioner', sans-serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(0.75rem, 1.1vw, 0.95rem);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #a6ff00;
    opacity: 0;
    animation: fade-in 1s ease forwards;
    animation-delay: 2s;
}

@keyframes fade-in {
    to { opacity: 1; }
}

/* Glass Card Base */
.glass-card {
    backdrop-filter: blur(16px) saturate(1.4);
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    outline: 4px solid #0a0a0a;
    border-radius: 0 16px 0 16px;
    transition: outline-width 200ms ease-out, transform 200ms ease-out, box-shadow 200ms ease-out;
}

.glass-card:hover {
    outline-width: 6px;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(166, 255, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Scene 2: Evidence */
.scene-2 {
    min-height: 100vh;
    padding: 10vh 5vw;
    display: flex;
    align-items: center;
}

.staircase-cards {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    width: 100%;
}

.stair-card {
    padding: 2.5rem 3rem;
    max-width: 500px;
    opacity: 0;
    transform: translateX(60px) rotate(-2deg);
    transition: opacity 800ms cubic-bezier(0.175, 0.885, 0.32, 1.275),
                transform 800ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stair-card.visible {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
}

.stair-card-1 { align-self: flex-start; }
.stair-card-2 { align-self: center; }
.stair-card-3 { align-self: flex-end; }

.card-label {
    font-family: 'Commissioner', sans-serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(0.75rem, 1.1vw, 0.95rem);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #a6ff00;
    display: block;
    margin-bottom: 1rem;
}

.card-body {
    color: #e8e8e8;
    font-size: clamp(0.9rem, 1.4vw, 1.1rem);
    line-height: 1.65;
}

/* Scene 3: Confrontation */
.scene-3 {
    min-height: 80vh;
    padding: 10vh 10vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confrontation-panel {
    width: 80%;
    max-width: 900px;
    padding: 4rem;
    text-align: center;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1000ms cubic-bezier(0.175, 0.885, 0.32, 1.275),
                transform 1000ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.confrontation-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.glyph-display {
    font-family: 'Commissioner', sans-serif;
    font-weight: 900;
    font-size: clamp(8rem, 20vw, 16rem);
    line-height: 1;
    background: linear-gradient(135deg, #ff2d6f, #a6ff00, #7b2dff, #ff6bcb);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 8s ease infinite;
    margin-bottom: 2rem;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.confrontation-text {
    color: #e8e8e8;
    max-width: 700px;
    margin: 0 auto;
}

/* Scene 4: Resolution */
.scene-4 {
    min-height: 80vh;
    padding: 10vh 5vw;
    position: relative;
}

.slash-motif {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 200px;
    z-index: 3;
    opacity: 0.7;
}

.resolution-panels {
    display: flex;
    gap: 3rem;
    align-items: stretch;
}

.resolution-left {
    flex: 0 0 55%;
    padding: 3rem;
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 800ms cubic-bezier(0.175, 0.885, 0.32, 1.275),
                transform 800ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.resolution-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.resolution-right {
    flex: 1;
    padding: 2rem;
    overflow: hidden;
    position: relative;
    min-height: 300px;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 800ms cubic-bezier(0.175, 0.885, 0.32, 1.275),
                transform 800ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.resolution-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.manifesto-text {
    color: #e8e8e8;
    margin-bottom: 1.5rem;
}

.aurora-viz {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 250px;
}

.viz-blob {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: screen;
    will-change: transform;
}

.viz-blob-1 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #ff2d6f 0%, transparent 70%);
    top: 10%;
    left: 20%;
    animation: viz-drift-1 6s ease-in-out infinite alternate;
}

.viz-blob-2 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #a6ff00 0%, transparent 70%);
    top: 40%;
    left: 50%;
    animation: viz-drift-2 8s ease-in-out infinite alternate;
}

.viz-blob-3 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #7b2dff 0%, transparent 70%);
    top: 60%;
    left: 30%;
    animation: viz-drift-3 7s ease-in-out infinite alternate;
}

@keyframes viz-drift-1 {
    to { transform: translate(30px, 20px) scale(1.2); }
}

@keyframes viz-drift-2 {
    to { transform: translate(-20px, -30px) scale(1.15); }
}

@keyframes viz-drift-3 {
    to { transform: translate(25px, -15px) scale(1.1); }
}

/* Scene 5: Silence */
.scene-5 {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10vh 5vw;
}

.knockout-text {
    font-family: 'Commissioner', sans-serif;
    font-weight: 800;
    font-size: clamp(4rem, 12vw, 10rem);
    letter-spacing: -0.04em;
    line-height: 0.95;
    background: linear-gradient(135deg, #ff2d6f, #a6ff00, #7b2dff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 3rem;
}

.closing-line {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.85rem;
    color: #ff2d6f;
    letter-spacing: 0.05em;
}

.void-space {
    height: 15vh;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-right {
        max-width: 100%;
    }

    .stair-card-1,
    .stair-card-2,
    .stair-card-3 {
        align-self: stretch;
        max-width: 100%;
    }

    .resolution-panels {
        flex-direction: column;
    }

    .resolution-left {
        flex: 1;
    }

    .confrontation-panel {
        width: 95%;
        padding: 2rem;
    }

    .slash-motif {
        display: none;
    }

    .aurora-layer-1 {
        background: radial-gradient(ellipse 300px 200px at 30% 20%, #ff2d6f 0%, transparent 70%);
    }

    .aurora-layer-2 {
        background: radial-gradient(ellipse 250px 250px at 70% 60%, #a6ff00 0%, transparent 70%);
    }

    .aurora-layer-3 {
        background: radial-gradient(ellipse 225px 175px at 50% 80%, #7b2dff 0%, transparent 70%);
    }
}
