:root {
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ink: #111827;
  --soft-ink: #4b5563;
  --forest: #0f3f36;
  --gold: #c58f1a;
  --line-gold: rgba(197, 143, 26, 0.22);
  --shadow: 0 26px 80px rgba(17, 24, 39, 0.10);
  --theme: #0f766e;
  --theme-soft: rgba(15, 118, 110, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(197, 143, 26, 0.08), transparent 25rem),
    radial-gradient(circle at 92% 6%, rgba(15, 63, 54, 0.06), transparent 28rem),
    linear-gradient(180deg, #fffdf8 0%, #fbf4ea 48%, #fffdf8 100%);
}

body.theme-harmony { --theme: #b96b5e; --theme-soft: rgba(185, 107, 94, 0.14); }
body.theme-mind { --theme: #6b46c1; --theme-soft: rgba(107, 70, 193, 0.14); }
body.theme-control { --theme: #0f766e; --theme-soft: rgba(15, 118, 110, 0.14); }
body.theme-sleep { --theme: #27325d; --theme-soft: rgba(39, 50, 93, 0.16); }

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

.science-topbar {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 8px 18px;
  color: #2a211b;
  background: linear-gradient(90deg, #f8ead8, #fff7ec, #f8ead8);
  border-bottom: 1px solid rgba(197, 143, 26, 0.18);
  font-size: 13px;
  font-weight: 700;
}

.science-topbar span { color: var(--forest); }
.science-topbar em {
  width: 1px;
  height: 16px;
  display: inline-block;
  background: rgba(42, 33, 27, 0.22);
}

.science-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 74px);
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid rgba(15, 63, 54, 0.10);
  backdrop-filter: blur(18px);
}

.brand-wordmark {
  width: max-content;
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #111827;
}

.brand-wordmark strong {
  font-family: var(--font-heading);
  font-size: clamp(23px, 3vw, 32px);
  line-height: 0.95;
  letter-spacing: 0.25em;
  font-weight: 700;
}

.brand-wordmark small {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.50em;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 36px);
}

.nav-links a {
  text-decoration: none;
  color: #1f2937;
  font-size: 14px;
  font-weight: 800;
  padding: 9px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a.active {
  color: var(--theme);
  border-color: var(--gold);
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.icon-link {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(15, 63, 54, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--forest);
  background: rgba(255, 255, 255, 0.74);
  font-size: 0;
  font-weight: 900;
}

.icon-link::before,
.icon-link::after {
  content: '';
  position: absolute;
  display: block;
}

.icon-link[aria-label="Search products"]::before {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translate(-3px, -3px);
}

.icon-link[aria-label="Search products"]::after {
  width: 9px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transform: translate(8px, 8px) rotate(45deg);
}

.icon-link[aria-label="Account"]::before {
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.icon-link[aria-label="Account"]::after {
  width: 22px;
  height: 11px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 18px 18px;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.icon-link[aria-label="Cart"]::before {
  width: 20px;
  height: 15px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 2px 2px 6px 6px;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
}

.icon-link[aria-label="Cart"]::after {
  width: 18px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.shop-now {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--forest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumbs {
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px clamp(18px, 5vw, 32px) 0;
  display: flex;
  gap: 10px;
  align-items: center;
  color: #667085;
  font-size: 13px;
  font-weight: 600;
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--forest);
}

.science-hero {
  overflow: hidden;
  border-bottom: 1px solid rgba(15, 63, 54, 0.08);
  background:
    linear-gradient(90deg, rgba(255,253,248,0.95), rgba(255,250,242,0.74)),
    radial-gradient(circle at 84% 18%, var(--theme-soft), transparent 28rem);
}

.hero-grid {
  max-width: 1260px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px) clamp(18px, 5vw, 32px) clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(440px, 1.14fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.hero-copy { padding-bottom: 0; }

.science-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  color: var(--theme);
  background: rgba(255, 255, 255, 0.70);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.science-pill::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(197, 143, 26, 0.13);
}

.hero-copy h1,
.section-heading,
.cta-band h2,
.related-title {
  font-family: var(--font-heading);
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--forest);
}

.hero-copy h1 {
  margin: 20px 0 18px;
  max-width: 700px;
  font-size: clamp(45px, 6vw, 78px);
}

.hero-copy p {
  max-width: 610px;
  margin: 0;
  color: #344054;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.75;
}

.hero-benefits {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-gold);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 10px 34px rgba(17, 24, 39, 0.05);
}

.hero-benefit {
  min-height: 106px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px;
  border-right: 1px solid rgba(197, 143, 26, 0.20);
}

.hero-benefit:last-child { border-right: 0; }

.hero-benefit i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--theme-soft);
  color: var(--theme);
  font-style: normal;
  font-weight: 900;
}

.hero-benefit span {
  color: #1f2937;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-media {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,250,242,0.72)),
    var(--theme-soft);
  box-shadow: 0 28px 90px rgba(17, 24, 39, 0.13);
  border: 1px solid rgba(197, 143, 26, 0.24);
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,253,248,0.12), transparent 15%, transparent 82%, rgba(255,253,248,0.16)),
    radial-gradient(circle at 50% 120%, rgba(255,255,255,0.20), transparent 42%);
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

.science-shell {
  max-width: 1260px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px) clamp(18px, 5vw, 32px) 72px;
}

.content-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 270px;
  gap: 28px;
  align-items: start;
}

.toc,
.side-stack {
  position: sticky;
  top: 96px;
}

.toc,
.side-card,
.article-card,
.ingredient-panel,
.faq-panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line-gold);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(17, 24, 39, 0.045);
}

