/* =====================================================
   mores.quest -- McBling reef bento
   Palette: warm-earthy with neon glow
   ===================================================== */

:root {
    --bg-primary: #1E1410;       /* Velvet Dark */
    --bg-secondary: #2D1F18;     /* Warm Umber */
    --surface: #3D2B1E;          /* Amber Sand */
    --text-primary: #F5E6D0;     /* Warm Cream */
    --text-secondary: #D4B896;   /* Desert Sand */
    --accent-primary: #E8926A;   /* Coral Ember */
    --accent-secondary: #C4956A; /* Honey Gold */
    --neon-pink: #FF6B8A;        /* Reef Pink */
    --neon-teal: #4AE8C4;        /* Electric Teal */
    --terracotta: #A0603C;       /* Deep accent */
    --pure-black: #000000;       /* declared in palette */
    --pure-white: #FFFFFF;       /* declared in palette */

    --font-display: "Varela Round", "Inter", system-ui, sans-serif;
    --font-body: "Nunito", "Inter", system-ui, sans-serif;
    --font-accent: "Baloo 2", "Inter", system-ui, sans-serif;

    --gap: 6px;
    --gap-dissolved: 12px;
    --cell-radius: 14px;
    --cell-border: 2px solid var(--accent-secondary);
    --cell-glow: 0 0 8px rgba(196, 149, 106, 0.4);

    --hover-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html, body {
    width: 100%;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(232, 146, 106, 0.06), transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(255, 107, 138, 0.04), transparent 55%),
        radial-gradient(ellipse at 50% 50%, rgba(74, 232, 196, 0.03), transparent 70%),
        var(--bg-primary);
    position: relative;
}

/* =====================================================
   Floating ambience: bubbles + bokeh
   ===================================================== */

.bubbles, .bokeh-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -20px;
    width: var(--bubble-size, 3px);
    height: var(--bubble-size, 3px);
    border-radius: 50%;
    background: var(--text-primary);
    opacity: 0.15;
    box-shadow: 0 0 4px rgba(245, 230, 208, 0.25);
    animation: bubble-rise var(--bubble-duration, 14s) linear infinite;
    animation-delay: var(--bubble-delay, 0s);
    left: var(--bubble-x, 50%);
}

@keyframes bubble-rise {
    0%   { transform: translateY(0)        translateX(0); opacity: 0; }
    8%   { opacity: 0.18; }
    50%  { transform: translateY(-50vh)    translateX(var(--wobble, 8px)); }
    92%  { opacity: 0.18; }
    100% { transform: translateY(-110vh)   translateX(0); opacity: 0; }
}

.bokeh {
    position: absolute;
    top: var(--bokeh-y, 50%);
    left: var(--bokeh-x, 50%);
    width: var(--bokeh-size, 14px);
    height: var(--bokeh-size, 14px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 149, 106, 0.55) 0%, rgba(196, 149, 106, 0) 70%);
    opacity: 0.18;
    animation: bokeh-drift var(--bokeh-duration, 20s) ease-in-out infinite;
    animation-delay: var(--bokeh-delay, 0s);
}

@keyframes bokeh-drift {
    0%, 100% { transform: translate(0, 0) scale(1);   opacity: 0.12; }
    25%      { transform: translate(var(--drift-x, 20px), -16px) scale(1.1); opacity: 0.22; }
    50%      { transform: translate(calc(var(--drift-x, 20px) * -0.5), var(--drift-y, 24px)) scale(0.92); opacity: 0.16; }
    75%      { transform: translate(calc(var(--drift-x, 20px) * 0.7), calc(var(--drift-y, 24px) * -0.4)) scale(1.05); opacity: 0.2; }
}

/* =====================================================
   Section / bento grid
   ===================================================== */

.quest-stack {
    position: relative;
    z-index: 2;
    width: 100%;
}

