/* ============================================================
   Picho Party Rental v2 — "the party builds as you scroll"
   Tokens first; motion is GSAP-driven (motion.js), CSS keeps
   no-JS and reduced-motion fallbacks working.
   ============================================================ */
/* Canonical palette. art.js (SVG) and hero3d.js (WebGL) mirror these as hex;
   if you change a color here, update the mirrors too. */
:root {
  --sun: oklch(0.85 0.16 85);
  --sun-deep: oklch(0.78 0.16 78);
  --sun-soft: oklch(0.95 0.06 90);
  --coral: oklch(0.65 0.21 30);
  --coral-deep: oklch(0.56 0.2 30);
  --coral-hi: oklch(0.74 0.17 35);
  --coral-soft: oklch(0.94 0.04 30);
  --teal: oklch(0.72 0.13 195);
  --teal-soft: oklch(0.93 0.05 195);
  --violet: oklch(0.45 0.17 300);
  --violet-soft: oklch(0.93 0.04 300);
  --violet-deep: oklch(0.3 0.09 300);
  --cream: oklch(0.97 0.015 85);
  --card: oklch(0.99 0.008 85);
  --ink: oklch(0.25 0.03 300);
  --ink-60: oklch(0.45 0.025 300);

  --display: "Lilita One", sans-serif;
  --body: "Hanken Grotesk", sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 22px;
  --section-gap: clamp(5.5rem, 13vw, 10rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  font-family: var(--body);
  /* GSAP morphs this between section worlds, and it tweens hex reliably,
     so this is the hex twin of --cream. Keep in sync with the morph colors
     in motion.js. */
  background-color: #faf5e9;
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; }

/* Focus rings: coral on light surfaces; sun on violet surfaces where coral
   fails contrast. */
:focus-visible {
  outline: 3px solid var(--coral-deep);
  outline-offset: 3px;
  border-radius: 4px;
}
.marquee :focus-visible, .cta-band :focus-visible, .footer :focus-visible, .quote-btn:focus-visible {
  outline-color: var(--sun);
}

/* Split-text plumbing: motion.js wraps words in .w > .wi.
   padding-bottom + matching negative margin extend the clip box below the
   baseline so descenders (j, g, p, ¿) aren't cut, without changing layout. */
[data-split] .w { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: 0.18em; margin-bottom: -0.18em; }
[data-split] .wi { display: inline-block; }

/* Fixed film grain over everything (texture, not tint) */
.grain {
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
  opacity: 0.05;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="180" height="180"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="180" height="180" filter="url(%23n)" opacity="0.6"/></svg>');
}

/* ============================================================
   Maintenance splash (shown only while html.maint-on)
   ============================================================ */
.maint { display: none; }
.maint-on .maint {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: linear-gradient(175deg, var(--sun) 60%, var(--sun-deep));
  text-align: center;
  padding: 1.5rem;
}
.maint-on body { overflow: hidden; }
.maint-picado {
  position: absolute;
  inset: 0 0 auto 0;
  height: 58px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="288" height="64" viewBox="0 0 288 64"><path d="M0 0h64v34L32 56 0 34Z" fill="%23c43e22"/><circle cx="32" cy="22" r="7" fill="%23e8b13c"/><path d="M76 0h64v34L108 56 76 34Z" fill="%23227c8a"/><circle cx="108" cy="22" r="7" fill="%23faf3e3"/><path d="M152 0h64v34L184 56 152 34Z" fill="%23533078"/><circle cx="184" cy="22" r="7" fill="%23e8b13c"/><path d="M228 0h60v34L258 56 228 34Z" fill="%23faf3e3"/><circle cx="258" cy="22" r="7" fill="%23c43e22"/></svg>');
  background-repeat: repeat-x;
}
.maint-inner { position: relative; z-index: 1; max-width: 34rem; }
.maint-kicker {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: 0.8rem;
}
.maint-head {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.05;
  color: var(--ink);
  text-wrap: balance;
}
.maint-sub {
  margin-top: 0.9rem;
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: oklch(0.34 0.04 300);
}
.maint-logo {
  height: clamp(120px, 24vw, 190px);
  width: auto;
  margin: 2rem auto 0;
}
/* notify field on the splash (also the owner's hidden entrance during maintenance) */
.maint-nl-prompt { margin-top: 1.8rem; font-weight: 600; font-size: 1rem; color: var(--ink); }
.maint-nl { display: flex; gap: 0.5rem; max-width: 360px; margin: 0.8rem auto 0; }
.maint-nl-input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0.6rem 0.95rem;
  border: 1.5px solid oklch(0.25 0.03 300 / 0.18);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
}
.maint-nl-input::placeholder { color: oklch(0.45 0.03 300 / 0.7); }
.maint-nl-input:focus { outline: 2px solid var(--coral-deep); outline-offset: 1px; }
.maint-nl-btn {
  flex: none;
  min-height: 48px;
  padding: 0 1.3rem;
  border: none;
  border-radius: 12px;
  background: var(--coral-deep);
  color: var(--cream);
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
}
.maint-nl-btn:hover { filter: brightness(1.05); }
.maint-nl-btn:active { transform: translateY(1px); }
.maint-nl-msg { min-height: 1.2em; margin-top: 0.7rem; font-weight: 600; color: var(--coral-deep); }

