/* ── Hero: "One world, every style" ──────────────────────────────────────────
 * Full-viewport hero over the canvas scene from /public/js/hero-scene.js.
 * Tokens come from base.css (--velvet, --silk, --candle, --rose-ash).
 */

.liquid-glass {
  background: rgba(255, 255, 255, 0.035);
  background-blend-mode: luminosity;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255, 236, 210, 0.45) 0%, rgba(255, 236, 210, 0.15) 20%,
    rgba(255, 236, 210, 0) 40%, rgba(255, 236, 210, 0) 60%,
    rgba(255, 236, 210, 0.15) 80%, rgba(255, 236, 210, 0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.kz-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--velvet);
  display: flex;
  flex-direction: column;
}
.kz-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
/* Scrim: keeps the headline readable over the brightest style. */
.kz-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 34%, rgba(10, 5, 8, 0.66), transparent 78%),
    linear-gradient(to bottom, rgba(10, 5, 8, 0.6), transparent 26%);
}

/* The hero's bottom edge dissolves into the next section instead of cutting. */
.kz-hero::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 16vh;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 6, 8, 0), rgba(10, 6, 8, 0.75) 62%, #0a0608 92%);
}

/* The landing page sits on one base dark, so every section can fade into it. */
body.kz-landing {
  background: #0a0608;
  /* base.css sets overflow-x: hidden on body, which makes the body its own
     scroll container and silently breaks position: sticky (the pinned tree).
     clip hides sideways overflow the same way without that side effect. */
  overflow-x: clip;
}

/* ── Nav ── */
.kz-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px clamp(16px, 4vw, 56px);
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease, transform 0.35s ease;
}
.kz-nav.is-hidden { transform: translateY(-100%); }
.kz-nav.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(10, 6, 8, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(216, 163, 94, 0.14);
}
.kz-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--candle);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.kz-links {
  display: flex;
  list-style: none;
  align-items: center;
  font-size: 0.9rem;
}
.kz-links li + li::before {
  content: '•';
  color: var(--rose-ash);
  opacity: 0.5;
  margin: 0 14px;
}
.kz-links a {
  color: var(--rose-ash);
  text-decoration: none;
  transition: color 0.2s;
}
.kz-links a:hover { color: var(--silk); }
.kz-nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.kz-signin {
  color: var(--silk);
  text-decoration: none;
  font-size: 0.9rem;
}
/* auth-ui.js fills this slot: Sign in + Create account for guests, the
   avatar menu once signed in. coins.js puts the coin badge beside it. */
.kz-auth-slot { display: flex; align-items: center; gap: 18px; }
button.kz-signin { background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; }
button.kz-btn { border: 0; font-family: inherit; cursor: pointer; }
.kz-signin:hover { color: var(--candle); }

/* Menu button and panel, for widths where the nav links don't fit. The panel
   sits outside the nav (a blurred, transformed nav would trap a fixed child)
   and just under it, so the logo and the close button stay on top. */
.kz-menu-btn {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--silk);
  cursor: pointer;
  flex: none;
  align-items: center;
  justify-content: center;
}
.kz-menu-btn i {
  position: absolute;
  top: calc(50% - 0.75px);
  left: 12px; right: 12px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s ease;
}
.kz-menu-btn i:first-child { transform: translateY(-3.5px); }
.kz-menu-btn i:last-child  { transform: translateY(3.5px); }
.kz-menu-btn[aria-expanded="true"] i:first-child { transform: rotate(45deg); }
.kz-menu-btn[aria-expanded="true"] i:last-child  { transform: rotate(-45deg); }
.kz-menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  padding: 104px clamp(16px, 6vw, 48px) 40px;
  overflow-y: auto;
  background:
    radial-gradient(70% 45% at 50% 0%, rgba(98, 78, 220, 0.18), transparent 70%),
    rgba(10, 6, 8, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.kz-menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
.kz-menu-links { list-style: none; }
.kz-menu-links a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(216, 163, 94, 0.12);
  font-family: 'Instrument Serif', 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--silk);
  text-decoration: none;
}
.kz-menu-links a:hover { color: var(--candle); }
.kz-menu-auth { display: flex; gap: 12px; margin-top: 32px; }
.kz-menu-auth .kz-btn { flex: 1; padding-left: 12px; padding-right: 12px; white-space: nowrap; }
body.kz-signed-in .kz-menu-auth { display: none; }

/* ── Content ── */
.kz-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(120px, 19vh, 190px) 16px 0;
}
.kz-proof {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px 5px 5px;
  border-radius: 99px;
  font-size: 0.82rem;
  color: var(--silk);
  opacity: 0.9;
}
.kz-proof-tag {
  background: var(--silk);
  color: var(--velvet);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
}

.kz-hero h1 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--silk);
  margin: 26px 0 20px;
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.55);
}
.kz-hero h1 em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--candle);
}
.kz-hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  line-height: 1.6;
  color: rgba(244, 233, 228, 0.84);
  max-width: 560px;
  margin: 0 auto 34px;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.6);
}
.kz-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.kz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 99px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.kz-btn:hover { transform: scale(1.03); }
.kz-btn:active { transform: scale(0.98); }
.kz-btn-solid { background: var(--silk); color: var(--velvet); }
.kz-btn-glass { color: var(--silk); }
.kz-btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ── Style label ── */
.kz-style-pill {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(44px, 7vh, 64px);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 99px;
  font: 600 0.72rem/1 'Inter', system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silk);
  cursor: pointer;
  white-space: nowrap;
}
.kz-style-now { color: var(--rose-ash); }
.kz-style-name { color: var(--candle); min-width: 7.5em; text-align: left; }
.kz-style-dots { display: inline-flex; gap: 4px; }
.kz-style-dots i {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(244, 233, 228, 0.3);
  transition: background 0.3s, width 0.3s;
}
.kz-style-dots i.on { background: var(--candle); width: 12px; border-radius: 2px; }

