/* ==========================================================================
   Engagement — Rattry Wu
   System matched to the UN Volunteers × Exposure reference:
   white paper, near-black ink, one UN sky-blue accent, EB Garamond body,
   grotesque caps for titles. Square cards, 16px gutters, 24px margins,
   1440px container, 582–700px reading column.
   ========================================================================== */

:root {
  --paper: #ffffff;
  --wash: #f4f6f7;
  --ink: #111111;
  --ink-soft: #4d4d4d;
  --mute: #737373;
  --line: #e6e6e6;
  --line-strong: #c9c9c9;
  --blue: #009edb;
  --blue-deep: #0083c1;
  --blue-text: #0072a8;
  --ink-intro: #333333;
  --sans: "gt-walsheim", "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --pad: 24px;
  --max: 1200px;
  --head: 58px;
  --measure: 582px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection { background: rgba(0, 158, 219, .16); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 1px;
}

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

.skip {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip:focus { transform: translateY(0); }

/* ================= HEADER ================= */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--head);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 var(--pad);
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), height .35s var(--ease),
              background-color .35s var(--ease), backdrop-filter .35s var(--ease);
}
.site-head.is-scrolled {
  border-bottom-color: var(--line);
  height: 52px;
  background: rgba(255, 255, 255, .97);
}
body.is-locked:not(.story-page) .site-head {
  padding-right: calc(var(--pad) + var(--sbw, 0px));
}

.head-left,
.head-right {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  min-width: 0;
}

.head-actions {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--ink);
  transition: color .2s var(--ease), opacity .2s var(--ease);
}
.icon-btn:hover { color: var(--blue-deep); }
.icon-btn svg { width: 20px; height: 20px; }

/* align the magnifier's ink to the 24px shared left rail */
.head-left .icon-btn:first-child { margin-left: -5px; }

