/* ==========================================================================
   Aviantyx Sdn. Bhd. — Brand theme layer
   Loads after bootstrap.min.css. Everything here is the custom brand
   treatment: tokens, fluid type, hero/sub-hero, and components.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Web fonts (self-hosted — no external requests)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Poppins-600.woff2?v=1") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Poppins-700.woff2?v=1") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/OpenSans-var.woff2?v=1") format("woff2");
}

/* --------------------------------------------------------------------------
   2. Brand tokens + Bootstrap variable overrides
   Colours sampled directly from the logo artwork.
   -------------------------------------------------------------------------- */
:root {
  --avs-navy: #00174b;
  --avs-navy-900: #00103a;
  --avs-navy-800: #001c5c;
  --avs-blue: #0045be;
  --avs-blue-600: #003a9e;
  --avs-sky: #2a78d2;
  --avs-cyan: #00c2d7;
  --avs-surface: #f4f8fd;
  --avs-surface-2: #e8f0fb;
  --avs-ink: #0b1733;
  --avs-muted: #5a6b87;
  --avs-line: #dbe5f2;
  --avs-white: #fff;

  --avs-shadow-sm: 0 2px 8px rgba(0, 23, 75, 0.06);
  --avs-shadow: 0 10px 30px rgba(0, 23, 75, 0.09);
  --avs-shadow-lg: 0 24px 60px rgba(0, 23, 75, 0.16);

  --avs-radius: 14px;
  --avs-radius-lg: 22px;

  /* Fluid type scale — scales smoothly with no breakpoint jumps */
  --avs-fs-hero: clamp(2rem, 1rem + 4.5vw, 4.2rem);
  --avs-fs-subhero: clamp(1.95rem, 1.15rem + 3.4vw, 3.25rem);
  --avs-fs-h2: clamp(1.7rem, 1.15rem + 2.4vw, 2.75rem);
  --avs-fs-h3: clamp(1.2rem, 1.02rem + 0.8vw, 1.5rem);
  --avs-fs-lead: clamp(1.02rem, 0.96rem + 0.3vw, 1.2rem);

  /* Measured header heights, so full-height sections can subtract them.
     main.js re-measures on load and on resize; these are the fallbacks used
     before (or without) JavaScript. */
  --avs-utility-h: 32px;
  --avs-nav-h: 66px;
  --avs-header-h: calc(var(--avs-utility-h) + var(--avs-nav-h));
  /* Gap above the navbar once it turns into a floating bar */
  --avs-float-gap: 0.75rem;

  /* Bootstrap overrides */
  --bs-primary: #0045be;
  --bs-primary-rgb: 0, 69, 190;
  --bs-link-color: #0045be;
  --bs-link-hover-color: #003a9e;
  --bs-body-color: #0b1733;
  --bs-body-bg: #fff;
  --bs-border-color: #dbe5f2;
  --bs-secondary-color: #5a6b87;
  --bs-font-sans-serif: "Open Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-font-size: 1rem;
  --bs-border-radius: 0.5rem;
  --bs-border-radius-lg: 0.875rem;
  --bs-link-decoration: none;
  --bs-link-hover-decoration: underline;
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
* {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  /* Leave room for the floating navbar when jumping to an anchor */
  scroll-padding-top: calc(var(--avs-header-h) + var(--avs-float-gap) + 1rem);
}

body {
  /* `clip` contains horizontal overflow without turning the body into a
     scroll container, which is what would break the sticky .site-header.
     Browsers without `overflow: clip` simply fall back to visible. */
  overflow-x: clip;
  color: var(--avs-ink);
  font-family: var(--bs-font-sans-serif);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 992px) {
  body {
    font-size: 1.0625rem;
  }
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: "Poppins", var(--bs-font-sans-serif);
  font-weight: 700;
  color: var(--avs-navy);
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

::selection {
  background: var(--avs-cyan);
  color: var(--avs-navy-900);
}

/* Visible focus for keyboard users only */
:focus-visible {
  outline: 3px solid var(--avs-cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: 0.85rem 1.5rem;
  background: var(--avs-navy);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 0.5rem 0;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

/* --------------------------------------------------------------------------
   4. Utility bar
   -------------------------------------------------------------------------- */
.utility-bar {
  background: var(--avs-navy-900);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8125rem;
  padding: 0.4rem 0;
}
.utility-bar a {
  color: rgba(255, 255, 255, 0.92);
}
.utility-bar a:hover {
  color: var(--avs-cyan);
}
.utility-bar .u-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.utility-bar .u-ancom {
  height: 16px;
  width: auto;
  flex: none;
  background: #fff;
  border-radius: 4px;
  padding: 2px;
  box-sizing: content-box;
}
.utility-bar .u-item + .u-item {
  margin-left: 1.5rem;
}
.utility-bar .u-sep {
  opacity: 0.35;
}
@media (max-width: 767.98px) {
  .utility-bar {
    text-align: center;
  }
  .utility-bar .u-item + .u-item {
    margin-left: 0.75rem;
  }
  /* Address is too long for a phone — hide it, keep the parent badge */
  .utility-bar .u-address {
    display: none;
  }
  /* Mirrors .utility-bar { display: none } from the d-none d-md-block
     utility classes, so the no-JS fallback height is right on phones. */
  :root {
    --avs-utility-h: 0px;
  }
}

/* --------------------------------------------------------------------------
   5. Navbar
   -------------------------------------------------------------------------- */
/* The <header> is the sticky element, not the <nav>. A sticky element can only
   travel inside its containing block, and the <header> wraps nothing but the
   nav, so sticky-top on the nav itself had almost no room to move. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  /* The bar is never hidden, so the moment it detaches is visible — animate
     the gap and the side insets rather than snapping. */
  transition: top 0.28s ease, padding-inline 0.28s ease;
}
/* Once the utility bar has scrolled away the navbar detaches and floats:
   a gap above it, rounded corners, a shadow, and side insets on desktop.
   It never hides — navigation stays one tap away at every scroll position. */
.site-header.is-floating {
  top: var(--avs-float-gap);
}
@media (min-width: 992px) {
  .site-header.is-floating {
    padding-inline: 1rem;
  }
}
.site-header.is-floating .site-nav {
  border: 1px solid var(--avs-line);
  border-radius: var(--avs-radius);
}
.site-nav {
  background: #fff;
  border-bottom: 1px solid var(--avs-line);
  padding: 0.65rem 0;
  transition: box-shadow 0.28s ease, border-radius 0.28s ease,
    border-color 0.28s ease;
}
.site-nav.is-stuck {
  box-shadow: var(--avs-shadow);
}
.site-nav .navbar-brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin-right: 1rem;
}
    /* ---- Brand lockup: simple mark + real-font wordmark ----
       The raster logo is no longer used in the chrome; the mark comes from
       Aviantyx_simple_logo.png and the words are set in Poppins so they stay
       crisp, selectable and translatable. */
    .brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    }
    .site-nav .brand-mark {
    width: auto;
    height: 38px;
    flex: none;
    display: block;
    }
    .brand-words {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    }
    .brand-name {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1.24rem;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    color: var(--avs-navy);
    }
    .brand-tag {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 0.545rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(0, 23, 75, 0.62);
    margin-top: 4px;
    white-space: nowrap;
    }
    @media (max-width: 991.98px) {
    .site-nav .brand-mark {
    height: 32px;
    }
    .brand-name {
    font-size: 1.1rem;
    }
    .brand-tag {
    font-size: 0.5rem;
    letter-spacing: 0.13em;
    }
    }
    @media (max-width: 359.98px) {
    .brand-tag {
    display: none;
    }
    }
.site-nav .nav-link {
  font-weight: 600;
  color: var(--avs-navy);
  padding: 0.6rem 0.9rem;
  position: relative;
}
/* The active/hover underline indicator is drawn on ::before, NOT ::after.
   Bootstrap builds the dropdown caret on `.dropdown-toggle::after`, and
   `.site-nav .nav-link::after` (two classes) beats `.dropdown-toggle::after`
   (one class) on specificity — so using ::after here silently suppressed the
   caret on every dropdown toggle. Keeping the indicator on ::before leaves
   ::after free for Bootstrap's triangle. */
.site-nav .nav-link::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.35rem;
  height: 2px;
  background: var(--avs-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
  pointer-events: none;
}
.site-nav .nav-link:hover::before,
.site-nav .nav-link:focus-visible::before {
  transform: scaleX(1);
}
.site-nav .nav-link.active {
  color: var(--avs-blue);
}
.site-nav .nav-link.active::before {
  transform: scaleX(1);
}
/* A dropdown toggle is a <button>, not an <a>, so it inherits the browser's
   default button chrome. Reset it to match the other nav links exactly, and
   give it the full panel width on mobile so the tap target matches the row. */
.site-nav button.nav-link {
  background: none;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-weight: 600;
  line-height: inherit;
  text-align: inherit;
  cursor: pointer;
}
/* The caret is decorative: the button's accessible name is "About Us", and a
   CSS triangle carries no meaning for a screen reader. */
.site-nav .dropdown-toggle::after {
  vertical-align: 0.15em;
  margin-left: 0.45em;
}
.site-nav .dropdown-menu {
  border: 1px solid var(--avs-line);
  border-radius: var(--avs-radius);
  box-shadow: var(--avs-shadow);
  padding: 0.5rem;
  margin-top: 0.5rem;
}
.site-nav .dropdown-item {
  border-radius: 0.5rem;
  padding: 0.6rem 0.85rem;
  font-weight: 500;
  color: var(--avs-ink);
}
.site-nav .dropdown-item:hover,
.site-nav .dropdown-item:focus {
  background: var(--avs-surface);
  color: var(--avs-blue);
}

/* Below lg the menu is a stacked panel */
@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--avs-line);
    /* The header is sticky, so a tall open menu must not run off the bottom
       of a short screen — let it scroll inside the panel instead. */
    max-height: calc(100svh - var(--avs-header-h) - var(--avs-float-gap) - 1rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    /* Reserve the scrollbar track. Without this, opening a submenu that
       overflows the panel makes the scrollbar appear, which narrows the
       content and re-wraps the labels — a second, smaller jolt on top of the
       one the height feedback loop used to cause. No effect where scrollbars
       are overlays, which is the normal case on phones. */
    scrollbar-gutter: stable;
  }
  .site-nav .nav-link {
    padding: 0.75rem 0.25rem;
    /* 44px minimum tap target */
    min-height: 44px;
  }
  /* Was `::after`, which overrode Bootstrap's caret and drew a 2.5rem bar
     instead of the triangle. The indicator is on ::before now. */
  .site-nav .nav-link::before {
    left: 0.25rem;
    right: auto;
    width: 2.5rem;
    bottom: 0.5rem;
  }
  /* The toggle is a <button>: make it fill the row so the whole line is a
     tap target, matching the <a> nav links beside it. */
  .site-nav button.nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
  }
  /* A slightly larger caret is easier to read at phone size. */
  .site-nav .dropdown-toggle::after {
    margin-left: auto;
    padding-left: 0;
    border-top-width: 0.32em;
    border-right-width: 0.32em;
    border-left-width: 0.32em;
  }
  .site-nav .dropdown-menu {
    border: 0;
    border-left: 2px solid var(--avs-surface-2);
    border-radius: 0;
    box-shadow: none;
    margin: 0 0 0.5rem 0.5rem;
    padding: 0 0 0 0.75rem;
  }
  .site-nav .dropdown-item {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .site-nav .navbar-toggler {
    border: 1px solid var(--avs-line);
    padding: 0.5rem 0.7rem;
  }
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  --bs-btn-bg: var(--avs-blue);
  --bs-btn-border-color: var(--avs-blue);
  --bs-btn-hover-bg: var(--avs-blue-600);
  --bs-btn-hover-border-color: var(--avs-blue-600);
  --bs-btn-active-bg: var(--avs-blue-600);
  --bs-btn-active-border-color: var(--avs-blue-600);
  --bs-btn-disabled-bg: #7f9dd4;
  --bs-btn-disabled-border-color: #7f9dd4;
  box-shadow: 0 8px 20px rgba(0, 69, 190, 0.24);
}
.btn-primary:hover {
  box-shadow: 0 12px 26px rgba(0, 69, 190, 0.32);
}
.btn-outline-primary {
  --bs-btn-color: var(--avs-blue);
  --bs-btn-border-color: rgba(0, 69, 190, 0.35);
  --bs-btn-hover-bg: var(--avs-blue);
  --bs-btn-hover-border-color: var(--avs-blue);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--avs-blue);
  --bs-btn-active-border-color: var(--avs-blue);
}
.btn-light {
  --bs-btn-color: var(--avs-navy);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-color: var(--avs-blue);
  --bs-btn-hover-border-color: #fff;
  --bs-btn-active-bg: #fff;
  --bs-btn-active-color: var(--avs-blue);
  box-shadow: 0 8px 22px rgba(0, 16, 58, 0.28);
}
.btn-ghost-light {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, 0.45);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-color: var(--avs-navy);
  --bs-btn-hover-border-color: #fff;
  --bs-btn-active-bg: #fff;
  --bs-btn-active-color: var(--avs-navy);
}
/* Full-width buttons on small screens keep the CTA thumb-friendly */
@media (max-width: 575.98px) {
  .btn-block-sm {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   7. Section scaffolding
   -------------------------------------------------------------------------- */
.section {
  padding: clamp(3.25rem, 6.5vw, 6rem) 0;
}
.section--surface {
  background: var(--avs-surface);
}
.section--tight {
  padding-top: clamp(2.25rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.25rem, 4vw, 3.5rem);
}
.section--dark {
  background: var(--avs-navy);
  color: rgba(255, 255, 255, 0.86);
}
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--avs-blue);
  margin-bottom: 0.9rem;
}
.section-label::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--avs-cyan);
  flex: none;
}
.section--dark .section-label,
.sub-hero .section-label,
.hero .section-label {
  color: var(--avs-cyan);
}
.section--dark .section-label::before {
  background: #fff;
}

