/* ==========================================================================================
   StopMAID.com — site styles
   Palette: black / white / subtle red. The syringe serum (green) lives only in the asset.
   ========================================================================================== */

/* --- Fonts (self-hosted, subset to Latin, OFL licensed) --------------------------------- */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/InstrumentSerif-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/InstrumentSerif-Italic.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/InstrumentSans-Variable.woff2") format("woff2");
}

/* --- Tokens ----------------------------------------------------------------------------- */
:root {
  color-scheme: dark;
  --black: #000000;
  --white: #f4f4f2;
  --white-pure: #ffffff;
  --soft: rgba(244, 244, 242, 0.8);
  --muted: rgba(244, 244, 242, 0.62);
  --faint: rgba(244, 244, 242, 0.38); /* decoration only (icons, rules): 3.2:1 on black */
  --dim: rgba(244, 244, 242, 0.52); /* quietest colour for small text: 5.2:1 on black (WCAG AA) */
  --hair: rgba(244, 244, 242, 0.14);
  --red: #c1121f; /* brand red for dots, rules and large text (3.4:1 on black) */
  --red-text: #e23a45; /* the same red lifted for small text: 4.9:1 on black (WCAG AA) */
  --red-deep: #7a0f16;

  --font-serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", Times, serif;
  --font-sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(20px, 4.5vw, 64px);
  --header-h: 72px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* --- Reset (small) ---------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--black);
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img,
canvas,
svg,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p,
ul {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
::selection {
  background: var(--red);
  color: var(--white-pure);
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--white-pure);
  color: var(--black);
  font: 500 0.875rem/1 var(--font-sans);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

/* --- Film grain (very subtle; lifts pure black so it reads as material, not void) -------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* --- Header ----------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0) 100%);
}

/* The logo, "StopMAID.com": "Stop" and ".com" in white, "MAID" in the brand red. */
.wordmark {
  position: relative;
  z-index: 35; /* stays above the open mobile menu */
  display: inline-block;
  font: 600 clamp(1.125rem, 0.95rem + 0.4vw, 1.25rem) / 1 var(--font-sans); /* 18px on phones → 20px */
  letter-spacing: -0.005em;
  color: var(--white-pure);
  text-decoration: none;
  white-space: nowrap;
  padding-block: 6px; /* a 30px-plus tap target… */
  margin-block: -6px; /* …without moving anything */
}
.wordmark__maid {
  color: var(--red);
}

.site-nav__list {
  display: flex;
  gap: clamp(22px, 2.8vw, 44px);
}
.site-nav__list a {
  position: relative;
  display: inline-block;
  padding-block: 8px;
  font: 400 0.9rem/1 var(--font-sans);
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] {
  color: var(--white);
}
.site-nav__list a:hover::after,
.site-nav__list a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 35; /* stays above the open mobile menu */
  width: 44px;
  height: 44px;
  margin-right: -10px;
}
.menu-toggle__bar {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}
.menu-toggle__bar:nth-child(1) {
  top: 18px;
}
.menu-toggle__bar:nth-child(2) {
  top: 25px;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

@media (max-width: 899px) {
  .menu-toggle {
    display: block;
  }
  .site-nav {
    display: none;
  }
  .site-nav.is-open {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 30;
    background: var(--black);
    align-items: center;
    padding: calc(var(--header-h) + env(safe-area-inset-top, 0px)) var(--gutter) var(--gutter);
  }
  .site-nav.is-open .site-nav__list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .site-nav.is-open .site-nav__list li {
    border-top: 1px solid var(--hair);
  }
  .site-nav.is-open .site-nav__list li:last-child {
    border-bottom: 1px solid var(--hair);
  }
  .site-nav.is-open .site-nav__list a {
    display: block;
    padding: 0.32em 0;
    font: 400 clamp(2.6rem, 11vw, 4.6rem) / 1.15 var(--font-serif);
    letter-spacing: -0.01em;
    color: var(--white);
  }
  .site-nav.is-open .site-nav__list a::after {
    display: none;
  }
  .site-nav.is-open .site-nav__list a[aria-current="page"] {
    color: var(--red);
  }
  body.menu-open {
    overflow: hidden;
  }
}

/* --- Buttons ---------------------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  padding: 1em 1.75em;
  background: var(--white-pure);
  color: var(--black);
  font: 500 0.95rem/1 var(--font-sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid var(--white-pure);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.button svg {
  width: 0.95em;
  height: 0.95em;
  transition: transform 0.3s var(--ease-out);
}
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}
.button:hover svg {
  transform: translateX(3px);
}
.button:active {
  transform: translateY(0);
}

/* --- Hero ------------------------------------------------------------------------------- */
.hero__track {
  position: relative;
  height: 320vh;
  height: 320svh;
}
.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh; /* stable on mobile: no jump when browser toolbars collapse */
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 0.5fr);
  align-items: center;
  column-gap: 3vw;
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px)) var(--gutter) 0;
}
.hero__copy {
  max-width: 640px;
  position: relative;
  z-index: 2;
}
.hero__title {
  font: 400 clamp(2.9rem, 5.9vw + 0.6rem, 7.2rem) / 1.02 var(--font-serif);
  letter-spacing: -0.015em;
  color: var(--white-pure);
  text-wrap: balance;
  max-width: 10.5ch;
}
/* "MAID" in the home and Learn headlines, in the brand red (large text only: 3.4:1 on black). */
.text-accent {
  color: var(--red);
}
.hero__cta {
  margin-top: clamp(28px, 3.4vw, 44px);
}

/* The syringe: a portrait box (the frames' crop, 753:1600) whose top sits just under the header and
   whose bottom runs past the screen, so the stream falls out of the picture. */
.syringe {
  position: relative;
  height: min(104svh, 190vw);
  aspect-ratio: 753 / 1600;
  justify-self: center;
  align-self: start;
  margin-top: -0.5svh;
  transform: translateX(-36%);
  z-index: 1;
}
/* Everything in the rotor drifts together, very slowly: a barely-there camera push-in. The syringe
   itself never turns; only the injection plays, on scroll. */
.syringe__rotor {
  position: absolute;
  inset: 0;
  transform-origin: 48% 40%;
}
.syringe.is-live .syringe__rotor {
  animation: syringe-drift 34s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}
