/* =====================================================
   Deve Herbes — premium commerce homepage
   Fraunces (display) + Inter Tight (body) + IBM Plex Mono (meta)
   Saffron / aubergine / sage tokens on warm ivory.
   ===================================================== */

:root {
  /* Packaging-derived palette: yellow paisley label + purple sun seal + wine wordmark + scarlet ribbon */
  --paper:        #FFFFFF;
  --ivory:        #FBF6E8;          /* warm off-white, lighter than label */
  --ivory-soft:   #FFFBEE;
  --ivory-deep:   #F4ECD0;          /* paler echo of label yellow */
  --label-yellow: #F4C430;          /* the printed-label background */
  --label-yellow-deep: #E0AC1A;

  --ink:          #1A1510;
  --ink-soft:     #4A3F31;
  --ink-mute:     #7A6F60;

  /* Brand purples — from the round sun seal on every bottle */
  --purple:       #4F2A5C;          /* the seal background purple */
  --purple-deep:  #3A1F45;
  --purple-soft:  #7A4C8C;

  /* Wordmark wine — "dève herbes" lowercase serif color from packaging */
  --wine:         #8B2F4A;
  --wine-soft:    #A8475F;

  /* Sun-orange accent — center motif inside the seal */
  --sun:          #E89B2C;
  --sun-deep:     #C77E0F;

  /* Scarlet ribbon — Since 2011 seal */
  --scarlet:      #C8252C;

  /* Legacy token aliases kept for downstream compatibility */
  --saffron:      var(--label-yellow);
  --saffron-deep: var(--label-yellow-deep);
  --aubergine:    var(--purple);
  --aubergine-soft: var(--purple-soft);
  --sage:         #6B7A5A;
  --rose:         var(--wine);

  --rule:         rgba(26,21,16,0.10);
  --rule-strong:  rgba(26,21,16,0.18);

  --shadow-sm:    0 1px 2px rgba(26,21,16,0.05);
  --shadow-md:    0 12px 32px -16px rgba(26,21,16,0.20);
  --shadow-lg:    0 28px 60px -28px rgba(26,21,16,0.32);

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body:    "Inter Tight", "Helvetica Neue", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max:    1400px;
  --gut:    clamp(20px, 4vw, 56px);
  --radius: 14px;
  --ease:   cubic-bezier(.2,.7,.1,1);

  /* Type scale — 3-tier modular, ratios 2.19× / 2.46× */
  --fs-h1:    clamp(64px, 10vw, 140px);
  --fs-h2:    clamp(36px, 4.4vw, 64px);
  --fs-h2-sm: clamp(28px, 3.2vw, 48px);   /* news / insta / featured tiles */
  --fs-h3:    clamp(20px, 1.6vw, 26px);
  --lh-h1:    0.95;
  --lh-h2:    1.02;
  --lh-h3:    1.18;

  /* Card / meta type scale — establishes consistency below H3 */
  --fs-card-title:    20px;
  --fs-card-title-lg: 26px;   /* featured product, claim-hero */
  --fs-card-body:     14.5px;
  --fs-meta:          13px;
  --fs-eyebrow:       11px;
  --fs-mono-sm:       10.5px;
  --fs-stat:          56px;

  /* Section rhythm — padding varies by importance */
  --pad-xl: clamp(112px, 14vw, 200px);   /* hero, news */
  --pad-lg: clamp(96px, 11vw, 160px);    /* reviews, features */
  --pad-md: clamp(72px, 9vw, 120px);     /* standard */
  --pad-sm: clamp(48px, 6vw, 80px);      /* claims, insta */

  /* Spacing scale — used for grid gaps + flex gaps */
  --gap-xs: 10px;
  --gap-sm: 18px;
  --gap-md: 24px;
  --gap-lg: 40px;
  --gap-xl: 64px;

  /* Radii — single source of truth */
  --radius-xs:   8px;
  --radius-sm:   12px;
  --radius:      14px;
  --radius-pill: 999px;

  /* Text on dark surfaces — 3 levels */
  --on-dark:       rgba(248,244,236,0.92);
  --on-dark-mute:  rgba(248,244,236,0.72);
  --on-dark-faint: rgba(248,244,236,0.45);

  /* Glass surface states — for cards inside dark/aubergine sections */
  --glass-bg:           rgba(255,255,255,0.06);
  --glass-bg-hover:     rgba(255,255,255,0.10);
  --glass-border:       rgba(255,255,255,0.14);
  --glass-border-hover: rgba(255,255,255,0.22);
}

* { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em, i { font-style: italic; }
strong { font-weight: 600; }
ol, ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Type ---------- */
.display, .h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 100, "SOFT" 30, "WONK" 0;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--ink);
}
.display em, .h2 em { font-style: italic; font-variation-settings: "opsz" 100, "SOFT" 80, "WONK" 1; color: var(--saffron); }

.display-xl, .h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: -0.030em;
  margin: 0;
}
.display-xl em, .h1 em { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1; color: var(--saffron); }

h3.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  letter-spacing: -0.015em;
  margin: 0;
}

.eyebrow, .kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--saffron-deep);
}
.kicker-light { color: var(--saffron); }

.lede {
  font-size: clamp(16px, 1.2vw, 18px);
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 14px 0 0;
}

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--ivory);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
}
.tag-dark {
  background: rgba(26,21,16,0.55);
  color: var(--ivory);
  border-color: rgba(245,239,227,0.25);
  backdrop-filter: blur(8px);
}

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  border-radius: 999px;
  transition: transform .35s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-saffron { background: var(--saffron); color: var(--ink); box-shadow: 0 8px 20px -8px rgba(216,152,38,0.55); }
.btn-saffron:hover { background: var(--saffron-deep); color: var(--ivory); }
.btn-dark { background: var(--ink); color: var(--ivory); }
.btn-dark:hover { background: var(--aubergine); }
.btn-ghost {
  background: rgba(255,255,255,0.10);
  color: var(--ivory);
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.20); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  transition: gap .3s var(--ease);
}
.link-arrow:hover { gap: 14px; }
.link-light { color: var(--ivory); }

/* ---------- 1. Announcement bar ---------- */
.topbar {
  background: var(--aubergine);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 0;
  overflow: hidden;
}
.topbar-track {
  display: flex; gap: 32px; white-space: nowrap; width: max-content;
  animation: ticker 42s linear infinite;
}
.topbar-track .dot { opacity: .45; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- 2. Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--ivory) 92%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--rule);
  transition: padding .3s var(--ease), background .3s var(--ease);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--gut);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.nav.is-scrolled .nav-inner { padding-top: 10px; padding-bottom: 10px; }

.brand { display: inline-flex; align-items: center; color: var(--ink); }
.brand-seal-img {
  height: 60px; width: auto; display: block;
  transition: height .3s var(--ease);
}
.nav.is-scrolled .brand-seal-img { height: 46px; }
@media (max-width: 720px) { .brand-seal-img { height: 46px; } }
/* legacy styles below, unused after seal-img migration */
.brand-seal { color: var(--purple); display: inline-flex; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.012em;
  color: var(--wine);
  font-variation-settings: "opsz" 36, "SOFT" 80, "WONK" 1;
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}

.nav-links {
  display: flex; gap: 22px; justify-content: center;
  font-size: 14px;
}
.nav-links a {
  position: relative; padding: 8px 0; color: var(--ink-soft);
  transition: color .25s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--saffron);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-all { color: var(--ink); font-weight: 600; }

.nav-icons { display: flex; gap: 6px; align-items: center; }
.ic {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink);
  transition: background .25s var(--ease);
}
.ic:hover { background: var(--ivory-deep); }
.ic-bag {
  width: auto; padding: 0 16px 0 14px; gap: 8px;
  border-radius: 999px; background: var(--ink); color: var(--ivory);
  font-weight: 600; font-size: 13px; display: inline-flex; align-items: center;
}
.ic-bag:hover { background: var(--aubergine); }
.bag-count {
  background: var(--saffron); color: var(--ink);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  border-radius: 999px; padding: 2px 7px;
}

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: auto auto; }
}

