/* =============================================
   desca.works — Chromatic Descent Through Strata
   Blobitecture meets Geological Cross-Section
   Palette: #f0f4fa #a8c8e8 #d4ddc5 #6b7c5a #c4845c
            #b06a42 #3a3d42 #e8e6e0 #1a3a3a #5cbfa0
            #3d0f0f #d4892a #faf5eb #2a2a2e
   ============================================= */

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    line-height: 1.75;
    overflow-x: hidden;
    background: #f0f4fa;
}

/* --- Typography --- */
.stratum-header {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: clamp(2.5rem, 6vw, 5rem);
    text-transform: lowercase;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.depth-label {
    font-family: 'Caveat', cursive;
    font-size: clamp(0.85rem, 1.4vw, 1.1rem);
    color: var(--text);
    opacity: 0.6;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

p {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--text);
}

h3 {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    text-transform: lowercase;
    color: var(--text);
    margin-bottom: 0.75rem;
}

/* --- Stratum Base --- */
.stratum {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background-color: var(--bg);
    color: var(--text);
    scroll-snap-align: start;
    overflow: hidden;
}

.stratum-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8vh 5vw 14vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* --- Noise Texture Overlays --- */
.noise-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0,0,0,0.03) 1px, transparent 1px),
        radial-gradient(circle at 80% 60%, rgba(0,0,0,0.02) 1px, transparent 1px),
        radial-gradient(circle at 50% 80%, rgba(0,0,0,0.025) 1px, transparent 1px),
        radial-gradient(circle at 10% 90%, rgba(0,0,0,0.02) 1px, transparent 1px),
        radial-gradient(circle at 70% 20%, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 7px 7px, 11px 11px, 9px 9px, 13px 13px, 5px 5px;
}

.noise-light {
    opacity: 0.03;
}

.noise-medium {
    opacity: 0.05;
}

.noise-heavy {
    opacity: 0.08;
}

/* --- Wave Dividers --- */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 3;
    pointer-events: none;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* =============================================
   STRATUM 0: THE SURFACE
   ============================================= */
.stratum-surface {
    background: radial-gradient(ellipse at 50% 30%, #f0f4fa 0%, #e6edf8 60%, #dde6f4 100%);
}

.site-title {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: clamp(3.5rem, 10vw, 8rem);
    color: #2a2a2e;
    text-transform: lowercase;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInTitle 1.5s ease-out 0.3s forwards;
    text-align: center;
}

@keyframes fadeInTitle {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stratum-surface .depth-label {
    opacity: 0;
    animation: fadeInTitle 1s ease-out 1s forwards;
}

.scroll-chevron {
    position: absolute;
    bottom: 15vh;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: chevronAppear 0.5s ease-out 2s forwards;
    cursor: pointer;
}

@keyframes chevronAppear {
    to { opacity: 0.7; }
}

@keyframes chevronPulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.15); }
}

.scroll-chevron.pulsing {
    animation: chevronPulse 2s ease-in-out infinite;
    opacity: 0.7;
}

/* Surface floating blobs */
.blob-surface-1 {
    width: 180px;
    height: 180px;
    background: rgba(168, 200, 232, 0.3);
    border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%;
    animation: floatBlob1 25s ease-in-out infinite;
    opacity: 0;
}

.blob-surface-2 {
    width: 120px;
    height: 120px;
    background: rgba(168, 200, 232, 0.2);
    border-radius: 44% 56% 62% 38% / 52% 60% 40% 48%;
    animation: floatBlob2 30s ease-in-out infinite;
    opacity: 0;
}

.blob-surface-3 {
    width: 80px;
    height: 80px;
    background: rgba(168, 200, 232, 0.25);
    border-radius: 55% 45% 38% 62% / 48% 55% 45% 52%;
    animation: floatBlob3 20s ease-in-out infinite;
    opacity: 0;
}

.stratum-surface .blob-surface-1 {
    animation: blobEnter1 3s ease-out forwards, floatBlob1 25s ease-in-out 3s infinite;
}

