/* ————————————————————————————————
   Curall Herbals — design tokens
———————————————————————————————— */
:root {
  --paper: #FBF7EC;
  --paper-deep: #F2EBDA;
  --ink: #211D18;
  --ink-soft: #57503F;
  --line: #E2D9C4;
  --berry: #572B39;
  --gold: #D9A843;
  --sage: #9AA98F;
  --navy: #2F3559;
  --gold-star: #D9A036;
  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Outfit", system-ui, sans-serif;
  --measure: 58ch;
  --pad-x: clamp(20px, 5vw, 72px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.08; }
h2 { font-size: clamp(30px, 4.4vw, 52px); }

.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: inherit; opacity: .62; margin-bottom: 18px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-body); font-weight: 500; font-size: 15px;
  padding: 14px 28px; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, background-color .18s ease, color .18s ease;
  min-height: 44px;
}
.btn svg { width: 15px; height: 15px; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold-star); outline-offset: 3px; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #3a332a; }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 12px 22px; border-radius: 0 0 12px 12px; text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: top .2s ease;
}
.skip-link:focus-visible { top: 0; outline: 3px solid var(--gold-star); }

/* Stars (shared, colorable via --star-fill) */
.stars {
  --fill: 100%;
  --star-fill: #D9A036;
  display: inline-block; position: relative;
  width: 96px; height: 18px; flex: none;
}
.stars::before, .stars::after {
  content: ""; position: absolute; inset: 0;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 19'%3E%3Cpath d='M10 .8l2.6 5.6 6.1.7-4.5 4.2 1.2 6-5.4-3-5.4 3 1.2-6L1.3 7.1l6.1-.7z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 19'%3E%3Cpath d='M10 .8l2.6 5.6 6.1.7-4.5 4.2 1.2 6-5.4-3-5.4 3 1.2-6L1.3 7.1l6.1-.7z'/%3E%3C/svg%3E");
  -webkit-mask-size: 19.2px 18px; mask-size: 19.2px 18px;
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
}
.stars::before { background: currentColor; opacity: .3; }
.stars::after { width: var(--fill); background: var(--star-fill); }
.card-gold .stars, .card-sage .stars { --star-fill: currentColor; }

/* ————— Announce + header ————— */
.announce {
  background: var(--ink); color: var(--paper);
  text-align: center; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  padding: 9px var(--pad-x);
}
.header {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 14px var(--pad-x);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: padding .3s ease, box-shadow .3s ease;
}
.header.is-compact { padding-top: 8px; padding-bottom: 8px; box-shadow: 0 8px 30px rgba(33,29,24,.08); }
.nav-left { justify-self: start; }
.wordmark { display: inline-flex; align-items: center; justify-self: center; }
.wordmark img { height: 48px; width: auto; }
.nav-right { justify-self: end; display: flex; align-items: center; gap: clamp(20px, 2.5vw, 36px); }
.nav-list { display: flex; gap: clamp(24px, 3vw, 40px); list-style: none; }
/* Desktop: FAQ + Contact live on the right of the logo, not in the left list. */
@media (min-width: 920px) {
  .nav-left .nav-list li:nth-child(n+4) { display: none; }
}
.nav-list a {
  position: relative; white-space: nowrap;
  text-decoration: none; font-size: 17px; font-weight: 500; letter-spacing: .015em;
  color: var(--ink); opacity: .9;
  padding: 10px 2px;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 2.5px;
  background: var(--ink); transition: right .25s ease;
}
.nav-list a:hover { opacity: 1; }
.nav-list a:hover::after, .nav-list a.active::after { right: 0; }
.nav-list a.active { opacity: 1; }
.nav-list a:focus-visible { outline: 3px solid var(--gold-star); outline-offset: 2px; }
.nav-toggle { display: none; }
/* Hamburger icon: three bars (middle = the span, top/bottom = pseudo-elements). */
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
/* Open state morphs the bars into an X. */
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }
.cart-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 22px; border-radius: 999px;
  background: none; border: 1.5px solid var(--ink); color: var(--ink); cursor: pointer;
  font-family: var(--f-body); font-size: 15.5px; font-weight: 500;
  transition: background-color .18s ease, transform .18s ease;
  min-height: 46px;
}
.cart-btn:hover { background: var(--paper-deep); transform: translateY(-1px); }
.cart-btn:focus-visible { outline: 3px solid var(--gold-star); outline-offset: 2px; }
.cart-btn svg { width: 20px; height: 20px; }
.cart-count { font-variant-numeric: tabular-nums; opacity: .8; }

