/* dilemma.studio — Deep Ocean Creative Studio */
/* Palette: #0a1628, #0d2137, #00ffc8, #e0d4f5, #ff3d6e, #8b9cb5, #5a6b80, #7fffdb */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #0a1628;
    color: #8b9cb5;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    letter-spacing: 0.01em;
    line-height: 1.85;
    overflow-x: hidden;
}

/* ============================
   DEPTH GAUGE
   ============================ */

#depth-gauge {
    position: fixed;
    right: 2vw;
    top: 10vh;
    height: 80vh;
    width: 2px;
    z-index: 100;
}

#depth-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: rgba(0, 255, 200, 0.1);
}

#depth-marker {
    position: absolute;
    top: 0;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff3d6e;
    transform: translate(-50%, 0);
    transition: width 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                height 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

#depth-marker.expanded {
    width: 12px;
    height: 12px;
}

/* ============================
   ZONES — SHARED
   ============================ */

.zone {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* ============================
   CAUSTIC LIGHT LAYER
   ============================ */

.caustic-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 40% at 20% 30%, rgba(127, 255, 219, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 80% 70%, rgba(0, 255, 200, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse 70% 35% at 50% 50%, rgba(127, 255, 219, 0.025) 0%, transparent 65%);
    background-size: 200% 200%, 180% 180%, 220% 220%;
    animation: caustic-drift 25s linear infinite;
    z-index: 0;
}

.caustic-intense {
    background:
        radial-gradient(ellipse 60% 40% at 20% 30%, rgba(127, 255, 219, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 80% 70%, rgba(0, 255, 200, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 70% 35% at 50% 50%, rgba(127, 255, 219, 0.05) 0%, transparent 65%);
    background-size: 200% 200%, 180% 180%, 220% 220%;
}

@keyframes caustic-drift {
    0%   { background-position: 0% 0%, 100% 100%, 50% 50%; }
    33%  { background-position: 50% 25%, 25% 75%, 100% 0%; }
    66%  { background-position: 100% 50%, 0% 25%, 0% 100%; }
    100% { background-position: 0% 0%, 100% 100%, 50% 50%; }
}

/* ============================
   LEATHER GRAIN TEXTURE
   ============================ */

.leather-grain {
    background:
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            transparent 2px,
            rgba(0, 255, 200, 0.02) 2px,
            rgba(0, 255, 200, 0.02) 4px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent 0px,
            transparent 3px,
            rgba(224, 212, 245, 0.015) 3px,
            rgba(224, 212, 245, 0.015) 5px
        ),
        radial-gradient(
            ellipse at 50% 50%,
            rgba(13, 33, 55, 0.8) 0%,
            rgba(10, 22, 40, 0.95) 100%
        );
}

/* ============================
   SECTION LABELS
   ============================ */

.section-label {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(0.7rem, 0.8vw, 0.85rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(0, 255, 200, 0.6);
    position: relative;
    z-index: 2;
}

.section-label-left {
    padding-top: 10vh;
    padding-left: 10vw;
}

.section-label-right {
    padding-top: 10vh;
    text-align: right;
    padding-right: 10vw;
}

.section-label-center {
    padding-top: 10vh;
    text-align: center;
}

/* ============================
   ZONE 0 — SURFACE
   ============================ */

#zone-0 {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #0a1628;
}

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

#title-dilemma {
    font-family: 'Bebas Neue', cursive;
    font-weight: 400;
    font-size: clamp(4rem, 10vw, 8rem);
    letter-spacing: 0.12em;
    line-height: 0.95;
    color: #00ffc8;
    text-transform: uppercase;
    animation: title-breathe 6s ease-in-out infinite;
    will-change: transform;
}

#title-studio {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 0.3em;
    color: #8b9cb5;
    margin-top: 0.8rem;
}

@keyframes title-breathe {
    0%, 100% { transform: scale(0.98); }
    50%      { transform: scale(1.02); }
}

#chevron-down {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: chevron-pulse 2s ease-in-out infinite;
}

#chevron-down span {
    display: block;
    width: 20px;
    height: 20px;
    border-right: 2px solid #00ffc8;
    border-bottom: 2px solid #00ffc8;
    transform: rotate(45deg);
}

@keyframes chevron-pulse {
    0%, 100% { opacity: 0.3; }
    50%      { opacity: 0.8; }
}

/* ============================
   ZONE 1 — THERMOCLINE
   ============================ */

