:root {
  color-scheme: light;
  --bg: #f5f8fb;
  --surface: #ffffff;
  --surface-2: #e7eef5;
  --text: #172536;
  --muted: #5e7082;
  --line: rgba(23, 37, 54, 0.14);
  --brand: #2e80b8;
  --brand-dark: #1f6795;
  --green: #2b8f9a;
  --steel: #244a63;
  --shadow: 0 22px 60px rgba(30, 70, 104, 0.14);
  --header: rgba(245, 248, 251, 0.92);
  --footer-bg: #10283a;
  --footer-text: #eef7fb;
  --footer-muted: #b9cedc;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101820;
  --surface: #18242d;
  --surface-2: #20313d;
  --text: #eef6fb;
  --muted: #adc0cf;
  --line: rgba(238, 246, 251, 0.16);
  --brand: #2e80b8;
  --brand-dark: #4aa3dc;
  --green: #44a9b2;
  --steel: #9bc7e4;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --header: rgba(16, 24, 32, 0.9);
  --footer-bg: #09141d;
  --footer-text: #eef7fb;
  --footer-muted: #a9bdca;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 220ms ease, color 220ms ease;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 70%, #ffffff);
  outline-offset: 3px;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 28px;
  background: var(--header);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
  flex: 0 0 auto;
}

.brand-logo {
  flex: 0 0 auto;
  width: 150px;
  height: auto;
  max-height: 50px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-left: auto;
  min-width: 0;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.93rem;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}

.main-nav a:hover {
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.theme-toggle,
.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.theme-toggle:hover,
.menu-toggle:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand) 54%, var(--line));
}

.theme-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.theme-icon::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 1px dashed currentColor;
  opacity: 0.75;
}

[data-theme="dark"] .theme-icon {
  background: currentColor;
  box-shadow: inset -6px -2px 0 0 var(--surface);
}

[data-theme="dark"] .theme-icon::after {
  opacity: 0;
}

.menu-toggle {
  display: none;
  gap: 4px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 74vh;
  display: grid;
  align-items: end;
  color: #fff;
}

.home-hero {
  min-height: 78vh;
}

.hero-media,
.page-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  animation: imageSettle 900ms ease forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 25, 39, 0.8), rgba(7, 39, 63, 0.38) 58%, rgba(7, 39, 63, 0.14)),
    linear-gradient(0deg, rgba(7, 25, 39, 0.5), rgba(7, 39, 63, 0.04) 48%);
}

.hero-content,
.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 150px 0 56px;
}

.hero-content {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  max-width: 980px;
  justify-self: start;
}

.hero h1,
.page-hero h1,
.policy-hero h1 {
  margin: 0;
  max-width: 930px;
  font-size: 4.35rem;
  line-height: 1.02;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.hero p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
  max-width: 660px;
  margin: 1.25rem 0 0;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.84);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: color-mix(in srgb, var(--brand) 34%, #ffffff);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 18px 34px rgba(46, 128, 184, 0.26);
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.text-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

.section {
  padding: 92px 0;
}

.section-tight {
  padding: 36px 0 0;
}

.muted-band {
  background: var(--surface-2);
}

.split-band {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--green) 18%, var(--surface)), var(--surface));
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  gap: 3rem;
  align-items: center;
}

.two-column.reverse {
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1fr);
}

.content-block h2,
.section-heading h2,
.split-content h2,
.cta-panel h2,
.pricing-layout h2 {
  margin: 0;
  color: var(--brand);
  font-size: 2.45rem;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.cta-panel h2 {
  color: #fff;
}

.content-block p,
.section-heading p,
.policy-content p {
  color: var(--muted);
  font-size: 1rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading.narrow {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.image-panel {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.image-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 420ms ease;
}

.image-panel:hover img {
  transform: scale(1.035);
}

.image-panel.tall img {
  aspect-ratio: 3 / 4;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.stat-strip div {
  min-height: 132px;
  padding: 1.4rem;
  background: var(--surface);
}

.stat-strip strong {
  display: block;
  color: var(--brand);
  font-size: 2.35rem;
  line-height: 1;
}

.stat-strip span {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-weight: 700;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

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

.service-card,
.pillar-grid article,
.industry-grid article,
.product-grid article,
.timeline article,
.cycle-grid article,
.contact-cards article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.06);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.service-card:hover,
.pillar-grid article:hover,
.industry-grid article:hover,
.product-grid article:hover,
.timeline article:hover,
.cycle-grid article:hover,
.contact-cards article:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand) 36%, var(--line));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.1);
}

.service-card {
  overflow: hidden;
}

.service-card img {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
}

.service-card div {
  padding: 1.3rem;
}

.service-card h3,
.pillar-grid h3,
.industry-grid h3,
.product-grid h3,
.timeline h3,
.cycle-grid h3,
.contact-cards h3 {
  margin: 0 0 0.55rem;
  color: var(--brand);
  font-size: 1.1rem;
}

