/* ============================================================
   Design tokens
   ============================================================ */
:root {
  /* Palette — warm bone ground, near-black ink, rich green accent */
  --bg: #F6F3EA;
  --bg-alt: #EDE8DA;
  --card: #FBF9F3;
  --ink: #1C1B17;
  --ink-soft: #4A483E;
  --ink-faint: #6C685C;
  --accent: #146B34;
  --accent-bright: #12753A;
  --accent-soft: #DEEBDD;
  --line: #DAD3BF;
  --line-strong: #C7BE9F;

  /* Type */
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Spacing scale */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --space-7: 144px;

  --max-width: 1180px;
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

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

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 234, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__name {
  font-family: var(--font-display);
  font-size: 22px;
  text-decoration: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav__links li:not(:last-child)::after {
  content: "✦";
  font-size: 9px;
  color: var(--accent);
}

.nav__links a {
  text-decoration: none;
  font-size: 15px;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--ink);
}

.nav__links a.is-active {
  font-weight: 700;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.25s ease;
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
  right: 0;
}

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.nav__toggle svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   Buttons / links
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--ink);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

.text-link {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.text-link:hover {
  text-decoration-color: var(--accent);
}

/* ============================================================
   Section rhythm
   ============================================================ */
section {
  padding: var(--space-6) 0;
}

.section-label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--space-2);
  display: block;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: var(--space-5) 0 var(--space-4);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.footer h2 {
  font-size: clamp(36px, 5vw, 64px);
}

.footer__links {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding-top: var(--space-7);
  padding-bottom: var(--space-6);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(20, 107, 52, 0.16) 1px, transparent 1px),
    linear-gradient(to right, rgba(20, 107, 52, 0.16) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27180%27%20height%3D%27180%27%3E%3Cfilter%20id%3D%27n%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%270.85%27%20numOctaves%3D%273%27%20stitchTiles%3D%27stitch%27%2F%3E%3CfeColorMatrix%20type%3D%27matrix%27%20values%3D%270%200%200%200%200%20%200%200%200%200%200%20%200%200%200%200%200%20%200%200%200%200.05%200%27%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url%28%23n%29%27%2F%3E%3C%2Fsvg%3E");
  background-size: 120px 120px, 120px 120px, 180px 180px;
  background-position: 0 0, 0 0, 0 0;
  background-blend-mode: normal, normal, multiply;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 8.5vw, 112px);
  color: var(--accent);
  margin-top: var(--space-3);
  max-width: 18ch;
}

.hero__title em {
  display: block;
  font-style: normal;
  font-weight: 400;
}

.hero__subtitle {
  max-width: 46ch;
  font-size: 19px;
  color: var(--ink-soft);
  margin-top: var(--space-3);
  position: relative;
}

.hero__subtitle strong {
  color: var(--ink);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  flex-wrap: wrap;
  position: relative;
}

/* Corner-tick frame around the primary hero CTA */
.tick-frame {
  position: relative;
  display: inline-block;
  padding: 10px;
}

.tick-frame__mark {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--accent);
}

.tick-frame__mark--tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.tick-frame__mark--tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.tick-frame__mark--bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.tick-frame__mark--br { bottom: 0; right: 0; border-left: none; border-top: none; }

.tick-frame .btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  border-radius: var(--radius);
}

.tick-frame .btn--primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
}

/* ============================================================
   Principles strip
   ============================================================ */
.principles {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}

.principles__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.principles__grid h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

.principles__grid p {
  color: var(--ink-soft);
  font-size: 15px;
}

/* ============================================================
   Section heading
   ============================================================ */
.section-heading {
  font-size: clamp(32px, 4.5vw, 52px);
  margin-bottom: var(--space-5);
}

/* ============================================================
   Project cards
   ============================================================ */
.project-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.project-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-4);
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: var(--space-4);
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.project-card--reverse {
  grid-template-columns: 1fr 1.1fr;
}

.project-card--reverse .project-card__media {
  order: 1;
}

.project-card--reverse .project-card__body {
  order: 2;
}