/* ---------- 3. Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 640px;
  overflow: hidden;
  background: var(--ink);
}
/* Background video — centered cover (Tailwind: min-w-full min-h-full object-cover -translate-x-1/2 -translate-y-1/2) */
.hero-video, .hero-fallback {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
}
.hero-fallback { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-fallback { display: block; }
}
/* Dark overlay — bg-black/20 */
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(26,21,16,0.30);
  pointer-events: none;
  z-index: 1;
}
/* Bottom fade — h-48 bg-gradient-to-t from-bg to-transparent */
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 96px;
  background: linear-gradient(to top, rgba(248, 244, 236, 0.75) 0%, rgba(248, 244, 236, 0) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-copy { z-index: 4; }

.hero-meta {
  position: absolute; z-index: 3;
  padding: 24px var(--gut);
}
.hero-meta--tl { top: 0; left: 0; }
.hero-meta--tr { top: 0; right: 0; }

.hero-copy {
  position: absolute;
  inset: 0;
  padding: 0 var(--gut);
  color: var(--ivory);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
}
.hero-copy--center { gap: 0; }

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
  margin: 0 0 32px;
  display: inline-block;
}
.hero-wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
  font-size: clamp(64px, 11vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.028em;
  color: var(--ivory);
  margin: 0 0 24px;
  text-shadow: 0 12px 40px rgba(26,21,16,0.45);
}
.hero-moment {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--on-dark);
  margin: 0 0 16px;
}
.moment-word {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 36, "SOFT" 80, "WONK" 1;
  color: var(--label-yellow);
  display: inline-block;
  padding: 0 2px;
}
.hero-desc {
  font-size: clamp(14px, 1.05vw, 16px);
  color: var(--on-dark-mute);
  max-width: 44ch;
  margin: 0 0 40px;
  line-height: 1.55;
}
.hero-copy .hero-cta { justify-content: center; flex-wrap: wrap; }
.hero-copy .hero-trust { margin-top: 28px; }

