:root {
  --brand: #111111;
  --accent: #111111;
  --bg: #fafafa;
  --surface: #ffffff;
  --border: #ececec;
  --text: #111111;
  --text-muted: #6b6b6b;
  --danger: #cf3a26;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.08), 0 20px 48px rgba(0, 0, 0, 0.10);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --space: 8px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-osmoothing: grayscale;
}

/* ---------- App shell ---------- */
.app {
  display: flex;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  width: 248px;
  flex: 0 0 248px;
  display: flex;
  flex-direction: column;
  padding: 26px 18px 20px;
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.sidebar-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 22px;
  width: auto;
  display: block;
}

.sidebar-tagline {
  margin: 0;
  padding-left: 11px;
  border-left: 1px solid var(--border);
  font-size: 12.5px;
  line-height: 1.2;
  color: var(--text-muted);
  font-weight: 500;
}

.nav {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Burger button: hidden on desktop, shown in the mobile top bar. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle .icon-close { display: none; }

.nav-label {
  padding: 0 10px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a0a0a0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: #444;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-item svg { color: #8a8a8a; transition: color 0.15s ease; flex: 0 0 auto; }

.nav-item:hover {
  background: #f4f4f4;
  color: var(--text);
}

.nav-item.is-active {
  background: var(--brand);
  color: #fff;
}

.nav-item.is-active svg { color: #fff; }

.sidebar-foot {
  margin-top: auto;
  padding: 0 10px;
  font-size: 12px;
  color: #a0a0a0;
}

/* ---------- Content + pages ---------- */
.content {
  flex: 1 1 auto;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 56px clamp(24px, 5vw, 72px) 72px;
}

.page-head {
  max-width: 760px;
  margin: 0 0 40px;
}

.page-head h1 {
  margin: 0 0 14px;
  font-size: 44px;
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.page-sub {
  margin: 0;
  max-width: 560px;
  font-size: 17px;
  color: var(--text-muted);
}

.page-sub--wide {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.6;
}

/* ---------- Introduction ---------- */
.intro-head { margin-bottom: 28px; }
.intro-head h1 { margin-top: 12px; }

.intro-copy {
  max-width: 660px;
  margin-bottom: 48px;
}

.intro-copy p {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.62;
  color: #3a3a3a;
}

.intro-copy p:first-child {
  font-size: 20px;
  color: var(--text);
}

.intro-copy strong { font-weight: 600; color: var(--text); }

.next-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1000px;
}

.next-card {
  display: flex;
  flex-direction: column;
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.next-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #e0e0e0;
}

.next-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #a0a0a0;
}

.next-title {
  margin: 10px 0 4px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.next-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.next-arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.next-arrow svg { transition: transform 0.2s ease; }
.next-card:hover .next-arrow svg { transform: translateX(3px); }

/* Trusted-by client logos */
.logos {
  margin: 4px 0 46px;
}

.logos-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a0a0a0;
  margin-bottom: 22px;
}

/* Auto-scrolling marquee with a fade on both edges. */
.logos-viewport {
  position: relative;
  width: 100%;
  max-width: 880px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 11%, #000 89%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 11%, #000 89%, transparent 100%);
}

.logos-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: logos-scroll 40s linear infinite;
}

.logos-viewport:hover .logos-track {
  animation-play-state: paused;
}

.logos-track img {
  height: 30px;
  width: auto;
  max-width: 150px;
  margin-right: 58px;
  object-fit: contain;
  flex: 0 0 auto;
  /* Source logos are mixed (white, black, colour), so flatten to one muted tone. */
  filter: brightness(0) saturate(0);
  opacity: 0.46;
}

@keyframes logos-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logos-track { animation: none; }
}

/* ---------- Portfolio grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---------- Card ---------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #e0e0e0;
}

.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f2f2f2;
  border-bottom: 1px solid var(--border);
}

.card-img,
.card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

.card-img {
  transition: transform 0.3s ease;
}

.card:hover .card-img {
  transform: scale(1.02);
}

/* Video sits on top of the screenshot; fades in only once it's truly playing. */
.card-video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card.is-playing .card-video {
  opacity: 1;
}

/* Little "Preview" pill, top-right of the media. */
.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  background: rgba(17, 17, 17, 0.62);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 2;
}

