/* ============================================ */
/* RRIPPL.com - Neubrutalist Crystal Playground */
/* ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --crystal-core: #6C3CE1;
    --ripple-bloom: #FF6F91;
    --citrine-flash: #FFD166;
    --emerald-shard: #06D6A0;
    --quartz-white: #FAFAFA;
    --obsidian: #0D0D0D;
    --slate: #2D2D2D;
    --frost: #E0E0E0;
    --deep-dark: #1A1A2E;

    --gradient-primary: linear-gradient(135deg, #6C3CE1 0%, #FF6F91 100%);
    --gradient-crystal: linear-gradient(160deg, #6C3CE1 0%, #06D6A0 50%, #FFD166 100%);
    --gradient-dark: linear-gradient(180deg, #0D0D0D 0%, #1A1A2E 100%);

    --border-width: 6px;
    --border-thick: 8px;
    --shadow-offset: 8px;
    --shadow-pressed: 4px;
    --gap: 4px;

    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-accent: 'Syne', sans-serif;
}

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

html {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--obsidian);
    color: var(--frost);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Utility Classes --- */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark-text {
    color: var(--slate);
}

.light-text {
    color: var(--frost);
}

.light-heading {
    color: var(--quartz-white);
}

.light-label {
    color: var(--frost);
}

/* --- Act Sections --- */
.act {
    scroll-snap-align: start;
    position: relative;
}

/* ============================================ */
/* ACT 1: EMERGENCE                             */
/* ============================================ */
.act-emergence {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--obsidian);
    position: relative;
    overflow: hidden;
}

.hero-container {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(80px, 15vw, 160px);
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--quartz-white);
    line-height: 1;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 1.2s ease-out 0.3s forwards;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 400;
    color: var(--frost);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.65;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 1s ease-out 1.6s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Crystal Cluster (Hero) --- */
.crystal-cluster {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 48px;
    perspective: 800px;
    transform-style: preserve-3d;
    opacity: 0;
    animation: crystalFadeIn 1.2s ease-out 0s forwards;
}

@keyframes crystalFadeIn {
    to {
        opacity: 1;
    }
}

.crystal-prism {
    position: absolute;
    transform-style: preserve-3d;
    animation: crystalRotate 30s linear infinite;
}

@keyframes crystalRotate {
    to {
        transform: rotateY(360deg);
    }
}

