:root {
  --bg: #F7F6F3;
  --bg-tint: #EDEBE5;
  --ink: #101010;
  --ink-2: #2A2823;
  --muted: #5A5750;
  --grey: #8A857B;
  --line: #DFDCD5;
  --accent: #DC4E1E;
  --accent-ink: #B23C13;
  --accent-soft: #FBEAE3;
  --dark: #101010;
  --dark-2: #1C1B18;
  --dark-line: #2C2A26;
  --paper: #FFFFFF;
  --max: 1200px;
  --text: 720px;
  --nav-h: 80px;
  --serif: "Archivo", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

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

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

svg { max-width: 100%; }

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--ink); }

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

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  z-index: 200;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.wrap-text { max-width: var(--text); }

.section {
  padding: 120px 0;
}

.section-tint { background: var(--bg-tint); }

.section-dark {
  background: var(--dark);
  color: var(--bg);
}

.eyebrow,
.label,
h2.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 20px;
  line-height: 1.4;
}

.section-dark .eyebrow,
.section-dark .label { color: var(--accent); }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0;
}

.section-dark h2,
.section-dark h3 { color: var(--bg); }

h2 {
  font-size: clamp(32px, 4.4vw, 44px);
  line-height: 1.05;
  margin-bottom: 20px;
  text-wrap: balance;
}

h3 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h3 a {
  color: inherit;
  text-decoration: none;
}

h3 a:hover { color: var(--accent); }

p { margin: 0 0 18px; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 62ch;
}

.section-dark .lede,
.section-dark p { color: #C9C5BB; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 6px;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

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

.btn-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.btn:hover.btn-dot::before { background: var(--bg); }

.micro {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--grey);
}

.cta-block .micro { margin-top: 10px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

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

.section-dark .text-link { color: var(--bg); }
.section-dark .text-link:hover { color: var(--accent); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: padding 0.2s ease, border-color 0.2s ease;
}

.nav.compact { border-bottom-color: var(--line); }

.nav-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  transition: padding 0.2s ease, min-height 0.2s ease;
}

.nav.compact .nav-inner {
  min-height: 60px;
  padding: 10px 0;
}

.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.nav-cta .micro {
  display: none;
}

@media (min-width: 1280px) {
  .nav:not(.compact) .nav-cta .micro { display: block; text-align: right; }
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  margin: 0 auto;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Hero */
.hero {
  padding: 72px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: center;
}

.hero-photo {
  position: relative;
}

.hero-photo img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 4px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero-line { display: block; }

.hero-line-accent { color: var(--accent); }

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-bottom: 8px;
}

.creds {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--grey);
}

/* Trust */
.trust {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-tint);
}

.trust .label {
  color: var(--grey);
  margin-bottom: 22px;
}

.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px 56px;
}

.logo {
  flex: 0 0 auto;
  height: 22px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 0.15s ease, opacity 0.15s ease;
}

.logo:hover,
.logo:focus {
  filter: none;
  opacity: 1;
}

.case-logo {
  height: 18px;
  max-width: 110px;
  margin-right: 10px;
  display: inline-block;
  vertical-align: middle;
}

/* Comparison */
.compare-head { margin-bottom: 40px; }

.table-wrap { overflow: visible; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  text-align: left;
  vertical-align: top;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
}

.compare-table thead th {
  position: sticky;
  top: 60px;
  background: var(--bg);
  z-index: 2;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}

.compare-table thead th:first-child { background: var(--bg); }

.compare-table th:last-child,
.compare-table td:last-child {
  background: var(--accent-soft);
  color: var(--ink-2);
}

.compare-table tbody th {
  font-weight: 600;
  color: var(--ink);
  padding-left: 0;
}

.compare-cards { display: none; }

.compare-close {
  margin-top: 28px;
  max-width: 68ch;
}

/* Manifesto */
.manifesto { font-size: 20px; line-height: 1.65; color: var(--ink-2); }

/* Principles */
.principles { display: flex; flex-direction: column; gap: 40px; }

.principle h3 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.1;
  margin: 8px 0 12px;
}

.num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* Problems */
.problems {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.problem { border-top: 2px solid var(--ink); padding-top: 22px; }

.problem h3 { margin-bottom: 12px; }

/* Capabilities */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 48px;
  margin-top: 48px;
}

.cap-num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 44px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}

.cap h3 { margin-bottom: 10px; }

/* AI band */
.ai-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}

.stat {
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--dark-line);
}

.stat-num {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--bg);
}

.stat-label {
  margin-top: 10px;
  color: #9A958B;
  max-width: 40ch;
}

