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

:root {
    --deep-plum: #3a2850;
    --plum-dark: #2d2040;
    --twilight-mauve: #7b6b8a;
    --lavender-mist: #8a7a9a;
    --purple-mid: #5c4a6b;
    --peach-puff: #ffb5a7;
    --blush-mist: #fce4ec;
    --warm-cream: #faf5f0;
    --candle-gold: #ffe0a3;
    --white: #ffffff;
    --lilac-soft: #c9a0dc;
}

body {
    background-color: var(--plum-dark);
    color: var(--warm-cream);
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

.candle-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 224, 163, 0.08) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

.site-header {
    text-align: center;
    padding: 4rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

.logo {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(2rem, 5.5vw, 4.2rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--blush-mist);
}

.logo .dot {
    color: var(--candle-gold);
}

.tagline {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1.1rem;
    color: var(--lavender-mist);
    margin-top: 0.5rem;
    font-weight: 300;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.bento-cell {
    background: rgba(58, 40, 80, 0.6);
    border: 1px solid rgba(201, 160, 220, 0.15);
    border-radius: 4px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.4s ease;
}

.bento-cell.visible {
    opacity: 1;
    transform: translateY(0);
}

.bento-cell:hover {
    box-shadow: 0 0 30px rgba(255, 224, 163, 0.1), inset 0 0 20px rgba(255, 181, 167, 0.05);
}

.bento-cell[data-depth="deep"] {
    box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Grid areas */
.cell-hero {
    grid-column: 1 / 4;
    grid-row: 1 / 2;
    min-height: 280px;
}

.cell-about {
    grid-column: 4 / 5;
    grid-row: 1 / 3;
}

.cell-image {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    min-height: 200px;
}

.cell-quote {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
}

.cell-feature {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
}

.cell-image-2 {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
    min-height: 200px;
}

.cell-cta {
    grid-column: 4 / 5;
    grid-row: 3 / 4;
}

.cell-footer {
    grid-column: 1 / -1;
    grid-row: 4 / 5;
    text-align: center;
    padding: 1.5rem;
}

/* Typography */
h2, h3 {
    font-family: 'Share Tech Mono', monospace;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--peach-puff);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h3 {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
}

p {
    color: var(--warm-cream);
    font-size: 0.95rem;
}

blockquote {
    font-family: 'Nunito Sans', sans-serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--lilac-soft);
    border-left: 3px solid var(--candle-gold);
    padding-left: 1.5rem;
    display: flex;
    align-items: center;
    height: 100%;
}

/* Floating puzzle pieces */
.puzzle-piece {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--peach-puff);
    opacity: 0.15;
    clip-path: polygon(0% 25%, 25% 25%, 25% 0%, 75% 0%, 75% 25%, 100% 25%, 100% 75%, 75% 75%, 75% 100%, 25% 100%, 25% 75%, 0% 75%);
}

.puzzle-piece[data-float="1"] {
    top: 20%;
    right: 10%;
    animation: floatPiece 6s ease-in-out infinite;
}

.puzzle-piece[data-float="2"] {
    bottom: 20%;
    right: 25%;
    width: 30px;
    height: 30px;
    animation: floatPiece 8s ease-in-out infinite 1s;
}

.puzzle-piece[data-float="3"] {
    top: 40%;
    right: 5%;
    width: 25px;
    height: 25px;
    animation: floatPiece 7s ease-in-out infinite 2s;
}

@keyframes floatPiece {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}

/* Duotone images */
.duotone {
    background: var(--purple-mid);
    position: relative;
    height: 100%;
    min-height: 180px;
}

.photo-fragment {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--purple-mid), var(--peach-puff));
    opacity: 0.5;
    clip-path: polygon(5% 10%, 30% 0%, 45% 8%, 70% 2%, 95% 12%, 100% 40%, 92% 65%, 100% 85%, 80% 100%, 50% 95%, 20% 100%, 0% 80%, 5% 50%);
}

/* Candle icon */
.candle-icon {
    margin-top: 1.5rem;
}

.flame {
    animation: flicker 2s ease-in-out infinite;
    transform-origin: center bottom;
}

.flame-inner {
    animation: flicker 1.5s ease-in-out infinite 0.3s;
    transform-origin: center bottom;
}

@keyframes flicker {
    0%, 100% { transform: scaleX(1) scaleY(1); }
    25% { transform: scaleX(0.9) scaleY(1.05); }
    50% { transform: scaleX(1.05) scaleY(0.95); }
    75% { transform: scaleX(0.95) scaleY(1.02); }
}

/* Button */
.puzzle-btn {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    background: transparent;
    border: 1px solid var(--peach-puff);
    color: var(--peach-puff);
    padding: 0.8rem 1.8rem;
    cursor: pointer;
    margin-top: 1.2rem;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 2px;
}

.puzzle-btn:hover {
    background: var(--peach-puff);
    color: var(--deep-plum);
    box-shadow: 0 0 20px rgba(255, 181, 167, 0.3);
}

/* Footer */
.footer-text {
    font-size: 0.85rem;
    color: var(--lavender-mist);
}

/* Responsive */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
        padding: 1rem;
    }

    .cell-hero {
        grid-column: 1 / -1;
    }

    .cell-about {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .cell-image { grid-column: 1 / 2; grid-row: auto; }
    .cell-quote { grid-column: 2 / -1; grid-row: auto; }
    .cell-feature { grid-column: 1 / -1; grid-row: auto; }
    .cell-image-2 { grid-column: 1 / 2; grid-row: auto; }
    .cell-cta { grid-column: 2 / -1; grid-row: auto; }
    .cell-footer { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 480px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .cell-hero,
    .cell-about,
    .cell-image,
    .cell-quote,
    .cell-feature,
    .cell-image-2,
    .cell-cta,
    .cell-footer {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}
