:root {
  --navy: #062846;
  --navy-900: #031a2e;
  --ink: #071425;
  --muted: #4a5b6e;
  --line: #d9e3ec;
  --band: #eef6fb;
  --band-soft: #f7fbfd;
  --teal: #009aa6;
  --teal-dark: #007985;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(6, 40, 70, 0.1);
  --radius: 8px;
  --shell: min(90rem, calc(100vw - 3rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

.section-shell {
  width: var(--shell);
  margin: 0 auto;
}

.section-band {
  background: linear-gradient(180deg, var(--band) 0%, #f4f9fc 100%);
}

.section-band-light {
  background: var(--band-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  width: 100%;
  padding: 1rem max(1.5rem, calc((100vw - 90rem) / 2));
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid rgba(217, 227, 236, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-grid;
  grid-template-columns: 12.9rem auto;
  align-items: center;
  gap: 1rem;
  color: var(--navy);
  min-width: 0;
}

.brand img {
  width: 12.9rem;
  height: auto;
}

.brand span {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  gap: clamp(1.25rem, 3vw, 2.6rem);
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 0.2rem;
  left: 0;
  height: 2px;
  content: "";
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 12px 24px rgba(6, 40, 70, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--navy-900);
}

.button-secondary {
  color: var(--navy);
  background: transparent;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: #f2f7fb;
}

.button-accent {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.button-accent:hover,
.button-accent:focus-visible {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: min(40rem, calc(100vh - 6rem));
  padding: clamp(3rem, 6vw, 4rem) max(1.5rem, calc((100vw - 90rem) / 2));
  background: #fbfaf8;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  top: 0;
  right: max(1.5rem, calc((100vw - 90rem) / 2));
  bottom: 0;
  left: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 34%, rgba(255, 255, 255, 0.68) 55%, rgba(255, 255, 255, 0.18) 76%),
    url("assets/hero-technical-systems.png") center right / cover no-repeat;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.hero h1,
.section-intro h2,
.capability-heading h2,
.footer-callout h2 {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(3rem, 4.2vw, 4.55rem);
  line-height: 1.01;
  max-width: 52rem;
}

.hero-copy p {
  max-width: 45rem;
  margin-top: 1.35rem;
  color: #14253a;
  font-size: clamp(1.06rem, 1.45vw, 1.32rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.45rem;
}

.services {
  padding: 1.6rem 0;
}

.services-layout {
  display: grid;
  grid-template-columns: 15.5rem 1fr;
  gap: 1.75rem;
  align-items: start;
}

.section-label {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-intro {
  padding: 1rem 0;
}

.section-intro h2 {
  font-size: clamp(1.8rem, 2.35vw, 2.45rem);
  line-height: 1.12;
}

.section-intro p {
  margin-top: 1.1rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.service-card {
  min-height: 12rem;
  padding: 1.15rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(6, 40, 70, 0.06);
}

.service-icon {
  width: 2.45rem;
  height: 2.45rem;
  margin-bottom: 1rem;
  color: var(--navy);
}

.service-icon svg,
.footer-callout svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.service-card h3,
.capability-grid h3 {
  color: var(--navy);
  font-size: 1.02rem;
  line-height: 1.12;
}

.service-card p,
.capability-grid p {
  margin-top: 0.55rem;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.38;
}

.proof {
  padding: 1.9rem 0;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 0.45rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-item {
  min-height: 8.9rem;
  padding: 1rem 1.2rem 1.15rem;
  border-left: 1px solid var(--line);
}

.proof-item:first-child {
  border-left: 0;
}

.proof-icon {
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.85rem;
  color: var(--navy);
}

.proof-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.proof-item strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.16;
}

.proof-item span {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.2;
}

.capabilities {
  padding: 2.2rem 0 2.5rem;
}

.capability-heading {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: 1.45rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.capability-heading h2 {
  max-width: 56rem;
  font-size: clamp(1.8rem, 2.8vw, 3.1rem);
  line-height: 1.02;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.capability-grid article {
  position: relative;
  min-height: 10.5rem;
  padding: 1.35rem 1.2rem;
  border-left: 1px solid var(--line);
}

.capability-grid article:first-child {
  border-left: 0;
}

.capability-grid h3 {
  padding-left: 1.4rem;
}

.capability-grid h3::before {
  position: absolute;
  top: 1.45rem;
  left: 1.2rem;
  width: 0.72rem;
  height: 0.38rem;
  content: "";
  border-bottom: 2px solid var(--teal);
  border-left: 2px solid var(--teal);
  transform: rotate(-45deg);
}

.site-footer {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(0, 154, 166, 0.18), transparent 36%),
    var(--navy-900);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.55fr) auto;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  width: var(--shell);
  margin: 0 auto;
  padding: 2rem 0 1.8rem;
}

.footer-callout {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.footer-callout svg {
  flex: 0 0 4.8rem;
  color: var(--white);
  stroke-width: 1.6;
}

.footer-callout h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 2.7vw, 2.7rem);
  line-height: 1.05;
}

.footer-callout p {
  max-width: 36rem;
  margin-top: 0.35rem;
  color: #d7e8f4;
  font-size: 1.04rem;
}

.footer-contact {
  display: grid;
  gap: 0.45rem;
  padding-left: 2rem;
  color: #e9f4fa;
  font-style: normal;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: #7be2e8;
}

.footer-bottom {
  width: var(--shell);
  margin: 0 auto;
  padding: 1rem 0 1.3rem;
  color: #c8d9e5;
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 40rem;
    padding-top: 3.2rem;
    padding-bottom: 3.2rem;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 44%, rgba(255, 255, 255, 0.66) 68%, rgba(255, 255, 255, 0.24) 100%),
      url("assets/hero-technical-systems.png") center right / cover no-repeat;
  }

  .hero-copy {
    max-width: 58rem;
  }

  .services-layout,
  .capability-heading {
    grid-template-columns: 1fr;
  }

  .section-intro {
    max-width: 40rem;
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .proof-strip,
  .capability-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .proof-item:nth-child(4),
  .capability-grid article:nth-child(4) {
    border-left: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    padding: 1.25rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100vw - 1.25rem, 44rem);
  }

  .site-header {
    position: static;
    gap: 0.75rem;
    padding: 0.8rem 0.75rem;
  }

  .brand {
    grid-template-columns: 8.7rem auto;
    gap: 0.65rem;
  }

  .brand img {
    width: 8.7rem;
  }

  .brand span {
    font-size: 0.68rem;
    line-height: 1.1;
  }

  .header-cta {
    min-height: 2.55rem;
    padding: 0.75rem 0.85rem;
    font-size: 0.88rem;
  }

  .hero {
    width: 100%;
    min-height: auto;
    padding: 2.6rem 0.75rem 2.8rem;
  }

  .hero::before {
    left: 0;
    right: 0;
    transform: none;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.96) 62%, rgba(255, 255, 255, 0.74) 100%),
      url("assets/hero-technical-systems.png") 55% center / cover no-repeat;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 12.5vw, 4rem);
    line-height: 0.98;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .services {
    padding: 2rem 0;
  }

  .service-grid,
  .proof-strip,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .proof-item,
  .proof-item:nth-child(4),
  .capability-grid article,
  .capability-grid article:nth-child(4) {
    border-left: 0;
  }

  .proof-item,
  .capability-grid article {
    border-top: 1px solid var(--line);
  }

  .proof-item:first-child,
  .capability-grid article:first-child {
    border-top: 0;
  }

  .proof-strip {
    border-top: 1px solid var(--line);
  }

  .footer-callout {
    align-items: flex-start;
  }

  .footer-callout svg {
    flex-basis: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
