/* ==========================================================================
   KUZIVA — Design tokens
   ========================================================================== */
:root {
  --black: #0a0808;
  --near-black: #110d0d;
  --surface: #161010;
  --surface-raised: #1c1414;
  --burgundy: #4a141f;
  --burgundy-bright: #7a2233;
  --line: #2a1e1e;
  --warm-white: #f3ebe5;
  --muted: #b3a19c;
  --faint: #7a6b67;
  --blush: #c68a8f;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;
  --space-6: 8rem;

  --measure: 34rem;
  --ease-slow: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--warm-white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

img { max-width: 100%; display: block; }

ul { list-style: none; }

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

::selection { background: var(--burgundy); color: var(--warm-white); }

/* ==========================================================================
   Grain texture overlay
   ========================================================================== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Custom cursor (desktop only — toggled via JS by adding .has-cursor to body)
   ========================================================================== */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, width 0.25s var(--ease-slow), height 0.25s var(--ease-slow), background 0.25s ease;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--blush);
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(198, 138, 143, 0.5);
}

body.has-cursor .cursor-dot,
body.has-cursor .cursor-ring {
  opacity: 1;
}

body.cursor-active .cursor-ring {
  width: 52px;
  height: 52px;
  border-color: var(--blush);
}

/* ==========================================================================
   Stars / floating particles
   ========================================================================== */
.stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.star {
  position: absolute;
  background: var(--warm-white);
  border-radius: 50%;
  opacity: 0;
  animation: twinkle linear infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50% { opacity: var(--star-opacity, 0.6); }
}

/* ==========================================================================
   Intro screen
   ========================================================================== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9980;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  transition: opacity 1.4s var(--ease-slow), visibility 1.4s var(--ease-slow);
}

.intro.intro--hidden {
  opacity: 0;
  visibility: hidden;
}

.intro-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 var(--space-3);
  max-width: 36rem;
}

.intro-word {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  letter-spacing: 0.12em;
  color: var(--warm-white);
  opacity: 0;
}

.intro-lines {
  margin-top: var(--space-4);
  opacity: 0;
}

.intro-lines p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--muted);
  line-height: 1.7;
}

.intro-reveal {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--blush);
  opacity: 0;
}

.enter-btn {
  margin-top: var(--space-5);
  opacity: 0;
  border: 1px solid var(--line);
  padding: 0.9rem 2.6rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--warm-white);
  transition: border-color 0.5s ease, background 0.5s ease, letter-spacing 0.5s ease;
}

.enter-btn:hover,
.enter-btn:focus-visible {
  border-color: var(--burgundy-bright);
  background: rgba(122, 34, 51, 0.12);
  letter-spacing: 0.22em;
}

/* intro reveal steps, controlled by JS adding .is-visible */
[data-intro-step].is-visible {
  animation: introFade 1.4s var(--ease-slow) forwards;
}

@keyframes introFade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--space-4);
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity 0.8s var(--ease-slow), transform 0.8s var(--ease-slow), background 0.4s ease, padding 0.4s ease;
}

.nav.nav--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav.nav--scrolled {
  background: rgba(10, 8, 8, 0.82);
  backdrop-filter: blur(6px);
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  gap: var(--space-4);
}

.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--blush);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-slow);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--warm-white);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}

.nav-toggle span {
  height: 1px;
  background: var(--warm-white);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* ==========================================================================
   Generic layout helpers
   ========================================================================== */
main { position: relative; z-index: 1; }

section {
  position: relative;
  padding: var(--space-6) var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  margin-bottom: var(--space-5);
  color: var(--warm-white);
}

.eyebrow-word {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--blush);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}

.heart {
  color: var(--burgundy-bright);
}

/* Scroll reveal defaults — JS toggles .is-in */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-slow), transform 0.9s var(--ease-slow);
}

.reveal-up.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 8rem;
  padding-bottom: 6rem;
}

.hero-photo {
  width: min(78vw, 420px);
  margin-bottom: var(--space-5);
}

.hero-photo-frame {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-photo-frame::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(243, 235, 229, 0.08);
  z-index: 1;
  pointer-events: none;
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92);
  transition: transform 6s var(--ease-slow), filter 1.2s ease;
}

.hero-photo-frame:hover img {
  transform: scale(1.04);
  filter: saturate(1);
}

