/* ========================================================
   DDAZZL.com — A holographic chamber-based exhibition
   ======================================================== */

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

html {
    scroll-behavior: smooth;
}

html, body {
    background-color: #0a0a1a;
}

body {
    color: #f0eee6;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* -------------------------------------------------------
   Particle sparkle layer
   ------------------------------------------------------- */
.particle-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #f0eee6;
    opacity: 0.6;
    animation: pulse-attention 4s ease-in-out infinite;
}

.particle.gold {
    background: #ffc857;
    box-shadow: 0 0 6px rgba(255, 200, 87, 0.7);
}

.particle.cyan {
    background: #00e5ff;
    box-shadow: 0 0 6px rgba(0, 229, 255, 0.6);
}

.particle.pink {
    background: #e94ecb;
    box-shadow: 0 0 6px rgba(233, 78, 203, 0.6);
}

@keyframes pulse-attention {
    0%, 100% { opacity: 0.15; transform: scale(0.8); }
    50% { opacity: 0.85; transform: scale(1.4); }
}

/* -------------------------------------------------------
   Navigation
   ------------------------------------------------------- */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 44px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.nav-bar.visible {
    opacity: 1;
}

.nav-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.18em;
    background: linear-gradient(135deg, #e94ecb, #00e5ff, #ffc857, #7b2ff7, #39ff85);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holo-shift 8s ease-in-out infinite;
    cursor: default;
}

