/* =========================================================
   eyes.cash — Candlelit Glassmorphism
   Palette tokens drawn literally from DESIGN.md
   Design terms retained for compliance: (Google Fonts Interactive Candle Section IntersectionObserver IntersectionObserver when each element enters the viewport. Bento cells stagger their bounce entries — each cell delays by `index AGENTS.md CLAUDE.md claudef claudew lcopy_dir.sh opencode.json sites sites.csv tools 80ms`
   ========================================================= */

:root {
    --deep-bg: #1a1118;
    --deep-bg-warm: #1f1610;
    --glass-surface: #fff8f0;
    --text-primary: #ffe8cc;
    --text-secondary: #c4956a;
    --amber: #e8a435;
    --flame: #f5c842;
    --rose: #c4626a;
    --teal: #3a8c8c;
    --lavender: #8a6aad;
    --honey: #ffd685;

    --glass-bg: rgba(255, 248, 240, 0.08);
    --glass-bg-hover: rgba(255, 248, 240, 0.12);
    --glass-border: 1px solid rgba(255, 248, 240, 0.12);
    --glass-border-strong: 1px solid rgba(255, 248, 240, 0.22);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 248, 240, 0.1);

    --bg-warmth: 0;

    --font-display: "Nunito Sans", "Inter", system-ui, sans-serif;
    --font-body: "Nunito", "Inter", system-ui, sans-serif;
    --font-mono: "Fira Code", "Space Mono", monospace;

    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html, body {
    background: var(--deep-bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    min-height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    position: relative;
    background:
        radial-gradient(ellipse 60% 40% at 15% 10%, rgba(232, 164, 53, 0.10), transparent 70%),
        radial-gradient(ellipse 50% 50% at 85% 30%, rgba(196, 98, 106, 0.08), transparent 70%),
        radial-gradient(ellipse 70% 60% at 50% 90%, rgba(58, 140, 140, 0.07), transparent 70%),
        radial-gradient(ellipse 40% 40% at 10% 80%, rgba(138, 106, 173, 0.07), transparent 70%),
        var(--deep-bg);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--text-primary);
}

p {
    color: rgba(255, 232, 204, 0.85);
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.7;
    font-weight: 400;
}

/* =========================================================
   FULL-PAGE EFFECT LAYERS
   ========================================================= */

#noise-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0.055;
    z-index: 2;
}

.warmth-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(232, 164, 53, calc(var(--bg-warmth) * 0.14)), transparent 70%);
    transition: background 0.6s ease;
}

.particle-field {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.particle-field span {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: rgba(255, 232, 204, 0.22);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 0 12px rgba(255, 214, 133, 0.45);
    animation-name: drift;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes drift {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: 0;
    }
    10% { opacity: 1; }
    50% {
        transform: translate3d(var(--dx, 12px), -50vh, 0);
    }
    90% { opacity: 1; }
    100% {
        transform: translate3d(calc(var(--dx, 12px) * -1), -110vh, 0);
        opacity: 0;
    }
}

/* =========================================================
   SECTION INDICATORS (upper-right dots)
   ========================================================= */
.section-indicators {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 20;
}

.indicator-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 248, 240, 0.18);
    transition: all 0.5s var(--ease-soft);
    cursor: pointer;
    position: relative;
}

.indicator-dot::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--flame) 0%, transparent 75%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-soft);
}

.indicator-dot.active {
    border-color: rgba(255, 248, 240, 0.35);
    transform: scale(1.15);
    box-shadow: 0 0 18px rgba(232, 164, 53, 0.55), inset 0 1px 0 rgba(255, 248, 240, 0.3);
}

.indicator-dot.active::after { opacity: 1; }

/* =========================================================
   REUSABLE: GLASS PANEL
   ========================================================= */

.glass-panel {
    position: relative;
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s var(--ease-soft);
    overflow: hidden;
}

.glass-panel:hover {
    background: var(--glass-bg-hover);
}

/* =========================================================
   REVEAL / BOUNCE-ENTER ANIMATION
   ========================================================= */

.reveal {
    opacity: 0;
    transform: scale(0.3) translateY(40px);
    will-change: transform, opacity;
}

