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

:root {
  --light: #f2eec2;
  --dark: #121110;
  --ember: #ff8a2a;
  --mouse-x: 50%;
  --mouse-y: 30%;
  --radius: 220px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  font-family: "Amarante", Georgia, serif;
  background-color: var(--dark);
  color: var(--light);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  text-align: center;
}

section {
  position: relative;
  width: 100%;
  height: 100svh;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  overflow: hidden;
}

.kicker,
.note,
.scroll-cue {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.kicker {
  color: rgba(242, 238, 194, 0.45);
}

/* ─────────── Intro / outro ─────────── */

.intro {
  background:
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(255, 138, 42, 0.08), transparent 70%),
    var(--dark);
}

[data-split] .char {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(0.3em);
  transition:
    opacity 1s var(--ease),
    filter 1.2s var(--ease),
    transform 1.2s var(--ease);
  transition-delay: calc(var(--i) * 35ms);
}

.is-in [data-split] .char {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: rgba(242, 238, 194, 0.4);
}

.scroll-cue span {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(to bottom, transparent, rgba(242, 238, 194, 0.6));
  animation: drip 2.2s var(--ease) infinite;
  transform-origin: top;
}

@keyframes drip {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ─────────── Spotlight ─────────── */

.spotlight {
  cursor: none;
  touch-action: pan-y;
}

.spotlight-photo {
  position: absolute;
  inset: -2%;
  background: url("https://images.unsplash.com/photo-1448375240586-882707db888b?w=2000&q=70&auto=format&fit=crop") center / cover no-repeat;
  filter: saturate(0.75) brightness(0.62) contrast(1.05);
  z-index: 0;
}

.spotlight-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 62rem;
}

.lantern-anchor {
  width: 6rem;
  height: 7rem;
}

.spotlight-content p {
  font-size: clamp(1.15rem, 2vw, 1.9rem);
  line-height: 1.3;
  text-align: center;
  color: rgba(242, 238, 194, 0.92);
  text-wrap: balance;
}

.note {
  position: absolute;
  z-index: 1;
  color: rgba(242, 238, 194, 0.7);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

/* Warm light bleeding onto whatever is revealed */
.spotlight-warm {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    circle calc(var(--radius) * 1.3) at var(--mouse-x) var(--mouse-y),
    rgba(255, 150, 60, 0.42) 0%,
    rgba(255, 110, 30, 0.16) 45%,
    transparent 75%
  );
  mix-blend-mode: overlay;
}

/* Darkness, with a soft hole where the flame is */
.spotlight-mask {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: var(--dark);
  --hole: radial-gradient(
    circle var(--radius) at var(--mouse-x) var(--mouse-y),
    transparent 0%,
    transparent 30%,
    rgba(0, 0, 0, 0.55) 62%,
    #000 100%
  );
  -webkit-mask: var(--hole);
  mask: var(--hole);
  opacity: 0.96;
}

.flame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

@media (max-width: 900px) {
  .note {
    display: none;
  }

  :root {
    --radius: 160px;
  }
}
