:root {
  --night: #06101f;
  --night-2: #0b1d3a;
  --violet: #0a6fe0;
  --lilac: #5cc6ff;
  --mist: #a9bdd6;
  --mint: #05b6fd;
  --error: #d14b5a;
  --grey: #f3f6fb;
  --line: #dfe6f0;
  --ink: #111a2b;
  --white: #ffffff;

  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bellota Text", "Barlow", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--violet); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--night); }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--night); color: var(--white); padding: 10px 16px; z-index: 100; border-radius: 4px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }

.kicker { font-family: var(--font-display); color: var(--violet); font-size: 1.05rem; margin-bottom: .75rem; }
.section-title { max-width: 22ch; }

/* Buttons */
.btn {
  display: inline-block;
  font: 600 1rem/1 var(--font-body);
  padding: 16px 30px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--violet); color: var(--white); }
.btn-primary:hover { background: var(--night); }
.btn-light { background: transparent; color: var(--white); border-color: var(--lilac); }
.btn-light:hover { background: var(--lilac); color: var(--night); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--white);
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { background: rgba(6, 16, 31, .96); box-shadow: 0 1px 0 rgba(92, 198, 255, .15); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; color: var(--lilac); }
.brand-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; letter-spacing: .01em; }
.brand-name b { font-weight: 700; color: var(--lilac); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { line-height: 1; }
.brand-tag { font-family: var(--font-body); font-size: .68rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--mist); margin-top: 5px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.site-nav a { color: var(--white); text-decoration: none; font-weight: 500; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--lilac); }
.site-nav .nav-cta { border: 2px solid var(--lilac); border-radius: 999px; padding: 8px 20px; }
.site-nav .nav-cta:hover { background: var(--lilac); color: var(--night); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 26px; height: 2px; background: var(--white); margin: 6px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: min(100svh, 860px);
  display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(120% 90% at 80% 20%, #0b3b8f 0%, var(--night) 55%, #02060d 100%);
  color: var(--white);
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 48px;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero-slides { position: relative; display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide h1, .slide h2 { color: var(--white); font-size: clamp(2.4rem, 5.6vw, 4.5rem); max-width: 16ch; }
.slide p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 42ch; color: var(--mist); margin-bottom: 2rem; }
.slide .wrap > * { transform: translateY(14px); transition: transform .8s ease; }
.slide.is-active .wrap > * { transform: none; }

.hero-controls { position: relative; display: flex; align-items: center; gap: 18px; margin-top: 56px; }
.dots { display: flex; gap: 10px; }
.dots button { width: 34px; height: 4px; border: 0; padding: 0; background: rgba(92, 198, 255, .3); cursor: pointer; border-radius: 2px; transition: background-color .3s, width .3s; }
.dots button[aria-selected="true"] { background: var(--lilac); width: 56px; }
.pause { background: none; border: 0; padding: 6px; cursor: pointer; }
.pause svg { width: 14px; height: 14px; fill: var(--mist); }
.pause[aria-pressed="true"] svg rect:last-child { display: none; }

/* Pillars */
.pillars { padding: var(--section) 0; background: var(--white); }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 48px; border-top: 1px solid var(--line); }
.pillar { padding: 40px 32px 44px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.pillar:last-child { border-right: 0; }
.pillar-icon { width: 52px; height: 52px; fill: none; stroke: var(--violet); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 24px; }
.pillar h3 { font-size: 1.9rem; }
.pillar-lede { font-weight: 600; color: var(--violet); }
.pillar p:not(.pillar-lede) { color: #44526a; }
.more { margin-top: auto; font-weight: 600; text-decoration: none; color: var(--night); border-bottom: 2px solid var(--mint); align-self: flex-start; padding-bottom: 2px; }
.more:hover { color: var(--mint); }
.pillar-dark { background: var(--night); color: var(--mist); border-right-color: var(--night); }
.pillar-dark h3 { color: var(--white); }
.pillar-dark .pillar-lede { color: var(--lilac); }
.pillar-dark p:not(.pillar-lede) { color: var(--mist); }
.pillar-dark .pillar-icon { stroke: var(--lilac); }
.pillar-dark .more { color: var(--white); }

/* Featured services */
.featured { background: var(--grey); padding: var(--section) 0 calc(var(--section) * .7); }
.featured-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.featured-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.featured-intro h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.featured-intro p:not(.kicker) { color: #44526a; margin-bottom: 2rem; }
.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.service-list li { padding: 26px 0 22px; border-top: 2px solid var(--mist); }
.service-list h3 { font-size: 1.2rem; margin-bottom: .35em; }
.service-list p { margin: 0; color: #44526a; font-size: 1rem; }

.partners { margin-top: calc(var(--section) * .7); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.partners p { margin: 0; color: #44526a; max-width: 44ch; }
.partner-strip { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.partner-strip li { font-weight: 600; font-size: .95rem; color: var(--night); background: var(--white); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; }

/* About */
.about { padding: var(--section) 0; background: var(--night); color: var(--mist); }
.about .kicker { color: var(--lilac); }
.about h2, .about h3 { color: var(--white); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); }
.about-lead p { font-size: 1.2rem; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 10px; }
.about-cols > div { border-left: 2px solid var(--violet); padding-left: 22px; }
.certs { margin-top: 72px; padding-top: 40px; border-top: 1px solid rgba(92, 198, 255, .2); display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.certs h3 { margin: 0; font-size: 1.2rem; }
.certs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.certs li { border: 1px solid var(--violet); color: var(--lilac); padding: 8px 16px; border-radius: 4px; font-weight: 600; }
.trust { margin-top: 56px; max-width: 70ch; }
.trust h3 { font-size: 1.6rem; }

/* Contact */
.contact { background: var(--grey); padding: var(--section) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); }
.contact-info h2 { max-width: 16ch; }
.contact-info address { font-style: normal; margin-top: 32px; padding-left: 20px; border-left: 2px solid var(--mint); color: #44526a; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: var(--white); padding: clamp(24px, 4vw, 44px); border-radius: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; color: var(--night); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink);
  border: 1px solid #cfd8e6; border-radius: 4px;
  padding: 12px 14px; background: var(--white);
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(10, 111, 224, .2); }
.field textarea { resize: vertical; }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: 5px; accent-color: var(--violet); }
.check.has-error span { color: var(--error); }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.form-status { margin: 0; font-weight: 500; }
.form-status.is-error { color: var(--error); }
.form-status.is-ok { color: var(--violet); }

/* Footer */
.site-footer { background: #040b18; color: var(--mist); padding: 48px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer .brand { color: var(--white); }
.legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.legal a { color: var(--mist); text-decoration: none; font-size: .95rem; }
.legal a:hover { color: var(--lilac); }
.copy { margin: 0; font-size: .9rem; width: 100%; opacity: .7; }

/* Responsive */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--night); padding: 16px var(--gutter) 28px;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-header.menu-open { background: var(--night); }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 6px; }
  .site-nav a { display: block; font-size: 1.15rem; padding: 10px 0; }
  .site-nav .nav-cta { margin-top: 10px; }

  .pillar-grid { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--line); }
  .featured-inner, .partners, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .featured-intro { position: static; }
}
@media (max-width: 640px) {
  .service-list, .about-cols, .contact-form { grid-template-columns: 1fr; }
  .pillar { padding: 32px 4px; }
  .pillar-dark { padding: 32px 20px; margin: 0 calc(var(--gutter) * -1); }
}

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

/* ---------- Service pages ---------- */
.site-nav a[aria-current="page"] { border-bottom-color: var(--lilac); }
.site-nav .nav-cta[aria-current="page"] { border-bottom-color: var(--lilac); }

.page-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 120% at 85% 0%, #0b3b8f 0%, var(--night) 55%, #02060d 100%);
  color: var(--white);
  padding: calc(var(--header-h) + clamp(64px, 10vw, 120px)) 0 clamp(64px, 9vw, 110px);
}
.page-hero .wrap { position: relative; }
.page-hero .kicker { color: var(--lilac); }
.page-hero h1 { color: var(--white); max-width: 18ch; }
.page-hero-sub { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--mist); max-width: 46ch; margin: 0; }

.intro { padding: var(--section) 0 calc(var(--section) * .6); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.intro-grid h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0; }
.intro-grid p { color: #44526a; font-size: 1.15rem; max-width: 60ch; }
.intro-grid .btn { margin-top: 1rem; }

.svc { padding: calc(var(--section) * .6) 0 var(--section); }
.svc .section-title { margin-bottom: 32px; }
.service-list.cols-3 { grid-template-columns: repeat(3, 1fr); }

.soc-pillars { background: var(--grey); padding: calc(var(--section) * .7) 0; }
.pillar-links { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.pillar-links a {
  display: flex; align-items: flex-end; height: 100%; min-height: 120px;
  padding: 20px; border-radius: 6px;
  background: var(--night); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.25;
  text-decoration: none; border-bottom: 3px solid var(--mint);
  transition: background-color .2s;
}
.pillar-links a:hover { background: var(--violet); }

.detail { padding: calc(var(--section) * .8) 0; }
.detail-alt { background: var(--night); color: var(--mist); }
.detail-alt h2, .detail-alt h3 { color: var(--white); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.detail-grid > h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); position: sticky; top: calc(var(--header-h) + 32px); margin: 0; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.points li { padding-left: 22px; border-left: 2px solid var(--violet); }
.detail-alt .points li { border-left-color: var(--mint); }
.points h3 { font-size: 1.2rem; margin-bottom: .3em; }
.points p { margin: 0; color: #44526a; }
.detail-alt .points p { color: var(--mist); }

.trust-band { background: var(--grey); padding: calc(var(--section) * .7) 0; border-top: 1px solid var(--line); }
.trust-band h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.trust-band p { max-width: 70ch; color: #44526a; margin: 0; }
.trust-band + .contact { background: var(--white); }
.trust-band + .contact .contact-form { background: var(--grey); }

@media (max-width: 1080px) {
  .pillar-links { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .intro-grid, .detail-grid { grid-template-columns: 1fr; }
  .detail-grid > h2 { position: static; }
  .service-list.cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .service-list.cols-3 { grid-template-columns: 1fr; }
  .pillar-links { grid-template-columns: 1fr 1fr; }
  .pillar-links a { min-height: 96px; }
}

/* Contact form honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; }
.contact-form button[disabled] { opacity: .6; cursor: progress; }

/* Legal pages */
.page-hero-legal { padding-bottom: clamp(40px, 6vw, 72px); }
.page-hero-legal h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: none; }
.legal-doc { padding: clamp(48px, 7vw, 96px) 0 var(--section); }
.legal-doc .wrap { max-width: 860px; }
.legal-doc h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-top: 2.2em; }
.legal-doc h3 { font-size: 1.15rem; margin-top: 1.6em; }
.legal-doc p, .legal-doc li { color: #44526a; }
.legal-doc ul, .legal-doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.legal-doc li { margin-bottom: .4em; }
.legal-doc table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .95rem; display: block; overflow-x: auto; }
.legal-doc th, .legal-doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal-doc th { color: var(--night); background: var(--grey); }
.legal-doc code { font-size: .92em; background: var(--grey); padding: 1px 5px; border-radius: 4px; }
.legal-draft {
  border-left: 4px solid var(--violet);
  background: var(--grey);
  padding: 14px 18px;
  margin-bottom: 2em;
  font-size: .95rem;
}
.legal-updated { font-size: .95rem; color: #62708a; }

/* Photos */
.page-hero.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-img) center / cover no-repeat;
  opacity: .32;
  mix-blend-mode: luminosity;
  pointer-events: none;
}
.page-hero.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 16, 31, .92) 0%, rgba(6, 16, 31, .55) 60%, rgba(6, 16, 31, .25) 100%);
  pointer-events: none;
}
.page-hero.has-photo .hero-canvas, .page-hero.has-photo .wrap { position: relative; z-index: 1; }
.page-hero.has-photo .hero-canvas { position: absolute; }

.about-photo { position: relative; margin: 72px 0 0; border-radius: 18px; overflow: hidden; aspect-ratio: 2 / 1; background: var(--night-2); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); }
.about-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 16, 31, .55), rgba(10, 111, 224, .18)); mix-blend-mode: multiply; }
@media (max-width: 700px) { .about-photo { aspect-ratio: 4 / 3; margin-top: 48px; } }

/* Home hero artwork */
.hero {
  background:
    linear-gradient(90deg, rgba(4, 11, 24, .55) 0%, rgba(4, 11, 24, 0) 55%),
    url("../images/hero-home-blue.webp") right center / cover no-repeat,
    #061634;
}
.hero .hero-canvas { opacity: .45; }
@media (max-width: 960px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(4, 11, 24, .05) 0%, rgba(4, 11, 24, .4) 35%, #040b18 60%),
      url("../images/hero-home-blue-sm.webp") 74% top / auto 62% no-repeat,
      #040b18;
  }
}

/* Nexvanta logo */
.brand-logo { height: 52px; width: auto; }
.site-footer .brand-logo { height: 46px; }
@media (max-width: 640px) { .brand-logo { height: 42px; } }
