.page-hero {
  padding-block: clamp(1.15rem, 2.5vw, 2rem) clamp(1.5rem, 3.2vw, 2.8rem);
}

.crumb {
  margin-bottom: clamp(1rem, 2.4vw, 1.9rem);
  color: var(--muted);
  font-size: .9rem;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(1.2rem, 3.2vw, 3rem);
}

.page-hero h1 {
  font-size: clamp(2.25rem, 3.8vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -.048em;
  overflow-wrap: anywhere;
}

.page-hero h1 em { color: var(--red); font-style: normal; }

.hero-lead {
  max-width: 58ch;
  margin-top: .9rem;
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .8rem;
  margin-top: 1.1rem;
}

.button-light {
  color: var(--red-hover);
  background: transparent;
}

.button-light:hover { background: var(--light-paper); }
.button-light > span { width: auto; height: auto; border: 0; font-size: inherit; }
.button-light > span::after { content: none; }

.service-hero-art {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 5px;
}

.eyebrow, .label {
  display: block;
  margin-bottom: .45rem;
  color: var(--red-hover);
  font-size: .86rem;
  font-weight: 700;
}

.eyebrow { font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }

.page-aside {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: .75rem clamp(1rem, 3vw, 2.6rem);
  margin-top: clamp(1.25rem, 3.3vw, 2.75rem);
  padding: clamp(.9rem, 2.2vw, 1.4rem);
  border-block: 1px solid var(--rule);
  background: var(--light-paper);
}

.page-aside h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  letter-spacing: -.028em;
  text-wrap: initial;
}

.page-aside ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .4rem 1.55rem;
  margin: 0;
}

.service-page main ul { padding-left: 1.2rem; }
.service-page main li::marker { color: var(--red); }

.page-section { padding-block: clamp(.8rem, 2vw, 1.5rem) clamp(1.1rem, 2.9vw, 2.4rem); }

.page-section > .wrap {
  padding-top: clamp(1.15rem, 2.3vw, 1.85rem);
  border-top: 2px solid var(--ink);
}

.page-section h2 {
  max-width: 36ch;
  font-size: clamp(1.85rem, 3.55vw, 3.25rem);
  text-wrap: initial;
}

.page-section-intro {
  max-width: 74ch;
  margin-top: .65rem;
  color: var(--muted);
}

.deliverable-grid,
.scenario-grid,
.return-grid,
.credit-scenario-grid,
.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.65rem, 1.25vw, 1.2rem);
  margin-top: clamp(.9rem, 2.1vw, 1.55rem);
}

.step-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.deliverable,
.scenario-card,
.credit-scenario,
.return-card,
.step-card {
  min-width: 0;
  padding: clamp(.85rem, 2vw, 1.35rem);
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: var(--light-paper);
}

.scenario-card, .credit-scenario { border-top: 4px solid var(--ink); }
.optimistic { border-top-color: #a46106; }
.pessimistic { border-top-color: var(--red); }

.deliverable p, .scenario-card p, .credit-scenario p, .return-card p, .step-card p {
  margin-top: .6rem;
}

.step-card > span {
  display: block;
  margin-bottom: .4rem;
  color: var(--red);
  font-weight: 700;
}

.case-feature, .story-note, .ai-review {
  display: grid;
  align-items: center;
  gap: clamp(.85rem, 2.2vw, 1.7rem);
  padding: clamp(.85rem, 2vw, 1.45rem);
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: var(--light-paper);
}

.case-feature { grid-template-columns: minmax(0, .85fr) minmax(0, 1.18fr) minmax(0, .97fr); }
.story-note, .ai-review { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.story-note { margin-top: 1rem; }
.case-feature p, .ai-review p { margin-top: .48rem; }
.case-feature strong, .story-note small { display: block; margin-top: .55rem; }
.story-note small { color: var(--muted); font-size: .91rem; }

.service-detail-art {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.formula-note, .group-note, .credit-note {
  margin-top: 1rem;
  padding: .75rem 1rem;
  border-left: 3px solid var(--red);
  background: #f6dfa6;
}

.inline-link { color: var(--red-hover); font-weight: 700; }

.economics-table-wrap, .group-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: var(--light-paper);
}

.economics-table, .group-table {
  width: 100%;
  min-width: 38rem;
  border-collapse: collapse;
  text-align: left;
}

.economics-table :is(th, td), .group-table :is(th, td) {
  padding: .75rem .9rem;
  border-bottom: 1px solid #d0bc94;
  vertical-align: top;
}

.economics-table thead th, .group-table thead th {
  background: var(--ink);
  color: var(--light-paper);
}

.economics-table tbody tr:nth-child(even), .group-table tbody tr:nth-child(even) {
  background: var(--paper);
}

.economics-table tbody td:first-child, .group-table tbody td:first-child { font-weight: 700; }
.economics-table tbody tr:last-child td, .group-table tbody tr:last-child td { border-bottom: 0; }

.owner-risk { margin-top: .75rem; }

.faq {
  max-width: 62rem;
  margin-top: 1rem;
}

.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  padding-block: .75rem;
  cursor: pointer;
  font-size: clamp(1.05rem, 1.5vw, 1.23rem);
  font-weight: 700;
}

.faq summary::marker { color: var(--red); }
.faq p { padding-bottom: .85rem; color: var(--muted); }

.page-contact { padding-block: clamp(1.15rem, 3vw, 2.6rem); }

.page-contact .contact-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.65rem;
  padding: clamp(1rem, 3vw, 2.1rem);
}

.page-contact .contact-panel > div { padding: 0; }
.page-contact .eyebrow { color: var(--gold); }
.page-contact .button { margin: 0; }

@media (max-width: 960px) {
  .step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-feature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-feature > img { grid-column: 1 / -1; width: min(100%, 25rem); }
}

@media (max-width: 760px) {
  .page-hero-grid,
  .page-aside,
  .case-feature,
  .story-note,
  .ai-review,
  .page-contact .contact-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-hero h1 { font-size: clamp(2.25rem, 7.6vw, 3.7rem); }
  .service-hero-art { max-width: 40rem; }
  .service-detail-art { max-width: 25rem; }

  .deliverable-grid,
  .scenario-grid,
  .return-grid,
  .credit-scenario-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .page-aside ul, .deliverable-grid, .scenario-grid, .return-grid, .credit-scenario-grid, .step-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .header-inner { gap: .5rem; }
  .header-inner .brand { min-width: 0; gap: .45rem; flex-shrink: 1; }
  .header-inner .brand-mark { padding-right: .45rem; font-size: 1.4rem; }
  .header-inner .brand-name { white-space: normal; font-size: .8rem; }
  .menu-toggle { flex-shrink: 0; }
}
