/* gunsul.studio - Pop Art Construction Atelier */
/* Palette:
   Comic Black: #1A1A1A
   Neon Punch: #FF2D7A
   Electric Lime: #B8FF20
   Power Cyan: #20D0FF
   Hot Orange: #FF6830
   White Stage: #FFFFFF
   Ben-Day Gray: #E8E8E8
   Cream Warm: #FFF8F0
*/

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    color: #1A1A1A;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

/* Halftone Background */
.halftone-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(circle, #E8E8E8 25%, transparent 25%);
    background-size: 8px 8px;
    opacity: 0;
    transition: opacity 400ms ease;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.speed-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.speed-line {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 1px;
    background-color: rgba(26, 26, 26, 0.1);
    transform-origin: left center;
}

/* Center Hex */
.hero-center-hex {
    width: 70vmin;
    max-width: 500px;
    height: calc(70vmin * 0.866);
    max-height: calc(500px * 0.866);
    background-color: #FFFFFF;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 4px solid #1A1A1A;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    outline: 4px solid #1A1A1A;
}

.hero-title {
    font-family: 'Bungee', sans-serif;
    font-weight: 400;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.02em;
    text-align: center;
    color: #1A1A1A;
    line-height: 1.1;
    opacity: 0;
}

.hero-title.glitch {
    animation: glitchFlash 200ms ease;
}

@keyframes glitchFlash {
    0% { text-shadow: -2px 0 #FF2D7A, 2px 0 #20D0FF; }
    50% { text-shadow: 2px 0 #FF2D7A, -2px 0 #20D0FF; }
    100% { text-shadow: none; opacity: 1; }
}

/* Mini Hexes Ring */
.hero-hex-ring {
    position: absolute;
    width: 90vmin;
    height: 90vmin;
    max-width: 650px;
    max-height: 650px;
    z-index: 2;
}

.mini-hex {
    width: 100px;
    height: 87px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    opacity: 0;
    transform: scale(0);
    transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 200ms ease;
}

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

.hex-1 { background-color: #FF2D7A; top: 0; left: 50%; transform: translateX(-50%) scale(0); }
.hex-1.visible { transform: translateX(-50%) scale(1); }
.hex-2 { background-color: #B8FF20; top: 15%; right: 5%; }
.hex-3 { background-color: #20D0FF; bottom: 15%; right: 5%; }
.hex-4 { background-color: #FF6830; bottom: 0; left: 50%; transform: translateX(-50%) scale(0); }
.hex-4.visible { transform: translateX(-50%) scale(1); }
.hex-5 { background-color: #FF2D7A; bottom: 15%; left: 5%; }
.hex-6 { background-color: #B8FF20; top: 15%; left: 5%; }

.hex-word {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #1A1A1A;
    text-transform: uppercase;
}

.hex-kr {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Wave Dividers */
.wave-divider {
    height: 80px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.wave-divider svg {
    width: 200%;
    height: 100%;
}

.wave-1 { animation: waveScroll 15s linear infinite; }
.wave-2 { animation: waveScroll 20s linear infinite reverse; }
.wave-3 { animation: waveScroll 25s linear infinite; }
.wave-4 { animation: waveScroll 18s linear infinite; }
.wave-5 { animation: waveScroll 22s linear infinite reverse; }

@keyframes waveScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Honeycomb Grid */
.honeycomb-section {
    padding: 60px 24px;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.honeycomb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hex-cell {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background-color: #FFFFFF;
    outline: 3px solid #1A1A1A;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: scale(1.1);
    transition: transform 150ms ease;
    cursor: default;
}

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

.hex-cell:hover {
    animation: glitchCell 200ms ease;
}

@keyframes glitchCell {
    0% { transform: translateX(3px); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

.hex-content {
    position: relative;
    z-index: 2;
}

.hex-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.hex-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #1A1A1A;
}

/* Speech Bubbles */
.bubble-section {
    padding: 60px 24px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.speech-bubble {
    background-color: #FFF8F0;
    border: 2px solid #1A1A1A;
    border-radius: 20px;
    padding: 24px 32px;
    margin-bottom: 32px;
    position: relative;
    max-width: 70%;
    transition: transform 200ms ease;
}

.speech-bubble:hover {
    transform: scale(1.05);
}

.bubble-left {
    margin-right: auto;
}

.bubble-left::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 40px;
    border-width: 20px 15px 0 0;
    border-style: solid;
    border-color: #1A1A1A transparent transparent transparent;
}

.bubble-left::before {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 42px;
    border-width: 17px 12px 0 0;
    border-style: solid;
    border-color: #FFF8F0 transparent transparent transparent;
    z-index: 1;
}

.bubble-right {
    margin-left: auto;
}

.bubble-right::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: 40px;
    border-width: 20px 0 0 15px;
    border-style: solid;
    border-color: #1A1A1A transparent transparent transparent;
}

.bubble-right::before {
    content: '';
    position: absolute;
    bottom: -16px;
    right: 42px;
    border-width: 17px 0 0 12px;
    border-style: solid;
    border-color: #FFF8F0 transparent transparent transparent;
    z-index: 1;
}

.bubble-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #1A1A1A;
}

/* Footer */
.footer {
    background-color: #1A1A1A;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-pow {
    font-family: 'Bungee', sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    color: #FF2D7A;
    display: block;
    margin-bottom: 16px;
}

.footer-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.footer-meta {
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    color: #E8E8E8;
}

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

@media (max-width: 600px) {
    .honeycomb-grid { grid-template-columns: 1fr; }
    .speech-bubble { max-width: 90%; }
    .mini-hex { width: 70px; height: 61px; }
}
