/* =========================================================
   Portfolio — shared stylesheet
   Design language carried over from joeyhuang.netlify.app:
     Figtree 800/900 display, DM Sans body.
     Accent #0B7BFB sampled from the project's own UI screenshots.
   Two grounds: light (default) and dark. Same type, same accent.
   ========================================================= */

:root {
  --accent:       #0B7BFB;   /* sampled from the UI screenshots (hue 213°) */
  --accent-solid: #0A58CA;   /* darker, for chips that carry white text */
  --accent-on:    #FFFFFF;   /* text colour on --accent-solid */
  --yellow: var(--accent);   /* old name kept so nothing breaks */
  --bg:     #FFFFFF;
  --fg:     #111111;
  --ink2:   #3B3B3B;   /* body copy */
  --grey:   #767676;   /* captions, meta */
  --line:   #E3E3E3;
  --soft:   #F7F7F7;
  --frame:  #F0F0F0;

  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
             system-ui, "Helvetica Neue", sans-serif;
  --font:    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter",
             system-ui, "Helvetica Neue", sans-serif;

  --wrap: 1240px;      /* one container width, homepage and case pages alike */
  --wrap-home: 1240px;    /* matches the old site's content box (1000 minus its padding) */
  --pad:  clamp(20px, 5vw, 56px);
  --read: 67ch;   /* ~85 characters — the readable ceiling at this size */
  --page-max: var(--wrap);   /* one spine: homepage and case pages match */
  --gutter: var(--pad);
  --gap: clamp(20px, 2.2vw, 30px);

  /* kept so older content files still build */
  --hair: var(--line);
  --fg-quiet: var(--grey);
  --col: 720px;
  --wide: var(--wrap);
}

html[data-theme="dark"] {
  --accent:       #4DA3FF;   /* lifted so it reads on black */
  --accent-solid: #4DA3FF;
  --accent-on:    #07131F;
  --bg:    #000000;
  --fg:    #F2F2F0;
  --ink2:  rgba(242,242,240,.78);
  --grey:  rgba(242,242,240,.58);
  --line:  rgba(242,242,240,.18);
  --soft:  rgba(242,242,240,.06);
  --frame: #111;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink2);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--fg);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.06;
  margin: 0;
}

/* ---------- page frame ---------- */
.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter) 90px;
}
.page--home { max-width: var(--wrap-home); }

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 26px 0 16px;
  border-bottom: 1px solid var(--line);
}
.masthead__name {
  font-family: var(--display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -.02em;
  color: var(--fg);
}
.masthead__nav { display: flex; gap: 20px; font-size: 13.5px; color: var(--grey); }
.masthead__nav a:hover { color: var(--fg); box-shadow: inset 0 -2px var(--accent); }

.intro {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.06;
  color: var(--fg);
  padding: 44px 0 30px;     /* tighter, so the logos sit above the fold */
  max-width: none;
  text-wrap: wrap;          /* explicit break; balance off so it isn't re-split */
  font-size: clamp(30px, 4.4vw, 54px);
}

.lede {
  font-size: clamp(16.5px, 1.5vw, 18.5px);
  line-height: 1.68;
  color: var(--ink2);
  max-width: 940px;
  margin: 0 auto 20px;
}
.lede + .lede { margin-bottom: 40px; }

.logos {
  display: block; width: 100%; max-width: 520px;
  margin: 0 0 56px; opacity: .9;
}
html[data-theme="dark"] .logos { filter: invert(1) grayscale(1); opacity: .8; }

/* ---------- homepage hero ---------- */
.hero {
  margin: 0 auto 72px;
  max-width: 1000px;
}
.hero img {
  width: 100%; height: auto; display: block;
}

/* ---------- sections ---------- */
.section { padding-top: 24px; }
.section + .section { margin-top: 110px; }
.section__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 20px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: clamp(64px, 7.5vw, 116px);   /* projects need to read as separate */
}

