.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  align-items: center;
  gap: clamp(2rem, 6vw, 4.5rem);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  border-bottom: 1px solid var(--ink);
}

.kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.35rem;
  padding: .4rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--meta);
  font-size: .8125rem;
  font-weight: 500;
}

.kicker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

.case-title {
  margin-bottom: 1.25rem;
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 5.25rem);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.case-lead {
  max-width: 65ch;
  margin-bottom: 2rem;
  color: var(--reading-color);
  font-family: var(--baskervville);
  font-size: clamp(1.1875rem, 2.2vw, 1.25rem);
  line-height: 1.7;
  font-variant-numeric: lining-nums;
}

.case-hero .facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

.case-hero .facts dt { color: var(--meta); font-size: .8125rem; font-weight: 500; }
.case-hero .facts dd { margin-top: .3rem; font-size: .9375rem; }

.video-figure {
  width: 100%;
  max-width: 280px;
  margin: 0;
  justify-self: end;
}

.video-card {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0b0b;
}

.video-card video,
.video-card .video-poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card video { z-index: 1; opacity: 0; }
.video-card.is-playing video { opacity: 1; }
.video-card .video-poster { z-index: 0; }

.video-caption {
  padding: .7rem .15rem 0;
  color: var(--meta);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.4;
}

.sec {
  display: grid;
  grid-template-columns: minmax(130px, 170px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  margin-top: var(--section);
  padding-top: 1.1rem;
  border-top: 1px solid var(--ink);
}

.sec-label {
  color: var(--meta);
  font-size: .8125rem;
  font-weight: 500;
}

.sec-label b { margin-right: .5rem; color: var(--ink); font-weight: 600; }
.sec > div, .feature-showcase > div { min-width: 0; }

.sec h2 {
  max-width: 24em;
  margin-bottom: 1.15rem;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.sec p {
  max-width: 65ch;
  margin-bottom: 1rem;
  color: var(--reading-color);
  font-family: var(--baskervville);
  font-size: 1.1875rem;
  line-height: 1.7;
  font-variant-numeric: lining-nums;
}

.sec p strong { color: var(--ink); font-weight: 600; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.static-card {
  min-width: 0;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.static-card small {
  display: block;
  margin-bottom: .45rem;
  color: var(--meta);
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 500;
}

.static-card h3 { margin-bottom: .6rem; font-size: 1rem; font-weight: 700; }
.static-card p { margin: 0; color: var(--reading-color); font-family: var(--baskervville); font-size: 1.125rem; line-height: 1.65; font-variant-numeric: lining-nums; }

.static-card .gap-row {
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: .875rem;
}

.static-card .gap-row b { color: var(--ink); }

.feature-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .88fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 1.5rem;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--plate);
}

.screen-figure { width: 100%; max-width: 360px; margin: 0 auto; }

.screen-figure img,
.flow-card img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.screen-figure figcaption,
.flow-card figcaption {
  padding: .7rem .15rem 0;
  color: var(--meta);
  font-family: var(--sans);
  font-size: .8125rem;
  line-height: 1.45;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  list-style: none;
  counter-reset: steps;
}

.steps-list li {
  position: relative;
  padding-left: 2.25rem;
  color: var(--reading-color);
  font-family: var(--baskervville);
  font-size: 1.125rem;
  line-height: 1.7;
  font-variant-numeric: lining-nums;
  counter-increment: steps;
}

.steps-list li::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: flex;
  width: 1.5rem;
  height: 1.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  content: counter(steps);
  font-size: .75rem;
  font-weight: 600;
}

.steps-list li strong { color: var(--ink); font-weight: 600; }
.how-it-works { margin-top: clamp(2rem, 5vw, 3.5rem); }
.how-it-works h3 { margin-bottom: 1rem; font-size: 1.125rem; font-weight: 700; }

.flow-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 2px .8rem;
  scrollbar-color: var(--meta) transparent;
  scrollbar-width: thin;
}

.flow-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.flow-card { min-width: 0; }
.flow-card h4 { margin: 0 0 .65rem; font-size: .9375rem; font-weight: 600; }
.flow-card--hidden { display: none; }

.supporting-figure { max-width: 420px; margin: 1.5rem 0 0; }
.supporting-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.supporting-figure figcaption { padding: .7rem .15rem 0; color: var(--text-2); font-family: var(--sans); font-size: .875rem; line-height: 1.5; }

.comparison-table-wrap {
  width: 100%;
  min-width: 0;
  margin-bottom: 2rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scrollbar-color: var(--meta) transparent;
  scrollbar-width: thin;
}

