/* ==========================================================================
   Maali — concept demo by KP Labs
   Brand tokens come from maaliclothing.com.au; every component reads them.
   ========================================================================== */

:root {
  --cream: #FFFEF8;
  --cream-2: #FBF3EE;
  --raspberry: #B84F69;
  --raspberry-deep: #96384F;
  --rose: #A1605A;
  --ink: #514C4C;
  --ink-soft: #7A7272;
  --blush: #F6D9DF;
  --blush-2: #F2C4CE;
  --hot: #E9409A;           /* the logo's pink */
  --line: rgba(81, 76, 76, 0.14);
  --shadow: 0 1px 2px rgba(81, 76, 76, 0.06), 0 12px 32px -12px rgba(81, 76, 76, 0.22);

  --display: 'Fredoka', 'Jost', system-ui, sans-serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --radius: 28px;
  --section-y: clamp(88px, 12vw, 168px);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
::selection { background: var(--blush-2); color: var(--raspberry-deep); }

:focus-visible { outline: 2.5px solid var(--raspberry); outline-offset: 3px; border-radius: 8px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--raspberry); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px;
}
.skip:focus { top: 12px; }
.noscript { padding: 40px; text-align: center; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }
.section { position: relative; padding: var(--section-y) 0; overflow: hidden; isolation: isolate; }

/* ---------- Type ---------- */
.headline {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--raspberry);
  text-wrap: balance;
}
.headline .em { color: var(--hot); }
.headline--hero { font-size: clamp(44px, 7.4vw, 120px); color: var(--rose); line-height: 0.95; }
.headline--md { font-size: clamp(34px, 4.2vw, 62px); }

/* Split words/letters live in clip masks so they can rise from below. */
.split .w { display: inline-block; white-space: nowrap; }
.split .w, .split .ci { overflow: hidden; vertical-align: top; padding: 0.06em 0.01em 0.14em; margin: -0.06em -0.01em -0.14em; }
.split .ci { display: inline-block; }
.split .wi { display: inline-block; will-change: transform; }

.eyebrow, .label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--raspberry);
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.lede { font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-soft); max-width: 46ch; margin-top: 24px; line-height: 1.6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px; border-radius: 999px;
  background: var(--raspberry); color: #fff;
  font-family: var(--display); font-weight: 500; font-size: 17px; letter-spacing: 0.01em;
  box-shadow: 0 10px 24px -12px rgba(150, 56, 79, 0.55);
  transition: transform 0.4s var(--ease-spring), background 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px) scale(1.02); background: var(--raspberry-deep); }
