/* ---------- Smoke trail canvas ---------- */
.smoke-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-smoke);
  pointer-events: none;
  /* "multiply" reads correctly against the site's light background — "screen"
     (its dark-theme equivalent) would wash out to invisible white here. */
  mix-blend-mode: multiply;
}

/* ---------- Custom cursor ---------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-cursor);
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--accent);
  transform: translate(-50%, -50%);
  transition: width var(--dur-fast) var(--ease-out), height var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cursor-ring__label {
  opacity: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  transition: opacity var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

body.cursor-hover .cursor-ring {
  width: 72px;
  height: 72px;
  background: var(--accent);
  border-color: transparent;
}
body.cursor-hover .cursor-dot {
  transform: translate(-50%, -50%) scale(0);
}
body.cursor-hover.cursor-has-label .cursor-ring__label {
  opacity: 1;
}

body.cursor-down .cursor-ring {
  width: 32px;
  height: 32px;
}

/* Hide native cursor only once JS confirms fine-pointer support */
body.has-custom-cursor.js-cursor-ready,
body.has-custom-cursor.js-cursor-ready a,
body.has-custom-cursor.js-cursor-ready button {
  cursor: none;
}

@media (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
  body.has-custom-cursor.js-cursor-ready,
  body.has-custom-cursor.js-cursor-ready a,
  body.has-custom-cursor.js-cursor-ready button {
    cursor: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smoke-canvas {
    display: none;
  }
}

/* ---------- Page transition overlay ---------- */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: var(--z-transition);
  pointer-events: none;
  display: flex;
}

.page-transition__panel {
  flex: 1;
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease-in-out);
}
.page-transition__panel--1 {
  background: var(--black);
}
.page-transition__panel--2 {
  background: var(--accent);
  transition-delay: 0.05s;
}

body.is-transitioning .page-transition__panel {
  transform: translateY(0);
}
