/*
 * LIGHT — Lab for Innovation in Global Health Technology
 * V4 — the beam
 *
 * ─── THE BEAM ────────────────────────────────────────────────────────────────
 * The wordmark's diagonal slice, measured off the logo artwork itself:
 *
 *     letter   run      drop    angle
 *     L         51.36    2.30   2.564°
 *     I         51.33    2.30   2.566°
 *     G         82.14    3.68   2.565°
 *     H        181.64    8.14   2.566°
 *     T         51.06    2.27   2.546°
 *                              ────────
 *                        mean   2.561°   (spread 0.02° — one deliberate cut)
 *
 * So: --beam-angle: -2.56deg, and --beam-rise: 4.47vw (tan 2.56° × 100vw), which
 * holds the exact angle at every viewport width instead of only one.
 *
 * The beam does the work that generic decoration used to: it is the section
 * divider, the emphasis mark, and the edge on every dark band. Used at most once
 * per screenful — a signature repeated everywhere stops being one.
 *
 * ─── DELIBERATELY ABSENT ─────────────────────────────────────────────────────
 * No italic serif for emphasis. No letter-spaced uppercase eyebrows. No ticker
 * bar or pulsing dot. No rounded-rectangle card grid, hover-lift or drop shadow.
 * No pill buttons. No · separators. No → glyph on every button. These are the
 * house style of AI-generated layouts; the beam replaces them.
 *
 * Type is one family (Archivo) at varying weight. Palette is the seven approved
 * brand colours — see tokens.
 */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap');

/* ─── Tokens ─────────────────────────────────────────────────────────────── */

:root {
  /* Approved brand palette */
  --ink:      #2B454C;   /* dark slate teal — type, dark bands, buttons */
  --accent:   #21606B;   /* deep teal — links, small accents, hover     */
  --teal:     #5598AB;   /* logo teal — the beam, fills, rules          */
  --sage:     #BBD2C0;
  --stone:    #C1C5BD;
  --ice:      #DAF0FA;
  --haze:     #DADBE3;

  /* Neutrals, cool-leaning to sit with the teals */
  --bg:       #F7F9F9;
  --bg-2:     #ECF1F2;
  --paper:    #FFFFFF;
  --ink-soft: #4A6C74;   /* secondary copy — 5.34:1 on --bg */
  --ash:      #5F7176;   /* muted copy — 4.79:1 on --bg     */
  --rule:     rgba(43, 69, 76, 0.16);

  /* The beam */
  --beam-angle: -2.56deg;
  --beam-rise:  4.47vw;

  --max: 1140px;
  --pad: clamp(22px, 5vw, 64px);
}

/* ─── Base ───────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

section { padding: clamp(56px, 7vw, 104px) 0; position: relative; }

/* ─── Type ───────────────────────────────────────────────────────────────── */

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
}
/* Sized so the opening sentence sets in two lines across the measure rather than
   stacking narrow — the manual break then puts "the way in" on its own line. */
h1 { font-size: clamp(32px, 4.3vw, 51px); }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: clamp(19px, 1.7vw, 22px); letter-spacing: -0.015em; line-height: 1.25; }

/* Section label. Lowercase, tight — the opposite of the tracked-out uppercase
   eyebrow this replaces. */
.label {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
}

.lede  { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--ink-soft); }
.muted { color: var(--ash); }
.small { font-size: 15px; }

/* ─── The beam: emphasis ─────────────────────────────────────────────────── */

/* Underline set at the wordmark's angle. Replaces italic serif for emphasis.
   The padding-bottom drops the beam clear of the descenders — without it the line
   cuts through letters like "y" and reads as a strike-through. */
.beam-mark {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  padding-bottom: 0.22em;
}
.beam-mark::after {
  content: '';
  position: absolute;
  left: -0.06em; right: -0.06em;
  bottom: 0.02em;
  height: 0.055em;
  background: var(--teal);
  transform: rotate(var(--beam-angle));
  transform-origin: left center;
}

