/* LATIVA — version A. "Formula sheet": bone paper, moss and amber, Newsreader/Manrope.
   Structural devices (ledgers, index rows, dosage tables) carry the identity; colour is
   spent once, on the .science band. main.js generates markup for .product-card, cart,
   quick view and toast — those class names are a contract, not a style choice. */

:root {
  --paper: #f7f5ef;
  --porcelain: #fcfbf8;
  --sand: #ebe6dc;
  --ink: #181513;
  --moss: #27382b;
  --moss-deep: #1a261d;
  --amber: #c2673a;
  --amber-lift: #db7d48;
  --muted: #6f6962;
  --line: rgba(24, 21, 19, .13);
  --line-soft: rgba(24, 21, 19, .06);
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 6px;
  --radius-sm: 4px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --maxw: 1320px;
  /* lets a full-bleed section keep its background and still align to --maxw */
  --pad-full: max(var(--gutter), calc((100% - var(--maxw)) / 2));
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
  overflow-x: clip;
}

body {
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.lativa-section-shell {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  box-sizing: border-box;
  transition: background-color 0.2s ease;
}

.lativa-section-shell:has(.header-wrap) {
  position: sticky;
  top: 0;
  z-index: 10001;
}

.lativa-section-shell:has(.header-wrap[data-sticky-off]) {
  position: relative;
  top: auto;
  z-index: 60;
}

.lativa-section-shell:has(.page-hero),
.lativa-section-shell:has(.journal-heading),
.lativa-section-shell:has(.article-heading),
.lativa-section-shell:has(.cart-heading) {
  background: transparent !important;
}

.blog-main-content,
.article-layout {
  background: transparent;
}

.page-hero {
  background: var(--banner-bg, #dfd8cb);
}

img, svg, video { display: block; max-width: 100%; }
/* width/height attributes act as presentational hints and outrank aspect-ratio
   unless a CSS height is declared — so declare one. */
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 340;
  line-height: 1.06;
  letter-spacing: -.018em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--moss); color: var(--porcelain); }

.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 300;
  background: var(--ink);
  color: var(--paper);
  padding: .7rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: .75rem; }

/* ---------- shared bits ---------- */

.icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.stars { display: inline-flex; gap: .12em; color: var(--amber); }
.stars .icon { width: .95em; height: .95em; fill: currentColor; stroke: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .92rem 1.65rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}

.button-primary { background: var(--moss); color: var(--porcelain); }
.button-primary:hover { background: var(--moss-deep); }
.button-ink { background: var(--ink); color: var(--paper); }
.button-ink:hover { background: var(--moss-deep); }

.text-link {
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
  text-decoration-color: var(--line);
  transition: text-decoration-color .3s var(--ease), color .3s var(--ease);
}
.text-link:hover { color: var(--moss); text-decoration-color: var(--amber); }

.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 1.15rem;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.icon-button:hover { background: var(--sand); }

.icon-button span {
  position: absolute;
  top: .18rem;
  right: .12rem;
  display: none;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 .25rem;
  border-radius: 999px;
  background: var(--moss);
  color: var(--porcelain);
  font-family: var(--body);
  font-size: .62rem;
  font-weight: 700;
  line-height: 1.05rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.icon-button.has-count span { display: block; }

/* ---------- announcement + header ---------- */

.announce {
  background: var(--ink);
  padding: .65rem var(--pad-full);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: .82rem;
  line-height: 1.45;
  text-align: center;
  color: rgba(247, 245, 239, .92);
  letter-spacing: .01em;
}
.announce a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.header-wrap {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.header-wrap.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px -26px rgba(24, 21, 19, .8);
}

.site-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding: .85rem var(--pad-full);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--display);
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-decoration: none;
  color: var(--ink);
}
.brand-dot {
  width: .34rem;
  height: .34rem;
  border-radius: 1px;
  background: var(--amber);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 2.4vw, 2.1rem);
}
.main-nav a {
  position: relative;
  padding: .3rem 0;
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color .3s var(--ease), background-size .4s var(--ease);
}
.main-nav a:hover { color: var(--ink); background-size: 100% 1px; }

.header-actions { display: flex; align-items: center; gap: .15rem; }
.menu-button { display: none; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(2.75rem, 6vw, 5rem) var(--pad-full) clamp(3.25rem, 7vw, 6rem);
}

.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5) { animation-delay: .32s; }
.hero-visual { animation: rise 1s var(--ease) .12s both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.hero h1 {
  font-size: clamp(2.7rem, 6.2vw, 5rem);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.028em;
  max-width: 15ch;
}

.hero-lede {
  margin-top: 1.5rem;
  max-width: 46ch;
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.25rem;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .84rem;
}
.proof-line { color: var(--muted); font-variant-numeric: tabular-nums; }

.hero-note { margin-top: .8rem; font-size: .8rem; color: var(--muted); }

.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  bottom: -1.35rem;
  left: 1.35rem;
  right: -1.35rem;
  background: var(--sand);
  border-radius: var(--radius);
}
.hero-visual img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--sand);
}