@keyframes syringe-drift {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.045) translate3d(-0.9%, 0.5%, 0);
  }
}
.syringe__poster,
.syringe__canvas,
.syringe__glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* The canvas first draws exactly the poster, so the swap is invisible. */
.syringe.is-live .syringe__poster {
  visibility: hidden;
}
/* The serum's glow: a soft bloom screened over the frame, breathing slowly. */
.syringe__glow {
  mix-blend-mode: screen;
  opacity: 0.5;
  pointer-events: none;
}
.syringe.is-live .syringe__glow {
  animation:
    syringe-glow-in 1.4s ease-out both,
    syringe-glow 5.6s ease-in-out 1.4s infinite;
}
@keyframes syringe-glow-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.34;
  }
}
@keyframes syringe-glow {
  0%,
  100% {
    opacity: 0.34;
  }
  50% {
    opacity: 0.72;
  }
}
/* A few tiny bubbles suspended in the serum; positioned over the barrel by hero.js. */
.syringe__bubbles {
  position: absolute;
  mix-blend-mode: screen;
  pointer-events: none;
}
.syringe.is-idle .syringe__rotor,
.syringe.is-idle .syringe__glow {
  animation-play-state: paused;
}

.hero__progress {
  position: absolute;
  right: calc(var(--gutter) / 2);
  top: 50%;
  width: 1px;
  height: 28vh;
  background: var(--hair);
  transform: translateY(-50%);
  z-index: 3;
}
.hero__progress span {
  position: absolute;
  inset: 0;
  background: var(--red);
  transform-origin: top;
  transform: scaleY(var(--p, 0));
}

/* Scroll cue: a thin line at the bottom centre that breathes until the visitor scrolls. */
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: 1px;
  height: 44px;
  transition: opacity 0.5s ease;
  z-index: 3;
}
/* The breathing line is a pseudo-element, so its animated opacity can't override the fade-out below. */
.hero__cue::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(244, 244, 242, 0) 0%, rgba(244, 244, 242, 0.7) 100%);
  transform-origin: top;
  animation: cue-breathe 2.4s var(--ease-out) infinite;
}
.hero__cue.is-hidden {
  opacity: 0;
}
.hero__cue.is-hidden::before {
  animation-play-state: paused;
}
@keyframes cue-breathe {
  0% {
    transform: scaleY(0.2);
    opacity: 0;
  }
  45% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

@media (max-width: 899px) {
  .hero__track {
    height: 280vh;
    height: 280svh;
  }
  .hero__stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    align-items: start;
    row-gap: 0;
    padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 2vh);
    padding-bottom: 0;
  }
  .hero__copy {
    max-width: none;
    padding-top: 2vh;
  }
  .hero__title {
    font-size: clamp(2.7rem, 12.5vw, 4.4rem);
    max-width: 9.5ch;
  }
  .syringe {
    height: min(80svh, 172vw);
    justify-self: end;
    align-self: start;
    transform: none;
    /* Pulled up beside the headline: the body runs top-right → bottom-left, so only the plunger's
       end rises into the copy's row, at the right, clear of the text. */
    margin-top: -18svh;
    margin-right: -3vw;
  }
  .hero__progress {
    right: 8px;
    height: 18vh;
  }
}

/* Phones held sideways: too short to stack, so the copy and the syringe sit side by side. */
@media (max-width: 899px) and (max-height: 520px) and (orientation: landscape) {
  .hero__stage {
    grid-template-columns: minmax(0, 0.6fr) minmax(0, 0.4fr);
    grid-template-rows: none;
    align-items: center;
    padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  }
  .hero__copy {
    padding-top: 0;
  }
  .hero__title {
    font-size: clamp(2.2rem, 6.4vw, 3.4rem);
  }
  .syringe {
    height: 100svh;
    justify-self: center;
    margin-top: -4svh;
    margin-right: 0;
  }
}

/* Reduced motion: single static viewport, no scroll scrubbing, no progress rule. */
@media (prefers-reduced-motion: reduce) {
  .hero__track {
    height: 100vh;
    height: 100svh;
  }
  .hero__progress,
  .hero__cue {
    display: none;
  }
  .site-nav__list a,
  .site-nav__list a::after,
  .menu-toggle__bar,
  .button,
  .button svg,
  .carousel__button,
  .carousel__card,
  .carousel__media img,
  .carousel__more,
  .article-list__media img,
  .qa__toggle,
  .qa__toggle::before,
  .qa__toggle::after,
  .qa__details::details-content,
  .footer-nav__list a,
  .contact-email a {
    transition: none;
  }
  .carousel__track {
    scroll-behavior: auto;
  }
  .about-portrait,
  .about-intro__copy,
  .about-continue__arrow,
  .syringe__rotor,
  .syringe__glow {
    animation: none;
  }
  .about-portrait__arc {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* --- Generic pages ---------------------------------------------------------------------- */
.page {
  min-height: 72vh;
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(48px, 10vh, 120px)) var(--gutter) clamp(64px, 14vh, 160px);
  max-width: calc(72ch + 2 * var(--gutter));
}
.page-title {
  font: 400 clamp(2.6rem, 6.4vw, 5.4rem) / 1.03 var(--font-serif);
  letter-spacing: -0.015em;
  color: var(--white-pure);
  text-wrap: balance;
}
.page-header::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin-top: clamp(20px, 3vw, 32px);
  background: var(--red);
}
.page-body {
  margin-top: clamp(28px, 4vw, 48px);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--white);
}
.page-body > * + * {
  margin-top: 1.25em;
}
.page-body h2 {
  margin-top: 2.2em;
  font: 400 clamp(1.7rem, 3.2vw, 2.4rem) / 1.15 var(--font-serif);
  color: var(--white-pure);
}
.page-body > h2:first-child {
  margin-top: 0;
}
.page-body h3 {
  margin-top: 1.8em;
  font: 600 1.05rem/1.4 var(--font-sans);
  letter-spacing: 0.02em;
}
.page-body [id] {
  scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px); /* links like /privacy#cookies land below the fixed header */
}
.page-body a {
  color: var(--white-pure);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
.page-body ul,
.page-body ol {
  padding-left: 1.2em;
}
.page-body ul {
  list-style: disc;
}
.page-body li + li {
  margin-top: 0.4em;
}
.page-body blockquote {
  margin: 1.6em 0;
  padding-left: 1.2em;
  border-left: 1px solid var(--red);
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 1.35em;
  line-height: 1.35;
}
.page-body figure {
  margin: 2em 0;
}
.page-body figcaption {
  margin-top: 0.6em;
  font-size: 0.85rem;
  color: var(--muted);
}
.page-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.page-body th,
.page-body td {
  padding: 0.6em 0.4em;
  border-bottom: 1px solid var(--hair);
  text-align: left;
  vertical-align: top;
}
.page-body code {
  font: 0.92em/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--white-pure);
}

