* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  overflow: hidden; /* controlled by JS */
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: #271815;
  color: #fff;
  cursor: none; /* custom cursor */
}

#app {
  position: relative;
  height: 100vh;
  width: 100vw;
  isolation: isolate;
  --mx: 50vw;
  --my: 50vh;

  --spot: 360px;

  /* panel 3 "glass" light (offscreen by default) */
  --p3x: -9999px;
  --p3y: -9999px;
  --p3rx: 0px;
  --p3ry: 0px;
}


/* Panels */
.panel {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(1);
  pointer-events: none;
  will-change: transform, opacity;
  transition:
    transform 700ms cubic-bezier(.2,.8,.2,1),
    opacity  700ms cubic-bezier(.2,.8,.2,1);
}

.panel.active {
  opacity: 1;
  pointer-events: auto;
}

/* Exit (scroll down): zoom in + fade out */
.panel.exit-down { transform: scale(1.18); opacity: 0; }

/* Exit (scroll up): zoom out + fade out */
.panel.exit-up { transform: scale(0.86); opacity: 0; }

/* Enter (only used for going up): start zoomed-in + invisible */
.panel.enter-up { transform: scale(1.18); opacity: 0; }

/* Looks */
.panel-1 { background: radial-gradient(1000px 600px at 20% 20%, rgba(123, 97, 255, .35), transparent 60%), linear-gradient(135deg, #101426, #05060d); }
.panel-2 { background: radial-gradient(900px 500px at 80% 30%, rgba(0, 190, 255, .30), transparent 65%), linear-gradient(135deg, #07101a, #02050a); }
.panel-3 { background: radial-gradient(900px 500px at 30% 80%, rgba(255, 132, 0, .25), transparent 65%), linear-gradient(135deg, #1a0f07, #090402); }

/* Section 2: remove inner placeholder panel and let text occupy the whole glass panel */
.panel-2 .content{
  padding-top: 0;
  min-height: clamp(260px, 45vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.panel-2 .panel2-text{
  margin: 0;
  max-width: none;
  opacity: .95;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.45;

  position: relative;
  display: inline-block;
  user-select: none;
  text-shadow: 0 0 0 rgba(0,255,120,0);
  filter: drop-shadow(0 0 0 rgba(120,255,170,0));
  transition: color 900ms ease-in-out, text-shadow 900ms ease-in-out, filter 900ms ease-in-out;
}

/* Smooth glow overlay (animates opacity instead of relying on text-shadow interpolation) */
.panel-2 .panel2-text::after{
  content: attr(data-glow);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  color: rgba(230, 255, 242, 0.99);
  text-shadow: 0 0 10px rgba(0,255,120,0.55), 0 0 26px rgba(120,255,170,0.25);
  filter: blur(0.2px);
  transition: opacity 950ms ease-in-out;
  will-change: opacity;
}
.panel-2.is-glowing .panel2-text::after{
  opacity: 1;
}



/* Section 2: glow-on-hover (fireflies + ambient light spill) */
.panel-2 .content{
  isolation: isolate; /* keep blend effects contained */
}

.panel-2 .content::before{
  content: "";
  position: absolute;
  inset: -90px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 900ms ease-in-out;
  z-index: 0;
  mix-blend-mode: screen;
  filter: blur(20px);
  background:
    radial-gradient(circle at var(--p2x, 50%) var(--p2y, 50%),
      rgba(110, 255, 170, 0.28) 0%,
      rgba(110, 255, 170, 0.16) 22%,
      rgba(110, 255, 170, 0.08) 42%,
      rgba(0,0,0,0) 68%
    );
}

.panel-2 .content > *{ position: relative; z-index: 1; }

.panel-2.is-glowing .panel2-text{
  color: rgba(230, 255, 242, 0.99);
  text-shadow: 0 0 2px rgba(0,255,120,0.25);
filter: drop-shadow(0 0 18px rgba(120,255,170,0.35));
}

.panel-2.is-glowing .content::before{ opacity: 1; }

/* Reduce darkness overlay while glowing */
.panel-2.is-glowing .bg::after{
  background: rgba(0,0,0,0);
}

/* Boost global fireflies when hovering the section-2 text */
#app.p2-glow #fireflies{
  filter: none;
}

#app.p2-glow #fireflies .firefly{
  will-change: transform, opacity;
  width: 7px;
  height: 7px;
  background: rgba(120,255,170,0.98);
}

#app.p2-glow #fireflies .firefly::before{
  width: 220px;
  height: 220px;
  background: radial-gradient(circle,
    rgba(120,255,170,0.30) 0%,
    rgba(120,255,170,0.16) 26%,
    rgba(90,255,150,0.07) 48%,
    rgba(0,0,0,0) 72%
  );
}

#app.p2-glow #fireflies .firefly::after{
  width: 28px;
  height: 28px;
  background: radial-gradient(circle,
    rgba(190,255,220,0.92) 0%,
    rgba(120,255,170,0.32) 44%,
    rgba(0,0,0,0) 76%
  );
}

.content {
  position: relative;
  padding-top: 60px;

  width: min(920px, 92vw);
  padding: 28px;
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  /* Neutral shadow (avoid unintended "outlined" look on section 1) */
  box-shadow: 0 18px 45px rgba(0,0,0,.45);
  overflow: visible;
}

h1 {
  margin: 0 0 10px 0;
  font-size: clamp(28px, 4vw, 54px);
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 16px 0;
  line-height: 1.5;
  opacity: .92;
  font-size: clamp(14px, 1.6vw, 18px);
}

.placeholder {
  height: clamp(180px, 32vh, 340px);
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,.22);
  background: rgba(0,0,0,.18);
  display: grid;
  place-items: center;
  font-weight: 600;
  letter-spacing: .08em;
  opacity: .9;
}

.hint {
  margin-top: 14px;
  font-size: 13px;
  opacity: .75;
}

/* Progress dots */
.progress {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 10px;
  z-index: 80;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.dot.is-on {
  transform: scale(1.35);
  background: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.85);
}

/* Spotlight overlay */
#spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 90;

  transition: opacity .25s ease;
  /* breathing light: animates --spot */
  transition: color 0.3s ease, text-shadow 0.3s ease;

  /*
    Darkness layer with "holes" (light) driven by:
    - cursor: vars --mx/--my/--spot (existing)
    - panel 3 glass: vars --p3x/--p3y/--p3rx/--p3ry (set in JS when section 3 is active)
  */
  background-blend-mode: lighten;
  background:
    radial-gradient(
      circle var(--spot) at var(--mx) var(--my),
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0) 35%,
      rgba(0,0,0,.80) 70%,
      rgba(0,0,0,.92) 100%
    ),
    radial-gradient(
      ellipse var(--p3rx) var(--p3ry) at var(--p3x) var(--p3y),
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0) 52%,
      rgba(0,0,0,.78) 78%,
      rgba(0,0,0,.92) 100%
    );
}