/* ============================================================
   Opening intro (exists only while html.intro-pending)
   ============================================================ */
.intro { display: none; }
.intro-pending .intro {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 300;
}
body.intro-lock { overflow: hidden; }

.intro-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background: linear-gradient(175deg, var(--sun) 60%, var(--sun-deep));
}
.intro-panel-l { left: 0; }
.intro-panel-r { right: 0; }

.intro-picado {
  position: absolute;
  inset: 0 0 auto 0;
  height: 58px;
  z-index: 2;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="288" height="64" viewBox="0 0 288 64"><path d="M0 0h64v34L32 56 0 34Z" fill="%23c43e22"/><circle cx="32" cy="22" r="7" fill="%23e8b13c"/><path d="M76 0h64v34L108 56 76 34Z" fill="%23227c8a"/><circle cx="108" cy="22" r="7" fill="%23faf3e3"/><path d="M152 0h64v34L184 56 152 34Z" fill="%23533078"/><circle cx="184" cy="22" r="7" fill="%23e8b13c"/><path d="M228 0h60v34L258 56 228 34Z" fill="%23faf3e3"/><circle cx="258" cy="22" r="7" fill="%23c43e22"/></svg>');
  background-repeat: repeat-x;
}

.intro-center {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 1.5rem;
}
.intro-word {
  font-family: var(--display);
  font-size: clamp(2.7rem, 8.5vw, 6.8rem);
  line-height: 1.05;
  color: var(--ink);
}
.intro-word .iw { display: inline-block; white-space: nowrap; margin-inline: 0.14em; }
.intro-word .il { display: inline-block; }
.intro-tag {
  margin-top: 1.1rem;
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: oklch(0.32 0.04 300);
}