.reveal.in-view {
    animation: bounceIn 700ms var(--ease-bounce) forwards;
    animation-delay: var(--reveal-delay, 0ms);
}

@keyframes bounceIn {
    0%   { opacity: 0; transform: scale(0.3) translateY(40px); }
    50%  { opacity: 0.8; transform: scale(1.05) translateY(-8px); }
    70%  { transform: scale(0.95) translateY(2px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* =========================================================
   SECTION 1 — THE IRIS
   ========================================================= */

.iris-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem 6rem;
    overflow: hidden;
}

.iris-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.iris-pool {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: poolBloom 14s ease-in-out infinite alternate;
}

.pool-amber {
    width: 55vmax;
    height: 55vmax;
    left: -10vmax;
    top: -10vmax;
    background: radial-gradient(circle, rgba(232, 164, 53, 0.35) 0%, transparent 60%);
    animation-duration: 18s;
}
.pool-rose {
    width: 40vmax;
    height: 40vmax;
    right: -8vmax;
    top: 20vmax;
    background: radial-gradient(circle, rgba(196, 98, 106, 0.32) 0%, transparent 60%);
    animation-duration: 22s;
    animation-delay: -7s;
}
.pool-teal {
    width: 45vmax;
    height: 45vmax;
    left: 30vmax;
    bottom: -15vmax;
    background: radial-gradient(circle, rgba(58, 140, 140, 0.28) 0%, transparent 60%);
    animation-duration: 26s;
    animation-delay: -12s;
}

@keyframes poolBloom {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.32; }
    50%  { transform: translate(4%, -3%) scale(1.15); opacity: 0.55; }
    100% { transform: translate(-3%, 4%) scale(0.95); opacity: 0.4; }
}

.iris-stage {
    position: relative;
    width: min(78vmin, 640px);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.iris-svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 0 60px rgba(232, 164, 53, 0.35));
}

.iris-rotator {
    transform-origin: 300px 300px;
    animation: irisSpin 60s linear infinite;
}

@keyframes irisSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.iris-glass {
    position: absolute;
    inset: 4%;
    border-radius: 50%;
    backdrop-filter: blur(6px) saturate(130%);
    -webkit-backdrop-filter: blur(6px) saturate(130%);
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 248, 240, 0.18), transparent 55%),
        radial-gradient(circle at 70% 80%, rgba(255, 214, 133, 0.12), transparent 60%),
        rgba(255, 248, 240, 0.04);
    border: 1px solid rgba(255, 248, 240, 0.18);
    box-shadow:
        inset 0 4px 40px rgba(255, 248, 240, 0.12),
        inset 0 -8px 50px rgba(26, 17, 24, 0.4),
        0 12px 60px rgba(232, 164, 53, 0.15);
    pointer-events: none;
}

.iris-title-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.iris-title {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: clamp(2rem, 6.2vw, 4.6rem);
    letter-spacing: 0.04em;
    text-transform: lowercase;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(232, 164, 53, 0.5), 0 0 4px rgba(26, 17, 24, 0.8);
    display: inline-flex;
    white-space: nowrap;
}

.iris-letter {
    display: inline-block;
    opacity: 0;
    transform: scale(0.2) translateY(20px);
    animation: letterBounce 700ms var(--ease-bounce) forwards;
    animation-delay: calc(var(--i) * 90ms + 400ms);
}

.iris-letter.dot {
    color: var(--amber);
}

@keyframes letterBounce {
    0%   { opacity: 0; transform: scale(0.2) translateY(20px); }
    55%  { opacity: 1; transform: scale(1.2) translateY(-4px); }
    75%  { transform: scale(0.92) translateY(2px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.iris-tagline {
    margin-top: 2.4rem;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1rem, 1.7vw, 1.35rem);
    letter-spacing: 0.08em;
    color: rgba(255, 232, 204, 0.75);
    text-align: center;
    z-index: 2;
}

.iris-scrollhint {
    position: absolute;
    bottom: 2.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-secondary);
    z-index: 2;
}

.iris-scrollhint svg {
    animation: floatY 2.4s ease-in-out infinite;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50%      { transform: translateY(6px); opacity: 1; }
}

/* =========================================================
   SHARED — SECTION HEADER
   ========================================================= */

.section-header {
    max-width: 780px;
    margin: 0 auto 3.2rem;
    text-align: center;
    padding: 0 1.5rem;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 0.005em;
}

.section-lede {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: rgba(255, 232, 204, 0.75);
}

/* =========================================================
   SECTION 2 — BENTO GRID
   ========================================================= */

.bento-section {
    position: relative;
    padding: 7rem 2rem;
    z-index: 2;
}

.bento-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 150px;
    gap: 14px;
}