.chart-card {
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  padding: 24px;
}

.chart-card svg {
  width: 100%;
  height: auto;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9A958B;
  margin-bottom: 16px;
}

.chart-caption {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--grey);
  line-height: 1.6;
  margin-top: 12px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9A958B;
}

.legend i {
  display: inline-block;
  width: 14px;
  height: 2px;
  margin-right: 8px;
  vertical-align: middle;
}

.ai-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  border-top: 1px solid var(--dark-line);
  padding-top: 40px;
}

.ai-steps h3 { margin: 8px 0 10px; font-size: 19px; }

/* Process */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  position: relative;
  margin-top: 48px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 8px;
  right: 8px;
  height: 1px;
  background: var(--line);
}

.step { position: relative; padding: 0 16px 0 0; }

.step::before {
  content: "";
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.step h3 { font-size: 18px; margin-bottom: 10px; }

/* Services */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card h3 { font-size: 22px; margin: 0 0 12px; }

.card p { color: var(--muted); font-size: 15px; }

.card .best { color: var(--grey); font-size: 14px; margin: auto 0 18px; }

.tag {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 5px 9px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 40px 0 24px;
}

.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
}

.price {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
  margin: 12px 0 16px;
}

.price-line { color: var(--grey); font-size: 14px; margin-top: 16px; }

.price-note { color: var(--muted); max-width: 70ch; }

/* Results */
.hero-case {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px;
  margin: 36px 0 24px;
}

.case-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 16px;
}

.hero-case h3 {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 28px;
  max-width: 22ch;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-box .n {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-box .l {
  font-size: 14px;
  color: var(--muted);
}

.case-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.metrics {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 18px;
}

.sourcing {
  margin-top: 24px;
  font-size: 14px;
  color: var(--grey);
}

/* Fit */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 36px 0 28px;
}

.fit-col {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
}

.fit-col ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.fit-col li {
  position: relative;
  padding: 0 0 12px 28px;
}

.fit-col li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

.fit-yes li::before { content: "✓"; color: #2F6B3A; }
.fit-no li::before { content: "×"; color: var(--accent); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 56px;
  align-items: start;
}

.about-grid img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: 4px;
}

/* Writing */
.write-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 36px 0 28px;
}

.write-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
}

.write-card h3 { font-size: 22px; margin-bottom: 12px; }

/* FAQ */
.faq-list { margin-top: 36px; border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  background: none;
  border: 0;
  padding: 22px 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
}

.faq-item .mark {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
}

.faq-item .a {
  display: none;
  padding: 0 48px 22px 0;
  color: var(--muted);
  max-width: 72ch;
}

.faq-item.open .a { display: block; }

/* Final CTA */
.final {
  text-align: center;
  padding: 120px 0;
}

.final h2 { color: var(--bg); }

.final p {
  max-width: 58ch;
  margin: 0 auto 28px;
}

