:root {
  --max: 1220px;
  --radius: 8px;
  --site-header-height: 78px;
  --site-bg: #02070d;
  --site-surface: rgba(3, 12, 21, 0.92);
  --site-surface-strong: rgba(4, 16, 28, 0.96);
  --site-line: rgba(181, 244, 255, 0.16);
  --site-text: #f5f7fb;
  --site-muted: rgba(229, 239, 247, 0.74);
  --site-cyan: #8cecff;
  --site-cyan-strong: #58d8ff;
  --site-gold: #ffe6a3;
  --site-orange: #ff9a6b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 146px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--site-bg);
  color: var(--site-text);
  overflow-x: hidden;
}

body,
button,
input,
select,
textarea {
  font-family: "Inter", sans-serif;
}

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

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

h1,
h2,
h3,
h4,
.brand,
.eyebrow,
.brief-tag,
.component-triad,
.rate-badge {
  letter-spacing: 0 !important;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(var(--max), calc(100% - 48px));
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: #04101a;
  background: var(--site-cyan);
  border-radius: 4px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--site-header-height);
  background: rgba(2, 7, 12, 0.93);
  border-bottom: 1px solid var(--site-line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header .header-inner {
  position: relative;
  min-height: var(--site-header-height);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.site-header .brand,
.site-footer .brand {
  color: #d8f8ff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 28px);
  flex-wrap: nowrap;
}

.site-header .nav > a,
.site-header .nav-trigger {
  color: rgba(245, 247, 251, 0.76);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
}

.site-header .nav > a:hover,
.site-header .nav > a:focus-visible,
.site-header .nav > a[aria-current="page"],
.site-header .nav-trigger:hover,
.site-header .nav-trigger:focus-visible,
.site-header .nav-dropdown.open .nav-trigger {
  color: var(--site-cyan);
  text-shadow: none;
}

.site-header .nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.site-header .nav-trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-caret {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.nav-dropdown.open .nav-caret {
  transform: translateY(2px) rotate(225deg);
}

.site-header .nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 120;
  width: min(410px, calc(100vw - 40px));
  padding: 8px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(140, 236, 255, 0.24);
  border-radius: 8px;
  background: rgba(3, 12, 21, 0.98);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.site-header .nav-menu::before {
  content: "";
  position: absolute;
  inset: -12px 0 auto;
  height: 12px;
}

.site-header .nav-dropdown:hover .nav-menu,
.site-header .nav-dropdown:focus-within .nav-menu,
.site-header .nav-dropdown.open .nav-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.site-header .nav-menu a {
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  border-radius: 5px;
  color: rgba(245, 247, 251, 0.9);
  line-height: 1.25;
}

.site-header .nav-menu a:hover,
.site-header .nav-menu a:focus-visible,
.site-header .nav-menu a[aria-current="page"] {
  color: #04101a;
  background: linear-gradient(90deg, var(--site-cyan), var(--site-gold), var(--site-orange));
  text-shadow: none;
}

.site-header .nav-menu small {
  color: inherit;
  font-size: 0.76rem;
  opacity: 0.74;
}

.site-header .header-cta,
.primary-btn,
.secondary-btn,
.submit-btn {
  min-height: 46px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.site-header .header-cta {
  color: var(--site-text);
  background: rgba(21, 68, 86, 0.44);
  border: 1px solid rgba(140, 236, 255, 0.34);
  white-space: nowrap;
}

.site-header .header-cta:hover,
.site-header .header-cta:focus-visible {
  color: #06111c;
  background: var(--site-cyan);
  transform: translateY(-1px);
}

.nav-toggle,
.nav-contact-link {
  display: none;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(140, 236, 255, 0.3);
  border-radius: 6px;
  color: var(--site-text);
  background: rgba(12, 33, 47, 0.72);
  cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  width: 18px;
  height: 2px;
  display: block;
  border-radius: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.site-header.nav-open .nav-toggle-icon {
  background: transparent;
}

.site-header.nav-open .nav-toggle-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.page-subnav {
  position: sticky;
  top: var(--site-header-height);
  z-index: 74;
  min-height: 44px;
  display: flex;
  align-items: center;
  background: rgba(3, 12, 21, 0.92);
  border-bottom: 1px solid rgba(181, 244, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.page-subnav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 38px);
  overflow-x: auto;
  scrollbar-width: none;
}

.page-subnav-inner::-webkit-scrollbar {
  display: none;
}

.page-subnav a {
  position: relative;
  padding: 13px 0 11px;
  color: rgba(229, 239, 247, 0.68);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.page-subnav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--site-cyan), var(--site-orange));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.page-subnav a:hover,
.page-subnav a:focus-visible,
.page-subnav a[aria-current="location"] {
  color: var(--site-text);
}

.page-subnav a:hover::after,
.page-subnav a:focus-visible::after,
.page-subnav a[aria-current="location"]::after {
  transform: scaleX(1);
}

.section-title {
  width: auto;
  max-width: min(1100px, 100%);
}

.card,
.copy-panel,
.principles-strip,
.team-box,
.vision-panel,
.contact-box,
.scope-card,
.delivery-step,
.capability-card,
.adaptability-strip,
.contact-form,
.pricing-card,
.trial-panel,
.savings-panel,
.info-card,
.validation-card,
.result-strip,
.future-card,
.estimate-panel,
.cost-estimator,
.estimator-column,
.estimator-results,
.estimator-total,
.workflow-diagram-frame {
  border-radius: var(--radius) !important;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--site-cyan-strong) !important;
  outline-offset: 3px !important;
}

.service-bridge {
  margin-top: clamp(48px, 6vw, 76px);
  padding: clamp(24px, 3.5vw, 38px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  border: 1px solid rgba(140, 236, 255, 0.24);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(6, 25, 40, 0.94), rgba(22, 18, 20, 0.9));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.service-bridge h2,
.service-bridge h3 {
  margin: 6px 0 8px;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
}

.service-bridge p {
  max-width: 760px;
  color: var(--site-muted);
  line-height: 1.7;
}

.form-note {
  color: rgba(229, 239, 247, 0.62);
  font-size: 0.78rem;
  line-height: 1.55;
}

.form-note a {
  color: var(--site-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  position: relative;
  border-top: 1px solid var(--site-line);
  background: #02070d;
}

.footer-grid {
  padding: 54px 0 38px;
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(150px, 0.75fr));
  gap: 42px;
}

.footer-intro p {
  max-width: 330px;
  margin: 16px 0 0;
  color: var(--site-muted);
  line-height: 1.65;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-column h2 {
  margin: 0 0 5px;
  color: var(--site-text);
  font-size: 0.84rem;
  text-transform: uppercase;
}

.footer-column a,
.footer-column span {
  color: rgba(229, 239, 247, 0.7);
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-column a:hover,
.footer-column a:focus-visible,
.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: var(--site-cyan);
}

.footer-contact {
  margin: 0;
  display: grid;
  gap: 10px;
  font-style: normal;
}

.footer-bottom {
  min-height: 64px;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(181, 244, 255, 0.1);
  color: rgba(229, 239, 247, 0.56);
  font-size: 0.78rem;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(88, 216, 255, 0.09), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(255, 154, 107, 0.08), transparent 22%),
    #02070d;
}

.legal-hero {
  padding: clamp(70px, 9vw, 118px) 0 50px;
  border-bottom: 1px solid var(--site-line);
}

.legal-hero h1 {
  max-width: 880px;
  margin: 12px 0 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.02;
}

.legal-hero p,
.legal-content p,
.legal-content li {
  color: var(--site-muted);
  line-height: 1.75;
}

.legal-content {
  padding: 56px 0 96px;
}

.legal-document {
  max-width: 900px;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--site-line);
  border-radius: var(--radius);
  background: rgba(4, 14, 24, 0.9);
}

.legal-document section + section {
  margin-top: 38px;
  padding-top: 38px;
  border-top: 1px solid rgba(181, 244, 255, 0.11);
}

.legal-document h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.legal-document ul {
  margin: 14px 0 0;
  padding-left: 22px;
}

.legal-document a {
  color: var(--site-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-section,
.page-section:not(.services-section),
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}

@supports (background-image: url("p4vex-who-we-are-background.webp")) {
  #who-we-are {
    background-image:
      linear-gradient(90deg, rgba(2, 5, 9, 0.54) 0%, rgba(4, 10, 17, 0.32) 48%, rgba(2, 5, 9, 0.46) 100%),
      radial-gradient(circle at 22% 28%, rgba(88, 216, 255, 0.07), transparent 24%),
      radial-gradient(circle at 78% 48%, rgba(255, 154, 107, 0.05), transparent 24%),
      url("p4vex-who-we-are-background.webp"),
      linear-gradient(to bottom, rgba(5, 10, 18, 0.34), rgba(3, 6, 11, 0.32));
  }

  #what-we-do,
  .service-hero,
  .estimate-section {
    background-image:
      linear-gradient(90deg, rgba(2, 5, 9, 0.54) 0%, rgba(4, 10, 17, 0.3) 50%, rgba(2, 5, 9, 0.52) 100%),
      radial-gradient(circle at 72% 34%, rgba(88, 216, 255, 0.08), transparent 26%),
      radial-gradient(circle at 22% 74%, rgba(255, 154, 107, 0.06), transparent 24%),
      url("p4vex-aviation-data-background-apu-v2.webp"),
      linear-gradient(to bottom, rgba(5, 10, 18, 0.34), rgba(3, 6, 11, 0.32));
  }

  #how-we-work,
  .visual-section {
    background-image:
      linear-gradient(90deg, rgba(2, 5, 9, 0.58), rgba(4, 10, 17, 0.32), rgba(2, 5, 9, 0.54)),
      radial-gradient(circle at 18% 26%, rgba(255, 154, 107, 0.05), transparent 24%),
      radial-gradient(circle at 84% 38%, rgba(88, 216, 255, 0.05), transparent 26%),
      url("p4vex-network-connections-background.webp"),
      linear-gradient(to bottom, rgba(9, 11, 18, 0.28), rgba(5, 8, 14, 0.28));
  }

  #vision {
    background-image:
      linear-gradient(90deg, rgba(2, 5, 9, 0.54), rgba(3, 8, 14, 0.28), rgba(2, 5, 9, 0.3)),
      radial-gradient(circle at 78% 48%, rgba(255, 154, 107, 0.07), transparent 26%),
      radial-gradient(circle at 34% 62%, rgba(88, 216, 255, 0.06), transparent 22%),
      url("p4vex-our-vision-background.webp"),
      linear-gradient(to bottom, rgba(6, 10, 18, 0.28), rgba(3, 6, 11, 0.26));
  }

  #team {
    background-image:
      linear-gradient(90deg, rgba(2, 5, 9, 0.54), rgba(4, 10, 17, 0.28), rgba(2, 5, 9, 0.34)),
      radial-gradient(circle at 78% 34%, rgba(88, 216, 255, 0.06), transparent 26%),
      radial-gradient(circle at 65% 66%, rgba(255, 154, 107, 0.06), transparent 24%),
      url("p4vex-meet-the-team-background.webp"),
      linear-gradient(to bottom, rgba(5, 10, 18, 0.28), rgba(3, 6, 11, 0.3));
  }

  .pricing-section {
    background-image:
      linear-gradient(90deg, rgba(2, 5, 9, 0.62), rgba(4, 10, 17, 0.34), rgba(2, 5, 9, 0.58)),
      radial-gradient(circle at 76% 30%, rgba(255, 154, 107, 0.08), transparent 24%),
      radial-gradient(circle at 24% 70%, rgba(88, 216, 255, 0.07), transparent 22%),
      url("p4vex-who-we-are-background.webp"),
      linear-gradient(to bottom, rgba(4, 8, 14, 0.34), rgba(3, 6, 11, 0.32));
  }

  .services-section {
    background-image: url("p4vex-consulting-advisory-session-v2.webp");
  }

  .approach-section {
    background-image: url("p4vex-consulting-records-it-systems.webp");
  }

  .contact-section {
    background-image: url("p4vex-consulting-maintenance-engineering.webp");
  }

  #who-we-are,
  #what-we-do,
  #how-we-work,
  #vision,
  #team,
  .service-hero,
  .visual-section,
  .pricing-section,
  .estimate-section {
    background-position: center;
    background-size: auto, auto, auto, cover, auto;
    background-repeat: no-repeat;
  }
}

@media (max-width: 1080px) {
  .site-header .header-inner {
    gap: 18px;
  }

  .site-header .nav {
    gap: 15px;
  }

  .site-header .nav > a,
  .site-header .nav-trigger {
    font-size: 0.82rem;
  }
}

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

  html {
    scroll-padding-top: 118px;
  }

  .container {
    width: min(var(--max), calc(100% - 32px));
  }

  .site-header .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

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

  .site-header .header-cta {
    display: none;
  }

  .site-header .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    max-height: calc(100vh - 84px);
    padding: 12px;
    display: none;
    align-items: stretch;
    justify-content: start;
    gap: 3px;
    overflow-y: auto;
    border: 1px solid rgba(140, 236, 255, 0.22);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: rgba(3, 12, 21, 0.99);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.48);
  }

  .site-header.nav-open .nav {
    display: grid;
  }

  .site-header .nav > a,
  .site-header .nav-trigger {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    justify-content: space-between;
    border-radius: 5px;
    font-size: 0.94rem;
    text-align: left;
  }

  .site-header .nav > a:hover,
  .site-header .nav > a:focus-visible,
  .site-header .nav-trigger:hover,
  .site-header .nav-trigger:focus-visible {
    background: rgba(140, 236, 255, 0.08);
  }

  .site-header .nav-dropdown {
    display: grid;
  }

  .site-header .nav-menu,
  .site-header .nav-dropdown:hover .nav-menu,
  .site-header .nav-dropdown:focus-within .nav-menu {
    position: static;
    width: 100%;
    padding: 4px 6px 8px 18px;
    display: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .site-header .nav-dropdown.open .nav-menu {
    display: grid;
    transform: none;
  }

  .site-header .nav-menu::before {
    display: none;
  }

  .nav-contact-link {
    display: flex !important;
    justify-content: center !important;
    color: #06111c !important;
    background: var(--site-cyan) !important;
    font-weight: 700 !important;
  }

  .page-subnav-inner {
    justify-content: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
  }

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

  .service-bridge .primary-btn,
  .service-bridge .secondary-btn {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  @supports (background-image: url("p4vex-who-we-are-background-960.webp")) {
    #who-we-are {
      background-image:
        linear-gradient(90deg, rgba(2, 5, 9, 0.58), rgba(4, 10, 17, 0.34), rgba(2, 5, 9, 0.5)),
        url("p4vex-who-we-are-background-960.webp");
    }

    #what-we-do,
    .service-hero,
    .estimate-section {
      background-image:
        linear-gradient(90deg, rgba(2, 5, 9, 0.58), rgba(4, 10, 17, 0.34), rgba(2, 5, 9, 0.52)),
        url("p4vex-aviation-data-background-apu-v2-960.webp");
    }

    #how-we-work,
    .visual-section {
      background-image:
        linear-gradient(90deg, rgba(2, 5, 9, 0.6), rgba(4, 10, 17, 0.34), rgba(2, 5, 9, 0.56)),
        url("p4vex-network-connections-background-960.webp");
    }

    #vision {
      background-image:
        linear-gradient(90deg, rgba(2, 5, 9, 0.58), rgba(3, 8, 14, 0.3), rgba(2, 5, 9, 0.34)),
        url("p4vex-our-vision-background-960.webp");
    }

    #team {
      background-image:
        linear-gradient(90deg, rgba(2, 5, 9, 0.58), rgba(4, 10, 17, 0.32), rgba(2, 5, 9, 0.38)),
        url("p4vex-meet-the-team-background-960.webp");
    }

    .pricing-section {
      background-image:
        linear-gradient(90deg, rgba(2, 5, 9, 0.64), rgba(4, 10, 17, 0.38), rgba(2, 5, 9, 0.6)),
        url("p4vex-who-we-are-background-960.webp");
    }

    .approach-section {
      background-image: url("p4vex-consulting-records-it-systems-960.webp");
    }

    .contact-section {
      background-image: url("p4vex-consulting-maintenance-engineering-960.webp");
    }

    #who-we-are,
    #what-we-do,
    #how-we-work,
    #vision,
    #team,
    .service-hero,
    .visual-section,
    .pricing-section,
    .estimate-section {
      background-position: center;
      background-size: auto, cover;
      background-repeat: no-repeat;
    }
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .footer-grid {
    padding: 42px 0 30px;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .footer-legal-links {
    flex-wrap: wrap;
  }

  .service-bridge .primary-btn,
  .service-bridge .secondary-btn {
    width: 100%;
  }
}

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

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