/* ==========================================================================
   Muhammad Faizan · portfolio
   Tokens, base, shared header/footer, home and case-study components.
   ========================================================================== */

/* Metric-matched fallbacks so the swap to web fonts doesn't shift layout. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}
@font-face {
  font-family: "Newsreader Fallback";
  src: local("Georgia");
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
  size-adjust: 96%;
}

:root {
  --bg: #F7F9FC;
  --surface: #FFFFFF;
  --ink: #121726;
  --muted: #535B6E;
  --line: #DDE3EE;
  --soft: #E7EDFA;
  --accent: #2C4FC7;
  --on-accent: #FFFFFF;
  --accent-on-ink: #B9CBFF;
  --band-off: #C3D0EE;

  --font-serif: "Newsreader", "Newsreader Fallback", Georgia, serif;
  --font-sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --max: 1160px;
  --gutter: 24px;
  --section-y: 72px;

  color-scheme: light;
}

/* No-JS fallback: follow the OS unless the visitor has chosen light. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1120;
    --surface: #121A2E;
    --ink: #E9EDF7;
    --muted: #A3ACC2;
    --line: #26304B;
    --soft: #1A2442;
    --accent: #8FADFF;
    --on-accent: #0B1120;
    --accent-on-ink: #2C4FC7;
    --band-off: #2A3866;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1120;
  --surface: #121A2E;
  --ink: #E9EDF7;
  --muted: #A3ACC2;
  --line: #26304B;
  --soft: #1A2442;
  --accent: #8FADFF;
  --on-accent: #0B1120;
  --accent-on-ink: #2C4FC7;
  --band-off: #2A3866;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  transition: background-color .3s, color .3s;
}

img { max-width: 100%; display: block; }
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
a { color: inherit; }
a:hover { opacity: .78; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 500;
}
.skip-link:focus { top: 12px; }

.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;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.mono--sm { font-size: 11px; }
.mono--accent { color: var(--accent); }

.h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 1.6rem + 3.8vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.h1 em { color: var(--accent); }

.h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 1.45rem + 2.2vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.625rem, 1.35rem + 1.1vw, 2rem);
  line-height: 1.15;
}
.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.muted { color: var(--muted); }
.serif-l {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  line-height: 1.4;
}
.accent { color: var(--accent); }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--ghost { border-color: var(--line); }
.btn--ink { background: var(--ink); color: var(--bg); min-height: 44px; padding: 0 20px; }

.pill-outline {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  font-size: 14px;
  text-decoration: none;
}

.icon-btn {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 12px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.card--soft { background: var(--soft); border-color: transparent; }
.card-stack { display: flex; flex-direction: column; gap: 8px; }

.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 240px), 100%), 1fr));
  padding: 0;
  list-style: none;
}

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.brand svg { flex: none; }
.logo-dot { fill: var(--accent); }

.site-header__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.site-header__actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 720px) {
  .site-header__right { width: 100%; justify-content: space-between; gap: 4px 12px; }
  .site-nav ul { gap: 0 16px; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.site-footer__brand { display: inline-flex; align-items: center; gap: 8px; }
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- Sections ---------- */
.section {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px 12px;
}
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
}
.section.split, .section.about { flex-direction: row; flex-wrap: wrap; }
.split > :first-child { flex: 1 1 280px; }
.split > :last-child { flex: 999 1 520px; min-width: 0; }

