/* ppuzzl.works - MUJI minimalism with hexagonal playfulness */

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #111111;
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ===== Organic Blob Backgrounds ===== */
.blob {
    position: fixed;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    opacity: 0.12;
    z-index: -1;
    animation: blobMorph 12s ease-in-out infinite alternate;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: #c8b89a;
    top: -150px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 450px;
    height: 450px;
    background: #f5f5f0;
    bottom: 20%;
    left: -120px;
    animation-delay: -4s;
    border-radius: 40% 60% 70% 30% / 30% 70% 40% 60%;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: #e0e0e0;
    top: 50%;
    right: 15%;
    animation-delay: -8s;
    border-radius: 30% 70% 40% 60% / 70% 40% 60% 30%;
}

@keyframes blobMorph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: rotate(0deg) scale(1);
    }
    33% {
        border-radius: 40% 60% 70% 30% / 30% 70% 40% 60%;
    }
    66% {
        border-radius: 70% 30% 50% 50% / 50% 50% 30% 70%;
    }
    100% {
        border-radius: 30% 70% 40% 60% / 70% 40% 60% 30%;
        transform: rotate(15deg) scale(1.05);
    }
}

/* ===== Honeycomb SVG Background ===== */
.honeycomb-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.3s ease;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    display: block;
    width: 28px;
    height: 28px;
    background: #111111;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #111111;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: #2d2d2d;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #e74c3c;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #111111;
}

.nav-link--accent {
    color: #e74c3c;
}

.nav-link--accent:hover {
    color: #e74c3c;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 48px 80px;
    position: relative;
    overflow: hidden;
}

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

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    color: #111111;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: charReveal 0.5s forwards;
}

.hero-title .char-space {
    display: inline-block;
    width: 0.3em;
}

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

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 300;
    color: #2d2d2d;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-circuit {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 300px;
    height: 300px;
    opacity: 0.2;
    z-index: 1;
}

.circuit-lines {
    width: 100%;
    height: 100%;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    padding: 14px 32px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #111111;
    color: #ffffff;
}

.btn-primary:hover {
    background: #e74c3c;
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: #111111;
    border: 1px solid #e0e0e0;
}

.btn-ghost:hover {
    border-color: #111111;
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 48px;
    font-size: 1rem;
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #111111;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.section-title .char.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title .char-space {
    display: inline-block;
    width: 0.3em;
}

.section-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1.0625rem;
    font-weight: 300;
    color: #2d2d2d;
    max-width: 480px;
    margin: 0 auto;
}

/* ===== Work Section - Hexagonal Grid ===== */
.work {
    padding: 120px 48px;
    background: #f8f6f2;
    position: relative;
}

.hex-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.hex-cell {
    width: 240px;
    height: 270px;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), z-index 0s;
    cursor: pointer;
}

.hex-cell:nth-child(even) {
    margin-top: 135px;
}

.hex-inner {
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.hex-cell:hover {
    transform: scale(1.15);
    z-index: 10;
}

.hex-cell:hover .hex-inner {
    background: #111111;
}

.hex-cell:hover .hex-content {
    color: #ffffff;
}

.hex-cell:hover .hex-number {
    color: #e74c3c;
}

.hex-cell:hover .hex-title {
    color: #ffffff;
}

.hex-cell:hover .hex-desc {
    color: rgba(255, 255, 255, 0.7);
}

.hex-content {
    text-align: center;
    padding: 40px 28px;
    transition: color 0.3s ease;
}

.hex-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #c8b89a;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.hex-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111111;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.hex-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 300;
    color: #2d2d2d;
    line-height: 1.5;
    transition: color 0.3s ease;
}

/* ===== About Section ===== */
.about {
    padding: 120px 48px;
}

.about-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-lead {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.375rem;
    font-weight: 400;
    color: #111111;
    line-height: 1.5;
    margin-bottom: 20px;
    margin-top: 24px;
}

.about-body {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: #2d2d2d;
    line-height: 1.8;
    margin-bottom: 40px;
}

.about-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #111111;
    line-height: 1;
    letter-spacing: -0.03em;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: #c8b89a;
    letter-spacing: 0.05em;
    margin-top: 6px;
}

.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-blob-container {
    position: relative;
    width: 320px;
    height: 320px;
}

.blob-morph {
    width: 100%;
    height: 100%;
    background: #f5f5f0;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blobMorph 10s ease-in-out infinite alternate;
    position: absolute;
    top: 0;
    left: 0;
}

.about-hex-accent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 210px;
    animation: hexRotate 20s linear infinite;
}

@keyframes hexRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== Process Section ===== */
.process {
    padding: 120px 48px;
    background: #f8f6f2;
}

.process-steps {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.process-step {
    display: flex;
    gap: 32px;
    padding: 40px 0;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.process-step.visible {
    opacity: 1;
    transform: translateX(0);
}

.step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 24px;
    position: relative;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #111111;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transition: background 0.3s ease;
}

.process-step:hover .step-dot {
    background: #e74c3c;
}

.step-line {
    width: 1px;
    flex-grow: 1;
    background: #e0e0e0;
    position: absolute;
    top: 12px;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.process-step:last-child .step-line {
    display: none;
}

.step-content {
    padding-top: 0;
}

.step-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.375rem;
    font-weight: 600;
    color: #111111;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.step-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 300;
    color: #2d2d2d;
    line-height: 1.7;
}

/* ===== Contact Section ===== */
.contact {
    padding: 140px 48px;
    text-align: center;
    background: #ffffff;
}

.contact-inner {
    max-width: 600px;
    margin: 0 auto;
}

.contact-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: #111111;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.contact-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.contact-title .char.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-title .char-space {
    display: inline-block;
    width: 0.3em;
}

.contact-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1.0625rem;
    font-weight: 300;
    color: #2d2d2d;
    line-height: 1.7;
    margin-bottom: 36px;
}

.contact-details {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.contact-item {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 400;
    color: #c8b89a;
    letter-spacing: 0.02em;
}

.contact-divider {
    color: #e0e0e0;
    font-size: 1.25rem;
}

/* ===== Footer ===== */
.footer {
    padding: 32px 48px;
    border-top: 1px solid #f5f5f0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: #111111;
    letter-spacing: -0.01em;
}

.footer-copy {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    color: #c8b89a;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .nav {
        padding: 16px 24px;
    }

    .nav-links {
        gap: 20px;
    }

    .hero {
        padding: 100px 24px 60px;
    }

    .hero-circuit {
        display: none;
    }

    .work {
        padding: 80px 24px;
    }

    .hex-grid {
        gap: 8px;
    }

    .hex-cell {
        width: 180px;
        height: 200px;
    }

    .hex-cell:nth-child(even) {
        margin-top: 100px;
    }

    .hex-content {
        padding: 28px 16px;
    }

    .about {
        padding: 80px 24px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual {
        order: -1;
    }

    .about-blob-container {
        width: 240px;
        height: 240px;
    }

    .about-stats {
        gap: 24px;
    }

    .process {
        padding: 80px 24px;
    }

    .contact {
        padding: 80px 24px;
    }

    .footer {
        padding: 24px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hex-grid {
        flex-direction: column;
        align-items: center;
    }

    .hex-cell {
        width: 220px;
        height: 250px;
    }

    .hex-cell:nth-child(even) {
        margin-top: 0;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

    .contact-details {
        flex-direction: column;
        gap: 4px;
    }

    .contact-divider {
        display: none;
    }
}