.stratum-surface .blob-surface-2 {
    animation: blobEnter2 3s ease-out 0.3s forwards, floatBlob2 30s ease-in-out 3.3s infinite;
}

.stratum-surface .blob-surface-3 {
    animation: blobEnter3 3s ease-out 0.6s forwards, floatBlob3 20s ease-in-out 3.6s infinite;
}

@keyframes blobEnter1 {
    from { opacity: 0; transform: translate(-200px, -50px); }
    to { opacity: 1; transform: translate(0, 0); }
}

@keyframes blobEnter2 {
    from { opacity: 0; transform: translate(200px, 100px); }
    to { opacity: 1; transform: translate(0, 0); }
}

@keyframes blobEnter3 {
    from { opacity: 0; transform: translate(-100px, 150px); }
    to { opacity: 1; transform: translate(0, 0); }
}

/* --- Floating Blob Base --- */
.floating-blob {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

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

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

@keyframes floatBlob3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(15px, 20px) rotate(8deg); }
    50% { transform: translate(-20px, -15px) rotate(-5deg); }
    75% { transform: translate(25px, -25px) rotate(3deg); }
}

@keyframes floatBlob4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-20px, 30px) rotate(10deg); }
    66% { transform: translate(30px, -20px) rotate(-7deg); }
}

@keyframes floatBlob5 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(25px, -15px) rotate(-4deg); }
    66% { transform: translate(-15px, 25px) rotate(6deg); }
}

/* Surface blob positions */
.blob-surface-1 { top: 20%; left: 8%; }
.blob-surface-2 { top: 35%; right: 10%; }
.blob-surface-3 { bottom: 30%; left: 15%; }

/* =============================================
   STRATUM 1: TOPSOIL
   ============================================= */
.stratum-topsoil {
    background: #d4ddc5;
    color: #2a2a2e;
}

.stratum-topsoil .stratum-header {
    color: #6b7c5a;
}

.topsoil-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    width: 100%;
    max-width: 900px;
    margin-top: 2rem;
}

.blob-card {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.35);
    transition: border-radius 800ms cubic-bezier(0.4, 0, 0.2, 1), transform 400ms ease;
    will-change: border-radius;
    backdrop-filter: blur(4px);
}

.blob-shape-1 {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}
.blob-shape-1:hover {
    border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%;
}

.blob-shape-2 {
    border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%;
}
.blob-shape-2:hover {
    border-radius: 40% 60% 70% 30% / 50% 50% 40% 60%;
}

.blob-shape-3 {
    border-radius: 50% 50% 30% 70% / 40% 60% 30% 70%;
}
.blob-shape-3:hover {
    border-radius: 70% 30% 60% 40% / 60% 40% 70% 30%;
}

.blob-shape-4 {
    border-radius: 40% 60% 60% 40% / 70% 30% 50% 50%;
}
.blob-shape-4:hover {
    border-radius: 55% 45% 40% 60% / 35% 65% 55% 45%;
}

.blob-card:hover {
    transform: translateY(-4px);
}

/* Topsoil floating blobs */
.blob-topsoil-1 {
    width: 60px;
    height: 60px;
    background: rgba(107, 124, 90, 0.15);
    border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%;
    top: 15%;
    right: 5%;
    animation: floatBlob1 28s ease-in-out infinite;
}

.blob-topsoil-2 {
    width: 45px;
    height: 45px;
    background: rgba(107, 124, 90, 0.12);
    border-radius: 44% 56% 62% 38% / 52% 60% 40% 48%;
    bottom: 25%;
    left: 3%;
    animation: floatBlob2 35s ease-in-out infinite;
}

.blob-topsoil-3 {
    width: 70px;
    height: 70px;
    background: rgba(107, 124, 90, 0.1);
    border-radius: 55% 45% 38% 62% / 48% 55% 45% 52%;
    top: 50%;
    right: 8%;
    animation: floatBlob3 22s ease-in-out infinite;
}

/* =============================================
   STRATUM 2: CLAY
   ============================================= */