/* Buttons — outlined-light variant + pop hover */
.btn-outline-light {
  background: transparent;
  color: var(--ivory);
  border: 2px solid rgba(248,244,236,0.40);
}
.btn-outline-light:hover {
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--ivory);
  box-shadow: 0 0 0 4px rgba(216,152,38,0.22);
}
.btn-saffron.btn-pop:hover {
  background: var(--ink);
  color: var(--ivory);
  box-shadow: 0 0 0 4px rgba(216,152,38,0.30);
}
.btn-pop { transition: transform .35s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.btn-pop:hover { transform: translateY(-1px) scale(1.05); }

/* Animations — entrance + moment cycling */
@keyframes blurIn {
  from { opacity: 0; filter: blur(8px); transform: translateY(8px); }
  to   { opacity: 1; filter: blur(0);   transform: none; }
}
.blur-in { animation: blurIn 1.1s var(--ease) both 0.1s; }

@keyframes nameReveal {
  from { opacity: 0; transform: translateY(28px) scale(0.985); filter: blur(6px); }
  to   { opacity: 1; transform: none;                          filter: blur(0); }
}
.name-reveal { animation: nameReveal 1.3s var(--ease) both 0.25s; }

@keyframes momentFadeIn {
  0%   { opacity: 0; transform: translateY(8px); filter: blur(4px); }
  20%  { opacity: 1; transform: none;            filter: blur(0); }
  80%  { opacity: 1; transform: none;            filter: blur(0); }
  100% { opacity: 0; transform: translateY(-6px);filter: blur(4px); }
}
.moment-word.is-cycling { animation: momentFadeIn 2s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .blur-in, .name-reveal, .moment-word.is-cycling { animation: none !important; opacity: 1 !important; filter: none !important; transform: none !important; }
}
.hero-copy .kicker { display: inline-block; margin-bottom: 28px; color: var(--saffron); }
.hero-copy .h1, .hero-copy .display-xl, .hero-copy .display {
  color: var(--ivory);
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  font-weight: 400;
  letter-spacing: -0.030em;
}
.hero-copy .h1 em, .hero-copy .display-xl em, .hero-copy .display em {
  color: var(--saffron);
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}
.hero-sub {
  margin: 24px 0 32px;
  font-size: clamp(15.5px, 1.18vw, 19px);
  color: rgba(248,244,236,0.86);
  max-width: 62ch;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-trust {
  margin-top: 44px;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 22px;
  background: var(--glass-bg-hover);
  border: 1px solid var(--glass-border-hover);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
  font-size: var(--fs-card-body);
  color: var(--ivory);
}
.ht-item { display: inline-flex; align-items: baseline; gap: 10px; }
.ht-stars { color: var(--label-yellow); letter-spacing: 0.05em; font-size: 16px; }
.ht-item strong {
  color: var(--label-yellow); font-weight: 500;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.02em;
}
.ht-item i { color: rgba(248,244,236,0.78); font-style: normal; font-size: 13px; }
.ht-sep { width: 1px; height: 18px; background: rgba(248,244,236,0.25); }

@media (max-width: 700px) {
  .hero-meta--tr { display: none; }
  .hero-trust { gap: 10px 12px; font-size: 12px; }
  .ht-sep { display: none; }
}

/* ---------- 4. Credentials — six real brand seals ---------- */
.creds {
  padding: var(--pad-md) var(--gut);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.creds-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gap-md);
  align-items: stretch;
}
.cred {
  display: block;
  transition: transform .4s var(--ease), filter .4s var(--ease);
}
.cred img {
  width: 100%; height: auto; display: block;
  filter: saturate(0.96);
}
.cred:hover { transform: translateY(-3px); }
.cred:hover img { filter: saturate(1.06); }
@media (max-width: 980px) { .creds-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (max-width: 520px) { .creds-grid { grid-template-columns: 1fr 1fr; gap: 14px; } }

/* legacy claims kept for any orphan references */
.claims {
  padding: var(--pad-sm) var(--gut);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.claims-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 0; align-items: stretch;
}
.claims-grid li {
  padding: 8px 28px;
  border-left: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 10px;
}
.claims-grid li:first-child { border-left: 0; padding-left: 4px; }
.claim-ic { color: var(--saffron-deep); }
.claims-grid h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-card-title);
  letter-spacing: -0.015em;
  margin: 0;
}
.claims-grid p {
  font-size: var(--fs-card-body);
  color: var(--ink-soft);
  margin: 0;
}
/* Hero claim — middle one dominates */
.claims-grid li.claim-hero {
  grid-column: span 2;
  background: var(--ink);
  color: var(--ivory);
  border: 0;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: -12px 0;
  position: relative;
  gap: 6px;
}
.claim-hero .claim-ic { color: var(--saffron); }
.claim-hero h3 { font-size: var(--fs-card-title-lg); color: var(--ivory); }
.claim-hero p { font-size: var(--fs-card-body); color: var(--on-dark-mute); }
.claim-hero .claim-mark {
  position: absolute; top: 22px; right: 26px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-stat); line-height: 1;
  color: var(--saffron);
  letter-spacing: -0.02em;
}
@media (max-width: 1000px) {
  .claims-grid { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .claims-grid li.claim-hero { grid-column: span 3; }
  .claims-grid li:nth-child(4) { border-left: 0; padding-left: 4px; }
}
@media (max-width: 640px) {
  .claims-grid { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .claims-grid li.claim-hero { grid-column: span 2; margin: 0; }
  .claims-grid li:nth-child(odd) { border-left: 0; padding-left: 4px; }
}

/* ---------- Section heads ---------- */
.section-head {
  max-width: var(--max);
  margin: 0 auto clamp(36px, 4vw, 60px);
}
.section-head .eyebrow { display: inline-block; margin-bottom: 14px; }
.section-head--center { text-align: center; }
.section-head--center .lede { margin-inline: auto; }

/* ---------- 5. Category grid ---------- */
.cat {
  padding: var(--pad-md) var(--gut);
}
.cat-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.tile {
  display: block;
  position: relative;
  color: var(--ink);
}
.tile-img {
  aspect-ratio: 1 / 1.05;
  background: var(--ivory-deep);
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}
.tile-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), filter 1s var(--ease);
}
.tile:hover .tile-img img { transform: scale(1.05); }
.tile-cap {
  padding: 18px 4px 4px;
  display: flex; flex-direction: column; gap: 4px;
}
.tile-cap h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h3);
  letter-spacing: -0.015em;
  margin: 0;
}
.tile-cap span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Hero tile spans 2 cols (one row) — same height as siblings */
.cat-grid .tile-hero { grid-column: span 2; }
.cat-grid .tile-hero .tile-img { aspect-ratio: 2 / 1.05; }

.cat-grid .tile-wide { grid-column: span 1; }
.cat-grid .tile-wide .tile-img { aspect-ratio: 1 / 1.05; }

