/* recycle.wiki - Hexagonal Honeycomb Design */
/* Colors: #FAF9F7, #FF9A76, #FFF8F0, #D4584B, #FF6B4A, #FDB833, #6B8E7F */
/* Fonts: Poppins (headlines), Mulish (body), Space Mono (meta/labels) */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Mulish', sans-serif;
    background-color: #FAF9F7;
    color: #FAF9F7;
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.5;
    font-size: 16px;
}

/* Generative Canvas Background */
#generative-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Floating Title */
.floating-title {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    text-align: center;
    pointer-events: none;
    mix-blend-mode: difference;
}

.site-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #FAF9F7;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.site-title .dot {
    color: #FF6B4A;
}

.site-tagline {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #FF9A76;
    margin-top: 4px;
    opacity: 0.8;
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 1;
    transition: opacity 0.6s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

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

.scroll-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #FF9A76;
}

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

/* Hexagonal Grid Container */
.hex-grid-container {
    position: relative;
    z-index: 10;
    padding: 140px 20px 120px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hex Clusters */
.hex-cluster {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 80px;
    position: relative;
}

.hex-cluster:last-child {
    margin-bottom: 40px;
}

/* Hexagon Shape via clip-path */
.hexagon {
    position: relative;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    cursor: pointer;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
    will-change: transform, opacity;
}

.hexagon.visible {
    transform: scale(1);
    opacity: 1;
}

.hexagon:hover {
    transform: scale(1.06);
    z-index: 20;
}

.hexagon:hover .hex-bg {
    transform: scale(1.1);
}

.hexagon:hover .hex-overlay-svg {
    opacity: 1;
}

.hexagon:hover .hex-content {
    transform: translateY(-3px);
}

/* Hexagon Sizes */
.hex-large {
    width: 320px;
    height: 278px;
}

.hex-medium {
    width: 250px;
    height: 217px;
}

.hex-small {
    width: 170px;
    height: 148px;
}

/* Hex Inner */
.hex-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Hex Background */
.hex-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Botanical backgrounds - generative gradient patterns */
.hex-bg-botanical {
    background-size: cover;
    background-position: center;
}

.hex-bg-botanical-1 {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(107, 142, 127, 0.8) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(253, 184, 51, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(212, 88, 75, 0.7) 0%, transparent 40%),
        linear-gradient(135deg, #3d5c4f 0%, #6B8E7F 50%, #4a6b5e 100%);
}

.hex-bg-botanical-2 {
    background:
        radial-gradient(circle at 40% 30%, rgba(255, 107, 74, 0.5) 0%, transparent 40%),
        radial-gradient(circle at 60% 70%, rgba(255, 154, 118, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(253, 184, 51, 0.4) 0%, transparent 30%),
        linear-gradient(180deg, #FFF8F0 0%, #FF9A76 60%, #D4584B 100%);
}

.hex-bg-botanical-3 {
    background:
        radial-gradient(circle at 25% 25%, rgba(255, 107, 74, 0.6) 0%, transparent 35%),
        radial-gradient(circle at 75% 75%, rgba(107, 142, 127, 0.5) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(253, 184, 51, 0.4) 0%, transparent 45%),
        linear-gradient(160deg, #D4584B 0%, #FF6B4A 50%, #FF9A76 100%);
}

.hex-bg-botanical-4 {
    background:
        radial-gradient(ellipse at 30% 50%, rgba(253, 184, 51, 0.5) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 40%, rgba(255, 107, 74, 0.4) 0%, transparent 45%),
        radial-gradient(circle at 50% 80%, rgba(107, 142, 127, 0.6) 0%, transparent 35%),
        linear-gradient(200deg, #6B8E7F 0%, #3d5c4f 60%, #2d4a3f 100%);
}

.hex-bg-botanical-5 {
    background:
        radial-gradient(circle at 60% 30%, rgba(212, 88, 75, 0.5) 0%, transparent 40%),
        radial-gradient(circle at 30% 70%, rgba(255, 154, 118, 0.6) 0%, transparent 35%),
        radial-gradient(ellipse at 80% 80%, rgba(253, 184, 51, 0.3) 0%, transparent 45%),
        linear-gradient(135deg, #FF9A76 0%, #FF6B4A 50%, #D4584B 100%);
}

/* SVG Overlay */
.hex-overlay-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

/* Hex Content */
.hex-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px 25px;
    z-index: 5;
    transition: transform 0.4s ease;
}

.hex-content-dark {
    color: #3d3028;
}

.hex-content-dark .hex-label {
    color: #D4584B;
}

.hex-content-dark h2,
.hex-content-dark h3 {
    color: #3d3028;
}

.hex-content-dark p {
    color: rgba(61, 48, 40, 0.85);
}

.hex-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(250, 249, 247, 0.6);
    margin-bottom: 6px;
    font-weight: 400;
}

.hex-content h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    line-height: 1.2;
    margin-bottom: 8px;
    color: #FAF9F7;
}

.hex-content h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    line-height: 1.25;
    margin-bottom: 6px;
    color: #FAF9F7;
}

.hex-content p {
    font-family: 'Mulish', sans-serif;
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(250, 249, 247, 0.85);
    max-width: 200px;
}

/* Small hex adjustments */
.hex-small .hex-content {
    padding: 15px 12px;
}

.hex-small .hex-label {
    font-size: 0.5rem;
    margin-bottom: 2px;
}

.hex-small .hex-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.hex-small .hex-content p {
    font-size: 0.65rem;
    max-width: 120px;
}

/* Large hex adjustments */
.hex-large .hex-content p {
    max-width: 240px;
    font-size: 0.85rem;
}

/* Expanded state */
.hexagon.expanded {
    transform: scale(1.15);
    z-index: 30;
}

.hexagon.expanded .hex-content {
    transform: translateY(-5px);
}

.hexagon.expanded .hex-bg {
    transform: scale(1.15);
}

/* Parallax layers */
.hex-cluster {
    transform: translateZ(0);
}

/* Cluster-specific layouts */
.cluster-intro {
    padding-top: 20px;
}

.cluster-processes {
    margin-left: 40px;
}

.cluster-materials {
    margin-right: 30px;
}

.cluster-systems {
    margin-left: 20px;
}

.cluster-ecology {
    padding-bottom: 40px;
}

/* Responsive */
@media (max-width: 900px) {
    .hex-large {
        width: 260px;
        height: 226px;
    }

    .hex-medium {
        width: 200px;
        height: 174px;
    }

    .hex-small {
        width: 140px;
        height: 122px;
    }

    .hex-cluster {
        gap: 12px;
        margin-bottom: 50px;
    }

    .cluster-processes,
    .cluster-materials,
    .cluster-systems {
        margin-left: 0;
        margin-right: 0;
    }

    .hex-content p {
        font-size: 0.72rem;
    }

    .hex-large .hex-content p {
        font-size: 0.75rem;
    }
}

@media (max-width: 600px) {
    .hex-large {
        width: 220px;
        height: 191px;
    }

    .hex-medium {
        width: 170px;
        height: 148px;
    }

    .hex-small {
        width: 120px;
        height: 104px;
    }

    .hex-grid-container {
        padding: 120px 10px 80px;
    }

    .hex-content {
        padding: 18px 15px;
    }

    .hex-content h2 {
        font-size: 1rem;
    }

    .hex-content h3 {
        font-size: 0.85rem;
    }

    .hex-content p {
        font-size: 0.65rem;
        max-width: 150px;
    }

    .hex-small .hex-content p {
        font-size: 0.55rem;
    }

    .floating-title {
        top: 25px;
    }
}

/* Subtle grain overlay on body */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}