/* turingtest.club — blobitecture, pastel, elegant-serif, elastic */

:root {
    --bg-base: #F5F0FA;
    --bg-warm: #FAF0F0;
    --bg-cool: #F0F5FA;
    --blob-a: #E8D0F0;
    --blob-b: #D0E8F0;
    --blob-c: #F0E0D0;
    --text-primary: #3A2D5C;
    --text-secondary: #5A4D7C;
    --text-tertiary: #8A7DA0;
    --text-body: #4A4060;
    --card-surface: rgba(255, 255, 255, 0.8);
    --card-surface-solid: #FFFFFF;
    --accent: #7A6DAA;
    --deep-bg: #E0F0F8;
    --mid-bg: #F0E0D0;
    --threshold-bg-start: #F0E8F8;
    --threshold-bg-end: #E0F0F8;
    --elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', system-ui, sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-body);
    background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-warm) 35%, var(--bg-cool) 70%, var(--bg-base) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ---------- Blob background system ---------- */

.blob-field {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    mix-blend-mode: multiply;
    filter: blur(2px);
    will-change: transform, border-radius;
    opacity: 0.28;
}

.blob-1 {
    width: 520px;
    height: 520px;
    top: -120px;
    left: -140px;
    background: var(--blob-a);
    border-radius: 40% 60% 70% 30% / 60% 30% 40% 70%;
    animation: blobMorph1 24s ease-in-out infinite, blobDrift1 35s ease-in-out infinite;
}

.blob-2 {
    width: 440px;
    height: 440px;
    top: 20vh;
    right: -160px;
    background: var(--blob-b);
    border-radius: 55% 45% 35% 65% / 40% 70% 30% 60%;
    animation: blobMorph2 28s ease-in-out infinite, blobDrift2 30s ease-in-out infinite;
    opacity: 0.22;
}

.blob-3 {
    width: 380px;
    height: 380px;
    top: 55vh;
    left: 8vw;
    background: var(--blob-c);
    border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%;
    animation: blobMorph3 22s ease-in-out infinite, blobDrift3 28s ease-in-out infinite;
    opacity: 0.25;
}

.blob-4 {
    width: 300px;
    height: 300px;
    top: 90vh;
    right: 12vw;
    background: var(--blob-a);
    border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%;
    animation: blobMorph1 30s ease-in-out infinite reverse, blobDrift2 32s ease-in-out infinite;
    opacity: 0.20;
}

.blob-5 {
    width: 460px;
    height: 460px;
    bottom: -120px;
    left: 35vw;
    background: var(--blob-b);
    border-radius: 45% 55% 60% 40% / 50% 50% 40% 60%;
    animation: blobMorph2 26s ease-in-out infinite, blobDrift1 34s ease-in-out infinite reverse;
    opacity: 0.18;
}

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

@keyframes blobMorph2 {
    0%, 100% { border-radius: 55% 45% 35% 65% / 40% 70% 30% 60%; }
    50% { border-radius: 35% 65% 55% 45% / 60% 40% 70% 30%; }
}

@keyframes blobMorph3 {
    0%, 100% { border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%; }
    25% { border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%; }
    75% { border-radius: 50% 50% 40% 60% / 50% 60% 40% 50%; }
}

@keyframes blobDrift1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(60px, 40px) rotate(180deg); }
}

@keyframes blobDrift2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-50px, 80px) rotate(-120deg); }
}

@keyframes blobDrift3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(80px, -60px) rotate(140deg); }
}

/* ---------- Shared typography ---------- */

h1, h2, h3 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

h2 {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    line-height: 1.25;
}

.eyebrow {
    font-family: 'Space Mono', 'Courier New', monospace;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 1.2rem;
}

p {
    color: var(--text-body);
}

main {
    position: relative;
    z-index: 1;
}

/* ---------- Section I — Threshold ---------- */

.threshold {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem;
    text-align: center;
    background: linear-gradient(180deg, var(--threshold-bg-start) 0%, var(--threshold-bg-end) 100%);
}

.threshold-inner {
    max-width: 800px;
    width: 100%;
}

.domain-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.02em;
    color: var(--text-primary);
    line-height: 1.1;
    margin: 1.2rem 0 2rem;
    animation: softRise 1.4s var(--elastic) both;
}

.threshold-question {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: clamp(1.2rem, 2.4vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    animation: softRise 1.6s var(--elastic) 0.15s both;
}

.threshold-dots {
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    margin-bottom: 3rem;
}

.threshold-dots .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
    animation: dotPulse 2.4s ease-in-out infinite;
}

.threshold-dots .dot:nth-child(2) {
    background: var(--blob-a);
    animation-delay: 0.4s;
}

