:root {
  --ui-edge: clamp(1rem, 4.5vw, 2rem);
  --ui-radius: 1rem;
}

:where(main, footer) :where(p, a, button, figcaption) { overflow-wrap: break-word; }
main :is(h1, h2, h3) { overflow-wrap: anywhere; hyphens: auto; }
body .button { max-width: 100%; min-height: 46px; text-align: center; white-space: normal; }
body .jump-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  text-align: center;
}
body .jump-links .button { border-color: var(--pine); background: var(--pine); color: var(--cream); }
body .jump-links .button:hover { background: #285340; }
.card-body a, .work-card-copy a { text-underline-offset: .2em; }
.guide-cta .shell > p { flex-basis: 100%; max-width: 66ch; margin: 0; color: #e9ece6; }
.mobile-menu { display: none; }

.related-work {
  width: min(calc(100% - 2 * var(--ui-edge)), 1280px);
  margin: 0 auto clamp(2.4rem, 5vw, 4.5rem);
  padding: clamp(1.2rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--ui-radius);
  background: #f3eee5;
}
.related-work h2 { font-size: clamp(1.45rem, 3vw, 2.15rem); margin-bottom: .85rem; }
.related-work ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.related-work a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--deep);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .25em;
}
.related-work a:hover { color: var(--bronze); }
.case-cta .button { flex-shrink: 0; }

@media (max-width: 760px) {
  .shell { width: calc(100% - 2 * var(--ui-edge)); }
  header .top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 .6rem;
    min-height: 66px;
    padding-block: .45rem;
  }
  header .top > nav { display: none; }
  header .top .mark { width: 43px; }
  header .top .wordmark { width: 92px; }
  .mobile-menu { display: contents; }
  .mobile-menu summary {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 44px;
    padding: .55rem .75rem;
    border: 1px solid #d5ba8270;
    border-radius: .65rem;
    color: var(--gold);
    list-style: none;
    font-size: .89rem;
    font-weight: 650;
    cursor: pointer;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .menu-icon { display: grid; gap: 4px; width: .9rem; }
  .menu-icon::before, .menu-icon::after { content: ""; width: 100%; height: 1px; background: currentColor; }
  .mobile-menu[open] .menu-icon::before { transform: translateY(2.5px) rotate(45deg); }
  .mobile-menu[open] .menu-icon::after { transform: translateY(-2.5px) rotate(-45deg); }
  .top .mobile-menu nav { display: none; }
  .top .mobile-menu[open] nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .35rem;
    margin: .55rem 0 .35rem;
    padding-top: .6rem;
  }
  .top .mobile-menu nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .42rem .6rem;
    border-radius: .45rem;
    background: #22392e;
    color: var(--cream);
    font-size: .91rem;
    line-height: 1.25;
  }
  .top .mobile-menu nav a[aria-current] { color: var(--gold); }

  .opening { background: linear-gradient(145deg, #15291f, #244038 84%); }
  .hero { gap: 1.4rem; padding-block: clamp(1.5rem, 5.5vw, 2.6rem) var(--ui-edge); }
  .hero .hero-slogan { margin-bottom: .9rem; text-align: left; }
  .hero .hero-slogan::before { flex-basis: .85rem; }
  .hero .hero-slogan::after { display: none; }
  .hero .hero-slogan span { text-wrap: pretty; }
  .hero h1 { font-size: clamp(2.25rem, 8.8vw, 3.65rem); line-height: 1.01; text-wrap: balance; }
  .hero-lead { margin-block: .95rem 1.2rem; line-height: 1.5; }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .hero-actions .button { padding-inline: .38rem; min-height: 46px; line-height: 1.25; font-size: .875rem; }
  .hero-visual { border-radius: var(--ui-radius); }
  .hero-visual img { aspect-ratio: 1.48; }

  .services, .process, .regions, .contact, .works-feature { padding-block: clamp(2.4rem, 8vw, 3.8rem); }
  main h2 { font-size: clamp(1.85rem, 7.2vw, 2.75rem); line-height: 1.09; }
  body:not(.technology) > main > h1 { font-size: clamp(1.65rem, 6.8vw, 2.15rem); }
  main h3 { line-height: 1.18; }
  .section-intro { margin-bottom: 1.15rem; }
  .section-intro > p { font-size: 1rem; }
  .featured-service { border: 0; background: #21392d; color: var(--cream); }
  .featured-service .card-body :is(p, a) { color: #eef1e9; }
  .featured-service .card-body a { color: #f0d6a0; }
  .card, .work-card, .work-tile, .contact-grid { border-radius: var(--ui-radius); }
  .card-body, .work-card-copy { padding: 1rem 1.05rem 1.12rem; }
  .card-body p { margin: .55rem 0 .78rem; }
  .service-links { gap: .45rem .9rem; }
  #services .cards > .card {
    display: grid;
    grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr);
    background: #fffefa;
  }
  #services .cards > .card > img { height: 100%; min-height: 7.25rem; aspect-ratio: auto; }
  #services .cards .card-body { padding: .8rem; min-width: 0; }
  #services .cards .card-body h3 { font-size: clamp(1.06rem, 4vw, 1.38rem); }
  #services .cards .card-body p { font-size: .92rem; }
  #services .cards .card-body a { font-size: .9rem; }
  .work-tiles { gap: .65rem; }
  .work-tile img { aspect-ratio: 1.25; }
  .work-tile span { font-size: .89rem; }
  .tech-hero, .tech-content { padding-block: clamp(1.6rem, 6vw, 3.5rem); }
  .tech-hero h1 { font-size: clamp(2.12rem, 8.5vw, 3.65rem); max-width: none; text-wrap: balance; }
  .tech-hero .intro { margin-top: .9rem; line-height: 1.5; }
  .tech-hero .breadcrumb { margin-bottom: 1.2rem; }
  .tech-photo img, .work-video { border-radius: .8rem; }
  .guide-cta { padding-block: 2rem; }
  .guide-cta .shell { display: grid; gap: .78rem; }
  .guide-cta .shell > .button, .contact-action > .button { width: 100%; }
}
