/* reasoner.studio — Immersive Hexagonal Honeycomb */

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

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #0a0e1a;
    /* Palette: #0f1734 #1a2347 #6495ed #9b8ec4 #4ecdc4 #b8c9f2 #e8edf7 */
    font-family: 'Cormorant Garamond', serif;
    color: #e8edf7;
    width: 100vw;
    height: 100vh;
}

/* Generative Canvas Background */
#generative {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}

/* Honeycomb Grid Container */
.honeycomb {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    pointer-events: none;
}

/* Individual Hex Cell */
.hex {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: auto;
    position: relative;
    flex-shrink: 0;
}

/* Ghost cells */
.hex.ghost {
    background: transparent;
    border: none;
    position: relative;
}
.hex.ghost::before {
    content: '';
    position: absolute;
    inset: 2px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 1px solid rgba(100, 149, 237, 0.08);
    background: transparent;
    animation: ghostFade 12s ease-in-out infinite;
}

/* Breathing cells */
.hex.breathing {
    background: rgba(15, 23, 52, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: breathe 10s ease-in-out infinite;
}

/* Active cells */
.hex.active {
    background: rgba(26, 35, 71, 0.85);
    box-shadow: inset 0 0 30px rgba(100, 149, 237, 0.15);
    transform: scale(1.15);
    z-index: 2;
}

/* Content inside active cells */
.hex-content {
    padding: 10%;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Title cell */
.hex-title .title-main {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #e8edf7;
    line-height: 1;
}

.hex-title .title-suffix {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(0.7rem, 1.8vw, 1.4rem);
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: lowercase;
    color: #b8c9f2;
    opacity: 0.7;
    margin-top: 0.3em;
}

/* Tagline cell */
.hex-tagline .tagline-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(0.8rem, 1.2vw, 1.1rem);
    font-weight: 300;
    line-height: 1.8;
    color: #b8c9f2;
    text-align: left;
}

/* Enter cell */
.hex-enter .enter-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b8c9f2;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.6s ease, text-shadow 0.6s ease;
}

.hex-enter .enter-link:hover {
    color: #4ecdc4;
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.5), 0 0 40px rgba(78, 205, 196, 0.2);
}

/* Mono labels for ghost cells */
.hex-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b8c9f2;
    opacity: 0.2;
}

/* Botanical SVGs */
.botanical-svg {
    width: 80%;
    height: 80%;
    opacity: 0.8;
}

.draw-path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: draw 6s ease-out forwards;
    animation-delay: 1s;
}

/* Keyframes */
@keyframes breathe {
    0%, 100% {
        transform: scale(0.97);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.03);
        opacity: 0.7;
    }
}

@keyframes ghostFade {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .hex-title .title-main {
        font-size: clamp(1.2rem, 8vw, 2.5rem);
    }
    .hex-title .title-suffix {
        font-size: clamp(0.5rem, 2.5vw, 0.9rem);
    }
}
