*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
}
:root {
  --ink: #1a1a18;
  --ink-2: #4a4a46;
  --ink-3: #8a8a84;
  --surface: #f7f5f0;
  --surface-2: #eeece6;
  --surface-3: #e4e1d8;
  --accent: #1a4a2e;
  --accent-light: #e8f0eb;
  --accent-2: #8b3a0f;
  --accent-2-light: #f5ede7;
  --blue: #1a3a5c;
  --blue-light: #e6eef5;
  --rule: #d4d0c5;
  --mono: "DM Mono", monospace;
  --serif: "Fraunces", Georgia, serif;
}
body {
  font-family: var(--mono);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 60px) clamp(20px, 5vw, 48px)
    clamp(64px, 12vw, 120px);
  overflow-x: hidden;
}
img,
video {
  max-width: 100%;
  height: auto;
}
.cover {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 48px;
  margin-bottom: 56px;
}
.cover-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.cover-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 3.375rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 8px;
}
.cover-title em {
  font-style: italic;
  color: var(--accent);
}
.cover-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 16px;
}
.cover-lede {
  margin-top: 28px;
  margin-bottom: 0;
  max-width: 42rem;
}

.cover-meta {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 20px;
  border-right: 1px solid var(--rule);
  margin-right: 20px;
}
.meta-item:last-child {
  border-right: none;
  margin-right: 0;
}
.meta-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.meta-value {
  font-size: clamp(1.25rem, 4.5vw, 1.625rem);
  font-family: var(--serif);
  font-weight: 600;
}
.meta-value.green {
  color: var(--accent);
}
.meta-value.rust {
  color: var(--accent-2);
}
.meta-value.blue {
  color: var(--blue);
}
section {
  margin-bottom: 64px;
}
.section-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 4.5vw, 1.75rem);
  font-weight: 300;
  margin-bottom: 20px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.prose {
  color: var(--ink-2);
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 32px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.chart-wrap {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: clamp(16px, 4vw, 24px);
  margin-bottom: 24px;
}
.chart-box {
  position: relative;
  width: 100%;
}
.chart-box--lg {
  height: clamp(200px, 48vw, 280px);
}
.chart-box--md {
  height: clamp(200px, 58vw, 240px);
}
.chart-title {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 32px;
}
.stat {
  background: white;
  padding: 20px;
}
.stat-n {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 600;
  line-height: 1;
}
.stat-n.green {
  color: var(--accent);
}
.stat-n.rust {
  color: var(--accent-2);
}
.stat-n.blue {
  color: var(--blue);
}
.stat-label {
  font-size: 10px;
  color: var(--ink-3);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.month-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
.month-cell {
  background: white;
  padding: 20px 24px;
}
.month-cell.hi {
  background: #fdfcfb;
}
.month-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 12px;
}
.month-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}
.month-commits {
  font-size: 11px;
  color: var(--ink-3);
}
.month-bar {
  height: 3px;
  background: var(--surface-3);
  border-radius: 2px;
  margin-bottom: 12px;
  overflow: hidden;
}
.mbar {
  height: 100%;
  border-radius: 2px;
}
.mbar.tx {
  background: var(--accent);
}
.mbar.ps {
  background: var(--accent-2);
}
.mbar.dual {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
}
.month-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}
.tag.tx {
  background: var(--accent-light);
  color: var(--accent);
}
.tag.ps {
  background: var(--accent-2-light);
  color: var(--accent-2);
}
.tag.sc {
  background: var(--blue-light);
  color: var(--blue);
}
.tag.wr {
  background: var(--surface-2);
  color: var(--ink-2);
}
.tmark {
  display: inline-block;
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--surface-2);
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 8px;
}
.repo-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 12px;
}
.repo-table th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--rule);
  padding: 8px 12px 8px 0;
  font-weight: 400;
}
.repo-table td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--surface-2);
  color: var(--ink-2);
  vertical-align: top;
}
.repo-table td:first-child {
  color: var(--ink);
  font-weight: 500;
}
.rn {
  font-family: var(--mono);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.pill {
  display: inline-block;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 4px;
}
.pill.be {
  background: #f0f4f0;
  color: #2a5a3a;
}
.pill.fe {
  background: #f0f0f5;
  color: #2a2a6a;
}
.pill.sc {
  background: #f0f4f8;
  color: #1a3a5c;
}
.pill.fs {
  background: #f5f0f0;
  color: #5a2a1a;
}
.pill.inf {
  background: #f5f5f0;
  color: #4a4a20;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.tool-card {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 20px;
}
.tool-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.tool-desc {
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.7;
}
.hbox {
  background: white;
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  margin-bottom: 16px;
  border-radius: 0 4px 4px 0;
}
.hbox.rust {
  border-left-color: var(--accent-2);
}
.hbox.blue {
  border-left-color: var(--blue);
}
.hbox.gray {
  border-left-color: var(--ink-3);
}
.htitle {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.htext {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.7;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 12px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--ink-3);
}
.ldot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.footer {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 10px;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .cover-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 8px;
  }
  .meta-item {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 4px;
  }
  .meta-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .three-col {
    grid-template-columns: 1fr;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  section {
    margin-bottom: 48px;
  }
}

@media (max-width: 720px) {
  .month-grid {
    grid-template-columns: 1fr;
  }
  .month-cell {
    padding: 16px 18px;
  }
  .live-links {
    grid-template-columns: 1fr;
  }
  .live-link {
    align-items: flex-start;
  }
  .live-sub {
    flex-basis: 100%;
    margin-left: 0;
    margin-top: 4px;
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .cover-meta {
    grid-template-columns: 1fr;
  }
  .stats-row {
    grid-template-columns: 1fr;
  }
  .stat {
    padding: 16px;
  }
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .repo-table {
    font-size: 11px;
  }
  .repo-table th,
  .repo-table td {
    padding-right: 10px;
  }
  .sdk-stat {
    padding: 14px 12px;
  }
  .contact-links li:has(a.contact-resume-btn) {
    margin-left: 0;
    width: 100%;
    flex-basis: 100%;
  }
  .contact-links li:has(a.contact-resume-btn) a.contact-resume-btn {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .site-nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .chart-box--donut {
    height: clamp(260px, 78vw, 360px);
  }
}
/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 8px;
}
.tl-item {
  display: flex;
  gap: 24px;
  padding-bottom: 40px;
  position: relative;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 16px;
  bottom: 0;
  width: 1px;
  background: var(--rule);
}
.tl-item:last-child::before {
  display: none;
}
.tl-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  border: 2px solid white;
  box-shadow: 0 0 0 1px var(--rule);
}
.tl-dot.green {
  background: var(--accent);
}
.tl-dot.rust {
  background: var(--accent-2);
}
.tl-dot.blue {
  background: var(--blue);
}
.tl-dot.gray {
  background: var(--ink-3);
}
.tl-content {
  flex: 1;
}
.tl-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.tl-org {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.tl-link {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
}
.tl-link a {
  color: var(--accent-2);
  text-decoration: none;
}
.tl-link a:hover {
  text-decoration: underline;
}
.tl-date {
  font-size: 11px;
  color: var(--ink-3);
}
.tl-role {
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.tl-desc {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 10px;
}
.tl-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tl-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--surface-2);
  color: var(--ink-2);
}
a.tl-tag {
  text-decoration: none;
  color: inherit;
}
a.tl-tag:hover {
  background: var(--surface-3);
  color: var(--ink);
}

/* Before/After */
.before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 28px;
  margin-bottom: 24px;
}
.ba-col {
}
.ba-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.ba-text {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.75;
}
.ba-arrow {
  font-size: 24px;
  color: var(--rule);
  font-family: var(--mono);
}

