/* ============================================================================
   testing/explore · xp.css · the six tests' Explore pages

   /testing/comprehensive-genomic/, carrier-screening/, newborn-screening/,
   sports-performance/, gut-microbiome/, oral-microbiome/ (fragments named
   explore.html). The layout follows the site's own pages (testing/genetic for the bar, the
   two tone headings and the ink sections).

   Scoped to `.xp` on <body>. One page sheet for six pages: a test differs
   only by its accent (`.xp-cg` … `.xp-oh` on <main>'s first div).

   THE IDEA. The kit sits in the hero like an object on a lab bench; below it
   the page alternates paper and ink, and every number on it is set large and
   counts in once, because the numbers are the argument.
   ========================================================================== */

.xp {
  --x-ink:    #0a1430;
  --x-ink-2:  #111d42;
  --x-navy:   #0d1b4c;
  --x-paper:  #ffffff;
  --x-sunk:   #f5f5f7;
  --x-line:   rgba(13, 27, 76, .1);
  --x-line-d: rgba(255, 255, 255, .14);
  --x-body:   #4a4a4f;
  --x-body-d: rgba(255, 255, 255, .74);
  --x-ease:   cubic-bezier(.16, 1, .3, 1);
  --x-r:      22px;
  --x-gut:    var(--ph-margin);
  /* the test's accent, set per page below */
  --x-acc:    #203a85;
  --x-acc-lit:#93a9ff;
  --x-acc-wash: color-mix(in srgb, var(--x-acc) 9%, #fff);
  background: var(--x-paper);
  color: var(--ph-text-1);
}
.xp-cg { --x-acc: #13834a; --x-acc-lit: #6fdc9f; }
/* Small headings (eyebrows, step numbers) are one blue on all six pages, not
   each kit's colour (comprehensive genomic's rule for every test); on ink they
   take the same family's light step. */
.xp .xp-page .xp-eyebrow, .xp .xp-page .xp-step .xp-step-n { color: var(--phenome-blue-400, #435ba1); }
.xp .xp-page .is-ink .xp-eyebrow { color: #fff; }
.xp-cs { --x-acc: #2b6faf; --x-acc-lit: #8cc4ff; }
.xp-ns { --x-acc: #b0476b; --x-acc-lit: #ffa3bf; }
.xp-sp { --x-acc: #b8501b; --x-acc-lit: #ffb184; }
.xp-gh { --x-acc: #1158b8; --x-acc-lit: #7fbcff; }
.xp-oh { --x-acc: #0b7676; --x-acc-lit: #6fe0d8; }
.xp-page { --x-acc-wash: color-mix(in srgb, var(--x-acc) 9%, #fff); }

.xp .xp-wrap {
  width: 100%; max-width: calc(var(--ph-content-max) + var(--x-gut) * 2);
  margin-inline: auto; padding-inline: var(--x-gut); box-sizing: border-box;
}
.xp .xp-sec { padding-block: clamp(72px, 9vw, 128px); }
.xp .xp-sec.is-sunk { background: var(--x-sunk); }
.xp .xp-sec.is-tight { padding-top: 0; }

/* ---------------------------------------------------------------------------
   1 · TYPE · one family, 400 and 600, 15px floor
   ------------------------------------------------------------------------ */
.xp .xp-eyebrow {
  margin: 0 0 14px; font-size: 17px; line-height: 1.3; font-weight: 600;
  letter-spacing: -.005em; color: var(--x-acc);
}
.xp .is-ink .xp-eyebrow { color: var(--x-acc-lit); }
.xp .xp-h2 {
  margin: 0; max-width: 22ch; font-size: clamp(34px, 4.2vw, 60px); line-height: 1.04;
  font-weight: 600; letter-spacing: -.028em; color: var(--x-navy); text-wrap: balance;
}
.xp .xp-h2.is-wide { max-width: 30ch; }
/* the coloured words in headings are one blue on all six pages, not the kit's
   colour; on ink, the site's own blue for dark grounds */
.xp .xp-h2 em, .xp .xp-title em { font-style: normal; color: var(--phenome-blue-400, #435ba1); }
.xp .is-ink .xp-h2 { color: #fff; }
.xp .is-ink .xp-h2 em { color: var(--ph-on-brand, #8fb8ea); }
.xp .xp-lede {
  margin: 22px 0 0; max-width: 60ch; font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55; color: var(--x-body);
}
.xp .is-ink .xp-lede { color: var(--x-body-d); }
.xp .xp-head { margin-bottom: clamp(40px, 5vw, 64px); }
.xp .xp-head.is-centre { text-align: center; }
.xp .xp-head.is-centre .xp-h2, .xp .xp-head.is-centre .xp-lede { margin-inline: auto; }
.xp h3 { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; color: var(--x-navy); }
.xp p { text-wrap: pretty; }

/* ---------------------------------------------------------------------------
   2 · HERO · testing/microbiome's first screen: one navy card (the same
   radial ground, the aurora film under a navy scrim, rounded at the foot),
   the copy in white on the left, the kit lit in the test's colour on the right
   ------------------------------------------------------------------------ */
.xp .xp-hero { position: relative; background: #fff; }
.xp .xp-hero-card {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(640px, calc(100svh - var(--ph-nav-h, 64px)), 880px);
  display: flex; align-items: stretch;
  border-radius: 0 0 clamp(16px, 1.6vw, 26px) clamp(16px, 1.6vw, 26px);
  color: #fff;
  background: radial-gradient(70% 140% at 12% 50%, #1d3d98 0%, #0a1e57 60%, #071641 100%);
}
.xp .xp-hero-film { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.xp .xp-hero-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 140% at 12% 50%, rgba(29, 61, 152, .55) 0%, rgba(10, 30, 87, .62) 60%, rgba(7, 22, 65, .78) 100%);
}
.xp .xp-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 80px); align-items: center;
  padding-block: clamp(56px, 7vw, 104px) clamp(40px, 4.4vw, 64px);
}
.xp .xp-hero .xp-eyebrow { color: rgba(255, 255, 255, .72); }
.xp .xp-title {
  margin: 0; font-size: clamp(42px, 5.2vw, 76px); line-height: 1.03; font-weight: 600;
  letter-spacing: -.032em; color: #fff; text-wrap: balance;
}
.xp .xp-title > span { display: inline; }
.xp .xp-hero .xp-title em { color: var(--ph-on-brand, #8fb8ea); }
.xp .xp-hero .xp-lede { color: rgba(255, 255, 255, .84); max-width: 50ch; }
.xp .xp-facts {
  display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 30px 0 0; padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.xp .xp-facts dt { font-size: 15px; line-height: 1.3; color: rgba(255, 255, 255, .62); }
.xp .xp-facts dd { margin: 4px 0 0; font-size: 17px; line-height: 1.3; font-weight: 600; color: #fff; }
.xp .xp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
/* on navy the primary control is white, the second an outline, as on testing/microbiome */
.xp .xp-hero .xp-actions .btn { background: #fff; color: #0a1e57 !important; }
.xp .xp-hero .xp-actions .btn:hover { background: rgba(255, 255, 255, .88); }
.xp .xp-quiz {
  display: inline-flex; align-items: center; height: var(--ph-btn-h, 44px); padding-inline: 22px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .42); font-size: 17px; font-weight: 400; color: #fff; text-decoration: none;
  transition: background .3s, border-color .3s;
}
.xp .xp-quiz:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
/* the figures, one row with hairlines between, as the reference's dna-figs */
.xp .xp-hero-stats { display: flex; flex-wrap: nowrap; margin: 44px 0 0; padding: 0; list-style: none; }
.xp .xp-hero-stats li { flex: 0 1 auto; padding: 0 clamp(16px, 2vw, 32px); border-left: 1px solid rgba(255, 255, 255, .18); }
.xp .xp-hero-stats li:first-child { padding-left: 0; border-left: 0; }
.xp .xp-hero-stats b { display: block; font-size: clamp(32px, 3vw, 44px); line-height: 1.05; font-weight: 600; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.xp .xp-hero-stats span { display: block; max-width: 22ch; margin-top: 8px; font-size: 17px; line-height: 1.35; color: rgba(255, 255, 255, .72); }

.xp .xp-kit { position: relative; margin: 0; aspect-ratio: 1; display: grid; place-items: center; perspective: 1200px; }
.xp .xp-kit::before {           /* the kit's own light, in the test's colour */
  content: ""; position: absolute; inset: 8% 4% 6%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--x-acc-lit) 38%, transparent), transparent);
  filter: blur(12px);
}
.xp .xp-kit::after {            /* the shadow it casts */
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 21%; height: 6%;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 6, 24, .55), transparent);
  filter: blur(6px); animation: xp-shadow 7s ease-in-out infinite;
}
.xp .xp-kit img {
  position: relative; z-index: 1; width: 86%; height: auto;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--x-ease);
  animation: xp-float 7s ease-in-out infinite; filter: drop-shadow(0 30px 44px rgba(0, 6, 24, .45));
}
/* off screen the float holds still (xp.js idle) */
.xp .is-off .xp-kit img, .xp .is-off .xp-kit::after { animation-play-state: paused; }
@keyframes xp-float { 50% { translate: 0 -12px; } }
@keyframes xp-shadow { 50% { transform: scaleX(.88); opacity: .7; } }

/* ---------------------------------------------------------------------------
   3 · TRUST BAR · the partners, one still line
   ------------------------------------------------------------------------ */
.xp .xp-trust { border-bottom: 1px solid var(--x-line); background: #fff; }
.xp .xp-trust ul {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px clamp(32px, 6vw, 96px);
  margin: 0; padding: 28px 0; list-style: none;
}
.xp .xp-trust li { font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: var(--ph-tertiary); white-space: nowrap; }

/* ---------------------------------------------------------------------------
   4 · HOW IT WORKS · four steps on a line that fills as you read
   ------------------------------------------------------------------------ */
.xp .xp-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.xp .xp-steps::before, .xp .xp-steps::after {
  content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; border-radius: 2px; background: var(--x-line);
}
.xp .xp-steps::after { background: var(--x-acc); transform: scaleX(var(--p, 0)); transform-origin: left center; transition: transform .2s linear; }
.xp .xp-step { position: relative; z-index: 1; }
.xp .xp-step-ic {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: #fff; border: 1px solid var(--x-line); color: var(--x-navy);
  transition: background .4s, color .4s, border-color .4s;
}
.xp .xp-step.is-lit .xp-step-ic { background: var(--x-acc); border-color: var(--x-acc); color: #fff; }
.xp .xp-step-ic svg { width: 24px; height: 24px; }
.xp .xp-step-n { margin: 22px 0 6px; font-size: 15px; font-weight: 600; color: var(--x-acc); }
.xp .xp-step p { margin: 8px 0 0; font-size: 16px; line-height: 1.5; color: var(--x-body); }

/* `.xp-tl` (all six): the steps above are retired for the NAD+
   page's "Benefits that build over time" — the shared .ph-tl timeline
   (phenome-glass.css; rail fill, stages lighting on scroll and the drifting
   collage are shared.js timelines()). Sizes as nad.css gives them. */
.xp .xp-head.is-centre + .xp-tl { margin-top: 0; }
.xp .xp-tl .ph-tl-step-h { font-size: clamp(19px, 1.5vw, 23px); letter-spacing: -.01em; }
.xp .xp-tl .xp-tl-p { margin: 12px 0 0; max-width: 46ch; font-size: 17px; line-height: 1.6; color: var(--x-body); }
.xp .xp-tl .ph-tl-step:last-child { padding-bottom: 0; }
.xp .xp-tl .ph-tl-big img { object-position: 50% 50%; }
.xp .xp-tl .ph-tl-sm img { object-position: 50% 40%; }
.xp .xp-tl .ph-tl-round img { object-position: 60% 50%; }

.xp .xp-when { margin-top: clamp(56px, 6vw, 80px); }
.xp .xp-when-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(28px, 3vw, 44px); }
/* the buy page's "Read more of your DNA" cards (cg.css .cg-rel-card): a square
   photograph, a navy scrim from the foot, the words centred over it; the line
   opens on hover (always open on touch) */
.xp .xp-when-card {
  position: relative; aspect-ratio: 1; overflow: hidden; isolation: isolate; border-radius: 28px; background: #e9ebef; color: #fff;
}
.xp .xp-when-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.xp .xp-when-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(10, 18, 51, .72) 100%); transition: background .5s ease;
}
.xp .xp-when-copy {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 36px 34px; text-align: center;
  display: grid; grid-template-rows: auto 0fr; transition: grid-template-rows .6s cubic-bezier(.2, .8, .2, 1);
}
.xp .xp-when-card h3 { margin: 0; font-size: clamp(22px, 2.3vw, 32px); font-weight: 600; letter-spacing: -.01em; color: #fff; }
.xp .xp-when-card p {
  margin: 0 auto; padding-top: 12px; max-width: 36ch; min-height: 0; overflow: hidden;
  font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, .92); opacity: 0; transition: opacity .4s ease;
}
@media (hover: hover) {
  .xp .xp-when-card:hover img { transform: scale(1.06); }
  .xp .xp-when-card:hover .xp-when-copy { grid-template-rows: auto 1fr; }
  .xp .xp-when-card:hover p { opacity: 1; }
  .xp .xp-when-card:hover::after { background: linear-gradient(180deg, transparent 25%, rgba(10, 18, 51, .82) 100%); }
}
@media (hover: none) {
  .xp .xp-when-copy { grid-template-rows: auto 1fr; }
  .xp .xp-when-card p { opacity: 1; }
  .xp .xp-when-card::after { background: linear-gradient(180deg, transparent 25%, rgba(10, 18, 51, .82) 100%); }
}
@media (max-width: 600px) { .xp .xp-when-copy { padding: 0 22px 24px; } }

/* ---------------------------------------------------------------------------
   5 · WHY IT MATTERS · websitelab's NAD+ "Feel the difference" panel
   (devices/ring-lab/ndx.css .nd-ess): a photograph edge to edge in a round
   card, drifting against the scroll, the two tone heading top left, and the
   four figures on a glass strip at the foot
   ------------------------------------------------------------------------ */
/* ...and grows to fill the screen, as designexplore's comprehensive genomic
   page did (cg.css "Read it once"): the card arrives inset at .86, reaches the
   full screen as its top meets the window's, holds pinned for 70vh, then
   scrolls on. xp.js writes --ess-s and --ess-rad; the photograph is counter
   scaled so only the crop changes. */
.xp .xp-ess-sec { padding-block: 0; }
.xp .xp-ess-track { position: relative; }
.xp .xp-ess-stage { position: sticky; top: 0; min-height: 100svh; overflow: clip; }
.xp .xp-ess-hold { height: 70vh; }
.xp .xp-ess {
  position: relative; overflow: clip; isolation: isolate; color: #fff;
  width: 100%; min-height: 100svh; box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: clamp(96px, 9vw, 136px) max(var(--x-gut), calc((100% - var(--ph-content-max)) / 2)) clamp(24px, 3vw, 48px);
  border-radius: var(--ess-rad, 0px);
  transform: scale(var(--ess-s, 1)); transform-origin: 50% 50%;
  background: #0a1e57;
}
.xp .xp-ess-bg {
  position: absolute; left: 0; top: -8%; width: 100%; height: 116%; z-index: -2;
  object-fit: cover; object-position: 50% 42%; scale: calc(1 / var(--ess-s, 1));
}
.xp .xp-ess-top { max-width: 34rem; }
.xp .xp-ess-h { margin: 0; font-size: clamp(32px, 3.8vw, 62px); line-height: 1.04; font-weight: 600; letter-spacing: -.028em; color: #fff; text-wrap: balance; }
.xp .xp-ess-h > span { display: block; }
.xp .xp-ess-h .lead { margin-bottom: 14px; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.2; font-weight: 600; letter-spacing: -.02em; color: rgba(255, 255, 255, .78); }
.xp .xp-ess-copy p { margin: 18px 0 0; max-width: 46ch; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .86); }
.xp .xp-ess-panel {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
  margin: 0; padding: clamp(28px, 3vw, 44px) clamp(24px, 3vw, 48px); list-style: none;
  border-radius: 24px; background: rgba(14, 26, 70, .46); border: 1px solid rgba(255, 255, 255, .2);
  transition: background-color .4s ease;
}
/* the blur only once the card has stopped scaling: blurring under a transform
   that changes every scroll frame re-renders the whole backdrop each frame */
.xp .xp-ess.is-full .xp-ess-panel {
  background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
}
@media (max-width: 760px) { .xp .xp-ess .xp-ess-panel { background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%); } }
.xp .xp-ess-panel b { display: block; font-size: clamp(34px, 3.2vw, 48px); line-height: 1; font-weight: 600; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.xp .xp-ess-panel h3 { margin: 22px 0 0; font-size: 19px; line-height: 1.25; font-weight: 600; color: #fff; }
.xp .xp-ess-panel b + h3 { margin-top: 18px; }
.xp .xp-ess-panel li > h3:first-child { margin-top: 0; }
.xp .xp-ess-panel p { margin: 10px 0 0; max-width: 30ch; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .86); }
/* chips (genes, conditions, symptoms): used across the page */
.xp .xp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.xp .xp-chips li {
  padding: 6px 12px; border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: .02em;
  color: var(--x-acc); background: var(--x-acc-wash); font-variant-numeric: tabular-nums;
}
/* sports: each domain names its genes, as glass chips */
.xp .xp-ess-panel .xp-chips { margin-top: 16px; gap: 6px; }
.xp .xp-ess-panel .xp-chips li { padding: 5px 10px; color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); }
.xp .xp-ess-note { margin: -16px 0 0; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .8); }

/* ---------------------------------------------------------------------------
   6 · CARRIER · how inheritance works (a grid you can point at)
   ------------------------------------------------------------------------ */
.xp .xp-inh { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.xp .xp-inh-copy p { margin: 18px 0 0; font-size: 17px; line-height: 1.6; color: var(--x-body); }
.xp .xp-inh-lab { margin: 0 0 16px; font-size: 17px; font-weight: 600; color: var(--x-navy); }
.xp .xp-punnett { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.xp .xp-cell {
  display: flex; align-items: center; justify-content: center; gap: 10px; aspect-ratio: 2.1;
  border-radius: 16px; background: #fff; border: 1px solid var(--x-line); font-size: 17px; font-weight: 600; color: var(--x-navy);
  transition: background .35s, color .35s, opacity .35s, transform .35s var(--x-ease);
}
.xp .xp-cell i { display: inline-flex; gap: 4px; }
.xp .xp-cell i::before, .xp .xp-cell i::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--x-navy); }
.xp .xp-cell[data-k="carrier"] i::after, .xp .xp-cell[data-k="affected"] i::before, .xp .xp-cell[data-k="affected"] i::after { background: var(--x-acc); }
.xp .xp-punnett.has-pick .xp-cell { opacity: .35; }
.xp .xp-punnett.has-pick .xp-cell.is-picked { opacity: 1; background: var(--x-acc-wash); transform: scale(1.02); }
.xp .xp-odds { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.xp .xp-odds button {
  display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 16px 20px; text-align: left;
  border: 1px solid var(--x-line); border-radius: 16px; background: #fff; cursor: pointer; font: inherit;
  transition: border-color .3s, background .3s;
}
.xp .xp-odds button:hover, .xp .xp-odds button[aria-pressed="true"] { border-color: var(--x-acc); background: var(--x-acc-wash); }
.xp .xp-odds b { min-width: 64px; font-size: 22px; font-weight: 600; color: var(--x-acc); }
.xp .xp-odds span { font-size: 16px; color: var(--x-body); }

/* carrier · what it screens for */
.xp .xp-conds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.xp .xp-cond { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 18px; background: #fff; border: 1px solid var(--x-line); }
.xp .xp-cond p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--x-body); }
.xp .xp-cond.is-more { background: var(--x-navy); border-color: var(--x-navy); }
.xp .xp-cond.is-more h3 { font-size: 26px; color: #fff; }
.xp .xp-cond.is-more p { color: var(--x-body-d); }

/* gut · the four core jobs */
.xp .xp-jobs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.xp .xp-job { position: relative; padding: 28px 24px 30px; border-radius: 20px; background: #fff; border: 1px solid var(--x-line); overflow: hidden; }
.xp .xp-job-n { display: block; margin-bottom: 40px; font-size: 52px; line-height: 1; font-weight: 600; letter-spacing: -.04em; color: var(--x-acc-wash); -webkit-text-stroke: 1px var(--x-acc); }
.xp .xp-job p { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--x-body); }

/* ---------------------------------------------------------------------------
   6 · CARRIER · how inheritance works, websitelab's "How the PhenomeTech Ring
   helps" (devices/ring-lab/gen-a.css .gx-help): the photograph sticks on the
   left at screen height while navy cards pass it; each card an icon top right,
   a title, a line, a dark readout. Replaces the old grid + odds layout.
   ------------------------------------------------------------------------ */
.xp .xp-help-sec { --h-navy: #13244f; --h-bar: 56px; }
.xp .xp-help-sec .xp-head { margin-bottom: clamp(28px, 2.4vw, 44px); }
.xp .xp-help-sec .xp-head .xp-h2 { margin-inline: auto; }
.xp .xp-help-row { display: flex; align-items: stretch; width: min(88vw, 1440px); margin: 0 auto; border-radius: 20px; }
.xp .xp-help-img { flex: 0 0 50%; position: relative; }
.xp .xp-help-img img {
  position: sticky; top: var(--h-bar); display: block; width: 100%; height: calc(100vh - var(--h-bar));
  object-fit: cover; object-position: 14% 50%; border-radius: 20px 0 0 20px;
}
.xp .xp-help-list { flex: 1; display: flex; flex-direction: column; gap: 3px; margin-left: -1px; }
.xp .xp-help-slide { position: relative; background: var(--h-navy); color: #fff; padding: clamp(48px, 5vw, 88px) clamp(28px, 3.5vw, 60px) clamp(32px, 2.6vw, 48px) clamp(32px, 4.6vw, 80px); }
.xp .xp-help-slide:first-child { border-top-right-radius: 20px; }
.xp .xp-help-slide:last-child { border-bottom-right-radius: 20px; flex: 1; }
.xp .xp-help-ic { position: absolute; top: clamp(28px, 3vw, 48px); right: clamp(28px, 4vw, 64px); width: clamp(36px, 3.2vw, 52px); height: auto; }
.xp .xp-help-t { margin: 0; padding-right: 64px; font-size: clamp(22px, 1.85vw, 32px); line-height: 1.18; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.xp .xp-help-d { margin: 14px 0 0; max-width: 34em; font-size: clamp(16px, 1.15vw, 19px); line-height: 1.45; color: rgba(255, 255, 255, .86); }
.xp .xp-help-ui {
  margin: clamp(24px, 2.4vw, 40px) 0 0; max-width: 440px; padding: clamp(20px, 1.8vw, 28px) clamp(20px, 2.2vw, 32px);
  border-radius: 14px; background: linear-gradient(180deg, #101a3e, #0c1433); box-shadow: 0 0 0 1px rgba(255, 255, 255, .05) inset;
}
/* the grid, on the dark readout */
.xp .xp-help-ui .xp-punnett { margin: 0; gap: 8px; }
.xp .xp-help-ui .xp-cell { aspect-ratio: 2.4; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .88); font-size: 16px; }
.xp .xp-help-ui .xp-cell i::before, .xp .xp-help-ui .xp-cell i::after { background: #e5e8ff; }
.xp .xp-help-ui .xp-cell[data-k="carrier"] i::after,
.xp .xp-help-ui .xp-cell[data-k="affected"] i::before, .xp .xp-help-ui .xp-cell[data-k="affected"] i::after { background: #9d8cff; }
.xp .xp-help-ui .xp-punnett.has-pick .xp-cell.is-picked { background: rgba(157, 140, 255, .22); border-color: #9d8cff; }
/* the odds as the reference's stage bars: they grow in when the card arrives */
.xp .xp-help-ui .xp-odds { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.xp .xp-help-ui .xp-odds button {
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 12px; row-gap: 8px; width: 100%;
  padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer;
}
.xp .xp-help-ui .xp-odds button:hover, .xp .xp-help-ui .xp-odds button[aria-pressed="true"] { background: none; }
.xp .xp-help-ui .xp-odds b { min-width: 0; font-size: 18px; font-weight: 600; color: #fff; }
.xp .xp-help-ui .xp-odds span { font-size: 15px; color: rgba(255, 255, 255, .7); }
.xp .xp-help-ui .xp-odds i { grid-column: 1 / -1; position: relative; display: block; height: 14px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.xp .xp-help-ui .xp-odds i::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--w) * 100%); border-radius: 3px; background: #6d7dff;
  transform-origin: 0 50%; transform: scaleX(var(--grow, 1)); transition: transform 1.2s var(--x-ease), background-color .3s;
}
.xp .xp-help-ui .xp-odds li:first-child i::after { background: #9d8cff; }
.xp .xp-help-ui .xp-odds li:last-child i::after { background: #3b47c9; }
.xp .xp-help-ui .xp-odds button:hover i::after, .xp .xp-help-ui .xp-odds button[aria-pressed="true"] i::after { background: #e5e8ff; }
.xp.xp-js .xp-help-slide .xp-odds i::after { --grow: 0; }
.xp.xp-js .xp-help-slide.is-in .xp-odds i::after { --grow: 1; }
@media (max-width: 900px) {
  .xp .xp-help-row { flex-direction: column; width: calc(100% - 2 * var(--x-gut)); }
  .xp .xp-help-img img { position: relative; top: 0; height: 60vw; border-radius: 16px 16px 0 0; }
  .xp .xp-help-list { margin: 0; }
  .xp .xp-help-slide { padding: 40px 24px 28px; border-radius: 0 !important; }
  .xp .xp-help-slide:last-child { border-radius: 0 0 16px 16px !important; }
  .xp .xp-help-ic { top: 24px; right: 24px; }
  .xp .xp-help-t { padding-right: 56px; }
}
@media (prefers-reduced-motion: reduce) { .xp .xp-help-ui .xp-odds i::after { transition: none; --grow: 1 !important; } }

/* ---------------------------------------------------------------------------
   7 · WHO IT'S FOR · the photograph held, the cards beside it
   ------------------------------------------------------------------------ */
/* an editorial list instead of white cards: the
   photograph as tall as the list beside it, each reason a numbered row on a
   hairline, its points a checklist. One blue for the marks on all six. */
.xp .xp-who { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: stretch; }
.xp .xp-who-photo { position: relative; margin: 0; min-height: 420px; border-radius: 26px; overflow: hidden; background: var(--x-sunk); }
.xp .xp-who-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xp .xp-who-cards { display: flex; flex-direction: column; justify-content: center; counter-reset: who; border-top: 1px solid rgba(13, 27, 76, .14); }
.xp .xp-who-card {
  counter-increment: who; position: relative;
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 44px; gap: 8px 20px; align-items: start;
  padding: clamp(22px, 2.2vw, 32px) 0; border-bottom: 1px solid rgba(13, 27, 76, .14);
}
.xp .xp-who-card::before {
  content: counter(who, decimal-leading-zero); grid-column: 1; grid-row: 1;
  font-size: clamp(30px, 2.6vw, 40px); line-height: 1; font-weight: 400; letter-spacing: -.03em;
  color: #203a85; font-variant-numeric: tabular-nums;
}
.xp .xp-who-card > div { grid-column: 2; grid-row: 1; }
.xp .xp-who-ic {
  grid-column: 3; grid-row: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(67, 91, 161, .1); color: var(--phenome-blue-400, #435ba1);
}
.xp .xp-who-ic svg { width: 20px; height: 20px; }
.xp .xp-who-card h3 { font-size: clamp(21px, 1.7vw, 26px); line-height: 1.2; letter-spacing: -.015em; color: var(--x-navy); }
.xp .xp-who-card p, .xp .xp-who-card ul { margin: 14px 0 0; font-size: 16px; line-height: 1.5; color: var(--x-body); }
.xp .xp-who-card ul { display: grid; gap: 8px; padding: 0; list-style: none; }
.xp .xp-who-card li { position: relative; padding-left: 28px; }
.xp .xp-who-card li::first-letter { text-transform: uppercase; }
.xp .xp-who-card li::before {   /* a small tick in a circle */
  content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(67, 91, 161, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23435ba1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.xp .xp-sym { margin-top: clamp(56px, 7vw, 96px); padding: clamp(32px, 4vw, 56px); border-radius: 28px; background: var(--x-navy); color: #fff; }
.xp .xp-sym h3 { max-width: 30ch; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -.02em; color: #fff; }
.xp .xp-sym > p { margin: 14px 0 28px; max-width: 64ch; font-size: 17px; line-height: 1.55; color: var(--x-body-d); }
.xp .xp-sym .xp-chips li { padding: 10px 16px; font-size: 16px; letter-spacing: 0; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid var(--x-line-d); transition: background .3s, border-color .3s; }
.xp .xp-sym .xp-chips li:hover { background: color-mix(in srgb, var(--x-acc-lit) 22%, transparent); border-color: var(--x-acc-lit); }

/* ---------------------------------------------------------------------------
   7b · SYMPTOMS (gut, oral) · websitelab's band "By your side" pair
   (devices/ring-lab/bdx.css .bd-coach + .bd-apps): a big line on white, a
   night circle that rises from below the screen and fills it with the scroll,
   then a round carousel on that night, the centre photo lit. xp.js writes
   --orb-r, --orb-copy, --c-lift, and moves the carousel.
   ------------------------------------------------------------------------ */
.xp .xp-coach { position: relative; height: 230vh; background: #fff; --night: #070c24; }
.xp .xp-coach-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
.xp .xp-coach-h {
  position: absolute; left: 50%; top: 42%; width: min(92vw, 1200px); margin: 0; text-align: center;
  transform: translate(-50%, calc(-50% - var(--c-lift, 0px)));
  font-size: clamp(34px, 4.3vw, 66px); line-height: 1.08; font-weight: 600; letter-spacing: -.032em; color: var(--x-navy);
}
/* one question in two tones, each half a line of its own at one size */
.xp .xp-coach-h > span { display: block; white-space: nowrap; }
.xp .xp-coach-h .dim { color: #203a85; }
@media (max-width: 900px) { .xp .xp-coach-h > span { white-space: normal; text-wrap: balance; } }
.xp .xp-orb {
  position: absolute; inset: 0; background: var(--night);
  clip-path: circle(var(--orb-r, 0px) at 50% calc(100% + var(--orb-drop, 30vh)));
}
.xp .xp-orb-in {
  position: absolute; left: 50%; top: 50%; width: min(88vw, 980px); text-align: center; color: #fff;
  transform: translate(-50%, calc(-50% + var(--orb-copy, 40px)));
}
.xp .xp-orb-t {
  margin: 0; font-size: clamp(24px, 2.9vw, 44px); line-height: 1.28; font-weight: 600; letter-spacing: -.02em; text-wrap: balance;
  color: #fff;   /* a paragraph, so plain white: the reference's gradient ran across lines and spotted it */
}
.xp .xp-orb-t > span { display: block; }   /* each sentence on its own line */
.xp .xp-orb-t > span + span { margin-top: .35em; }
.xp .xp-apps {
  position: relative; z-index: 1; margin-top: -34vh; padding: 0 0 clamp(90px, 10vw, 150px); overflow: clip; color: #fff;
  background: linear-gradient(180deg, transparent 0, #070c24 34vh);
}
.xp .xp-apps-stage { position: relative; height: calc(var(--app) + 190px); --app: clamp(220px, 24vw, 340px); --gap: clamp(20px, 2vw, 26px); }
.xp .xp-apps-glow {
  position: absolute; left: 50%; top: 40%; width: 900px; height: 700px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(113, 133, 189, .32), rgba(32, 58, 133, .12) 55%, transparent 100%);
  pointer-events: none;
}
.xp .xp-apps-track { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; touch-action: pan-y; }
.xp .xp-app {
  position: absolute; left: 50%; top: 0; width: var(--app); margin-left: calc(var(--app) / -2);
  transform: translateX(calc(var(--o, 0) * (var(--app) + var(--gap))));
  transition: transform .9s var(--x-ease); text-align: center;
}
.xp .xp-app.is-jump { transition: none; }
.xp .xp-app-img {
  display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; overflow: hidden;
  background: #1a2140; cursor: pointer; transition: transform .9s var(--x-ease), filter .6s ease;
  filter: saturate(.85) brightness(.9);
}
.xp .xp-app-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xp .xp-app.on .xp-app-img { filter: none; transform: scale(1.02); }
.xp .xp-app-t { margin: 28px 0 0; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.25; font-weight: 600; color: rgba(255, 255, 255, .22); transition: color .6s ease; }
.xp .xp-app.on .xp-app-t { color: #fff; }
.xp .xp-apps-dots { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; gap: 8px; }
.xp .xp-apps-dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .25); transition: background-color .3s; }
.xp .xp-apps-dots i.on { width: 22px; background: #fff; }
@media (max-width: 760px) { .xp .xp-coach { height: 190vh; } }
@media (prefers-reduced-motion: reduce) { .xp .xp-app, .xp .xp-app-img { transition: none; } }

/* ---------------------------------------------------------------------------
   8 · REPORT · the heading held on the left, the sections open on the right
   ------------------------------------------------------------------------ */
.xp .xp-rep { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.xp .xp-rep-head { position: sticky; top: calc(var(--ph-nav-h, 44px) + 72px); }
.xp .xp-rep-head .xp-h2 { font-size: clamp(32px, 3.4vw, 50px); }
.xp .xp-acc { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--x-line); }
.xp .xp-acc > li { border-bottom: 1px solid var(--x-line); }
.xp .xp-acc-btn {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 24px; align-items: center; gap: 12px;
  width: 100%; padding: 22px 0; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: var(--x-navy);
}
.xp .xp-acc-btn .n { font-size: 15px; font-weight: 600; color: var(--ph-tertiary); font-variant-numeric: tabular-nums; transition: color .3s; }
.xp .xp-acc-btn .t { font-size: 18px; line-height: 1.35; font-weight: 600; }
.xp .xp-acc-btn .pm { position: relative; width: 20px; height: 20px; }
.xp .xp-acc-btn .pm::before, .xp .xp-acc-btn .pm::after { content: ""; position: absolute; left: 3px; right: 3px; top: 9px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .4s var(--x-ease); }
.xp .xp-acc-btn .pm::after { transform: rotate(90deg); }
.xp .xp-acc-btn[aria-expanded="true"] .pm::after { transform: rotate(0); }
.xp .xp-acc-btn[aria-expanded="true"] .n { color: #1d1d1f; }
.xp .xp-acc-btn:hover .t, .xp .xp-acc-btn:hover .n { color: #1d1d1f; }   /* black on hover on all six, not the kit colour */
/* the panel opens on its grid row (0fr to 1fr), not on height */
.xp .xp-acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--x-ease); }
.xp .xp-acc-panel.is-open { grid-template-rows: 1fr; }
.xp .xp-acc-panel > div { min-height: 0; overflow: hidden; }
.xp .xp-acc-panel p { margin: 0; padding: 0 44px 24px 52px; font-size: 16px; line-height: 1.6; color: var(--x-body); }

/* `.is-spec` (CG): websitelab Band "Specifications" — heading
   centred above, a photograph held on the left, the rows open on the right
   (websitelab devices/ring-lab/bdx.css § 8): taller rows, bigger titles, a
   chevron in place of the plus. */
.xp .xp-rep.is-spec { display: block; }
.xp .xp-rep.is-spec .xp-rep-head { position: static; max-width: 760px; margin: 0; text-align: left; }   /* left, as the page's other heads */
.xp .xp-rep.is-spec .xp-rep-head .xp-lede { margin-inline: 0; }
.xp .xp-rep-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 58px);
  align-items: start; margin-top: clamp(36px, 4vw, 56px);
}
.xp .xp-rep-img {
  margin: 0; position: sticky; top: calc(var(--ph-nav-h, 44px) + 46px); border-radius: 20px; overflow: hidden;
  aspect-ratio: 1200 / 1490; max-height: calc(100vh - var(--ph-nav-h, 44px) - 76px); background: var(--x-navy);
}
.xp .xp-rep-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
/* the test's own report cover (A4), shown whole like a printed report: the
   frame takes the page's proportions and narrows so it fits under the nav */
.xp .xp-rep-img.is-cover {
  aspect-ratio: 840 / 1189; max-height: none; justify-self: center; border-radius: 10px; background: #fff;
  width: min(100%, calc((100vh - var(--ph-nav-h, 44px) - 76px) * 840 / 1189));
  box-shadow: 0 0 0 1px rgba(13, 27, 76, .08), 0 24px 60px -24px rgba(13, 27, 76, .35);
}
.xp .xp-rep-img.is-cover img { object-position: 50% 50%; }
.xp .is-spec .xp-acc { border-top-color: rgba(13, 27, 76, .16); }
.xp .is-spec .xp-acc > li { border-bottom-color: rgba(13, 27, 76, .16); }
.xp .is-spec .xp-acc-btn { grid-template-columns: 44px minmax(0, 1fr) 30px; gap: 12px; padding: 26px 0; }
.xp .is-spec .xp-acc-btn .t { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.3; }
.xp .is-spec .xp-acc-btn .pm { width: 30px; height: 30px; }
.xp .is-spec .xp-acc-btn .pm::after { display: none; }
.xp .is-spec .xp-acc-btn .pm::before {
  left: 50%; right: auto; top: 45%; width: 8px; height: 8px; border-radius: 0; background: none;
  border: solid currentColor; border-width: 0 1.6px 1.6px 0;
  transform: translate(-50%, -50%) rotate(45deg); transition: transform .35s var(--x-ease), top .35s var(--x-ease);
}
.xp .is-spec .xp-acc-btn[aria-expanded="true"] .pm::before { top: 58%; transform: translate(-50%, -50%) rotate(225deg); }
.xp .is-spec .xp-acc-panel p { padding: 0 44px 26px 56px; font-size: 17px; line-height: 1.5; }

/* ---------------------------------------------------------------------------
   9 · WHAT YOU GET · the buy page's "In your report" card (cg.css .cg-kit):
   the app on a phone, from the catalogue, on a white tile, beside a titled
   list whose rows carry an icon, a bold name and one line
   ------------------------------------------------------------------------ */
.xp .xp-kitcard {
  display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); gap: 16px;
  margin-top: clamp(40px, 4vw, 64px); padding: 16px; border-radius: 28px; background: #f4f6fb;
}
/* no tile: the phone alone. The catalogue's photo is
   a phone on white, so multiply lets the card's own tint through the white. */
.xp .xp-kitcard-img { display: grid; place-items: center; min-height: 380px; margin: 0; padding: clamp(16px, 2vw, 32px) 16px; }
.xp .xp-kitcard-img img { width: auto; max-width: 100%; height: clamp(440px, 42vw, 600px); object-fit: contain; display: block; mix-blend-mode: multiply; transition: scale .9s var(--x-ease); }
.xp .xp-kitcard:hover .xp-kitcard-img img { scale: 1.03; }
.xp .xp-kitcard-body { align-self: center; padding: 16px clamp(20px, 3vw, 48px) 16px 12px; }
/* the report's name on one line; phones may wrap it */
.xp .xp-kitcard h3 { margin: 0; white-space: nowrap; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.2; font-weight: 600; letter-spacing: -.015em; color: var(--x-navy); }
.xp .xp-kitcard-sub { margin: 10px 0 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ph-text-1); }
.xp .xp-kitcard ul { margin: 28px 0 0; padding: 0; list-style: none; }
.xp .xp-kitcard li { display: flex; align-items: center; gap: 18px; padding: 18px 0; }
.xp .xp-kitcard li + li { border-top: 1px solid #203a851f; }
.xp .xp-kitcard li > svg { flex: none; width: 28px; height: 28px; stroke-width: 2.2; color: var(--x-navy); }
.xp .xp-kitcard li b { display: block; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.3; font-weight: 600; color: var(--x-navy); }
.xp .xp-kitcard li span span { display: block; margin-top: 4px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.45; color: var(--x-body); }

/* ---------------------------------------------------------------------------
   10 · BACTERIA DICTIONARY · tabs, one group at a time
   ------------------------------------------------------------------------ */
.xp .xp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.xp .xp-tab {
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--x-line-d); background: transparent;
  font: inherit; font-size: 16px; font-weight: 600; color: var(--x-body-d); cursor: pointer; transition: background .3s, color .3s, border-color .3s;
}
.xp .xp-tab:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.xp .xp-tab[aria-selected="true"] { background: #fff; color: var(--x-ink); border-color: #fff; }
.xp .xp-tabpanel { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.xp .xp-tabpanel[hidden] { display: none; }
.xp .xp-tabpanel.is-in li { animation: xp-in .6s var(--x-ease) both; }
.xp .xp-tabpanel li:nth-child(2) { animation-delay: .05s; } .xp .xp-tabpanel li:nth-child(3) { animation-delay: .1s; }
.xp .xp-tabpanel li:nth-child(4) { animation-delay: .15s; } .xp .xp-tabpanel li:nth-child(5) { animation-delay: .2s; }
.xp .xp-tabpanel li { padding: 24px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid var(--x-line-d); }
.xp .xp-tabpanel h3 { font-style: italic; font-weight: 600; color: #fff; }
.xp .xp-tabpanel h3::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--x-acc-lit); vertical-align: middle; }
.xp .xp-tabpanel.is-warn h3::before { background: #ff9f6b; }
.xp .xp-tabpanel p { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--x-body-d); }
@keyframes xp-in { from { opacity: 0; transform: translateY(14px); } }

.xp .xp-ink { background: var(--x-ink); color: #fff; }

/* ---------------------------------------------------------------------------
   11 · REVIEWS · supplements/nad's early voices (nad.css .nd-story, drawn
   from designexplore/app's "Real days" cards): flat pale blue cards, the stars,
   the words large, a byline with an initial in a white circle. A grid, not a
   rail: three across for three reviews, two across for two or four.
   ------------------------------------------------------------------------ */
.xp .xp-rev-sec { background: #fff; }
/* The section is filled from the product's published reviews and is not shown
   while there are none (src/site/SiteShell.jsx). */
.xp .xp-rev-sec[hidden] { display: none; }
/* white beside white: one break between them, not two (the page's rule) */
/* (not after the black bacteria dictionary: that ground is dark, so the reviews
   keep their own top padding there) */
.xp .xp-sec:not(.is-sunk):not(.xp-ink):not(.xp-dict-sec) + .xp-rev-sec { padding-top: 0; }
.xp .xp-rev-sec:not([hidden]) + .xp-sec:not(.is-sunk) { padding-top: 0; }
.xp .xp-stars { margin: 14px 0 0; font-size: 20px; letter-spacing: 4px; color: #f5a623; }
.xp .xp-revs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.xp .xp-revs.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xp .xp-rev {
  display: flex; flex-direction: column; min-height: 290px; box-sizing: border-box;
  padding: 22px 24px; border-radius: 6px; background: #e6ebf4; color: #0a1233;
}
.xp .xp-rev-tag { align-self: flex-start; color: #f5a623; font-size: 16px; letter-spacing: 2px; line-height: 1.3; }
.xp .xp-rev blockquote {
  margin: 26px 0 0; font-size: clamp(20px, 1.7vw, 25px); line-height: 1.32; letter-spacing: -.015em; font-weight: 500;
  color: #0a1233; text-wrap: pretty;
}
.xp .xp-rev-by { display: flex; align-items: center; gap: 12px; margin: auto 0 0; padding-top: 26px; font-size: 16px; color: #0a1233; }
.xp .xp-rev-by i {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 1px rgba(10, 18, 51, .12);
  font-style: normal; font-size: 15px; font-weight: 600; color: var(--x-navy);
}
.xp .xp-rev-by small { display: block; font-size: 15px; color: #5f6680; }
@media (max-width: 900px) { .xp .xp-revs, .xp .xp-revs.is-3 { grid-template-columns: minmax(0, 1fr); } .xp .xp-rev { min-height: 0; } }

/* ---------------------------------------------------------------------------
   12 · SCIENCE · designexplore's comprehensive genomic "After the lab" pair
   (cg.css .cg-kits): two tinted cards, a photograph over a titled list whose
   rows carry an icon, a bold name and one line, hairlines between
   ------------------------------------------------------------------------ */
/* The heading is the page's own eyebrow + h2 (.xp-head), as every other
   section's, so the pair sits at the head's spacing. */
.xp .xp-head + .xp-pair, .xp .xp-head + .xp-kitcard { margin-top: 0; }
.xp .xp-sci-lede { margin: 22px 0 0; max-width: 62ch; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; color: var(--x-body); }
.xp .xp-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(40px, 4vw, 64px); }
.xp .xp-pcard { display: flex; flex-direction: column; padding: 16px; border-radius: 28px; background: #f4f6fb; }
.xp .xp-pcard figure { margin: 0; aspect-ratio: 3 / 2; border-radius: 20px; overflow: hidden; background: #e6e9f2; }
.xp .xp-pcard figure img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale .9s var(--x-ease); }
.xp .xp-pcard:hover figure img { scale: 1.04; }
.xp .xp-pcard-body { padding: clamp(20px, 2vw, 30px) 16px 12px; }
.xp .xp-pcard h3 { margin: 0; font-size: clamp(23px, 2vw, 30px); line-height: 1.2; font-weight: 600; letter-spacing: -.015em; color: var(--x-navy); }
.xp .xp-pcard-sub { margin: 6px 0 0; font-size: 17px; line-height: 1.5; color: var(--ph-text-1); }
.xp .xp-pcard ul { margin: 20px 0 0; padding: 0; list-style: none; }
.xp .xp-pcard li { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.xp .xp-pcard li + li { border-top: 1px solid #203a851f; }
.xp .xp-pcard li > svg { flex: none; width: 24px; height: 24px; stroke-width: 2.2; color: var(--x-navy); }
.xp .xp-pcard li b { display: block; font-size: 17px; line-height: 1.3; font-weight: 600; color: var(--x-navy); }
.xp .xp-pcard li span span, .xp .xp-pcard li a span { display: block; font-size: 16px; line-height: 1.4; color: var(--x-body); }
.xp .xp-pcard li a { display: block; color: inherit; text-decoration: none; }
.xp .xp-pcard li a:hover b { color: var(--x-acc); }
.xp .xp-pcard li .todo { color: var(--ph-text-2); font-weight: 400; }

/* ---------------------------------------------------------------------------
   13 · FAQ · two screens: the questions centred (the buy page's form), then
   a note to the clinical team on its own
   ------------------------------------------------------------------------ */
.xp .xp-faq-sec .xp-head { text-align: center; margin-bottom: 0; }
.xp .xp-faq-sec .xp-h2 { margin-inline: auto; }
.xp .xp-faq-sec .acc.is-faq { max-width: 760px; margin: clamp(24px, 2.6vw, 36px) auto 0; }
/* the section above already leaves the break, so the two paddings don't stack */
.xp .xp-faq-sec { padding-top: 0; padding-bottom: clamp(40px, 4.4vw, 64px); }   /* and less before the note to the team */
.xp .xp-sec:has(+ .xp-faq-sec) { padding-bottom: clamp(56px, 6vw, 88px); }
/* one centred column: the heading and its line over
   the form, the card itself centred on the page */
.xp .xp-ask {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 3vw, 40px);
  max-width: 760px; margin-inline: auto; box-sizing: border-box;
  padding: clamp(32px, 4vw, 56px); border-radius: 32px; background: var(--x-sunk);
}
.xp .xp-ask-copy { text-align: center; }
.xp .xp-ask h3 { font-size: clamp(28px, 3vw, 44px); line-height: 1.08; letter-spacing: -.025em; }
.xp .xp-ask-copy > p { margin: 14px auto 0; max-width: 52ch; font-size: 17px; line-height: 1.5; color: var(--ph-text-2); }
.xp .xp-ask form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.xp .xp-ask label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; color: var(--x-navy); }
.xp .xp-ask label.is-wide, .xp .xp-ask .btn { grid-column: 1 / -1; }
.xp .xp-ask input, .xp .xp-ask textarea {
  width: 100%; box-sizing: border-box; padding: 14px 16px; border: 1px solid var(--ph-line); border-radius: 12px;
  background: #fff; font: inherit; font-size: 16px; font-weight: 400; color: var(--ph-text-1); resize: vertical;
  transition: border-color .3s, box-shadow .3s;
}
.xp .xp-ask input:focus, .xp .xp-ask textarea:focus { outline: none; border-color: var(--x-acc); box-shadow: 0 0 0 4px var(--x-acc-wash); }
.xp .xp-ask .btn { width: 100%; margin-top: 8px; background: var(--x-navy); }

/* ---------------------------------------------------------------------------
   14 · BOTTOM CTA · the order, on the test's own ink
   ------------------------------------------------------------------------ */
.xp .xp-cta {
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: clamp(32px, 5vw, 64px); border-radius: 32px; overflow: hidden; color: #fff;
  background: radial-gradient(70% 120% at 100% 100%, color-mix(in srgb, var(--x-acc) 55%, transparent), transparent 70%), linear-gradient(135deg, color-mix(in srgb, var(--x-acc) 40%, var(--x-ink)), var(--x-ink));
}
/* testing/genetic's closing card: the aurora film under the card, its own
   colours laid over it as a translucent scrim, so the light moves through */
.xp .xp-cta-film { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.xp .xp-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 120% at 100% 100%, color-mix(in srgb, var(--x-acc) 30%, transparent), transparent 70%),
    linear-gradient(135deg, color-mix(in srgb, color-mix(in srgb, var(--x-acc) 40%, var(--x-ink)) 50%, transparent), color-mix(in srgb, var(--x-ink) 62%, transparent));
}
.xp .xp-cta-kit { position: absolute; right: -4%; bottom: -18%; z-index: -1; width: 30%; opacity: .14; pointer-events: none; transform: rotate(-12deg); }
.xp .xp-cta .xp-h2 { font-size: clamp(32px, 3.6vw, 52px); color: #fff; }
.xp .xp-cta .xp-h2 em { color: #fff; }   /* a heading is one colour: no blue on the dark card */
.xp .xp-cta .xp-lede { color: var(--x-body-d); }
.xp .xp-btn-l { white-space: pre-wrap; }
.xp .xp-cta .btn { margin-top: 30px; background: #fff; color: var(--x-ink) !important; }
.xp .xp-cta .btn:hover { background: rgba(255, 255, 255, .88); }
.xp .xp-perks { position: relative; display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.xp .xp-perks li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: center; }
.xp .xp-perks .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: var(--ph-on-brand, #8fb8ea);   /* one blue on all six */ }
.xp .xp-perks .ic svg { width: 18px; height: 18px; }
/* The card now follows the sample report (white beside white, its own top is
   already 0); with the reviews hidden the science section is next, so it
   drops its top too, one break between them, not two. */
.xp .xp-cta-sec + .xp-rev-sec[hidden] + .xp-sec:not(.is-sunk) { padding-top: 0; }
/* After the FAQ and the note to the team: the order button on its own,
   centred, with a modest break above it */
.xp .xp-sec:has(+ .xp-buy-sec) { padding-bottom: clamp(40px, 4.4vw, 64px); }
.xp .xp-buy { margin: 0; text-align: center; }
.xp .xp-perks strong { display: block; font-size: 17px; font-weight: 600; }
.xp .xp-perks span { display: block; font-size: 15px; color: var(--x-body-d); }

/* ---------------------------------------------------------------------------
   15 · RELATED · tiles with the kit and the price
   ------------------------------------------------------------------------ */
.xp .xp-rel-sec { background: #fff; }
.xp .xp-rel-sec { padding-top: 0; }   /* the CTA above already leaves the break */
.xp .xp-sec:has(+ .xp-rel-sec) { padding-bottom: clamp(56px, 6vw, 88px); }
.xp .xp-rel-sec .xp-head { text-align: center; margin-bottom: clamp(28px, 3vw, 40px); }
.xp .xp-rel-sec .xp-h2 { margin-inline: auto; }
.xp .xp-rel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.4vw, 22px); margin: 0; padding: 0; list-style: none; }
.xp .xp-rel.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xp .xp-rel.is-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.xp .xp-rel a {
  display: flex; flex-direction: column; height: 100%; box-sizing: border-box; padding: 14px 14px 20px;
  border-radius: clamp(16px, 1.4vw, 22px); background: #f4f6fb; color: inherit; text-decoration: none;
  transition: transform .55s var(--x-ease);
}
.xp .xp-rel a:hover { transform: translateY(-6px); }
.xp .xp-rel figure { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: clamp(10px, 1vw, 14px); overflow: hidden; background: #e6e9f2; }
.xp .xp-rel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--x-ease); }
.xp .xp-rel a:hover img { transform: scale(1.04); }
.xp .xp-rel-t { display: block; margin: clamp(20px, 1.8vw, 26px) 0 0; padding-inline: 6px; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.2; font-weight: 600; letter-spacing: -.012em; color: #10214b; }
@media (min-width: 1024px) { .xp .xp-rel-t { min-height: 2.4em; } }
.xp .xp-rel-d { margin: 10px 0 0; padding-inline: 6px; font-size: 18px; line-height: 1.5; color: var(--x-body); }
.xp .xp-rel-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: auto 0 0; padding: clamp(24px, 2.2vw, 34px) 6px 0; }
.xp .xp-rel-p { margin: 0; font-size: clamp(20px, 1.6vw, 24px); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; color: #10214b; font-variant-numeric: tabular-nums; }
.xp .xp-rel-p { white-space: nowrap; }
.xp .xp-rel-p small { display: block; margin-bottom: 4px; font-size: 15px; line-height: 1.2; font-weight: 400; letter-spacing: 0; color: var(--ph-text-2); }
.xp .xp-rel-r { margin: 12px 0 0; padding-inline: 6px; font-size: 15px; line-height: 1.4; color: var(--ph-text-2); }
.xp .xp-rel-more { display: inline-flex; align-items: center; flex: none; }   /* the arrow alone, one blue on all six */
.xp .xp-rel-go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e6e9f2; transition: background .4s ease, transform .4s var(--x-ease); }
.xp .xp-rel-go svg { width: 15px; height: 15px; fill: none; stroke: var(--phenome-blue-400, #435ba1); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.xp .xp-rel a:hover .xp-rel-go { background: var(--phenome-blue-400, #435ba1); transform: translateX(3px); }
.xp .xp-rel a:hover .xp-rel-go svg { stroke: #fff; }
@media (max-width: 1023px) { .xp .xp-rel, .xp .xp-rel.is-3, .xp .xp-rel.is-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .xp .xp-rel, .xp .xp-rel.is-3, .xp .xp-rel.is-5 { grid-template-columns: minmax(0, 1fr); } }

/* the sticky product bar (shared.js productBar): testing/genetic's arrangement,
   the round kit picture, the name beside it on the left, Buy on the right */
.xp .ph-bar-inner { gap: 14px; justify-content: flex-start; }
.xp .ph-bar-thumb {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; display: block;
  background: var(--x-sunk); box-shadow: inset 0 0 0 1px #10214b14;
}
.xp .ph-bar-txt { min-width: 0; flex: 1 1 auto; display: flex; align-items: baseline; gap: 12px; }
.xp .ph-bar .btn.small { flex: none; margin-left: auto; }
.xp .ph-bar-name { color: #1d1d1f; text-align: left; }
.xp .ph-bar-name:hover { color: var(--ph-accent-link); }
@media (max-width: 560px) { .xp .ph-bar-inner { gap: 10px; } }

/* the icons */
.xp .xp-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.xp svg.i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------------------
   16 · NARROWER SCREENS
   ------------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .xp .xp-jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xp .xp-ess-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .xp .xp-conds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .xp .xp-kitcard h3 { white-space: normal; }
  .xp .xp-hero-grid, .xp .xp-inh, .xp .xp-who, .xp .xp-rep,
  .xp .xp-kitcard, .xp .xp-pair, .xp .xp-ask, .xp .xp-cta { grid-template-columns: minmax(0, 1fr); }
  .xp .xp-hero-card { min-height: 0; }
  .xp .xp-hero-grid { padding-block: 24px 40px; }
  .xp .xp-kit { order: -1; max-width: 360px; margin: 0 auto -24px; width: 72%; }
  .xp .xp-who-photo, .xp .xp-rep-head { position: static; }
  .xp .xp-rep-grid { grid-template-columns: minmax(0, 1fr); }
  .xp .xp-rep-img { position: relative; top: 0; aspect-ratio: 4 / 3; max-height: none; }
  .xp .xp-rep-img.is-cover { aspect-ratio: 840 / 1189; width: min(72%, 340px); }
  .xp .is-spec .xp-acc-btn { grid-template-columns: 36px minmax(0, 1fr) 30px; padding: 22px 0; }
  .xp .is-spec .xp-acc-panel p { padding: 0 8px 22px 48px; font-size: 16px; }
  .xp .xp-who-photo { min-height: 0; aspect-ratio: 16 / 10; }
  .xp .xp-who-card { grid-template-columns: 48px minmax(0, 1fr) 40px; gap: 6px 14px; }
  .xp .xp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .xp .xp-steps::before, .xp .xp-steps::after { display: none; }
  .xp .xp-when-grid { grid-template-columns: minmax(0, 1fr); }
  .xp .xp-cta-kit { display: none; }
}
@media (max-width: 760px) {
  /* a phone's screen is already the frame, so the card does not grow */
  .xp .xp-ess-sec { padding-inline: var(--x-gut); }
  .xp .xp-ess-stage { position: static; min-height: 0; overflow: visible; }
  .xp .xp-ess-hold { display: none; }
  .xp .xp-ess { min-height: 620px; border-radius: 24px; transform: none; padding: 40px 20px 20px; }
  .xp .xp-ess-bg { scale: none; }
}
@media (max-width: 600px) {
  .xp .xp-kitcard { padding: 10px; border-radius: 22px; }
  .xp .xp-kitcard-img { min-height: 0; }
  .xp .xp-kitcard-img img { height: 380px; }
  .xp .xp-kitcard-body { padding: 8px; }
  .xp .xp-ask form { grid-template-columns: minmax(0, 1fr); }
  .xp .xp-pcard { padding: 10px; border-radius: 22px; }
  .xp .xp-hero-stats li { flex: 1 1 0; }
  .xp .xp-hero-stats span { font-size: 15px; }
  .xp .xp-steps, .xp .xp-jobs, .xp .xp-conds { grid-template-columns: minmax(0, 1fr); }
  .xp .xp-ess-panel { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 20px; }
  .xp .xp-ess-note { margin-top: -20px; }
  .xp .xp-acc-panel p { padding: 0 8px 22px 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .xp .xp-kit img, .xp .xp-kit::after { animation: none; }
  .xp .xp-hero-film, .xp .xp-cta-film { display: none; }
  .xp .xp-cta { background-image: url("/site/assets/video/hero-aurora.webp"); background-size: cover; }
  .xp .xp-hero-card { background-image: url("/site/assets/video/hero-aurora.webp"); background-size: cover; }
  .xp .xp-tabpanel.is-in li { animation: none; }
  .xp .xp-acc-panel, .xp .xp-steps::after { transition: none; }
}

/* ---------------------------------------------------------------------------
   BACTERIA DICTIONARY (gut, oral) · websitelab "Beyond measure"
   (devices/ring-lab/uhx.css § 4): black, pill tabs over a sliding highlight,
   a looping carousel whose neighbours peek in from either side, a glass
   readout on each photograph and a dot that fills while the slide holds.
   Told as a specimen plate: the readout lists the group's species in mono
   like a lab sheet; the cards below name and explain them. The harmful
   group reads amber. Behaviour in xp.js dict(); without it the groups stack.
   ------------------------------------------------------------------------ */
.xp .xp-dict-sec {
  --d-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Roboto Mono', monospace;
  --d-mute: #a1a1a6; --d-chip: #2c2c2e; --d-warn: #ffb070;
  --d-sw: min(880px, 84vw);
  position: relative; overflow: hidden; background: #000; color: #fff;
  padding-bottom: clamp(80px, 8vw, 110px);
}
/* a low glow in the kit colour under the plates, so the black has depth */
.xp .xp-dict-sec::before {
  content: ""; position: absolute; left: 50%; bottom: -30%; width: 120%; height: 80%; translate: -50% 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--x-acc-lit) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.xp .xp-dict-sec .xp-head { position: relative; margin-bottom: 0; }
.xp .xp-dict-sec .xp-eyebrow { color: #fff; }
.xp .xp-dict-sec .xp-h2 { color: #fff; }
.xp .xp-dict-sec .xp-lede { color: var(--d-mute); max-width: 60ch; }
.xp .xp-dict { position: relative; }

/* ---- tabs, one pill sliding under the chosen one */
.xp .xp-dict-tabs {
  position: relative; display: flex; justify-content: center; margin: clamp(48px, 6vw, 80px) auto 40px;
  width: max-content; max-width: calc(100% - 32px); overflow-x: auto; scrollbar-width: none;
}
.xp .xp-dict-tabs::-webkit-scrollbar { display: none; }
.xp .xp-dict-tab {
  position: relative; z-index: 1; height: 40px; padding: 0 22px; border: 0; border-radius: 999px;
  background: transparent; color: var(--d-mute); font: inherit; font-size: 14px; font-weight: 500;
  white-space: nowrap; cursor: pointer; transition: color .4s var(--x-ease);
}
.xp .xp-dict-tab:hover, .xp .xp-dict-tab[aria-selected="true"] { color: #fff; }
.xp .xp-dict-tab:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.xp .xp-dict-hl {
  position: absolute; z-index: 0; top: 0; left: 0; width: 0; height: 40px; border-radius: 999px;
  background: var(--d-chip); transition: transform .6s var(--x-ease);   /* width snaps: animating it re-lays the tab row every frame */
}

/* ---- the plates. Static stack first; .is-live (JS) lays them on a loop */
.xp .xp-dict-car { position: relative; display: grid; gap: 56px; width: var(--d-sw); margin: 0 auto; }
.xp .xp-dict-media { position: relative; aspect-ratio: 2 / 1; border-radius: 18px; overflow: hidden; background: #111; }
.xp .xp-dict-media img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.xp .xp-dict-media::after {   /* keeps the readout legible on a bright photograph */
  content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(0,0,0,.42), rgba(0,0,0,0) 55%);
}
.xp .xp-dict-glass {
  position: absolute; z-index: 1; right: 5%; bottom: 10%; width: min(40%, 320px); padding: 16px 18px 12px;
  border-radius: 12px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
}
/* blur only the plate in front: a backdrop filter re-samples every frame the
   photograph under it moves, so the neighbours and a still page skip it */
.xp .xp-dict-slide.is-on .xp-dict-glass, .xp .xp-dict:not(.is-live) .xp-dict-glass {
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
}
.xp .xp-dict.is-live .xp-dict-slide:not(.is-on) .xp-dict-glass { visibility: hidden; }
.xp .xp-dict-glass p {
  margin: 0 0 8px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.2);
  font-size: 12px; line-height: 1.3; color: #fff;
}
.xp .xp-dict-glass ol { margin: 0; padding: 0; list-style: none; }
.xp .xp-dict-glass li { display: flex; gap: 10px; padding: 3px 0; font-size: 13px; line-height: 1.35; }
.xp .xp-dict-glass li span { font-family: var(--d-mono); font-size: 10px; line-height: 1.75; opacity: .6; }
.xp .xp-dict-glass li i { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xp .xp-dict-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 32px;
  margin: 28px 0 0; padding: 0; list-style: none;
}
.xp .xp-dict-list li { padding-top: 16px; border-top: 1px solid rgba(255,255,255,.16); }
.xp .xp-dict-list h3 { font-size: 18px; font-style: italic; font-weight: 600; color: #fff; }
.xp .xp-dict-list h3::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 10px 0 0; border-radius: 50%;
  background: var(--x-acc-lit); vertical-align: middle; translate: 0 -2px;
}
.xp .xp-dict-list p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--d-mute); }
.xp .xp-dict-slide.is-warn .xp-dict-list h3::before { background: var(--d-warn); }
.xp .xp-dict-slide.is-warn .xp-dict-glass { background: rgba(255,160,90,.14); border-color: rgba(255,176,112,.34); }
.xp .xp-dict-slide.is-warn .xp-dict-glass li span { color: var(--d-warn); opacity: 1; }

.xp .xp-dict.is-live .xp-dict-car { display: block; width: auto; height: var(--d-h, 760px); touch-action: pan-y; user-select: none; }
.xp .xp-dict.is-live .xp-dict-slide {
  position: absolute; left: 50%; top: 0; width: var(--d-sw); margin-left: calc(var(--d-sw) / -2);
  transform: translateX(calc(var(--o) * (var(--d-sw) + 40px)));
  transition: transform .9s var(--x-ease), opacity .9s var(--x-ease);
}
.xp .xp-dict.is-live .xp-dict-slide:not(.is-on) { opacity: .4; cursor: pointer; }
.xp .xp-dict.is-live .xp-dict-slide.no-tr { transition: none; }
/* only the plate in front explains itself; the neighbours are pictures */
.xp .xp-dict.is-live .xp-dict-list { transition: opacity .5s var(--x-ease); }
.xp .xp-dict.is-live .xp-dict-slide:not(.is-on) .xp-dict-list { opacity: 0; }
.xp .xp-dict.is-live .xp-dict-slide.is-on .xp-dict-list li { animation: xp-in .7s var(--x-ease) both; }
.xp .xp-dict.is-live .xp-dict-slide.is-on .xp-dict-list li:nth-child(2) { animation-delay: .06s; }
.xp .xp-dict.is-live .xp-dict-slide.is-on .xp-dict-list li:nth-child(3) { animation-delay: .12s; }
.xp .xp-dict.is-live .xp-dict-slide.is-on .xp-dict-list li:nth-child(4) { animation-delay: .18s; }
.xp .xp-dict.is-live .xp-dict-slide.is-on .xp-dict-list li:nth-child(5) { animation-delay: .24s; }
.xp .xp-dict.is-live .xp-dict-glass { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--x-ease), transform .8s var(--x-ease); }
.xp .xp-dict.is-live .xp-dict-slide.is-on .xp-dict-glass { opacity: 1; transform: none; transition-delay: .45s; }

/* ---- dots: the live one stretches and fills while its plate holds */
.xp .xp-dict-dots { display: none; justify-content: center; align-items: center; gap: 8px; margin-top: 8px; }
.xp .xp-dict.is-live .xp-dict-dots { display: flex; }
.xp .xp-dict.is-live .xp-dict-car + .xp-dict-dots { margin-top: 28px; }
.xp .xp-dict-dot {
  position: relative; width: 6px; height: 6px; padding: 0; border: 0; border-radius: 99px;
  background: #3a3a3c; overflow: hidden; cursor: pointer; transition: background-color .3s ease;   /* width snaps, as the tab pill */
}
.xp .xp-dict-dot.is-on { width: 48px; }
/* the fill scales (compositor only); it never animates width, which would lay
   the page out on every frame for seven seconds */
.xp .xp-dict-dot span { position: absolute; inset: 0; background: #fff; border-radius: inherit; transform: scaleX(0); transform-origin: left center; }
.xp .xp-dict-dot.is-on span { animation: xp-dict-fill var(--d-dur, 7s) linear forwards; }
.xp .xp-dict.is-paused .xp-dict-dot.is-on span { animation-play-state: paused; }
@keyframes xp-dict-fill { to { transform: scaleX(1); } }

/* carrier (is-conds): one condition per plate; the readout lists its genes
   in mono, the card below names it, shows the genes and explains it, and
   "+495 more" closes the block under the dots */
.xp .xp-dict-glass.is-genes li i { font-family: var(--d-mono); font-style: normal; font-size: 14px; letter-spacing: .04em; }
.xp .xp-dict-list.is-one { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
.xp .xp-dict-list .xp-chips { margin-top: 12px; }
.xp .xp-dict-list .xp-chips li { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); font-size: 13px; letter-spacing: .06em; }
.xp .is-conds .xp-dict-list h3 { font-style: normal; }
.xp .xp-dict-more { position: relative; max-width: 620px; margin: clamp(40px, 5vw, 64px) auto 0; padding: 0 var(--x-gut); text-align: center; }
.xp .xp-dict-more h3 { font-size: clamp(24px, 2.2vw, 30px); color: #fff; }
.xp .xp-dict-more p { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: var(--d-mute); }

@media (max-width: 900px) {
  .xp .xp-dict-sec { --d-sw: 86vw; }
  .xp .xp-dict-tabs { justify-content: flex-start; margin-top: 40px; }
  .xp .xp-dict-glass { display: none; }
  .xp .xp-dict-media { aspect-ratio: 4 / 3; }
  .xp .xp-dict-list { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .xp .xp-dict.is-live .xp-dict-slide, .xp .xp-dict-hl, .xp .xp-dict.is-live .xp-dict-glass { transition: none; }
  .xp .xp-dict.is-live .xp-dict-slide.is-on .xp-dict-list li { animation: none; }
}

/* ---- Carrier "What it screens for", compact: no
   "+495 more" block; every condition tab a capsule; each plate a small photo
   beside its words, so the heading, the tabs and one plate fit one screen.
   Scoped to .is-conds: the gut/oral dictionaries keep their large plates. */
.xp .xp-dict-sec:has(.is-conds) { --d-sw: min(980px, 84vw); padding-top: clamp(64px, 6.5vw, 96px); padding-bottom: clamp(56px, 6vw, 88px); }
.xp .xp-dict .xp-dict-tabs { gap: 10px; margin: clamp(28px, 3vw, 44px) auto 32px; padding: 2px; }
.xp .xp-dict .xp-dict-tab { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); transition: color .4s var(--x-ease), box-shadow .4s var(--x-ease); }
.xp .xp-dict .xp-dict-tab:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.xp .xp-dict .xp-dict-tab[aria-selected="true"] { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .0); }
.xp .xp-dict .xp-dict-hl { top: 2px; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }
.xp .is-conds .xp-dict-slide {
  display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: clamp(28px, 3.4vw, 52px); align-items: center;
  padding: 16px; border-radius: 26px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); box-sizing: border-box;
}
.xp .is-conds .xp-dict-media { aspect-ratio: 4 / 3; border-radius: 16px; }
.xp .is-conds .xp-dict-media::after, .xp .is-conds .xp-dict-glass { display: none; }
.xp .is-conds .xp-dict-list.is-one { max-width: 34rem; padding-right: clamp(8px, 2vw, 32px); }
.xp .is-conds .xp-dict-list li { padding-top: 0; border-top: 0; }
.xp .is-conds .xp-dict-list h3 { font-size: clamp(26px, 2.4vw, 36px); line-height: 1.12; letter-spacing: -.02em; }
.xp .is-conds .xp-dict-list h3::before { display: none; }
.xp .is-conds .xp-dict-list .xp-chips { margin-top: 16px; gap: 8px; }
.xp .is-conds .xp-dict-list .xp-chips li {
  padding: 5px 12px; border-radius: 999px; font-family: var(--d-mono); font-size: 14px; letter-spacing: .06em;
  color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28);
}
.xp .is-conds .xp-dict-list p { margin-top: 18px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: #c7c7cc; max-width: 38ch; }
@media (max-width: 760px) {
  .xp .is-conds .xp-dict-slide { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 12px; }
  .xp .is-conds .xp-dict-media { aspect-ratio: 16 / 10; }
  .xp .is-conds .xp-dict-list.is-one { padding: 0 6px 8px; }
  .xp .is-conds .xp-dict-tabs { justify-content: flex-start; }
}

/* ---------------------------------------------------------------------------
   GUT · the four core jobs, in designexplore science's "From your genes"
   carousel (phenome-store science/science.css .sci-learn): a night band lit
   from its edges, reading cards that scroll
   sideways, glass keys on the photographs, a rail of one chapter per card.
   ------------------------------------------------------------------------ */
.xp .xp-learn {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, #03050c 0%, #03050c 84%, #0a1430 100%);
  padding: clamp(74px, 7.4vw, 124px) 0 clamp(60px, 6vw, 96px);
}
.xp .xp-learn-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  box-shadow: inset 0 0 90px 24px rgba(79, 114, 217, .55), inset 0 0 220px 60px rgba(138, 174, 255, .16);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
}
.xp .xp-learn-glow::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 45% at 50% 38%, rgba(79, 114, 217, .22), transparent 70%); }
.xp .xp-two-h { margin: 0; font-size: clamp(34px, 4.2vw, 62px); line-height: 1.04; font-weight: 600; letter-spacing: -.03em; color: #fff; }
.xp .xp-two-h > span { display: block; }
.xp .xp-two-h .lead { color: rgba(255, 255, 255, .58); }
.xp .xp-car { position: relative; margin-top: clamp(34px, 3.6vw, 54px); --card: clamp(268px, 29.7vw, 427px); --gut: max(var(--x-gut), calc((100vw - var(--ph-content-max)) / 2)); }
.xp .xp-car-track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--gut); scroll-padding-inline: var(--gut); scrollbar-width: none; cursor: grab;
}
.xp .xp-car-track::-webkit-scrollbar { display: none; }
.xp .xp-car-track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.xp .xp-car-track.is-drag * { pointer-events: none; }
.xp .xp-read { flex: 0 0 auto; width: var(--card); scroll-snap-align: start; }
.xp .xp-read-media {
  position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, #0d1531 0%, #060a1a 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.xp .xp-read-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.xp .xp-read-t { display: flex; gap: .5em; margin: 22px 0 0; font-size: clamp(21px, 1.6vw, 23px); line-height: 1.26; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.xp .xp-read-n { flex: none; color: inherit; font-variant-numeric: tabular-nums; }
.xp .xp-read > p { margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .76); }
.xp .xp-car-btn {
  position: absolute; top: calc(var(--card) / 2); z-index: 2; margin-top: -22px;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background .2s ease, opacity .2s ease;
}
.xp .xp-car-btn:hover { background: rgba(255, 255, 255, .26); }
.xp .xp-car-btn[disabled] { opacity: .25; cursor: default; }
.xp .xp-car-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.xp .xp-car-btn.is-prev { left: 12px; }
.xp .xp-car-btn.is-next { right: 12px; }
.xp .xp-car-foot { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); margin-top: clamp(28px, 3vw, 44px); }
.xp .xp-car-count { margin: 0; display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.xp .xp-car-count b { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.xp .xp-car-count span { font-size: 17px; color: rgba(255, 255, 255, .58); }
.xp .xp-car-rail { flex: 1; display: flex; gap: clamp(5px, .6vw, 9px); }
.xp .xp-car-seg { flex: 1; position: relative; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-appearance: none; appearance: none; --t: .6; }
.xp .xp-car-seg::before, .xp .xp-car-seg i { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 5px; margin-top: -2.5px; border-radius: 99px; }
.xp .xp-car-seg::before { background: rgba(255, 255, 255, .18); transform: scaleY(var(--t)); transition: background .25s ease, transform .35s var(--x-ease); }
.xp .xp-car-seg i { background: #fff; transform: scaleX(var(--f, 0)) scaleY(var(--t)); transform-origin: left center; transition: transform .5s var(--x-ease); }
.xp .xp-car-seg:hover::before { background: rgba(255, 255, 255, .4); }
.xp .xp-car-seg.is-on { --t: 1; }
@media (max-width: 860px) { .xp .xp-car { --card: min(82vw, 420px); } .xp .xp-car-btn { display: none; } }
@media (prefers-reduced-motion: reduce) { .xp .xp-car-seg i { transition: none; } }

/* ---- bacteria dictionary (gut, oral), compact: a
   small photo beside the group's species, two columns of them, every group
   tab a capsule (shared above), so heading, tabs and one plate fit a screen */
.xp .xp-dict-sec:has(.xp-dict:not(.is-conds)) { --d-sw: min(1180px, 88vw); padding-top: clamp(48px, 4.4vw, 64px); padding-bottom: clamp(44px, 4vw, 60px); }
.xp .xp-dict:not(.is-conds) .xp-dict-tabs { margin: clamp(22px, 2.2vw, 32px) auto 24px; }
.xp .xp-dict-sec:has(.xp-dict:not(.is-conds)) .xp-lede { margin-top: 14px; }
.xp .xp-dict:not(.is-conds) .xp-dict-slide {
  display: grid; grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); gap: clamp(24px, 3vw, 44px); align-items: center;
  padding: 16px; border-radius: 26px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); box-sizing: border-box;
}
.xp .xp-dict:not(.is-conds) .xp-dict-media { aspect-ratio: 4 / 3; border-radius: 16px; }
.xp .xp-dict:not(.is-conds) .xp-dict-media::after, .xp .xp-dict:not(.is-conds) .xp-dict-glass { display: none; }
.xp .xp-dict:not(.is-conds) .xp-dict-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; margin: 0; padding: 4px 16px 4px 0; }
.xp .xp-dict:not(.is-conds) .xp-dict-list li { padding-top: 12px; }
.xp .xp-dict:not(.is-conds) .xp-dict-list h3 { font-size: 17px; line-height: 1.3; }
.xp .xp-dict:not(.is-conds) .xp-dict-list p { margin-top: 6px; font-size: 15px; line-height: 1.45; }
@media (max-width: 760px) {
  .xp .xp-dict:not(.is-conds) .xp-dict-slide { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 12px; }
  .xp .xp-dict:not(.is-conds) .xp-dict-media { aspect-ratio: 16 / 10; }
  .xp .xp-dict:not(.is-conds) .xp-dict-list { grid-template-columns: minmax(0, 1fr); padding: 0 6px 8px; }
  .xp .xp-dict .xp-dict-tabs { justify-content: flex-start; }
}

/* Phones: the inheritance cards' icon sits above the title, so a title that
   is a whole sentence has the card's width and stays within three lines. */
@media (max-width: 640px) {
  .xp .xp-help-ic { position: static; display: block; margin-bottom: 14px; width: 34px; }
  .xp .xp-help-t { padding-right: 0; }
}

/* REFERENCES (2026-10-09): the papers from Prof Adil's list, each row the
   original paper by its DOI. The card drops its photo so a long list sits
   level with Our standards; the arrow says the row leaves the site. */
.xp .xp-pcard.is-refs { padding: 16px; }
.xp .xp-pcard.is-refs .xp-pcard-body { padding-top: clamp(24px, 2.4vw, 34px); }
.xp .xp-pcard.is-refs li { align-items: flex-start; }
.xp .xp-pcard.is-refs li > svg { margin-top: 1px; }
.xp .xp-pcard.is-refs li a { position: relative; flex: 1; min-width: 0; padding-right: 32px; }
.xp .xp-pcard.is-refs li a::after {
  content: ""; position: absolute; top: 3px; right: 2px; width: 18px; height: 18px;
  background: currentColor; color: var(--x-navy);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: translate .3s var(--x-ease);
}
.xp .xp-pcard.is-refs li a:hover::after { translate: 2px -2px; color: var(--x-acc); }
.xp .xp-pcard.is-refs li a span { margin-top: 4px; font-size: 15px; }
