:root {
  color-scheme: light;
  --ink: #132732;
  --muted: #43565e;
  --navy: #101f2a;
  --paper: #f7f8f6;
  --white: #fff;
  --rule: #ccd7d6;
  --accent: #b7d8ce;
  --deep-teal: #22564f;
  --max-width: 1176px;
  --gutter: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 17px/1.6 "Aptos", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body, button { font-family: "Aptos", "Segoe UI", Arial, sans-serif; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }

h1, h2, h3 {
  font-weight: 650;
  letter-spacing: -.042em;
  line-height: 1.05;
  text-wrap: balance;
}

h2 { font-size: clamp(36px, 4.5vw, 59px); }
h3 { font-size: clamp(25px, 2.7vw, 35px); }
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid #388076;
  outline-offset: 5px;
}

.hero :focus-visible, .contact :focus-visible {
  outline-color: #e4f6e8;
}

.wrap {
  width: min(var(--max-width), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.eyebrow {
  color: var(--deep-teal);
  font-size: .73rem;
  font-weight: 720;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--white);
  transform: translateY(calc(-100% - 12px));
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid #eaeeec;
  background: var(--white);
}

.header-inner {
  display: flex;
  min-height: 80px;
  justify-content: space-between;
  align-items: center;
  gap: clamp(12px, 2.15vw, 30px);
}

.brand { flex: 0 0 auto; margin-inline-end: auto; }
.brand img { width: clamp(148px, 17vw, 190px); height: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.45vw, 36px);
}

.site-nav a, .footer-inner a {
  font-size: .94rem;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: .23em;
}

.site-nav a:hover, .footer-inner a:hover { text-decoration: underline; }

.site-nav .nav-contact {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 13px;
  padding: 8px 15px;
  border: 1px solid #9faeae;
  border-radius: 3px;
  white-space: nowrap;
}

.site-nav .nav-contact:hover {
  border-color: var(--ink);
  color: var(--white);
  background: var(--ink);
  text-decoration: none;
}

.header-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.language-switch {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  padding: 2px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-size: .79rem;
  font-weight: 650;
  line-height: 1;
}

.language-switch a, .language-switch span {
  display: grid;
  min-width: 32px;
  min-height: 32px;
  place-items: center;
  border-radius: 2px;
  text-decoration: none;
}

.language-switch [aria-current="page"] { color: white; background: var(--navy); }
.language-switch a:hover { background: #eaf0ec; }

.nav-toggle { display: none; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero-photo {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 51%;
  overflow: hidden;
  background: #29434e;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 52%;
  filter: saturate(.72);
}

.hero-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, var(--navy), rgb(16 31 42 / 72%) 23%, transparent 64%),
              linear-gradient(0deg, rgb(16 31 42 / 30%), rgb(16 31 42 / 6%) 64%);
}

.hero-inner {
  position: relative;
  display: flex;
  min-height: clamp(435px, 41vw, 570px);
  align-items: center;
  padding-block: 82px;
}

.hero-copy { width: 64%; max-width: 780px; }
.hero .eyebrow, .contact .eyebrow { color: var(--accent); }

.hero h1 {
  margin-top: 22px;
  font-size: clamp(48px, 5.2vw, 76px);
  line-height: .99;
  font-weight: 640;
  letter-spacing: -.062em;
  text-wrap: wrap;
}

