/* Outline numbers (text stroke is not available in the style panel) */
#n-hero,
#n-hero-2,
#n-hero-3 {
  -webkit-text-stroke: 1.5px rgba(170, 160, 255, 0.85);
  color: transparent;
}

#n-svc,
#n-s1,
#n-s2,
#n-s3,
#n-s4 {
  -webkit-text-stroke: 1.3px #5a4fe6;
  color: transparent;
  font-weight: 500;
}

/* Hero side labels */
#hero {
  position: relative;
}

#hero::before,
#hero::after {
  position: absolute;
  z-index: 5;
  font: 600 10px/1 "Inter", sans-serif;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  writing-mode: vertical-rl;
}

#hero::before {
  content: none;
  left: 26px;
  bottom: 70px;
  padding-top: 70px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  transform: rotate(180deg);
}

#hero::after {
  content: none;
  right: 26px;
  top: 200px;
}

/* Nav: fixed over the hero from the start (looks the same at the top);
   js/sticky-nav.js adds .is-stuck after 80px of scroll: a white, slimmer bar */
#hnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}

#hnav.is-stuck {
  box-shadow: 0 12px 30px -16px rgba(24, 26, 56, 0.3);
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Light nav: after scrolling, or while the Services mega menu is open.
   Only the menu links, logo and phone text turn dark; the Get a Quote button keeps its own colours.
   Logo and hours are targeted by id (#nav-mark, #nav-brand, #nav-hours), set on both pages. */
#hnav.is-stuck,
#hnav:has(.ls-mm-open) {
  background-color: #fff;
}

:is(#hnav.is-stuck, #hnav:has(.ls-mm-open))>div:first-child>a,
:is(#hnav.is-stuck, #hnav:has(.ls-mm-open))>div:first-child>a *,
:is(#hnav.is-stuck, #hnav:has(.ls-mm-open))>div:first-child>.ls-mm>.ls-mm-btn {
  color: var(--text);
}

:is(#hnav.is-stuck, #hnav:has(.ls-mm-open)) #nav-hours {
  color: var(--muted);
}

:is(#hnav.is-stuck, #hnav:has(.ls-mm-open)) #nav-hours>span,
:is(#hnav.is-stuck, #hnav:has(.ls-mm-open)) #nav-brand {
  color: var(--primary);
  border-color: var(--border);
}

:is(#hnav.is-stuck, #hnav:has(.ls-mm-open)) #nav-mark {
  background-color: var(--primary);
  color: #fff;
}

:is(#hnav.is-stuck, #hnav:has(.ls-mm-open)) #nav-toggle,
:is(#hnav.is-stuck, #hnav:has(.ls-mm-open)) #nav-toggle * {
  color: var(--text);
}

:is(#hnav.is-stuck, #hnav:has(.ls-mm-open)) #nav-toggle {
  background-color: var(--surface);
  border-color: var(--border);
}

#hnav:has(.ls-mm-open)>div:first-child>.ls-mm>.ls-mm-btn {
  color: var(--primary);
}

/* Services mega menu: full-width panel under the nav */
#hnav .ls-mm-btn {
  font-size: 13.5px;
  font-weight: 500;
  color: #fff;
}

#hnav .ls-mm[data-w="full"]>.ls-mm-panel {
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 0;
}

#services-menu>div:nth-child(2)>div {
  transition: background-color 0.15s ease;
}

#services-menu>div:nth-child(2)>div:hover,
#services-menu>div:first-child>div:hover {
  background-color: var(--surface);
}

/* The service card overlaps the hero bottom; the slider (transformed) would otherwise paint over it */
#pillars {
  position: relative;
  z-index: 6;
}

/* VS badge: a ring just outside the badge blends (difference) with the two cards and the gap behind it,
   so it reads light over the dark card and shifts colour over the purple one; fill and text stay as they are */
#vs-badge {
  position: relative;
}

#vs-badge::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}

/* About page: outline rule numbers on the dark section, and the history timeline (line + ring per year) */
#r-1,
#r-2,
#r-3,
#r-4 {
  -webkit-text-stroke: 1.3px #8f86ff;
  color: transparent;
  font-weight: 500;
}

#timeline>* {
  position: relative;
  margin: 0;
  padding: 0 0 26px 34px;
  border-left: 1px solid #d6d4ea;
}

#timeline>*:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

#timeline>*::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 3px;
  width: 13px;
  height: 13px;
  box-sizing: border-box;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  background: var(--surface);
}