.btn:active { transform: scale(0.97); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn--ghost { background: transparent; color: var(--raspberry); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { background: var(--blush); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 76px; padding: 0 var(--gutter); margin: 0 auto; width: 100%;
  border-radius: 0; border: 1px solid transparent;
  transition: top 0.5s var(--ease), width 0.5s var(--ease), height 0.5s var(--ease), padding 0.5s var(--ease), border-radius 0.5s var(--ease), background 0.4s, box-shadow 0.4s, border-color 0.4s;
}
/* Once scrolled: a compact bar floating just below the top edge, with a soft pink shadow. */
.nav.is-scrolled {
  top: 12px; width: min(1120px, calc(100% - 32px)); height: 58px; padding: 0 10px 0 22px; border-radius: 999px;
  background: rgba(255, 254, 248, 0.82); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 36px -16px rgba(150, 56, 79, 0.35), 0 2px 8px -4px rgba(81, 76, 76, 0.12);
}
.nav.is-scrolled .nav__brand .logo { width: 78px; }
.nav.is-scrolled .nav__links { font-size: 15px; gap: 26px; }
.nav.is-scrolled .btn--sm { height: 40px; }
.nav__brand .logo { transition: width 0.5s var(--ease); }
.nav__brand { display: block; flex-shrink: 0; }
.nav__brand .logo { width: 104px; height: auto; }
.nav__links { display: flex; gap: 32px; font-size: 16px; }
.nav__links a { position: relative; padding: 6px 0; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--hot); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
@media (max-width: 860px) { .nav__links { display: none; } }
@media (max-width: 400px) { .nav .btn--sm { padding: 0 14px; font-size: 14px; } }

/* ---------- Cursor ---------- */
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor { position: fixed; left: 0; top: 0; z-index: 600; pointer-events: none; } /* above the intro gate (500) */
.cursor__dot, .cursor__flower { position: absolute; transform: translate(-50%, -50%); transition: transform 0.45s var(--ease-spring), opacity 0.3s; }
.cursor__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--hot); }
.cursor__flower { color: var(--hot); opacity: 0; transform: translate(-50%, -50%) scale(0.2) rotate(-90deg); }
.cursor.is-hot .cursor__dot { transform: translate(-50%, -50%) scale(0); }
.cursor.is-hot .cursor__flower { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); animation: spin 6s linear infinite; }
.cursor-out .cursor { opacity: 0; }
@keyframes spin { to { rotate: 360deg; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 250; max-width: calc(100vw - 32px);
  padding: 14px 22px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 15px;
  transform: translate(-50%, 140%); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.4s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Scenes ---------- */
.scene { position: relative; }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.8s; }
.scene.is-ready canvas { opacity: 1; }
.scene.is-ready .scene__fallback { opacity: 0; }
.scene__fallback { transition: opacity 0.6s; }

/* ==========================================================================
   Sections
   ========================================================================== */


/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding: 120px 0 72px; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero__blobs { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.blob { position: absolute; display: block; background: var(--blush); animation: morph 18s ease-in-out infinite alternate; }
.blob--a { width: 46vw; height: 46vw; max-width: 720px; max-height: 720px; right: -12vw; top: -14vw; border-radius: 58% 42% 63% 37% / 45% 55% 45% 55%; }
.blob--b { width: 30vw; height: 30vw; max-width: 460px; max-height: 460px; left: -10vw; bottom: -8vw; background: var(--blush-2); opacity: 0.7; border-radius: 40% 60% 35% 65% / 55% 40% 60% 45%; animation-duration: 22s; }
.blob--c { width: 9vw; height: 9vw; min-width: 70px; min-height: 70px; left: 46%; top: 16%; background: var(--blush-2); border-radius: 50%; opacity: 0.6; animation-duration: 14s; }
@keyframes morph {
  0% { border-radius: 58% 42% 63% 37% / 45% 55% 45% 55%; transform: rotate(0deg); }
  100% { border-radius: 38% 62% 42% 58% / 60% 38% 62% 40%; transform: rotate(14deg); }
}
.hero__stage { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero__stage .scene { position: absolute; inset: 0; }
/* The 3D logo is fitted into this box; without 3D the flat logo shows here instead. */
.hero__logo-space { width: min(24vw, 340px); aspect-ratio: 10 / 6.4; margin: 0 0 16px -6px; } /* same shape as the 3D flower bunch */
.hero__logo-space .bunch { position: relative; display: block; width: 100%; height: 100%; transition: opacity 0.6s; }
.hero__logo-space.is-live .bunch { opacity: 0; }
/* Flat fallback when 3D is off: a little cluster of brand flowers. */
.bunch__f { position: absolute; }
.bunch__f--0 { left: 38%; top: 30%; color: var(--hot); }
.bunch__f--1 { left: 14%; top: 18%; color: var(--raspberry); }
.bunch__f--2 { left: 64%; top: 16%; color: var(--blush-2); }
.bunch__f--3 { left: 22%; top: 58%; color: var(--blush-2); }
.bunch__f--4 { left: 60%; top: 56%; color: var(--raspberry); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero__copy { position: relative; z-index: 2; min-width: 0; }
.hero__copy .eyebrow { color: var(--raspberry); }
.hero__copy .eyebrow .flower { color: var(--hot); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 36px; }
.hero__hint { color: var(--ink-soft); letter-spacing: 0.16em; font-size: 11px; }
.hero__photo { position: relative; justify-self: end; width: min(100%, 420px); aspect-ratio: 530 / 860; border-radius: 999px 999px 32px 32px; overflow: hidden; background: var(--blush); box-shadow: var(--shadow); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.hero__deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; color: var(--hot); }
.deco { position: absolute; animation: bob 6s ease-in-out infinite; }
.deco--heart1 { width: 38px; left: 56%; top: 22%; color: var(--raspberry); }
.deco--heart2 { width: 24px; right: 6%; bottom: 20%; animation-delay: -2s; }
.deco--fl1 { left: 6%; top: 18%; animation-delay: -1s; }
.deco--fl2 { left: 52%; bottom: 14%; color: var(--blush-2); animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(8deg); } }
@media (max-width: 767px) {
  .hero { padding: 84px 0 48px; min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; gap: 20px; }
  .hero__photo { justify-self: center; height: min(34svh, 300px); width: auto; order: -1; }
  .headline--hero { font-size: clamp(38px, 11vw, 52px); }
  .hero__copy .eyebrow { font-size: 10.5px; letter-spacing: 0.18em; margin-bottom: 14px; }
  .hero .lede { margin-top: 16px; font-size: 16px; }
  .hero__actions { margin-top: 24px; }
  .hero__hint { display: none; }
  .hero__logo-space { display: none; }
  .deco--heart1 { left: auto; right: 10%; top: 14%; }
  .deco--heart2, .deco--fl2 { display: none; }
}

/* ---------- Word strip ---------- */
.words { position: relative; padding: clamp(28px, 4vw, 48px) 0; background: var(--raspberry); color: var(--cream); overflow: hidden; }
.words__track { display: flex; width: max-content; will-change: transform; }
.words__item { display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 44px); padding-right: clamp(20px, 3vw, 44px); font-family: var(--display); font-weight: 600; font-size: clamp(40px, 7vw, 104px); line-height: 1; text-transform: uppercase; letter-spacing: -0.01em; white-space: nowrap; }
.words__item:nth-child(even) { color: var(--blush-2); }
.words__flower { width: 0.42em; height: 0.42em; color: var(--blush-2); }
.words__flower circle { fill: var(--raspberry); }
.reduced .words { overflow-x: auto; }


/* ---------- Collection ring ---------- */
.collection { background: linear-gradient(var(--cream), var(--cream-2) 30%, var(--cream-2) 70%, var(--cream)); padding-bottom: clamp(64px, 8vw, 120px); }
.collection__head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.collection__head .lede { margin-inline: auto; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.chip { height: 42px; padding: 0 20px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 15px; transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.35s var(--ease-spring); }
.chip:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--raspberry); }
.chip.is-on { background: var(--raspberry); color: #fff; box-shadow: none; }
.ring { position: relative; margin-top: clamp(24px, 4vw, 48px); }
.ring__scene { height: clamp(420px, 46vw, 640px); }
.ring__scene.is-static { display: none; }
.ring__caption { position: relative; z-index: 1; text-align: center; margin-top: 4px; min-height: 96px; }
.ring__name { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.4vw, 32px); color: var(--ink); margin: 6px auto 4px; max-width: 26ch; padding: 0 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ring__controls { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; }
.ring__step { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--raspberry); box-shadow: inset 0 0 0 1.5px var(--line); transition: transform 0.35s var(--ease-spring), background 0.3s; }
.ring__step:hover { background: var(--blush); transform: scale(1.06); }
.ring__hint { text-align: center; margin-top: 18px; color: var(--ink-soft); font-size: 11px; }
.price { display: inline-flex; align-items: baseline; gap: 8px; font-weight: 500; font-size: 18px; color: var(--ink); }
.price__was { color: var(--ink-soft); font-size: 0.85em; font-weight: 400; }
.price__now.is-sale { color: var(--raspberry); }

.ring__list { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 24px; scrollbar-width: none; }
.ring__list::-webkit-scrollbar { display: none; }
.card { flex: 0 0 min(64vw, 280px); scroll-snap-align: start; }
.card__btn { display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; border-radius: 22px; }
.card__img { display: block; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; background: var(--blush); box-shadow: var(--shadow); }
.card__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform 0.8s var(--ease); }
.card__btn:hover .card__img img { transform: scale(1.05); }
.card__name { font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 1.25; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Quick view */
.qv { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(81, 76, 76, 0.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: qv-in 0.35s var(--ease); }
.qv__box { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: min(960px, 100%); max-height: calc(100svh - 32px); overflow: auto; background: var(--cream); border-radius: var(--radius); box-shadow: 0 30px 80px -30px rgba(81, 76, 76, 0.5); animation: qv-pop 0.6s var(--ease-spring); }
.qv__img { background: var(--blush); min-height: 0; }
.qv__img img { width: 100%; height: 100%; max-height: 80svh; object-fit: cover; object-position: 50% 0; }
.qv__body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(24px, 4vw, 48px); justify-content: center; min-width: 0; }
.qv__title { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.12; color: var(--raspberry); overflow-wrap: anywhere; }
.qv__note { color: var(--ink-soft); font-size: 15px; }
.qv__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; background: #fff; font-size: 26px; line-height: 1; color: var(--ink); box-shadow: var(--shadow); }
@keyframes qv-in { from { opacity: 0; } }
@keyframes qv-pop { from { opacity: 0; transform: translateY(24px) scale(0.94); } }
@media (max-width: 680px) {
  .qv__box { grid-template-columns: 1fr; }
  .qv__img img { max-height: 46svh; }
}


/* ---------- Story ---------- */
/* Default (phones, reduced motion, or before JS): steps stacked, each with its own photo.
   .is-pinned (set by Story.js on wide screens): one step at a time beside a photo stack. */
.story { position: relative; padding-top: var(--section-y); padding-bottom: var(--section-y); background: var(--cream); }
.story__intro { margin-bottom: clamp(24px, 4vw, 56px); }
.story__grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.story__steps { display: grid; gap: 56px; }
.story__step { max-width: 30rem; }
.story__num { color: var(--raspberry); }
.story__title { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.05; color: var(--raspberry); margin: 14px 0 18px; }
.story__body { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.6; color: var(--ink); }
.story__inline { display: block; width: 100%; max-width: 420px; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: 50% 15%; border-radius: 24px; margin-top: 22px; box-shadow: var(--shadow); }
.story__pics { display: none; }
.story.is-pinned { padding-bottom: 0; }
.story.is-pinned .story__pin { min-height: 100svh; display: flex; align-items: center; }
.story.is-pinned .story__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.story.is-pinned .story__steps { gap: 0; }
.story.is-pinned .story__step { grid-area: 1 / 1; }
.story.is-pinned .story__inline { display: none; }
.story.is-pinned .story__pics { display: block; position: relative; aspect-ratio: 2 / 3; justify-self: center; height: 78svh; max-height: 78svh; max-width: 100%; }
.story__pic { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; background: var(--blush); box-shadow: var(--shadow); }
.story__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.story__dots { position: absolute; right: -28px; top: 50%; transform: translateY(-50%); display: grid; gap: 8px; }
.story__dot { display: block; width: 4px; height: 36px; border-radius: 4px; background: var(--blush-2); overflow: hidden; }
.story__dot i { display: block; height: 100%; background: var(--hot); transform: scaleY(0); transform-origin: top; }
.story__dot:first-child i { transform: scaleY(1); }

/* ---------- Prints ---------- */
.prints { background: var(--blush); }
.prints__head { margin-bottom: clamp(40px, 6vw, 88px); }
.prints__list { display: grid; gap: clamp(80px, 10vw, 160px); }
.print { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.print--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.print--flip .print__img { order: 2; }
.print__img { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--blush-2); box-shadow: var(--shadow); }
.print__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; will-change: transform; }
.print__layer { position: absolute; width: clamp(110px, 14vw, 210px); aspect-ratio: 2 / 3; border-radius: 999px 999px 24px 24px; overflow: hidden; border: 6px solid var(--cream); box-shadow: var(--shadow); left: calc(58% - clamp(55px, 7vw, 105px)); bottom: -6%; z-index: 2; }
.print--flip .print__layer { left: calc(42% - clamp(55px, 7vw, 105px)); top: -6%; bottom: auto; }
.print__layer img { width: 100%; height: 100%; object-fit: cover; }
.print__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.print__name { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 3.6vw, 56px); line-height: 1.02; color: var(--raspberry); }
.print__blurb { color: var(--ink); max-width: 34ch; }
@media (max-width: 767px) {
  .print, .print--flip { grid-template-columns: 1fr; }
  .print--flip .print__img { order: 0; }
  .print__layer { width: 96px; left: auto; right: 12px; top: auto; bottom: auto; margin-top: 0; position: absolute; top: 12px; border-width: 4px; }
  .print--flip .print__layer { left: auto; right: 12px; top: 12px; }
}