/* ── Entrance ── */
.kz-rise { opacity: 0; transform: translateY(20px); animation: kzRise 0.7s ease-out forwards; }
.kz-rise-1 { animation-delay: 0.1s; }
.kz-rise-2 { animation-delay: 0.25s; }
.kz-rise-3 { animation-delay: 0.4s; }
.kz-rise-4 { animation-delay: 0.55s; }
@keyframes kzRise { to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .kz-links { display: none; }
  .kz-menu-btn { display: inline-flex; }
  .kz-nav-actions { gap: 12px; }
}
@media (min-width: 861px) {
  .kz-menu { display: none; }
}
/* The smallest phones have room for the logo and the menu button only; the
   menu carries both account buttons. */
@media (max-width: 350px) {
  .kz-nav #navSignUpBtn { display: none; }
}
.kz-proof-short { display: none; }

@media (max-width: 520px) {
  .kz-signin { display: none; }
  .kz-nav { gap: 16px; }
  .kz-auth-slot { gap: 10px; }
  .kz-nav .kz-btn-sm { padding: 9px 14px; white-space: nowrap; }
  .kz-nav .nav-user-name, .kz-nav .nav-user-caret { display: none; }
  .kz-nav .nav-user-btn { padding: 4px; }
  .kz-proof { font-size: 0.74rem; padding: 4px 14px 4px 4px; }
  .kz-proof-long { display: none; }
  .kz-proof-short { display: inline; }
  .kz-hero-content { padding-top: 104px; }
  .kz-hero h1 { margin: 20px 0 14px; }
  .kz-hero-sub { font-size: 0.95rem; margin-bottom: 24px; }
  .kz-hero-actions { gap: 10px; flex-wrap: nowrap; }
  .kz-hero-actions .kz-btn { padding: 12px 18px; font-size: 0.86rem; white-space: nowrap; }
  .kz-style-now { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .kz-rise { animation: none; opacity: 1; transform: none; }
  .kz-print img { transition: none; }
  .kz-print.is-in .kz-print-glow { animation: none; opacity: 0.55; }
  .kz-lift { transition: none; }
  .kz-h2 em { animation: none; }
}

/* ── Section 1: pillars (Discover · Feel · Create) ───────────────────────────
 * Illustrated prints from /public/img/pillars, brought to life by /public/js/pillars.js.
 */
.kz-section {
  position: relative;
  overflow: hidden;
  overflow: clip;                                  /* clips like hidden, but keeps sticky children working */
  /* Stacked, one section's end and the next one's start add up: together
     these leave roughly 125-175px between one section's content and the next. */
  padding: clamp(64px, 9vh, 104px) 16px clamp(48px, 6vh, 72px);
  background:
    radial-gradient(60% 34% at 50% 26%, rgba(98, 78, 220, 0.2), transparent 72%),   /* starts below the seam */
    radial-gradient(38% 30% at 14% 72%, rgba(216, 163, 94, 0.11), transparent 70%),
    radial-gradient(38% 30% at 86% 70%, rgba(124, 92, 255, 0.13), transparent 70%),
    #0a0608;
  text-align: center;
}
.kz-section > * { position: relative; z-index: 1; }
/* Section 1 ends on the page's base dark, so the next section can start from
   the same colour: its glows and dust fade out over the last stretch. */
.kz-pillars::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 6, 8, 0), #0a0608 90%);
}
.kz-section > .kz-dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
/* Headline and lead rise in when the section arrives. */
.kz-lift { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.kz-lift.is-in { opacity: 1; transform: none; }
.kz-lift + .kz-lift { transition-delay: 0.12s; }
.kz-h2 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--silk);
  margin: 0 auto 18px;
  max-width: 900px;
}
.kz-h2 em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  /* The shimmer is clipped to this box, so it has to reach every part of the
     italic: the right overhang, and the tail of a g or y swinging out to the
     left and down. The negative margin gives back the left padding, so the
     word doesn't move. */
  padding: 0 0.08em 0.12em 0.16em;
  margin-left: -0.16em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  color: var(--candle);
  background: linear-gradient(100deg, var(--candle) 38%, #fff1d2 50%, var(--candle) 62%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: kzShimmer 6s ease-in-out infinite;
}
@keyframes kzShimmer { 0%, 30% { background-position: 100% 0; } 70%, 100% { background-position: 0 0; } }
.kz-lead {
  color: var(--rose-ash);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto clamp(56px, 9vh, 96px);
}
.kz-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  max-width: 1080px;
  margin: 0 auto clamp(56px, 8vh, 88px);
}
.kz-pillar { position: relative; }
.kz-pillar::before {                               /* lit from behind, like a gallery print */
  content: '';
  position: absolute;
  left: 50%;
  top: min(160px, 38%);
  width: min(420px, 120%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(110, 90, 240, 0.22), rgba(216, 163, 94, 0.08) 45%, transparent 68%);
  pointer-events: none;
  z-index: -1;
}
.kz-print {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 26px;
  border-radius: 14px;
  overflow: hidden;
  background: #efe9dd;
  box-shadow:
    0 0 0 1px rgba(216, 163, 94, 0.18),
    0 30px 60px -20px rgba(0, 0, 0, 0.75);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease-out, box-shadow 0.4s ease;
}
.kz-print:hover {
  box-shadow:
    0 0 0 1px rgba(216, 163, 94, 0.35),
    0 30px 60px -20px rgba(0, 0, 0, 0.75),
    0 0 48px -8px rgba(216, 163, 94, 0.35);
}
.kz-print img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 0 100% 0);                    /* develops top to bottom */
  transition: clip-path 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s);
}
.kz-print.is-in img { clip-path: inset(0); }
/* The gold orb breathes: a warm bloom centred on it (--ox/--oy per print). */
.kz-print-glow {
  position: absolute;
  left: var(--ox);
  top: var(--oy);
  width: 44%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 110, 0.55) 0%, rgba(255, 200, 80, 0.16) 42%, transparent 70%);
  opacity: 0;
  pointer-events: none;
}
.kz-print.is-in .kz-print-glow {
  animation: kzBreathe 3.4s ease-in-out calc(var(--d, 0s) + 1.2s) infinite alternate both;
}
@keyframes kzBreathe {
  from { opacity: 0.25; transform: translate(-50%, -50%) scale(0.85); }
  to   { opacity: 0.8;  transform: translate(-50%, -50%) scale(1.08); }
}
.kz-pillar h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--silk);
  margin-bottom: 8px;
}
.kz-pillar p {
  color: var(--rose-ash);
  font-size: 0.93rem;
  line-height: 1.6;
  max-width: 290px;
  margin: 0 auto;
}
.kz-tagline {
  color: var(--rose-ash);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.kz-tagline em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.15em;
  color: var(--candle);
}

