:root {
  color-scheme: dark;
  font: 100%/1.6 Arial, sans-serif;
  background: #080808;
  color: #f5f5f5;
}
* { box-sizing: border-box; }
body, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.shell { width: min(1100px, calc(100% - 2.5rem)); margin-inline: auto; }
.brand { display: block; margin: 0 auto; padding-block: clamp(1rem, 4vw, 3rem); }
.brand img { width: 100%; height: auto; max-height: 175px; object-fit: contain; }
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem clamp(.9rem, 5vw, 4rem);
  padding-block: 1.2rem;
  border-bottom: 1px solid #444;
}
nav a { text-transform: uppercase; letter-spacing: .13em; font-weight: 800; text-decoration: none; }
nav a {
  position: relative;
  padding: .45rem .65rem;
  border-radius: .25rem;
}
nav a::after {
  content: "";
  position: absolute;
  inset: auto .65rem .22rem;
  height: 2px;
  background: #bdd5e8;
  transform: scaleX(0);
  transform-origin: left;
}
nav a[aria-current="page"]::after,
nav a:hover::after,
nav a:focus-visible::after { transform: scaleX(1); }
nav a:hover, nav a:focus-visible { background: #26323b; color: #e6f4ff; }
nav a:active { background: #bdd5e8; color: #101820; }

@media (prefers-reduced-motion: no-preference) {
  nav a { transition: background-color 180ms ease, color 180ms ease; }
  nav a::after { transition: transform 220ms ease-out; }
  html { scroll-behavior: smooth; }
}
.skip { position: absolute; top: .5rem; left: .5rem; transform: translateY(-200%); }
.skip:focus { transform: none; background: #111; padding: .5rem; }
:focus-visible { outline: 2px solid #f5f5f5; outline-offset: 5px; }
h1, h2 { line-height: 1.1; margin-block: 0 .6em; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
p { margin-block: 0 1.25em; }
.intro, .contact { padding: clamp(3rem, 7vw, 5rem) 0; text-align: center; }
.intro p, .contact p { max-width: 62ch; margin-inline: auto; font-size: 1.15rem; }
.contact h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .85rem; }
.button { display: inline-block; border: 1px solid #eee; padding: .65rem 1.15rem; background: #eee; color: #080808; font-weight: 700; text-decoration: none; }
.button.secondary { background: transparent; color: #eee; }
.button:hover { background: #ccc; color: #080808; }
.wide-photo { width: 100%; max-height: 520px; object-fit: cover; }
.story, .gallery-intro { display: grid; grid-template-columns: 1fr 2fr; gap: 2.5rem; align-items: start; margin-block: 4rem; }
.gallery-intro { grid-template-columns: 3fr 2fr; align-items: center; }
.story p, .gallery-intro p { font-size: 1.15rem; }
.page-title { text-align: center; margin: 3rem auto 2.5rem; padding-bottom: 1rem; border-bottom: 1px solid #777; max-width: 12ch; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 4vw, 3rem); margin-bottom: 4rem; }
.grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
figcaption { background: #292929; }
figcaption { padding: 1.25rem; }
.products h2 { font-size: 1.35rem; }
.products p { margin: 0; }
footer { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding-block: 2.5rem; border-top: 1px solid #444; }
footer h2 { font-size: 1.3rem; }
address { font-style: normal; margin-bottom: 1rem; }
.footer-brand { height: auto; margin-bottom: 1rem; }
@media (max-width: 640px) {
  nav a { font-size: .8rem; }
  .grid, .story, .gallery-intro, footer { grid-template-columns: 1fr; }
  .story, .gallery-intro { gap: 1.25rem; margin-block: 2rem; }
}

.home-intro h1 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); margin-bottom: .4em; }
.home-intro .lead { font-size: clamp(1.15rem, 2.6vw, 1.65rem); margin-bottom: 1.5em; }
.home-values { display: grid; gap: clamp(2.5rem, 6vw, 5rem); padding-block: 1rem 4rem; }
.home-values section { width: min(100%, 680px); }
.home-values section:nth-child(even) { justify-self: end; }
.value-number { display: block; font-size: clamp(3.75rem, 9vw, 6rem); font-weight: 800; line-height: 1; }
.home-values section div { padding: .75rem 0 0 clamp(0rem, 5vw, 4rem); }
.home-values h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 500; }
.home-values p { font-size: clamp(1rem, 2vw, 1.25rem); margin-bottom: 0; }
@media (max-width: 640px) {
  .home-values section div { padding-left: 0; }
}

.about-points { padding-inline-start: 1.25rem; margin-block: 0 1.5rem; }
.about-points li + li { margin-top: .75rem; }

.material-card { display: block; height: 100%; text-decoration: none; }
.material-card:hover h2 { text-decoration: underline; }
.material-card span { display: inline-block; margin-top: 1rem; font-weight: 700; }
.material-detail { max-width: 780px; margin: 3rem auto 4rem; }
.material-detail .wide-photo { margin-block: 1.5rem 2.5rem; }
.material-detail dt { font-weight: 700; }
.material-detail dd { margin: 0 0 1rem; }
.material-detail h2 { margin-top: 1.5rem; }
.material-references { font-size: .9rem; }

.services-quote { text-align: center; }
.quote { max-width: 680px; margin: 3rem auto 4rem; }
.quote form { display: grid; gap: 1rem; }
.quote label { display: grid; gap: .3rem; font-weight: 700; }
.quote input, .quote select, .quote textarea {
  width: 100%;
  padding: .65rem;
  border: 1px solid #777;
  color: inherit;
  background: #181818;
  font: inherit;
}
.quote button { justify-self: start; font: inherit; font-weight: 700; cursor: pointer; }
.quote-help { margin-top: 1.25rem; }


.footer-contact { color: #fff; line-height: 1.8; }
.footer-contact h2 { font-size: 1.6rem; font-weight: 400; margin: 0 0 .75rem; }
.footer-contact address, .footer-contact p { margin: 0 0 1.2rem; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover, .footer-contact a:focus-visible { text-decoration: underline; }
.footer-contact .footer-hours { display: flex; flex-wrap: wrap; gap: .25rem 2rem; margin-bottom: 0; }

.office-map { max-width: 366px; }
.office-map iframe { display: block; width: 100%; border: 1px solid #444; }
.office-map a { display: inline-block; margin-top: .35rem; font-size: .9rem; }

@media (prefers-reduced-motion: no-preference) {
  .motion-enter { animation: fade-in 900ms ease-in-out; }

  main h1, main h2 { transition: color 180ms ease; }
  .products article { transition: transform 180ms ease; }
  .button { transition: background-color 180ms ease, color 180ms ease; }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  main h1:hover, main h2:hover { color: #c2d2df; }
  .products article:hover {
    transform: translateY(-4px);
  }
}

@keyframes fade-in {
  from { opacity: .35; }
  to { opacity: 1; }
}

.office-map-dark { width: 100%; height: 240px; }
.office-map iframe[hidden] { display: none; }

.office-map .maplibregl-popup-content { color: #171717; }

.products .material-card { text-align: center; padding: 1rem; }
.products .material-card img { aspect-ratio: 16/9; object-fit: contain; margin-bottom: 1rem; }

.onboarding fieldset { margin: 1.5rem 0; padding: 1rem; border: 1px solid #777; min-width: 0; }
.onboarding legend { font-weight: 700; }
.onboarding label { margin-bottom: .75rem; }
@media print {
  body:has(.onboarding) { color-scheme: light; background: white; color: black; }
  body:has(.onboarding) > :is(header, footer, .skip), .onboarding-print { display: none; }
  .onboarding { margin: 0; max-width: none; }
  .onboarding label { break-inside: avoid; }
  .onboarding input, .onboarding select { color: black; background: white; }
}

.onboarding-print-logo { display: none; }
@media print {
  .onboarding-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; break-inside: avoid; }
  .onboarding-heading h1 { margin: 0; }
  .onboarding-print-logo { display: block; flex: none; width: 32mm; height: auto; }
}

.onboarding-signoff { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem; break-inside: avoid; }
.onboarding-signature { flex: 1 1 10rem; min-height: 4rem; border-bottom: 1px solid currentColor; }
.onboarding-stamp { flex: 0 1 65mm; }
.onboarding-stamp-box { min-height: 40mm; margin-top: .35rem; border: 1px solid currentColor; }
