/* =============================================================
   babyfy — editorial warm
   Oat, milk & espresso. Fraunces (display) + Hanken Grotesk (text).
   ============================================================= */

:root {
  --oat: #f3ece2;
  --milk: #fbf8f3;
  --sand: #e9dfd1;
  --espresso: #2b211c;
  --cocoa: #5b4a3f;
  --muted: #8b7a6d;
  --line: rgba(43, 33, 28, 0.12);
  --line-2: rgba(43, 33, 28, 0.2);
  --honey: #c0783c;
  --honey-deep: #9a5a28;
  --honey-soft: rgba(192, 120, 60, 0.14);
  --night: #191310;
  --night-2: #241c17;

  /* Page warmth: 0 (cool milk) → 1 (warm oat), driven by scroll in site.js */
  --w: 0;
  --cool: #f5f2ed;
  --hot: #f1e3d0;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --r-lg: 28px;
  --r: 18px;
  --r-sm: 12px;
  --header-h: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow-x: clip;
  background: color-mix(in oklab, var(--hot) calc(var(--w) * 100%), var(--cool));
  color: var(--espresso);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
}
/* paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 300;
  opacity: 0.05;
  mix-blend-mode: multiply;
  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.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.17 0 0 0 0 0.13 0 0 0 0 0.11 0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--espresso); color: var(--milk); }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; 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: 12px; top: -60px; z-index: 400;
  padding: 10px 16px; border-radius: 999px;
  background: var(--espresso); color: var(--milk); text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--honey-deep);
}
.eyebrow--light { color: #e7b98c; }
.display {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-weight: 330;
  font-size: clamp(38px, 5.6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--honey-deep);
}
.display--sm { font-size: clamp(34px, 4.2vw, 60px); }

.section-head { max-width: var(--maxw); margin: 0 auto clamp(36px, 5vw, 64px); }
.section-head--center { text-align: center; }
.section-head--split {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end;
}
.section-head__aside { margin: 0; max-width: 460px; color: var(--cocoa); font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px;
  border: 0; border-radius: 999px;
  font-size: 15.5px; font-weight: 600; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--buy, .btn--primary {
  background: var(--espresso); color: var(--milk);
  box-shadow: 0 14px 30px -14px rgba(43, 33, 28, 0.6);
}
.btn--buy:hover, .btn--primary:hover { background: #000; transform: translateY(-1px); }
.btn--buy svg { transition: transform 0.4s var(--ease); }
.btn--buy:hover svg { transform: translateX(3px); }
.btn--buy:disabled { background: var(--muted); box-shadow: none; cursor: not-allowed; transform: none; }
.btn--buy[aria-busy="true"] { opacity: 0.75; pointer-events: none; }
.btn--ghost {
  background: transparent; color: var(--espresso);
  box-shadow: inset 0 0 0 1.5px var(--espresso);
}
.btn--ghost:hover { background: var(--espresso); color: var(--milk); }
.btn--light { background: var(--milk); color: var(--espresso); }
.btn--light:hover { background: #fff; transform: translateY(-1px); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 14.5px; }

/* ---------- Announcement ---------- */
.announce {
  background: var(--espresso); color: #efe4d6;
  font-size: 13px; letter-spacing: 0.01em;
}
.announce__track {
  max-width: var(--maxw); margin: 0 auto; padding: 9px var(--gutter);
  display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap;
}
.announce b { color: #f2c08f; font-weight: 600; }
.announce__dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(239, 228, 214, 0.4); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--oat) 78%, transparent);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner {
  max-width: var(--maxw); margin: 0 auto; height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-size: 28px; font-weight: 420; letter-spacing: -0.03em;
  text-decoration: none; line-height: 1;
}
.logo em { font-style: italic; font-weight: 340; color: var(--honey-deep); }
.logo--lg { font-size: 44px; }
.header__nav { display: flex; gap: 28px; font-size: 14.5px; color: var(--cocoa); }
.header__nav a { text-decoration: none; position: relative; }
.header__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.header__nav a:hover { color: var(--espresso); }
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__cta {
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 6px 0 18px; border-radius: 999px;
  background: var(--espresso); color: var(--milk);
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background 0.3s var(--ease);
}
.header__cta:hover { background: #000; }
.header__cta-price {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px;
  border-radius: 999px; background: rgba(251, 248, 243, 0.14); font-weight: 500;
}

/* =============================================================
   PRODUCT HERO
   ============================================================= */
.pdp {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) var(--gutter) clamp(56px, 7vw, 96px);
  display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 520px);
  justify-content: center;
  gap: clamp(28px, 5vw, 80px); align-items: start;
}

