/* ppuzzl.party - Ethereal Monochrome Light Corridor */

:root {
    --white-smoke: #EDEDED;
    --warm-gray: #D4CFC5;
    --ivory: #F5F0E8;
    --stone: #7A7A7A;
    --charcoal: #1A1A1A;
    --parchment: #E8D5B0;
    --void: #0F0F0F;
    --pale-gold: #C8B88A;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--void);
    color: var(--white-smoke);
    font-family: 'Karla', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Lens Flares */
.lens-flare {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    filter: blur(80px);
    opacity: 0;
    transition: opacity 1.5s ease;
}

.lens-flare.visible {
    opacity: 1;
}

.flare-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 240, 232, 0.12) 0%, transparent 70%);
    top: 10vh;
    right: -100px;
}

.flare-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(200, 184, 138, 0.08) 0%, transparent 70%);
    top: 60vh;
    left: -80px;
}

.flare-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 213, 176, 0.10) 0%, transparent 70%);
    top: 150vh;
    right: 10vw;
}

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 40px;
}

/* Aperture Section */
.aperture {
    min-height: 100vh;
    flex-direction: column;
    gap: 24px;
}

.aperture-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.wordmark {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 0.2em;
    color: var(--ivory);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeRise 2s ease-out 0.5s forwards;
    text-shadow: 0 0 60px rgba(245, 240, 232, 0.15);
}

.tagline {
    font-family: 'Karla', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: var(--stone);
    letter-spacing: 0.15em;
    text-transform: lowercase;
    opacity: 0;
    animation: fadeIn 1.5s ease-out 1.5s forwards;
}

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

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Wave Lines */
.wave-line {
    position: absolute;
    width: 100%;
    height: 1px;
    left: 0;
    opacity: 0.08;
}

.wave-1 {
    bottom: 30%;
    background: linear-gradient(90deg, transparent 0%, var(--warm-gray) 30%, var(--warm-gray) 70%, transparent 100%);
}

.wave-2 {
    bottom: 20%;
    background: linear-gradient(90deg, transparent 10%, var(--pale-gold) 40%, var(--pale-gold) 60%, transparent 90%);
}

.wave-3 {
    bottom: 10%;
    background: linear-gradient(90deg, transparent 0%, var(--stone) 50%, transparent 100%);
}

/* Glass Panels */
.glass-panel {
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 207, 197, 0.08);
    border-radius: 2px;
    padding: 60px 48px;
    max-width: 680px;
    width: 100%;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.glass-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.panel-tag {
    display: inline-block;
    font-family: 'Karla', sans-serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--pale-gold);
    text-transform: uppercase;
    margin-bottom: 24px;
    position: relative;
    padding-left: 20px;
}

.panel-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 12px;
    height: 1px;
    background: var(--pale-gold);
}

.section-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    letter-spacing: 0.08em;
    color: var(--ivory);
    margin-bottom: 24px;
}

.section-body {
    font-size: 15px;
    color: var(--warm-gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* People Grid - Magnetic nodes */
.people-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    margin: 40px 0;
}

.person-node {
    width: 80px;
    height: 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.node-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(200, 184, 138, 0.2);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.person-node:hover .node-glow {
    border-color: rgba(200, 184, 138, 0.5);
    box-shadow: 0 0 30px rgba(200, 184, 138, 0.1);
}

.node-label {
    font-family: 'Karla', sans-serif;
    font-size: 11px;
    color: var(--stone);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: absolute;
    bottom: -20px;
    white-space: nowrap;
}

/* Project List */
.project-list {
    list-style: none;
    margin: 20px 0;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(122, 122, 122, 0.12);
    color: var(--warm-gray);
    font-size: 15px;
}

.project-mark {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pale-gold);
    flex-shrink: 0;
    opacity: 0.6;
}

/* Contact */
.contact-row {
    margin-top: 24px;
}

.contact-link {
    font-family: 'Karla', sans-serif;
    font-size: 14px;
    color: var(--pale-gold);
    letter-spacing: 0.05em;
    opacity: 0.7;
    transition: opacity 0.3s;
    cursor: pointer;
}

.contact-link:hover {
    opacity: 1;
}

/* Wave Canvas */
#waveCanvas {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
}

/* Scroll-based section separators */
.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 207, 197, 0.06), transparent);
}

.afterimage::after {
    display: none;
}