.hero-content { max-width: var(--measure); }

.hero-content h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  line-height: 1.25;
  margin-bottom: var(--space-3);
}

.hero-body {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
}

.scroll-indicator span {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--faint), transparent);
  background-color: transparent;
  position: relative;
  overflow: hidden;
}

.scroll-indicator span::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--blush);
  animation: scrollDrop 2.4s ease-in-out infinite;
}

@keyframes scrollDrop {
  0%   { top: -100%; }
  60%  { top: 100%; }
  100% { top: 100%; }
}

/* ==========================================================================
   The Feeling
   ========================================================================== */
.feeling {
  max-width: var(--measure);
  margin: 0 auto;
  text-align: center;
}

.feeling-lines {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feeling-line {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  color: var(--faint);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease-slow), transform 0.8s var(--ease-slow), color 0.8s ease;
}

.feeling-line.is-in {
  opacity: 1;
  transform: translateY(0);
  color: var(--warm-white);
}

.feeling-line--soft { font-style: italic; }

.feeling-close { margin-top: var(--space-5); }

.shona-line {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.6vw, 2rem);
  color: var(--blush);
  margin-bottom: var(--space-1);
}

.shona-meaning {
  color: var(--faint);
  font-size: 0.95rem;
  font-style: italic;
}

/* ==========================================================================
   Kuziva signature section
   ========================================================================== */
.kuziva {
  text-align: center;
  background: var(--near-black);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kuziva-word {
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 6.5rem);
  letter-spacing: 0.08em;
  color: var(--warm-white);
}

.kuziva-tagline {
  color: var(--blush);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  margin-top: var(--space-2);
  margin-bottom: var(--space-6);
}

.kuziva-layers {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-4);
  max-width: 60rem;
  margin: 0 auto;
  align-items: start;
  text-align: left;
}

.layer-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--faint);
  margin-bottom: var(--space-2);
}

.layer-known .layer-label { color: var(--blush); }

.layer-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
}

.layer-known .layer-list li { color: var(--warm-white); }

.layer-divider {
  width: 1px;
  align-self: stretch;
  background: var(--line);
}

.kuziva-close {
  margin-top: var(--space-6);
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--warm-white);
  line-height: 1.9;
}

/* ==========================================================================
   Things I notice
   ========================================================================== */
.notice { max-width: 42rem; margin: 0 auto; }

.notice-list {
  display: flex;
  flex-direction: column;
}

.notice-item {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.8s var(--ease-slow), transform 0.8s var(--ease-slow), color 0.5s ease;
}

.notice-item.is-in {
  opacity: 1;
  transform: translateX(0);
  color: var(--warm-white);
}

.notice-item:last-child { border-bottom: none; }

/* ==========================================================================
   Shona section
   ========================================================================== */
