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

:root {
    --burgundy: #5B1A2E;
    --cobalt: #2744A8;
    --blush: #D4887A;
    --cream: #F5EDE3;
    --charcoal: #1E1A1C;
    --gold: #D4A843;
    --graphite: #6B6168;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    color: var(--charcoal);
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    line-height: 1.65;
    overflow-x: hidden;
}

/* ===== FLOATING CRYSTAL ANCHOR ===== */
.crystal-anchor {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1000;
    animation: crystal-spin 20s linear infinite;
}

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

/* ===== ZONE SHARED ===== */
.zone {
    min-height: 100vh;
    position: relative;
    padding-left: 8vw;
    padding-right: 8vw;
}

.zone-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: -0.05em;
    color: var(--charcoal);
    text-align: left;
}

/* ===== ZONE A: DECLARATION ===== */
.zone-a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: var(--cream);
    overflow: hidden;
}

.zone-a-content {
    position: relative;
    z-index: 2;
    max-width: 55%;
}

.wordmark {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(3.5rem, 10vw, 9rem);
    letter-spacing: -0.05em;
    color: var(--charcoal);
    text-transform: uppercase;
    line-height: 0.95;
}

.tagline {
    margin-top: 1.5rem;
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    color: var(--graphite);
}

/* Memphis Shapes */
.zone-a-shapes {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
}

.memphis-shape {
    position: absolute;
}

.shape-circle {
    border-radius: 50%;
}

.shape-1 {
    width: 180px;
    height: 180px;
    background: var(--burgundy);
    opacity: 0.15;
    top: 10%;
    right: 15%;
    animation: memphis-float 8s ease-in-out infinite;
}

.shape-2 {
    width: 100px;
    height: 120px;
    background: var(--cobalt);
    opacity: 0.2;
    clip-path: polygon(50% 0%, 100% 30%, 85% 100%, 15% 100%, 0% 30%);
    top: 25%;
    right: 55%;
    animation: memphis-float 6s ease-in-out 1s infinite;
}

.shape-3 {
    width: 60px;
    height: 60px;
    background: var(--blush);
    opacity: 0.4;
    top: 60%;
    right: 30%;
    animation: memphis-float 10s ease-in-out 0.5s infinite;
}

.shape-4 {
    width: 140px;
    height: 160px;
    background: var(--burgundy);
    opacity: 0.12;
    clip-path: polygon(30% 0%, 100% 10%, 80% 100%, 0% 85%);
    top: 55%;
    right: 60%;
    animation: memphis-float 7s ease-in-out 2s infinite;
}

.shape-5 {
    width: 240px;
    height: 240px;
    background: var(--cobalt);
    opacity: 0.08;
    top: -5%;
    right: -5%;
    animation: memphis-float 9s ease-in-out 3s infinite;
}

.shape-6 {
    top: 40%;
    right: 10%;
    transform: rotate(-15deg);
}

.shape-7 {
    top: 75%;
    right: 45%;
    transform: rotate(10deg);
}

.shape-8 {
    width: 70px;
    height: 90px;
    background: var(--blush);
    opacity: 0.25;
    clip-path: polygon(50% 0%, 95% 25%, 80% 95%, 20% 95%, 5% 25%);
    top: 80%;
    right: 15%;
    animation: memphis-float 8s ease-in-out 1.5s infinite;
}

@keyframes memphis-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ===== ZONE B: WORK GRID ===== */
.zone-b {
    padding-top: 10vh;
    padding-bottom: 10vh;
    background: var(--cream);
}

.zone-b .zone-heading {
    margin-bottom: 6vh;
}

.cards-container {
    display: flex;
    gap: 2vw;
    perspective: 1200px;
    margin-bottom: 8vh;
}

.card-wrapper {
    flex: 1;
    aspect-ratio: 3/4;
    max-height: 60vh;
}

.card-wrapper-1 { transform: rotate(-3deg); }
.card-wrapper-2 { transform: rotate(2deg); margin-top: 3vh; }
.card-wrapper-3 { transform: rotate(-1.5deg); margin-top: -1vh; }

.card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.card.flipped {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 4px;
    overflow: hidden;
}

.card-front {
    background: var(--charcoal);
}

.card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.card-image-1 {
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--cobalt) 100%);
    clip-path: polygon(8% 0%, 95% 3%, 100% 15%, 97% 92%, 88% 100%, 3% 96%, 0% 82%, 2% 8%);
}