/* Legal pages (Privacy Policy, Terms of Service, Third-Party Licenses) */
.page-meta {
  margin-top: 1.2em;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-meta__label {
  color: var(--red-text);
}
.page-title__amp {
  font-style: italic;
  color: var(--muted);
}
.legal .page-body h2,
.legal .license {
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.legal-related {
  padding-top: 1.6em;
  border-top: 1px solid var(--hair);
  font-size: 0.9rem;
  color: var(--muted);
}
.license {
  padding: clamp(18px, 2.6vw, 28px) 0;
  border-top: 1px solid var(--hair);
}
.license + .license {
  margin-top: 0;
}
.license h3 {
  margin-top: 0;
  font: 400 1.5rem/1.2 var(--font-serif);
  color: var(--white-pure);
}
.license__facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.45em 1.4em;
  margin-top: 1em;
  font-size: 0.95rem;
}
.license__facts dt {
  font: 600 0.72rem/1.8 var(--font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.license__facts dd {
  min-width: 0;
  overflow-wrap: anywhere;
}
.license__details {
  margin-top: 1.2em;
  border: 1px solid var(--hair);
}
.license__details summary {
  padding: 0.85em 1.1em;
  cursor: pointer;
  font: 600 0.82rem/1.4 var(--font-sans);
  letter-spacing: 0.04em;
  color: var(--white-pure);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.8em;
}
.license__details summary::-webkit-details-marker {
  display: none;
}
.license__details summary::before {
  content: "+";
  flex: none;
  width: 1.1em;
  color: var(--red);
  text-align: center;
}
.license__details[open] summary::before {
  content: "\2013";
}
.license__details summary:focus-visible {
  outline: 1px solid var(--white-pure);
  outline-offset: -1px;
}
.license__text {
  margin: 0;
  padding: 0 1.1em 1.1em;
  font: 0.82rem/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 599px) {
  .license__facts {
    grid-template-columns: 1fr;
    gap: 0.15em 0;
  }
  .license__facts dd + dt {
    margin-top: 0.7em;
  }
}

/* Articles */
.article-list {
  margin-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--hair);
}
.article-list__item {
  border-bottom: 1px solid var(--hair);
}
.article-list__link {
  display: block;
  padding: clamp(20px, 3vw, 32px) 0;
  text-decoration: none;
}
.article-list__title {
  font: 400 clamp(1.6rem, 3vw, 2.3rem) / 1.15 var(--font-serif);
  color: var(--white-pure);
  transition: color 0.25s var(--ease-out);
}
.article-list__link:hover .article-list__title {
  color: var(--red);
}
.article-list__date {
  display: block;
  margin-top: 0.5em;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-list__excerpt {
  margin-top: 0.75em;
  color: var(--muted);
}
.article-list__link--media {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
}
.article-list__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d0d0d;
  border: 1px solid var(--hair);
}
.article-list__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.article-list__link:hover .article-list__media img {
  transform: scale(1.03);
}
@media (max-width: 599px) {
  .article-list__link--media {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Article pages (/articles/<uid>, written in Prismic) */
.article-header__kicker {
  font: 500 0.72rem/1 var(--font-sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.article-header__kicker a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 7px; /* 24px+ tap target without moving the title */
  margin-block: -7px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}
.article-header__kicker a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}
.article-header__kicker a:hover {
  color: var(--white);
}
.article-header__title {
  margin-top: clamp(18px, 2.4vw, 26px);
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  line-height: 1.06;
}
/* A title typed in all capitals gets a little letter-spacing so the capitals don't crowd each other
   (the build adds is-caps to the article's title, its card and its list entry). */
.article-header__title.is-caps,
.article-list__title.is-caps,
.carousel__title.is-caps {
  letter-spacing: 0.01em;
}
.article-header__summary {
  margin-top: clamp(16px, 2vw, 22px);
  max-width: 60ch;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  color: var(--soft);
}
/* Byline · date · last edited. Each item carries its red dot in front of it; the dot of whichever
   item starts a line falls in the clipped 28px strip, so a wrapped line never begins or ends with one. */
.article-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 6px;
  margin-top: clamp(18px, 2.4vw, 24px);
  margin-left: -28px;
  clip-path: inset(0 0 0 28px);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-header__item {
  position: relative;
  padding-left: 28px;
}
.article-header__item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 12px;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--red);
}
.article-header__author {
  color: var(--white);
}
.article-cover {
  margin: clamp(28px, 4vw, 44px) 0 0;
}
.article-cover img,
.article-figure img {
  max-width: 100%; /* the width attribute is the picture's own size: large ones fill the column, small ones are never enlarged */
  height: auto;
  background: #0d0d0d;
  border: 1px solid var(--hair);
}
/* Portrait (tall) pictures stay within about two-thirds of the screen's height, scaled evenly so
   they're never stretched; wide ones always fill the column. (The build adds the --portrait class
   when a picture is taller than it is wide.) */
.article-cover--portrait img,
.article-figure--portrait img {
  width: auto;
  max-height: 70vh;
  max-height: 70svh;
}
.article-figure__credit,
.page-body .article-figure__credit {
  margin-top: 8px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--dim);
}
/* The opening paragraph is set a little larger and brighter, as a lead-in to the article. */
.article-body > p:first-child:not(.article-note) {
  font-size: clamp(1.15rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  color: var(--white-pure);
}
.article-body h4,
.article-body h5,
.article-body h6 {
  margin: 1.6em 0 0;
  font: 600 1rem/1.4 var(--font-sans);
  color: var(--white-pure);
}
.article-body ol {
  margin: 0;
  list-style: decimal;
}
.article-body li::marker {
  color: var(--red-text);
}
.article-body pre {
  margin: 0;
  padding: 1em 1.2em;
  overflow-x: auto;
  border: 1px solid var(--hair);
  font: 0.9rem/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  white-space: pre-wrap;
}
.article-body .article-figure {
  margin: 2em 0;
}
.article-body .article-figure a {
  display: block;
}
.article-embed__provider {
  color: var(--dim);
}
/* Editor's note: a paragraph that starts "EDITOR'S NOTE" (scripts/prismic.mjs), in smaller gray type */
.article-body .article-note {
  margin-top: 2.2em;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted); /* 7:1 on black */
}
.page-body .article-quote {
  margin: 2em 0;
  padding-left: clamp(20px, 3vw, 32px);
  border-left: 1px solid var(--red);
}
.page-body .article-quote__text {
  margin: 0;
  padding: 0;
  border: 0;
  font: italic 400 clamp(1.6rem, 2.8vw, 2.3rem) / 1.2 var(--font-serif);
  letter-spacing: -0.01em;
  color: var(--white-pure);
  text-wrap: balance;
}
.article-quote__text p + p {
  margin-top: 0.6em;
}
.article-quote__text .fn-ref {
  font-size: 0.45em;
}
.page-body .article-quote__by {
  margin-top: 14px;
  font: 500 0.75rem/1.4 var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-body .article-stats {
  margin: 2em 0;
}
.page-body .article-stats__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 0 clamp(20px, 3vw, 36px);
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hair);
}
.page-body .article-stat {
  margin: 0;
  padding-top: clamp(18px, 2.4vw, 26px);
}
.article-stat__value {
  font: 400 clamp(2.4rem, 4.6vw, 3.6rem) / 1 var(--font-serif);
  letter-spacing: -0.02em;
  color: var(--white-pure);
  font-variant-numeric: lining-nums;
}
.article-stat__label {
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}
.page-body .article-stats__note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--dim);
}
.article-sources {
  margin-top: clamp(48px, 7vh, 80px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--hair);
}
.article-sources__title,
.article-more__title {
  font: 400 clamp(1.6rem, 2.4vw, 2.1rem) / 1.1 var(--font-serif);
  letter-spacing: -0.01em;
  color: var(--white-pure);
}
.article-sources__list {
  margin: 20px 0 0;
  padding-left: 1.6em;
  list-style: decimal;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}