.kz-dots { display: none; }

/* Phones: the prints become a swipe carousel, one centred, neighbours peeking. */
@media (max-width: 760px) {
  .kz-pillar-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 8px 12vw 12px;
    margin: 0 -16px 20px;                          /* bleed to the screen edges */
    -webkit-overflow-scrolling: touch;
  }
  .kz-pillar-grid::-webkit-scrollbar { display: none; }
  .kz-pillar { flex: 0 0 76vw; scroll-snap-align: center; }
  .kz-pillar::before { display: none; }          /* the scroller would clip it into a hard edge */
  .kz-print { margin-bottom: 20px; }
  .kz-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 44px; }
  .kz-dots button {
    width: 7px; height: 7px;
    padding: 0;
    border: none;
    border-radius: 99px;
    background: rgba(244, 233, 228, 0.28);
    transition: width 0.3s, background 0.3s;
    cursor: pointer;
  }
  .kz-dots button.on { width: 22px; background: var(--candle); }
}

/* ── Art for every emotion ────────────────────────────────────────────────────
 * One stage, one living painting at a time (/public/js/emotions-section.js):
 * tabs, arrows and swipe to move between them, a caption, a sound pill.
 */
.kz-emotions .kz-lead { margin-bottom: clamp(30px, 5vh, 52px); }
/* As wide as it can be while the whole painting, its caption and tabs still
   fit on a short screen: 16:9 from the height left over. */
.kz-emo { width: min(1180px, 100%, calc((100vh - 200px) * 16 / 9)); width: min(1180px, 100%, calc((100svh - 200px) * 16 / 9)); margin: 0 auto; }
.kz-emo-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #120c10;
  box-shadow: 0 0 0 1px rgba(216, 163, 94, 0.22), 0 40px 90px -40px rgba(0, 0, 0, 0.95), 0 0 80px -30px rgba(216, 163, 94, 0.25);
  touch-action: pan-y;                             /* sideways swipes change the painting */
}
.kz-emo-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition: opacity 0.6s ease;
}
.kz-emo-canvas.is-entering { opacity: 0; }
.kz-emo-arrow,
.kz-emo-sound {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(255, 236, 210, 0.35);
  background: rgba(20, 16, 30, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--silk);
  cursor: pointer;
  transition: opacity 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}
.kz-emo-arrow {
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  transform: translateY(-50%);
  opacity: 0;
}
.kz-emo-arrow.prev { left: 18px; }
.kz-emo-arrow.next { right: 18px; }
.kz-emo-stage:hover .kz-emo-arrow,
.kz-emo-arrow:focus-visible { opacity: 1; }
.kz-emo-sound {
  top: 5.5%;
  right: 4.5%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 99px;
  font: 500 0.8rem 'Inter', system-ui, sans-serif;
}
.kz-emo-arrow:hover, .kz-emo-sound:hover,
.kz-emo-arrow:focus-visible, .kz-emo-sound:focus-visible { background: rgba(20, 16, 30, 0.8); border-color: var(--candle); outline: none; }
.kz-emo-sound .bars { display: none; }
.kz-emo-sound[aria-pressed="true"] .bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.kz-emo-sound[aria-pressed="true"] .mute { display: none; }
.kz-emo-sound .bars i { width: 2px; background: var(--candle); border-radius: 1px; animation: kzBar 1s ease-in-out infinite; }
.kz-emo-sound .bars i:nth-child(1) { height: 5px; }
.kz-emo-sound .bars i:nth-child(2) { height: 11px; animation-delay: 0.2s; }
.kz-emo-sound .bars i:nth-child(3) { height: 7px; animation-delay: 0.4s; }
@keyframes kzBar { 50% { transform: scaleY(0.4); } }
/* The caption: the emotion in gold, then the moment and the medium. */
.kz-emo-caption {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 14px;
  min-height: 1.5em;
  margin: 18px 0 0;
  color: rgba(244, 233, 228, 0.62);
  font-size: 0.92rem;
}
.kz-emo-caption strong {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.1;
  color: var(--candle);
}
.kz-emo-caption span + span::before { content: '·'; margin-right: 14px; opacity: 0.6; }
.kz-emo-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.kz-emo-tabs button {
  flex: none;
  padding: 9px 18px;
  border: 1px solid rgba(216, 163, 94, 0.3);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(244, 233, 228, 0.78);
  font: 500 0.86rem 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.kz-emo-tabs button:hover { color: var(--candle); border-color: var(--candle); }
.kz-emo-tabs button[aria-selected="true"] { background: var(--candle); border-color: var(--candle); color: #1a1014; }
.kz-emo-tabs button:focus-visible { outline: 2px solid var(--candle); outline-offset: 2px; }

/* "Enter Sanctuary": a glass pill with a gold edge, a slow sheen crossing it. */
.kz-enter {
  gap: 10px;
  margin-top: clamp(30px, 4.5vh, 46px);
  padding: 16px 34px;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--silk);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(216, 163, 94, 0.38), 0 14px 44px -14px rgba(216, 163, 94, 0.5);
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.kz-enter::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 240, 210, 0.24) 48%, transparent 66%);
  background-size: 250% 100%;
  animation: kzSheen 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes kzSheen { 0%, 45% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
.kz-enter svg { transition: transform 0.25s ease; }
.kz-enter:hover {
  background: rgba(216, 163, 94, 0.12);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.16), 0 0 0 1px rgba(216, 163, 94, 0.7), 0 18px 54px -12px rgba(216, 163, 94, 0.7);
}
.kz-enter:hover svg { transform: translateX(4px); }
.kz-enter:focus-visible { outline: 2px solid var(--candle); outline-offset: 3px; }