.formula-card {
  position: absolute;
  left: -1.75rem;
  bottom: 2.75rem;
  z-index: 2;
  width: min(19rem, 78%);
  padding: 1.2rem 1.35rem 1.1rem;
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-top: 2px solid var(--moss);
  border-radius: var(--radius);
  box-shadow: 0 24px 44px -30px rgba(24, 21, 19, .7);
}
.formula-card h2 {
  font-size: 1.16rem;
  font-weight: 400;
  letter-spacing: -.01em;
}
.formula-card dl { margin-top: .85rem; }
.formula-card dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .44rem 0;
  border-top: 1px solid var(--line-soft);
}
.formula-card dt { font-size: .84rem; color: var(--muted); }
.formula-card dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--moss);
}
.formula-card p {
  margin-top: .85rem;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
  font-size: .74rem;
  color: var(--muted);
}

/* ---------- trust strip ---------- */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: 1.7rem var(--pad-full);
  background: var(--porcelain);
  border-block: 1px solid var(--line);
}
.trust-strip article {
  display: flex;
  gap: .85rem;
  padding-left: clamp(0rem, 1.5vw, 1.5rem);
}
.trust-strip article + article { border-left: 1px solid var(--line-soft); }
.trust-strip .icon { width: 1.4rem; height: 1.4rem; color: var(--moss); margin-top: .1rem; }
.trust-strip h3 { font-family: var(--body); font-size: .9rem; font-weight: 700; letter-spacing: 0; }
.trust-strip span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.45; }

/* ---------- section scaffolding ---------- */

.section {
  padding-block: clamp(4rem, 9vw, 7rem);
  padding-inline: var(--pad-full);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.25rem clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}
.section-head h2 { font-size: clamp(1.95rem, 4vw, 3rem); }
.head-note {
  max-width: 32ch;
  justify-self: end;
  font-size: .86rem;
  color: var(--muted);
  text-align: right;
}

/* ---------- product shelf ---------- */

.product-tabs { display: flex; flex-wrap: wrap; gap: clamp(.85rem, 2vw, 1.6rem); }
.product-tabs button {
  position: relative;
  padding: .35rem 0;
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .3s var(--ease);
}
.product-tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.2rem;
  height: 2px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease), background-color .3s var(--ease);
}
.product-tabs button:hover { color: var(--ink); }
.product-tabs button:hover::after { transform: scaleX(1); }
.product-tabs button.active { color: var(--ink); }
.product-tabs button.active::after { background: var(--moss); transform: scaleX(1); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.25rem) clamp(1.25rem, 2.5vw, 2.25rem);
  margin-top: clamp(2rem, 4vw, 3.25rem);
}

.product-card { min-width: 0; }

.product-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--sand);
}
.product-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.product-card:hover .product-media > img { transform: scale(1.035); }

.badge {
  position: absolute;
  top: .7rem;
  left: .7rem;
  z-index: 2;
  padding: .3rem .55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--porcelain);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
}
.badge-new { background: var(--moss); border-color: var(--moss); color: var(--porcelain); }
.badge-sale { background: var(--amber); border-color: var(--amber); color: #fff8ea; }

.fav-toggle {
  position: absolute;
  top: .7rem;
  right: .7rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--porcelain) 88%, transparent);
  color: var(--ink);
  font-size: 1rem;
  transition: color .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.fav-toggle:hover { border-color: var(--amber); color: var(--amber); }
.fav-toggle.is-fav { color: var(--amber); border-color: var(--amber); }
.fav-toggle.is-fav .icon { fill: currentColor; }

.product-actions {
  position: absolute;
  left: .65rem;
  right: .65rem;
  bottom: .65rem;
  z-index: 2;
  display: flex;
  gap: .5rem;
}
.product-actions button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .68rem .5rem;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.quick-btn { background: var(--porcelain); border: 1px solid var(--line); color: var(--ink); }
.quick-btn:hover { border-color: var(--ink); }
.add-btn { background: var(--ink); color: var(--paper); }
.add-btn:hover { background: var(--moss-deep); }

@media (hover: hover) and (pointer: fine) {
  .product-actions {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .35s var(--ease), transform .35s var(--ease);
  }
  .product-card:hover .product-actions,
  .product-card:focus-within .product-actions { opacity: 1; transform: none; }
}