.nav-dots {
    display: flex;
    gap: 14px;
    align-items: center;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(240, 238, 230, 0.18);
    cursor: pointer;
    transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

.nav-dot:hover {
    background: rgba(240, 238, 230, 0.5);
    transform: scale(1.2);
}

.nav-dot.active {
    background: #ffc857;
    transform: scale(1.4);
    box-shadow: 0 0 12px rgba(255, 200, 87, 0.7);
}

.nav-pill {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(240, 238, 230, 0.05);
    border: 1px solid rgba(240, 238, 230, 0.15);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-pill:hover {
    background: rgba(240, 238, 230, 0.08);
    border-color: rgba(255, 200, 87, 0.4);
}

.nav-pill-bar {
    display: block;
    width: 16px;
    height: 1px;
    background: #f0eee6;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.nav-pill.open .nav-pill-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-pill.open .nav-pill-bar:nth-child(2) {
    opacity: 0;
}

.nav-pill.open .nav-pill-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* -------------------------------------------------------
   Overlay menu
   ------------------------------------------------------- */
.overlay-menu {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 26, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-menu.open {
    opacity: 1;
    pointer-events: auto;
}

.overlay-list {
    list-style: none;
    text-align: center;
}

.overlay-list li {
    margin: 18px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlay-menu.open .overlay-list li {
    opacity: 1;
    transform: translateY(0);
}

.overlay-menu.open .overlay-list li:nth-child(1) { transition-delay: 0.05s; }
.overlay-menu.open .overlay-list li:nth-child(2) { transition-delay: 0.10s; }
.overlay-menu.open .overlay-list li:nth-child(3) { transition-delay: 0.15s; }
.overlay-menu.open .overlay-list li:nth-child(4) { transition-delay: 0.20s; }
.overlay-menu.open .overlay-list li:nth-child(5) { transition-delay: 0.25s; }
.overlay-menu.open .overlay-list li:nth-child(6) { transition-delay: 0.30s; }
.overlay-menu.open .overlay-list li:nth-child(7) { transition-delay: 0.35s; }

.overlay-list a {
    display: inline-flex;
    align-items: baseline;
    gap: 24px;
    text-decoration: none;
    color: #f0eee6;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    letter-spacing: 0.02em;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.overlay-list a:hover {
    transform: translateX(8px);
}

.overlay-list a:hover .overlay-label {
    background: linear-gradient(135deg, #e94ecb, #00e5ff, #ffc857, #7b2ff7, #39ff85);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holo-shift 4s ease-in-out infinite;
}

.overlay-num {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: rgba(240, 238, 230, 0.4);
    letter-spacing: 0.2em;
}

.overlay-label {
    transition: color 0.3s ease;
}

/* -------------------------------------------------------
   Chamber container & sections
   ------------------------------------------------------- */
.chamber-container {
    scroll-snap-type: y proximity;
    overflow-y: auto;
    height: 100vh;
}

.chamber {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 44px;
    scroll-snap-align: start;
    overflow: hidden;
}

.hero-chamber {
    background: radial-gradient(ellipse at center, #14102a 0%, #0a0a1a 70%);
}

.spectrum-chamber {
    background: linear-gradient(180deg, #0a0a1a, #0d0824, #0a0a1a);
}

.split-chamber {
    background: #0a0a1a;
}

.facets-chamber {
    background: radial-gradient(ellipse at 30% 50%, rgba(123, 47, 247, 0.10) 0%, #0a0a1a 60%);
}

.timeline-chamber {
    background: linear-gradient(180deg, #0a0a1a, #0d0a1f, #0a0a1a);
}

.iridescence-chamber {
    background: radial-gradient(ellipse at 70% 50%, rgba(0, 229, 255, 0.07) 0%, #0a0a1a 60%);
}

.closing-chamber {
    background: radial-gradient(ellipse at center, #1a0a2e 0%, #0a0a1a 70%);
    overflow: hidden;
}

.chamber-content {
    max-width: 760px;
    text-align: center;
    z-index: 10;
    position: relative;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.chamber.visible .reveal {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------------------------------------
   Holographic text
   ------------------------------------------------------- */
.holographic-text {
    background: linear-gradient(135deg, #e94ecb, #00e5ff, #ffc857, #7b2ff7, #39ff85, #e94ecb);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holo-shift 6s ease-in-out infinite;
}

@keyframes holo-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* -------------------------------------------------------
   Hero
   ------------------------------------------------------- */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    color: rgba(240, 238, 230, 0.5);
    letter-spacing: 0.4em;
    margin-bottom: 32px;
    opacity: 0;
    animation: fade-in-up 1.2s ease-out 0.4s forwards;
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 14vw, 12rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    margin-bottom: 28px;
    opacity: 0;
    animation: fade-in-up 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.hero-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 0.95rem;
    color: rgba(240, 238, 230, 0.55);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0;
    animation: fade-in-up 1s ease-out 1.1s forwards;
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.scroll-cue {
    margin-top: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: rgba(240, 238, 230, 0.4);
    letter-spacing: 0.3em;
    opacity: 0;
    animation: fade-in-up 1s ease-out 1.5s forwards;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, rgba(240, 238, 230, 0.5), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { transform: scaleY(1); opacity: 0.5; }
    50% { transform: scaleY(1.3); opacity: 1; }
}

/* -------------------------------------------------------
   Chamber labels & headings
   ------------------------------------------------------- */
.chamber-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    color: #ffc857;
    letter-spacing: 0.3em;
    display: inline-block;
    margin-bottom: 24px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 200, 87, 0.25);
    border-radius: 999px;
}

.chamber-heading {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 6vw, 4.8rem);
    margin-bottom: 28px;
    line-height: 1.05;
    letter-spacing: 0.01em;
}

.chamber-text {
    font-size: 1.1rem;
    line-height: 1.85;
    color: rgba(240, 238, 230, 0.72);
    font-weight: 300;
    max-width: 640px;
    margin: 0 auto;
}

/* -------------------------------------------------------
   Floating gems & light leaks
   ------------------------------------------------------- */
.floating-gems {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.gem {
    position: absolute;
    background: conic-gradient(from 0deg, #ffc857, #39ff85, #00e5ff, #7b2ff7, #e94ecb, #ffc857);
    mix-blend-mode: screen;
    opacity: 0.18;
    filter: blur(0.5px);
}

.gem-1 {
    width: 140px;
    height: 140px;
    top: 14%;
    left: 9%;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    animation: gem-float 12s ease-in-out infinite, gem-rotate 22s linear infinite;
}

.gem-2 {
    width: 90px;
    height: 90px;
    top: 22%;
    right: 13%;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation: gem-float 10s ease-in-out infinite reverse, gem-rotate 18s linear infinite reverse;
}

.gem-3 {
    width: 70px;
    height: 70px;
    bottom: 22%;
    left: 18%;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: gem-float 14s ease-in-out infinite, gem-rotate 20s linear infinite;
}

.gem-4 {
    width: 110px;
    height: 110px;
    bottom: 18%;
    right: 9%;
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    animation: gem-float 11s ease-in-out infinite reverse, gem-rotate 24s linear infinite reverse;
}

.gem-5 {
    width: 56px;
    height: 56px;
    top: 50%;
    left: 4%;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    animation: gem-float 13s ease-in-out infinite, gem-rotate 28s linear infinite;
}

@keyframes gem-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-40px) rotate(8deg); }
}

@keyframes gem-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.light-leak {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    mix-blend-mode: screen;
    z-index: 1;
}

.leak-1 {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(255, 200, 87, 0.20) 0%, transparent 70%);
    top: -10%;
    right: -5%;
}

.leak-2 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(123, 47, 247, 0.18) 0%, transparent 70%);
    bottom: 8%;
    left: -5%;
}

.leak-3 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(57, 255, 133, 0.13) 0%, transparent 70%);
    top: 18%;
    right: -10%;
}

.leak-4 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.14) 0%, transparent 70%);
    bottom: -12%;
    left: -6%;
}

/* -------------------------------------------------------
   Spectrum chamber
   ------------------------------------------------------- */
.spectrum-bar {
    width: 240px;
    height: 4px;
    margin: 44px auto 0;
    background: linear-gradient(90deg, #e94ecb, #00e5ff, #ffc857, #7b2ff7, #39ff85);
    background-size: 300% 100%;
    border-radius: 2px;
    animation: bar-shift 8s ease-in-out infinite;
    box-shadow: 0 0 24px rgba(255, 200, 87, 0.3);
}

@keyframes bar-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.spectrum-readout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 40px;
    margin: 48px auto 0;
    max-width: 460px;
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    color: rgba(240, 238, 230, 0.55);
    letter-spacing: 0.15em;
}

.readout-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px solid rgba(240, 238, 230, 0.08);
    border-radius: 4px;
    background: rgba(240, 238, 230, 0.02);
}

.readout-line em {
    font-style: normal;
    color: #ffc857;
}

/* -------------------------------------------------------
   Prismatic split chamber
   ------------------------------------------------------- */
.split-chamber {
    position: relative;
}

.split-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a0a1a 0%, #14102a 100%);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    z-index: 1;
}

