:root {
  --ink: #101416;
  --ink-soft: #252c2f;
  --paper: #f7f8f6;
  --white: #ffffff;
  --mist: #e8eceb;
  --muted: #5d686b;
  --red: #e52d32;
  --red-dark: #bd1f24;
  --cyan: #009ca6;
  --yellow: #e5bd32;
  --content: 1180px;
  --header-height: 80px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: 0; }
h2 { margin-bottom: 24px; font-size: 46px; font-weight: 760; }
h3 { font-size: 25px; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--red);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 16, 18, 0.72);
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(12, 16, 18, 0.96);
  box-shadow: 0 5px 22px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  width: min(calc(100% - 48px), var(--content));
  height: 100%;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  width: 136px;
  height: 64px;
  align-items: center;
}

.brand img { width: 128px; height: auto; }

.main-navigation {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-navigation a {
  position: relative;
  padding: 26px 0 22px;
  color: var(--white);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.main-navigation a:not(.nav-phone)::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 2px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

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

.main-navigation .nav-phone {
  min-width: 137px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  text-align: center;
}

.main-navigation .nav-phone:hover,
.main-navigation .nav-phone:focus-visible {
  border-color: var(--red);
  background: var(--red);
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 102;
  min-width: 84px;
  min-height: 44px;
  padding: 8px 0;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: var(--white);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}

.menu-lines { display: grid; width: 24px; gap: 5px; }
.menu-lines i {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.hero {
  position: relative;
  display: flex;
  height: 88svh;
  min-height: 650px;
  max-height: 820px;
  color: var(--white);
  background-color: var(--ink);
  background-image: url("assets/images/hero.jpg");
  background-position: center;
  background-size: cover;
  align-items: center;
}

.hero-content {
  width: min(calc(100% - 48px), var(--content));
  margin: 56px auto 0;
}

.hero-content > * { max-width: 720px; }

.eyebrow {
  margin-bottom: 14px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow-dark { color: var(--red); }

.hero h1 {
  margin-bottom: 18px;
  font-size: 76px;
  font-weight: 800;
}

.hero-lead {
  margin-bottom: 20px;
  font-size: 31px;
  font-weight: 700;
  line-height: 1.28;
}

.hero-copy {
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--red); }
.button-primary:hover, .button-primary:focus-visible { background: var(--red-dark); }
.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(16, 20, 22, 0.24);
}
.button-ghost:hover, .button-ghost:focus-visible {
  border-color: var(--white);
  background: rgba(16, 20, 22, 0.75);
}

.hero-scroll {
  position: absolute;
  right: max(24px, calc((100% - var(--content)) / 2));
  bottom: 28px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.hero-scroll span { margin-left: 8px; color: var(--yellow); }
.proof-band { color: var(--white); background: var(--ink-soft); }

.proof-grid {
  display: grid;
  width: min(100%, 1340px);
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
}

.proof-grid div {
  min-height: 132px;
  padding: 28px 36px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.proof-grid div:first-child { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.proof-grid strong, .proof-grid span { display: block; }
.proof-grid strong { margin-bottom: 5px; color: var(--white); font-size: 20px; }
.proof-grid span { color: rgba(255, 255, 255, 0.65); font-size: 15px; line-height: 1.45; }

.section { padding: 112px max(24px, calc((100% - var(--content)) / 2)); }
.section-heading { max-width: 760px; margin-bottom: 48px; }
.section-heading > p:last-child { max-width: 680px; color: var(--muted); font-size: 19px; }

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

.service-card {
  overflow: hidden;
  border: 1px solid #dfe4e2;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(20, 31, 34, 0.07);
}

.service-card > img { width: 100%; height: 240px; object-fit: cover; }
.service-body { padding: 30px; }
.service-number { display: block; margin-bottom: 22px; color: var(--cyan); font-size: 14px; font-weight: 800; }
.service-body h3 { min-height: 56px; margin-bottom: 16px; }
.service-body p { margin-bottom: 0; color: var(--muted); font-size: 16px; }

.process-section { color: var(--white); background: var(--ink); }
.process-inner {
  display: grid;
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: 112px 0;
  gap: 86px;
  grid-template-columns: minmax(0, 0.8fr) minmax(480px, 1.2fr);
}

.process-intro { align-self: start; }
.process-intro > p:not(.eyebrow) { margin-bottom: 32px; color: rgba(255, 255, 255, 0.66); font-size: 18px; }
.text-link {
  display: inline-block;
  padding-bottom: 5px;
  color: var(--white);
  border-bottom: 2px solid var(--red);
  font-weight: 750;
  text-decoration: none;
}
.text-link:hover, .text-link:focus-visible { color: var(--yellow); }
.process-list { margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); list-style: none; }
.process-list li {
  display: grid;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  gap: 24px;
  grid-template-columns: 44px 1fr;
}
.process-list li > span { color: var(--cyan); font-size: 14px; font-weight: 800; }
.process-list h3 { margin-bottom: 7px; font-size: 21px; }
.process-list p { margin-bottom: 0; color: rgba(255, 255, 255, 0.66); font-size: 16px; }

.about-section {
  display: grid;
  padding-top: 0;
  padding-bottom: 0;
  align-items: stretch;
  grid-template-columns: 1fr 1fr;
}
.about-media { min-height: 680px; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-content { padding: 100px 8% 100px 11%; align-self: center; }
.about-content h2 { max-width: 610px; }
.about-content > p:not(.eyebrow) { max-width: 600px; color: var(--muted); }
.about-content .about-lead { color: var(--ink); font-size: 21px; font-weight: 650; }
.text-link-dark { margin-top: 14px; color: var(--ink); }

.video-band {
  color: var(--white);
  background-color: #182024;
  background-image: linear-gradient(rgba(16, 20, 22, 0.72), rgba(16, 20, 22, 0.72)), url("assets/images/monitoring.jpg");
  background-position: center;
  background-size: cover;
}
.video-inner {
  display: flex;
  width: min(calc(100% - 48px), var(--content));
  min-height: 390px;
  margin: 0 auto;
  padding: 68px 0;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}
.video-inner h2 { max-width: 620px; margin-bottom: 0; }
.video-link {
  display: grid;
  flex: 0 0 220px;
  color: var(--white);
  justify-items: center;
  text-align: center;
  text-decoration: none;
  gap: 14px;
}
.play-mark {
  display: grid;
  width: 76px;
  height: 76px;
  padding-left: 5px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--red);
  place-items: center;
  transition: transform 160ms ease, background-color 160ms ease;
}
.video-link:hover .play-mark, .video-link:focus-visible .play-mark { background: var(--red-dark); transform: scale(1.06); }

.clients-section { padding: 92px 24px 100px; background: var(--white); text-align: center; }
.clients-inner { width: min(100%, var(--content)); margin: 0 auto; }
.clients-inner h2 { margin-bottom: 48px; font-size: 36px; }
.client-logos {
  display: grid;
  border-top: 1px solid var(--mist);
  border-left: 1px solid var(--mist);
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.client-logos img {
  width: 100%;
  height: 126px;
  padding: 26px;
  border-right: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
  object-fit: contain;
  filter: grayscale(1);
  transition: filter 160ms ease;
}
.client-logos img:hover { filter: grayscale(0); }

.contact-section { color: var(--white); background: #171c1e; border-top: 6px solid var(--red); }
.contact-inner {
  display: grid;
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: 104px 0;
  gap: 100px;
  grid-template-columns: 1.15fr 0.85fr;
}
.contact-intro h2 { max-width: 650px; }
.contact-intro > p:not(.eyebrow) { max-width: 620px; margin-bottom: 32px; color: rgba(255, 255, 255, 0.68); font-size: 18px; }
.contact-details {
  display: grid;
  align-content: start;
  font-style: normal;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
}
.contact-details div { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.contact-details span { display: block; margin-bottom: 6px; color: var(--cyan); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.contact-details a { color: var(--white); font-size: 16px; font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
.contact-details a:hover, .contact-details a:focus-visible { color: var(--yellow); }

.site-footer { color: rgba(255, 255, 255, 0.54); background: #0b0e0f; }
.footer-inner {
  display: flex;
  width: min(calc(100% - 48px), var(--content));
  min-height: 118px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.footer-inner img { width: 94px; height: auto; }
.footer-inner p { margin-bottom: 0; font-size: 13px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

.error-page {
  display: grid;
  min-height: 100svh;
  padding: 32px;
  color: var(--white);
  background-color: var(--ink);
  background-image: linear-gradient(rgba(16, 20, 22, 0.78), rgba(16, 20, 22, 0.78)), url("assets/images/hero.jpg");
  background-position: center;
  background-size: cover;
  place-items: center;
}
.error-content { width: min(100%, 620px); text-align: center; }
.error-content img { width: 150px; height: auto; margin: 0 auto 38px; }
.error-content h1 { margin-bottom: 18px; font-size: 52px; }
.error-content > p:not(.eyebrow) { margin-bottom: 30px; color: rgba(255, 255, 255, 0.72); }

@media (max-width: 1040px) {
  h2 { font-size: 40px; }
  .main-navigation { gap: 20px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card:last-child { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .service-card:last-child > img { height: 100%; }
  .process-inner { gap: 52px; grid-template-columns: 0.8fr 1.2fr; }
  .about-content { padding-right: 0; padding-left: 8%; }
  .client-logos { grid-template-columns: repeat(3, 1fr); }
  .contact-inner { gap: 56px; }
}

@media (max-width: 860px) {
  :root { --header-height: 72px; }
  .header-inner { width: min(calc(100% - 32px), var(--content)); }
  .brand { width: 116px; height: 56px; }
  .brand img { width: 108px; }
  .menu-toggle { display: inline-flex !important; }
  .menu-toggle[aria-expanded="true"] .menu-lines i:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-lines i:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .menu-lines i:last-child { transform: translateY(-7px) rotate(-45deg); }
  .main-navigation {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    padding: 34px 24px;
    align-items: stretch;
    background: rgba(12, 16, 18, 0.99);
    flex-direction: column;
    gap: 0;
  }
  .main-navigation.is-open,
  .main-navigation:target { display: flex; }
  .main-navigation a { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); font-size: 22px; }
  .main-navigation a:not(.nav-phone)::after { display: none; }
  .main-navigation .nav-phone { margin-top: 24px; padding: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.45); font-size: 18px; }
  .hero { min-height: 700px; background-position: 62% center; }
  .hero::before { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.24); content: ""; }
  .hero-content, .hero-scroll { z-index: 1; }
  .hero h1 { font-size: 62px; }
  .hero-lead { font-size: 28px; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid div, .proof-grid div:first-child { min-height: 0; padding: 24px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .section { padding-top: 86px; padding-bottom: 86px; }
  .process-inner { padding: 86px 0; grid-template-columns: 1fr; }
  .about-section { padding-right: 0; padding-left: 0; grid-template-columns: 1fr; }
  .about-media { min-height: 430px; }
  .about-content { padding: 74px 24px 86px; }
  .video-inner { align-items: flex-start; flex-direction: column; }
  .video-link { display: flex; flex: 0 0 auto; align-items: center; justify-items: start; text-align: left; }
  .play-mark { flex: 0 0 64px; width: 64px; height: 64px; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { padding: 30px 0; align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  h2 { font-size: 34px; }
  .hero { height: auto; min-height: 86svh; max-height: none; padding: 110px 0 92px; background-position: 67% center; }
  .hero-content { width: calc(100% - 32px); margin-top: 0; }
  .hero h1 { font-size: 48px; }
  .hero-lead { font-size: 24px; }
  .hero-copy { font-size: 16px; }
  .hero-actions, .contact-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-scroll { right: 16px; bottom: 18px; left: 16px; }
  .section { padding-right: 16px; padding-left: 16px; }
  .section-heading { margin-bottom: 34px; }
  .section-heading > p:last-child { font-size: 17px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card:last-child { display: block; grid-column: auto; }
  .service-card:last-child > img { height: 220px; }
  .service-body { padding: 24px; }
  .service-body h3 { min-height: 0; }
  .process-inner, .video-inner, .contact-inner, .footer-inner { width: calc(100% - 32px); }
  .about-media { min-height: 300px; }
  .about-content { padding-right: 16px; padding-left: 16px; }
  .video-inner { min-height: 430px; }
  .clients-section { padding: 74px 16px 82px; }
  .clients-inner h2 { font-size: 30px; }
  .client-logos { grid-template-columns: 1fr 1fr; }
  .client-logos img { height: 104px; padding: 20px; }
  .contact-details { grid-template-columns: 1fr; }
  .error-page { padding: 20px; }
  .error-content h1 { font-size: 38px; }
}

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