/* ============================================
   opensource.bar - Street-Style Poster Design
   ============================================ */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Work Sans', sans-serif;
    font-size: 1.05rem;
    line-height: 1.65;
    font-weight: 400;
    color: #1D1D1D;
    background: #2A2D34;
}

/* --- Typography --- */
h2, h3, .hero-word, .footer-domain, .step-number {
    font-family: 'Bebas Neue', cursive;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 400;
}

/* --- Shake Animation --- */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 70% { transform: translateX(-2px); }
    40%, 60% { transform: translateX(1px); }
    50% { transform: translateX(-1px); }
}

/* --- Slide-in Animation --- */
@keyframes slideInFromLeft {
    from {
        transform: translateX(-100vw);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.band-content {
    transform: translateX(-100vw);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.8s ease;
}

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

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #2A2D34;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-word {
    display: block;
    line-height: 0.85;
    position: relative;
    z-index: 2;
}

.hero-open {
    font-size: clamp(4rem, 20vw, 20rem);
    color: #FAF3E8;
    margin-left: 3vw;
    margin-top: -2vh;
}

.hero-source {
    font-size: clamp(4rem, 20vw, 20rem);
    color: #E76F51;
    margin-left: 3vw;
}

.hero-bar {
    font-size: clamp(3rem, 14vw, 14rem);
    color: #E9C46A;
    text-align: right;
    margin-right: 5vw;
    margin-top: 2vh;
}

.hero-open:hover,
.hero-source:hover,
.hero-bar:hover {
    animation: shake 0.4s ease-in-out;
}

/* Hero botanical watermark */
.hero-botanical {
    position: absolute;
    right: 5vw;
    top: 10vh;
    width: 30vw;
    max-width: 400px;
    height: auto;
    color: #FAF3E8;
    opacity: 0.06;
    z-index: 1;
    pointer-events: none;
}

/* ============================================
   BAND SECTIONS (Full-Bleed Color Blocks)
   ============================================ */
.band {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* --- Burnt Sienna Band --- */
.band-sienna {
    background: #E76F51;
    color: #FAF3E8;
}

.band-sienna .band-heading {
    color: #FAF3E8;
}

/* --- Cream Band --- */
.band-cream {
    background: #FAF3E8;
    color: #1D1D1D;
}

.band-cream .band-heading {
    color: #1D1D1D;
}

.band-cream .botanical-watermark {
    color: #1D1D1D;
}

/* --- Saffron Gold Band --- */
.band-saffron {
    background: #F4A261;
    color: #1D1D1D;
}

.band-saffron .band-heading {
    color: #1D1D1D;
}

/* --- Band Content Layout --- */
.band-content {
    width: 100%;
    padding: 8vh 5vw;
    position: relative;
    z-index: 2;
}

.band-heading {
    font-size: clamp(2rem, 8vw, 6rem);
    margin-left: 0;
    margin-bottom: 3rem;
    line-height: 0.95;
}

.band-body {
    margin-left: 20vw;
    max-width: 600px;
}

.band-body p {
    margin-bottom: 1.2rem;
}

/* ============================================
   TORN-EDGE TRANSITIONS
   ============================================ */
.torn-top {
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 40px;
    z-index: 3;
}

.band-sienna .torn-top {
    background: #2A2D34;
    clip-path: polygon(
        0% 0%, 100% 0%,
        100% 30%, 97% 65%, 94% 40%, 90% 80%, 86% 50%, 82% 90%, 78% 45%,
        74% 75%, 70% 35%, 66% 85%, 62% 55%, 58% 100%, 54% 60%, 50% 90%,
        46% 40%, 42% 70%, 38% 30%, 34% 80%, 30% 50%, 26% 95%, 22% 55%,
        18% 75%, 14% 35%, 10% 85%, 6% 55%, 2% 70%, 0% 45%
    );
}

.band-cream .torn-top {
    background: #E76F51;
    clip-path: polygon(
        0% 0%, 100% 0%,
        100% 45%, 96% 70%, 92% 35%, 88% 85%, 84% 55%, 80% 95%, 76% 40%,
        72% 80%, 68% 50%, 64% 90%, 60% 30%, 56% 75%, 52% 45%, 48% 100%,
        44% 55%, 40% 80%, 36% 35%, 32% 70%, 28% 45%, 24% 90%, 20% 60%,
        16% 80%, 12% 40%, 8% 75%, 4% 50%, 0% 65%
    );
}

.band-saffron .torn-top {
    background: #FAF3E8;
    clip-path: polygon(
        0% 0%, 100% 0%,
        100% 55%, 95% 80%, 91% 40%, 87% 70%, 83% 35%, 79% 90%, 75% 50%,
        71% 85%, 67% 45%, 63% 75%, 59% 30%, 55% 95%, 51% 55%, 47% 80%,
        43% 40%, 39% 70%, 35% 50%, 31% 85%, 27% 35%, 23% 75%, 19% 45%,
        15% 90%, 11% 60%, 7% 80%, 3% 40%, 0% 70%
    );
}

#footer .torn-top-footer {
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 40px;
    z-index: 3;
    background: #F4A261;
    clip-path: polygon(
        0% 0%, 100% 0%,
        100% 40%, 96% 75%, 92% 50%, 88% 90%, 84% 45%, 80% 80%, 76% 35%,
        72% 70%, 68% 55%, 64% 95%, 60% 45%, 56% 80%, 52% 30%, 48% 70%,
        44% 50%, 40% 85%, 36% 40%, 32% 75%, 28% 55%, 24% 90%, 20% 50%,
        16% 70%, 12% 35%, 8% 80%, 4% 60%, 0% 50%
    );
}

/* ============================================
   ISOMETRIC ICONS
   ============================================ */
.iso-icon {
    position: absolute;
    z-index: 1;
    transition: transform 0.3s ease;
}

.iso-bracket {
    right: 8vw;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 140px;
}

.iso-icon:hover {
    transform: translateY(-50%) rotate(5deg);
}

/* ============================================
   BOTANICAL WATERMARKS
   ============================================ */
.botanical-watermark {
    pointer-events: none;
}

.band-botanical {
    position: absolute;
    left: 10%;
    top: 10%;
    width: 80%;
    height: 80%;
    opacity: 0.06;
    z-index: 1;
}

/* ============================================
   CASCADE STEPS (Band 3)
   ============================================ */
.cascade-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.cascade-step {
    padding: 2rem 3rem;
    position: relative;
}

.step-1 {
    margin-left: 5vw;
}

.step-2 {
    margin-left: 18vw;
}

.step-3 {
    margin-left: 31vw;
}

.step-number {
    font-size: clamp(2rem, 5vw, 4rem);
    color: #2A2D34;
    opacity: 0.25;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.step-title {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    margin-bottom: 0.8rem;
    color: #1D1D1D;
}

.cascade-step p {
    max-width: 480px;
    font-size: 1rem;
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
#footer {
    position: relative;
    background: #1D1D1D;
    padding: 6rem 5vw 4rem;
    overflow: hidden;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-domain {
    font-size: clamp(2rem, 6vw, 5rem);
    color: #E9C46A;
    margin-bottom: 1rem;
    line-height: 1;
    cursor: default;
}

.footer-domain:hover {
    animation: shake 0.4s ease-in-out;
}

.footer-tagline {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.05rem;
    color: #FAF3E8;
    opacity: 0.7;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-open,
    .hero-source {
        font-size: clamp(3rem, 18vw, 10rem);
    }

    .hero-bar {
        font-size: clamp(2.5rem, 14vw, 8rem);
    }

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

    .band-body {
        margin-left: 5vw;
        max-width: 90%;
    }

    .step-1,
    .step-2,
    .step-3 {
        margin-left: 3vw;
    }

    .cascade-step {
        padding: 1.5rem 2rem;
    }

    .iso-bracket {
        right: 3vw;
        width: 80px;
        height: 100px;
        opacity: 0.4;
    }

    .hero-botanical {
        width: 50vw;
        right: 2vw;
    }
}

@media (max-width: 480px) {
    .band-content {
        padding: 6vh 4vw;
    }

    .step-1,
    .step-2,
    .step-3 {
        margin-left: 0;
    }
}