.section-title {
  font-size: var(--avs-fs-h2);
  margin-bottom: 0.9rem;
}
.section-lead {
  font-size: var(--avs-fs-lead);
  color: var(--avs-muted);
  max-width: 62ch;
}
.section-lead-width {
  font-size: var(--avs-fs-lead);
  color: var(--avs-muted);
}
.section--dark .section-lead {
  color: rgba(255, 255, 255, 0.78);
}
.eyebrow-rule {
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--avs-cyan), var(--avs-blue));
  margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(140deg, var(--avs-navy-900) 0%, var(--avs-navy) 45%, var(--avs-navy-800) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  /* Fill the screen: the utility bar and navbar sit above the hero in the
     normal flow, so subtract their measured heights. `svh` is the small
     viewport height, which never changes when mobile browser chrome
     collapses — so the hero can never overflow into an unwanted scroll.
     `vh` is the fallback for browsers without `svh`. */
  min-height: calc(100vh - var(--avs-header-h));
  min-height: calc(100svh - var(--avs-header-h));
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}
/* Homepage video banner. On small screens the hero takes the video's own 16:9
   ratio so the full frame is visible; wider screens cap the height and crop
   the top of the footage instead. The copy is condensed at narrower widths
   further down so it always fits inside the banner. */
.hero.hero--banner {
  aspect-ratio: 16 / 9;
  min-height: 0;
  padding-block: clamp(0.75rem, 2.5vw, 2.5rem);
}
/* Short viewports (laptops in a split window, phones held upright) need
   tighter rhythm or the content simply will not fit. */
