/* ===== Scene text — fixed overlays driven by scrollProgress ===== */
.scene-text {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}
.scene-text .layer {
  position: absolute;
  will-change: transform, opacity;
  /* IMPORTANT: pointer-events here was 'auto', which made the bounding box
     of every title (helix-title top-left, sphere-title, torus-title
     bottom-right, statement bottom-center) intercept taps. On mobile those
     boxes cover most of the screen edges, leaving only the middle third
     tappable for cards. None on the parent + opt-in below for actual
     interactive children solves it. */
  pointer-events: none;
}
/* Re-enable interaction for the only actually-clickable scene-text content:
   the contact links inside torus-title. If we add other interactive scene
   elements later, opt them in here too. */
.scene-text .layer a,
.scene-text .layer button {
  pointer-events: auto;
}

/* Big "ENTER HAZE LABS" title — center stage during the grid hold */
.title-enter {
  top:  var(--title-y, 50%);
  left: var(--title-x, 50%);
  transform-origin: center center;
  text-align: center;
  pointer-events: none;
}
.title-enter h1 {
  margin: 0;
  font-family: var(--global-font, 'Courier New', monospace);
  font-weight: 900;
  font-size: var(--title-fs, clamp(44px, 8.5vw, 132px));
  letter-spacing: var(--title-ls, 0.16em);
  color: var(--title-color, #f4fff8);
  white-space: nowrap;
  /* Fake-3D: layered text shadows + perspective tilt */
  text-shadow:
    0 0 6px  var(--title-glow-near, rgba(180, 255, 200, 1)),
    0 0 14px var(--title-glow-mid,  rgba(108, 255, 138, 0.95)),
    0 0 36px var(--title-glow-far,  rgba(0, 255, 65, 0.85)),
    0 0 80px var(--title-glow-far,  rgba(0, 255, 65, 0.55)),
    0 1px 0 rgba(0, 60, 20, 0.6),
    0 2px 0 rgba(0, 50, 18, 0.5),
    0 3px 0 rgba(0, 40, 16, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.6);
  transform: perspective(1200px) rotateX(7deg);
}
.title-enter .sub {
  margin-top: 18px;
  font-family: 'Courier New', monospace;
  font-size: clamp(10px, 1.1vw, 14px);
  letter-spacing: 0.55em;
  color: rgba(150, 255, 170, 0.65);
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
}

/* Artist statement — appears under the big title and scrolls up */
.statement {
  top:  var(--statement-y, 68%);
  left: var(--statement-x, 50%);
  transform-origin: center top;
  text-align: center;
  max-width: var(--statement-maxw, min(720px, 78vw));
  /* Box around the statement. Background, border, and glow each have a
     separate color and alpha pair, composed via color-mix so users can
     pick a hex color in the dev panel AND independently adjust opacity.
     Per-shape font-size lives on .statement so dim lines (1em-relative)
     scale correctly. */
  font-size: var(--statement-fs, clamp(13px, 1.3vw, 17px));
  padding: var(--statement-pad, 18px 28px);
  border: var(--statement-border-width, 1px) solid
    color-mix(in srgb,
      var(--statement-border-color, #00ff41)
      calc(var(--statement-border-alpha, 0.45) * 100%),
      transparent);
  background: color-mix(in srgb,
    var(--statement-bg-color, #000e04)
    calc(var(--statement-bg-alpha, 0.32) * 100%),
    transparent);
  box-shadow:
    0 0 var(--statement-glow, 24px)
      color-mix(in srgb,
        var(--statement-glow-color, #00ff41)
        calc(var(--statement-glow-alpha, 0.35) * 100%),
        transparent),
    inset 0 0 calc(var(--statement-glow, 24px) * 0.5)
      color-mix(in srgb,
        var(--statement-glow-color, #00ff41)
        calc(var(--statement-glow-alpha, 0.35) * 35%),
        transparent);
  backdrop-filter: blur(2px);
}
.statement .line {
  font-family: var(--global-font, 'Courier New', monospace);
  /* font-size inherited from .statement so dim lines (set in em) scale */
  letter-spacing: var(--statement-ls, 0.18em);
  color: var(--statement-color, rgba(190, 255, 210, 0.85));
  text-shadow:
    0 0 var(--statement-text-glow, 12px)
      color-mix(in srgb,
        var(--statement-glow-color, #00ff41)
        calc(var(--statement-glow-alpha, 0.5) * 100%),
        transparent);
  line-height: 1.7;
  margin: 0 auto 8px auto;
}
.statement .line.dim {
  color: var(--statement-dim-color, rgba(150, 255, 170, 0.55));
  font-size: calc(var(--statement-fs-dim, 0.78) * 1em);
  letter-spacing: 0.32em;
}
/* Compact (no-box) variant — toggles via class for users who want plain text */
.statement.no-box {
  padding: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none;
}