.head-link {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.head-link:hover { color: var(--blue-deep); border-bottom-color: currentColor; }

/* language switch */
.lang-switch { display: flex; align-items: center; gap: 7px; margin-right: 4px; }
.lang-switch span { color: var(--line-strong); font-size: 10px; }
.lang-switch button {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #9a9a9a;
  padding: 4px 1px 3px;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.is-active { color: var(--ink); border-bottom-color: var(--blue); }
.story-page .site-head .lang-switch button { color: rgba(255, 255, 255, .72); }
.story-page .site-head .lang-switch button:hover { color: #fff; }
.story-page .site-head .lang-switch button.is-active { color: #fff; border-bottom-color: #fff; }
.story-page .site-head.is-solid .lang-switch button,
.story-page .site-head.is-plain .lang-switch button { color: #9a9a9a; }
.story-page .site-head.is-solid .lang-switch button.is-active,
.story-page .site-head.is-plain .lang-switch button.is-active { color: var(--ink); border-bottom-color: var(--blue); }

.socials {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 4px;
}
.social {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  transition: transform .3s var(--ease);
}
.social img {
  width: 18px;
  height: 18px;
  filter: grayscale(1) brightness(0) opacity(.6);
  transition: filter .22s var(--ease), opacity .22s var(--ease);
}
.social:hover img { filter: grayscale(1) brightness(0) opacity(.85); }
.social:hover { transform: translateY(-1px); }
.social.is-off { cursor: default; }
.social.is-off:hover { transform: none; }
.social.is-off:hover img { filter: grayscale(1) brightness(0) opacity(.6); }

/* LinkedIn has no public link: icon stays, hover/focus reveals a name tag */
.social { position: relative; }
.is-tip .tip {
  position: absolute;
  top: calc(100% + 9px);
  right: -6px;
  background: #141414;
  color: #fff;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  pointer-events: none;
  z-index: 70;
}
.is-tip:hover .tip,
.is-tip:focus .tip { opacity: 1; transform: none; }

.head-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .2s var(--ease);
  white-space: nowrap;
}
.head-back svg { width: 17px; height: 12px; }
.head-back:hover { color: var(--blue-deep); }

/* ================= HOME / MASTHEAD ================= */

.masthead {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  padding: clamp(30px, 5vh, 52px) var(--pad) 0;
}

/* UN-logo-style lockup, artwork provided by the owner (blue emblem + wordmark) */
.logo-lockup {
  width: max-content;
  margin: 0 auto;
  font-size: 0;
}
.logo-lockup img {
  width: clamp(340px, 42vw, 600px);
  height: auto;
  display: block;
}

/* text lockup (404 page) */
.lockup {
  width: max-content;
  margin: 0 auto;
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--blue);
}
.lockup .ln {
  display: block;
  overflow: hidden;
  padding-bottom: .06em;
  margin-bottom: -.06em;
}
.lockup .ln > span {
  display: inline-block;
  transform: translateY(112%);
  animation: rise .85s cubic-bezier(.2, .7, .2, 1) forwards;
}
.lockup .ln:nth-child(2) > span { animation-delay: .1s; }
.lockup-top { font-size: clamp(23px, 3.9vw, 51px); line-height: 1.02; letter-spacing: .015em; }
.lockup .ln:not(.lockup-top) { font-size: clamp(42px, 7.1vw, 93px); line-height: 1; letter-spacing: .015em; }
@keyframes rise { to { transform: none; } }

/* entrance choreography: label leads, hero text and masthead intro follow */
.story-hero-inner > *, .story-byline, .masthead-intro, .masthead-actions {
  opacity: 0;
  transform: translateY(10px);
  animation: heroIn .7s var(--ease) forwards;
}
.story-kicker { animation-delay: .35s; }
.story-title { animation-delay: .1s; }
.story-sub { animation-delay: .2s; }
.story-byline, .masthead-intro { animation-delay: .35s; }
.masthead-actions { animation-delay: .5s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

.masthead-intro {
  max-width: 600px;
  margin: clamp(14px, 2.2vh, 22px) auto 0;
  text-align: center;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-intro);
}

.masthead-actions {
  margin-top: clamp(22px, 3.5vh, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-solid {
  display: inline-block;
  padding: 10px 24px;
  background: #141414;
  color: #fff;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn-solid:hover { background: #000; transform: translateY(-1px); }

.site-url {
  margin: 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute);
}

/* visitor cities map (dot-matrix world, adapted from wffp) — compact, inside the masthead */
.visitors {
  margin: clamp(12px, 2vh, 20px) auto 0;
  max-width: 420px;
  text-align: center;
}
.visitors svg { width: 100%; height: auto; display: block; }
.visitors .v-cities {
  display: none;
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  line-height: 1.6;
  color: var(--mute);
}

/* ================= STORY GRID ================= */

.grid-section {
  padding: clamp(28px, 4.5vh, 52px) 0 clamp(56px, 8vh, 96px);
}

.story-grid {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-height: 60vh;
}

.card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--wash);
  isolation: isolate;
}

.card-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.card-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.86);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .7s var(--ease), transform .9s var(--ease);
}
.card.has-image .card-photo img { opacity: 1; transform: scale(1); }
/* hover-in fast, release cinematic */
.card.has-image:hover .card-photo img {
  transform: scale(1.045);
  transition: opacity .7s var(--ease), transform .45s var(--ease);
}

/* UNV-style bottom scrim keeps the white titles readable */
.card-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top,
    rgba(0, 0, 0, .72) 0%,
    rgba(0, 0, 0, .48) 38%,
    rgba(0, 0, 0, .28) 70%,
    rgba(0, 0, 0, .24) 100%);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.card.has-image .card-scrim { opacity: 1; }