.intro-skip {
  position: absolute;
  bottom: 1.4rem;
  right: 1.6rem;
  z-index: 3;
  min-height: 44px;
  padding: 0.5rem 1.3rem;
  border: 2px solid oklch(0.25 0.03 300 / 0.4);
  border-radius: 999px;
  background: transparent;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
}
.intro-skip:hover { border-color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 54px;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  border: none;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn svg { width: 22px; height: 22px; }

/* Magnetic buttons: GSAP drives transform; CSS must not transition it */
.btn.magnetic { transition: box-shadow 0.2s var(--ease-out); }
.btn.magnetic:hover, .btn.magnetic:active { transform: none; }

.btn-primary {
  background: var(--coral-deep);
  color: var(--cream);
  box-shadow: 0 8px 22px oklch(0.56 0.2 30 / 0.35);
}
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-light { background: var(--cream); color: var(--violet-deep); }
.btn-outline-light { background: transparent; color: var(--cream); border: 2px solid oklch(0.97 0.015 85 / 0.7); }
.btn-block { width: 100%; }

/* ============================================================
   Top bar
   ============================================================ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  transition: padding 0.3s var(--ease-out), background 0.3s, box-shadow 0.3s;
}
.topbar.shrunk {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background: oklch(0.97 0.015 85 / 0.9);
  backdrop-filter: saturate(1.3) blur(10px);
  box-shadow: 0 1px 0 oklch(0.25 0.03 300 / 0.08);
}

.logo { display: flex; align-items: center; gap: 0.55rem; min-height: 44px; text-decoration: none; }
.logo-img {
  height: 74px;
  width: auto;
  display: block;
  transition: transform 0.25s var(--ease-out);
}
.logo:hover .logo-img { transform: translateY(-1px) scale(1.03); }
.topbar.shrunk .logo-img { height: 60px; }
.logo-mark { width: 28px; height: 34px; }
.logo-text {
  font-family: var(--display);
  font-size: 1.45rem;
  color: var(--ink);
  line-height: 1;
}
.logo-text em {
  display: block;
  font-family: var(--body);
  font-style: normal;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral-deep);
}

.topnav { display: flex; gap: 1.6rem; margin-inline: auto; }
.topnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.topnav a:hover { opacity: 1; }

.topbar-actions { display: flex; align-items: center; gap: 0.7rem; margin-left: auto; }
.topnav + .topbar-actions { margin-left: 0; }

.lang-toggle {
  display: flex;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  min-height: 44px;
}
.lang-opt {
  padding: 0.45rem 0.8rem;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-60);
}
.lang-opt.active { background: var(--ink); color: var(--cream); }

.quote-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border: none;
  border-radius: 999px;
  background: var(--violet);
  color: var(--cream);
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out);
}
.quote-btn:hover { transform: translateY(-2px); }
.quote-btn svg { width: 20px; height: 20px; }
.quote-count {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding-inline: 4px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-size: 0.78rem;
}
.quote-btn.bump .quote-count { animation: bump 0.4s var(--ease-out); }
@keyframes bump {
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

/* ============================================================
   Hero — pinned 3D fiesta sky
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: linear-gradient(175deg, var(--sun) 62%, var(--sun-deep));
  overflow: clip;
}

.hero-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(48% 46% at 26% 45%, oklch(0.94 0.1 90 / 0.95), transparent 72%),
    radial-gradient(50% 45% at 80% 75%, oklch(0.8 0.17 60 / 0.4), transparent 70%);
  pointer-events: none;
}

.hero-scene { position: absolute; inset: 0; }
.hero-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fallback {
  position: absolute;
  right: 0;
  bottom: 6%;
  width: min(46vw, 540px);
  height: auto;
}
.hero-scene.webgl-on .hero-fallback { display: none; }

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding: clamp(6.5rem, 12vh, 8rem) clamp(1.2rem, 4.5vw, 3rem) clamp(5rem, 10vh, 6rem);
  pointer-events: none; /* balloons stay poppable behind the copy */
}
.hero-inner a, .hero-inner button { pointer-events: auto; }

.hero-kicker {
  display: inline-block;
  background: var(--ink);
  color: var(--sun);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin-bottom: clamp(1.2rem, 2.5vh, 2rem);
}

.hero-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.1rem, 10.5vw, 8.6rem);
  line-height: 0.92;
  letter-spacing: 0.004em;
  color: var(--ink);
  max-width: 11ch;
  text-wrap: balance;
}

.hero-sub {
  margin-top: clamp(1.2rem, 2.5vh, 1.8rem);
  max-width: 44ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 600;
  color: oklch(0.32 0.04 300);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: clamp(1.8rem, 3.5vh, 2.6rem);
}

.scroll-hint {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(0.35 0.05 300 / 0.75);
}
.scroll-line {
  width: 2px;
  height: 42px;
  background: oklch(0.25 0.03 300 / 0.35);
  overflow: hidden;
  position: relative;
}
.scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: top;
  animation: scrollPulse 1.8s var(--ease-out) infinite;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Papel picado bunting */