/* Custom cursor */
#cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 84px;
  height: 84px;
  transform: translate3d(calc(var(--mx) - 18px), calc(var(--my) - 18px), 0);
  background: url("assets/cursor1.png") center/contain no-repeat;
  pointer-events: none;
  z-index: 100;
  will-change: transform, background-image;
  backface-visibility: hidden;
  image-rendering: auto;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.55));
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .panel { transition: none; }
  #cursor { transition: none; }
  .glass-deco, .crypto-breath { animation: none !important; }
}


/* Force global background color */
body, .panel { background-color: #271815; }


/* ---- Background image layer (replace assets/bg1.jpg, bg2.jpg, bg3.jpg) ---- */
.bg{
  position:absolute;
  inset:0;
  background: var(--bg) center/cover no-repeat;
  opacity: .38;
  z-index: 0;
}
.bg::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0);
  transition: background 900ms ease-in-out;
}


/* ---- Corner hover-swap ---- */
.corner-swap .img.a{ opacity: 1; }
.corner-swap .img.b{ opacity: 0; }
.corner-swap:hover .img.a{ opacity: 0; }
.corner-swap:hover .img.b{ opacity: 1; }

/* ---- Spotlight breathing ---- */
@property --spot {
  syntax: '<length>';
  inherits: true;
  initial-value: 360px;
}
@keyframes spotlightBreathe {
  0%, 100% { --spot: 360px; }
  50% { --spot: 520px; }
}

/* ---- Fix: do NOT override page backgrounds with old gradients ---- */
.panel-1, .panel-2, .panel-3 { background: none !important; }
.panel { background-color: #271815; }

/* Keep everything above bg */
.panel > :not(.bg) { position: relative; z-index: 1; }
.bg { z-index: 0; }


/* ---- Fireflies (light layer) ---- */
#fireflies{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index: 95;           /* above darkness */
  mix-blend-mode: screen; /* makes glow lighten */
}

.firefly{
  position:absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(150,255,190,0.95);
  opacity: 0.9;
  will-change: transform;
  filter: blur(0.2px);
}

.firefly::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width: 220px;          /* light radius */
  height: 220px;
  transform: translate(-50%,-50%);
  border-radius: 999px;
  background: radial-gradient(circle,
    rgba(150,255,190,0.22) 0%,
    rgba(120,255,170,0.12) 25%,
    rgba(90,255,150,0.05) 45%,
    rgba(0,0,0,0) 70%
  );
}

