/* The masthead — the dark opening band every page but the home page uses.
 *
 * The home page opens on the loop; the pages behind it used to open on a bare
 * headline on the page ground, which made the site feel like one designed page
 * and five documents. This is the same night, the same red, and one gradient
 * instead of a video: a page you arrive at should look like it belongs to the
 * page you left.
 *
 * Loaded by agency, learn, privacy and terms. It carries its own fallbacks for
 * every token because two of those pages do not load brand.css.
 */

.masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 88px 0 76px;
  background: var(--night, #FFF0F5);
  color: var(--night-ink, #3A2230);
}
.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(58% 130% at 88% -18%, rgba(194, 85, 122, 0.55) 0%, rgba(194, 85, 122, 0.16) 42%, rgba(194, 85, 122, 0) 68%),
    radial-gradient(56% 120% at 2% 132%, rgba(142, 48, 80, 0.40) 0%, rgba(142, 48, 80, 0) 64%),
    radial-gradient(40% 80% at 52% 118%, rgba(240, 169, 190, 0.12) 0%, rgba(240, 169, 190, 0) 70%),
    linear-gradient(158deg, #40202A 0%, #2A1419 46%, #3A1C27 100%);
}
/* One hairline of light along the top edge, the way a real gradient meets a
   hard edge. Without it the band reads as a black rectangle. */
.masthead::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.22) 38%, rgba(255, 255, 255, 0.06) 100%);
}

.masthead-inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}
/* The legal documents live in an 860px column; their masthead lines up with the
   text rather than with the nav. */
.masthead--doc .masthead-inner { max-width: 860px; }

.masthead .eyebrow {
  color: var(--brand-bright, #FF7180);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
}
.masthead .eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.masthead h1 {
  font-family: var(--serif, 'Newsreader', Georgia, serif);
  font-weight: 500;
  color: #fff;
  font-size: clamp(2.35rem, 4.6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin: 20px 0 0;
  max-width: 24ch;
  text-wrap: balance;
}

.masthead-lede,
.masthead p {
  color: var(--night-soft, rgba(255, 244, 242, 0.76));
  font-size: 1.06rem;
  line-height: 1.6;
  max-width: 58ch;
  margin: 20px 0 0;
}
.masthead-lede strong,
.masthead p strong { color: #fff; font-weight: 500; }

.masthead-meta {
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: rgba(255, 244, 242, 0.62);
  margin: 18px 0 0;
}
.masthead-meta strong { color: rgba(255, 255, 255, 0.9); }

/* The compact variant, for the two legal documents: the title, the version
   line, and nothing that invites a scroll. */
.masthead--doc { padding: 64px 0 52px; }
.masthead--doc h1 { font-size: clamp(2.35rem, 4.6vw, 3.5rem); margin-top: 14px; }

@media (max-width: 680px) {
  .masthead { padding: 60px 0 52px; }
  .masthead--doc { padding: 44px 0 40px; }
  .masthead h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .masthead-lede, .masthead p { font-size: 1rem; }
}
