/* ====================================================
   DDAZZL.com - Dopamine Maximalism
   Spectral Decomposition / Dazzle Camouflage
   ==================================================== */

/* ---- @property for conic gradient animation ---- */
@property --conic-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* ---- CSS Variables / Palette ---- */
:root {
    --void-black: #08080a;
    --laser-crimson: #ff1744;
    --molten-amber: #ff9100;
    --arc-flash: #ffea00;
    --phosphor-mint: #00e676;
    --plasma-cyan: #00b0ff;
    --neon-orchid: #d500f9;
    --bleached-white: #f0f0f5;

    --ease-dramatic: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-ambient: cubic-bezier(0.4, 0, 0.2, 1);
    --diagonal: 15deg;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--void-black);
    color: var(--bleached-white);
    font-family: 'Albert Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.65;
    overflow-x: hidden;
}

/* ---- Scroll Container ---- */
#scroll-container {
    scroll-snap-type: y mandatory;
    overflow-y: auto;
    height: 100vh;
    scroll-behavior: smooth;
}

.snap-section {
    scroll-snap-align: start;
    min-height: 100vh;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* ---- Scroll Progress Indicator (left edge) ---- */
#scroll-progress {
    position: fixed;
    left: 0;
    top: 0;
    width: 2px;
    height: 0%;
    background: linear-gradient(
        to bottom,
        var(--laser-crimson),
        var(--molten-amber),
        var(--arc-flash),
        var(--phosphor-mint),
        var(--plasma-cyan),
        var(--neon-orchid)
    );
    z-index: 10000;
    transition: height 0.1s linear;
}

/* ---- Vertical Navigation Bar (right edge) ---- */
#nav-bar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 9999;
    padding: 16px 8px;
    border-radius: 20px;
    background: rgba(8, 8, 10, 0.5);
    backdrop-filter: blur(8px);
}

.nav-diamond {
    width: 12px;
    height: 12px;
    transform: rotate(45deg);
    background: rgba(240, 240, 245, 0.3);
    cursor: pointer;
    transition: all 0.3s var(--ease-dramatic);
    position: relative;
}

.nav-diamond::after {
    content: '';
    position: absolute;
    inset: -6px;
    transform: rotate(0deg);
    border-radius: 50%;
    background: transparent;
    transition: background 0.3s ease;
}

.nav-diamond.active {
    background: var(--bleached-white);
    box-shadow: 0 0 12px currentColor, 0 0 24px currentColor;
}

.nav-diamond:hover {
    transform: rotate(45deg) scale(1.4);
}

.nav-diamond:hover::after {
    background: rgba(240, 240, 245, 0.08);
    animation: diamond-pulse 0.8s ease-out;
}

@keyframes diamond-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(3); opacity: 0; }
}

/* ---- Light Leak Overlays ---- */
.light-leak {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    border-radius: 50%;
    mix-blend-mode: screen;
}

.light-leak-1 {
    width: 500px;
    height: 500px;
    top: -150px;
    left: -150px;
    background: radial-gradient(circle, rgba(255, 23, 68, 0.25) 0%, transparent 70%);
    animation: light-drift-1 20s ease-in-out infinite;
}

.light-leak-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(0, 176, 255, 0.2) 0%, transparent 70%);
    animation: light-drift-2 25s ease-in-out infinite;
}

.light-leak-3 {
    width: 350px;
    height: 350px;
    top: 40%;
    right: 20%;
    background: radial-gradient(circle, rgba(213, 0, 249, 0.22) 0%, transparent 70%);
    animation: light-drift-3 18s ease-in-out infinite;
}

@keyframes light-drift-1 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(80px, 60px); }
    50% { transform: translate(40px, 120px); }
    75% { transform: translate(-40px, 80px); }
}

@keyframes light-drift-2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-70px, -50px); }
    66% { transform: translate(-120px, -30px); }
}

@keyframes light-drift-3 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-60px, 40px); }
    50% { transform: translate(30px, -80px); }
    75% { transform: translate(80px, 20px); }
}

/* ---- Cursor Trail ---- */
#cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
}

.trail-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    animation: trail-fade 150ms linear forwards;
}

@keyframes trail-fade {
    0% { opacity: var(--trail-opacity); transform: scale(1); }
    100% { opacity: 0; transform: scale(0.3); }
}

/* ====================================================
   SECTION 0: THE PRISM GATE
   ==================================================== */
#prism-gate {
    background: var(--bleached-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

#prism-surface {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* Crack line */
#prism-crack {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1px;
    height: 0;
    background: var(--void-black);
    transform: translate(-50%, -50%);
    z-index: 10;
}