/* ─── The beam: divider ──────────────────────────────────────────────────── */

/* A 2px rising line. The box is taller than the line so the rotated ends have
   somewhere to go; overflow hides the overshoot. */
/* Generous height so the rule never crowds the type above or below it. */
.beam-rule {
  position: relative;
  height: 34px;
  margin: clamp(30px, 4vw, 52px) 0 0;
  overflow: hidden;
}
/* When the rule opens a section rather than closing one. */
.beam-rule.lead-in { margin: 0 0 clamp(30px, 4vw, 52px); }
.beam-rule::after {
  content: '';
  position: absolute;
  left: -4%; right: -4%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(85, 152, 171, 0)   0%,
    rgba(85, 152, 171, .85) 18%,
    rgba(85, 152, 171, .85) 82%,
    rgba(85, 152, 171, 0)   100%);
  transform: rotate(var(--beam-angle));
}
.beam-rule.tight { height: 20px; }

/* ─── The beam: band edges ───────────────────────────────────────────────── */

/* --beam-rise is tan(2.56°) × 100vw, so these cuts hold the true angle at any
   width rather than only at one breakpoint. */
.beam-top    { clip-path: polygon(0 var(--beam-rise), 100% 0, 100% 100%, 0 100%); }
.beam-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--beam-rise)), 0 100%); }

/* ─── Buttons ────────────────────────────────────────────────────────────── */

/* Squared, not pills — the wordmark is blunt and geometric; buttons should be too. */
.btn {
  display: inline-block;
  padding: 15px 26px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: background .18s, color .18s;
}
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); }
.btn-line  { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bg); }
.btn-sm { padding: 10px 18px; font-size: 14px; border-width: 2px; }

/* ─── Masthead ───────────────────────────────────────────────────────────── */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.masthead-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 13px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
/* Full lockup, so the bar has to be tall enough for the two tagline lines to
   resolve. At 52px the wordmark is ~31px and the taglines ~5px — small, but
   legible, which is the point of showing the lockup rather than the wordmark. */
.masthead-in img { height: 52px; width: auto; }
@media (max-width: 560px) { .masthead-in img { height: 42px; } }
.masthead-right { display: flex; align-items: center; gap: 22px; }
.parent-link {
  font-size: 14px;
  color: var(--ash);
  text-decoration: none;
  white-space: nowrap;
}
.parent-link:hover { color: var(--accent); }
@media (max-width: 720px) { .parent-link { display: none; } }

/* ─── Hero ───────────────────────────────────────────────────────────────── */

.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); }
/* No max-width — the headline runs the full measure and breaks where the markup
   says to, not where a character count happens to land. */
.hero h1 { margin-bottom: 26px; }
.hero .lede { max-width: 52ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 26px; font-size: 15px; color: var(--ash); }

/* Hero photograph, cut along the beam at its lower edge. */
.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%;
  height: clamp(280px, 42vw, 460px);
  object-fit: cover;
  object-position: center 38%;
}
/* Anchor to the bottom of the frame so the crop takes from the top instead —
   the beam already slices the lower edge, and losing content there twice reads
   as a mistake. */
.hero-figure.crop-bottom img { object-position: center bottom; }
.figure-note {
  max-width: var(--max);
  margin: 14px auto 0;
  padding: 0 var(--pad);
  font-size: 14px;
  color: var(--ash);
}

/* ─── Figures (the numbers) ──────────────────────────────────────────────── */

/* Plain columns split by hairlines — no boxes, no tiles. */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.figure {
  padding: 4px clamp(14px, 2vw, 26px);
  border-left: 1px solid var(--rule);
}
.figure:first-child { border-left: 0; padding-left: 0; }
.figure .n {
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
}
.figure .d { font-size: 14px; line-height: 1.4; color: var(--ash); }
@media (max-width: 780px) {
  .figures { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .figure:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* ─── Two-column prose ───────────────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(26px, 5vw, 76px);
  align-items: start;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 22px; } }
