:root {
  --ink: #17212b;
  --muted: #5f6b75;
  --line: #dfe6ea;
  --paper: #f6f8f7;
  --white: #ffffff;
  --teal: #0d726f;
  --teal-dark: #084a48;
  --gold: #c7933f;
  --charcoal: #22272c;
  --shadow: 0 18px 45px rgba(20, 30, 36, .14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(223, 230, 234, .8);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.site-nav a {
  text-decoration: none;
  color: var(--charcoal);
}

.site-nav a[aria-current="page"] {
  color: var(--teal);
}

.nav-call {
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--white) !important;
  background: var(--teal);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(10, 20, 26, .84), rgba(10, 20, 26, .54) 44%, rgba(10, 20, 26, .12));
}

.hero-content {
  position: relative;
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 9vh 0 13vh;
  color: var(--white);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.7rem);
  line-height: .98;
  letter-spacing: 0;
}

.hero p {
  max-width: 720px;
  font-size: 1.18rem;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.primary {
  color: var(--white);
  background: var(--teal);
}

.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .12);
}

.secondary.dark {
  color: var(--teal-dark);
  border-color: var(--teal);
  background: transparent;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--teal-dark);
  color: var(--white);
}

.metrics-band div {
  padding: 28px clamp(16px, 4vw, 44px);
  border-right: 1px solid rgba(255, 255, 255, .18);
}

.metrics-band strong,
.metrics-band span {
  display: block;
  line-height: 1.1;
}

.metrics-band strong {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.section,
.service-list,
.project-section,
.team-grid,
.ticket-layout {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.section-heading h2,
.split-section h2,
.contact-section h2 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.service-grid,
.project-preview,
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-grid article,
.project-preview article,
.team-grid article,
.service-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(20, 30, 36, .06);
}

.service-grid article,
.team-grid article,
.service-list article {
  padding: 24px;
}

h2, h3, p { overflow-wrap: anywhere; }
h3 { margin: 0 0 10px; line-height: 1.2; }

.text-link {
  display: inline-block;
  margin-top: 26px;
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(280px, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
  background: var(--paper);
}

.split-section img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tinted {
  width: 100%;
  max-width: none;
  padding-left: clamp(20px, 5vw, 72px);
  padding-right: clamp(20px, 5vw, 72px);
  background: #eef5f3;
}

.project-preview img,
.project-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.project-preview h3,
.project-preview p {
  padding: 0 20px;
}

.project-preview p {
  padding-bottom: 20px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 520px);
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted);
  font-weight: 700;
}

.form-panel {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-panel.wide {
  width: min(760px, 100%);
  margin: 0 auto;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfd8dd;
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -10000px;
}

.page-hero {
  padding: clamp(72px, 12vw, 140px) clamp(20px, 5vw, 72px);
  background: var(--charcoal);
  color: var(--white);
}

.page-hero p {
  max-width: 820px;
  color: rgba(255, 255, 255, .82);
  font-size: 1.08rem;
}

.about-hero {
  background: linear-gradient(rgba(18, 28, 34, .72), rgba(18, 28, 34, .86)), url("assets/engineering-hero.png") center/cover;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.service-list h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.note {
  color: var(--teal-dark);
  font-weight: 800;
}

.project-section + .project-section {
  border-top: 1px solid var(--line);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

figcaption {
  padding: 14px 16px;
  font-weight: 800;
}

.team-grid {
  padding-top: 0;
}

.team-grid a {
  color: var(--teal-dark);
  font-weight: 700;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 30px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, .82);
  background: var(--charcoal);
}

.site-footer span {
  margin-right: auto;
}

.site-footer a {
  text-decoration: none;
}

.submit-result {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background: var(--paper);
}

.submit-result section {
  width: min(620px, 100%);
  padding: 34px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    inset: 76px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 10px 0; }
  .metrics-band,
  .service-grid,
  .project-preview,
  .service-list,
  .project-gallery,
  .team-grid,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }
  .section-heading {
    display: block;
  }
}

@media (max-width: 620px) {
  .site-header { padding-inline: 16px; }
  .brand small { display: none; }
  .hero { min-height: 720px; }
  .hero-content { width: calc(100% - 32px); padding-bottom: 80px; }
  .metrics-band { grid-template-columns: repeat(2, 1fr); }
  .contact-section,
  .split-section,
  .page-hero,
  .tinted {
    padding-left: 16px;
    padding-right: 16px;
  }
}