/* ---------- Home: hero ---------- */
.hero {
  padding: 80px 0 72px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: stretch;
}
.hero__copy {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.glance {
  flex: 1 1 320px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.glance__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.glance__stats div { display: flex; flex-direction: column-reverse; }
.glance__stats dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 48px;
  line-height: 1;
}
.glance__stats dt { margin-top: 4px; font-size: 13px; color: var(--muted); }
.glance__rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.glance__rows { display: flex; flex-direction: column; gap: 10px; font-size: 14px; margin: 0; }
.glance__rows div { display: flex; justify-content: space-between; gap: 12px; }
.glance__rows dt { color: var(--muted); }
.glance__rows dd { margin: 0; text-align: right; }

@media (max-width: 600px) {
  .hero { padding: 48px 0 56px; gap: 36px; }
  .glance { padding: 22px; }
}

/* ---------- Home: study explorer ---------- */
.tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 10px;
}
.tab {
  min-height: 44px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tab:hover { border-color: var(--muted); }
.tab[aria-selected="true"] { border-color: var(--accent); background: var(--soft); }
.tab__meta { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }
.tab__name { font-size: 17px; font-weight: 600; line-height: 1.3; }

.study {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
}
.study:focus-visible { outline-offset: 4px; border-radius: 24px; }
.study__media { flex: 1 1 380px; min-height: 320px; background: var(--soft); }
.study__media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.study__body {
  flex: 1.3 1 420px;
  min-width: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.study__body .btn--ink { align-self: flex-start; }
.labelled > .mono { margin-bottom: 4px; }
.insight {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--soft);
}
.insight .mono { color: var(--accent); margin-bottom: 4px; }
.insight p:last-child {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.35;
}
@media (max-width: 600px) {
  .study__media, .study__media img { min-height: 220px; }
  .study__body { padding: 24px; }
}

/* ---------- Home: methods matrix ---------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.table-scroll:focus-visible { outline-offset: 2px; border-radius: 18px; }
.matrix {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
}
.matrix thead tr { background: var(--soft); text-align: left; }
.matrix th[scope="col"] { padding: 14px 12px; font-weight: 600; text-align: center; }
.matrix th[scope="col"]:first-child { padding: 14px 18px; text-align: left; }
.matrix tbody tr { border-top: 1px solid var(--line); }
.matrix th[scope="row"] { padding: 12px 18px; font-weight: 400; text-align: left; }
.matrix td { padding: 12px; text-align: center; }
.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  vertical-align: middle;
}
.dot--on { background: var(--accent); }

/* ---------- Home: process ---------- */
.step-title { font-weight: 600; font-size: 18px; }
.step-text { font-size: 15px; color: var(--muted); }

/* ---------- Home: voices ---------- */
.quote {
  max-width: 900px;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1.2rem + 2.3vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.quote-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.quote-nav { display: flex; gap: 8px; }

/* ---------- Home: about ---------- */
.about { align-items: flex-start; gap: 40px 56px; }
.about__photo .placeholder { width: 100%; }
.about__photo { flex: 1 1 260px; max-width: 320px; }
.placeholder {
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.about__copy {
  flex: 999 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.role {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.role p:first-child { font-weight: 600; }
.role p:last-child { font-size: 14px; color: var(--muted); }

/* ---------- Home: contact ---------- */
.contact {
  margin: 24px 0 72px;
  padding: 56px;
  border-radius: 28px;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
}
.contact :focus-visible { outline-color: var(--accent-on-ink); }
.contact__copy {
  flex: 999 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.contact__sub { font-size: 17px; opacity: .8; }
.contact__links {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.contact__email {
  background: var(--accent-on-ink);
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.contact__links a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
}
@media (max-width: 600px) {
  .contact { padding: 36px 24px; border-radius: 24px; }
}

/* ==========================================================================
   Case studies
   ========================================================================== */
.cs-hero {
  padding: 64px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cs-hero .h1 { max-width: 900px; }
.cs-hero .lead { max-width: 700px; font-size: 20px; }
.cs-hero--poster { flex-direction: row; flex-wrap: wrap; gap: 40px; align-items: center; }
.cs-hero--poster > div { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.cs-hero--poster figure { flex: 1 1 240px; max-width: 280px; }
.cs-hero--poster img { width: 100%; height: auto; border-radius: 16px; }

.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.meta div { padding: 16px 0; }
.meta dt { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.meta dd { margin: 0; font-size: 15px; }

.cs-figure { margin-top: 40px; display: flex; flex-direction: column; gap: 10px; }
.cs-figure img { width: 100%; height: auto; border-radius: 20px; }
.cs-figure--wide img { aspect-ratio: 16 / 8; object-fit: cover; }
.cs-figure figcaption { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.cs-section {
  padding: 88px 0 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cs-section--split { flex-direction: row; flex-wrap: wrap; gap: 32px 64px; }
.cs-section--split > .h2 { flex: 1 1 260px; }
.cs-section--split > :last-child { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.cs-section--last { padding-bottom: 96px; }
.cs-intro { max-width: 720px; color: var(--muted); }

.callout {
  padding: 20px 24px;
  background: var(--soft);
  border-radius: 16px;
}
.callout .mono { display: block; }
.callout--quote { font-size: 19px; }
.callout--quote .mono { margin-top: 6px; }

.card ul { padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.card > .mono:first-child { margin-bottom: 6px; }

/* Nature Blanket: sun clock */
.hour {
  min-height: 44px;
  padding: 20px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hour:hover { border-color: var(--muted); }
.hour[aria-pressed="true"] { border-color: var(--hour); box-shadow: inset 0 0 0 1.5px var(--hour); }
.hour__time { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 13px; }
.hour__swatch { width: 14px; height: 14px; border-radius: 50%; background: var(--hour); }
.hour__object { font-family: var(--font-serif); font-size: 26px; line-height: 1.2; }
.hour-readout {
  padding: 18px 22px;
  border-left: 3px solid var(--hour, var(--accent));
  background: var(--soft);
  border-radius: 0 14px 14px 0;
}
.hour-readout strong { font-weight: 600; }

/* TrailMate: stepper */
.stepper { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.stepper__list { flex: 1 1 280px; display: flex; flex-direction: column; gap: 8px; padding: 0; list-style: none; }
.stepper__btn {
  width: 100%;
  min-height: 44px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  display: flex;
  gap: 12px;
}
.stepper__btn:hover { border-color: var(--muted); }
.stepper__btn[aria-pressed="true"] { border-color: var(--accent); background: var(--soft); }
.stepper__btn .mono { color: var(--accent); padding-top: 3px; }
.stage {
  flex: 2 1 420px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.stage__track {
  --gap: 90px;
  height: 150px;
  border-radius: 14px;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--gap) * var(--scale, 1));
  transition: gap .6s cubic-bezier(.2, .7, .2, 1);
}
.band {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--band-off);
  transition: background-color .4s;
}
.band.is-on { background: var(--accent); }
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
}
.stage__track.is-ping .band::after { animation: ping 1.4s ease-out infinite; }
@keyframes ping {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(2.4); opacity: 0; }
}
.stage__text { font-size: 20px; line-height: 1.5; }
@media (max-width: 600px) {
  .stage { padding: 20px; }
  .stage__track { --scale: .55; }
}

.compare {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
}
.compare thead tr { background: var(--soft); text-align: left; }
.compare th, .compare td { padding: 14px 18px; text-align: left; }
.compare thead th { font-weight: 600; }
.compare tbody tr { border-top: 1px solid var(--line); }
.compare tbody th { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--muted); }

.finding { display: flex; flex-direction: column; gap: 10px; }
.finding__title { font-weight: 600; }
.finding__text { font-size: 15px; color: var(--muted); }
.finding blockquote { font-family: var(--font-serif); font-size: 20px; line-height: 1.35; }

.change-list { border-top: 1px solid var(--line); margin: 0; }
.change-list div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.change-list dt { flex: 0 0 220px; font-weight: 600; }
.change-list dd { flex: 999 1 400px; min-width: 0; margin: 0; color: var(--muted); }

/* Passive BCI: theme pills */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 15px;
  cursor: pointer;
}
.pill:hover { border-color: var(--muted); }
.pill[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.theme-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 24px;
}
.theme-panel .mono { margin-bottom: 6px; }
.theme-panel .callout--quote { grid-column: 1 / -1; padding: 18px 22px; border-radius: 14px; }
@media (max-width: 600px) { .theme-panel { padding: 22px; } }

.shift { display: flex; flex-direction: column; gap: 12px; padding: 0; list-style: none; }
.shift li { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.shift blockquote { flex: 1 1 300px; padding: 18px 20px; border-radius: 14px; }
.shift .before { border: 1px dashed var(--line); color: var(--muted); }
.shift .after { background: var(--soft); }
.shift__arrow { color: var(--accent); font-size: 22px; }

/* Case nav */
.case-nav {
  margin-top: 88px;
  padding: 32px 0 72px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.case-nav--flush { margin-top: 0; }
.case-nav a {
  display: flex;
  flex-direction: column;
  min-height: 44px;
  text-decoration: none;
}
.case-nav a:last-child { align-items: flex-end; text-align: right; margin-left: auto; }
.case-nav__title { font-family: var(--font-serif); font-size: 26px; line-height: 1.25; }

figure.callout blockquote { font-family: var(--font-serif); font-size: 20px; line-height: 1.4; }
figure.callout figcaption { margin-top: 6px; }
.shift blockquote { font-family: var(--font-serif); font-size: 18px; line-height: 1.45; }