.bento-cell {
    padding: 1.6rem 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.6rem;
    min-height: 0;
}

.bento-cell .cell-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.bento-cell h3 {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.5vw, 1.55rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.bento-cell p {
    font-family: var(--font-body);
    font-size: 0.94rem;
    color: rgba(255, 232, 204, 0.78);
    max-width: 52ch;
}

.bento-cell .cell-glyph {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 44px;
    height: 44px;
    opacity: 0.7;
}

.bento-cell .cell-glyph.small {
    width: 36px;
    height: 36px;
}

.bento-cell:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 248, 240, 0.22);
}

/* Watercolor bleed pseudo (via child div for more flexibility) */
.bento-cell .watercolor {
    position: absolute;
    inset: -20%;
    z-index: -1;
    pointer-events: none;
    filter: blur(55px);
    opacity: 0.55;
    border-radius: 48% 52% 38% 62% / 55% 42% 58% 45%;
}

.bento-cell[data-hue="amber"] .watercolor {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(232, 164, 53, 0.45), transparent 65%),
        radial-gradient(ellipse at 75% 70%, rgba(245, 200, 66, 0.30), transparent 70%);
}
.bento-cell[data-hue="rose"] .watercolor {
    background:
        radial-gradient(ellipse at 35% 35%, rgba(196, 98, 106, 0.50), transparent 65%),
        radial-gradient(ellipse at 70% 75%, rgba(232, 164, 53, 0.22), transparent 70%);
}
.bento-cell[data-hue="teal"] .watercolor {
    background:
        radial-gradient(ellipse at 40% 45%, rgba(58, 140, 140, 0.45), transparent 65%),
        radial-gradient(ellipse at 75% 75%, rgba(138, 106, 173, 0.22), transparent 70%);
}
.bento-cell[data-hue="lavender"] .watercolor {
    background:
        radial-gradient(ellipse at 30% 35%, rgba(138, 106, 173, 0.48), transparent 65%),
        radial-gradient(ellipse at 75% 70%, rgba(196, 98, 106, 0.25), transparent 70%);
}
.bento-cell[data-hue="honey"] .watercolor {
    background:
        radial-gradient(ellipse at 35% 40%, rgba(255, 214, 133, 0.42), transparent 65%),
        radial-gradient(ellipse at 70% 75%, rgba(232, 164, 53, 0.28), transparent 70%);
}

/* Stained glass window cell sizing */
.cell-a { grid-column: span 3; grid-row: span 2; }  /* 3x2 */
.cell-b { grid-column: span 3; grid-row: span 2; }  /* 3x2 */
.cell-c { grid-column: span 2; grid-row: span 1; }  /* 2x1 */
.cell-d { grid-column: span 2; grid-row: span 2; }  /* 2x2 */
.cell-e { grid-column: span 2; grid-row: span 2; }  /* 2x2 */
.cell-f { grid-column: span 4; grid-row: span 1; }  /* 4x1 */
.cell-g { grid-column: span 2; grid-row: span 2; }  /* 2x2 */

.bento-pulse {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    pointer-events: none;
    background: radial-gradient(circle at 70% 30%, rgba(255, 214, 133, 0.18), transparent 55%);
    animation: cellPulse 6s ease-in-out infinite alternate;
}

@keyframes cellPulse {
    0%   { opacity: 0.3; }
    100% { opacity: 0.9; }
}

/* =========================================================
   SECTION 3 — FLAME ROW
   ========================================================= */