.threshold-dots .dot:nth-child(3) {
    background: var(--blob-b);
    animation-delay: 0.8s;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.4); opacity: 1; }
}

.scroll-hint {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    animation: scrollHintBob 2.6s ease-in-out infinite;
}

@keyframes scrollHintBob {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(8px); opacity: 1; }
}

@keyframes softRise {
    0% { transform: translateY(40px); opacity: 0; }
    60% { transform: translateY(-6px); opacity: 1; }
    100% { transform: translateY(0); opacity: 1; }
}

/* ---------- Section II — Specimens ---------- */

.specimens {
    min-height: 100vh;
    max-width: 800px;
    margin: 0 auto;
    padding: 8rem 1.5rem 6rem;
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-lede {
    max-width: 600px;
    margin: 1rem auto 0;
    color: var(--text-body);
    font-weight: 300;
}

.specimen-card {
    background: var(--card-surface);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 28px;
    padding: 2.2rem 2.4rem;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 2rem;
    align-items: center;
    box-shadow: 0 20px 40px rgba(58, 45, 92, 0.08), 0 4px 14px rgba(58, 45, 92, 0.05);
    transform: scale(1);
    transition: transform 0.6s var(--elastic), box-shadow 0.6s var(--elastic);
    width: 100%;
    opacity: 0;
    transform: translateY(30px) scale(0.98);
}

.specimen-card.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.specimen-card:nth-child(even) {
    width: 92%;
    align-self: flex-end;
}

.specimen-card:nth-child(odd) {
    width: 96%;
    align-self: flex-start;
}

.specimen-card.alt {
    background: rgba(250, 240, 240, 0.75);
}

.specimen-card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 28px 56px rgba(58, 45, 92, 0.12), 0 6px 18px rgba(58, 45, 92, 0.08);
}

.specimen-illustration {
    width: 140px;
    height: 140px;
    background: rgba(245, 240, 250, 0.5);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s var(--elastic);
}

.specimen-card:hover .specimen-illustration {
    transform: rotate(-4deg) scale(1.05);
}

.specimen-illustration svg {
    width: 110px;
    height: 110px;
    filter: drop-shadow(0 4px 12px rgba(58, 45, 92, 0.08));
}

.specimen-body .eyebrow {
    margin-bottom: 0.6rem;
}

.specimen-body p {
    font-weight: 300;
}

/* ---------- Section III — Landscape ---------- */

.landscape {
    min-height: 100vh;
    padding: 6rem 0 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.landscape-caption {
    max-width: 640px;
    padding: 0 1.5rem;
    margin-bottom: 3rem;
}

.landscape-caption p {
    font-weight: 300;
    color: var(--text-body);
}

.landscape-scene {
    width: 100%;
    max-width: 1400px;
    padding: 0 1rem;
}

.landscape-scene svg {
    width: 100%;
    height: auto;
    max-height: 520px;
    border-radius: 32px;
    filter: drop-shadow(0 20px 40px rgba(58, 45, 92, 0.08));
    background: linear-gradient(180deg, #EFE5F5 0%, #E0F0F8 70%, #F0E0D0 100%);
    overflow: visible;
    transition: transform 1.2s var(--elastic);
}

.landscape-scene.revealed svg {
    animation: landscapeFloat 8s ease-in-out infinite;
}

@keyframes landscapeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ---------- Section IV — Response ---------- */

.response {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem;
}

.response-inner {
    max-width: 720px;
    text-align: center;
}

.response-text {
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
    color: var(--text-primary);
    line-height: 1.55;
    letter-spacing: 0.005em;
    margin: 2rem 0 2.5rem;
}

.response-text .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(25px) scale(0.9);
    margin-right: 0.25em;
}

.response-text .word.in {
    animation: wordElastic 0.7s var(--elastic) forwards;
}

@keyframes wordElastic {
    0% { transform: translateY(25px) scale(0.9); opacity: 0; }
    60% { transform: translateY(-5px) scale(1.02); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.response-signature {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
}

/* ---------- Footer ---------- */

.site-footer {
    text-align: center;
    padding: 4rem 1.5rem 5rem;
    max-width: 600px;
    margin: 0 auto;
}

.site-footer p:last-child {
    font-weight: 300;
    color: var(--text-tertiary);
    font-size: 14px;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
    .specimen-card {
        grid-template-columns: 1fr;
        padding: 1.8rem;
        text-align: center;
    }

    .specimen-card:nth-child(even),
    .specimen-card:nth-child(odd) {
        width: 100%;
        align-self: stretch;
    }

    .specimen-illustration {
        margin: 0 auto;
    }

    .blob {
        opacity: 0.18;
    }
}
