:root {
  --ink: #142019;
  --paper: #f4f1e9;
  --white: #fff;
  --green: #254934;
  --gold: #d7a53f;
  --red: #b44532;
  --rule: rgba(20, 32, 25, 0.2);
  --gutter: clamp(18px, 4vw, 56px);
  --mono: "IBM Plex Mono", monospace;
  --sans: "Archivo", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.stage-banner {
  background: var(--gold);
  color: #17120a;
  font: 500 11px/1.2 var(--mono);
  letter-spacing: 0.06em;
  padding: 8px var(--gutter);
  text-transform: uppercase;
}

.van-bar {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: grid;
  gap: 20px;
  grid-template-columns: auto 1fr auto;
  min-height: 82px;
  padding: 14px var(--gutter);
}

.stamp {
  color: var(--white);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 0.9;
  text-decoration: none;
  text-transform: uppercase;
}

.stamp span {
  color: rgba(255, 255, 255, 0.68);
  display: block;
  font: 400 10px/1.4 var(--mono);
  letter-spacing: 0.08em;
  margin-top: 8px;
}

.main-nav,
.home-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
}

.main-nav a,
.home-nav a {
  color: rgba(255, 255, 255, 0.82);
  font: 500 12px/1.2 var(--mono);
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.home-nav a:hover,
.home-nav a:focus-visible {
  color: var(--gold);
}

.van-phone {
  color: var(--white);
  font-size: clamp(17px, 2vw, 25px);
  font-weight: 700;
  text-align: right;
  text-decoration: none;
}

.van-phone small {
  color: var(--gold);
  display: block;
  font: 500 9px/1.2 var(--mono);
  letter-spacing: 0.1em;
}

.breadcrumbs {
  align-items: center;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 15px var(--gutter);
  font: 400 11px/1.4 var(--mono);
  text-transform: uppercase;
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs span {
  color: rgba(20, 32, 25, 0.4);
}

.service-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  min-height: min(72vh, 760px);
}

.service-hero-copy {
  align-content: end;
  background: var(--ink);
  color: var(--white);
  display: grid;
  padding: clamp(42px, 7vw, 100px) var(--gutter);
}

.eyebrow,
.section-kicker,
.section-heading > span {
  color: var(--gold);
  font: 500 11px/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-hero h1,
.directory-hero h1,
.services-index-hero h1 {
  font-size: clamp(38px, 6vw, 78px);
  letter-spacing: -0.045em;
  line-height: 0.96;
  margin: 18px 0 24px;
  max-width: 11ch;
}

.service-hero-copy > p,
.directory-hero p,
.services-index-hero > p {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.6;
  margin: 0;
  max-width: 43rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  border: 1px solid currentColor;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.05em;
  padding: 15px 18px;
  text-decoration: none;
  text-transform: uppercase;
}

.button-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #17120a;
}

.button-secondary {
  color: var(--white);
}

.service-hero-media {
  margin: 0;
  min-height: 420px;
  overflow: hidden;
  position: relative;
}

.service-hero-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.service-hero-media figcaption {
  background: var(--white);
  bottom: 18px;
  font: 500 10px/1 var(--mono);
  left: 18px;
  letter-spacing: 0.08em;
  padding: 10px 12px;
  position: absolute;
  text-transform: uppercase;
}

.service-hero-media .evidence-real {
  border-left: 5px solid var(--green);
}

.service-hero-media .evidence-related {
  border-left: 5px solid var(--gold);
}

.service-hero-media .evidence-illustration {
  border-left: 5px solid var(--red);
}

.scope-grid {
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.scope-grid > div,
.scope-grid > aside {
  padding: clamp(42px, 6vw, 78px) var(--gutter);
}

.scope-grid > aside {
  background: #e9e4d8;
  border-left: 1px solid var(--rule);
}

.scope-grid h2,
.section-heading h2,
.service-footer h2 {
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin: 12px 0 22px;
}

.scope-grid ul {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.scope-grid li {
  border-top: 1px solid var(--rule);
  font-size: 17px;
  padding: 13px 0 0 26px;
  position: relative;
}

.scope-grid li::before {
  color: var(--green);
  content: "✓";
  left: 0;
  position: absolute;
}

.scope-grid aside p {
  line-height: 1.65;
}

.process-section,
.guide-section,
.story-section,
.proof-section,
.faq-section,
.related-section,
.services-group {
  border-bottom: 1px solid var(--rule);
  padding: clamp(48px, 7vw, 90px) var(--gutter);
}

.story-section p {
  max-width: 52rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.story-section ul {
  max-width: 52rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-section li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.35rem;
  line-height: 1.55;
  border-bottom: 1px solid var(--rule);
}

.story-section li:last-child {
  border-bottom: 0;
}

.story-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--ink, #11241a);
}

.section-heading {
  margin-bottom: 28px;
  max-width: 52rem;
}

.section-heading p {
  line-height: 1.6;
}

.process-list {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.process-list li {
  border-left: 1px solid var(--rule);
  min-height: 180px;
  padding: 16px 22px;
}

.process-list li:last-child {
  border-right: 1px solid var(--rule);
}

.process-list span {
  color: var(--red);
  font: 500 12px/1 var(--mono);
}

.process-list p {
  font-size: 17px;
  line-height: 1.5;
  margin-top: 44px;
}

.proof-grid,
.guide-grid,
.related-grid,
.directory-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-card {
  background: #e9e4d8;
  border-top: 4px solid var(--gold);
  padding: 22px;
}

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

.guide-card p {
  line-height: 1.6;
  margin: 0;
}

.proof-card {
  background: var(--white);
  margin: 0;
}

.proof-card img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.proof-card figcaption {
  font: 400 10px/1.4 var(--mono);
  padding: 12px;
  text-transform: uppercase;
}

.faq-list {
  border-top: 1px solid var(--rule);
  max-width: 62rem;
}

.faq-list details {
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
}

.faq-list summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
}

.faq-list details p {
  line-height: 1.65;
  max-width: 50rem;
}

.related-card,
.service-card {
  background: var(--white);
  border-top: 5px solid var(--green);
  display: grid;
  min-height: 220px;
  padding: 22px;
  text-decoration: none;
}

.related-card strong,
.service-card h2,
.service-card h3 {
  font-size: 22px;
  line-height: 1.1;
  margin: 10px 0;
}

.related-card span,
.service-card p {
  color: rgba(20, 32, 25, 0.74);
  line-height: 1.55;
}

.service-card > span {
  color: var(--red);
  font: 500 10px/1 var(--mono);
  text-transform: uppercase;
}

.service-card strong {
  align-self: end;
  font: 500 11px/1 var(--mono);
  margin-top: 24px;
  text-transform: uppercase;
}

.quote-band {
  align-items: center;
  background: var(--gold);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  padding: 32px var(--gutter);
}

.quote-band p {
  font-size: clamp(19px, 2.4vw, 30px);
  font-weight: 700;
  margin: 0 auto 0 0;
}

.quote-band a {
  border-bottom: 2px solid currentColor;
  font: 500 12px/1.3 var(--mono);
  text-decoration: none;
  text-transform: uppercase;
}

.service-footer {
  background: var(--ink);
  color: var(--white);
  display: grid;
  gap: 40px;
  grid-template-columns: 1.3fr 1fr 1fr;
  padding: 60px var(--gutter) 28px;
}

.service-footer h2 {
  color: var(--gold);
  font-size: 18px;
}

.service-footer p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
  max-width: 28rem;
}

.service-footer a {
  display: block;
  line-height: 1.8;
  text-decoration: none;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.56);
  font: 400 10px/1.4 var(--mono);
  grid-column: 1 / -1;
  padding-top: 20px;
}

.footer-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.directory-hero {
  background: var(--ink);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.directory-hero > div {
  align-content: center;
  display: grid;
  padding: 60px var(--gutter);
}

.directory-hero img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.directory-grid {
  padding: clamp(42px, 6vw, 76px) var(--gutter);
}

.services-index-hero {
  background: var(--ink);
  color: var(--white);
  padding: clamp(60px, 10vw, 130px) var(--gutter);
}

.services-index-hero h1 {
  max-width: 13ch;
}

.services-group .directory-grid {
  padding: 0;
}

.services-group + .services-group {
  border-top: 0;
}

.local-proof {
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.local-proof div {
  border-right: 1px solid var(--rule);
  display: grid;
  gap: 7px;
  padding: 22px var(--gutter);
}

.local-proof div:last-child {
  border-right: 0;
}

.local-proof span {
  color: var(--red);
  font: 500 10px/1 var(--mono);
  text-transform: uppercase;
}

.hub-return {
  margin-top: 28px;
}

.company-page main {
  background: var(--paper);
  min-height: 50vh;
  position: relative;
  z-index: 1;
}

.company-page main::after {
  display: none !important;
}

.company-page .page-end,
.company-page .end-spacer,
.company-page .veil-ink,
.company-page .veil-boot,
.company-page .rail-toggle,
.company-page .menu-drawer,
.company-page .site-header,
.company-page .site-footer {
  display: none !important;
}

@media (max-width: 980px) {
  .van-bar {
    grid-template-columns: 1fr auto;
  }

  .main-nav,
  .home-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    order: 3;
  }

  .service-hero,
  .directory-hero {
    grid-template-columns: 1fr;
  }

  .service-hero-copy {
    min-height: 440px;
  }

  .service-hero-media,
  .directory-hero img {
    height: min(64vw, 560px);
  }

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

  .process-list li:nth-child(3) {
    border-top: 1px solid var(--rule);
  }

  .process-list li:nth-child(4) {
    border-right: 1px solid var(--rule);
    border-top: 1px solid var(--rule);
  }

  .proof-grid,
  .guide-grid,
  .related-grid,
  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .stage-banner {
    font-size: 9px;
  }

  .van-bar {
    min-height: auto;
    padding-bottom: 16px;
  }

  .stamp {
    font-size: 19px;
  }

  .van-phone {
    font-size: 16px;
  }

  .main-nav,
  .home-nav {
    gap: 10px 16px;
    overflow-x: auto;
    padding-bottom: 2px;
    white-space: nowrap;
  }

  .breadcrumbs {
    overflow: hidden;
    white-space: nowrap;
  }

  .service-hero-copy {
    min-height: 410px;
  }

  .service-hero h1,
  .directory-hero h1,
  .services-index-hero h1 {
    font-size: clamp(36px, 12vw, 56px);
  }

  .service-hero-media {
    height: 68vw;
    min-height: 280px;
  }

  .scope-grid {
    grid-template-columns: 1fr;
  }

  .scope-grid > aside {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .process-list,
  .proof-grid,
  .guide-grid,
  .related-grid,
  .directory-grid,
  .local-proof,
  .service-footer {
    grid-template-columns: 1fr;
  }

  .process-list li,
  .process-list li:nth-child(3),
  .process-list li:nth-child(4) {
    border: 0;
    border-top: 1px solid var(--rule);
    min-height: auto;
    padding: 18px 0;
  }

  .process-list li:last-child {
    border-bottom: 1px solid var(--rule);
  }

  .process-list p {
    margin: 12px 0 0 40px;
  }

  .local-proof div {
    border-bottom: 1px solid var(--rule);
    border-right: 0;
  }

  .service-footer {
    gap: 24px;
  }

  .footer-legal {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
