:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --cream: #ece8de;
  --ink: #17322f;
  --body: #435550;
  --line: #d4d8ce;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
  font: 16px/1.55 var(--font);
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, p, h1, h2, h3, figure { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
section[id] { scroll-margin-top: 1.6rem; }
.frame { width: min(100% - 4rem, 1180px); margin-inline: auto; }
.skip {
  position: absolute;
  top: .65rem;
  left: 1rem;
  z-index: 2;
  transform: translateY(-150%);
  background: var(--paper);
  padding: .6rem 1rem;
}
.skip:focus { transform: translateY(0); }

.portfolio-strip {
  background: #142a28;
  color: #e9ede1;
  font-size: .72rem;
}
.portfolio-strip .frame {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .2rem 1rem;
  min-height: 2.35rem;
  padding-block: .35rem;
}
.portfolio-strip a, .site-footer > a:last-child { text-decoration: none; }
.portfolio-strip a:hover, .site-footer > a:last-child:hover { text-decoration: underline; }
.portfolio-strip a span { margin-right: .25rem; }
.portfolio-strip .frame > span { color: #cbd6c5; }

.mast {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  justify-items: start;
  align-items: center;
  gap: .6rem 1.8rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .32rem;
  font: 2rem/.95 var(--display);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark small { font: 600 .65rem/1 var(--font); letter-spacing: .04em; }
.mark {
  display: inline-grid;
  place-items: center;
  padding: .1rem .19rem .24rem;
  min-width: 1.8rem;
  margin-right: .2rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.35rem;
}
.mast nav { display: flex; gap: 1.55rem; font-size: .82rem; }
.mast nav a { text-decoration: none; }
.mast nav a:hover { text-decoration: underline; text-underline-offset: .25em; }
.mast .quiet { justify-self: end; }
.button {
  min-height: 2.8rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .85rem;
  padding: .65rem 1rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: .81rem;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}
.button:hover, .quiet { color: var(--ink); background: transparent; }
.quiet:hover { background: var(--ink); color: var(--paper); }

.clearpath-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(1.3rem, 5vw, 5rem);
  padding-block: clamp(2.2rem, 5vw, 5rem);
}
.hero-text { padding-block: .65rem; }
.eyebrow {
  width: fit-content;
  color: #53685c;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .15em;
}
h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.024em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(3.4rem, 6.9vw, 7rem);
  line-height: .87;
  margin-block: 1.05rem 1.35rem;
}
h1 em { color: #536b55; }
.lead, .section-intro {
  color: var(--body);
  font-size: clamp(.98rem, 1.35vw, 1.16rem);
  max-width: 37ch;
}
.hero-text .button { margin-top: 1.6rem; }
.hero-image { background: var(--cream); }
.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-image figcaption {
  padding: .65rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--body);
  font-size: .73rem;
}

.service-section { background: var(--cream); }
.service-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(1.7rem, 5vw, 5rem);
  padding-block: clamp(2.6rem, 6vw, 5.3rem);
}
h2 {
  font-size: clamp(2.65rem, 5.1vw, 5.2rem);
  line-height: .96;
  margin-block: .55rem .95rem;
}
.service-list { border-top: 1px solid #bec7bc; }
.service-list article {
  display: grid;
  grid-template-columns: minmax(0, .65fr) minmax(0, 1fr);
  gap: .65rem 1.25rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid #bec7bc;
}
h3 {
  font: 400 clamp(1.6rem, 2.6vw, 2.25rem)/1 var(--display);
  text-wrap: balance;
}
.service-list p, .approach-steps p, .first-call p { font-size: .92rem; }
.service-list p, .approach-steps p { color: var(--body); }

.approach { padding-block: clamp(2.6rem, 6vw, 5.3rem); }
.approach-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.9rem;
}
.approach-steps article {
  padding-top: .85rem;
  border-top: 1px solid var(--line);
}
.approach-steps h3 { margin-bottom: .6rem; }

.first-call { background: var(--ink); color: var(--paper); }
.call-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .6fr);
  align-items: end;
  gap: 1.5rem clamp(1rem, 6vw, 5rem);
  padding-block: clamp(2.6rem, 6vw, 5rem);
}
.first-call .eyebrow { color: #ccd9c7; font-size: .68rem; }
.first-call p:not(.eyebrow) { color: #e0e8dd; max-width: 52ch; }
.concept-call { padding-left: 1.15rem; border-left: 1px solid #87a094; }
.concept-call .button { margin-top: .9rem; }
.cream { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cream:hover { color: var(--paper); }
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .8rem 1.2rem;
  padding-block: 1.4rem;
  font-size: .78rem;
}

@media (max-width: 840px) {
  .frame { width: calc(100% - 2rem); }
  .mast { grid-template-columns: minmax(0, 1fr) auto; }
  .mast nav { grid-row: 2; grid-column: 1 / -1; }
  .mast .quiet { grid-row: 1; grid-column: 2; }
  .clearpath-hero, .service-layout, .call-layout { grid-template-columns: minmax(0, 1fr); }
  h1 { max-width: 11ch; }
  .hero-image img { aspect-ratio: 5 / 3; }
}
@media (max-width: 490px) {
  .wordmark { gap: .2rem; font-size: 1.65rem; }
  .wordmark small { font-size: .55rem; }
  .mast { column-gap: .5rem; }
  .mast .quiet { gap: .25rem; padding-inline: .35rem; font-size: .7rem; }
  .hero-image img { aspect-ratio: 4 / 3; }
  .service-list article, .approach-steps { grid-template-columns: minmax(0, 1fr); }
  .approach-steps { gap: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