.card-body {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  padding: 0 clamp(18px, 2vw, 30px) clamp(22px, 2.4vw, 34px);
  text-align: center;
  color: var(--ink);
}
.card-title {
  margin: 0 auto;
  max-width: 10.5em;
  font-family: var(--sans);
  font-size: clamp(17px, 1.7vw, 24px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-wrap: balance;
}
.card-deck {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(14.5px, 1.15vw, 16.5px);
  font-style: italic;
  line-height: 1.4;
  color: var(--ink-soft);
  text-wrap: balance;
}
.card-date {
  display: block;
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}

.card.has-image .card-body { color: #fff; }
.card.has-image .card-deck { color: rgba(255, 255, 255, .92); }
.card.has-image .card-date { color: rgba(255, 255, 255, .85); }

.card.has-image:hover .card-title {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  text-decoration-color: rgba(255, 255, 255, .65);
}

/* organiser mark overlaid top-centre of the card (per story: data.js `logos.card`) */
.card-logo {
  position: absolute;
  z-index: 2;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 1px 12px rgba(0, 0, 0, .38));
}

/* load-in stagger — hidden state only when JS is known to run (.js on <html>) */
@keyframes revealIn {
  to { opacity: 1; transform: none; }
}
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: revealIn .8s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 45ms + 380ms);
}

/* scroll reveal — reference rhythm: 500ms / 10px / scale .99 */
.sr {
  opacity: 0;
  transform: translateY(10px) scale(.99);
  transition: opacity .5s cubic-bezier(.42, 0, .2, .99),
              transform .5s cubic-bezier(.42, 0, .2, .99);
}
.sr.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .sr { opacity: 1; transform: none; transition: none; }
}
@media print {
  .sr { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 920px) {
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-title { font-size: clamp(16px, 2.2vw, 22px); }
  .card-deck { font-size: 15px; }
}

@media (max-width: 640px) {
  :root { --head: 54px; --pad: 20px; }
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .masthead { padding-top: 44px; }
  .lockup-top { font-size: clamp(19px, 5.2vw, 24px); }
  .lockup .ln:not(.lockup-top) { font-size: clamp(35px, 9.5vw, 44px); }
  .masthead-intro { font-size: 16px; }
  .card-title { font-size: 23px; }
  .card-deck { font-size: 15.5px; }
  .card-date { font-size: 13px; }
}

@media (max-width: 560px) {
  .site-head .socials { display: none; }
}

/* ================= STORY DETAIL ================= */

.story-page .site-head {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
  color: #fff;
}
.story-page .site-head .head-back,
.story-page .site-head .head-link,
.story-page .site-head .icon-btn {
  color: #fff;
  text-shadow: 0 1px 18px rgba(0, 0, 0, .5);
}
.story-page .site-head .social img {
  filter: grayscale(1) brightness(0) invert(1) opacity(.72);
}
.story-page .site-head .social:hover img { filter: grayscale(1) brightness(0) invert(1) opacity(.95); }
.story-page .site-head .social.is-off:hover img { filter: grayscale(1) brightness(0) invert(1) opacity(.72); }
.story-page .site-head.is-solid {
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  height: 52px;
  color: var(--ink);
}
.story-page .site-head.is-solid .head-back,
.story-page .site-head.is-solid .head-link,
.story-page .site-head.is-solid .icon-btn { color: var(--ink); text-shadow: none; }
.story-page .site-head.is-solid .social img {
  filter: grayscale(1) brightness(0) opacity(.5);
}
.story-page .site-head.is-solid .social:hover img { filter: grayscale(1) brightness(0) opacity(.85); }
.story-page .site-head.is-solid .icon-btn:hover { color: var(--blue-deep); }

/* in-app 404: white page behind a fixed transparent header — make it solid */
.story-page.is-plain .site-head {
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.story-page.is-plain .site-head .head-back,
.story-page.is-plain .site-head .head-link,
.story-page.is-plain .site-head .icon-btn { color: var(--ink); text-shadow: none; }
.story-page.is-plain .site-head .social img { filter: grayscale(1) brightness(0) opacity(.6); }
.story-page.is-plain .site-head .social:hover img { filter: grayscale(1) brightness(0) opacity(.85); }

.story-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(110px, 16vh, 170px) var(--pad) clamp(86px, 12vh, 120px);
  background: #1a1a1a;
  color: #fff;
  text-align: center;
  isolation: isolate;
}
.story-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .46) 0%, rgba(0, 0, 0, .22) 48%, rgba(0, 0, 0, .58) 100%),
    radial-gradient(90% 70% at 50% 45%, rgba(0, 0, 0, .12) 20%, rgba(0, 0, 0, .24) 100%);
  pointer-events: none;
}
.story-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}
.story-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.86);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease);
}
.story-hero.has-image .story-hero-media img { opacity: 1; transform: scale(1); }

