/* =========================================================
   recycle.report — Styles
   Palette: #FFF8F0, #E8DCF4, #A8C5A0, #F5C5A3, #5E3A6E,
            #D4E7F7, #E88B6E, #3D2A4A
   Fonts:   Albert Sans, Nunito Sans, DM Mono
   ========================================================= */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: #FFF8F0;
    color: #5E3A6E;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.1vw, 1.15rem);
    line-height: 1.72;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Noise texture overlay (recycled paper feel) ---- */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

/* ---- Typography ---- */
h1, h2, .data-card__number, .hero__tagline {
    font-family: 'Albert Sans', sans-serif;
}

.closing__year, .data-card__caption, .hero__scroll-text {
    font-family: 'DM Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.75rem, 0.85vw, 0.875rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ---- Morphing Background Blobs ---- */
.morph-blob {
    position: fixed;
    z-index: -1;
    border-radius: 60% 40% 70% 30% / 40% 50% 60% 50%;
    animation: morph 25s ease-in-out infinite;
    pointer-events: none;
    will-change: border-radius;
}

.morph-blob--1 {
    width: 600px;
    height: 600px;
    top: -100px;
    right: -150px;
    background: rgba(232, 220, 244, 0.2);
    animation-duration: 28s;
}

.morph-blob--2 {
    width: 450px;
    height: 450px;
    top: 50vh;
    left: -120px;
    background: rgba(168, 197, 160, 0.12);
    animation-duration: 22s;
    animation-delay: -5s;
}

.morph-blob--3 {
    width: 500px;
    height: 500px;
    top: 150vh;
    right: -80px;
    background: rgba(245, 197, 163, 0.1);
    animation-duration: 30s;
    animation-delay: -10s;
}

.morph-blob--4 {
    width: 700px;
    height: 700px;
    top: 350vh;
    left: -200px;
    background: rgba(94, 58, 110, 0.06);
    animation-duration: 26s;
    animation-delay: -15s;
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 70% 30% / 40% 50% 60% 50%;
    }
    25% {
        border-radius: 40% 60% 30% 70% / 55% 35% 65% 45%;
    }
    50% {
        border-radius: 55% 45% 60% 40% / 35% 65% 40% 60%;
    }
    75% {
        border-radius: 35% 65% 45% 55% / 60% 40% 55% 45%;
    }
    100% {
        border-radius: 60% 40% 70% 30% / 40% 50% 60% 50%;
    }
}

/* ---- Floating Bubbles ---- */
.bubbles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #D4E7F7, transparent 70%);
    border: 1px solid rgba(94, 58, 110, 0.08);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: bubbleFloat linear infinite;
    pointer-events: none;
    opacity: 0.7;
}

@keyframes bubbleFloat {
    0% {
        transform: translateY(110vh) translateX(0);
        opacity: 0;
    }
    5% {
        opacity: 0.7;
    }
    95% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-10vh) translateX(var(--drift, 30px));
        opacity: 0;
    }
}

/* ---- Pearlescent Sheen ---- */
.pearlescent-sheen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0.04;
    background: linear-gradient(var(--sheen-angle, 135deg), transparent 30%, rgba(212, 231, 247, 0.5) 50%, transparent 70%);
    transition: background 0.3s ease;
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 3;
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, #FFF8F0 0%, #E8DCF4 45%, #D4E7F7 100%);
    z-index: -1;
}

.hero__content {
    text-align: center;
    position: relative;
    z-index: 5;
    padding: 0 24px;
}

.hero__title {
    font-weight: 600;
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    letter-spacing: -0.02em;
    color: #5E3A6E;
    margin-bottom: 20px;
}

.hero__tagline {
    font-weight: 300;
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    color: #5E3A6E;
    opacity: 0.8;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 48px;
}

.hero__botanical {
    max-width: 320px;
    margin: 0 auto;
}

.botanical-svg--hero {
    width: 100%;
    height: auto;
}

.hero__scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 5;
}

.hero__scroll-text {
    color: #5E3A6E;
    opacity: 0.5;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #5E3A6E, transparent);
    opacity: 0.3;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 0.6; transform: scaleY(1.2); }
}

/* ---- SVG Drawing Animation ---- */
.svg-draw {
    stroke-dasharray: var(--path-length, 500);
    stroke-dashoffset: var(--path-length, 500);
    transition: stroke-dashoffset 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.svg-draw.drawn {
    stroke-dashoffset: 0;
}

/* =========================================================
   INTRODUCTION SECTION
   ========================================================= */
.introduction {
    position: relative;
    min-height: 100vh;
    padding: 120px 80px;
    z-index: 3;
}

.introduction__grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 64px;
    align-items: center;
}

.introduction__text p {
    font-family: 'Nunito Sans', sans-serif;
    font-size: clamp(1rem, 1.1vw, 1.15rem);
    line-height: 1.72;
    color: #5E3A6E;
    margin-bottom: 28px;
}

.introduction__text em {
    font-style: italic;
    color: #E88B6E;
}

.introduction__illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.botanical-svg--leaf {
    width: 200px;
    height: auto;
}

