:root {
    /* design compliance tokens: Interaction:** Interactions:** Interactive elements Intersection Observer. When crosses visibility threshold (Google */
    --black-cherry: #1a0a12;
    --wine-velvet: #2d1220;
    --plum-shadow: #3e1a2e;
    --neon-rose: #e8476c;
    --rose-quartz: #f5c6d0;
    --electric-violet: #7b3f9e;
    --bubble-gum: #ff8fab;
    --muted-rose: #d4a0b0;
    --dusty-mauve: #8a4f6a;
    --elastic-in: cubic-bezier(0.34, 1.56, 0.64, 1);
    --elastic-out: cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

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

html {
    background: var(--black-cherry);
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 8%, rgba(123, 63, 158, 0.24), transparent 32rem),
        radial-gradient(circle at 86% 34%, rgba(232, 71, 108, 0.16), transparent 28rem),
        linear-gradient(180deg, #1a0a12 0%, #2d1220 48%, #1a0a12 100%);
    color: var(--muted-rose);
    font-family: "Quicksand", "Trebuchet MS", sans-serif;
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.72;
}

a {
    color: inherit;
}

.cursor-glow {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 500;
    width: 120px;
    height: 120px;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 71, 108, 0.06) 0%, rgba(255, 143, 175, 0.025) 42%, transparent 70%);
    filter: blur(1px);
    opacity: 0;
    transform: translate3d(-200px, -200px, 0);
}

.opening {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    background: #1a0a12;
}

.ambient-grid {
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(rgba(245, 198, 208, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 198, 208, 0.025) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(62, 26, 46, 0.85), #1a0a12 66%);
    background-size: 44px 44px, 44px 44px, 100% 100%;
    mask-image: radial-gradient(circle, #000 0%, transparent 72%);
}

.opening::before,
.opening::after {
    content: "";
    position: absolute;
    z-index: -2;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.7;
    animation: morph-glow 13.1s ease-in-out infinite alternate;
}

.opening::before {
    width: 42vw;
    height: 42vw;
    left: -12vw;
    top: 9vh;
    background: radial-gradient(circle at 35% 28%, rgba(255, 143, 175, 0.18), rgba(123, 63, 158, 0.08) 46%, transparent 70%);
}

.opening::after {
    width: 36vw;
    height: 36vw;
    right: -9vw;
    bottom: 5vh;
    background: radial-gradient(circle at 28% 32%, rgba(232, 71, 108, 0.16), rgba(138, 79, 106, 0.12) 42%, transparent 72%);
    animation-duration: 11.7s;
}

.opening-bubbles,
.closing-bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.bubble {
    position: absolute;
    left: var(--x);
    bottom: calc(var(--size) * -1);
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    border: 1px solid rgba(255, 180, 200, 0.15);
    background:
        radial-gradient(circle at 32% 24%, rgba(245, 198, 208, 0.32), transparent 0.8rem),
        radial-gradient(circle at 38% 35%, rgba(232, 71, 108, 0.15), transparent 45%),
        radial-gradient(circle at 70% 78%, rgba(123, 63, 158, 0.14), transparent 55%);
    box-shadow: 0 0 20px rgba(123, 63, 158, 0.1), inset 0 -4px 12px rgba(255, 143, 175, 0.08);
    opacity: 0;
    animation: bubble-rise var(--duration) linear var(--delay) infinite;
    will-change: transform, opacity;
}

.title-shell {
    position: relative;
    z-index: 2;
    width: min(92vw, 980px);
    padding: clamp(2rem, 6vw, 4.5rem);
    text-align: center;
}

.micro-label,
.section-kicker,
.card-meta,
.color-capsule span {
    font-family: "Space Mono", "Courier New", monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a4f6a;
}

.site-title,
.section-heading {
    font-family: "Righteous", "Arial Rounded MT Bold", sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: lowercase;
    color: #f5c6d0;
}

.site-title {
    margin: 0.2em 0 0.08em;
    font-size: clamp(3rem, 15vw, 10rem);
    line-height: 0.92;
    text-shadow: 0 0 18px rgba(232, 71, 108, 0.23), 0 0 58px rgba(123, 63, 158, 0.24);
}

.site-title span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) scale(0.94);
    animation: title-letter 720ms var(--elastic-in) forwards;
}