.section {
    width: 100%;
    min-height: 100vh;
    padding: 56px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.section--welcome { background: linear-gradient(180deg, #1E1410 0%, #20140F 100%); }
.section--collection { background: linear-gradient(180deg, #20140F 0%, #241710 100%); }
.section--deep { background: linear-gradient(180deg, #241710 0%, #1A0F0B 100%); }
.section--surface { background: linear-gradient(180deg, #1A0F0B 0%, #2A1B14 100%); }

.bento-grid {
    width: 100%;
    max-width: 1280px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, minmax(140px, 1fr));
    gap: var(--gap);
    aspect-ratio: 16 / 10;
}

.bento-grid--dissolved { gap: var(--gap-dissolved); }

/* =====================================================
   Cells
   ===================================================== */

.cell {
    position: relative;
    background: var(--bg-secondary);
    border: var(--cell-border);
    border-radius: var(--cell-radius);
    box-shadow:
        var(--cell-glow),
        inset 0 0 0 1px rgba(245, 230, 208, 0.04);
    padding: 18px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition:
        transform 300ms var(--hover-spring),
        box-shadow 300ms var(--hover-spring),
        background-color 300ms ease;

    /* enter state (will be released by JS via .is-revealed) */
    opacity: 0;
    transform: scale(0.92);
}

.cell.is-revealed { opacity: 1; transform: scale(1); }

/* Glossy McBling sheen overlay */
.cell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 35%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.05) 65%,
        rgba(255, 255, 255, 0) 100%);
    background-size: 220% 220%;
    background-position: 100% 100%;
    pointer-events: none;
    transition: background-position 2s ease-in-out;
    z-index: 1;
}

/* Rhinestone dot rim */
.cell::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: calc(var(--cell-radius) - 4px);
    pointer-events: none;
    background-image:
        radial-gradient(circle at 8px 8px, rgba(245, 230, 208, 0.7) 0%, rgba(196, 149, 106, 0.4) 40%, transparent 60%),
        radial-gradient(circle at calc(100% - 8px) 8px, rgba(245, 230, 208, 0.7) 0%, rgba(196, 149, 106, 0.4) 40%, transparent 60%),
        radial-gradient(circle at 8px calc(100% - 8px), rgba(245, 230, 208, 0.7) 0%, rgba(196, 149, 106, 0.4) 40%, transparent 60%),
        radial-gradient(circle at calc(100% - 8px) calc(100% - 8px), rgba(245, 230, 208, 0.7) 0%, rgba(196, 149, 106, 0.4) 40%, transparent 60%);
    background-size: 6px 6px, 6px 6px, 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    z-index: 2;
    animation: rhinestone-twinkle 4s ease-in-out infinite;
}

@keyframes rhinestone-twinkle {
    0%, 100% { filter: brightness(1); }
    25%      { filter: brightness(1.4); }
    50%      { filter: brightness(0.85); }
    75%      { filter: brightness(1.25); }
}

/* Hover-lift: signature interaction */
.cell:hover {
    transform: translateY(-8px) scale(1);
    background: var(--surface);
    box-shadow:
        0 12px 24px rgba(30, 20, 16, 0.6),
        0 0 16px rgba(232, 146, 106, 0.2),
        var(--cell-glow);
    z-index: 5;
}

.cell:hover::before {
    background-position: 0% 0%;
}

/* Per-section press helper class, used by JS lift cascade */
.cell.is-lifting {
    transform: translateY(-12px) scale(1);
    transition: transform 400ms var(--hover-spring);
}

/* Cell content typography */
.cell-tag {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-secondary);
    z-index: 3;
    position: relative;
}

.cell-eyebrow {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 10px;
    z-index: 3;
    position: relative;
}

.cell-line {
    font-family: var(--font-display);
    font-size: clamp(18px, 1.6vw, 26px);
    letter-spacing: 0.04em;
    color: var(--text-primary);
    text-shadow: 0 0 12px rgba(232, 168, 88, 0.5);
    z-index: 3;
    position: relative;
}

.cell-line.big {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: clamp(28px, 3vw, 44px);
    color: var(--accent-primary);
    -webkit-text-stroke: 1px var(--terracotta);
    text-shadow:
        0 0 12px rgba(232, 146, 106, 0.45),
        0 0 28px rgba(255, 107, 138, 0.2);
}

.cell-quote {
    font-family: var(--font-display);
    font-size: clamp(14px, 1.1vw, 17px);
    letter-spacing: 0.04em;
    line-height: 1.5;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(232, 168, 88, 0.3);
    z-index: 3;
    position: relative;
    padding: 0 6px;
}

.cell-quote.faint { color: var(--text-secondary); text-shadow: none; opacity: 0.85; }

.cell--display {
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cell--accent {
    background: linear-gradient(135deg, #2D1F18 0%, #3D2B1E 60%, #2D1F18 100%);
}

.cell--ghost {
    background: transparent;
    border: 1px dashed rgba(196, 149, 106, 0.45);
    box-shadow: none;
}
.cell--ghost::before, .cell--ghost::after { content: none; }

/* =====================================================
   Cell positioning  (col-start, row-start)
   ===================================================== */

.cell-pos-1-1 { grid-column: 1 / span 1; grid-row: 1 / span 1; }
.cell-pos-2-1 { grid-column: 2 / span 1; grid-row: 1 / span 1; }
.cell-pos-3-1 { grid-column: 3 / span 1; grid-row: 1 / span 1; }
.cell-pos-4-1 { grid-column: 4 / span 1; grid-row: 1 / span 1; }
.cell-pos-5-1 { grid-column: 5 / span 1; grid-row: 1 / span 1; }
.cell-pos-6-1 { grid-column: 6 / span 1; grid-row: 1 / span 1; }

.cell-pos-1-2 { grid-column: 1 / span 1; grid-row: 2 / span 1; }
.cell-pos-2-2 { grid-column: 2 / span 1; grid-row: 2 / span 1; }
.cell-pos-3-2 { grid-column: 3 / span 1; grid-row: 2 / span 1; }
.cell-pos-4-2 { grid-column: 4 / span 1; grid-row: 2 / span 1; }
.cell-pos-5-2 { grid-column: 5 / span 1; grid-row: 2 / span 1; }
.cell-pos-6-2 { grid-column: 6 / span 1; grid-row: 2 / span 1; }

.cell-pos-1-3 { grid-column: 1 / span 1; grid-row: 3 / span 1; }
.cell-pos-2-3 { grid-column: 2 / span 1; grid-row: 3 / span 1; }
.cell-pos-3-3 { grid-column: 3 / span 1; grid-row: 3 / span 1; }
.cell-pos-4-3 { grid-column: 4 / span 1; grid-row: 3 / span 1; }
.cell-pos-5-3 { grid-column: 5 / span 1; grid-row: 3 / span 1; }
.cell-pos-6-3 { grid-column: 6 / span 1; grid-row: 3 / span 1; }

.cell-pos-1-4 { grid-column: 1 / span 1; grid-row: 4 / span 1; }
.cell-pos-2-4 { grid-column: 2 / span 1; grid-row: 4 / span 1; }
.cell-pos-3-4 { grid-column: 3 / span 1; grid-row: 4 / span 1; }
.cell-pos-4-4 { grid-column: 4 / span 1; grid-row: 4 / span 1; }
.cell-pos-5-4 { grid-column: 5 / span 1; grid-row: 4 / span 1; }
.cell-pos-6-4 { grid-column: 6 / span 1; grid-row: 4 / span 1; }

/* Wider variants */
.wide-2 { grid-column-end: span 2; }

/* Showcase / hero spans */
.cell--showcase.cell--hero {
    grid-column: 2 / span 4;
    grid-row: 2 / span 2;
}

.cell--showcase.cell-pos-4-2.span-2-2 {
    grid-column: 4 / span 2;
    grid-row: 2 / span 2;
}

.cell--showcase.cell--diorama.cell-pos-1-2.span-4-3 {
    grid-column: 1 / span 4;
    grid-row: 2 / span 3;
    padding: 0;
    background: radial-gradient(ellipse at 30% 30%, #3D2B1E 0%, #2D1F18 50%, #1A0F0B 100%);
}

.cell--showcase.cell-pos-2-2.span-3-2 {
    grid-column: 2 / span 3;
    grid-row: 2 / span 2;
}

/* =====================================================
   Hero (welcome) interior
   ===================================================== */

.cell--showcase {
    padding: 32px;
}

.hero-inner {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    height: 100%;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(232, 146, 106, 0.5);
}

.hero-title {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: clamp(48px, 7vw, 88px);
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--accent-primary);
    -webkit-text-stroke: 1px var(--terracotta);
    text-shadow:
        0 0 8px rgba(255, 107, 138, 0.6),
        0 0 22px rgba(255, 107, 138, 0.4),
        0 0 44px rgba(232, 146, 106, 0.35),
        0 4px 0 rgba(160, 96, 60, 0.4);
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(13px, 1vw, 16px);
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    max-width: 460px;
    text-align: center;
}

.hero-rhinestones {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(245, 230, 208, 0.85) 0%, transparent 1.2%),
        radial-gradient(circle at 88% 22%, rgba(245, 230, 208, 0.85) 0%, transparent 1.2%),
        radial-gradient(circle at 18% 78%, rgba(245, 230, 208, 0.85) 0%, transparent 1.2%),
        radial-gradient(circle at 92% 82%, rgba(245, 230, 208, 0.85) 0%, transparent 1.2%),
        radial-gradient(circle at 50% 8%, rgba(255, 107, 138, 0.55) 0%, transparent 1%),
        radial-gradient(circle at 50% 94%, rgba(74, 232, 196, 0.5) 0%, transparent 1%);
    animation: rhinestone-twinkle 4.5s ease-in-out infinite;
    z-index: 2;
}

/* =====================================================
   Showcase interiors (collection, surface)
   ===================================================== */

.showcase-inner {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    gap: 12px;
    width: 100%;
    height: 100%;
}

.showcase-kicker {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--neon-pink);
    text-shadow: 0 0 8px rgba(255, 107, 138, 0.5);
}

.showcase-body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(14px, 1.1vw, 17px);
    line-height: 1.7;
    color: var(--text-secondary);
}

.closer {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    width: 100%;
    height: 100%;
}

.closer-eyebrow {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-primary);
}

.closer-body {
    font-family: var(--font-display);
    font-size: clamp(15px, 1.2vw, 19px);
    line-height: 1.6;
    letter-spacing: 0.03em;
    color: var(--text-primary);
    max-width: 540px;
    text-shadow: 0 0 10px rgba(232, 168, 88, 0.3);
}

.closer-domain {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: clamp(22px, 2.4vw, 36px);
    color: var(--accent-primary);
    letter-spacing: 0.04em;
    -webkit-text-stroke: 1px var(--terracotta);
    text-shadow:
        0 0 12px rgba(255, 107, 138, 0.55),
        0 0 22px rgba(232, 146, 106, 0.3);
    margin-top: 8px;
}

.closer-domain.faint { opacity: 0.5; font-size: clamp(18px, 1.8vw, 24px); margin-top: -2px; }
.closer-domain.fainter { opacity: 0.22; font-size: clamp(14px, 1.4vw, 18px); margin-top: -4px; color: var(--text-secondary); -webkit-text-stroke: 0; text-shadow: none; }

/* =====================================================
   Caustic overlay
   ===================================================== */

.caustic-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(245, 230, 208, 0.18) 0%, transparent 35%),
        radial-gradient(ellipse at 70% 40%, rgba(232, 168, 88, 0.14) 0%, transparent 40%),
        radial-gradient(ellipse at 40% 80%, rgba(255, 107, 138, 0.1) 0%, transparent 35%),
        radial-gradient(ellipse at 80% 70%, rgba(74, 232, 196, 0.08) 0%, transparent 40%);
    mix-blend-mode: screen;
    opacity: 0.55;
    animation: caustic-shift 12s ease-in-out infinite;
    z-index: 1;
}