@media (max-height: 780px) {
  .hero {
    padding-block: 2rem;
  }
  .hero h1 {
    font-size: clamp(1.9rem, 1.05rem + 3.6vw, 3.1rem);
    margin-bottom: 0.5rem;
  }
  .hero-sub {
    margin-bottom: 0.85rem;
  }
  .hero-lead {
    margin-bottom: 1.35rem;
  }
  .hero .hero-stats {
    margin-top: 1.5rem;
  }
}
@media (max-height: 620px) {
  .hero {
    padding-block: 1.35rem;
  }
  .hero-lead {
    margin-bottom: 1rem;
  }
  .hero .hero-stats {
    display: none;
  }
}
.hero h1 {
  font-size: var(--avs-fs-hero);
  color: #fff;
  margin-bottom: 0.75rem;
}
.hero-sub {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 0.92rem + 0.6vw, 1.4rem);
  color: var(--avs-cyan);
  margin-bottom: 1.25rem;
}
.hero-lead {
  font-size: var(--avs-fs-lead);
  color: rgba(255, 255, 255, 0.8);
  max-width: 56ch;
  margin-bottom: 2rem;
}
.hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
/* The banner is short at these widths, so the copy is condensed instead of
   letting the text overflow the footage. */
@media (max-width: 1199.98px) {
  .hero.hero--banner h1 {
    font-size: clamp(2.2rem, 1.2rem + 3vw, 3rem);
    margin-bottom: 0.5rem;
  }
  .hero.hero--banner .hero-stats {
    display: none;
  }
}
@media (max-width: 991.98px) {
  .hero.hero--banner .hero-sub {
    margin-bottom: 0.9rem;
  }
  .hero.hero--banner .hero-lead {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }
}
@media (max-width: 767.98px) {
  .hero.hero--banner .section-label,
  .hero.hero--banner .hero-lead,
  .hero.hero--banner .hero-stats {
    display: none;
  }
  .hero.hero--banner h1 {
    font-size: clamp(1.8rem, 1rem + 4vw, 2.6rem);
    margin-bottom: 0.4rem;
  }
  .hero.hero--banner .hero-sub {
    font-size: clamp(0.9rem, 0.72rem + 1vw, 1.05rem);
    margin-bottom: 0.65rem;
  }
  .hero.hero--banner .hero-actions {
    gap: 0.5rem;
  }
  .hero.hero--banner .btn {
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
  }
}
@media (max-width: 575.98px) {
  .hero.hero--banner .btn-block-sm {
    width: auto;
  }
  .hero.hero--banner h1 {
    font-size: clamp(1.3rem, 5vw, 1.7rem);
    margin-bottom: 0.3rem;
  }
  .hero.hero--banner .hero-sub {
    font-size: 0.78rem;
    line-height: 1.3;
    margin-bottom: 0.45rem;
  }
  .hero.hero--banner .hero-actions {
    gap: 0.35rem;
  }
  .hero.hero--banner .btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.68rem;
  }
}
/* Wider screens: a full 16:9 banner gets very tall. Cap its height and pin the
   footage to the bottom, so the extra video is trimmed from the top instead of
   stretching the banner. */
