/* ============================================================
   prototype.moe — Surreal Analogous Organism
   Colors: #1A1028, #F8F4FA, #F0E8F4, #382848, #6850A0, #4878B8, #5060B0
   Fonts: Syne (display), Inter (body), IBM Plex Mono (labels)
   ============================================================ */

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

:root {
    --deep-violet: #1A1028;
    --dream-cream: #F8F4FA;
    --soft-lavender: #F0E8F4;
    --warm-violet: #382848;
    --analogous-purple: #6850A0;
    --analogous-blue: #4878B8;
    --analogous-indigo: #5060B0;
    --marble-vein: rgba(104, 80, 160, 0.04);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dream-cream);
    color: var(--warm-violet);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.85;
    overflow-x: hidden;
}

/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3 {
    font-family: 'Syne', sans-serif;
    color: var(--deep-violet);
    line-height: 1.1;
}

h1 {
    font-weight: 800;
    font-size: clamp(2.8rem, 6.5vw, 5rem);
}

h2 {
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
}

h3 {
    font-weight: 600;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.label-mono {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--analogous-purple);
}

/* ============================================================
   Glitch Text Effect
   ============================================================ */

.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch-text::before {
    color: var(--analogous-blue);
    z-index: -1;
}

.glitch-text::after {
    color: var(--analogous-purple);
    z-index: -1;
}

.glitch-text.glitching::before {
    animation: glitchBefore 0.15s step-end forwards;
}

.glitch-text.glitching::after {
    animation: glitchAfter 0.15s step-end forwards;
}

@keyframes glitchBefore {
    0% { opacity: 0.8; transform: translate(-3px, 2px); clip-path: inset(20% 0 40% 0); }
    20% { opacity: 0.6; transform: translate(4px, -1px); clip-path: inset(60% 0 10% 0); }
    40% { opacity: 0.8; transform: translate(-2px, 1px); clip-path: inset(10% 0 70% 0); }
    60% { opacity: 0.5; transform: translate(3px, -2px); clip-path: inset(50% 0 20% 0); }
    80% { opacity: 0.7; transform: translate(-1px, 1px); clip-path: inset(30% 0 50% 0); }
    100% { opacity: 0; transform: translate(0, 0); }
}

@keyframes glitchAfter {
    0% { opacity: 0.6; transform: translate(2px, -2px); clip-path: inset(40% 0 20% 0); }
    20% { opacity: 0.8; transform: translate(-3px, 1px); clip-path: inset(10% 0 60% 0); }
    40% { opacity: 0.4; transform: translate(1px, -1px); clip-path: inset(70% 0 5% 0); }
    60% { opacity: 0.8; transform: translate(-2px, 2px); clip-path: inset(30% 0 40% 0); }
    80% { opacity: 0.5; transform: translate(2px, -1px); clip-path: inset(15% 0 55% 0); }
    100% { opacity: 0; transform: translate(0, 0); }
}

/* ============================================================
   Organic Glitch Animation (for containers)
   ============================================================ */

@keyframes organicGlitch {
    0% { transform: translate(0, 0) skew(0deg); }
    20% { transform: translate(-3px, 2px) skew(1deg); }
    40% { transform: translate(2px, -1px) skew(-0.5deg); }
    60% { transform: translate(-1px, 1px) skew(0.5deg); }
    80% { transform: translate(3px, -2px) skew(-1deg); }
    100% { transform: translate(0, 0) skew(0deg); }
}

/* ============================================================
   Blob Shapes — Biomorphic Organic Containers
   ============================================================ */

.blob {
    position: absolute;
    border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
    opacity: 0.15;
    pointer-events: none;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================================
   Impossible Objects (SVG containers)
   ============================================================ */

.impossible-object {
    position: absolute;
    pointer-events: none;
    opacity: 0.1;
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.impossible-object svg {
    width: 100%;
    height: 100%;
}

/* ============================================================
   Marble Texture — Classical Weight
   ============================================================ */

.marble-texture {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.04;
    background-image:
        radial-gradient(ellipse at 20% 50%, var(--warm-violet) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, var(--analogous-purple) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, var(--analogous-indigo) 0%, transparent 45%);
}

.marble-texture-flow {
    opacity: 0.025;
}

/* ============================================================
   SECTION: Hero — Opening Sequence (first 100vh)
   ============================================================ */

.section-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--dream-cream);
}

.hero-glitch-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(26, 16, 40, 0.03) 2px,
        rgba(26, 16, 40, 0.03) 4px
    );
}

.hero-glitch-overlay.active {
    opacity: 1;
    animation: overlayGlitch 0.15s step-end;
}

