:root {
  --color-black: #07080b;
  --color-black-soft: #11131a;
  --color-red: #d81527;
  --color-red-dark: #a60f1d;
  --color-red-glow: #ff2638;
  --color-red-soft: rgba(216, 21, 39, 0.18);
  --color-white: #ffffff;
  --color-muted: #c8ccd6;
  --color-line: rgba(255, 255, 255, 0.12);
  --shadow-red: 0 18px 45px rgba(216, 21, 39, 0.3), 0 0 24px rgba(216, 21, 39, 0.18);
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  --header-height: 76px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-white);
  background:
    radial-gradient(circle at 82% 8%, rgba(216, 21, 39, 0.12), transparent 28%),
    linear-gradient(rgba(216, 21, 39, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 21, 39, 0.03) 1px, transparent 1px),
    var(--color-black);
  background-size: auto, 84px 84px, 84px 84px, auto;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--color-black);
  background: var(--color-white);
  border-radius: var(--radius);
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  background: rgba(7, 8, 11, 0.88);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(18px);
}

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

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border-radius: 4px;
  font-weight: 800;
}

.brand::after {
  content: "";
  position: absolute;
  top: -60%;
  bottom: -60%;
  left: 0;
  width: 28%;
  background: linear-gradient(105deg, transparent 0 24%, rgba(255, 255, 255, 0.18) 42%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 38, 56, 0.28) 58%, transparent 76% 100%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-170%) skewX(-18deg);
  animation: logoLightSweep 5.8s ease-in-out infinite;
  pointer-events: none;
}

.brand-logo {
  display: block;
  width: clamp(190px, 20vw, 250px);
  height: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-menu a {
  color: var(--color-muted);
  font-size: 0.96rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu a.is-current {
  color: var(--color-white);
}

.nav-menu a.is-current {
  position: relative;
}

.nav-menu a.is-current::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  background: var(--color-red);
  border-radius: 2px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--color-white);
  border-radius: 2px;
}

.section,
.section-band {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.section {
  padding: 92px 0;
}

.section-band {
  position: relative;
  isolation: isolate;
  padding: 118px 0 92px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(216, 21, 39, 0.24), transparent 28%),
    radial-gradient(circle at 82% 30%, rgba(255, 38, 56, 0.16), transparent 30%),
    linear-gradient(135deg, #050608 0%, #13090c 52%, #050507 100%);
}

.section-band::before,
.section-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.section-band::before {
  background-image:
    linear-gradient(rgba(216, 21, 39, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 21, 39, 0.14) 1px, transparent 1px),
    radial-gradient(circle at 18px 18px, rgba(255, 55, 75, 0.58) 0 2px, transparent 3px),
    radial-gradient(circle at 62px 62px, rgba(216, 21, 39, 0.44) 0 2px, transparent 3px),
    linear-gradient(90deg, transparent 0 18%, rgba(216, 21, 39, 0.28) 18% calc(18% + 2px), transparent calc(18% + 2px) 52%, rgba(216, 21, 39, 0.22) 52% calc(52% + 2px), transparent calc(52% + 2px) 100%),
    linear-gradient(0deg, transparent 0 24%, rgba(216, 21, 39, 0.24) 24% calc(24% + 2px), transparent calc(24% + 2px) 68%, rgba(255, 55, 75, 0.18) 68% calc(68% + 2px), transparent calc(68% + 2px) 100%);
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  background-size: 92px 92px, 92px 92px, 92px 92px, 124px 124px, 276px 276px, 276px 276px;
  opacity: 0.58;
  transform: perspective(900px) rotateX(58deg) scale(1.45) translateY(-8%);
  transform-origin: top center;
  animation: circuitPan 18s linear infinite;
}

.section-band::after {
  background:
    linear-gradient(90deg, transparent, rgba(255, 55, 75, 0.18), transparent),
    radial-gradient(ellipse at 50% 42%, rgba(216, 21, 39, 0.2), transparent 42%);
  mix-blend-mode: screen;
  opacity: 0.72;
  transform: translateX(-52%);
  animation: lightGateSweep 7s ease-in-out infinite;
}

.section-band > * {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 760px;
  padding-top: calc(var(--header-height) + 84px);
}

.page-hero {
  padding-top: calc(var(--header-height) + 74px);
  padding-bottom: 72px;
}

.page-hero h1 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1;
}