@media (min-width: 992px) {
  .hero.hero--banner {
    aspect-ratio: auto;
  }
  .hero.hero--banner .hero-video {
    object-position: center bottom;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero.hero--banner {
    height: clamp(520px, 50vw, 600px);
  }
}
@media (min-width: 1200px) {
  .hero.hero--banner {
    height: clamp(560px, 40vw, 640px);
  }
  .hero.hero--banner h1 {
    font-size: clamp(2.5rem, 1.3rem + 2.6vw, 3.25rem);
    margin-bottom: 0.4rem;
  }
  .hero.hero--banner .hero-sub {
    font-size: clamp(1rem, 0.94rem + 0.4vw, 1.2rem);
    margin-bottom: 0.7rem;
  }
  .hero.hero--banner .hero-lead {
    font-size: clamp(0.98rem, 0.94rem + 0.22vw, 1.08rem);
    margin-bottom: 1.1rem;
  }
  .hero.hero--banner .hero-stats {
    margin-top: 1.25rem;
  }
}

/* Radar / network backdrop */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
/* Full-bleed background video. Below 992px the banner's aspect-ratio matches
   the footage, so the whole frame shows; wider screens pin it to the bottom
   with `object-position: center bottom` to crop only the top. */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Readability scrim: a light black wash keeps the copy readable on the left
   while letting the footage show through on the right. */
.hero-bg.hero-bg--video::after {
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.55) 38%,
      rgba(0, 0, 0, 0.22) 68%,
      rgba(0, 0, 0, 0.1) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.32) 0%,
      rgba(0, 0, 0, 0.03) 35%,
      rgba(0, 0, 0, 0.3) 100%
    );
}
.hero-bg svg {
  position: absolute;
  width: min(1200px, 130%);
  height: auto;
  right: -12%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      120% 90% at 78% 50%,
      rgba(0, 194, 215, 0.16) 0%,
      transparent 60%
    ),
    linear-gradient(90deg, var(--avs-navy-900) 0%, transparent 55%);
}
.radar-ring {
  fill: none;
  stroke: rgba(120, 170, 240, 0.28);
  stroke-width: 1;
}
.radar-ring--accent {
  stroke: rgba(0, 194, 215, 0.4);
}
.radar-axis {
  stroke: rgba(120, 170, 240, 0.22);
  stroke-width: 1;
}
.radar-link {
  stroke: rgba(0, 194, 215, 0.5);
  stroke-width: 1.25;
  stroke-dasharray: 4 6;
}
.radar-node {
  fill: var(--avs-cyan);
}
.radar-node--soft {
  fill: rgba(120, 170, 240, 0.75);
}
.radar-glyphs {
  fill: none;
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.5;
}
.radar-glyphs ellipse {
  fill: rgba(255, 255, 255, 0.9);
  stroke: none;
}
.radar-sweep {
  transform-origin: 400px 300px;
  animation: radar-sweep 12s linear infinite;
}
@keyframes radar-sweep {
  to {
    transform: rotate(360deg);
  }
}
.radar-pulse {
  transform-origin: 400px 300px;
  animation: radar-pulse 4.5s ease-out infinite;
}
@keyframes radar-pulse {
  0% {
    opacity: 0.55;
    transform: scale(0.28);
  }
  70% {
    opacity: 0;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}
.radar-node-blink {
  animation: radar-blink 3s ease-in-out infinite;
}
@keyframes radar-blink {
  0%, 100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

/* Stat strip */
.hero-stats {
  list-style: none;
  padding: 0;
  margin: 2.75rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1rem;
  max-width: 40rem;
}
.hero-stats .stat-value {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem);
  color: #fff;
  line-height: 1.1;
  display: block;
}
.hero-stats .stat-label {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
@media (min-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.65);
  display: none;
  text-decoration: none;
}
@media (min-width: 768px) and (min-height: 781px) {
  .hero-scroll-cue {
    display: inline-flex;
  }
  /* Keep the cue clear of the copy now that the hero is exactly one screen.
     Gated on height as well, so the short-viewport tightening above wins. */
  .hero {
    padding-bottom: 4.25rem;
  }
}
@media (max-height: 780px) {
  /* No room to spare for a floating cue once the copy is tightened. */
  .hero-scroll-cue {
    display: none;
  }
}
/* The 16:9 banner can be shorter than the viewport, so the cue only appears on
   wide screens where there is guaranteed space below the copy. */
.hero.hero--banner .hero-scroll-cue {
  display: none;
}
@media (min-width: 1200px) and (min-height: 781px) {
  .hero.hero--banner .hero-scroll-cue {
    display: inline-flex;
  }
}
.hero-scroll-cue:hover {
  color: var(--avs-cyan);
}
.hero-scroll-cue .bi {
  animation: cue-bob 2.2s ease-in-out infinite;
}
@keyframes cue-bob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* --------------------------------------------------------------------------
   9. Sub-hero (inner pages)
   -------------------------------------------------------------------------- */
.sub-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(125deg, var(--avs-navy-900) 0%, var(--avs-navy) 55%, var(--avs-navy-800) 100%);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4.75rem) 0 clamp(2.75rem, 6.5vw, 5rem);
  border-bottom: 2px solid var(--avs-cyan);
}
.sub-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--avs-cyan), rgba(0, 194, 215, 0));
}
.sub-hero h1 {
  font-size: var(--avs-fs-subhero);
  color: #fff;
  margin-bottom: 0.75rem;
}
.sub-hero-lead {
  font-size: var(--avs-fs-lead);
  color: rgba(255, 255, 255, 0.8);
  max-width: 60ch;
  margin-bottom: 0;
}
.sub-hero .breadcrumb {
  margin-bottom: 1.25rem;
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.5);
}
.sub-hero .breadcrumb-item,
.sub-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
}
.sub-hero .breadcrumb-item a:hover {
  color: #fff;
}
.sub-hero .breadcrumb-item.active {
  color: var(--avs-cyan);
}
.sub-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.45);
}
.sub-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.sub-hero-bg svg {
  position: absolute;
  width: min(760px, 95%);
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.32;
}
.sub-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--avs-navy-900) 0%, transparent 62%);
}
/* Anchors the footage to the bottom edge so the lower part of the clip shows. */
.sub-hero-bg--bottom .hero-video {
  object-position: center bottom;
}
/* Video variant: same black readability scrim as the homepage hero. */
.sub-hero-bg--video::after {
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.55) 38%,
      rgba(0, 0, 0, 0.22) 68%,
      rgba(0, 0, 0, 0.1) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.32) 0%,
      rgba(0, 0, 0, 0.03) 35%,
      rgba(0, 0, 0, 0.3) 100%
    );
}
/* Nudge the graphic on alternate pages so six stacked bands don't look cloned */
.sub-hero--alt .sub-hero-bg svg {
  right: auto;
  left: -8%;
  transform: translateY(-50%) scaleX(-1);
}
.sub-hero--alt .radar-sweep,
.sub-hero--alt .radar-pulse {
  animation-direction: reverse;
}
@media (max-width: 767.98px) {
  .sub-hero-bg svg {
    opacity: 0.2;
  }
  .sub-hero .breadcrumb {
    flex-wrap: wrap;
  }
}