/* ---------- card ---------- */
.card { position: relative; grid-column: span 2; padding-bottom: 6px; }
.card--half { grid-column: span 1; }
.card__org {
  text-wrap: balance;
  font-family: var(--display); font-weight: 900;
  font-size: clamp(23px, 2.1vw, 30px);
  font-weight: 650;
  letter-spacing: -.02em; line-height: 1;
  text-transform: uppercase; color: var(--fg);
  margin: 0 0 28px;                    /* label -> headline */
}
.card__seq {
  font-size: .6em; letter-spacing: .06em; font-weight: 500;
  color: var(--grey); margin-right: .5em; vertical-align: .04em;
}
.card__title {
  text-wrap: balance;
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(32px, 4.4vw, 66px);
  font-weight: 500;                    /* never bold, at any size */
  line-height: 1.0;
  letter-spacing: -.045em;
  color: var(--fg);
  max-width: 22ch;
  margin: 0 auto 30px;                 /* headline -> description / metadata */
}
.card:hover .card__org { box-shadow: inset 0 -3px var(--accent); }
.card__org { transition: box-shadow .12s ease; }
.card__desc {
  text-wrap: balance;
  font-family: var(--font);
  font-size: clamp(20px, 2.1vw, 29px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.015em;
  color: var(--ink2);
  max-width: 42ch;
  margin: 0 auto 12px;
}
.card__meta {
  font-family: var(--font);
  font-size: 17.5px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--grey);
  max-width: 52ch;
  margin: 0 auto 48px;                 /* metadata -> hero image */
}

/* homepage covers sit smaller and centred, so a card's title and its
   image can be taken in together rather than filling the whole screen */
.card .media,
.card .media--auto { max-width: 760px; margin-left: auto; margin-right: auto; }

.media {
  --ratio: 16/9; --pos: 50% 50%; --zoom: 1;
  aspect-ratio: var(--ratio);
  overflow: hidden;
  background: var(--frame);
}
.media > img, .media > video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--pos);
  transform: scale(var(--zoom));
  transform-origin: var(--pos);
}

/* show the whole image, never crop: ![01](ratio=auto) */
.media--auto { aspect-ratio: auto; overflow: visible; background: none; }
.media--auto > img, .media--auto > video {
  width: 100%; height: auto; object-fit: fill; transform: none;
}

.media--strip {
  display: flex; gap: 2px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.media--strip::-webkit-scrollbar { display: none; }
.media--strip > img, .media--strip > video {
  flex: 0 0 auto; width: auto; height: 100%; scroll-snap-align: start;
}

.card__link {
  /* the whole card is the click target; no arrow — the title carries the
     affordance on hover, which reads better than a small floating glyph */
  position: absolute; inset: 0;
}

.footer {
  margin-top: 96px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-size: 14px; color: var(--grey);
}
.footer a:hover { color: var(--fg); box-shadow: inset 0 -2px var(--accent); }

/* =========================================================
   CASE PAGE — one container, one left edge
   ========================================================= */
.case, .case__body {
  max-width: var(--wrap);
  margin-left: auto; margin-right: auto;
}
.case { padding-top: 74px; }

.case__org {
  text-wrap: balance;
  /* the identifier, not the headline — the outcome below it is bigger */
  font-family: var(--display); font-weight: 600;
  font-size: clamp(23px, 2.1vw, 29px);
  letter-spacing: -.02em; line-height: 1;
  text-transform: uppercase; color: var(--fg);
  margin: 0 0 12px;
}
/* unless the label IS the title, in which case it carries headline weight */
.case__org--solo {
  font-weight: 500;
  font-size: clamp(34px, 4.2vw, 54px);
  letter-spacing: -.042em;
  margin-bottom: 16px;
}
.case__seq {
  font-size: .56em; letter-spacing: .1em; font-weight: 600;
  color: var(--grey); margin-right: .5em; vertical-align: .06em;
}
.case__org--solo .case__seq { font-size: .3em; vertical-align: .4em; }
.case__title {
  text-wrap: balance;
  font-size: clamp(36px, 4.8vw, 66px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.02;
  margin: 0 0 16px;
  max-width: 24ch;
}
.case__tagline {
  font-size: clamp(19px, 2.1vw, 26px);
  line-height: 1.35;
  letter-spacing: -.012em;
  color: var(--ink2);
  margin: 0 0 26px;
  max-width: 46ch;
}
.case__meta {
  font-size: 17px; color: var(--grey);
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.case__meta a { box-shadow: inset 0 -2px var(--accent); }
.case__tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 0; padding: 0; list-style: none; }
.case__tags li {
  background: var(--accent-solid); color: var(--accent-on);
  font-family: var(--display); font-weight: 700;
  font-size: 11.5px; letter-spacing: .02em; padding: 4px 10px;
}

/* ---------- body ---------- */
.case__body { padding-top: 40px; }
.case__body > *:first-child { margin-top: 0; }
.case__body > * { max-width: var(--read); }
.case__body > figure,
.case__body > .stats, .case__body > .cards, .case__body > .panel,
.case__body > .tablewrap, .case__body > .numbered, .case__body > .two,
.case__body > .steps, .case__body > .compress, .case__body > .slot,
.case__body > .row { max-width: none; }

.case__body p { margin: 0 0 18px; font-size: 17.5px; line-height: 1.65; color: var(--ink2); }
.case__body p.note { font-size: 15px; line-height: 1.6; color: var(--grey); }
.case__body h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.1; letter-spacing: -.035em;
  margin: 64px 0 18px; max-width: 36ch;
}
.case__body h3 {
  font-size: 19px; font-weight: 800; letter-spacing: -.02em;
  line-height: 1.4; margin: 36px 0 10px;
}
.case__body strong { color: var(--fg); font-weight: 700; }
.case__body em { font-style: normal; color: var(--grey); }
.case__body a { box-shadow: inset 0 -2px var(--accent); }
.case__body ul, .case__body ol { margin: 0 0 18px; padding-left: 18px; }
.case__body li { margin-bottom: 7px; line-height: 1.6; }
.case__body hr { border: 0; border-top: 1px solid var(--line); margin: 54px 0; }

/* ---------- figure ---------- */
.case__body figure { margin: 34px 0 40px; }
.case__body figcaption {
  padding: 12px 0 0; font-size: 14.5px; line-height: 1.6;
  color: var(--grey); max-width: 74ch;
}
.case__body figcaption p { font-size: 14.5px; line-height: 1.6; margin: 0 0 8px; color: var(--grey); }
.case__body figcaption p:last-child { margin-bottom: 0; }
.case__body figcaption strong { color: var(--fg); font-weight: 700; }

/* ---------- pull quote ---------- */
.case__body blockquote {
  border-left: 4px solid var(--accent);
  padding: 2px 0 2px 20px; margin: 26px 0;
  max-width: 58ch;
}
.case__body blockquote p { font-size: 18px; line-height: 1.5; margin: 0 0 8px; color: var(--fg); }
.case__body blockquote cite {
  display: block; font-style: normal; font-size: 12.5px; color: var(--grey);
}

/* ---------- the big statement ----------
   No box, no badge — just a short accent rule and display type. */
/* no rule here — the full-width blue rule is reserved for pillars.
   A statement earns its weight from type and space instead. */
.callout {
  margin: 56px 0 44px;
  max-width: none;
  background: none;
}
.callout p {
  margin: 0 0 12px !important;
  max-width: 32ch;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(23px, 3vw, 36px) !important;
  line-height: 1.1 !important; letter-spacing: -.032em;
  color: var(--fg) !important;
}
.callout p:last-child { margin-bottom: 0 !important; }

/* ---------- two figures side by side ---------- */
.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin: 34px auto 40px;
  max-width: none;
}
.row figure { margin: 0 !important; }
.row figcaption { padding-top: 10px; font-size: 14px; }