/* Baked-text tile — image is the message, chip is the only chrome */
.tile-baked.tile-hero .tile-img { aspect-ratio: 2 / 1.05; }
.tile-baked:not(.tile-hero) .tile-img { aspect-ratio: 1 / 1.05; }
.tile-baked { position: relative; }
.tile-baked .tile-chip {
  position: absolute; bottom: 16px; left: 16px;
  z-index: 2;
  padding: 9px 16px;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
  opacity: 0;
  transform: translateY(6px);
}
.tile-baked:hover .tile-chip { opacity: 1; transform: none; background: var(--ink); color: var(--ivory); }
@media (pointer: coarse) { .tile-baked .tile-chip { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid .tile-hero { grid-column: span 2; }
  .cat-grid .tile-hero .tile-img { aspect-ratio: 2 / 1.05; }
  .cat-grid .tile-wide { grid-column: span 1; }
}
@media (max-width: 520px) {
  .cat-grid { grid-template-columns: 1fr; }
  .cat-grid .tile-hero, .cat-grid .tile-wide { grid-column: 1; }
  .cat-grid .tile-hero .tile-img { aspect-ratio: 1 / 1.05; }
}

/* ---------- 6. Best Sellers carousel ---------- */
.best {
  padding: var(--pad-lg) var(--gut);
  background: var(--ivory-deep);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.best-head {
  max-width: var(--max); margin: 0 auto clamp(28px, 3vw, 44px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.carousel-ctrl {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}
.cc-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--rule-strong);
  display: grid; place-items: center;
  color: var(--ink);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.cc-btn:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.cc-btn:disabled { opacity: .35; cursor: not-allowed; }

.prod-track {
  max-width: 100%;
  display: flex; gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 0 16px;
  cursor: grab;
}
.prod-track::-webkit-scrollbar { display: none; }
.prod-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.prod {
  flex: 0 0 clamp(240px, 22vw, 320px);
  scroll-snap-align: start;
}
.prod-featured { flex-basis: clamp(320px, 30vw, 440px); }
.prod-featured .prod-media { aspect-ratio: 1 / 1.15; }
.prod-featured .prod-body h3 { font-size: var(--fs-card-title-lg); }
.prod-featured .prod-price strong { font-size: 20px; }
.prod-featured::before {
  content: "Editor's Pick";
  position: absolute;
  left: 0; top: -28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--saffron-deep);
}
.prod-featured { position: relative; padding-top: 24px; margin-top: -24px; }
.prod-media {
  display: block; position: relative;
  aspect-ratio: 1 / 1;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.prod-img-front, .prod-img-back {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: contain;
  padding: 12px;
  transition: opacity .5s var(--ease), transform .8s var(--ease);
}
.prod-img-back { opacity: 0; transform: scale(1.04); }
.prod-media:hover .prod-img-front { opacity: 0; }
.prod-media:hover .prod-img-back  { opacity: 1; transform: scale(1); }

.prod-badge {
  position: absolute; top: 12px; left: 12px;
  z-index: 2;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--ink); color: var(--ivory);
}
.badge-best { background: var(--ink); }
.badge-new  { background: var(--sage); color: var(--ivory); }
.badge-sale { background: var(--saffron); color: var(--ink); }

.prod-add {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  z-index: 2;
  padding: 12px 14px;
  background: var(--ink); color: var(--ivory);
  border-radius: 999px;
  font-weight: 600; font-size: 13px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), background .25s var(--ease);
}
.prod-media:hover .prod-add { opacity: 1; transform: none; }
.prod-add:hover { background: var(--saffron); color: var(--ink); }

.prod-body { padding: 16px 4px 4px; }
.prod-rating {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}
.prod-rating > span:first-child { color: var(--saffron); }
.prod-rating i { color: var(--ink-mute); font-style: normal; }
.prod h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-card-title);
  letter-spacing: -0.015em;
  margin: 8px 0 4px;
}
.prod-meta {
  font-size: var(--fs-meta);
  color: var(--ink-mute);
  margin: 0;
}
.prod-price {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin: 12px 0 0;
}
.prod-price strong { font-size: 16px; font-feature-settings: "tnum"; }
.prod-price s { color: var(--ink-mute); font-size: 13px; }
.prod-price em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--rose);
  background: rgba(184,90,110,0.10);
  padding: 2px 8px; border-radius: 999px;
}

.best-foot { max-width: var(--max); margin: 28px auto 0; text-align: right; }

@media (pointer: coarse) {
  .prod-add { opacity: 1; transform: none; }
}

