/* ==========================================================================
   DevTatvaa · Find Your Blend
   ========================================================================== */

/* Animatable colour tokens: the whole page atmosphere morphs between moods */
@property --c1 { syntax: "<color>"; inherits: true; initial-value: #06302b; }
@property --c2 { syntax: "<color>"; inherits: true; initial-value: #0b5850; }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #c8a86b; }

:root {
  --teal: #0b5850;
  --teal-deep: #06302b;
  --gold: #c8a86b;
  --gold-soft: #e9d6a8;
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.78);
  --ink-faint: rgba(255, 255, 255, 0.55);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --line: rgba(255, 255, 255, 0.18);

  --c1: #06302b;
  --c2: #0b5850;
  --accent: #c8a86b;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --deva: "Tiro Devanagari Sanskrit", "Noto Serif Devanagari", serif;

  --gutter: clamp(16px, 4vw, 48px);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --ease: cubic-bezier(.22, .8, .24, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--teal-deep);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- Atmosphere layers ---------- */
.atmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 80% 10%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 55%),
    radial-gradient(90% 70% at 10% 100%, color-mix(in srgb, var(--c2) 85%, transparent) 0%, transparent 70%),
    linear-gradient(160deg, var(--c1) 0%, var(--c2) 100%);
  transition: --c1 1.4s var(--ease), --c2 1.4s var(--ease), --accent 1.4s var(--ease);
}
/* soft vignette keeps white text readable on every palette */
.atmos::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(130% 100% at 50% 40%, transparent 40%, rgba(0, 0, 0, .38) 100%);
}

.aroma {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

main, .topbar, .rail, .retake-fab { position: relative; z-index: 2; }

/* ---------- Ripple reveal ---------- */
.ripple {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: linear-gradient(160deg, var(--r1, #000), var(--r2, #000));
  clip-path: circle(0px at var(--rx, 50%) var(--ry, 50%));
  opacity: 0;
}
.ripple.is-growing {
  opacity: 1;
  clip-path: circle(150vmax at var(--rx, 50%) var(--ry, 50%));
  transition: clip-path .9s var(--ease);
}
.ripple.is-fading {
  opacity: 0;
  clip-path: circle(150vmax at var(--rx, 50%) var(--ry, 50%));
  transition: opacity .8s ease .1s;
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(14px, var(--safe-t)) max(var(--gutter), var(--safe-r)) 14px max(var(--gutter), var(--safe-l));
  z-index: 20;
  pointer-events: none;
}
.topbar::before {
  /* soft veil so scrolling text never collides with the logo */
  content: "";
  position: absolute;
  inset: 0 0 -24px 0;
  z-index: -1;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--c1) 92%, transparent) 0%, color-mix(in srgb, var(--c1) 55%, transparent) 60%, transparent 100%);
  opacity: 0;
  transition: opacity .4s;
}
body.past-hero .topbar::before { opacity: 1; }
.topbar > * { pointer-events: auto; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.brand img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.topbar-shop {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, .15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .3s, border-color .3s;
}

/* ---------- Shared type ---------- */
.eyebrow {
  margin: 0 0 18px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 1.4s var(--ease);
}
em { font-style: italic; color: var(--gold-soft); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 96px var(--gutter) 56px;
  text-align: center;
  scroll-snap-align: start;
}
.hero-inner { max-width: 880px; width: 100%; }
.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 7.5vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -.01em;
}
.hero-sub {
  margin: 22px auto 40px;
  max-width: 520px;
  color: var(--ink-soft);
  font-size: clamp(.95rem, 1.6vw, 1.05rem);
}

.moods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
}
.moods-loading { margin: 0; color: var(--ink-faint); font-style: italic; font-family: var(--serif); font-size: 1.2rem; }

.mood-chip {
  --m: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px 11px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: .95rem;
  font-weight: 400;
  opacity: 0;
  transform: translateY(14px);
  animation: chip-in .8s var(--ease) forwards;
  animation-delay: calc(var(--i) * 70ms + 200ms);
  transition: background .35s, border-color .35s, box-shadow .35s, transform .35s var(--ease);
}
.mood-chip:focus-visible {
  background: color-mix(in srgb, var(--m) 22%, transparent);
  border-color: var(--m);
  box-shadow: 0 0 28px color-mix(in srgb, var(--m) 45%, transparent);
  transform: translateY(-2px);
}
.mood-orb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, var(--m) 45%, color-mix(in srgb, var(--m) 40%, #000) 100%);
  box-shadow: 0 0 14px var(--m);
  flex: none;
}
@keyframes chip-in { to { opacity: 1; transform: none; } }