/* ---------- Join ---------- */
.join__card { position: relative; overflow: hidden; max-width: 980px; margin: 0 auto; padding: clamp(36px, 6vw, 80px); border-radius: 36px; background: var(--raspberry); color: var(--cream); text-align: center; display: flex; flex-direction: column; align-items: center;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.6s var(--ease); }
.join__card .eyebrow { color: var(--blush-2); }
.join__card .headline { color: var(--cream); }
.join__card .headline .em { color: var(--blush-2); }
.join__card .lede { color: rgba(255, 254, 248, 0.86); margin-inline: auto; }
.join__flower { position: absolute; color: rgba(255, 255, 255, 0.12); animation: spin 30s linear infinite; }
.join__flower .flower circle { fill: transparent; }
.join__flower--a { right: -30px; top: -30px; }
.join__flower--b { left: 24px; bottom: 18px; animation-direction: reverse; }
.join__form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; width: 100%; max-width: 720px; margin-top: 32px; align-items: end; }
.field { display: grid; gap: 6px; text-align: left; min-width: 0; }
.field__label { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 254, 248, 0.86); }
.field input { height: 56px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--cream); color: var(--ink); font-size: 16px; min-width: 0; }
.field input:focus-visible { outline: 2.5px solid var(--blush-2); outline-offset: 2px; }
.join__form .btn { background: var(--cream); color: var(--raspberry-deep); }
.join__form .btn:hover { background: var(--blush); }
.join__form .btn:disabled { opacity: 0.9; cursor: default; transform: none; }
.join__fine { margin-top: 18px; font-size: 13px; color: rgba(255, 254, 248, 0.78); }
@media (max-width: 767px) { .join__form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--cream-2); padding: clamp(56px, 8vw, 96px) 0 32px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.footer__grid > * { min-width: 0; }
.footer__brand { display: grid; gap: 18px; justify-items: start; }
.footer__brand p { max-width: 34ch; color: var(--ink-soft); }
.footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; font-family: var(--display); font-size: 20px; }
.footer__links a { color: var(--raspberry); }
.footer__links a:hover { color: var(--hot); }
.footer__base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); }
@media (max-width: 767px) { .footer__grid { grid-template-columns: 1fr; } }


