/* =========================================================================
   Glucagon Research — home v5 (v4 + a lead and a paragraph under each billboard)
   Loads after tokens.css / base.css / components.css. Adds no new colours.
   Sections: hero · shop · billboards A–F
   ========================================================================= */

main { display: block; }
.nowrap { white-space: nowrap; }

/* -------------------------------------------------------------------------
   1. Hero — words left in clear space, photograph right, bleeding top+right
   ---------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 48fr 52fr;
  min-height: clamp(480px, 58vh, 640px);
  background: #fff;
}
.hero__copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--s-12) var(--s-9) var(--s-12)
           max(var(--gutter), calc((100vw - var(--container-wide)) / 2 + var(--gutter)));
}
.hero__title {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(44px, 4.55vw, 66px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--brand-graphite);
  text-wrap: balance;
}
.hero__line {
  margin: var(--s-7) 0 0;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.5;
  color: var(--text-soft);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-9); }
.hero__photo { position: relative; overflow: hidden; background: var(--surface); }
.hero__photo img {
  /* absolutely positioned: a % height on a grid item falls back to the image's
     natural 4:5 height and stretches the whole hero to ~930px+ */
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: 46% 64%;
}

/* -------------------------------------------------------------------------
   2. Shop — seven tiles, 4 + 3
   ---------------------------------------------------------------------- */
.shop { padding-block: var(--s-13) var(--s-9); }
.shop__title {
  margin: 0 0 var(--s-9);
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--brand-graphite);
}
.tiles {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-5);
}
.tile {
  grid-column: span 3;
  display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-7) var(--s-7) var(--s-7);
  color: inherit; text-decoration: none;
  transition: transform 200ms var(--ease), background 200ms var(--ease);
}
.tile:nth-child(n+5) { grid-column: span 4; }
.tile:hover { background: var(--surface-2); transform: translateY(-2px); }
.tile:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* the cut-outs carry ~12% white air top and bottom; oversize and clip it */
.tile__media {
  display: flex; justify-content: center; align-items: center;
  height: 300px; margin: 0 0 var(--s-6);
  overflow: hidden;
}
.tile__media img {
  display: block; width: auto; height: 128%; max-width: none;
  mix-blend-mode: multiply;
  transition: transform 200ms var(--ease);
}
.tile:hover .tile__media img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .tile, .tile__media img { transition: none; }
  .tile:hover { transform: none; }
  .tile:hover .tile__media img { transform: none; }
}
.tile__code {
  display: block; margin: 0;
  font-size: 24px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2;
  color: var(--brand-graphite);
}
.tile__line { display: block; margin: 4px 0 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.4; }
.tile__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4);
  margin: var(--s-6) 0 0;
}
.tile__price { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text); }
.tile__view {
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--brand);
  text-decoration: none;
}
.tile:hover .tile__view { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 3px; }

/* -------------------------------------------------------------------------
   3. Billboards — one image, one headline, one line, one link.
   The photograph bleeds to its viewport edge: no radius, no border, no
   shadow, no text on it. Section height follows the image's own aspect.
   ---------------------------------------------------------------------- */
.bb {
  display: grid;
  align-items: center;
  margin-top: var(--s-13);
  background: #fff;
}
.bb:first-of-type { margin-top: 0; }
.shop + .bb { margin-top: var(--s-10); }