@keyframes overlayGlitch {
    0% { opacity: 1; transform: translateX(-2px); }
    25% { opacity: 0.8; transform: translateX(3px); }
    50% { opacity: 1; transform: translateX(-1px); }
    75% { opacity: 0.6; transform: translateX(2px); }
    100% { opacity: 0; transform: translateX(0); }
}

/* Hero Biomorphic Blobs */
.blob-hero-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--analogous-purple), var(--analogous-indigo));
    top: -100px;
    right: -120px;
    z-index: 2;
    animation: blobFloat1 12s ease-in-out infinite;
}

.blob-hero-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(225deg, var(--analogous-blue), var(--analogous-purple));
    bottom: -80px;
    left: -60px;
    z-index: 2;
    animation: blobFloat2 15s ease-in-out infinite;
}

.blob-hero-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--analogous-indigo), var(--analogous-blue));
    top: 30%;
    left: 15%;
    z-index: 2;
    animation: blobFloat3 10s ease-in-out infinite;
}

.blob-hero-4 {
    width: 160px;
    height: 160px;
    background: linear-gradient(315deg, var(--warm-violet), var(--analogous-purple));
    bottom: 20%;
    right: 10%;
    z-index: 2;
    opacity: 0.1;
    animation: blobFloat1 18s ease-in-out infinite reverse;
}

@keyframes blobFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%; }
    33% { transform: translate(-30px, 20px) rotate(5deg); border-radius: 55% 45% 40% 60% / 40% 60% 45% 55%; }
    66% { transform: translate(20px, -15px) rotate(-3deg); border-radius: 45% 55% 60% 40% / 60% 45% 55% 40%; }
}

@keyframes blobFloat2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); border-radius: 60% 40% 45% 55% / 45% 55% 40% 60%; }
    33% { transform: translate(25px, -20px) rotate(-4deg); border-radius: 45% 55% 60% 40% / 55% 45% 40% 60%; }
    66% { transform: translate(-15px, 25px) rotate(6deg); border-radius: 55% 45% 40% 60% / 40% 60% 55% 45%; }
}

@keyframes blobFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15px, -10px) scale(1.05); }
}

/* Hero Impossible Objects */
.obj-tetra {
    width: 130px;
    height: 130px;
    top: 12%;
    right: 16%;
    z-index: 3;
    animation: floatSlow 8s ease-in-out infinite;
}

.obj-cube {
    width: 110px;
    height: 110px;
    bottom: 18%;
    right: 22%;
    z-index: 3;
    animation: floatSlow 10s ease-in-out infinite reverse;
}

.obj-ring {
    width: 150px;
    height: 150px;
    bottom: 22%;
    left: 8%;
    z-index: 3;
    animation: floatSlow 12s ease-in-out infinite;
}

.obj-penrose {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 20%;
    z-index: 3;
    animation: floatSlow 14s ease-in-out infinite reverse;
}

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

/* Hero Title */
.hero-title {
    position: relative;
    z-index: 10;
    text-align: center;
    letter-spacing: -0.02em;
    color: var(--deep-violet);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: heroEntrance 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

.hero-dot {
    color: var(--analogous-purple);
}

.hero-subtitle {
    position: relative;
    z-index: 10;
    margin-top: 1.5rem;
    letter-spacing: 0.15em;
    opacity: 0;
    transform: translateY(20px);
    animation: heroEntrance 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--analogous-purple), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ============================================================
   SECTION: Biomorphic Flow
   ============================================================ */

.section-flow {
    position: relative;
    padding: 8rem 2rem;
    min-height: 100vh;
    overflow: hidden;
    background-color: var(--dream-cream);
}

.flow-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.blob-card {
    position: relative;
    background: rgba(240, 232, 244, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
    padding: 3rem 2.5rem;
    width: 280px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: border-radius 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.3s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(104, 80, 160, 0.1);
    box-shadow: 0 8px 40px rgba(26, 16, 40, 0.05);
    overflow: hidden;
}

.blob-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(104, 80, 160, 0.06), rgba(72, 120, 184, 0.06));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.blob-card:hover::before {
    opacity: 1;
}

.blob-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 50px rgba(26, 16, 40, 0.08);
}

.blob-card.glitch-active {
    animation: organicGlitch 0.15s step-end;
}

.blob-card-1 { border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%; }
.blob-card-2 { border-radius: 55% 45% 40% 60% / 40% 60% 45% 55%; }
.blob-card-3 { border-radius: 60% 40% 50% 50% / 45% 55% 50% 50%; }
.blob-card-4 { border-radius: 45% 55% 60% 40% / 60% 40% 55% 45%; }

.blob-card .label-mono {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.blob-card h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
}

.blob-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--warm-violet);
    position: relative;
    z-index: 1;
}

/* Flow Section Impossible Objects */
.obj-floating-1 {
    width: 150px;
    height: 150px;
    top: 10%;
    right: 5%;
    z-index: 1;
    animation: floatSlow 14s ease-in-out infinite;
}