/* ---------- Intro gate ---------- */
.gate { display: none; }
.gate-on .gate { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; align-content: center; gap: 36px; background: var(--cream); transition: opacity 0.8s var(--ease), visibility 0.8s; }
.gate.is-leaving { opacity: 0; visibility: hidden; }
.gate__petals { position: absolute; left: 50%; top: 42%; width: 0; height: 0; }
.gate__petal { position: absolute; width: calc(28px * var(--s)); height: calc(28px * var(--s)); margin: calc(-14px * var(--s)); border-radius: 60% 0 60% 0; background: var(--hot); opacity: 0;
  animation: petal 1.9s var(--ease) var(--d) both; }
.gate__petal:nth-child(3n) { background: var(--blush-2); }
.gate__petal:nth-child(3n+1) { background: var(--raspberry); }
@keyframes petal {
  0% { opacity: 0; transform: rotate(var(--a)) translateX(48vmax) rotate(0deg) scale(1.6); }
  25% { opacity: 1; }
  80% { opacity: 1; transform: rotate(calc(var(--a) + 120deg)) translateX(40px) rotate(260deg) scale(1); }
  100% { opacity: 0; transform: rotate(calc(var(--a) + 140deg)) translateX(0) rotate(300deg) scale(0.2); }
}
.gate__logo { width: min(72vw, 400px); height: auto; opacity: 0; animation: gate-logo 1s var(--ease-spring) 1.3s both; }
@keyframes gate-logo { from { opacity: 0; transform: scale(0.4) rotate(-8deg); } to { opacity: 1; transform: none; } }
.gate__choose { display: grid; justify-items: center; gap: 18px; opacity: 0; animation: fade-up 0.8s var(--ease) 1.8s both; }
.gate__hint { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); }
.gate__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding: 0 16px; }
.gate__btns .btn { height: 66px; min-width: 240px; padding: 0 34px; font-size: 19px; gap: 12px; }
.gate__btns .btn:hover { transform: translateY(-3px) scale(1.04); }
.gate__btns .btn--ghost { background: #fff; }
.gate:focus { outline: none; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Sound toggle ---------- */
.sound { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 999px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.sound:hover { background: var(--blush); }
.sound__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound__bars i { width: 3px; height: 4px; border-radius: 2px; background: var(--raspberry); transition: height 0.3s; }
.sound.is-on .sound__bars i { animation: eq 0.9s ease-in-out infinite alternate; }
.sound.is-on .sound__bars i:nth-child(2) { animation-delay: -0.3s; }
.sound.is-on .sound__bars i:nth-child(3) { animation-delay: -0.6s; }
.sound.is-on .sound__bars i:nth-child(4) { animation-delay: -0.15s; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }
@media (max-width: 400px) { .sound__label { display: none; } .sound { padding: 0 10px; } }


/* ---------- Reviews ---------- */
.reviews { background: var(--cream); }
.reviews__head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.reviews__score { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; font-size: 17px; }
.reviews__num { font-family: var(--display); font-weight: 600; font-size: 40px; color: var(--raspberry); line-height: 1; }
.stars { color: var(--hot); letter-spacing: 0.12em; font-size: 18px; }
.reviews__score .stars { color: var(--raspberry); }
/* Soft pink light behind the rows so the glass has something to blur. */
.reviews__stage { position: relative; margin-top: clamp(40px, 6vw, 80px); padding: 24px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.reviews__stage::before, .reviews__stage::after { content: ''; position: absolute; z-index: 0; border-radius: 50%; filter: blur(40px); pointer-events: none; }
.reviews__stage::before { width: 46vw; height: 260px; left: 8%; top: 10%; background: var(--blush-2); opacity: 0.75; }
.reviews__stage::after { width: 40vw; height: 240px; right: 6%; bottom: 4%; background: #f7b3cf; opacity: 0.55; }
.reviews__row { position: relative; z-index: 1; overflow: visible; }
.reviews__row--1 { margin-top: 22px; }
.reviews__track { display: flex; gap: 22px; width: max-content; will-change: transform; animation: drift 80s linear infinite; }
.reviews__row--1 .reviews__track { animation-duration: 66s; animation-direction: reverse; }
.reviews__row:hover .reviews__track, .reviews__row:focus-within .reviews__track { animation-play-state: paused; }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.review { width: min(78vw, 360px); flex-shrink: 0; padding: 26px 26px 22px; border-radius: 26px; display: flex; flex-direction: column; gap: 14px;
  background: rgba(255, 255, 255, 0.5); border: 1px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 18px 40px -24px rgba(150, 56, 79, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.review:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -24px rgba(150, 56, 79, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.9); }
.reviews__row--0 .review { background: rgba(255, 240, 245, 0.5); }
.review blockquote { margin: 0; font-size: 16.5px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.review figcaption { display: grid; gap: 2px; margin-top: auto; font-size: 14px; }
.review figcaption strong { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--raspberry-deep); }
.review figcaption span { color: var(--ink); }
.reduced .reviews__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; padding: 0 var(--gutter); }
.reduced .review[aria-hidden="true"] { display: none; }
.reduced .reviews__stage { -webkit-mask-image: none; mask-image: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Contrast on blush backgrounds ---------- */
.story__num { color: var(--raspberry); }
.prints .eyebrow, .prints .label { color: var(--raspberry-deep); }
.prints .headline .em { color: var(--raspberry-deep); }
.prints .headline { color: var(--raspberry); }
.prints .btn--ghost { color: var(--raspberry-deep); }
.join__card { background: var(--raspberry-deep); }
.join__card .eyebrow, .join__card .lede, .field__label, .join__fine { color: var(--cream); }
.footer__brand p { color: var(--ink); }
.footer__links a { color: var(--raspberry-deep); }
.footer__base { color: var(--ink); }
.sound__icon { display: none; color: var(--raspberry); }
@media (max-width: 400px) { .sound__icon { display: block; } .sound__bars { display: none; } }

/* Scroll lock for the intro gate and quick view. */
html.no-scroll, html.no-scroll body { overflow: hidden; }
main:focus { outline: none; }