.picado {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  height: 58px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="288" height="64" viewBox="0 0 288 64"><path d="M0 0h64v34L32 56 0 34Z" fill="%23c43e22"/><circle cx="32" cy="22" r="7" fill="%23e8b13c"/><path d="M76 0h64v34L108 56 76 34Z" fill="%23227c8a"/><circle cx="108" cy="22" r="7" fill="%23faf3e3"/><path d="M152 0h64v34L184 56 152 34Z" fill="%23533078"/><circle cx="184" cy="22" r="7" fill="%23e8b13c"/><path d="M228 0h60v34L258 56 228 34Z" fill="%23faf3e3"/><circle cx="258" cy="22" r="7" fill="%23c43e22"/></svg>');
  background-repeat: repeat-x;
  transform-origin: top center;
  animation: sway 6s ease-in-out infinite alternate;
}
@keyframes sway {
  from { transform: translateX(-4px) rotate(-0.3deg); }
  to { transform: translateX(4px) rotate(0.3deg); }
}

/* ============================================================
   Kinetic marquee — two opposing rows
   ============================================================ */
.marquee {
  background: var(--violet);
  overflow: clip;
  padding: 1rem 0;
  display: grid;
  gap: 0.3rem;
}
.marquee-row { overflow: clip; }
.marquee-track {
  display: flex;
  gap: 2.6rem;
  width: max-content;
  white-space: nowrap;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  color: var(--cream);
  will-change: transform;
  animation: marquee 90s linear infinite; /* CSS fallback; GSAP takes over */
}
.marquee-track.js-driven { animation: none; }
.marquee-track .dot { color: var(--sun); }
.marquee-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px oklch(0.97 0.015 85 / 0.65);
  animation-direction: reverse;
}
.marquee-outline .dot { color: var(--sun); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   Catalog (transparent: body color morph shows through)
   ============================================================ */
.catalog {
  max-width: 1240px;
  margin-inline: auto;
  padding: var(--section-gap) clamp(1.2rem, 4vw, 2.5rem) 0;
}

.section-head { max-width: 62ch; }
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.02;
  text-wrap: balance;
}
.section-sub {
  margin-top: 1rem;
  color: var(--ink-60);
  font-size: 1.08rem;
  max-width: 52ch;
}

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.2rem; }
.chip {
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 2px solid oklch(0.25 0.03 300 / 0.2);
  background: transparent;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-60);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s var(--ease-out);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip:active { transform: scale(0.96); }
.chip.active { border-color: transparent; color: var(--cream); }
.chip.active[data-cat="all"] { background: var(--ink); }
.chip.active[data-cat="inflatables"] { background: var(--teal); color: var(--ink); }
.chip.active[data-cat="tables"] { background: var(--violet); }
.chip.active[data-cat="decor"] { background: var(--coral-deep); }
.chip.active[data-cat="fun"] { background: var(--sun-deep); color: var(--ink); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.2rem;
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid oklch(0.25 0.03 300 / 0.08);
  border-radius: var(--radius);
  overflow: clip;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.card.hidden { display: none; }
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px oklch(0.45 0.17 300 / 0.16);
}

.card-art {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 1.4rem;
  overflow: clip;
}
.card-art svg { width: 100%; height: 100%; max-height: 170px; transition: transform 0.45s var(--ease-out); }
.card-art.has-photo { padding: 0; }
.card-art.has-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s var(--ease-out); }
.card:hover .card-art svg, .card:hover .card-art img { transform: scale(1.06); }
.card[data-cat="inflatables"] .card-art { background: var(--teal-soft); }
.card[data-cat="tables"] .card-art { background: var(--violet-soft); }
.card[data-cat="decor"] .card-art { background: var(--coral-soft); }
.card[data-cat="fun"] .card-art { background: var(--sun-soft); }