/* ————— Cinematic hero ————— */
.cinema {
  position: relative; overflow: hidden;
  /* One cream marketing image, shown whole and blending into the cream page. */
  width: 100%;
  aspect-ratio: 1716 / 768;
  display: flex; align-items: center;
  color: var(--ink);
  background: var(--paper);
}
.cinema-slides { position: absolute; inset: 0; }
.cinema-slide {
  position: absolute; inset: 0;
  background-image: url('../assets/hero-lineup.webp');
  background-size: cover; background-position: center;
}
/* Melt the bottom edge of the image into the page so there is no seam. */
.cinema::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 16%;
  background: linear-gradient(to bottom, rgba(251, 247, 236, 0), var(--paper));
  pointer-events: none; z-index: 1;
}
.cinema-shade {
  /* Keeps the headline on clean cream while the bottles show at the right. */
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 28%, rgba(251,247,236,0) 60%);
}
.cinema-copy {
  position: relative; z-index: 2;
  box-sizing: content-box;
  padding: clamp(40px, 7vh, 96px) var(--pad-x);
  /* Text zone stays left of the bottles, which begin ~51% into the image. */
  max-width: min(38rem, 44vw);
}
.cinema-copy h1 { font-size: clamp(31px, 3.5vw, 46px); }
.cinema-copy h1 em { font-style: italic; font-weight: 500; }
.cinema-sub { margin: 18px 0 28px; max-width: 30ch; font-size: 18px; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ————— Trust bar (marquee) ————— */
.trust-bar {
  overflow: hidden;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.trust-track { display: flex; width: max-content; animation: trust 28s linear infinite; will-change: transform; }
.trust-set { display: flex; flex: none; align-items: center; }
.trust-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 clamp(16px, 2.5vw, 34px);
  font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap;
}
.trust-item svg { width: 21px; height: 21px; flex: none; opacity: .85; }
@keyframes trust { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ————— Our Herbal Blends ————— */
.blends { max-width: 1240px; margin: 0 auto; padding: clamp(56px, 9vh, 100px) var(--pad-x) clamp(40px, 6vh, 70px); text-align: center; }
.blends h2 { font-size: clamp(30px, 4vw, 46px); }
.blends-sub { margin: 14px auto 0; max-width: 52ch; color: var(--ink-soft); }
.blends-row {
  margin-top: clamp(36px, 6vh, 60px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 36px);
  align-items: start;
}
.blend {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  opacity: 0; transform: translateY(34px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: calc(var(--i, 0) * 120ms);
}
.blend.is-in { opacity: 1; transform: none; }
.blend-bottle {
  width: clamp(150px, 12.5vw, 215px); max-width: 78%; aspect-ratio: 0.485;
  background-size: contain; background-position: center bottom; background-repeat: no-repeat;
  filter: drop-shadow(0 18px 20px rgba(0,0,0,.28));
  animation: bob 5.5s ease-in-out infinite;
  transition: transform .3s ease;
}
.blend:hover .blend-bottle { transform: translateY(-8px) scale(1.05); }
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}
.blend h3 { font-size: clamp(19px, 1.8vw, 23px); margin-top: 18px; }
.blend .blend-ingredients { font-size: 14px; color: var(--ink-soft); max-width: 26ch; min-height: 3.2em; }
.blend .price { font-family: var(--f-display); font-size: 22px; font-weight: 600; margin: 12px 0 14px; }
.blend-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.blend-actions .btn { padding: 11px 26px; font-size: 14px; min-height: 42px; }
.shop-amazon { margin-top: 40px; text-align: center; font-size: 15px; color: var(--ink-soft); }
.shop-amazon a { color: var(--ink); text-underline-offset: 4px; }

/* ————— Supplement facts ————— */
.facts-open {
  margin-top: 8px; background: none; border: none; cursor: pointer;
  font-family: var(--f-body); font-size: 13.5px; color: var(--ink-soft);
  text-decoration: underline; text-underline-offset: 4px; padding: 4px;
}
.facts-open:hover { color: var(--ink); }
.facts-open:focus-visible { outline: 3px solid var(--gold-star); outline-offset: 2px; }
.facts { text-align: left; }
.facts .eyebrow, .facts h3 { text-align: center; }
.facts .popup-sub { text-align: center; }
.facts-list { list-style: none; margin: 8px 0 18px; }
.facts-list li {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 15px;
}
.facts-list li span:last-child { font-variant-numeric: tabular-nums; font-weight: 500; }
.facts-note { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); text-align: center; }

/* ————— The science (accordion image slider) ————— */
.standard { max-width: 1240px; margin: 0 auto; padding: clamp(70px, 11vh, 120px) var(--pad-x) clamp(40px, 7vh, 80px); }
.standard h2 em { font-style: italic; font-weight: 500; }
.sci-split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 5vw, 84px); align-items: start;
}
.sci-visual { position: sticky; top: 110px; }
.sci-visual img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 24px;
}
.sci-badge {
  position: absolute; right: -14px; bottom: 30px;
  display: flex; align-items: center; gap: 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 20px;
  box-shadow: 0 16px 36px rgba(33, 29, 24, .12);
}
.sci-badge strong { font-family: var(--f-display); font-size: 34px; font-weight: 600; line-height: 1; }
.sci-badge span { font-size: 12.5px; line-height: 1.35; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.sci-intro { margin: 14px 0 10px; color: var(--ink-soft); font-size: clamp(16px, 1.8vw, 18px); line-height: 1.6; max-width: 48ch; }
.sci-item { padding: clamp(22px, 3vh, 30px) 0; border-bottom: 1px solid var(--line); }
.sci-item:last-child { border-bottom: 0; padding-bottom: 0; }
.sci-label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-star); }
.sci-item h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; line-height: 1.2; margin: 8px 0 8px; }
.sci-item p { font-size: 15.5px; line-height: 1.62; color: var(--ink-soft); max-width: 52ch; }