/* ---- Reveal animations ---- */
.reveal-paragraph {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 800ms cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 800ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* =========================================================
   INTERSTITIAL DIVIDERS
   ========================================================= */
.interstitial {
    position: relative;
    height: 40vh;
    min-height: 250px;
    overflow: hidden;
    z-index: 3;
}

.interstitial--1 {
    background: linear-gradient(165deg, #FFF8F0 0%, #E8DCF4 45%, #D4E7F7 100%);
}

.interstitial--2 {
    background: linear-gradient(165deg, #D4E7F7 0%, #E8DCF4 45%, #FFF8F0 100%);
}

/* =========================================================
   DATA SECTION
   ========================================================= */
.data-section {
    position: relative;
    padding: 120px 80px;
    min-height: 120vh;
    z-index: 3;
}

.data-card {
    max-width: 1400px;
    margin: 0 auto 80px;
    display: flex;
}

.data-card--left {
    justify-content: flex-start;
}

.data-card--right {
    justify-content: flex-end;
}

.data-card__inner {
    background: #F5C5A3;
    border-radius: 24px;
    padding: 56px 48px;
    max-width: 560px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 12px 24px;
    box-shadow: 0 20px 60px rgba(245, 197, 163, 0.15);
    position: relative;
    overflow: hidden;
}

/* Morph effect: card starts as circle, expands to rounded rect */
.reveal-card .data-card__inner {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    padding: 0;
    opacity: 0;
    overflow: hidden;
    transition: border-radius 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                width 700ms cubic-bezier(0.34, 1.56, 0.64, 1),
                height 700ms cubic-bezier(0.34, 1.56, 0.64, 1),
                padding 700ms cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 400ms ease;
}

.reveal-card.revealed .data-card__inner {
    border-radius: 24px;
    width: 100%;
    height: auto;
    padding: 56px 48px;
    opacity: 1;
}

.data-card__number {
    font-weight: 300;
    font-size: clamp(2.4rem, 5vw, 4rem);
    letter-spacing: -0.02em;
    color: #3D2A4A;
    grid-column: 1;
    grid-row: 1;
    line-height: 1.1;
}

.data-card__caption {
    grid-column: 1;
    grid-row: 2;
    color: #5E3A6E;
    opacity: 0.85;
    max-width: 320px;
}

.data-card__botanical {
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
}

.data-card__botanical .botanical-svg {
    width: 90px;
    height: auto;
}

/* =========================================================
   PULL QUOTE
   ========================================================= */
.pull-quote {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 48px;
    overflow: hidden;
    z-index: 3;
}

.pull-quote__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, #E8DCF4 0%, #D4E7F7 45%, #E8DCF4 100%);
    z-index: -1;
}

.pull-quote__content {
    max-width: 900px;
    text-align: center;
}

.pull-quote__text {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.6rem, 3vw, 2.8rem);
    line-height: 1.5;
    color: #5E3A6E;
    letter-spacing: -0.01em;
}

.quote-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.quote-word.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   DEEP SECTION
   ========================================================= */
.deep-section {
    position: relative;
    padding: 120px 80px;
    min-height: 160vh;
    z-index: 3;
}

.deep-section__grid {
    max-width: 1400px;
    margin: 0 auto;
}

.deep-section__content {
    max-width: 680px;
    margin: 0 auto;
}

.deep-section__title {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(1.6rem, 3vw, 2.8rem);
    letter-spacing: 0.01em;
    color: #5E3A6E;
    margin-bottom: 32px;
}

.deep-section__content p {
    font-family: 'Nunito Sans', sans-serif;
    color: #5E3A6E;
    margin-bottom: 28px;
}

.deep-section__inline-illustration {
    margin: 48px 0;
    overflow: visible;
}

.botanical-svg--inline {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* =========================================================
   CLOSING SECTION
   ========================================================= */
.closing {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    overflow: hidden;
    z-index: 3;
}

.closing__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, #D4E7F7 0%, #E8DCF4 45%, #FFF8F0 100%);
    z-index: -1;
}

.closing__content {
    text-align: center;
    position: relative;
    z-index: 5;
}

.closing__botanical {
    max-width: 280px;
    margin: 0 auto 40px;
}

.botanical-svg--closing {
    width: 100%;
    height: auto;
}

.closing__title {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: -0.02em;
    color: #5E3A6E;
    margin-bottom: 16px;
}

.closing__statement {
    font-family: 'Nunito Sans', sans-serif;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.72;
    color: #5E3A6E;
    opacity: 0.75;
    margin-bottom: 32px;
}

.closing__year {
    color: #E88B6E;
    opacity: 0.7;
}

/* =========================================================
   RESPONSIVE (Tablet)
   ========================================================= */
@media (max-width: 768px) {
    .introduction {
        padding: 80px 48px;
    }

    .introduction__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .introduction__illustration {
        order: -1;
    }

    .botanical-svg--leaf {
        width: 140px;
    }

    .data-section {
        padding: 80px 48px;
    }

    .data-card--left,
    .data-card--right {
        justify-content: center;
    }

    .data-card__inner {
        max-width: 100%;
    }

    .deep-section {
        padding: 80px 48px;
    }

    .deep-section__content {
        max-width: 100%;
    }

    .morph-blob {
        display: none;
    }
}

/* =========================================================
   RESPONSIVE (Mobile)
   ========================================================= */
@media (max-width: 480px) {
    .introduction {
        padding: 56px 24px;
    }

    .data-section {
        padding: 56px 24px;
    }

    .data-card__inner {
        padding: 36px 28px;
        grid-template-columns: 1fr;
    }

    .data-card__botanical {
        grid-column: 1;
        grid-row: auto;
        justify-content: flex-start;
    }

    .data-card__botanical .botanical-svg {
        width: 60px;
    }

    .reveal-card .data-card__inner {
        width: 60px;
        height: 60px;
    }

    .reveal-card.revealed .data-card__inner {
        padding: 36px 28px;
    }

    .deep-section {
        padding: 56px 24px;
    }

    .pull-quote {
        padding: 60px 24px;
    }

    .hero__botanical {
        max-width: 220px;
    }

    .closing__botanical {
        max-width: 200px;
    }
}
