/* =============================================
   LLITTL.com — Brutalist Anti-Design
   ============================================= */

/* --- Custom Cursor (Crosshair in Safety Orange) --- */
*, *::before, *::after {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cline x1='10' y1='0' x2='10' y2='20' stroke='%23FF4400' stroke-width='1'/%3E%3Cline x1='0' y1='10' x2='20' y2='10' stroke='%23FF4400' stroke-width='1'/%3E%3C/svg%3E") 10 10, crosshair;
}

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

html {
    scroll-behavior: auto; /* No smooth scrolling — brutal */
}

body {
    background-color: #F0EDE8;
    color: #1A1A1A;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.85;
    letter-spacing: -0.01em;
    overflow-x: hidden;
    position: relative;
}

/* --- Selection styling --- */
::selection {
    background-color: #FF4400;
    color: #F0EDE8;
}

/* =============================================
   THE INDEX (Sticky Navigation-as-Content)
   ============================================= */
#the-index {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 200px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    z-index: 1000;
}

.index-item {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6B6B6B;
    padding: 8px 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    transition: color 0s;
}

.index-item:hover {
    color: #4A0E78;
}

.index-number {
    font-weight: 700;
    color: #1A1A1A;
    min-width: 24px;
}

.index-item.active .index-number {
    color: #FF4400;
    animation: blink 1s step-end infinite;
}

.index-label {
    flex: 1;
}

.index-page {
    color: #6B6B6B;
    font-size: 10px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* =============================================
   ZONES — General
   ============================================= */
.zone {
    position: relative;
    min-height: 100vh;
    padding-left: 220px;
    padding-right: 40px;
}

/* =============================================
   ZONE 1: THE DECLARATION (Hero)
   ============================================= */
#declaration {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100vh;
    padding-bottom: 80px;
    overflow: hidden;
}

.declaration-rule {
    position: absolute;
    top: 38%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #1A1A1A;
}

.hero-text {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 25vw;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    line-height: 0.85;
    color: #1A1A1A;
    margin-left: -2vw;
    margin-bottom: 0;
    /* Partially cropped by viewport */
    white-space: nowrap;
    overflow: hidden;
    /* Glitch animation — one-time */
    animation: glitch-stutter 0.24s ease-out 0.5s 1 both;
}

