/* ============================================================
   HOME — page-specific section grids (wrap/section primitives and
   typography live in css/shared/site-shell.css).
   ============================================================ */

/* ---------- Hero ----------
   Full-bleed background video (placeholder footage) under the promise, the
   doses and the buy button. The transparent overlay header sits on top, so
   the top padding clears the fixed header (72px).
   Legibility comes from neutral black veils, never a brand tint: a top veil
   under the header, a left-to-right veil behind the text column and a
   bottom veil. */

.site-shell .hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: max(640px, 92vh);
  background: var(--ink);
  color: var(--on-ink);
}

.site-shell .hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 30%;
}

.site-shell .hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(to right, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.38) 45%, rgba(0, 0, 0, 0) 70%);
}

.site-shell .hero__in {
  position: relative;
  width: 100%;
  padding-top: calc(72px + 40px);
  padding-bottom: clamp(48px, 7vw, 96px);
}

.site-shell .hero__text {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(20px, 2.4vw, 28px);
}

/* Over footage and photos the headings stay white, not the taupe heading colour. */
.site-shell .hero .h-display,
.site-shell .band .h-2 {
  color: inherit;
}

.site-shell .hero .h-display {
  margin: 0;
  font-size: clamp(2.5rem, 5.6vw, 4.75rem);
  line-height: 1.1;
}

.site-shell .hero .dose-strip {
  width: 100%;
  max-width: 560px;
}

/* Over moving footage the ink hairline disappears; use a translucent white rule. */
.site-shell .hero .dose-strip--ink,
.site-shell .hero .dose-strip--ink li + li {
  border-color: rgba(255, 255, 255, 0.35);
}

.site-shell .hero .dose-strip--ink .dose-strip__amt small,
.site-shell .hero .dose-strip--ink .dose-strip__name {
  color: var(--on-ink);
}

.site-shell .hero__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.site-shell .hero__price {
  margin: 0;
  font: 400 0.9375rem/1.4 var(--font-sans);
  font-variant-numeric: tabular-nums;
  color: var(--on-ink);
}

.site-shell .hero__pause {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 4vw, 56px);
  bottom: clamp(20px, 4vw, 56px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.25);
  color: var(--on-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.site-shell .hero__pause svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.site-shell .hero__pause .i-play { display: none; }
.site-shell .hero__pause[aria-pressed="true"] .i-pause { display: none; }
.site-shell .hero__pause[aria-pressed="true"] .i-play { display: block; }

/* ---------- Split (image + text) ---------- */

.site-shell .split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
  align-items: center;
}

.site-shell .split__media {
  grid-column: span 5;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--mist);
  aspect-ratio: 5 / 4;
}

.site-shell .split__media--sq {
  aspect-ratio: 1 / 1;
}

.site-shell .split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-shell .split__body {
  grid-column: 7 / span 6;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* ---------- Shop ---------- */

.site-shell .shop {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
  align-items: start;
}

.site-shell .shop__intro {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.site-shell .offers {
  grid-column: 6 / span 7;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- Band (full-bleed photo) ----------
   The photograph carries the text on its own at desktop width (dark water on
   the left). The narrow crop pulls in the bright mist, so it is dimmed evenly
   below 820px with a flat neutral veil, never a brand tint. */

.site-shell .band {
  position: relative;
  overflow: hidden;
  color: var(--on-ink);
}

.site-shell .band > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-shell .band__in {
  position: relative;
  max-width: 600px;
  padding: var(--section) 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.site-shell .band__in p {
  margin: 0;
  max-width: 46ch;
  font: 400 clamp(1.0625rem, 1.25vw, 1.1875rem)/1.55 var(--font-sans);
}

@media (max-width: 820px) {
  .site-shell .band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.42);
  }

  .site-shell .band .wrap {
    position: relative;
    z-index: 2;
  }

  /* Taller crop: text on top, the swimmer visible underneath it. */
  .site-shell .band {
    min-height: 480px;
  }

  .site-shell .band > img {
    object-position: 78% 50%;
  }

  .site-shell .band__in {
    padding: 56px 0 200px;
  }
}

/* Light variant: a bright, sunlit photograph with an open wall above the
   products. The wall is too pale for white type at any sane veil, so here the
   text goes dark (body ink) straight on the photo and the products are left
   unshaded. The section has a height of its own so the products are never
   cropped down to the text. */

.site-shell .band--light {
  min-height: max(520px, 56.25vw); /* the whole 16:9 frame, never cropped from the top */
  color: var(--text);
}

.site-shell .band--light .h-2 {
  color: var(--text);
}

.site-shell .band--light > img {
  object-position: 50% 100%;
}

/* The open wall ends where the apple box starts (about 44% across), so the
   text column stops short of it and starts higher than a normal band. */
.site-shell .band--light .band__in {
  max-width: min(560px, 38vw);
  padding: clamp(40px, 6vw, 96px) 0;
}

/* Phones: the crop leaves no open wall, so the text stops overlaying and sits
   above the photo on the page background, and the photo shows the whole row. */
@media (max-width: 820px) {
  .site-shell .band--light {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .site-shell .band--light::before {
    content: none;
  }

  .site-shell .band--light > img {
    position: static;
    order: 2;
    height: auto;
    aspect-ratio: 3 / 2;
    object-position: 50% 100%;
  }

  .site-shell .band--light .band__in {
    max-width: none;
    padding: 56px 0 32px;
  }
}

/* ---------- People (three full-bleed portraits above the footer) ----------
   Three 4:5 photographs edge to edge with no gutter. On phones they become a
   swipeable row so each one keeps a usable size instead of shrinking to a
   thumbnail or stacking into a very long scroll. */

.site-shell .people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.site-shell .people__item {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--mist);
}

.site-shell .people__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 820px) {
  .site-shell .people {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 80vw;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .site-shell .people::-webkit-scrollbar {
    display: none;
  }

  .site-shell .people__item {
    scroll-snap-align: start;
  }
}

/* Formula/dose-table grid lives in css/shared/site-shell-components.css — it's shared
   with the product page's formula section. */

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .site-shell .split,
  .site-shell .formula,
  .site-shell .shop {
    grid-template-columns: 1fr;
  }

  .site-shell .split__media,
  .site-shell .split__body,
  .site-shell .shop__intro,
  .site-shell .offers {
    grid-column: auto;
  }

  .site-shell .split__media {
    max-width: 560px;
  }
}

@media (max-width: 820px) {
  .site-shell .hero {
    min-height: 0;
  }

  .site-shell .hero__in {
    padding-top: calc(60px + 32px);
    /* Room under the price for the pause button, so it never covers the CTA. */
    padding-bottom: 88px;
  }

  /* Text spans the full width on phones: dim the footage evenly as well. */
  .site-shell .hero__scrim {
    background:
      linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0.6) 100%);
  }
}