.card-price {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: var(--coral-deep);
  color: var(--cream);
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.5rem 0.85rem 0.45rem;
  border-radius: 12px;
  transform: rotate(-3deg);
  box-shadow: 0 6px 14px oklch(0.56 0.2 30 / 0.3);
}
.card-price small {
  display: block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
  margin-top: 2px;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.2rem 1.3rem;
  flex: 1;
}
.card-name { font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.card-deliv { font-size: 0.8rem; font-weight: 700; color: var(--coral-deep); }
.q-deliv { color: var(--coral-deep); font-weight: 600; font-size: 0.85rem; }
/* model chooser dropdown (items with multiple models) */
.model-pick { margin-top: 0.6rem; }
.model-select-wrap { position: relative; }
.model-select-wrap::after {
  content: "";
  position: absolute;
  right: 0.95rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}
.model-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid oklch(0.25 0.03 300 / 0.2);
  background: var(--card, #fff);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.55rem 2.2rem 0.55rem 0.85rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.model-select:hover { border-color: var(--coral-deep); }
.model-select:focus { outline: 2px solid var(--coral-deep); outline-offset: 1px; }
.q-model { color: var(--ink-60, oklch(0.5 0.02 300)); font-weight: 600; }
.card-add { margin-top: auto; padding-top: 0.9rem; }
.card-add .btn {
  width: 100%;
  min-height: 46px;
  font-size: 0.98rem;
  background: var(--ink);
  color: var(--cream);
  box-shadow: none;
}
.card-add .btn.added { background: var(--teal); color: var(--ink); }

/* ============================================================
   How it works — non-pinned scroll-reveal zig-zag. Each step
   (text + its art panel) fades up as it enters; native scroll.
   ============================================================ */
.how {
  max-width: 1240px;
  margin-inline: auto;
  padding: var(--section-gap) clamp(1.2rem, 4vw, 2.5rem) 0;
}
.how-steps {
  list-style: none;
  display: grid;
  gap: clamp(3rem, 7vw, 5.5rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.how-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.how-step:nth-child(even) .how-step-art { order: -1; } /* zig-zag */
.how-step-text { max-width: 46ch; }
.step-num {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 1.9rem;
  color: var(--cream);
  margin-bottom: 1.1rem;
}
.how-step[data-step="0"] .step-num { background: var(--coral-deep); }
.how-step[data-step="1"] .step-num { background: var(--teal); color: var(--ink); }
.how-step[data-step="2"] .step-num { background: var(--violet); }
.how-step-text h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.05;
  margin-bottom: 0.6rem;
}
.how-step-text p { color: var(--ink-60); font-size: clamp(1.02rem, 1.5vw, 1.15rem); }

.how-step-art { position: relative; height: clamp(250px, 28vw, 330px); }
.how-panel { position: absolute; inset: 0; }

/* Panel 1: fanned rental mini-cards */
.mini-card {
  position: absolute;
  width: 46%;
  aspect-ratio: 4 / 3;
  background: var(--card);
  border-radius: 16px;
  padding: 0.9rem;
  box-shadow: 0 16px 34px oklch(0.45 0.17 300 / 0.16);
}
.mini-card svg { width: 100%; height: 100%; }
.mc-1 { top: 4%; left: 4%; transform: rotate(-7deg); background: var(--teal-soft); }
.mc-2 { top: 16%; right: 2%; transform: rotate(4deg); background: var(--sun-soft); }
.mc-3 { bottom: 6%; left: 26%; transform: rotate(7deg); background: var(--violet-soft); }

/* Panel 2: WhatsApp-style quote chat */
.chat {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  height: 100%;
  max-width: 380px;
  margin-inline: auto;
}
.chat-bubble {
  border-radius: 20px;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 14px 30px oklch(0.45 0.17 300 / 0.14);
}
.chat-mine {
  background: var(--card);
  border-bottom-left-radius: 6px;
  display: grid;
  gap: 0.55rem;
}
.chat-line {
  display: block;
  height: 11px;
  border-radius: 999px;
  background: oklch(0.25 0.03 300 / 0.12);
}
.chat-line.w72 { width: 72%; }
.chat-line.w55 { width: 55%; }
.chat-line.w64 { width: 64%; }
.chat-total { font-family: var(--display); font-size: 1.6rem; color: var(--coral-deep); margin-top: 0.2rem; }
.chat-picho {
  align-self: flex-end;
  background: var(--teal);
  color: var(--ink);
  border-bottom-right-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
}
.chat-picho .ticks { color: var(--cream); font-weight: 700; letter-spacing: -0.12em; }

/* Panel 3: the set-up party yard */
.yard { position: relative; height: 100%; }
.yard::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 96%;
  height: 26%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--teal-soft);
}
.yard-item { position: absolute; }
.yard-item svg { width: 100%; height: 100%; }
.y-tent { width: 64%; left: 16%; bottom: 16%; }
.y-speaker { width: 26%; left: 0; bottom: 8%; }
.y-set { width: 30%; right: 0; bottom: 7%; }

/* ============================================================
   Trust strip
   ============================================================ */
.trust {
  margin-top: var(--section-gap);
  background: var(--sun-soft);
  padding: 2.8rem clamp(1.2rem, 4vw, 2.5rem);
}
.trust-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem 3rem;
  max-width: 1240px;
  margin-inline: auto;
}
.trust-list li { display: flex; align-items: center; gap: 0.7rem; font-weight: 700; font-size: 1rem; }
.trust-list svg { width: 26px; height: 26px; color: var(--coral-deep); flex: none; }