.article-sources__list li {
  padding-left: 0.4em;
  scroll-margin-top: calc(var(--header-h) + 32px);
}
.article-sources__list li + li {
  margin-top: 1em;
}
.article-sources__list li::marker {
  color: var(--red-text);
  font-weight: 600;
}
.article-sources__list li:target {
  color: var(--white);
}
.article-sources__link {
  color: var(--white);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--hair);
  text-underline-offset: 0.22em;
  transition: text-decoration-color 0.2s ease;
}
.article-sources__link:hover,
.article-sources__link:focus-visible {
  text-decoration-color: var(--red);
}
/* A second link for the same source ("Also: …"), on its own line under the first */
.article-sources__also {
  display: block;
  margin-top: 0.25em;
}
.article-more {
  margin-top: clamp(56px, 8vh, 96px);
}
.article-more .article-list__title {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

/* --- Homepage sections ------------------------------------------------------------------ */
.wrap {
  width: min(100% - 2 * var(--gutter), 1280px);
  margin-inline: auto;
}
.section {
  padding-block: clamp(88px, 12vh, 168px);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 0.72rem/1 var(--font-sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}
.section-title {
  font: 400 clamp(2.4rem, 4.6vw, 4.6rem) / 1.02 var(--font-serif);
  letter-spacing: -0.015em;
  color: var(--white-pure);
  text-wrap: balance;
}
.accent {
  color: var(--red);
}

/* Figures */
.figures {
  border-top: 1px solid var(--hair);
}
.figures__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 48px);
}
.figure {
  border-top: 1px solid var(--hair);
  padding: clamp(22px, 3vw, 34px) 0 clamp(28px, 3.4vw, 44px);
}
.figures__grid .figure:first-child {
  border-top-color: transparent;
}
.figure__icon {
  width: 28px;
  height: 24px;
  color: var(--white);
}
.figure__icon--wide {
  width: 44px;
}
.figure__value {
  margin-top: clamp(24px, 3.4vw, 44px);
  font: 400 clamp(2.8rem, 4.4vw, 4.6rem) / 1 var(--font-serif);
  letter-spacing: -0.02em;
  color: var(--white-pure);
  font-variant-numeric: lining-nums;
}
.figure__text {
  margin-top: 14px;
  max-width: 30ch;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}
.figure--note {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(20px, 3vw, 40px);
  align-items: start;
  padding-top: clamp(28px, 4vw, 52px);
}
.figure--note .figure__icon {
  width: 28px;
  height: 28px;
  margin-top: 0.35em;
}
.figure__text--note {
  margin-top: 0;
  max-width: 34ch;
  font: 400 clamp(1.5rem, 2.5vw, 2.3rem) / 1.22 var(--font-serif);
  letter-spacing: -0.005em;
  color: var(--white);
}
.figures__question {
  max-width: 22ch;
  margin: clamp(72px, 12vh, 150px) auto 0;
  text-align: center;
  font: 400 clamp(2.1rem, 4.6vw, 4.6rem) / 1.06 var(--font-serif);
  letter-spacing: -0.015em;
  color: var(--white-pure);
  text-wrap: balance;
}