/* Phones: the painting runs edge to edge; swipe it, or scroll the tab strip. */
@media (max-width: 760px) {
  .kz-emo { width: auto; }
  .kz-emo-stage { margin: 0 -16px; border-radius: 0; }
  .kz-emo-arrow { display: none; }
  .kz-emo-sound { top: 8px; right: 8px; padding: 6px 10px 6px 8px; font-size: 0.72rem; }
  .kz-emo-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 16px -16px 0;
    padding: 0 16px;
  }
  .kz-emo-tabs::-webkit-scrollbar { display: none; }
}
@media (hover: none) and (min-width: 761px) { .kz-emo-arrow { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .kz-nav { transition: background 0.3s ease; }
  .kz-enter::after { animation: none; }
  .kz-emo-canvas { transition: none; }
  .kz-emo-sound .bars i { animation: none; }
}

/* ── Section 2: Artist Spirits (coming soon) ──────────────────────────────────
 * Starfield backdrop from /public/img/commission, chat box driven by
 * /public/js/commission.js.
 */
.kz-commission {
  min-height: min(82vh, 700px);                    /* a full starfield, without padding tall screens with empty sky */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;                         /* the page's base dark shows at the edges */
}
.kz-section > .kz-commission-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url('/public/img/commission/starfield-m.webp') center / cover no-repeat;
  /* The starfield itself fades to nothing at the top and bottom, so the seams
     with the neighbouring sections are the same page colour on both sides. */
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%, rgba(0, 0, 0, 0.12) 10%, rgba(0, 0, 0, 0.36) 20%, rgba(0, 0, 0, 0.66) 30%,
    rgba(0, 0, 0, 0.9) 40%, #000 48%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom,
    transparent 0%, rgba(0, 0, 0, 0.12) 10%, rgba(0, 0, 0, 0.36) 20%, rgba(0, 0, 0, 0.66) 30%,
    rgba(0, 0, 0, 0.9) 40%, #000 48%, #000 78%, transparent 100%);
}
/* Blend into the sections above and below instead of starting as a block. */
.kz-commission-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46% 42% at 50% 50%, rgba(6, 4, 12, 0.55), transparent 80%);
}
@media (min-width: 900px) {
  .kz-section > .kz-commission-bg { background-image: url('/public/img/commission/starfield.webp'); }
}
/* Ink that follows the pointer (spirit-fluid.js), added onto the starfield:
   black is "no ink", so screen blending lets the stars through. */
.kz-section > .kz-fluid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  animation: kzFadeIn 1.2s ease 0.2s forwards;
}
@keyframes kzFadeIn { to { opacity: 1; } }

.kz-soon {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--candle);
  margin-bottom: 22px;
}

.kz-spirit-font {
  font-family: 'Inter', 'Noto Sans Devanagari', 'Noto Sans Bengali', 'Noto Sans Tamil', 'Noto Sans Telugu',
    'Noto Sans Gurmukhi', 'Noto Sans Gujarati', 'Noto Sans Kannada', 'Noto Sans Malayalam', 'Noto Sans Oriya', sans-serif;
}

/* The chat box, ringed by a slowly turning streak of gold and violet light. */
@property --kz-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.kz-spirit {
  position: relative;
  width: min(760px, 100%);
  margin: 8px auto 20px;
  border-radius: 28px;
}
.kz-spirit::before,
.kz-spirit::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from var(--kz-a), transparent 0 58%, rgba(216, 163, 94, 0.95) 70%, rgba(150, 120, 255, 0.95) 80%, transparent 92%);
  animation: kzSpin 7s linear infinite;
  pointer-events: none;
}
.kz-spirit::before {                               /* the crisp ring */
  padding: 1.5px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.kz-spirit::after {                                /* its soft glow */
  inset: -6px;
  filter: blur(18px);
  opacity: 0.5;
  z-index: -1;
}
@keyframes kzSpin { to { --kz-a: 360deg; } }
.kz-spirit-box {
  position: relative;
  text-align: left;
  padding: 20px 18px 12px 22px;
  border-radius: 27px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 6, 16, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.kz-spirit-text {
  min-height: 3.2em;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: var(--silk);
}
.kz-caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 2px;
  vertical-align: -0.2em;
  background: var(--candle);
  animation: kzBlink 1s steps(1) infinite;
}
@keyframes kzBlink { 50% { opacity: 0; } }
.kz-spirit-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.kz-spirit-who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 6px 12px 6px 8px;
  border-radius: 99px;
  background: rgba(150, 120, 255, 0.13);
  color: #cdbfff;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.kz-spirit-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--candle), #8f7bff);
  box-shadow: 0 0 10px rgba(216, 163, 94, 0.8);
}
.kz-spirit-say {
  flex: 1;
  min-width: 0;
  color: var(--rose-ash);
  font-size: 0.86rem;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kz-spirit-go {
  flex: none;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--silk);
  color: var(--velvet);
  transition: transform 0.2s ease;
}
.kz-spirit-go:hover { transform: scale(1.08); }

.kz-langs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  max-width: 760px;
  margin: 0 auto 40px;
}
.kz-langs button {
  padding: 4px 2px;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.92rem;
  color: rgba(244, 233, 228, 0.42);
  cursor: pointer;
  transition: color 0.3s ease;
}
.kz-langs button:hover { color: rgba(244, 233, 228, 0.8); }
.kz-langs button.on { color: var(--candle); }

.kz-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Phones: the language row becomes a swipe strip; the translation drops below. */
@media (max-width: 760px) {
  .kz-spirit-bar { flex-wrap: wrap; }
  .kz-spirit-say { order: 3; flex-basis: 100%; white-space: normal; }
  .kz-langs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 16px;
    margin: 0 -16px 36px;
    width: calc(100% + 32px);
  }
  .kz-langs::-webkit-scrollbar { display: none; }
  .kz-langs button { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  .kz-spirit::before, .kz-spirit::after, .kz-caret { animation: none; }
}