.page-hero p:not(.section-kicker) {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 1.12rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(216, 21, 39, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 21, 39, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 22px 22px, rgba(255, 55, 75, 0.42) 0 2px, transparent 3px),
    linear-gradient(90deg, transparent 0 33%, rgba(216, 21, 39, 0.2) 33% calc(33% + 2px), transparent calc(33% + 2px) 100%),
    linear-gradient(0deg, transparent 0 58%, rgba(216, 21, 39, 0.16) 58% calc(58% + 2px), transparent calc(58% + 2px) 100%);
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
  background-size: 72px 72px, 72px 72px, 72px 72px, 216px 216px, 216px 216px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 82%);
  animation: gridDrift 16s linear infinite;
  pointer-events: none;
}

.hero-effects {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.pulse-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--color-red);
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(216, 21, 39, 0.45), 0 0 24px rgba(216, 21, 39, 0.78), 0 0 42px rgba(216, 21, 39, 0.22);
  animation: pulseMove 7s ease-in-out infinite;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(216, 21, 39, 0.48);
  border-radius: inherit;
}

.pulse-dot-one {
  top: 28%;
  left: 8%;
}

.pulse-dot-two {
  top: 20%;
  right: 18%;
  animation-delay: -2.4s;
}

.pulse-dot-three {
  right: 9%;
  bottom: 22%;
  animation-delay: -4.8s;
}

.scan-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 52%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(216, 21, 39, 0.86), rgba(216, 21, 39, 0.66), transparent);
  opacity: 0.55;
  box-shadow: 0 0 22px rgba(216, 21, 39, 0.76);
  animation: scanSweep 8s ease-in-out infinite;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 56px;
  align-items: center;
}

.hero-content h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.95;
}

.hero-subtitle {
  max-width: 660px;
  color: var(--color-muted);
  font-size: 1.15rem;
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--color-red);
  font-size: 0.83rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(115deg, transparent 0 35%, rgba(216, 21, 39, 0.34) 45%, rgba(255, 255, 255, 0.22) 50%, transparent 62% 100%);
  opacity: 0;
  transform: translateX(-105%);
  transition: opacity 0.2s ease, transform 0.5s ease;
  pointer-events: none;
}

.btn:hover::before,
.btn:focus::before {
  opacity: 1;
  transform: translateX(105%);
}

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

.btn-primary {
  color: var(--color-white);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(135deg, var(--color-red), var(--color-red-dark));
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-red);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-red-dark);
}

