/* ========================================
   luminous.day — Playful Botanical Luminescence
   ======================================== */

/* Custom Properties */
:root {
    --deep-canopy: #1B4332;
    --emerald-glow: #2D6A4F;
    --fern-light: #52B788;
    --spring-mist: #95D5B2;
    --morning-dew: #D8F3DC;
    --warm-ivory: #FEFAE0;
    --sun-flare: #DDA15E;
    --charcoal-bark: #344E41;

    --font-headline: 'Space Mono', monospace;
    --font-body: 'Outfit', sans-serif;
    --font-accent: 'Caveat', cursive;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--deep-canopy);
    background-color: var(--morning-dew);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ========================================
   Full-Bleed Bands
   ======================================== */
.band {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.band--hero {
    height: 100vh;
    background-color: var(--morning-dew);
    display: flex;
    align-items: center;
    justify-content: center;
}

.band--statement {
    height: 90vh;
    background-color: var(--warm-ivory);
    display: flex;
    align-items: center;
    justify-content: center;
}

.band--gallery {
    min-height: 120vh;
    background-color: var(--spring-mist);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8vh 0;
}

.band--reflection {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: reflectionGradient 8s ease infinite alternate;
}

@keyframes reflectionGradient {
    0% { background-color: var(--emerald-glow); }
    50% { background-color: var(--fern-light); }
    100% { background-color: var(--morning-dew); }
}

/* ========================================
   Light Gaps (200px gradient transitions)
   ======================================== */
.light-gap {
    height: 200px;
    width: 100%;
}

.light-gap--1 {
    background: linear-gradient(to bottom, var(--morning-dew), var(--warm-ivory));
}

.light-gap--2 {
    background: linear-gradient(to bottom, var(--warm-ivory), var(--spring-mist));
}

.light-gap--3 {
    background: linear-gradient(to bottom, var(--spring-mist), var(--emerald-glow));
}

/* ========================================
   Hero Band
   ======================================== */
.hero-word {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: clamp(4rem, 12vw, 9rem);
    letter-spacing: -0.03em;
    color: var(--deep-canopy);
    position: relative;
    z-index: 2;
    display: flex;
    user-select: none;
}

.hero-letter {
    display: inline-block;
    position: relative;
    background-clip: text;
    -webkit-background-clip: text;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-letter[data-index="0"] { color: var(--deep-canopy); }
.hero-letter[data-index="1"] { color: var(--emerald-glow); }
.hero-letter[data-index="2"] { color: var(--fern-light); }
.hero-letter[data-index="3"] { color: var(--spring-mist); }
.hero-letter[data-index="4"] { color: var(--deep-canopy); }
.hero-letter[data-index="5"] { color: var(--emerald-glow); }
.hero-letter[data-index="6"] { color: var(--fern-light); }
.hero-letter[data-index="7"] { color: var(--sun-flare); }

.hero-letter:hover {
    transform: translateY(-8px) scale(1.05);
}

/* Prismatic Fragments */
.prismatic-fragments {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.fragment {
    position: absolute;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.fragment--1 {
    width: 180px;
    height: 180px;
    top: 10%;
    left: 8%;
    background: rgba(82, 183, 136, 0.15);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: fragmentSpin1 50s linear infinite;
}

.fragment--2 {
    width: 140px;
    height: 100px;
    top: 15%;
    right: 12%;
    background: rgba(45, 106, 79, 0.12);
    clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);
    animation: fragmentSpin2 65s linear infinite;
}

.fragment--3 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 15%;
    background: rgba(149, 213, 178, 0.18);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: fragmentSpin1 80s linear infinite reverse;
}

.fragment--4 {
    width: 120px;
    height: 90px;
    bottom: 15%;
    right: 20%;
    background: rgba(82, 183, 136, 0.1);
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
    animation: fragmentSpin2 55s linear infinite;
}

.fragment--5 {
    width: 160px;
    height: 160px;
    top: 40%;
    left: 60%;
    background: rgba(45, 106, 79, 0.08);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: fragmentSpin1 70s linear infinite;
}

.fragment--6 {
    width: 100px;
    height: 100px;
    top: 60%;
    left: 5%;
    background: rgba(149, 213, 178, 0.12);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: fragmentSpin2 45s linear infinite reverse;
}

.fragment--7 {
    width: 130px;
    height: 80px;
    top: 5%;
    left: 45%;
    background: rgba(82, 183, 136, 0.1);
    clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
    animation: fragmentSpin1 60s linear infinite;
}

@keyframes fragmentSpin1 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fragmentSpin2 {
    from { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.05); }
    to { transform: rotate(360deg) scale(1); }
}

/* Leaf Vein Networks */
.leaf-vein-network {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.leaf-vein--hero {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    opacity: 0.15;
}

.leaf-vein--reflection {
    width: 80%;
    height: 50%;
    bottom: 5%;
    left: 10%;
    opacity: 0.12;
}

.vein-path {
    fill: none;
    stroke: var(--charcoal-bark);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vein-path.drawn {
    stroke-dashoffset: 0;
}

/* Photon Particles */
.photon {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--sun-flare);
    border-radius: 50%;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
}

.photon.visible {
    opacity: 1;
    animation: photonBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               photonFloat 3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s infinite alternate;
}

@keyframes photonBounce {
    0% { transform: scale(0) translateY(20px); opacity: 0; }
    60% { transform: scale(1.3) translateY(-5px); opacity: 1; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes photonFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-2px); }
}

/* ========================================
   Statement Band
   ======================================== */
.statement-content {
    max-width: 560px;
    position: relative;
    z-index: 2;
    padding: 0 2rem;
}

.statement-text {
    font-family: var(--font-headline);
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    line-height: 2;
    letter-spacing: 0.02em;
    color: var(--deep-canopy);
    text-align: left;
}

.wave-ribbons {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 1;
    pointer-events: none;
}

.wave-ribbon {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

.wave-ribbon--1 { stroke: var(--fern-light); stroke-opacity: 0.6; }
.wave-ribbon--2 { stroke: var(--spring-mist); stroke-opacity: 0.5; }
.wave-ribbon--3 { stroke: var(--emerald-glow); stroke-opacity: 0.4; }

.wave-ribbons--gallery {
    position: absolute;
    top: 0;
    bottom: auto;
}

/* ========================================
   Gallery Band
   ======================================== */
.hex-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hex-cell {
    fill: transparent;
    stroke: var(--spring-mist);
    stroke-opacity: 0.3;
    stroke-width: 1;
    transition: fill 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hex-cell.illuminated {
    fill: var(--morning-dew);
    fill-opacity: 0.6;
}

.gallery-compositions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    width: 90%;
    position: relative;
    z-index: 2;
}

.composition {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.composition--1 { transform: translateY(-30px); }
.composition--2 { transform: translateY(30px); }
.composition--3 { transform: translateY(-15px); }

/* Composition shapes */
.comp-shape {
    position: absolute;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.comp-shape--triangle-1 {
    width: 160px;
    height: 140px;
    background: rgba(82, 183, 136, 0.25);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 10%;
    left: 15%;
    filter: drop-shadow(4px 8px 16px rgba(45, 106, 79, 0.3));
    animation: fragmentSpin1 50s linear infinite;
}

.comp-shape--triangle-2 {
    width: 120px;
    height: 110px;
    background: rgba(149, 213, 178, 0.3);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 30%;
    right: 10%;
    filter: drop-shadow(4px 8px 16px rgba(82, 183, 136, 0.25));
    animation: fragmentSpin2 65s linear infinite;
}

.comp-shape--parallelogram-1 {
    width: 130px;
    height: 80px;
    background: rgba(45, 106, 79, 0.2);
    clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);
    bottom: 20%;
    left: 25%;
    filter: drop-shadow(4px 8px 16px rgba(27, 67, 50, 0.2));
    animation: fragmentSpin1 80s linear infinite reverse;
}

.comp-shape--circle-1 {
    width: 80px;
    height: 80px;
    background: rgba(82, 183, 136, 0.15);
    border-radius: 50%;
    bottom: 30%;
    right: 25%;
    filter: drop-shadow(2px 4px 12px rgba(82, 183, 136, 0.2));
}

.comp-shape--rect-1 {
    width: 140px;
    height: 100px;
    background: rgba(45, 106, 79, 0.2);
    top: 15%;
    left: 10%;
    filter: drop-shadow(4px 8px 16px rgba(45, 106, 79, 0.25));
    animation: fragmentSpin2 55s linear infinite;
}

.comp-shape--triangle-3 {
    width: 130px;
    height: 120px;
    background: rgba(82, 183, 136, 0.25);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 35%;
    right: 15%;
    filter: drop-shadow(4px 8px 16px rgba(82, 183, 136, 0.3));
    animation: fragmentSpin1 70s linear infinite;
}

.comp-shape--circle-2 {
    width: 100px;
    height: 100px;
    background: rgba(149, 213, 178, 0.25);
    border-radius: 50%;
    bottom: 15%;
    left: 20%;
    filter: drop-shadow(2px 4px 12px rgba(149, 213, 178, 0.3));
}

.comp-shape--parallelogram-2 {
    width: 110px;
    height: 70px;
    background: rgba(27, 67, 50, 0.12);
    clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
    bottom: 25%;
    right: 10%;
    animation: fragmentSpin2 60s linear infinite reverse;
}

.comp-shape--circle-3 {
    width: 140px;
    height: 140px;
    background: rgba(82, 183, 136, 0.2);
    border-radius: 50%;
    top: 10%;
    left: 20%;
    filter: drop-shadow(4px 8px 16px rgba(82, 183, 136, 0.25));
}

.comp-shape--triangle-4 {
    width: 110px;
    height: 100px;
    background: rgba(149, 213, 178, 0.25);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 40%;
    right: 10%;
    filter: drop-shadow(4px 8px 16px rgba(149, 213, 178, 0.25));
    animation: fragmentSpin1 65s linear infinite reverse;
}

.comp-shape--rect-2 {
    width: 120px;
    height: 80px;
    background: rgba(45, 106, 79, 0.15);
    bottom: 20%;
    left: 15%;
    filter: drop-shadow(4px 8px 16px rgba(45, 106, 79, 0.2));
    animation: fragmentSpin2 75s linear infinite;
}

.comp-shape--triangle-5 {
    width: 90px;
    height: 80px;
    background: rgba(27, 67, 50, 0.15);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    bottom: 10%;
    right: 20%;
    animation: fragmentSpin1 55s linear infinite;
}

.comp-label {
    font-family: var(--font-accent);
    font-size: clamp(0.9rem, 1.5vw, 1.3rem);
    letter-spacing: 0.03em;
    color: var(--charcoal-bark);
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    white-space: nowrap;
}

/* ========================================
   Reflection Band
   ======================================== */
.reflection-content {
    max-width: 560px;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    text-align: center;
}

.reflection-text {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(1rem, 1.15vw, 1.2rem);
    line-height: 1.75;
    letter-spacing: 0.01em;
    color: var(--deep-canopy);
}

.band--reflection .reflection-text {
    color: var(--warm-ivory);
}

.reflection-annotation {
    display: block;
    margin-top: 2rem;
    font-family: var(--font-accent);
    font-size: clamp(0.9rem, 1.5vw, 1.3rem);
    letter-spacing: 0.03em;
    color: var(--sun-flare);
}

/* ========================================
   Notebook Divider
   ======================================== */
.notebook-divider {
    width: 100%;
    border-top: 1px dashed var(--spring-mist);
    margin: 0;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    padding: 3rem 2rem;
    text-align: center;
    background-color: var(--deep-canopy);
}

.footer-text {
    font-family: var(--font-headline);
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--charcoal-bark);
}

/* ========================================
   Scroll Indicator
   ======================================== */
.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--sun-flare);
    z-index: 100;
    pointer-events: none;
    animation: scrollPulse 2s cubic-bezier(0.34, 1.56, 0.64, 1) infinite alternate;
}

@keyframes scrollPulse {
    0% {
        opacity: 0.4;
        transform: scale(1.0);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.15);
    }
}

/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .fragment,
    .comp-shape--triangle-1,
    .comp-shape--triangle-2,
    .comp-shape--parallelogram-1,
    .comp-shape--rect-1,
    .comp-shape--triangle-3,
    .comp-shape--parallelogram-2,
    .comp-shape--triangle-4,
    .comp-shape--rect-2,
    .comp-shape--triangle-5 {
        animation: none;
    }

    .photon.visible {
        animation: none;
        opacity: 1;
    }

    .scroll-indicator {
        animation: none;
        opacity: 0.6;
    }

    .band--reflection {
        animation: none;
        background-color: var(--emerald-glow);
    }

    .vein-path {
        stroke-dasharray: none;
        stroke-dashoffset: 0;
        transition: none;
    }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .gallery-compositions {
        grid-template-columns: 1fr;
        gap: 4rem;
        max-width: 400px;
    }

    .composition--1,
    .composition--2,
    .composition--3 {
        transform: none;
    }

    .hero-word {
        flex-wrap: wrap;
        justify-content: center;
    }

    .light-gap {
        height: 120px;
    }
}