/* Live links */
.live-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.live-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 16px 20px;
  text-decoration: none;
  transition: border-color 0.15s;
  min-width: 0;
}
.live-link:hover {
  border-color: var(--accent-2);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}
.live-label {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}
.live-sub {
  font-size: 11px;
  color: var(--ink-3);
  margin-left: auto;
  flex-shrink: 0;
  overflow-wrap: anywhere;
}

/* SDK card */
.sdk-card {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 28px;
}
.sdk-card > .sdk-desc:last-child {
  margin-bottom: 0;
}
.sdk-section-title {
  font-family: var(--serif);
  font-size: clamp(1rem, 3vw, 1.125rem);
  font-weight: 600;
  color: var(--ink);
  margin: 36px 0 18px;
}
.sdk-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.sdk-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.sdk-sub {
  font-size: 11px;
  color: var(--ink-3);
}
.sdk-npm {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  background: #cc3534;
  color: white;
  padding: 4px 10px;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.sdk-desc {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 20px;
}
.sdk-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
.sdk-stat {
  background: var(--surface);
  padding: 12px 16px;
}
.sdk-n {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  word-break: break-all;
}
.sdk-label {
  display: block;
  font-size: 10px;
  color: var(--ink-3);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Stack section */
.stack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* Overrides must follow base .before-after / .sdk-stats / .stack-grid or later rules win */
@media (max-width: 900px) {
  .before-after {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: clamp(18px, 4vw, 24px);
    text-align: left;
    align-items: stretch;
  }
  .ba-arrow {
    justify-self: center;
    transform: rotate(90deg);
    margin: 4px 0;
  }
  .sdk-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stack-group {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 16px 20px;
}
.sg-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.sg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.stag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 2px;
  background: var(--surface-2);
  color: var(--ink-2);
}
.stag-link {
  text-decoration: none;
  background: var(--accent-light);
  color: var(--accent);
}
.stag-link:hover {
  text-decoration: underline;
}

/* Inline link */
.inline-link {
  color: var(--accent-2);
  text-decoration: none;
}
.inline-link:hover {
  text-decoration: underline;
}

/* Site navigation */
.site-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 24px;
}
.nav-brand {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.nav-brand:hover {
  color: var(--accent);
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-links a[aria-current="page"] {
  color: var(--accent);
  font-weight: 500;
}

.contact-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  margin-top: 20px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  box-shadow: 0 2px 14px rgba(26, 26, 24, 0.07);
}
.contact-intro {
  max-width: 40rem;
  min-width: 0;
}
.contact-label {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-transform: none;
  display: block;
}
.contact-blurb {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-2);
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 10px;
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--surface-2);
  width: 100%;
  min-width: 0;
}
.contact-links li {
  display: inline-flex;
  align-items: center;
}
.contact-links li:has(a.contact-resume-btn) {
  margin-left: auto;
}
.contact-links li:not(:last-child)::after {
  content: "";
  display: block;
  width: 1px;
  height: 14px;
  margin-left: 10px;
  background: var(--rule);
  align-self: center;
}
.contact-links a {
  font-size: 13px;
  font-family: var(--mono);
  font-weight: 500;
  color: var(--accent-2);
  text-decoration: none;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
.contact-links a[href^="mailto:"] {
  color: var(--accent);
  font-weight: 600;
}
.contact-links a:hover {
  text-decoration: underline;
}
.contact-links a.contact-resume-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(26, 74, 46, 0.35);
}
.contact-links a.contact-resume-btn:hover {
  background: #143d26;
  color: #fff;
  text-decoration: none;
}

