:root {
  --cover-paper: #fff;
  --cover-ink: #152236;
  --cover-text: #43556b;
  --cover-accent: #0658c5;
  --cover-rule: #d8e0e8;
  --cover-width: min(91%, 1344px);
  --header-row: 70px;
  --screen-room: calc(100svh - var(--header-height));
  --project-nav-height: clamp(105px, 15.35svh, 165px);
}

@media (prefers-reduced-motion: no-preference) {
  :root { scroll-behavior: smooth; }
}

.site-head {
  background: var(--cover-paper);
  border-bottom-color: var(--cover-rule);
}

.head-inner, .cover-shell, .services > .wrap {
  width: var(--cover-width);
}

.head-inner > .contact-btn {
  color: var(--cover-ink);
  border: 1px solid #b9c8d7;
  background: transparent;
}

.head-inner > .contact-btn:hover {
  color: var(--cover-accent);
  border-color: var(--cover-accent);
}

.hero.cover {
  display: block;
  min-height: max(0px, calc(var(--screen-room) - var(--project-nav-height)));
  padding: 0;
  color: var(--cover-ink);
  background: var(--cover-paper);
  border-bottom: 0;
}

.cover-shell {
  display: grid;
  min-height: inherit;
}

.cover-main {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  gap: clamp(22px, 3.5vw, 66px);
  align-items: center;
  padding-block: clamp(20px, 3.2svh, 44px);
}

.cover-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(5px, .8vw, 10px);
  color: var(--cover-text);
  font-size: clamp(.74rem, 1vw, .91rem);
  letter-spacing: .035em;
}

.cover-kicker::before {
  width: 20px;
  height: 2px;
  background: var(--cover-accent);
  content: "";
}

.cover h1 {
  margin-top: clamp(16px, 2.3vw, 32px);
  font-size: clamp(2.6rem, 4.65vw, 5.2rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.067em;
}

.cover h1 span { display: block; }
.cover h1 em { color: var(--cover-accent); }

.cover-intro {
  max-width: 23em;
  margin-top: clamp(16px, 2.05vw, 28px);
  color: var(--cover-text);
  font-size: clamp(.96rem, 1.24vw, 1.125rem);
  line-height: 1.8;
}

.cover-actions {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2vw, 27px);
  margin-top: clamp(17px, 2.3vw, 32px);
}

.cover-primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 31px);
  min-height: 51px;
  padding: 11px clamp(15px, 1.6vw, 24px);
  color: white;
  background: var(--cover-accent);
  font-size: .98rem;
  font-weight: 700;
  white-space: nowrap;
}

.cover-primary:hover { background: #064998; }
.cover-primary span { font-size: 1.07rem; }

.cover-secondary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--cover-ink);
  font-size: .92rem;
  text-decoration: underline;
  text-underline-offset: .35em;
  white-space: nowrap;
}

.cover-secondary:hover { color: var(--cover-accent); }

.cover-terms {
  margin-top: 10px;
  color: var(--cover-text);
  font-size: .77rem;
}

.cover-figure {
  --art-height: clamp(234px, calc(100svh - 310px), 562px);
  min-width: 0;
}

.cover-diagram {
  position: relative;
  width: min(100%, calc(var(--art-height) * 4 / 3));
  margin-inline: auto;
  padding-top: 29px;
  isolation: isolate;
}