.hero h1 span { display: block; color: var(--accent); }
.about h2 span { color: #80b7a9; }

.hero-intro {
  max-width: 570px;
  margin-top: 28px;
  color: #e1e9e9;
  font-size: clamp(17px, 1.6vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}

.button-cream { color: #132a30; background: #e7f2eb; }
.button-cream:hover { background: #c8e3d8; }

.inline-link {
  font-size: .94rem;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: .26em;
}

.inline-link span { display: inline-block; margin-left: 4px; }

.section { padding-block: clamp(66px, 8.5vw, 122px); }

.section-head {
  display: grid;
  grid-template-columns: minmax(110px, .34fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 64px);
}

.section-head > .eyebrow {
  width: fit-content;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 2px solid #89a9a2;
}

.section-head h2 + p {
  max-width: 590px;
  margin-top: 19px;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 20px);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(22px, 4vw, 62px);
  margin-top: 42px;
}

.service {
  padding: clamp(24px, 3vw, 39px);
  border-top: 2px solid #315e58;
  background: #eaf0ec;
}

.service h3 { margin-bottom: 14px; }
.service > p { max-width: 450px; color: var(--muted); }

.service dl {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #becdc7;
}

.service dt {
  margin-bottom: 6px;
  color: var(--deep-teal);
  font-size: .82rem;
  font-weight: 700;
}

.service dd { max-width: 435px; }

.work { background: var(--white); }

.weight-case {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 5vw, 72px);
  margin-top: 40px;
  padding-block: 27px 30px;
  border-block: 1px solid var(--rule);
}

.weight-case h3 { margin: 8px 0 16px; }
.weight-case-copy > p:not(.eyebrow) { color: var(--muted); }
.weight-case-copy > p + p { margin-top: 10px; }

.weight-register { min-width: 0; }

.register-window {
  overflow: hidden;
  border: 1px solid #becdcf;
  border-radius: 6px;
  background: #f4f6f7;
  box-shadow: 0 6px 16px rgb(22 46 58 / 8%);
}

.register-top, .register-context {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 7px 12px;
}

.register-top {
  align-items: center;
  padding: 11px 15px;
  color: #f2f6f7;
  background: var(--navy);
}

.register-top strong, .register-top span, .register-context strong, .register-context span { display: block; }
.register-top strong { font-size: .94rem; line-height: 1.25; }
.register-top span { color: #c6d6d9; font-size: .72rem; }
.register-top > span { font: .72rem Consolas, monospace; letter-spacing: .04em; }

.register-main { padding: clamp(8px, 2vw, 15px); }
.register-context { align-items: end; padding: 3px 1px 11px; }
.register-context strong { color: var(--ink); font-size: .94rem; line-height: 1.2; }
.register-context span { margin-top: 3px; color: var(--muted); font-size: .71rem; }
.register-delta { text-align: right; }
.register-delta strong { font-size: clamp(.85rem, 2vw, 1.15rem); font-variant-numeric: tabular-nums; white-space: nowrap; }

.register-table {
  width: 100%;
  border: 1px solid #ccd8da;
  border-collapse: collapse;
  color: var(--ink);
  background: white;
  font-size: clamp(.67rem, 1.05vw, .81rem);
  line-height: 1.35;
}

.register-table th, .register-table td {
  padding: 7px clamp(4px, .75vw, 11px);
  border-top: 1px solid #dae3e5;
  text-align: left;
}

.register-table td, .register-table th:not(:first-child) { text-align: right; white-space: nowrap; }
.register-table td { font-variant-numeric: tabular-nums; }
.register-table thead, .register-table tfoot { background: #e7eef0; }
.register-table thead small { font-size: .85em; font-weight: 450; }
.register-table tbody th { font-weight: 600; }
.register-table .register-highlight { background: #eff5f4; }
.register-table tfoot td { font-weight: 700; }
.register-code { display: block; color: var(--muted); font: .6rem/1.35 Consolas, monospace; }

.weight-register figcaption { margin-top: 8px; color: var(--muted); font-size: .75rem; }

.system-cases { margin-top: clamp(42px, 6vw, 76px); }
.system-cases h3 { margin-top: 7px; }
.ventilation-case {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 5vw, 72px);
  margin-top: 9px;
}

.ventilation-copy p { margin-top: 14px; color: var(--muted); }
.ventilation-copy p + p { margin-top: 10px; }

.ventilation-criteria {
  padding: clamp(14px, 2.2vw, 24px);
  border: 1px solid var(--rule);
  background: #f7f8f6;
}

.ventilation-criteria h4 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
}

.ventilation-criteria dl > div {
  padding-block: 8px;
  border-top: 1px solid var(--rule);
  font-size: .86rem;
  line-height: 1.4;
}

.ventilation-criteria dl > div:last-child { padding-bottom: 0; }
.ventilation-criteria dt { margin-bottom: 2px; color: var(--deep-teal); font-weight: 650; }
.ventilation-criteria dd { margin: 0; color: var(--muted); }
.system-cases .related-cases-title { margin-top: 36px; font-size: clamp(23px, 2.3vw, 28px); }

.system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 38px);
  margin-top: 22px;
}

.system-grid article { padding-top: 15px; border-top: 1px solid var(--rule); }
.system-grid h4 { margin: 0 0 8px; color: var(--ink); font-size: 1.14rem; line-height: 1.26; }
.system-grid p { color: var(--muted); }

.about { border-top: 1px solid #e6eeea; }
.about-body { max-width: 690px; }
.about-body > p { font-size: clamp(17px, 1.8vw, 20px); }
.about-body p + p { margin-top: 14px; color: var(--muted); }

.contact {
  padding-block: clamp(62px, 7vw, 98px);
  color: var(--white);
  background: var(--navy);
}

.contact-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.contact h2 { margin-top: 12px; }
.contact h2 + p { max-width: 440px; margin-top: 16px; color: #d7e3e3; }
.contact-actions {
  display: grid;
  flex: 0 0 auto;
  gap: 8px;
  justify-items: start;
}
.contact .button { width: fit-content; max-width: 100%; }
.contact-phone { color: #e1e9e9; font-size: .94rem; text-underline-offset: .23em; }
.footer-details address { font-style: normal; }

.site-footer {
  padding-block: 22px;
  border-top: 1px solid #e0e8e4;
  color: var(--muted);
  font-size: .89rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-inner p:first-child { color: var(--ink); font-weight: 650; }

@media (max-width: 850px) {
  .hero-photo { left: 46%; }
  .hero-copy { width: 72%; }
  .hero h1 { font-size: clamp(42px, 5.7vw, 49px); }
  .section-head { grid-template-columns: minmax(90px, .26fr) minmax(0, 1fr); }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 82px; }
  .header-inner { min-height: 67px; flex-wrap: wrap; gap: 8px; }
  .header-controls { order: 1; gap: 6px; }
  .brand img { width: clamp(113px, 30vw, 148px); }
  .header-inner > .site-nav { order: 2; }
  .site-nav {
    flex-wrap: wrap;
    width: 100%;
    align-items: start;
    gap: 12px 20px;
    padding-bottom: 14px;
  }

  .js .nav-toggle {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 4px 12px;
    border: 0;
    color: var(--ink);
    background: transparent;
    font-size: .94rem;
    font-weight: 650;
    cursor: pointer;
  }

  .nav-toggle-icon {
    width: 18px;
    height: 12px;
    border-block: 2px solid currentColor;
    background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
  }

  .js .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 6px var(--gutter) 18px;
    border-bottom: 1px solid #dfe8e4;
    background: var(--white);
  }

  .js .site-nav.is-open { display: grid; }
  .js .site-nav > a { display: flex; min-height: 40px; align-items: center; }
  .js .site-nav .nav-contact { justify-self: start; }

  .hero { display: flex; flex-direction: column-reverse; }
  .hero-photo { position: relative; z-index: 0; inset: auto; height: clamp(150px, 46vw, 245px); }
  .hero-photo::after { background: linear-gradient(var(--navy), transparent 49%); }
  .hero-inner { min-height: 0; padding-block: 54px 32px; }
  .hero-copy { width: 100%; }
  .hero h1 { max-width: 580px; margin-top: 17px; font-size: clamp(34px, 8.7vw, 62px); overflow-wrap: anywhere; }
  .hero-intro { margin-top: 22px; }
  .hero-actions { margin-top: 24px; gap: 14px 20px; }

  .section-head, .services-grid, .weight-case, .ventilation-case, .system-grid { grid-template-columns: 1fr; }
  .section-head { gap: 15px; }
  .section-head > .eyebrow { margin-top: 0; }
  .section-head h2 + p { margin-top: 14px; }
  .services-grid, .weight-case { gap: 23px; margin-top: 29px; }
  .contact-inner { flex-direction: column; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
