/* ppuzzl.works — Monochrome puzzle workshop aesthetic */

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

:root {
    --color-bg: #faf8f6;
    --color-warm-white: #f5f3f0;
    --color-warm-light: #f0ece8;
    --color-stone: #d4d0cc;
    --color-mid: #6b6b6b;
    --color-dark: #3a3a3a;
    --color-darker: #2c2c2c;
    --color-ink: #1a1a1a;
    --color-black: #0d0d0d;
    --font: 'Commissioner', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-weight: 400;
    color: var(--color-ink);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation Pill */
.nav-pill {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    background: var(--color-ink);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0;
    transition: gap 0.3s ease, padding 0.3s ease;
}

.nav-pill:hover {
    gap: 1rem;
    padding: 0.5rem 1.5rem;
}

.nav-trigger {
    background: none;
    border: none;
    color: var(--color-bg);
    font-size: 1.2rem;
    cursor: pointer;
    font-family: var(--font);
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 1rem;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.3s ease, opacity 0.3s ease;
}

.nav-pill:hover .nav-links {
    max-width: 300px;
    opacity: 1;
}

.nav-links a {
    color: var(--color-bg);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.nav-links a:hover {
    color: var(--color-stone);
}

/* Hero Section */
.hero {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--color-bg);
}

.hero-composition {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.puzzle-illustration {
    width: clamp(280px, 50vw, 500px);
    height: auto;
}

.puzzle-piece {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-title {
    font-family: var(--font);
    font-weight: 800;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    letter-spacing: -0.01em;
    line-height: 1.1;
    color: var(--color-ink);
}

.hero-title .dot {
    color: var(--color-mid);
}

.hero-subtitle {
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--color-mid);
    letter-spacing: 0.02em;
}

.scroll-cue {
    position: absolute;
    bottom: 2rem;
    animation: pulse-bounce 2s infinite;
}

.scroll-arrow {
    font-size: 1.5rem;
    color: var(--color-stone);
}

@keyframes pulse-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* Sections */
.section {
    min-height: 100dvh;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section-title {
    font-family: var(--font);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.01em;
    margin-bottom: 3rem;
    color: var(--color-ink);
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
}

.project-card {
    background: var(--color-warm-white);
    border: 2px solid var(--color-stone);
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-ink);
}

.card-illustration {
    margin-bottom: 1.5rem;
}

.card-illustration svg {
    width: 100%;
    height: auto;
}

.project-card h3 {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--color-ink);
}

.project-card p {
    font-weight: 400;
    color: var(--color-mid);
    font-size: 0.95rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    max-width: 900px;
    width: 100%;
    align-items: center;
}

.about-lead {
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    color: var(--color-ink);
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.about-illustration svg {
    width: 100%;
    height: auto;
    animation: slow-spin 30s linear infinite;
}

@keyframes slow-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Contact Section */
.contact-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.contact-lead {
    font-weight: 500;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--color-dark);
}

.contact-link {
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--color-ink);
    text-decoration: none;
    border-bottom: 3px solid var(--color-stone);
    padding-bottom: 0.2rem;
    transition: border-color 0.3s ease;
}

.contact-link:hover {
    border-color: var(--color-ink);
}

.contact-decoration {
    margin-top: 2rem;
}

.spinning-piece {
    width: 60px;
    height: 60px;
    animation: slow-spin 10s linear infinite;
}

/* Footer */
.site-footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-mid);
    border-top: 1px solid var(--color-stone);
}

/* Reveal animations */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-illustration {
        order: -1;
        max-width: 200px;
        margin: 0 auto;
    }

    .section {
        padding: 4rem 1.5rem;
    }
}
