/* ===================================================
   LLITTL.com — Neubrutalist Design System
   Palette: Complementary (Cerulean + Burnt Sienna)
   Layout: MA (Negative Space)
   Typography: Anybody / IBM Plex Sans / Fragment Mono
   =================================================== */

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

:root {
    --blue: #1B4D6E;
    --orange: #D4622A;
    --dark: #1E1E1E;
    --light: #F0EBE0;
    --ash: #9A9589;
    --vermillion: #FF3D1F;
    --ghost: #E8E3D9;
    --ink: #0D0D0D;

    --font-display: 'Anybody', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
    --font-mono: 'Fragment Mono', monospace;

    --ease-confident: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--light);
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.65;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    position: relative;
}

/* --- GHOST GRID OVERLAY --- */
.ghost-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0;
    padding: 0 48px;
}

.ghost-grid::before,
.ghost-grid::after {
    display: none;
}

/* Render grid lines via repeating-linear-gradient */
.ghost-grid {
    background-image: repeating-linear-gradient(
        to right,
        transparent,
        transparent calc((100% - 96px) / 12 - 0.5px),
        var(--ghost) calc((100% - 96px) / 12 - 0.5px),
        var(--ghost) calc((100% - 96px) / 12),
        transparent calc((100% - 96px) / 12)
    );
    background-position: 48px 0;
    background-size: calc(100% - 96px) 100%;
    background-repeat: no-repeat;
    opacity: 0.4;
}

/* --- STICKY HEADER --- */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--light);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 48px;
    border-bottom: 2px solid var(--ghost);
    transform: translateY(-100%);
    transition: transform 0.4s var(--ease-confident);
}

.sticky-header.visible {
    transform: translateY(0);
}

.sticky-wordmark {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 36px;
    font-stretch: 125%;
    color: var(--blue);
    letter-spacing: -0.02em;
}

/* --- HERO ZONE --- */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

.hero-coordinates {
    position: absolute;
    top: 48px;
    right: 48px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ash);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-wordmark {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(120px, 15vw, 280px);
    font-stretch: 150%;
    color: var(--blue);
    letter-spacing: -0.03em;
    line-height: 0.9;
    text-align: center;
    transition: transform 0.4s var(--ease-confident), opacity 0.4s var(--ease-confident);
    will-change: transform, opacity;
}

.hero-wordmark.scrolled {
    transform: scale(0.6) translateY(-40vh);
    opacity: 0;
}

.hero-underline {
    width: clamp(120px, 15vw, 280px);
    height: 6px;
    background-color: var(--orange);
    margin-top: 16px;
    transition: transform 0.4s var(--ease-confident), opacity 0.4s var(--ease-confident);
    will-change: transform, opacity;
    /* Scale to approximate wordmark width */
    transform: scaleX(4.5);
    transform-origin: center;
}

.hero-underline.scrolled {
    transform: scale(0.6) translateY(-40vh);
    opacity: 0;
}

.hero-tagline {
    position: absolute;
    bottom: 48px;
    left: 48px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ash);
    letter-spacing: 0.01em;
}

/* --- BREATHING ZONES --- */
.breathing-zone {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

.breathing-statement {
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--ash);
    text-align: center;
    max-width: 480px;
    line-height: 1.65;
    font-style: italic;
}

.node-graph {
    position: absolute;
    width: 400px;
    height: 300px;
    opacity: 0.5;
}

.node-graph--1 {
    top: 20%;
    right: 10%;
}

.node-graph--2 {
    width: 500px;
    height: 200px;
    top: 30%;
    left: 5%;
}

/* --- DATA FRAGMENTS --- */
.data-fragment {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ash);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.3;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.data-fragment--left {
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
}

.data-fragment--right {
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
}

/* --- PULSE DOTS --- */
.pulse-dots {
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.pulse-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--ash);
    animation: pulse-opacity 2s ease-in-out infinite;
}

.pulse-dot:nth-child(1) { animation-delay: 0ms; }
.pulse-dot:nth-child(2) { animation-delay: 150ms; }
.pulse-dot:nth-child(3) { animation-delay: 300ms; }
.pulse-dot:nth-child(4) { animation-delay: 450ms; }
.pulse-dot:nth-child(5) { animation-delay: 600ms; }

@keyframes pulse-opacity {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.6; }
}

/* --- CONTENT SECTIONS --- */
.content-section {
    position: relative;
    width: 100%;
    padding: 120px 48px;
    z-index: 1;
    transform: scale(0.97);
    transition: transform 0.6s var(--ease-confident);
}

.content-section.in-view {
    transform: scale(1);
}

.section-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 80px;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ash);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ash);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.content-section--blue .section-meta {
    padding-left: 24px;
    border-left: 6px solid var(--blue);
}

.content-section--orange .section-meta {
    padding-left: 24px;
    border-left: 6px solid var(--orange);
}

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 75%;
    font-size: clamp(48px, 6vw, 72px);
    color: var(--ink);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
    max-width: 800px;
}

.section-body {
    max-width: 640px;
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--ink);
    line-height: 1.65;
    letter-spacing: 0.01em;
}

.section-body p {
    margin-bottom: 1.5em;
}

.section-body p:last-child {
    margin-bottom: 0;
}

/* --- SECTION DECORATIONS --- */
.section-decoration {
    position: absolute;
    pointer-events: none;
}

/* Typographic Fragments */
.typo-fragment {
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 150%;
    font-size: 600px;
    line-height: 0.8;
    color: var(--ghost);
    opacity: 0.25;
    overflow: hidden;
    z-index: 0;
}