.card-image-2 {
    background: linear-gradient(225deg, var(--cobalt) 0%, var(--burgundy) 80%);
    clip-path: polygon(5% 2%, 92% 0%, 100% 12%, 98% 95%, 90% 100%, 2% 98%, 0% 88%, 3% 5%);
}

.card-image-3 {
    background: linear-gradient(45deg, var(--burgundy) 20%, var(--cobalt) 100%);
    clip-path: polygon(3% 0%, 97% 5%, 100% 18%, 95% 90%, 85% 100%, 5% 95%, 0% 80%, 1% 10%);
}

.card-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    font-family: 'DM Mono', monospace;
    font-style: italic;
    font-size: 0.85em;
    color: var(--cream);
    opacity: 0.7;
}

.card-back {
    transform: rotateY(180deg);
    background:
        radial-gradient(circle at 15% 25%, var(--burgundy) 2px, transparent 2px),
        radial-gradient(circle at 45% 60%, var(--cobalt) 4px, transparent 4px),
        radial-gradient(circle at 72% 18%, var(--blush) 3px, transparent 3px),
        radial-gradient(circle at 88% 75%, var(--gold) 2px, transparent 2px),
        radial-gradient(circle at 33% 85%, var(--burgundy) 5px, transparent 5px),
        var(--cream);
    background-size: 200px 200px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-back-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.card-back-text {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
}

.card-back-date {
    font-family: 'DM Mono', monospace;
    font-style: italic;
    font-size: 0.85em;
    color: var(--graphite);
}

.approach-text {
    max-width: 650px;
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.7;
}

/* ===== ZONE C: ETHOS ===== */
.zone-c {
    display: flex;
    align-items: center;
    gap: 6vw;
    padding-top: 10vh;
    padding-bottom: 10vh;
    background:
        radial-gradient(circle at 15% 25%, var(--burgundy) 2px, transparent 2px),
        radial-gradient(circle at 45% 60%, var(--cobalt) 4px, transparent 4px),
        radial-gradient(circle at 72% 18%, var(--blush) 3px, transparent 3px),
        radial-gradient(circle at 88% 75%, var(--gold) 2px, transparent 2px),
        radial-gradient(circle at 33% 85%, var(--burgundy) 5px, transparent 5px),
        var(--cream);
    background-size: 200px 200px;
}

.ethos-text {
    flex: 0 0 40%;
}

.ethos-text p {
    margin-bottom: 1.5rem;
    color: var(--charcoal);
}

.ethos-text .zone-heading {
    margin-bottom: 3rem;
}

.highlight {
    background: var(--burgundy);
    color: var(--cream);
    padding: 0.1em 0.4em;
    font-weight: 500;
}

.ethos-photo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ethos-image-crystal {
    width: 100%;
    aspect-ratio: 3/4;
    max-height: 70vh;
    background: linear-gradient(160deg, var(--burgundy) 0%, var(--cobalt) 70%);
    clip-path: polygon(10% 0%, 90% 5%, 100% 20%, 95% 85%, 80% 100%, 5% 95%, 0% 75%, 8% 10%);
}

/* ===== ZONE D: CONTACT ===== */
.zone-d {
    background: var(--burgundy);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

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

.contact-email {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4.5rem);
    letter-spacing: -0.03em;
    color: var(--cream);
}

.squiggle {
    position: absolute;
    bottom: 10vh;
    right: 8vw;
    z-index: 1;
}

.squiggle path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: squiggle-draw 3s ease-in-out infinite alternate;
}

@keyframes squiggle-draw {
    to { stroke-dashoffset: 0; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .zone-a-content {
        max-width: 80%;
    }

    .zone-a-shapes .memphis-shape:nth-child(2n) {
        display: none;
    }

    .cards-container {
        flex-direction: column;
        gap: 4vh;
    }

    .card-wrapper {
        max-height: 50vh;
    }

    .card-wrapper-1,
    .card-wrapper-2,
    .card-wrapper-3 {
        transform: rotate(0deg);
        margin-top: 0;
    }

    .zone-c {
        flex-direction: column-reverse;
    }

    .ethos-text {
        flex: none;
        width: 100%;
    }

    .ethos-photo {
        width: 100%;
    }
}