#prism-crack.animate {
    animation: crack-grow 600ms var(--ease-dramatic) 400ms forwards;
}

@keyframes crack-grow {
    0% { height: 0; }
    100% { height: 100vh; }
}

/* Prism Shards */
.prism-shard {
    position: absolute;
    inset: 0;
    opacity: 0;
    will-change: transform, clip-path, background-color;
}

.prism-shard[data-index="0"] {
    --shard-color: var(--laser-crimson);
    --shard-translate-x: -120%;
    --shard-translate-y: -60%;
    --shard-rotate: -25deg;
}
.prism-shard[data-index="1"] {
    --shard-color: var(--molten-amber);
    --shard-translate-x: -80%;
    --shard-translate-y: 80%;
    --shard-rotate: 15deg;
}
.prism-shard[data-index="2"] {
    --shard-color: var(--arc-flash);
    --shard-translate-x: 60%;
    --shard-translate-y: -100%;
    --shard-rotate: -10deg;
}
.prism-shard[data-index="3"] {
    --shard-color: var(--phosphor-mint);
    --shard-translate-x: 100%;
    --shard-translate-y: 60%;
    --shard-rotate: 20deg;
}
.prism-shard[data-index="4"] {
    --shard-color: var(--plasma-cyan);
    --shard-translate-x: -60%;
    --shard-translate-y: 120%;
    --shard-rotate: -5deg;
}
.prism-shard[data-index="5"] {
    --shard-color: var(--neon-orchid);
    --shard-translate-x: 120%;
    --shard-translate-y: -80%;
    --shard-rotate: 25deg;
}
.prism-shard[data-index="6"] {
    --shard-color: var(--bleached-white);
    --shard-translate-x: 0%;
    --shard-translate-y: 140%;
    --shard-rotate: -15deg;
}

/* Clip path polygons for shards */
.prism-shard[data-index="0"] { clip-path: polygon(0% 0%, 50% 0%, 50% 50%); }
.prism-shard[data-index="1"] { clip-path: polygon(0% 0%, 0% 50%, 50% 50%); }
.prism-shard[data-index="2"] { clip-path: polygon(50% 0%, 100% 0%, 50% 50%); }
.prism-shard[data-index="3"] { clip-path: polygon(100% 0%, 100% 50%, 50% 50%); }
.prism-shard[data-index="4"] { clip-path: polygon(0% 50%, 50% 50%, 0% 100%); }
.prism-shard[data-index="5"] { clip-path: polygon(50% 50%, 100% 50%, 100% 100%); }
.prism-shard[data-index="6"] { clip-path: polygon(50% 50%, 0% 100%, 100% 100%); }

.prism-shard.phase-color {
    opacity: 1;
    background-color: var(--bleached-white);
    animation: shard-color 300ms ease-out forwards;
}

@keyframes shard-color {
    0% { background-color: var(--bleached-white); }
    100% { background-color: var(--shard-color); }
}

.prism-shard.phase-scatter {
    opacity: 1;
    background-color: var(--shard-color);
    animation: shard-scatter 800ms var(--ease-dramatic) forwards;
}

@keyframes shard-scatter {
    0% { transform: scale(0.85) rotate(0deg); }
    100% {
        transform: scale(0.85)
            rotate(var(--shard-rotate))
            translate(var(--shard-translate-x), var(--shard-translate-y));
        opacity: 0;
    }
}

/* Skip button */
#skip-sequence {
    position: absolute;
    bottom: 30px;
    right: 40px;
    background: none;
    border: 1px solid rgba(8, 8, 10, 0.3);
    color: var(--void-black);
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    padding: 8px 16px;
    cursor: pointer;
    opacity: 0;
    z-index: 20;
    transition: opacity 0.3s ease, background-color 0.2s ease;
}

#skip-sequence.visible {
    animation: skip-fade-in 400ms ease forwards;
}

@keyframes skip-fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

#skip-sequence:hover {
    background: var(--void-black);
    color: var(--bleached-white);
}

#prism-gate.completed {
    background: var(--void-black);
}

#prism-gate.completed #prism-surface {
    display: none;
}

#prism-gate.completed #skip-sequence {
    display: none;
}

/* Title revealed after prism gate */
.prism-reveal-title {
    font-family: 'Bungee', cursive;
    font-size: clamp(3rem, 8vw, 10rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bleached-white);
    text-align: center;
    opacity: 0;
    position: relative;
    z-index: 5;
}

#prism-gate.completed .prism-reveal-title {
    animation: reveal-title 800ms var(--ease-dramatic) forwards;
}