.shona {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.shona-block { margin-bottom: var(--space-5); }

.shona-block--last { margin-bottom: 0; }

.shona-primary {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  color: var(--warm-white);
}

.shona-secondary {
  color: var(--faint);
  font-style: italic;
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

/* ==========================================================================
   Pakadzama
   ========================================================================== */
.pakadzama {
  text-align: center;
  background: var(--near-black);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pakadzama-word {
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  font-size: clamp(2rem, 7vw, 3.4rem);
  color: var(--burgundy-bright);
  margin-bottom: var(--space-5);
}

.pakadzama-lines {
  max-width: var(--measure);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pakadzama-lines p {
  font-size: 1.05rem;
  color: var(--muted);
}

.pakadzama-close { margin-top: var(--space-5); }

/* ==========================================================================
   Music player
   ========================================================================== */
.music { max-width: 40rem; margin: 0 auto; }

.player {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: var(--space-4);
  display: flex;
  gap: var(--space-3);
}

.player-art {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.note { font-size: 1.8rem; color: var(--blush); }

.player-body { flex: 1; min-width: 0; }

.player-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.player-artist {
  color: var(--faint);
  font-size: 0.85rem;
  margin-bottom: var(--space-3);
}

.player-progress {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: var(--space-2);
}

.time { font-size: 0.75rem; color: var(--faint); min-width: 2.4em; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 2px;
  background: var(--line);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--blush);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: none;
  border-radius: 50%;
  background: var(--blush);
  cursor: pointer;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.ctrl-btn {
  font-size: 0.7rem;
  color: var(--muted);
  padding: 0.4rem;
  transition: color 0.3s ease;
}

.ctrl-btn:hover { color: var(--warm-white); }

.play-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.volume-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.volume-bar { width: 70px; }

.volume-icon { font-size: 0.85rem; opacity: 0.6; }

.playlist {
  border-top: 1px solid var(--line);
  padding-top: var(--space-2);
}

.playlist li {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0.3rem;
  font-size: 0.9rem;
  color: var(--faint);
  cursor: pointer;
  transition: color 0.3s ease, background 0.3s ease;
}

.playlist li:hover { color: var(--warm-white); }

.playlist li.active {
  color: var(--blush);
  background: rgba(198, 138, 143, 0.06);
}

.player-hint {
  margin-top: var(--space-2);
  font-size: 0.75rem;
  color: var(--faint);
  font-style: italic;
}

/* ==========================================================================
   Memories
   ========================================================================== */
.memories { text-align: center; }

.memories-sub {
  color: var(--faint);
  font-style: italic;
  font-family: var(--font-display);
  margin-bottom: var(--space-5);
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  max-width: 60rem;
  margin: 0 auto;
}

.memory-card {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.8s var(--ease-slow), transform 0.8s var(--ease-slow), border-color 0.4s ease;
}

.memory-card.is-in { opacity: 1; transform: scale(1); }

.memory-card:hover { border-color: var(--burgundy-bright); }

.memory-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.85);
  transition: transform 0.9s var(--ease-slow), filter 0.6s ease;
}

.memory-card:hover img {
  transform: scale(1.06);
  filter: saturate(1);
}

.memory-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 8, 8, 0.55), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.memory-card:hover::after { opacity: 1; }

/* ==========================================================================
   Letter
   ========================================================================== */
.letter { max-width: var(--measure); margin: 0 auto; }

.letter-body {
  border-left: 1px solid var(--burgundy);
  padding-left: var(--space-4);
}

.letter-body p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: var(--space-3);
  line-height: 1.8;
}

.letter-close {
  margin-top: var(--space-4);
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--blush);
}

/* ==========================================================================
   If love were...
   ========================================================================== */
.iflove {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.iflove-stage { position: relative; max-width: 46rem; height: 8rem; }

.iflove-line,
.iflove-final {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 3.4vw, 1.7rem);
  color: var(--muted);
  opacity: 0;
  transition: opacity 1.2s var(--ease-slow);
}

.iflove-line.is-active,
.iflove-final.is-active { opacity: 1; }

.iflove-final {
  font-style: normal;
  font-size: clamp(2.6rem, 9vw, 4.5rem);
  letter-spacing: 0.1em;
  color: var(--warm-white);
}

/* ==========================================================================
   Final section
   ========================================================================== */
.final {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--near-black);
  border-top: 1px solid var(--line);
}

.final-inner { max-width: var(--measure); }

.final-line {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.2vw, 1.6rem);
  color: var(--muted);
  margin-bottom: var(--space-2);
}

.final-shona {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--blush);
}

.final-word {
  margin-top: var(--space-5);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 9vw, 4rem);
  letter-spacing: 0.12em;
}

.final-meaning {
  margin-top: var(--space-2);
  font-style: italic;
  color: var(--faint);
}

.final-closing {
  margin-top: var(--space-4);
  font-size: 0.85rem;
  color: var(--faint);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .kuziva-layers {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .layer-divider { width: 60%; height: 1px; margin: 0 auto; }
  .memory-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  section { padding: var(--space-5) var(--space-2); }

  .nav { padding: 1.2rem var(--space-2); }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(72vw, 300px);
    background: var(--near-black);
    border-left: 1px solid var(--line);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: var(--space-3);
    padding: 0 var(--space-4);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-slow);
  }

  .nav-links.nav-links--open { transform: translateX(0); }

  .nav-toggle.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .memory-grid { grid-template-columns: repeat(2, 1fr); }

  .player { flex-direction: column; }
  .player-art { width: 60px; height: 60px; }

  .letter-body { padding-left: var(--space-2); }
}

@media (max-width: 400px) {
  .memory-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .enter-btn { padding: 0.8rem 2rem; }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9995;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(6, 4, 4, 0.94);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-slow), visibility 0.45s var(--ease-slow);
}