/* ── Section 3: the Kalpavriksha ──────────────────────────────────────────────
 * An illustrated tree drawn in by /public/js/kalpavriksha.js as the stage pins,
 * with the artworks hanging from its branches and the four offerings rising in
 * the corners. Phones: no pin and no frames; the tree draws in as it arrives
 * and the offerings become a swipe carousel of cards.
 */
/* The rays overflow the stage and would be cut where the section ends; they
   fade into the base dark over the bottom padding instead. */
.kz-wish::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(48px, 6vh, 72px);                  /* the section's bottom padding, so it never dims the buttons */
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 6, 8, 0), #0a0608);
}
.kz-wish .kz-lead { margin-bottom: 0; }
.kz-limitless {
  display: block;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--candle);
  margin: 6px 0 0;
}
.kz-tree-scroller {
  position: relative;
  height: 290vh;                                   /* the pin lasts 190vh of scrolling */
  margin: 0 -16px;
}
.kz-tree-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
}
.kz-tree-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}
/* Sacred light behind the crown, rising with the drawing (--grow). */
.kz-tree-aura,
.kz-tree-rays {
  position: absolute;
  left: 50%;
  top: 46%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: var(--grow, 0);
}
.kz-tree-aura {
  width: min(1200px, 130vw);
  background: radial-gradient(circle, rgba(216, 163, 94, 0.15), rgba(124, 92, 255, 0.07) 34%, transparent 62%);
}
.kz-tree-rays {
  width: min(1500px, 160vw);
  background: repeating-conic-gradient(from 0deg, rgba(255, 222, 165, 0.06) 0deg 1.6deg, transparent 1.6deg 11deg);
  -webkit-mask-image: radial-gradient(circle, #000 8%, transparent 58%);
  mask-image: radial-gradient(circle, #000 8%, transparent 58%);
  animation: kzRays 120s linear infinite;
}
@keyframes kzRays { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* The illustration's box: the frames are placed in its percentages. */
.kz-tree-box { position: absolute; z-index: 2; }
.kz-hang {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(106px * var(--scale, 1));
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  transform: translateX(-50%);
  transform-origin: 50% 0;                         /* swings from its hook */
  opacity: 0;
  pointer-events: none;
}
.kz-hang.is-hung {
  opacity: 1;
  pointer-events: auto;
  animation: kzDrop 1s cubic-bezier(0.3, 1.5, 0.5, 1) both, kzSwing 5.5s ease-in-out calc(1s + var(--sw)) infinite alternate;
}
@keyframes kzDrop {
  from { opacity: 0; transform: translateX(-50%) translateY(-28px) rotate(7deg); }
  to   { opacity: 1; transform: translateX(-50%) rotate(0deg); }
}
@keyframes kzSwing {
  from { transform: translateX(-50%) rotate(-1.6deg); }
  to   { transform: translateX(-50%) rotate(1.6deg); }
}
.kz-hang-wire {
  display: block;
  width: 70%;
  height: calc(var(--wire) * 1px * var(--scale, 1));
  margin: 0 auto;
  overflow: visible;
}
.kz-hang-wire path { fill: none; stroke: #e9c27a; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.kz-hang-frame {
  display: block;
  padding: 5px;
  border-radius: 2px;
  background: linear-gradient(135deg, #6b4a20, #f4d58f 18%, #9c6b2e 36%, #f7dfa6 55%, #8a5d27 75%, #e9c27a);
  box-shadow: 0 0 0 1px rgba(255, 242, 205, 0.45) inset, 0 16px 34px -10px rgba(0, 0, 0, 0.85), 0 0 26px -8px rgba(216, 163, 94, 0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.kz-hang-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: 0 0 0 1.5px rgba(55, 32, 8, 0.85);
}
.kz-hang:hover .kz-hang-frame,
.kz-hang:focus-visible .kz-hang-frame {
  transform: scale(1.12);
  box-shadow: 0 0 0 1px rgba(255, 242, 205, 0.6) inset, 0 22px 44px -10px rgba(0, 0, 0, 0.9), 0 0 44px -4px rgba(216, 163, 94, 0.6);
}
.kz-hang:focus-visible { outline: none; }

/* ── The four offerings ── */
.kz-points { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.kz-point {
  position: absolute;
  width: min(300px, 23vw);
  text-align: left;
  pointer-events: auto;
}
.kz-point.tl, .kz-point.tr { top: calc(78px + 2vh); }         /* clear of the nav bar */
.kz-point.bl, .kz-point.br { bottom: 6%; }
.kz-point.tl, .kz-point.bl { left: 3.5%; }
.kz-point.tr, .kz-point.br { right: 3.5%; text-align: right; }
/* A soft pool of shadow behind the text, so fine roots and leaves fade under it. */
.kz-point::before {
  content: '';
  position: absolute;
  inset: -40% -30%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(10, 6, 8, 0.82), rgba(10, 6, 8, 0.5) 60%, transparent);
  pointer-events: none;
}
.kz-point-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--candle);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.kz-point.tr .kz-point-kicker, .kz-point.br .kz-point-kicker { flex-direction: row-reverse; }
/* The icon sits in a small glowing ring. */
.kz-point-kicker svg {
  flex: none;
  box-sizing: content-box;
  width: 16px;
  height: 16px;
  padding: 7px;
  border-radius: 50%;
  border: 1px solid rgba(216, 163, 94, 0.5);
  background: rgba(216, 163, 94, 0.08);
  box-shadow: 0 0 18px -2px rgba(216, 163, 94, 0.5);
}
/* A thin gold line draws out from the label. */
.kz-point-kicker::after {
  content: '';
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, var(--candle), transparent);
  transition: width 0.9s ease 0.35s;
}
.kz-point.tr .kz-point-kicker::after, .kz-point.br .kz-point-kicker::after { background: linear-gradient(270deg, var(--candle), transparent); }
.kz-point h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 2.5vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--silk);
  margin: 14px 0 12px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
}
/* Each word rises out of a soft blur, one after another (--w: its index). */
.kz-w {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  filter: blur(6px);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease;
  transition-delay: calc(var(--w) * 70ms + 120ms);
}
.kz-point h3 em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  text-shadow: none;
}
/* The gold words shimmer (applied per word: a gradient clipped to text does
   not survive inline-block children). */