.btn-secondary,
.btn-card {
  color: var(--color-white);
  background:
    linear-gradient(135deg, rgba(216, 21, 39, 0.11), transparent 42%),
    rgba(255, 255, 255, 0.055);
  border-color: rgba(216, 21, 39, 0.22);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-card:hover,
.btn-card:focus {
  border-color: rgba(216, 21, 39, 0.8);
  background: rgba(216, 21, 39, 0.16);
}

.hero-panel {
  position: relative;
  min-height: 450px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 72% 18%, rgba(216, 21, 39, 0.18), transparent 28%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    linear-gradient(90deg, rgba(216, 21, 39, 0.14) 1px, transparent 1px),
    linear-gradient(0deg, rgba(216, 21, 39, 0.1) 1px, transparent 1px);
  background-size: auto, auto, 78px 78px, 78px 78px;
  box-shadow: var(--shadow-soft);
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-panel::before {
  background:
    linear-gradient(90deg, transparent 0 15%, rgba(255, 55, 75, 0.42) 15% calc(15% + 2px), transparent calc(15% + 2px) 34%, rgba(216, 21, 39, 0.36) 34% calc(34% + 2px), transparent calc(34% + 2px) 69%, rgba(216, 21, 39, 0.28) 69% calc(69% + 2px), transparent calc(69% + 2px) 100%),
    linear-gradient(0deg, transparent 0 32%, rgba(216, 21, 39, 0.3) 32% calc(32% + 2px), transparent calc(32% + 2px) 65%, rgba(255, 55, 75, 0.22) 65% calc(65% + 2px), transparent calc(65% + 2px) 100%),
    radial-gradient(circle at 16% 32%, rgba(255, 55, 75, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 34% 65%, rgba(216, 21, 39, 0.72) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 32%, rgba(255, 55, 75, 0.72) 0 2px, transparent 3px),
    radial-gradient(circle at 69% 65%, rgba(216, 21, 39, 0.64) 0 2px, transparent 3px);
  opacity: 0.68;
  animation: nodeFlicker 4.8s ease-in-out infinite;
}

.hero-panel::after {
  background: linear-gradient(100deg, transparent 0 38%, rgba(216, 21, 39, 0.18) 48%, transparent 60% 100%);
  transform: translateX(-78%);
  animation: panelSweep 5.6s ease-in-out infinite;
}

.signal-card {
  position: absolute;
  top: 38px;
  left: 38px;
  right: 38px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(7, 8, 11, 0.76);
  box-shadow: 0 0 34px rgba(216, 21, 39, 0.1);
}

.signal-card span,
.signal-card small {
  display: block;
  color: var(--color-muted);
}

.signal-card strong {
  display: block;
  color: var(--color-white);
  font-size: 6.2rem;
  line-height: 1;
}

.tech-lines {
  position: absolute;
  right: 42px;
  bottom: 48px;
  left: 42px;
  display: grid;
  gap: 14px;
}

.tech-lines span {
  display: block;
  height: 8px;
  background: linear-gradient(90deg, var(--color-red), var(--color-red), rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(216, 21, 39, 0.42);
}

.tech-lines span:nth-child(2) {
  width: 78%;
}

.tech-lines span:nth-child(3) {
  width: 58%;
}

.status-grid {
  position: absolute;
  right: 36px;
  bottom: 120px;
  display: grid;
  grid-template-columns: repeat(3, 22px);
  gap: 10px;
}

.status-grid span {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(216, 21, 39, 0.84);
  box-shadow: 0 0 16px rgba(216, 21, 39, 0.45);
  animation: statusBlink 2.8s ease-in-out infinite;
}

.status-grid span:nth-child(2),
.status-grid span:nth-child(5) {
  animation-delay: 0.45s;
}

.status-grid span:nth-child(3),
.status-grid span:nth-child(6) {
  animation-delay: 0.9s;
}

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
  }

  to {
    background-position: 72px 72px, 72px 72px, 72px 72px, 216px 216px, 216px 216px;
  }
}

@keyframes pulseMove {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    box-shadow: 0 0 0 0 rgba(216, 21, 39, 0.4), 0 0 24px rgba(216, 21, 39, 0.75);
  }

  50% {
    transform: translate3d(18px, -14px, 0) scale(1.18);
    box-shadow: 0 0 0 16px rgba(216, 21, 39, 0), 0 0 34px rgba(216, 21, 39, 0.96), 0 0 54px rgba(216, 21, 39, 0.35);
  }
}

@keyframes scanSweep {
  0%,
  100% {
    transform: translateX(-140px);
    opacity: 0.15;
  }

  50% {
    transform: translateX(140px);
    opacity: 0.6;
  }
}

@keyframes statusBlink {
  0%,
  100% {
    opacity: 0.38;
  }

  45% {
    opacity: 1;
  }
}

@keyframes circuitPan {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  }

  to {
    background-position: 92px 92px, 92px 92px, 92px 92px, 124px 124px, 276px 276px, 276px 276px;
  }
}

@keyframes lightGateSweep {
  0%,
  100% {
    transform: translateX(-52%);
    opacity: 0.24;
  }

  50% {
    transform: translateX(52%);
    opacity: 0.78;
  }
}

@keyframes nodeFlicker {
  0%,
  100% {
    opacity: 0.44;
  }

  45% {
    opacity: 0.76;
  }

  62% {
    opacity: 0.54;
  }
}

