:root {
  color-scheme: light;
  --ink: #0e1a2b;
  --graphite: #18253a;
  --slate: #36475c;
  --steel: #66788c;
  --silver: #9daec2;
  --mist: #d9e5f2;
  --fog: #ecf3fb;
  --paper: #ffffff;
  --paper-soft: #ffffff;
  --accent: #3b82e0;
  --accent-dim: #1f5bb5;
  --accent-wash: #e6f0fb;
  --accent-warm: #e67a3b;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.13);
  --line: rgba(255, 255, 255, 0.2);
  --shadow: rgba(14, 26, 43, 0.24);
  --surface-1: rgba(255, 255, 255, 0.95);
  --surface-2: rgba(255, 255, 255, 1);
  --surface-glass: rgba(236, 243, 251, 0.78);
  --border-soft: rgba(31, 91, 181, 0.16);
  --text-strong: var(--ink);
  --text-muted: rgba(14, 26, 43, 0.72);
  --text-faint: rgba(14, 26, 43, 0.62);
  --font-sans:
    "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-serif:
    "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-mono:
    "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --card-radius: 14px;
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 1));
  --card-border: 1px solid rgba(31, 91, 181, 0.16);
  --card-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 18px 48px rgba(14, 26, 43, 0.05),
    0 2px 4px rgba(14, 26, 43, 0.03);
  --card-shadow-hover:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 32px 80px rgba(59, 130, 224, 0.16),
    0 6px 14px rgba(14, 26, 43, 0.06);
}

html[data-theme="dark"] {
  --card-bg: linear-gradient(180deg, var(--surface-1), var(--surface-2));
  --card-border: 1px solid var(--border-soft);
  --card-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 18px 48px rgba(0, 0, 0, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.2);
  --card-shadow-hover:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 32px 80px rgba(90, 160, 255, 0.18),
    0 8px 18px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e8eef7;
  --graphite: #d6dfeb;
  --slate: #a8b6cd;
  --steel: #8896b0;
  --silver: #66788c;
  --mist: #1c2a42;
  --fog: #0a1424;
  --paper: #111d31;
  --paper-soft: #16243a;
  --accent: #5aa0ff;
  --accent-dim: #3b82e0;
  --accent-wash: rgba(59, 130, 224, 0.14);
  --accent-warm: #ff9d63;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.5);
  --surface-1: rgba(22, 36, 58, 0.85);
  --surface-2: rgba(28, 42, 66, 0.95);
  --surface-glass: rgba(10, 20, 36, 0.78);
  --border-soft: rgba(120, 160, 220, 0.16);
  --text-strong: #e8eef7;
  --text-muted: rgba(232, 238, 247, 0.72);
  --text-faint: rgba(232, 238, 247, 0.5);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--fog);
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  transition: background-color 380ms ease;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* During theme swap, disable all transitions so colors snap to the new theme
   without any element getting stuck mid-tween (which can happen when the
   browser tab is throttled or backgrounded). Theme swaps are instant; smooth
   transitions resume once .theme-transitioning is removed (~50ms later). */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: none !important;
}


body {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 60% at 12% 8%, rgba(59, 130, 224, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 92% 92%, rgba(230, 122, 59, 0.12), transparent 60%),
    var(--fog);
  font-family:
    "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-feature-settings: "ss01", "cv11";
}

html[data-theme="dark"] body {
  background:
    radial-gradient(ellipse 80% 60% at 12% 8%, rgba(90, 160, 255, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 92% 92%, rgba(255, 157, 99, 0.09), transparent 60%),
    var(--fog);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  content: "";
}

html[data-theme="dark"] body::before {
  opacity: 0.12;
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    display: none;
  }
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 40;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-140%);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 32px rgba(14, 26, 43, 0.32);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* .back-to-top FAB removed across all pages — replaced by typographic
   .footer-top-link in the footer (currently homepage only). The element
   is kept hidden on pages that still ship the markup. */
.back-to-top {
  display: none;
}

/* .scroll-progress bar removed — common AI-landing-page tic, no longer in
   the design vocabulary. The element is kept hidden where the markup ships. */
.scroll-progress {
  display: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  color: var(--ink);
  background: transparent;
  transition: background-color 240ms ease, border-color 240ms ease;
}

.site-header.is-scrolled {
  background: var(--fog);
  border-bottom: 1px solid rgba(31, 91, 181, 0.12);
}

html[data-theme="dark"] .site-header.is-scrolled {
  background: var(--fog);
  border-bottom: 1px solid rgba(120, 160, 220, 0.14);
}

/* old gradient hairline removed — replaced by a solid border in .is-scrolled */

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  padding: 6px 2px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 1.08rem;
  line-height: 1;
  letter-spacing: -0.02em;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-mark {
  color: var(--accent-dim);
  font-weight: 700;
  letter-spacing: -0.035em;
  transition: color 240ms ease;
}

.brand:hover .brand-mark {
  color: var(--accent);
}

.brand-name {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.018em;
  transition: color 240ms ease;
}

.brand:hover .brand-name {
  color: var(--accent-dim);
}

/* Language indicator — inline typographic toggle (no segmented pill) */
.language-toggle {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.language-button {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 4px 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-faint);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: color 220ms ease;
}

.language-button + .language-button::before {
  /* mid-dot separator between EN and PT-BR */
  display: inline-block;
  margin-right: 8px;
  color: var(--text-faint);
  content: "\b7";
}

.language-button:hover:not(.is-active) {
  color: var(--accent-dim);
  background: transparent;
}

.language-button.is-active {
  color: var(--accent-dim);
  background: transparent;
}

/* Theme toggle — icon-only, no pill chrome */
.theme-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-faint);
  box-shadow: none;
  backdrop-filter: none;
  cursor: pointer;
  overflow: visible;
  transition: color 200ms ease;
}

.theme-toggle:hover {
  color: var(--accent-dim);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 4px;
}

.theme-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  transition:
    opacity 320ms ease,
    transform 460ms cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

html[data-theme="dark"] .theme-icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

html[data-theme="dark"] .theme-icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.hero {
  position: relative;
  display: grid;
  min-height: 88svh;
  overflow: hidden;
  padding: 132px 32px 54px;
  isolation: isolate;
}

.hero-media,
.hero-vignette,
.hero-grid {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -5;
  background-image: url("assets/hero-sugarloaf-ai.jpg");
  background-position: center;
  background-size: cover;
  filter: saturate(1.04) contrast(1.02) brightness(1.02);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0) 44%, rgba(236, 243, 251, 0.48) 100%),
    radial-gradient(ellipse at 22% 54%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.24) 38%, transparent 62%);
  content: "";
}

.hero-vignette {
  z-index: -4;
  background:
    linear-gradient(90deg, rgba(246, 251, 255, 0.92) 0%, rgba(246, 251, 255, 0.64) 32%, rgba(246, 251, 255, 0.18) 60%, transparent 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 44%, rgba(236, 243, 251, 0.52) 100%);
}

.hero-grid {
  z-index: -3;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(31, 91, 181, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 91, 181, 0.07) 1px, transparent 1px);
  background-position:
    calc(50% + var(--grid-x)) calc(50% + var(--grid-y)),
    calc(50% + var(--grid-x)) calc(50% + var(--grid-y));
  background-size: 96px 96px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 62%);
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--mist), transparent 86%);
  content: "";
}

.hero-content {
  display: grid;
  width: min(1120px, 100%);
  min-width: 0;
  align-self: center;
  gap: 0;
  margin: 0 auto;
  color: var(--ink);
}