/* Gallery — 4:5 photos framed so the bottle is never cut (img/p-*.webp) */
.pdp__gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.gallery__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  aspect-ratio: 4 / 5; border-radius: var(--r-lg);
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain;
  background: var(--sand);
  box-shadow: 0 40px 80px -50px rgba(43, 33, 28, 0.45);
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { margin: 0; scroll-snap-align: start; position: relative; overflow: hidden; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-top: 10px;
}
.gallery__thumbs button {
  padding: 0; border: 0; cursor: pointer; aspect-ratio: 4 / 5;
  border-radius: var(--r-sm); overflow: hidden; background: var(--sand);
  box-shadow: inset 0 0 0 1px var(--line);
  opacity: 0.6; transition: opacity 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button:hover { opacity: 0.9; }
.gallery__thumbs button.is-active { opacity: 1; box-shadow: inset 0 0 0 2px var(--espresso); }
.gallery__temp {
  position: absolute; left: 18px; top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 12px; border-radius: 999px;
  background: rgba(251, 248, 243, 0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 14px; color: var(--espresso);
  box-shadow: 0 10px 24px -14px rgba(43, 33, 28, 0.5);
}
.gallery__temp b { font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.gallery__temp small { color: var(--muted); font-size: 12.5px; }
.gallery__temp-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--honey);
  box-shadow: 0 0 0 4px var(--honey-soft);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(192, 120, 60, 0); } }