.product-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .35rem .9rem;
  margin-top: 1rem;
  padding-top: .95rem;
  border-top: 1px solid var(--line);
}
.product-info small {
  grid-area: 1 / 1 / 2 / -1;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
}
.product-info h3 {
  grid-area: 2 / 1 / 3 / 2;
  font-size: 1.14rem;
  font-weight: 400;
  letter-spacing: -.012em;
}
.product-info .product-price {
  grid-area: 2 / 2 / 3 / 3;
  justify-self: end;
  align-self: start;
  font-size: .95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.product-info .product-rating { grid-area: 3 / 1 / 4 / -1; }

.product-rating {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.product-rating .stars { font-size: .8rem; }

.product-price s { margin-left: .35rem; font-weight: 500; color: var(--muted); }
.product-size { margin-left: .5rem; font-size: .78rem; font-weight: 500; color: var(--muted); }

.no-products {
  margin-top: 2.5rem;
  padding: clamp(2rem, 5vw, 3.25rem);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.no-products h3 { font-size: 1.5rem; }
.no-products p { margin: .6rem auto 1.5rem; max-width: 40ch; color: var(--muted); font-size: .92rem; }

/* ---------- ritual ---------- */

.lativa-section-shell:has(> #ritual),
.lativa-section-shell:has(> .ritual) {
  background: var(--porcelain);
}

.ritual {
  padding-block: clamp(4rem, 9vw, 7rem);
  padding-inline: var(--pad-full);
  background: var(--porcelain);
}

.ritual-banner { overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.ritual-banner img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

.ritual-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: end;
  gap: 1.25rem clamp(1.5rem, 4vw, 3rem);
  margin: clamp(2rem, 4vw, 3rem) 0;
}
.ritual-head h2 { font-size: clamp(1.95rem, 4vw, 3rem); }
.ritual-head p { color: var(--muted); max-width: 44ch; font-size: .98rem; }

.ritual-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3.25rem);
  padding-top: clamp(1.75rem, 3.5vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.ritual-steps article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.15rem;
}
.ritual-steps strong {
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 300;
  line-height: .9;
  color: var(--moss);
  font-variant-numeric: lining-nums;
}
.ritual-steps h3 { font-size: 1.28rem; font-weight: 400; }
.ritual-steps p { margin: .55rem 0 1rem; font-size: .92rem; color: var(--muted); max-width: 42ch; }
.ritual > .button-ink { margin-top: clamp(2.25rem, 4vw, 3.25rem); }

/* ---------- concern index ---------- */

.concern-index { margin-top: 0; }
.concern-item {
  position: relative;
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr) 4.75rem 2.25rem;
  grid-template-areas: "cat title thumb go";
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background-color .4s var(--ease), padding-inline .4s var(--ease);
}
.concern-item:hover {
  background: var(--porcelain);
  padding-inline: 1.1rem;
  margin-inline: -1.1rem;
}
.concern-cat { grid-area: cat; font-size: .76rem; font-weight: 600; color: var(--muted); }
.concern-item h3 {
  grid-area: title;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 340;
  letter-spacing: -.02em;
}
.concern-thumb {
  grid-area: thumb;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  background: var(--sand);
}
.concern-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.concern-item:hover .concern-thumb img { transform: scale(1.06); }
.concern-go {
  grid-area: go;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-size: 1rem;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.concern-item:hover .concern-go { background: var(--moss); border-color: var(--moss); color: var(--porcelain); }

/* ---------- formula spotlight ---------- */

.lativa-section-shell:has(> #spotlight),
.lativa-section-shell:has(> .spotlight) {
  background: var(--sand);
}

.spotlight {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(4rem, 9vw, 7rem);
  padding-inline: var(--pad-full);
  background: var(--sand);
}
.spotlight-media { background: var(--sand); border-radius: var(--radius); overflow: hidden; }
.spotlight-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.spotlight-copy h2 { font-size: clamp(1.95rem, 4vw, 3rem); }
.spotlight-lede { margin-top: 1.15rem; max-width: 50ch; color: var(--muted); font-size: 1rem; }

.dose-list { margin: clamp(1.75rem, 3.5vw, 2.5rem) 0 0; }
.dose-list > div {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  column-gap: clamp(1rem, 2.5vw, 1.75rem);
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}
.dose-list > div:last-child { border-bottom: 1px solid var(--line); }
.dose-list dd {
  grid-area: 1 / 1 / 2 / 2;
  margin: 0;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 340;
  line-height: 1;
  color: var(--moss);
  font-variant-numeric: tabular-nums lining-nums;
}
.dose-list dt { grid-area: 1 / 2 / 2 / 3; font-size: .95rem; font-weight: 700; }
.dose-list p { grid-area: 2 / 2 / 3 / 3; margin-top: .35rem; font-size: .88rem; color: var(--muted); max-width: 52ch; }
.spotlight-copy > .button { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }

/* ---------- results (the one dark band) ---------- */

.science {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(4.5rem, 10vw, 8rem);
  padding-inline: var(--pad-full);
  background: var(--moss-deep);
  color: var(--porcelain);
}
.science-media {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(250, 250, 247, .16);
}
.science-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.science-copy h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 300; }
.science-lede { margin-top: 1.1rem; max-width: 46ch; color: rgba(250, 250, 247, .72); }

.stat-list { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }
.stat-list > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: clamp(.9rem, 2.5vw, 1.75rem);
  padding: 1rem 0;
  border-top: 1px solid rgba(250, 250, 247, .18);
}
.stat-list > div:last-child { border-bottom: 1px solid rgba(250, 250, 247, .18); }
.stat-list dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.4vw, 3rem);
  font-weight: 300;
  line-height: 1;
  color: var(--amber-lift);
  font-variant-numeric: tabular-nums lining-nums;
}
.stat-list dt { font-size: .94rem; line-height: 1.5; color: rgba(250, 250, 247, .82); max-width: 34ch; }

