:root {
  --bg: #070d18;
  --bg-2: #0d1830;
  --panel: #111f36;
  --panel-2: #162844;
  --text: #eef4ff;
  --muted: #a9bbdc;
  --brand: #3de0cf;
  --brand2: #6ca9ff;
  --line: #2a3d61;
  --ok: #8be88c;
  --max: 1180px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 90% -10%, rgba(108,169,255,.2), transparent),
              radial-gradient(900px 600px at 10% 5%, rgba(61,224,207,.16), transparent),
              linear-gradient(180deg, var(--bg), var(--bg-2));
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.service-card-link { display: block; color: inherit; text-decoration: none; }
.service-card-link:hover { text-decoration: none; }
.service-card-media {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  width: 100%;
  min-width: 0;
  height: 100%;
}
.service-card-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
  flex: 0 0 auto;
}
.service-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.service-card-body h3 { margin: 0 0 8px; }
.service-card-body p { margin: 0; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: radial-gradient(1200px 600px at 90% -10%, rgba(108,169,255,.12), transparent),
              radial-gradient(900px 600px at 10% 5%, rgba(61,224,207,.10), transparent),
              linear-gradient(180deg, rgba(7,13,24,.76), rgba(13,24,48,.76));
  border-bottom: 1px solid var(--line);
}
.header-wrap { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { color: white; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand img { height: 30px; width: auto; display:block; }
.brand-text {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand-dot { width: 11px; height: 11px; border-radius: 50%; background: linear-gradient(45deg,var(--brand),var(--brand2)); box-shadow: 0 0 14px rgba(61,224,207,.85); }
.menu-btn { display: none; border:1px solid var(--line); background: transparent; color: var(--text); border-radius: 10px; padding: 8px 11px; }
.nav { display: flex; gap: 16px; align-items: center; }
.nav a { color: var(--muted); font-weight: 550; }
.nav a.active { color: #fff; }

.btn { display:inline-flex; align-items:center; justify-content:center; border-radius: 10px; padding: 11px 16px; font-weight: 650; font-size: 1rem; border:1px solid transparent; text-decoration: none; }
.btn-primary { background: linear-gradient(130deg, var(--brand), var(--brand2)); color: #05222b; }
.btn-primary:hover { filter: brightness(1.08); text-decoration: none; }
.btn-secondary { border-color: var(--line); color: var(--text); background: rgba(17,31,54,.45); }
.btn-secondary:hover { background: rgba(24,40,69,.8); text-decoration: none; }

.hero { padding: 45px 0 48px; }
.hero-stage {
  position: relative;
  min-height: clamp(360px, 58vh, 620px);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
  padding-top: 0;
  padding-bottom: 0;
  background: radial-gradient(1200px 600px at 90% -10%, rgba(108,169,255,.2), transparent),
              radial-gradient(900px 600px at 10% 5%, rgba(61,224,207,.16), transparent),
              linear-gradient(180deg, var(--bg), var(--bg-2));
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: transparent;
  transition: opacity 900ms ease;
}
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7,13,24,.05) 0%, rgba(7,13,24,.24) 58%, rgba(7,13,24,.66) 100%),
    linear-gradient(90deg, rgba(7,13,24,.20) 0%, rgba(7,13,24,.09) 40%, rgba(7,13,24,.38) 100%);
  transition: opacity 900ms ease;
}
.hero-stage .container { padding-top: 36px; padding-bottom: 14px; }

@media (min-width: 981px) {
  .hero-stage {
    min-height: min(56.25vw, 620px);
  }
  .hero-bg,
  .hero-bg-fade {
    inset: 0;
  }
  .hero-bg video {
    object-fit: contain;
    object-position: center center;
    background: #08111f;
  }
  .hero-stage .container {
    padding-top: 28px;
    padding-bottom: 10px;
  }
  .badge { margin-bottom: 7px; }
  .hero h1 { margin-bottom: 8px; }
  .hero-actions { margin-top: 12px; }
  .metrics { margin-top: 14px; }
  .services-overview { margin-top: -14px; }
}
.hero-reveal {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms ease, transform 700ms ease;
  pointer-events: none;
}
.hero-stage.is-complete .hero-reveal {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hero-stage.is-complete .hero-bg { opacity: 0; }
html.connex-hero-skip .hero-stage .hero-bg,
html.connex-hero-skip .hero-stage .hero-bg-fade {
  opacity: 0;
  pointer-events: none;
}
html.connex-hero-skip .hero-stage .hero-reveal {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hero-stage.is-complete .hero-bg-fade { opacity: 0; }

.badge { display:inline-block; border:1px solid var(--line); border-radius:999px; padding:6px 11px; color:var(--muted); font-size:.84rem; margin-bottom: 14px; }
.hero h1 { margin: 0 0 14px; font-size: clamp(2.05rem, 4.6vw, 3.75rem); line-height: 1.02; letter-spacing:-.03em; max-width: 920px; }
.hero p { color: var(--muted); max-width: 820px; font-size: 1.08rem; }
.hero-actions { display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-top: 22px; }
.hero-actions .btn { grid-column: span 2; text-align: center; justify-content: center; }
.hero-actions form, .hero-actions > a { grid-column: span 2; width: 100%; box-sizing: border-box; }
.hero-actions button[type="submit"] { width: 100%; }

.metrics { display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-top: 26px; }
.metric { background: linear-gradient(180deg, rgba(22,40,68,.84), rgba(14,27,46,.84)); border:1px solid var(--line); border-radius:14px; padding: 16px; }
.metric .n { font-size: 1.45rem; font-weight: 800; color:#fff; }
.metric .l { color:var(--muted); font-size: .92rem; margin-top: 4px; }

section { padding: 56px 0; }
.section-title { margin: 0 0 8px; font-size: clamp(1.45rem,3vw,2.05rem); }
.section-sub { margin: 0 0 22px; color: var(--muted); max-width: 860px; }

.grid-3 { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; align-items: stretch; }
.grid-2 { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; row-gap: 8px; align-items: stretch; }
.grid-3 > *,
.grid-2 > * {
  min-width: 0;
}
.services-overview { padding-bottom: 0; margin-top: -28px; }
.services-graphic { margin: 8px 0 28px; width: 100%; border-radius: 18px; overflow: hidden; background: transparent; border: 1px solid rgba(120,154,206,.16); box-shadow: 0 18px 48px rgba(0,0,0,.22); }
.services-graphic img { display: block; width: 100%; height: auto; }
.card { background: linear-gradient(180deg, rgba(24,42,71,.78), rgba(17,30,50,.82)); border:1px solid var(--line); border-radius:14px; padding: 18px; transition: .2s ease; }
.card:hover { transform: translateY(-2px); border-color:#3a5784; }
.card h2,
.card h3 {
  margin: 0 0 8px;
}
.card h2 + p,
.card h3 + p {
  margin-top: 0;
}
.card p, .card li { color: var(--muted); }
.card p + h2,
.card p + h3,
.card ul + h2,
.card ul + h3 {
  margin-top: 18px;
}
.card ul { margin: 10px 0 0 20px; padding:0; }
.map-embed { margin-top: 14px; border-radius: 10px; overflow: hidden; }

.services-stack { display: grid; gap: 16px 16px; row-gap: 8px; }
.service-panel {
  background: linear-gradient(180deg, rgba(24,42,71,.78), rgba(17,30,50,.82));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  transition: .2s ease;
}
.service-panel:hover { transform: translateY(-2px); border-color:#3a5784; }
.service-panel h2 { margin: 0 0 8px; font-size: 1.25rem; }
.service-panel p { margin: 0 0 12px; color: var(--muted); }
.service-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.service-points li {
  color: var(--text);
  position: relative;
  padding-left: 16px;
}
.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(45deg,var(--brand),var(--brand2));
  box-shadow: 0 0 10px rgba(61,224,207,.55);
}
.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.service-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(108,169,255,.28);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--text);
  font-size: .86rem;
  background: rgba(10, 22, 40, .55);
}
.service-panel:target {
  border-color: rgba(61,224,207,.8);
  box-shadow: 0 0 0 2px rgba(61,224,207,.18), 0 16px 42px rgba(0,0,0,.18);
  transform: translateY(-2px);
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

.process { display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.step { background: linear-gradient(180deg, rgba(20,35,59,.8), rgba(17,31,54,.8)); border:1px solid var(--line); border-radius:14px; padding: 16px; }
.step .num { color: var(--brand); font-weight: 760; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.step p { color: var(--muted); }

.split { display:grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
blockquote { margin:0; border-left:3px solid var(--brand); background: rgba(15,29,48,.7); padding: 16px; border-radius: 10px; color: var(--muted); }
.cta-band { background: linear-gradient(130deg, rgba(61,224,207,.14), rgba(108,169,255,.14)); border:1px solid var(--line); border-radius: 14px; padding: 20px; }

.timeline { display:grid; gap: 12px; }
.t-item { display:grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: start; }
.t-item .k { color: var(--ok); font-weight: 700; font-size: .9rem; }
.t-item .v { color: var(--muted); }

.form-grid { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
label { display:block; margin: 8px 0 6px; color: var(--muted); font-size: .92rem; }
input,select,textarea { width: 100%; border:1px solid #35527b; background: #0d1a2e; color: var(--text); border-radius: 10px; padding: 11px 12px; font: inherit; }
textarea { min-height: 130px; }

.logo-marquee-section {
  padding-top: 8px;
  padding-bottom: 56px;
}
.logo-marquee-card {
  padding: 0;
  overflow: hidden;
}
.logo-marquee {
  overflow: hidden;
  background: transparent;
  border-top: 1px solid rgba(42,61,97,.45);
  border-bottom: 1px solid rgba(42,61,97,.45);
  position: relative;
  width: 100%;
}
.logo-marquee::before,
.logo-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(6vw, 64px);
  z-index: 2;
  pointer-events: none;
}
.logo-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(17,30,50,1), rgba(17,30,50,0));
}
.logo-marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(17,30,50,1), rgba(17,30,50,0));
}
.logo-track {
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  padding: 9px 0;
  animation: logo-scroll 30s linear infinite reverse;
}
.logo-item {
  flex: 0 0 auto;
  width: 235px;
  height: 78px;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.logo-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@keyframes logo-scroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.site-footer { border-top:1px solid var(--line); margin-top: 0; }
.footer-wrap { padding: 8px 0 8px; color: var(--muted); display:flex; justify-content: space-between; gap:8px; flex-wrap: nowrap; align-items: center; }
.footer-wrap > :last-child { max-width: 720px; text-align: right; line-height: 1; display: flex; align-items: center; }
.footer-icons { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; flex: 0 0 auto; }
.footer-icon-link { display: inline-flex; align-items: center; justify-content: center; line-height: 0; width: 44px; height: 44px; min-width: 44px; min-height: 44px; max-width: 44px; max-height: 44px; flex: 0 0 44px; overflow: hidden; }
.footer-icon-link img { display: block; width: 44px; height: 44px; min-width: 44px; min-height: 44px; max-width: 44px; max-height: 44px; object-fit: contain; }
.footer-icon-link:hover { filter: brightness(1.08); text-decoration: none; }
.footer-address { display: inline; }
.footer-sep { display: inline-block; margin: 0 8px; }

@media (max-width: 980px) {
  .metrics, .process, .grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .split { grid-template-columns: 1fr; }
  .brand-text { font-size: .88rem; }
  .menu-btn { display: inline-flex; }
  .nav {
    display:none; position:absolute; left: 20px; right: 20px; top: 74px;
    background: rgba(12,22,39,.97); border:1px solid var(--line); border-radius: 12px; padding: 12px; flex-direction: column; align-items: flex-start;
  }
  .nav.open { display:flex; }
  .hero-stage .container { padding-top: 76px; }
}
@media (max-width: 700px) {
  .metrics,.grid-3,.grid-2,.process,.form-grid,.service-points { grid-template-columns: 1fr; }
  .brand-text { display: none; }
  .hero { padding-top: 66px; }
  .hero-stage { min-height: 560px; }
  .hero-stage .container { padding-top: 72px; padding-bottom: 38px; }
  .service-panel { padding: 20px; }
  .footer-wrap { padding: 8px 0; flex-wrap: wrap; align-items: flex-start; }
  .footer-wrap > :last-child { max-width: 100%; text-align: left; display: flex; align-items: center; }
  .footer-icons { justify-content: flex-start; gap: 4px; }
  .footer-icon-link { display: inline-flex; }
  .footer-address, .footer-sep, .footer-wrap > :last-child a { display: block; }
  .footer-sep { margin: 4px 0; }
}

.about-approach-section {
  padding-top: 0;
  padding-bottom: 24px;
}
.about-stack {
  gap: 16px;
  row-gap: 8px;
}
.about-approach-card {
  display: flex;
}
.about-approach-image,
.about-standards-image {
  aspect-ratio: 235 / 81;
  object-fit: cover;
}
.about-approach-body {
  padding: 18px;
}
.about-approach-card p {
  margin: 0 0 12px;
  font-size: .98rem;
  line-height: 1.6;
}
.about-secondary-card-wrap {
  display: block;
  margin-top: 0;
}
.about-secondary-card {
  width: 100%;
}
.about-connex-card { display: block; }
.about-connex-inner { display: flex; gap: 28px; align-items: stretch; }
.about-connex-text { flex: 1; min-width: 0; height: 528px; display: flex; flex-direction: column; justify-content: center; }
.about-connex-text h3 { margin: 0 0 12px; }
.about-connex-text p { margin: 0 0 12px; font-size: .95rem; line-height: 1.5; }
.about-connex-image { flex: 0 0 585px; width: 585px; }
.about-connex-image img { display: block; width: 100%; height: 528px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0,0,0,.28); }

@media (max-width: 900px) { .about-secondary-card-wrap { grid-template-columns: 1fr; } .about-secondary-card { grid-column: auto; } .about-connex-inner { flex-direction: column; } .about-connex-image { flex: none; width: 100%; max-width: 600px; height: auto; } .about-connex-image img { height: auto; } .about-connex-text { height: auto; } }
@media (max-width: 700px) {
  .logo-track {
    gap: 6px;
    padding: 8px 0;
    animation-duration: 24s;
  }
  .logo-item {
    width: 188px;
    height: 62px;
  }
}


.hero-bg video {
  background: #08111f;
}

@media (max-width: 900px) {
  .container { padding: 0 16px; }
  section { padding: 44px 0; }
  .hero h1 { font-size: clamp(1.85rem, 8vw, 2.8rem); }
  .hero p { font-size: 1rem; }
  .hero-actions { grid-template-columns: 1fr; }
  .hero-actions .btn,
  .hero-actions form,
  .hero-actions > a { grid-column: auto; }
  .metric { padding: 14px; }
  .service-card-body { padding: 16px; }
  .card { padding: 16px; }
}

@media (max-width: 700px) {
  html { font-size: 14px; }
  .container { padding: 0 14px; }
  .header-wrap { height: 64px; gap: 8px; }
  .brand img { height: 26px; }
  .menu-btn { padding: 7px 10px; font-size: .92rem; }
  .nav { left: 14px; right: 14px; top: 64px; padding: 10px; gap: 10px; }
  .nav a { font-size: .96rem; }
  .hero {
    padding-top: 22px;
    padding-bottom: 26px;
  }
  .hero-stage {
    min-height: auto;
    padding-top: 0;
    padding-bottom: 0;
  }
  .hero-bg {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: clamp(170px, 48vw, 240px);
    margin-bottom: 8px;
    overflow: hidden;
    transition: max-height 450ms ease, opacity 450ms ease, margin-bottom 450ms ease;
  }
  .hero-bg-fade {
    inset: 0;
    height: auto;
    opacity: 1;
    transition: opacity 450ms ease;
  }
  .hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    background: #08111f;
    display: block;
  }
  .hero-stage.is-complete .hero-bg {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
  }
  .hero-stage.is-complete .hero-bg-fade {
    opacity: 0;
    pointer-events: none;
  }
  .hero-stage .container,
  .hero > .container {
    padding-top: 6px;
    padding-bottom: 0;
    position: relative;
    z-index: 2;
  }
  .hero-stage.is-mobile-live .hero-reveal {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .hero h1 { font-size: clamp(1.65rem, 7vw, 2.2rem); line-height: 1.05; margin-bottom: 10px; }
  .hero p { font-size: .95rem; max-width: 100%; }
  .badge { margin-bottom: 6px; padding: 5px 10px; font-size: .76rem; }
  .hero-actions { gap: 10px; margin-top: 16px; }
  .btn { padding: 10px 14px; font-size: .94rem; }
  .metrics { gap: 10px; margin-top: 18px; }
  .metric { padding: 12px; border-radius: 12px; }
  .metric .n { font-size: 1.18rem; }
  .metric .l { font-size: .82rem; }
  .section-title { font-size: 1.35rem; }
  .section-sub { margin-bottom: 16px; font-size: .95rem; }
  .services-overview { margin-top: -10px; }
  .services-graphic { margin: 6px 0 16px; border-radius: 12px; }
  .card,
  .service-panel,
  .service-card-body,
  .about-approach-body { padding: 14px; }
  .service-panel h2,
  .card h2 { font-size: 1.15rem; }
  .service-panel p,
  .card p,
  .card li,
  .service-card-body p { font-size: .92rem; line-height: 1.5; }
  .service-meta { gap: 8px; margin-top: 12px; }
  .service-tag { padding: 6px 9px; font-size: .78rem; }
  .service-card-image { border-radius: 12px 12px 0 0; }
  .about-approach-card { display: block; }
  .about-connex-inner { gap: 16px; }
  .about-connex-text p { font-size: .92rem; }
  .about-connex-image img { max-height: none; }
  .logo-marquee-section { padding-top: 0; padding-bottom: 38px; }
  .site-footer { margin-top: 0; }
  .footer-wrap {
    gap: 12px;
    justify-content: center;
    align-items: center;
    padding: 14px 0 16px;
    font-size: .86rem;
    text-align: center;
  }
  .footer-icons { gap: 6px; }
  .footer-icon-link {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    max-width: 22px;
    max-height: 22px;
  }
  .footer-icon-link img {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain;
  }
}

@media (min-width: 701px) and (max-width: 980px) {
  html { font-size: 15px; }
  .container { padding: 0 18px; }
  .hero h1 { font-size: clamp(1.95rem, 5vw, 2.9rem); }
  .hero p,
  .section-sub,
  .card p,
  .card li,
  .service-panel p { font-size: .96rem; }
  .metric .n { font-size: 1.3rem; }
  .metric .l { font-size: .86rem; }
  .card,
  .service-panel,
  .service-card-body { padding: 15px; }
  .service-tag { font-size: .8rem; }
}
