/* paraligm.com - Dopamine Neon Honeycomb */
/* Font: Commissioner (Google Fonts) */
/* Palette: Dopamine Neon - ALL FLAT, NO GRADIENTS */

:root {
    --midnight-void: #0A0A2E;
    --dark-indigo: #1A1040;
    --neon-pink: #FF2E63;
    --electric-cyan: #08F7FE;
    --neon-lime: #39FF14;
    --neon-yellow: #FFE600;
    --neon-orange: #FF6B1A;
    --off-white: #F0E6FF;
    --hex-size: 280px;
    --hex-height: calc(var(--hex-size) * 0.866);
    --hex-gap: 6px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--midnight-void);
    color: var(--off-white);
    font-family: 'Commissioner', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========== GRAIN OVERLAY ========== */
#grain-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0.06;
    background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="4" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="200" height="200" filter="url(%23n)" opacity="1"/></svg>');
    background-repeat: repeat;
    animation: grain-shift 4s steps(4) infinite;
}

@keyframes grain-shift {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-2px, 1px); }
    50% { transform: translate(1px, -1px); }
    75% { transform: translate(-1px, 2px); }
    100% { transform: translate(0, 0); }
}

/* ========== FLOATING OVERLAY HEXAGONS ========== */
#overlay-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.float-hex {
    position: absolute;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    will-change: transform;
}

.float-hex-1 {
    width: 400px; height: 400px;
    background-color: var(--neon-pink);
    opacity: 0.06;
    top: 10%; left: -5%;
    animation: float-drift-1 20s ease-in-out infinite;
}
.float-hex-2 {
    width: 500px; height: 500px;
    background-color: var(--electric-cyan);
    opacity: 0.05;
    top: 30%; right: -10%;
    animation: float-drift-2 25s ease-in-out infinite;
}
.float-hex-3 {
    width: 350px; height: 350px;
    background-color: var(--neon-lime);
    opacity: 0.07;
    top: 60%; left: 20%;
    animation: float-drift-3 18s ease-in-out infinite;
}
.float-hex-4 {
    width: 600px; height: 600px;
    background-color: var(--neon-yellow);
    opacity: 0.04;
    top: -10%; right: 30%;
    animation: float-drift-4 22s ease-in-out infinite;
}
.float-hex-5 {
    width: 300px; height: 300px;
    background-color: var(--neon-orange);
    opacity: 0.06;
    top: 80%; left: 60%;
    animation: float-drift-5 19s ease-in-out infinite;
}
.float-hex-6 {
    width: 450px; height: 450px;
    background-color: var(--neon-pink);
    opacity: 0.05;
    top: 50%; right: 5%;
    animation: float-drift-6 23s ease-in-out infinite;
}
.float-hex-7 {
    width: 380px; height: 380px;
    background-color: var(--electric-cyan);
    opacity: 0.04;
    top: 15%; left: 50%;
    animation: float-drift-7 17s ease-in-out infinite;
}
.float-hex-8 {
    width: 320px; height: 320px;
    background-color: var(--neon-lime);
    opacity: 0.05;
    top: 70%; right: 40%;
    animation: float-drift-8 21s ease-in-out infinite;
}

@keyframes float-drift-1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,30px)} }
@keyframes float-drift-2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-50px,20px)} }
@keyframes float-drift-3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,-40px)} }
@keyframes float-drift-4 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-30px,50px)} }
@keyframes float-drift-5 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(20px,-30px)} }
@keyframes float-drift-6 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-40px,-20px)} }
@keyframes float-drift-7 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(35px,25px)} }
@keyframes float-drift-8 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-25px,35px)} }

/* ========== BACKGROUND HEX LAYER ========== */
#bg-hex-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image:
        url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="46" height="40"><polygon points="23,0 46,10 46,30 23,40 0,30 0,10" fill="none" stroke="%231A1040" stroke-width="0.5" opacity="0.15"/></svg>');
    background-size: 46px 40px;
    opacity: 0.4;
}