/* ————— Founder ————— */
.founder { max-width: 1240px; margin: 0 auto; padding: clamp(60px, 10vh, 110px) var(--pad-x); }
.founder-inner {
  background: var(--paper-deep); border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(28px, 4vw, 56px);
  display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 64px); align-items: center;
}
.founder-photo img {
  width: 100%; border-radius: 18px;
  box-shadow: 0 24px 60px rgba(33,29,24,.18);
}
.founder blockquote p {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(20px, 2.2vw, 28px); line-height: 1.34; margin-bottom: 24px;
  max-width: 30ch;
}
.founder-name {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08;
  margin: 4px 0 16px;
}
.founder-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.chip {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: var(--paper-deep); border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; letter-spacing: .03em; color: var(--ink);
  white-space: nowrap;
}

/* ————— Reviews rail ————— */
.voices { padding: clamp(60px, 10vh, 110px) 0 0; }
.voices-head {
  max-width: 1240px; margin: 0 auto clamp(32px, 5vh, 52px);
  padding: 0 var(--pad-x);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
}
.voices-head h2 { font-size: clamp(30px, 4.4vw, 50px); }
.voices-sub {
  display: inline-flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: center;
  color: var(--ink-soft); font-size: clamp(15px, 1.8vw, 18px);
}
.voices-stars { color: var(--gold-star); letter-spacing: 2px; font-size: 1.05em; }
.voices-rail { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 0; }
.voices-track { display: flex; width: max-content; animation: voices 55s linear infinite; will-change: transform; }
.voices-rail:hover .voices-track, .voices-rail:focus-within .voices-track { animation-play-state: paused; }
.voices-set { display: flex; flex: none; }
.voice {
  width: min(390px, 84vw); flex: none;
  margin-right: clamp(20px, 3vw, 36px);
  transition: transform .25s ease;
}
.voice:hover { transform: translateY(-4px); }
.voice blockquote {
  position: relative;
  background: #FFFDF6; border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 24px;
  font-size: 15.5px; line-height: 1.6;
  box-shadow: 0 10px 26px rgba(33,29,24,.06);
}
.voice blockquote::after {
  content: ""; position: absolute; left: 30px; bottom: -8.5px;
  width: 16px; height: 16px;
  background: #FFFDF6;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.voice-meta { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 0 6px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 600; font-size: 15px;
  color: var(--paper); background: var(--berry);
}
.voices-set .voice:nth-child(2) .avatar { background: var(--sage); color: #1E2A1E; }
.voices-set .voice:nth-child(3) .avatar { background: #8A6420; }
.voices-set .voice:nth-child(4) .avatar { background: var(--navy); }
.voices-set .voice:nth-child(5) .avatar { background: #8A6420; }
.voices-set .voice:nth-child(6) .avatar { background: var(--sage); color: #1E2A1E; }
.voice-who { display: flex; flex-direction: column; min-width: 0; }
.voice-who strong { font-size: 14.5px; font-weight: 600; }
.voice-who small { font-size: 12.5px; color: var(--ink-soft); }
.voice-meta .stars { margin-left: auto; width: 80px; height: 15px; }
.voice-meta .stars::before, .voice-meta .stars::after {
  -webkit-mask-size: 16px 15px; mask-size: 16px 15px;
}
@keyframes voices { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ————— FAQ + newsletter ————— */
.faq-cta {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(70px, 11vh, 120px) var(--pad-x);
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.faq-col h2 { font-size: clamp(28px, 3.4vw, 40px); }
.faq-list { margin-top: clamp(20px, 3vh, 32px); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer; list-style: none; position: relative;
  font-family: var(--f-display); font-weight: 600; font-size: 18px;
  padding: 18px 44px 18px 0;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--f-body); font-weight: 300; font-size: 26px; transition: transform .25s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list summary:focus-visible { outline: 3px solid var(--gold-star); outline-offset: 2px; }
.faq-list details p { padding: 0 0 20px; color: var(--ink-soft); max-width: var(--measure); }
.cta-col { position: sticky; top: 110px; }
.notify-inner {
  text-align: center;
  background: var(--ink); color: var(--paper); border-radius: 24px;
  padding: clamp(32px, 4vw, 52px) clamp(24px, 3vw, 40px);
}
.notify-inner h2 { font-size: clamp(26px, 3vw, 34px); }
.notify-inner p { margin: 14px auto 26px; max-width: 40ch; opacity: .8; font-size: 15.5px; }
.notify-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.notify-form input {
  font-family: var(--f-body); font-size: 16px; padding: 12px 20px; border-radius: 999px;
  border: 1.5px solid rgba(251,247,236,.35); background: transparent; color: var(--paper);
  min-width: min(240px, 100%); flex: 1 1 auto;
}
.notify-form input::placeholder { color: rgba(251,247,236,.5); }
.notify-form input:focus-visible { outline: 3px solid var(--gold-star); outline-offset: 2px; }
.notify-alt { font-size: 13.5px; margin-top: 18px !important; }
.notify-alt a { color: var(--paper); }

/* ————— Footer ————— */
.footer { border-top: 1px solid var(--line); padding: clamp(40px, 7vh, 64px) var(--pad-x) 32px; }
.footer-brand { text-align: center; margin-bottom: 32px; }
.footer-brand img { display: inline-block; width: min(240px, 60vw); }
.footer-bar {
  max-width: 1240px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 22px;
}
.footer-links { display: flex; gap: clamp(14px, 2.5vw, 28px); flex-wrap: wrap; }
.footer-links a, .footer-contact a { text-decoration: none; font-size: 14.5px; }
.footer-links a:hover, .footer-contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-contact { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-social { display: flex; gap: 6px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink);
  transition: background-color .18s ease, transform .18s ease;
}
.footer-social a:hover { background: var(--paper-deep); transform: translateY(-2px); }
.footer-social a:focus-visible { outline: 3px solid var(--gold-star); outline-offset: 2px; }
.footer-social svg { width: 19px; height: 19px; }
.footer-legal {
  max-width: 1240px; margin: 22px auto 0;
  font-size: 12.5px; color: var(--ink-soft); text-align: center;
}
.footer-copy { font-size: 12.5px; color: var(--ink-soft); text-align: center; margin-top: 8px; }

/* ————— Subscribe popup ————— */
.popup-overlay {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(20,16,12,.55); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .3s ease;
}
.popup-overlay.is-open { opacity: 1; }
.popup {
  position: fixed; left: 50%; top: 50%; z-index: 120;
  width: min(460px, calc(100vw - 40px));
  background: var(--paper); color: var(--ink);
  border-radius: 26px; padding: clamp(30px, 5vw, 44px);
  text-align: center;
  box-shadow: 0 40px 90px rgba(20,16,12,.35);
  transform: translate(-50%, -50%) scale(.94); opacity: 0;
  transition: transform .35s cubic-bezier(.2,.8,.3,1.1), opacity .3s ease;
}
.popup.is-open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
/* Invisible (closed/transitioning) popups must never intercept clicks. */
.popup, .popup-overlay { pointer-events: none; }
.popup.is-open, .popup-overlay.is-open { pointer-events: auto; }

/* Split newsletter popup (image left, copy right) */
.popup-split {
  width: min(660px, calc(100vw - 40px));
  padding: 0;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  overflow: hidden;
  text-align: left;
}
.popup-media {
  background-image: url('../assets/popup-art.webp');
  background-size: cover; background-position: center;
  min-height: 100%;
}
.popup-body { position: relative; padding: clamp(28px, 4vw, 42px) clamp(22px, 3.5vw, 36px); }
.popup-split h3 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.1; padding-right: 28px; }
.popup-split .popup-sub { margin: 14px 0 22px; max-width: none; font-size: 15px; text-align: left; }
.popup-split mark {
  background: color-mix(in srgb, var(--gold) 45%, var(--paper));
  color: var(--ink); font-weight: 600; padding: 1px 5px; border-radius: 4px;
}
.popup-split .popup-form { flex-direction: column; gap: 12px; }
.popup-split .popup-form input { width: 100%; min-width: 0; }
.popup-cta {
  width: 100%; background: var(--gold); color: var(--ink); font-weight: 600;
}
.popup-cta:hover { background: #c99a37; }
.popup-split .popup-dismiss { display: block; margin: 14px auto 0; }
@media (max-width: 559px) {
  .popup-split { grid-template-columns: 1fr; }
  .popup-media { min-height: 170px; background-position: center 30%; }
}
.popup h3 { font-family: var(--f-display); font-size: clamp(24px, 3vw, 30px); font-weight: 600; line-height: 1.15; }
.popup-sub { margin: 14px auto 24px; max-width: 38ch; color: var(--ink-soft); font-size: 15px; }
.popup-form input {
  border-color: var(--line); color: var(--ink);
}
.popup-form input::placeholder { color: var(--ink-soft); }
.popup-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none; font-size: 30px; line-height: 1; cursor: pointer;
  color: var(--ink-soft); padding: 4px 10px; border-radius: 8px;
}
.popup-close:hover { color: var(--ink); background: var(--paper-deep); }
.popup-close:focus-visible { outline: 3px solid var(--gold-star); }
.popup-dismiss {
  margin-top: 18px; background: none; border: none; cursor: pointer;
  font-family: var(--f-body); font-size: 13.5px; color: var(--ink-soft);
  text-decoration: underline; text-underline-offset: 4px; padding: 6px;
}
.popup-dismiss:hover { color: var(--ink); }
.popup-dismiss:focus-visible { outline: 3px solid var(--gold-star); }

/* ————— Cart ————— */
.cart-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(20,16,12,.5); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .3s ease;
}
.cart-overlay.is-open { opacity: 1; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(420px, 92vw);
  background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform .38s cubic-bezier(.22,.9,.3,1);
  box-shadow: -24px 0 60px rgba(20,16,12,.25);
}
.cart-drawer.is-open { transform: none; }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px; border-bottom: 1px solid var(--line);
}
.cart-head h3 { font-family: var(--f-display); font-size: 24px; }
.cart-close {
  background: none; border: none; font-size: 32px; line-height: 1; cursor: pointer;
  color: var(--ink); padding: 4px 10px; border-radius: 8px;
}
.cart-close:hover { background: var(--paper-deep); }
.cart-close:focus-visible { outline: 3px solid var(--gold-star); }
.cart-body { flex: 1; overflow-y: auto; padding: 10px 26px; }
.cart-empty { padding: 28px 0; color: var(--ink-soft); }
.cart-empty-link { color: var(--ink); }
.cart-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.cart-item-img {
  width: 64px; height: 84px; border-radius: 10px; border: 1px solid var(--line);
  background-size: contain; background-position: center; background-repeat: no-repeat;
  background-color: var(--paper-deep); background-origin: content-box; padding: 7px;
}
.cart-item-name { font-family: var(--f-display); font-weight: 600; font-size: 16.5px; }
.cart-item-price { font-size: 14px; color: var(--ink-soft); margin-top: 2px; }
.cart-qty { display: inline-flex; align-items: center; gap: 2px; margin-top: 10px; border: 1px solid var(--line); border-radius: 999px; }
.cart-qty button {
  width: 30px; height: 30px; border: none; background: none; cursor: pointer;
  font-size: 17px; color: var(--ink); border-radius: 50%;
}
.cart-qty button:hover { background: var(--paper-deep); }
.cart-qty button:focus-visible { outline: 2px solid var(--gold-star); }
.cart-qty span { min-width: 24px; text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; }
.cart-remove {
  background: none; border: none; cursor: pointer; color: var(--ink-soft);
  font-size: 13px; text-decoration: underline; text-underline-offset: 3px; padding: 4px;
}
.cart-remove:hover { color: var(--ink); }
.cart-foot { padding: 20px 26px 26px; border-top: 1px solid var(--line); }
.cart-subtotal {
  display: flex; justify-content: space-between; font-family: var(--f-display);
  font-size: 19px; font-weight: 600; margin-bottom: 14px;
}
.cart-checkout { width: 100%; }
.cart-checkout[disabled] { opacity: .55; cursor: wait; transform: none; }
.cart-error { margin-top: 10px; font-size: 13.5px; color: #8C2F22; text-align: center; }
.cart-note { font-size: 12.5px; color: var(--ink-soft); text-align: center; margin-top: 12px; }

/* ————— Toast ————— */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 130;
  transform: translateX(-50%) translateY(8px);
  background: var(--ink); color: var(--paper);
  padding: 14px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 400;
  box-shadow: 0 18px 44px rgba(20,16,12,.3);
  opacity: 0; transition: opacity .3s ease, transform .3s ease;
  max-width: calc(100vw - 40px); text-align: center;
}
.toast.is-open { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ————— Reveal (JS adds .is-in) ————— */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ————— Responsive ————— */
@media (max-width: 1023px) {
  .founder-inner { grid-template-columns: 1fr; }
  .founder-photo img { max-width: 320px; }
  .voices-head { align-items: center; }
  .faq-cta { grid-template-columns: 1fr; }
  .cta-col { position: static; }
  .blends-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
}
@media (max-width: 919px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0;
    /* Pull the button out by its internal padding so the bars visually
       align with the page margin, matching the cart pill on the right. */
    margin-left: -10px;
    background: none; border: none; cursor: pointer; color: var(--ink);
  }
  .nav-toggle:focus-visible { outline: 3px solid var(--gold-star); outline-offset: 2px; border-radius: 8px; }
  .nav-list {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad-x) 16px;
  }
  .nav-list.open { display: flex; }
  .nav-list a { display: block; padding: 13px 0; font-size: 17px; }
  .nav-list a::after { display: none; }
  /* All five links live in the hamburger dropdown on mobile. */
  .nav-list-b { display: none; }
  /* Absolutely centre the logo so an uneven hamburger/cart width can't shift it. */
  .header { display: flex; align-items: center; justify-content: space-between; padding: 12px var(--pad-x); min-height: 72px; }
  .wordmark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .wordmark img { height: 52px; }
  .cart-btn { padding: 9px 14px; min-height: 44px; }
  .cart-label { display: none; }
}
@media (max-width: 919px) {
  /* Narrow screens: show the full image as a banner with the copy below it
     on cream, so the headline never overlaps the bottles. */
  .cinema {
    aspect-ratio: auto; width: 100%;
    display: block; background: var(--paper); color: var(--ink);
  }
  /* Dedicated mobile framing: bottles fill the banner, no empty cream band. */
  .cinema-slides { position: relative; aspect-ratio: 2724 / 1836; }
  .cinema-slide { background-image: url('../assets/hero-lineup-mobile.webp'); background-position: center; }
  .cinema-shade { display: none; }
  .cinema::after { display: none; }
  .cinema-copy { padding: 30px var(--pad-x) 38px; max-width: none; text-align: center; }
  .cinema-copy h1 { font-size: clamp(30px, 6vw, 44px); }
  .cinema-sub { margin: 12px auto 22px; max-width: 42ch; font-size: 16px; color: var(--ink-soft); }
  .cinema .hero-actions { justify-content: center; }
  /* Science section stacks: text first, image below. */
  .sci-split { grid-template-columns: 1fr; }
  .sci-visual { position: relative; top: auto; order: 2; max-width: 520px; }
  .sci-visual img { aspect-ratio: 4 / 3; }
  .sci-badge { right: 14px; bottom: -16px; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 479px) {
  .blends-row { grid-template-columns: 1fr; }
  .blend-bottle { width: min(52%, 165px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cinema-slide { transition: none; }
  .cinema-slide.is-active { animation: none; }
  .voices-track { animation: none; flex-wrap: wrap; width: auto; }
  .voices-set[aria-hidden] { display: none; }
  .voice { margin-bottom: 20px; transition: none; }
  .trust-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .trust-set:last-child { display: none; }
  .blend { opacity: 1; transform: none; transition: none; }
  .blend-bottle { animation: none; transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
  .cart-drawer, .cart-overlay { transition: none; }
  .popup, .popup-overlay { transition: none; }
}
