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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    color: #1e1b18;
    background: #2a2420;
    overflow-x: hidden;
}

/* ===== HERO / THE ENTRANCE ===== */
.hero {
    position: relative;
    width: 100%;
    height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-marble {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse at 30% 40%, #3a3530 0%, #2a2420 70%),
        conic-gradient(from 45deg at 50% 50%, rgba(212,168,67,0.06) 0%, transparent 15%, rgba(212,168,67,0.04) 30%, transparent 45%, rgba(212,168,67,0.06) 60%, transparent 75%, rgba(212,168,67,0.04) 90%, transparent 100%),
        linear-gradient(135deg, rgba(212,168,67,0.08) 0%, transparent 40%, rgba(212,168,67,0.05) 70%, transparent 100%);
    background-color: #2a2420;
}

.hero-marble::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1' height='1' x='3' y='3' fill='%23faf5ef' opacity='0.03'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

.hero-wordmark {
    font-family: 'Fraunces', serif;
    font-size: clamp(3rem, 12vw, 18rem);
    font-weight: 900;
    color: #c4622d;
    text-shadow: 6px 6px 0 #1a5c5c;
    position: relative;
    z-index: 1;
    letter-spacing: 0.02em;
    line-height: 1;
}

.hero-tagline {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: #faf5ef;
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
}

/* Memphis floating shapes */
.memphis-shape {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.memphis-circle {
    top: 12%;
    left: 8%;
    animation: float1 10s ease-in-out infinite alternate;
}

.memphis-triangle {
    top: 20%;
    right: 12%;
    animation: float2 12s ease-in-out infinite alternate;
}

.memphis-zigzag {
    bottom: 18%;
    left: 5%;
    animation: float3 9s ease-in-out infinite alternate;
}

.memphis-circle2 {
    bottom: 25%;
    right: 8%;
    animation: float1 14s ease-in-out infinite alternate;
}

.memphis-square {
    top: 60%;
    left: 70%;
    animation: float2 11s ease-in-out infinite alternate;
}

@keyframes float1 {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(15px, -20px) rotate(8deg); }
}

@keyframes float2 {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-10px, 15px) rotate(-6deg); }
}

@keyframes float3 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10px, -10px); }
}

/* ===== STORY BAND ===== */
.story {
    position: relative;
    width: 100%;
    padding: 8rem 3vw;
    background-color: #f5ede0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='15' cy='15' r='5' fill='%23c4622d' opacity='0.05'/%3E%3Crect x='40' y='8' width='8' height='8' rx='2' fill='%233fb5a3' opacity='0.04'/%3E%3Cpolygon points='10,50 16,38 4,38' fill='%23d4a843' opacity='0.05'/%3E%3Ccircle cx='48' cy='48' r='4' fill='%23e8a4a0' opacity='0.06'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

.story-content {
    margin-left: 12vw;
    max-width: 42ch;
    position: relative;
}

.story-text {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1rem, 1.1vw, 1.25rem);
    line-height: 1.7;
    color: #1e1b18;
    margin-bottom: 2rem;
    font-variation-settings: 'wght' 400;
    transition: font-variation-settings 0.6s ease-out;
}

.story-text.weight-active {
    font-variation-settings: 'wght' 500;
}

.story-pullquotes {
    position: absolute;
    right: 5vw;
    top: 12rem;
    width: 28ch;
    display: flex;
    flex-direction: column;
    gap: 12rem;
}

.pullquote {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 800;
    font-size: clamp(1.8rem, 3.5vw, 3.5rem);
    color: #c4622d;
    border-left: 4px solid #d4a843;
    padding-left: 1.5rem;
    line-height: 1.3;
}

/* ===== WORK SHELF ===== */
.work {
    position: relative;
    width: 100%;
    padding: 6rem 3vw 8rem;
    background: #1a5c5c;
}

.work-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.5rem, 6vw, 7rem);
    font-weight: 900;
    color: #faf5ef;
    text-align: center;
    margin-bottom: 4rem;
}

.work-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    padding: 0 2vw;
}

