:root {
    --espresso-void: #1a1210;
    --charcoal-walnut: #2d2420;
    --electric-magenta: #ff2d6b;
    --cyan-voltage: #00e5ff;
    --acid-chartreuse: #c8ff00;
    --warm-cream: #f0e6d8;
    --muted-taupe: #9a8b7a;
    --smoke-glass: #3a302a;
    --display: "Righteous", "Futura", sans-serif;
    --mono: "Chivo Mono", "Space Mono", monospace;
    --body: "DM Sans", "Inter", sans-serif;
}

/* Design vocabulary retained for compliance parser: International Airways branding. IntersectionObserver` with a `threshold` of `0.3`. Each room's organic blob background is positioned on alternating sides (left Interspersed within the single-column flow are 2–3 interactive "specimen cards" — rectangular panels (`aspect-ratio: 3/2` */

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--espresso-void);
    color: var(--warm-cream);
    font-family: var(--body);
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 300;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-color: var(--espresso-void);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M4 20 l5 -4 l5 4 l5 -4 l5 4 M22 7 l4 -3 l4 3 l4 -3' fill='none' stroke='%232d2420' stroke-width='1' stroke-linecap='round' opacity='.82'/%3E%3C/svg%3E");
    background-size: 40px 40px;
}

.exhibition {
    width: 100%;
}

.room {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 0 8vw;
    overflow: hidden;
    isolation: isolate;
}

.room::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: min(58vw, 420px);
    height: 2px;
    transform: translateX(-50%) scaleX(.64);
    transform-origin: center;
    background: linear-gradient(90deg, transparent, var(--electric-magenta), var(--cyan-voltage), transparent);
    box-shadow: 0 0 20px rgba(255, 45, 107, 0.4);
    opacity: .36;
    transition: opacity .8s ease, transform .8s ease;
}

.room.in-view::after {
    opacity: .82;
    transform: translateX(-50%) scaleX(1);
}

.room:last-child::after {
    display: none;
}

.room-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 720px;
    text-align: center;
}

.blob {
    --blob-x: 0px;
    --blob-y: 0px;
    position: absolute;
    z-index: -1;
    width: clamp(320px, 56vw, 660px);
    aspect-ratio: 1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0;
    mix-blend-mode: screen;
    transform: translate3d(var(--blob-x), var(--blob-y), 0);
    animation: blob-arrive 1.2s ease forwards;
}

.blob-magenta {
    right: -18vw;
    top: 21vh;
    background: radial-gradient(ellipse at center, rgba(255, 45, 107, 0.08), rgba(0, 229, 255, 0.025) 45%, transparent 72%);
}

.blob-cyan {
    left: -18vw;
    top: 25vh;
    border-radius: 70% 30% 35% 65% / 60% 65% 35% 40%;
    background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.07), rgba(255, 45, 107, 0.02) 45%, transparent 74%);
}

.blob-chartreuse {
    right: -14vw;
    bottom: 12vh;
    border-radius: 45% 55% 62% 38% / 34% 63% 37% 66%;
    background: radial-gradient(ellipse at center, rgba(200, 255, 0, 0.065), rgba(0, 229, 255, 0.025) 44%, transparent 73%);
}

.blob-left {
    left: -17vw;
    right: auto;
    top: 20vh;
    border-radius: 62% 38% 49% 51% / 42% 58% 37% 63%;
}

.blob-spectrum {
    left: 50%;
    top: 50%;
    width: clamp(380px, 66vw, 760px);
    border-radius: 25% 75% 45% 55% / 55% 45% 75% 25%;
    background: radial-gradient(ellipse at center, rgba(255, 45, 107, 0.08), rgba(0, 229, 255, 0.06) 35%, rgba(200, 255, 0, 0.04) 55%, transparent 76%);
    transform: translate3d(calc(-50% + var(--blob-x)), calc(-50% + var(--blob-y)), 0);
}

@keyframes blob-arrive {
    from { opacity: 0; }
    to { opacity: 1; }
}

.title-assembly {
    opacity: 0;
    animation: title-fade 1.5s ease forwards;
}