/* ========== NAVIGATION CLUSTER ========== */
#nav-cluster {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(3, 52px);
    grid-template-rows: repeat(3, 45px);
    gap: 2px;
}

.nav-hex {
    width: 52px;
    height: 45px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background-color: var(--dark-indigo);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: none;
    position: relative;
}

.nav-hex::before {
    content: '';
    position: absolute;
    inset: -2px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background-color: var(--neon-pink);
    z-index: -1;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.nav-hex:hover {
    transform: rotate(10deg) scale(1.1);
}

.nav-hex:hover::before {
    opacity: 1;
}

.nav-hex-center {
    grid-column: 2;
    grid-row: 2;
}

.nav-hex-center::before {
    background-color: var(--neon-pink);
}

.nav-hex-1 { grid-column: 1; grid-row: 1; }
.nav-hex-1::before { background-color: var(--electric-cyan); }
.nav-hex-2 { grid-column: 3; grid-row: 1; }
.nav-hex-2::before { background-color: var(--neon-lime); }
.nav-hex-3 { grid-column: 1; grid-row: 3; }
.nav-hex-3::before { background-color: var(--neon-yellow); }
.nav-hex-4 { grid-column: 3; grid-row: 3; }
.nav-hex-4::before { background-color: var(--neon-orange); }
.nav-hex-5 { grid-column: 1; grid-row: 2; }
.nav-hex-5::before { background-color: var(--electric-cyan); }
.nav-hex-6 { grid-column: 3; grid-row: 2; }
.nav-hex-6::before { background-color: var(--neon-lime); }

.nav-label {
    font-family: 'Commissioner', sans-serif;
    font-weight: 200;
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--off-white);
    text-align: center;
    line-height: 1;
}

.nav-hex-center .nav-label {
    font-weight: 800;
    font-size: 1rem;
    color: var(--neon-pink);
}

/* ========== MAIN CONTENT ========== */
#honeycomb-main {
    position: relative;
    z-index: 1;
    padding: 40px 0;
}

.hex-section {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ========== HONEYCOMB GRID ========== */
.honeycomb-grid {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.hex-row {
    display: flex;
    justify-content: center;
    gap: var(--hex-gap);
    margin-bottom: calc(var(--hex-gap) * -1 - 20px);
}

.hex-row-b {
    margin-left: calc(var(--hex-size) / 2 + var(--hex-gap) / 2);
}

/* ========== HEX CELL ========== */
.hex-cell {
    width: var(--hex-size);
    min-height: calc(var(--hex-size) * 0.866);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: var(--midnight-void);
    overflow: hidden;
}

.hex-cell-wide {
    width: calc(var(--hex-size) * 1.5);
    min-height: calc(var(--hex-size) * 1.3);
}

.hex-fill-dark { background-color: var(--midnight-void); }
.hex-fill-indigo { background-color: var(--dark-indigo); }

.hex-border-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hex-border-path {
    fill: none;
    stroke: var(--neon-pink);
    stroke-width: 2;
    stroke-dasharray: 700;
    stroke-dashoffset: 700;
    transition: stroke-dashoffset 0.8s ease-out;
}

.hex-cell.revealed .hex-border-path {
    stroke-dashoffset: 0;
}

.hex-fill-indigo .hex-border-path { stroke: var(--electric-cyan); }
.hex-decorative .hex-border-path { stroke: var(--neon-yellow); }
.hex-warm .hex-border-path { stroke: var(--neon-orange); }

.hex-content {
    position: relative;
    z-index: 1;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease 0.3s;
}

.hex-cell.revealed .hex-content {
    opacity: 1;
}

/* ========== TYPOGRAPHY ========== */
.headline-text {
    font-family: 'Commissioner', sans-serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--neon-pink);
    line-height: 1;
}

.subheading-text {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--electric-cyan);
    line-height: 1.2;
}

.subheading-text.pink { color: var(--neon-pink); }
.subheading-text.cyan { color: var(--electric-cyan); }
.subheading-text.lime { color: var(--neon-lime); }
.subheading-text.yellow { color: var(--neon-yellow); }
.subheading-text.orange { color: var(--neon-orange); }