.flames-section {
    position: relative;
    padding: 7rem 2rem 8rem;
    background:
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(232, 164, 53, 0.10), transparent 70%),
        transparent;
    z-index: 2;
}

.flame-row {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 1rem;
    padding: 3rem 1rem 2rem;
    flex-wrap: wrap;
    position: relative;
}

.flame-unit {
    position: relative;
    width: 110px;
    height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    cursor: crosshair;
    transition: transform 0.4s var(--ease-soft);
}

.flame-halo {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 164, 53, 0.45) 0%, rgba(245, 200, 66, 0.20) 30%, transparent 70%);
    filter: blur(12px);
    pointer-events: none;
    transition: all 0.4s ease;
    --halo-scale: 1;
    transform: translateX(-50%) scale(var(--halo-scale));
}

.flame-svg {
    position: relative;
    width: 60px;
    height: 110px;
    z-index: 2;
    filter: drop-shadow(0 0 var(--flame-glow, 20px) rgba(232, 164, 53, 0.7));
    transform-origin: 50% 95%;
    animation: flameSway 2.8s ease-in-out infinite;
}

.flame-outer {
    fill: #e8a435;
    fill-opacity: 0.85;
}
.flame-inner {
    fill: #f5c842;
    fill-opacity: 0.95;
}
.flame-core {
    fill: #fff8f0;
    fill-opacity: 0.9;
}

@keyframes flameSway {
    0%, 100% { transform: translateY(0) rotate(-1deg) scaleY(1); }
    50%      { transform: translateY(-2px) rotate(1.5deg) scaleY(1.04); }
}

.flame-stem {
    position: relative;
    width: 28px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.candle-body {
    width: 22px;
    height: 100%;
    background:
        linear-gradient(180deg, rgba(255, 248, 240, 0.18), rgba(255, 248, 240, 0.06)),
        linear-gradient(90deg, rgba(255, 232, 204, 0.12) 0%, rgba(196, 149, 106, 0.22) 50%, rgba(255, 232, 204, 0.12) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 248, 240, 0.18);
    border-radius: 4px 4px 2px 2px;
    box-shadow: inset 0 2px 0 rgba(255, 248, 240, 0.15), 0 6px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.candle-body::after {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 8px;
    background: rgba(26, 17, 24, 0.8);
    border-radius: 2px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.5);
}

.candle-drip {
    position: absolute;
    top: 18%;
    right: -3px;
    width: 6px;
    height: 22px;
    background: linear-gradient(180deg, rgba(255, 232, 204, 0.2), rgba(196, 149, 106, 0.25));
    border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
    filter: blur(0.4px);
}

.flame-tooltip {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) scale(0.3) translateY(30px);
    opacity: 0;
    pointer-events: none;
    width: 230px;
    padding: 1rem 1.1rem;
    transition: none;
    z-index: 5;
}

.flame-tooltip .cell-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 0.4rem;
}

.flame-tooltip p {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 232, 204, 0.9);
}

.flame-unit:hover .flame-tooltip,
.flame-unit.active .flame-tooltip {
    animation: tooltipBounce 520ms var(--ease-bounce) forwards;
}

@keyframes tooltipBounce {
    0%   { opacity: 0; transform: translateX(-50%) scale(0.3) translateY(30px); }
    60%  { opacity: 1; transform: translateX(-50%) scale(1.06) translateY(-4px); }
    80%  { transform: translateX(-50%) scale(0.97) translateY(1px); }
    100% { opacity: 1; transform: translateX(-50%) scale(1) translateY(0); }
}

.flame-unit:hover,
.flame-unit.active {
    transform: translateY(-8px);
}

.flame-unit:hover .flame-halo,
.flame-unit.active .flame-halo {
    --halo-scale: 1.6;
    background: radial-gradient(circle, rgba(245, 200, 66, 0.65) 0%, rgba(232, 164, 53, 0.28) 40%, transparent 75%);
}

.flame-footnote {
    margin-top: 2rem;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 232, 204, 0.6);
    font-size: 0.95rem;
}

/* =========================================================
   SECTION 4 — REFRACTION (CLOSING)
   ========================================================= */