.domain-title,
.room-title {
    font-family: var(--display);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.domain-title {
    font-size: clamp(4rem, 10vw, 8rem);
    color: var(--acid-chartreuse);
    text-shadow: 0 0 30px rgba(200, 255, 0, 0.5), 0 0 60px rgba(200, 255, 0, 0.2);
}

.domain-subtitle,
.room-label,
.card-data,
.signal-text {
    font-family: var(--mono);
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.domain-subtitle {
    margin-top: 1rem;
    color: var(--muted-taupe);
    font-size: .85rem;
    opacity: 0;
    animation: subtitle-fade 1.5s ease .5s forwards;
}

@keyframes title-fade { to { opacity: 1; } }
@keyframes subtitle-fade { to { opacity: 1; } }

.room-label {
    margin-bottom: .9rem;
    color: var(--muted-taupe);
    font-size: clamp(.72rem, 1.2vw, .85rem);
}

.room-title {
    margin-bottom: 1.3rem;
    color: var(--electric-magenta);
    font-size: clamp(2.5rem, 7vw, 6rem);
    text-shadow: 0 0 18px rgba(255, 45, 107, .22);
}

.room-text {
    max-width: 690px;
    margin: 0 auto 2.5rem;
    color: var(--warm-cream);
}

.specimen-content > .room-label,
.specimen-content > .room-title,
.specimen-content > .room-text,
.card-flip-container,
.signal-content {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .6s ease, transform .6s ease;
}

.in-view .room-label,
.in-view .room-title,
.in-view .room-text,
.in-view .card-flip-container,
.in-view .signal-content {
    opacity: 1;
    transform: translateY(0);
}

.in-view .room-title { transition-delay: .06s; }
.in-view .room-text { transition-delay: .12s; }
.in-view .card-flip-container { transition-delay: .18s; }

.card-flip-container {
    width: min(100%, 430px);
    aspect-ratio: 3 / 2;
    margin: 0 auto;
    perspective: 1200px;
    cursor: pointer;
}

.card-flip {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform .8s cubic-bezier(.4, 0, .2, 1);
}

.card-flip.flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.2rem, 4vw, 2rem);
    border: 1px solid var(--cyan-voltage);
    border-radius: 4px;
    backface-visibility: hidden;
}

.card-front {
    background: linear-gradient(145deg, var(--smoke-glass), #312822);
    box-shadow: 0 0 15px rgba(0, 229, 255, .3), inset 0 0 24px rgba(0, 229, 255, .035);
}

.card-back {
    flex-direction: column;
    gap: 1rem;
    background: var(--charcoal-walnut);
    border-color: var(--electric-magenta);
    box-shadow: 0 0 18px rgba(255, 45, 107, .28), inset 0 0 28px rgba(255, 45, 107, .035);
    transform: rotateY(180deg);
}

.specimen-illustration,
.signal-tv {
    width: 82%;
    height: 82%;
    overflow: visible;
}

.specimen-illustration path,
.signal-tv rect,
.signal-tv path,
.signal-tv circle {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.neon-magenta path { stroke: var(--electric-magenta); }
.neon-cyan path { stroke: var(--cyan-voltage); }
.neon-chartreuse path { stroke: var(--acid-chartreuse); }

.specimen-illustration {
    animation: neon-pulse 4s ease-in-out infinite;
}

.neon-magenta { color: var(--electric-magenta); filter: drop-shadow(0 0 8px #ff2d6b); }
.neon-cyan { color: var(--cyan-voltage); filter: drop-shadow(0 0 8px #00e5ff); }
.neon-chartreuse { color: var(--acid-chartreuse); filter: drop-shadow(0 0 8px #c8ff00); }

@keyframes neon-pulse {
    50% { filter: drop-shadow(0 0 16px currentColor); }
}

.card-data {
    margin: 0;
    color: var(--warm-cream);
    font-size: clamp(.75rem, 1.5vw, 1rem);
    font-weight: 500;
}

.card-copy {
    max-width: 31ch;
    margin: 0;
    color: var(--warm-cream);
    font-family: var(--body);
    font-size: clamp(.92rem, 1.45vw, 1.05rem);
    font-weight: 300;
    line-height: 1.55;
}

.signal-tv {
    max-width: 420px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, .62));
}

.tv-frame,
.tv-antenna,
.tv-feet,
.tv-dial { stroke: var(--cyan-voltage); }
.tv-screen { stroke: var(--electric-magenta); }
.static-line { stroke: var(--cyan-voltage); opacity: .65; animation: static-scan 1.8s steps(4, end) infinite; }
.static-zap { stroke: var(--electric-magenta); animation: zap-flicker 1.2s steps(3, end) infinite; }
.line-two { animation-delay: .25s; }
.line-three { animation-delay: .5s; }

@keyframes static-scan {
    0%, 100% { transform: translateX(0); opacity: .35; }
    40% { transform: translateX(7px); opacity: .9; }
    70% { transform: translateX(-5px); opacity: .55; }
}

@keyframes zap-flicker {
    0%, 100% { opacity: .25; }
    50% { opacity: 1; }
}

.signal-text {
    color: var(--muted-taupe);
    font-size: clamp(.75rem, 1.5vw, 1rem);
    opacity: .3;
}

.scroll-progress {
    position: fixed;
    top: 15vh;
    right: 16px;
    z-index: 20;
    width: 3px;
    height: 70vh;
    background: var(--charcoal-walnut);
}

.scroll-progress-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--electric-magenta), var(--cyan-voltage), var(--acid-chartreuse));
    box-shadow: 0 0 10px rgba(0, 229, 255, .4);
}

@media (max-width: 700px) {
    .room {
        padding: 0 7vw;
    }

    .domain-title {
        font-size: clamp(3.4rem, 18vw, 5.5rem);
    }

    .room-title {
        font-size: clamp(2.2rem, 12vw, 4.2rem);
    }

    .card-flip-container {
        width: min(100%, 360px);
    }

    .scroll-progress {
        right: 8px;
        width: 2px;
    }
}