/* ============================================================
   CTA — into the night
   ============================================================ */
.cta-band {
  position: relative;
  background: linear-gradient(170deg, var(--violet) 55%, var(--violet-deep));
  color: var(--cream);
  text-align: center;
  padding: clamp(6.5rem, 13vw, 9.5rem) clamp(1.2rem, 4vw, 2.5rem) clamp(5rem, 10vw, 7rem);
  overflow: clip;
}
.picado-flip { filter: brightness(1.05); }

.cta-echo {
  font-family: var(--display);
  font-size: clamp(2.2rem, 7.5vw, 6rem);
  line-height: 1.1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px oklch(0.97 0.015 85 / 0.18);
  user-select: none;
  pointer-events: none;
}
.cta-echo-b { -webkit-text-stroke-color: oklch(0.97 0.015 85 / 0.1); }

.cta-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 1.06;
  margin: 0.15em 0;
}
.cta-sub { margin-top: 1rem; font-size: 1.15rem; color: oklch(0.88 0.03 300); }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.6rem;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--violet-deep);
  color: oklch(0.88 0.03 300);
  padding: 3.5rem clamp(1.2rem, 4vw, 2.5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  max-width: 1240px;
  margin-inline: auto;
}
.footer-logo { font-family: var(--display); font-size: 1.7rem; color: var(--cream); }
.footer-logo span {
  display: block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sun);
}
.footer-tag { margin-top: 0.8rem; font-size: 0.95rem; }
.footer h4 {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 0.7rem;
}
.footer a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-weight: 600;
}
.footer a:hover { color: var(--cream); }
.footer-fine {
  max-width: 1240px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid oklch(0.88 0.03 300 / 0.15);
  font-size: 0.85rem;
  color: oklch(0.7 0.03 300);
}
/* footer "party deals" signup (also the owner's hidden entrance) */
.footer-nl-sub { font-size: 0.9rem; color: oklch(0.78 0.03 300); margin-bottom: 0.9rem; max-width: 30ch; }
.nl-form { display: flex; gap: 0.5rem; max-width: 340px; }
.nl-input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border: 1px solid oklch(0.88 0.03 300 / 0.22);
  border-radius: 10px;
  background: oklch(1 0 0 / 0.06);
  color: var(--cream);
  font-family: var(--body);
  font-size: 0.95rem;
}
.nl-input::placeholder { color: oklch(0.8 0.03 300 / 0.7); }
.nl-input:focus { outline: 2px solid var(--sun); outline-offset: 1px; }
.nl-btn {
  flex: none;
  min-height: 44px;
  padding: 0 1.1rem;
  border: none;
  border-radius: 10px;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
}
.nl-btn:hover { filter: brightness(1.05); }
.nl-btn:active { transform: translateY(1px); }
.nl-msg { min-height: 1.2em; margin-top: 0.6rem; font-size: 0.85rem; color: var(--sun); }