.stratum-clay {
    background: linear-gradient(180deg, #c4845c 0%, #b06a42 100%);
}

.clay-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
    max-width: 1000px;
    margin-top: 2rem;
}

.clay-blob-illustration {
    position: relative;
    flex: 0 0 280px;
    height: 320px;
}

.clay-blob-inner {
    position: absolute;
    width: 220px;
    height: 250px;
    top: 30px;
    left: 30px;
    background: linear-gradient(135deg, rgba(250, 245, 235, 0.15) 0%, rgba(176, 106, 66, 0.3) 100%);
    border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
    animation: blobMorph1 12s ease-in-out infinite;
}

.clay-blob-ring {
    position: absolute;
    width: 280px;
    height: 320px;
    top: 0;
    left: 0;
    border: 2px solid rgba(250, 245, 235, 0.15);
    border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%;
    animation: blobMorph2 15s ease-in-out infinite;
}

@keyframes blobMorph1 {
    0%, 100% { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; }
    33% { border-radius: 45% 55% 40% 60% / 60% 40% 55% 45%; }
    66% { border-radius: 55% 45% 60% 40% / 45% 55% 50% 50%; }
}

@keyframes blobMorph2 {
    0%, 100% { border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%; }
    33% { border-radius: 55% 45% 60% 40% / 40% 60% 45% 55%; }
    66% { border-radius: 40% 60% 50% 50% / 60% 40% 55% 45%; }
}

.clay-text p {
    margin-bottom: 1.25rem;
    color: #faf5eb;
}

/* Clay floating blobs */
.blob-clay-1 {
    width: 55px;
    height: 55px;
    background: rgba(250, 245, 235, 0.08);
    border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
    top: 10%;
    left: 5%;
    animation: floatBlob4 32s ease-in-out infinite;
}

.blob-clay-2 {
    width: 70px;
    height: 70px;
    background: rgba(250, 245, 235, 0.06);
    border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%;
    top: 60%;
    right: 4%;
    animation: floatBlob5 26s ease-in-out infinite;
}

.blob-clay-3 {
    width: 40px;
    height: 40px;
    background: rgba(176, 106, 66, 0.2);
    border-radius: 55% 45% 60% 40% / 45% 55% 50% 50%;
    bottom: 20%;
    left: 10%;
    animation: floatBlob1 38s ease-in-out infinite;
}

/* =============================================
   STRATUM 3: BEDROCK
   ============================================= */
.stratum-bedrock {
    background: #3a3d42;
}

.horizontal-scroll-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 2rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(232, 230, 224, 0.2) transparent;
}

.horizontal-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(232, 230, 224, 0.2);
    border-radius: 3px;
}

.scroll-track {
    display: flex;
    gap: 2rem;
    padding: 1rem 5vw;
    width: max-content;
}