.typo-fragment--L {
    top: -80px;
    right: -60px;
    width: 400px;
    height: 500px;
    clip-path: inset(0 0 0 50%);
}

.typo-fragment--I {
    bottom: -100px;
    right: 100px;
    width: 300px;
    height: 500px;
    clip-path: inset(50% 0 0 0);
}

.typo-fragment--T {
    top: -60px;
    left: -40px;
    width: 500px;
    height: 400px;
    clip-path: inset(0 50% 50% 0);
}

/* Signal Traces */
.signal-trace {
    position: absolute;
    background-color: var(--blue);
    opacity: 0.15;
    z-index: 0;
}

.signal-trace--horizontal {
    bottom: 0;
    left: 48px;
    width: 60%;
    height: 2px;
}

.signal-trace--horizontal::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 2px;
    height: 40px;
    background-color: inherit;
}

.signal-trace--vertical {
    top: 80px;
    right: 120px;
    width: 2px;
    height: 200px;
}

.signal-trace--vertical::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: inherit;
}

/* Geometric Overlays */
.geometric-overlay {
    top: -20px;
    right: 80px;
    width: 200px;
    height: 200px;
}

.geometric-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--orange);
    position: absolute;
    top: 0;
    left: 0;
}

.geometric-overlay--2 {
    top: 40px;
    right: 60px;
    width: 200px;
    height: 200px;
}

.geometric-line {
    width: 160px;
    height: 2px;
    background-color: var(--blue);
    transform: rotate(-35deg);
    transform-origin: left center;
    position: absolute;
    top: 50%;
    left: 0;
}

/* --- COLLISION ZONES --- */
.collision-zone {
    position: relative;
    width: 100%;
    z-index: 2;
    overflow: visible;
}

.collision-block {
    position: relative;
    padding: 80px 48px;
}

.collision-block--blue {
    background-color: var(--blue);
    color: var(--light);
    z-index: 1;
}

.collision-block--orange {
    background-color: var(--orange);
    color: var(--ink);
    z-index: 2;
    margin-top: -80px;
    clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
}

.collision-block--orange-2 {
    z-index: 1;
    margin-top: 0;
    clip-path: none;
}

.collision-block--blue-2 {
    z-index: 2;
    margin-top: -100px;
    clip-path: polygon(0 0, 100% 8%, 100% 100%, 0 100%);
}

.collision-content {
    max-width: 640px;
    position: relative;
    z-index: 3;
}

.collision-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.7;
    display: block;
    margin-bottom: 24px;
}

.collision-heading {
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 75%;
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.collision-block--blue .collision-heading {
    color: var(--light);
}

.collision-block--orange .collision-heading {
    color: var(--ink);
}

.collision-zone p {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    letter-spacing: 0.01em;
}

.collision-block--blue p {
    color: var(--ghost);
}

.collision-block--orange p {
    color: var(--dark);
}

/* --- SCALE-HOVER INTERACTIONS --- */
.content-section:hover {
    transform: scale(1.015);
    box-shadow: 8px 8px 0 rgba(27, 77, 110, 0.2);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.collision-block:hover {
    transform: scale(1.015);
    transition: transform 0.2s ease-out;
}

/* Link hover underline expand */
a {
    color: var(--blue);
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: transform 0.2s ease-out;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--orange);
    transition: width 0.2s ease-out, left 0.2s ease-out;
}

a:hover {
    transform: scale(1.03);
}

a:hover::after {
    width: 100%;
    left: 0;
}

/* --- FOOTER COMPRESSION --- */
.footer-compression {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: var(--dark);
    padding: 24px 48px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 32px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-label {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--ash);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.footer-value {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--light);
    letter-spacing: 0.05em;
}

.footer-line {
    width: 100%;
    height: 1px;
    background-color: var(--ash);
    opacity: 0.3;
    margin: 16px 0;
}

.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright-text {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ash);
    letter-spacing: 0.05em;
}

.footer-copyright-year {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ash);
    letter-spacing: 0.05em;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .ghost-grid {
        padding: 0 24px;
        background-position: 24px 0;
        background-size: calc(100% - 48px) 100%;
    }

    .sticky-header {
        padding: 0 24px;
    }

    .hero-coordinates {
        top: 24px;
        right: 24px;
    }

    .hero-tagline {
        bottom: 24px;
        left: 24px;
    }

    .hero-underline {
        transform: scaleX(3);
    }

    .content-section {
        padding: 80px 24px;
    }

    .section-title {
        font-size: clamp(36px, 8vw, 60px);
    }

    .collision-block {
        padding: 60px 24px;
    }

    .footer-compression {
        padding: 24px;
        height: auto;
        min-height: 200px;
    }

    .footer-grid {
        gap: 12px 24px;
    }

    .data-fragment--left {
        left: 24px;
    }

    .data-fragment--right {
        right: 24px;
    }

    .typo-fragment {
        font-size: 400px;
    }

    .typo-fragment--L {
        right: -100px;
    }

    .typo-fragment--T {
        left: -80px;
    }
}

@media (max-width: 480px) {
    .hero-wordmark {
        font-stretch: 125%;
    }

    .hero-underline {
        transform: scaleX(2.5);
    }

    .section-meta {
        margin-bottom: 48px;
    }

    .typo-fragment {
        font-size: 280px;
    }

    .collision-block--orange {
        margin-top: -40px;
    }

    .collision-block--blue-2 {
        margin-top: -50px;
    }
}
