:root {
  --blue: #2688bb;
  --green: #267f34;
  --gold: #fce454;
  --ink: #081820;
  --night: #0b1a22;
  --cloud: #f3f7f9;
  --mist: #dfeaf0;
  --white: #ffffff;
  --muted: #6d7d84;
  --line: rgba(8, 24, 32, 0.14);
  --radius: 8px;
  --shadow: 0 24px 80px rgba(6, 22, 31, 0.18);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cloud);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.is-loading {
  overflow: hidden;
}

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

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

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--night);
  color: var(--white);
  transition: opacity 700ms ease, visibility 700ms ease;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader__mark {
  width: min(220px, 58vw);
  animation: floatIn 1s ease both;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  transition: background 300ms ease, border-color 300ms ease, transform 300ms ease;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
}

.site-header.is-scrolled {
  background: rgba(8, 24, 32, 0.9);
  border-bottom-color: rgba(255,255,255,0.12);
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px clamp(18px, 4vw, 54px);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.topbar span {
  color: rgba(255,255,255,0.78);
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 220px;
}

.brand img {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 10px 26px rgba(0,0,0,0.22));
}

.brand__text {
  display: none;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  color: rgba(255,255,255,0.82);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--ink);
  font: 800 12px/1 Inter, ui-sans-serif, system-ui;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--white);
}

.button--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}

.button--ghost:hover {
  color: var(--ink);
  border-color: var(--white);
}

.button--blue {
  background: var(--blue);
  color: var(--white);
}

.button--blue:hover {
  background: var(--green);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 46px;
  padding: 0;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  display: block;
  transition: transform 240ms ease, opacity 240ms ease;
}

.menu-toggle {
  flex-direction: column;
}

.mobile-open .menu-toggle span { opacity: 0; }
.mobile-open .menu-toggle::before { transform: translateY(6px) rotate(45deg); }
.mobile-open .menu-toggle::after { transform: translateY(-6px) rotate(-45deg); }

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--night);
}

.hero--compact {
  min-height: 72vh;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
  transform: translateY(var(--parallax, 0));
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 17, 24, 0.82), rgba(5, 17, 24, 0.32) 54%, rgba(5,17,24,0.72)),
    linear-gradient(0deg, rgba(5,17,24,0.86), rgba(5,17,24,0.08) 42%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 180px 0 78px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: currentColor;
}

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