.obj-floating-2 {
    width: 120px;
    height: 120px;
    bottom: 15%;
    left: 3%;
    z-index: 1;
    animation: floatSlow 11s ease-in-out infinite reverse;
}

.obj-floating-3 {
    width: 90px;
    height: 90px;
    top: 50%;
    right: 12%;
    z-index: 1;
    animation: floatSlow 16s ease-in-out infinite;
}

/* ============================================================
   SECTION: Marble Classical
   Design says AVOID dark backgrounds — using deep lavender
   with marble-classical weight via texture layers
   ============================================================ */

.section-marble {
    position: relative;
    min-height: 100vh;
    padding: 8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, var(--soft-lavender) 0%, #E8E0F0 50%, var(--soft-lavender) 100%);
}

.marble-bg {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background:
        radial-gradient(ellipse at 30% 30%, var(--analogous-purple) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, var(--analogous-blue) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 90%, var(--analogous-indigo) 0%, transparent 45%);
    pointer-events: none;
}

.marble-veins {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
    background-image:
        url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40 Q20 36 40 40 Q60 44 80 40' stroke='%23382848' stroke-width='0.4' fill='none' opacity='0.5'/%3E%3Cpath d='M0 20 Q30 18 50 22 Q70 26 80 20' stroke='%236850A0' stroke-width='0.3' fill='none' opacity='0.3'/%3E%3Cpath d='M0 60 Q25 58 45 62 Q65 66 80 60' stroke='%235060B0' stroke-width='0.3' fill='none' opacity='0.3'/%3E%3C/svg%3E");
    background-size: 80px 80px;
}

.marble-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    width: 100%;
}

.marble-heading {
    color: var(--deep-violet);
    text-align: center;
    margin-bottom: 4rem;
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.marble-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.marble-card {
    background: rgba(248, 244, 250, 0.65);
    border: 1px solid rgba(104, 80, 160, 0.1);
    border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
    width: 300px;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-radius 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.5s ease, background 0.5s ease, box-shadow 0.4s ease;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.marble-card:hover {
    background: rgba(248, 244, 250, 0.85);
    border-color: rgba(104, 80, 160, 0.2);
    box-shadow: 0 8px 40px rgba(26, 16, 40, 0.06);
}

.marble-card:nth-child(1) { border-radius: 55% 45% 40% 60% / 40% 60% 45% 55%; }
.marble-card:nth-child(2) { border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%; }
.marble-card:nth-child(3) { border-radius: 60% 40% 45% 55% / 50% 50% 55% 45%; }

.marble-card.glitch-active {
    animation: organicGlitch 0.15s step-end;
}

.marble-card-inner {
    padding: 2.5rem 2rem;
    text-align: center;
}

.marble-card-inner .label-mono {
    color: var(--analogous-blue);
    margin-bottom: 0.8rem;
    display: block;
}

.marble-card-inner h3 {
    color: var(--deep-violet);
    margin-bottom: 0.8rem;
}

.marble-card-inner p {
    color: var(--warm-violet);
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.85;
}

.obj-marble-1 {
    width: 180px;
    height: 180px;
    top: 8%;
    left: 5%;
    z-index: 1;
    animation: floatSlow 16s ease-in-out infinite;
}

.obj-marble-2 {
    width: 120px;
    height: 120px;
    bottom: 10%;
    right: 8%;
    z-index: 1;
    animation: floatSlow 13s ease-in-out infinite reverse;
}

/* ============================================================
   SECTION: Taxonomy
   ============================================================ */

.section-taxonomy {
    position: relative;
    padding: 8rem 2rem;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(180deg, var(--dream-cream) 0%, var(--soft-lavender) 100%);
}

.taxonomy-header {
    text-align: center;
    margin-bottom: 4rem;
}

.taxonomy-header .label-mono {
    display: block;
    margin-bottom: 1rem;
}

.taxonomy-title {
    font-size: clamp(2rem, 5vw, 3.8rem);
}

.taxonomy-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.taxonomy-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
    border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
    background: rgba(240, 232, 244, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(104, 80, 160, 0.08);
    transition: border-radius 1.5s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.taxonomy-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 24px rgba(26, 16, 40, 0.08);
}

.taxonomy-item:nth-child(1) { border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%; }
.taxonomy-item:nth-child(2) { border-radius: 55% 45% 40% 60% / 40% 60% 45% 55%; }
.taxonomy-item:nth-child(3) { border-radius: 45% 55% 60% 40% / 60% 40% 55% 45%; }
.taxonomy-item:nth-child(4) { border-radius: 60% 40% 50% 50% / 45% 55% 50% 50%; }
.taxonomy-item:nth-child(5) { border-radius: 50% 50% 45% 55% / 55% 45% 60% 40%; }

.taxonomy-item.glitch-active {
    animation: organicGlitch 0.15s step-end;
}

.taxonomy-blob {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
    background: linear-gradient(135deg, var(--analogous-purple), var(--analogous-blue));
    opacity: 0.6;
    animation: blobFloat3 8s ease-in-out infinite;
}

.taxonomy-item:nth-child(2) .taxonomy-blob {
    background: linear-gradient(225deg, var(--analogous-blue), var(--analogous-indigo));
    animation-duration: 10s;
    border-radius: 55% 45% 40% 60% / 40% 60% 45% 55%;
}

.taxonomy-item:nth-child(3) .taxonomy-blob {
    background: linear-gradient(45deg, var(--analogous-indigo), var(--analogous-purple));
    animation-duration: 12s;
    border-radius: 60% 40% 50% 50% / 45% 55% 50% 50%;
}

.taxonomy-item:nth-child(4) .taxonomy-blob {
    background: linear-gradient(315deg, var(--warm-violet), var(--analogous-purple));
    animation-duration: 9s;
    border-radius: 45% 55% 60% 40% / 60% 40% 55% 45%;
}

.taxonomy-item:nth-child(5) .taxonomy-blob {
    background: linear-gradient(180deg, var(--analogous-purple), var(--analogous-blue));
    animation-duration: 11s;
    border-radius: 50% 50% 45% 55% / 55% 45% 60% 40%;
}

.taxonomy-info .label-mono {
    display: block;
    margin-bottom: 0.3rem;
}

.taxonomy-info h3 {
    margin-bottom: 0.4rem;
}

.taxonomy-info p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--warm-violet);
    opacity: 0.85;
}