.final-links {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.final-links a {
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.final-links a:hover { color: var(--accent); }

.final .micro { color: #9A958B; }

/* Footer */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer h2 {
  font-size: 16px;
  margin-bottom: 14px;
}

.footer p,
.footer a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.footer a { display: block; padding: 4px 0; }
.footer a:hover { color: var(--ink); }

.legal {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--grey);
}

/* Stub */
.stub { padding: 120px 0 160px; }
.stub h1 {
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1;
  margin-bottom: 20px;
}

/* Mobile nav */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-cta { margin-left: auto; }
  .nav-cta .micro { display: none; }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 24px 20px;
    gap: 14px;
  }

  .nav.open .nav-links { display: flex; }

  .hero-grid,
  .ai-top,
  .about-grid,
  .fit-grid,
  .case-cards {
    grid-template-columns: 1fr;
  }

  .hero-photo { order: -1; }
  .hero-photo img { height: 420px; }
  .about-grid img { height: 420px; }

  .cards-4 { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .problems { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
  .ai-steps { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline::before {
    top: 0;
    bottom: 0;
    left: 5px;
    right: auto;
    width: 1px;
    height: auto;
  }
  .stats { grid-template-columns: 1fr 1fr; }
  .write-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .wrap,
  .nav-inner { width: min(var(--max), calc(100% - 32px)); }

  .section,
  .final,
  .hero { padding: 72px 0; }

  .hero { padding-top: 36px; }

  .table-wrap { display: none; }
  .compare-cards { display: grid; gap: 16px; }

  .compare-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 20px;
  }

  .compare-card.me { background: var(--accent-soft); }

  .compare-card h3 { margin-bottom: 16px; }

  .compare-row {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    font-size: 14px;
  }

  .compare-row span {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--grey);
  }

  .cards-4,
  .ai-steps,
  .footer-grid,
  .stats { grid-template-columns: 1fr; }

  .logos { gap: 22px 32px; }
  .logo { height: 20px; }

  .nav-cta .btn { padding: 10px 12px; font-size: 13px; }
}


/* ==========================================================================
   City pages: Los Angeles and San Francisco
   ========================================================================== */

/* Trip banner */
.trip-banner {
  background: var(--ink);
  color: var(--bg);
  padding: 11px 16px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.trip-banner a {
  color: var(--bg);
  font-weight: 500;
  text-underline-offset: 0.2em;
}

.trip-banner a:hover { color: var(--accent); }

/* Nav location menus */
.has-menu { position: relative; }

.has-menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
}

.menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.menu-trigger:hover { color: var(--ink); }

.nav-links > li > a,
.menu-trigger { white-space: nowrap; }

/* Between the mobile breakpoint and a wide desktop the bar is tight enough
   that the location groups would wrap onto a second line. */
@media (min-width: 961px) and (max-width: 1199px) {
  .nav-inner { gap: 16px; }
  .nav-links { gap: 14px; }

  .nav-links > li > a,
  .menu-trigger {
    font-size: 11px;
    letter-spacing: 0.06em;
  }
}

.caret {
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.menu-panel {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  left: -14px;
  min-width: 272px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 18px 44px rgba(16, 16, 16, 0.1);
  z-index: 60;
}

.menu-panel a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
}

.menu-panel a:hover {
  background: var(--bg-tint);
  color: var(--ink);
}

.has-menu.open .menu-panel { display: block; }

@media (hover: hover) and (min-width: 961px) {
  .has-menu:hover .menu-panel { display: block; }
}

/* Breadcrumbs */
.crumbs {
  padding: 20px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}

.crumbs a {
  color: var(--grey);
  text-decoration: none;
}

.crumbs a:hover { color: var(--ink); }

.crumb-sep {
  margin: 0 9px;
  color: var(--line);
}

/* Page hero */
.page-hero { padding: 36px 0 72px; }

.page-hero .hero-sub {
  font-size: 20px;
  margin-bottom: 24px;
}

.page-hero .creds { max-width: 70ch; }

.byline {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--grey);
  margin: 0 0 24px;
}

/* Content lists */
.tick-list,
.cross-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.tick-list li,
.cross-list li {
  position: relative;
  padding: 0 0 14px 28px;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

.cross-list li::before {
  content: "\00d7";
  position: absolute;
  left: 0;
  top: -3px;
  font-size: 19px;
  font-weight: 700;
  color: var(--accent);
}

.steps-list {
  counter-reset: step;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.steps-list li {
  counter-increment: step;
  position: relative;
  padding: 0 0 14px 40px;
}

.steps-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.problem .tick-list li,
.problem .tick-list {
  font-size: 15px;
  color: var(--muted);
}

.h2-spaced { margin-top: 44px; }

/* Callout */
.callout {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 32px;
}

.callout h2 {
  font-size: clamp(26px, 3vw, 32px);
  margin-bottom: 16px;
}

/* Data tables */
.table-scroll {
  overflow-x: auto;
  margin: 24px 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
}

.data-table thead th {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}

.data-table tbody th {
  font-weight: 600;
  color: var(--ink);
  padding-left: 0;
}

.data-table tbody td { color: var(--muted); }

/* Related links band */
.page-links {
  background: var(--bg-tint);
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.page-links p {
  font-size: 15px;
  color: var(--muted);
  max-width: 96ch;
}

.page-links a {
  color: var(--ink);
  font-weight: 600;
}

/* Grid variants */
.case-cards-single { grid-template-columns: minmax(0, 560px); }

@media (min-width: 961px) {
  .write-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
}

/* The contact column needs room for the email address before the footer
   can carry all five columns on one row. */
@media (min-width: 1120px) {
  .footer-grid-5 { grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 28px; }
}

.footer a { overflow-wrap: break-word; }

/* Nav CTA moves into the menu once the bar runs out of room */
.nav-links-cta { display: none; }

@media (max-width: 960px) {
  .nav-links-cta {
    display: block;
    width: 100%;
    padding-top: 6px;
  }

  .nav-links-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .nav-cta { display: none; }
}

@media (max-width: 960px) {
  .menu-panel {
    position: static;
    display: none;
    min-width: 0;
    padding: 4px 0 8px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .menu-panel a { padding: 7px 0; }

  .nav-links {
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
}