/* Articles carousel */
.carousel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hair);
}
.carousel__controls {
  display: flex;
  gap: 8px;
}
.carousel.is-empty .carousel__controls {
  visibility: hidden;
}
.carousel__button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hair);
  border-radius: 50%;
  color: var(--white);
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.carousel__button:hover {
  border-color: var(--white);
}
.carousel__button svg {
  width: 16px;
  height: 16px;
}
.carousel__track {
  position: relative; /* the slides' offsetLeft (used by carousel.js to scroll) is measured from here */
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * clamp(16px, 2vw, 28px)) / 3);
  gap: clamp(16px, 2vw, 28px);
  padding: clamp(24px, 3vw, 40px) 0 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar {
  display: none;
}
.carousel__slide {
  display: flex;
  min-width: 0;
  scroll-snap-align: start;
}
.carousel__card {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: clamp(260px, 30vw, 340px);
  padding: 22px 24px 24px;
  border: 1px solid var(--hair);
  color: var(--white);
  text-decoration: none;
  transition: border-color 0.35s var(--ease-out);
}
a.carousel__card:hover {
  border-color: rgba(244, 244, 242, 0.5);
}
a.carousel__card:focus-visible {
  outline-offset: -4px; /* the scrolling row would clip an outline drawn outside the card */
}
.carousel__card--media {
  padding: 0 0 24px;
}
.carousel__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d0d0d;
  border-bottom: 1px solid var(--hair);
}
.carousel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
a.carousel__card:hover .carousel__media img {
  transform: scale(1.03);
}
.carousel__card--media .carousel__date,
.carousel__card--media .carousel__title,
.carousel__card--media .carousel__excerpt {
  margin-inline: 24px;
}
.carousel__card--media .carousel__date {
  margin-top: 20px;
  padding-top: 0;
}
.carousel__dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}
.carousel__date {
  display: block;
  margin-top: auto;
  padding-top: 32px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.carousel__title {
  margin-top: 10px;
  font: 400 clamp(1.35rem, 1.9vw, 1.8rem) / 1.15 var(--font-serif);
  color: var(--white-pure);
}
.carousel__excerpt {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  font-size: 0.95rem;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
.carousel__more {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 16px;
  height: 16px;
  color: var(--faint);
  transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.carousel__card--media .carousel__more {
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: var(--white);
}
a.carousel__card:hover .carousel__more {
  color: var(--white);
  transform: translateX(3px);
}

/* Quote */
.quote {
  text-align: center;
}
.quote__figure {
  max-width: 38ch;
  margin: 0 auto;
}
.quote__text {
  margin: 0;
  font: italic 400 clamp(1.9rem, 3.6vw, 3.4rem) / 1.16 var(--font-serif);
  letter-spacing: -0.01em;
  color: var(--white-pure);
  text-wrap: balance;
}
.quote__text::before {
  content: "\201C" / "";
  display: block;
  margin-bottom: 0.18em;
  font-style: normal;
  font-size: 2.4em;
  line-height: 0.55;
  color: var(--red);
}
.quote__source {
  margin-top: clamp(22px, 3.2vw, 36px);
  font: 500 0.82rem/1.4 var(--font-sans);
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* What can we do? */
.care__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 110px);
  align-items: start;
}
.care__head {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.care__pulse {
  width: 120px;
  height: 24px;
  margin-bottom: clamp(20px, 3vw, 34px);
}
.care__body {
  max-width: 58ch;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--soft);
}
.care__body > p + p {
  margin-top: 1.4em;
}
.care__lede {
  font: 400 clamp(1.45rem, 2.2vw, 1.95rem) / 1.3 var(--font-serif);
  color: var(--white-pure);
}
.care__close {
  font: 400 clamp(1.3rem, 1.8vw, 1.6rem) / 1.3 var(--font-serif);
  color: var(--white-pure);
}
.care__body > p.care__close {
  margin-top: 1.25em; /* a closing line, set apart like the lede */
}

/* Q&A */
.qa__title {
  margin-bottom: clamp(32px, 4.4vw, 60px);
}
.qa__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hair);
}
.qa__item {
  border-bottom: 1px solid var(--hair);
}
.qa__details {
  interpolate-size: allow-keywords;
}
.qa__summary {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) 36px;
  align-items: center;
  gap: 16px;
  padding: clamp(20px, 2.6vw, 30px) 0;
  cursor: pointer;
  list-style: none;
}
.qa__summary::-webkit-details-marker {
  display: none;
}
.qa__summary:focus-visible {
  outline-offset: 6px;
}
.qa__num {
  font: 500 0.78rem/1 var(--font-sans);
  letter-spacing: 0.16em;
  color: var(--red-text);
  font-variant-numeric: tabular-nums;
}
.qa__question {
  font: 400 clamp(1.35rem, 2.2vw, 2rem) / 1.2 var(--font-serif);
  letter-spacing: -0.005em;
  color: var(--white-pure);
}
.qa__toggle {
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid var(--hair);
  border-radius: 50%;
  transition: border-color 0.3s var(--ease-out);
}
.qa__toggle::before,
.qa__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--white);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease-out);
}
.qa__toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.qa__summary:hover .qa__toggle {
  border-color: var(--white);
}
.qa__details[open] .qa__toggle {
  border-color: var(--red);
}
.qa__details[open] .qa__toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}
.qa__answer {
  max-width: 62ch;
  padding: 4px 0 clamp(26px, 3.2vw, 40px) calc(3.5rem + 16px);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--soft);
}
.qa__answer > * + * {
  margin-top: 1.1em;
}
.qa__bullets {
  padding: 0;
  list-style: none;
}
.qa__bullets li {
  position: relative;
  padding-left: 1.4em;
}
.qa__bullets li::before {
  content: "\2022";
  position: absolute;
  left: 0.2em;
  color: var(--red);
}
.qa__bullets li + li {
  margin-top: 0.6em;
}
@supports selector(::details-content) {
  .qa__details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.4s var(--ease-out), content-visibility 0.4s allow-discrete;
  }
  .qa__details[open]::details-content {
    block-size: auto;
  }
}

@media (max-width: 899px) {
  .care__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 6vw, 48px);
  }
  .care__head {
    position: static;
  }
  .carousel__track {
    grid-auto-columns: 78%;
  }
}
@media (max-width: 599px) {
  .figures__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .figure__text {
    max-width: none;
  }
  .figure--note {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 16px;
  }
  .carousel__track {
    grid-auto-columns: 86%;
  }
  .qa__summary {
    grid-template-columns: 2.4rem minmax(0, 1fr) 32px;
    gap: 12px;
  }
  .qa__toggle {
    width: 32px;
    height: 32px;
  }
  .qa__answer {
    padding-left: 0;
  }
}