/* screenshots on a white page need an edge, or they bleed into it */
.case__body figure .media > img,
.row .media > img {
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(20,20,15,.04), 0 8px 24px rgba(20,20,15,.06);
}
html[data-theme="dark"] .case__body figure .media > img,
html[data-theme="dark"] .row .media > img {
  border-color: rgba(242,242,240,.14);
  box-shadow: none;
}
/* photographs and the portrait don't need a frame */
.about-portrait img, .card .media > img { border: 0; box-shadow: none; }

/* ---------- pillar: a chapter marker across the full width ---------- */
.pillar {
  max-width: none;
  margin: 96px 0 34px;
  border-top: 5px solid var(--accent);
  padding-top: 14px;
}
.case__body > .pillar:first-child { margin-top: 0; }
.pillar__label {
  font-family: var(--display); font-weight: 900;
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
/* a pillar already announces the section, so the heading under it sits close */
.pillar + h2, .pillar + .insight { margin-top: 8px !important; }

/* ---------- insight header ---------- */
.insight { margin: 76px 0 22px; max-width: none; }
.insight__n {
  display: inline-block; background: var(--accent-solid); color: var(--accent-on);
  font-family: var(--display); font-weight: 700;
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; margin-bottom: 16px;
}
.insight__s {
  margin: 0 !important;
  font-size: clamp(24px, 3vw, 36px) !important;
  line-height: 1.1 !important; letter-spacing: -.035em;
  font-weight: 600 !important; max-width: 34ch !important;
}

/* ---------- numbered findings ---------- */
.numbered {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px; margin: 34px 0 46px;
}
.numbered__item { border-top: 3px solid var(--accent); padding-top: 13px; }
.numbered__n {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: 11.5px; letter-spacing: .1em; color: var(--grey); margin-bottom: 7px;
}
.numbered__t {
  font-family: var(--display); font-weight: 800; font-size: 17px;
  letter-spacing: -.02em; line-height: 1.25; color: var(--fg); margin-bottom: 8px;
}
.numbered__d { font-size: 15px; line-height: 1.55; color: var(--ink2); }

/* ---------- two-up ---------- */
.two {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 34px; margin: 30px 0 40px;
}
.two__item { border-top: 2px solid var(--fg); padding-top: 13px; }
.two__t {
  font-family: var(--display); font-weight: 700;
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--grey); margin-bottom: 8px;
}
.two__d { font-size: 16px; line-height: 1.6; color: var(--ink2); }