.obj-taxonomy {
    width: 200px;
    height: 200px;
    bottom: 5%;
    right: 5%;
    z-index: 1;
    animation: floatSlow 18s ease-in-out infinite reverse;
}

/* ============================================================
   SECTION: Closing — Surreal Organism Footer
   Using warm-violet instead of deep-violet for softer close
   ============================================================ */

.section-closing {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, var(--soft-lavender) 0%, var(--warm-violet) 100%);
}

.closing-blobs .blob {
    z-index: 1;
}

.blob-close-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--analogous-purple), var(--analogous-indigo));
    top: -100px;
    left: -100px;
    opacity: 0.1;
    animation: blobFloat1 14s ease-in-out infinite;
}

.blob-close-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(225deg, var(--analogous-blue), var(--analogous-purple));
    bottom: -80px;
    right: -80px;
    opacity: 0.1;
    animation: blobFloat2 16s ease-in-out infinite;
}

.blob-close-3 {
    width: 180px;
    height: 180px;
    background: linear-gradient(45deg, var(--analogous-indigo), var(--analogous-blue));
    top: 40%;
    right: 15%;
    opacity: 0.08;
    animation: blobFloat3 12s ease-in-out infinite;
}

.closing-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.closing-title {
    color: var(--dream-cream);
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    margin-bottom: 1rem;
}

.closing-title .hero-dot {
    color: var(--analogous-blue);
}

.closing-label {
    color: var(--soft-lavender);
    opacity: 0.7;
}

.closing-grid-lines {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    justify-content: space-evenly;
    pointer-events: none;
}

.grid-line {
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(248, 244, 250, 0.04), transparent);
}

/* ============================================================
   Scroll Reveal Animations
   ============================================================ */

.blob-card,
.marble-card,
.taxonomy-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-radius 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blob-card.visible,
.marble-card.visible,
.taxonomy-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.blob-card:nth-child(2) { transition-delay: 0.1s; }
.blob-card:nth-child(3) { transition-delay: 0.2s; }
.blob-card:nth-child(4) { transition-delay: 0.3s; }

.marble-card:nth-child(2) { transition-delay: 0.15s; }
.marble-card:nth-child(3) { transition-delay: 0.3s; }

.taxonomy-item:nth-child(2) { transition-delay: 0.1s; }
.taxonomy-item:nth-child(3) { transition-delay: 0.2s; }
.taxonomy-item:nth-child(4) { transition-delay: 0.3s; }
.taxonomy-item:nth-child(5) { transition-delay: 0.4s; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
    .flow-container {
        flex-direction: column;
        align-items: center;
    }

    .blob-card {
        width: 90%;
        max-width: 340px;
    }

    .marble-grid {
        flex-direction: column;
        align-items: center;
    }

    .marble-card {
        width: 90%;
        max-width: 340px;
    }

    .taxonomy-item {
        flex-direction: column;
        text-align: center;
        border-radius: 30% !important;
    }

    .impossible-object {
        display: none;
    }
}