.toc { padding: 22px 0; }

.toc strong {
  display: block;
  padding: 0 18px 12px;
  color: #2a211b;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 11px 18px;
  text-decoration: none;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  border-left: 3px solid transparent;
}

.toc a:hover,
.toc a:focus {
  color: var(--theme);
  border-left-color: var(--theme);
  background: var(--theme-soft);
}

.article-flow {
  display: grid;
  gap: 34px;
}

.article-card {
  padding: clamp(22px, 3.5vw, 34px);
}

.section-kicker {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-heading {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
}

.section-copy {
  margin: 0;
  color: #4b5563;
  line-height: 1.75;
}

.glance-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  margin-top: 24px;
  border-top: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold);
}

.glance-item {
  min-height: 116px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 6px;
  border-right: 1px solid var(--line-gold);
}

.glance-item:last-child { border-right: 0; }

.glance-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--theme);
  background: var(--theme-soft);
  font-weight: 900;
  font-size: 13px;
}

.glance-item strong {
  color: var(--forest);
  font-size: 13px;
  line-height: 1.25;
}

.glance-item span {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.feature-card {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  overflow: hidden;
  border: 1px solid var(--line-gold);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.82), var(--theme-soft));
}

.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  min-height: 220px;
  background: linear-gradient(135deg, #fffaf2, var(--theme-soft));
}

.feature-copy {
  padding: clamp(22px, 4vw, 34px);
  align-self: center;
}

.feature-copy h3 {
  margin: 0 0 10px;
  font: 700 clamp(24px, 3vw, 34px)/1.1 var(--font-heading);
  color: var(--forest);
}

.feature-copy p {
  margin: 0 0 18px;
  color: #4b5563;
  line-height: 1.7;
}

.text-link {
  color: var(--theme);
  font-weight: 900;
  text-decoration: none;
}

.ingredient-panel { overflow: hidden; }

.ingredient-row {
  display: grid;
  grid-template-columns: 112px minmax(145px, 0.9fr) minmax(0, 1.45fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid rgba(197, 143, 26, 0.16);
  background: rgba(255, 255, 255, 0.62);
}

.ingredient-row:first-of-type { border-top: 0; }

.ingredient-thumb {
  height: 74px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--theme-soft), rgba(197,143,26,0.10));
  color: var(--theme);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ingredient-name strong {
  display: block;
  color: var(--forest);
  font: 700 20px/1.1 var(--font-heading);
}

.ingredient-name span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.ingredient-row p {
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
  font-size: 13px;
}

.row-action {
  min-width: 138px;
  min-height: 38px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--theme);
  background: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.why-item {
  padding: 20px 16px;
  text-align: center;
  border: 1px solid var(--line-gold);
  border-radius: 16px;
  background: rgba(255,255,255,0.70);
}

.why-item i {
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--theme-soft);
  color: var(--theme);
  font-style: normal;
  font-weight: 900;
}

.why-item strong {
  display: block;
  color: var(--forest);
  margin-bottom: 8px;
  font-weight: 900;
}

.why-item span {
  display: block;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.55;
}