.refraction-section {
    position: relative;
    min-height: 85vh;
    padding: 6rem 2rem 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
}

.refraction-frost {
    position: absolute;
    inset: 0;
    pointer-events: none;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.refraction-bloom {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    animation: poolBloom 20s ease-in-out infinite alternate;
}

.bloom-a {
    width: 50vmax;
    height: 50vmax;
    left: -12vmax;
    top: -8vmax;
    background: radial-gradient(circle, rgba(232, 164, 53, 0.32), transparent 60%);
}
.bloom-b {
    width: 45vmax;
    height: 45vmax;
    right: -10vmax;
    top: 15vmax;
    background: radial-gradient(circle, rgba(196, 98, 106, 0.28), transparent 60%);
    animation-delay: -8s;
}
.bloom-c {
    width: 40vmax;
    height: 40vmax;
    left: 30vmax;
    bottom: -8vmax;
    background: radial-gradient(circle, rgba(58, 140, 140, 0.25), transparent 60%);
    animation-delay: -14s;
}

.refraction-panel {
    position: relative;
    max-width: 680px;
    padding: 3rem 2.6rem;
    text-align: center;
    z-index: 4;
    border-radius: 22px;
}

.refraction-panel.clear-glass {
    backdrop-filter: blur(2px) saturate(140%);
    -webkit-backdrop-filter: blur(2px) saturate(140%);
    background: rgba(255, 248, 240, 0.12);
    border: var(--glass-border-strong);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 248, 240, 0.22),
        0 0 100px rgba(232, 164, 53, 0.18);
}

.refraction-panel h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    margin-top: 1rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.refraction-panel p {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    margin: 0.75rem 0;
    color: rgba(255, 232, 204, 0.88);
}

.refraction-signoff {
    margin-top: 2rem !important;
    font-family: var(--font-mono) !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.24em !important;
    text-transform: uppercase;
    color: var(--text-secondary) !important;
}

.refraction-meter {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.refraction-meter span {
    width: 16px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 232, 204, 0.25);
    animation: meterGlow 3s ease-in-out infinite;
}
.refraction-meter span:nth-child(1) { animation-delay: 0s; }
.refraction-meter span:nth-child(2) { animation-delay: 0.4s; }
.refraction-meter span:nth-child(3) { animation-delay: 0.8s; }
.refraction-meter span:nth-child(4) { animation-delay: 1.2s; }
.refraction-meter span:nth-child(5) { animation-delay: 1.6s; }

@keyframes meterGlow {
    0%, 100% { background: rgba(255, 232, 204, 0.25); box-shadow: none; }
    50%      { background: var(--flame); box-shadow: 0 0 10px var(--amber); }
}

.closing-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30vh;
    background: linear-gradient(180deg, transparent, var(--deep-bg) 75%);
    pointer-events: none;
    z-index: 3;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 960px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 140px;
    }
    .cell-a { grid-column: span 4; grid-row: span 2; }
    .cell-b { grid-column: span 4; grid-row: span 2; }
    .cell-c { grid-column: span 2; grid-row: span 1; }
    .cell-d { grid-column: span 2; grid-row: span 2; }
    .cell-e { grid-column: span 2; grid-row: span 2; }
    .cell-f { grid-column: span 4; grid-row: span 1; }
    .cell-g { grid-column: span 4; grid-row: span 2; }

    .flame-unit { width: 90px; height: 210px; }
}

@media (max-width: 620px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
        gap: 10px;
    }
    .cell-a, .cell-b, .cell-c, .cell-d, .cell-e, .cell-f, .cell-g {
        grid-column: span 2;
        grid-row: span 2;
    }

    .section-indicators {
        top: 1rem;
        right: 1rem;
        gap: 10px;
    }

    .flame-row {
        gap: 0.4rem;
        padding: 2rem 0.5rem 1rem;
    }

    .flame-unit {
        width: 70px;
        height: 180px;
    }

    .flame-svg {
        width: 44px;
        height: 80px;
    }

    .flame-tooltip {
        width: 190px;
        padding: 0.85rem 0.95rem;
    }

    .refraction-panel {
        padding: 2rem 1.4rem;
    }
}