/* engagement logos stacked at the bottom-left of the cover
   (per story: data.js `logos.hero`, listed bottom-up — first entry sits lowest).
   Each logo's render width comes from data (`w`, % of column) so marks with
   different aspect ratios keep a similar optical mass — not same-width,
   not same-height. Column width follows the owner's marker. */
.story-hero-logos {
  position: absolute;
  z-index: 3;
  left: clamp(10px, 1.8vw, 30px);
  bottom: clamp(14px, 2.8vh, 30px);
  width: clamp(72px, 12.4vw, 176px);
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: clamp(10px, 1.8vh, 14px);
  pointer-events: none;
}
.story-hero-logos img {
  height: auto;
  max-width: none; /* lg.w may exceed the column (e.g. 200) — let it through */
  filter: drop-shadow(0 1px 14px rgba(0, 0, 0, .45));
}

.story-hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.story-kicker {
  margin: clamp(18px, 3vh, 26px) 0 0;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
}
.story-title {
  margin: 0 auto;
  max-width: 860px;
  font-family: var(--sans);
  font-size: clamp(27px, 4.6vw, 40px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: .075em;
  text-transform: uppercase;
  text-wrap: balance;
  color: #fff;
}
.story-sub {
  margin: clamp(16px, 2.6vh, 24px) auto 0;
  max-width: 760px;
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 27px);
  font-style: italic;
  line-height: 1.4;
  color: rgba(255, 255, 255, .92);
  text-wrap: balance;
}
/* Bottom-anchored author group: avatar → By Rattry Wu → date */
.story-byline {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: clamp(26px, 4.5vh, 44px);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.byline-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .12);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .6s var(--ease), transform .9s var(--ease);
}
.story-hero.has-avatar .byline-avatar { opacity: 1; transform: none; }
.byline-name {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
}
.byline-name .by {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  margin-right: .35em;
  color: rgba(255, 255, 255, .85);
}
.byline-date {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  color: rgba(255, 255, 255, .85);
}
.byline-date .sep { margin: 0 .55em; opacity: .6; }

.story-main {
  padding: clamp(48px, 7vh, 76px) var(--pad) clamp(64px, 9vh, 110px);
}

/* UNV reading column: EB Garamond 18/27.4, single measure */
.story-body {
  max-width: var(--measure);
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.52;
  color: var(--ink);
}
.story-body p {
  margin: 0 0 21px;
  text-wrap: pretty;
}
.story-body blockquote {
  margin: clamp(40px, 6vh, 60px) auto;
  padding: 0;
  max-width: 640px;
  text-align: center;
  font-size: clamp(21px, 2vw, 25px);
  font-style: italic;
  line-height: 1.42;
  color: var(--ink);
  text-wrap: balance;
}
.story-body blockquote p { margin: 0; }
.story-body blockquote cite {
  display: block;
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mute);
}
.story-body figure {
  margin: clamp(36px, 5vh, 52px) 0;
}
.story-body figure.variant-center {
  max-width: 82%;
  margin-inline: auto;
}
.story-body figure.variant-left {
  max-width: 65%;
  margin-right: auto;
}
.story-body figure.variant-right {
  max-width: 65%;
  margin-left: auto;
}
@media (max-width: 640px) {
  .story-body figure.variant-center,
  .story-body figure.variant-left,
  .story-body figure.variant-right { max-width: 100%; }
}
.story-body .fig-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--wash);
}
.story-body .fig-frame > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mute);
}
.story-body .fig-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.86);
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .6s var(--ease), transform 1.2s var(--ease);
}
.story-body .fig-frame.has-image img { opacity: 1; transform: none; }
.story-body .fig-frame.has-image > span { display: none; }
/* Private figures (data flag `privacy: true`) — frosted glass until the
   pointer approaches, the frame is focused, or it is tapped on touch.
   The blur is cosmetic only: the reader explicitly asks to see. */
