/* Bloodwork hero matched to the supplied sunset reference, October 28, 2026. */
.bw-reference {
  --bw-reference-ivory: #f7f4ed;
  --bw-reference-gold: var(--pp-prime-gold);
  padding: 0;
  background: var(--bw-reference-ivory);
  color: var(--pp-prime-navy);
}
body.blood-work-page .site-header {
  background: #f7f4ed;
}
.bw-reference-main {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  aspect-ratio: 1942 / 900;
  overflow: hidden;
  background: var(--bw-reference-ivory);
}
/* Preserve the scenic crop and biomarker scale used by the approved hero. */
.bw-reference-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  margin: 0;
  overflow: hidden;
  /* A broad ivory transition joins the cleaned image to the page.
     Finish before the biomarker text, then soften only the outer edges. */
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, transparent 26%, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.32) 35%, rgba(0,0,0,0.62) 40%, rgba(0,0,0,0.88) 45%, #000 50.5%),
    linear-gradient(180deg, transparent 0, rgba(0,0,0,0.85) 12px, #000 20px, #000 76%, rgba(0,0,0,0.96) 82%, rgba(0,0,0,0.72) 90%, rgba(0,0,0,0.24) 97%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 0%, transparent 26%, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.32) 35%, rgba(0,0,0,0.62) 40%, rgba(0,0,0,0.88) 45%, #000 50.5%),
    linear-gradient(180deg, transparent 0, rgba(0,0,0,0.85) 12px, #000 20px, #000 76%, rgba(0,0,0,0.96) 82%, rgba(0,0,0,0.72) 90%, rgba(0,0,0,0.24) 97%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.bw-reference-scenery {
  position: absolute;
  top: 0;
  left: -12.0689655%;
  width: 124.137931%;
  max-width: none;
  height: auto;
  display: block;
  pointer-events: none;
}
.bw-reference-film { opacity: 0; }
.bw-reference-film.has-frame { opacity: 1; }
.bw-reference-copy {
  --bw-reference-copy-gap: 2.6cqw;
  position: relative;
  z-index: 1;
  width: 43%;
  /* Match the header logo artwork, including its transparent left inset. */
  margin-left: calc(var(--pp-page-gutter) + (var(--pp-header-height) - 10px) * 0.072265625);
  padding-top: 4.2cqw;
}
body.blood-work-page main .bw-reference-eyebrow {
  margin: 0 0 1.2cqw;
  color: var(--bw-reference-gold);
  font-size: 1cqw;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: none;
}
.bw-reference-title {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 5.25cqw;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.bw-reference-title > span { display: block; }
.bw-reference-title > span:nth-of-type(2) { color: var(--bw-reference-gold); }
/* Fit the complete subheader between the headline and the bottom benefits. */
body.blood-work-page main .bw-reference-description {
  width: min(100%, 38cqw);
  margin: clamp(24px, 2.2cqw, 32px) 0 0;
  color: var(--pp-prime-navy);
  font-size: clamp(16px, 1.3cqw, 20px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  text-wrap: pretty;
}
.bw-reference-benefits {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  width: max-content;
  max-width: 100%;
  gap: 0;
  margin: var(--bw-reference-copy-gap) 0 2.6cqw;
  padding: 0;
  list-style: none;
}
.bw-reference-benefits li {
  display: flex;
  align-items: center;
  gap: 0.85cqw;
  min-width: 0;
  margin: 0;
  padding: 0 1cqw 0 0;
  font-size: 1.02cqw;
  font-weight: 400;
  line-height: 1.4;
}
.bw-reference-benefits li + li { padding-left: 1.35cqw; border-left: 1px solid rgba(var(--pp-gold-rgb),0.3); }
.bw-reference-benefit-icon {
  display: grid;
  place-items: center;
  flex: 0 0 3.5cqw;
  height: 3.5cqw;
  border: 1px solid var(--bw-reference-gold);
  border-radius: 50%;
  color: var(--bw-reference-gold);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.35);
}
.bw-reference-benefit-icon svg { width: 1.7cqw; height: 1.7cqw; }
.bw-reference svg { fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.bw-reference-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.6cqw;
  min-height: 4.1cqw;
  padding: 0.8cqw 2.6cqw;
  border: 1px solid rgba(var(--pp-gold-rgb),0.35);
  border-radius: 999px;
  color: #f6f4f0;
  background: linear-gradient(135deg, #142a39, #0f1f2d);
  font-size: 1.3cqw;
  line-height: 1.4;
  text-decoration: none;
  transition: background 160ms ease;
}
.bw-reference-primary svg { width: 1.3cqw; height: 1.3cqw; }
.bw-reference-primary:hover { background: #263f50; }
.bw-reference a:focus-visible { outline: 2px solid #0f1f2d; outline-offset: 5px; }
.bw-reference-accessible { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Lift the headline and supporting statement by 15% of the desktop hero height.
   Keep the copy height fixed so the benefits remain anchored to the bottom. */
@media (min-width: 1101px) {
  .bw-reference-copy {
    --bw-reference-copy-gap: 1.4cqw;
    display: flex;
    flex-direction: column;
    min-height: calc(100cqw * 900 / 1942);
    padding-top: calc(100cqw * 315 / 1942 - 5.145cqw);
  }
  .bw-reference-benefits { margin: auto 0 0; }
  .bw-reference-primary { align-self: flex-start; margin-top: auto; }
  .bw-reference-primary:focus-visible { outline-color: var(--pp-prime-gold); outline-offset: -5px; }
}
@media (min-width: 1101px) and (max-width: 1440px) {
  .bw-reference-copy { margin-left: calc(clamp(14px, 2.2vw, 32px) + (var(--pp-header-height) - 24px) * 0.072265625); }
}
@media (min-width: 1101px) and (max-width: 1440px) and (hover: none) and (pointer: coarse) {
  .bw-reference-copy { margin-left: calc(var(--pp-page-gutter) + (var(--pp-header-height) - 24px) * 0.072265625); }
}
@media (max-width: 1100px) {
  .bw-reference-main { display: flex; flex-direction: column; aspect-ratio: auto; }
  .bw-reference-copy { --bw-reference-copy-gap: 28px; order: 0; width: min(100%, 690px); margin: 0 auto; padding: clamp(84px, 10vw, 110px) var(--pp-page-gutter) 30px; }
  body.blood-work-page main .bw-reference-eyebrow { margin-bottom: 20px; font-size: 0.72rem; }
  .bw-reference-title { font-size: clamp(2.5rem, 6.5vw, 4.4rem); line-height: 1.03; }
  body.blood-work-page main .bw-reference-description { width: min(100%, 560px); margin-top: 24px; font-size: clamp(1rem, 1.6vw, 1.125rem); }
  .bw-reference-benefits { width: 100%; margin: var(--bw-reference-copy-gap) 0 28px; grid-template-columns: 1fr 1fr 1.1fr; gap: 0; }
  .bw-reference-benefits li { gap: 10px; padding-right: 12px; font-size: 0.78rem; }
  .bw-reference-benefits li + li { padding-left: 14px; }
  .bw-reference-benefit-icon { flex-basis: 40px; height: 40px; }
  .bw-reference-benefit-icon svg { width: 23px; height: 23px; }
  .bw-reference-primary { gap: 25px; min-height: 54px; padding: 15px 27px; font-size: 0.95rem; }
  .bw-reference-primary svg { width: 20px; height: 20px; }
  .bw-reference-art {
    position: relative;
    order: 1;
    inset: auto;
    width: 100%;
    aspect-ratio: 1042 / 725;
    -webkit-mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,0.85) 12px, #000 20px, #000 76%, rgba(0,0,0,0.96) 82%, rgba(0,0,0,0.72) 90%, rgba(0,0,0,0.24) 97%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,0.85) 12px, #000 20px, #000 76%, rgba(0,0,0,0.96) 82%, rgba(0,0,0,0.72) 90%, rgba(0,0,0,0.24) 97%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-composite: add;
  }
}
@media (min-width: 601px) and (max-width: 1100px) {
  .bw-reference-scenery { left: auto; right: 0; width: 186.37236%; }
}
@media (max-width: 600px) {
  .bw-reference-scenery { inset: 0; width: 100%; height: 100%; object-fit: cover; }
}
@media (max-width: 540px) {
  .bw-reference-copy { padding-top: 84px; }
  .bw-reference-title { font-size: clamp(2rem, 8.9vw, 3rem); }
  .bw-reference-benefits li { flex-direction: column; align-items: flex-start; gap: 10px; padding-right: 8px; font-size: 0.73rem; }
  .bw-reference-benefits li + li { padding-left: 12px; }
  .bw-reference-benefit-icon { flex-basis: 38px; width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .bw-reference-primary { transition: none; }
}