/* --- Footer ----------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--hair);
  padding: clamp(48px, 7vh, 88px) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
}
.site-footer__top,
.site-footer__legal {
  width: min(100%, 1280px);
  margin-inline: auto;
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px clamp(32px, 5vw, 96px);
  align-items: start;
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(24px, 3vw, 32px);
  min-width: 0;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 24px clamp(36px, 5vw, 88px);
}
.footer-nav__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-nav__list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-block: 4px; /* 27px-tall tap targets; the 4px gap keeps the old spacing */
  font: 400 0.9rem/1.3 var(--font-sans);
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}
.footer-nav__list a:hover,
.footer-nav__list a[aria-current="page"] {
  color: var(--white);
}
.footer-nav__ext {
  width: 10px;
  height: 10px;
  opacity: 0.7;
}
.site-footer__legal {
  margin-top: clamp(40px, 6vh, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
@media (max-width: 899px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 599px) {
  .footer-nav {
    grid-template-columns: repeat(2, auto);
    justify-content: start;
  }
}

/* --- About page --------------------------------------------------------------------------- */
.about-intro {
  margin-top: clamp(28px, 4vw, 48px);
}
.about-intro__grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.about-portrait {
  position: relative;
  width: clamp(132px, 16vw, 192px);
  aspect-ratio: 1;
  flex: none;
  animation: about-rise 0.7s var(--ease-out) both;
}
.about-portrait__frame {
  position: absolute;
  inset: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(244, 244, 242, 0.05);
  overflow: hidden;
}
.about-portrait__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-portrait__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--white);
}
.about-portrait__arc {
  stroke-dasharray: 60 235;
  stroke-dashoffset: 60;
  animation: about-arc-draw 1.1s var(--ease-out) 0.15s forwards;
}
@keyframes about-arc-draw {
  to {
    stroke-dashoffset: 0;
  }
}
.about-intro__copy {
  animation: about-rise 0.7s var(--ease-out) 0.08s both;
}
@keyframes about-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.about-lede {
  font: 400 clamp(1.6rem, 3vw, 2.3rem) / 1.28 var(--font-serif);
  color: var(--white-pure);
  letter-spacing: -0.005em;
}
.about-continue {
  margin-top: 0.9em;
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.98rem;
  color: var(--muted);
}
.about-continue__arrow {
  width: 0.85em;
  height: 0.85em;
  flex: none;
  transform: rotate(90deg);
  animation: about-arrow-nudge 1.6s var(--ease-out) infinite;
}
@keyframes about-arrow-nudge {
  0%,
  100% {
    transform: rotate(90deg) translateX(0);
  }
  50% {
    transform: rotate(90deg) translateX(4px);
  }
}
@media (max-width: 599px) {
  .about-intro__grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }
}

/* --- Contact page -------------------------------------------------------------------------- */
.contact-email {
  margin-top: 0.6em;
}
.contact-email a {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font: 500 1.15rem/1 var(--font-sans);
  color: var(--white-pure);
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
  padding-bottom: 0.3em;
  transition: border-color 0.25s var(--ease-out);
}
.contact-email a:hover,
.contact-email a:focus-visible {
  border-color: var(--red);
}
.contact-email svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}
.contact-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  margin-top: clamp(32px, 5vw, 56px);
  list-style: none;
  padding: 0;
}
/* Topic cards are plain text (not links): only the email address above is clickable. */
.contact-topic__card {
  height: 100%;
  padding: clamp(26px, 3.2vw, 38px);
  background: var(--black);
}
.contact-topic__card svg {
  width: 26px;
  height: 26px;
  color: var(--white);
}
.contact-topic__title {
  display: block;
  margin-top: clamp(16px, 2vw, 22px);
  font: 500 1.05rem/1.3 var(--font-sans);
  color: var(--white-pure);
  letter-spacing: 0.01em;
}
.contact-topic__text {
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 36ch;
}
.contact-note {
  margin-top: clamp(28px, 4vw, 44px);
  font-size: 0.85rem;
  color: var(--dim);
  max-width: 48ch;
}
@media (max-width: 599px) {
  .contact-topics {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Learn page ---------------------------------------------------------------------------- */
.learn {
  --learn-gap: clamp(80px, 12vh, 160px);
}
/* A long reading page: a denser header fade so text scrolling underneath never shows through the
   wordmark. */
.page--learn .site-header {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.97) 0%, rgba(0, 0, 0, 0.9) 60%, rgba(0, 0, 0, 0) 100%);
}
.learn-intro {
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(40px, 9vh, 112px)) 0 clamp(64px, 10vh, 120px);
}
.learn-intro__title {
  max-width: 23ch; /* two long lines on wide screens, balanced; three on phones */
  margin-top: clamp(20px, 3vw, 30px);
  font: 400 clamp(2.9rem, 6.6vw, 6.6rem) / 1 var(--font-serif);
  letter-spacing: -0.02em;
  color: var(--white-pure);
  text-wrap: balance;
}

/* The three figures */
.learn-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(48px, 8vh, 96px);
  border-top: 1px solid var(--hair);
}
.learn-stat {
  padding-top: clamp(24px, 3.2vw, 40px);
}
.learn-stat__icon {
  --icon-h: clamp(40px, 3.2vw, 48px);
  display: block;
  height: var(--icon-h);
  color: var(--white);
  overflow: visible;
}
.learn-globe,
.learn-mind {
  width: var(--icon-h);
}
.learn-grid20 {
  width: calc(var(--icon-h) * 28 / 22);
}
.learn-globe__lines {
  opacity: 0.4;
}
.learn-globe__meridian {
  opacity: 0.75;
}
.learn-grid20__many {
  opacity: 0.45;
}
.learn-grid20__ring,
.learn-mind__ring {
  opacity: 0;
}
.learn-stat__value {
  margin-top: clamp(22px, 3vw, 36px);
  font: 400 clamp(3rem, 5.6vw, 5.4rem) / 1 var(--font-serif);
  letter-spacing: -0.02em;
  color: var(--white-pure);
  font-variant-numeric: lining-nums;
}
.learn-stat__shown {
  user-select: none; /* the readable copy is the visually hidden one beside it */
}
.learn-stat__value [data-count] {
  font-variant-numeric: lining-nums tabular-nums; /* steady width while it counts */
}
.learn-stat__label {
  margin-top: 12px;
  max-width: 24ch;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Footnote references */
.fn-ref {
  font: 600 0.6em/0 var(--font-sans); /* line-height 0: the raised numeral never spreads the lines */
  vertical-align: super;
}
.learn-quote .fn-ref {
  font-size: 0.45em;
}
.quote__source .fn-ref {
  font-size: 0.8em; /* the caption is already small */
}
.fn-ref a {
  /* vertical padding on an inline box enlarges the tap area without moving any text */
  padding: 0.6em 0.3em;
  color: var(--red-text);
  text-decoration: none;
  scroll-margin-top: calc(var(--header-h) + 120px);
}
.fn-ref a:hover,
.fn-ref a:focus-visible {
  text-decoration: underline;
}

/* Sections */
.learn-section {
  padding-block: var(--learn-gap);
  border-top: 1px solid var(--hair);
}
.learn-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 110px);
  align-items: start;
}
.learn-heading {
  max-width: 16ch;
  font: 400 clamp(2.2rem, 4.2vw, 4.1rem) / 1.04 var(--font-serif);
  letter-spacing: -0.015em;
  color: var(--white-pure);
  text-wrap: balance;
}
.learn-split > .learn-heading {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}
.learn-lede {
  max-width: 34ch;
  font: 400 clamp(1.45rem, 2.3vw, 2rem) / 1.32 var(--font-serif);
  color: var(--white);
}