.caustic-overlay.big {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(245, 230, 208, 0.18) 0%, transparent 30%),
        radial-gradient(ellipse at 60% 20%, rgba(232, 168, 88, 0.16) 0%, transparent 35%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 107, 138, 0.12) 0%, transparent 35%),
        radial-gradient(ellipse at 30% 80%, rgba(74, 232, 196, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(232, 168, 88, 0.06) 0%, transparent 55%);
    opacity: 0.7;
}

@keyframes caustic-shift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(8px, -6px) scale(1.04); }
    66%      { transform: translate(-6px, 6px) scale(0.98); }
}

/* =====================================================
   Diorama (Deep Water showcase)
   ===================================================== */

.diorama {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--cell-radius);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(232, 168, 88, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 100%, rgba(74, 232, 196, 0.06) 0%, transparent 60%),
        linear-gradient(180deg, #2D1F18 0%, #1A0F0B 100%);
}

.lightbeam {
    position: absolute;
    top: -10%;
    width: 18%;
    height: 130%;
    background: linear-gradient(180deg,
        rgba(245, 230, 208, 0.18) 0%,
        rgba(232, 168, 88, 0.12) 30%,
        rgba(232, 168, 88, 0.04) 70%,
        transparent 100%);
    transform-origin: top center;
    transform: rotate(8deg);
    filter: blur(14px);
    mix-blend-mode: screen;
    opacity: 0.7;
}