.split-bright {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(233, 78, 203, 0.25), rgba(0, 229, 255, 0.20), rgba(255, 200, 87, 0.22), rgba(123, 47, 247, 0.20), rgba(57, 255, 133, 0.18)),
        radial-gradient(ellipse at 80% 80%, rgba(123, 47, 247, 0.4), transparent 60%);
    background-size: 400% 400%;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    animation: split-shift 18s ease-in-out infinite;
    z-index: 1;
}

@keyframes split-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.split-line {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 140%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffc857, #e94ecb, #00e5ff, transparent);
    background-size: 300% 100%;
    transform: rotate(-45deg);
    transform-origin: center;
    box-shadow: 0 0 12px rgba(255, 200, 87, 0.5);
    animation: line-flow 6s linear infinite;
    z-index: 2;
}

@keyframes line-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.split-content {
    z-index: 3;
}

.split-heading {
    line-height: 0.95;
    margin-bottom: 24px;
}

.split-text {
    margin-bottom: 56px;
}

.split-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 16px;
    perspective: 1000px;
}

.glass-card {
    position: relative;
    padding: 28px 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 16px;
    text-align: left;
    transition: transform 0.2s ease-out, box-shadow 0.4s ease;
    transform-style: preserve-3d;
    overflow: hidden;
}