/* The argument */
.learn-case__card {
  padding: clamp(24px, 3.4vw, 44px);
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(193, 18, 31, 0.07), rgba(193, 18, 31, 0) 65%);
}
.learn-case__pulse {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.learn-case__pulse path {
  fill: none;
  stroke: var(--red);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.learn-case__text {
  font: 400 clamp(1.6rem, 2.7vw, 2.35rem) / 1.28 var(--font-serif);
  letter-spacing: -0.005em;
  color: var(--white-pure);
}

/* The issue */
.learn-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(56px, 9vh, 104px);
}
.learn-method {
  padding-top: clamp(22px, 3vw, 32px);
  border-top: 1px solid var(--hair);
}
.learn-method__icon {
  display: block;
  width: clamp(48px, 4vw, 58px);
  height: clamp(48px, 4vw, 58px);
  color: var(--white);
  overflow: visible;
}
.learn-method p {
  max-width: 46ch;
  margin-top: clamp(18px, 2.4vw, 28px);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--soft);
}
.learn-em {
  font-weight: 600;
  color: var(--white-pure);
}

.learn-lede,
.learn-case__text,
.learn-method p,
.learn-prose > p {
  text-wrap: pretty; /* no one-word last lines where the browser supports it */
}

/* Statistics */
.learn-heading--center {
  max-width: 19ch;
  margin-inline: auto;
  text-align: center;
  font-size: clamp(2.4rem, 4.8vw, 4.8rem);
}
.learn-prose {
  max-width: 62ch;
  margin: clamp(48px, 8vh, 88px) auto 0;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--soft);
}
.learn-prose > * + * {
  margin-top: 1.5em;
}
.learn-quote {
  margin: clamp(40px, 6vh, 64px) 0;
  padding-left: clamp(20px, 3vw, 36px);
  border-left: 1px solid var(--red);
}
.learn-quote p {
  font: italic 400 clamp(1.8rem, 3.2vw, 2.9rem) / 1.18 var(--font-serif);
  letter-spacing: -0.01em;
  color: var(--white-pure);
  text-wrap: balance;
}
.learn-dotfield {
  margin: clamp(64px, 10vh, 120px) 0 clamp(40px, 6vh, 72px);
  color: rgba(244, 244, 242, 0.5);
}
.learn-dotfield svg {
  display: block;
  width: 100%;
  height: clamp(150px, 20vw, 240px);
}
.learn-dotfield__ring {
  opacity: 0;
}
.learn-statement {
  max-width: 30ch;
  margin-inline: auto;
  text-align: center;
  font: 400 clamp(1.7rem, 3vw, 2.6rem) / 1.25 var(--font-serif);
  color: var(--muted);
  text-wrap: balance;
}
.learn-statement__em {
  color: var(--white-pure);
}

/* Closing */
.learn-close {
  text-align: center;
}
.learn-close__text {
  max-width: 24ch;
  margin-inline: auto;
  font: 400 clamp(2rem, 4vw, 3.6rem) / 1.12 var(--font-serif);
  letter-spacing: -0.012em;
  color: var(--muted);
  text-wrap: balance;
}
.learn-close__em {
  color: var(--white-pure);
}
.learn-close__cta {
  margin-top: clamp(44px, 7vh, 72px);
}
.learn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--red);
  font: 500 1rem/1.45 var(--font-sans);
  color: var(--white-pure);
  text-align: left;
  text-decoration: none;
}
.learn-cta svg {
  flex: none;
  width: 0.95em;
  height: 0.95em;
  transition: transform 0.3s var(--ease-out);
}
.learn-cta:hover svg,
.learn-cta:focus-visible svg {
  transform: translateX(4px);
}

/* Footnotes (Learn page and homepage) */
.footnotes {
  padding-block: clamp(56px, 8vh, 96px) clamp(80px, 11vh, 132px);
  border-top: 1px solid var(--hair);
  scroll-margin-top: var(--header-h);
}
.footnotes__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(20px, 6vw, 110px);
}
.footnotes__title {
  font: 400 clamp(1.6rem, 2.4vw, 2.1rem) / 1.1 var(--font-serif);
  letter-spacing: -0.01em;
  color: var(--white-pure);
}
.footnotes__list {
  padding-left: 1.6em;
  list-style: decimal;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}
.footnotes__list li {
  padding-left: 0.4em;
  scroll-margin-top: calc(var(--header-h) + 32px);
}
.footnotes__list li + li {
  margin-top: 1em;
}
.footnotes__list li::marker {
  color: var(--red-text);
  font-weight: 600;
}
.footnotes__list li:target {
  color: var(--white);
}
.footnotes__note {
  margin-bottom: 0.5em;
}
.footnotes__source {
  color: var(--white);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--hair);
  text-underline-offset: 0.22em;
  transition: text-decoration-color 0.2s ease;
}
.footnotes__source:hover,
.footnotes__source:focus-visible {
  text-decoration-color: var(--red);
}
.fn-back {
  display: inline-flex;
  vertical-align: -0.3em;
  margin: -3px 0 -3px 0.3em; /* 24px tap target without taking more room in the line */
  padding: 5px;
  color: var(--faint);
  transition: color 0.2s ease;
}
.fn-back svg {
  width: 14px;
  height: 14px;
}
.fn-back:hover,
.fn-back:focus-visible {
  color: var(--red-text);
}