.kz-point h3 em .kz-w {
  padding-right: 0.06em;
  color: var(--candle);
  background: linear-gradient(100deg, var(--candle) 38%, #fff1d2 50%, var(--candle) 62%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: kzShimmer 5s ease-in-out infinite;
}
.kz-point > p:last-child {
  color: rgba(244, 233, 228, 0.72);
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0;
  transition: opacity 0.8s ease 0.5s;
}
.kz-point.is-in .kz-point-kicker { opacity: 1; transform: none; }
.kz-point.is-in .kz-point-kicker::after { width: 44px; }
.kz-point.is-in .kz-w { opacity: 1; transform: none; filter: none; }
.kz-point.is-in > p:last-child { opacity: 1; }
.kz-points-dots { display: none; }
.kz-wish .kz-hero-actions { margin-top: 26px; }

/* ── Phones: no pin, no frames; the tree, then the offerings as swipe cards ── */
@media (max-width: 760px) {
  .kz-tree-scroller { height: auto; }
  .kz-tree-stage { position: relative; height: auto; padding-top: var(--tree-h, 90vw); }
  .kz-tree-canvas { height: var(--tree-h, 90vw); bottom: auto; }
  .kz-tree-aura, .kz-tree-rays { top: calc(var(--tree-h, 90vw) * 0.45); }
  .kz-tree-box { display: none; }
  .kz-points {
    position: static;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 14px 11vw 8px;
    pointer-events: auto;
  }
  .kz-points::-webkit-scrollbar { display: none; }
  .kz-point,
  .kz-point.tl, .kz-point.tr, .kz-point.bl, .kz-point.br {
    position: relative;
    inset: auto;
    flex: 0 0 78vw;
    width: auto;
    scroll-snap-align: center;
    text-align: left;
    padding: 22px 20px 20px;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(40, 24, 44, 0.75), rgba(16, 10, 20, 0.85));
    border: 1px solid rgba(216, 163, 94, 0.22);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  }
  .kz-point::before { display: none; }
  .kz-point.tr .kz-point-kicker, .kz-point.br .kz-point-kicker { flex-direction: row; }
  .kz-point.tr .kz-point-kicker::after, .kz-point.br .kz-point-kicker::after { background: linear-gradient(90deg, var(--candle), transparent); }
  .kz-point h3 { font-size: 1.5rem; margin: 12px 0 8px; }
  .kz-point > p:last-child { font-size: 0.9rem; }
  .kz-points-dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
  .kz-points-dots button {
    width: 7px; height: 7px;
    padding: 0;
    border: none;
    border-radius: 99px;
    background: rgba(244, 233, 228, 0.28);
    transition: width 0.3s, background 0.3s;
    cursor: pointer;
  }
  .kz-points-dots button.on { width: 22px; background: var(--candle); }
}
@media (prefers-reduced-motion: reduce) and (min-width: 761px) {
  .kz-tree-scroller { height: auto; }
  .kz-tree-stage { position: relative; height: 90vh; }
}
@media (prefers-reduced-motion: reduce) {
  .kz-tree-rays { animation: none; }
  .kz-hang.is-hung { animation: none; }
  .kz-w, .kz-point-kicker, .kz-point > p:last-child { transition: none; }
  .kz-point h3 em .kz-w { animation: none; }
}

/* ── Section 4: Make a wish, with Mithu ───────────────────────────────────────
 * Mithu (/public/js/mithu.js) perches in a swinging brass ring and answers each
 * wish in a speech bubble that the script keeps beside Mithu's head.
 */
.kz-finale { padding-bottom: clamp(56px, 8vh, 96px); }
.kz-finale .kz-lead { margin-bottom: 0; }
.kz-mithu {
  position: relative;
  height: clamp(420px, 60vh, 560px);
  margin: 0 -16px;
}
/* A warm pool of light behind the ring. */
.kz-mithu::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(660px, 120vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(216, 163, 94, 0.16), rgba(124, 92, 255, 0.08) 36%, transparent 64%);
  pointer-events: none;
}
.kz-mithu-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* The speech bubble. .kz-bubble is a zero-size anchor the script moves to
   Mithu's head; the body grows up and to the right of it, and pops in. */
.kz-bubble {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 0;
  height: 0;
  pointer-events: none;
  will-change: transform;
}
/* Liquid glass with a gold hairline, like the rest of the page. */
.kz-bubble-body {
  position: absolute;
  left: 0;
  bottom: 0;
  width: max-content;
  max-width: 300px;
  margin: 0;
  padding: 13px 18px;
  border: 1px solid rgba(216, 163, 94, 0.62);
  border-radius: 22px;
  background: rgba(22, 15, 26, 0.8);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  color: var(--silk);
  font: 500 1rem/1.45 'Inter', system-ui, sans-serif;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 236, 210, 0.16), 0 18px 40px -14px rgba(0, 0, 0, 0.85), 0 0 40px -12px rgba(216, 163, 94, 0.45);
  opacity: 0;
  transform: scale(0.4);
  transform-origin: 0 100%;
  transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.2s ease;
}
.kz-bubble.is-on .kz-bubble-body { opacity: 1; transform: none; }
/* The playful words (and a name Mithu recognises) in the serif italic. */
.kz-bubble-em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.24em;
  line-height: 1;
  color: var(--candle);
}
/* The tail: drawn by the script each frame to point at Mithu's beak. It sits
   over the body's edge, in the same glass, so the hairline runs round it. */