.science-note {
  margin-top: 1.5rem;
  max-width: 62ch;
  font-size: .76rem;
  line-height: 1.6;
  color: rgba(250, 250, 247, .5);
}

/* ---------- reviews ---------- */

.review-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem) clamp(1.5rem, 3vw, 2.75rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.review-grid article { min-width: 0; }
.review-lead { grid-column: 1 / 7; grid-row: 1 / 4; }
.review-grid > article:nth-of-type(2) { grid-column: 7 / 13; grid-row: 1; }
.review-grid > article:nth-of-type(3) { grid-column: 7 / 13; grid-row: 2; }
.review-summary { grid-column: 7 / 13; grid-row: 3; }

.review-grid blockquote {
  font-family: var(--display);
  font-weight: 340;
  letter-spacing: -.012em;
  text-wrap: pretty;
}
.review-lead blockquote { font-size: clamp(1.5rem, 2.5vw, 2.1rem); line-height: 1.26; }
.review-grid > article:not(.review-lead) blockquote { font-size: 1.08rem; line-height: 1.5; }
.review-grid > article:not(.review-lead) { padding-top: 1.35rem; border-top: 1px solid var(--line); }

.review-grid article footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .85rem;
  margin-top: 1.35rem;
}
.review-lead footer { margin-top: 2rem; }
.review-avatar {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--sand);
  color: var(--moss-deep);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.review-grid article footer h3 { font-family: var(--body); font-size: .9rem; font-weight: 700; letter-spacing: 0; }
.review-grid article footer p { font-size: .78rem; color: var(--muted); }
.review-grid article footer .stars { font-size: .82rem; }

.review-summary {
  align-self: end;
  padding: 1.5rem 1.6rem;
  background: var(--sand);
  border-radius: var(--radius);
}
.review-summary strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -.01em;
}
.review-summary p { margin-top: .45rem; font-size: .86rem; color: var(--muted); max-width: 34ch; }

/* ---------- press ---------- */

.press {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem clamp(1.5rem, 4vw, 3rem);
  padding-block: 2.1rem;
  padding-inline: var(--pad-full);
  border-block: 1px solid var(--line);
}
.press > span { font-size: .8rem; font-weight: 600; color: var(--muted); }
.press ul { display: flex; flex-wrap: wrap; gap: 1rem clamp(1.5rem, 3.5vw, 3rem); }
.press li {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: .01em;
  color: var(--muted);
}

/* ---------- newsletter ---------- */

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--maxw);
  margin: clamp(4rem, 9vw, 7rem) auto;
  overflow: hidden;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.newsletter-media { overflow: hidden; background: var(--sand); }
.newsletter-media img { width: 100%; height: 100%; min-height: 15rem; object-fit: cover; }
.newsletter-copy { padding: clamp(1.85rem, 4vw, 3.25rem); }
.newsletter-copy h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); }
.newsletter-copy > p { margin-top: 1rem; max-width: 44ch; color: var(--muted); font-size: .95rem; }

#newsletter-form { margin-top: 1.85rem; }
#newsletter-form label { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); }
.field-row { display: flex; gap: .55rem; margin-top: .55rem; }
.field-row input { flex: 1; min-width: 0; }
#newsletter-form button[type="submit"] {
  padding: .9rem 1.5rem;
  border-radius: var(--radius);
  background: var(--moss);
  color: var(--porcelain);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color .3s var(--ease);
}
#newsletter-form button[type="submit"]:hover { background: var(--moss-deep); }
#newsletter-status { margin-top: .85rem; font-size: .8rem; color: var(--muted); }
#newsletter-status.ok { color: var(--moss); font-weight: 600; }

input[type="email"], input[type="search"] {
  padding: .88rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .95rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
input:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px rgba(39, 56, 43, .16); }
input:focus-visible { outline: none; }

/* ---------- footer ---------- */

.footer {
  padding: clamp(3.5rem, 7vw, 5rem) var(--pad-full) 0;
  background: var(--ink);
  color: var(--paper);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, .9fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}
.footer-brand {
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--paper);
}
.footer-brand-col p {
  margin-top: 1rem;
  max-width: 30ch;
  font-size: .88rem;
  color: rgba(247, 245, 239, .68);
  line-height: 1.6;
}
.footer nav h3 {
  font-family: var(--body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .01em;
  margin-bottom: .95rem;
  color: var(--paper);
}
.footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; }
.footer nav a, .footer nav button {
  padding: .3rem 0;
  font-size: .88rem;
  color: rgba(247, 245, 239, .72);
  text-align: left;
  text-decoration: none;
  transition: color .25s var(--ease);
}
.footer nav a:hover, .footer nav button:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: .25em;
}