/* ---------- 7. Promise ---------- */
.promise {
  padding: var(--pad-md) var(--gut);
}
.promise-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.promise-grid li {
  padding: 12px 32px 8px;
  border-left: 1px solid var(--rule);
  position: relative;
}
.promise-grid li:first-child { border-left: 0; padding-left: 0; }
.p-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  font-size: clamp(64px, 7vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--saffron);
  display: block; margin-bottom: 20px;
}
.promise-grid h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-card-title);
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.promise-grid p { margin: 0; color: var(--ink-soft); font-size: var(--fs-card-body); }
@media (max-width: 900px) {
  .promise-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .promise-grid li:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 520px) {
  .promise-grid { grid-template-columns: 1fr; }
  .promise-grid li { border-left: 0; padding-left: 0; padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
  .promise-grid li:last-child { border-bottom: 0; padding-bottom: 0; }
}

/* ---------- 8. Featured editorial banners ---------- */
.features {
  padding: 0 var(--gut) var(--pad-lg);
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr;
  gap: 18px;
}
.feat {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: block;
  color: var(--ivory);
}
.feat-media { position: absolute; inset: 0; }
.feat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feat:hover .feat-media img { transform: scale(1.04); }

/* Baked feature — image is the pitch, chip is the only chrome */
.feat-baked .feat-chip {
  position: absolute; bottom: 22px; left: 22px;
  z-index: 2;
  padding: 11px 18px;
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
  opacity: 0; transform: translateY(8px);
}
.feat-baked:hover .feat-chip { opacity: 1; transform: none; background: var(--ink); color: var(--ivory); }
.feat-chip--dark { background: var(--ink); color: var(--ivory); }
.feat-baked:hover .feat-chip--dark { background: var(--saffron); color: var(--ink); }
@media (pointer: coarse) { .feat-baked .feat-chip { opacity: 1; transform: none; } }

@media (max-width: 880px) {
  .features { grid-template-columns: 1fr; }
}

/* ---------- 9. Single Bottle, Countless Benefits ---------- */
.bens {
  padding: var(--pad-md) var(--gut);
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.bens-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 18px;
}
.ben {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.ben img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1.08; }
.ben:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ben-hero { grid-column: span 2; grid-row: span 2; }
.bens-foot { max-width: var(--max); margin: 32px auto 0; text-align: center; }
.ben-hero img { aspect-ratio: auto; height: 100%; }
@media (max-width: 980px) {
  .bens-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .ben-hero { grid-column: span 2; grid-row: auto; }
  .ben-hero img { aspect-ratio: 1/1.08; }
}
@media (max-width: 520px) {
  .bens-grid { grid-template-columns: 1fr; }
  .ben-hero { grid-column: 1; }
}

/* ---------- 10. Aroma Rituals (chakra) ---------- */
.rituals {
  padding: var(--pad-md) var(--gut);
}
.rit-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.rit {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ivory-deep);
  position: relative;
  aspect-ratio: 16 / 9;
  transition: transform .5s var(--ease);
}
.rit img { width: 100%; height: 100%; object-fit: cover; }
.rit:hover { transform: translateY(-4px); }
.rit-foot { max-width: var(--max); margin: 32px auto 0; text-align: center; }
@media (max-width: 720px) { .rit-grid { grid-template-columns: 1fr; } }

/* ---------- 11. Reviews ---------- */
.reviews {
  padding: var(--pad-lg) var(--gut);
  background: var(--aubergine);
  color: var(--ivory);
}
.reviews .eyebrow { color: var(--saffron); }
.reviews .display { color: var(--ivory); }

.rev-head {
  max-width: var(--max); margin: 0 auto clamp(36px, 4vw, 60px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px;
  align-items: end;
}
.rev-stat {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}
.rs-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-stat);
  line-height: 1;
  color: var(--saffron);
}
.rs-info { display: flex; flex-direction: column; gap: 4px; }
.rs-stars { color: var(--saffron); letter-spacing: 0.05em; }
.rs-meta { font-size: var(--fs-meta); color: var(--on-dark-mute); }

.rev-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.rev {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex; flex-direction: column;
  gap: var(--gap-sm);
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.rev:hover { background: var(--glass-bg-hover); border-color: var(--glass-border-hover); transform: translateY(-3px); }
.rev-stars { color: var(--label-yellow); letter-spacing: 0.08em; font-size: 15px; }
.rev-body {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(15px, 1.15vw, 17.5px);
  line-height: 1.5;
  color: var(--on-dark);
  margin: 0;
  flex: 1;
  font-variation-settings: "opsz" 36, "SOFT" 80, "WONK" 1;
}
.rev-by {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--label-yellow);
  padding-top: 14px;
  border-top: 1px solid var(--glass-border);
}
.rev-by strong { font-weight: 500; color: var(--label-yellow); }
.rev-foot { max-width: var(--max); margin: 32px auto 0; text-align: center; }
.rev-foot .link-light { color: var(--ivory); border-color: rgba(248,244,236,0.5); }
@media (max-width: 1100px) { .rev-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .rev-head { grid-template-columns: 1fr; }
  .rev-grid { grid-template-columns: 1fr; }
}