.kz-bubble-tail {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
  transform-origin: 0 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.kz-bubble-tail path { fill: rgba(22, 15, 26, 0.92); stroke: rgba(216, 163, 94, 0.62); stroke-width: 1; stroke-linejoin: round; }
.kz-bubble.is-on .kz-bubble-tail { opacity: 1; }
/* Listening: a thought bubble, its two puffs leading back to Mithu. */
.kz-bubble-puff {
  position: absolute;
  left: -5px;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(216, 163, 94, 0.62);
  background: rgba(22, 15, 26, 0.85);
  display: none;
}
.kz-bubble-puff + .kz-bubble-puff { left: -3px; top: -3px; width: 6px; height: 6px; }
.kz-bubble.is-musing .kz-bubble-puff { display: block; }
.kz-bubble.is-musing .kz-bubble-tail { display: none; }
.kz-bubble.is-musing .kz-bubble-body { border-radius: 26px; }
/* Thinking: three bouncing dots, while Mithu listens or a reply is on its way. */
.kz-bubble-dots { display: none; gap: 5px; padding: 5px 2px; }
.kz-bubble.is-thinking .kz-bubble-dots { display: inline-flex; }
.kz-bubble-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--candle);
  animation: kzDot 1s ease-in-out infinite;
}
.kz-bubble-dots i:nth-child(2) { animation-delay: 0.15s; }
.kz-bubble-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes kzDot { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-5px); opacity: 1; } }
/* Without WebGL the bubble simply sits in the middle of the stage. */
.kz-mithu.no-3d .kz-bubble { left: 50%; top: 62%; transform: none !important; }
.kz-mithu.no-3d .kz-bubble-body { left: 0; transform: translateX(-50%); border-radius: 22px; }
.kz-mithu.no-3d .kz-bubble-tail,
.kz-mithu.no-3d .kz-bubble-puff { display: none; }
/* Mithu's voice switch, under the ring on the left: the same pill as the
   emotions' sound. */
.kz-mithu-sound { top: auto; right: auto; bottom: 7%; left: calc(50% - 250px); }
.kz-mithu.no-3d .kz-mithu-sound { display: none; }
/* A poem keeps its line breaks, and reads as verse. */
.kz-bubble-text { white-space: pre-line; }
.kz-bubble.is-poem .kz-bubble-body {
  max-width: 380px;
  padding: 15px 20px;
  font: italic 400 1.16rem/1.38 'Instrument Serif', Georgia, serif;
}
.kz-bubble.is-poem .kz-bubble-em { font-size: 1em; }

/* Catch Mithu: the score (three feathers) and the seconds left, over the stage. */
.kz-game-hud {
  position: absolute;
  top: 2%;
  left: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 99px;
  font: 600 0.72rem/1 'Inter', system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--candle);
  background: rgba(22, 15, 26, 0.86);             /* solid enough to read over Mithu */
  border: 1px solid rgba(216, 163, 94, 0.45);
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.kz-game-hud.is-on { opacity: 1; transform: translate(-50%, 0); }
.kz-game-score { display: inline-flex; gap: 6px; }
/* Each catch fills a feather. */
.kz-game-score i {
  width: 9px;
  height: 14px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  border: 1px solid rgba(216, 163, 94, 0.6);
  transform: rotate(18deg);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.kz-game-score i.on { background: var(--candle); box-shadow: 0 0 10px rgba(216, 163, 94, 0.8); }
.kz-game-time {
  min-width: 2ch;
  text-align: right;
  color: var(--silk);
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  letter-spacing: 0;
}
.kz-game-hud.is-won { border-color: var(--candle); box-shadow: 0 0 30px rgba(216, 163, 94, 0.45); }
.kz-game-hud.is-lost { opacity: 0.6; }

/* The wish box and a few ideas to start from. */
.kz-wish-form { max-width: 600px; margin: 4px auto 0; }
.kz-wish-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 22px;
  border-radius: 99px;
  transition: box-shadow 0.3s ease;
}
.kz-wish-field:focus-within {
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(216, 163, 94, 0.55), 0 0 36px -8px rgba(216, 163, 94, 0.55);
}
.kz-wish-field input {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  border: none;
  outline: none;
  background: none;
  color: var(--silk);
  font: 400 1rem 'Inter', system-ui, sans-serif;
}
.kz-wish-field input::placeholder { color: rgba(244, 233, 228, 0.42); }
.kz-wish-field .kz-btn { flex: none; padding: 13px 24px; border: none; font-family: inherit; cursor: pointer; }
.kz-wish-field .kz-btn:disabled { opacity: 0.55; cursor: default; transform: none; }
/* Signed out: sending a wish asks the visitor to sign in first. The prompt
   glows gold a few times so it can't be missed. */
