/* ============================================================
   Yuma — landing page styles
   Fonts: Fraunces (display serif, ~Roslindale), Hanken Grotesk
   (body), IBM Plex Mono (labels). Colors from the Figma file.
   ============================================================ */

:root {
  --cream: #fffaf3;
  --cream-2: #fffbf5;
  --peach: #ffece5;
  --blue: #2c51ac;
  --ink: #34395c;       /* headings */
  --body: #44496f;      /* body text */
  --muted: #6e7396;

  --serif: "Unna", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1200px;
  --radius: 24px;
  --shadow-card: 0 2px 4px rgba(28, 33, 80, 0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

/* ---------- shared typography ---------- */
.display {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.display--center { text-align: center; }

.body { color: var(--body); font-size: 15px; line-height: 1.57; margin: 0 0 18px; max-width: 50ch; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.18em;
  margin: 0;
}
.eyebrow--blue { color: var(--blue); }
.eyebrow--muted { color: rgba(255, 251, 245, 0.55); }
.eyebrow--night { color: rgba(237, 239, 250, 0.6); }

.lead {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--body);
  margin: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.04em;
  text-decoration: none;
  border-radius: 17px;
  height: 48px;
  padding: 0 18px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--solid { background: var(--blue); color: var(--cream-2); }
.btn--solid:hover { background: #244491; }
.btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--ghost { background: transparent; color: var(--blue); padding: 0 18px; font-size: 15px; }
.btn--ghost:hover { background: rgba(44, 81, 172, 0.08); }
.btn--full { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 24px 0;
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.nav__links { grid-column: 1; justify-self: start; display: flex; align-items: center; gap: 26px; }
.nav__links a { font-family: var(--sans); font-weight: 500; font-size: 15px; color: var(--ink); text-decoration: none; transition: color 0.15s ease; }
.nav__links a:hover { color: var(--blue); }
.nav__logo { grid-column: 2; justify-self: center; display: block; }
.nav__logo img { height: 24px; width: auto; }
.nav__actions { grid-column: 3; justify-self: end; }
.nav__cta { justify-self: end; }

/* hamburger (mobile only) */
.nav__burger {
  grid-column: 1; justify-self: start; display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 0;
  background: none; border: none; cursor: pointer;
}
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile dropdown menu */
.nav__menu {
  position: fixed; inset: 0;
  background: var(--cream-2);
  padding: 84px 24px 32px;
  display: flex; flex-direction: column; gap: 2px;
  overflow-y: auto;
  z-index: 9;
}
.nav__menu[hidden] { display: none; }
.nav__menu-close {
  position: absolute; top: 14px; right: 18px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  font-size: 38px; line-height: 1; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.nav__menu-close:hover { color: var(--blue); }
.nav__menu a { font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--ink); text-decoration: none; padding: 14px 4px; border-bottom: 1px solid rgba(52, 57, 92, 0.1); }
.nav__menu a:hover { color: var(--blue); }
.nav__menu .btn { margin-top: 18px; }
@media (min-width: 681px) { .nav__menu { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  /* single composite image: gradient on top, hands across the bottom */
  aspect-ratio: 1440 / 1286;
  background: url("assets/hero-full.png") center bottom / cover no-repeat,
              linear-gradient(211deg, #fdca9b 30%, #ffd3d7 87%, #fddadf 99%);
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* text overlays the gradient zone; % padding keeps it proportional as the image scales */
.hero__copy { width: 100%; max-width: 760px; padding: 13% 24px 0; }
.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.hero__sub { color: var(--body); font-size: 14px; line-height: 1.57; margin: 0 auto 26px; max-width: 700px; }

/* ---------- high-quality ---------- */
.quality { background: var(--peach); overflow: hidden; }
.quality__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.quality__text {
  padding: 96px 48px;
  /* align the text's left edge with the page container, image bleeds right */
  padding-left: max(32px, calc((100vw - var(--maxw)) / 2 + 32px));
}
.quality__text .display { margin-bottom: 28px; }
.tags { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 560px; }
.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  background: #fff;
  padding: 5px 11px;
  border-radius: 999px;
}
.quality__art { align-self: stretch; }
.quality__art img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; object-position: center; }

/* ---------- section head ---------- */
.section-head { text-align: center; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* ---------- line-up ---------- */
.lineup { background: var(--peach); padding: 68px 32px 96px; overflow-x: clip; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 32px;
}
.card {
  background: #fff;
  border: 1px solid rgba(52, 57, 92, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 17px;
  display: flex;
  flex-direction: column;
}
.card__media {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(28, 33, 80, 0.09);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 22px 12px 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: 22px; line-height: 1.15; letter-spacing: -0.015em; margin: 4px 0 0; min-height: 2.3em; }
.card__desc { color: var(--body); font-size: 14px; line-height: 1.57; margin: 4px 0 10px; min-height: 6.3em; }
.divider { border: none; border-top: 1px solid rgba(52, 57, 92, 0.14); margin: 6px 0; width: 100%; }
.card__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: lowercase; color: var(--muted); margin: 6px 0 0; }
.pills { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.pills li { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: lowercase; padding: 5px 11px; border-radius: 999px; }
.card__nutri { width: 100%; }
.card__nutri summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 4px 0;
}
.card__nutri summary::-webkit-details-marker { display: none; }
.card__nutri summary .card__label { margin: 0; }
.card__nutri-icon { position: relative; width: 12px; height: 12px; flex: 0 0 auto; }
.card__nutri-icon::before {
  content: ""; position: absolute; left: 50%; top: 40%;
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: transform 0.2s ease;
}
.card__nutri[open] .card__nutri-icon::before { transform: translate(-50%, -10%) rotate(-135deg); }
.nutri { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; }
.card__nutri:not([open]) .nutri { display: none; }
.nutri li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em;
  padding: 6px 0; border-bottom: 1px solid rgba(52, 57, 92, 0.07);
}
.nutri li:last-child { border-bottom: none; }
.nutri li span:first-child { text-transform: lowercase; color: var(--muted); }
.nutri li span:last-child { color: var(--ink); white-space: nowrap; }
.nutri .nutri--sub span:first-child { padding-left: 12px; opacity: 0.75; }
.nutri .nutri--sub span:last-child { color: var(--body); }
.card__meta { margin-top: auto; padding-top: 16px; display: flex; align-items: baseline; justify-content: space-between; }
.card__serving { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: lowercase; color: var(--muted); }
.card__price { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.card .btn--full { margin-top: 16px; padding: 0; font-size: 17px; text-transform: lowercase; }

/* ---------- science (dark) ---------- */
.science {
  background: linear-gradient(241deg, #201f4c 6%, #624b81 100%);
  padding: 96px 32px 110px;
  color: #fff;
  overflow-x: clip;
}
.science__inner { max-width: 1180px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.science__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ece9fc;
  margin: 18px 0 0;
}
.science__title em { font-style: normal; color: #b6a6da; }
.science__lead { max-width: 560px; margin: 24px 0 0; font-size: 17px; line-height: 1.7; color: rgba(255, 251, 245, 0.8); }

.stats {
  margin: 56px 0 0;
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 251, 245, 0.18);
  border-bottom: 1px solid rgba(255, 251, 245, 0.18);
}
.stat { padding: 34px 26px; text-align: center; }
.stat + .stat { border-left: 1px solid rgba(255, 251, 245, 0.18); }
.stat__big { font-family: var(--serif); font-weight: 600; font-size: 56px; line-height: 1; display: block; }
.stat__cap { font-size: 14px; line-height: 1.57; color: #d2cdd3; margin: 18px 0 0; }

.science__cta { margin: 64px 0 0; max-width: 760px; }
.science__h3 { font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1.2; color: var(--cream-2); margin: 0; }
.science__sub { max-width: 502px; margin: 24px auto 0; font-size: 16px; line-height: 1.7; color: rgba(255, 251, 245, 0.8); }

/* ---------- carousel (shared) ---------- */
.carousel { position: relative; width: 100%; max-width: 1180px; margin: 56px auto 0; }
/* ingredients run full-bleed so the cards reach the screen edges */
.ingredients-carousel {
  max-width: none;
  width: 100vw;
  position: relative;
  left: calc(-50vw + 50%);
}
.carousel__nav { display: flex; gap: 12px; justify-content: center; margin-top: 28px; }
.carousel__arrow {
  width: 48px; height: 48px; border-radius: 999px;
  border: 1.5px solid; background: transparent; cursor: pointer;
  font-family: var(--sans); font-size: 24px; line-height: 1; padding-bottom: 3px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.carousel__arrow:disabled { opacity: 0.3; cursor: default; }
.ingredients-carousel .carousel__arrow { border-color: rgba(255, 251, 245, 0.45); color: #ece9fc; }
.ingredients-carousel .carousel__arrow:hover:not(:disabled) { background: rgba(255, 251, 245, 0.12); }
.lineup .carousel__arrow { border-color: var(--blue); color: var(--blue); }
.lineup .carousel__arrow:hover:not(:disabled) { background: rgba(44, 81, 172, 0.08); }
.cards-nav { display: none; }

.ingredients {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 6px 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ingredients::-webkit-scrollbar { display: none; }
.ing {
  flex: 0 0 252px;
  scroll-snap-align: center;
  background: #fff;
  border-radius: var(--radius);
  border-top: 5px solid var(--accent);
  box-shadow: var(--shadow-card);
  padding: 32px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.ing__name { font-family: var(--serif); font-weight: 600; font-size: 24px; color: var(--ink); margin: 0; line-height: 1.2; }
.ing__name em { font-style: normal; font-weight: 400; }
.ing__role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: lowercase; color: var(--muted); margin: 8px 0 0; }
.ing__desc { font-size: 14px; line-height: 1.57; color: var(--body); margin: 16px 0 16px; flex: 1; }
.ing__tag { align-self: flex-start; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: lowercase; padding: 4px 9px; border-radius: 999px; }

/* ---------- FAQ ---------- */
.faq { background: var(--peach); padding: 72px 32px; }
.faq__list { max-width: 800px; margin: 44px auto 0; display: flex; flex-direction: column; gap: 14px; }
.faq__item {
  background: #fff;
  border: 1px solid rgba(52, 57, 92, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 0 31px;
  overflow: hidden;
}
.faq__item[open] { border-left: 3.75px solid #c56b49; }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary span { font-family: var(--serif); font-weight: 400; font-size: 23px; color: var(--ink); letter-spacing: -0.01em; }
.faq__item summary i { position: relative; width: 18px; height: 18px; flex: 0 0 auto; }
.faq__item summary i::before,
.faq__item summary i::after {
  content: ""; position: absolute; background: var(--muted);
  left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.faq__item summary i::before { width: 16px; height: 2px; }
.faq__item summary i::after { width: 2px; height: 16px; transition: opacity 0.2s ease; }
.faq__item[open] summary i::before,
.faq__item[open] summary i::after { background: var(--blue); }
.faq__item[open] summary i::after { opacity: 0; }
.faq__answer { padding: 0 0 28px; color: var(--body); font-size: 15.5px; line-height: 1.7; max-width: 70ch; }

/* ---------- waitlist ---------- */
.waitlist { background: var(--peach); }
.waitlist__top { text-align: center; max-width: 720px; margin: 0 auto; padding: 79px 32px 60px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.waitlist__title { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 52px); line-height: 1.02; letter-spacing: -0.018em; color: var(--ink); margin: 0; }
.waitlist__sub { max-width: 495px; color: var(--body); font-size: 17px; line-height: 1.65; margin: 0; }
.waitlist__form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.waitlist__input {
  font-family: var(--sans);
  font-size: 16px;
  padding: 15px 22px;
  border-radius: 999px;
  border: 1px solid rgba(52, 57, 92, 0.2);
  background: #fff;
  min-width: 260px;
  color: var(--ink);
}
.waitlist__input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.waitlist__foot {
  background: #fbe0d7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding: 28px 56px;
}
.waitlist__foot-title { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.waitlist__foot-text { color: var(--body); font-size: 15px; line-height: 1.55; max-width: 487px; text-align: center; margin: 0; }

/* ---------- format (dark, last) ---------- */
.format { position: relative; background: #05081b; overflow: hidden; min-height: 640px; display: flex; align-items: center; }
.format__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.format__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5, 8, 27, 0.92) 0%, rgba(5, 8, 27, 0.7) 34%, rgba(5, 8, 27, 0) 56%);
}
.format__content { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 80px 32px; width: 100%; }
.format__content > * { max-width: 460px; }
.format__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ece9fc;
  margin: 14px 0 0;
}
.format__title em { font-style: normal; color: #b6a6da; }
.format__list { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; max-width: 395px; }
.format__list li { position: relative; padding-left: 21px; color: rgba(237, 239, 250, 0.88); font-size: 15.5px; line-height: 1.6; }
.format__list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 999px; background: #b6a6da; }
.format__close { margin: 30px 0 0; font-family: var(--serif); font-size: 22px; color: #edeffa; }
.format__close em { font-style: normal; color: #b6a6da; }

/* ---------- footer ---------- */
.footer { background: #05081b; color: rgba(237, 239, 250, 0.6); text-align: center; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer img { height: 22px; width: auto; opacity: 0.85; filter: brightness(0) saturate(100%) invert(72%) sepia(20%) saturate(900%) hue-rotate(210deg); }
.footer p { margin: 0; font-size: 13px; }

/* ---------- modals ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20, 18, 40, 0.55); backdrop-filter: blur(2px); }
.modal__dialog {
  position: relative;
  background: var(--cream-2);
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  padding: 40px;
  box-shadow: 0 24px 70px rgba(20, 18, 40, 0.35);
  max-height: 92vh;
  overflow-y: auto;
  animation: modal-in 0.2s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 999px; border: none;
  background: rgba(52, 57, 92, 0.08); color: var(--ink);
  font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal__close:hover { background: rgba(52, 57, 92, 0.16); }
.modal__title { font-family: var(--serif); font-weight: 700; font-size: 30px; color: var(--ink); margin: 10px 0 0; line-height: 1.1; letter-spacing: -0.01em; }
.modal__sub { color: var(--body); font-size: 15px; line-height: 1.6; margin: 10px 0 22px; }
.modal__form { display: flex; flex-direction: column; gap: 14px; }
.modal__form label { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: lowercase; color: var(--muted); }
.modal__optional { text-transform: none; letter-spacing: 0; opacity: 0.8; }
.modal__form input, .modal__form textarea {
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  padding: 12px 16px; border-radius: 12px;
  border: 1px solid rgba(52, 57, 92, 0.2); background: #fff;
}
.modal__form textarea { resize: vertical; min-height: 84px; }
.modal__form input:focus, .modal__form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.modal__form .btn { margin-top: 6px; }
.modal__thanks { text-align: center; padding: 12px 0; }
.modal__check { width: 56px; height: 56px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 28px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.modal__thanks .btn { margin-top: 22px; }

/* ============================================================
   Animations
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* scroll reveal */
  .js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }

  /* hero entrance */
  .js .hero__title { animation: rise 0.9s 0.1s both cubic-bezier(0.22, 0.61, 0.36, 1); }
  .js .hero__sub { animation: rise 0.9s 0.28s both cubic-bezier(0.22, 0.61, 0.36, 1); }
  .js .hero__copy .btn { animation: rise 0.9s 0.46s both cubic-bezier(0.22, 0.61, 0.36, 1); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* subtle hover lift (pointer devices only) */
@media (hover: hover) {
  .card { transition: transform 0.28s ease, box-shadow 0.28s ease; }
  .card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(28, 33, 80, 0.13); }
  .card__media img { transition: transform 0.5s ease; }
  .card:hover .card__media img { transform: scale(1.04); }
  .ing { transition: transform 0.28s ease, box-shadow 0.28s ease; }
  .ing:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(28, 33, 80, 0.14); }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  /* products become a swipeable slider with arrows */
  .cards {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 16px;
    padding: 6px 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 84%; scroll-snap-align: center; }
  .cards-nav { display: flex; }
}
@media (max-width: 860px) {
  .quality__inner { grid-template-columns: 1fr; }
  .quality__text { order: 0; padding: 72px 24px 28px; }
  .quality__art { order: 1; align-self: auto; }
  .quality__art img { height: auto; min-height: 0; max-height: 58vh; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: none; border-top: 1px solid rgba(255, 251, 245, 0.18); }
}
@media (max-width: 680px) {
  /* hero fills the screen; shifted left so the Calm tin is almost fully in frame */
  .hero { aspect-ratio: auto; min-height: 100svh; background-position: 15% bottom; }
  .hero__copy { padding-top: 96px; }
  .hero__title { font-size: 52px; }
  .hero__sub { font-size: 15px; }
  .nav { position: fixed; padding: 14px 0; transition: background 0.2s ease, box-shadow 0.2s ease; }
  .nav--scrolled { background: rgba(255, 251, 245, 0.92); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(52, 57, 92, 0.08); }
  .nav__inner { padding: 0 20px; }
  .nav__links { display: none; }
  .nav__actions { display: none; }
  .nav__burger { display: flex; }
  .nav__logo img { height: 32px; }
  .lineup, .science, .faq { padding-left: 20px; padding-right: 20px; }
  /* products go full-bleed so the peeking cards reach the screen edges */
  .cards-carousel { max-width: none; width: 100vw; position: relative; left: calc(-50vw + 50%); }
  /* card width in vw (not %) so it's independent of the container's own padding —
     side padding = (100vw - card width) / 2, letting the first/last card rest centered too */
  .card { flex-basis: 84vw; }
  .cards { padding-left: 8vw; padding-right: 8vw; }
  .faq__item { padding: 0 22px; }
  .faq__item summary span { font-size: 19px; }
  .waitlist__foot { padding: 28px 24px; }
  .format__overlay { background: linear-gradient(180deg, rgba(5, 8, 27, 0.55) 0%, rgba(5, 8, 27, 0.92) 60%); }
  .format__content > * { max-width: 100%; }
}