/* ---------- 12. Instagram strip ---------- */
.insta {
  padding: var(--pad-sm) var(--gut);
}
.insta-head { max-width: var(--max); margin: 0 auto clamp(28px, 3vw, 40px); display: flex; justify-content: space-between; align-items: flex-end; gap: var(--gap-md); flex-wrap: wrap; }
.insta-head .display { font-size: var(--fs-h2-sm); }
.insta-head .display em { color: var(--saffron); }
.insta-row {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
}
.ig {
  display: block; aspect-ratio: 1/1; overflow: hidden;
  background: var(--ivory-deep);
  border-radius: var(--radius-xs);
  transition: transform .4s var(--ease);
}
.ig img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ig:hover img { transform: scale(1.08); }
@media (max-width: 900px) { .insta-row { grid-template-columns: repeat(3, 1fr); } .ig-hide { display: none; } }
@media (max-width: 480px) { .insta-row { grid-template-columns: 1fr 1fr; } }

/* ---------- 13. Newsletter ---------- */
.news {
  background: var(--ink);
  color: var(--ivory);
  padding: var(--pad-xl) var(--gut);
  text-align: center;
}
.news-inner { max-width: 720px; margin: 0 auto; }
.news .display { color: var(--ivory); margin: 18px 0 16px; font-size: var(--fs-h2-sm); }
.news .display em { color: var(--saffron); }
.news p { color: var(--on-dark-mute); }
.news-form {
  margin: 32px auto 14px; max-width: 460px;
  display: flex; gap: 8px;
  background: var(--glass-bg-hover);
  border: 1px solid var(--glass-border-hover);
  border-radius: var(--radius-pill);
  padding: 6px;
}
.news-form input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: var(--ivory); padding: 12px 18px;
  font-family: var(--font-body); font-size: 14.5px;
}
.news-form input::placeholder { color: rgba(248,244,236,0.45); }
.news-form button {
  padding: 12px 22px;
  background: var(--saffron); color: var(--ink);
  border-radius: 999px;
  font-weight: 600; font-size: 13.5px;
  transition: background .25s var(--ease);
}
.news-form button:hover { background: var(--ivory); }
.news-form button:disabled { background: var(--sage); color: var(--ivory); cursor: default; }
.fine {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(248,244,236,0.4); margin-top: 12px;
}

/* ---------- 14. Footer ---------- */
.foot {
  background: var(--ivory-deep);
  color: var(--ink);
  padding: clamp(64px, 8vw, 100px) var(--gut) 0;
  position: relative; overflow: hidden;
}
.foot-top {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px;
}
.foot-logo {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(36px, 4vw, 56px); line-height: .92;
  letter-spacing: -0.022em;
  color: var(--wine);
  font-variation-settings: "opsz" 100, "SOFT" 80, "WONK" 1;
}
.foot-tag {
  font-size: var(--fs-card-body);
  color: var(--ink-soft);
  margin: 18px 0 22px; max-width: 28ch;
}
.foot-tag span {
  display: block; margin-top: 6px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute);
}
.foot-cert { display: flex; gap: 10px; flex-wrap: wrap; }
.foot-cert span {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.18em;
  padding: 5px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-xs);
  color: var(--ink-soft);
}
.foot h4 {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--aubergine); margin: 0 0 16px;
}
.foot a {
  display: block; padding: 4px 0;
  font-size: var(--fs-card-body);
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.foot a:hover { color: var(--saffron-deep); transform: translateX(3px); }

.foot-base {
  max-width: var(--max); margin: 56px auto 28px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
}
.fb-left { display: flex; flex-direction: column; gap: 8px; }
.fb-pol a { display: inline; margin-right: 18px; }
.fb-pay span {
  display: inline-block;
  padding: 4px 10px;
  margin-left: 6px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-xs);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(90px, 19vw, 320px);
  line-height: .82;
  letter-spacing: -0.04em;
  color: var(--ink);
  opacity: .05;
  text-align: center;
  padding-bottom: 12px;
  user-select: none;
}
@media (max-width: 1000px) {
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .foot-top { grid-template-columns: 1fr; }
}

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .topbar-track { animation: none; }
}