.lightbox.lightbox--open {
  opacity: 1;
  visibility: visible;
}

.lightbox-figure {
  max-width: min(88vw, 900px);
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.96);
  transition: transform 0.45s var(--ease-slow);
}

.lightbox--open .lightbox-img { transform: scale(1); }

.lightbox-count {
  margin-top: var(--space-2);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  color: var(--warm-white);
  border-color: var(--burgundy-bright);
}

.lightbox-close {
  top: 1.4rem;
  right: 1.4rem;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  line-height: 1;
}

.lightbox-arrow {
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.6rem;
  transform: translateY(-50%);
}

.lightbox-arrow--prev { left: 1.4rem; }
.lightbox-arrow--next { right: 1.4rem; }

@media (max-width: 640px) {
  .lightbox-arrow--prev { left: 0.6rem; }
  .lightbox-arrow--next { right: 0.6rem; }
  .lightbox-arrow { width: 38px; height: 38px; }
  .lightbox-close { top: 0.8rem; right: 0.8rem; }
}

/* ==========================================================================
   Romantic animations
   ========================================================================== */

/* Heartbeat pulse on every heart glyph */
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.28); }
  28% { transform: scale(1); }
  42% { transform: scale(1.18); }
  56% { transform: scale(1); }
}

.heart {
  display: inline-block;
  animation: heartbeat 2.6s ease-in-out infinite;
}

/* Breathing burgundy glow behind the hero photo */
@keyframes breathe {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.75; }
}

.hero-photo {
  position: relative;
}

.hero-photo::before {
  content: '';
  position: absolute;
  inset: -20px;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(122, 34, 51, 0.5), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
  animation: breathe 6s ease-in-out infinite;
}

/* Slow glowing pulse on the closing KUZIVA word */
@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 16px rgba(198, 138, 143, 0.1), 0 0 42px rgba(122, 34, 51, 0.16); }
  50% { text-shadow: 0 0 24px rgba(198, 138, 143, 0.38), 0 0 68px rgba(122, 34, 51, 0.45); }
}

.final-word {
  animation: glowPulse 5s ease-in-out infinite;
}

/* Gentle float on the big KUZIVA signature word */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.kuziva-word.is-in {
  animation: floatY 7s ease-in-out infinite;
}

/* Floating hearts field (hero, if-love and final sections) */
.heart-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.heart-float {
  position: absolute;
  bottom: -2.2rem;
  opacity: 0;
  will-change: transform, opacity;
  animation: heartRise var(--rise-duration, 11s) linear var(--rise-delay, 0s) infinite;
}

@keyframes heartRise {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) rotate(0deg) scale(var(--heart-size, 1));
  }
  12% { opacity: var(--heart-opacity, 0.3); }
  82% { opacity: var(--heart-opacity, 0.3); }
  100% {
    opacity: 0;
    transform: translateY(-72vh) translateX(var(--heart-drift, 20px))
      rotate(var(--heart-tilt, 25deg)) scale(var(--heart-size, 1));
  }
}

/* Tiny hearts trailing the cursor */
.cursor-heart {
  position: fixed;
  z-index: 9998;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: cursorHeart 1.1s ease-out forwards;
}

@keyframes cursorHeart {
  0% { opacity: 0.75; transform: translate(-50%, -50%) scale(0.55); }
  100% { opacity: 0; transform: translate(-50%, -170%) scale(1.15) rotate(14deg); }
}

/* Burst of hearts when entering the site */
.burst-heart {
  position: fixed;
  z-index: 9996;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: burstHeart 1.5s var(--ease-slow) forwards;
}

@keyframes burstHeart {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.35); }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--bx, 0px)), calc(-50% + var(--by, -90px)))
      scale(1.15) rotate(var(--br, 20deg));
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-up,
  .feeling-line,
  .notice-item,
  .memory-card {
    opacity: 1 !important;
    transform: none !important;
  }

  .memory-card img,
  .hero-photo-frame img {
    transform: none !important;
  }

  .heart,
  .heart-float,
  .cursor-heart,
  .burst-heart,
  .hero-photo::before,
  .final-word,
  .kuziva-word.is-in {
    animation: none !important;
  }

  .heart-float,
  .cursor-heart,
  .burst-heart {
    display: none !important;
  }
}