.cover-diagram::before {
  position: absolute;
  z-index: -1;
  inset: -24px -12px -13px;
  background: radial-gradient(circle, #7894b24d .7px, transparent 1px) 7px 7px / 22px 22px;
  mask-image: radial-gradient(ellipse at 56% 44%, #000 0%, #000b 28%, transparent 72%);
  content: "";
}

.cover-part {
  width: 100%;
  height: auto;
}

.cover-annotations {
  position: absolute;
  inset: 0 0 auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cover-annotations li {
  --trace: #65849f;
  position: absolute;
  left: var(--phase-x);
  top: var(--phase-y, 7px);
  transform: translateX(-50%);
  color: #3d526a;
  font-size: clamp(.64rem, 1vw, .78rem);
  line-height: 1.2;
  white-space: nowrap;
}

.cover-annotations li::after {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  width: 1px;
  height: var(--trace-length, 21px);
  background: linear-gradient(var(--trace), transparent);
  content: "";
}

.cover-figure--radial .cover-diagram { padding-block: 25px 12px; }
.cover-figure--radial .cover-annotations { inset: 0; }
.cover-figure--radial .cover-phase--physical { --phase-x: 17%; --phase-y: 27%; --trace-length: 29px; }
.cover-figure--radial .cover-phase--scan { --phase-x: 84%; --phase-y: 12%; --trace-length: 20px; --trace: #087cb8; color: #0d669a; }
.cover-figure--radial .cover-phase--cad { --phase-x: 80%; }
.cover-figure--radial .cover-phase--inspection { --phase-x: 42%; }

.cover-figure--radial :is(.cover-phase--cad, .cover-phase--inspection) {
  top: auto;
  bottom: 3px;
}

.cover-figure--radial :is(.cover-phase--cad, .cover-phase--inspection)::after {
  top: auto;
  bottom: calc(100% + 4px);
  height: 16px;
  background: linear-gradient(transparent, var(--trace));
}

.cover-figure--supplied .cover-phase--physical { --phase-x: 50%; --phase-y: 5px; --trace-length: 16px; }
.cover-figure--supplied .cover-phase--scan { --phase-x: 17%; --phase-y: 24%; --trace-length: 22px; }
.cover-figure--supplied .cover-phase--cad { --phase-x: 50%; }
.cover-figure--supplied .cover-annotations .cover-phase--inspection {
  --phase-x: 83%;
  top: 24%;
  bottom: auto;
}

.cover-figure--supplied .cover-phase--inspection::after {
  top: calc(100% + 5px);
  bottom: auto;
  height: 22px;
  background: linear-gradient(var(--trace), transparent);
}

.cover-figure-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: min(92%, calc(var(--art-height) * 1.18));
  margin: -3px auto 0;
  color: #465c72;
  font-size: .71rem;
}

.cover-legend {
  display: inline-flex;
  margin-left: 6px;
  vertical-align: .2em;
}

.cover-legend::before {
  width: clamp(23px, 2.65vw, 39px);
  height: 3px;
  background: linear-gradient(to right, #2047b5, #1a94cf, #20c4ae, #5bc766, #c4d54c, #f8aa3b, #da4b37);
  content: "";
}

.cover-paths {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 3fr);
  align-items: center;
  height: var(--project-nav-height);
  border-block: 1px solid var(--cover-rule);
}

.cover-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
}

.cover-paths .cover-path-note {
  display: block;
  margin-bottom: 5px;
  color: #475c72;
  font-size: clamp(.65rem, .84vw, .78rem);
  font-weight: 480;
  letter-spacing: .045em;
}

.cover-path-heading p {
  font-size: clamp(1rem, 1.54vw, 1.4rem);
  font-weight: 720;
  letter-spacing: -.02em;
}

.cover-paths .cover-path {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 65px;
  gap: 7px;
  overflow: visible;
  padding-inline: clamp(15px, 2.13vw, 32px);
  border: 0;
  border-left: 1px solid var(--cover-rule);
  border-radius: 0;
  background: transparent;
  font-size: clamp(.82rem, 1.29vw, 1.16rem);
  white-space: nowrap;
}

.cover-paths .cover-path:is(:hover, :focus-visible) {
  color: var(--cover-accent);
  background: #f6f9fc;
}

.cover-paths .cover-path[aria-selected="true"],
#services:not([data-active]):not(:has(.service-anchor:target)) #tab-capture,
#services:not([data-active]) #capture:target ~ .cover-paths #tab-capture,
#services:not([data-active]) #verify:target ~ .cover-paths #tab-verify,
#services:not([data-active]) #develop:target ~ .cover-paths #tab-develop {
  color: var(--cover-accent);
  background: transparent;
  border-color: var(--cover-rule);
}

.cover-path[aria-selected="true"]::after,
#services:not([data-active]):not(:has(.service-anchor:target)) #tab-capture::after,
#services:not([data-active]) #capture:target ~ .cover-paths #tab-capture::after,
#services:not([data-active]) #verify:target ~ .cover-paths #tab-verify::after,
#services:not([data-active]) #develop:target ~ .cover-paths #tab-develop::after {
  position: absolute;
  bottom: 0;
  left: clamp(15px, 2.13vw, 32px);
  width: 25px;
  height: 2px;
  background: var(--cover-accent);
  content: "";
}

.cover-path-arrow {
  color: var(--cover-accent);
  font-size: 1rem;
}

.services.panel {
  grid-template-rows: auto 1fr;
  align-items: start;
  padding: 0;
  min-height: var(--screen-room);
  background: var(--cover-paper);
}

.services .service-content {
  padding-block: clamp(20px, 3.6svh, 36px) 22px;
}

.services .service-heading {
  margin-bottom: clamp(13px, 2.25svh, 22px);
}

.services .service-heading h2 {
  font-size: clamp(1.52rem, 2.5vw, 2.26rem);
}

.services .service-pic {
  height: clamp(124px, calc(100svh - 475px), 365px);
  overflow: hidden;
}

.services .service-pic img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.services .service-copy h3 {
  font-size: clamp(1.15rem, 1.65vw, 1.55rem);
  line-height: 1.35;
}

.services .service-link:hover .service-copy h3 { color: var(--blue); }