/* ---------- three-box process ---------- */
.steps { display: flex; align-items: stretch; margin: 30px 0 40px; flex-wrap: wrap; }
.steps__box {
  flex: 1 1 0; min-width: 0;
  border: 1px solid var(--line); background: var(--soft);
  padding: 18px 17px; min-height: 96px;
}
.steps__t {
  font-family: var(--display); font-weight: 800; font-size: 15px;
  letter-spacing: -.02em; line-height: 1.3; color: var(--fg);
}
.steps__sub { font-size: 13px; color: var(--grey); margin-top: 8px; line-height: 1.45; }
.steps__arrow {
  flex: 0 0 44px; display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 20px; font-weight: 700;
}

/* ---------- vertical flow ---------- */
.flow { list-style: none; margin: 30px 0 40px; padding: 0; border-left: 3px solid var(--accent); }
.flow li {
  position: relative; padding: 0 0 18px 22px;
  font-size: 15.5px; line-height: 1.5; margin: 0; color: var(--ink2);
}
.flow li::before {
  content: ""; position: absolute; left: -6px; top: 8px;
  width: 9px; height: 9px; background: var(--accent); border-radius: 50%;
}
.flow li:last-child { padding-bottom: 0; }
/* every step reads the same — no odd one out */

/* ---------- before / after ---------- */
.compress {
  margin: 34px 0 44px; border: 1px solid var(--line);
  padding: 24px 24px 20px; background: var(--soft);
}
.compress__row {
  display: grid; grid-template-columns: 88px 1fr auto;
  align-items: center; gap: 16px; margin-bottom: 14px;
}
.compress__row:last-child { margin-bottom: 0; }
.compress__lab {
  font-family: var(--display); font-weight: 700; font-size: 11.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--grey);
}
.compress__track { height: 14px; background: var(--bg); border: 1px solid var(--line); }
.compress__track > span { display: block; height: 100%; background: var(--accent); }
.compress__row:last-child .compress__track > span { background: var(--accent-solid); }
.compress__val {
  font-family: var(--display); font-weight: 800; font-size: 14.5px;
  letter-spacing: -.02em; color: var(--fg); white-space: nowrap;
}

/* ---------- results ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px; margin: 34px 0 44px;
}
.stats > div { border-top: 3px solid var(--fg); padding-top: 13px; }
.stats__n {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(21px, 2.6vw, 30px); letter-spacing: -.035em;
  line-height: 1.05; color: var(--fg); margin-bottom: 8px;
}
.stats__n--long {
  font-size: 17px !important;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.3;
}
.stats__label { font-size: 13px; line-height: 1.5; color: var(--grey); }

/* ---------- generic card list ---------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px; margin: 34px 0 44px;
}
.cards__item { border-top: 2px solid var(--fg); padding-top: 13px; }
.cards__t {
  font-family: var(--display); font-weight: 800; font-size: 16px;
  letter-spacing: -.02em; color: var(--fg); margin-bottom: 7px;
}
.cards__d { font-size: 14.5px; line-height: 1.5; color: var(--ink2); }

/* ---------- tables ---------- */
.tablewrap { overflow-x: auto; margin: 28px 0 38px; }
.case__body table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.case__body th, .case__body td {
  text-align: left; vertical-align: top;
  padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); line-height: 1.55;
}
.case__body th {
  font-family: var(--display); font-weight: 700; font-size: 11.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--grey); white-space: nowrap;
}
.case__body td { color: var(--ink2); }

/* ---------- panel ---------- */
.panel { margin: 30px 0 40px; border: 1px solid var(--line); background: var(--soft); padding: 22px 24px; }
.panel__head { padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.panel__t { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--fg); }
.panel__s { font-size: 13px; color: var(--grey); margin-top: 3px; }

/* ---------- empty slot ---------- */
.slot { margin: 34px 0 40px; }
.slot__frame {
  min-height: 140px; border: 1px dashed var(--line); background: var(--soft);
  display: flex; align-items: center; justify-content: center;
}
.slot__label {
  font-family: var(--display); font-weight: 700; font-size: 11.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--grey);
  text-align: center; padding: 0 20px; max-width: 40ch; line-height: 1.6;
}