.story-body .fig-privacy .fig-frame img {
  filter: saturate(.86) blur(22px);
  transform: scale(1.08);
  transition: opacity .6s var(--ease), transform 1.2s var(--ease), filter .45s var(--ease);
}
.story-body .fig-privacy .fig-frame.has-image img { opacity: 1; transform: scale(1.08); }
.story-body .fig-privacy .fig-frame.is-open img { filter: saturate(.86); transform: none; }
.story-body .fig-privacy .fig-frame:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.fig-veil {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .16);
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.fig-veil-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .93);
  border: 1px solid rgba(17, 17, 17, .14);
  box-shadow: 0 6px 24px rgba(17, 17, 17, .12);
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
}
.fig-veil-pill svg { width: 11px; height: 11px; flex: none; }
.fig-veil .pt { display: none; }
@media (hover: none) {
  .fig-veil .ph { display: none; }
  .fig-veil .pt { display: inline; }
}
.story-body .fig-privacy .fig-frame.is-open .fig-veil { opacity: 0; }
.story-body figcaption {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.5;
  color: var(--mute);
}
.story-body figcaption .credit {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #a8a8a8;
}

.story-end {
  max-width: var(--measure);
  margin: clamp(52px, 8vh, 84px) auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}
.story-end-label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue-text);
}
.story-next { max-width: 480px; display: block; }
.story-next-title {
  display: block;
  font-family: var(--sans);
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: color .25s var(--ease);
}
.story-next:hover .story-next-title { color: var(--blue-deep); transform: translateX(4px); }
.story-next-title { transition: color .25s var(--ease), transform .3s var(--ease); }
.story-next-meta {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 14.5px;
  font-style: italic;
  color: var(--mute);
}
.story-back-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.story-back-link svg { width: 16px; height: 11px; }
.story-back-link:hover { color: var(--blue-deep); }

/* ================= SEARCH ================= */

.search {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.search.is-open { opacity: 1; visibility: visible; }
.search-inner {
  transform: translateY(-10px);
  opacity: 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.search.is-open .search-inner { transform: none; opacity: 1; }
.search-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(26px, 7vh, 68px) var(--pad) 40px;
}
.search-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 12px;
  transition: border-color .25s var(--ease);
}
.search:focus-within .search-top { border-bottom-color: var(--blue); }
.search-top > div { flex: 1; min-width: 0; }
.search-label {
  display: block;
  margin-bottom: 14px;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--blue-text);
}
.search-input {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.2;
  color: var(--ink);
  outline: none;
  padding: 0;
}
.search-input::placeholder { color: var(--mute); font-style: italic; }
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search-close {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .3s var(--ease);
}
.search-close:hover { color: var(--blue-deep); border-color: var(--blue); transform: rotate(90deg); }
.search-close svg { width: 15px; height: 15px; }

