:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --panel-strong: #f0f4f9;
  --ink: #101828;
  --muted: #5b667a;
  --soft: #e4eaf2;
  --line: #d7dee9;
  --brand: #115e73;
  --brand-dark: #092033;
  --accent: #2cbfae;
  --warning: #c2410c;
  --shadow: 0 22px 60px rgba(16, 24, 40, 0.09);
  --shadow-soft: 0 12px 34px rgba(16, 24, 40, 0.07);
  --radius: 8px;
  --container: min(1120px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(17, 94, 115, 0.08), transparent 390px),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(44, 191, 174, 0.12), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(17, 94, 115, 0.11), transparent 28%),
    linear-gradient(90deg, rgba(16, 24, 40, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 24, 40, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 46px 46px, 46px 46px;
  pointer-events: none;
  z-index: -1;
  animation: backgroundDrift 18s ease-in-out infinite alternate;
}

@keyframes backgroundDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, -16px, 0);
  }
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: var(--container);
  margin: 14px auto 0;
  min-height: 66px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(215, 222, 233, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 38px rgba(16, 24, 40, 0.06);
  transition: box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(183, 197, 217, 0.98);
  box-shadow: 0 18px 46px rgba(16, 24, 40, 0.11);
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-dark), var(--accent));
  font-weight: 800;
  letter-spacing: 0;
  position: relative;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -80%;
  width: 55%;
  background: rgba(255, 255, 255, 0.42);
  transform: rotate(16deg);
  animation: brandSweep 4.8s ease-in-out infinite;
}

@keyframes brandSweep {
  0%,
  48% {
    transform: translateX(0) rotate(16deg);
  }
  72%,
  100% {
    transform: translateX(260%) rotate(16deg);
  }
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: var(--panel-strong);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

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

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 82px 0;
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 48px;
  align-items: center;
  padding-top: 62px;
  padding-bottom: 70px;
}

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

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

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 4.1vw, 3.75rem);
  line-height: 1.03;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.2;
}

.hero-text,
.section-head p,
.contact-copy p,
.proof-card p,
.service-card p,
.offer-highlight p,
.process-step p {
  color: var(--muted);
}

.hero-text {
  max-width: 650px;
  margin-bottom: 28px;
  font-size: 1.12rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: translateX(-120%);
  transition: transform 420ms ease;
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: translateX(120%);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  box-shadow: 0 14px 26px rgba(15, 118, 110, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 18px 34px rgba(15, 118, 110, 0.28);
}

.btn-secondary {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 620px;
}

.trust-strip span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #344054;
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.hero-system {
  position: relative;
  min-height: 560px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(215, 222, 233, 0.92);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.78)),
    #ffffff;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  --scroll-lift: 0px;
  animation: panelFloat 7s ease-in-out infinite;
}

@keyframes panelFloat {
  0%,
  100% {
    transform: translateY(calc(-1 * var(--scroll-lift)));
  }
  50% {
    transform: translateY(calc(-8px - var(--scroll-lift)));
  }
}

.hero-system::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 42% 48%, rgba(15, 118, 110, 0.16), transparent 24%),
    radial-gradient(circle at 78% 20%, rgba(37, 99, 235, 0.1), transparent 28%),
    radial-gradient(circle at 12% 78%, rgba(15, 118, 110, 0.09), transparent 24%),
    linear-gradient(90deg, rgba(37, 99, 235, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(37, 99, 235, 0.055) 1px, transparent 1px);
  background-size: auto, auto, auto, 34px 34px, 34px 34px;
  opacity: 0.72;
  pointer-events: none;
  z-index: 0;
}

.hero-system::after {
  content: none;
}

.motion-rail {
  position: absolute;
  inset: 22px 22px auto auto;
  width: 96px;
  display: grid;
  gap: 5px;
  z-index: 2;
}

.motion-rail span {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.65), transparent);
  animation: railPulse 1.8s ease-in-out infinite;
}

.motion-rail span:nth-child(2) {
  animation-delay: 140ms;
}

.motion-rail span:nth-child(3) {
  animation-delay: 280ms;
}