@keyframes reveal-title {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* ====================================================
   SPECTRUM CORRIDOR SECTIONS
   ==================================================== */
.spectrum-section {
    background: var(--void-black);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Refraction Background Pattern ---- */
.refraction-bg {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image:
        repeating-linear-gradient(15deg, currentColor 0px, currentColor 1px, transparent 1px, transparent 20px),
        repeating-linear-gradient(30deg, currentColor 0px, currentColor 1px, transparent 1px, transparent 20px),
        repeating-linear-gradient(45deg, currentColor 0px, currentColor 1px, transparent 1px, transparent 20px);
    background-size: 120px 120px;
    pointer-events: none;
    z-index: 0;
}

#spectrum-red .refraction-bg { color: var(--laser-crimson); }
#spectrum-orange .refraction-bg { color: var(--molten-amber); }
#spectrum-yellow .refraction-bg { color: var(--arc-flash); }
#spectrum-green .refraction-bg { color: var(--phosphor-mint); }
#refraction-grid .refraction-bg { color: var(--plasma-cyan); }
#spectrum-violet .refraction-bg { color: var(--neon-orchid); }

/* ---- Dazzle Camouflage Dividers ---- */
.dazzle-divider {
    position: absolute;
    left: -10%;
    width: 120%;
    height: 30px;
    z-index: 3;
    pointer-events: none;
}

.dazzle-top { top: 0; }
.dazzle-bottom { bottom: 0; }

#spectrum-red .dazzle-divider {
    background: repeating-linear-gradient(
        15deg,
        var(--laser-crimson) 0px, var(--laser-crimson) 4px,
        var(--molten-amber) 4px, var(--molten-amber) 16px,
        var(--laser-crimson) 16px, var(--laser-crimson) 20px,
        transparent 20px, transparent 32px
    );
}

#spectrum-orange .dazzle-divider {
    background: repeating-linear-gradient(
        15deg,
        var(--molten-amber) 0px, var(--molten-amber) 4px,
        var(--arc-flash) 4px, var(--arc-flash) 16px,
        var(--molten-amber) 16px, var(--molten-amber) 20px,
        transparent 20px, transparent 32px
    );
}

#spectrum-yellow .dazzle-divider {
    background: repeating-linear-gradient(
        15deg,
        var(--arc-flash) 0px, var(--arc-flash) 4px,
        var(--phosphor-mint) 4px, var(--phosphor-mint) 16px,
        var(--arc-flash) 16px, var(--arc-flash) 20px,
        transparent 20px, transparent 32px
    );
}

#spectrum-green .dazzle-divider {
    background: repeating-linear-gradient(
        15deg,
        var(--phosphor-mint) 0px, var(--phosphor-mint) 4px,
        var(--plasma-cyan) 4px, var(--plasma-cyan) 16px,
        var(--phosphor-mint) 16px, var(--phosphor-mint) 20px,
        transparent 20px, transparent 32px
    );
}

#spectrum-violet .dazzle-divider {
    background: repeating-linear-gradient(
        15deg,
        var(--neon-orchid) 0px, var(--neon-orchid) 4px,
        var(--laser-crimson) 4px, var(--laser-crimson) 16px,
        var(--neon-orchid) 16px, var(--neon-orchid) 20px,
        transparent 20px, transparent 32px
    );
}

/* ---- Rotating Conic Gradient Orbs ---- */
.rotating-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    z-index: 0;
    will-change: transform;
    --conic-angle: 0deg;
}

.orb-red {
    width: 350px;
    height: 350px;
    top: 10%;
    right: 5%;
    background: conic-gradient(from var(--conic-angle), var(--laser-crimson), var(--molten-amber), var(--arc-flash), var(--laser-crimson));
    animation: orb-spin 8s linear infinite;
}

.orb-orange {
    width: 300px;
    height: 300px;
    bottom: 15%;
    left: 3%;
    background: conic-gradient(from var(--conic-angle), var(--molten-amber), var(--arc-flash), var(--phosphor-mint), var(--molten-amber));
    animation: orb-spin 12s linear infinite;
}

.orb-yellow {
    width: 400px;
    height: 400px;
    top: 20%;
    right: -5%;
    background: conic-gradient(from var(--conic-angle), var(--arc-flash), var(--phosphor-mint), var(--plasma-cyan), var(--arc-flash));
    animation: orb-spin 18s linear infinite;
}

.orb-green {
    width: 320px;
    height: 320px;
    bottom: 10%;
    left: 10%;
    background: conic-gradient(from var(--conic-angle), var(--phosphor-mint), var(--plasma-cyan), var(--neon-orchid), var(--phosphor-mint));
    animation: orb-spin 10s linear infinite;
}