/* Individual prism positions and sizes */
.prism-1 {
    width: 40px;
    height: 120px;
    left: 50%;
    top: 50%;
    margin-left: -20px;
    margin-top: -60px;
    background: linear-gradient(180deg, rgba(108, 60, 225, 0.7) 0%, rgba(108, 60, 225, 0.3) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation-duration: 30s;
    box-shadow: 0 0 30px rgba(108, 60, 225, 0.4);
}

.prism-2 {
    width: 35px;
    height: 100px;
    left: 35%;
    top: 40%;
    background: linear-gradient(180deg, rgba(108, 60, 225, 0.6) 0%, rgba(255, 111, 145, 0.4) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation-duration: 28s;
    animation-delay: -5s;
    box-shadow: 0 0 25px rgba(255, 111, 145, 0.3);
}

.prism-3 {
    width: 30px;
    height: 80px;
    left: 62%;
    top: 35%;
    background: linear-gradient(180deg, rgba(108, 60, 225, 0.65) 0%, rgba(6, 214, 160, 0.4) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation-duration: 32s;
    animation-delay: -10s;
    box-shadow: 0 0 20px rgba(6, 214, 160, 0.3);
}

.prism-4 {
    width: 25px;
    height: 90px;
    left: 28%;
    top: 55%;
    background: linear-gradient(180deg, rgba(255, 209, 102, 0.6) 0%, rgba(108, 60, 225, 0.4) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation-duration: 26s;
    animation-delay: -8s;
    box-shadow: 0 0 20px rgba(255, 209, 102, 0.3);
}

.prism-5 {
    width: 45px;
    height: 130px;
    left: 55%;
    top: 45%;
    background: linear-gradient(180deg, rgba(108, 60, 225, 0.7) 0%, rgba(255, 111, 145, 0.5) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation-duration: 34s;
    animation-delay: -3s;
    box-shadow: 0 0 35px rgba(108, 60, 225, 0.5);
}

.prism-6 {
    width: 20px;
    height: 70px;
    left: 42%;
    top: 30%;
    background: linear-gradient(180deg, rgba(6, 214, 160, 0.5) 0%, rgba(108, 60, 225, 0.4) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation-duration: 29s;
    animation-delay: -12s;
    box-shadow: 0 0 15px rgba(6, 214, 160, 0.3);
}

.prism-7 {
    width: 28px;
    height: 95px;
    left: 68%;
    top: 52%;
    background: linear-gradient(180deg, rgba(255, 111, 145, 0.6) 0%, rgba(255, 209, 102, 0.4) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation-duration: 27s;
    animation-delay: -7s;
    box-shadow: 0 0 20px rgba(255, 111, 145, 0.3);
}

/* ============================================ */
/* ACT 2: FORMATION (Bento Grid)                */
/* ============================================ */
.act-formation {
    padding: 0;
    background: var(--obsidian);
    position: relative;
}

/* --- Statement Cells --- */
.statement-cell {
    width: 100%;
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    padding: 40px 20px;
    border-top: var(--border-thick) solid var(--obsidian);
    border-bottom: var(--border-thick) solid var(--obsidian);
}

.statement-text {
    font-family: var(--font-display);
    font-size: clamp(60px, 15vw, 180px);
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--obsidian);
    line-height: 1;
    text-align: center;
}

.statement-text.gradient-text {
    -webkit-text-fill-color: transparent;
}

/* --- Bento Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: var(--gap);
    padding: var(--gap);
    background: var(--obsidian);
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Bento Cells --- */
.bento-cell {
    position: relative;
    border: var(--border-width) solid var(--obsidian);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--obsidian);
    transition: box-shadow 200ms ease, border-color 200ms ease, transform 200ms ease;
    overflow: hidden;
}

.bento-cell:hover {
    box-shadow: var(--shadow-pressed) var(--shadow-pressed) 0 var(--obsidian);
    border-color: var(--crystal-core);
    transform: translate(4px, 4px);
}

.cell-inner {
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Cell Background Variants */
.dark-cell {
    background: var(--gradient-dark);
}

.light-cell {
    background: var(--quartz-white);
}

.accent-yellow {
    background: var(--citrine-flash);
}

.accent-green {
    background: var(--emerald-shard);
}

.accent-pink {
    background: var(--ripple-bloom);
}

.accent-violet {
    background: var(--crystal-core);
}

/* Elevated cells (double shadow) */
.elevated {
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--obsidian),
                12px 12px 0 rgba(108, 60, 225, 0.4);
}

.bento-cell:hover .elevated,
.bento-cell:has(.elevated):hover {
    box-shadow: var(--shadow-pressed) var(--shadow-pressed) 0 var(--obsidian),
                8px 8px 0 rgba(108, 60, 225, 0.4);
}

/* Gradient border variants */
.gradient-border-left {
    border-left: var(--border-thick) solid transparent;
    border-image: var(--gradient-primary) 1;
    border-image-slice: 1;
}

.gradient-border-right {
    border-right: var(--border-thick) solid transparent;
    border-image: var(--gradient-primary) 1;
    border-image-slice: 1;
}

.gradient-border-bottom {
    border-bottom: var(--border-thick) solid transparent;
    border-image: var(--gradient-primary) 1;
    border-image-slice: 1;
}

/* --- Typography in Cells --- */
.cell-heading {
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--quartz-white);
    margin-bottom: 16px;
    line-height: 1.1;
    text-transform: uppercase;
}

.cell-subheading {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--obsidian);
    margin-bottom: 12px;
    line-height: 1.1;
    text-transform: uppercase;
}

.cell-subheading.light-heading {
    color: var(--quartz-white);
}

.cell-label {
    font-family: var(--font-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--crystal-core);
    margin-bottom: 8px;
    display: block;
}

.cell-label.light-label {
    color: var(--frost);
}

.cell-body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--slate);
}

.cell-body.light-text {
    color: var(--frost);
}

.cell-body.dark-text {
    color: var(--slate);
}

/* --- Color Swatches --- */
.color-swatches {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.swatch {
    width: 40px;
    height: 40px;
    border: 3px solid var(--obsidian);
    box-shadow: 3px 3px 0 var(--obsidian);
    display: inline-block;
}

/* --- Floating Shards (Accent Cells) --- */
.floating-shard {
    width: 60px;
    height: 60px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -30px;
    margin-top: -30px;
    transform-style: preserve-3d;
}

.shard-1 {
    background: linear-gradient(135deg, rgba(108, 60, 225, 0.8), rgba(255, 111, 145, 0.6));
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    animation: shardRotate1 25s linear infinite;
}

.shard-2 {
    background: linear-gradient(135deg, rgba(6, 214, 160, 0.8), rgba(108, 60, 225, 0.6));
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    animation: shardRotate2 28s linear infinite;
}

.shard-3 {
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.8), rgba(255, 111, 145, 0.6));
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation: shardRotate1 32s linear infinite;
    animation-delay: -5s;
}

