:root {
  color-scheme: light;
}

html.dark {
  color-scheme: dark;
}

body {
  overflow-x: hidden;
}

.grid-light {
  background-image:
    linear-gradient(rgba(8, 43, 105, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 43, 105, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
}

.dark .grid-light {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.glass {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.section-kicker {
  letter-spacing: 0.28em;
}

.section-title-line::after {
  content: "";
  display: block;
  width: 92px;
  height: 5px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f4c400, #f57c00, #f32026);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #f4c400;
  transition: width 0.28s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.panel-hover,
.service-card,
.project-card,
.gallery-card,
.stat-card {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.panel-hover:hover,
.service-card:hover,
.project-card:hover,
.gallery-card:hover,
.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 48px rgba(8, 43, 105, 0.16);
}

.brochure-strip {
  position: relative;
  overflow: hidden;
}

.brochure-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08),
      transparent 22%,
      transparent 78%,
      rgba(255, 255, 255, 0.08)
    ),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 35%);
  pointer-events: none;
}

.hero-photo {
  background:
    linear-gradient(rgba(8, 43, 105, 0.35), rgba(8, 43, 105, 0.55)),
    linear-gradient(180deg, #ff9800, #9c2306 48%, #1a1a1a);
}

.industrial-photo-1 {
  background:
    linear-gradient(rgba(8, 43, 105, 0.18), rgba(8, 43, 105, 0.18)),
    linear-gradient(135deg, #8ec5ff, #3f87d6 55%, #002b5c);
}

.industrial-photo-2 {
  background:
    linear-gradient(rgba(8, 43, 105, 0.12), rgba(8, 43, 105, 0.12)),
    linear-gradient(135deg, #d9dde2, #a7b1bb 50%, #67727d);
}

.industrial-photo-3 {
  background:
    linear-gradient(rgba(8, 43, 105, 0.12), rgba(8, 43, 105, 0.12)),
    linear-gradient(135deg, #d7d2cc, #304352);
}

.industrial-photo-4 {
  background:
    linear-gradient(rgba(8, 43, 105, 0.18), rgba(8, 43, 105, 0.18)),
    linear-gradient(135deg, #1e3c72, #2a5298);
}

.industrial-photo-5 {
  background:
    linear-gradient(rgba(8, 43, 105, 0.16), rgba(8, 43, 105, 0.16)),
    linear-gradient(135deg, #4facfe, #00f2fe);
}

.industrial-photo-6 {
  background:
    linear-gradient(rgba(8, 43, 105, 0.2), rgba(8, 43, 105, 0.2)),
    linear-gradient(135deg, #43cea2, #185a9d);
}

.pattern-dots {
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(255, 255, 255, 0.18) 1px,
    transparent 0
  );
  background-size: 16px 16px;
}

.diagonal-pattern {
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%),
    linear-gradient(
      315deg,
      rgba(255, 255, 255, 0.06) 25%,
      rgba(255, 255, 255, 0.02) 25%
    );
  background-position:
    14px 0,
    14px 0,
    0 0,
    0 0;
  background-size: 28px 28px;
  background-repeat: repeat;
}

.number-badge {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
}

.text-stroke-dark {
  -webkit-text-stroke: 1px rgba(8, 43, 105, 0.12);
}

.bg-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-video__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(0.95) contrast(1.06) brightness(0.72);
}

.bg-video::after {
  content: "";
  position: absolute;
  inset: 0;
}

.bg-video--hero::after {
  background: linear-gradient(
    135deg,
    rgba(4, 26, 66, 0.72),
    rgba(8, 43, 105, 0.48) 50%,
    rgba(4, 26, 66, 0.78)
  );
}

.bg-video--header .bg-video__media {
  filter: saturate(0.9) contrast(1.05) brightness(0.82);
}

.bg-video--header::after {
  background: linear-gradient(
    180deg,
    rgba(4, 26, 66, 0.34),
    rgba(4, 26, 66, 0.18)
  );
}

.dark .bg-video--header .bg-video__media {
  filter: saturate(0.95) contrast(1.1) brightness(0.6);
}

.dark .bg-video--header::after {
  background: linear-gradient(
    180deg,
    rgba(4, 26, 66, 0.62),
    rgba(4, 26, 66, 0.35)
  );
}

@media (prefers-reduced-motion: reduce) {
  .bg-video {
    display: none;
  }
}