.bedrock-card {
    flex: 0 0 clamp(280px, 40vw, 400px);
    scroll-snap-align: center;
    padding: 2.5rem;
    background: rgba(232, 230, 224, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(232, 230, 224, 0.12);
    transition: border-radius 800ms cubic-bezier(0.4, 0, 0.2, 1), transform 400ms ease;
    will-change: border-radius;
    color: #e8e6e0;
}

.bedrock-card h3 {
    color: #e8e6e0;
}

.bedrock-card p {
    color: rgba(232, 230, 224, 0.8);
}

.card-label {
    font-family: 'Caveat', cursive;
    font-size: 0.9rem;
    color: rgba(232, 230, 224, 0.5);
    display: block;
    margin-bottom: 0.75rem;
}

.card-shape-1 {
    border-radius: 35% 65% 55% 45% / 40% 55% 45% 60%;
}
.card-shape-1:hover {
    border-radius: 55% 45% 40% 60% / 60% 40% 55% 45%;
    transform: translateY(-6px);
}

.card-shape-2 {
    border-radius: 55% 45% 35% 65% / 50% 60% 40% 50%;
}
.card-shape-2:hover {
    border-radius: 40% 60% 60% 40% / 45% 55% 50% 50%;
    transform: translateY(-6px);
}

.card-shape-3 {
    border-radius: 45% 55% 60% 40% / 55% 40% 60% 45%;
}
.card-shape-3:hover {
    border-radius: 60% 40% 45% 55% / 40% 55% 45% 60%;
    transform: translateY(-6px);
}

.card-shape-4 {
    border-radius: 60% 40% 45% 55% / 45% 60% 40% 55%;
}
.card-shape-4:hover {
    border-radius: 35% 65% 55% 45% / 55% 45% 60% 40%;
    transform: translateY(-6px);
}

.card-shape-5 {
    border-radius: 40% 60% 50% 50% / 60% 35% 65% 40%;
}
.card-shape-5:hover {
    border-radius: 55% 45% 60% 40% / 40% 60% 40% 60%;
    transform: translateY(-6px);
}

/* Bedrock floating blobs */
.blob-bedrock-1 {
    width: 50px;
    height: 50px;
    background: rgba(232, 230, 224, 0.05);
    border-radius: 55% 45% 38% 62% / 48% 55% 45% 52%;
    top: 15%;
    left: 3%;
    animation: floatBlob2 30s ease-in-out infinite;
}

.blob-bedrock-2 {
    width: 65px;
    height: 65px;
    background: rgba(232, 230, 224, 0.04);
    border-radius: 44% 56% 62% 38% / 52% 60% 40% 48%;
    bottom: 20%;
    right: 5%;
    animation: floatBlob4 25s ease-in-out infinite;
}

/* =============================================
   STRATUM 4: CRYSTAL LAYER
   ============================================= */
.stratum-crystal {
    background: #1a3a3a;
}

.crystal-statement {
    max-width: 700px;
    text-align: center;
    margin: 3rem auto;
    position: relative;
    z-index: 3;
}

.crystal-quote {
    font-family: 'Fredoka', sans-serif;
    font-weight: 400;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    color: #faf5eb;
    line-height: 1.5;
}

.stratum-crystal .stratum-header {
    color: #5cbfa0;
}

/* Crystal Shards */
.crystal-shard {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    opacity: 0.6;
}

.shard-1 {
    width: 80px;
    height: 120px;
    background: linear-gradient(135deg, rgba(92, 191, 160, 0.15) 0%, rgba(92, 191, 160, 0.05) 100%);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    box-shadow: inset 0 0 30px rgba(92, 191, 160, 0.2);
    top: 15%;
    left: 10%;
    animation: crystalRotate1 30s linear infinite;
}

.shard-2 {
    width: 60px;
    height: 100px;
    background: linear-gradient(180deg, rgba(92, 191, 160, 0.12) 0%, rgba(92, 191, 160, 0.03) 100%);
    clip-path: polygon(50% 0%, 90% 30%, 100% 70%, 60% 100%, 10% 80%, 0% 30%);
    top: 25%;
    right: 12%;
    animation: crystalRotate2 35s linear infinite;
}

.shard-3 {
    width: 100px;
    height: 70px;
    background: linear-gradient(45deg, rgba(92, 191, 160, 0.1) 0%, rgba(92, 191, 160, 0.06) 100%);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    bottom: 25%;
    left: 8%;
    animation: crystalRotate3 28s linear infinite;
}

.shard-4 {
    width: 50px;
    height: 80px;
    background: linear-gradient(200deg, rgba(92, 191, 160, 0.18) 0%, rgba(92, 191, 160, 0.04) 100%);
    clip-path: polygon(50% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%);
    bottom: 30%;
    right: 15%;
    animation: crystalRotate1 40s linear infinite reverse;
}

.shard-5 {
    width: 45px;
    height: 65px;
    background: linear-gradient(160deg, rgba(92, 191, 160, 0.14) 0%, rgba(92, 191, 160, 0.02) 100%);
    clip-path: polygon(30% 0%, 70% 0%, 100% 40%, 80% 100%, 20% 100%, 0% 40%);
    top: 60%;
    left: 20%;
    animation: crystalRotate2 25s linear infinite reverse;
}

.shard-6 {
    width: 70px;
    height: 55px;
    background: linear-gradient(90deg, rgba(92, 191, 160, 0.1) 0%, rgba(92, 191, 160, 0.07) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    top: 40%;
    right: 8%;
    animation: crystalRotate3 33s linear infinite;
}

@keyframes crystalRotate1 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes crystalRotate2 {
    from { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.05); }
    to { transform: rotate(360deg) scale(1); }
}

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

/* Crystal floating blobs */
.blob-crystal-1 {
    width: 50px;
    height: 50px;
    background: rgba(92, 191, 160, 0.08);
    border-radius: 55% 45% 60% 40% / 45% 55% 50% 50%;
    top: 10%;
    right: 25%;
    animation: floatBlob3 24s ease-in-out infinite;
}

.blob-crystal-2 {
    width: 40px;
    height: 40px;
    background: rgba(92, 191, 160, 0.06);
    border-radius: 45% 55% 40% 60% / 60% 40% 55% 45%;
    bottom: 15%;
    left: 30%;
    animation: floatBlob5 32s ease-in-out infinite;
}

/* =============================================
   STRATUM 5: MAGMA CORE
   ============================================= */
.stratum-magma {
    background: linear-gradient(180deg, #3d0f0f 0%, #4d1a0a 50%, #3d0f0f 100%);
}

.magma-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 137, 42, 0.12) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    animation: magmaPulse 8s ease-in-out infinite;
}