.card:hover .card-badge,
.card:focus-visible .card-badge {
  opacity: 1;
  transform: translateY(0);
}

.card.is-playing .card-badge {
  background: rgba(17, 17, 17, 0.78);
}

.card-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card-desc {
  margin: 0 0 18px;
  font-size: 14.5px;
  color: var(--text-muted);
  flex: 1;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.card-cta svg {
  transition: transform 0.2s ease;
}

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

/* ---------- Services bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(208px, auto);
  grid-auto-flow: row dense;
  gap: 18px;
  max-width: 1080px;
}

.bento-item {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 26px 24px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.bento-item::after {
  /* faint accent corner so the bento reads as designed, not flat */
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at center, rgba(17, 17, 17, 0.05), transparent 70%);
  pointer-events: none;
}

.bento-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #e0e0e0;
}

.b-wide { grid-column: span 4; }
.b-tall { grid-column: span 2; grid-row: span 2; }
.b-sm   { grid-column: span 2; }

.bento-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #b4b4b4;
  font-variant-numeric: tabular-nums;
}

.bento-body {
  margin-top: 14px;
  flex: 1;
}

.bento-title {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.b-tall .bento-title { font-size: 23px; }

.bento-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.bento-benefits {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.bento-benefits li {
  display: flex;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #3f3f3f;
}

.bento-benefits svg {
  color: var(--brand);
  flex: 0 0 auto;
  margin-top: 1px;
}

.bento-learn {
  margin-top: 22px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.bento-learn svg { transition: transform 0.18s ease; }

.bento-learn:hover {
  border-color: #b9b9b9;
  background: #fafafa;
}

.bento-item:hover .bento-learn svg { transform: translateX(3px); }

/* ---------- Service detail (executive one-pager) ---------- */
#service-detail { max-width: 940px; }

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 30px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.detail-back:hover { color: var(--text); }

.detail-head { max-width: 760px; margin-bottom: 40px; }

.detail-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a0a0a0;
}

.detail-head h1 {
  margin: 12px 0 18px;
  font-size: 40px;
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.detail-lead {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  color: #333;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.detail-what,
.detail-benefits {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
}

.detail-h2 {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.detail-what p {
  margin: 0;
  font-size: 15px;
  line-height: 1.62;
  color: #404040;
}

.detail-outcome {
  margin-top: 22px;
  padding-left: 16px;
  border-left: 2px solid var(--brand);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--text);
}

.detail-outcome span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #a0a0a0;
  margin-bottom: 4px;
}

.detail-benefits ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.detail-benefits li { display: flex; gap: 11px; }

.detail-benefits li svg { color: var(--brand); flex: 0 0 auto; margin-top: 2px; }

.detail-benefits strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.detail-benefits div { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }

.detail-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 4px;
  padding: 28px 34px;
  background: var(--brand);
  border-radius: var(--radius);
}

.detail-cta-text h2 { margin: 0 0 5px; font-size: 22px; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.detail-cta-text p { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, 0.68); }

.cta-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: #fff;
  color: var(--brand);
  border-radius: 11px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cta-btn svg { transition: transform 0.18s ease; }
.cta-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22); }
.cta-btn:hover svg { transform: translateX(3px); }

/* ---------- Case Studies index ---------- */
.case-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1080px;
}

.case-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #e0e0e0;
}