.firefly::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%,-50%);
  border-radius: 999px;
  background: radial-gradient(circle,
    rgba(180,255,210,0.85) 0%,
    rgba(130,255,180,0.25) 45%,
    rgba(0,0,0,0) 75%
  );
}

/* ---- HARD disable system cursors everywhere ---- */
*, *:hover {
  cursor: none !important;
}

  50%{
    box-shadow: none !important;
    opacity: 1;
  }
}

/* ---- Right-side glowing arrows (light layer + breathing) ---- */
.nav-arrows{
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 96;              /* above darkness */
  display: grid;
  gap: 12px;
  pointer-events: auto;
  mix-blend-mode: screen;   /* lighten like fireflies */
}

.nav-arrow{
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: none;
  background: rgba(120,255,170,0.06);
  display: grid;
  place-items: center;
  padding: 0;
  outline: none;
  cursor: none;
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
  opacity: 0.92;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-arrow::before{
  content:"";
  position:absolute;
  inset:-40px; /* tighter light, no big blob */
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(150,255,190,0.22) 0%,
    rgba(120,255,170,0.12) 38%,
    rgba(0,0,0,0) 65%
  );
}

.nav-arrow::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 999px;
  box-shadow: none !important;
  pointer-events:none;
}

.nav-arrow .arrow-icon{
  font-size: 18px;
  line-height: 1;
  color: rgba(170,255,210,0.95);
  text-shadow: 0 0 8px rgba(0,255,120,0.8);
  transform: translateY(-1px);
}

.nav-arrow:hover{
  transform: scale(1.10);
  background: rgba(120,255,170,0.09);
}

.nav-arrow:active{
  transform: scale(0.98);
}

@keyframes arrowPulse{
  0%,100% { transform: scale(0.98); opacity: .9; }
  50% { transform: scale(1.04); opacity: 1; }
}
  50%{
    --ar: 320px;  /* breathing light radius */
    opacity: 1;
  }
}

/* ---- FORCE arrows visible + light ---- */
.nav-arrows{
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 120 !important;
  display: grid !important;
  gap: 14px;
  opacity: 1 !important;
  pointer-events: auto !important;
  mix-blend-mode: screen;
}

.nav-arrow{
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: transparent;
  border: none;
  cursor: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-arrow::before{
  content:"";
  position:absolute;
  inset:-40px; /* tighter light, no big blob */
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(150,255,190,0.22) 0%,
    rgba(120,255,170,0.12) 38%,
    rgba(0,0,0,0) 65%
  );
}

.nav-arrow::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 50%;
  box-shadow: none !important;
}

.nav-arrow .arrow-icon{
  position: relative;
  z-index: 1;
  color: rgba(190,255,220,1);
  font-size: 18px;
  text-shadow: 0 0 8px rgba(0,255,120,0.8);
}

@keyframes arrowPulse{
  0%,100% { transform: scale(0.98); opacity: .9; }
  50% { transform: scale(1.04); opacity: 1; }
}
  50% { transform: scale(1.05); opacity: 1; }
}

/* ===== FORCED NAV ARROWS ===== */
.nav-arrows{
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nav-arrow{
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(20,40,30,0.6);
  border: none;
  cursor: none;
  display: grid;
  place-items: center;
  color: #baffd4;
  font-size: 18px;
  box-shadow: none !important;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-arrow::before{
  content:"";
  position:absolute;
  inset:-32px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(120,255,170,0.22) 0%,
    rgba(120,255,170,0.12) 30%,
    rgba(0,0,0,0) 60%
  );
}

@keyframes navBreath{
  0%,100%{ transform: scale(0.95); }
  50%{ transform: scale(1.05); }
}

/* ===== ULTIMATE NAV ARROWS OVERRIDE (VISIBLE) ===== */
.nav-arrows{
  position: fixed !important;
  right: 24px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 2000 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  mix-blend-mode: normal !important; /* prevent disappearing */
}

.nav-arrow{
  position: relative !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  border: none !important;
  background: rgba(20,40,30,0.65) !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  cursor: none !important;
  filter: drop-shadow(0 0 10px rgba(120,255,170,0.55)) drop-shadow(0 0 24px rgba(120,255,170,0.28));
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-arrow span, .nav-arrow .arrow-icon{
  color: rgba(190,255,220,1) !important;
  font-size: 18px !important;
  text-shadow: 0 0 8px rgba(0,255,120,0.8);
}

.nav-arrow::before{
  content:"" !important;
  position:absolute !important;
  inset:-34px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle,
    rgba(120,255,170,0.20) 0%,
    rgba(120,255,170,0.11) 34%,
    rgba(0,0,0,0) 64%
  ) !important;
  pointer-events:none !important;
}

/* ===== TUNE ARROWS: softer firefly glow ===== */
.nav-arrow{
  background: rgba(20,40,30,0.35) !important;
  filter: drop-shadow(0 0 6px rgba(120,255,170,0.35))
          drop-shadow(0 0 14px rgba(120,255,170,0.18)) !important;
}

.nav-arrow::before{
  inset:-22px !important;
  background: radial-gradient(circle,
    rgba(120,255,170,0.16) 0%,
    rgba(120,255,170,0.08) 34%,
    rgba(0,0,0,0) 62%
  ) !important;
}

.nav-arrow span{
  text-shadow: 0 0 8px rgba(0,255,120,0.8);
}

/* ===== Cursor above arrows ===== */
#cursor{
  z-index: 3000 !important;
}