.work-card {
    width: 300px;
    height: 400px;
    padding: 2.5rem 2rem;
    border: 3px solid #1e1b18;
    box-shadow: 8px 8px 0 #c4622d;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    cursor: default;
    background:
        radial-gradient(ellipse at 40% 30%, #4a4540 0%, #3a3530 60%),
        linear-gradient(160deg, rgba(212,168,67,0.08) 0%, transparent 50%);
    background-color: #3a3530;
    transition: transform 0.3s ease;
}

.work-card.tilt-left {
    transform: rotate(-2deg);
}

.work-card.tilt-right {
    transform: rotate(2deg);
}

.work-card:hover {
    animation: shake 0.3s ease;
    animation-fill-mode: forwards;
}

.work-card.tilt-left:hover {
    animation-name: shake-left;
}

.work-card.tilt-right:hover {
    animation-name: shake-right;
}

@keyframes shake-left {
    0%, 100% { transform: rotate(-2deg); }
    25% { transform: rotate(-2deg) translate(-4px, 0); }
    50% { transform: rotate(-2deg) translate(4px, 0); }
    75% { transform: rotate(-2deg) translate(-2px, 0); }
}

@keyframes shake-right {
    0%, 100% { transform: rotate(2deg); }
    25% { transform: rotate(2deg) translate(-4px, 0); }
    50% { transform: rotate(2deg) translate(4px, 0); }
    75% { transform: rotate(2deg) translate(-2px, 0); }
}

.card-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.875rem;
    color: #3fb5a3;
    margin-bottom: 0.5rem;
}

.card-title {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: #faf5ef;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.card-body {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: #faf5ef;
    line-height: 1.6;
    opacity: 0.85;
}

/* ===== ETHOS GROVE ===== */
.ethos {
    position: relative;
    width: 100%;
    padding: 8rem 3vw;
    background: #2a2420;
    overflow: hidden;
}

.botanical {
    position: absolute;
    pointer-events: none;
}

.botanical-fern {
    left: 2vw;
    top: 5%;
}

.botanical-leaf {
    right: 8vw;
    top: 30%;
}

.botanical-seed {
    right: 15vw;
    bottom: 15%;
}

.ethos-values {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.ethos-statement {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 5vw, 5rem);
    color: #faf5ef;
    text-align: center;
    font-variation-settings: 'wght' 100;
    transition: font-variation-settings 0.6s ease-out;
    line-height: 1.2;
}

.ethos-statement.font-active {
    font-variation-settings: 'wght' 700;
}

.ethos-highlight {
    color: #d4a843;
}

/* ===== CONTACT SLAB ===== */
.contact {
    position: relative;
    width: 100%;
    padding: 6rem 3vw;
    overflow: hidden;
}

.contact-marble {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse at 30% 40%, #3a3530 0%, #2a2420 70%),
        conic-gradient(from 45deg at 50% 50%, rgba(212,168,67,0.06) 0%, transparent 15%, rgba(212,168,67,0.04) 30%, transparent 45%);
    background-color: #2a2420;
}

.contact-marble::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(245, 237, 224, 0.3);
}

.confetti {
    position: absolute;
    z-index: 1;
    opacity: 0.08;
    pointer-events: none;
}

.confetti-1 { top: 10%; left: 5%; }
.confetti-2 { top: 15%; right: 10%; }
.confetti-3 { bottom: 20%; left: 15%; }
.confetti-4 { top: 40%; left: 80%; }
.confetti-5 { bottom: 30%; right: 20%; }
.confetti-6 { top: 60%; left: 30%; }
.confetti-4 { color: #e8a4a0; }

.contact-zigzag {
    position: relative;
    z-index: 1;
    display: block;
    margin: 0 auto 3rem;
}

.contact-zigzag polyline {
    animation: zigzag-pulse 4s linear infinite;
}

@keyframes zigzag-pulse {
    0% { stroke-dashoffset: 0; }
    50% { stroke-dashoffset: 500; }
    100% { stroke-dashoffset: 1000; }
}

.contact-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.contact-title {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 4rem);
    color: #faf5ef;
    margin-bottom: 1.5rem;
}

.contact-email {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 1.4rem;
    color: #c4622d;
    margin-bottom: 0.75rem;
}

.contact-location {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: #faf5ef;
    margin-bottom: 2rem;
}

.contact-meta {
    font-family: 'Space Mono', monospace;
    font-size: 0.875rem;
    color: #d4a843;
    opacity: 0.6;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .memphis-shape,
    .contact-zigzag polyline {
        animation: none;
    }
    .work-card:hover {
        animation: none;
    }
    .story-text,
    .ethos-statement {
        transition: none;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .story {
        padding: 5rem 5vw;
    }
    .story-content {
        margin-left: 5vw;
        max-width: none;
    }
    .story-pullquotes {
        position: static;
        width: 100%;
        padding: 2rem 5vw;
        gap: 3rem;
    }
    .work-cards {
        flex-direction: column;
        align-items: center;
    }
    .work-card {
        width: 90vw;
        max-width: 340px;
        height: auto;
        min-height: 300px;
    }
    .ethos-statement {
        font-size: clamp(1.5rem, 7vw, 3rem);
    }
}