@keyframes panelSweep {
  0%,
  32% {
    transform: translateX(-78%);
    opacity: 0;
  }

  48% {
    opacity: 0.92;
  }

  70%,
  100% {
    transform: translateX(78%);
    opacity: 0;
  }
}

@keyframes logoLightSweep {
  0%,
  46% {
    opacity: 0;
    transform: translateX(-170%) skewX(-18deg);
  }

  53% {
    opacity: 0.95;
  }

  68% {
    opacity: 0.8;
    transform: translateX(430%) skewX(-18deg);
  }

  76%,
  100% {
    opacity: 0;
    transform: translateX(430%) skewX(-18deg);
  }
}

.two-column {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 56px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 48px;
  align-items: center;
}

.two-column h2,
.about-copy h2,
.section-heading h2,
.service-detail-copy h2,
.cta-box h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
}

.about-copy p:not(.section-kicker) {
  color: var(--color-muted);
  font-size: 1.05rem;
}

.text-stack {
  color: var(--color-muted);
  font-size: 1.05rem;
}

.about-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.88fr);
  gap: 14px;
}

.about-media-item {
  position: relative;
  min-height: 190px;
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(216, 21, 39, 0.2);
  border-radius: var(--radius);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.about-media-item-large {
  grid-row: span 2;
  min-height: 394px;
}

.about-media-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.06);
}

.about-media-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 4, 6, 0.82), transparent 45%);
  pointer-events: none;
}

.about-media-item figcaption {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: 14px;
  z-index: 1;
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-soft {
  background:
    radial-gradient(circle at 12% 0%, rgba(216, 21, 39, 0.12), transparent 28%),
    linear-gradient(rgba(216, 21, 39, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 21, 39, 0.035) 1px, transparent 1px),
    var(--color-black-soft);
  background-size: auto, 88px 88px, 88px 88px, auto;
}

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

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

.service-card {
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(216, 21, 39, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(216, 21, 39, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover,
.service-card:focus-within {
  border-color: rgba(216, 21, 39, 0.68);
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28), 0 0 24px rgba(216, 21, 39, 0.12);
}

.service-card a {
  display: block;
  height: 100%;
}

.service-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  filter: saturate(1.06) contrast(1.06);
}

.service-number {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 20px 20px 12px;
  color: var(--color-black);
  background: var(--color-red);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 0 22px rgba(216, 21, 39, 0.42);
}

.service-card h3 {
  margin: 0 20px 10px;
  font-size: 1.24rem;
  line-height: 1.18;
}

.service-card p {
  margin: 0 20px 24px;
  color: var(--color-muted);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.85fr);
  gap: 46px;
  align-items: center;
}

.service-detail-copy p:not(.section-kicker) {
  color: var(--color-muted);
  font-size: 1.06rem;
}

.service-feature-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 21, 39, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-soft);
}

.service-feature-image img {
  display: block;
  width: 100%;
  height: clamp(300px, 38vw, 470px);
  object-fit: cover;
  filter: saturate(1.08) contrast(1.08);
}

.service-feature-image figcaption {
  margin: 0;
  padding: 14px 16px;
  color: var(--color-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

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

.service-point {
  padding: 24px;
  border-top: 3px solid var(--color-red);
  background: rgba(255, 255, 255, 0.055);
}

.service-point h3 {
  margin-bottom: 8px;
  font-size: 1.13rem;
}

.service-point p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.service-page-gallery {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: repeat(2, 230px);
  gap: 16px;
}

.service-page-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  filter: saturate(1.08) contrast(1.08);
  box-shadow: 0 0 0 1px rgba(216, 21, 39, 0.06), 0 16px 34px rgba(0, 0, 0, 0.22);
}

.service-page-gallery img:first-child {
  grid-row: span 2;
}

.service-nav-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.floating-budget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 52px;
  padding: 14px 22px;
  color: var(--color-white);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 30%),
    linear-gradient(135deg, var(--color-red), var(--color-red-dark));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow-red);
  font-weight: 900;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.floating-budget:hover,
.floating-budget:focus {
  background: var(--color-red-dark);
  transform: translateY(-3px);
}