.lightbeam-1 { left: 10%;  transform: rotate(8deg);   animation: beam-sway 14s ease-in-out infinite; }
.lightbeam-2 { left: 42%;  transform: rotate(-4deg);  animation: beam-sway 18s ease-in-out infinite reverse; }
.lightbeam-3 { left: 72%;  transform: rotate(6deg);   animation: beam-sway 16s ease-in-out infinite; }

@keyframes beam-sway {
    0%, 100% { transform: rotate(var(--rot, 8deg))   translateX(0); opacity: 0.55; }
    50%      { transform: rotate(calc(var(--rot, 8deg) + 4deg)) translateX(8px); opacity: 0.8; }
}

.diorama-fish {
    position: absolute;
    width: clamp(70px, 8vw, 120px);
    height: clamp(70px, 8vw, 120px);
    filter:
        drop-shadow(0 0 6px var(--neon-pink))
        drop-shadow(0 0 14px rgba(255, 107, 138, 0.4));
}

.diorama-fish-1 { top: 12%; left: 10%; animation: fish-swim 11s ease-in-out infinite; }
.diorama-fish-2 { top: 28%; left: 36%; animation: fish-swim 13s ease-in-out infinite -2s; }
.diorama-fish-3 { top: 52%; left: 18%; animation: fish-swim 15s ease-in-out infinite -5s;
    filter: drop-shadow(0 0 6px var(--neon-teal)) drop-shadow(0 0 14px rgba(74, 232, 196, 0.4)); }