@media (min-width: 801px) and (max-height: 650px) {
  :root { --project-nav-height: 93px; }
  .cover-main { padding-block: 11px; }
  .cover h1 { margin-top: 19px; }
}

@media (max-width: 800px) {
  :root {
    --header-row: 58px;
    --cover-width: calc(100% - 36px);
    --project-nav-height: 94px;
  }

  .head-inner { gap: 12px; }
  .head-inner > .contact-btn { padding: 6px 10px; font-size: .77rem; }
  .site-head .brand img { width: 31px; height: 31px; }
  .site-head .brand strong { font-size: 1rem; }
  .site-head .brand small { font-size: .54rem; }

  .cover-main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 19px;
    padding-block: 25px 15px;
  }

  .cover h1 { font-size: clamp(2rem, 10.35vw, 3.45rem); margin-top: 11px; }
  .cover-intro { margin-top: 10px; font-size: .92rem; line-height: 1.62; }
  .cover-actions { margin-top: 12px; }
  .cover-primary { min-height: 43px; padding-block: 8px; font-size: .89rem; }
  .cover-secondary { min-height: 43px; font-size: .83rem; }
  .cover-terms { margin-top: 6px; font-size: .71rem; }
  .cover-figure { --art-height: clamp(200px, 32svh, 367px); width: 100%; max-width: 560px; justify-self: center; }
  .cover-diagram { padding-top: 25px; }
  .cover-diagram::before { background-size: 16px 16px; }
  .cover-annotations { display: flex; justify-content: space-around; }
  .cover-annotations li { position: relative; inset: auto; transform: none; font-size: .69rem; }
  .cover-annotations li::after { height: 8px; }
  .cover-figure-caption { font-size: .66rem; }
  .cover-figure--radial .cover-diagram { padding-block: 18px 8px; }
  .cover-figure--radial .cover-annotations { display: block; }
  .cover-figure--radial .cover-annotations li {
    position: absolute;
    left: var(--phase-x);
    right: auto;
    top: 2px;
    bottom: auto;
    transform: translateX(-50%);
  }
  .cover-figure--radial .cover-annotations :is(.cover-phase--cad, .cover-phase--inspection) { top: auto; bottom: 2px; }
  .cover-figure--radial :is(.cover-phase--cad, .cover-phase--inspection)::after { height: 7px; }
  .cover-figure--radial .cover-figure-caption { margin-top: 4px; }
  .cover-figure--supplied .cover-annotations :is(.cover-phase--scan, .cover-phase--inspection) { top: 19%; bottom: auto; }

  .cover-paths { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; padding-bottom: 5px; }
  .cover-path-heading { padding-block: 7px 3px; }
  .cover-path-heading p { font-size: .94rem; }
  .cover-paths .cover-path-note { margin-bottom: 3px; font-size: .65rem; letter-spacing: 0; }
  .cover-paths .cover-path { min-height: 51px; padding-inline: 7px; gap: 3px; font-size: clamp(.72rem, 3.2vw, .86rem); }
  .cover-paths .cover-path:first-child { padding-left: 0; border-left: 0; }
  .cover-paths .cover-path:last-child { padding-right: 0; }
  .cover-paths .cover-path::after { left: 7px; }
  .cover-paths .cover-path:first-child::after { left: 0; }
  .cover-path-arrow { font-size: .78rem; }

  .services .service-content { padding-block: 20px 22px; }
  .services .service-heading { margin-bottom: 14px; }
  .services .pair { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .services .service-link { display: grid; grid-template-columns: 37% minmax(0, 1fr); align-items: stretch; }
  .services .service-pic { height: 100%; min-height: 100px; }
  .services .service-copy { display: flex; align-items: flex-start; padding: 10px 11px; border: 0; border-left: 1px solid var(--edge); }
  .services .service-copy h3 { font-size: 1.05rem; }
  .services .service-copy p { font-size: .83rem; line-height: 1.5; }
  .services .service-more { padding-top: 6px; }
}

@media (max-width: 540px) and (min-height: 760px) {
  .services .service-link { display: flex; }
  .services .service-pic { height: clamp(128px, calc((100svh - 520px) / 2), 183px); }
  .services .service-copy { border-left: 0; border-top: 1px solid var(--edge); }
}

@media (max-width: 480px) and (max-height: 700px) {
  :root { --cover-width: calc(100% - 28px); --project-nav-height: 88px; }
  .cover-main { gap: 9px; padding-block: 10px 7px; }
  .cover h1 { margin-top: 8px; font-size: clamp(1.9rem, 9.25vw, 2.4rem); }
  .cover-intro { margin-top: 7px; }
  .cover-actions { margin-top: 9px; }
  .cover-figure { --art-height: clamp(154px, 26.6svh, 190px); }
  .cover-diagram { padding-top: 21px; }
}