h1 {
  max-width: 980px;
  margin-bottom: 22px;
  font-size: clamp(48px, 8.4vw, 128px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(34px, 5vw, 74px);
  line-height: 0.95;
  letter-spacing: 0;
}

h3 {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.08;
}

.lead {
  max-width: 720px;
  color: rgba(255,255,255,0.82);
  font-size: clamp(17px, 2vw, 23px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__status {
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  bottom: 34px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(20px);
}

.hero__status div {
  padding: 16px;
  background: rgba(8,24,32,0.58);
}

.hero__status strong {
  display: block;
  font-size: 20px;
  line-height: 1;
}

.hero__status span {
  color: rgba(255,255,255,0.68);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section {
  padding: clamp(72px, 10vw, 140px) clamp(18px, 4vw, 54px);
}

.section--dark {
  background: var(--night);
  color: var(--white);
}

.section--blue {
  background: var(--blue);
  color: var(--white);
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: center;
}

.kicker {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section--dark .kicker,
.section--blue .kicker {
  color: var(--gold);
}

.copy {
  color: var(--muted);
  font-size: 17px;
}

.section--dark .copy,
.section--blue .copy {
  color: rgba(255,255,255,0.74);
}

.image-stack {
  position: relative;
  min-height: 520px;
}

.image-stack img {
  position: absolute;
  width: 72%;
  height: 78%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-stack img:first-child {
  top: 0;
  right: 0;
}

.image-stack img:last-child {
  bottom: 0;
  left: 0;
  width: 52%;
  height: 54%;
  border: 8px solid var(--cloud);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  transform: scale(1.04);
  transition: transform 700ms ease, opacity 700ms ease;
}

.service-card:hover img {
  opacity: 0.52;
  transform: scale(1.12);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(255,255,255,0.98), rgba(255,255,255,0.1));
}

.service-card > *:not(img) {
  position: relative;
  z-index: 1;
}

.service-card__icon {
  width: 76px;
  height: 46px;
  object-fit: contain;
  opacity: 1 !important;
  position: static !important;
  margin-bottom: 24px;
}

.service-card p {
  color: var(--muted);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 54px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.16);
}

.metric {
  padding: 28px;
  background: rgba(255,255,255,0.07);
}

.metric strong {
  display: block;
  color: var(--gold);
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1;
}

.metric span {
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.marquee {
  overflow: hidden;
  background: var(--gold);
  color: var(--ink);
  padding: 14px 0;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__inner {
  display: inline-flex;
  gap: 34px;
  animation: marquee 24s linear infinite;
}

.panel-list {
  display: grid;
  gap: 14px;
}

.panel {
  display: grid;
  grid-template-columns: 0.46fr 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.section--dark .panel {
  border-color: rgba(255,255,255,0.14);
}

.panel:last-child {
  border-bottom: 1px solid var(--line);
}

.panel__number {
  color: var(--blue);
  font-weight: 900;
  letter-spacing: 0.18em;
}

.section--dark .panel__number {
  color: var(--gold);
}

.panel p {
  margin: 0;
  color: var(--muted);
}

.section--dark .panel p {
  color: rgba(255,255,255,0.7);
}

.arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: var(--white);
  transition: transform 260ms ease, background 260ms ease;
}

.panel:hover .arrow,
.service-card:hover .arrow {
  transform: translateX(5px);
  background: var(--green);
}

.runway-grid,
.content-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.data-card,
.content-card,
.blog-card,
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 18px 60px rgba(8, 24, 32, 0.08);
}

.data-card dl,
.spec-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.data-card div,
.spec-list li {
  display: grid;
  grid-template-columns: minmax(140px, 0.65fr) 1fr;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.data-card dt,
.spec-list span:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.data-card dd,
.spec-list span:last-child {
  margin: 0;
  font-weight: 800;
}

.feature-media {
  min-height: 460px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-body {
  padding-top: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 24px;
}

.form {
  display: grid;
  gap: 14px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 14px;
  background: var(--cloud);
  color: var(--ink);
  font: inherit;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.map-frame {
  width: 100%;
  min-height: 380px;
  border: 0;
  border-radius: var(--radius);
}

.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 64px clamp(18px, 4vw, 54px) 28px;
}

.footer-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 34px;
}

.footer-logo {
  width: 160px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.site-footer h4 {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: rgba(255,255,255,0.68);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  width: min(1180px, 100%);
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.55);
  font-size: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 720ms ease, transform 720ms ease;
}

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

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1100px) {
  .nav {
    grid-template-columns: 1fr auto auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: 106px 14px auto 14px;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: var(--radius);
    background: rgba(8, 24, 32, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms ease, transform 240ms ease;
  }

  .mobile-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 14px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav .button {
    display: none;
  }

  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .hero__status {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(1180px, calc(100% - 36px));
    margin: -34px auto 24px;
  }
}

@media (max-width: 720px) {
  .topbar {
    display: none;
  }

  .brand img {
    width: 120px;
  }

  .nav-links {
    top: 82px;
  }

  .hero__content {
    padding-top: 140px;
  }

  .hero__status,
  .service-grid,
  .metric-strip,
  .runway-grid,
  .content-grid,
  .blog-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .image-stack {
    min-height: 400px;
  }

  .image-stack img:first-child {
    width: 88%;
  }

  .image-stack img:last-child {
    width: 64%;
  }

  .data-card div,
  .spec-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