/* ===== ARROWS: VERY SOFT + ASYNC BREATHING ===== */
.nav-arrow{
  background: rgba(20,40,30,0.18) !important;
  filter: drop-shadow(0 0 3px rgba(120,255,170,0.18))
          drop-shadow(0 0 8px rgba(120,255,170,0.10)) !important;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-arrow#navNext{
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-arrow::before{
  inset:-14px !important;
  background: radial-gradient(circle,
    rgba(120,255,170,0.12) 0%,
    rgba(120,255,170,0.06) 36%,
    rgba(0,0,0,0) 62%
  ) !important;
}

@keyframes arrowBreathA{
  0%,100%{ transform: scale(0.96); opacity: .65; }
  50%{ transform: scale(1.03); opacity: .85; }
}

@keyframes arrowBreathB{
  0%,100%{ transform: scale(0.95); opacity: .6; }
  50%{ transform: scale(1.02); opacity: .8; }
}

/* ===== Bottom bar (X + CA + pump) ===== */
.bottom-bar{
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 1100;
  pointer-events: auto;
}

.bb-btn{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(20,40,30,0.22);
  box-shadow: none !important;
  cursor: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.bb-btn:hover{
  transform: scale(1.06);
  box-shadow: none !important;
}
.bb-btn img{
  width: 26px;
  height: 26px;
}

/* CA panel auto-sizes with text */
.ca-panel{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(20,40,30,0.22);
  box-shadow: none !important;
  cursor: none;
  user-select: none;
  white-space: nowrap;
}
.ca-label{
  opacity: .8;
}
.ca-value{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: .02em;
}

/* subtle firefly-like glow */
.bb-btn, .ca-panel{
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
@keyframes bbBreath{
  0%,100%{ opacity: .75; }
  50%{ opacity: .95; }
}

/* ===== CA panel interactions + Copied bubble ===== */
.ca-panel{
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease;
}
.ca-panel:hover{
  transform: translateY(-2px);
  background: rgba(20,40,30,0.26);
  box-shadow: none !important;
}
.ca-panel:active{
  transform: translateY(0) scale(0.98);
}

/* Copied bubble */
.copied-bubble{
  position: absolute;
  left: 50%;
  top: -12px;
  transform: translate(-50%, -8px);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(20,40,30,0.50);
  border: 1px solid rgba(120,255,170,0.18);
  box-shadow: none !important;
  font-size: 12px;
  letter-spacing: .02em;
  color: rgba(210,255,235,0.95);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.ca-panel.is-copied .copied-bubble{
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

@keyframes copiedPop{
  0%   { opacity: 0; transform: translate(-50%, 2px) scale(0.96); }
  18%  { opacity: 1; transform: translate(-50%, -10px) scale(1.03); }
  70%  { opacity: 1; transform: translate(-50%, -14px) scale(1.00); }
  100% { opacity: 0; transform: translate(-50%, -18px) scale(0.98); }
}

/* Make bottom icons a bit bigger/crisper */
.bb-btn img{
  width: 28px;
  height: 28px;
}

/* ===== SYNC RIGHT ARROWS WITH BOTTOM BUTTON GLOW ===== */
.nav-arrow{
  background: rgba(20,40,30,0.22) !important;
  box-shadow: none !important;
  filter: none !important;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-arrow::before{
  inset:-18px !important;
  background: radial-gradient(circle,
    rgba(120,255,170,0.16) 0%,
    rgba(120,255,170,0.08) 36%,
    rgba(0,0,0,0) 62%
  ) !important;
}

.nav-arrow:hover{
  transform: scale(1.06) !important;
  box-shadow: none !important;
}


/* ===== Corner image + title (panel) ===== */
.content{ position: relative; }

.corner-block{
  position: absolute;
  left: 24px;
  top: -180px;           /* image sticks out of the panel */
  width: 300px;
  height: 380px;         /* 300 image + title space */
  z-index: 60;
  pointer-events: auto;
}

.corner-swap{
  position: relative;
  width: 300px;
  height: 300px;
  display: block;
  background: none;
  border: none;
  outline: none;
}

.corner-swap .img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: contain;
  transition: opacity 200ms ease;
}

.corner-swap .img.a{
  opacity: 1;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  transform-origin: 55% 55%;
}

.corner-swap .img.b{ opacity: 0; }

.corner-swap:hover .img.a{
  opacity: 0;
  transition: color 0.3s ease, text-shadow 0.3s ease;  /* stop breathing when corner2 */
}

.corner-swap:hover .img.b{ opacity: 1; }

/* Zooey title INSIDE panel header, shifted right */
.corner-title{
  position: absolute;
  top: 84px;              /* inside panel header */
  left: 24px;             /* anchor to panel padding */
  padding-left: 90px;     /* shift right under image */
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 0 8px rgba(0,255,120,0.8);
  pointer-events: none;
}



@keyframes cornerBreathe{
  0%,100% { transform: translateY(0) scale(0.98); }
  50%     { transform: translateY(-6px) scale(1.02); }
}


/* ===== REMOVE GLASS ONLY ON FIRST SECTION ===== */
.panel-1,
.panel-1 .panel-inner{
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  /* Keep section-1 clean: no glow/outline on containers */
  box-shadow: none !important;
  border: none !important;
}

.panel-1::before,
.panel-1::after,
.panel-1 .panel-inner::before,
.panel-1 .panel-inner::after{
  display: none !important;
  content: none !important;
}

/* ===== REMOVE GLASS CONTENT BOX ONLY ON FIRST SECTION ===== */
.panel-1 .content{
  background: transparent !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

/* ===== REMOVE DOTTED / DASHED BORDER ON FIRST SECTION ===== */
.panel-1 .content,
.panel-1 .content *{
  border: none !important;
  outline: none !important;
}

.panel-1 .content::before,
.panel-1 .content::after{
  display: none !important;
  content: none !important;
}

/* ===== REMOVE REMAINING SHADOW ON FIRST SECTION ===== */
.panel-1 .content,
.panel-1 .content *{
  box-shadow: none !important;
  filter: none !important;
}

/* ===== REMOVE CENTER RECTANGLE (PLACEHOLDER) ONLY ON FIRST SECTION ===== */
.panel-1 .placeholder{
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
}

/* ===== CENTER HERO CONTENT ON FIRST SECTION ===== */
.panel-1{
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-1 .content{
  margin: 0 auto;
  text-align: center;
}

.panel-1 .corner-block{
  margin: 0 auto 16px auto;
}

.panel-1 .zooey-title{
  padding-left: 0 !important;
  text-align: center;
}

/* ===== FORCE CORNER IMAGE INTO CENTER (ABOVE TEXT) ON FIRST SECTION ===== */
.panel-1 .corner-block{
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: translateY(-40px) !important; /* slightly above text */
  width: 300px !important;
  height: 300px !important;
  margin: 0 auto 10px auto !important;
  display: block !important;
}

.panel-1 .corner-swap{
  width: 300px !important;
  height: 300px !important;
  margin: 0 auto !important;
}

/* keep copy/hover behavior */
.panel-1 .zooey-title{
  margin-top: -10px;
}

/* ===== FIX: center text without breaking layout (panel-1 only) ===== */
.panel-1{
  position: relative;
}

.panel-1 .content{
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  text-align: center;
}

/* Corner image centered and above */
.panel-1 .corner-block{
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, calc(-50% - 80px)) !important; /* above center */
  margin: 0 !important;
}

/* Title exactly at center */
.panel-1 .zooey-title{
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  padding-left: 0 !important;
  width: min(900px, calc(100vw - 80px));
}

/* Paragraph(s) just below center title */
.panel-1 .content > p{
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, calc(-50% + 86px)) !important;
  margin: 0 !important;
  width: min(900px, calc(100vw - 80px));
}

/* ===== Text glow on hover (firefly green), then fade back ===== */
.glow-text{
  transition: text-shadow 700ms ease, color 700ms ease;
}

.glow-text.is-glowing{
  color: rgba(220,255,235,0.98);
  text-shadow: 0 0 8px rgba(0,255,120,0.8);
}

/* ===== Cursor: use <img> to avoid 1-frame blank ===== */
#cursor{
  background: none !important;
}
#cursorImg{
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: auto;
}

/* ===== Make text glow visible (above darkness layer) ===== */
.panel-1 .content{
  z-index: 120;
}
.glow-text{
  position: relative;
  z-index: 140;
  mix-blend-mode: screen;
}
.glow-text.is-glowing{
  text-shadow: 0 0 8px rgba(0,255,120,0.8);
}



/* ===== Glyph-shaped light (follows letter shapes), brighter ===== */
.glow-text{
  position: relative;
  z-index: 160;            /* above darkness */
  mix-blend-mode: screen;  /* brighten like fireflies */
}

/* duplicated text layer that emits light by its glyphs (NOT a circle) */
.glow-text::after{
  content: attr(data-glow);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  color: rgba(120,255,170,0.62);
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  filter: blur(0.8px);
  text-shadow: 0 0 8px rgba(0,255,120,0.8);
  transition: opacity 420ms ease;
  white-space: pre-wrap;
}

/* keep same typography */
.glow-text::after{
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: inherit;
}

.glow-text.is-glowing::after{
  opacity: 1;
}

/* brighter text itself, but still soft */
.glow-text.is-glowing{
  color: rgba(235,255,245,0.96);
  text-shadow: 0 0 8px rgba(0,255,120,0.8);
}

/* ===== FORCE (scroll) UNDER TEXT, NORMAL FLOW ===== */
.scroll-hint{
  position: static !important;
  display: block !important;
  margin-top: 8px !important;
}


/* ===== (scroll) locked under the centered text (panel-1 only) ===== */
.panel-1 .scroll-hint{
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, calc(-50% + 128px)) !important; /* below the caves line */
  margin: 0 !important;
  width: fit-content;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.2em;
  opacity: 0.6;
  color: rgba(180,255,210,0.85);
  pointer-events: none;
  z-index: 160;
}

/* ===== Corner image stability ===== */
.corner-img{
  pointer-events: auto;
  user-select: none;
  will-change: transform, opacity;
}



/* ===== Corner hover FIX (no duplicate / no huge image) ===== */
.panel-1 .corner-block{
  position: absolute !important; /* keep existing layout logic */
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, calc(-50% - 80px)) !important;
  width: 300px !important;
  height: 300px !important;
  z-index: 200;
}

.panel-1 .corner-swap{
  position: relative !important;
  width: 300px !important;
  height: 300px !important;
  display: block;
  pointer-events: auto;
  touch-action: manipulation;
}

/* stack both frames in the same box */
.panel-1 .corner-swap .img{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  pointer-events: none;           /* prevent hover flicker */
  opacity: 0;
  transition: opacity 900ms ease-in-out;
}

/* default frame visible */
.panel-1 .corner-swap .img.a{ opacity: 1; }

/* hover frame */
.panel-1 .corner-swap.is-hover .img.a{ opacity: 0; }
.panel-1 .corner-swap.is-hover .img.b{ opacity: 1; }

/* safeguard */
#cornerImg,.corner-img{display:none !important;}
/* ===== Remove color overlays without washing out the site ===== */
/* Keep a dark base so blend modes don't turn the page white */
html, body{
  background-color: #000 !important;
}

/* Remove solid fills, but DO NOT touch background-image */
.panel{
  background-color: transparent !important;
}

/* If you have a background layer element, ensure it stays fully opaque */
.bg, .section-bg, .panel-bg{
  opacity: 1 !important;
}

/* ===== Fireflies: add soft light halo that reveals background ===== */
.firefly{
  box-shadow: none !important;
}

.firefly::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width: 180px;
  height: 180px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events:none;
  opacity: 0.55;
  mix-blend-mode: screen;
  background: radial-gradient(circle,
    rgba(120,255,170,0.16) 0%,
    rgba(120,255,170,0.10) 18%,
    rgba(120,255,170,0.05) 34%,
    rgba(120,255,170,0.02) 50%,
    rgba(0,0,0,0) 70%
  );
  filter: blur(14px);
}

