/* ============================================
   desca.work - Y2K Futurism x Muted Vintage
   ============================================ */

/* CSS Custom Properties */
:root {
    --deep-ground: #3d3228;
    --primary-bg: #f0e8dc;
    --secondary-bg: #c4b89e;
    --primary-text: #5a4d3e;
    --body-text: #6b5e50;
    --accent-warm: #c48b6e;
    --accent-cool: #8a9674;
    --highlight: #e8c4a8;
    --lens-flare: #d4b896;
    --dusty-sand: #9b8a75;
    --light-text: #e8ddd0;
    --pill-bg: #b8a48e;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.72;
    letter-spacing: 0.01em;
    color: var(--body-text);
    background-color: var(--primary-bg);
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   Noise Texture Overlay
   ============================================ */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

/* ============================================
   Floating Elements Layer
   ============================================ */
.floating-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Light Orbs - translucent bokeh circles */
.float-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,196,168,0.5) 0%, transparent 70%);
}

.float-orb-1 {
    width: 180px;
    height: 180px;
    top: 15%;
    left: 70%;
    animation: float-drift-1 35s ease-in-out infinite alternate;
}

.float-orb-2 {
    width: 120px;
    height: 120px;
    top: 55%;
    left: 20%;
    background: radial-gradient(circle, rgba(212,184,150,0.4) 0%, transparent 70%);
    animation: float-drift-2 28s ease-in-out infinite alternate;
}

.float-orb-3 {
    width: 200px;
    height: 200px;
    top: 75%;
    left: 60%;
    background: radial-gradient(circle, rgba(232,196,168,0.35) 0%, transparent 70%);
    animation: float-drift-3 40s ease-in-out infinite alternate;
}

/* Geometric Shapes - rounded rects and pills */
.float-shape {
    position: absolute;
    border-radius: 20px;
    opacity: 0.8;
}

.float-shape-1 {
    width: 40px;
    height: 40px;
    background: rgba(196,139,110,0.15);
    top: 25%;
    left: 85%;
    animation: float-drift-4 25s ease-in-out infinite alternate;
    box-shadow: 0 0 20px rgba(212,184,150,0.3);
}

.float-shape-2 {
    width: 24px;
    height: 50px;
    background: rgba(138,150,116,0.12);
    top: 45%;
    left: 10%;
    border-radius: 12px;
    animation: float-drift-5 32s ease-in-out infinite alternate;
}

.float-shape-3 {
    width: 60px;
    height: 20px;
    background: rgba(196,184,158,0.2);
    top: 65%;
    left: 75%;
    border-radius: 10px;
    animation: float-drift-1 22s ease-in-out infinite alternate-reverse;
    box-shadow: 0 0 20px rgba(212,184,150,0.3);
}

.float-shape-4 {
    width: 16px;
    height: 16px;
    background: rgba(196,139,110,0.15);
    top: 35%;
    left: 45%;
    border-radius: 50%;
    animation: float-drift-2 38s ease-in-out infinite alternate;
}

.float-shape-5 {
    width: 30px;
    height: 30px;
    background: rgba(138,150,116,0.12);
    top: 85%;
    left: 30%;
    border-radius: 50%;
    animation: float-drift-3 30s ease-in-out infinite alternate-reverse;
    box-shadow: 0 0 20px rgba(212,184,150,0.3);
}

/* Small circles */
.float-circle {
    position: absolute;
    border-radius: 50%;
}

.float-circle-1 {
    width: 12px;
    height: 12px;
    background: rgba(196,139,110,0.2);
    top: 20%;
    left: 30%;
    animation: float-drift-4 20s ease-in-out infinite alternate;
}

.float-circle-2 {
    width: 18px;
    height: 18px;
    background: rgba(196,184,158,0.25);
    top: 50%;
    left: 80%;
    animation: float-drift-5 26s ease-in-out infinite alternate-reverse;
}

.float-circle-3 {
    width: 14px;
    height: 14px;
    background: rgba(138,150,116,0.18);
    top: 70%;
    left: 15%;
    animation: float-drift-1 33s ease-in-out infinite alternate;
}

.float-circle-4 {
    width: 22px;
    height: 22px;
    background: rgba(232,196,168,0.2);
    top: 90%;
    left: 55%;
    animation: float-drift-2 45s ease-in-out infinite alternate-reverse;
}

/* Float Drift Keyframes */
@keyframes float-drift-1 {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -20px) rotate(5deg); }
    50% { transform: translate(-15px, 25px) rotate(-3deg); }
    75% { transform: translate(20px, 10px) rotate(7deg); }
    100% { transform: translate(-25px, -30px) rotate(-5deg); }
}

@keyframes float-drift-2 {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-20px, 30px) rotate(-4deg); }
    50% { transform: translate(25px, -15px) rotate(6deg); }
    75% { transform: translate(-10px, -25px) rotate(-2deg); }
    100% { transform: translate(35px, 20px) rotate(8deg); }
}

@keyframes float-drift-3 {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(40px, -35px) rotate(4deg); }
    66% { transform: translate(-30px, 20px) rotate(-6deg); }
    100% { transform: translate(15px, 40px) rotate(3deg); }
}

@keyframes float-drift-4 {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -40px) rotate(10deg); }
    100% { transform: translate(25px, 15px) rotate(-5deg); }
}

@keyframes float-drift-5 {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, 25px) rotate(-8deg); }
    100% { transform: translate(-15px, -20px) rotate(4deg); }
}

/* ============================================
   Zones (Sections)
   ============================================ */