.case-tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.case-card-title {
  margin: 10px 0 8px;
  font-size: 24px;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.case-card-summary {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Classifier chips: which capabilities a case demonstrates */
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.detail-head .case-tags { margin: 22px 0 0; }

.case-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #3f3f3f;
  padding: 5px 11px 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fafafa;
}

.case-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.case-read {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.case-read svg { transition: transform 0.2s ease; }
.case-card:hover .case-read svg { transform: translateX(3px); }

.case-card-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 28px;
  border-left: 1px solid var(--border);
}

.cstat { display: flex; flex-direction: column; gap: 2px; }
.cstat-v { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.cstat-l { font-size: 12.5px; line-height: 1.35; color: var(--text-muted); }

/* ---------- Case detail ---------- */
#case-detail { max-width: 980px; }

.case-section { margin-bottom: 36px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  border-top: 2px solid var(--text);
}

.stat.is-danger { border-top-color: var(--danger); }
.stat-v { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.stat.is-danger .stat-v { color: var(--danger); }
.stat-l { font-size: 13px; line-height: 1.4; color: var(--text-muted); }

.built-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.built-item {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.built-item.is-feature {
  background: var(--brand);
  border-color: var(--brand);
}

.built-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9a9a9a;
  font-variant-numeric: tabular-nums;
}

.built-item.is-feature .built-tag { color: rgba(255, 255, 255, 0.55); }

.built-name {
  margin: 12px 0 7px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.built-item.is-feature .built-name { color: #fff; }

.built-desc { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }
.built-item.is-feature .built-desc { color: rgba(255, 255, 255, 0.7); }

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

.extra-item {
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.extra-item h3 { margin: 0 0 9px; font-size: 16px; font-weight: 600; }
.extra-item p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }

/* Outcome: comparison table */
.case-table {
  width: 100%;
  border-collapse: collapse;
}

.case-table th,
.case-table td {
  text-align: left;
  padding: 16px 18px;
  font-size: 14.5px;
  border-bottom: 1px solid var(--border);
}

.case-table thead th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9a9a9a;
  border-bottom: 1px solid var(--text);
}

.case-table .th-win { color: var(--text); }
.case-table .td-key { font-weight: 600; }
.case-table td:nth-child(2) { color: var(--text-muted); }
.case-table .td-win { font-weight: 600; }

/* Outcome: points */
.outcome-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.outcome-point {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.outcome-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #b4b4b4;
  font-variant-numeric: tabular-nums;
}

.outcome-point h3 { margin: 12px 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.outcome-point p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }

.case-foot {
  margin: 22px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--brand);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(190px, auto); }
  .b-wide { grid-column: span 2; }
  .b-tall { grid-column: span 2; grid-row: span 1; }
  .b-sm   { grid-column: span 1; }
  .detail-grid { grid-template-columns: 1fr; }
  .built-grid { grid-template-columns: repeat(2, 1fr); }
  .outcome-points { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }
}

/* Sidebar collapses to a top bar */
@media (max-width: 760px) {
  .app { flex-direction: column; }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    flex-basis: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .sidebar-top { padding: 0; }
  .sidebar-tagline { display: none; }
  .nav-toggle { display: inline-flex; }
  /* Nav becomes a dropdown panel, toggled by the burger button. */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px 14px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.10);
  }
  .sidebar.nav-open .nav { display: flex; }
  .sidebar.nav-open .nav-toggle .icon-menu { display: none; }
  .sidebar.nav-open .nav-toggle .icon-close { display: inline; }
  .nav-label, .sidebar-foot { display: none; }
  .nav-item { padding: 11px 12px; white-space: nowrap; }
  .content { height: auto; overflow: visible; padding: 36px 20px 56px; }
  .page-head { margin-bottom: 28px; }
  .page-head h1 { font-size: 32px; }
  .page-sub, .page-sub--wide { font-size: 16px; }
  .grid { grid-template-columns: 1fr; gap: 20px; }
  .bento { grid-template-columns: 1fr; }
  .b-wide, .b-tall, .b-sm { grid-column: span 1; grid-row: span 1; }
  .next-cards { grid-template-columns: 1fr; }
  .intro-copy p { font-size: 16px; }
  .intro-copy p:first-child { font-size: 18px; }
  .detail-head h1 { font-size: 30px; }
  .detail-lead { font-size: 17px; }
  .detail-cta { flex-direction: column; align-items: flex-start; padding: 24px; }
  .cta-btn { width: 100%; justify-content: center; }
  .case-card { grid-template-columns: 1fr; gap: 22px; }
  .case-card-stats { flex-direction: row; flex-wrap: wrap; gap: 18px 24px; padding-left: 0; padding-top: 20px; border-left: none; border-top: 1px solid var(--border); }
  .cstat { flex: 1 1 40%; }
  .case-card-title { font-size: 21px; }
  .built-grid { grid-template-columns: 1fr; }
  .extra-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-v { font-size: 28px; }
  .case-table { font-size: 13px; }
  .case-table th, .case-table td { padding: 12px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .card-img, .card-cta svg, .bento-item { transition: none; }
  .card:hover, .bento-item:hover { transform: none; }
  .card:hover .card-img { transform: none; }
}