/* --------------------------------------------------------------------------
   10. Icon badges
   -------------------------------------------------------------------------- */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--avs-blue), var(--avs-sky));
  color: #fff;
  font-size: 1.5rem;
  flex: none;
  box-shadow: 0 8px 18px rgba(0, 69, 190, 0.22);
}
.icon-badge--lg {
  width: 64px;
  height: 64px;
  font-size: 1.85rem;
  border-radius: 20px;
}
.icon-badge--sm {
  width: 42px;
  height: 42px;
  font-size: 1.15rem;
  border-radius: 12px;
}
.icon-badge img.badge-ancom {
  height: 1.15rem;
  width: auto;
  display: block;
}
.icon-badge--ghost {
  background: var(--avs-surface-2);
  color: var(--avs-blue);
  box-shadow: none;
}
.icon-badge--glass {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(6px);
}

/* --------------------------------------------------------------------------
   11. Cards
   -------------------------------------------------------------------------- */
.card {
  border: 1px solid var(--avs-line);
  border-radius: var(--avs-radius-lg);
  box-shadow: var(--avs-shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease,
    border-color 0.24s ease;
  background: #fff;
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--avs-shadow);
  border-color: rgba(0, 69, 190, 0.28);
}
.card-body {
  padding: clamp(1.35rem, 1rem + 1vw, 2rem);
}
.card-title {
  font-size: var(--avs-fs-h3);
  margin-bottom: 0.6rem;
}
.card-text {
  color: var(--avs-muted);
  margin-bottom: 0;
}

/* Capability domain card */
.cap-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cap-card .card-text {
  flex: 1 1 auto;
}
.cap-card > .placeholder-slot {
  border: 0;
  border-radius: 0;
}
.cap-card > .card-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--avs-navy-900);
}
.cap-num {
  font-family: "Poppins", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--avs-sky);
  margin-bottom: 0.75rem;
}

/* Client logo belt (Partners & Clients). The track holds the logo list twice
   and slides exactly one list-width, so the loop is seamless. Logos are
   normalised by height; very wide marks are capped so they stay balanced. */
.logo-marquee {
  --logo-gap: clamp(2rem, 4vw, 3.5rem);
  --logo-h: clamp(2.25rem, 4vw, 3.5rem);
  --logo-max-w: clamp(10rem, 16vw, 15rem);
  position: relative;
  margin-top: clamp(2.5rem, 4.5vw, 3.75rem);
  overflow: hidden;
  padding-block: 0.5rem;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 5%,
    #000 95%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 5%,
    #000 95%,
    transparent 100%
  );
}
.logo-marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: logo-marquee 55s linear infinite;
}
.logo-marquee:hover .logo-marquee__track,
.logo-marquee:focus-within .logo-marquee__track {
  animation-play-state: paused;
}
.logo-marquee__group {
  display: flex;
  align-items: center;
  gap: var(--logo-gap);
  padding-right: var(--logo-gap);
}
.logo-marquee__item {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--logo-h);
}
.logo-marquee__item img {
  display: block;
  width: auto;
  height: auto;
  max-width: var(--logo-max-w);
  max-height: 100%;
  object-fit: contain;
}
@keyframes logo-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Service selection cards (Services & Solutions) */
.svc-card {
  cursor: pointer;
}
.svc-card:focus-visible {
  outline: 2px solid rgba(0, 194, 215, 0.6);
  outline-offset: 2px;
}
.svc-modal .modal-content {
  border: 0;
  border-top: 3px solid var(--avs-blue);
  border-radius: var(--avs-radius-lg);
  box-shadow: var(--avs-shadow);
}
.svc-modal .modal-header {
  border-bottom-color: rgba(0, 69, 190, 0.12);
  padding-bottom: 0.75rem;
}

