.portfolio-main {
  max-width: 1320px;
}

.portfolio-hero,
.service-lead,
.delivery-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 7rem);
}

.portfolio-hero {
  align-items: end;
  padding-block: clamp(3rem, 7vw, 7rem) clamp(2rem, 4.5vw, 4rem);
}

.portfolio-hero h1,
.service-lead h1 {
  font-size: clamp(3.1rem, 6.7vw, 6rem);
  line-height: .99;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.portfolio-hero > p,
.service-lead-copy > p,
.delivery-section p {
  color: var(--muted);
  font-size: clamp(1.06rem, 1.35vw, 1.28rem);
  line-height: 1.55;
  max-width: 65ch;
}

.service-directory,
.related-list,
.product-directory,
.workflow-example ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-directory > li {
  border-top: 1px solid var(--line);
  scroll-margin-block: 1rem;
}
.service-paths {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.7rem;
  margin-bottom: 2rem;
}
.service-paths a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--cta-fill);
  text-decoration: underline;
}
.service-group + .service-group { margin-top: clamp(2.5rem, 6vw, 6rem); }
.service-group > h2 {
  color: var(--muted);
  font-size: clamp(1.45rem, 2vw, 2rem);
  margin-bottom: 1rem;
  scroll-margin-top: 1.25rem;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .85fr) auto;
  align-items: center;
  gap: clamp(1rem, 3.2vw, 3rem);
  padding-block: clamp(1.5rem, 3.4vw, 3.4rem);
}

.service-row h3,
.delivery-section h2,
.product-directory h2 {
  font-size: clamp(1.65rem, 3vw, 3rem);
  letter-spacing: -.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.service-row > p,
.workflow-example li p,
.delivery-section dd {
  color: var(--muted);
  max-width: 60ch;
  margin: 0;
}

.service-row .icon-arrow {
  color: var(--cta-fill);
  width: 1.6rem;
  height: 1.6rem;
}

.service-row:is(:hover, :focus-visible) h3,
.product-directory a:is(:hover, :focus-visible) h2 {
  color: var(--cta-fill);
}

.portfolio-back {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  margin-top: clamp(.75rem, 2vw, 2rem);
  color: var(--muted);
}

.portfolio-back svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.portfolio-back:hover,
.related-list a {
  color: var(--cta-fill);
}

.service-lead {
  align-items: center;
  padding-block: clamp(1.6rem, 4vw, 4rem) clamp(3.25rem, 6.5vw, 6rem);
}

.service-lead-copy > p {
  margin-block: 1.35rem 1.65rem;
}

.workflow-example {
  padding: clamp(1.4rem, 2.9vw, 3rem);
  background: var(--panel);
}

.workflow-example h2 {
  font-size: clamp(1.4rem, 2.3vw, 2.3rem);
  line-height: 1.1;
  margin-bottom: 1.65rem;
  text-wrap: balance;
}

.workflow-example li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 1rem;
  position: relative;
}

.workflow-example li + li {
  margin-top: 1.45rem;
}

.workflow-example li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 34px;
  bottom: -1rem;
  left: 13px;
  width: 1px;
  background: var(--line);
}

.workflow-example img {
  object-fit: contain;
  width: 26px;
  height: 26px;
}

.route-stop {
  width: 12px;
  height: 12px;
  margin: 6px 0 0 8px;
  border: 2px solid var(--lime);
  border-radius: 50%;
}

.workflow-example strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 620;
  margin-bottom: .2rem;
}

.delivery-section {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.delivery-section h2 { max-width: 20ch; }
.delivery-section dl { margin: 0; }
.delivery-section dl > div + div {
  border-top: 1px solid var(--line);
  margin-top: 1.2rem;
  padding-top: 1.2rem;
}
.delivery-section dt {
  font-weight: 620;
  font-size: 1.17rem;
  margin-bottom: .35rem;
}
.delivery-section p + a { margin-top: .8rem; color: var(--cta-fill); }
.delivery-section dd a { text-decoration: underline; }
.delivery-section dd a:hover { color: var(--cta-hover); }
.delivery-section .consultation-actions { margin-top: 1.3rem; }
.portfolio-page .written-inquiry { text-decoration: underline; }
.related-list li + li { border-top: 1px solid var(--line); }
.related-list a { padding-block: .45rem; }
.product-directory { margin-bottom: clamp(3rem, 6vw, 6rem); }
.product-directory h2 { font-size: clamp(1.6rem, 2.7vw, 2.55rem); }
.product-status { display: block; color: var(--muted); font-size: .88rem; margin-top: .7rem; }

@media (max-width: 760px) {
  .portfolio-hero,
  .service-lead,
  .delivery-section { grid-template-columns: minmax(0, 1fr); gap: 1.3rem; }
  .service-lead { align-items: start; gap: 2.1rem; }
  .service-row { grid-template-columns: 1fr auto; gap: .7rem 1.2rem; }
  .service-row p { grid-row: 2; }
  .service-row .icon-arrow { grid-column: 2; grid-row: 1; }
  .portfolio-hero h1, .service-lead h1 { font-size: clamp(2.4rem, 10.9vw, 4.5rem); }
}

@media (max-width: 390px) {
  .portfolio-page .site-header nav { justify-content: space-between; gap: .6rem; }
}
@media (max-width: 440px) {
  .portfolio-page .header-cta .icon-arrow { display: none; }
}
@media (max-width: 360px) {
  .portfolio-page .site-header .wordmark img { width: 102px; }
  .portfolio-page .header-cta { font-size: .825rem; }
}