.diorama-fish-4 { top: 18%; left: 64%; animation: fish-swim 12s ease-in-out infinite -3s; }
.diorama-fish-5 { top: 60%; left: 50%; animation: fish-swim 14s ease-in-out infinite -7s;
    filter: drop-shadow(0 0 6px var(--neon-teal)) drop-shadow(0 0 14px rgba(74, 232, 196, 0.4)); }
.diorama-fish-6 { top: 38%; left: 78%; animation: fish-swim 17s ease-in-out infinite -4s;
    filter: drop-shadow(0 0 6px var(--neon-teal)) drop-shadow(0 0 14px rgba(74, 232, 196, 0.4)); }
.diorama-fish-7 { top: 70%; left: 70%; animation: fish-swim 13s ease-in-out infinite -1s; }

@keyframes fish-swim {
    0%, 100% { transform: translate(0, 0) rotate(-2deg); }
    25%      { transform: translate(20px, -4px) rotate(2deg); }
    50%      { transform: translate(-12px, 4px) rotate(-3deg); }
    75%      { transform: translate(14px, -2px) rotate(1deg); }
}

.diorama-caption {
    position: absolute;
    bottom: 18px;
    left: 24px;
    right: 24px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.diorama-eyebrow {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-primary);
    text-shadow: 0 0 6px rgba(232, 146, 106, 0.5);
}

.diorama-line {
    font-family: var(--font-display);
    font-size: clamp(14px, 1.2vw, 18px);
    letter-spacing: 0.04em;
    color: var(--text-primary);
    text-shadow: 0 0 12px rgba(232, 168, 88, 0.5);
}

/* =====================================================
   Drifting fish in jewel cells
   ===================================================== */

.fish {
    width: 70%;
    height: 70%;
    max-width: 110px;
    max-height: 110px;
    filter:
        drop-shadow(0 0 6px var(--neon-pink))
        drop-shadow(0 0 14px rgba(255, 107, 138, 0.4));
    animation: jewel-fish-drift 9s ease-in-out infinite;
    z-index: 3;
    position: relative;
}

.fish--drift-a { animation-duration: 9s;  animation-delay: -0.4s;
    filter: drop-shadow(0 0 6px var(--neon-pink)) drop-shadow(0 0 14px rgba(255, 107, 138, 0.4)); }
.fish--drift-b { animation-duration: 11s; animation-delay: -2.1s;
    filter: drop-shadow(0 0 6px var(--neon-teal)) drop-shadow(0 0 14px rgba(74, 232, 196, 0.4)); }
.fish--drift-c { animation-duration: 8s;  animation-delay: -1.3s;
    filter: drop-shadow(0 0 6px var(--neon-pink)) drop-shadow(0 0 14px rgba(255, 107, 138, 0.4)); }
.fish--drift-d { animation-duration: 10s; animation-delay: -3.7s;
    filter: drop-shadow(0 0 6px var(--neon-pink)) drop-shadow(0 0 14px rgba(255, 107, 138, 0.4)); }
.fish--drift-e { animation-duration: 12s; animation-delay: -2.6s;
    filter: drop-shadow(0 0 6px var(--neon-teal)) drop-shadow(0 0 14px rgba(74, 232, 196, 0.4)); }