.split-gap { margin-top: clamp(30px, 4vw, 48px); }

/* ─── What you get: a list, not a grid of cards ──────────────────────────── */

/* Two columns halve the scroll. Rules only — no boxes, no cards. Grid rows are
   equal height, so each row's top borders line up across both columns and read as
   one continuous rule. */
.terms {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(28px, 5vw, 68px);
  border-bottom: 1px solid var(--rule);
}
.term {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 12px;
  row-gap: 5px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  align-content: start;
}
.term .num {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.term .what { font-weight: 600; letter-spacing: -0.015em; }
.term .detail { grid-column: 2; font-size: 15px; color: var(--ash); line-height: 1.55; }
@media (max-width: 820px) {
  .terms { grid-template-columns: 1fr; }
  .term { padding: 19px 0; }
}

/* ─── Three paths ────────────────────────────────────────────────────────── */

.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 34px; }
.path {
  padding: 28px clamp(16px, 2vw, 28px);
  border-left: 1px solid var(--rule);
}
.path:first-child { border-left: 0; padding-left: 0; }
.path.is-light { background: var(--ink); color: var(--bg); border-left-color: var(--ink); }
.path.is-light .path-kind { color: var(--ice); }
.path.is-light .path-body { color: rgba(247, 249, 249, .84); }
.path-kind { font-size: 13px; font-weight: 700; color: var(--ash); margin-bottom: 12px; }
.path h3 { margin-bottom: 12px; }
.path-body { font-size: 15px; color: var(--ash); line-height: 1.55; margin: 0; }
@media (max-width: 820px) {
  .paths { grid-template-columns: 1fr; }
  .path { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; padding-right: 0; }
  .path.is-light { padding: 26px clamp(18px, 5vw, 26px); }
}

/* ─── Paired photographs ─────────────────────────────────────────────────── */

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); margin-top: 34px; }
.pair figure { margin: 0; }
.pair img { width: 100%; height: clamp(190px, 24vw, 290px); object-fit: cover; }
.pair figcaption { margin-top: 10px; font-size: 14px; color: var(--ash); }
@media (max-width: 720px) { .pair { grid-template-columns: 1fr; } }

/* ─── Voices ─────────────────────────────────────────────────────────────── */

/* Four quotes in two columns, separated by rules. No cards, no quote glyphs. */
.voices { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px, 5vw, 64px); margin-top: 30px; }
.voice { padding: 26px 0; border-top: 1px solid var(--rule); }
.voice blockquote {
  margin: 0 0 14px;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.45;
  letter-spacing: -0.012em;
  font-weight: 500;
}
.voice cite { font-style: normal; font-size: 14px; color: var(--ash); line-height: 1.45; display: block; }
.voice cite b { display: block; color: var(--ink); font-weight: 600; }
@media (max-width: 820px) { .voices { grid-template-columns: 1fr; } }

/* ─── Coalition (dark band) ──────────────────────────────────────────────── */

.coalition {
  background: var(--ink);
  color: var(--bg);
  /* extra top padding so the beam cut doesn't bite into the type */
  padding-top: calc(clamp(56px, 7vw, 104px) + var(--beam-rise));
}
.coalition h2 { color: var(--bg); }
.coalition .label { color: var(--ice); }
.coalition .lede { color: rgba(247, 249, 249, .8); }