/* 16:9 — image 7 of 12 columns, words in the other 5 */
.bb--photo-right { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.bb--photo-left  { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.bb--photo-right .bb__photo { order: 1; }
.bb--photo-right .bb__copy  { order: 0; }
.bb--photo-left  .bb__photo { order: 0; }
.bb--photo-left  .bb__copy  { order: 1; }

/* 4:5 — image 5 of 12, so the section lands near 700px, not a full screen */
.bb--tall.bb--photo-right { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.bb--tall.bb--photo-left  { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

/* 1:1 — the closing beat, image 4 of 12 */
.bb--square.bb--photo-right { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }

.bb__photo { min-width: 0; }
.bb__photo img {
  display: block; width: 100%; height: auto;
  border: 0; border-radius: 0; box-shadow: none;
}

/* the photograph column may stretch to the row: if a copy block ever runs a
   few px taller than the image's own aspect (a fallback font, a zoomed
   browser), the photo covers the difference instead of floating in white */
.bb__photo { align-self: stretch; }
.bb__photo img { height: 100%; object-fit: cover; object-position: center; }

/* the words: headline, lead, paragraph, link — one block, centred on the image */
.bb__copy {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  min-width: 0;
  padding: var(--s-4) clamp(32px, 5vw, 80px);
}
.bb--photo-right .bb__copy {
  padding-left: max(var(--gutter), calc((100vw - var(--container-wide)) / 2 + var(--gutter)));
}
.bb--photo-left .bb__copy {
  padding-right: max(var(--gutter), calc((100vw - var(--container-wide)) / 2 + var(--gutter)));
}
.bb__title {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(40px, 3.9vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--brand-graphite);
  text-wrap: balance;
}
.bb__lead {
  margin: var(--s-5) 0 0;
  max-width: 36ch;
  font-size: 18px;
  font-weight: var(--fw-medium);
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--text);
  text-wrap: pretty;
}
.bb__para {
  margin: var(--s-5) 0 0;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-soft);
  text-wrap: pretty;
}
.bb__link {
  display: inline-block; gap: 0;
  margin-top: var(--s-6);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.bb__link:hover { color: var(--brand-hover); text-decoration-color: var(--brand-hover); }
.bb__link:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 2px; }
.bb__foot {
  margin: var(--s-6) 0 0;
  max-width: 52ch;
  font-size: 12px; line-height: 1.4;
  color: var(--n-500);
}

/* C — full-bleed 21:9 band, words beneath it in two columns:
   headline + lead on the left, paragraph + link on the right */
.bb--band { grid-template-columns: 1fr; }
.bb--band .bb__photo { align-self: auto; }
.bb--band .bb__photo img { aspect-ratio: 21 / 9; height: auto; object-fit: cover; object-position: center; }
.bb--band .bb__copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--s-11);
  align-items: start;
  padding: var(--s-9) var(--gutter) 0;
}
.bb--band .bb__col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.bb--band .bb__col--para { padding-top: 10px; }
.bb--band .bb__title { max-width: 20ch; }
.bb--band .bb__para { margin-top: 0; }

/* F — the closing beat: smaller headline, one line, the link; then the footer */
.bb--square { margin-top: var(--s-13); margin-bottom: var(--s-13); }
.bb--square .bb__title { font-size: clamp(30px, 2.8vw, 40px); max-width: 16ch; }
.bb--square .bb__lead { margin-top: var(--s-5); max-width: 34ch; }

/* -------------------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .tile__media { height: 240px; }
  .bb__copy { padding: var(--s-7) clamp(24px, 4vw, 56px); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__photo { order: 0; }
  .hero__photo img { position: static; aspect-ratio: 4 / 5; height: auto; object-position: center; }
  .hero__copy { order: 1; padding: var(--s-9) var(--gutter) var(--s-10); }
  .hero__title { max-width: 12ch; }
  .hero__br { display: none; }
  .hero__line { max-width: 34ch; }
  .hero__actions { margin-top: var(--s-8); }
  .hero__actions .btn { flex: 1 1 auto; }

  .shop { padding-block: var(--s-11) var(--s-9); }
  .tiles { gap: var(--s-4); }
  .tile { grid-column: span 6 !important; padding: var(--s-6) var(--s-5) var(--s-6); }
  .tile:last-child { grid-column: span 12 !important; }
  .tile__media { height: 200px; }
  .tile__code { font-size: 22px; }

  /* billboards stack: photograph first, full width, then the words */
  .bb, .bb--tall, .bb--square, .bb--band { grid-template-columns: 1fr !important; margin-top: var(--s-11); }
  .shop + .bb { margin-top: var(--s-8); }
  .bb__photo { order: 0 !important; }
  .bb__copy  { order: 1 !important; padding: var(--s-8) var(--gutter) 0 !important; }
  .bb--band .bb__photo img { aspect-ratio: 16 / 9; }
  .bb--band .bb__copy { grid-template-columns: 1fr; }
  .bb--band .bb__col--para { padding-top: 0; }
  .bb--band .bb__para { margin-top: var(--s-5); }
  .bb--square { margin-bottom: var(--s-11); }
  .bb--square .bb__photo img { aspect-ratio: 1 / 1; }
  .bb__title { font-size: clamp(36px, 10.5vw, 48px); }
}

/* =========================================================================
   v6 — the original's words in the v5 layout. Two additions, both type only:
   A carries the six tests as a ledger, D carries three plain pills.
   No hairlines, no cards, no icons.
   ========================================================================= */