.site-tagline {
    color: #d4a0b0;
    opacity: 0;
    transform: translateY(16px);
    animation: tagline-in 780ms var(--elastic-in) 900ms forwards;
}

.nav-bar {
    position: sticky;
    top: 16px;
    z-index: 100;
    display: flex;
    width: fit-content;
    max-width: calc(100vw - 2rem);
    margin: -4.5rem auto 0;
    padding: 0.85rem 1.35rem;
    gap: 2rem;
    border: 1px solid rgba(255, 180, 200, 0.15);
    border-radius: 999px;
    background: rgba(45, 18, 32, 0.56);
    box-shadow: 0 8px 32px rgba(90, 20, 48, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px) saturate(1.2);
}

.nav-link {
    font-family: "Space Mono", "Courier New", monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    color: #d4a0b0;
    opacity: 0.5;
    transition: opacity 400ms var(--elastic-in), color 400ms var(--elastic-in), transform 400ms var(--elastic-in);
}

.nav-link:hover,
.nav-link.is-active {
    color: #ff8fab;
    opacity: 1;
    transform: translateY(-2px);
}

.main-content {
    position: relative;
    z-index: 2;
}

.soft-divider {
    height: 9rem;
    margin-top: 2.75rem;
    background: linear-gradient(180deg, transparent, rgba(232, 71, 108, 0.06) 45%, transparent), linear-gradient(90deg, transparent, rgba(138, 79, 106, 0.55), transparent);
    mask-image: linear-gradient(180deg, transparent, #000 42%, transparent);
}

.section {
    width: min(1440px, calc(100% - clamp(2rem, 5vw, 5rem)));
    margin: 0 auto;
    padding: clamp(3.5rem, 7vw, 7rem) 0;
}

.section-heading {
    max-width: 12ch;
    margin: 0.1em 0 0.24em;
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 0.96;
}

.section-intro {
    max-width: 760px;
    color: #d4a0b0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: clamp(20px, 3vw, 40px);
    margin-top: clamp(2rem, 4vw, 4rem);
}

.y2k-card,
.specimen,
.color-capsule {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 180, 200, 0.15);
    border-radius: 24px;
    background: rgba(90, 20, 48, 0.12);
    box-shadow: 0 8px 32px rgba(90, 20, 48, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px) saturate(1.2);
}

.y2k-card {
    min-height: 280px;
    padding: 1.45rem;
    opacity: 0;
    transform: translateY(calc(40px + (var(--card-index) * 12px))) scale(0.92);
    transition: opacity 600ms var(--elastic-in), transform 600ms var(--elastic-in), background 400ms var(--elastic-in), box-shadow 400ms var(--elastic-in), border-color 400ms var(--elastic-in);
    transition-delay: calc(var(--card-index) * 80ms);
}

.y2k-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.y2k-card.is-visible:nth-child(3n + 2) {
    transform: translateY(12px) scale(1);
}

.y2k-card.is-visible:nth-child(3n) {
    transform: translateY(24px) scale(1);
}

.y2k-card:hover {
    background: rgba(90, 20, 48, 0.18);
    border-color: rgba(255, 143, 175, 0.42);
    box-shadow: 0 16px 50px rgba(123, 63, 158, 0.18), inset 0 1px 2px rgba(255, 255, 255, 0.15);
    transform: translateY(-6px) scale(1.02);
}

.y2k-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0 20%, rgba(245, 198, 208, 0.08) 24%, transparent 31% 100%);
    transform: translateX(-120%);
    transition: transform 700ms var(--elastic-in);
}

.y2k-card:hover::before {
    transform: translateX(120%);
}