@media (max-width: 899px) {
  .learn-split,
  .footnotes__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .learn-split > .learn-heading {
    position: static;
  }
  .footnotes__list li {
    scroll-margin-top: calc(var(--header-h) + 96px); /* keeps the "Footnotes" title in view */
  }
}
@media (max-width: 699px) {
  .learn-methods {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 599px) {
  .learn {
    --learn-gap: 76px;
  }
  .learn-stats {
    grid-template-columns: minmax(0, 1fr);
    border-top: 0;
  }
  .learn-stat {
    padding-block: 28px 30px;
    border-top: 1px solid var(--hair);
  }
  .learn-stat__value {
    margin-top: 20px;
  }
}

/* Motion: entrances run on load by default; learn.js holds back (.is-pending) the blocks that
   start below the fold and releases them as they scroll in, which restarts their animations. */
@keyframes learn-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes learn-fade {
  from {
    opacity: 0;
  }
}
@keyframes learn-draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes learn-pop {
  from {
    opacity: 0;
    transform: scale(0.2);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes learn-ring {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }
  80%,
  100% {
    opacity: 0;
    transform: scale(3.4);
  }
}
@keyframes learn-spin {
  0%,
  100% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(0.1);
  }
}
.learn-globe__meridian,
.learn-globe__dot,
.learn-grid20 circle,
.learn-mind__dot,
.learn-mind__ring,
.learn-dotfield__one,
.learn-dotfield__ring {
  transform-box: fill-box;
  transform-origin: center;
}
.learn [data-reveal].is-pending {
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .learn-intro__eyebrow {
    animation: learn-rise 0.7s var(--ease-out) both;
  }
  .learn-intro__title {
    animation: learn-rise 0.9s var(--ease-out) 0.06s both;
  }
  .learn [data-reveal]:not(.is-pending) {
    animation: learn-rise 0.85s var(--ease-out) 0.05s both;
  }
  .learn-stat:nth-child(1):not(.is-pending) {
    animation-delay: 0.18s;
  }
  .learn-stat:nth-child(2):not(.is-pending) {
    animation-delay: 0.3s;
  }
  .learn-stat:nth-child(3):not(.is-pending) {
    animation-delay: 0.42s;
  }

  /* strokes that draw themselves (their paths carry pathLength="1") */
  .learn [data-reveal]:not(.is-pending) .learn-draw,
  .learn-case__card:not(.is-pending) .learn-case__pulse path {
    stroke-dasharray: 1;
    animation: learn-draw 1.3s var(--ease-out) 0.35s both;
  }
  .learn-case__card:not(.is-pending) .learn-case__pulse path {
    animation-duration: 2s;
  }

  /* stat icons */
  .learn-globe__meridian {
    animation: learn-spin 7s ease-in-out infinite;
  }
  .learn-stat:not(.is-pending) .learn-globe__lines {
    animation: learn-fade 0.9s ease 0.8s both;
  }
  .learn-stat:not(.is-pending) .learn-globe__dot {
    animation: learn-pop 0.5s var(--ease-out) 1.1s both;
  }
  .learn-stat:not(.is-pending) .learn-grid20__many circle {
    animation: learn-pop 0.4s var(--ease-out) both;
  }
  .learn-stat:not(.is-pending) .learn-grid20__many circle:nth-child(1) { animation-delay: 0.495s; }
  .learn-stat:not(.is-pending) .learn-grid20__many circle:nth-child(2) { animation-delay: 0.540s; }
  .learn-stat:not(.is-pending) .learn-grid20__many circle:nth-child(3) { animation-delay: 0.585s; }
  .learn-stat:not(.is-pending) .learn-grid20__many circle:nth-child(4) { animation-delay: 0.630s; }
  .learn-stat:not(.is-pending) .learn-grid20__many circle:nth-child(5) { animation-delay: 0.675s; }
  .learn-stat:not(.is-pending) .learn-grid20__many circle:nth-child(6) { animation-delay: 0.720s; }
  .learn-stat:not(.is-pending) .learn-grid20__many circle:nth-child(7) { animation-delay: 0.765s; }
  .learn-stat:not(.is-pending) .learn-grid20__many circle:nth-child(8) { animation-delay: 0.810s; }
  .learn-stat:not(.is-pending) .learn-grid20__many circle:nth-child(9) { animation-delay: 0.855s; }
  .learn-stat:not(.is-pending) .learn-grid20__many circle:nth-child(10) { animation-delay: 0.900s; }
  .learn-stat:not(.is-pending) .learn-grid20__many circle:nth-child(11) { animation-delay: 0.945s; }
  .learn-stat:not(.is-pending) .learn-grid20__many circle:nth-child(12) { animation-delay: 0.990s; }
  .learn-stat:not(.is-pending) .learn-grid20__many circle:nth-child(13) { animation-delay: 1.035s; }
  .learn-stat:not(.is-pending) .learn-grid20__many circle:nth-child(14) { animation-delay: 1.080s; }
  .learn-stat:not(.is-pending) .learn-grid20__many circle:nth-child(15) { animation-delay: 1.125s; }
  .learn-stat:not(.is-pending) .learn-grid20__many circle:nth-child(16) { animation-delay: 1.170s; }
  .learn-stat:not(.is-pending) .learn-grid20__many circle:nth-child(17) { animation-delay: 1.215s; }
  .learn-stat:not(.is-pending) .learn-grid20__many circle:nth-child(18) { animation-delay: 1.260s; }
  .learn-stat:not(.is-pending) .learn-grid20__many circle:nth-child(19) { animation-delay: 1.305s; }
  .learn-stat:not(.is-pending) .learn-grid20__one {
    animation: learn-pop 0.55s var(--ease-out) 1.45s both;
  }
  .learn-grid20__ring,
  .learn-mind__ring,
  .learn-dotfield__ring {
    animation: learn-ring 2.6s var(--ease-out) 2.2s infinite;
  }
  .learn-stat:not(.is-pending) .learn-mind__dot {
    animation: learn-pop 0.5s var(--ease-out) 1.2s both;
  }

  /* method icons */
  .learn-method:not(.is-pending) .learn-fill {
    animation: learn-fade 0.8s ease 1.1s both;
  }

  /* one among many */
  .learn-dotfield:not(.is-pending) .learn-dotfield__field {
    animation: learn-fade 1.6s ease 0.1s both;
  }
  .learn-dotfield:not(.is-pending) .learn-dotfield__one {
    animation: learn-pop 0.7s var(--ease-out) 1.3s both;
  }

  .footnotes__list li:target {
    animation: learn-target 2s var(--ease-out);
  }
}
@keyframes learn-target {
  from {
    background: rgba(193, 18, 31, 0.2);
  }
  to {
    background: transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .learn [data-reveal].is-pending {
    opacity: 1;
  }
  .learn-cta svg,
  .footnotes__source,
  .fn-back {
    transition: none;
  }
}

/* Utilities */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