.breath {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
  color: var(--ink-faint);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
}
.breath-orb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 60%, transparent);
  animation: breathe 8s ease-in-out infinite;
}
.breath-text { position: relative; display: inline-block; width: 7.5em; height: 1.4em; text-align: left; }
.breath-text span { position: absolute; left: 0; top: 0; animation: breath-word 8s ease-in-out infinite; }
.breath-text .out { animation-delay: -4s; }
@keyframes breathe { 0%, 100% { transform: scale(.7); opacity: .6; } 50% { transform: scale(1.6); opacity: 1; } }
@keyframes breath-word { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0; } 100% { opacity: 1; } }

.wander {
  display: block;
  width: fit-content;
  margin: 28px auto 0;
  font-size: .85rem;
  color: var(--ink-faint);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}

/* ---------- Blend chapter ---------- */
.chapter {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 96px var(--gutter) 72px;
  scroll-snap-align: start;
  /* the rotating mandala's corners must never widen the page */
  overflow-x: hidden;
  overflow-x: clip;
}
.chapter-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}
.chapter:nth-child(even) .visual { order: 2; }

/* Visual: arch-framed product inside a slowly turning mandala */
.visual {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 900px;
  padding: 8%;
}
.mandala {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--m);
  opacity: .5;
  animation: spin 90s linear infinite;
}
.chapter:nth-child(even) .mandala { animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.halo {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 4 / 5;
  transform-style: preserve-3d;
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform .5s var(--ease);
}
.halo-float { width: 100%; height: 100%; animation: bob 7s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(8px); } }

.arch {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 999px 999px 28px 28px;
  border: 1px solid color-mix(in srgb, var(--m) 70%, transparent);
  background: color-mix(in srgb, var(--m) 18%, #000);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, .04),
    0 0 70px color-mix(in srgb, var(--m) 45%, transparent),
    0 40px 80px -30px rgba(0, 0, 0, .7);
}
.arch img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .5s ease, transform 1.2s var(--ease);
}
.arch img.is-swapping { opacity: 0; transform: scale(1.04); }
.arch::after {
  /* glass sheen */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, .22) 0%, transparent 32%, transparent 70%, rgba(0, 0, 0, .25) 100%);
  pointer-events: none;
}
.arch.no-img img { display: none; }
.arch-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  font-family: var(--deva);
  font-size: 3.4rem;
  color: var(--m);
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--m) 35%, transparent), transparent 70%);
}
.arch.no-img .arch-fallback { display: grid; }

.chosen-tag {
  position: absolute;
  top: 4%;
  left: 0;
  right: 0;
  width: fit-content;
  margin: 0 auto;
  z-index: 3;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--m);
  color: #1a1206;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 6px 24px color-mix(in srgb, var(--m) 55%, transparent);
  display: none;
}
.chapter.is-chosen .chosen-tag { display: block; animation: chip-in .7s var(--ease) both; }

/* Story column */
.story { min-width: 0; }
.story .eyebrow { color: var(--m); }
.deva {
  display: block;
  font-family: var(--deva);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--m);
  opacity: .9;
  margin-bottom: 4px;
}
.blend-name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: .95;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}
.blend-intent {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  color: var(--ink-soft);
}
.promise {
  margin: 22px 0 6px;
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  font-weight: 400;
  max-width: 34em;
}
.need {
  margin: 0;
  color: var(--ink-faint);
  font-size: .92rem;
}

.block-label {
  margin: 28px 0 12px;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.notes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.note {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--m) 55%, transparent);
  background: color-mix(in srgb, var(--m) 12%, transparent);
  font-size: .85rem;
}

.benefits { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.benefits li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: .95rem; }
.benefits li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: .05em;
  color: var(--m);
  font-size: .8rem;
}