/* Slightly reduce darkness so small lights can reveal bg */
#spotlight{
  background:
    radial-gradient(
      circle var(--spot) at var(--mx) var(--my),
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0) 35%,
      rgba(0,0,0,.76) 70%,
      rgba(0,0,0,.88) 100%
    ) !important;
}

/* ===== Fireflies: STRONGER light that reveals background ===== */
.firefly{
  box-shadow: none !important;
}

.firefly::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width: 260px;
  height: 260px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events:none;
  opacity: 0.9;
  mix-blend-mode: screen;
  background: radial-gradient(circle,
    rgba(140,255,190,0.32) 0%,
    rgba(140,255,190,0.22) 16%,
    rgba(140,255,190,0.14) 32%,
    rgba(140,255,190,0.07) 48%,
    rgba(0,0,0,0) 68%
  );
  filter: blur(22px);
}

/* Slightly lighter darkness so fireflies really cut through */
#spotlight{
  background:
    radial-gradient(
      circle var(--spot) at var(--mx) var(--my),
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0) 30%,
      rgba(0,0,0,.68) 65%,
      rgba(0,0,0,.82) 100%
    ) !important;
}

/* ===== Panel 3: glass panel green edge glow (firefly style) ===== */
.panel-3 .content{
  position: relative;
  box-shadow: none !important;
}

