/* recycle.makeup — Isometric Burgundy Cosmos */
/* Palette:
   Deep Burgundy:   #1A0810
   Wine Dark:       #4A1828
   Burgundy Mid:    #8A3848
   Rose Gold:       #C0888A
   Star Pink:       #A06878
   Cosmetic Cream:  #FDF4F2
   Beauty White:    #FFF8F6
   Morph Glow:      rgba(138,56,72,0.06)
*/

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: #FFF8F6;
    color: #4A1828;
    overflow-x: hidden;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
}

/* =============================================
   STARFIELD CANVAS
   ============================================= */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* =============================================
   HERO SECTION
   ============================================= */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.hero-geo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: clamp(2.4rem, 7vw, 5.5rem);
    color: #1A0810;
    letter-spacing: 0.08em;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1.2s ease-out 0.3s forwards;
}

.hero-dot {
    color: #8A3848;
}

.hero-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.75rem, 1.2vw, 1rem);
    color: #8A3848;
    letter-spacing: 0.15em;
    margin-top: 1.2rem;
    opacity: 0;
    animation: heroFadeIn 1s ease-out 0.9s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   HONEYCOMB SECTION
   ============================================= */
#honeycomb-section {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem 4rem;
    text-align: center;
}

.section-heading {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: #1A0810;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.section-subtext {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    color: #8A3848;
    letter-spacing: 0.12em;
    margin-bottom: 4rem;
}

/* Honeycomb Grid */
.honeycomb-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.hex-row {
    display: flex;
    gap: 3px;
    justify-content: center;
}

.hex-row-offset {
    margin-top: -30px;
    margin-left: calc(clamp(180px, 22vw, 280px) / 2 + 1.5px);
}

/* Individual Hex Cell */
.hex-cell {
    width: clamp(180px, 22vw, 280px);
    height: clamp(180px, 22vw, 280px);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: #FDF4F2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0;
    transform: scale(0.85);
}

.hex-cell.visible {
    opacity: 1;
    transform: scale(1);
}

.hex-cell:hover {
    background: rgba(138, 56, 72, 0.06);
    transform: scale(1.05);
}

.hex-cell:hover .hex-inner {
    border-radius: 50%;
}

.hex-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: 0;
    transition: border-radius 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
}

.hex-icon {
    width: 40px;
    height: 40px;
}

.hex-label {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    font-size: 0.65rem;
    color: #8A3848;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hex-formula {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    font-size: 0.55rem;
    color: #A06878;
    letter-spacing: 0.05em;
}

/* Morph Transition on hover — border radius animation */
.hex-cell:hover {
    clip-path: polygon(50% 2%, 98% 26%, 98% 74%, 50% 98%, 2% 74%, 2% 26%);
}

/* =============================================
   MANIFESTO SECTION
   ============================================= */
#manifesto {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem;
    background: #1A0810;
}

.manifesto-content {
    max-width: 1000px;
    margin: 0 auto;
}

.manifesto-heading {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: #FDF4F2;
    letter-spacing: 0.06em;
    margin-bottom: 3rem;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.manifesto-block {
    border-left: 2px solid #8A3848;
    padding-left: 1.5rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.manifesto-block.visible {
    opacity: 1;
    transform: translateX(0);
}

.manifesto-index {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    color: #8A3848;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.6rem;
}

.manifesto-text {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.8rem, 1vw, 0.92rem);
    color: #C0888A;
    line-height: 1.85;
}

/* =============================================
   PROCESS SECTION
   ============================================= */
#process {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem;
    text-align: center;
}

.process-heading {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: #1A0810;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.process-sub {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    color: #8A3848;
    letter-spacing: 0.12em;
    margin-bottom: 4rem;
}

.process-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    perspective: 1200px;
}

@media (max-width: 900px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

.process-cell {
    background: #FDF4F2;
    padding: 2rem 1.5rem;
    text-align: left;
    position: relative;
    transform: rotateX(2deg) rotateY(-2deg);
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s ease;
    box-shadow: 4px 4px 0 rgba(138, 56, 72, 0.08);
    opacity: 0;
    transform: translateY(40px) rotateX(2deg) rotateY(-2deg);
}

.process-cell.visible {
    opacity: 1;
    transform: translateY(0) rotateX(2deg) rotateY(-2deg);
}

.process-cell:hover {
    transform: rotateX(0deg) rotateY(0deg) translateY(-4px);
    box-shadow: 6px 8px 0 rgba(138, 56, 72, 0.12);
}

.process-number {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 2rem;
    color: rgba(138, 56, 72, 0.12);
    line-height: 1;
    margin-bottom: 0.8rem;
}

.process-title {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1rem;
    color: #1A0810;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
}

.process-desc {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    font-size: 0.78rem;
    color: #4A1828;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.process-shape {
    width: 60px;
    height: 60px;
    opacity: 0.6;
}

/* =============================================
   FOOTER
   ============================================= */
#footer {
    position: relative;
    z-index: 1;
    padding: 3rem 2rem 2rem;
    border-top: 1px solid rgba(138, 56, 72, 0.12);
    text-align: center;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-brand {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    color: #1A0810;
    letter-spacing: 0.1em;
}

.footer-divider {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    color: #C0888A;
    font-size: 0.85rem;
}

.footer-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    font-size: 0.78rem;
    color: #8A3848;
    letter-spacing: 0.08em;
}

.footer-meta {
    margin-top: 1rem;
}

.footer-code {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    font-size: 0.65rem;
    color: #A06878;
    letter-spacing: 0.05em;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .hex-row-offset {
        margin-left: calc(clamp(140px, 22vw, 200px) / 2 + 1.5px);
    }

    .hex-cell {
        width: clamp(140px, 30vw, 200px);
        height: clamp(140px, 30vw, 200px);
    }

    .hex-row {
        flex-wrap: wrap;
    }

    .hex-row-offset {
        margin-top: -20px;
        margin-left: calc(clamp(140px, 30vw, 200px) / 2 + 1.5px);
    }

    .manifesto-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hex-cell {
        width: clamp(120px, 40vw, 160px);
        height: clamp(120px, 40vw, 160px);
    }

    .hex-row-offset {
        margin-top: -15px;
        margin-left: calc(clamp(120px, 40vw, 160px) / 2 + 1.5px);
    }

    .hex-label {
        font-size: 0.55rem;
    }

    .hex-formula {
        font-size: 0.48rem;
    }

    .hex-icon {
        width: 30px;
        height: 30px;
    }
}

/* =============================================
   ISOMETRIC 3D PERSPECTIVE ON HONEYCOMB
   ============================================= */
.honeycomb-grid {
    transform: perspective(1200px) rotateX(8deg) rotateY(-3deg);
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

.honeycomb-grid:hover {
    transform: perspective(1200px) rotateX(4deg) rotateY(-1deg);
}

/* Hex cell 3D depth */
.hex-cell::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 2px;
    right: -2px;
    top: 4px;
    background: rgba(26, 8, 16, 0.06);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: -1;
}