/* plain text pills — a tint and a radius, no border */
.pills {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--s-3);
}
.pills li {
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  font-size: 13px; font-weight: var(--fw-semibold); line-height: 1.3;
  color: var(--text-soft);
  white-space: nowrap;
}
.hero__pills { margin-top: var(--s-7); }
.bb__pills  { margin-top: var(--s-6); }

/* A — the six tests: name and note on the left, method in spaced caps on the
   right, rows kept apart by spacing alone */
.tests {
  list-style: none; margin: var(--s-6) 0 0; padding: 0;
  width: 100%; max-width: 62ch;
  display: grid; row-gap: var(--s-3);
}
.tests li {
  display: flex; align-items: baseline; gap: var(--s-5);
  font-size: 15px; line-height: 1.45;
  color: var(--text-soft);
  text-wrap: pretty;
}
.tests__what { flex: 1 1 auto; min-width: 0; }
.tests__what strong { font-weight: var(--fw-semibold); color: var(--text); margin-right: 6px; }
.tests__method {
  flex: none; margin-left: auto;
  font-size: 11px; font-weight: var(--fw-semibold);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--n-500);
}

/* A's copy block outgrows a 16:9 photograph, so the same file is cropped 4:5
   (bb--tall already gives it 5 of 12 columns); the vial sits right of centre */
.bb--tests .bb__photo img { aspect-ratio: 4 / 5; height: 100%; object-fit: cover; object-position: 76% center; }
.bb--tests .bb__link { margin-top: var(--s-7); }
.bb--tests .bb__foot { margin-top: var(--s-7); }

@media (max-width: 900px) {
  .bb--tests .bb__photo img { aspect-ratio: 4 / 5; }
  .tests { max-width: none; row-gap: var(--s-4); }
}

/* =========================================================================
   v7 — D, E and F stop alternating. One three-up editorial row on white:
   three photographs at 4:5 on one top edge, the words beneath them starting
   on one line and free to end on three different ones. No cards, no rules,
   no tint behind the type.
   ========================================================================= */

.trio {
  background: #fff;
  /* the footer adds --section-y of its own above itself, so the closing
     padding here is short by that much */
  padding-block: clamp(88px, 9.2vw, 132px) clamp(16px, 2vw, 28px);
}
.trio__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(32px, 2.8vw, 40px);
  row-gap: clamp(64px, 6vw, 88px);
  align-items: start;
}
.trio__col {
  display: flex; flex-direction: column; align-items: flex-start;
  min-width: 0;
}

/* the photographs: one aspect, one top edge, nothing drawn around them */
.trio__photo {
  width: 100%;
  margin: 0 0 var(--s-8);
  background: var(--surface);
  overflow: hidden;
}
.trio__photo img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover; object-position: center;
  border: 0; border-radius: 0; box-shadow: none;
}
/* the square macro trimmed to 4:5 — the window keeps the cap and the crimp
   seal whole, only the empty right-hand air is cut */
.trio__photo--macro img { object-position: 30% center; }

/* the words — same first line in all three columns */
.trio__title {
  margin: 0;
  font-size: clamp(30px, 2.35vw, 34px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.06;
  color: var(--brand-graphite);
  text-wrap: balance;
}
.trio__lead {
  margin: var(--s-5) 0 0;
  font-size: 17px;
  font-weight: var(--fw-medium);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--text);
  text-wrap: pretty;
}
.trio__para {
  margin: var(--s-4) 0 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-soft);
  text-wrap: pretty;
}
.trio__pills { margin-top: var(--s-6); }
.trio__link {
  display: inline-block;
  margin-top: var(--s-7);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.trio__link:hover { color: var(--brand-hover); text-decoration-color: var(--brand-hover); }
.trio__link:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 2px; }

/* tablet — two columns, the third opening the next row at the same width */
@media (max-width: 1080px) {
  .trio__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* phone — D, E, F in order, each photograph full width, then its words */
@media (max-width: 880px) {
  .trio {
    padding-block: var(--s-12) var(--s-9);
  }
  .trio__grid { grid-template-columns: 1fr; row-gap: var(--s-12); }
  .trio__photo { margin-bottom: var(--s-7); }
  .trio__title { font-size: clamp(30px, 8.2vw, 36px); }
}