/* ---------- next / back ---------- */
.case__nav {
  max-width: var(--wrap); margin: 90px auto 0; padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; font-size: 14px; color: var(--grey);
}
.case__nav a:hover { color: var(--fg); box-shadow: inset 0 -2px var(--accent); }

/* ---------- password gate ---------- */
.gate {
  max-width: 420px; margin: 40px 0 60px;
  border: 1px solid var(--line); background: var(--soft); padding: 30px 28px;
}
.gate__t {
  display: inline-block; background: var(--accent-solid); color: var(--accent-on);
  font-family: var(--display); font-weight: 700; font-size: 12px;
  padding: 4px 10px; margin: 0 0 14px;
}
.gate__d { font-size: 14.5px; color: var(--ink2); line-height: 1.6; margin: 0 0 18px; }
.gate__row { display: flex; gap: 9px; }
.gate input {
  flex: 1; background: var(--bg); border: 1px solid var(--line);
  color: var(--fg); font: inherit; font-size: 15px; padding: 9px 11px;
}
.gate input:focus { outline: none; border-color: var(--fg); }
.gate button {
  background: var(--fg); color: var(--bg); border: 0;
  font-family: var(--display); font-weight: 800; font-size: 13.5px;
  letter-spacing: .02em; padding: 0 22px; cursor: pointer;
}
.gate__err { margin: 12px 0 0; font-size: 13px; color: #C0392B; display: none; }
.gate__err.is-on { display: block; }
.is-locked { display: none; }

/* ---------- mobile ---------- */
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .card, .card--half { grid-column: 1; }
  .intro { padding: 30px 0 26px; }
  .intro br { display: none; }        /* let the headline wrap naturally on phones */
  /* the per-project sizes are inline, so scaling them down needs !important */
  .card__title { font-size: clamp(26px, 7.6vw, 34px) !important; }
  .card__org   { font-size: 21px; }
  .card__desc  { font-size: 18px; }
  .card__meta  { font-size: 15.5px; }
  .card .media, .card .media--auto { max-width: 100% !important; }
  .masthead__nav { gap: 14px; }
  .case { padding-top: 44px; }
  .case__body { padding-top: 38px; }
  .steps { flex-direction: column; }
  .steps__box { flex: 1 1 auto; }
  .steps__arrow { flex-basis: 100%; height: 32px; transform: rotate(90deg); }
  .compress__row { grid-template-columns: 76px 1fr; }
  .compress__val { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) { video[autoplay] { animation: none; } }

/* =========================================================
   HOMEPAGE — centred layout
   Only the landing page. Case pages keep their single left
   spine, where long-form reading needs a fixed left edge.
   ========================================================= */
.page--home .intro {
  max-width: none;          /* the line break is explicit; don't constrain it */
  margin-left: auto; margin-right: auto;
  text-align: center;
}
.page--home .lede {
  max-width: 940px;
  margin-left: auto; margin-right: auto;
  text-align: center;
}
.page--home .logos { margin-left: auto; margin-right: auto; }
.page--home .section__title { text-align: center; }
.page--home .card { text-align: center; }
.page--home .card__title { margin-left: auto; margin-right: auto; }
.page--home .card__org { text-align: center; }

/* ---------- a figure that sits beside the text ---------- */
.case__body > figure.figure--float-right,
.case__body > figure.figure--float-left {
  max-width: none;
  margin-top: 0;
}
.figure--float-right { float: right; margin: 4px 0 26px 44px; }
.figure--float-left  { float: left;  margin: 4px 44px 26px 0; }
.figure--float-right .media,
.figure--float-left  .media { margin: 0; }
.case__body::after { content: ""; display: block; clear: both; }

@media (max-width: 720px) {
  .figure--float-right, .figure--float-left {
    float: none; margin: 24px 0; max-width: 100%;
  }
}

/* ---------- About: the portrait rides up beside the page title ---------- */
.about-portrait {
  float: right;
  width: 300px;
  /* sits level with the opening paragraph, inside the text column */
  margin: 4px 0 24px 48px;
}
.about-portrait img { width: 100%; height: auto; display: block; }
/* structured blocks never wrap around the portrait */
.case__body > .tablewrap,
.case__body > .cards,
.case__body > h2 { clear: both; }

@media (max-width: 860px) {
  .about-portrait { float: none; width: 240px; margin: 0 0 24px; }
}