#zone-1 {
    min-height: 120vh;
    background: #0a1628;
    padding-bottom: 10vh;
}

.panel-cascade {
    display: flex;
    flex-direction: column;
    gap: 8vh;
    margin-top: 6vh;
    position: relative;
    z-index: 2;
}

.panel {
    width: 45vw;
    padding: 3rem;
    border: 1px solid rgba(0, 255, 200, 0.15);
    border-radius: 2px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                border-radius 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.panel:hover {
    border-color: rgba(0, 255, 200, 0.4);
    box-shadow: 0 0 40px rgba(0, 255, 200, 0.08);
    border-radius: 16px;
}

.panel-1 { margin-left: 10vw; }
.panel-2 { margin-left: 25vw; }
.panel-3 { margin-left: 40vw; }

.panel-title {
    font-family: 'Bebas Neue', cursive;
    font-weight: 400;
    font-size: 1.8rem;
    color: #e0d4f5;
    letter-spacing: 0.08em;
    line-height: 1;
    margin-bottom: 1rem;
}

.panel-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    color: #8b9cb5;
    line-height: 1.85;
    letter-spacing: 0.01em;
}

/* ============================
   ZONE 2 — MESOPELAGIC
   ============================ */

#zone-2 {
    min-height: 120vh;
    background: #0a1628;
    padding-bottom: 10vh;
}

.work-panel {
    width: 80vw;
    margin: 6vh auto 0;
    position: relative;
    z-index: 2;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.project-card {
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(0, 255, 200, 0.1);
    border-radius: 4px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: border-radius 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 0;
}

.project-card-1::before {
    background: linear-gradient(135deg, #0d2137 0%, #1a0a30 50%, #0a1628 100%);
}
.project-card-2::before {
    background: linear-gradient(135deg, #0a1628 0%, #0d2137 50%, #062a20 100%);
}
.project-card-3::before {
    background: linear-gradient(135deg, #0d2137 0%, #062a20 50%, #0a1628 100%);
}
.project-card-4::before {
    background: linear-gradient(135deg, #1a0a30 0%, #0a1628 50%, #0d2137 100%);
}

.project-card:hover {
    border-radius: 24px;
    box-shadow: 0 0 60px rgba(0, 255, 200, 0.1);
    border-color: rgba(0, 255, 200, 0.3);
}

.project-card:hover::before {
    opacity: 0.8;
}

.project-category {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(0.7rem, 0.8vw, 0.85rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8b9cb5;
    position: relative;
    z-index: 1;
    margin-bottom: 0.5rem;
}

.project-title {
    font-family: 'Bebas Neue', cursive;
    font-weight: 400;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    color: #00ffc8;
    position: relative;
    z-index: 1;
    transition: color 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover .project-title {
    color: #ff3d6e;
}

/* ============================
   ZONE 3 — BATHYPELAGIC
   ============================ */

#zone-3 {
    min-height: 100vh;
    background: #0a1628;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15vh 0;
}

#zone-3 .section-label-center {
    padding-top: 0;
    margin-bottom: 6vh;
}

.manifesto {
    max-width: 50ch;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 2rem;
}

.manifesto p {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    letter-spacing: 0.02em;
    line-height: 2.0;
    color: #e0d4f5;
    margin-bottom: 3rem;
}

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

/* ============================
   ZONE 4 — ABYSSAL
   ============================ */

#zone-4 {
    min-height: 80vh;
    background: #0a1628;
    display: grid;
    place-items: center;
}

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

.contact-email {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 0.08em;
    color: #00ffc8;
    text-decoration: none;
    transition: opacity 0.4s ease;
}

.contact-email:hover {
    opacity: 0.7;
}

.abyssal-line {
    width: 20vw;
    height: 1px;
    background: rgba(0, 255, 200, 0.2);
    margin: 2rem auto;
}

.copyright {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(0.7rem, 0.8vw, 0.85rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #5a6b80;
}

/* ============================
   RESPONSIVE — MOBILE
   ============================ */

@media (max-width: 768px) {
    #depth-gauge {
        display: none;
    }

    .panel {
        width: 85vw;
    }

    .panel-1,
    .panel-2,
    .panel-3 {
        margin-left: 7.5vw;
    }

    .work-panel {
        width: 90vw;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .manifesto {
        max-width: 90vw;
    }

    .section-label-left {
        padding-left: 7.5vw;
    }

    .section-label-right {
        padding-right: 7.5vw;
    }
}