.shard-4 {
    background: linear-gradient(135deg, rgba(255, 111, 145, 0.8), rgba(108, 60, 225, 0.6));
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    animation: shardRotate2 26s linear infinite;
    animation-delay: -10s;
}

.shard-5 {
    background: linear-gradient(135deg, rgba(108, 60, 225, 0.8), rgba(6, 214, 160, 0.6));
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    animation: shardRotate1 30s linear infinite;
    animation-delay: -8s;
}

.shard-6 {
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.9), rgba(108, 60, 225, 0.5));
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: shardRotate2 22s linear infinite;
}

.shard-7 {
    background: linear-gradient(135deg, rgba(108, 60, 225, 0.8), rgba(255, 111, 145, 0.7));
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    animation: shardRotate1 27s linear infinite;
    animation-delay: -3s;
}

.shard-8 {
    background: linear-gradient(135deg, rgba(255, 111, 145, 0.8), rgba(255, 209, 102, 0.6));
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation: shardRotate2 35s linear infinite;
    animation-delay: -15s;
}

@keyframes shardRotate1 {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes shardRotate2 {
    0% { transform: rotate(0deg) scale(1.05); }
    33% { transform: rotate(120deg) scale(0.95); }
    66% { transform: rotate(240deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1.05); }
}

/* --- Facet Lines --- */
.facet-lines {
    position: absolute;
    width: 150px;
    height: 150px;
    pointer-events: none;
    opacity: 0.3;
}

.facet-top-right {
    top: -10px;
    right: -10px;
    background:
        linear-gradient(45deg, transparent 49%, rgba(108, 60, 225, 0.3) 49%, rgba(108, 60, 225, 0.3) 51%, transparent 51%),
        linear-gradient(135deg, transparent 49%, rgba(108, 60, 225, 0.2) 49%, rgba(108, 60, 225, 0.2) 51%, transparent 51%),
        linear-gradient(60deg, transparent 49%, rgba(108, 60, 225, 0.15) 49%, rgba(108, 60, 225, 0.15) 51%, transparent 51%);
}

.facet-bottom-left {
    bottom: -10px;
    left: -10px;
    background:
        linear-gradient(225deg, transparent 49%, rgba(108, 60, 225, 0.3) 49%, rgba(108, 60, 225, 0.3) 51%, transparent 51%),
        linear-gradient(315deg, transparent 49%, rgba(108, 60, 225, 0.2) 49%, rgba(108, 60, 225, 0.2) 51%, transparent 51%),
        linear-gradient(240deg, transparent 49%, rgba(108, 60, 225, 0.15) 49%, rgba(108, 60, 225, 0.15) 51%, transparent 51%);
}

/* --- Shattered Plane --- */
.shattered-plane {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 120px;
    height: 80px;
    opacity: 0.25;
}

.fragment {
    position: absolute;
    background: var(--gradient-crystal);
    transition: transform 0.3s ease;
}

.frag-1 {
    width: 30px;
    height: 25px;
    left: 0;
    top: 0;
    clip-path: polygon(0% 0%, 100% 15%, 85% 100%, 10% 80%);
}

.frag-2 {
    width: 35px;
    height: 30px;
    left: 28px;
    top: 5px;
    clip-path: polygon(15% 0%, 100% 10%, 90% 100%, 0% 85%);
}

.frag-3 {
    width: 28px;
    height: 22px;
    left: 60px;
    top: 0;
    clip-path: polygon(5% 5%, 95% 0%, 100% 95%, 15% 100%);
}

.frag-4 {
    width: 32px;
    height: 28px;
    left: 15px;
    top: 28px;
    clip-path: polygon(0% 10%, 100% 0%, 90% 100%, 5% 95%);
}

.frag-5 {
    width: 40px;
    height: 30px;
    left: 50px;
    top: 25px;
    clip-path: polygon(10% 0%, 95% 5%, 100% 100%, 0% 90%);
}

/* --- Crystal Grid Pattern --- */
.crystal-grid-pattern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
    height: 100%;
    padding: 20px;
    opacity: 0.2;
}