.project-card__media {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.project-card__title {
  font-size: clamp(28px, 3vw, 40px);
  margin-top: 12px;
}

.project-card__desc {
  color: var(--ink-soft);
  margin-top: 12px;
  max-width: 42ch;
}

.project-card__cta {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: 15px;
  font-weight: 600;
}

/* ============================================================
   About
   ============================================================ */
.about {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-5);
  align-items: start;
}

.about__heading {
  font-size: clamp(32px, 4vw, 48px);
}

.about__copy {
  font-size: 18px;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* ============================================================
   Case study page
   ============================================================ */
.cs-hero {
  padding-top: var(--space-6);
  padding-bottom: var(--space-5);
}

.cs-hero__back {
  font-size: 14px;
  color: var(--ink-faint);
  text-decoration: none;
}

.cs-hero__title {
  font-size: clamp(40px, 7vw, 84px);
  margin-top: var(--space-2);
  max-width: 20ch;
}

.cs-hero__dek {
  max-width: 56ch;
  font-size: 19px;
  color: var(--ink-soft);
  margin-top: var(--space-3);
}

.cs-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: var(--space-5);
}

.cs-meta dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.cs-meta dd {
  margin: 0;
  font-size: 16px;
}

.cs-section {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--line);
}

.cs-section:last-of-type {
  border-bottom: none;
}

.cs-section__grid {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: var(--space-5);
  align-items: start;
}

.cs-section__label {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.cs-section__heading {
  font-size: clamp(26px, 3vw, 36px);
  margin-top: 8px;
}

.cs-section__body {
  color: var(--ink-soft);
  font-size: 17px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.cs-section__body ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.cs-media-grid .placeholder {
  aspect-ratio: 3 / 4;
}

.cs-media-full .placeholder {
  aspect-ratio: 16 / 9;
}

.cs-next {
  padding: var(--space-6) 0;
}

.cs-next__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  transition: border-color 0.2s ease;
}

.cs-next__link:hover {
  border-color: var(--accent);
}

.cs-next__title {
  font-size: clamp(24px, 3vw, 34px);
}

/* ============================================================
   Placeholder media block
   ============================================================ */
.placeholder {
  background: repeating-linear-gradient(
    135deg,
    var(--bg-alt),
    var(--bg-alt) 10px,
    var(--card) 10px,
    var(--card) 20px
  );
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-faint);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: var(--space-3);
  min-height: 220px;
}

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 780px) {
  .nav__links {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    padding: var(--space-4) var(--space-3);
    gap: var(--space-3);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav__links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav__links a {
    font-size: 20px;
  }

  .nav__toggle {
    display: inline-flex;
  }

  section {
    padding: var(--space-5) 0;
  }

  .footer__top {
    align-items: flex-start;
  }

  .principles__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }

  .project-card,
  .project-card--reverse {
    grid-template-columns: 1fr;
  }

  .project-card--reverse .project-card__media {
    order: 0;
  }

  .about__grid,
  .cs-section__grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .cs-meta {
    grid-template-columns: 1fr 1fr;
  }

  .cs-media-grid {
    grid-template-columns: 1fr;
  }

  .cs-next__link {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .principles__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Case study extensions
   Added for the real case studies. Everything above is the
   original portfolio stylesheet, unchanged.
   ============================================================ */

/* Figures --------------------------------------------------- */
.figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.figure img {
  width: 100%;
  height: auto;
}

.figure figcaption {
  font-size: 13px;
  color: var(--ink-faint);
  padding: 12px var(--space-2);
  border-top: 1px solid var(--line);
  line-height: 1.45;
}

.figure--plain {
  border: none;
  background: none;
}

.figure--plain figcaption {
  border-top: none;
  padding-left: 0;
  padding-right: 0;
}

/* Embedded live prototypes ---------------------------------- */
.proto {
  margin: var(--space-3) 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-alt);
  overflow: hidden;
}

.proto__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 10px var(--space-2);
  border-bottom: 1px solid var(--line);
  background: var(--card);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.proto__bar strong {
  color: var(--accent);
  font-weight: 600;
}

.proto iframe {
  display: block;
  width: 100%;
  border: 0;
  background: var(--card);
}

.proto--phone iframe { height: 940px; }
.proto--wide iframe  { height: 900px; }

.proto__note {
  font-size: 13px;
  color: var(--ink-faint);
  padding: 10px var(--space-2);
  border-top: 1px solid var(--line);
  background: var(--card);
}

/* Stat row -------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
  margin: var(--space-3) 0 0;
}

.stat__num {
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 1;
  color: var(--accent);
  font-weight: 400;
}

.stat__label {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.stat__src {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 8px;
}

/* Pull quote ------------------------------------------------ */
.pullquote {
  margin: var(--space-3) 0;
  padding-left: var(--space-3);
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-style: italic;
  line-height: 1.3;
  color: var(--ink);
}

.pullquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 14px;
  color: var(--ink-faint);
}