@keyframes magmaPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.magma-form-wrapper {
    max-width: 550px;
    width: 100%;
    position: relative;
    z-index: 3;
}

.specimen-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

.specimen-tag,
.specimen-date {
    font-family: 'Caveat', cursive;
    font-size: 0.95rem;
    color: rgba(250, 245, 235, 0.5);
}

.magma-form-card {
    background: rgba(212, 137, 42, 0.08);
    border: 1px solid rgba(212, 137, 42, 0.15);
    border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
    padding: 3rem;
    backdrop-filter: blur(8px);
    transition: border-radius 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

.magma-form-card:hover {
    border-radius: 55% 45% 40% 60% / 45% 55% 45% 55%;
}

.magma-form-card h3 {
    color: #d4892a;
    margin-bottom: 0.5rem;
}

.magma-form-card > p {
    color: rgba(250, 245, 235, 0.7);
    margin-bottom: 2rem;
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
}

/* --- Form Styles --- */
.form-field {
    margin-bottom: 1.25rem;
}

.form-field label {
    display: block;
    font-family: 'Caveat', cursive;
    font-size: 1rem;
    color: rgba(250, 245, 235, 0.6);
    margin-bottom: 0.3rem;
}

.form-field input,
.form-field textarea {
    width: 100%;
    background: rgba(250, 245, 235, 0.05);
    border: 1px solid rgba(212, 137, 42, 0.2);
    border-radius: 30px;
    padding: 0.75rem 1.25rem;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: #faf5eb;
    outline: none;
    transition: border-color 300ms ease, background 300ms ease;
}

.form-field textarea {
    border-radius: 24px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: rgba(212, 137, 42, 0.5);
    background: rgba(250, 245, 235, 0.08);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(250, 245, 235, 0.25);
}

.blob-button {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    background: rgba(212, 137, 42, 0.2);
    border: 1px solid rgba(212, 137, 42, 0.35);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    color: #d4892a;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: lowercase;
    cursor: pointer;
    transition: border-radius 800ms cubic-bezier(0.4, 0, 0.2, 1), background 300ms ease, transform 300ms ease;
    margin-top: 0.5rem;
}

.blob-button:hover {
    background: rgba(212, 137, 42, 0.35);
    border-radius: 40% 60% 60% 40% / 50% 50% 50% 50%;
    transform: scale(1.03);
}

/* Magma floating blobs */
.blob-magma-1 {
    width: 60px;
    height: 60px;
    background: rgba(212, 137, 42, 0.1);
    border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%;
    top: 10%;
    left: 8%;
    animation: floatBlob1 28s ease-in-out infinite;
}

.blob-magma-2 {
    width: 45px;
    height: 45px;
    background: rgba(212, 137, 42, 0.08);
    border-radius: 44% 56% 62% 38% / 52% 60% 40% 48%;
    top: 30%;
    right: 6%;
    animation: floatBlob4 35s ease-in-out infinite;
}

.blob-magma-3 {
    width: 55px;
    height: 55px;
    background: rgba(212, 137, 42, 0.07);
    border-radius: 55% 45% 38% 62% / 48% 55% 45% 52%;
    bottom: 25%;
    left: 12%;
    animation: floatBlob5 22s ease-in-out infinite;
}

/* --- Footer --- */
.site-footer {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 4rem 2rem 3rem;
}

.site-footer p {
    color: rgba(250, 245, 235, 0.4);
    font-size: 0.9rem;
}

.site-footer .depth-label {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

/* =============================================
   DEPTH GAUGE NAVIGATION
   ============================================= */
#depth-gauge {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    height: 60vh;
    width: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gauge-track {
    position: relative;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #a8c8e8, #d4ddc5, #c4845c, #3a3d42, #1a3a3a, #3d0f0f, #d4892a);
    border-radius: 2px;
}

.gauge-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    background: #faf5eb;
    border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%;
    box-shadow: 0 0 8px rgba(250, 245, 235, 0.5);
    transition: top 100ms ease-out, border-radius 2s ease-in-out;
    z-index: 2;
    animation: markerMorph 6s ease-in-out infinite;
}

@keyframes markerMorph {
    0%, 100% { border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%; }
    33% { border-radius: 44% 56% 62% 38% / 52% 60% 40% 48%; }
    66% { border-radius: 55% 45% 38% 62% / 48% 55% 45% 52%; }
}

.gauge-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(250, 245, 235, 0.3);
    border-radius: 55% 45% 50% 50% / 50% 55% 45% 50%;
    cursor: pointer;
    transition: transform 400ms ease, background 300ms ease, border-radius 800ms ease;
}

