:root {
  color-scheme: light;
  --paper: #f7f8f5;
  --dark: #102d33;
  --teal: #006170;
  --orange: #ff8634;
  font-family: system-ui, sans-serif;
  background: var(--paper);
  color: var(--dark);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.wrap { width: min(100% - clamp(2rem, 9vw, 9rem), 77rem); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 5; top: 1rem; left: 1rem; padding: .6rem 1rem; background: white; }
.site-header { position: absolute; inset: 0 0 auto; z-index: 2; }
.site-header nav { display: flex; justify-content: flex-end; gap: 1.6rem; padding-block: 1.25rem; border-bottom: 1px solid #00617028; }
.site-header a { font-size: .95rem; font-weight: 675; text-decoration: none; }
.site-header a:hover { text-decoration: underline; text-underline-offset: .25em; }
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 5rem 1rem 7rem;
}
.hero-image, .factory-image { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-image {
  background: linear-gradient(180deg, var(--paper) 4%, #f7f8f5fd 22%, #f7f8f5de 49%, #f7f8f529 76%, #102d3340),
    url('terminal.webp') center 59% / cover no-repeat;
}
.brand {
  position: relative;
  display: grid;
  grid-template-columns: 21.35% minmax(0, 1fr);
  align-items: start;
  gap: 4.2%;
  width: min(86vw, 39rem);
}
.shield, .wordmark { display: block; width: 100%; height: auto; }
.tagline {
  margin-top: clamp(.55rem, 1.8vw, 1rem);
  color: #123d44;
  font-size: clamp(.85rem, 2.15vw, 1.18rem);
  font-weight: 740;
  letter-spacing: .075em;
  line-height: 1.35;
}
.explore {
  position: absolute;
  bottom: clamp(1.3rem, 5vh, 3.5rem);
  left: 50%;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .65rem .95rem;
  background: var(--dark);
  color: #fff;
  font-size: .9rem;
  font-weight: 680;
  text-decoration: none;
  white-space: nowrap;
}
.explore:hover { background: var(--teal); }
@media (prefers-reduced-motion: no-preference) {
  .shield { animation: shield-arrival 1.9s cubic-bezier(.2, .75, .25, 1) both; }
  .wordmark { animation: wordmark-arrival 2.85s 1.35s cubic-bezier(.32, .12, .25, 1) both; }
  .tagline { animation: caption-arrival 1.4s 4.1s ease-out both; }
}
@keyframes shield-arrival {
  from { opacity: 0; transform: translateY(15px) scale(.9); }
  to { opacity: 1; transform: none; }
}
@keyframes wordmark-arrival {
  from { opacity: .1; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(0); }
}
@keyframes caption-arrival {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.services { position: relative; --step: 85vh; --step: 85svh; background: var(--dark); }
.services-stage {
  position: relative;
  display: grid;
  align-items: center;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: clamp(2.5rem, 7vw, 5rem);
  background: var(--dark);
  color: #fff;
}
.factory-image {
  background: linear-gradient(90deg, #102d33 0%, #102d33ef 25%, #102d3394 66%, #102d335b),
    linear-gradient(0deg, #102d33b8, transparent 45%),
    url('factory.webp') center / cover no-repeat;
}
.stage-layout { display: grid; min-height: 100%; grid-template-rows: 1fr auto; }
.service-slides { display: grid; align-items: center; gap: 3rem; padding-block: 1rem 2rem; }
.service-slide { grid-column: 1; }
.service-slide h2 {
  width: min(100%, 14ch);
  font-size: clamp(2.7rem, 7.8vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -.075em;
  line-height: .96;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.service-slide h2 em { color: var(--orange); font-style: normal; }
.service-slide p { max-width: 42ch; margin-top: clamp(1rem, 2.8vw, 1.65rem); font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.6; color: #eaf3f2; }
.service-nav { display: flex; flex-wrap: wrap; gap: .95rem clamp(1rem, 4vw, 2.5rem); border-top: 1px solid #ffffff42; padding-top: .85rem; }
.service-nav a { font-size: .91rem; font-weight: 660; text-underline-offset: .25em; text-decoration: none; }
.service-nav a:hover { text-decoration: underline; }
.service-nav a[aria-current="location"] { color: var(--orange); text-decoration: underline; }
.services.is-enhanced::after { content: ''; display: block; height: calc(var(--slide-count) * var(--step)); }
.is-enhanced .services-stage { position: sticky; top: 0; height: 100vh; height: 100svh; }
.is-enhanced .service-slides { gap: 0; }
.is-enhanced .service-slide {
  grid-area: 1 / 1;
  opacity: var(--slide-opacity, 0);
  transform: translateY(var(--slide-shift, 0px));
  pointer-events: none;
}
.is-enhanced .service-slide[data-current] { pointer-events: auto; }
.service-anchor { position: absolute; top: calc(var(--step) * var(--anchor-index)); left: 0; width: 1px; height: 1px; pointer-events: none; }
.site-footer { padding-block: clamp(2.5rem, 6vw, 5rem); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1.5rem 2rem; }
.site-footer h2 { margin-bottom: .4rem; font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: -.04em; }
.site-footer address { font-style: normal; font-size: 1.05rem; }
.directions { display: inline-block; margin-top: .65rem; font-size: .95rem; font-weight: 700; text-underline-offset: .25em; }
.office-contacts { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 0; }
.office-contacts dt { font-weight: 700; margin-bottom: .35rem; }
.office-contacts dd { margin: 0; }
.office-contacts a { color: var(--teal); overflow-wrap: anywhere; text-underline-offset: .25em; }
@media (max-width: 41rem) {
  .hero-image { background-position: center, 52% center; }
  .factory-image { background-position: center, center, 56% center; }
  .service-slide h2 { font-size: clamp(2.45rem, 9.6vw, 4rem); }
  .service-nav { gap: .65rem 1.1rem; }
}
@media (max-height: 33rem) {
  .services-stage { padding-block: 1rem; }
  .service-slides { padding-block: .25rem .75rem; }
  .service-slide h2 { font-size: clamp(2rem, 10vh, 4.8rem); }
  .service-slide p { font-size: 1rem; margin-top: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