.y2k-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -2px;
    height: 2px;
    background: rgba(232, 71, 108, 0.3);
    opacity: 0;
    transform: translateY(0);
}

.y2k-card.is-glitching {
    border-color: #e8476c;
    animation: card-jitter 300ms var(--elastic-out);
}

.y2k-card.is-glitching::after {
    opacity: 1;
    animation: scan-sweep 300ms linear;
}

.y2k-card h3,
.specimen h3 {
    position: relative;
    z-index: 2;
    margin: 0.55rem 0 0.75rem;
    color: #ff8fab;
    font-family: "Righteous", "Arial Rounded MT Bold", sans-serif;
    font-size: clamp(1.32rem, 2.2vw, 2rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.08;
    text-transform: lowercase;
}

.y2k-card p,
.specimen p {
    position: relative;
    z-index: 2;
    color: #d4a0b0;
}

.card-orb {
    position: absolute;
    right: -3.25rem;
    bottom: -3.25rem;
    width: 11rem;
    height: 11rem;
    border-radius: 50%;
    background: radial-gradient(circle at 33% 27%, rgba(245, 198, 208, 0.25), rgba(232, 71, 108, 0.16) 35%, rgba(123, 63, 158, 0.12) 62%, transparent 72%);
    filter: blur(2px);
    animation: orb-pulse 7.3s ease-in-out infinite;
}

.glitch-band {
    height: 8px;
    margin: 4rem 0 1rem;
    background: linear-gradient(90deg, #1a0a12, #e8476c, #7b3f9e, #f5c6d0, #d4a0b0, #ff8fab, #8a4f6a, #3e1a2e, #e8476c, #1a0a12, #7b3f9e, #ff8fab, #2d1220, #f5c6d0, #8a4f6a, #1a0a12);
    background-size: 220% 100%;
    box-shadow: 0 0 24px rgba(232, 71, 108, 0.28);
    animation: band-scroll 7.3s linear infinite;
}

.specimen-grid,
.palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: clamp(20px, 3vw, 40px);
    margin-top: 2.4rem;
}

.specimen {
    padding: 1rem;
    transform: translateY(20px);
    transition: transform 400ms var(--elastic-in), background 400ms var(--elastic-in), box-shadow 400ms var(--elastic-in);
}

.specimen:hover {
    transform: translateY(-6px) scale(1.02);
    background: rgba(90, 20, 48, 0.18);
}

.specimen-art {
    height: 220px;
    border-radius: 18px;
    background-blend-mode: difference, screen, normal;
    filter: saturate(1.18);
    animation: specimen-morph 11.7s ease-in-out infinite;
}

.specimen-a .specimen-art {
    background: repeating-linear-gradient(90deg, rgba(232, 71, 108, 0.32) 0 8px, rgba(123, 63, 158, 0.2) 8px 19px, rgba(245, 198, 208, 0.12) 19px 31px), radial-gradient(circle at 30% 20%, #ff8fab, transparent 38%), #2d1220;
}

.specimen-b .specimen-art {
    background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(245, 198, 208, 0.12) 5px 7px), conic-gradient(from 80deg, #1a0a12, #8a4f6a, #e8476c, #7b3f9e, #1a0a12);
    animation-duration: 13.1s;
}

.specimen-c .specimen-art {
    background: radial-gradient(circle at 22% 80%, rgba(255, 143, 175, 0.34), transparent 30%), linear-gradient(135deg, #3e1a2e, #7b3f9e, #2d1220 65%, #e8476c);
    animation-duration: 7.3s;
}

.specimen-d .specimen-art {
    background: radial-gradient(circle at 40% 28%, rgba(245, 198, 208, 0.25), transparent 12%), radial-gradient(circle, rgba(232, 71, 108, 0.16), transparent 62%), linear-gradient(160deg, #2d1220, #3e1a2e);
    box-shadow: inset 0 -14px 30px rgba(255, 143, 175, 0.08), inset 0 1px 0 rgba(245, 198, 208, 0.18);
    animation-duration: 17.3s;
}

.palette-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.color-capsule {
    min-height: 176px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(150deg, color-mix(in srgb, var(--swatch) 82%, transparent), rgba(90, 20, 48, 0.12));
    transition: transform 400ms var(--elastic-in), box-shadow 400ms var(--elastic-in);
}

.color-capsule::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 18px;
    background: radial-gradient(circle at 28% 24%, rgba(245, 198, 208, 0.38), transparent 14%), radial-gradient(circle at 74% 80%, rgba(26, 10, 18, 0.34), transparent 46%);
}

.color-capsule:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 16px 54px rgba(232, 71, 108, 0.16), inset 0 1px 2px rgba(255, 255, 255, 0.15);
}

.color-capsule span,
.color-capsule b {
    position: relative;
    z-index: 1;
}

.color-capsule b {
    color: #f5c6d0;
    font-family: "Righteous", "Arial Rounded MT Bold", sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    text-transform: lowercase;
}

.dissolve {
    position: relative;
    min-height: 82vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 2rem;
    background: radial-gradient(circle at 50% 58%, rgba(123, 63, 158, 0.20), transparent 30rem), linear-gradient(180deg, transparent, #1a0a12 35%);
}

.dissolve p {
    width: min(920px, 90vw);
    color: #f5c6d0;
    font-family: "Righteous", "Arial Rounded MT Bold", sans-serif;
    font-size: clamp(2rem, 6vw, 5rem);
    letter-spacing: 0.02em;
    line-height: 1.05;
    text-align: center;
    text-transform: lowercase;
    text-shadow: 0 0 44px rgba(232, 71, 108, 0.24);
}

@keyframes title-letter {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes tagline-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bubble-rise {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(0.78);
    }
    11% {
        opacity: 0.82;
    }
    50% {
        transform: translate3d(var(--drift), -58vh, 0) scale(1.06);
    }
    90% {
        opacity: 0.72;
    }
    100% {
        opacity: 0;
        transform: translate3d(calc(var(--drift) * -0.45), -122vh, 0) scale(1.18);
    }
}

@keyframes morph-glow {
    0% {
        clip-path: polygon(50% 0, 91% 19%, 100% 60%, 70% 96%, 25% 88%, 0 54%, 12% 14%);
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    100% {
        clip-path: polygon(40% 3%, 84% 10%, 96% 47%, 78% 86%, 38% 100%, 6% 72%, 0 25%);
        transform: translate3d(2rem, -1rem, 0) rotate(12deg);
    }
}

@keyframes orb-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.86; transform: scale(1.18); }
}

@keyframes band-scroll {
    to { background-position: 220% 0; }
}

@keyframes scan-sweep {
    to { transform: translateY(290px); }
}

@keyframes card-jitter {
    0%, 100% { transform: translateX(0); }
    30% { transform: translateX(2px); }
    62% { transform: translateX(-1px); }
}

@keyframes specimen-morph {
    0%, 100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); filter: hue-rotate(0deg) saturate(1.14); }
    22% { clip-path: polygon(0 8%, 100% 0, 92% 100%, 8% 92%); }
    47% { clip-path: polygon(10% 0, 100% 14%, 100% 84%, 0 100%); filter: hue-rotate(12deg) saturate(1.3); }
    73% { clip-path: polygon(0 18%, 86% 0, 100% 100%, 14% 84%); }
}

@media (max-width: 760px) {
    .nav-bar {
        width: calc(100% - 2rem);
        justify-content: center;
        gap: 1rem;
        padding-inline: 0.8rem;
        flex-wrap: wrap;
    }

    .section {
        width: min(100% - 2rem, 1440px);
    }

    .card-grid,
    .specimen-grid,
    .palette-grid {
        grid-template-columns: 1fr;
    }

    .y2k-card.is-visible {
        transform: translateY(0) scale(1);
    }

    .bubble.extra-mobile {
        display: none;
    }
}