.mini-crystal {
    width: 100%;
    aspect-ratio: 1;
    background: var(--quartz-white);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: miniCrystalRotate var(--rotate-duration, 20s) linear infinite;
}

.mc-1  { --rotate-duration: 18s; animation-delay: 0s; }
.mc-2  { --rotate-duration: 22s; animation-delay: -2s; }
.mc-3  { --rotate-duration: 19s; animation-delay: -5s; }
.mc-4  { --rotate-duration: 24s; animation-delay: -3s; }
.mc-5  { --rotate-duration: 20s; animation-delay: -7s; }
.mc-6  { --rotate-duration: 23s; animation-delay: -1s; }
.mc-7  { --rotate-duration: 17s; animation-delay: -9s; }
.mc-8  { --rotate-duration: 21s; animation-delay: -4s; }
.mc-9  { --rotate-duration: 25s; animation-delay: -6s; }
.mc-10 { --rotate-duration: 19s; animation-delay: -8s; }
.mc-11 { --rotate-duration: 22s; animation-delay: -2s; }
.mc-12 { --rotate-duration: 20s; animation-delay: -10s; }
.mc-13 { --rotate-duration: 26s; animation-delay: -1s; }
.mc-14 { --rotate-duration: 18s; animation-delay: -5s; }
.mc-15 { --rotate-duration: 23s; animation-delay: -3s; }
.mc-16 { --rotate-duration: 21s; animation-delay: -7s; }

@keyframes miniCrystalRotate {
    to {
        transform: rotate(360deg);
    }
}

/* --- Fade Reveal Animation --- */
.reveal-cell {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 800ms ease-out, transform 800ms ease-out;
}

.reveal-cell.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Sparkle Particles (Hover Effect) --- */
.sparkle {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--citrine-flash);
    clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
    pointer-events: none;
    z-index: 9999;
    animation: sparkleBurst 600ms ease-out forwards;
}

@keyframes sparkleBurst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--sparkle-x, 30px), var(--sparkle-y, -30px)) scale(0.3);
    }
}

/* ============================================ */
/* ACT 3: RESONANCE                             */
/* ============================================ */
.act-resonance {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
}

.resonance-container {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 40px 20px;
}

.crystal-cluster-final {
    width: 400px;
    height: 400px;
    margin: 0 auto 60px;
}