/* Phase strip — no-box connector steps */
.phase-step {
  position: relative;
}
.phase-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--avs-navy);
  margin-bottom: 0.45rem;
}
.phase-text {
  color: var(--avs-muted);
  font-size: 0.95rem;
  margin: 0;
}
.phase-arrow {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--avs-sky);
}
.row--phases > :last-child .phase-arrow {
  display: none;
}
@media (max-width: 991.98px) {
  .phase-arrow {
    bottom: calc(-0.75rem - 1.2rem);
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
  }
}
@media (min-width: 992px) {
  .phase-arrow {
    top: 50%;
    right: calc(-0.75rem - 1.2rem);
    transform: translateY(-50%);
  }
}

/* Tick list used for capability bullets and differentiators */
.tick-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}
.tick-list li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--avs-muted);
}
.tick-list li .bi {
  position: absolute;
  left: 0;
  top: 0.28em;
  color: var(--avs-blue);
  font-size: 1.05rem;
}
.tick-list--light li {
  color: rgba(255, 255, 255, 0.82);
}
.tick-list--light li .bi {
  color: var(--avs-cyan);
}

/* Check-list (Why Aviantyx) */
.check-card {
  height: 100%;
  display: flex;
  gap: 1rem;
}
.check-card .check-body {
  flex: 1 1 auto;
}
.check-card .check-title {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}
.check-card .check-text {
  color: var(--avs-muted);
  font-size: 0.95rem;
  margin: 0;
}
.check-num {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--avs-sky);
  flex: none;
  width: 2rem;
}

/* Market chips */
.market-chip {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  height: 100%;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--avs-line);
  border-radius: var(--avs-radius);
  transition: border-color 0.22s ease, transform 0.22s ease,
    box-shadow 0.22s ease;
}
.market-chip:hover {
  border-color: rgba(0, 69, 190, 0.3);
  transform: translateY(-3px);
  box-shadow: var(--avs-shadow-sm);
}
.market-chip .mi {
  font-size: 1.35rem;
  color: var(--avs-blue);
  flex: none;
  line-height: 1.3;
}
.market-chip svg.mi,
.market-chip img.mi-img {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
}
.market-chip img.mi-img {
  object-fit: contain;
  filter: invert(20%) sepia(92%) saturate(8) hue-rotate(180deg) brightness(112%) contrast(112%);
}
.market-chip img.mi-img-white, img.mi-img-white {
  /* The white variant is used on dark backgrounds, so invert the color to make it visible. */
  object-fit: contain;
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
}
.market-chip .mt {
  font-weight: 600;
  color: var(--avs-navy);
  line-height: 1.35;
}
.market-chip .ms {
  font-size: 0.9rem;
  color: var(--avs-muted);
}

/* Value / pillar cards on navy */
.value-card {
  height: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--avs-radius-lg);
  padding: clamp(1.4rem, 1rem + 1vw, 2rem);
  transition: background 0.24s ease, transform 0.24s ease;
}
.value-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}
.value-card h3 {
  font-size: var(--avs-fs-h3);
  color: #fff;
  margin-bottom: 0.5rem;
}
.value-card p {
  color: rgba(255, 255, 255, 0.76);
  margin: 0;
}
.value-card .v-idx {
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--avs-cyan);
  margin-bottom: 0.7rem;
}

/* --------------------------------------------------------------------------
   12. Accordion (capabilities + services)
   -------------------------------------------------------------------------- */
.accordion-item {
  border: 1px solid var(--avs-line);
  border-radius: var(--avs-radius) !important;
  margin-bottom: 0.9rem;
  overflow: hidden;
  background: #fff;
}
.accordion-button {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--avs-navy);
  padding: 1.15rem 1.25rem;
  background: #fff;
  gap: 0.85rem;
}
.accordion-button:not(.collapsed) {
  background: var(--avs-surface);
  color: var(--avs-blue);
  box-shadow: none;
}
.accordion-button:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(0, 194, 215, 0.35);
}
.accordion-button::after {
  background-size: 1rem;
  width: 1rem;
  height: 1rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230045be'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.accordion-body {
  padding: 1rem 1.25rem 1.35rem;
}
.accordion-body > :last-child {
  margin-bottom: 0;
}
.acc-icon {
  font-size: 1.3rem;
  color: var(--avs-blue);
  flex: none;
}
@media (max-width: 575.98px) {
  .accordion-button {
    font-size: 0.98rem;
    padding: 1rem;
  }
  .accordion-body {
    padding: 0 1rem 1.15rem;
  }
  .acc-icon {
    display: none;
  }
}

/* Capability domain heading block inside a panel */
.domain-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.domain-head h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}
.domain-head p {
  margin: 0;
  color: var(--avs-muted);
  font-size: 0.95rem;
}

/* Integration layer banner */
.integration-band {
  background: linear-gradient(120deg, var(--avs-blue) 0%, var(--avs-sky) 100%);
  color: #fff;
  border-radius: var(--avs-radius-lg);
  padding: clamp(1.6rem, 1.1rem + 1.4vw, 2.5rem);
  position: relative;
  overflow: hidden;
}
.integration-band h3 {
  color: #fff;
}
.integration-band p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* --------------------------------------------------------------------------
   13. Diagram (capabilities overview)
   -------------------------------------------------------------------------- */
.diagram {
  background: #fff;
  border: 1px solid var(--avs-line);
  border-radius: var(--avs-radius-lg);
  padding: clamp(1.25rem, 0.8rem + 1.6vw, 2.25rem);
  box-shadow: var(--avs-shadow-sm);
}
.diagram svg {
  width: 100%;
  height: auto;
  display: block;
}
.dgm-box {
  fill: var(--avs-surface);
  stroke: var(--avs-line);
  stroke-width: 1.5;
}
.dgm-box--accent {
  fill: rgba(0, 69, 190, 0.08);
  stroke: var(--avs-sky);
}
.dgm-box--core {
  fill: var(--avs-navy);
  stroke: none;
}
.dgm-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 15px;
  fill: var(--avs-navy);
}
.dgm-title--light {
  fill: #fff;
}
.dgm-sub {
  font-family: "Open Sans", sans-serif;
  font-size: 11.5px;
  fill: var(--avs-muted);
}
.dgm-flow {
  fill: none;
  stroke: var(--avs-sky);
  stroke-width: 2;
  stroke-dasharray: 5 5;
}
.dgm-node {
  fill: var(--avs-cyan);
}