.tier-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ice);
  margin: 34px 0 14px;
}
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(247,249,249,.16); }
.partner {
  background: var(--ink);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background .2s;
}
a.partner:hover { background: #35525A; }
.partner-mark { height: 60px; display: flex; align-items: center; margin-bottom: 16px; }
.partner-mark img { max-height: 36px; max-width: 100%; width: auto; }
/* NEC and GHC are dark-on-transparent, so they need a light plate to be visible
   on this band. They're colour marks and can't be knocked out to white. */
.partner-mark.plated {
  background: var(--bg);
  padding: 0 14px;
  height: 60px;
}
.partner-name { font-weight: 600; font-size: 15px; margin-bottom: 5px; }
.partner-role { font-size: 13px; color: rgba(247,249,249,.62); line-height: 1.45; }
@media (max-width: 820px) { .partners { grid-template-columns: 1fr; } }

.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(247,249,249,.16); margin-top: 1px; }
.tier { background: var(--ink); padding: 18px 20px; }
.tier b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.tier span { font-size: 13px; color: rgba(247,249,249,.6); line-height: 1.45; }
@media (max-width: 820px) { .tiers { grid-template-columns: 1fr; } }

/* ─── Apply ──────────────────────────────────────────────────────────────── */

.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 72px); align-items: start; }
@media (max-width: 820px) { .apply-grid { grid-template-columns: 1fr; } }

form.enquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.enquiry label { display: flex; flex-direction: column; gap: 6px; }
form.enquiry .full { grid-column: 1 / -1; }
form.enquiry span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
form.enquiry input {
  font-family: inherit;
  font-size: 16px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0;
}
form.enquiry input:focus { outline: 2px solid var(--accent); outline-offset: -2px; border-color: var(--accent); }
form.enquiry button { grid-column: 1 / -1; justify-self: start; }
form.enquiry .fineprint { grid-column: 1 / -1; font-size: 13px; color: var(--ash); margin: 0; }
@media (max-width: 560px) { form.enquiry { grid-template-columns: 1fr; } }

/* ─── FAQ ────────────────────────────────────────────────────────────────── */

.faq-label { margin-top: clamp(46px, 6vw, 72px); }
.faq { border-top: 1px solid var(--rule); margin-top: 0; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 19px 34px 19px 0;
  font-weight: 600;
  letter-spacing: -0.012em;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
/* Plus/minus drawn with borders — no icon font, no glyph */
.faq summary::before,
.faq summary::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  background: var(--accent);
  transition: transform .2s, opacity .2s;
}
.faq summary::before { width: 13px; height: 2px; margin-top: -1px; }
.faq summary::after  { width: 2px; height: 13px; margin-top: -6.5px; right: 9.5px; }
.faq details[open] summary::after { transform: scaleY(0); opacity: 0; }
.faq .answer { padding: 0 0 22px; font-size: 15.5px; color: var(--ink-soft); max-width: 66ch; line-height: 1.6; }

/* ─── Closing band ───────────────────────────────────────────────────────── */

.closing {
  background: var(--ink);
  color: var(--bg);
  padding-top: calc(clamp(56px, 7vw, 104px) + var(--beam-rise));
}
.closing h2 { color: var(--bg); max-width: 20ch; margin-bottom: 20px; }
.closing p { color: rgba(247,249,249,.82); max-width: 54ch; }
.closing .btn-solid { background: var(--ice); color: var(--ink); border-color: var(--ice); }
.closing .btn-solid:hover { background: var(--paper); border-color: var(--paper); }
.closing .btn-line { color: var(--bg); border-color: rgba(247,249,249,.5); }
.closing .btn-line:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.closing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.site-foot { background: var(--ink); color: rgba(247,249,249,.66); font-size: 14px; padding: 40px 0 44px; }
.site-foot a { color: rgba(247,249,249,.78); text-decoration: none; }
.site-foot a:hover { color: var(--ice); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 26px; align-items: flex-start; }
.foot-logo { width: 150px; height: auto; margin-bottom: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-legal { margin-top: 30px; font-size: 13px; color: rgba(247,249,249,.44); }

/* ─── Focus ──────────────────────────────────────────────────────────────── */

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.coalition a:focus-visible, .closing a:focus-visible, .site-foot a:focus-visible {
  outline-color: var(--ice);
}

/* Respect reduced-motion: nothing here animates on load, but transitions off. */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}