.panel-3 .content::after{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: inherit;
  pointer-events:none;
  mix-blend-mode: screen;
  opacity: 0.9;
  background: radial-gradient(circle at 50% 50%,
    rgba(120,255,170,0.10) 0%,
    rgba(120,255,170,0.06) 35%,
    rgba(0,0,0,0) 70%
  );
  filter: blur(10px);
}

/* ===== Panel 3: glow that actually lights the darkness ===== */
.panel-3 .content::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width: 1200px;
  height: 720px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events:none;
  z-index: -1; /* behind glass but still above darkness due to blend */
  mix-blend-mode: screen;
  opacity: 0.85;
  background: radial-gradient(circle,
    rgba(140,255,190,0.22) 0%,
    rgba(140,255,190,0.15) 18%,
    rgba(140,255,190,0.09) 34%,
    rgba(140,255,190,0.04) 52%,
    rgba(0,0,0,0) 72%
  );
  filter: blur(28px);
}

/* ===== Panel 3: dedicated glow layer ABOVE darkness (actually lights it) ===== */
#panel3Glow{
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 1100px;
  height: 700px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 160;           /* must be above #spotlight */
  opacity: 0;
  transition: opacity 500ms ease;
  mix-blend-mode: screen;
  background: radial-gradient(ellipse at center,
    rgba(140,255,190,0.26) 0%,
    rgba(140,255,190,0.18) 18%,
    rgba(140,255,190,0.11) 34%,
    rgba(140,255,190,0.06) 52%,
    rgba(0,0,0,0) 74%
  );
  filter: blur(30px);
}