/* Page-load staggered reveal — hero elements rise into place */
.hero-content > * {
  opacity: 0;
  transform: translateY(10px);
  animation: hero-rise 520ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content > .section-mark { animation-delay: 40ms; }
.hero-content > h1 { animation-delay: 80ms; }
.hero-content > .hero-copy { animation-delay: 160ms; }
.hero-content > .hero-cta-line { animation-delay: 220ms; }
.hero-content > .hero-cta-note { animation-delay: 260ms; }

@keyframes hero-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-marker {
  animation: hero-marker-fade-in 900ms cubic-bezier(0.16, 1, 0.3, 1) 320ms both;
}

@keyframes hero-marker-fade-in {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
}

/* Scroll-triggered reveal — sections fade up gently as they enter viewport.
   Subtle by design: 8px translate, 420ms — enough to register, not enough
   to read as decoration. */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 420ms ease-out, transform 420ms ease-out;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-content > *,
  .hero-marker,
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Hero next-section link — quieter typographic version of the old
   track+dot+SCROLL indicator. */
.hero-scroll {
  position: absolute;
  z-index: 2;
  left: 32px;
  bottom: 56px;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: rgba(31, 91, 181, 0.7);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  opacity: 0;
  animation: hero-rise 720ms cubic-bezier(0.16, 1, 0.3, 1) 720ms forwards;
  transition: color 200ms ease, gap 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-scroll-mark {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-scroll:hover {
  color: var(--accent-dim);
  gap: 14px;
}

.hero-scroll:hover .hero-scroll-mark {
  transform: translateY(2px);
}

@media (max-width: 860px) {
  .hero-scroll {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll {
    opacity: 1;
    animation: none;
  }
  .hero-scroll:hover .hero-scroll-mark {
    transform: none;
  }
}

/* Footer "back to top" inscription — replaces the floating .back-to-top FAB */
.footer-top {
  margin: 18px 0 0;
}

.footer-top-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  color: rgba(31, 91, 181, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 200ms ease, gap 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-top-mark {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-top-link:hover {
  color: var(--accent-dim);
  gap: 12px;
}

.footer-top-link:hover .footer-top-mark {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .footer-top-link:hover .footer-top-mark {
    transform: none;
  }
}

h1#hero-title {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  width: fit-content;
  margin: 0;
  padding: 0 0 22px;
  text-shadow: none;
  border-bottom: 1px solid rgba(31, 91, 181, 0.22);
}

h1#hero-title::after {
  /* short accent rule overlapping the bottom border, like a masthead imprint */
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 56px;
  height: 1px;
  background: var(--accent);
  content: "";
}

.hero-numeral {
  display: inline-flex;
  color: var(--accent-dim);
  font: inherit;
  font-size: clamp(2.8rem, 6.2vw, 5.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.hero-numeral em {
  display: inline-block;
  color: inherit;
  font-style: normal;
  font-weight: 800;
}

.hero-wordmark {
  margin-left: 0.22em;
  padding-left: 0.22em;
  border-left: 1px solid rgba(31, 91, 181, 0.28);
  color: var(--ink);
  font-size: clamp(2.8rem, 6.2vw, 5.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
}

.hero-copy {
  max-width: 650px;
  margin: 30px 0 0;
  color: var(--text-muted);
  font-size: 1.24rem;
  line-height: 1.58;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 20px;
  margin-top: 36px;
}

/* Hero field-marker — replaces the orbiting "signal" SVG */
.hero-marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: clamp(280px, 28vw, 360px);
  gap: 20px;
  padding: 22px 24px 18px;
  color: var(--accent-dim);
  border: 1px solid rgba(31, 91, 181, 0.22);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translate3d(
    calc(var(--pan-x) * 0.4),
    calc(var(--pan-y) * -0.4 - var(--scroll-progress, 0) * 28px),
    0
  );
  transition: transform 320ms ease-out, opacity 320ms ease-out;
  opacity: calc(1 - var(--scroll-progress, 0) * 0.4);
}

.hero-marker::before {
  /* corner ticks — top-left + top-right */
  position: absolute;
  top: -1px;
  left: -1px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  content: "";
  pointer-events: none;
}

.hero-marker::after {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 14px;
  height: 14px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  content: "";
  pointer-events: none;
}

.hero-marker-coords {
  display: grid;
  gap: 4px;
}

.hero-marker-line {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: baseline;
  font-feature-settings: "tnum" 1;
}

.hero-marker-key {
  color: rgba(31, 91, 181, 0.55);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-marker-val {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-marker-sketch {
  display: block;
  width: 100%;
  height: auto;
  color: var(--accent-dim);
  filter: drop-shadow(0 2px 4px rgba(20, 28, 42, 0.06));
}

.hero-marker-pin {
  animation: hero-marker-pin-pulse 3.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.hero-marker-pin-ring {
  fill: none;
  animation: hero-marker-pin-ring 3.4s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes hero-marker-pin-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.18); }
}

@keyframes hero-marker-pin-ring {
  0% { opacity: 0.6; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(2.4); }
}

.hero-marker-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed rgba(31, 91, 181, 0.28);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-marker-stamp {
  color: var(--accent-dim);
}

.hero-marker-meta {
  color: var(--text-faint);
  font-weight: 500;
}

@media (max-width: 920px) {
  .hero-marker {
    width: 100%;
    max-width: 360px;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-marker-pin,
  .hero-marker-pin-ring { animation: none; }
}

/* Hero typographic CTA — replaces the contact-button-with-arrow stamp */
.hero-cta-line {
  margin: 32px 0 8px;
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-wrap: pretty;
}

.hero-cta-prefix {
  margin-right: 6px;
}

.hero-cta-link {
  font-size: 1.08rem;
}

.hero-cta-note {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Hero variant of section-mark (slight extra bottom margin to breathe) */
.hero-mark {
  margin-bottom: 28px;
}

.language-button:focus-visible,
.brand:focus-visible,
.site-nav-link:focus-visible,
.home-note-link:focus-visible,
.home-notes-cta a:focus-visible,
.post-card:focus-visible,
.post-card-link:focus-visible,
.hero-scroll:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
  box-shadow: 0 0 0 6px rgba(59, 130, 224, 0.12);
}

.home-note-link:focus-visible,
.post-card-link:focus-visible {
  outline-offset: 2px;
  border-radius: 14px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* Static editorial focus strip — replaces the Awwwards-style scrolling marquee */
.focus-strip {
  position: relative;
  z-index: 1;
  padding: 44px 32px 40px;
  border-top: 1px solid rgba(31, 91, 181, 0.16);
  background: transparent;
}

.focus-strip-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: center;
  width: min(1200px, 100%);
  margin: 0 auto;
}

.focus-strip-mark {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 10px;
  margin: 0;
}

.focus-strip-mark-key {
  color: var(--accent-dim);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.focus-strip-mark-rule {
  display: block;
  width: 44px;
  height: 1px;
  background: rgba(31, 91, 181, 0.5);
}

.focus-strip-mark-meta {
  color: var(--text-faint);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-feature-settings: "tnum" 1;
}

.focus-strip-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.focus-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 6px 22px;
  color: var(--graphite);
  font-size: 1rem;
  line-height: 1.4;
  font-feature-settings: "tnum" 1;
}

.focus-item + .focus-item {
  border-left: 1px solid rgba(31, 91, 181, 0.18);
}

.focus-item:first-child {
  padding-left: 0;
}

.focus-item:last-child {
  padding-right: 0;
}

.focus-item-num {
  color: rgba(31, 91, 181, 0.55);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.focus-item-verb {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.005em;
}

.focus-item-rest {
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .focus-strip {
    padding: 22px 24px 18px;
  }

  .focus-strip-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .focus-strip-mark {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .focus-strip-mark-rule {
    flex: 1;
    width: auto;
  }

  .focus-strip-list {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .focus-item {
    flex-wrap: wrap;
    padding: 8px 0;
    border-top: 1px solid rgba(31, 91, 181, 0.16);
  }

  .focus-item + .focus-item {
    border-left: none;
  }

  .focus-item:first-child,
  .focus-item:last-child {
    padding-left: 0;
    padding-right: 0;
  }
}

.fit-check {
  padding: 100px 32px 24px;
  background: var(--fog);
}

.fit-check-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.fit-check-header {
  max-width: 760px;
  margin-bottom: 36px;
}

.fit-check-title {
  margin: 12px 0 14px;
  color: var(--ink);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.fit-check-dek {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.06rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.fit-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.fit-check-col {
  position: relative;
  padding: 32px 30px 30px;
  border: var(--card-border);
  border-radius: var(--card-radius);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.fit-check-col::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 18px,
      rgba(59, 130, 224, 0.04) 18px,
      rgba(59, 130, 224, 0.04) 19px
    );
  content: "";
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent);
  pointer-events: none;
}

.fit-check-col.fit-check-yes::after {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  background: rgba(59, 130, 224, 0.08);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  content: "✓";
}

.fit-check-col.fit-check-no::after {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(102, 120, 140, 0.5);
  border-radius: 50%;
  color: rgba(102, 120, 140, 0.85);
  background: rgba(102, 120, 140, 0.08);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
  content: "—";
}

.fit-check-col.fit-check-yes {
  border-top: 1px solid rgba(59, 130, 224, 0.6);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 -1px 0 var(--accent) inset,
    0 18px 48px rgba(59, 130, 224, 0.06),
    0 2px 4px rgba(14, 26, 43, 0.03);
}

.fit-check-col.fit-check-no {
  border-top: 1px solid rgba(102, 120, 140, 0.4);
}

.fit-check-col-title {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.fit-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.55;
}

.fit-check-list li {
  position: relative;
  padding-left: 26px;
}

.fit-check-list li::before {
  position: absolute;
  top: 11px;
  left: 4px;
  width: 14px;
  height: 1px;
  background: rgba(31, 91, 181, 0.55);
  content: "";
}

.fit-check-no .fit-check-list li::before {
  background: rgba(102, 120, 140, 0.4);
}

.fit-check-list li + li {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(31, 91, 181, 0.14);
}

.engagement {
  position: relative;
  padding: 96px 32px 80px;
  background: transparent;
}

.engagement-inner {
  position: relative;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.engagement-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: 80px;
  align-items: center;
}

.engagement-header {
  max-width: 640px;
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .engagement-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.engagement-title {
  margin: 12px 0 16px;
  color: var(--ink);
  font-size: clamp(2rem, 4.8vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.026em;
  text-wrap: balance;
}

.engagement-dek {
  margin: 0;
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1.14rem;
  line-height: 1.65;
  text-wrap: pretty;
}

/* Section mark — editorial replacement for the eyebrow-dot pattern */
.section-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-mark-num {
  color: var(--accent-dim);
  font-weight: 800;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.08em;
}

.section-mark-rule {
  display: inline-block;
  width: 26px;
  height: 1px;
  background: rgba(31, 91, 181, 0.36);
}

.section-mark-label {
  letter-spacing: 0.14em;
}

/* Editorial CTA — typographic alternative to the button-with-arrow stamp */
.engagement-cta-line {
  margin: 32px 0 0;
  font-size: 1.04rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-wrap: pretty;
}

.engagement-cta-prefix {
  margin-right: 6px;
}

.engagement-cta-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.engagement-cta-email {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  transition: background-size 240ms ease;
}

.engagement-cta-link:hover .engagement-cta-email,
.engagement-cta-link:focus-visible .engagement-cta-email {
  color: var(--accent-dim);
  background-size: 100% 2px;
}

.engagement-cta-mark {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.engagement-cta-link:hover .engagement-cta-mark,
.engagement-cta-link:focus-visible .engagement-cta-mark {
  transform: translate(3px, 3px);
}

/* Working note — quiet editorial card matching site palette
   (replaces the cream-yellow rotated memo sticker) */
.engagement-memo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.memo-paper {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 340px;
  padding: 26px 28px 22px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
  border: 1px solid rgba(31, 91, 181, 0.18);
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(14, 26, 43, 0.04);
}

.memo-paper::before {
  /* short accent stripe overlapping the top border, matches .about-bio */
  position: absolute;
  top: -1px;
  left: 0;
  width: 56px;
  height: 1px;
  background: var(--accent);
  content: "";
}

.memo-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 16px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(31, 91, 181, 0.14);
}

.memo-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.memo-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-feature-settings: "tnum" 1;
}

.memo-meta-key {
  opacity: 0.7;
}

.memo-fields {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
}

.memo-field {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: baseline;
  margin: 0;
}

.memo-field dt {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.memo-field dd {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink);
  line-height: 1.4;
}

.memo-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.memo-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: baseline;
  font-size: 0.94rem;
  line-height: 1.45;
}

.memo-item-mark {
  font-weight: 800;
  color: var(--accent-dim);
  text-align: center;
}

.memo-item-no .memo-item-mark {
  color: var(--text-faint);
}

.memo-item-no .memo-item-text {
  color: var(--text-muted);
}

.memo-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(31, 91, 181, 0.12);
}

.memo-sign {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.memo-stamp {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-dim);
  text-transform: uppercase;
  opacity: 0.78;
}

.memo-stamp-ring,
.memo-stamp-text {
  display: inline;
}

@media (max-width: 860px) {
  .memo-paper {
    max-width: 100%;
  }
  .engagement-memo {
    justify-content: flex-start;
  }
}

.home-notes {
  padding: 88px 32px 104px;
  background: var(--fog);
}

.home-notes-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.home-notes-header {
  max-width: 760px;
  margin: 0 0 56px;
}

.home-notes-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
}

.home-notes-mark .section-mark-spacer {
  flex: 1;
  height: 1px;
  background: rgba(31, 91, 181, 0.22);
}

.home-notes-mark .section-mark-side {
  color: var(--text-faint);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.home-notes-title {
  margin: 6px 0 16px;
  color: var(--ink);
  font-size: clamp(2rem, 4.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.026em;
  text-wrap: balance;
}

.home-notes-dek {
  margin: 0;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.04rem;
  line-height: 1.6;
  text-wrap: pretty;
}

/* Editorial layout — one lead note + two compact, asymmetric */
.home-notes-list {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-auto-rows: auto;
  gap: 24px 36px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.home-note {
  position: relative;
}

.home-note-lead {
  grid-row: span 2;
}

.home-note-link {
  position: relative;
  display: grid;
  height: 100%;
  align-content: start;
  gap: 14px;
  padding: 32px 28px 28px;
  border: 1px solid rgba(31, 91, 181, 0.18);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 1));
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition:
    border-color 280ms ease,
    box-shadow 280ms ease,
    transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.home-note-link::before {
  /* "+" registration mark, top-right (matches blog cards' family of marks) */
  position: absolute;
  top: 14px;
  right: 14px;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center/100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center/1px 100% no-repeat;
  color: rgba(31, 91, 181, 0.32);
  content: "";
  transition: color 240ms ease, transform 240ms ease;
}

.home-note-link:hover {
  border-color: rgba(59, 130, 224, 0.42);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 22px 50px -22px rgba(20, 28, 42, 0.22);
  transform: translateY(-2px);
}

.home-note-link:hover::before {
  color: var(--accent);
  transform: rotate(90deg);
}

.home-note-index {
  display: inline-flex;
  align-items: baseline;
  margin: 0;
  color: rgba(31, 91, 181, 0.52);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-feature-settings: "tnum" 1;
}

.home-note-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  color: var(--text-faint);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-note-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(31, 91, 181, 0.36);
  border-radius: 999px;
  color: var(--accent-dim);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.home-note-meta-sep {
  display: inline-block;
  width: 14px;
  height: 1px;
  background: rgba(14, 26, 43, 0.2);
}

.home-note-time {
  font-feature-settings: "tnum" 1;
}

.home-note-title {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.014em;
  text-wrap: balance;
  transition: color 200ms ease;
}

.home-note-link:hover .home-note-title {
  color: var(--accent-dim);
}

.home-note-dek {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.home-note-cta {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0 0;
  color: var(--accent-dim);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.home-note-cta-mark {
  display: inline-block;
  color: var(--accent);
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.home-note-link:hover .home-note-cta-mark {
  transform: translate(3px, 3px);
}

/* Lead — bigger title, more breathing room */
.home-note-lead .home-note-link {
  padding: 40px 36px 32px;
  gap: 18px;
}

.home-note-lead .home-note-title {
  font-size: clamp(1.7rem, 2.4vw, 2.1rem);
  letter-spacing: -0.022em;
  line-height: 1.08;
  margin-top: 10px;
}

.home-note-lead .home-note-dek {
  font-size: 1.04rem;
  line-height: 1.55;
}

/* Compact — title is the focal point, dek line-clamped */
.home-note-compact .home-note-link {
  padding: 24px 24px 22px;
  gap: 10px;
}

.home-note-compact .home-note-title {
  font-size: 1.12rem;
}

.home-note-compact .home-note-dek {
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 860px) {
  .home-notes-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-note-lead {
    grid-row: auto;
  }

  .home-note-lead .home-note-link {
    padding: 28px 24px 24px;
  }
}

.home-notes-cta {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
}

.home-notes-cta a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding-bottom: 2px;
  color: var(--accent-dim);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  transition: background-size 220ms ease, color 200ms ease;
}

.home-notes-cta a:hover {
  color: var(--accent);
  background-size: 100% 2px;
}

/* ============================================================
   Cases — single case dossier ("Autoflow")
   Editorial bluebook treatment, sits between engagement & notes
   ============================================================ */
.cases {
  position: relative;
  padding: 104px 32px 96px;
  background: transparent;
}

.cases::before {
  /* hairline rule mirroring focus-strip's top edge */
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1120px, calc(100% - 64px));
  height: 1px;
  background: rgba(31, 91, 181, 0.14);
  content: "";
  transform: translateX(-50%);
}

.cases-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.cases-header {
  max-width: 720px;
  margin: 0 0 48px;
}

.cases-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-feature-settings: "tnum" 1;
}

.cases-mark-key {
  color: var(--accent-dim);
  letter-spacing: 0.22em;
}

.cases-mark-rule {
  flex: 0 0 44px;
  height: 1px;
  background: rgba(31, 91, 181, 0.5);
}

.cases-mark-meta {
  color: var(--text-faint);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
}

.cases-title {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(2rem, 4.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.026em;
  text-wrap: balance;
}

.cases-dek {
  margin: 0;
  max-width: 620px;
  color: var(--text-muted);
  font-size: 1.04rem;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ============================================================
   Case teaser — home page card linking to /cases/autoflow/
   ============================================================ */
.case-teaser {
  position: relative;
  display: grid;
  grid-template-columns: minmax(72px, 96px) 1fr;
  gap: 36px;
  padding: 48px 52px 40px;
  border: 1px solid rgba(31, 91, 181, 0.18);
  border-radius: 4px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  color: inherit;
  text-decoration: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 22px 56px -22px rgba(14, 26, 43, 0.14),
    0 2px 4px rgba(14, 26, 43, 0.03);
  transition:
    border-color 280ms ease,
    box-shadow 280ms ease,
    transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.case-teaser::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 96px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.case-teaser::after {
  position: absolute;
  top: 24px;
  right: 26px;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center/100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center/1px 100% no-repeat;
  color: rgba(31, 91, 181, 0.32);
  content: "";
  transition: color 240ms ease, transform 240ms ease;
}

.case-teaser:hover {
  border-color: rgba(59, 130, 224, 0.42);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 28px 64px -20px rgba(20, 28, 42, 0.22),
    0 4px 8px rgba(14, 26, 43, 0.05);
  transform: translateY(-2px);
}

.case-teaser:hover::after {
  color: var(--accent);
  transform: rotate(90deg);
}

.case-teaser-num {
  display: block;
  padding-top: 6px;
  color: var(--accent-dim);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-feature-settings: "tnum" 1;
}

.case-teaser-body {
  min-width: 0;
}

.case-teaser-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--text-faint);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.case-teaser-name {
  color: var(--accent-dim);
  font-weight: 800;
  letter-spacing: 0.22em;
}

.case-teaser-meta-sep {
  display: inline-block;
  width: 14px;
  height: 1px;
  background: rgba(14, 26, 43, 0.22);
}

.case-teaser-stage {
  color: var(--text-muted);
}

.case-teaser-title {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.022em;
  text-wrap: balance;
  transition: color 220ms ease;
}

.case-teaser:hover .case-teaser-title {
  color: var(--accent-dim);
}

.case-teaser-dek {
  margin: 0 0 28px;
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1.04rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.case-teaser-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0 0 30px;
  padding: 22px 0 0;
  list-style: none;
  border-top: 1px solid rgba(31, 91, 181, 0.12);
}

.case-teaser-stat {
  display: grid;
  gap: 6px;
  padding: 4px 28px 4px 0;
  border-right: 1px solid rgba(31, 91, 181, 0.08);
}

.case-teaser-stat:last-child {
  border-right: none;
  padding-right: 0;
}

.case-teaser-stat-num {
  color: var(--ink);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.022em;
  font-feature-settings: "tnum" 1;
  line-height: 1.05;
}

.case-teaser-stat-num em {
  font-style: normal;
  color: var(--accent);
}

.case-teaser-stat-suffix {
  color: var(--accent-dim);
  font-weight: 700;
}

.case-teaser-stat-arrow {
  margin: 0 2px;
  color: var(--accent);
  font-weight: 600;
}

.case-teaser-stat-label {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.case-teaser-cta {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--accent-dim);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.case-teaser-cta-mark {
  color: var(--accent);
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.case-teaser:hover .case-teaser-cta-mark {
  transform: translate(3px, 3px);
}

@media (max-width: 760px) {
  .case-teaser {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 32px 24px 28px;
  }

  .case-teaser-num {
    padding-top: 0;
    font-size: 0.92rem;
  }

  .case-teaser-stats {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .case-teaser-stat {
    padding: 16px 0 0;
    border-right: none;
    border-top: 1px solid rgba(31, 91, 181, 0.1);
  }

  .case-teaser-stat:first-child {
    padding-top: 0;
    border-top: none;
  }
}

/* ============================================================
   Cases listing page (/cases/)
   ============================================================ */
.cases-index-main {
  position: relative;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 140px 24px 96px;
}

.cases-index-head {
  max-width: 740px;
  margin: 0 0 64px;
}

.cases-index-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 30px;
  color: var(--accent-dim);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.cases-index-mark-sigil {
  font-weight: 800;
}

.cases-index-mark-rule {
  flex: 0 0 56px;
  height: 1px;
  background: rgba(31, 91, 181, 0.42);
}

.cases-index-mark-count {
  color: var(--text-faint);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}

.cases-index-title {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(2.4rem, 5.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.cases-index-dek {
  margin: 0;
  max-width: 620px;
  color: var(--text-muted);
  font-size: 1.14rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.cases-index-list {
  display: grid;
  gap: 22px;
  margin: 0 0 56px;
  padding: 0;
  list-style: none;
}

.cases-index-item {
  margin: 0;
}

.cases-index-link {
  position: relative;
  display: grid;
  grid-template-columns: minmax(80px, 110px) 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 36px 40px 32px;
  border: 1px solid rgba(31, 91, 181, 0.18);
  border-radius: 4px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  color: inherit;
  text-decoration: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 22px 56px -28px rgba(14, 26, 43, 0.14);
  transition:
    border-color 280ms ease,
    box-shadow 280ms ease,
    transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cases-index-link::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.cases-index-link:hover {
  border-color: rgba(59, 130, 224, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 28px 60px -22px rgba(20, 28, 42, 0.22);
  transform: translateY(-2px);
}

.cases-index-num {
  align-self: start;
  padding-top: 6px;
  color: var(--accent-dim);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-feature-settings: "tnum" 1;
}

.cases-index-content {
  min-width: 0;
}

.cases-index-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--text-faint);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.cases-index-name {
  color: var(--accent-dim);
  font-weight: 800;
  letter-spacing: 0.22em;
}

.cases-index-meta-sep {
  display: inline-block;
  width: 14px;
  height: 1px;
  background: rgba(14, 26, 43, 0.22);
}

.cases-index-stage {
  color: var(--text-muted);
}

.cases-index-itemtitle {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.018em;
  text-wrap: balance;
  transition: color 220ms ease;
}

.cases-index-link:hover .cases-index-itemtitle {
  color: var(--accent-dim);
}

.cases-index-itemdek {
  margin: 0;
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.cases-index-cta {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--accent-dim);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.cases-index-cta-mark {
  color: var(--accent);
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cases-index-link:hover .cases-index-cta-mark {
  transform: translate(3px, 3px);
}

.cases-index-foot {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.92rem;
  font-style: italic;
}

@media (max-width: 760px) {
  .cases-index-main {
    padding: 110px 22px 80px;
  }

  .cases-index-link {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 22px 24px;
  }

  .cases-index-num {
    padding-top: 0;
    font-size: 0.92rem;
  }

  .cases-index-cta {
    margin-top: 8px;
  }
}

/* ============================================================
   Case detail page (/cases/autoflow/)
   ============================================================ */
.case-main {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 132px 28px 96px;
}

.case-page {
  display: grid;
  gap: 0;
}

/* --- Hero -------------------------------------------------------- */
.case-hero {
  position: relative;
  margin: 0 0 56px;
}

.case-hero-mark {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 0 0 36px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.case-hero-mark-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--accent-dim);
  text-decoration: none;
  transition: color 200ms ease;
}

.case-hero-mark-link:hover {
  color: var(--accent);
}

.case-hero-mark-sigil {
  font-weight: 800;
  font-feature-settings: "tnum" 1;
}

.case-hero-mark-rule {
  flex: 1;
  min-width: 32px;
  max-width: 220px;
  height: 1px;
  background: rgba(31, 91, 181, 0.32);
}

.case-hero-mark-num {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.22em;
  font-feature-settings: "tnum" 1;
}

.case-hero-mark-sep {
  color: var(--text-faint);
}

.case-hero-mark-year {
  color: var(--text-faint);
  font-feature-settings: "tnum" 1;
}

.case-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: 64px;
  align-items: end;
}

.case-hero-lede {
  min-width: 0;
}

.case-hero-title {
  margin: 0 0 24px;
  color: var(--ink);
  line-height: 0.98;
  letter-spacing: -0.034em;
  text-wrap: balance;
}

.case-hero-name {
  display: block;
  font-size: clamp(3.2rem, 8.4vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--ink) 0%, var(--accent-dim) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.case-hero-sub {
  display: block;
  margin-top: 14px;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--text-muted);
}

.case-hero-dek {
  margin: 0;
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1.18rem;
  line-height: 1.6;
  text-wrap: pretty;
}

/* --- Case file (memo on the side) -------------------------------- */
.case-hero-file {
  position: relative;
  padding: 24px 26px 84px;
  border: 1px solid rgba(31, 91, 181, 0.18);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 0 4px 14px rgba(14, 26, 43, 0.04);
}

.case-hero-file::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 56px;
  height: 1px;
  background: var(--accent);
  content: "";
}

.case-file-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(31, 91, 181, 0.14);
}

.case-file-label-key {
  color: var(--accent-dim);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.case-file-label-num {
  color: var(--text-faint);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-feature-settings: "tnum" 1;
}

.case-file-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.case-file-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: baseline;
  margin: 0;
}

.case-file-row dt {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.case-file-row dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.4;
}

/* --- Figure (anatomy & flow diagrams) ---------------------------- */
.case-figure {
  margin: 0 0 64px;
}

.case-figure-frame {
  position: relative;
  padding: 32px 32px 28px;
  border: 1px solid rgba(31, 91, 181, 0.14);
  border-radius: 4px;
  background:
    linear-gradient(to right, rgba(14, 26, 43, 0.04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(to bottom, rgba(14, 26, 43, 0.04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(180deg, var(--paper), rgba(236, 243, 251, 0.5));
  overflow: hidden;
}

.case-figure-frame > svg {
  display: block;
  width: 100%;
  height: auto;
}

.case-figure-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0 8px;
  color: var(--text-faint);
  font-size: 0.86rem;
  line-height: 1.5;
}

.case-figure-caption-num {
  color: var(--accent-dim);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.case-figure-caption-sep {
  color: rgba(31, 91, 181, 0.32);
  font-weight: 500;
}

/* --- Anatomy SVG styles ------------------------------------------ */
.case-anatomy {
  font-family: var(--font-sans);
}

.case-anatomy-regmarks line {
  stroke: rgba(31, 91, 181, 0.4);
  stroke-width: 1;
}

.case-anatomy-base {
  stroke: rgba(31, 91, 181, 0.18);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

.case-anatomy-panel {
  fill: var(--paper);
  stroke: rgba(31, 91, 181, 0.4);
  stroke-width: 1;
}

.case-anatomy-divider {
  stroke: rgba(31, 91, 181, 0.24);
  stroke-width: 1;
}

.case-anatomy-chrome circle {
  fill: rgba(31, 91, 181, 0.4);
}

.case-anatomy-title {
  fill: var(--text-faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-anatomy-block {
  fill: rgba(31, 91, 181, 0.04);
  stroke: rgba(31, 91, 181, 0.22);
  stroke-width: 1;
}

.case-anatomy-block-accent {
  fill: var(--accent-wash);
  stroke: rgba(31, 91, 181, 0.5);
}

.case-anatomy-block-soft {
  fill: rgba(31, 91, 181, 0.04);
  stroke: rgba(31, 91, 181, 0.22);
}

.case-anatomy-block-eyebrow {
  fill: var(--accent-dim);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.case-anatomy-block-rule {
  stroke: var(--accent);
  stroke-width: 1.4;
}

.case-anatomy-block-tag {
  fill: var(--accent-dim);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.case-anatomy-stat-label {
  fill: var(--text-faint);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-anatomy-stat-label-on { fill: var(--accent-dim); }

.case-anatomy-stat-value {
  fill: var(--ink);
  font-size: 18px;
  font-weight: 700;
  font-feature-settings: "tnum" 1;
}

.case-anatomy-stat-value-on { fill: var(--accent); }

.case-anatomy-row-label {
  fill: var(--text-faint);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.case-anatomy-bar-track {
  fill: rgba(31, 91, 181, 0.08);
}

.case-anatomy-bar {
  fill: rgba(31, 91, 181, 0.5);
}

.case-anatomy-bar-warn {
  fill: var(--accent-warm);
}

.case-anatomy-line {
  stroke: rgba(31, 91, 181, 0.32);
  stroke-width: 1.5;
}

.case-anatomy-line-faint {
  stroke: rgba(31, 91, 181, 0.18);
}

.case-anatomy-line-on {
  stroke: var(--accent);
}

.case-anatomy-label-num {
  fill: var(--accent-dim);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  font-feature-settings: "tnum" 1;
}

.case-anatomy-label {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.case-anatomy-caption {
  fill: var(--text-faint);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.case-anatomy-timeline {
  stroke: rgba(31, 91, 181, 0.32);
  stroke-width: 1.5;
}

.case-anatomy-dot {
  fill: var(--paper);
  stroke: rgba(31, 91, 181, 0.4);
  stroke-width: 1.5;
}

.case-anatomy-dot-done {
  fill: rgba(31, 91, 181, 0.4);
  stroke: rgba(31, 91, 181, 0.4);
}

.case-anatomy-dot-now {
  fill: var(--accent);
  stroke: var(--accent);
}

.case-anatomy-tick {
  fill: var(--text-faint);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.case-anatomy-tick-on {
  fill: var(--accent-dim);
  font-weight: 700;
}

.case-anatomy-row {
  fill: rgba(31, 91, 181, 0.03);
  stroke: rgba(31, 91, 181, 0.16);
  stroke-width: 1;
}

.case-anatomy-row-on {
  fill: var(--accent-wash);
  stroke: rgba(31, 91, 181, 0.5);
}

.case-anatomy-tag {
  fill: rgba(31, 91, 181, 0.28);
}

.case-anatomy-tag-pay { fill: var(--accent); }
.case-anatomy-tag-neg { fill: var(--accent-warm); }

.case-anatomy-row-tag {
  fill: var(--text-faint);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.case-anatomy-row-tag-on {
  fill: var(--accent-dim);
}

/* Callouts (architectural annotations above each panel) */
.case-anatomy-callout-eyebrow {
  fill: var(--text-faint);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.case-anatomy-callout-label {
  fill: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.case-anatomy-callout-rule {
  stroke: rgba(31, 91, 181, 0.4);
  stroke-width: 1;
}

.case-anatomy-callout-leader {
  stroke: rgba(31, 91, 181, 0.4);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

.case-anatomy-callout-tip {
  fill: rgba(31, 91, 181, 0.55);
}

.case-anatomy-callout-tip-on {
  fill: var(--accent);
}

/* Scale bar + meta (bottom row) */
.case-anatomy-scale line {
  stroke: rgba(31, 91, 181, 0.4);
  stroke-width: 1;
}

.case-anatomy-scale text {
  fill: var(--text-faint);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.case-anatomy-meta text {
  fill: var(--text-faint);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-feature-settings: "tnum" 1;
}

/* --- Flow SVG styles --------------------------------------------- */
.case-flow {
  font-family: var(--font-sans);
}

.case-flow-regmarks line {
  stroke: rgba(31, 91, 181, 0.4);
  stroke-width: 1;
}

.case-flow-box {
  fill: var(--paper);
  stroke: rgba(31, 91, 181, 0.35);
  stroke-width: 1.2;
}

.case-flow-box-on {
  fill: var(--accent-wash);
  stroke: var(--accent);
  stroke-width: 1.4;
}

.case-flow-eyebrow {
  fill: var(--text-faint);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.case-flow-eyebrow-on { fill: var(--accent-dim); }

.case-flow-label {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.case-flow-label-on { fill: var(--accent-dim); }

.case-flow-arrows line {
  stroke: rgba(31, 91, 181, 0.45);
  stroke-width: 1.2;
}

.case-flow-arrows polygon {
  fill: rgba(31, 91, 181, 0.55);
}

.case-flow-side-label {
  fill: var(--text-faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.case-flow-side-rule {
  stroke: rgba(31, 91, 181, 0.3);
  stroke-width: 1;
}

.case-flow-side-tick {
  stroke: rgba(31, 91, 181, 0.45);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

.case-flow-side-arrow {
  fill: rgba(31, 91, 181, 0.55);
}

.case-flow-steps text {
  fill: var(--text-faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* --- Stats strip ------------------------------------------------- */
.case-stats {
  position: relative;
  margin: 16px 0 72px;
  padding: 44px 0 4px;
  border-top: 1px solid rgba(31, 91, 181, 0.18);
  border-bottom: 1px solid rgba(31, 91, 181, 0.18);
}

.case-stats-eyebrow {
  position: absolute;
  top: -10px;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0 14px 0 0;
  background: var(--fog);
  color: var(--accent-dim);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.case-stats-eyebrow-rule {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: rgba(31, 91, 181, 0.42);
}

.case-stats-eyebrow-meta {
  color: var(--text-faint);
  font-size: 0.66rem;
}

.case-stats-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-stat {
  display: grid;
  gap: 14px;
  padding: 6px 36px 32px 0;
  border-right: 1px solid rgba(31, 91, 181, 0.12);
}

.case-stat:nth-child(2) {
  padding-left: 36px;
}

.case-stat:last-child {
  padding-left: 36px;
  padding-right: 0;
  border-right: none;
}

.case-stat-num {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 4px;
  row-gap: 2px;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.034em;
  font-feature-settings: "tnum" 1;
  line-height: 1.0;
}

.case-stat-suffix {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78em;
  margin-left: 2px;
}

.case-stat-x {
  color: var(--accent);
  font-style: normal;
  font-weight: 700;
  font-size: 0.82em;
  margin-left: 2px;
}

.case-stat:nth-child(2) .case-stat-num {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  column-gap: 12px;
}

.case-stat-from-num,
.case-stat-to-num {
  white-space: nowrap;
}

.case-stat-from-num {
  color: var(--text-muted);
  font-weight: 600;
}

.case-stat-arrow {
  color: var(--accent);
  font-size: 0.9em;
  font-weight: 500;
  transform: translateY(-0.05em);
}

.case-stat-to-num {
  color: var(--ink);
}

.case-stat-from {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.4;
  max-width: 28ch;
}

.case-stat-to {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.5;
  max-width: 28ch;
}

/* --- Editorial sections ------------------------------------------ */
.case-section {
  margin: 0 0 72px;
}

.case-section-head {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: start;
  margin: 0 0 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(31, 91, 181, 0.18);
}

.case-section-head::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.case-section-num {
  position: relative;
  margin: 0;
  padding-top: 6px;
  color: var(--accent-dim);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.014em;
  font-feature-settings: "tnum" 1;
  line-height: 1;
}

.case-section-num::after {
  position: absolute;
  top: 10px;
  right: 20px;
  width: 36px;
  height: 1px;
  background: rgba(31, 91, 181, 0.32);
  content: "";
}

.case-section-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.case-section-body {
  max-width: 720px;
  margin-left: 120px;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.case-section-body p {
  margin: 0 0 18px;
}

.case-section-body p:last-child {
  margin-bottom: 0;
}

/* --- Pull quote -------------------------------------------------- */
.case-pullquote {
  margin: 24px 0 72px 120px;
  padding: 28px 0 28px 36px;
  border-left: 2px solid var(--accent);
  max-width: 760px;
}

.case-pullquote-text {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.case-pullquote-source {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.case-pullquote-mark {
  margin-right: 6px;
  color: var(--accent-dim);
}

/* --- Ledger (numbered bullet rows) ------------------------------- */
.case-ledger {
  margin: 28px 0 0 120px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.case-ledger-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid rgba(31, 91, 181, 0.12);
}

.case-ledger-row:last-child {
  border-bottom: 1px solid rgba(31, 91, 181, 0.12);
}

.case-ledger-num {
  padding-top: 4px;
  color: var(--accent-dim);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-feature-settings: "tnum" 1;
  font-variant: small-caps;
}

.case-ledger-body {
  display: grid;
  gap: 6px;
  max-width: 640px;
}

.case-ledger-title {
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.014em;
}

.case-ledger-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.6;
  text-wrap: pretty;
}

/* --- Maturity ladder track -------------------------------------- */
.case-section-arc .case-ladder-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 32px 0 0 120px;
  padding: 0;
  list-style: none;
}

.case-ladder-stop {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 32px 28px 26px 0;
  border-top: 1px solid rgba(31, 91, 181, 0.18);
}

.case-ladder-stop + .case-ladder-stop {
  padding-left: 28px;
}

.case-ladder-stop-num {
  color: var(--text-faint);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  font-feature-settings: "tnum" 1;
}

.case-ladder-stop-dot {
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 2px solid rgba(31, 91, 181, 0.35);
  box-shadow: 0 0 0 4px var(--fog);
}

.case-ladder-stop + .case-ladder-stop .case-ladder-stop-dot {
  left: 28px;
}

.case-ladder-stop.is-now .case-ladder-stop-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(59, 130, 224, 0.16);
}

.case-ladder-stop.is-now {
  border-top-color: var(--accent);
}

.case-ladder-stop-state {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.case-ladder-stop.is-now .case-ladder-stop-state {
  color: var(--accent-dim);
}

.case-ladder-stop-name {
  margin: 4px 0 6px;
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.018em;
}

.case-ladder-stop.is-now .case-ladder-stop-name {
  color: var(--accent-dim);
}

.case-ladder-stop-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.5;
  text-wrap: pretty;
}

/* --- Spec table -------------------------------------------------- */
.case-section-stack .case-spec-table {
  display: grid;
  gap: 0;
  margin: 32px 0 0 120px;
}

.case-spec-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 22px 0;
  margin: 0;
  border-top: 1px solid rgba(31, 91, 181, 0.12);
}

.case-spec-row:last-child {
  border-bottom: 1px solid rgba(31, 91, 181, 0.12);
}

.case-spec-row dt {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.case-spec-row dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.55;
  text-wrap: pretty;
  max-width: 640px;
}

/* --- Hero backdrop (subtle dot grid + corner tag) ---------------- */
.case-hero {
  isolation: isolate;
}

.case-hero-bg {
  position: absolute;
  inset: -80px -20px 0;
  z-index: -1;
  pointer-events: none;
}

.case-hero-bg-grid {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(31, 91, 181, 0.12) 0.8px, transparent 1.2px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 70%, transparent 100%);
  opacity: 0.85;
}

.case-hero-bg-tag {
  position: absolute;
  top: 0;
  right: 0;
  padding: 6px 12px;
  color: var(--text-faint);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-feature-settings: "tnum" 1;
}

/* On narrow viewports the fixed header is transparent and shorter, so the
   absolutely-positioned tag inside .case-hero-bg's -80px overflow ends up
   visually overlapping the nav. Push it below the header band. */
@media (max-width: 860px) {
  .case-hero-bg {
    inset: 0 -16px 0;
  }
}

/* --- File-memo seal (small monogram bottom-right) ---------------- */
.case-hero-file {
  overflow: hidden;
}

.case-hero-file-seal {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 64px;
  height: 64px;
  pointer-events: none;
  opacity: 0.55;
  transform: rotate(-6deg);
}

.case-hero-file-seal-rim {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(31, 91, 181, 0.5);
  border-radius: 999px;
}

.case-hero-file-seal-rim::after {
  position: absolute;
  inset: 3px;
  border: 1px dashed rgba(31, 91, 181, 0.42);
  border-radius: 999px;
  content: "";
}

.case-hero-file-seal-text {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  transform: translate(-50%, -50%);
  color: var(--accent-dim);
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}

/* --- Metric tags + visual bars ----------------------------------- */
.case-stat {
  position: relative;
}

.case-stat-tag {
  display: inline-block;
  margin-bottom: -4px;
  color: var(--text-faint);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant: small-caps;
  font-feature-settings: "tnum" 1;
}

.case-stat-bar {
  position: relative;
  display: block;
  width: 100%;
  max-width: 240px;
  height: 8px;
  background: rgba(31, 91, 181, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.case-stat-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--fill, 50%);
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

.case-stat-bar-tick {
  position: absolute;
  top: -4px;
  left: var(--at, 50%);
  width: 1px;
  height: 16px;
  background: var(--accent-dim);
  transform: translateX(-1px);
}

.case-stat-bar-compare {
  overflow: visible;
  background: transparent;
  height: 30px;
  margin-top: 4px;
}

.case-stat-bar-compare::before,
.case-stat-bar-compare::after {
  position: absolute;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1;
}

.case-stat-bar-compare::before {
  top: -10px;
  left: 0;
  content: "before";
}

.case-stat-bar-compare::after {
  bottom: -10px;
  right: 0;
  content: "after";
  color: var(--accent-dim);
}

.case-stat-bar-fill-before {
  top: 4px;
  height: 5px;
  background: rgba(31, 91, 181, 0.42);
  border-radius: 999px;
}

.case-stat-bar-fill-after {
  top: 20px;
  height: 5px;
  background: var(--accent);
  border-radius: 999px;
}

.case-stat-bar-mult {
  display: flex;
  align-items: center;
  background: transparent;
  height: 18px;
  max-width: 200px;
}

.case-stat-bar-mult .case-stat-bar-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(31, 91, 181, 0.18) 0, rgba(31, 91, 181, 0.42) 50%, var(--accent) 100%);
  transform: translateY(-0.5px);
}

.case-stat-bar-rung {
  position: absolute;
  top: 50%;
  left: var(--at, 33%);
  width: 10px;
  height: 10px;
  border: 1.5px solid rgba(31, 91, 181, 0.42);
  border-radius: 999px;
  background: var(--paper);
  transform: translate(-50%, -50%);
}

.case-stat-bar-rung-on {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(59, 130, 224, 0.16);
}

/* --- Drop cap on first body paragraph --------------------------- */
.case-section-body-lede > p:first-child::first-letter {
  float: left;
  margin: 6px 14px 0 0;
  color: var(--ink);
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--ink) 0%, var(--accent-dim) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --- Pull quote — large editorial pull --------------------------- */
.case-pullquote {
  position: relative;
  margin: 24px 0 88px 120px;
  padding: 36px 80px 32px 100px;
  border-left: none;
  max-width: 920px;
}

.case-pullquote::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 80px;
  width: 1px;
  background: rgba(31, 91, 181, 0.18);
  content: "";
}

.case-pullquote-body {
  margin: 0;
  padding: 0;
}

.case-pullquote-quote {
  position: absolute;
  z-index: 1;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 7.5rem;
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.04em;
  opacity: 0.85;
  pointer-events: none;
  user-select: none;
}

.case-pullquote-quote-open {
  top: -10px;
  left: 0;
}

.case-pullquote-quote-close {
  bottom: -42px;
  right: 28px;
}

.case-pullquote-text {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.024em;
  text-wrap: balance;
}

.case-pullquote-source {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.case-pullquote-source-rule {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

/* --- Maturity ladder rail (connector line + arrow) -------------- */
.case-ladder-wrap {
  position: relative;
  margin: 36px 0 0 120px;
}

.case-ladder-rail {
  position: absolute;
  top: 24px;
  left: 6px;
  right: 6px;
  height: 14px;
  pointer-events: none;
}

.case-ladder-rail-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg,
    var(--accent) 0,
    var(--accent) 28%,
    rgba(31, 91, 181, 0.45) 50%,
    rgba(31, 91, 181, 0.32) 75%,
    rgba(31, 91, 181, 0.32) 100%);
  transform: translateY(-0.5px);
}

.case-ladder-rail-arrow {
  position: absolute;
  top: 50%;
  right: 0;
  width: 28px;
  height: 12px;
  transform: translateY(-50%);
}

.case-ladder-rail-arrow::before {
  position: absolute;
  top: 50%;
  right: 0;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid rgba(31, 91, 181, 0.38);
  transform: translateY(-50%);
  content: "";
}

.case-section-arc .case-ladder-track {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
  list-style: none;
}

.case-ladder-stop {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 56px 28px 26px 0;
  border-top: none;
}

.case-ladder-stop + .case-ladder-stop {
  padding-left: 28px;
}

.case-ladder-stop-dot {
  position: absolute;
  top: 18px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 2px solid rgba(31, 91, 181, 0.35);
  box-shadow: 0 0 0 5px var(--fog);
}

.case-ladder-stop + .case-ladder-stop .case-ladder-stop-dot {
  left: 28px;
}

.case-ladder-stop.is-now .case-ladder-stop-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(59, 130, 224, 0.18);
}

.case-ladder-stop-num {
  padding-top: 0;
}

/* --- Related field notes block ---------------------------------- */
.case-related {
  margin: 0 0 64px;
  padding: 56px 0 0;
  border-top: 1px solid rgba(31, 91, 181, 0.14);
}

.case-related-head {
  max-width: 720px;
  margin: 0 0 36px;
}

.case-related-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  color: var(--accent-dim);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.case-related-mark-rule {
  flex: 0 0 44px;
  height: 1px;
  background: rgba(31, 91, 181, 0.42);
}

.case-related-mark-meta {
  color: var(--text-faint);
}

.case-related-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.case-related-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-related-item { margin: 0; }

.case-related-link {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 24px 24px 22px;
  border: 1px solid rgba(31, 91, 181, 0.16);
  border-radius: 4px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  color: inherit;
  text-decoration: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 18px 40px -22px rgba(14, 26, 43, 0.14);
  transition:
    border-color 280ms ease,
    box-shadow 280ms ease,
    transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 100%;
}

.case-related-link::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.case-related-link:hover {
  border-color: rgba(59, 130, 224, 0.42);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 24px 48px -20px rgba(20, 28, 42, 0.22);
  transform: translateY(-2px);
}

.case-related-num {
  align-self: start;
  color: var(--accent-dim);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-feature-settings: "tnum" 1;
}

.case-related-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.case-related-tag {
  display: inline-block;
  align-self: start;
  padding: 3px 10px;
  border: 1px solid rgba(31, 91, 181, 0.32);
  border-radius: 999px;
  color: var(--accent-dim);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.case-related-name {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.014em;
  text-wrap: balance;
  transition: color 220ms ease;
}

.case-related-link:hover .case-related-name {
  color: var(--accent-dim);
}

.case-related-dek {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.case-related-cta {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--accent);
  font-size: 0.92rem;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.case-related-link:hover .case-related-cta {
  transform: translate(3px, 3px);
}

/* --- Dark theme additions for the new pieces -------------------- */
html[data-theme="dark"] .case-hero-bg-grid {
  background:
    radial-gradient(circle at center, rgba(140, 180, 240, 0.14) 0.8px, transparent 1.2px) 0 0 / 22px 22px;
}

html[data-theme="dark"] .case-hero-bg-tag {
  color: rgba(140, 180, 240, 0.55);
}

html[data-theme="dark"] .case-hero-file-seal-rim {
  border-color: rgba(140, 180, 240, 0.45);
}

html[data-theme="dark"] .case-hero-file-seal-rim::after {
  border-color: rgba(140, 180, 240, 0.38);
}

html[data-theme="dark"] .case-hero-file-seal-text {
  color: var(--accent);
}

html[data-theme="dark"] .case-stat-bar {
  background: rgba(140, 180, 240, 0.1);
}

html[data-theme="dark"] .case-stat-bar-fill {
  background: var(--accent);
}

html[data-theme="dark"] .case-stat-bar-tick {
  background: var(--accent);
}

html[data-theme="dark"] .case-stat-bar-compare::after {
  color: var(--accent);
}

html[data-theme="dark"] .case-stat-bar-fill-before {
  background: rgba(140, 180, 240, 0.4);
}

html[data-theme="dark"] .case-stat-bar-mult .case-stat-bar-line {
  background: linear-gradient(90deg, rgba(140, 180, 240, 0.2) 0, rgba(140, 180, 240, 0.42) 50%, var(--accent) 100%);
}

html[data-theme="dark"] .case-stat-bar-rung {
  background: var(--paper-soft);
  border-color: rgba(140, 180, 240, 0.42);
}

html[data-theme="dark"] .case-stat-bar-rung-on {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(90, 160, 255, 0.18);
}

html[data-theme="dark"] .case-section-body-lede > p:first-child::first-letter {
  background: linear-gradient(180deg, var(--ink) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

html[data-theme="dark"] .case-pullquote::before {
  background: rgba(140, 180, 240, 0.22);
}

html[data-theme="dark"] .case-pullquote-quote {
  color: var(--accent);
}

html[data-theme="dark"] .case-pullquote-source-rule {
  background: var(--accent);
}

html[data-theme="dark"] .case-ladder-rail-line {
  background: linear-gradient(90deg,
    var(--accent) 0,
    var(--accent) 28%,
    rgba(140, 180, 240, 0.45) 50%,
    rgba(140, 180, 240, 0.32) 75%,
    rgba(140, 180, 240, 0.32) 100%);
}

html[data-theme="dark"] .case-ladder-rail-arrow::before {
  border-left-color: rgba(140, 180, 240, 0.42);
}

html[data-theme="dark"] .case-ladder-stop-dot {
  background: var(--paper-soft);
  border-color: rgba(140, 180, 240, 0.42);
  box-shadow: 0 0 0 5px var(--fog);
}

html[data-theme="dark"] .case-ladder-stop.is-now .case-ladder-stop-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(90, 160, 255, 0.22);
}

html[data-theme="dark"] .case-related {
  border-top-color: rgba(120, 160, 220, 0.18);
}

html[data-theme="dark"] .case-related-mark-rule {
  background: rgba(140, 180, 240, 0.42);
}

html[data-theme="dark"] .case-related-link {
  background: var(--paper-soft);
  border-color: rgba(120, 160, 220, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 18px 40px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .case-related-link:hover {
  border-color: rgba(90, 160, 255, 0.45);
}

html[data-theme="dark"] .case-related-num,
html[data-theme="dark"] .case-related-tag,
html[data-theme="dark"] .case-related-cta {
  color: var(--accent);
}

html[data-theme="dark"] .case-related-tag {
  border-color: rgba(90, 160, 255, 0.45);
}

html[data-theme="dark"] .case-related-link:hover .case-related-name {
  color: var(--accent);
}

/* --- Mobile fallbacks for new pieces ----------------------------- */
@media (max-width: 940px) {
  .case-pullquote {
    margin-left: 0;
    padding: 28px 24px 24px 56px;
  }

  .case-pullquote::before {
    left: 36px;
  }

  .case-pullquote-quote-open {
    font-size: 5rem;
  }

  .case-pullquote-quote-close {
    font-size: 5rem;
    bottom: -28px;
  }

  .case-ladder-wrap {
    margin-left: 0;
  }

  .case-ladder-rail {
    display: none;
  }

  .case-section-arc .case-ladder-track {
    grid-template-columns: 1fr;
  }

  .case-ladder-stop {
    padding: 24px 0 18px 28px;
    border-left: 1px solid rgba(31, 91, 181, 0.18);
  }

  .case-ladder-stop.is-now {
    border-left-color: var(--accent);
  }

  .case-ladder-stop + .case-ladder-stop {
    padding-left: 28px;
  }

  .case-ladder-stop-dot {
    top: 24px;
    left: -7px;
  }

  .case-ladder-stop + .case-ladder-stop .case-ladder-stop-dot {
    left: -7px;
  }

  .case-related-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .case-section-body-lede > p:first-child::first-letter {
    font-size: 3.4rem;
  }

  .case-pullquote-quote-open {
    font-size: 4rem;
    top: -4px;
  }

  .case-pullquote-quote-close {
    font-size: 4rem;
    right: 8px;
    bottom: -22px;
  }

  .case-stat-bar-compare::before,
  .case-stat-bar-compare::after {
    font-size: 0.55rem;
  }
}

/* --- Footer ------------------------------------------------------ */
.case-page-foot {
  margin: 32px 0 0;
  padding: 56px 0 0;
  border-top: 1px solid rgba(31, 91, 181, 0.18);
  display: grid;
  gap: 28px;
}

.case-page-foot-cta {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-wrap: pretty;
}

.case-page-foot-cta-prefix {
  margin-right: 6px;
}

.case-page-foot-nav {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  font-size: 0.92rem;
}

.case-page-foot-back,
.case-page-foot-link {
  color: var(--accent-dim);
  text-decoration: none;
  font-weight: 600;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  transition: background-size 220ms ease, color 200ms ease;
}

.case-page-foot-back:hover,
.case-page-foot-link:hover {
  color: var(--accent);
  background-size: 100% 2px;
}

.case-page-foot-back-mark {
  margin-right: 6px;
}

.case-page-foot-sep {
  color: var(--text-faint);
}

/* --- Responsive overrides --------------------------------------- */
@media (max-width: 940px) {
  .case-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .case-section-body,
  .case-pullquote,
  .case-ledger,
  .case-section-arc .case-ladder-track,
  .case-section-stack .case-spec-table {
    margin-left: 0;
  }

  .case-section-arc .case-ladder-track {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .case-ladder-stop + .case-ladder-stop {
    padding-left: 0;
  }

  .case-ladder-stop + .case-ladder-stop .case-ladder-stop-dot {
    left: 0;
  }

  .case-stats-list {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .case-stat,
  .case-stat:nth-child(2),
  .case-stat:last-child {
    padding: 28px 0 0;
    border-right: none;
    border-top: 1px solid rgba(31, 91, 181, 0.12);
  }

  .case-stat:first-child {
    padding-top: 0;
    border-top: none;
  }
}

@media (max-width: 720px) {
  .case-main {
    padding: 108px 20px 80px;
  }

  .case-section-head {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .case-section-num {
    padding-top: 0;
  }

  .case-figure-frame {
    padding: 20px 16px 18px;
  }

  .case-pullquote {
    padding-left: 20px;
  }

  .case-spec-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .case-ledger-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .case-ledger-num {
    padding-top: 0;
  }
}

/* ============================================================
   Dark theme overrides for case pages + teaser
   ============================================================ */
html[data-theme="dark"] .case-teaser {
  background: var(--paper-soft);
  border-color: rgba(120, 160, 220, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 22px 56px rgba(0, 0, 0, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.15);
}

html[data-theme="dark"] .case-teaser::after {
  color: rgba(140, 180, 240, 0.4);
}

html[data-theme="dark"] .case-teaser:hover {
  border-color: rgba(90, 160, 255, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 28px 64px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .case-teaser-num,
html[data-theme="dark"] .case-teaser-name {
  color: var(--accent);
}

html[data-theme="dark"] .case-teaser-meta-sep {
  background: rgba(140, 180, 240, 0.28);
}

html[data-theme="dark"] .case-teaser-stats {
  border-top-color: rgba(120, 160, 220, 0.16);
}

html[data-theme="dark"] .case-teaser-stat {
  border-right-color: rgba(120, 160, 220, 0.12);
}

html[data-theme="dark"] .case-teaser-stat-num em {
  color: var(--accent);
}

html[data-theme="dark"] .case-teaser-cta {
  color: var(--accent);
}

/* Listing */
html[data-theme="dark"] .cases-index-link {
  background: var(--paper-soft);
  border-color: rgba(120, 160, 220, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 22px 56px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .cases-index-link:hover {
  border-color: rgba(90, 160, 255, 0.45);
}

html[data-theme="dark"] .cases-index-mark-rule {
  background: rgba(140, 180, 240, 0.42);
}

html[data-theme="dark"] .cases-index-num,
html[data-theme="dark"] .cases-index-name,
html[data-theme="dark"] .cases-index-cta {
  color: var(--accent);
}

html[data-theme="dark"] .cases-index-meta-sep {
  background: rgba(140, 180, 240, 0.28);
}

/* Detail page */
html[data-theme="dark"] .case-hero-mark-link {
  color: var(--accent);
}

html[data-theme="dark"] .case-hero-mark-rule {
  background: rgba(140, 180, 240, 0.4);
}

html[data-theme="dark"] .case-hero-name {
  background: linear-gradient(180deg, var(--ink) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

html[data-theme="dark"] .case-hero-file {
  background: var(--paper-soft);
  border-color: rgba(120, 160, 220, 0.22);
}

html[data-theme="dark"] .case-file-label,
html[data-theme="dark"] .case-spec-row,
html[data-theme="dark"] .case-ledger-row,
html[data-theme="dark"] .case-section-head,
html[data-theme="dark"] .case-page-foot {
  border-color: rgba(120, 160, 220, 0.16);
}

html[data-theme="dark"] .case-stats {
  border-top-color: rgba(120, 160, 220, 0.22);
  border-bottom-color: rgba(120, 160, 220, 0.22);
}

html[data-theme="dark"] .case-stats-eyebrow {
  background: var(--fog);
  color: var(--accent);
}

html[data-theme="dark"] .case-stats-eyebrow-rule {
  background: rgba(140, 180, 240, 0.42);
}

html[data-theme="dark"] .case-stat {
  border-right-color: rgba(120, 160, 220, 0.16);
}

html[data-theme="dark"] .case-stat-suffix,
html[data-theme="dark"] .case-stat-x,
html[data-theme="dark"] .case-stat-arrow {
  color: var(--accent);
}

html[data-theme="dark"] .case-section-num,
html[data-theme="dark"] .case-figure-caption-num,
html[data-theme="dark"] .case-file-label-key,
html[data-theme="dark"] .case-ledger-num {
  color: var(--accent);
}

html[data-theme="dark"] .case-pullquote {
  border-left-color: var(--accent);
}

html[data-theme="dark"] .case-figure-frame {
  background:
    linear-gradient(to right, rgba(140, 180, 240, 0.06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(to bottom, rgba(140, 180, 240, 0.06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(180deg, var(--paper-soft), rgba(17, 29, 49, 0.5));
  border-color: rgba(120, 160, 220, 0.18);
}

html[data-theme="dark"] .case-ladder-stop-dot {
  background: var(--paper-soft);
  border-color: rgba(120, 160, 220, 0.35);
  box-shadow: 0 0 0 4px var(--fog);
}

html[data-theme="dark"] .case-ladder-stop.is-now .case-ladder-stop-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(90, 160, 255, 0.18);
}

html[data-theme="dark"] .case-ladder-stop.is-now .case-ladder-stop-state,
html[data-theme="dark"] .case-ladder-stop.is-now .case-ladder-stop-name {
  color: var(--accent);
}

/* SVG palette in dark mode */
html[data-theme="dark"] .case-anatomy-regmarks line,
html[data-theme="dark"] .case-flow-regmarks line {
  stroke: rgba(140, 180, 240, 0.4);
}

html[data-theme="dark"] .case-anatomy-base { stroke: rgba(140, 180, 240, 0.2); }

html[data-theme="dark"] .case-anatomy-panel {
  fill: var(--paper-soft);
  stroke: rgba(140, 180, 240, 0.32);
}

html[data-theme="dark"] .case-anatomy-divider { stroke: rgba(140, 180, 240, 0.22); }
html[data-theme="dark"] .case-anatomy-chrome circle { fill: rgba(140, 180, 240, 0.4); }
html[data-theme="dark"] .case-anatomy-title { fill: rgba(232, 238, 247, 0.55); }
html[data-theme="dark"] .case-anatomy-block {
  fill: rgba(140, 180, 240, 0.06);
  stroke: rgba(140, 180, 240, 0.2);
}

html[data-theme="dark"] .case-anatomy-block-accent {
  fill: rgba(90, 160, 255, 0.18);
  stroke: rgba(90, 160, 255, 0.55);
}

html[data-theme="dark"] .case-anatomy-block-soft {
  fill: rgba(140, 180, 240, 0.06);
  stroke: rgba(140, 180, 240, 0.2);
}

html[data-theme="dark"] .case-anatomy-block-eyebrow,
html[data-theme="dark"] .case-anatomy-block-tag,
html[data-theme="dark"] .case-anatomy-stat-label-on,
html[data-theme="dark"] .case-anatomy-tick-on,
html[data-theme="dark"] .case-anatomy-row-tag-on,
html[data-theme="dark"] .case-anatomy-label-num {
  fill: var(--accent);
}

html[data-theme="dark"] .case-anatomy-block-rule { stroke: var(--accent); }

html[data-theme="dark"] .case-anatomy-stat-label,
html[data-theme="dark"] .case-anatomy-row-label,
html[data-theme="dark"] .case-anatomy-tick,
html[data-theme="dark"] .case-anatomy-row-tag,
html[data-theme="dark"] .case-anatomy-caption {
  fill: rgba(232, 238, 247, 0.5);
}

html[data-theme="dark"] .case-anatomy-stat-value { fill: var(--ink); }
html[data-theme="dark"] .case-anatomy-stat-value-on { fill: var(--accent); }
html[data-theme="dark"] .case-anatomy-label { fill: var(--ink); }

html[data-theme="dark"] .case-anatomy-bar-track { fill: rgba(140, 180, 240, 0.1); }
html[data-theme="dark"] .case-anatomy-bar { fill: rgba(90, 160, 255, 0.65); }
html[data-theme="dark"] .case-anatomy-bar-warn { fill: var(--accent-warm); }

html[data-theme="dark"] .case-anatomy-line { stroke: rgba(140, 180, 240, 0.32); }
html[data-theme="dark"] .case-anatomy-line-faint { stroke: rgba(140, 180, 240, 0.18); }
html[data-theme="dark"] .case-anatomy-line-on { stroke: var(--accent); }
html[data-theme="dark"] .case-anatomy-timeline { stroke: rgba(140, 180, 240, 0.3); }

html[data-theme="dark"] .case-anatomy-dot {
  fill: var(--paper-soft);
  stroke: rgba(140, 180, 240, 0.4);
}
html[data-theme="dark"] .case-anatomy-dot-done { fill: rgba(140, 180, 240, 0.4); stroke: rgba(140, 180, 240, 0.4); }
html[data-theme="dark"] .case-anatomy-dot-now { fill: var(--accent); stroke: var(--accent); }

html[data-theme="dark"] .case-anatomy-row {
  fill: rgba(140, 180, 240, 0.04);
  stroke: rgba(140, 180, 240, 0.16);
}

html[data-theme="dark"] .case-anatomy-row-on {
  fill: rgba(90, 160, 255, 0.16);
  stroke: rgba(90, 160, 255, 0.55);
}

html[data-theme="dark"] .case-anatomy-tag { fill: rgba(140, 180, 240, 0.28); }
html[data-theme="dark"] .case-anatomy-tag-pay { fill: var(--accent); }
html[data-theme="dark"] .case-anatomy-tag-neg { fill: var(--accent-warm); }

html[data-theme="dark"] .case-anatomy-callout-eyebrow,
html[data-theme="dark"] .case-anatomy-scale text,
html[data-theme="dark"] .case-anatomy-meta text {
  fill: rgba(232, 238, 247, 0.55);
}

html[data-theme="dark"] .case-anatomy-callout-label {
  fill: var(--ink);
}

html[data-theme="dark"] .case-anatomy-callout-rule,
html[data-theme="dark"] .case-anatomy-callout-leader,
html[data-theme="dark"] .case-anatomy-scale line {
  stroke: rgba(140, 180, 240, 0.42);
}

html[data-theme="dark"] .case-anatomy-callout-tip {
  fill: rgba(140, 180, 240, 0.6);
}

html[data-theme="dark"] .case-anatomy-callout-tip-on {
  fill: var(--accent);
}

html[data-theme="dark"] .case-flow-box {
  fill: var(--paper-soft);
  stroke: rgba(140, 180, 240, 0.32);
}

html[data-theme="dark"] .case-flow-box-on {
  fill: rgba(90, 160, 255, 0.16);
  stroke: var(--accent);
}

html[data-theme="dark"] .case-flow-eyebrow-on,
html[data-theme="dark"] .case-flow-label-on { fill: var(--accent); }

html[data-theme="dark"] .case-flow-eyebrow { fill: rgba(232, 238, 247, 0.5); }
html[data-theme="dark"] .case-flow-label { fill: var(--ink); }

html[data-theme="dark"] .case-flow-arrows line { stroke: rgba(140, 180, 240, 0.45); }
html[data-theme="dark"] .case-flow-arrows polygon { fill: rgba(140, 180, 240, 0.55); }

html[data-theme="dark"] .case-flow-side-label { fill: rgba(232, 238, 247, 0.5); }
html[data-theme="dark"] .case-flow-side-rule { stroke: rgba(140, 180, 240, 0.28); }
html[data-theme="dark"] .case-flow-side-tick { stroke: rgba(140, 180, 240, 0.4); }
html[data-theme="dark"] .case-flow-side-arrow { fill: rgba(140, 180, 240, 0.55); }
html[data-theme="dark"] .case-flow-steps text { fill: rgba(232, 238, 247, 0.45); }

.header-nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.site-nav-link {
  position: relative;
  padding: 10px 4px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-nav-link::before {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  height: 1px;
  background: var(--accent);
  border-radius: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav-link:hover {
  color: var(--accent-dim);
}

.site-nav-link:hover::before {
  transform: scaleX(1);
}

.site-nav-link.is-active::before {
  transform: scaleX(1);
}

.site-nav-link.is-active::after {
  position: absolute;
  right: 4px;
  bottom: 2px;
  left: 4px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  content: "";
}

/* Contact link in nav — quieted from black-pill to a typographic link
   with a small upper-right arrow signalling the mailto action. */
.site-nav-link.contact-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-dim);
  box-shadow: none;
}

.site-nav-link.contact-pill::after {
  display: inline-block;
  color: var(--accent);
  content: "\2197";
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav-link.contact-pill:hover {
  color: var(--accent);
  background: transparent;
}

.site-nav-link.contact-pill:hover::after {
  transform: translate(2px, -2px);
}

.blog-main {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 140px 40px 96px;
}

.blog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 56px;
  align-items: end;
  margin-bottom: 72px;
}

.blog-hero .blog-mark {
  display: flex;
  width: 100%;
  max-width: 380px;
  align-items: center;
  gap: 12px;
}

.blog-hero-text {
  max-width: 760px;
}

.blog-hero-cadence {
  width: 320px;
  padding: 22px 24px 18px;
  border: 1px solid rgba(31, 91, 181, 0.22);
  border-radius: 4px;
  background:
    linear-gradient(to right, rgba(14, 26, 43, 0.04) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(to bottom, rgba(14, 26, 43, 0.04) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--paper);
  box-shadow: 0 10px 28px rgba(14, 26, 43, 0.05);
  color: var(--accent-dim);
  font-feature-settings: "tnum" 1;
  transition:
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 360ms ease,
    border-color 360ms ease;
}

.blog-hero-cadence:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 91, 181, 0.36);
  box-shadow: 0 18px 44px rgba(14, 26, 43, 0.09);
}

.blog-hero-cadence-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--accent-dim);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.blog-hero-cadence-label::after {
  flex: 1;
  height: 1px;
  margin-left: 4px;
  background: linear-gradient(90deg, rgba(31, 91, 181, 0.36), transparent);
  content: "";
}

.blog-hero-cadence-mark {
  display: inline-block;
  font-weight: 300;
  font-size: 14px;
  line-height: 1;
  opacity: 0.7;
  transform-origin: center;
  transition:
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 240ms ease;
}

.blog-hero-cadence:hover .blog-hero-cadence-mark {
  opacity: 1;
  transform: scale(1.18);
}

.blog-hero-cadence-chart {
  display: block;
  width: 100%;
  height: auto;
}

.cadence-dots a circle,
.cadence-latest-link circle {
  cursor: pointer;
  transition: r 200ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms ease;
}

.cadence-dots a circle {
  opacity: 0.55;
}

.cadence-dots a:hover circle,
.cadence-dots a:focus-visible circle {
  r: 4;
  opacity: 1;
}

.cadence-latest-link:hover .cadence-latest,
.cadence-latest-link:focus-visible .cadence-latest {
  r: 6;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes cadence-axis-draw {
    from { stroke-dashoffset: 292; }
    to { stroke-dashoffset: 0; }
  }
  @keyframes cadence-dot-fade {
    from { opacity: 0; }
    to { opacity: 0.55; }
  }
  @keyframes cadence-latest-pop {
    from { opacity: 0; transform: scale(0.6); }
    to { opacity: 1; transform: scale(1); }
  }

  .blog-hero-cadence-chart .cadence-axis {
    stroke-dasharray: 292;
    stroke-dashoffset: 292;
    animation: cadence-axis-draw 900ms cubic-bezier(0.16, 1, 0.3, 1) 200ms forwards;
  }

  .cadence-dots a {
    opacity: 0;
    animation: cadence-dot-fade 320ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .cadence-dots a:nth-child(1) { animation-delay: 800ms; }
  .cadence-dots a:nth-child(2) { animation-delay: 860ms; }
  .cadence-dots a:nth-child(3) { animation-delay: 920ms; }
  .cadence-dots a:nth-child(4) { animation-delay: 980ms; }
  .cadence-dots a:nth-child(5) { animation-delay: 1040ms; }
  .cadence-dots a:nth-child(6) { animation-delay: 1100ms; }
  .cadence-dots a:nth-child(7) { animation-delay: 1160ms; }
  .cadence-dots a:nth-child(8) { animation-delay: 1220ms; }
  .cadence-dots a:nth-child(9) { animation-delay: 1280ms; }
  .cadence-dots a:nth-child(10) { animation-delay: 1340ms; }
  .cadence-dots a:nth-child(11) { animation-delay: 1400ms; }
  .cadence-dots a:nth-child(12) { animation-delay: 1460ms; }

  .cadence-latest-link .cadence-latest {
    opacity: 0;
    transform-origin: 306px 48px;
    animation: cadence-latest-pop 480ms cubic-bezier(0.16, 1, 0.3, 1) 1560ms forwards;
  }
}

.blog-title {
  margin: 12px 0 18px;
  color: var(--ink);
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.blog-dek {
  max-width: 640px;
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 1.16rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.blog-filter {
  max-width: 640px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(31, 91, 181, 0.18);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-wash);
  color: var(--graphite);
  font-size: 0.95rem;
  line-height: 1.55;
}

.blog-index-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 32px;
  color: var(--text-faint);
  font-size: 0.7rem;
  font-weight: 600;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.blog-index-rule {
  flex: 0 0 28px;
  height: 1px;
  background: rgba(31, 91, 181, 0.32);
}

.blog-index-rule-grow {
  flex: 1;
}

.blog-index-label {
  color: var(--accent-dim);
}

.blog-index-sep {
  opacity: 0.5;
}

.blog-index-num {
  color: var(--ink);
  font-weight: 700;
}

.blog-index-strip-end {
  margin: -56px 0 56px;
}

.blog-index-item-link {
  position: relative;
  color: inherit;
  text-decoration: none;
  transition: color 240ms ease;
}

.blog-index-item-link::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--accent-dim);
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: left;
  transition: opacity 240ms ease, transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
  content: "";
}

.blog-index-item-link:hover,
.blog-index-item-link:focus-visible {
  color: var(--accent-dim);
}

.blog-index-item-link:hover::after,
.blog-index-item-link:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.post-list {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 28px;
  row-gap: 44px;
  margin-bottom: 96px;
  counter-reset: post-num 14;
}

/* Asymmetric magazine grid: feature card on top, then alternating 7/5 rows */
.post-card {
  grid-column: span 7;
  counter-increment: post-num -1;
}
.post-card:first-child { grid-column: span 12; }
.post-card:nth-child(4n+3),
.post-card:nth-child(4n+4) { grid-column: span 5; }

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(31, 91, 181, 0.22);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 0 4px 14px rgba(14, 26, 43, 0.04);
  overflow: hidden;
  transition:
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 360ms ease,
    box-shadow 360ms ease;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 91, 181, 0.48);
  box-shadow: 0 24px 56px rgba(14, 26, 43, 0.09);
}

.post-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 32px 28px;
  color: inherit;
  text-decoration: none;
}

.post-card-visual {
  position: relative;
  margin: 0 -32px 28px;
  aspect-ratio: 16 / 10;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 7' preserveAspectRatio='none'%3E%3Cg fill='rgba(31, 91, 181, 0.38)'%3E%3Crect x='199' y='0' width='2' height='6'/%3E%3Crect x='399' y='0' width='2' height='6'/%3E%3Crect x='599' y='0' width='2' height='6'/%3E%3Crect x='799' y='0' width='2' height='6'/%3E%3C/g%3E%3C/svg%3E") 0 calc(100% - 1px) / 100% 7px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 1000' preserveAspectRatio='none'%3E%3Cg fill='rgba(31, 91, 181, 0.38)'%3E%3Crect x='1' y='199' width='6' height='2'/%3E%3Crect x='1' y='399' width='6' height='2'/%3E%3Crect x='1' y='599' width='6' height='2'/%3E%3Crect x='1' y='799' width='6' height='2'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 7px 100% no-repeat,
    linear-gradient(to right, rgba(14, 26, 43, 0.05) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(to bottom, rgba(14, 26, 43, 0.05) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(180deg, var(--fog), rgba(217, 229, 242, 0.55));
  border-bottom: 1px solid rgba(31, 91, 181, 0.14);
  overflow: hidden;
  transition: background-position 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.post-card:hover .post-card-visual {
  background-position: 0 calc(100% - 1px), 0 0, 10px 6px, 10px 6px, 0 0;
}

/* Narrow cards (span 5) get a taller portrait-style aspect; wide cards stay landscape */
.post-card:nth-child(4n+3) .post-card-visual,
.post-card:nth-child(4n+4) .post-card-visual {
  aspect-ratio: 4 / 3;
}

.post-card[data-viz] .post-card-visual::before,
.post[data-viz] .post-visual::before {
  content: '';
  position: absolute;
  inset: 9% 9% 11%;
  background-color: var(--accent-dim);
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  mask-size: contain;
  -webkit-mask-size: contain;
  opacity: 0.82;
  transition: opacity 360ms ease, transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.post-card:hover .post-card-visual::before {
  opacity: 1;
  transform: scale(1.02);
}

.post-card[data-viz="curve"] .post-card-visual::before,
.post[data-viz="curve"] .post-visual::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 240'%3E%3Cpath d='M20 200 Q 110 200 180 150 T 360 50' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='360' cy='50' r='6' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 240'%3E%3Cpath d='M20 200 Q 110 200 180 150 T 360 50' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='360' cy='50' r='6' fill='black'/%3E%3C/svg%3E");
}

.post-card[data-viz="grid"] .post-card-visual::before,
.post[data-viz="grid"] .post-visual::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 240'%3E%3Cg fill='black' opacity='0.32'%3E%3Ccircle cx='40' cy='40' r='3'/%3E%3Ccircle cx='100' cy='40' r='3'/%3E%3Ccircle cx='160' cy='40' r='3'/%3E%3Ccircle cx='220' cy='40' r='3'/%3E%3Ccircle cx='280' cy='40' r='3'/%3E%3Ccircle cx='340' cy='40' r='3'/%3E%3Ccircle cx='40' cy='100' r='3'/%3E%3Ccircle cx='100' cy='100' r='3'/%3E%3Ccircle cx='160' cy='100' r='3'/%3E%3Ccircle cx='220' cy='100' r='3'/%3E%3Ccircle cx='280' cy='100' r='3'/%3E%3Ccircle cx='340' cy='100' r='3'/%3E%3Ccircle cx='40' cy='160' r='3'/%3E%3Ccircle cx='100' cy='160' r='3'/%3E%3Ccircle cx='160' cy='160' r='3'/%3E%3Ccircle cx='220' cy='160' r='3'/%3E%3Ccircle cx='280' cy='160' r='3'/%3E%3Ccircle cx='340' cy='160' r='3'/%3E%3C/g%3E%3Cpath d='M100 180 L180 130 L260 80 L340 40' fill='none' stroke='black' stroke-width='1.5' opacity='0.55'/%3E%3Cg fill='black'%3E%3Ccircle cx='100' cy='180' r='6'/%3E%3Ccircle cx='180' cy='130' r='6'/%3E%3Ccircle cx='260' cy='80' r='6'/%3E%3Ccircle cx='340' cy='40' r='6'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 240'%3E%3Cg fill='black' opacity='0.32'%3E%3Ccircle cx='40' cy='40' r='3'/%3E%3Ccircle cx='100' cy='40' r='3'/%3E%3Ccircle cx='160' cy='40' r='3'/%3E%3Ccircle cx='220' cy='40' r='3'/%3E%3Ccircle cx='280' cy='40' r='3'/%3E%3Ccircle cx='340' cy='40' r='3'/%3E%3Ccircle cx='40' cy='100' r='3'/%3E%3Ccircle cx='100' cy='100' r='3'/%3E%3Ccircle cx='160' cy='100' r='3'/%3E%3Ccircle cx='220' cy='100' r='3'/%3E%3Ccircle cx='280' cy='100' r='3'/%3E%3Ccircle cx='340' cy='100' r='3'/%3E%3Ccircle cx='40' cy='160' r='3'/%3E%3Ccircle cx='100' cy='160' r='3'/%3E%3Ccircle cx='160' cy='160' r='3'/%3E%3Ccircle cx='220' cy='160' r='3'/%3E%3Ccircle cx='280' cy='160' r='3'/%3E%3Ccircle cx='340' cy='160' r='3'/%3E%3C/g%3E%3Cpath d='M100 180 L180 130 L260 80 L340 40' fill='none' stroke='black' stroke-width='1.5' opacity='0.55'/%3E%3Cg fill='black'%3E%3Ccircle cx='100' cy='180' r='6'/%3E%3Ccircle cx='180' cy='130' r='6'/%3E%3Ccircle cx='260' cy='80' r='6'/%3E%3Ccircle cx='340' cy='40' r='6'/%3E%3C/g%3E%3C/svg%3E");
}

.post-card[data-viz="bars"] .post-card-visual::before,
.post[data-viz="bars"] .post-visual::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 240'%3E%3Cline x1='30' y1='60' x2='370' y2='60' stroke='black' stroke-width='1.5' stroke-dasharray='5 5' opacity='0.5'/%3E%3Crect x='60' y='160' width='34' height='60' fill='black' opacity='0.42'/%3E%3Crect x='120' y='130' width='34' height='90' fill='black' opacity='0.56'/%3E%3Crect x='180' y='100' width='34' height='120' fill='black' opacity='0.72'/%3E%3Crect x='240' y='90' width='34' height='130' fill='black' opacity='0.86'/%3E%3Crect x='300' y='70' width='34' height='150' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 240'%3E%3Cline x1='30' y1='60' x2='370' y2='60' stroke='black' stroke-width='1.5' stroke-dasharray='5 5' opacity='0.5'/%3E%3Crect x='60' y='160' width='34' height='60' fill='black' opacity='0.42'/%3E%3Crect x='120' y='130' width='34' height='90' fill='black' opacity='0.56'/%3E%3Crect x='180' y='100' width='34' height='120' fill='black' opacity='0.72'/%3E%3Crect x='240' y='90' width='34' height='130' fill='black' opacity='0.86'/%3E%3Crect x='300' y='70' width='34' height='150' fill='black'/%3E%3C/svg%3E");
}

.post-card[data-viz="branch"] .post-card-visual::before,
.post[data-viz="branch"] .post-visual::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 240'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' opacity='0.7'%3E%3Cline x1='200' y1='40' x2='120' y2='110'/%3E%3Cline x1='200' y1='40' x2='280' y2='110'/%3E%3Cline x1='120' y1='110' x2='80' y2='190'/%3E%3Cline x1='120' y1='110' x2='160' y2='190'/%3E%3Cline x1='280' y1='110' x2='240' y2='190'/%3E%3Cline x1='280' y1='110' x2='320' y2='190'/%3E%3C/g%3E%3Cg fill='black'%3E%3Ccircle cx='200' cy='40' r='8'/%3E%3Ccircle cx='120' cy='110' r='6'/%3E%3Ccircle cx='280' cy='110' r='6'/%3E%3Ccircle cx='80' cy='190' r='5'/%3E%3Ccircle cx='160' cy='190' r='5'/%3E%3Ccircle cx='240' cy='190' r='5'/%3E%3Ccircle cx='320' cy='190' r='5'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 240'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' opacity='0.7'%3E%3Cline x1='200' y1='40' x2='120' y2='110'/%3E%3Cline x1='200' y1='40' x2='280' y2='110'/%3E%3Cline x1='120' y1='110' x2='80' y2='190'/%3E%3Cline x1='120' y1='110' x2='160' y2='190'/%3E%3Cline x1='280' y1='110' x2='240' y2='190'/%3E%3Cline x1='280' y1='110' x2='320' y2='190'/%3E%3C/g%3E%3Cg fill='black'%3E%3Ccircle cx='200' cy='40' r='8'/%3E%3Ccircle cx='120' cy='110' r='6'/%3E%3Ccircle cx='280' cy='110' r='6'/%3E%3Ccircle cx='80' cy='190' r='5'/%3E%3Ccircle cx='160' cy='190' r='5'/%3E%3Ccircle cx='240' cy='190' r='5'/%3E%3Ccircle cx='320' cy='190' r='5'/%3E%3C/g%3E%3C/svg%3E");
}

.post-card[data-viz="rings"] .post-card-visual::before,
.post[data-viz="rings"] .post-visual::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 240'%3E%3Cg fill='none' stroke='black'%3E%3Ccircle cx='200' cy='120' r='95' stroke-width='2' opacity='0.25'/%3E%3Ccircle cx='200' cy='120' r='65' stroke-width='2' opacity='0.5'/%3E%3Ccircle cx='200' cy='120' r='35' stroke-width='2' opacity='0.78'/%3E%3C/g%3E%3Cline x1='200' y1='120' x2='292' y2='28' stroke='black' stroke-width='1.5' opacity='0.45'/%3E%3Ccircle cx='200' cy='120' r='7' fill='black'/%3E%3Ccircle cx='292' cy='28' r='5' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 240'%3E%3Cg fill='none' stroke='black'%3E%3Ccircle cx='200' cy='120' r='95' stroke-width='2' opacity='0.25'/%3E%3Ccircle cx='200' cy='120' r='65' stroke-width='2' opacity='0.5'/%3E%3Ccircle cx='200' cy='120' r='35' stroke-width='2' opacity='0.78'/%3E%3C/g%3E%3Cline x1='200' y1='120' x2='292' y2='28' stroke='black' stroke-width='1.5' opacity='0.45'/%3E%3Ccircle cx='200' cy='120' r='7' fill='black'/%3E%3Ccircle cx='292' cy='28' r='5' fill='black'/%3E%3C/svg%3E");
}

.post-card[data-viz="wave"] .post-card-visual::before,
.post[data-viz="wave"] .post-visual::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 240'%3E%3Cg stroke='black' stroke-width='1' stroke-dasharray='3 3' opacity='0.35'%3E%3Cline x1='70' y1='40' x2='70' y2='200'/%3E%3Cline x1='170' y1='40' x2='170' y2='200'/%3E%3Cline x1='270' y1='40' x2='270' y2='200'/%3E%3C/g%3E%3Cpath d='M20 120 Q 70 50 120 120 T 220 120 T 320 120 T 380 120' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3Cg fill='black'%3E%3Ccircle cx='70' cy='85' r='5'/%3E%3Ccircle cx='170' cy='155' r='5'/%3E%3Ccircle cx='270' cy='85' r='5'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 240'%3E%3Cg stroke='black' stroke-width='1' stroke-dasharray='3 3' opacity='0.35'%3E%3Cline x1='70' y1='40' x2='70' y2='200'/%3E%3Cline x1='170' y1='40' x2='170' y2='200'/%3E%3Cline x1='270' y1='40' x2='270' y2='200'/%3E%3C/g%3E%3Cpath d='M20 120 Q 70 50 120 120 T 220 120 T 320 120 T 380 120' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3Cg fill='black'%3E%3Ccircle cx='70' cy='85' r='5'/%3E%3Ccircle cx='170' cy='155' r='5'/%3E%3Ccircle cx='270' cy='85' r='5'/%3E%3C/g%3E%3C/svg%3E");
}

.post-card[data-viz="feature"] .post-card-visual::before,
.post[data-viz="feature"] .post-visual::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 240'%3E%3Cg fill='black' opacity='0.22'%3E%3Ccircle cx='40' cy='200' r='2.5'/%3E%3Ccircle cx='100' cy='200' r='2.5'/%3E%3Ccircle cx='40' cy='150' r='2.5'/%3E%3Ccircle cx='100' cy='150' r='2.5'/%3E%3Ccircle cx='40' cy='100' r='2.5'/%3E%3Ccircle cx='540' cy='200' r='2.5'/%3E%3Ccircle cx='540' cy='150' r='2.5'/%3E%3Ccircle cx='540' cy='100' r='2.5'/%3E%3C/g%3E%3Cpath d='M40 200 Q 180 198 240 150 T 480 50' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3Cg fill='black'%3E%3Ccircle cx='120' cy='197' r='5'/%3E%3Ccircle cx='220' cy='165' r='6'/%3E%3Ccircle cx='320' cy='115' r='6'/%3E%3Ccircle cx='420' cy='75' r='6'/%3E%3C/g%3E%3Ccircle cx='480' cy='50' r='14' fill='none' stroke='black' stroke-width='1.5' opacity='0.7'/%3E%3Ccircle cx='480' cy='50' r='6' fill='black'/%3E%3Cline x1='454' y1='50' x2='506' y2='50' stroke='black' stroke-width='0.6' opacity='0.4'/%3E%3Cline x1='480' y1='24' x2='480' y2='76' stroke='black' stroke-width='0.6' opacity='0.4'/%3E%3Cg stroke='black' stroke-width='1' opacity='0.3'%3E%3Cline x1='40' y1='218' x2='40' y2='228'/%3E%3Cline x1='160' y1='218' x2='160' y2='228'/%3E%3Cline x1='280' y1='218' x2='280' y2='228'/%3E%3Cline x1='400' y1='218' x2='400' y2='228'/%3E%3Cline x1='520' y1='218' x2='520' y2='228'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 240'%3E%3Cg fill='black' opacity='0.22'%3E%3Ccircle cx='40' cy='200' r='2.5'/%3E%3Ccircle cx='100' cy='200' r='2.5'/%3E%3Ccircle cx='40' cy='150' r='2.5'/%3E%3Ccircle cx='100' cy='150' r='2.5'/%3E%3Ccircle cx='40' cy='100' r='2.5'/%3E%3Ccircle cx='540' cy='200' r='2.5'/%3E%3Ccircle cx='540' cy='150' r='2.5'/%3E%3Ccircle cx='540' cy='100' r='2.5'/%3E%3C/g%3E%3Cpath d='M40 200 Q 180 198 240 150 T 480 50' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3Cg fill='black'%3E%3Ccircle cx='120' cy='197' r='5'/%3E%3Ccircle cx='220' cy='165' r='6'/%3E%3Ccircle cx='320' cy='115' r='6'/%3E%3Ccircle cx='420' cy='75' r='6'/%3E%3C/g%3E%3Ccircle cx='480' cy='50' r='14' fill='none' stroke='black' stroke-width='1.5' opacity='0.7'/%3E%3Ccircle cx='480' cy='50' r='6' fill='black'/%3E%3Cline x1='454' y1='50' x2='506' y2='50' stroke='black' stroke-width='0.6' opacity='0.4'/%3E%3Cline x1='480' y1='24' x2='480' y2='76' stroke='black' stroke-width='0.6' opacity='0.4'/%3E%3Cg stroke='black' stroke-width='1' opacity='0.3'%3E%3Cline x1='40' y1='218' x2='40' y2='228'/%3E%3Cline x1='160' y1='218' x2='160' y2='228'/%3E%3Cline x1='280' y1='218' x2='280' y2='228'/%3E%3Cline x1='400' y1='218' x2='400' y2='228'/%3E%3Cline x1='520' y1='218' x2='520' y2='228'/%3E%3C/g%3E%3C/svg%3E");
}

.post-card-mark {
  display: inline-block;
  margin: -12px 0 14px;
  color: var(--accent-dim);
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0;
  opacity: 0.85;
  transform-origin: left center;
  transition:
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 240ms ease;
}

.post-card:hover .post-card-mark {
  opacity: 1;
  transform: scale(1.15);
}

/* Top-right registration mark inside the visual region, mirroring the body's + */
.post-card-visual::after {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  color: var(--accent-dim);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  opacity: 0.55;
  content: "+";
  transition: opacity 320ms ease;
}

.post-card:hover .post-card-visual::after {
  opacity: 0.9;
}

/* Bottom-right issue-number stamp on the card body — magazine-style "No. NN" */
.post-card-body::after {
  position: absolute;
  right: 0;
  bottom: 0;
  color: var(--accent-dim);
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.18em;
  line-height: 1;
  opacity: 0.55;
  text-transform: uppercase;
  content: "No. " counter(post-num, decimal-leading-zero);
}

.post-card-body {
  position: relative;
}

.post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes post-card-rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .post-card {
    animation: post-card-rise 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .post-card:nth-child(1) { animation-delay: 40ms; }
  .post-card:nth-child(2) { animation-delay: 120ms; }
  .post-card:nth-child(3) { animation-delay: 200ms; }
  .post-card:nth-child(4) { animation-delay: 280ms; }
  .post-card:nth-child(5) { animation-delay: 360ms; }
  .post-card:nth-child(6) { animation-delay: 440ms; }
  .post-card:nth-child(n+7) { animation-delay: 520ms; }
}

.post-card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}

.post-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px 5px;
  border: 1px solid var(--accent-dim);
  border-radius: 3px;
  background: transparent;
  color: var(--accent-dim);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color 280ms ease, border-color 280ms ease;
}

.post-card:hover .post-card-tag {
  background: rgba(31, 91, 181, 0.07);
  border-color: rgba(31, 91, 181, 0.6);
}

.post-card-tag-alt {
  border-color: rgba(102, 120, 140, 0.45);
  color: var(--steel);
}

.post-card:hover .post-card-tag-alt {
  background: rgba(102, 120, 140, 0.06);
  border-color: rgba(102, 120, 140, 0.7);
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  gap: 10px;
  padding-bottom: 14px;
  margin: 0 0 14px;
  border-bottom: 1px solid rgba(31, 91, 181, 0.22);
  color: var(--text-faint);
  font-size: 0.7rem;
  font-weight: 600;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.post-card-meta .meta-sep {
  display: inline;
  opacity: 0.5;
}

.post-card-title {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.014em;
  text-wrap: balance;
  transition: color 280ms ease;
}

/* Narrow cards (span 5) get a slightly smaller title so wide cards read as more dominant */
.post-card:nth-child(4n+3) .post-card-title,
.post-card:nth-child(4n+4) .post-card-title {
  font-size: 1.5rem;
}

.post-card-title::after {
  display: inline-block;
  margin-left: 6px;
  vertical-align: 0.06em;
  color: var(--accent-dim);
  font-size: 0.7em;
  font-weight: 400;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition:
    opacity 280ms ease,
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
  content: "↗";
}

.post-card:hover .post-card-title {
  color: var(--accent-dim);
}

.post-card:hover .post-card-title::after {
  opacity: 0.75;
  transform: translate(0, 0);
}

.post-card-dek {
  margin: 0 0 26px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.post-card-cta {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition:
    background-color 240ms ease,
    color 240ms ease,
    gap 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.post-card-cta-arrow {
  display: inline-block;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.post-card:hover .post-card-cta {
  background: var(--ink);
  color: var(--paper);
  gap: 14px;
}

.post-card:hover .post-card-cta-arrow {
  transform: translateX(3px);
}

.post-card-alt-link {
  display: inline-block;
  margin: -10px 32px 24px;
  color: var(--steel);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.post-card-alt-link:hover {
  color: var(--accent-dim);
  text-decoration: underline;
}

/* ---- Feature card (first post): side-by-side editorial spread ---- */
.post-card:first-child .post-card-link {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  align-items: stretch;
  padding: 0;
}

.post-card:first-child .post-card-visual {
  margin: 0;
  aspect-ratio: auto;
  height: 100%;
  min-height: 360px;
  border-right: 1px solid rgba(31, 91, 181, 0.14);
  border-bottom: none;
}

.post-card:first-child .post-card-body {
  padding: 44px 48px 40px;
  justify-content: center;
}

.post-card:first-child .post-card-mark {
  margin: 0 0 18px;
  font-size: 26px;
}

.post-card:first-child .post-card-tags {
  margin-bottom: 18px;
}

.post-card:first-child .post-card-meta {
  margin-bottom: 18px;
}

.post-card:first-child .post-card-title {
  margin-bottom: 18px;
  font-size: 2.25rem;
  line-height: 1.1;
}

.post-card:first-child .post-card-dek {
  margin-bottom: 30px;
  font-size: 1.06rem;
}

.post-card:first-child .post-card-dek::first-letter {
  float: left;
  margin: 6px 10px 0 0;
  padding: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 3.2em;
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.03em;
}

.post-card:first-child .post-card-body::before {
  position: absolute;
  top: -8px;
  right: -10px;
  z-index: 0;
  color: rgba(31, 91, 181, 0.05);
  font-family: var(--font-sans);
  font-size: 9rem;
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.06em;
  pointer-events: none;
  content: counter(post-num, decimal-leading-zero);
}

.post-card:first-child .post-card-body > * {
  position: relative;
  z-index: 1;
}

.post-card:first-child .post-card-cta {
  padding: 14px 28px;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
}

.post-card:first-child .post-card-body::after {
  right: 48px;
  bottom: 40px;
}

.post-card-visual-stamp {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 6px 10px 5px;
  border: 1px solid var(--accent-dim);
  border-radius: 3px;
  background: var(--paper);
  color: var(--accent-dim);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color 280ms ease, color 280ms ease;
}

.post-card:hover .post-card-visual-stamp {
  background: var(--accent-dim);
  color: var(--paper);
}

.blog-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
  padding: 44px 44px 40px;
  border: 1px solid rgba(31, 91, 181, 0.22);
  border-radius: 4px;
  background: var(--paper);
  text-align: left;
  overflow: hidden;
}

.blog-cta-content {
  max-width: 580px;
}

.blog-cta-aside {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  color: var(--accent-dim);
}

.blog-cta-aside-svg {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 75% center;
  transition: transform 480ms cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-cta:hover .blog-cta-aside-svg {
  transform: scale(1.05);
}

.blog-cta::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-dim), transparent 70%);
  content: "";
}

.blog-cta::after {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--accent-dim);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  opacity: 0.55;
  content: "+";
}

.blog-cta-mark {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--accent-dim);
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  opacity: 0.85;
}

.blog-cta-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  margin: 0 0 14px;
  color: var(--accent-dim);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.blog-cta-eyebrow::after {
  flex: 1;
  height: 1px;
  margin-left: 4px;
  background: linear-gradient(90deg, rgba(31, 91, 181, 0.42), transparent);
  content: "";
}

.blog-cta h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.016em;
  text-wrap: balance;
}

.blog-cta h2::after {
  display: block;
  width: 48px;
  height: 1px;
  margin: 18px 0 4px;
  background: var(--accent-dim);
  opacity: 0.42;
  content: "";
}

.blog-cta p {
  max-width: 580px;
  margin: 0 0 26px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.blog-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background-color 240ms ease,
    color 240ms ease,
    gap 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-cta-button-arrow {
  display: inline-block;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-cta-button:hover {
  background: var(--paper);
  color: var(--ink);
  gap: 14px;
}

.blog-cta-button:hover .blog-cta-button-arrow {
  transform: translateX(3px);
}

.post-main {
  position: relative;
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 140px 24px 96px;
}

.post {
  position: relative;
  padding: 64px 64px 56px;
  border: 1px solid rgba(31, 91, 181, 0.10);
  border-radius: 18px;
  background: var(--paper);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 24px 60px rgba(14, 26, 43, 0.08),
    0 4px 10px rgba(14, 26, 43, 0.04);
}

html[data-theme="dark"] .post {
  background: var(--paper);
  border-color: rgba(120, 160, 220, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 4px 10px rgba(0, 0, 0, 0.25);
}

.post-header {
  margin-bottom: 44px;
}

/* Editorial intro mark on each blog post — replaces the old .post-meta dot pattern */
.post-mark {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 28px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.post-mark-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--accent-dim);
  text-decoration: none;
  font-weight: 700;
  transition: color 200ms ease;
}

.post-mark-link:hover {
  color: var(--accent);
}

.post-mark-sigil {
  font-weight: 700;
  font-feature-settings: "tnum" 1;
}

.post-mark-rule {
  flex: 1;
  min-width: 32px;
  height: 1px;
  align-self: center;
  background: rgba(31, 91, 181, 0.22);
}

.post-mark-date,
.post-mark-time {
  color: var(--text-faint);
  font-weight: 600;
  font-feature-settings: "tnum" 1;
}

.post-mark-sep {
  color: var(--text-faint);
  font-weight: 400;
}

.post-mark-lang {
  color: var(--text-faint);
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 91, 181, 0.32);
  padding-bottom: 1px;
  transition: color 200ms ease, border-color 200ms ease;
}

.post-mark-lang:hover {
  color: var(--accent-dim);
  border-color: var(--accent);
}

@media (max-width: 540px) {
  .post-mark-rule {
    display: none;
  }
}

.post-title {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.post-dek {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.22rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.post-visual {
  position: relative;
  margin: 40px -64px 48px;
  aspect-ratio: 16 / 6.5;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 7' preserveAspectRatio='none'%3E%3Cg fill='rgba(31, 91, 181, 0.38)'%3E%3Crect x='199' y='0' width='2' height='6'/%3E%3Crect x='399' y='0' width='2' height='6'/%3E%3Crect x='599' y='0' width='2' height='6'/%3E%3Crect x='799' y='0' width='2' height='6'/%3E%3C/g%3E%3C/svg%3E") 0 calc(100% - 1px) / 100% 7px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 1000' preserveAspectRatio='none'%3E%3Cg fill='rgba(31, 91, 181, 0.38)'%3E%3Crect x='1' y='199' width='6' height='2'/%3E%3Crect x='1' y='399' width='6' height='2'/%3E%3Crect x='1' y='599' width='6' height='2'/%3E%3Crect x='1' y='799' width='6' height='2'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 7px 100% no-repeat,
    linear-gradient(to right, rgba(14, 26, 43, 0.05) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(to bottom, rgba(14, 26, 43, 0.05) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(180deg, var(--fog), rgba(217, 229, 242, 0.55));
  border-top: 1px solid rgba(31, 91, 181, 0.14);
  border-bottom: 1px solid rgba(31, 91, 181, 0.14);
  overflow: hidden;
}

.post-visual::after {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 2;
  color: var(--accent-dim);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  opacity: 0.6;
  content: "+";
}

.post-body {
  position: relative;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.72;
}

.post-body > p:first-child::first-letter {
  margin-right: 4px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.04em;
}

.post-body p {
  margin: 0 0 22px;
  text-wrap: pretty;
}

.post-body h2 {
  position: relative;
  margin: 56px 0 18px;
  padding-top: 20px;
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.18;
}

.post-body h2::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 1px;
  content: "";
}

.post-body h3 {
  margin: 36px 0 10px;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.008em;
}

.post-body ul {
  list-style: none;
  margin: 0 0 24px;
  padding-left: 0;
}

.post-body li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 22px;
}

.post-body li::before {
  position: absolute;
  left: 0;
  top: 0.76em;
  width: 12px;
  height: 1px;
  background: var(--accent);
  content: "";
  opacity: 0.7;
}

.post-body ol {
  margin: 0 0 24px;
  padding-left: 24px;
  counter-reset: post-ol;
}

.post-body ol li {
  padding-left: 6px;
}

.post-body ol li::before {
  display: none;
}

.post-body blockquote {
  position: relative;
  margin: 28px 0;
  padding: 4px 0 4px 22px;
  color: var(--ink);
  font-style: italic;
  font-size: 1.16rem;
  line-height: 1.55;
}

.post-body blockquote::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(59, 130, 224, 0.2));
  border-radius: 1px;
  content: "";
}

.post-body strong {
  color: var(--ink);
  font-weight: 700;
}

.post-body em {
  font-style: italic;
}

.post-body a {
  position: relative;
  color: var(--accent-dim);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  padding-bottom: 1px;
  transition: color 200ms ease, background-size 240ms ease;
}

.post-body a:hover {
  color: var(--accent);
  background-size: 100% 2px;
}

.post-body pre {
  margin: 0 0 22px;
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid rgba(31, 91, 181, 0.18);
  border-radius: 8px;
  background: #f3f7fc;
  color: var(--graphite);
  font-family:
    ui-monospace, "SF Mono", Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.92rem;
  line-height: 1.55;
}

.post-body pre code {
  padding: 0;
  background: transparent;
  font-size: inherit;
}

.post-body code {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(59, 130, 224, 0.1);
  color: var(--accent-dim);
  font-family:
    ui-monospace, "SF Mono", Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.92em;
}

.post-footer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 64px;
  padding-top: 36px;
}

/* Editorial CTA at the end of each blog post — replaces the old contact-button stamp */
.post-cta-line {
  margin: 12px 0 0;
  font-size: 1.04rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

.post-cta-prefix {
  color: var(--text-muted);
}

.post-cta-line .engagement-cta-link {
  margin-left: 4px;
}

html[data-theme="dark"] .post-cta-line {
  color: rgba(232, 238, 247, 0.82);
}

html[data-theme="dark"] .post-cta-prefix {
  color: rgba(232, 238, 247, 0.74);
}

.post-footer::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31, 91, 181, 0.32), transparent);
  content: "";
}

.post-footer::after {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(59, 130, 224, 0.18);
  content: "";
  transform: translateX(-50%);
}

.post-footer-back {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.post-footer-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-dim);
  text-decoration: none;
  transition: gap 240ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms ease;
}

.post-footer-back a:hover {
  gap: 12px;
  color: var(--accent);
}

.post-related {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 24px 0 8px;
  overflow: hidden;
}

.post-related::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  content: "";
}

.post-related-title {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.post-related-link {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 16px 20px;
  border: 1px solid rgba(31, 91, 181, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(230, 240, 251, 0.5), rgba(255, 255, 255, 0.4));
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition:
    border-color 240ms ease,
    transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
    background 240ms ease,
    box-shadow 240ms ease;
}

.post-related-link::after {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 18px;
  height: 1px;
  margin-top: -0.5px;
  background: var(--accent-dim);
  content: "";
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 240ms ease, transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.post-related-link:hover {
  border-color: rgba(59, 130, 224, 0.36);
  background:
    linear-gradient(135deg, rgba(230, 240, 251, 0.85), rgba(255, 255, 255, 0.6));
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(59, 130, 224, 0.12);
}

.post-related-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.post-related-label {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.008em;
  max-width: 86%;
}

.post-related-dek {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.about-main {
  position: relative;
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 160px 32px 96px;
}

.about-hero {
  position: relative;
  margin-bottom: 64px;
}

/* About hero/section marks — small typographic spacing tweaks */
.about-mark {
  margin-bottom: 28px;
}

.about-section-mark {
  margin-bottom: 18px;
}

.about-cta-line {
  margin-top: 24px;
  font-size: 1.08rem;
}

.about-title {
  position: relative;
  margin: 12px 0 18px;
  color: var(--ink);
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.about-dek {
  max-width: 660px;
  margin: 0;
  color: var(--text-muted);
  font-size: 1.16rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.about-section {
  margin-top: 52px;
}

.about-section-title {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.about-section-dek {
  max-width: 680px;
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 1.04rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.about-section-cta {
  margin: 8px 0 0;
  font-size: 0.96rem;
  font-weight: 740;
}

.about-section-cta a {
  color: var(--accent-dim);
  text-decoration: none;
}

.about-section-cta a:hover {
  text-decoration: underline;
}

/* Editorial bio — replaces the rounded shadow card + "21x" glyph + sheen */
.about-bio {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr;
  column-gap: 32px;
  row-gap: 22px;
  padding: 28px 0 4px;
  border-top: 1px solid rgba(31, 91, 181, 0.22);
}

.about-bio::before {
  /* short accent stripe overlapping the top border, like a printer's imprint */
  position: absolute;
  top: -1px;
  left: 0;
  width: 56px;
  height: 1px;
  background: var(--accent);
  content: "";
}

.about-bio::after {
  /* "+" registration mark in the top-right, matches blog cards' family */
  position: absolute;
  top: 14px;
  right: 0;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center/100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center/1px 100% no-repeat;
  color: rgba(31, 91, 181, 0.32);
  content: "";
}

.about-bio-portrait {
  grid-column: 1;
  grid-row: 1 / span 3;
  display: block;
  width: 140px;
  height: 140px;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(31, 91, 181, 0.18);
  border-radius: 4px;
  background: var(--paper);
  object-fit: cover;
  filter: grayscale(0.12);
}

.about-bio-head,
.about-bio-body,
.about-bio-cta {
  grid-column: 2;
}

.about-bio-head {
  display: grid;
  gap: 4px;
  margin: 4px 0 0;
}

.about-bio-name {
  margin: 0;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.014em;
}

.about-bio-role {
  margin: 0;
  color: var(--accent-dim);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.about-bio-body {
  display: grid;
  gap: 14px;
}

.about-bio-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.6;
  text-wrap: pretty;
  max-width: 620px;
}

.about-bio-cta {
  margin: 0;
  font-size: 1rem;
}

.about-secondary-link {
  color: var(--accent-dim);
  font-size: 0.96rem;
  font-weight: 740;
  text-decoration: none;
}

.about-secondary-link:hover {
  text-decoration: underline;
}

.site-footer {
  position: relative;
  padding: 96px 32px 64px;
  color: var(--steel);
  font-size: 0.86rem;
  text-align: center;
}

.site-footer::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(720px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31, 91, 181, 0.28), transparent);
  content: "";
  transform: translateX(-50%);
}

.site-footer::after {
  position: absolute;
  top: 22px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(31, 91, 181, 0.2);
  border-radius: 10px;
  background:
    linear-gradient(135deg, var(--accent-wash) 0%, #f4f8fd 100%);
  color: var(--accent-dim);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 20px rgba(59, 130, 224, 0.12);
  content: "21x";
  transform: translateX(-50%);
}

.site-footer p {
  margin: 8px 0;
  line-height: 1.6;
}

.site-footer p:first-of-type {
  margin-top: 28px;
  color: var(--text-muted);
  font-weight: 500;
}

.site-footer a {
  position: relative;
  color: var(--accent-dim);
  text-decoration: none;
  transition: color 200ms ease;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer p:nth-of-type(2) {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  color: var(--text-faint);
  font-size: 0.8rem;
}

.footer-rss {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-warm);
  transition: color 220ms ease, transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-rss:hover {
  color: var(--accent-dim);
  transform: translateY(-1px);
}

.footer-rss svg {
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .site-header {
    gap: 12px;
    padding: 14px 16px;
  }

  .brand {
    flex: 0 0 auto;
    font-size: 0.98rem;
  }

  .header-nav,
  .site-nav {
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 10px;
  }

  .header-nav > .site-nav-link.contact-pill,
  .site-nav > .site-nav-link.contact-pill {
    display: none;
  }

  .site-nav-link {
    padding: 8px 1px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .theme-toggle {
    width: 24px;
    height: 28px;
  }

  .language-toggle {
    flex: 0 0 auto;
  }

  .language-button {
    padding: 4px 3px;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  .language-button + .language-button::before {
    margin-right: 5px;
  }

  .blog-main {
    padding: 116px 20px 72px;
  }

  .blog-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .blog-hero-cadence {
    width: 100%;
    max-width: 380px;
  }

  .blog-title {
    font-size: 2.2rem;
  }

  .blog-dek {
    font-size: 1.04rem;
  }

  .post-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 64px;
  }

  .post-card,
  .post-card:first-child,
  .post-card:nth-child(4n+3),
  .post-card:nth-child(4n+4) {
    grid-column: 1 / -1;
  }

  .post-card:first-child .post-card-link {
    display: flex;
    flex-direction: column;
    padding: 0 22px 24px;
  }

  .post-card:first-child .post-card-visual {
    margin: 0 -22px 22px;
    aspect-ratio: 16 / 10;
    min-height: 0;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(31, 91, 181, 0.14);
  }

  .post-card:first-child .post-card-body {
    padding: 0;
  }

  .post-card:first-child .post-card-title {
    font-size: 1.5rem;
  }

  .post-card:first-child .post-card-body::after {
    right: 0;
    bottom: 0;
  }

  .post-card-link {
    padding: 0 22px 24px;
  }

  .post-card-visual {
    margin: 0 -22px 22px;
  }

  .post-card-alt-link {
    margin: -8px 22px 20px;
  }

  .post-card-title {
    font-size: 1.36rem;
  }

  .post-card-cta {
    padding: 11px 18px;
    font-size: 0.66rem;
  }

  .blog-index-strip {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 0.64rem;
    letter-spacing: 0.14em;
  }

  .blog-index-rule {
    flex-basis: 16px;
  }

  .blog-cta {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 22px 28px;
  }

  .blog-cta-aside {
    width: 100%;
    max-width: 180px;
  }

  .blog-cta h2 {
    font-size: 1.5rem;
  }

  .blog-cta-button {
    padding: 12px 20px;
    font-size: 0.66rem;
  }

  .post-main {
    padding: 116px 14px 72px;
  }

  .post {
    padding: 36px 24px 32px;
    border-radius: 14px;
  }

  .post-visual {
    margin: 28px -24px 36px;
    aspect-ratio: 16 / 8;
  }

  .about-main {
    padding: 116px 20px 72px;
  }

  .about-title {
    font-size: 2.2rem;
  }

  .about-dek {
    font-size: 1.04rem;
  }

  .about-section {
    margin-top: 40px;
  }

  .about-section-title {
    font-size: 1.36rem;
  }

  .about-bio {
    grid-template-columns: 96px 1fr;
    column-gap: 20px;
    row-gap: 16px;
    padding-top: 22px;
  }

  .about-bio-portrait {
    width: 96px;
    height: 96px;
  }

  .post-title {
    font-size: 2.05rem;
  }

  .post-dek {
    font-size: 1.06rem;
  }

  .post-body {
    font-size: 1rem;
  }

  .post-body h2 {
    font-size: 1.32rem;
  }

  .post-body h3 {
    font-size: 1.08rem;
  }

  .site-footer {
    padding: 28px 20px 40px;
  }

  .hero {
    min-height: 84svh;
    padding: 116px 20px 54px;
  }

  .hero-content {
    width: 100%;
  }

  .hero-media {
    background-position: 64% center;
    transform: scale(1.04);
  }

  .hero-vignette {
    background:
      linear-gradient(90deg, rgba(246, 251, 255, 0.94) 0%, rgba(246, 251, 255, 0.72) 58%, rgba(246, 251, 255, 0.28) 100%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.44) 0%, rgba(255, 255, 255, 0.08) 52%, rgba(236, 243, 251, 0.62) 100%);
  }

  .hero-grid {
    opacity: 0.22;
    background-size: 72px 72px;
  }

  .hero-copy {
    width: min(100%, 560px);
    max-width: 560px;
    margin-top: 24px;
    font-size: 1.08rem;
  }

  .hero-cta-line .hero-cta-prefix {
    display: block;
    margin: 0 0 4px;
  }

  .hero-cta-line .engagement-cta-link {
    max-width: 100%;
  }

  .engagement-cta-email {
    overflow-wrap: anywhere;
  }

  .hero-actions {
    display: grid;
    margin-top: 30px;
  }

  .fit-check {
    padding: 68px 20px 16px;
  }

  .fit-check-title {
    font-size: 1.7rem;
  }

  .fit-check-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .fit-check-col {
    padding: 22px 24px 24px;
  }

  .engagement {
    padding: 40px 20px 16px;
  }

  .engagement-title {
    font-size: 1.7rem;
  }

  .home-notes {
    padding: 40px 20px 72px;
  }

  .home-notes-title {
    font-size: 1.7rem;
  }

  .home-notes-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .home-note-link {
    padding: 22px 22px 20px;
  }
}

@media (max-width: 430px) {
  .hero {
    min-height: 86svh;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .brand-name {
    display: none;
  }

  .site-header {
    padding: 14px 12px;
  }

  .header-nav,
  .site-nav {
    gap: 6px;
  }

  .site-nav-link {
    font-size: 0.76rem;
  }

  .language-button {
    padding-inline: 2px;
    font-size: 0.64rem;
    letter-spacing: 0.06em;
  }

  .language-button + .language-button::before {
    margin-right: 4px;
  }
}

@media (max-width: 360px) {
  .hero-numeral,
  .hero-wordmark {
    font-size: 2.35rem;
  }

  .hero-wordmark {
    margin-left: 0.32em;
    padding-left: 0.32em;
  }

  .hero-copy {
    font-size: 0.97rem;
  }
}

@media (max-width: 720px) {
  .case-hero-bg-tag {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

}

.not-found {
  position: relative;
  display: grid;
  place-items: center;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 180px 32px 120px;
  text-align: center;
}

.not-found-glyph {
  width: min(440px, 90%);
  height: auto;
  margin-bottom: 28px;
  color: var(--accent-dim);
  opacity: 0;
  animation: nf-fade-in 900ms cubic-bezier(0.16, 1, 0.3, 1) 120ms forwards;
}

.not-found-glyph .nf-num {
  font-variant-numeric: tabular-nums;
}

@keyframes nf-fade-in {
  to { opacity: 1; }
}

.not-found-mark {
  margin: 0 auto 18px;
  justify-content: center;
}

.not-found-title {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.not-found-dek {
  max-width: 480px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 1.12rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.not-found-links {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.not-found-secondary {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.not-found-secondary a {
  color: var(--accent-dim);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 200ms ease;
}

.not-found-secondary a:hover {
  color: var(--accent);
}

@media (max-width: 860px) {
  .not-found {
    padding: 140px 24px 96px;
  }

  .not-found-title {
    font-size: 2rem;
  }

  .not-found-dek {
    font-size: 1.04rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .not-found-glyph { opacity: 1; animation: none; }
}
html[data-theme="dark"] .site-header {
    background: linear-gradient(180deg, var(--surface-glass) 0%, rgba(10, 20, 36, 0.36) 70%, transparent 100%);
    color: var(--ink);
  }

html[data-theme="dark"] .brand-mark {
    color: var(--accent);
  }

html[data-theme="dark"] .brand-name {
    color: rgba(232, 238, 247, 0.9);
  }

html[data-theme="dark"] .brand:hover .brand-mark {
    color: #9fc4ff;
  }

html[data-theme="dark"] .brand:hover .brand-name {
    color: var(--accent);
  }

html[data-theme="dark"] .language-button {
    color: rgba(232, 238, 247, 0.5);
  }

html[data-theme="dark"] .language-button.is-active {
    color: var(--accent);
    background: transparent;
  }

html[data-theme="dark"] .language-button + .language-button::before {
    color: rgba(232, 238, 247, 0.32);
  }

html[data-theme="dark"] .theme-toggle {
    color: rgba(232, 238, 247, 0.6);
  }

html[data-theme="dark"] .site-nav-link {
    color: rgba(232, 238, 247, 0.78);
  }

html[data-theme="dark"] .site-nav-link.contact-pill {
    color: var(--accent);
    background: transparent;
    box-shadow: none;
  }

html[data-theme="dark"] .site-nav-link.contact-pill:hover {
    color: #7ab4ff;
    background: transparent;
  }

html[data-theme="dark"] .hero-media {
    background-image: url("assets/hero-sugarloaf-ai-dark.jpg");
  }

html[data-theme="dark"] .hero-media::after {
    background:
      linear-gradient(180deg, rgba(10, 16, 28, 0.5) 0%, rgba(10, 16, 28, 0) 44%, rgba(10, 16, 28, 0.3) 100%),
      radial-gradient(ellipse at 22% 54%, rgba(10, 16, 28, 0.55) 0%, rgba(10, 16, 28, 0.15) 38%, transparent 62%);
  }

html[data-theme="dark"] .hero-vignette {
    background:
      linear-gradient(90deg, rgba(10, 16, 28, 0.88) 0%, rgba(10, 16, 28, 0.6) 32%, rgba(10, 16, 28, 0.18) 60%, transparent 100%),
      linear-gradient(180deg, rgba(10, 16, 28, 0.3) 0%, transparent 44%, rgba(10, 16, 28, 0.4) 100%);
  }

html[data-theme="dark"] .hero::after {
    background: linear-gradient(90deg, var(--accent), var(--mist), transparent 86%);
  }

html[data-theme="dark"] h1#hero-title {
    border-bottom-color: rgba(140, 180, 240, 0.32);
  }

html[data-theme="dark"] .hero-wordmark {
    border-left-color: rgba(140, 180, 240, 0.32);
    color: var(--ink);
  }

html[data-theme="dark"] .hero-numeral {
    color: var(--accent);
  }

html[data-theme="dark"] .hero-numeral em {
    color: inherit;
  }

html[data-theme="dark"] .hero-marker {
    color: var(--accent);
    background: transparent;
    border-color: rgba(120, 160, 220, 0.28);
    box-shadow: none;
  }

html[data-theme="dark"] .hero-marker-key {
    color: rgba(140, 180, 240, 0.65);
  }

html[data-theme="dark"] .hero-marker-val {
    color: rgba(232, 238, 247, 0.92);
  }

html[data-theme="dark"] .hero-marker-meta {
    color: rgba(140, 180, 240, 0.5);
  }

html[data-theme="dark"] .hero-cta-line {
    color: rgba(232, 238, 247, 0.82);
  }

html[data-theme="dark"] .hero-cta-note {
    color: rgba(140, 180, 240, 0.6);
  }

html[data-theme="dark"] .focus-strip {
    background: linear-gradient(180deg, rgba(17, 29, 49, 0.6), rgba(10, 20, 36, 0.85));
    border-color: rgba(120, 160, 220, 0.14);
  }

html[data-theme="dark"] .focus-strip-mark-key { color: var(--accent); }

html[data-theme="dark"] .focus-strip-mark-rule { background: rgba(140, 180, 240, 0.42); }

html[data-theme="dark"] .focus-strip-mark-meta { color: rgba(140, 180, 240, 0.5); }

html[data-theme="dark"] .focus-item {
    border-color: rgba(120, 160, 220, 0.18);
    color: var(--graphite);
  }

html[data-theme="dark"] .focus-item-num { color: rgba(140, 180, 240, 0.6); }

html[data-theme="dark"] .focus-item-verb { color: var(--ink); }

html[data-theme="dark"] .focus-item-rest { color: rgba(232, 238, 247, 0.7); }

/* Card backgrounds / shadows now come from --card-bg / --card-shadow tokens
   which switch automatically under html[data-theme="dark"]. Just adjust hover
   border colors for the cards that need a stronger active state. */
html[data-theme="dark"] .home-note-link:hover,
html[data-theme="dark"] .post-card:hover {
  border-color: rgba(90, 160, 255, 0.4);
}

html[data-theme="dark"] .home-note-link {
  background: var(--paper-soft);
  border-color: rgba(120, 160, 220, 0.22);
}

html[data-theme="dark"] .home-note-tag {
  border-color: rgba(120, 160, 220, 0.36);
  color: var(--accent);
}

html[data-theme="dark"] .home-notes-mark .section-mark-spacer {
  background: rgba(120, 160, 220, 0.18);
}

html[data-theme="dark"] .home-note-link:hover .home-note-title {
  color: var(--accent);
}

html[data-theme="dark"] .post-card {
  background: var(--paper-soft);
  border-color: rgba(120, 160, 220, 0.22);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .post-card:hover {
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .post-card-visual {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 7' preserveAspectRatio='none'%3E%3Cg fill='rgba(140, 180, 240, 0.42)'%3E%3Crect x='199' y='0' width='2' height='6'/%3E%3Crect x='399' y='0' width='2' height='6'/%3E%3Crect x='599' y='0' width='2' height='6'/%3E%3Crect x='799' y='0' width='2' height='6'/%3E%3C/g%3E%3C/svg%3E") 0 calc(100% - 1px) / 100% 7px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 1000' preserveAspectRatio='none'%3E%3Cg fill='rgba(140, 180, 240, 0.42)'%3E%3Crect x='1' y='199' width='6' height='2'/%3E%3Crect x='1' y='399' width='6' height='2'/%3E%3Crect x='1' y='599' width='6' height='2'/%3E%3Crect x='1' y='799' width='6' height='2'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 7px 100% no-repeat,
    linear-gradient(to right, rgba(140, 180, 240, 0.06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(to bottom, rgba(140, 180, 240, 0.06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(180deg, rgba(17, 29, 49, 0.6), rgba(10, 20, 36, 0.4));
  border-bottom-color: rgba(120, 160, 220, 0.16);
}

html[data-theme="dark"] .post-card[data-viz] .post-card-visual::before,
html[data-theme="dark"] .post[data-viz] .post-visual::before {
  background-color: var(--accent);
}

html[data-theme="dark"] .post-visual {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 7' preserveAspectRatio='none'%3E%3Cg fill='rgba(140, 180, 240, 0.42)'%3E%3Crect x='199' y='0' width='2' height='6'/%3E%3Crect x='399' y='0' width='2' height='6'/%3E%3Crect x='599' y='0' width='2' height='6'/%3E%3Crect x='799' y='0' width='2' height='6'/%3E%3C/g%3E%3C/svg%3E") 0 calc(100% - 1px) / 100% 7px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 1000' preserveAspectRatio='none'%3E%3Cg fill='rgba(140, 180, 240, 0.42)'%3E%3Crect x='1' y='199' width='6' height='2'/%3E%3Crect x='1' y='399' width='6' height='2'/%3E%3Crect x='1' y='599' width='6' height='2'/%3E%3Crect x='1' y='799' width='6' height='2'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 7px 100% no-repeat,
    linear-gradient(to right, rgba(140, 180, 240, 0.06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(to bottom, rgba(140, 180, 240, 0.06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(180deg, rgba(17, 29, 49, 0.6), rgba(10, 20, 36, 0.4));
  border-top-color: rgba(120, 160, 220, 0.16);
  border-bottom-color: rgba(120, 160, 220, 0.16);
}

html[data-theme="dark"] .post-card-mark {
  background: var(--paper-soft);
  color: var(--accent);
}

html[data-theme="dark"] .post-card-tag {
  border-color: rgba(90, 160, 255, 0.5);
  color: var(--accent);
}

html[data-theme="dark"] .post-card:hover .post-card-tag {
  background: rgba(90, 160, 255, 0.1);
  border-color: rgba(90, 160, 255, 0.75);
}

html[data-theme="dark"] .post-card-tag-alt {
  border-color: rgba(140, 180, 240, 0.3);
  color: var(--silver);
}

html[data-theme="dark"] .post-card:hover .post-card-tag-alt {
  background: rgba(140, 180, 240, 0.08);
  border-color: rgba(140, 180, 240, 0.5);
}

html[data-theme="dark"] .post-card-cta {
  border-color: var(--text-strong);
  color: var(--text-strong);
}

html[data-theme="dark"] .post-card:hover .post-card-cta {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a1424;
}

html[data-theme="dark"] .post-card-alt-link {
  color: var(--silver);
}

html[data-theme="dark"] .post-card-alt-link:hover {
  color: var(--accent);
}

html[data-theme="dark"] .blog-cta {
  background: var(--paper-soft);
  border-color: rgba(120, 160, 220, 0.22);
}

html[data-theme="dark"] .blog-cta::before {
  background: linear-gradient(180deg, var(--accent), transparent 70%);
}

html[data-theme="dark"] .blog-cta::after,
html[data-theme="dark"] .blog-cta-mark,
html[data-theme="dark"] .blog-cta-eyebrow {
  color: var(--accent);
}

html[data-theme="dark"] .blog-cta h2 {
  color: var(--text-strong);
}

html[data-theme="dark"] .blog-cta p {
  color: var(--text-muted);
}

html[data-theme="dark"] .blog-cta-button {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a1424;
}

html[data-theme="dark"] .blog-cta-button:hover {
  background: transparent;
  color: var(--accent);
}

html[data-theme="dark"] .blog-cta-aside {
  color: var(--accent);
}

html[data-theme="dark"] .post-card-visual::after,
html[data-theme="dark"] .post-card-body::after {
  color: var(--accent);
}

html[data-theme="dark"] .post-card:hover .post-card-title {
  color: var(--accent);
}

html[data-theme="dark"] .post-card:first-child .post-card-dek::first-letter {
  color: var(--text-strong);
}

html[data-theme="dark"] .post-card:first-child .post-card-body::before {
  color: rgba(140, 180, 240, 0.08);
}

html[data-theme="dark"] .post-card-meta {
  border-bottom-color: rgba(120, 160, 220, 0.22);
}

html[data-theme="dark"] .blog-index-rule {
  background: rgba(120, 160, 220, 0.32);
}

html[data-theme="dark"] .blog-index-item-link:hover,
html[data-theme="dark"] .blog-index-item-link:focus-visible {
  color: var(--accent);
}

html[data-theme="dark"] .blog-index-item-link::after {
  background: var(--accent);
}

html[data-theme="dark"] .blog-hero-cadence {
  background:
    linear-gradient(to right, rgba(140, 180, 240, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(to bottom, rgba(140, 180, 240, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--paper-soft);
  border-color: rgba(120, 160, 220, 0.22);
  color: var(--accent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .blog-hero-cadence:hover {
  border-color: rgba(120, 160, 220, 0.42);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .blog-hero-cadence-label::after {
  background: linear-gradient(90deg, rgba(120, 160, 220, 0.42), transparent);
}

html[data-theme="dark"] .blog-hero-cadence-label {
  color: var(--accent);
}

html[data-theme="dark"] .post-card-visual-stamp {
  background: var(--paper-soft);
  border-color: rgba(90, 160, 255, 0.5);
  color: var(--accent);
}

html[data-theme="dark"] .post-card:hover .post-card-visual-stamp {
  background: var(--accent);
  color: #0a1424;
}

html[data-theme="dark"] .blog-index-label {
  color: var(--accent);
}

html[data-theme="dark"] .blog-index-num {
  color: var(--text-strong);
}

html[data-theme="dark"] .about-bio {
    border-top-color: rgba(140, 180, 240, 0.28);
  }

html[data-theme="dark"] .about-bio-body p {
    color: rgba(232, 238, 247, 0.78);
  }

html[data-theme="dark"] .post-body code {
    background: rgba(90, 160, 255, 0.14);
    color: var(--accent);
  }

html[data-theme="dark"] .post-body pre {
    background: #0a1424;
    border-color: rgba(120, 160, 220, 0.16);
    color: var(--graphite);
  }

html[data-theme="dark"] .post-related-link {
    background: linear-gradient(135deg, rgba(40, 60, 90, 0.4), rgba(28, 42, 66, 0.3));
    border-color: rgba(120, 160, 220, 0.16);
  }

html[data-theme="dark"] .post-related-link:hover {
    background: linear-gradient(135deg, rgba(40, 60, 90, 0.7), rgba(28, 42, 66, 0.5));
    border-color: rgba(90, 160, 255, 0.36);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  }

html[data-theme="dark"] .site-footer::after {
    background: linear-gradient(135deg, rgba(59, 130, 224, 0.18) 0%, rgba(40, 60, 90, 0.6) 100%);
    border-color: rgba(120, 160, 220, 0.2);
    color: var(--accent);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 8px 20px rgba(0, 0, 0, 0.4);
  }

html[data-theme="dark"] /* Text-color overrides for elements with hard-coded dark-on-light RGB values */
  .about-dek,
html[data-theme="dark"] .about-section-dek,
html[data-theme="dark"] .about-bio-body,
html[data-theme="dark"] .about-bio-name,
html[data-theme="dark"] .blog-dek,
html[data-theme="dark"] .post-dek,
html[data-theme="dark"] .post-body,
html[data-theme="dark"] .post-card-dek,
html[data-theme="dark"] .post-related-dek,
html[data-theme="dark"] .home-note-dek,
html[data-theme="dark"] .home-notes-dek,
html[data-theme="dark"] .engagement-dek,
html[data-theme="dark"] .fit-check-dek,
html[data-theme="dark"] .fit-check-list,
html[data-theme="dark"] .post-body strong {
    color: var(--text-muted);
  }

html[data-theme="dark"] .about-bio-name strong,
html[data-theme="dark"] .about-section-title,
html[data-theme="dark"] .home-note-title,
html[data-theme="dark"] .post-card-title,
html[data-theme="dark"] .post-title,
html[data-theme="dark"] .post-related-label,
html[data-theme="dark"] .blog-title,
html[data-theme="dark"] .home-notes-title,
html[data-theme="dark"] .engagement-title,
html[data-theme="dark"] .not-found-title,
html[data-theme="dark"] .fit-check-title,
html[data-theme="dark"] .fit-check-col-title {
    color: var(--text-strong);
  }

html[data-theme="dark"] .post-body strong {
    color: var(--ink);
  }

html[data-theme="dark"] .post-body p,
html[data-theme="dark"] .post-body li {
    color: var(--text-muted);
  }

html[data-theme="dark"] .post-card-meta,
html[data-theme="dark"] .home-note-meta,
html[data-theme="dark"] .home-notes-cta {
    color: var(--text-faint);
  }

html[data-theme="dark"] .blog-filter {
    background: rgba(59, 130, 224, 0.12);
    color: var(--text-muted);
    border-left-color: var(--accent);
  }

html[data-theme="dark"] .post-mark-rule {
    background: rgba(140, 180, 240, 0.22);
  }

html[data-theme="dark"] .post-mark-date,
html[data-theme="dark"] .post-mark-time {
    color: rgba(140, 180, 240, 0.6);
  }

html[data-theme="dark"] .post-mark-sep {
    color: rgba(140, 180, 240, 0.32);
  }

html[data-theme="dark"] .post-mark-lang {
    color: rgba(140, 180, 240, 0.6);
    border-color: rgba(140, 180, 240, 0.32);
  }

html[data-theme="dark"] .section-mark,
html[data-theme="dark"] .section-mark-label {
    color: var(--text-faint);
  }

html[data-theme="dark"] .section-mark-num {
    color: var(--accent);
  }

html[data-theme="dark"] .section-mark-rule {
    background: rgba(140, 180, 240, 0.36);
  }

html[data-theme="dark"] .engagement-cta-line {
    color: var(--text-muted);
  }

html[data-theme="dark"] .section-mark-side {
    color: var(--text-faint);
  }

html[data-theme="dark"] .site-footer p {
    color: var(--text-muted);
  }

html[data-theme="dark"] .engagement-cta-email {
    color: var(--ink);
  }

html[data-theme="dark"] .post-related-title {
    color: var(--text-faint);
  }

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    transition: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    mix-blend-mode: normal !important;
  }

  html,
  body {
    background: #fff !important;
    font-size: 11pt;
    line-height: 1.55;
  }

  body::before,
  .skip-link,
  .site-header,
  .theme-toggle,
  .language-toggle,
  .hero-marker,
  .hero-scroll,
  .focus-strip,
  .home-notes,
  .engagement-memo,
  .engagement-cta-line,
  .home-notes-cta,
  .post-related,
  .post-footer,
  .site-footer,
  .blog-cta,
  .not-found-glyph {
    display: none !important;
  }

  main,
  .post-main,
  .blog-main,
  .about-main {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .post-header {
    margin-bottom: 18pt;
    page-break-after: avoid;
  }

  .post-mark {
    color: #555 !important;
    font-size: 9pt;
    letter-spacing: 0.08em;
  }

  .post-mark-rule { display: none; }

  .post-title,
  .blog-title,
  .about-title {
    color: #000 !important;
    font-size: 22pt;
    line-height: 1.15;
    page-break-after: avoid;
  }

  .post-dek,
  .blog-dek,
  .about-dek {
    color: #333 !important;
    font-size: 12pt;
    margin-bottom: 16pt;
    page-break-after: avoid;
  }

  .post-body {
    color: #111 !important;
    font-size: 11pt;
  }

  .post-body h2 {
    font-size: 14pt;
    margin-top: 18pt;
    page-break-after: avoid;
  }

  .post-body h2::before { display: none; }

  .post-body h3 {
    font-size: 12pt;
    margin-top: 14pt;
    page-break-after: avoid;
  }

  .post-body p {
    orphans: 3;
    widows: 3;
  }

  .post-body ul,
  .post-body ol {
    padding-left: 18pt;
  }

  .post-body li::before {
    background: #000 !important;
  }

  .post-body a {
    color: #000 !important;
    text-decoration: underline;
    background: none !important;
  }

  .post-body a[href^="http"]::after {
    content: " (" attr(href) ")";
    color: #666 !important;
    font-size: 9pt;
    word-break: break-all;
  }

  .post-body blockquote {
    border-left: 3pt solid #000;
    color: #000 !important;
    font-style: italic;
    margin: 12pt 0;
    padding-left: 12pt;
  }

  .post-body pre {
    border: 1pt solid #ccc !important;
    background: #f7f7f7 !important;
    color: #111 !important;
    padding: 10pt 12pt;
    font-size: 9pt;
    page-break-inside: avoid;
    white-space: pre-wrap;
    word-break: break-word;
  }

  .post-body code {
    background: #f0f0f0 !important;
    color: #111 !important;
    padding: 1pt 3pt;
    font-size: 9.5pt;
  }

  @page {
    margin: 18mm 16mm 20mm;
  }

  @page :first {
    margin-top: 22mm;
  }
}
