/* gabs.bar - Pastoral Transmission */
/* Fonts: IBM Plex Mono (data voice), DM Sans (human voice) */

:root {
    --void-base: #0a0e1a;
    --deep-ground: #131b2e;
    --twilight: #2a1f3d;
    --hill-dark: #1a2840;
    --deep-zone: #0d1224;
    --neon-meadow: #b4ff39;
    --neon-bloom: #ff2d7b;
    --transmission-cyan: #00e5ff;
    --pastoral-mist: #c8bfe7;
    --starlight: #e0f7fa;
    --deep-void: #08060f;
}

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

html {
    scroll-behavior: auto;
}

body {
    background-color: var(--void-base);
    color: var(--pastoral-mist);
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.85rem, 1.2vw, 1.05rem);
    letter-spacing: 0.02em;
    line-height: 1.85;
    overflow-x: hidden;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: var(--void-base);
}

/* Sky Strips */
.sky-strips {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;
    z-index: 1;
}

.sky-strip {
    position: absolute;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.sky-strip--1 {
    top: 0;
    height: 20%;
    background-color: var(--void-base);
    transition-delay: 0.3s;
}

.sky-strip--2 {
    top: 20%;
    height: 15%;
    background-color: #0f1528;
    transition-delay: 0.45s;
}

.sky-strip--3 {
    top: 35%;
    height: 15%;
    background-color: var(--twilight);
    transition-delay: 0.6s;
}

.sky-strip--4 {
    top: 50%;
    height: 10%;
    background-color: #1e1535;
    transition-delay: 0.75s;
}

.sky-strip--5 {
    top: 60%;
    height: 10%;
    background-color: var(--deep-ground);
    transition-delay: 0.9s;
}

.sky-strip.visible {
    opacity: 1;
}

/* Landscape Layers */
.landscape-layers {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    z-index: 2;
}

.landscape-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.landscape-layer.visible {
    opacity: 1;
    transform: translateY(0);
}

.landscape-layer--7 {
    z-index: 1;
    filter: brightness(0.6);
    transition-delay: 1.1s;
}

.landscape-layer--6 {
    z-index: 2;
    filter: brightness(0.65);
    transition-delay: 1.2s;
}

.landscape-layer--5 {
    z-index: 3;
    filter: brightness(0.7);
    transition-delay: 1.3s;
}

.landscape-layer--4 {
    z-index: 4;
    filter: brightness(0.8);
    transition-delay: 1.4s;
}

.landscape-layer--3 {
    z-index: 5;
    filter: brightness(0.85);
    transition-delay: 1.5s;
}

.landscape-layer--2 {
    z-index: 6;
    filter: brightness(0.9);
    transition-delay: 1.6s;
}

.landscape-layer--1 {
    z-index: 7;
    filter: brightness(1);
    transition-delay: 1.7s;
}

/* Constellation Title */
.constellation-title {
    position: absolute;
    top: 10%;
    left: 5%;
    width: 90%;
    height: 55%;
    z-index: 10;
}

.constellation-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.constellation-lines line {
    stroke: var(--transmission-cyan);
    stroke-width: 0.3;
    stroke-dasharray: 4 8;
    opacity: 0.3;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 2.5s ease;
}

.constellation-lines line.drawn {
    stroke-dashoffset: 0;
}

.constellation-letter {
    position: absolute;
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(3rem, 8vw, 7rem);
    color: var(--starlight);
    letter-spacing: -0.02em;
    z-index: 2;
    opacity: 0;
    filter: blur(4px);
    transition: opacity 0.6s ease, filter 0.6s ease;
    transform: translate(-50%, -50%);
}

.constellation-letter.visible {
    opacity: 1;
    filter: blur(0);
}

/* ========================================
   MEADOW SECTION
   ======================================== */

.meadow-section {
    position: relative;
    min-height: 100vh;
    padding: 15vh 0;
    background-color: var(--deep-ground);
    overflow: hidden;
}

.wildflower-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.wildflower {
    position: absolute;
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.4; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

.meadow-content {
    position: relative;
    z-index: 2;
    max-width: 60ch;
    margin-left: 25%;
    padding: 0 2rem;
}

.meadow-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.meadow-text.revealed {
    opacity: 1;
    transform: translateY(0);
}

.text-line {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.text-line.revealed {
    opacity: 1;
    transform: translateY(0);
}

.meta-label {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.7rem, 1vw, 0.8rem);
    color: var(--transmission-cyan);
    opacity: 0.6;
    margin-bottom: 1.5rem;
    letter-spacing: 0.04em;
}

/* ========================================
   GLITCH SECTION
   ======================================== */

.glitch-section {
    position: relative;
    min-height: 100vh;
    padding: 15vh 0;
    background-color: var(--deep-void);
    overflow: hidden;
}

.glitch-landscape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.glitch-layer {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: var(--deep-ground);
    transition: clip-path 0.6s ease;
}

.glitch-layer--top {
    top: 0;
    clip-path: inset(0 0 10% 0);
}

.glitch-layer--bottom {
    bottom: 0;
    clip-path: inset(10% 0 0 0);
}

.glitch-content {
    position: relative;
    z-index: 2;
    max-width: 60ch;
    margin-left: 25%;
    padding: 0 2rem;
}

.glitch-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.glitch-text.revealed {
    opacity: 1;
    transform: translateY(0);
}

.fragment-line {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.85rem, 1.2vw, 1.05rem);
    line-height: 2.2;
    color: var(--pastoral-mist);
    white-space: pre-wrap;
}

.fragment {
    transition: opacity 0.3s ease;
}

/* ========================================
   CLEARING SECTION
   ======================================== */

.clearing-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--void-base);
    overflow: hidden;
    padding: 10vh 2rem;
}

.clearing-landscape {
    position: absolute;
    bottom: 15%;
    left: 0;
    width: 100%;
    height: 40%;
    z-index: 1;
    pointer-events: none;
}

.clearing-hills {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.clearing-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 60ch;
}

.clearing-quote {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1.5s cubic-bezier(0.22, 1, 0.36, 1), transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.clearing-quote.revealed {
    opacity: 1;
    transform: scale(1);
}

.clearing-quote p {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    letter-spacing: -0.02em;
    line-height: 1.5;
    color: var(--starlight);
}

/* Footer */
.site-footer {
    position: absolute;
    bottom: 5vh;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 3;
}

.footer-horizon {
    width: 60%;
    height: 1px;
    background-color: var(--deep-ground);
}

.footer-light {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--neon-meadow);
    box-shadow: 0 0 8px var(--neon-meadow), 0 0 24px var(--neon-meadow);
}

.footer-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.7rem, 1vw, 0.8rem);
    color: var(--pastoral-mist);
    opacity: 0.4;
    letter-spacing: 0.04em;
}

/* ========================================
   GLITCH BAR POOL
   ======================================== */

.glitch-pool {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.glitch-bar {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

/* ========================================
   SCROLL REVEAL
   ======================================== */

.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .meadow-content,
    .glitch-content {
        margin-left: 15%;
    }
}

@media (max-width: 768px) {
    .landscape-layer--7,
    .landscape-layer--6,
    .landscape-layer--5 {
        display: none;
    }

    .constellation-letter {
        font-size: clamp(2rem, 10vw, 4rem);
    }

    .meadow-content,
    .glitch-content {
        margin-left: 5%;
        max-width: 90%;
    }

    .clearing-quote p {
        font-size: clamp(1.2rem, 5vw, 2rem);
    }

    .constellation-title {
        top: 15%;
        left: 2%;
        width: 96%;
    }
}