/* Format cards = the buy links */
.formats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.format {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  transition: border-color .3s, background .3s, transform .35s var(--ease), box-shadow .35s;
}
.format:focus-visible, .format.is-active {
  border-color: var(--m);
  background: color-mix(in srgb, var(--m) 16%, rgba(0, 0, 0, .25));
  box-shadow: 0 12px 36px -12px color-mix(in srgb, var(--m) 60%, transparent);
}
.format-type { font-weight: 500; font-size: 1rem; }
.format-size { font-size: .8rem; color: var(--ink-faint); }
.format-price { margin-top: 10px; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1; }
.format-price s { font-size: .95rem; color: var(--ink-faint); font-weight: 400; margin-left: 6px; }
.format-cta {
  margin-top: 12px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--m);
}
.format-cta .cta-arrow { display: inline-block; transition: transform .3s var(--ease); }
.cta-view { display: none; }
/* touch: an unselected format says "Tap to see it"; the selected one says "Bring it home" */
@media (hover: none) {
  .format.is-multi:not(.is-active) .cta-buy { display: none; }
  .format.is-multi:not(.is-active) .cta-view { display: inline; color: var(--ink-faint); }
}
.format-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--m) 30%, transparent);
}
.format-badge.is-low { background: #b23a2a; color: #fff; }

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.features li::before { content: "◇ "; color: var(--m); }

/* Scroll-in choreography */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.chapter.in-view .reveal { opacity: 1; transform: none; }
.note { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(400ms + var(--i, 0) * 110ms); }
.chapter.in-view .note { opacity: 1; transform: none; }

/* ---------- Closing ---------- */
.closing {
  min-height: 80vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 96px var(--gutter);
  scroll-snap-align: start;
}
.closing-inner { max-width: 760px; }
.closing-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.08; }
.closing-sub { color: var(--ink-soft); margin: 18px 0 34px; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s;
}
.btn-gold { background: var(--gold); color: #1d1606; }
.btn-ghost { background: transparent; border-color: var(--line); }

/* ---------- Mood rail ---------- */
.rail {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 15;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s;
}
body.past-hero .rail { opacity: 1; pointer-events: auto; }
.rail a {
  --m: var(--gold);
  position: relative;
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--m);
  background: transparent;
  transition: background .3s, transform .3s var(--ease);
}
.rail a.is-current { background: var(--m); transform: scale(1.35); box-shadow: 0 0 12px var(--m); }
.rail a span {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translate(6px, -50%);
  white-space: nowrap;
  font-size: .75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.rail a:focus-visible span { opacity: 1; transform: translate(0, -50%); }

.retake-fab {
  position: fixed;
  right: max(18px, var(--safe-r));
  bottom: calc(18px + var(--safe-b));
  transform: translate(0, 20px);
  z-index: 15;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: .8rem;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s, transform .4s var(--ease);
}
body.past-hero .retake-fab { opacity: 1; pointer-events: auto; transform: translate(0, 0); }
/* ---------- Hover (mouse / trackpad only, never sticky on touch) ---------- */
@media (hover: hover) and (pointer: fine) {
  .topbar-shop:hover { background: var(--glass-strong); border-color: var(--accent); }
  .mood-chip:hover {
    background: color-mix(in srgb, var(--m) 22%, transparent);
    border-color: var(--m);
    box-shadow: 0 0 28px color-mix(in srgb, var(--m) 45%, transparent);
    transform: translateY(-2px);
  }
  .format:hover {
    border-color: var(--m);
    background: color-mix(in srgb, var(--m) 16%, rgba(0, 0, 0, .25));
    box-shadow: 0 12px 36px -12px color-mix(in srgb, var(--m) 60%, transparent);
    transform: translateY(-3px);
  }
  .format:hover .format-cta .cta-arrow { transform: translateX(4px); }
  .wander:hover { color: var(--ink); border-color: var(--accent); }
  .btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px var(--gold); }
  .btn-ghost:hover { background: var(--glass-strong); }
  .rail a:hover { background: var(--m); }
  .rail a:hover span { opacity: 1; transform: translate(0, -50%); }
}

/* Touch feedback instead of hover */
@media (hover: none) {
  .mood-chip:active { transform: scale(.96); background: color-mix(in srgb, var(--m) 22%, transparent); border-color: var(--m); }
  .format:active { transform: scale(.98); border-color: var(--m); }
  .btn:active, .topbar-shop:active { transform: scale(.97); }
}