@keyframes glitch-stutter {
    0% { transform: translateX(0); color: #1A1A1A; }
    33% { transform: translateX(5px); color: #FF4400; }
    66% { transform: translateX(-3px); color: #FF4400; }
    100% { transform: translateX(0); color: #1A1A1A; }
}

.declaration-fragment {
    position: absolute;
    right: 40px;
    bottom: 120px;
    max-width: 320px;
    font-size: 15px;
    line-height: 1.85;
    color: #6B6B6B;
    text-transform: lowercase;
}

/* =============================================
   GHOST GLYPHS
   ============================================= */
.ghost-glyph {
    position: absolute;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 50vw;
    color: #E2DDD5;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
    line-height: 1;
    user-select: none;
}

.glyph-ampersand {
    top: 10%;
    right: -10%;
}

.glyph-asterisk {
    bottom: -15%;
    left: -5%;
}

.glyph-section {
    top: 5%;
    left: 60%;
}

/* =============================================
   VOID ZONES
   ============================================= */
.void-zone {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FAF8F5;
}

.void-period {
    font-family: 'Space Mono', monospace;
    font-size: 8vw;
    color: #1A1A1A;
    line-height: 1;
}

.void-line-zone {
    justify-content: flex-start;
    padding-top: 30vh;
}

.void-line {
    width: 40%;
    height: 1px;
    background-color: #000000;
    margin-left: 220px;
}

.void-border-zone {
    min-height: 80vh;
    background-color: #F0EDE8;
    border-left: 2px solid #000000;
    margin-left: 300px;
}

.void-border-element {
    display: none;
}

/* =============================================
   ZONE 2: THE COLLISION FIELD
   ============================================= */
.collision-zone {
    min-height: 150vh;
    position: relative;
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Grid Scar */
.grid-scar {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        to right,
        #000000 0px,
        #000000 0.5px,
        transparent 0.5px,
        transparent 80px
    ),
    repeating-linear-gradient(
        to bottom,
        #000000 0px,
        #000000 0.5px,
        transparent 0.5px,
        transparent 80px
    );
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
}

/* Collision Blocks */
.collision-block {
    position: absolute;
    border: 2px solid #1A1A1A;
    background-color: #F0EDE8;
    padding: 30px;
    z-index: 2;
}

.block-1 {
    top: 8%;
    left: 25%;
    width: 50%;
    max-width: 600px;
    transform: rotate(-2deg);
    z-index: 4;
}

.block-2 {
    top: 28%;
    left: 35%;
    width: 45%;
    max-width: 520px;
    transform: rotate(1.5deg);
    z-index: 3;
}

.block-3 {
    top: 55%;
    left: 22%;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-4deg);
    z-index: 5;
}

.block-4 {
    top: 60%;
    left: 50%;
    width: 40%;
    max-width: 480px;
    transform: rotate(2.5deg);
    z-index: 2;
}

.block-statement {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: clamp(24px, 4vw, 48px);
    letter-spacing: -0.03em;
    text-transform: uppercase;
    line-height: 1.1;
    color: #1A1A1A;
}

.block-body {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.85;
    letter-spacing: -0.01em;
    color: #1A1A1A;
    max-width: 520px;
}

.block-glyph {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 10vw;
    color: #1A1A1A;
    line-height: 1;
}

/* --- Reveal (binary, brutal) --- */
.reveal-block {
    opacity: 0;
    transition: opacity 0s;
}

.reveal-block.visible {
    opacity: 1;
}

/* =============================================
   REDACTION BARS
   ============================================= */
.redacted {
    background-color: #1A1A1A;
    color: #1A1A1A;
    padding: 2px 4px;
    transition: background-color 400ms ease-out, filter 400ms ease-out, color 400ms ease-out;
    filter: blur(0px);
    display: inline;
}

.redacted:hover {
    background-color: transparent;
    color: #1A1A1A;
    filter: blur(0px);
}

/* Initial redacted state — text hidden behind the bar */
.redacted {
    filter: blur(3px);
}

.redacted:hover {
    filter: blur(0px);
}

/* =============================================
   ZONE 4: THE MANIFESTO
   ============================================= */
.manifesto-zone {
    min-height: 130vh;
    padding-top: 120px;
    padding-bottom: 120px;
    position: relative;
}

.section-header {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 15vw;
    letter-spacing: -0.03em;
    text-transform: lowercase;
    color: #1A1A1A;
    line-height: 0.9;
    margin-bottom: 80px;
}

.manifesto-content {
    position: relative;
}

.manifesto-block {
    border: 2px solid #1A1A1A;
    background-color: #F0EDE8;
    padding: 40px;
    max-width: 520px;
    margin-bottom: 60px;
}

.manifesto-block-left {
    margin-left: 0;
    transform: rotate(-1deg);
}

.manifesto-block-right {
    margin-left: auto;
    margin-right: 40px;
    transform: rotate(1.5deg);
}

/* Pull Quote */
.pull-quote {
    padding: 60px 0;
}

.quote-text {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: 8vw;
    color: #4A0E78;
    line-height: 1;
    display: block;
    text-align: center;
}

/* =============================================
   THE FINAL BLOCK (Footer-That-Isn't)
   ============================================= */
.final-zone {
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 20px;
}

.final-block {
    padding: 40px;
}

.final-text {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 6vw;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: #1A1A1A;
    line-height: 1;
    margin-bottom: 16px;
}

.final-subtext {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #6B6B6B;
    line-height: 1.85;
}

/* =============================================
   GLITCH ARTIFACTS
   ============================================= */
.glitch-line {
    position: absolute;
    height: 2px;
    background-color: #FF4400;
    pointer-events: none;
    z-index: 100;
}

.glitch-1 {
    top: 15%;
    left: 10%;
    width: 45%;
}

.glitch-2 {
    top: 38%;
    left: 30%;
    width: 55%;
    height: 1px;
}

.glitch-3 {
    top: 62%;
    left: 5%;
    width: 35%;
}

.glitch-4 {
    top: 82%;
    left: 40%;
    width: 50%;
    height: 1px;
}

/* =============================================
   RESPONSIVE — "Break interestingly"
   ============================================= */
@media (max-width: 768px) {
    /* Index moves to horizontal strip at top */
    #the-index {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: auto;
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 12px 16px;
        gap: 16px;
        background-color: #F0EDE8;
        border-bottom: 1px solid #000000;
        z-index: 1000;
        white-space: nowrap;
    }

    .index-item {
        flex-shrink: 0;
        font-size: 10px;
    }

    .index-page {
        display: none;
    }

    .zone {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 60px;
    }

    /* Hero */
    .hero-text {
        font-size: 20vw;
        margin-left: 0;
    }

    .declaration-fragment {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 40px;
    }

    /* Collision blocks stack vertically */
    .collision-zone {
        min-height: auto;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .collision-block {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        max-width: 100%;
        transform: none;
        margin-bottom: 30px;
    }

    .block-3 {
        width: 120px;
        height: 120px;
    }

    /* Manifesto */
    .manifesto-block {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        transform: none;
    }

    .manifesto-block-right {
        margin-left: 0;
        margin-right: 0;
    }

    .section-header {
        font-size: 12vw;
    }

    /* No hover on mobile — redactions stay redacted */
    .redacted:hover {
        background-color: #1A1A1A;
        color: #1A1A1A;
        filter: blur(3px);
    }

    /* Ghost glyphs smaller */
    .ghost-glyph {
        font-size: 40vw;
    }

    .void-border-zone {
        margin-left: 20px;
    }
}