.service-tabs {
  position: relative;
}

.tabs-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  padding: 12px;
  margin-bottom: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(216, 21, 39, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(216, 21, 39, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(216, 21, 39, 0.18);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 45px rgba(0, 0, 0, 0.24), inset 0 0 28px rgba(216, 21, 39, 0.05);
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 21, 39, 0.8) rgba(255, 255, 255, 0.08);
}

.tabs-list::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(216, 21, 39, 0.26), rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-18deg);
  animation: tabsGlowSweep 6s ease-in-out infinite;
  pointer-events: none;
}

.tabs-list::-webkit-scrollbar {
  height: 8px;
}

.tabs-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.tabs-list::-webkit-scrollbar-thumb {
  background: var(--color-red);
  border-radius: 999px;
}

.tab-button {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 78px;
  padding: 13px 14px;
  overflow: hidden;
  color: var(--color-muted);
  background:
    linear-gradient(90deg, transparent 0 27%, rgba(216, 21, 39, 0.08) 27% calc(27% + 1px), transparent calc(27% + 1px) 100%),
    linear-gradient(0deg, transparent 0 68%, rgba(216, 21, 39, 0.08) 68% calc(68% + 1px), transparent calc(68% + 1px) 100%),
    rgba(7, 8, 11, 0.74);
  border: 1px solid rgba(216, 21, 39, 0.12);
  border-radius: calc(var(--radius) - 2px);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tab-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(216, 21, 39, 0.08);
  border: 1px solid rgba(216, 21, 39, 0.18);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tab-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
  line-height: 1.15;
  white-space: normal;
}

.tab-text small {
  color: rgba(200, 204, 214, 0.75);
  font-size: 0.72rem;
  font-weight: 700;
}

.tab-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.12) 45%, transparent 72%);
  opacity: 0;
  transform: translateX(-60%);
  transition: opacity 0.2s ease, transform 0.45s ease;
  pointer-events: none;
}

.tab-button::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 8px;
  left: 10px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-red), var(--color-red), rgba(255, 255, 255, 0.7), transparent);
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tab-button:hover,
.tab-button:focus {
  color: var(--color-white);
  background:
    linear-gradient(90deg, transparent 0 27%, rgba(216, 21, 39, 0.16) 27% calc(27% + 1px), transparent calc(27% + 1px) 100%),
    rgba(216, 21, 39, 0.12);
  border-color: rgba(216, 21, 39, 0.52);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(216, 21, 39, 0.1);
}

.tab-button:hover::before,
.tab-button:focus::before {
  opacity: 1;
  transform: translateX(60%);
}