/* Outcome band ---------------------------------------------- */
.outcome {
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: var(--space-3);
  margin: var(--space-3) 0 0;
}

.outcome__label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.outcome p { color: var(--ink); }

.outcome ul {
  margin: 12px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Before / after -------------------------------------------- */
.ba {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: var(--space-3) 0 0;
}

.ba__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}

.ba__cell {
  background: var(--card);
  padding: 14px var(--space-2);
  font-size: 15px;
}

.ba__cell--before { color: var(--ink-faint); }
.ba__cell--after  { color: var(--ink); }

.ba__head {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--bg-alt);
}

/* Data table ------------------------------------------------ */
.table-wrap { overflow-x: auto; margin: var(--space-3) 0 0; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 520px;
}

.table th,
.table td {
  text-align: left;
  padding: 12px var(--space-2);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom-color: var(--line-strong);
}

.table td strong { color: var(--ink); }

/* Numbered cards -------------------------------------------- */
.steps {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
}

.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: var(--space-3);
}

.step__n {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step h4 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  margin: 8px 0 8px;
  line-height: 1.15;
}

.step p { color: var(--ink-soft); font-size: 15px; }

.steps--2 { grid-template-columns: 1fr 1fr; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }

/* Details / disclosure -------------------------------------- */
.disclosure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  margin: var(--space-3) 0 0;
}

.disclosure > summary {
  cursor: pointer;
  padding: 14px var(--space-3);
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.disclosure > summary::-webkit-details-marker { display: none; }

.disclosure > summary::before {
  content: "+";
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}

.disclosure[open] > summary::before { content: "−"; }

.disclosure > summary:hover { color: var(--accent); }

.disclosure__body {
  padding: 0 var(--space-3) var(--space-3);
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
  color: var(--ink-soft);
  font-size: 16px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Source list ----------------------------------------------- */
.sources {
  font-size: 14px;
  color: var(--ink-faint);
  line-height: 1.55;
  margin: var(--space-3) 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Case study hero eyebrow spacing --------------------------- */
.cs-hero__eyebrow { display: inline-flex; margin-top: var(--space-3); }

/* Section anchor offset for the sticky nav ------------------ */
.cs-section { scroll-margin-top: 88px; }

/* Responsive additions -------------------------------------- */
@media (max-width: 780px) {
  .steps--2,
  .steps--3 { grid-template-columns: 1fr; }
  .ba__row  { grid-template-columns: 1fr; }
  .ba__head { display: none; }
  .proto--phone iframe { height: 780px; }
  .proto--wide iframe  { height: 620px; }
  .stat__num { font-size: 36px; }
}

/* Project card media: fill the 4:3 cell the placeholder used to occupy */
.project-card__media {
  overflow: hidden;
  border-radius: var(--radius);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Fixed-width prototypes, scaled to fit by script.js */
.proto__fit {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--card);
}

.proto__fit iframe {
  display: block;
  border: 0;
}

/* Full-width block for the wide desktop prototypes, outside the reading column */
.cs-wide {
  margin-top: var(--space-4);
}

/* Grid/flex blowout guard.
   A 1440px prototype iframe would otherwise force its grid column wider than
   its fr share, which both breaks the layout and makes the fit-to-width
   measurement read the wrong number. */
.cs-section__grid > *,
.cs-section__body,
.proto,
.proto__fit {
  min-width: 0;
}