/* ---------- Responsive: tablets & phones ---------- */
@media (max-width: 860px) {
  /* tall chapters + snap points fight the thumb on phones */
  html { scroll-snap-type: none; }

  .hero { padding: calc(80px + var(--safe-t)) var(--gutter) calc(40px + var(--safe-b)); }
  .hero-title { font-size: clamp(2.2rem, 10vw, 4rem); line-height: 1.05; }
  .hero-sub { margin: 18px auto 30px; }
  .moods { gap: 10px; }
  .breath { margin-top: 36px; }

  .chapter { padding: calc(80px + var(--safe-t)) var(--gutter) calc(96px + var(--safe-b)); }
  .chapter-inner { grid-template-columns: 1fr; gap: 24px; }
  .chapter:nth-child(even) .visual { order: 0; }
  .visual { padding: 6% 14%; max-width: 420px; margin: 0 auto; width: 100%; }
  /* never let the bottle eat the whole screen on short phones */
  .halo { width: min(100%, 340px, 40svh); }
  .story { text-align: left; }
  .blend-name { font-size: clamp(2.5rem, 12vw, 4.2rem); overflow-wrap: break-word; }
  .block-label { margin: 24px 0 10px; }

  .closing { min-height: 70svh; padding: 80px var(--gutter) calc(110px + var(--safe-b)); }

  .rail { right: max(6px, var(--safe-r)); gap: 10px; }
  .rail a { width: 9px; height: 9px; }
  .rail a::after { content: ""; position: absolute; inset: -9px; } /* bigger tap target */

  .retake-fab {
    right: auto;
    left: 50%;
    transform: translate(-50%, 20px);
    padding: 12px 20px;
    min-height: 44px;
  }
  body.past-hero .retake-fab { transform: translate(-50%, 0); }
}