.orb-blue {
    width: 380px;
    height: 380px;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    background: conic-gradient(from var(--conic-angle), var(--plasma-cyan), var(--neon-orchid), var(--laser-crimson), var(--plasma-cyan));
    animation: orb-spin 14s linear infinite;
}

.orb-violet {
    width: 340px;
    height: 340px;
    top: 15%;
    left: 8%;
    background: conic-gradient(from var(--conic-angle), var(--neon-orchid), var(--laser-crimson), var(--molten-amber), var(--neon-orchid));
    animation: orb-spin 9s linear infinite;
}

@keyframes orb-spin {
    0% { --conic-angle: 0deg; }
    100% { --conic-angle: 360deg; }
}

/* ---- Rhombus Content Containers ---- */
.rhombus-container {
    width: 55vw;
    max-width: 700px;
    min-height: 320px;
    transform: rotate(15deg);
    position: relative;
    z-index: 2;
    padding: 3px;
    background: var(--laser-crimson);
    animation: border-cycle 4s linear infinite;
}

.rhombus-left {
    margin-right: auto;
    margin-left: 8vw;
}

.rhombus-right {
    margin-left: auto;
    margin-right: 8vw;
}

.rhombus-inner {
    background: var(--void-black);
    padding: 48px 40px;
    transform: rotate(-15deg);
    position: relative;
}

/* Border color cycle per section */
#spectrum-red .rhombus-container {
    animation: border-cycle-red 4s linear infinite;
}
#spectrum-orange .rhombus-container {
    animation: border-cycle-orange 4s linear infinite;
    animation-delay: 600ms;
}
#spectrum-yellow .rhombus-container {
    animation: border-cycle-yellow 4s linear infinite;
    animation-delay: 1200ms;
}
#spectrum-green .rhombus-container {
    animation: border-cycle-green 4s linear infinite;
    animation-delay: 1800ms;
}
#spectrum-violet .rhombus-container {
    animation: border-cycle-violet 4s linear infinite;
    animation-delay: 2400ms;
}

@keyframes border-cycle-red {
    0%, 100% { background: var(--laser-crimson); }
    25% { background: var(--molten-amber); }
    50% { background: var(--arc-flash); }
    75% { background: var(--phosphor-mint); }
}

@keyframes border-cycle-orange {
    0%, 100% { background: var(--molten-amber); }
    25% { background: var(--arc-flash); }
    50% { background: var(--phosphor-mint); }
    75% { background: var(--plasma-cyan); }
}

@keyframes border-cycle-yellow {
    0%, 100% { background: var(--arc-flash); }
    25% { background: var(--phosphor-mint); }
    50% { background: var(--plasma-cyan); }
    75% { background: var(--neon-orchid); }
}

@keyframes border-cycle-green {
    0%, 100% { background: var(--phosphor-mint); }
    25% { background: var(--plasma-cyan); }
    50% { background: var(--neon-orchid); }
    75% { background: var(--laser-crimson); }
}

@keyframes border-cycle-violet {
    0%, 100% { background: var(--neon-orchid); }
    25% { background: var(--laser-crimson); }
    50% { background: var(--molten-amber); }
    75% { background: var(--arc-flash); }
}

/* ---- Typography ---- */
.section-title {
    font-family: 'Bungee', cursive;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 24px;
    line-height: 1.1;
}

#spectrum-red .section-title { color: var(--laser-crimson); }
#spectrum-orange .section-title { color: var(--molten-amber); }
#spectrum-yellow .section-title { color: var(--arc-flash); }
#spectrum-green .section-title { color: var(--phosphor-mint); }
#refraction-grid .section-title { color: var(--plasma-cyan); }
#spectrum-violet .section-title { color: var(--neon-orchid); }

.section-body {
    font-family: 'Albert Sans', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--bleached-white);
    margin-bottom: 20px;
    max-width: 520px;
}

.section-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.6;
    display: block;
}

#spectrum-red .section-label { color: var(--laser-crimson); }
#spectrum-orange .section-label { color: var(--molten-amber); }
#spectrum-yellow .section-label { color: var(--arc-flash); }
#spectrum-green .section-label { color: var(--phosphor-mint); }
#spectrum-violet .section-label { color: var(--neon-orchid); }