/* Hero slider: bar pagination beside the big number, round arrows bottom right */
#heroSwiper {
  --hero-x: max(24px, calc((100% - 960px) / 2));
  --hero-b: 110px;
  --num-w: 140px;
}

#heroSwiper>.swiper-pagination {
  left: calc(var(--hero-x) + var(--num-w));
  bottom: calc(var(--hero-b) + 4px);
  width: auto;
  display: flex;
  gap: 8px;
  line-height: 0;
}

#heroSwiper>.swiper-pagination .swiper-pagination-bullet {
  width: 40px;
  height: 2px;
  margin: 0;
  border-radius: 0;
  opacity: 1;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

#heroSwiper>.swiper-pagination .swiper-pagination-bullet-active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform-origin: left;
  animation: hero-bar 6s linear forwards;
}

@keyframes hero-bar {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

#heroSwiper>.swiper-button-prev,
#heroSwiper>.swiper-button-next {
  top: auto;
  bottom: var(--hero-b);
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  --swiper-navigation-size: 14px;
}

#heroSwiper>.swiper-button-prev {
  left: auto;
  right: calc(var(--hero-x) + 52px);
}

#heroSwiper>.swiper-button-next {
  right: var(--hero-x);
}

#heroSwiper>.swiper-button-prev:hover,
#heroSwiper>.swiper-button-next:hover {
  background: var(--primary);
  border-color: var(--primary);
}

#heroSwiper>.swiper-button-prev svg,
#heroSwiper>.swiper-button-next svg {
  width: 14px;
  height: 14px;
}

/* Review slider: arrows sit in the header row, right edge of the content column.
   The slider bleeds to the window edge, so the content edge is 100% - 960px from its right. */
#reviewSwiper {
  padding-top: 104px;
  margin-top: -104px;
}

/* Wide screens: cards that slide left stay whole up to the window edge (the testimonials section clips them there).
   Smaller screens keep the clip at the column edge: the 24px gutter would only show a sliver of the previous card. */
@media (min-width: 1025px) {
  #reviewSwiper {
    overflow: visible;
  }
}

#reviewSwiper>.swiper-button-prev,
#reviewSwiper>.swiper-button-next {
  top: 0;
  width: 38px;
  height: 38px;
  margin: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  box-shadow: 0 6px 16px -6px rgba(40, 38, 110, 0.25);
  --swiper-navigation-size: 12px;
}

#reviewSwiper>.swiper-button-next {
  right: max(24px, calc(100% - 960px));
}

#reviewSwiper>.swiper-button-prev {
  left: auto;
  right: calc(max(24px, calc(100% - 960px)) + 48px);
}

#reviewSwiper>.swiper-button-disabled {
  opacity: 1;
  background: rgba(255, 255, 255, 0.5);
  color: #b9b8c8;
  box-shadow: none;
}

#reviewSwiper>.swiper-button-prev svg,
#reviewSwiper>.swiper-button-next svg {
  width: 12px;
  height: 12px;
}

/* Mobile menu (offcanvas opened by the "Menu" button in the nav) */
#mobile-menu li {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#mobile-menu li a {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

#mobile-menu li a:hover {
  color: #b4adff;
}

#mobile-menu [data-ls-close] {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  #heroSwiper .swiper-pagination-bullet-active::after {
    animation: none;
    transform: none;
  }

  #hnav {
    transition: none;
  }
}

@media (max-width: 1024px) {

  #hero::before,
  #hero::after {
    display: none;
  }

  /* the mega menu lives in the offcanvas menu on small screens */
  #hnav .ls-mm {
    display: none;
  }

  /* match the tablet hero padding (170px 40px 130px) */
  #heroSwiper {
    --hero-x: 40px;
    --hero-b: 130px;
  }
}

@media (max-width: 640px) {

  /* phone hero padding is 130px 20px 110px and the number is 72px */
  #heroSwiper {
    --hero-x: 20px;
    --hero-b: 110px;
    --num-w: 92px;
  }

  #heroSwiper>.swiper-button-prev,
  #heroSwiper>.swiper-button-next {
    display: none;
  }

  #heroSwiper>.swiper-pagination .swiper-pagination-bullet {
    width: 28px;
  }

  #hnav.is-stuck {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* ::after · #hero */
.home #hero::after {
  position: absolute;
  z-index: 5;
  font: 600 10px / 1 Inter, sans-serif;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  writing-mode: vertical-rl;
  content: "Computer · System Information · Telecommunication";
  right: 26px;
  top: 200px;
}