/* Panel */
.pdp__panel { padding-top: clamp(4px, 2vw, 28px); }
.pdp__title {
  margin: 0 0 18px;
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-weight: 330;
  font-size: clamp(40px, 4.6vw, 66px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.pdp__title em { font-style: italic; font-weight: 300; color: var(--honey-deep); }
.pdp__lede { margin: 0 0 26px; max-width: 520px; color: var(--cocoa); font-size: 17px; }

.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 22px; }
.price__now {
  /* low optical size: at opsz 144 the thin stroke of the "4" reads like a "1" */
  font-family: var(--display); font-variation-settings: "opsz" 36;
  font-weight: 450; font-size: 40px; letter-spacing: -0.02em; line-height: 1;
}
.price__meta { color: var(--muted); font-size: 14px; }

.ticks { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-size: 15.5px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--honey-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='m6 10.5 2.6 2.5L14 7.5' fill='none' stroke='%239a5a28' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 20px no-repeat;
}

.stock { margin-bottom: 18px; }
.stock__row {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 12px;
  margin-bottom: 9px; font-size: 14px;
}
.stock__row b { font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.stock__ship { color: var(--muted); font-size: 13px; }
.stock__pulse {
  display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%;
  background: var(--honey); box-shadow: 0 0 0 4px var(--honey-soft);
  animation: pulse 2.2s var(--ease) infinite;
}
.stock__bar { height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; }
.stock__bar i {
  display: block; height: 100%; width: var(--p); border-radius: inherit;
  background: linear-gradient(90deg, #e2a46b, var(--honey-deep));
  transition: width 1.2s var(--ease);
}

.buy { display: flex; gap: 10px; }
.qty {
  display: inline-flex; align-items: center; height: 56px; flex: none;
  border-radius: 999px; background: var(--milk); box-shadow: inset 0 0 0 1px var(--line-2);
}
.qty__btn {
  width: 46px; height: 100%; border: 0; background: none; cursor: pointer;
  font-size: 20px; border-radius: 999px;
}
.qty__btn:disabled { color: #c5b8ac; cursor: not-allowed; }
.qty output { min-width: 18px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.btn--buy { flex: 1; }
.buy__error { margin: 12px 0 0; color: #a3321f; font-size: 14px; }
.pay {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 14px 0 24px; color: var(--muted); font-size: 13.5px;
}

.assure {
  list-style: none; margin: 0 0 22px; padding: 18px 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.assure li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--cocoa); line-height: 1.3; }
.assure svg {
  flex: none; width: 26px; height: 26px;
  fill: none; stroke: var(--honey-deep); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.assure b { display: block; color: var(--espresso); font-weight: 600; font-size: 13.5px; }

/* Accordions */
.acc { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 16px 0; font-weight: 600; font-size: 15px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: transform 0.35s var(--ease);
}
.acc[open] summary::after { transform: rotate(45deg); }
.acc p, .acc__list { margin: 0 0 18px; color: var(--cocoa); font-size: 15px; }
.acc__list { padding-left: 18px; display: grid; gap: 4px; }
.acc a { color: var(--honey-deep); }
.acc--lg summary {
  padding: 24px 0;
  font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 72;
  font-weight: 380; font-size: clamp(19px, 1.9vw, 24px); letter-spacing: -0.01em;
}
.acc--lg p { max-width: 720px; font-size: 16px; line-height: 1.65; padding-bottom: 8px; }

/* =============================================================
   FACTS
   ============================================================= */
.facts {
  max-width: var(--maxw); margin: 0 auto clamp(64px, 9vw, 120px);
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.facts__item {
  padding: 28px clamp(12px, 2vw, 28px);
  border-left: 1px solid var(--line);
  display: grid; gap: 4px;
}
.facts__item:first-child { border-left: 0; padding-left: 0; }
.facts__item b {
  font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 144;
  font-weight: 330; font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -0.03em; line-height: 1;
}
.facts__item b small { font-size: 0.42em; margin-left: 3px; color: var(--honey-deep); letter-spacing: 0; }
.facts__item span { color: var(--muted); font-size: 14px; }

/* =============================================================
   NIGHT (problem)
   ============================================================= */
.night {
  position: relative; isolation: isolate;
  min-height: min(72vh, 640px);
  display: grid; align-items: center;
  background: var(--night); color: #efe4d6;
  overflow: hidden;
}
.night__media { position: absolute; inset: 0; z-index: -1; }
/* mirrored so the mother's face sits on the right, clear of the copy */
.night__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; opacity: 0.85; transform: scaleX(-1); }
.night__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(25, 19, 16, 0.96) 0%, rgba(25, 19, 16, 0.82) 38%, rgba(25, 19, 16, 0.1) 75%);
}
.night__copy { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 96px var(--gutter); }
.night__copy > * { max-width: 540px; }
.night .display em { color: #e7b98c; }
.night__copy p { color: rgba(239, 228, 214, 0.78); font-size: 17px; }
.night__copy .display { margin-bottom: 26px; }
.night__turn {
  margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(239, 228, 214, 0.18);
  font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 72;
  font-style: italic; font-size: 22px !important; line-height: 1.35; color: #f6ead9 !important;
}

/* =============================================================
   HOW
   ============================================================= */
.how { padding: clamp(80px, 11vw, 150px) var(--gutter); }
.how__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 600px);
  justify-content: center;
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.how__media { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.how__media img { width: 100%; height: 100%; object-fit: contain; }
.how__media figcaption {
  position: absolute; left: 16px; bottom: 16px; padding: 6px 12px; border-radius: 999px;
  background: var(--oat); font-size: 12.5px; color: var(--cocoa);
}
.steps { list-style: none; margin: 0; padding: 0; }
.step {
  display: grid; grid-template-columns: 88px 1fr; gap: 20px;
  padding: 30px 0; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n {
  font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 144;
  font-style: italic; font-weight: 300; font-size: 56px; line-height: 0.9; color: var(--honey);
}
.step h3 {
  margin: 4px 0 8px;
  font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 72;
  font-weight: 400; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.015em;
}
.step p { margin: 0; color: var(--cocoa); font-size: 16px; max-width: 460px; }

/* =============================================================
   WARMTH (signature scroll moment)
   ============================================================= */
.warmth {
  --t: 0;
  height: 230vh;
  position: relative;
  background: linear-gradient(180deg,
    color-mix(in oklab, #f3d2ad calc(var(--t) * 100%), #e8edf0) 0%,
    color-mix(in oklab, #eab886 calc(var(--t) * 100%), #dfe6ea) 100%);
}
.warmth__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; place-content: center; justify-items: center; text-align: center;
  padding: 0 var(--gutter);
}
.warmth__num {
  font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 144;
  font-weight: 300; font-size: clamp(120px, 26vw, 340px); line-height: 0.85; letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums lining-nums;
  color: color-mix(in oklab, var(--honey-deep) calc(var(--t) * 100%), #5d7383);
}
.warmth__num small { font-size: 0.26em; letter-spacing: 0; vertical-align: 0.9em; margin-left: 0.08em; }
.warmth__label {
  margin: 18px 0 34px;
  font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 72;
  font-style: italic; font-size: clamp(20px, 2.4vw, 30px);
}
.warmth__scale {
  position: relative; width: min(560px, 82vw); height: 4px; border-radius: 999px;
  background: rgba(43, 33, 28, 0.14);
}
.warmth__scale i {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit;
  width: calc(var(--t) * 48.6%);
  background: linear-gradient(90deg, #8fb0c4, var(--honey));
}
.warmth__scale span {
  position: absolute; left: var(--at); top: 14px; transform: translateX(-50%);
  font-size: 12.5px; color: var(--cocoa); font-variant-numeric: tabular-nums lining-nums;
}
.warmth__note { margin: 52px 0 0; max-width: 440px; font-size: 14px; color: var(--cocoa); }

/* =============================================================
   ANYWHERE (mosaic)
   ============================================================= */
.anywhere { padding: clamp(80px, 11vw, 150px) var(--gutter); }
/* Vertical 9:16 photos shown whole, four per row */
.mosaic {
  --gap: clamp(10px, 1.2vw, 16px);
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap);
}
.tile {
  position: relative; margin: 0; min-width: 0;
  aspect-ratio: 9 / 16; border-radius: var(--r-sm); overflow: hidden; background: var(--sand);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.035); }
.tile figcaption {
  position: absolute; left: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(251, 248, 243, 0.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 13.5px; font-weight: 500;
}
.tile figcaption span {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--espresso); color: var(--milk); font-size: 11px; font-weight: 600;
}

/* =============================================================
   FAMILY
   ============================================================= */
.family {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(80px, 11vw, 150px);
  display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 600px);
  justify-content: center;
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.family__copy .display { margin-bottom: 22px; }
.family__copy p { margin: 0; max-width: 440px; color: var(--cocoa); font-size: 17px; }
.family__media {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px);
  align-items: start;
}
.family__media figure {
  margin: 0; aspect-ratio: 9 / 16; border-radius: var(--r-sm); overflow: hidden; background: var(--sand);
  box-shadow: 0 30px 60px -40px rgba(43, 33, 28, 0.45);
}
/* staggered: the middle photo sits lower */
.family__media figure:nth-child(2) { margin-top: 18%; }
.family__media img { width: 100%; height: 100%; object-fit: cover; }

/* =============================================================
   TEAT
   ============================================================= */
.teat {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(80px, 11vw, 150px);
  display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 600px);
  justify-content: center;
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.teat__visual {
  position: relative; border-radius: 999px 999px var(--r-lg) var(--r-lg);
  overflow: hidden; aspect-ratio: 520 / 750; background: #d9cabd;
}
.teat__visual img { width: 100%; height: 100%; object-fit: cover; }
.pin {
  position: absolute; display: grid; place-items: center;
  width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%;
  background: var(--espresso); color: var(--milk); font-size: 12px; font-weight: 600;
  box-shadow: 0 0 0 5px rgba(251, 248, 243, 0.45), 0 6px 16px rgba(43, 33, 28, 0.35);
  animation: pin 2.6s var(--ease) infinite;
}
/* 1 nipple tip · 2 vent ring · 3 breast-like body */
.pin--1 { left: 50%; top: 19%; }
.pin--2 { left: 65%; top: 58%; animation-delay: 0.4s; }
.pin--3 { left: 27%; top: 52%; animation-delay: 0.8s; }
@keyframes pin { 50% { box-shadow: 0 0 0 11px rgba(251, 248, 243, 0), 0 6px 16px rgba(43, 33, 28, 0.35); } }
.teat__copy .display { margin-bottom: 36px; }
.callouts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.callouts li {
  display: grid; grid-template-columns: 40px 1fr; gap: 16px;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.callouts li > span {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--espresso); color: var(--milk); font-size: 13px; font-weight: 600;
}
.callouts h3 { margin: 4px 0 6px; font-size: 18px; font-weight: 600; }
.callouts p { margin: 0; color: var(--cocoa); font-size: 15.5px; max-width: 460px; }

/* =============================================================
   IN THE BOX
   ============================================================= */
.box {
  max-width: var(--maxw); margin: 0 auto clamp(80px, 11vw, 150px);
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 460px);
  justify-content: center;
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.box__media { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); box-shadow: 0 40px 80px -50px rgba(43, 33, 28, 0.45); }
.box__media img { width: 100%; height: 100%; object-fit: cover; }
.box__copy .display { margin-bottom: 28px; }
.box__list { list-style: none; margin: 0 0 22px; padding: 0; }
.box__list li {
  display: flex; align-items: center; gap: 14px; padding: 12px 0;
  border-bottom: 1px dashed var(--line-2); font-size: 16px;
}
.box__list b {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-width: 38px; height: 26px; border-radius: 999px;
  background: var(--honey-soft); color: var(--honey-deep); font-size: 13px;
}
.box__list b::after { content: "×"; margin-left: 1px; font-weight: 500; }
.box__note { margin: 0; color: var(--muted); font-size: 14px; }

/* =============================================================
   COMPARE
   ============================================================= */
.compare { padding: clamp(72px, 10vw, 130px) var(--gutter); background: var(--milk); }
.compare__hint { display: none; margin: 0 0 14px; text-align: center; font-size: 13px; color: var(--muted); }
.compare__wrap {
  max-width: 1040px; margin: 0 auto; overflow-x: auto;
  border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line);
}
.compare__table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.compare__table th, .compare__table td { padding: 18px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.compare__table tbody tr:last-child > * { border-bottom: 0; }
.compare__table thead th { font-weight: 600; font-size: 14px; color: var(--cocoa); padding-top: 24px; }
.compare__table tbody th { text-align: left; font-weight: 500; padding-left: 24px; }
.compare__table .is-us { background: var(--espresso); color: var(--milk); }
.compare__table thead .is-us {
  font-family: var(--display); font-variation-settings: "SOFT" 100;
  font-style: italic; font-size: 20px; font-weight: 400; color: var(--milk);
  border-radius: 18px 18px 0 0;
}
.compare__table tbody tr:last-child .is-us { border-radius: 0 0 18px 18px; }
.compare__table td.yes::before,
.compare__table td.no::before {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  margin-right: 7px; vertical-align: middle; font-size: 13px; font-weight: 700; line-height: 1;
}
.compare__table td { vertical-align: middle; line-height: 24px; }
.compare__table td.yes::before { content: "✓"; background: var(--honey-soft); color: var(--honey-deep); }
.compare__table td.is-us.yes::before { background: rgba(242, 192, 143, 0.2); color: #f2c08f; }
.compare__table td.no { color: var(--muted); }
.compare__table td.no::before { content: "–"; background: rgba(43, 33, 28, 0.06); color: var(--muted); }
.compare__table td.mid { color: var(--muted); font-size: 13.5px; }

/* =============================================================
   GIFT
   ============================================================= */
.gift {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(80px, 11vw, 150px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 400px);
  justify-content: center;
  gap: clamp(28px, 6vw, 100px); align-items: center;
}
.gift__copy .display { margin-bottom: 22px; }
.gift__copy p { margin: 0 0 30px; max-width: 460px; color: var(--cocoa); font-size: 17px; }
.gift__media {
  margin: 0; position: relative; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fff 0%, #fff 52%, var(--milk) 53%, var(--milk) 100%);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid; place-items: center; overflow: hidden;
}
.gift__media img { width: 100%; height: 100%; object-fit: cover; }

/* =============================================================
   SPECS
   ============================================================= */
.specs { padding: 0 var(--gutter) clamp(80px, 11vw, 140px); }
.specs__list {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-2);
}
.specs__list > div { padding: 22px 24px 24px 0; border-bottom: 1px solid var(--line); }
.specs__list dt {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 6px;
}
.specs__list dd { margin: 0; font-size: 16px; }

/* =============================================================
   FAQ
   ============================================================= */
.seller { margin: -14px 0 24px; text-align: center; font-size: 12.5px; color: var(--muted); }
.seller b { font-weight: 600; color: var(--cocoa); }

/* =============================================================
   REVIEWS (rendered from config.js; hidden while empty)
   ============================================================= */
.reviews { padding: 0 var(--gutter) clamp(80px, 11vw, 140px); }
.reviews__list {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px;
}
.review {
  margin: 0; padding: 26px 26px 22px; border-radius: var(--r-lg);
  background: var(--milk); box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.review__stars { color: var(--honey); letter-spacing: 2px; font-size: 16px; }
.review__text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--espresso); }
.review footer { margin-top: auto; font-size: 13px; color: var(--muted); }
.review footer b { color: var(--espresso); font-weight: 600; margin-right: 6px; }

.faq { padding: 0 var(--gutter) clamp(80px, 11vw, 140px); }
.faq .section-head { max-width: 920px; }
.faq__list { max-width: 920px; margin: 0 auto; border-top: 1px solid var(--line-2); }

/* =============================================================
   FINAL
   ============================================================= */
.final {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--night); color: #efe4d6;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(70vh, 620px);
}
.final__copy {
  padding: clamp(64px, 9vw, 120px) var(--gutter);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  max-width: 680px; justify-self: start; width: 100%;
}
.final .display { margin-bottom: 22px; }
.final .display em { color: #e7b98c; }
.final__copy p:not(.eyebrow) { margin: 0 0 32px; color: rgba(239, 228, 214, 0.72); }
/* img/final-dark.webp is pre-blended into #0b0807, so it is shown whole with contain */
.final__media { position: relative; background: #0b0807; }
.final__media img { position: absolute; inset: 4% 0; width: 100%; height: 92%; object-fit: contain; }
.final__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(270deg, var(--night) 0%, rgba(25, 19, 16, 0) 30%);
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(56px, 7vw, 88px) var(--gutter) 36px;
}
.footer__top {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid var(--line);
}
.footer__claim {
  margin: 12px 0 0;
  font-family: var(--display); font-variation-settings: "SOFT" 100; font-style: italic;
  font-size: 18px; color: var(--cocoa);
}
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer__cols h2 {
  margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.footer__cols a {
  display: block; margin-bottom: 9px; font-size: 15px; color: var(--cocoa); text-decoration: none;
  overflow-wrap: anywhere;
}
.footer__cols a:hover { color: var(--espresso); text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 24px; color: var(--muted); font-size: 13px;
}
.footer__bottom a { color: inherit; }

/* =============================================================
   Mobile buy bar
   ============================================================= */
.buybar {
  position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 120;
  display: none; align-items: center; gap: 12px;
  padding: 7px 7px 7px 7px; border-radius: 20px;
  background: rgba(251, 248, 243, 0.94);
  backdrop-filter: saturate(150%) blur(16px); -webkit-backdrop-filter: saturate(150%) blur(16px);
  box-shadow: 0 18px 40px -16px rgba(43, 33, 28, 0.45), inset 0 0 0 1px var(--line);
  transform: translateY(160%); transition: transform 0.5s var(--ease);
}
.buybar.is-visible { transform: none; }
.buybar img { width: 44px; height: 44px; border-radius: 14px; object-fit: cover; object-position: center 20%; background: #e4dbd5; }
.buybar__info { flex: 1; display: grid; line-height: 1.2; min-width: 0; }
.buybar__info strong { font-family: var(--display); font-weight: 450; font-size: 17px; }
.buybar__info span { color: var(--muted); font-size: 12.5px; }
.buybar__info b { color: var(--honey-deep); }
.buybar .btn { flex: none; }

/* =============================================================
   Cookie consent (consent.js)
   ============================================================= */
.consent {
  position: fixed; left: 12px; bottom: 12px; z-index: 250;
  max-width: 400px; padding: 20px;
  background: var(--milk); border-radius: var(--r);
  box-shadow: 0 24px 60px -20px rgba(43, 33, 28, 0.45), inset 0 0 0 1px var(--line);
  font-size: 14px;
}
.consent p { margin: 0 0 14px; color: var(--cocoa); }
.consent__actions { display: flex; gap: 8px; }
.consent__actions .btn { flex: 1; height: 44px; font-size: 14px; }

/* =============================================================
   Reveal on scroll
   ============================================================= */
.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* =============================================================
   Legal & thank-you pages
   ============================================================= */
.page {
  max-width: 760px; margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter) 80px;
}
.page h1 {
  margin: 0 0 24px;
  font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 144;
  font-weight: 330; font-size: clamp(36px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.03em;
}
.page h1 em { font-style: italic; font-weight: 300; color: var(--honey-deep); }
.page h2 {
  margin: 40px 0 10px;
  font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 72;
  font-weight: 420; font-size: 22px; letter-spacing: -0.01em;
}
.page p, .page li { color: var(--cocoa); font-size: 16px; line-height: 1.7; }
.page a { color: var(--honey-deep); }
.page .muted { color: var(--muted); font-size: 14px; }
.page .box {
  display: block; max-width: none; margin: 0; padding: 20px 22px;
  border-radius: var(--r); background: var(--milk); box-shadow: inset 0 0 0 1px var(--line);
}
.page .btn { margin-top: 12px; text-decoration: none; color: inherit; }
.page .btn--buy, .page .btn--primary { color: var(--milk); }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1020px) {
  .header__nav { display: none; }
  .pdp { grid-template-columns: minmax(0, 560px); }
  .pdp__gallery { position: relative; top: 0; }
  .section-head--split { grid-template-columns: 1fr; gap: 18px; }
  .how__grid, .teat, .box, .gift, .family { grid-template-columns: minmax(0, 600px); }
  .how__media { max-width: 360px; width: 100%; margin: 0 auto; }
  .teat__visual { max-width: 320px; width: 100%; margin: 0 auto; }
  .gift__media { max-width: 340px; width: 100%; margin: 0 auto; }
  .box__media { max-width: 420px; width: 100%; margin: 0 auto; }
  .final { grid-template-columns: 1fr; }
  .final__media { order: -1; height: 46vh; min-height: 300px; max-height: 440px; }
  .final__media::before { background: linear-gradient(0deg, var(--night) 0%, rgba(25, 19, 16, 0) 45%); }
  .final__copy { justify-self: start; padding-top: 32px; }
  .specs__list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  :root { --header-h: 60px; }
  .announce__track > span:not(:nth-child(3)) { display: none; }
  .logo { font-size: 25px; }
  .header__cta-label { display: none; }
  .header__cta { padding: 0 5px 0 5px; }
  .pdp { padding-top: 12px; gap: 0; }
  /* phones: name and price above the photos, so the first screen says what it is and what it costs */
  .pdp__panel { display: contents; }
  .pdp__panel > * { order: 4; }
  .pdp__panel > .eyebrow { order: 1; margin-bottom: 8px; }
  .pdp__title { order: 2; }
  .price { order: 3; margin: 10px 0 16px; }
  .pdp__gallery { order: 4; margin-bottom: 24px; }
  .gallery__track { border-radius: var(--r); }
  .gallery__thumbs { grid-template-columns: repeat(8, 1fr); gap: 5px; }
  .gallery__temp { left: 12px; top: 12px; }
  .price__now { font-size: 36px; }
  .assure { grid-template-columns: 1fr; gap: 14px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts__item { padding: 22px 16px; border-left: 0; border-top: 1px solid var(--line); }
  .facts__item:first-child { padding-left: 16px; }
  .facts__item:nth-child(odd) { padding-left: 0; }
  .facts__item:nth-child(even) { border-left: 1px solid var(--line); }
  .night { min-height: 0; align-items: end; }
  .night__media { position: relative; height: 44vh; min-height: 280px; max-height: 400px; }
  .night__media img { object-position: 20% center; opacity: 0.9; }
  .night__media::after { background: linear-gradient(0deg, var(--night) 0%, rgba(25, 19, 16, 0) 55%); }
  .night { display: block; }
  .night__copy { padding-top: 8px; padding-bottom: 72px; }
  .step { grid-template-columns: 56px 1fr; gap: 12px; padding: 24px 0; }
  .step__n { font-size: 40px; }
  .warmth { height: 200vh; }
  /* mobile: one swipeable strip at a fixed height, photos at their own proportions */
  .mosaic {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px;
    scrollbar-width: none;
  }
  .mosaic::-webkit-scrollbar { display: none; }
  .tile { flex: none; width: min(58vw, 240px); scroll-snap-align: center; }
  .specs__list { grid-template-columns: 1fr; }
  .compare__hint { display: block; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .buybar { display: flex; }
  .consent { right: 12px; max-width: none; bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .warmth { height: auto; --t: 1; }
  .warmth__sticky { position: relative; height: auto; padding: 120px var(--gutter); }
}