/* ============================================================
   Quote drawer
   ============================================================ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: oklch(0.25 0.03 300 / 0.45);
  opacity: 0;
  transition: opacity 0.3s;
}
.drawer-overlay.show { opacity: 1; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(430px, 100vw);
  display: flex;
  flex-direction: column;
  background: var(--cream);
  transform: translateX(105%);
  transition: transform 0.45s var(--ease-out);
  box-shadow: -16px 0 50px oklch(0.25 0.03 300 / 0.2);
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 1.4rem 1rem;
}
.drawer-head h2 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; }
.drawer-close {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: oklch(0.25 0.03 300 / 0.07);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

.drawer-body { flex: 1; overflow-y: auto; padding: 0 1.4rem; }
.drawer-empty { text-align: center; padding: 3rem 1rem; color: var(--ink-60); font-weight: 600; }
.drawer-empty svg { width: 60px; height: 60px; margin: 0 auto 1rem; color: oklch(0.25 0.03 300 / 0.25); }

.q-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid oklch(0.25 0.03 300 / 0.08);
}
.q-name { font-weight: 700; font-size: 0.98rem; }
.q-price { font-family: var(--display); color: var(--coral-deep); font-size: 1.05rem; align-self: center; }
.q-controls { display: flex; align-items: center; gap: 0.6rem; }
.q-step {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  border: 1.5px solid oklch(0.25 0.03 300 / 0.2);
  border-radius: 999px;
}
.q-step button {
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}
.q-step span { min-width: 1.4ch; text-align: center; font-weight: 700; font-size: 0.95rem; }
.q-remove {
  border: none;
  background: none;
  color: var(--ink-60);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  min-height: 44px;
  padding-inline: 0.5rem;
}

.drawer-foot {
  padding: 1.1rem 1.4rem 1.4rem;
  border-top: 1px solid oklch(0.25 0.03 300 / 0.1);
  display: grid;
  gap: 0.8rem;
}
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.drawer-total strong { font-family: var(--display); font-size: 1.7rem; color: var(--ink); }
.drawer-date { display: grid; gap: 0.3rem; font-weight: 700; font-size: 0.9rem; }
.drawer-date input {
  min-height: 48px;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid oklch(0.25 0.03 300 / 0.2);
  border-radius: 12px;
  font-family: var(--body);
  font-size: 1rem;
  background: var(--card);
  color: var(--ink);
}

/* ============================================================
   Confetti bits (add-to-quote burst)
   ============================================================ */
.confetti-bit {
  position: fixed;
  z-index: 260;
  width: 9px;
  height: 9px;
  pointer-events: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .topnav { display: none; }
  .logo-img { height: 58px; }
  .topbar.shrunk .logo-img { height: 50px; }
  /* backdrop-filter forces a full re-blur behind the bar every scroll
     frame on phones — the biggest mobile-scroll jank source. Drop it and
     use a near-opaque bar instead. */
  .topbar.shrunk { background: oklch(0.97 0.015 85 / 0.97); backdrop-filter: none; }
  /* the fixed grain overlay adds compositing cost on mobile for a texture
     that's barely visible on a small screen */
  .grain { display: none; }
  .hero { align-items: flex-end; }
  .hero-inner { padding-bottom: 4rem; }
  .scroll-hint { display: none; }
  .hero-title { font-size: clamp(2.9rem, 13vw, 4.6rem); }
  .hero-fallback { width: 78vw; right: -8vw; bottom: 28%; opacity: 0.9; }
  /* how-it-works: stack each step into a single column on phones. Reset the
     zig-zag order so the art always sits below its text. */
  .how-step { grid-template-columns: 1fr; gap: clamp(1rem, 5vw, 1.8rem); }
  .how-step:nth-child(even) .how-step-art { order: 0; }
  .how-step-art { height: clamp(220px, 60vw, 300px); }
  .footer-grid { grid-template-columns: 1fr; }
  .drawer {
    top: auto;
    left: 0;
    width: 100%;
    max-height: 88dvh;
    border-radius: 22px 22px 0 0;
    transform: translateY(105%);
  }
  .drawer.open { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .picado, .marquee-track, .scroll-line::after { animation: none; }
  .btn, .quote-btn, .card, .chip { transition: none; }
  .card-art svg, .card-art img { transition: none; }
}
