/* sections — everything between the hero and the footer, top to bottom */

/* ---- wellness ---- */
#wellness-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 62% 0%;
}
@media (min-width: 1024px) {
  /* crop matched to the comp: glasses at ~64% across / 18% down, pillar on the left.
     8.94vw is the offset that keeps that point fixed while the width scales */
  #wellness-bg {
    inset: auto;
    left: -.66%;
    top: calc(18% - 8.94vw);
    width: 113.3%;
    height: max(58.8vw, calc(82% + 8.94vw));
    object-position: left top;
  }
}
.wellness__shade {
  background:
    linear-gradient(90deg, rgba(18,17,16,.55) 0%, rgba(18,17,16,.28) 42%, rgba(18,17,16,.08) 70%, rgba(18,17,16,.15) 100%),
    linear-gradient(180deg, rgba(18,17,16,.1) 0%, transparent 40%, rgba(18,17,16,.35) 100%);
}


/* ---- quality, preserved ---- */
.preserved__glow {
  z-index: -1;
  height: 900px;
  background: radial-gradient(circle 700px at calc(50% - 560px) 60px, rgba(var(--warm),.78) 0%, rgba(var(--warm),.46) 34%, rgba(var(--warm),.23) 57%, rgba(var(--warm),.04) 91%, rgba(var(--warm),0) 100%);
}
.preserved__stage { height: 74vh; min-height: 560px; }

/* callouts on the vial, positioned from vial.js */
#vial-labels { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
#vial-labels svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#vial-labels path,
#vial-labels circle { opacity: 0; }
.vial-labels__tag {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  text-align: right;
  opacity: 0;
  will-change: transform, opacity;
}
.vial-labels__tag b { display: block; font-weight: 500; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.vial-labels__tag span { display: block; margin-top: 4px; font-size: 12px; color: rgba(255,255,255,.38); }


/* ---- lab to life steps: images come in 1 > 2 > 3 > 4 ---- */
.js [data-step] [data-ph] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.1s ease, transform 1.2s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-step] [data-ph].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-step] [data-ph] { opacity: 1; transform: none; transition: none; }
}


/* ---- stats ---- */
.stat__num,
.stat__plus,
.stat__label {
  font-family: 'Milliard', 'Montserrat', sans-serif;
  font-weight: 100;
  color: rgba(255,255,255,.5);
}
.stat__num { font-size: 3.6rem; line-height: .9; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat__plus { font-size: 1.9rem; line-height: 1; margin: -.1rem .9rem 0 .25rem; }
.stat__label { font-size: 1.5rem; line-height: 1.05; padding-top: .15rem; }
@media (min-width: 768px) {
  .stat__num { font-size: 4rem; }
  .stat__plus { margin-right: .6rem; }
  .stat__label { font-size: 1.55rem; padding-top: .25rem; white-space: nowrap; }
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
/* -50% of the doubled track, minus half the gap */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 28px)); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

.trust {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.trust svg { width: 24px; height: 24px; color: rgba(255,255,255,.6); }


/* ---- featured compounds glow (cards themselves are in cards.css) ---- */
.featured__glow {
  top: -800px;
  background: radial-gradient(circle 700px at calc(50% - 486px) 784px, rgba(var(--warm),.78) 0%, rgba(var(--warm),.46) 34%, rgba(var(--warm),.23) 57%, rgba(var(--warm),.04) 91%, rgba(var(--warm),0) 100%);
}


/* ---- protocols ---- */
.protocol__media {
  height: 62%;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
}
.protocol__fade { background: linear-gradient(180deg, rgba(20,19,18,.05) 0%, rgba(20,19,18,.25) 45%, rgba(20,19,18,.6) 100%); }

.protocol__list li { display: flex; align-items: center; gap: 12px; }
.protocol__list li::before { content: ''; width: 3px; height: 3px; border-radius: 9999px; background: rgba(255,255,255,.7); }

.protocol__btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  border-radius: 10px;
  font-size: 13px;
  letter-spacing: .01em;
  color: rgba(255,255,255,.5);
  background: rgba(255,255,255,0);
  border: 1px solid rgba(255,255,255,0);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transform: translateY(2px);
  transition: transform .9s var(--ease-out), color .8s ease, background-color .8s ease, border-color .9s ease, box-shadow 1s ease;
}
.protocol:hover .protocol__btn,
.protocol__btn:focus-visible {
  transform: translateY(-1px);
  color: rgba(255,255,255,.92);
  background: rgba(28,27,25,.4);
  border-color: rgba(255,255,255,.11);
  box-shadow: 0 8px 18px -10px rgba(0,0,0,.45);
}
.protocol .protocol__btn:hover { background: rgba(36,34,32,.48); }
@media (hover: none) {
  .protocol .protocol__btn {
    transform: none;
    color: #fff;
    background: rgba(28,27,25,.4);
    border-color: rgba(255,255,255,.11);
    box-shadow: 0 8px 18px -10px rgba(0,0,0,.45);
  }
}


/* ---- capabilities ---- */
#cap-glow,
#cap-pen {
  top: 50%;
  left: 41%;
  transform: translate(-50%, -50%);
}
#cap-glow {
  width: 900px;
  height: 900px;
  max-width: 75vw;
  max-height: 75vw;
  background: radial-gradient(circle at center, rgba(162,151,138,.38) 0%, rgba(162,151,138,.18) 32%, rgba(162,151,138,.06) 55%, rgba(162,151,138,0) 70%);
}
#cap-pen {
  width: 512px;
  max-width: 42vw;
  will-change: transform;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.cap-pen__state { opacity: 0; transition: opacity .45s ease; }


/* ---- archive ---- */
.archive__glow {
  z-index: -1;
  background: radial-gradient(circle 420px at calc(50% + 330px) 50%, rgba(var(--warm),.42) 0%, rgba(var(--warm),.2) 32%, rgba(var(--warm),.06) 58%, rgba(var(--warm),0) 74%);
}

.archive__search { transition: box-shadow .25s ease, background-color .25s ease; }
.archive__search:focus-within { box-shadow: 0 0 0 1.5px rgba(255,255,255,.45) !important; background-color: rgba(255,255,255,.1) !important; }
.archive__search input:focus,
.archive__search input:focus-visible { outline: none; box-shadow: none; }

/* white pill that slides under the active chip, moved in sections.js */
.chips__pill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-radius: 9999px;
  background: #fff;
  z-index: 0;
  pointer-events: none;
  transition: transform .55s var(--ease-out), width .55s var(--ease-out), height .55s var(--ease-out), opacity .3s ease;
}
.chips .chip { position: relative; z-index: 1; color: rgba(255,255,255,.7); transition: color .45s ease, background-color .25s ease !important; }
.chips .chip:hover { color: #fff; }
.chips .chip.is-active,
.chips .chip.is-active:hover { color: #0a0a0a; }