/* ---- Decorative Shards ---- */
.shard-cluster {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.decorative-shard {
    position: absolute;
    width: 60px;
    height: 60px;
    left: var(--shard-x);
    top: var(--shard-y);
    background: var(--shard-color);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transform: rotate(var(--shard-rot)) scale(0);
    opacity: 0;
    will-change: transform;
    transition: transform 0.6s var(--ease-dramatic), opacity 0.6s ease;
}

.decorative-shard::after {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    box-shadow: 8px 8px 0 var(--shard-color);
    opacity: 0.4;
}

.shard-cluster.visible .decorative-shard {
    transform: rotate(var(--shard-rot)) scale(1);
    opacity: 0.7;
}

.shard-cluster.visible .decorative-shard:nth-child(1) { transition-delay: 0ms; }
.shard-cluster.visible .decorative-shard:nth-child(2) { transition-delay: 80ms; }
.shard-cluster.visible .decorative-shard:nth-child(3) { transition-delay: 160ms; }
.shard-cluster.visible .decorative-shard:nth-child(4) { transition-delay: 240ms; }
.shard-cluster.visible .decorative-shard:nth-child(5) { transition-delay: 320ms; }
.shard-cluster.visible .decorative-shard:nth-child(6) { transition-delay: 400ms; }
.shard-cluster.visible .decorative-shard:nth-child(7) { transition-delay: 480ms; }

/* ====================================================
   SECTION 5: THE REFRACTION GRID
   ==================================================== */
#refraction-grid {
    background: var(--void-black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 40px;
}

.grid-title {
    z-index: 2;
    position: relative;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    max-width: 750px;
    width: 100%;
    z-index: 2;
    position: relative;
}

.grid-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bleached-white);
    border: 1px solid var(--cell-color);
    transform: rotate(var(--cell-rot));
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
    background: rgba(8, 8, 10, 0.8);
}

.grid-cell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--cell-color);
    opacity: 0.1;
}

.grid-cell:hover {
    transform: rotate(0deg) scale(1.15);
    box-shadow: 0 0 20px var(--cell-color), 0 0 40px var(--cell-color);
    z-index: 5;
}

.swatch-cell {
    background: var(--cell-color);
    border: none;
}

.swatch-cell::before {
    display: none;
}

.grid-label {
    color: var(--plasma-cyan);
    z-index: 2;
    position: relative;
}

/* ====================================================
   SECTION 7: THE AFTERGLOW
   ==================================================== */
#afterglow {
    background: var(--void-black);
    display: flex;
    align-items: center;
    justify-content: center;
}

.afterglow-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: conic-gradient(
        from var(--conic-angle),
        var(--laser-crimson),
        var(--molten-amber),
        var(--arc-flash),
        var(--phosphor-mint),
        var(--plasma-cyan),
        var(--neon-orchid),
        var(--laser-crimson)
    );
    animation: orb-spin 8s linear infinite, afterglow-pulse 8s ease-in-out infinite;
    transition: width 0.5s var(--ease-ambient), height 0.5s var(--ease-ambient);
}

@keyframes afterglow-pulse {
    0%, 100% {
        box-shadow: 0 0 60px rgba(213, 0, 249, 0.4), 0 0 120px rgba(0, 176, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 80px rgba(255, 23, 68, 0.5), 0 0 160px rgba(255, 234, 0, 0.3);
    }
}

.afterglow-circle.expanding {
    width: 150vmax;
    height: 150vmax;
    transition: width 12s var(--ease-ambient), height 12s var(--ease-ambient);
}

.afterglow-text {
    font-family: 'Bungee', cursive;
    font-size: clamp(1rem, 2.5vw, 2rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    color: var(--void-black);
    line-height: 1.3;
    max-width: 220px;
}

/* ====================================================
   SCROLL-TRIGGERED ANIMATIONS
   ==================================================== */
.spectrum-section .rhombus-container {
    opacity: 0;
    transform: rotate(15deg) translateY(60px);
    transition: opacity 0.8s var(--ease-dramatic), transform 0.8s var(--ease-dramatic);
}

.spectrum-section.in-view .rhombus-container {
    opacity: 1;
    transform: rotate(15deg) translateY(0);
}

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 768px) {
    .rhombus-container {
        width: 85vw;
        margin-left: 4vw !important;
        margin-right: 4vw !important;
    }

    .rhombus-inner {
        padding: 32px 24px;
    }

    .grid-container {
        grid-template-columns: repeat(3, 1fr);
        max-width: 360px;
    }

    #nav-bar {
        right: 10px;
        gap: 10px;
    }

    .nav-diamond {
        width: 10px;
        height: 10px;
    }

    .afterglow-text {
        font-size: 0.9rem;
        max-width: 160px;
    }

    .decorative-shard {
        width: 40px;
        height: 40px;
    }

    .rotating-orb {
        opacity: 0.3;
    }
}