.disclaimer {
  padding: 14px 18px;
  border: 1px solid rgba(197,143,26,0.28);
  border-radius: 12px;
  background: rgba(197,143,26,0.08);
  color: #4b5563;
  line-height: 1.6;
  font-size: 12px;
}

.cta-band {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line-gold);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7ec, var(--theme-soft));
}

.cta-band img {
  height: 118px;
  width: 100%;
  object-fit: contain;
  background: linear-gradient(135deg, #fffaf2, var(--theme-soft));
}

.cta-band h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 34px);
}

.cta-band p {
  margin: 0;
  color: #4b5563;
  line-height: 1.55;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  padding: 0 22px;
  margin-right: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--theme);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.side-stack {
  display: grid;
  gap: 18px;
}

.side-card {
  padding: 22px;
}

.side-card h3 {
  margin: 0 0 10px;
  color: var(--forest);
  font: 700 21px/1.15 var(--font-heading);
}

.side-card p {
  color: #4b5563;
  line-height: 1.65;
  font-size: 13px;
}

.side-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--theme);
  background: var(--theme-soft);
  font-weight: 900;
}

.faq-panel {
  padding: 18px;
}

.faq-panel h3 {
  margin: 0 0 12px;
  color: var(--forest);
  font: 700 22px/1.15 var(--font-heading);
}

.faq-panel details {
  border-top: 1px solid rgba(197,143,26,0.18);
  padding: 12px 0;
}

.faq-panel details:first-of-type { border-top: 0; }

.faq-panel summary {
  cursor: pointer;
  color: #263238;
  font-weight: 800;
  font-size: 13px;
}

.faq-panel p {
  margin: 10px 0 0;
  color: #4b5563;
  line-height: 1.65;
  font-size: 13px;
}

.related-title {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 36px);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-card {
  overflow: hidden;
  border: 1px solid var(--line-gold);
  border-radius: 16px;
  background: rgba(255,255,255,0.86);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(17,24,39,0.045);
}