/* slightly brighter rim inside */
#panel3Glow::after{
  content:"";
  position:absolute;
  inset: 90px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center,
    rgba(120,255,170,0.10) 0%,
    rgba(120,255,170,0.06) 40%,
    rgba(0,0,0,0) 75%
  );
  filter: blur(18px);
  opacity: 0.9;
}

.panel-3.is-active ~ #panel3Glow{ opacity: 1; }

body.panel3glow-on #panel3Glow{ opacity: 1; }


/* --- Panel 3: Random crypto chart widget --- */
.crypto-widget{
  position: relative;
  margin-top: 18px;
  width: 100%;
  border-radius: 18px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: none !important;
  overflow: hidden;
}

.crypto-header{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.crypto-title{
  font-weight: 700;
  letter-spacing: .2px;
}

.crypto-sub{
  font-size: 13px;
  opacity: .8;
}

.crypto-canvas-wrap{
  width: 100%;
  height: 280px;
  position: relative;
}

.crypto-canvas-wrap canvas{
  width: 100%;
  height: 100%;
  display: block;
}

/* Page 3: top-left panel decoration (protrudes above panel) */
.glass-deco{
  position: absolute;
  left: -90px;
  top: -130px;
  width: clamp(120px, 14vw, 220px);
  height: auto;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.55));
  transition: color 0.3s ease, text-shadow 0.3s ease;
  transform-origin: 40% 60%;
  animation: decoBreathe 3.6s ease-in-out infinite;
}
.glass-deco img{
  width: 100%;
  height: auto;
  display: block;
}

@keyframes decoBreathe{
  0%,100%{ transform: scale(0.985); }
  50%{ transform: scale(1.035); }
}


/* Page 3: remove site dimming (disable spotlight darkness layer) */
#spotlight.is-disabled{ opacity:0; }


/* Page 3: bottom-right breathing image inside crypto panel */
.crypto-breath{
  position: absolute;
  right: -10px;
  bottom: -14px;
  width: clamp(110px, 12vw, 180px);
  height: clamp(110px, 12vw, 180px);
  opacity: .95;
  pointer-events: none;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.55)) drop-shadow(0 0 18px rgba(255,255,255,.18));
  transition: color 0.3s ease, text-shadow 0.3s ease;
  transform-origin: 50% 50%;
  animation: cryptoBreathe 3.2s ease-in-out infinite;
}
.crypto-breath img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
@keyframes cryptoBreathe{
  0%,100%{ transform: scale(1); }
  50%{ transform: scale(1.12); }
}

#spotlight.spotlight-instant{ transition: none !important; }

.panel-3 .content h1,
.panel-3 .content p,
.panel-3 .content .crypto-widget{
  position: relative;
  z-index: 2;
}

/* Join Community button above CA (matches site's bottom-bar styling) */
.ca-column{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}

