.service-chapter {
  position: relative;
  width: 49%;
  padding: clamp(2.6rem, 5vw, 5rem) 2.5vw clamp(3.2rem, 5vw, 5rem) var(--pad);
  scroll-margin-top: 2rem;
  --chapter-progress: .64;
}
.service-chapter::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: var(--pad) 2.5vw;
  border-top: 1px solid var(--line);
}
.service-chapter h2, .method-title h2, .contact-chapter h2 {
  margin: 0;
  color: var(--paper);
  font-weight: 450;
  letter-spacing: -.055em;
  line-height: 1.01;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}
.service-chapter h2 {max-width: 17ch; font-size: clamp(2.25rem, 3.95vw, 4.7rem);}
.service-lead, .method-chapter li p, .contact-chapter > p {
  margin: 1.25rem 0 0;
  max-width: 52ch;
  color: #c1c3ba;
  font-size: clamp(1rem, 1.13vw, 1.17rem);
  line-height: 1.55;
}
.section-drawing {margin: 1.5rem 0 1.55rem;}
.section-drawing svg {display: block; width: 100%; max-height: 245px; stroke: #222820; stroke-width: 1.2; stroke-linejoin: round;}
.section-drawing .guides {fill: none; stroke: #818778; stroke-width: .8; stroke-dasharray: 4 6;}
.section-drawing .flow {stroke: #f48950; stroke-width: 2;}
.section-drawing .diagram-part {
  transform: translate(calc(var(--dx) * var(--chapter-progress)), calc(var(--dy) * var(--chapter-progress)));
}
.chapter-web .front {--dx: -55px; --dy: -36px;}
.chapter-web .middle {--dx: 0px; --dy: -4px;}
.chapter-web .back {--dx: 30px; --dy: 30px;}
.chapter-api .front {--dx: -75px; --dy: 14px;}
.chapter-api .middle {--dx: -8px; --dy: 0px;}
.chapter-api .back {--dx: 47px; --dy: -18px;}
.chapter-consulting .front {--dx: -85px; --dy: -12px;}
.chapter-consulting .middle {--dx: 18px; --dy: -44px;}
.chapter-consulting .back {--dx: 41px; --dy: 26px;}
.section-drawing figcaption {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem 1rem;
  color: #cccfc4; border-top: 1px solid #494d43; padding-block: .62rem;
  font: .85rem/1.5 var(--mono);
}
.section-drawing figcaption > span {width: 100%; color: var(--paper); font: 520 1rem/1.35 Golos, Arial, sans-serif;}
.section-drawing ol {display: flex; flex-wrap: wrap; gap: .3rem .6rem; padding: 0; margin: 0; list-style: none;}
.section-drawing li::before {
  content: ''; display: inline-block; vertical-align: .04em;
  width: .52rem; height: .52rem; margin-right: .35rem; background: #d3d5c9;
}
.section-drawing li:nth-child(2)::before {background: #ee8655;}
.section-drawing li:nth-child(3)::before {background: #7e8878;}
.field-notes {margin: 0;}
.field-notes > div {display: grid; grid-template-columns: minmax(6.75rem, .31fr) minmax(0, 1fr); gap: 1rem; padding: .8rem 0; border-top: 1px solid #33372f;}
.field-notes dt {font-size: .98rem; color: var(--paper); font-weight: 550;}
.field-notes dd {margin: 0; color: #b7bab1; font-size: 1rem; line-height: 1.5;}
.chapter-footer a:hover {color: var(--heat);}
@media (prefers-reduced-motion: reduce) {
  .section-drawing .diagram-part {transform: translate(calc(var(--dx) * .8), calc(var(--dy) * .8));}
}
.method-chapter {
  display: grid;
  grid-template-columns: minmax(0,.83fr) minmax(0,1.17fr);
  gap: clamp(2rem,9vw,10rem);
  padding: clamp(4rem,9vw,10rem) var(--pad);
  background: #242623;
  border-top: 1px solid #494b44;
  scroll-margin-top: 3rem;
}
.method-title h2 {max-width: 13ch; margin-top: 0; font-size: clamp(3rem,6.6vw,7.5rem);}
.method-byline {margin-top: 1.3rem; line-height: 1.5; color: var(--muted);}
.method-byline a {color: var(--paper); text-decoration: underline; text-underline-offset: .2em;}
.method-chapter ol {list-style: none; counter-reset: step; margin: 0; padding: 0;}
.method-chapter li {
  counter-increment: step;
  position: relative;
  border-top: 1px solid #595b51;
  padding: 1.35rem 0 1.6rem 2.8rem;
}
.method-chapter li::before {
  content: counter(step,decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.75rem;
  font: .78rem/1 ui-monospace,monospace;
  color: #ff9165;
}
.method-chapter li h3 {margin: 0; color: var(--paper); font-size: clamp(1.3rem,2.4vw,2.55rem); letter-spacing: -.04em; font-weight: 500; line-height: 1.1;}
.method-chapter li p {font-size: 1rem; margin-top: .55rem;}
.contact-chapter {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4rem,8vw,9rem) var(--pad);
  background: #171815;
}
.contact-lines {
  position: absolute;
  z-index: -1;
  right: max(-1rem,2vw);
  bottom: -7rem;
  width: min(33%, 31rem);
  height: calc(100% + 10rem);
  opacity: .46;
  background: repeating-linear-gradient(124deg,transparent 0 15px,#41453e 15px 16px,transparent 17px 26px);
  clip-path: polygon(39% 0,100% 0,74% 40%,48% 40%,35% 60%,64% 60%,36% 100%,0 100%,23% 64%,0 64%);
}
.contact-chapter h2 {max-width: 16ch; margin: 1rem 0; font-size: clamp(2.8rem,6.5vw,7rem);}
.contact-chapter .contact-address {display: inline-block; margin-top: 2.5rem; padding-bottom: .18em; border-bottom: 1px solid var(--heat); color: var(--heat); font-size: clamp(1.55rem,4vw,4.5rem); letter-spacing: -.045em; line-height: 1.1;}
.contact-address:hover {color: #ffa477;}
.chapter-footer {display:flex; align-items:center; justify-content:space-between; gap:1rem; margin:0 var(--pad); min-height:5rem; border-top:1px solid var(--line); font-size:.875rem; color:#c2c4ba;}
.chapter-footer a {padding:.6rem 0;}
@media (max-width:959px) {
  .service-chapter {width: 100%; padding-inline: var(--pad);}
  .service-chapter::before {right: var(--pad);}
  .section-drawing {max-width: 39rem;}
  .field-notes {max-width: 48rem;}
}
@media (max-width:620px) {
  .service-chapter h2 {font-size: clamp(2rem, 9.2vw, 3rem);}
  .field-notes > div {display: block; padding-block: .85rem;}
  .field-notes dd {margin-top: .35rem;}
  .section-drawing figcaption {display: block;}
  .section-drawing ol {margin-top: .25rem;}
  .method-chapter {display: block;}
  .method-chapter ol {margin-top: 2rem;}
  .contact-lines {width: 44%; opacity: .22; right: -10%;}
}