.related-card img {
  height: 96px;
  width: 100%;
  object-fit: contain;
  background: linear-gradient(135deg, #fffaf2, var(--theme-soft));
}

.related-card div { padding: 14px; }

.related-card small {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.related-card strong {
  display: block;
  margin: 7px 0 8px;
  color: var(--forest);
  font: 700 17px/1.2 var(--font-heading);
}

.related-card span {
  color: var(--theme);
  font-size: 12px;
  font-weight: 900;
}

.science-footer {
  background: #111;
  color: rgba(255,255,255,0.72);
  padding: 38px clamp(20px, 5vw, 74px);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-inner strong {
  color: #fff;
  font-family: var(--font-heading);
  letter-spacing: 0.12em;
}

.footer-inner a {
  color: rgba(255,255,255,0.84);
  text-decoration: none;
  margin-left: 16px;
  font-size: 13px;
}

@media (max-width: 1080px) {
  .science-nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero-grid {
    grid-template-columns: 1fr;
    padding-bottom: 28px;
  }
  .hero-media {
    border-radius: 28px;
    min-height: 360px;
  }
  .content-grid { grid-template-columns: 1fr; }
  .toc,
  .side-stack { position: static; }
  .toc { display: none; }
  .side-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .science-topbar {
    font-size: 11px;
    gap: 9px;
    flex-wrap: wrap;
  }
  .science-topbar em { display: none; }
  .science-nav {
    padding: 14px 16px;
    gap: 12px;
  }
  .brand-wordmark strong {
    font-size: 22px;
    letter-spacing: 0.22em;
  }
  .brand-wordmark small { font-size: 8px; }
  .shop-now { display: none; }
  .icon-link {
    width: 38px;
    height: 38px;
  }
  .breadcrumbs {
    padding-top: 16px;
    flex-wrap: wrap;
  }
  .hero-grid { padding-top: 20px; }
  .hero-copy { padding-bottom: 18px; }
  .hero-copy h1 { font-size: clamp(38px, 12vw, 54px); }
  .hero-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-benefit:nth-child(2) { border-right: 0; }
  .hero-benefit:nth-child(-n+2) { border-bottom: 1px solid rgba(197, 143, 26, 0.20); }
  .hero-media {
    min-height: 285px;
    border-radius: 22px;
  }
  .science-shell {
    padding-left: 14px;
    padding-right: 14px;
  }
  .article-card { border-radius: 18px; }
  .glance-strip { grid-template-columns: 1fr; }
  .glance-item {
    border-right: 0;
    border-bottom: 1px solid var(--line-gold);
  }
  .glance-item:last-child { border-bottom: 0; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-card img { min-height: 180px; }
  .ingredient-row {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
  }
  .ingredient-row p,
  .ingredient-row .row-action { grid-column: 1 / -1; }
  .ingredient-thumb { height: 64px; }
  .row-action { width: 100%; }
  .why-grid,
  .side-stack,
  .related-grid { grid-template-columns: 1fr; }
  .cta-band {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
    padding-bottom: 22px;
  }
  .cta-band img { height: 150px; }
  .cta-band h2,
  .cta-band p {
    padding-left: 18px;
    padding-right: 18px;
  }
  .btn {
    width: calc(100% - 36px);
    margin: 18px 18px 0;
  }
  .footer-inner {
    display: block;
    text-align: center;
  }
  .footer-inner nav { margin-top: 14px; }
  .footer-inner a { margin: 0 7px; }
}

.btn-secondary{background:#fff;color:var(--ink);border-color:var(--line-gold)}
.cta-band .btn + .btn{margin-left:10px}
@media(max-width:760px){.cta-band .btn + .btn{margin-left:18px;margin-top:10px}}

@media (prefers-reduced-motion: no-preference) {
  .cw-reveal {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition:
      opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 720ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 260ms ease,
      border-color 260ms ease;
    transition-delay: var(--cw-reveal-delay, 0ms);
    will-change: opacity, transform;
  }

  .cw-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  .glance-item.cw-reveal,
  .ingredient-row.cw-reveal,
  .why-card.cw-reveal,
  .side-card.cw-reveal {
    transform: translate3d(0, 18px, 0) scale(0.985);
  }

  .glance-item.cw-reveal.is-visible,
  .ingredient-row.cw-reveal.is-visible,
  .why-card.cw-reveal.is-visible,
  .side-card.cw-reveal.is-visible {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cw-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Production polish: science pages keep product artwork fully visible on mobile. */
.science-page,
.science-page * {
  min-width: 0;
}

.hero-media,
.feature-card,
.cta-band,
.related-card {
  overflow: hidden;
}

.hero-media,
.feature-card figure,
.cta-band {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.92), rgba(255, 250, 239, 0.72)),
    linear-gradient(135deg, rgba(250, 247, 242, 0.96), rgba(243, 250, 252, 0.74));
}

.hero-media img,
.feature-card img,
.cta-band img,
.related-card img,
.ingredient-thumb img {
  max-width: 100%;
  object-fit: contain !important;
  object-position: center !important;
}

@media (max-width: 760px) {
  .science-page {
    overflow-x: hidden;
  }

  .hero-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
    padding: 10px;
  }

  .hero-media img {
    width: 100%;
    height: 100%;
  }

  .article-card,
  .side-card,
  .ingredient-row,
  .why-card {
    min-width: 0;
  }
}

/* Final science polish: align footer and page controls with premium customer pages. */
.science-nav {
  box-shadow: 0 12px 34px rgba(16, 36, 31, 0.04);
}

.science-footer {
  margin-top: clamp(3rem, 7vw, 5.6rem);
  padding: clamp(3rem, 6vw, 4.9rem) 24px;
  border-top: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(197, 143, 26, 0.18), transparent 18rem),
    radial-gradient(circle at 86% 18%, rgba(15, 118, 110, 0.12), transparent 20rem),
    linear-gradient(135deg, #0f100f 0%, #211812 62%, #111 100%);
  color: rgba(255, 255, 255, 0.68);
}

.science-footer .footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) minmax(260px, 1fr);
  align-items: start;
  gap: clamp(1.4rem, 4vw, 3rem);
}

.science-footer .footer-inner strong {
  display: block;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2vw, 1.95rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.science-footer .footer-inner p {
  max-width: 390px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.75;
}

.science-footer .footer-inner nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.science-footer .footer-inner a {
  margin: 0;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.72);
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.science-footer .footer-inner a:hover {
  color: #f5d57a;
  border-color: rgba(201, 162, 39, 0.38);
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .science-footer .footer-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .science-footer .footer-inner nav {
    justify-content: flex-start;
    margin-top: 1.25rem;
  }

  .science-footer .footer-inner a {
    display: inline-flex;
    margin: 0;
  }
}