.tab-button.is-active {
  color: var(--color-white);
  background:
    linear-gradient(90deg, transparent 0 24%, rgba(216, 21, 39, 0.26) 24% calc(24% + 2px), transparent calc(24% + 2px) 100%),
    linear-gradient(135deg, rgba(216, 21, 39, 0.94), rgba(166, 15, 29, 0.76)),
    rgba(216, 21, 39, 0.24);
  border-color: rgba(216, 21, 39, 0.38);
  box-shadow: 0 14px 34px rgba(216, 21, 39, 0.24), 0 0 26px rgba(216, 21, 39, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.tab-button.is-active .tab-index {
  color: var(--color-black);
  background: var(--color-red);
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(216, 21, 39, 0.14), 0 0 22px rgba(216, 21, 39, 0.7);
  animation: tabPulse 1.9s ease-in-out infinite;
}

.tab-button.is-active .tab-text small {
  color: rgba(255, 255, 255, 0.82);
}

.tab-button.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

@keyframes tabsGlowSweep {
  0%,
  35% {
    transform: translateX(0) skewX(-18deg);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  80%,
  100% {
    transform: translateX(520%) skewX(-18deg);
    opacity: 0;
  }
}

@keyframes tabPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

.tab-panel {
  position: relative;
  min-height: 560px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 82% 18%, rgba(216, 21, 39, 0.11), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow-soft), inset 0 0 42px rgba(216, 21, 39, 0.045);
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel::before,
.tab-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.tab-panel::before {
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(216, 21, 39, 0.18) 12% calc(12% + 1px), transparent calc(12% + 1px) 36%, rgba(216, 21, 39, 0.14) 36% calc(36% + 1px), transparent calc(36% + 1px) 100%),
    linear-gradient(0deg, transparent 0 18%, rgba(216, 21, 39, 0.12) 18% calc(18% + 1px), transparent calc(18% + 1px) 72%, rgba(216, 21, 39, 0.12) 72% calc(72% + 1px), transparent calc(72% + 1px) 100%),
    radial-gradient(circle at 12% 18%, rgba(216, 21, 39, 0.68) 0 2px, transparent 3px),
    radial-gradient(circle at 36% 72%, rgba(216, 21, 39, 0.56) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 18%, rgba(216, 21, 39, 0.52) 0 2px, transparent 3px);
  opacity: 0.48;
}

.tab-panel::after {
  background: linear-gradient(110deg, transparent 0 40%, rgba(216, 21, 39, 0.16) 50%, transparent 62% 100%);
  transform: translateX(-90%);
  animation: panelSweep 6.4s ease-in-out infinite;
}

.tab-panel > * {
  position: relative;
  z-index: 1;
}

.service-panel-copy {
  max-width: 760px;
  margin-bottom: 24px;
  padding-right: 150px;
}

.service-panel-copy h3 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.08;
}

.service-panel-copy p {
  color: var(--color-muted);
  font-size: 1.04rem;
}

.service-gallery {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: repeat(2, 190px);
  gap: 16px;
}

.service-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  filter: saturate(1.08) contrast(1.08);
  box-shadow: 0 0 0 1px rgba(216, 21, 39, 0.06), 0 16px 34px rgba(0, 0, 0, 0.22);
}

.service-gallery img:first-child {
  grid-row: span 2;
}

.tab-budget {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 3;
  min-width: 132px;
}

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

.feature-item {
  padding: 24px;
  border-top: 3px solid var(--color-red);
  background: rgba(255, 255, 255, 0.055);
}

.feature-item span {
  color: var(--color-red);
  font-weight: 800;
}

.feature-item h3 {
  margin: 12px 0 8px;
  font-size: 1.12rem;
}

.feature-item p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.contact-cta {
  padding: 86px 0;
}

.cta-box {
  max-width: 900px;
  text-align: center;
}

.cta-box .btn {
  margin-top: 18px;
}

.client-carousel {
  overflow: hidden;
}

.clients-heading {
  margin-bottom: 26px;
}

.client-marquee {
  position: relative;
  overflow: hidden;
  padding: 8px 0;
  border-top: 1px solid rgba(216, 21, 39, 0.16);
  border-bottom: 1px solid rgba(216, 21, 39, 0.16);
}

.client-marquee::before,
.client-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: min(18vw, 170px);
  pointer-events: none;
}

.client-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-black-soft), rgba(17, 19, 26, 0));
}

.client-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--color-black-soft), rgba(17, 19, 26, 0));
}

.client-marquee-track {
  display: flex;
  width: max-content;
  animation: clientMarquee 24s linear infinite;
}

.client-marquee:hover .client-marquee-track,
.client-marquee:focus-within .client-marquee-track {
  animation-play-state: paused;
}

.client-logo-row {
  display: flex;
  flex: 0 0 auto;
  gap: 16px;
  padding-right: 16px;
}

.client-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 86px;
  padding: 18px 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 241, 246, 0.94)),
    var(--color-white);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.client-logo img {
  display: block;
  width: 100%;
  max-width: 160px;
  height: 48px;
  object-fit: contain;
}

.client-logo-vale {
  border-color: rgba(84, 183, 223, 0.36);
  box-shadow: inset 0 -4px 0 rgba(244, 130, 32, 0.78), 0 16px 34px rgba(0, 0, 0, 0.2);
}

.client-logo-petrobras {
  border-color: rgba(17, 168, 90, 0.36);
  box-shadow: inset 0 -4px 0 rgba(255, 210, 0, 0.8), 0 16px 34px rgba(0, 0, 0, 0.2);
}