@keyframes railPulse {
  0%,
  100% {
    opacity: 0.18;
    transform: scaleX(0.54);
  }
  50% {
    opacity: 0.85;
    transform: scaleX(1);
  }
}

.systems-canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 49%, rgba(15, 118, 110, 0.13), transparent 28%),
    radial-gradient(circle at 46% 52%, rgba(37, 99, 235, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  overflow: hidden;
}

.systems-canvas-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 24, 40, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 24, 40, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  pointer-events: none;
  z-index: 0;
}

#systems-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  z-index: 1;
  transition: opacity 420ms ease;
}

.has-3d #systems-map {
  opacity: 1;
}

.systems-fallback {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.systems-fallback span {
  position: absolute;
  padding: 6px 8px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  color: #1d355c;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(16, 24, 40, 0.07);
  animation: labelFloat 5s ease-in-out infinite;
}

.systems-fallback span:nth-child(1) {
  left: 8%;
  top: 18%;
}

.systems-fallback span:nth-child(2) {
  right: 8%;
  top: 20%;
  animation-delay: 0.3s;
}

.systems-fallback span:nth-child(3) {
  left: 13%;
  bottom: 18%;
  animation-delay: 0.6s;
}

.systems-fallback span:nth-child(4) {
  right: 10%;
  bottom: 20%;
  animation-delay: 0.9s;
}

.systems-fallback span:nth-child(5) {
  left: 44%;
  top: 9%;
  animation-delay: 1.2s;
}

.systems-fallback span:nth-child(6) {
  left: 43%;
  bottom: 9%;
  animation-delay: 1.5s;
}

@keyframes labelFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.context-band {
  padding: 0;
}

.context-band p {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: #344054;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  font-size: 1.08rem;
}

.offer-band {
  padding-bottom: 54px;
}

.offer-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.offer-highlight {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.offer-highlight::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.offer-highlight span {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.offer-highlight p {
  color: var(--muted);
  margin-bottom: 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.service-categories {
  display: grid;
  gap: 18px;
}

.service-category {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(215, 222, 233, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.54);
}

.category-head {
  position: sticky;
  top: 100px;
}

.category-head span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.category-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

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

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

.service-card,
.process-step,
.offer-highlight,
.proof-card,
.proof-metrics div,
.lead-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.service-card {
  min-height: 360px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::after,
.process-step::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.service-card::before,
.process-step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 0%), rgba(37, 99, 235, 0.08), transparent 34%);
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.service-card:hover,
.offer-highlight:hover,
.process-step:hover {
  border-color: rgba(15, 118, 110, 0.32);
  transform: translateY(-3px);
}

.service-card:hover::after,
.process-step:hover::after {
  transform: scaleX(1);
}

.service-card:hover::before,
.process-step:hover::before {
  opacity: 1;
}

.service-card,
.offer-highlight,
.process-step {
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.service-index {
  width: 38px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: var(--radius);
  color: var(--brand-dark);
  background: #e6f4f1;
  font-weight: 800;
  font-size: 0.82rem;
}

.service-card ul {
  margin: auto 0 14px;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding: 8px 0 8px 18px;
  color: #344054;
  border-top: 1px solid #edf1f7;
  font-size: 0.92rem;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.service-more {
  min-height: 42px;
  width: fit-content;
  padding: 0 12px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: var(--radius);
  color: var(--brand-dark);
  background: #f2fbf9;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.service-more:hover,
.service-more:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.45);
  background: #e5f6f2;
}

.offer-highlight p,
.service-card p,
.process-step p {
  margin-bottom: 0;
}

.proof-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.proof-card {
  padding: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, #0b3734, #123a6f);
}

.proof-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.18rem;
}

.proof-card p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0;
}

.proof-metrics {
  display: grid;
  gap: 12px;
}

.proof-metrics div {
  padding: 18px;
}

.proof-metrics span {
  display: block;
  color: var(--brand-dark);
  font-size: 1.55rem;
  font-weight: 850;
  line-height: 1;
}

.proof-metrics p {
  margin: 8px 0 0;
  color: var(--muted);
}

.diagnostic-section {
  padding-top: 42px;
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.diagnostic-form,
.diagnostic-result {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.diagnostic-form {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.diagnostic-form label:last-child {
  grid-column: span 2;
}

.diagnostic-result {
  position: sticky;
  top: 100px;
  padding: 22px;
  overflow: hidden;
}

.diagnostic-result::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16), transparent 68%);
  pointer-events: none;
}

.score-label {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

#ops-score {
  display: block;
  margin: 8px 0 14px;
  color: var(--ink);
  font-size: 3.2rem;
  line-height: 1;
}

.score-ring {
  height: 9px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: #e2eaf4;
  overflow: hidden;
}

.score-ring span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 320ms ease;
}

.diagnostic-result .btn {
  margin-top: 8px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.process-step {
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.process-step span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.service-modal {
  width: min(860px, calc(100vw - 28px));
  border: 0;
  padding: 0;
  border-radius: 14px;
  background: transparent;
}

.service-modal::backdrop {
  background: rgba(16, 24, 40, 0.46);
  backdrop-filter: blur(5px);
}

.modal-panel {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(215, 222, 233, 0.96);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 34px 80px rgba(16, 24, 40, 0.22);
  animation: modalIn 180ms ease both;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

#modal-title {
  max-width: 690px;
  padding-right: 72px;
}

#modal-summary {
  max-width: 720px;
  color: var(--muted);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.modal-grid section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
}

.modal-grid ul {
  margin: 0;
  padding-left: 18px;
  color: #344054;
}

.modal-grid li + li {
  margin-top: 8px;
}

.modal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

#modal-timeline {
  color: var(--brand-dark);
  font-weight: 850;
}

.contact-direct {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.contact-direct a {
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
}

.contact-direct a:hover,
.contact-direct a:focus-visible {
  text-decoration: underline;
}

.lead-form {
  padding: 20px;
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #ccd6e3;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input,
select {
  min-height: 46px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(37, 99, 235, 0.62);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--brand-dark);
  font-weight: 700;
}

.site-footer {
  width: var(--container);
  margin: 0 auto 28px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--brand-dark);
  font-weight: 750;
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero .reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 1040px) {
  .service-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-category {
    grid-template-columns: 1fr;
  }

  .category-head {
    position: static;
    max-width: 620px;
  }

  .proof-section,
  .diagnostic-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-system {
    min-height: 540px;
  }

  .diagnostic-result {
    position: relative;
    top: auto;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100vw - 24px, 1120px);
  }

  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
    transform-origin: top;
    transform: scaleY(0.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    min-height: 46px;
  }

  .section {
    padding: 58px 0;
  }

  .hero {
    padding-top: 40px;
    padding-bottom: 46px;
    gap: 24px;
  }

  .hero-system {
    min-height: 360px;
    overflow: hidden;
    border-radius: var(--radius);
  }

  .motion-rail {
    display: none;
  }

  h1 {
    font-size: 1.92rem;
    line-height: 1.06;
    margin-bottom: 18px;
  }

  .hero-text {
    font-size: 1.02rem;
    line-height: 1.55;
    margin-bottom: 24px;
    max-width: 34ch;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

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

  .trust-strip span {
    min-height: 42px;
    display: flex;
    align-items: center;
  }

  .offer-highlight-grid,
  .service-grid,
  .service-grid-acquire,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .service-category {
    padding: 14px;
  }

  .offer-highlight {
    min-height: auto;
  }

  .service-card {
    min-height: auto;
  }

  .diagnostic-form {
    grid-template-columns: 1fr;
  }

  .diagnostic-form label:last-child {
    grid-column: auto;
  }

  .modal-panel {
    padding: 20px;
  }

  .modal-grid,
  .modal-meta {
    grid-template-columns: 1fr;
    display: grid;
  }

  #modal-title {
    padding-right: 0;
  }

  .modal-close {
    position: static;
    margin-left: auto;
    display: flex;
    align-items: center;
  }

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