/* Final crystal prisms (larger, more complex) */
.final-prism-1 {
    width: 50px;
    height: 150px;
    left: 45%;
    top: 35%;
    background: linear-gradient(180deg, rgba(108, 60, 225, 0.6) 0%, rgba(255, 111, 145, 0.4) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation-duration: 28s;
    box-shadow: 0 0 40px rgba(108, 60, 225, 0.5);
}

.final-prism-2 {
    width: 45px;
    height: 130px;
    left: 30%;
    top: 30%;
    background: linear-gradient(180deg, rgba(6, 214, 160, 0.6) 0%, rgba(108, 60, 225, 0.4) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation-duration: 32s;
    animation-delay: -5s;
    box-shadow: 0 0 35px rgba(6, 214, 160, 0.4);
}

.final-prism-3 {
    width: 55px;
    height: 160px;
    left: 55%;
    top: 32%;
    background: linear-gradient(180deg, rgba(108, 60, 225, 0.7) 0%, rgba(255, 209, 102, 0.4) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation-duration: 26s;
    animation-delay: -10s;
    box-shadow: 0 0 45px rgba(108, 60, 225, 0.5);
}

.final-prism-4 {
    width: 35px;
    height: 110px;
    left: 22%;
    top: 45%;
    background: linear-gradient(180deg, rgba(255, 209, 102, 0.6) 0%, rgba(255, 111, 145, 0.4) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation-duration: 34s;
    animation-delay: -8s;
    box-shadow: 0 0 25px rgba(255, 209, 102, 0.4);
}

.final-prism-5 {
    width: 60px;
    height: 170px;
    left: 48%;
    top: 28%;
    background: linear-gradient(180deg, rgba(108, 60, 225, 0.8) 0%, rgba(255, 111, 145, 0.5) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation-duration: 30s;
    animation-delay: -3s;
    box-shadow: 0 0 50px rgba(108, 60, 225, 0.6);
}

.final-prism-6 {
    width: 30px;
    height: 90px;
    left: 65%;
    top: 50%;
    background: linear-gradient(180deg, rgba(6, 214, 160, 0.5) 0%, rgba(108, 60, 225, 0.5) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation-duration: 29s;
    animation-delay: -12s;
    box-shadow: 0 0 20px rgba(6, 214, 160, 0.3);
}

.final-prism-7 {
    width: 40px;
    height: 120px;
    left: 38%;
    top: 48%;
    background: linear-gradient(180deg, rgba(255, 111, 145, 0.6) 0%, rgba(255, 209, 102, 0.4) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation-duration: 27s;
    animation-delay: -7s;
    box-shadow: 0 0 30px rgba(255, 111, 145, 0.4);
}

.final-prism-8 {
    width: 25px;
    height: 80px;
    left: 72%;
    top: 38%;
    background: linear-gradient(180deg, rgba(108, 60, 225, 0.6) 0%, rgba(6, 214, 160, 0.4) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation-duration: 33s;
    animation-delay: -15s;
    box-shadow: 0 0 18px rgba(108, 60, 225, 0.3);
}

.final-prism-9 {
    width: 48px;
    height: 140px;
    left: 52%;
    top: 40%;
    background: linear-gradient(180deg, rgba(108, 60, 225, 0.65) 0%, rgba(255, 111, 145, 0.45) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation-duration: 31s;
    animation-delay: -2s;
    box-shadow: 0 0 38px rgba(108, 60, 225, 0.45);
}

.resonance-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 10vw, 120px);
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--obsidian);
    line-height: 1.05;
    margin-bottom: 48px;
    text-transform: uppercase;
}

/* --- Brutalist CTA Button --- */
.cta-container {
    margin-top: 20px;
}

.brutalist-button {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--obsidian);
    background: var(--quartz-white);
    padding: 18px 48px;
    border: var(--border-thick) solid var(--obsidian);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--obsidian);
    transition: box-shadow 200ms ease, transform 200ms ease, background 200ms ease;
}

.brutalist-button:hover {
    box-shadow: var(--shadow-pressed) var(--shadow-pressed) 0 var(--obsidian);
    transform: translate(4px, 4px);
    background: var(--citrine-flash);
}

/* --- Prismatic Highlights --- */
.prismatic-highlights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ============================================ */
/* RESPONSIVE: Tablet                           */
/* ============================================ */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .bento-cell[style*="span 4"] {
        grid-column: span 4 !important;
    }

    .bento-cell[style*="span 3"] {
        grid-column: span 2 !important;
    }

    .crystal-cluster {
        width: 250px;
        height: 250px;
    }

    .crystal-cluster-final {
        width: 300px;
        height: 300px;
    }
}

/* ============================================ */
/* RESPONSIVE: Mobile                           */
/* ============================================ */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(150px, auto);
    }

    .bento-cell {
        grid-column: span 2 !important;
        grid-row: span 1 !important;
    }

    .bento-cell.cell-accent {
        grid-column: span 1 !important;
    }

    .cell-inner {
        padding: 24px;
    }

    .hero-title {
        font-size: clamp(60px, 18vw, 120px);
    }

    .statement-text {
        font-size: clamp(40px, 12vw, 100px);
    }

    .resonance-title {
        font-size: clamp(36px, 10vw, 80px);
    }

    .crystal-cluster {
        width: 200px;
        height: 200px;
        margin-bottom: 32px;
    }

    .crystal-cluster-final {
        width: 250px;
        height: 250px;
        margin-bottom: 40px;
    }

    .cell-heading {
        font-size: clamp(28px, 6vw, 36px);
    }

    .cell-subheading {
        font-size: clamp(20px, 4vw, 28px);
    }
}

@media (max-width: 480px) {
    .bento-cell,
    .bento-cell.cell-accent {
        grid-column: span 2 !important;
    }

    .cell-inner {
        padding: 20px;
    }

    .hero-tagline {
        font-size: 15px;
        padding: 0 16px;
    }

    .brutalist-button {
        padding: 14px 32px;
        font-size: 14px;
    }
}
