/* ═══════════════════════════════════════════════════════════════════════
   Layout — masthead, footer, scroll cue.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Masthead ───────────────────────────────────────────────────────────
   Bare over the hero; it only earns a surface once the page has moved. */
.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px var(--gutter);
  transition: background var(--dur-slow) var(--ease-standard),
    border-color var(--dur-slow) var(--ease-standard),
    backdrop-filter var(--dur-slow) var(--ease-standard);
  border-bottom: 1px solid transparent;
}

.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(247, 244, 237, 0.82);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-standard);
  pointer-events: none;
}

.masthead.is-settled::before {
  opacity: 1;
}
.masthead.is-settled {
  border-bottom-color: var(--border-default);
}

/* Slides out of the way while the reader is moving down the page, returns
   the moment they reverse. */
.masthead.is-hidden {
  transform: translate3d(0, -100%, 0);
}
.masthead {
  transform: translate3d(0, 0, 0);
  transition: background var(--dur-slow) var(--ease-standard),
    border-color var(--dur-slow) var(--ease-standard),
    transform 620ms var(--ease-out);
}

.masthead__nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 34px);
}

/* The bar floats over the hero's blue sky before it settles, where the muted
   grey these links use elsewhere drops below readable contrast. */
.masthead__nav .link {
  color: var(--mrk-ink);
}
.masthead.is-settled .masthead__nav .link {
  color: var(--text-muted);
}
.masthead__nav .link:hover,
.masthead__nav .link:focus-visible {
  color: var(--mrk-blue);
}

/* The wordmark lives here now, for the whole page, rather than opening large
   in the hero and handing over to the mark on first scroll. It reads as a
   masthead in the newspaper sense — the name, set once, always present — and it
   gives the hero back the whole of its height for the thing that actually needs
   it, which is the question. */
.masthead__brand {
  position: relative;
  display: flex;
  justify-content: center;
}
.masthead__lockup .mrk-wordmark {
  --mrk-track: 0.14em;
  --mrk-dot-size: 0.15em;
  /* Raised twice, 15% each time, from an original 17/1.6/21 — so roughly a
     third larger than the figure this comment used to cite. Presence in the
     bar without crowding the nav or the actions on either side. */
  font-size: clamp(22.4px, 2.12vw, 27.6px);
  color: var(--mrk-ink);
  transition: color var(--dur-slow) var(--ease-standard);
}
/* Over the hero's blue the ink reads; once the bar has its ivory surface the
   brand blue is the stronger mark. */
.masthead.is-settled .masthead__lockup .mrk-wordmark {
  color: var(--mrk-blue);
}

.masthead__actions {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .masthead {
    grid-template-columns: auto 1fr;
    padding-block: 14px;
  }
  /* Below this width the reader navigates by scrolling, so the section
     links step aside and the mark takes the left slot outright. */
  .masthead__nav {
    display: none;
  }
  .masthead__brand {
    justify-content: flex-start;
  }
}

/* ── Footer ─────────────────────────────────────────────────────────────
   A full multi-column footer: the brand and its channels, then link columns,
   then a thin legal rule. The whole block carries brand blue, so it closes the
   page on the primary colour; everything on it is set in ivory. */
.footer {
  position: relative;
  z-index: 1;
  background: var(--mrk-blue);
  color: var(--text-on-blue);
  padding: clamp(48px, 7vw, 88px) var(--gutter) clamp(26px, 3.2vw, 42px);
}

.footer__inner {
  max-width: var(--maxw-wide);
  margin-inline: auto;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
}

/* Left-aligned now, a block rather than a centred signature — it anchors the
   columns beside it. */
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 16px;
}
/* The M. mark now signs off at the lower-right of the footer, stacked just above
   the "Reach further." note. White-on-transparent artwork, so it reads as the
   mark on the blue. Size unchanged. */
.footer__logo {
  display: block;
  height: 34px;
  width: auto;
}
.footer__signoff {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
/* The lockup itself, not the flat PNG, so the Signal Green dot is a real green
   dot rather than a spot the image filter would flatten to ivory with the rest.
   Ivory letters on the blue; the dot keeps its green on every ground by design. */
.footer__wordmark {
  color: var(--text-on-blue);
  font-size: clamp(28px, 3.6vw, 40px);
  --mrk-track: 0.08em;
  --mrk-dot-size: 0.14em;
}
.footer__tagline {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-base);
  color: var(--text-on-blue-muted);
}
.footer__desc {
  margin: 0;
  max-width: 42ch;
  font-size: var(--text-sm);
  line-height: var(--lh-relaxed);
  color: var(--text-on-blue-muted);
}
.footer__social {
  display: flex;
  gap: 12px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-on-blue);
  background: transparent;
  color: var(--text-on-blue);
  transition: background var(--dur-base) var(--ease-standard),
    color var(--dur-base) var(--ease-standard),
    border-color var(--dur-base) var(--ease-standard);
}
.footer__social a:hover,
.footer__social a:focus-visible {
  background: var(--mrk-ivory);
  color: var(--mrk-blue);
  border-color: var(--mrk-ivory);
}
.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__col-title {
  margin: 0 0 clamp(16px, 2vw, 22px);
  font-family: var(--font-tagline);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-on-blue);
}
.footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--text-sm);
  color: var(--text-on-blue-muted);
  transition: color var(--dur-base) var(--ease-standard);
}
.footer__link:hover,
.footer__link:focus-visible {
  color: var(--text-on-blue);
}
.footer__link svg {
  width: 16px;
  height: 16px;
  color: var(--text-on-blue);
  flex: none;
}
/* The address is a fact, not a link. */
.footer__link--static,
.footer__link--static:hover {
  color: var(--text-on-blue-muted);
  cursor: default;
}

.footer__bottom {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(20px, 2.4vw, 28px);
  border-top: 1px solid var(--border-on-blue);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: var(--text-xs);
  color: var(--text-on-blue-muted);
}
.footer__bottom p {
  margin: 0;
}
.footer__bottom-note {
  font-family: var(--font-display);
  font-style: italic;
}

@media (max-width: 860px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  .footer__top {
    grid-template-columns: 1fr;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