.comparison-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-family: var(--baskervville); font-size: 17px; line-height: 1.6; font-variant-numeric: lining-nums; }
.comparison-table tr > :first-child { width: 25%; }
.comparison-table th,
.comparison-table td { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.comparison-table th { color: var(--meta); font-family: var(--sans); font-size: .8125rem; font-weight: 600; }
.comparison-table tbody th,
.comparison-table tbody td { vertical-align: baseline; }
.comparison-table tbody th[scope="row"] { color: var(--ink); font-weight: 700; }
.comparison-table td { color: var(--reading-color); }
.comparison-table td:first-child { color: var(--ink); font-weight: 600; }
.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td { border-bottom: 0; }
.comparison-table .chosen-option { background: var(--plate); }
.comparison-table .chosen-option th { color: var(--ink); }

.sec .trust-list,
.sec .pipeline-list {
  display: flex;
  max-width: 42em;
  flex-direction: column;
  gap: .9rem;
  max-width: 65ch;
  color: var(--reading-color);
  font-family: var(--baskervville);
  font-size: 1.1875rem;
  line-height: 1.7;
  font-variant-numeric: lining-nums;
}

.sec .trust-list { list-style: none; }
.sec .pipeline-list { padding-left: 1.35rem; }
.sec .trust-list li,
.sec .pipeline-list li { padding-left: .15rem; }
.sec .trust-list li strong,
.sec .pipeline-list li strong { color: var(--ink); font-weight: 600; }

.next-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: var(--section);
  padding: 1.1rem 0 3rem;
  border-top: 1px solid var(--ink);
}

.next-bar h3 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.8vw, 2.375rem);
  font-weight: 500;
  line-height: 1.15;
}

.afb {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: 0 1.35rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.afb:hover { background: var(--paper); color: var(--ink); }
.afb-label { color: inherit; }
.afb-icon-zone { display: inline-flex; width: 16px; height: 16px; align-items: center; justify-content: center; }
.afb-fill-circle { display: none; }
.afb-arrows { position: relative; display: block; width: 13px; height: 13px; }
.afb-arrows svg { position: absolute; inset: 0; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .2s ease; }
.afb-svg-2 { opacity: 0; transform: translate(-3px, 3px); }
.afb:hover .afb-svg-1 { transform: translate(3px, -3px); }
.afb:hover .afb-svg-2 { opacity: 1; transform: translate(0, 0); }

@media (max-width: 820px) {
  .case-hero { grid-template-columns: minmax(0, 1fr); }
  .case-hero .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .video-figure { justify-self: start; max-width: 260px; }
  .sec { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .feature-showcase { grid-template-columns: minmax(0, 1fr); }
  .screen-figure { max-width: 400px; }
  .flow-row { grid-template-columns: repeat(3, minmax(220px, 1fr)); width: max-content; }
  .flow-card { width: min(66vw, 320px); }

  .comparison-table,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table td { display: block; width: 100%; }

  .comparison-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .comparison-table tbody tr { padding: 1.15rem; border-bottom: 1px solid var(--line); }
  .comparison-table tbody tr:last-child { border-bottom: 0; }
  .comparison-table tr > :first-child { width: 100%; }
  .comparison-table tbody th { display: block; width: 100%; padding: 0 0 .75rem; border-bottom: 0; color: var(--ink); font-size: 1.0625rem; line-height: 1.35; vertical-align: top; }
  .comparison-table tbody td { vertical-align: top; }
  .comparison-table td { padding: .65rem 0; border-bottom: 0; }
  .comparison-table td::before { display: block; margin-bottom: .35rem; color: var(--meta); content: attr(data-label); font-family: var(--sans); font-size: .8125rem; font-weight: 500; }
  .comparison-table .chosen-option { background: var(--plate); }
}

@media (max-width: 520px) {
  .case-hero { gap: 1.5rem; padding-block: 2.5rem; }
  .case-title { font-size: clamp(2.85rem, 14vw, 4rem); margin-bottom: 1rem; }
  .case-lead { margin-bottom: 1.5rem; font-size: 1.125rem; }
  .case-hero .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; padding-top: 1rem; }
  .sec { gap: .6rem; margin-top: clamp(4.5rem, 14vw, 5.5rem); }
  .sec h2 { margin-bottom: .85rem; font-size: clamp(1.5rem, 7vw, 1.9rem); }
  .sec p,
  .sec .trust-list,
  .sec .pipeline-list { font-size: 1.125rem; line-height: 1.7; }
  .feature-showcase { padding: .85rem; }
  .static-card { padding: 1.2rem; }
  .grid-3 { gap: .7rem; margin-top: 1.2rem; }
  .next-bar { align-items: flex-start; gap: 1rem; margin-top: clamp(4.5rem, 14vw, 5.5rem); padding-bottom: 2.5rem; }
  .next-bar h3 { font-size: clamp(1.55rem, 7vw, 2rem); }
  .next-bar .afb { max-width: 100%; white-space: normal; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .afb,
  .afb-arrows svg { transition-duration: .01ms; }
}