.body-text {
    font-family: 'Commissioner', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    line-height: 1.65;
    letter-spacing: 0.01em;
    color: var(--off-white);
    text-align: left;
    max-width: 55ch;
}

.accent-text {
    font-family: 'Commissioner', sans-serif;
    font-weight: 200;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--neon-yellow);
    opacity: 0.6;
}

/* ========== HEX ICONS ========== */
.hex-icon {
    width: 60px;
    height: 60px;
}

/* ========== INTRO CLUSTER ========== */
.intro-cluster {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 900px;
    padding: 100px 0 60px;
    position: relative;
}

.intro-cluster .hex-cell {
    width: 160px;
    min-height: 139px;
}

.intro-cluster .hex-cell-center {
    width: 200px;
    min-height: 174px;
}

.intro-cluster .hex-cell .hex-content {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.intro-cluster .hex-cell.revealed .hex-content {
    opacity: 1;
}

/* ========== SHIFT LINE MARKERS ========== */
.shift-line {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    z-index: 2;
}

.shift-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--neon-pink);
    box-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink);
    animation: shift-pulse 2s ease-in-out infinite;
}

.shift-line-cyan::before {
    background-color: var(--electric-cyan);
    box-shadow: 0 0 10px var(--electric-cyan), 0 0 20px var(--electric-cyan);
}

.shift-line-lime::before {
    background-color: var(--neon-lime);
    box-shadow: 0 0 10px var(--neon-lime), 0 0 20px var(--neon-lime);
}

@keyframes shift-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.shift-badge {
    position: relative;
    z-index: 1;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background-color: var(--midnight-void);
    width: 100px;
    height: 87px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shift-badge span {
    font-family: 'Commissioner', sans-serif;
    font-weight: 200;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--neon-yellow);
    opacity: 0.6;
}

/* ========== CLOSING CLUSTER ========== */
.closing-cluster {
    display: flex;
    justify-content: center;
    padding: 80px 0 120px;
}

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

.closing-logo {
    font-size: 4rem;
    color: var(--neon-pink);
    animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.final-statement {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    color: var(--neon-pink);
}

/* ========== DEEP ZONE ROTATION ========== */
#deep-zone .hex-warm {
    transition: transform 0.6s ease;
}

#deep-zone .hex-warm.revealed {
    transform: rotate(var(--hex-rotate, 0deg));
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    :root {
        --hex-size: 200px;
    }
    .hex-row-b {
        margin-left: calc(var(--hex-size) / 2 + var(--hex-gap) / 2);
    }
    .intro-cluster .hex-cell {
        width: 120px;
        min-height: 104px;
    }
    .intro-cluster .hex-cell-center {
        width: 150px;
        min-height: 130px;
    }
}

@media (max-width: 768px) {
    :root {
        --hex-size: 150px;
    }
    .hex-row {
        flex-wrap: wrap;
    }
    .hex-row-b {
        margin-left: calc(var(--hex-size) / 4);
    }
    .hex-cell-wide {
        width: calc(var(--hex-size) * 1.3);
        min-height: calc(var(--hex-size) * 1.1);
    }
    .hex-cell-wide .hex-content {
        padding: 20px 15px;
    }
    .body-text {
        font-size: 0.85rem;
    }
    #nav-cluster {
        transform: scale(0.8);
        top: 10px;
        left: 10px;
    }
    .intro-cluster .hex-cell {
        width: 100px;
        min-height: 87px;
    }
    .intro-cluster .hex-cell-center {
        width: 120px;
        min-height: 104px;
    }
    .intro-cluster {
        padding: 80px 0 40px;
    }
}

@media (max-width: 480px) {
    :root {
        --hex-size: 120px;
    }
    .hex-row-b {
        margin-left: calc(var(--hex-size) / 4);
    }
    .headline-text {
        font-size: 1.5rem;
    }
    .subheading-text {
        font-size: 0.9rem;
    }
}