.kz-wish-signin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(216, 163, 94, 0.7);
  border-radius: 20px;
  background: rgba(22, 15, 26, 0.85);
  color: var(--silk);
  font: 500 0.92rem/1.4 'Inter', system-ui, sans-serif;
}
.kz-wish-signin[hidden] { display: none; }
.kz-wish-signin-actions { display: inline-flex; gap: 8px; }
.kz-wish-signin .kz-btn { border: none; font-family: inherit; cursor: pointer; }
.kz-wish-signin.is-calling { animation: kzSigninGlow 1.4s ease-in-out 3; }
@keyframes kzSigninGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(216, 163, 94, 0); }
  50% { box-shadow: 0 0 0 4px rgba(216, 163, 94, 0.25), 0 0 36px rgba(216, 163, 94, 0.55); }
}
@media (prefers-reduced-motion: reduce) { .kz-wish-signin.is-calling { animation: none; } }
.kz-wish-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.kz-wish-chips button {
  padding: 7px 14px;
  border: 1px solid rgba(216, 163, 94, 0.3);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(244, 233, 228, 0.78);
  font: 500 0.82rem 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.kz-wish-chips button:hover,
.kz-wish-chips button:focus-visible { color: var(--candle); border-color: var(--candle); background: rgba(216, 163, 94, 0.08); outline: none; }

/* Phones: the bubble sits above Mithu's head, centred, at a steady width. */
@media (max-width: 760px) {
  .kz-mithu { height: 430px; }
  .kz-bubble-body {
    width: min(280px, 80vw);
    max-width: none;
    border-radius: 22px;
    text-align: center;
    font-size: 0.95rem;
    transform: translateX(-50%) scale(0.4);
    transform-origin: 50% 100%;
  }
  .kz-bubble.is-on .kz-bubble-body { transform: translateX(-50%); }
  .kz-bubble.is-musing .kz-bubble-body { width: max-content; }   /* a thought is short */
  .kz-bubble.is-poem .kz-bubble-body { width: min(330px, 90vw); }
  .kz-mithu-sound { left: 12px; bottom: 10px; }
  .kz-wish-field { padding-left: 18px; }
  .kz-wish-field .kz-btn { padding: 12px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .kz-bubble-body { transition: none; }
  .kz-bubble-dots i { animation: none; }
}

/* ── Footer ───────────────────────────────────────────────────────────────────
 * Brand line, the pages a payments reviewer looks for, and the way to reach us.
 */
.kz-foot {
  position: relative;
  padding: clamp(56px, 8vh, 88px) 16px 28px;
  background: #0a0608;
  color: var(--rose-ash);
  font-size: 0.92rem;
  text-align: left;                                /* base.css centres every footer below 1024px */
}
/* A hairline of gold across the top, fading at both ends. */
.kz-foot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 163, 94, 0.45), transparent);
}
.kz-foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr 1.3fr;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: clamp(28px, 4vw, 56px);
  max-width: 1180px;
  margin: 0 auto;
}
.kz-foot-line {
  max-width: 300px;
  margin: 14px 0 20px;
  color: var(--silk);
  font-size: 1rem;
  line-height: 1.5;
}
.kz-foot-line em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.15em;
  color: var(--candle);
}
.kz-foot-social { display: flex; gap: 10px; }
.kz-foot .kz-foot-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(216, 163, 94, 0.35);
  border-radius: 50%;
  color: var(--candle);
  transition: background 0.2s, border-color 0.2s;
}
.kz-foot .kz-foot-social a:hover,
.kz-foot .kz-foot-social a:focus-visible { background: rgba(216, 163, 94, 0.12); border-color: var(--candle); }
.kz-foot-col { padding: 0; }                       /* two are <nav>s, which base.css pads below 1024px */
.kz-foot-h {
  margin: 4px 0 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--candle);
}
.kz-foot ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.kz-foot a { color: rgba(244, 233, 228, 0.72); text-decoration: none; transition: color 0.2s; }
.kz-foot a:hover,
.kz-foot a:focus-visible { color: var(--silk); }
.kz-foot .kz-logo { color: var(--candle); }
.kz-foot-pricing { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.kz-foot-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(216, 163, 94, 0.32);
  border-radius: 99px;
  background: rgba(216, 163, 94, 0.07);
  color: var(--candle);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.3;
}
.kz-foot-hello { max-width: 260px; margin: 0 0 16px; line-height: 1.55; }
.kz-foot .kz-foot-col .kz-btn { color: var(--silk); }
.kz-foot-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: 1180px;
  margin: clamp(40px, 6vh, 64px) auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(244, 233, 228, 0.08);
  color: rgba(244, 233, 228, 0.5);
  font-size: 0.8rem;
}
.kz-foot-bar p { margin: 0; }
/* Narrower screens: the brand across the top, the link lists side by side,
   "Say hello" across the bottom. */
@media (max-width: 900px) {
  .kz-foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kz-foot-brand, .kz-foot-grid > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .kz-foot-bar { flex-direction: column; }
}

/* ── Art viewer (/public/js/art-lightbox.js) ─────────────────────────────────── */
html.kz-lb-lock { overflow: hidden; }
.kz-lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}
.kz-lb[hidden] { display: none; }
.kz-lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 8, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.kz-lb.is-open .kz-lb-backdrop { opacity: 1; }
.kz-lb-body {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  max-width: 1100px;
}
.kz-lb-frame {
  flex: none;
  padding: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, #6b4a20, #f4d58f 18%, #9c6b2e 36%, #f7dfa6 55%, #8a5d27 75%, #e9c27a);
  box-shadow: 0 0 0 1px rgba(255, 242, 205, 0.5) inset, 0 40px 90px -20px rgba(0, 0, 0, 0.85), 0 0 80px -10px rgba(216, 163, 94, 0.35);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.kz-lb-img {
  display: block;
  height: min(80vh, calc((100vw - 440px) * 4 / 3));
  width: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(55, 32, 8, 0.8);
  filter: blur(3px);
  transition: filter 0.4s ease;
}
.kz-lb-img.is-sharp { filter: none; }
.kz-lb-info {
  width: 280px;
  text-align: left;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}
.kz-lb.is-open .kz-lb-info { opacity: 1; transform: none; }
.kz-lb-set { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--candle); }
.kz-lb-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.05;
  color: var(--silk);
  margin: 10px 0 12px;
}
.kz-lb-note { color: var(--rose-ash); line-height: 1.6; margin-bottom: 26px; }
.kz-lb-count { margin-top: 22px; font-size: 0.78rem; letter-spacing: 0.14em; color: rgba(244, 233, 228, 0.45); }
.kz-lb-btn {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(216, 163, 94, 0.35);
  background: rgba(20, 12, 16, 0.7);
  color: var(--silk);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.kz-lb-btn:hover { background: rgba(216, 163, 94, 0.2); border-color: var(--candle); }
.kz-lb-btn:focus-visible { outline: 2px solid var(--candle); outline-offset: 2px; }
.kz-lb-prev { left: clamp(12px, 3vw, 40px); top: 50%; transform: translateY(-50%); }
.kz-lb-next { right: clamp(12px, 3vw, 40px); top: 50%; transform: translateY(-50%); }
.kz-lb-close { right: clamp(12px, 3vw, 40px); top: clamp(12px, 3vw, 32px); }
@media (max-width: 760px) {
  .kz-lb { padding: 64px 16px 24px; align-items: start; overflow-y: auto; }
  .kz-lb-body { flex-direction: column; gap: 18px; }
  .kz-lb-img { height: auto; width: min(80vw, 58vh * 3 / 4); }
  .kz-lb-info { width: auto; text-align: center; }
  .kz-lb-prev, .kz-lb-next { top: auto; bottom: 20px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .kz-lb-frame, .kz-lb-info, .kz-lb-backdrop, .kz-lb-img { transition: none; }
}