.zone {
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* ============================================
   Zone 1 - The Greeting
   ============================================ */
.zone-1 {
    min-height: 120vh;
    background-color: var(--primary-bg);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0 8%;
}

.lens-flare-hero {
    position: absolute;
    top: -15%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,184,150,0.4) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: flare-shift 8s ease-in-out infinite alternate;
}

.lens-flare-hero-secondary {
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 25vw;
    height: 25vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196,139,110,0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: flare-shift-alt 10s ease-in-out infinite alternate;
}

@keyframes flare-shift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(2%, -1%); }
}

@keyframes flare-shift-alt {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-1.5%, 2%); }
}

.zone-1-content {
    position: relative;
    z-index: 2;
    padding-top: 35vh;
    padding-left: 7%;
    max-width: 55%;
}

.greeting-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 7vw, 6rem);
    color: var(--primary-text);
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.greeting-tagline {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--body-text);
    max-width: 460px;
    line-height: 1.72;
}

/* ============================================
   Section Dividers - Curved Boundaries
   ============================================ */
.section-divider {
    position: relative;
    z-index: 3;
    height: 0;
    overflow: visible;
}

.transition-flare {
    position: absolute;
    left: 0;
    top: -1.5px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #d4b896 30%, #e8c4a8 50%, #d4b896 70%, transparent 100%);
    filter: blur(8px);
    opacity: 0.6;
    z-index: 5;
}

.divider-1 {
    margin-top: -1px;
}

.divider-2 {
    margin-top: -1px;
}

.divider-3 {
    margin-top: -1px;
}

/* ============================================
   Zone 2 - The Work Stream
   ============================================ */
.zone-2 {
    min-height: 160vh;
    background-color: var(--deep-ground);
    clip-path: ellipse(85% 55% at 50% 50%);
    padding: 12vh 8%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.lens-flare-zone2 {
    position: absolute;
    top: 10%;
    left: -5%;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,184,150,0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.zone-2-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 540px;
    margin-right: 5%;
}

.work-card {
    max-width: 500px;
    border-radius: 24px;
    background: rgba(240,232,220,0.06);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(232,196,168,0.12);
    padding: 2rem 2.2rem;
    box-shadow: inset 0 2px 8px rgba(61,50,40,0.06);
}

.work-date {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dusty-sand);
    display: block;
    margin-bottom: 0.6rem;
}

.work-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    color: var(--light-text);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.work-desc {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: var(--light-text);
    line-height: 1.72;
    opacity: 0.85;
}

/* ============================================
   Zone 3 - The Ethos
   ============================================ */
.zone-3 {
    min-height: 120vh;
    background-color: var(--primary-bg);
    clip-path: ellipse(88% 56% at 48% 50%);
    padding: 15vh 8%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.lens-flare-zone3 {
    position: absolute;
    bottom: 5%;
    right: 10%;
    width: 35vw;
    height: 35vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,196,168,0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.zone-3-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin-left: 10%;
}

.ethos-text p {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: var(--primary-text);
    line-height: 1.8;
    margin-bottom: 1.8rem;
}

.ethos-text p:last-child {
    margin-bottom: 0;
}

.highlight {
    background: linear-gradient(transparent 60%, rgba(196,139,110,0.25) 60%);
    padding: 0 2px;
}

/* ============================================
   Zone 4 - The Closing
   ============================================ */
.zone-4 {
    min-height: 80vh;
    background-color: var(--deep-ground);
    clip-path: ellipse(90% 58% at 50% 48%);
    padding: 15vh 8%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.lens-flare-zone4 {
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 45vw;
    height: 45vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,196,168,0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.zone-4-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.closing-heading {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--highlight);
    letter-spacing: 0.02em;
}

.closing-email {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    color: var(--accent-warm);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.4s ease;
}

.closing-email:hover {
    color: var(--highlight);
}

.closing-coda {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.7rem;
    color: var(--dusty-sand);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 4rem;
}

/* ============================================
   Lens Flare Shared Styles
   ============================================ */
.lens-flare {
    pointer-events: none;
    position: absolute;
}

/* ============================================
   Fade Reveal Animation
   ============================================ */
.fade-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.fade-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Work cards have slight rotation in initial state */
.work-card.fade-reveal {
    transform: translateY(30px) rotate(1deg);
}

.work-card.fade-reveal.revealed {
    transform: translateY(0) rotate(0deg);
}

/* ============================================
   Scroll to Top Pill
   ============================================ */
.scroll-top-pill {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50px;
    background: rgba(184,164,142,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.scroll-top-pill.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top-pill:hover {
    background: rgba(184,164,142,1);
}

.scroll-top-pill span {
    font-size: 1.2rem;
    color: var(--primary-bg);
    line-height: 1;
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media (max-width: 768px) {
    .zone-1-content {
        max-width: 90vw;
        padding-left: 0;
        padding-top: 30vh;
    }

    .zone-2 {
        clip-path: ellipse(95% 52% at 50% 50%);
        justify-content: center;
        padding: 10vh 5%;
    }

    .zone-2-content {
        margin-right: 0;
        max-width: 90vw;
    }

    .zone-3 {
        clip-path: ellipse(95% 53% at 50% 50%);
        justify-content: center;
        padding: 10vh 5%;
    }

    .zone-3-content {
        margin-left: 0;
        max-width: 90vw;
    }

    .zone-4 {
        clip-path: ellipse(95% 54% at 50% 50%);
    }

    .work-card {
        padding: 1.5rem 1.6rem;
    }

    .float-shape-3,
    .float-shape-5,
    .float-circle-2,
    .float-circle-4,
    .float-orb-3 {
        display: none;
    }

    .greeting-title {
        font-size: clamp(2.4rem, 10vw, 3.5rem);
    }
}