.gauge-dot:hover {
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(250, 245, 235, 0.7);
}

.gauge-dot.active {
    transform: translate(-50%, -50%) scale(1.8);
    background: rgba(250, 245, 235, 0.9);
    border-radius: 44% 56% 62% 38% / 52% 60% 40% 48%;
}

.gauge-dot[data-stratum="0"] { top: 0%; }
.gauge-dot[data-stratum="1"] { top: 20%; }
.gauge-dot[data-stratum="2"] { top: 40%; }
.gauge-dot[data-stratum="3"] { top: 60%; }
.gauge-dot[data-stratum="4"] { top: 80%; }
.gauge-dot[data-stratum="5"] { top: 100%; }

/* =============================================
   FADE-IN ANIMATION (Intersection Observer)
   ============================================= */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.fade-in-element:nth-child(2) { transition-delay: 100ms; }
.fade-in-element:nth-child(3) { transition-delay: 200ms; }
.fade-in-element:nth-child(4) { transition-delay: 300ms; }
.fade-in-element:nth-child(5) { transition-delay: 400ms; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .topsoil-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .clay-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .clay-blob-illustration {
        flex: 0 0 200px;
        height: 230px;
        width: 200px;
    }

    .clay-blob-inner {
        width: 160px;
        height: 180px;
        top: 20px;
        left: 20px;
    }

    .clay-blob-ring {
        width: 200px;
        height: 230px;
    }

    .magma-form-card {
        padding: 2rem;
        border-radius: 35% 65% 50% 50% / 45% 40% 60% 55%;
    }

    #depth-gauge {
        right: 10px;
    }

    .stratum-content {
        padding: 6vh 4vw 12vh;
    }

    .crystal-shard {
        opacity: 0.3;
    }
}

@media (max-width: 480px) {
    .stratum-content {
        padding: 5vh 3vw 10vh;
    }

    .blob-card {
        padding: 1.75rem;
    }

    .magma-form-card {
        padding: 1.5rem;
    }

    #depth-gauge {
        display: none;
    }
}