/* Large phones */
@media (max-width: 600px) {
  .eyebrow { letter-spacing: .22em; margin-bottom: 14px; }
  .brand { font-size: 1.2rem; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .formats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .format { padding: 14px; border-radius: 16px; }
  .format-price { font-size: 1.35rem; }
  .format-price s { display: block; margin: 4px 0 0; font-size: .85rem; }
  .format-badge { position: static; align-self: flex-start; margin-bottom: 6px; }
  .closing-actions { flex-direction: column; align-items: stretch; max-width: 360px; margin: 0 auto; }
  .btn { padding: 15px 22px; }
}

/* Standard phones */
@media (max-width: 480px) {
  .mood-chip { padding: 9px 15px 9px 10px; font-size: .88rem; min-height: 44px; gap: 8px; }
  .mood-orb { width: 18px; height: 18px; }
  .moods { gap: 8px; }
  .rail { display: none; }
  .topbar-shop { padding: 8px 13px; font-size: .7rem; letter-spacing: .1em; }
  .visual { padding: 6% 12%; }
  .notes { gap: 6px; }
  .note { padding: 5px 12px; font-size: .8rem; }
  .features { gap: 6px 12px; font-size: .64rem; }
}

/* Small phones (iPhone SE 1st gen, Galaxy mini, Fold cover screen) */
@media (max-width: 360px) {
  :root { --gutter: 14px; }
  .hero-title { font-size: 2.05rem; }
  .hero-sub { font-size: .9rem; }
  .mood-chip { padding: 8px 12px 8px 8px; font-size: .82rem; }
  .mood-orb { width: 16px; height: 16px; }
  .brand { font-size: 1.1rem; }
  .topbar-shop { padding: 7px 11px; font-size: .64rem; }
  .blend-name { font-size: 2.3rem; }
  .format { padding: 12px; }
  .format-type { font-size: .9rem; }
  .format-price { font-size: 1.2rem; }
  .format-cta { font-size: .7rem; letter-spacing: .06em; }
  .breath { font-size: 1rem; }
}

/* Ultra narrow (< 300px): stack the buy cards */
@media (max-width: 300px) {
  .formats { grid-template-columns: 1fr; }
  .brand span { display: none; }
}

/* ---------- Blend carousel (phones & small tablets) ---------- */
.blend-nav, .more-toggle { display: none; }

@media (max-width: 860px) {
  .blend-track {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    transition: height .45s var(--ease);
  }
  .blend-track::-webkit-scrollbar { display: none; }
  .blend-track:focus-visible { outline-offset: -4px; }

  .blend-track > .chapter {
    flex: 0 0 100%;
    width: 100%;
    min-height: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: calc(70px + var(--safe-t)) max(var(--gutter), var(--safe-r)) 6px max(var(--gutter), var(--safe-l));
  }
  .chapter-inner { gap: 12px; }
  .visual { padding: 3% 20%; max-width: 340px; }
  .halo { width: min(100%, 220px, 30svh); }

  /* centred card; prices come straight after the promise */
  .story { display: flex; flex-direction: column; text-align: center; }
  .story > .buy { order: 1; }
  .story > .more-toggle { order: 2; }
  .story > .more { order: 3; }
  .story > .features { order: 4; }
  .story .eyebrow { margin-bottom: 8px; }
  .blend-name { font-size: clamp(2.3rem, 11vw, 3.4rem); }
  .blend-intent { margin-top: 4px; font-size: 1.2rem; }
  .promise { margin: 10px auto 0; font-size: 1rem; max-width: 28em; }
  .buy .block-label { margin: 16px 0 10px; }
  .formats { text-align: left; }
  .features { justify-content: center; margin-top: 14px; }
  .more:not(.is-open) ~ .features { display: none; } /* folds away with the details */
  .notes { justify-content: center; }
  .benefits { text-align: left; max-width: 30em; margin: 0 auto; }
  .need { margin-top: 14px; }

  .more-toggle {
    display: inline-flex;
    align-self: center;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    min-height: 44px;
    padding: 8px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(0, 0, 0, .18);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .08em;
    cursor: pointer;
  }
  .more-chev { display: inline-block; line-height: 1; transform: translateY(-3px); transition: transform .3s var(--ease); }
  .more-toggle[aria-expanded="true"] .more-chev { transform: translateY(2px) rotate(180deg); }

  .more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
  .more.is-open { grid-template-rows: 1fr; }
  .more-inner { min-height: 0; overflow: hidden; }
  .more:not(.is-open) .more-inner { visibility: hidden; transition: visibility 0s .45s; }

  .blend-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px var(--gutter) 0;
  }
  .nav-row { display: flex; align-items: center; gap: 8px; max-width: 100%; }
  .nav-arrow {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0 0 3px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(0, 0, 0, .2);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: opacity .3s, border-color .3s;
  }
  .nav-arrow:disabled { opacity: .3; cursor: default; }
  .nav-dots { display: flex; flex-wrap: wrap; justify-content: center; }
  .nav-dot { position: relative; width: 20px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
  .nav-dot::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    background: color-mix(in srgb, var(--m) 45%, transparent);
    transition: width .3s var(--ease), background .3s, box-shadow .3s;
  }
  .nav-dot[aria-current="true"]::before { width: 18px; background: var(--m); box-shadow: 0 0 10px var(--m); }
  .nav-hint {
    margin: 0;
    font-family: var(--serif);
    font-style: italic;
    font-size: .95rem;
    color: var(--ink-faint);
    transition: opacity .5s;
  }
  .nav-hint.is-gone { opacity: 0; }

  .rail { display: none; }
  .closing { min-height: 0; padding-top: 64px; }
  /* the page is short now: "Change feeling" lives under the dots instead of floating over prices */
  .retake-fab { display: none; }
  .nav-retake {
    margin-top: 6px;
    min-height: 40px;
    padding: 8px 16px;
    border: 0;
    background: none;
    font-size: .8rem;
    color: var(--ink-soft);
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: var(--line);
    text-underline-offset: 4px;
  }
}
@media (max-width: 360px) {
  .nav-dot { width: 16px; }
  .nav-dot[aria-current="true"]::before { width: 14px; }
  .nav-arrow { width: 36px; height: 36px; }
}
@media (max-width: 300px) {
  .nav-arrow { display: none; }
}

/* Phones held sideways: short screens, keep things side-by-side and compact */
@media (orientation: landscape) and (max-height: 520px) {
  html { scroll-snap-type: none; }
  .hero { min-height: auto; padding: calc(64px + var(--safe-t)) max(var(--gutter), var(--safe-r)) 32px max(var(--gutter), var(--safe-l)); }
  .hero-title { font-size: clamp(1.9rem, 5.5vw, 2.8rem); }
  .hero-sub { margin: 10px auto 18px; font-size: .9rem; }
  .breath { margin-top: 18px; }
  .wander { margin-top: 14px; }

  .chapter { min-height: auto; padding: 72px max(var(--gutter), var(--safe-r)) 80px max(var(--gutter), var(--safe-l)); }
  .chapter-inner { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 28px; align-items: start; }
  .chapter:nth-child(even) .visual { order: 0; }
  .visual { padding: 4%; max-width: 280px; }
  .story { text-align: left; }
  .notes, .features { justify-content: flex-start; }
  .promise, .benefits { margin-left: 0; }
  .more-toggle { align-self: flex-start; }
  .halo { width: min(100%, 200px, 58svh); }
  .blend-name { font-size: clamp(2rem, 5vw, 2.8rem); }
  .formats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .closing { min-height: auto; padding: 64px var(--gutter) 90px; }
  .closing-actions { flex-direction: row; max-width: none; }
  .rail { display: none; }
  .retake-fab { left: auto; right: max(16px, var(--safe-r)); bottom: calc(12px + var(--safe-b)); transform: translate(0, 20px); }
  body.past-hero .retake-fab { transform: none; }
}