/* --------------------------------------------------------------------------
   14. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(120deg, var(--avs-navy) 0%, var(--avs-navy-800) 100%);
  color: #fff;
  border-radius: var(--avs-radius-lg);
  padding: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  margin-top: 2.5rem;
  box-shadow: var(--avs-shadow-lg);
}
.cta-band h2,
.cta-band h3 {
  color: #fff;
  margin: 0;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    80% 120% at 100% 0%,
    rgba(0, 194, 215, 0.22) 0%,
    transparent 60%
  );
}
.cta-band .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
@media (max-width: 991.98px) {
  .cta-band .cta-actions {
    margin-top: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   15. Contact
   -------------------------------------------------------------------------- */
.contact-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--avs-line);
  border-radius: var(--avs-radius-lg);
  padding: clamp(1.35rem, 1rem + 1vw, 1.9rem);
  box-shadow: var(--avs-shadow-sm);
}
.contact-card .ci {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--avs-surface-2);
  color: var(--avs-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex: none;
  margin-bottom: 0.85rem;
}
.contact-card .cl {
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--avs-sky);
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.contact-card .cv {
  color: var(--avs-ink);
  font-weight: 500;
  margin: 0;
  overflow-wrap: anywhere;
}

/* Editorial contact details (no cards) */
.contact-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-bottom: 0.4rem;
  font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.35rem);
  font-weight: 700;
  color: var(--avs-navy);
  text-decoration: none;
  border-bottom: 2px solid var(--avs-sky);
  transition: color 0.2s ease;
}
.contact-primary:hover,
.contact-primary:focus-visible {
  color: var(--avs-blue);
}
.contact-primary .cp-arrow {
  color: var(--avs-sky);
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}
.contact-primary:hover .cp-arrow,
.contact-primary:focus-visible .cp-arrow {
  transform: translateX(4px);
}

.contact-facts {
  margin-top: 2rem;
}
.contact-fact {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--avs-line);
}
.contact-fact:last-child {
  border-bottom: 1px solid var(--avs-line);
}
.contact-fact .cf-icon {
  flex: none;
  width: 1.5rem;
  margin-top: 0.15rem;
  color: var(--avs-sky);
  font-size: 1.15rem;
  text-align: center;
}
.contact-fact .cf-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--avs-sky);
  font-weight: 700;
  margin: 0 0 0.2rem;
}
.contact-fact .cf-value {
  color: var(--avs-ink);
  font-weight: 500;
  margin: 0;
  overflow-wrap: anywhere;
}
.contact-fact .cf-value a {
  color: var(--avs-ink);
  text-decoration-color: var(--avs-line);
}
.contact-fact .cf-value a:hover,
.contact-fact .cf-value a:focus-visible {
  color: var(--avs-blue);
}
.ancom-link {
  display: inline-block;
  line-height: 0;
}
.ancom-logo {
  height: 20px;
  width: auto;
  display: block;
}

.form-control,
.form-select {
  border-color: var(--avs-line);
  padding: 0.7rem 0.9rem;
  /* 16px floor stops iOS Safari zooming on focus */
  font-size: 1rem;
  border-radius: 0.65rem;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--avs-sky);
  box-shadow: 0 0 0 0.25rem rgba(42, 120, 210, 0.18);
}
.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--avs-navy);
  margin-bottom: 0.35rem;
}
.form-text {
  color: var(--avs-muted);
  font-size: 0.82rem;
}
.required-mark {
  color: #c0392b;
}

/* Placeholder slots */
.placeholder-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1.5rem;
  border: 2px dashed rgba(0, 69, 190, 0.28);
  border-radius: var(--avs-radius);
  background-color: var(--avs-surface);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(0, 69, 190, 0.05) 0 10px,
    transparent 10px 20px
  );
  color: var(--avs-muted);
}
.placeholder-slot .ps-icon {
  font-size: 1.75rem;
  color: var(--avs-sky);
}
.placeholder-slot .ps-file {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--avs-navy);
  overflow-wrap: anywhere;
}
.placeholder-slot .ps-meta {
  font-size: 0.8rem;
}
.placeholder-slot--qr {
  aspect-ratio: 1 / 1;
  max-width: 260px;
  margin-inline: auto;
}
.placeholder-slot--map {
  aspect-ratio: 16 / 9;
}
.placeholder-slot--portrait {
  aspect-ratio: 4 / 3;
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--avs-navy-900);
  color: rgba(255, 255, 255, 0.68);
  padding-top: clamp(3rem, 5vw, 4.5rem);
  font-size: 0.925rem;
}
.site-footer h2,
.site-footer h3 {
  color: #fff;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  margin-bottom: 1.1rem;
  text-transform: uppercase;
  font-weight: 600;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--avs-cyan);
}
/* The logo is navy-on-transparent, so give it a light chip to sit on */
.footer-logo {
    background: #fff;
    border-radius: 12px;
    padding: 0.7rem 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.15rem;
    }
    .footer-logo img {
    height: 32px;
    width: auto;
    display: block;
    flex: none;
    }
    .footer-words {
    display: flex;
    flex-direction: column;
    line-height: 1;
    }
    .footer-name {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    color: var(--avs-navy);
    }
    .footer-brand-tag {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 0.47rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(0, 23, 75, 0.6);
    margin-top: 4px;
    white-space: nowrap;
    }
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  margin-bottom: 0.6rem;
}
.site-footer li a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 32px;
}
.site-footer .f-contact li .bi {
  color: var(--avs-cyan);
  flex: none;
}
.site-footer .f-contact li a,
.site-footer .f-contact li span {
  overflow-wrap: anywhere;
}
.site-footer .footer-bottom {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.35rem 0;
  font-size: 0.85rem;
}
.site-footer .footer-bottom a {
  text-decoration: underline;
}
.footer-tagline {
  color: var(--avs-cyan);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}