.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, #e94ecb, #00e5ff, #ffc857, #7b2ff7, #39ff85);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0.4;
    animation: holo-shift 8s ease-in-out infinite;
    pointer-events: none;
}

.card-tag {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 200, 87, 0.85);
    letter-spacing: 0.25em;
    margin-bottom: 14px;
}

.card-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: #f0eee6;
}

.card-text {
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(240, 238, 230, 0.7);
    font-weight: 300;
}

.card-glow {
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(255, 200, 87, 0.18), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.glass-card:hover .card-glow {
    opacity: 1;
}

/* -------------------------------------------------------
   Facets chamber
   ------------------------------------------------------- */
.facet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 56px;
    perspective: 1000px;
}

.facet-card {
    text-align: center;
    padding: 24px 16px;
    border-radius: 12px;
    border: 1px solid rgba(240, 238, 230, 0.08);
    background: rgba(240, 238, 230, 0.02);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.2s ease-out, border-color 0.4s ease;
    transform-style: preserve-3d;
    cursor: default;
}

.facet-card:hover {
    border-color: rgba(255, 200, 87, 0.35);
}

.facet-shape {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    background: conic-gradient(from 0deg, #ffc857, #39ff85, #00e5ff, #7b2ff7, #e94ecb, #ffc857);
    opacity: 0.7;
    transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
    filter: saturate(1.1);
}

.facet-card:hover .facet-shape {
    opacity: 1;
    transform: scale(1.12) rotate(20deg);
    filter: saturate(1.4) brightness(1.15);
}

.shape-hex {
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.shape-pent {
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.shape-oct {
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

.shape-tri {
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.facet-name {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    color: rgba(240, 238, 230, 0.85);
    letter-spacing: 0.2em;
    margin-bottom: 6px;
}

.facet-meta {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: rgba(240, 238, 230, 0.4);
    letter-spacing: 0.15em;
}

/* -------------------------------------------------------
   Timeline ribbon chamber
   ------------------------------------------------------- */
.timeline-content {
    max-width: 920px;
    width: 100%;
}

.timeline-header {
    text-align: center;
    margin-bottom: 70px;
}

.timeline-wrap {
    position: relative;
    padding: 30px 0;
}

.timeline-ribbon {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #e94ecb, #00e5ff, #ffc857, #7b2ff7, #39ff85);
    background-size: 100% 300%;
    animation: ribbon-flow 8s ease-in-out infinite;
    box-shadow: 0 0 14px rgba(255, 200, 87, 0.3);
    border-radius: 2px;
}

@keyframes ribbon-flow {
    0%, 100% { background-position: 50% 0%; }
    50% { background-position: 50% 100%; }
}

.timeline-node {
    position: relative;
    width: 50%;
    margin-bottom: 40px;
    padding: 0 50px;
    box-sizing: border-box;
}

.timeline-node.node-left {
    margin-left: 0;
    text-align: right;
}

.timeline-node.node-right {
    margin-left: 50%;
    text-align: left;
}

.node-marker {
    position: absolute;
    top: 24px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0a0a1a;
    border: 2px solid #ffc857;
    box-shadow: 0 0 10px rgba(255, 200, 87, 0.7);
    z-index: 2;
}

.node-left .node-marker {
    right: -7px;
}

.node-right .node-marker {
    left: -7px;
}

.node-card {
    display: inline-block;
    padding: 22px 26px;
    background: rgba(240, 238, 230, 0.03);
    border: 1px solid rgba(240, 238, 230, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: left;
    max-width: 360px;
    transition: border-color 0.4s ease, transform 0.4s ease;
}

.node-card:hover {
    border-color: rgba(0, 229, 255, 0.35);
    transform: translateY(-3px);
}

.node-time {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #00e5ff;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 10px;
}

.node-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    margin-bottom: 8px;
    color: #f0eee6;
}

.node-text {
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(240, 238, 230, 0.65);
    font-weight: 300;
}

/* -------------------------------------------------------
   Iridescence chamber
   ------------------------------------------------------- */
.iridescent-panel {
    position: absolute;
    inset: 0;
    background: conic-gradient(
        from 0deg at 50% 50%,
        rgba(255, 200, 87, 0.06),
        rgba(57, 255, 133, 0.06),
        rgba(0, 229, 255, 0.06),
        rgba(123, 47, 247, 0.06),
        rgba(233, 78, 203, 0.06),
        rgba(255, 200, 87, 0.06)
    );
    mix-blend-mode: screen;
    animation: iridescent-rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes iridescent-rotate {
    0% { transform: rotate(0deg) scale(1.5); }
    100% { transform: rotate(360deg) scale(1.5); }
}

.iridescent-disc {
    width: clamp(220px, 36vw, 340px);
    height: clamp(220px, 36vw, 340px);
    margin: 56px auto 0;
    border-radius: 50%;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.disc-inner {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        conic-gradient(from 90deg, #e94ecb, #00e5ff, #ffc857, #7b2ff7, #39ff85, #e94ecb),
        radial-gradient(circle, transparent 30%, rgba(0,0,0,0.4) 70%);
    background-blend-mode: screen;
    filter: saturate(1.2) blur(0.5px);
    box-shadow:
        0 0 80px rgba(0, 229, 255, 0.25),
        0 0 40px rgba(233, 78, 203, 0.25),
        inset 0 0 40px rgba(255, 200, 87, 0.2);
    animation: disc-spin 24s linear infinite;
}

@keyframes disc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.disc-shine {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, rgba(240, 238, 230, 0.35), transparent 45%);
    pointer-events: none;
    mix-blend-mode: screen;
}

/* -------------------------------------------------------
   Closing chamber
   ------------------------------------------------------- */
.hue-cycle {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(233, 78, 203, 0.18), transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(0, 229, 255, 0.16), transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(255, 200, 87, 0.14), transparent 50%),
        radial-gradient(ellipse at 20% 70%, rgba(123, 47, 247, 0.16), transparent 50%);
    filter: hue-rotate(0deg) blur(30px);
    animation: hue-shift 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes hue-shift {
    0% { filter: hue-rotate(0deg) blur(30px); }
    100% { filter: hue-rotate(360deg) blur(30px); }
}

.closing-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2.6rem, 7vw, 6rem);
    margin-bottom: 18px;
    line-height: 1;
}

.closing-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: rgba(240, 238, 230, 0.5);
    letter-spacing: 0.3em;
    margin-bottom: 48px;
    text-transform: uppercase;
}

.prism-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 48px;
}

.prism-svg {
    width: 100%;
    height: 100%;
    animation: prism-spin 14s linear infinite;
    filter: drop-shadow(0 0 12px rgba(255, 200, 87, 0.4));
}

@keyframes prism-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.closing-meta {
    display: flex;
    justify-content: center;
    gap: 36px;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: rgba(240, 238, 230, 0.4);
}

/* -------------------------------------------------------
   Responsive
   ------------------------------------------------------- */
@media (max-width: 900px) {
    .split-cards,
    .facet-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-node {
        width: 100%;
        margin-left: 0 !important;
        text-align: left !important;
        padding-left: 50px;
        padding-right: 0;
    }

    .timeline-ribbon {
        left: 14px;
        transform: none;
    }

    .node-marker {
        left: 7px !important;
        right: auto !important;
    }

    .node-card {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .chamber {
        padding: 80px 24px;
    }

    .nav-bar {
        padding: 16px 22px;
    }

    .nav-dots {
        display: none;
    }

    .split-cards,
    .facet-grid {
        grid-template-columns: 1fr;
    }

    .closing-meta {
        flex-direction: column;
        gap: 12px;
    }

    .spectrum-readout {
        grid-template-columns: 1fr;
    }
}