/* ---------- First-visit splash (mobile) ---------- */
.splash { display: none; }
html.splash-on, html.splash-on body { overflow: hidden; }
html.splash-on .brand img { opacity: 0; }
/* hero waits behind the splash, then rises in as the veil dissolves */
html.splash-on:not(.splash-reveal) .topbar-shop { opacity: 0; }
html.splash-on:not(.splash-reveal) .mood-chip { animation-play-state: paused; }
html.splash-on:not(.splash-reveal) .hero-inner { opacity: 0; transform: translateY(18px); }
.hero-inner { transition: opacity 1s var(--ease), transform 1s var(--ease); }
.topbar-shop { transition: opacity .6s ease .2s, background .3s, border-color .3s; }

html.splash-on .splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--safe-t) var(--safe-r) var(--safe-b) var(--safe-l);
  text-align: center;
  touch-action: none;
  overscroll-behavior: contain;
  transition: opacity .7s ease;
  /* failsafe: never trap the visitor if the script fails to load */
  animation: splash-failsafe .6s ease 8s forwards;
}
/* the veil lives on its own layer so it can dissolve while the logo stays solid */
html.splash-on .splash::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(80% 55% at 50% 42%, rgba(200, 168, 107, .22) 0%, transparent 70%),
    linear-gradient(160deg, #06302b 0%, #0b5850 100%);
  transition: opacity .6s ease;
}
html.splash-on .splash.is-clear::before { opacity: 0; }
.splash-mark {
  position: relative;
  width: clamp(88px, 28vmin, 128px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(.82);
  animation: splash-logo-in 1s var(--ease) .1s forwards;
}
.splash-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .05), 0 0 60px rgba(200, 168, 107, .45);
  transform-origin: center;
  will-change: transform;
}
.splash-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(233, 214, 168, .55);
  opacity: 0;
  animation: splash-ring 2.4s ease-out .5s infinite;
}
.splash-ring--2 { animation-delay: 1.7s; }
.splash-name {
  margin: 26px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 8vw, 2.4rem);
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(10px);
  animation: splash-text-in .9s var(--ease) .45s forwards;
}
.splash-tag {
  margin: 8px 0 0;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transform: translateY(10px);
  animation: splash-text-in .9s var(--ease) .65s forwards;
}
.splash-name, .splash-tag { transition: opacity .35s ease, transform .35s ease; }
html.splash-on:not(.fonts-ready) .splash-name,
html.splash-on:not(.fonts-ready) .splash-tag { animation-play-state: paused; }

/* leaving: text + rings fade, logo glides into the top-bar brand, veil dissolves */
.splash.is-leaving { pointer-events: none; }
.splash.is-leaving .splash-ring { animation: none; opacity: 0; }
.splash.is-leaving .splash-name,
.splash.is-leaving .splash-tag { animation: none; opacity: 0; transform: translateY(-6px); }
.splash.is-leaving .splash-logo {
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 0 0 rgba(200, 168, 107, 0);
  transform: translate(var(--fx, 0px), var(--fy, 0px)) scale(var(--fs, .3));
  transition: transform .85s cubic-bezier(.65, 0, .25, 1), box-shadow .6s ease;
}
html.splash-on .splash.is-fading { opacity: 0; }

@keyframes splash-logo-in { to { opacity: 1; transform: scale(1); } }
@keyframes splash-text-in { to { opacity: 1; transform: none; } }
@keyframes splash-ring {
  0% { opacity: .7; transform: scale(.9); }
  100% { opacity: 0; transform: scale(1.6); }
}
@keyframes splash-failsafe { to { opacity: 0; visibility: hidden; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .2s !important;
    transition-delay: 0s !important;
  }
  .aroma, .ripple { display: none; }
  .reveal, .note { transform: none; }
  .halo { transform: none !important; }
}