.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-block: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .78rem;
  color: rgba(247, 245, 239, .55);
}
.footer-bottom a {
  color: rgba(247, 245, 239, .75);
  text-decoration: none;
}
.footer-bottom a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: .25em;
}

/* ---------- dialogs ---------- */

dialog {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}
dialog::backdrop { background: rgba(24, 21, 19, .52); }
dialog[open]::backdrop { animation: fade .35s var(--ease) both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 { font-size: 1.4rem; font-weight: 400; }
.dialog-head button {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  transition: background-color .25s var(--ease);
}
.dialog-head button:hover { background: var(--sand); }

.dialog-note {
  padding: 1rem 1.5rem 0;
  font-size: .84rem;
  color: var(--muted);
}

.side-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(29rem, 100%);
  height: 100%;
  max-height: 100%;
  background: var(--paper);
  border-left: 1px solid var(--line);
}
/* display lives on [open] only — a base display would beat the UA
   `dialog:not([open]){display:none}` and render closed dialogs. */
.side-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: slide-in .45s var(--ease) both;
}
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }

#menu-dialog nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem;
}
#menu-dialog nav a {
  padding: .95rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: -.01em;
  text-decoration: none;
}
#menu-dialog nav a:hover { color: var(--moss); }
.side-note { margin-top: auto; padding: 1.5rem; font-size: .82rem; color: var(--muted); }

.search-dialog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  margin: 0;
  width: 100%;
  max-width: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 34px 60px -34px rgba(24, 21, 19, .55);
}
.search-dialog[open] { animation: drop .4s var(--ease) both; }
@keyframes drop { from { transform: translateY(-100%); } to { transform: none; } }
#search-form {
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
  padding: 1.25rem clamp(1.25rem, 5vw, 2rem) 2.25rem;
}
#search-form label { font-size: .78rem; font-weight: 600; color: var(--muted); }
#search-form > div { display: flex; gap: .55rem; margin-top: .6rem; }
#search-form input { flex: 1; min-width: 0; font-size: 1.05rem; }

.account-dialog, .info-dialog, .quick-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(34rem, calc(100% - 2rem));
  height: fit-content;
  max-height: calc(100% - 3rem);
  overflow: hidden auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.account-dialog[open], .info-dialog[open], .quick-dialog[open] { animation: pop .35s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }

#account-form { padding: 1.25rem 1.5rem 1.5rem; }
#account-form label { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); }
#account-form input { width: 100%; margin: .5rem 0 1.1rem; }
#account-form .button { width: 100%; }
#account-status { margin-top: 1rem; font-size: .82rem; color: var(--muted); }
#account-status:not(:empty) {
  padding: .8rem .9rem;
  background: var(--sand);
  border-radius: var(--radius-sm);
}

.info-body { padding: 1.25rem 1.5rem 1.75rem; }
.info-body p { font-size: .95rem; line-height: 1.7; max-width: 62ch; }

.quick-dialog { width: min(60rem, calc(100% - 2rem)); }
.floating-close {
  position: absolute;
  top: .85rem;
  right: .85rem;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--porcelain) 92%, transparent);
  font-size: 1.1rem;
  transition: background-color .25s var(--ease);
}
.floating-close:hover { background: var(--sand); }

.quick-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.quick-layout > img { width: 100%; height: 100%; min-height: 18rem; object-fit: cover; background: var(--sand); }
.quick-body { padding: clamp(1.5rem, 3.5vw, 2.5rem); }
.quick-body > small { font-size: .76rem; font-weight: 600; color: var(--muted); }
.quick-body h2 { margin-top: .4rem; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.quick-body .product-rating { margin-top: .7rem; }
.quick-body .desc { margin-top: 1.1rem; font-size: .95rem; max-width: 54ch; }
.quick-body .inci {
  margin-top: 1rem;
  padding: .55rem 0 .55rem .95rem;
  border-left: 2px solid var(--sand);
  font-size: .82rem;
  color: var(--muted);
}
.quick-body > div > small { font-size: .76rem; font-weight: 600; color: var(--muted); }

.size-row { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .55rem; }
.size-row button {
  display: grid;
  gap: .2rem;
  min-width: 7.75rem;
  padding: .7rem .95rem;
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  text-align: left;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.size-row button small { font-size: .74rem; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.size-row button b { font-weight: 700; color: var(--amber); }
.size-row button:hover { border-color: var(--muted); }
.size-row button.is-selected { background: var(--paper); border-color: var(--moss); box-shadow: inset 0 0 0 1px var(--moss); }

.quick-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .75rem; margin: 1.1rem 0; }
.quick-option-group { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.quick-option-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.quick-select-wrap { position: relative; display: flex; align-items: center; }
.quick-select-wrap::after { content: ""; position: absolute; right: 14px; pointer-events: none; width: 7px; height: 7px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg) translateY(-2px); opacity: .7; }
.quick-option-select { width: 100%; min-height: 42px; padding: .5rem 2rem .5rem .75rem; font-family: var(--body); font-size: .88rem; font-weight: 500; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); appearance: none; -webkit-appearance: none; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease; }
.quick-option-select:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 2px color-mix(in srgb, var(--moss) 18%, transparent); }