.footer-parent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  margin-top: 0.35rem;
}
.footer-parent img.fp-ancom {
  height: 20px;
  width: auto;
  flex: none;
  background: #fff;
  border-radius: 6px;
  padding: 2px;
  box-sizing: content-box;
}
.footer-parent a {
  color: #fff;
}
.footer-parent a:hover {
  color: var(--avs-cyan);
}

/* --------------------------------------------------------------------------
   17. Back to top
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1030;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--avs-blue);
  color: #fff;
  box-shadow: var(--avs-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease,
    visibility 0.25s ease, background 0.2s ease;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover {
  background: var(--avs-blue-600);
}
@media (max-width: 575.98px) {
  .to-top {
    right: 0.85rem;
    bottom: 0.85rem;
  }
}

/* --------------------------------------------------------------------------
   18. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
}
/* Only hide content once we know JS is running, so the page never
   flashes hidden-then-visible for visitors without JS. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   20. Career (listing + role detail)
   -------------------------------------------------------------------------- */
.job-card {
  position: relative;
}
.job-dept {
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--avs-sky);
  margin: 0 0 0.6rem;
}
/* The whole card is the link (stretched-link), so the anchor itself is styled
   to read as a heading rather than a default blue link. */
.job-link {
  color: var(--avs-navy);
  text-decoration: none;
}
.job-link:hover,
.job-link:focus-visible {
  color: var(--avs-blue);
}
.job-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  color: var(--avs-muted);
  font-size: 0.9rem;
}
.job-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.job-meta .bi {
  color: var(--avs-sky);
}
/* Stacked variant used in the role-detail sidebar */
.job-meta--stack {
  flex-direction: column;
  gap: 0.85rem;
  border-top: 1px solid var(--avs-line);
  border-bottom: 1px solid var(--avs-line);
  padding: 1.1rem 0;
}
.job-meta--stack li {
  align-items: flex-start;
}
.job-meta--stack li .bi {
  margin-top: 0.15rem;
}
.job-meta--stack li > span {
  display: flex;
  flex-direction: column;
  color: var(--avs-ink);
  font-weight: 500;
}
.job-meta .jm-label {
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--avs-sky);
  font-weight: 700;
}
.job-para {
  color: var(--avs-muted);
}
.job-h3 {
  font-size: var(--avs-fs-h3);
  margin: 2rem 0 1rem;
}
.job-aside {
  background: var(--avs-surface);
  border: 1px solid var(--avs-line);
  border-radius: var(--avs-radius-lg);
  padding: clamp(1.35rem, 1rem + 1vw, 2rem);
  box-shadow: var(--avs-shadow-sm);
}
@media (min-width: 992px) {
  .job-aside {
    position: sticky;
    top: calc(var(--avs-header-h) + 1rem);
  }
}
.alert {
  border-radius: var(--avs-radius);
}

/* --------------------------------------------------------------------------
   19. Motion + print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .radar-sweep,
  .radar-pulse,
  .radar-node-blink,
  .hero-scroll-cue .bi {
    animation: none !important;
  }
  .hero-video {
    display: none;
  }
  /* The belt becomes a static, wrapped logo grid so every logo stays visible
     without motion or a hidden overflow track. */
  .logo-marquee {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .logo-marquee__track {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    animation: none !important;
  }
  .logo-marquee__group {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 1.5rem;
    padding-right: 0;
  }
  .logo-marquee__group--clone {
    display: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------------------------------
   15. 404 page
   The error page reuses .hero and .section so it reads as part of the site.
   Only the pieces that have no equivalent elsewhere are defined here.
   --------------------------------------------------------------------------- */

/* The hero is a fixed one-screen height, which suits a 404: the message and
   every recovery button are visible without scrolling. */
.error-hero {
  align-items: center;
}
/* The "404" is ornament, not content - the h1 carries the message - so it is
   kept large and low-contrast rather than competing for attention. */
.error-code {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(3.5rem, 1rem + 13vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: #fff;
  opacity: 0.16;
  margin: 0 0 0.5rem;
  user-select: none;
}

/* Whole card is the link. Stretched pseudo-element, so the visible
   "Visit" affordance is decorative and the accessible name is the heading. */
.err-card {
  display: block;
  position: relative;
  height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--avs-line);
  border-radius: var(--avs-radius-lg);
  background: var(--avs-white);
  box-shadow: var(--avs-shadow-sm);
  color: var(--avs-ink);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.err-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.err-card:hover,
.err-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--avs-shadow);
  border-color: var(--avs-blue);
  color: var(--avs-ink);
}
.err-card .icon-badge {
  margin-bottom: 1rem;
}
.err-card-title {
  font-family: "Poppins", sans-serif;
  font-size: var(--avs-fs-h3);
  font-weight: 700;
  color: var(--avs-navy);
  margin-bottom: 0.5rem;
}
.err-card-text {
  color: var(--avs-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.err-card-go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--avs-blue);
}
.err-card:hover .err-card-go .bi,
.err-card:focus-visible .err-card-go .bi {
  transform: translateX(4px);
}
.err-card-go .bi {
  transition: transform 0.22s ease;
}

.err-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--avs-radius-lg);
  background: var(--avs-surface);
  border: 1px solid var(--avs-line);
}
.err-help-title {
  font-family: "Poppins", sans-serif;
  font-size: var(--avs-fs-h3);
  font-weight: 700;
  color: var(--avs-navy);
  margin-bottom: 0.35rem;
}
.err-help-text {
  color: var(--avs-muted);
  max-width: 56ch;
}

@media (max-width: 991.98px) {
  .err-help {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media print {
  .site-header,
  .site-nav,
  .utility-bar,
  .hero,
  .sub-hero,
  .site-footer,
  .to-top,
  .hero-bg,
  .sub-hero-bg {
    display: none !important;
  }
  body {
    color: #000;
    font-size: 11pt;
  }
  .section {
    padding: 1rem 0;
  }
  a::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555;
  }
  .card,
  .contact-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