.join-community{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(20,40,30,0.22);
  box-shadow: none !important;
  cursor: none;
  user-select: none;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.join-community:hover{
  transform: translateY(-2px);
  background: rgba(20,40,30,0.26);
  box-shadow: none !important;
}



/* =========================
   Firefly glow (buttons + arrows)
   Safe overrides (uses !important to beat existing resets)
   ========================= */
.firefly-host{
  position: relative !important;
  overflow: visible !important;
  isolation: isolate;
}

.bb-btn.firefly-host,
.nav-arrow.firefly-host,
.join-community.firefly-host,
.ca-panel.firefly-host{
  box-shadow:
    0 0 14px rgba(120,255,170,0.35),
    0 0 34px rgba(120,255,170,0.20) !important;
  background: rgba(20,40,30,0.24) !important;
  animation: hostGlow 2.8s ease-in-out infinite;
}

.nav-arrow.firefly-host{
  background: rgba(120,255,170,0.08) !important;
}

@keyframes hostGlow{
  0%,100%{ filter: drop-shadow(0 0 6px rgba(120,255,170,0.25)); }
  50%{    filter: drop-shadow(0 0 14px rgba(120,255,170,0.55)); }
}

/* Do not kill glow on existing pseudo elements */
.nav-arrow.firefly-host::after{
  box-shadow:
    0 0 18px rgba(120,255,170,0.45),
    inset 0 0 10px rgba(120,255,170,0.25) !important;
}

/* Orbiting "firefly" dots around targets */
.firefly-dot{
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--ff-size, 6px);
  height: var(--ff-size, 6px);
  margin-left: calc(var(--ff-size, 6px) / -2);
  margin-top:  calc(var(--ff-size, 6px) / -2);
  border-radius: 999px;
  background: rgba(190,255,215,0.95);
  box-shadow: 0 0 10px rgba(120,255,170,0.85), 0 0 26px rgba(120,255,170,0.35);
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
  transform: rotate(var(--ff-angle, 0deg)) translateX(var(--ff-radius, 22px)) scale(0.8);
  animation:
    ffOrbit var(--ff-speed, 3.8s) linear infinite,
    ffTwinkle 1.9s ease-in-out infinite;
  animation-delay: var(--ff-delay, 0s);
  mix-blend-mode: screen;
}

@keyframes ffOrbit{
  to { transform: rotate(calc(var(--ff-angle, 0deg) + 360deg)) translateX(var(--ff-radius, 22px)) scale(0.85); }
}

@keyframes ffTwinkle{
  0%,100%{ opacity: 0.35; filter: blur(0px); }
  50%{ opacity: 1; filter: blur(0.4px); }
}


/* Fireflies brightness is controlled in JS with a smooth boost (see script.js).
   Keep CSS from overriding opacity to prevent abrupt changes. */

/* Copied badge */
.ca, .ca-btn{ position:relative; }
.copied-badge{
 position:absolute;
 top:-14px;
 left:50%;
 transform:translateX(-50%) translateY(6px);
 background:rgba(120,255,170,.95);
 color:#0a1a12;
 font-size:12px;
 padding:4px 8px;
 border-radius:8px;
 opacity:0;
 pointer-events:none;
 transition:opacity .25s ease, transform .25s ease;
}
.ca.copied .copied-badge,
.ca-btn.copied .copied-badge{
 opacity:1;
 transform:translateX(-50%) translateY(-4px);
}


/* ================================
   CA: Copied! bubble (working)
   ================================ */
#caPanel{ position: relative; }
#caPanel .copied-bubble{
  opacity: 0;
  transform: translate(-50%, -14px) scale(0.98);
  transition: opacity 260ms ease, transform 260ms ease;
}
#caPanel.is-copied .copied-bubble{
  opacity: 1;
  transform: translate(-50%, -26px) scale(1);
}


/* ================================
   Fix v13: no flash when moving 3 -> 2
   Dark layer exists immediately but is subtle
   ================================ */

/* Base dark layer always present (very light) */
.panel-2{
  background-color:#000;
}

.panel-2 .bg{
  opacity: .32;
  transition: opacity 600ms ease-in-out;
}

/* When panel is fully active / glowing */
.panel-2.is-glowing .bg{
  opacity: .38;
}


/* ================================
   Fix v17: constant subtle darkness without blacking out content
   Uses a dedicated fixed layer between backgrounds and UI.
   ================================ */
#global-dim-layer{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.22); /* subtle */
  pointer-events: none;
  z-index: 5;
}

/* Make sure backgrounds stay below dim layer */
.bg{ z-index: 0 !important; }

/* Ensure panels/content/UI stay above dim layer */
#app{ position: relative; z-index: 10; }
.panel .content{ position: relative; z-index: 10; }
.nav, .nav-arrows, .nav-arrow, .bottom-buttons, .bb, .bb-btn, .topbar{
  position: relative;
  z-index: 12;
}

/* Avoid any section rules that set bg opacity to 1 and kill dimming */
.bg{ opacity: .38; }


/* --- Intro overlay: hide UI until intro finishes --- */
html.intro-lock .nav-arrows,
html.intro-lock .bottom-bar{
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