.client-logo-cemig {
  border-color: rgba(77, 183, 255, 0.36);
}

.client-logo-anglo-american {
  border-color: rgba(143, 214, 255, 0.34);
}

.client-logo-anglogold {
  border-color: rgba(215, 179, 96, 0.36);
}

@keyframes clientMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.site-footer {
  padding: 28px 0;
  color: var(--color-muted);
  background: #030406;
  border-top: 1px solid var(--color-line);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-content p {
  margin: 0;
}

.footer-company {
  display: grid;
  gap: 2px;
}

.footer-cnpj {
  color: rgba(200, 204, 214, 0.82);
  font-size: 0.9rem;
}

.has-floating-budget .site-footer {
  padding-bottom: 98px;
}

:focus-visible {
  outline: 3px solid var(--color-white);
  outline-offset: 4px;
}

@media (max-width: 920px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 12px 16px 20px;
    background: rgba(7, 8, 11, 0.98);
    border-bottom: 1px solid var(--color-line);
    transform: translateY(-130%);
    visibility: hidden;
    transition: transform 0.24s ease, visibility 0.24s ease;
  }

  .nav-menu.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .nav-menu a {
    display: block;
    padding: 14px 0;
  }

  .hero-grid,
  .two-column,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-media-grid {
    grid-template-columns: 1.2fr 0.88fr;
  }

  .hero {
    min-height: auto;
  }

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

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

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

  .service-page-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 210px;
  }

  .service-page-gallery img:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }

  .service-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 180px;
  }

  .service-gallery img:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }

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

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

  .client-logo {
    min-width: 200px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 68px;
  }

  .container,
  .navbar {
    width: min(100% - 24px, var(--container));
  }

  .brand-logo {
    width: 190px;
  }

  .section {
    padding: 68px 0;
  }

  .section-band,
  .hero {
    padding: 96px 0 68px;
  }

  .hero-content h1 {
    font-size: 2.55rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card img {
    height: 210px;
  }

  .service-detail-grid {
    gap: 28px;
  }

  .service-feature-image img {
    height: 260px;
  }

  .service-page-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 210px);
  }

  .service-page-gallery img:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }

  .service-nav-actions,
  .service-nav-actions .btn {
    width: 100%;
  }

  .client-carousel {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .client-marquee::before,
  .client-marquee::after {
    width: 42px;
  }

  .client-logo-row {
    gap: 12px;
    padding-right: 12px;
  }

  .client-logo {
    min-width: 176px;
    height: 72px;
    padding: 14px 18px;
  }

  .client-logo img {
    max-width: 136px;
    height: 40px;
  }

  .floating-budget {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

  .has-floating-budget .site-footer {
    padding-bottom: 94px;
  }

  .tabs-list {
    grid-auto-columns: minmax(210px, 78vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 10px;
    padding: 10px;
    margin-right: -12px;
    margin-left: -12px;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .tab-button {
    min-width: 0;
    min-height: 72px;
    padding: 12px;
    font-size: 0.92rem;
  }

  .tab-button::after {
    left: 10px;
  }

  .tab-index {
    width: 30px;
    height: 30px;
    font-size: 0.68rem;
  }

  .tab-text small {
    font-size: 0.68rem;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .hero-panel {
    min-height: 340px;
  }

  .signal-card {
    top: 22px;
    right: 22px;
    left: 22px;
    padding: 22px;
  }

  .signal-card strong {
    font-size: 4.4rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .about-media-grid {
    grid-template-columns: 1fr;
  }

  .about-media-item,
  .about-media-item-large {
    grid-row: auto;
    min-height: 220px;
  }

  .tab-panel {
    min-height: auto;
    padding: 20px;
    padding-bottom: 86px;
  }

  .service-panel-copy {
    padding-right: 0;
  }

  .service-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 210px);
  }

  .service-gallery img:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }

  .tab-budget {
    top: auto;
    right: 20px;
    bottom: 20px;
    left: 20px;
    width: calc(100% - 40px);
  }

  .footer-content {
    display: grid;
  }

}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