.quick-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.quick-buy .product-price {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

/* ---------- cart ---------- */

#cart-content { flex: 1; overflow-y: auto; padding: 1.35rem 1.5rem 1.5rem; }
.cart-items { display: grid; gap: 1.35rem; }
.cart-item {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}
.cart-item > img { width: 4.5rem; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); background: var(--sand); }
.cart-item h3 { font-size: 1.02rem; font-weight: 400; }
.ci-meta { margin-top: .2rem; font-size: .76rem; color: var(--muted); }
.qty {
  display: inline-flex;
  align-items: center;
  margin-top: .7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty button { width: 1.85rem; height: 1.85rem; font-size: .95rem; line-height: 1; color: var(--muted); transition: background-color .2s, color .2s; }
.qty button:hover { background: var(--sand); color: var(--ink); }
.qty span { min-width: 2rem; text-align: center; font-size: .84rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ci-right { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.ci-right strong { font-size: .95rem; font-variant-numeric: tabular-nums; }
.ci-remove { font-size: .74rem; color: var(--muted); text-decoration: underline; text-underline-offset: .25em; }
.ci-remove:hover { color: var(--amber); }

.cart-empty p {
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1.35;
  letter-spacing: -.01em;
  max-width: 24ch;
}
.cart-empty .button { margin-top: 1.5rem; }

.cart-foot {
  position: sticky;
  bottom: 0;
  margin-top: 1.75rem;
  padding: 1.15rem 0 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.02rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cart-note { margin: .55rem 0 1.1rem; font-size: .8rem; color: var(--muted); }
.cart-foot .button { width: 100%; }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.75rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: .6rem;
  max-width: calc(100% - 2rem);
  padding: .85rem 1.2rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-size: .88rem;
  font-weight: 500;
  box-shadow: 0 22px 44px -22px rgba(24, 21, 19, .8);
  opacity: 0;
  transform: translate(-50%, .8rem);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .icon { color: var(--amber-lift); }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 4rem); }
  .hero h1 { max-width: 18ch; }
  .hero-visual { max-width: 34rem; }
  .formula-card { position: relative; left: auto; bottom: auto; width: auto; margin: -3.5rem 1.25rem 0; }

  .spotlight, .science, .newsletter { grid-template-columns: minmax(0, 1fr); }
  .spotlight-media img, .newsletter-media img { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
  .science-media { max-width: 34rem; }
  .quick-layout { grid-template-columns: minmax(0, 1fr); }
  .quick-layout > img { aspect-ratio: 16 / 10; height: auto; min-height: 0; }

  .review-grid { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .review-lead,
  .review-grid > article:nth-of-type(2),
  .review-grid > article:nth-of-type(3),
  .review-summary { grid-column: 1 / -1; grid-row: auto; }

  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-button { display: grid; }
  .site-header { grid-template-columns: auto minmax(0, 1fr) auto; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; }
  .trust-strip article:nth-child(3) { border-left: 0; padding-left: 0; }
  .ritual-steps { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .ritual-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .ritual-banner img { aspect-ratio: 16 / 10; }
}

@media (max-width: 760px) {
  .concern-item {
    grid-template-columns: 4.5rem minmax(0, 1fr) 2.25rem;
    grid-template-areas: "thumb cat go" "thumb title go";
    row-gap: .3rem;
    padding-block: 1.25rem;
  }
  .section-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .head-note { justify-self: start; text-align: left; }
  .product-tabs { gap: 1.1rem; }
  .press { justify-content: flex-start; }
  .newsletter { width: calc(100% - var(--gutter)); }
  .hero-actions { gap: 1.1rem; }
  .hero-actions .button { flex: 1 1 auto; }
}

@media (max-width: 560px) {
  .trust-strip { grid-template-columns: minmax(0, 1fr); }
  .trust-strip article + article { border-left: 0; padding-left: 0; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .ritual-banner img { aspect-ratio: 4 / 3; }
  .field-row { flex-direction: column; }
  .formula-card { margin-inline: .75rem; }
  .hero-visual::before { display: none; }
  .review-summary { padding: 1.25rem; }
}

@media (max-width: 520px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .product-info { grid-template-columns: minmax(0, 1fr); }
  .product-info h3 { grid-area: 2 / 1 / 3 / 2; }
  .product-info .product-rating { grid-area: 3 / 1 / 4 / 2; }
  .product-info .product-price { grid-area: 4 / 1 / 5 / 2; justify-self: start; margin-top: .25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* ---- Lativa Custom Content Page & Rich Text ---- */
.page-hero { padding: clamp(2.2rem, 4.5vw, 3.5rem) 0 clamp(1.8rem, 3.5vw, 2.75rem); background: var(--sand, #ebe6dc); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-family: var(--display, "Newsreader", serif); font-size: clamp(2.2rem, 4.2vw, 3.2rem); font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink, #181513); margin-top: 0.5rem; }
.page-content-wrap { display: block; width: 100%; max-width: var(--maxw, 1150px); margin-inline: auto; padding: clamp(3.5rem, 6.5vw, 6rem) clamp(1.5rem, 4vw, 3rem) clamp(4.5rem, 8vw, 7rem); background: transparent; box-sizing: border-box; }
.page-content, .page-content.rte, .page-content.prose, .rte, .prose { max-width: 820px; margin-inline: auto; font-family: var(--body, "Manrope", sans-serif); font-size: 16.5px; line-height: 1.85; color: var(--ink, #181513); letter-spacing: -0.005em; word-break: break-word; }
.page-aside { display: none !important; }
.page-content > *:first-child, .rte > *:first-child, .prose > *:first-child { margin-top: 0 !important; padding-top: 0 !important; }
.page-content > *:last-child, .rte > *:last-child, .prose > *:last-child { margin-bottom: 0 !important; }
.page-content h1, .rte h1, .prose h1 { font-family: var(--display, serif); font-size: clamp(2rem, 3.5vw, 2.75rem); line-height: 1.2; font-weight: 400; color: var(--ink, #181513); letter-spacing: -0.02em; margin-top: clamp(2rem, 4vw, 3rem); margin-bottom: 1.25rem; }
.page-content h2, .rte h2, .prose h2 { font-family: var(--display, serif); font-size: clamp(1.45rem, 2.6vw, 1.95rem); line-height: 1.25; font-weight: 400; color: var(--ink, #181513); letter-spacing: -0.015em; margin-top: clamp(2rem, 3.8vw, 2.75rem); margin-bottom: 0.95rem; }
.page-content h3, .rte h3, .prose h3 { font-family: var(--display, serif); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.35; font-weight: 500; color: var(--ink, #181513); letter-spacing: -0.01em; margin-top: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 0.75rem; }
.page-content h4, .rte h4, .prose h4 { font-family: var(--body, sans-serif); font-size: 1.05rem; line-height: 1.45; font-weight: 700; color: var(--ink, #181513); margin-top: 1.5rem; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.page-content p, .rte p, .prose p { margin-top: 0; margin-bottom: 1.5rem; line-height: 1.85; }
.page-content ul, .page-content ol, .rte ul, .rte ol, .prose ul, .prose ol { margin-top: 0; margin-bottom: 1.75rem; padding-left: 1.75rem; }
.page-content li, .rte li, .prose li { margin-bottom: 0.65rem; line-height: 1.8; }
.page-content li:last-child, .rte li:last-child, .prose li:last-child { margin-bottom: 0; }
.page-content blockquote, .rte blockquote, .prose blockquote { margin: 2rem 0; padding: 1.25rem 1.75rem; border-left: 3px solid var(--amber, #c2673a); background: var(--paper, #f7f5ef); border-radius: 0 var(--radius, 6px) var(--radius, 6px) 0; font-family: var(--display, serif); font-style: italic; font-size: 1.12rem; line-height: 1.65; color: var(--moss, #27382b); }
.page-content blockquote p:last-child, .rte blockquote p:last-child, .prose blockquote p:last-child { margin-bottom: 0; }
.page-content img, .rte img, .prose img { max-width: 100%; height: auto; border-radius: var(--radius, 6px); margin-block: 1.75rem; display: block; }
.page-content hr, .rte hr, .prose hr { border: 0; height: 1px; background: var(--line, rgba(24, 21, 19, .13)); margin: 2.5rem 0; }
.page-content a, .rte a, .prose a { color: var(--amber, #c2673a); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s ease; }
.page-content a:hover, .rte a:hover, .prose a:hover { color: var(--moss, #27382b); }
.page-content table, .rte table, .prose table { width: 100%; border-collapse: collapse; margin-block: 2rem; font-size: 0.95rem; }
.page-content th, .page-content td, .rte th, .rte td, .prose th, .prose td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line, rgba(24, 21, 19, .13)); text-align: left; }
.page-content th, .rte th, .prose th { font-family: var(--display, serif); font-weight: 600; color: var(--ink, #181513); border-bottom: 2px solid var(--line, rgba(24, 21, 19, .25)); }
.page-aside .aside-block { background: var(--paper, #f7f5ef); border: 1px solid var(--line, rgba(24, 21, 19, .13)); border-radius: var(--radius, 6px); padding: 24px; position: sticky; top: 110px; }
.page-aside .aside-block h2 { font-family: var(--display, serif); font-size: 1.35rem; line-height: 1.25; margin-bottom: 0.75rem; color: var(--ink, #181513); }
@media (max-width: 900px) { .page-content-wrap { grid-template-columns: 1fr; gap: 32px; } }



.page-hero { text-align: center; }
.page-hero .container { display: flex; flex-direction: column; align-items: center; text-align: center; }
.page-hero .page-breadcrumb, .page-hero .breadcrumb, .page-hero .breadcrumbs { display: flex; justify-content: center; align-items: center; text-align: center; margin-inline: auto; }
.page-hero h1 { text-align: center; margin-inline: auto; }
.page-hero .section-note { text-align: center; margin-inline: auto; }


/* ---------- Lativa Before & After Section ---------- */
.lativa-before-after {
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
}
.lativa-ba__folio-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.lativa-ba__batch-tag {
  background: var(--sand);
  color: var(--ink);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.7rem;
}
.lativa-ba__eyebrow {
  display: block;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}
.lativa-ba__header h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1rem;
}
.lativa-ba__lead {
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

/* Tabs */
.lativa-ba__tabs-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
  overflow-x: auto;
}
.lativa-ba__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--porcelain);
  color: var(--muted);
  border-radius: var(--radius-sm);
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.lativa-ba__tab:hover {
  background: var(--sand);
  color: var(--ink);
}
.lativa-ba__tab.is-active {
  background: var(--moss);
  color: var(--porcelain);
  border-color: var(--moss);
}
.lativa-ba__tab-num {
  font-family: var(--display);
  font-style: italic;
  opacity: 0.8;
}

/* Cases */
.lativa-ba__case {
  display: block;
}
.lativa-ba__case + .lativa-ba__case {
  margin-top: clamp(3.5rem, 6vw, 5.5rem);
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  border-top: 1px solid var(--line);
}
.lativa-ba__case-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.lativa-ba__case-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--amber);
}
.lativa-ba__case-tag {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Grid */
.lativa-ba__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

/* Slider */
.lativa-ba__slider-wrap {
  position: relative;
  border: 1px solid var(--line);
  background: var(--porcelain);
  padding: 0.75rem;
  border-radius: var(--radius);
}
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #ebe6dc;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.ba-slider__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ba-slider__layer--after {
  z-index: 1;
}
.ba-slider__layer--before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}
.ba-slider__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lativa-ba__fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lativa-ba__fallback-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-slider__badge {
  position: absolute;
  top: 1rem;
  z-index: 4;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  border: 1px solid rgba(24, 21, 19, 0.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ba-slider__badge--before {
  left: 1rem;
  background: rgba(247, 245, 239, 0.95);
  color: var(--amber);
}
.ba-slider__badge--after {
  right: 1rem;
  background: rgba(39, 56, 43, 0.92);
  color: var(--porcelain);
}
.ba-slider__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  background: var(--moss);
  z-index: 5;
  transform: translateX(-50%);
  pointer-events: none;
}
.ba-slider__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--moss);
  color: var(--porcelain);
  border: 2px solid var(--porcelain);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(24, 21, 19, 0.25);
}
.ba-slider__handle .icon {
  width: 18px;
  height: 18px;
}
.ba-slider__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 10;
  -webkit-appearance: none;
  appearance: none;
}
.ba-slider__range:focus-visible ~ .ba-slider__divider .ba-slider__handle {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}
.lativa-ba__figure-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.85rem;
  padding-inline: 0.35rem;
  font-family: var(--body);
  font-size: 0.78rem;
  color: var(--muted);
}
.lativa-ba__plate-tag {
  font-family: var(--display);
  font-style: italic;
  color: var(--ink);
}

/* Narrative */
.lativa-ba__concern-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--sand);
  color: var(--moss-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}
.lativa-ba__case-heading {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 1rem;
}
.lativa-ba__case-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

/* Stats Ledger */
.lativa-ba__stats-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.25rem;
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 1.75rem;
}
.lativa-ba__stat-item {
  display: flex;
  flex-direction: column;
}
.lativa-ba__stat-value {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 600;
  color: var(--amber);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.lativa-ba__stat-label {
  font-family: var(--body);
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}

/* Quote */
.lativa-ba__quote {
  border-left: 2px solid var(--moss);
  padding-left: 1.25rem;
  margin-bottom: 1.75rem;
}
.lativa-ba__quote p {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.lativa-ba__quote cite {
  font-family: var(--body);
  font-style: normal;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Recommendation */
.lativa-ba__recommendation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.1rem 1.4rem;
  background: var(--sand);
  border-radius: var(--radius-sm);
}
.lativa-ba__rec-info {
  display: flex;
  flex-direction: column;
}
.lativa-ba__rec-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}
.lativa-ba__rec-title {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 500;
}
.lativa-ba__disclaimer {
  margin-top: 2.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 900px) {
  .lativa-ba__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .lativa-ba__stats-ledger {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 1rem;
  }
  .lativa-ba__recommendation {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  .lativa-ba__stats-ledger {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .lativa-ba__folio-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