.fish--drift-f { animation-duration: 9.5s; animation-delay: -4.2s;
    filter: drop-shadow(0 0 6px var(--neon-pink)) drop-shadow(0 0 14px rgba(255, 107, 138, 0.4)); }
.fish--drift-g { animation-duration: 10.5s; animation-delay: -1.9s;
    filter: drop-shadow(0 0 6px var(--neon-teal)) drop-shadow(0 0 14px rgba(74, 232, 196, 0.4)); }

@keyframes jewel-fish-drift {
    0%, 100% { transform: translate(-12px, -2px) rotate(-3deg); }
    25%      { transform: translate(8px, 2px) rotate(2deg); }
    50%      { transform: translate(14px, -3px) rotate(3deg); }
    75%      { transform: translate(-4px, 3px) rotate(-1deg); }
}

/* gentle pulse, layered with drift */
.cell--jewel:hover .fish {
    animation-play-state: paused;
}

.cell--jewel {
    background: radial-gradient(circle at 50% 50%, #3D2B1E 0%, #2D1F18 70%, #1E1410 100%);
}

/* =====================================================
   Rhinestone clusters (jewel cells)
   ===================================================== */

.rhinestone-cluster {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 3;
    background-image:
        radial-gradient(circle at 22% 28%, rgba(245, 230, 208, 0.95) 0%, rgba(196, 149, 106, 0.7) 35%, transparent 55%),
        radial-gradient(circle at 72% 22%, rgba(245, 230, 208, 0.95) 0%, rgba(255, 107, 138, 0.7) 35%, transparent 55%),
        radial-gradient(circle at 38% 64%, rgba(245, 230, 208, 0.95) 0%, rgba(74, 232, 196, 0.7) 35%, transparent 55%),
        radial-gradient(circle at 78% 70%, rgba(245, 230, 208, 0.95) 0%, rgba(196, 149, 106, 0.7) 35%, transparent 55%),
        radial-gradient(circle at 50% 42%, rgba(245, 230, 208, 0.95) 0%, rgba(232, 146, 106, 0.7) 35%, transparent 55%),
        radial-gradient(circle at 14% 80%, rgba(245, 230, 208, 0.85) 0%, rgba(255, 107, 138, 0.6) 35%, transparent 55%);
    background-size: 14px 14px, 14px 14px, 14px 14px, 14px 14px, 14px 14px, 14px 14px;
    background-repeat: no-repeat;
    animation: rhinestone-pulse 4s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(245, 230, 208, 0.5));
}

@keyframes rhinestone-pulse {
    0%, 100% { transform: scale(1);   filter: brightness(1) drop-shadow(0 0 4px rgba(245, 230, 208, 0.5)); }
    50%      { transform: scale(1.06); filter: brightness(1.4) drop-shadow(0 0 8px rgba(245, 230, 208, 0.9)); }
}

/* =====================================================
   Mobile (< 768px): collapse to 2-column bento
   ===================================================== */

@media (max-width: 768px) {
    .section { padding: 32px 16px; min-height: auto; }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        aspect-ratio: auto;
        gap: var(--gap);
    }
    .bento-grid--dissolved { gap: var(--gap-dissolved); }

    .cell {
        grid-column: auto !important;
        grid-row: auto !important;
        min-height: 120px;
    }

    .cell.wide-2,
    .cell--showcase,
    .cell--showcase.cell--hero,
    .cell--showcase.cell-pos-4-2.span-2-2,
    .cell--showcase.cell--diorama.cell-pos-1-2.span-4-3,
    .cell--showcase.cell-pos-2-2.span-3-2 {
        grid-column: 1 / -1 !important;
        min-height: 220px;
    }

    .cell--showcase.cell--diorama.cell-pos-1-2.span-4-3 {
        min-height: 360px;
    }

    .hero-title { font-size: clamp(40px, 12vw, 64px); }
}

/* =====================================================
   Reduced motion: keep hover-lift, drop everything else
   ===================================================== */

@media (prefers-reduced-motion: reduce) {
    .fish,
    .diorama-fish,
    .lightbeam,
    .caustic-overlay,
    .rhinestone-cluster,
    .cell::after,
    .bubble,
    .bokeh,
    .hero-rhinestones {
        animation: none !important;
    }

    .cell {
        transition: opacity 200ms ease, transform 200ms ease;
    }

    .cell:hover {
        transform: translateY(-4px);
    }
}
