.visual-inspection-page .main-nav .vi-nav-contact { display: none; }
@media (640px <= width <= 1120px) {
  .visual-inspection-page { --header-h: 116px; }
  .visual-inspection-page .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 68px 47px;
    gap: 0 16px;
  }
  .visual-inspection-page .header-actions { grid-area: 1 / 2; }
  .visual-inspection-page .main-nav,
  .visual-inspection-page .main-nav.is-open {
    display: flex;
    position: static;
    grid-area: 2 / 1 / 3 / 3;
    flex-direction: row;
    align-items: center;
    gap: clamp(12px, 3vw, 28px);
    padding: 0;
    border: 0;
    box-shadow: none;
  }
  .visual-inspection-page .main-nav a { padding: 10px 4px; border: 0; }
  .visual-inspection-page .nav-toggle { display: none; }
}
@media (width < 640px) {
  .visual-inspection-page .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: auto;
    margin-left: 0;
    padding-inline: 6px;
    font: inherit;
    font-size: .875rem;
  }
  .visual-inspection-page .nav-toggle svg { width: 20px; height: 20px; }
  .visual-inspection-page .header-actions > .btn { display: none; }
  .visual-inspection-page .main-nav .vi-nav-contact { display: block; }
  .visual-inspection-page .main-nav { max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
}
.vi {
  --vi-green: #14614c;
  --vi-tint: #eef7f2;
  --vi-line: #cbded4;
  --vi-frame: #f2f6f4;
  --vi-shadow: 0 20px 55px rgba(18, 46, 34, .10);
}
[data-theme='dark'] .vi {
  --vi-green: #9de5c6;
  --vi-tint: #182720;
  --vi-line: #345043;
  --vi-frame: #1e2924;
  --vi-shadow: 0 20px 55px rgba(0, 0, 0, .24);
}
.overseas-site .vi .container { width: min(1100px, calc(100% - 80px)); }
.vi-opening { background: var(--surface); }
.vi-hero {
  max-width: 840px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(2.4rem, 4vw, 3.8rem) 0 clamp(1.6rem, 2.8vw, 2.3rem);
}
.vi-hero h1 {
  max-width: 17ch;
  margin: 0 auto;
  font-size: clamp(2.35rem, 5.25vw, 4.6rem);
  letter-spacing: -.052em;
  line-height: 1.04;
  text-wrap: balance;
}
.vi-kicker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem .65rem;
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: .875rem;
}
.vi-kicker a, .vi-eyebrow, .vi-index { color: var(--vi-green); font-weight: 700; }
.vi-kicker a:hover, .vi-text-link:hover { text-decoration-thickness: 2px; }
.vi-kicker a { text-decoration: underline; text-underline-offset: .2em; }
.vi-lead {
  max-width: 61ch;
  margin: 1.15rem auto 1.4rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.6;
  text-wrap: pretty;
}
.vi-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.vi-hero .vi-actions { justify-content: center; }
.vi .vi-actions .btn { padding-inline: 1.2rem; }
.vi-text-link {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  min-height: 44px;
  color: var(--vi-green);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.vi-figure { min-width: 0; margin: 0; }
.vi-figure a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--surface-soft);
}
.vi-figure a:hover { border-color: var(--vi-green); }
.vi-figure img { display: block; width: 100%; height: auto; }
/* Frame the original screenshot around the annotation tools and canvas. */
.vi-hero-visual img, .vi-figure--annotate img { margin-top: -6.5%; }
.vi-figure figcaption { color: var(--muted); font-size: .82rem; margin-top: .65rem; }
.vi-hero-visual {
  background: var(--vi-frame);
  border: 1px solid var(--vi-line);
  border-radius: 18px;
  padding: clamp(.35rem, 1.15vw, .9rem);
  box-shadow: var(--vi-shadow);
}
.vi-hero-visual a { border-radius: 11px; }
.vi-hero-visual figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .2rem 1rem;
  margin: .65rem .25rem .1rem;
}
.vi-team {
  margin-block: clamp(2.7rem, 7vw, 6.25rem);
  padding: clamp(1.5rem, 5vw, 3.75rem);
  border: 1px solid var(--vi-line);
  border-radius: 18px;
  background: var(--vi-tint);
}
.vi-eyebrow { margin: 0 0 .65rem; font-size: .875rem; }
.vi-team h2, .vi-process h2, .vi-close h2, .vi-step h3 {
  margin: 0 0 .8rem;
  letter-spacing: -.037em;
  line-height: 1.12;
  text-wrap: balance;
}
.vi-team h2, .vi-process h2, .vi-close h2 { font-size: clamp(1.85rem, 3.5vw, 3.15rem); }
.vi-team h2 { max-width: 24ch; }
.vi-roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem clamp(1.25rem, 4vw, 3.5rem);
  margin-top: clamp(1.45rem, 3.3vw, 2.7rem);
}
.vi-role { border-top: 1px solid var(--vi-line); padding-top: .9rem; }
.vi-role h3 { font-size: 1.08rem; margin: 0 0 .3rem; }
.vi-role p, .vi-step-copy > p:not(.vi-step-label), .vi-close p {
  max-width: 52ch;
  color: var(--muted);
  margin: 0 0 .7rem;
  line-height: 1.65;
}
.vi-role p, .vi-close p { margin-bottom: 0; }
.vi-process, .vi-step { scroll-margin-top: 6.5rem; }
.vi-process-head { padding-bottom: 1.35rem; }
.vi-process h2 { max-width: 24ch; }
.vi-workflow ol {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .6rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}
.vi-workflow a {
  display: flex;
  align-items: center;
  gap: .48rem;
  min-height: 44px;
  padding: .38rem .9rem;
  border: 1px solid var(--rule);
  border-radius: 7px;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 600;
}
.vi-workflow a:hover { background: var(--vi-tint); border-color: var(--vi-green); }
.vi-index { font: 700 .78rem/1.4 ui-monospace, monospace; }
.vi-step {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 1.3rem clamp(1.8rem, 5vw, 4.75rem);
  align-items: center;
  padding-block: clamp(2.35rem, 5.5vw, 4.5rem);
  border-top: 1px solid var(--rule);
}
.vi-step-label {
  display: flex;
  gap: .55rem;
  align-items: center;
  margin: 0 0 .55rem;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 650;
}
.vi-step-label .vi-index {
  border-radius: 5px;
  background: var(--vi-tint);
  padding: .3rem .45rem;
}
.vi-step h3 { font-size: clamp(1.55rem, 3vw, 2.5rem); }
.vi-figure--train { width: min(100%, 31rem); justify-self: center; }
.vi-figure--export { width: min(100%, 20rem); justify-self: center; }
.vi-close {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  align-items: center;
  gap: 1.4rem 2.5rem;
  margin-block: .5rem clamp(2.7rem, 6vw, 5rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--vi-line);
  border-radius: 18px;
  background: var(--vi-tint);
}
@media (min-width: 801px) {
  .vi-step:nth-of-type(even) { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-areas: "visual copy"; }
  .vi-step:nth-of-type(even) .vi-step-copy { grid-area: copy; }
  .vi-step:nth-of-type(even) .vi-figure { grid-area: visual; }
}
@media (max-width: 800px) {
  .overseas-site .vi .container { width: min(620px, calc(100% - 32px)); }
  .vi-step, .vi-close { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .vi-roles { grid-template-columns: minmax(0, 1fr); }
  .vi-hero-visual { border-radius: 12px; }
  .vi-hero-visual a { border-radius: 7px; }
  .vi .vi-actions .btn { padding-inline: .85rem; }
}