.service-card p,
.pillar-grid p,
.industry-grid p,
.product-grid p,
.timeline p,
.cycle-grid p,
.contact-cards p,
.table-note {
  margin: 0;
  color: var(--muted);
}

.industry-grid,
.pillar-grid,
.cycle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.industry-grid article,
.pillar-grid article,
.cycle-grid article {
  padding: 1.3rem;
}

.industry-grid span,
.timeline span,
.cycle-grid span,
.service-feature-grid span {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--brand);
  font-weight: 800;
}

.split-content {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 3rem;
  align-items: center;
}

.check-list {
  display: grid;
  gap: 0.85rem;
}

.check-list div {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  font-weight: 800;
}

.check-list.compact {
  margin-top: 1.25rem;
}

.check-list span {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--surface) 82%, transparent);
}

.cta-panel {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  display: grid;
  align-items: end;
  border-radius: 8px;
  color: #fff;
  box-shadow: var(--shadow);
}

.cta-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 25, 39, 0.8), rgba(7, 39, 63, 0.28));
}

.cta-panel > div {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 2rem;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.vision-grid article {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.vision-grid h2 {
  margin: 0;
  color: var(--brand);
  font-size: 2rem;
  line-height: 1.15;
}

.vision-grid p {
  color: var(--muted);
}

.value-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.value-list span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 800;
}

.service-feature-grid {
  display: grid;
  gap: 1.2rem;
}

.service-feature-grid article {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.service-feature-grid img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.service-feature-grid div {
  padding: 1.6rem;
  align-self: center;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.timeline article {
  padding: 1.25rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  min-height: 42px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.filter-btn:hover,
.filter-btn.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  transform: translateY(-1px);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-grid article {
  padding: 1.25rem;
  min-height: 180px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.product-grid article.is-hidden {
  display: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.gallery-grid button {
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  cursor: zoom-in;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  object-fit: cover;
  transition: transform 240ms ease, filter 240ms ease;
}

.gallery-grid button:hover img {
  transform: scale(1.05);
  filter: saturate(1.08);
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.78);
}

.image-modal.active {
  display: grid;
}

.image-modal figure {
  position: relative;
  margin: 0;
  width: min(1000px, 100%);
  max-height: 88vh;
  display: grid;
  gap: 0.75rem;
}

.image-modal img {
  width: 100%;
  max-height: calc(88vh - 54px);
  object-fit: contain;
  border-radius: 8px;
  background: #111;
}

.image-modal figcaption {
  color: #fff;
  text-align: center;
  font-weight: 700;
}

.modal-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.pricing-layout {
  align-items: start;
}

.pricing-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.pricing-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.pricing-table th {
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.pricing-table td:last-child {
  color: var(--brand);
  font-weight: 800;
}

.table-note {
  padding: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.contact-cards article {
  padding: 1rem;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.field-group {
  display: grid;
  gap: 0.45rem;
}

.field-group.full,
.quote-form .btn,
.form-status {
  grid-column: 1 / -1;
}

label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  padding: 0.85rem 0.9rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}

textarea {
  resize: vertical;
}

.form-status {
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.map-tabs {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.map-panel {
  display: none;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.map-panel.active {
  display: block;
}

.map-panel iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}

.policy-hero {
  padding: 150px 0 70px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 20%, var(--surface)), var(--surface-2));
}

.policy-hero p {
  color: var(--muted);
  margin: 0.8rem 0 0;
}

.policy-hero h1,
.policy-content h2 {
  color: var(--brand);
}

.policy-content {
  max-width: 820px;
}

.policy-content h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.35rem;
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content a {
  color: var(--brand);
  font-weight: 800;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--footer-bg), color-mix(in srgb, var(--footer-bg) 82%, #2e80b8));
  color: var(--footer-text);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 26%, rgba(255, 255, 255, 0.03));
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(150px, 1fr));
  gap: 2rem;
  padding: 64px 0 44px;
}

.footer-grid > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.footer-brand {
  margin-bottom: 0.65rem;
}

.footer-brand .brand-logo {
  width: 170px;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.22));
}

.site-footer h2 {
  margin: 0 0 0.75rem;
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
  max-width: 360px;
  color: var(--footer-muted);
  font-size: 0.95rem;
}

.site-footer a:not(.brand) {
  display: block;
  color: var(--footer-muted);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.35;
  transition: color 180ms ease, transform 180ms ease;
}

.site-footer a:not(.brand):hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--footer-muted);
  font-size: 0.92rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@keyframes imageSettle {
  to {
    transform: scale(1);
  }
}

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

@media (max-width: 1080px) {
  .site-header {
    padding: 0 18px;
  }

  .brand-logo {
    width: 136px;
  }

  .main-nav a {
    padding: 0 0.62rem;
    font-size: 0.88rem;
  }

  .hero h1,
  .page-hero h1,
  .policy-hero h1 {
    font-size: 3.45rem;
  }

  .timeline,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: minmax(260px, 1.25fr) repeat(3, minmax(130px, 1fr));
    gap: 1.35rem;
  }
}

@media (max-width: 860px) {
  .site-header {
    gap: 0.75rem;
  }

  .header-actions {
    margin-left: auto;
  }

  .theme-toggle,
  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  .main-nav {
    position: fixed;
    inset: 76px 0 0;
    display: none;
    align-content: start;
    gap: 0.45rem;
    width: 100%;
    margin-left: 0;
    min-height: auto;
    overflow-y: auto;
    padding: 0.9rem 18px 1.25rem;
    background: var(--bg);
    border-top: 1px solid var(--line);
  }

  .main-nav.open {
    display: grid;
  }

  .main-nav a {
    min-height: 48px;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero,
  .page-hero {
    min-height: 68vh;
  }

  .hero h1,
  .page-hero h1,
  .policy-hero h1 {
    font-size: 2.65rem;
  }

  .hero p:not(.eyebrow),
  .page-hero p:not(.eyebrow) {
    font-size: 1rem;
  }

  .section {
    padding: 68px 0;
  }

  .two-column,
  .two-column.reverse,
  .split-content,
  .contact-grid,
  .service-feature-grid article,
  .vision-grid {
    grid-template-columns: 1fr;
  }

  .card-grid.three,
  .industry-grid,
  .pillar-grid,
  .cycle-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    padding: 38px 0 26px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-grid > div:nth-child(4) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem 1rem;
  }

  .footer-grid > div:nth-child(4) h2,
  .footer-grid > div:nth-child(4) p {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    width: min(1160px, calc(100% - 40px));
    padding: 16px 0;
  }
}

@media (max-width: 620px) {
  .container,
  .hero-content {
    width: min(1160px, calc(100% - 28px));
  }

  .site-header {
    height: 68px;
    gap: 0.55rem;
    padding: 0 14px;
  }

  .brand-logo {
    width: 122px;
    max-height: 44px;
  }

  .main-nav {
    inset: 68px 0 0;
  }

  .hero-content,
  .page-hero-content {
    padding: 112px 0 40px;
  }

  .hero,
  .page-hero {
    min-height: 58vh;
  }

  .home-hero {
    min-height: 64vh;
  }

  .section {
    padding: 56px 0;
  }

  .section-tight {
    padding-top: 26px;
  }

  .hero h1,
  .page-hero h1,
  .policy-hero h1 {
    font-size: 2.2rem;
  }

  .content-block h2,
  .section-heading h2,
  .split-content h2,
  .cta-panel h2,
  .pricing-layout h2 {
    font-size: 1.85rem;
  }

  .hero-actions,
  .filter-bar {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .filter-btn {
    flex: 1 1 calc(50% - 0.6rem);
    width: auto;
    padding: 0 0.75rem;
  }

  .card-grid.three,
  .industry-grid,
  .pillar-grid,
  .cycle-grid,
  .product-grid,
  .timeline,
  .quote-form {
    grid-template-columns: 1fr;
  }

  .gallery-grid,
  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-strip div {
    min-height: 104px;
    padding: 1rem;
  }

  .stat-strip strong {
    font-size: 1.9rem;
  }

  .service-feature-grid img {
    min-height: 210px;
  }

  .cta-panel > div {
    padding: 1.3rem;
  }

  .map-panel iframe {
    min-height: 280px;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 0.8rem 0.7rem;
    font-size: 0.9rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1rem;
    padding: 28px 0 18px;
  }

  .footer-grid > div {
    gap: 0.3rem;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-grid > div:first-child p,
  .footer-grid > div:nth-child(4) p {
    display: none;
  }

  .footer-grid > div:nth-child(4) {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.2rem 0.8rem;
  }

  .footer-grid > div:nth-child(4) h2 {
    grid-column: 1 / -1;
  }

  .footer-brand {
    margin-bottom: 0;
  }

  .footer-brand .brand-logo {
    width: 142px;
  }

  .site-footer h2 {
    margin-bottom: 0.1rem;
    font-size: 0.78rem;
  }

  .site-footer p {
    font-size: 0.86rem;
    line-height: 1.35;
  }

  .site-footer a:not(.brand) {
    padding: 0.1rem 0;
    font-size: 0.86rem;
  }

  .footer-bottom {
    width: min(1160px, calc(100% - 28px));
    padding: 12px 0 14px;
    text-align: center;
    font-size: 0.78rem;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding: 0 10px;
  }

  .brand-logo {
    width: 108px;
    max-height: 40px;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .theme-toggle,
  .menu-toggle {
    width: 38px;
    height: 38px;
  }

  .menu-toggle span {
    width: 18px;
  }

  .hero h1,
  .page-hero h1,
  .policy-hero h1 {
    font-size: 1.95rem;
  }

  .content-block h2,
  .section-heading h2,
  .split-content h2,
  .cta-panel h2,
  .pricing-layout h2 {
    font-size: 1.68rem;
  }

  .section {
    padding: 48px 0;
  }

  .cta-panel {
    min-height: 270px;
  }

  .quote-form {
    padding: 0.95rem;
  }

  .footer-grid {
    gap: 0.75rem;
  }
}