.search-count {
  margin: 20px 0 0;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mute);
}
.search-results {
  margin-top: 8px;
  max-height: calc(100vh - 260px);
  max-height: calc(100svh - 260px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.search-result {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0 19px;
  border-bottom: 1px solid var(--line);
  transition: padding-left .28s var(--ease), border-color .28s var(--ease);
}
.search-result:hover,
.search-result.is-active,
.search-result:focus-visible {
  padding-left: 8px;
  border-bottom-color: var(--line-strong);
}
.search-num {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--mute);
}
.search-title {
  display: block;
  font-family: var(--sans);
  font-size: clamp(14px, 1.35vw, 18px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.search mark {
  background: none;
  color: var(--blue-text);
}
.search-meta {
  display: block;
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink-soft);
}
.search-date {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.search-empty {
  padding: 48px 0;
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
  color: var(--mute);
}
.search-empty strong { color: var(--ink); font-weight: 400; }
.search-hint {
  margin-top: 24px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}
.search-hint kbd {
  font-family: inherit;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 2px 5px;
  margin: 0 2px;
  font-size: 8.5px;
}
@media (hover: none) and (pointer: coarse) {
  .search-hint { display: none; }
}

/* ================= CONTACT ================= */

.contact-block {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  padding: clamp(56px, 9vh, 96px) var(--pad) clamp(64px, 10vh, 110px);
  border-top: 1px solid var(--line);
  text-align: center;
}
.contact-label {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue-text);
}
.contact-title {
  margin: 0 0 clamp(26px, 4vh, 40px);
  font-family: var(--sans);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--ink);
}
.contact-block form { max-width: 560px; margin: 0 auto; text-align: left; }
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  resize: vertical;
  transition: border-color .2s var(--ease);
}
.form-row input:focus,
.form-row textarea:focus { border-color: var(--blue); }
.contact-block .btn-solid { margin-top: 6px; }

/* ================= FOOTER ================= */

.site-foot {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  padding: 28px var(--pad);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--mute);
}
.site-foot-left { display: flex; align-items: center; gap: 18px; }
.site-foot-left span + span::before { content: "·"; margin: 0 .6em 0 0; opacity: .55; }
.site-foot a { transition: color .2s var(--ease); }
.site-foot a:hover { color: var(--blue-deep); }
.site-foot .socials { margin-left: 0; gap: 16px; }
.site-foot .social { width: 18px; height: 18px; }
.site-foot .social img { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .story-end { flex-direction: column; gap: 22px; }
}

@media (max-width: 640px) {
  .story-hero { padding-top: 100px; padding-bottom: 90px; }
  .story-kicker { letter-spacing: .2em; }
  .story-title { font-size: clamp(25px, 8vw, 32px); letter-spacing: .06em; }
  .story-byline { bottom: clamp(22px, 4vh, 36px); gap: 8px; }
  .story-sub { font-size: 18px; }
  .byline-avatar { width: 64px; height: 64px; }
  .story-hero-logos { width: clamp(56px, 15vw, 84px); gap: 10px; }
  .byline-name { font-size: 14.5px; }
  .byline-name .by { font-size: 15.5px; }
  .byline-date { font-size: 13.5px; }
  .story-byline span { white-space: nowrap; }
  .story-main { padding-top: 40px; }
  .story-body { font-size: 17.5px; }
  .story-body blockquote { font-size: 21px; }
  .story-end { margin-top: 44px; }
  .site-foot { flex-wrap: wrap; row-gap: 14px; }
  .search-result { grid-template-columns: 26px minmax(0, 1fr); gap: 10px; }
  .search-date { grid-column: 2; margin-top: 5px; }
  .search-results { max-height: calc(100vh - 230px); max-height: calc(100svh - 230px); }
  .head-actions { gap: 12px; }
}

@media print {
  .site-head, .site-foot, .search { display: none !important; }
  .story-hero { min-height: auto; background: none; }
  .card-photo, .story-hero-media, .card-scrim, .story-hero::after { display: none !important; }
  .card-body, .card-body *,
  .story-hero, .story-hero-inner,
  .story-hero-inner *,
  .story-byline, .story-byline * { color: var(--ink) !important; }
  .reveal, .sr { opacity: 1 !important; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .lockup .ln > span { transform: none; }
  .story-hero-inner > *, .story-byline, .masthead-intro, .masthead-actions { opacity: 1; transform: none; }
  .story-hero-media { will-change: auto; transform: none !important; }
}