.cover--solo {
  margin-bottom: 48px;
}

.page-intro {
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
.page-intro .section-title {
  margin-bottom: 16px;
}
.page-intro .prose {
  margin-bottom: 0;
}

.case-section {
  margin-bottom: 64px;
}
.case-shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
  margin: 28px 0 36px;
}
.shot {
  margin: 0;
}
.shot-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--rule);
  background: var(--surface-2);
}
.shot-placeholder {
  aspect-ratio: 16 / 10;
  width: 100%;
  background: linear-gradient(
    145deg,
    var(--surface-2) 0%,
    var(--surface-3) 100%
  );
  border: 1px dashed var(--rule);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 18px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.5;
}
.shot-hint {
  display: block;
  margin-top: 8px;
  font-size: 9px;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  opacity: 0.9;
}
.shot-caption {
  margin-top: 10px;
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.5;
}
.case-section--more {
  padding-top: 8px;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
  margin-bottom: 8px;
}
.ps-step {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  align-items: flex-start;
}
.ps-step:first-child {
  padding-top: 12px;
}
.ps-step:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}
.ps-n {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: 2px;
}
.ps-body {
  flex: 1;
  min-width: 0;
}
.ps-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.ps-desc {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.75;
}
.ps-desc code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--surface-2);
  padding: 2px 7px;
  border-radius: 2px;
  color: var(--ink);
  border: 1px solid var(--surface-3);
}

/* Inline code in narrative blocks */
.prose code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--surface-2);
  padding: 2px 7px;
  border-radius: 2px;
  color: var(--ink);
  border: 1px solid var(--surface-3);
}

/* Report: TX donut chart uses chart-box--md — match donut vertical space */
.chart-wrap:has(#txBreakdown) .chart-box--md {
  height: clamp(200px, 58vw, 240px);
}

/* Wide repo table: horizontal scroll without extra wrapper */
section:has(> table.repo-table) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

@media (max-width: 640px) {
  .chart-wrap:has(#txBreakdown) .chart-box--md {
    height: clamp(260px, 78vw, 360px);
  }
  .tl-header {
    flex-wrap: wrap;
    gap: 6px 12px;
  }
}
