/* ========================================
   3cAxis Technologies
   Main Website Stylesheet
   ======================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  width: 100%;
  height: 100vh;
  height: 100dvh;

  overflow: hidden;

  background-color: #ffffff;
}


/* ========================================
   Top Navigation Ribbon
   ======================================== */

.top-ribbon {
  position: relative;

  width: 100%;
  height: 64px;

  background-color: #1E87FC;

  z-index: 20;
}


.nav-container {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: 1600px;
  height: 100%;

  margin: 0 auto;

  padding-left: clamp(16px, 2vw, 34px);
  padding-right: clamp(16px, 2vw, 34px);
}


/* ========================================
   Desktop Navigation
   ======================================== */

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;

  gap: clamp(12px, 1.7vw, 30px);
}


.nav-link {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 40px;

  color: #ffffff;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size:
    clamp(
      11px,
      0.82vw,
      15px
    );

  font-weight: 600;

  letter-spacing: 0.04em;

  text-decoration: none;
  text-transform: uppercase;

  white-space: nowrap;

  transition:
    opacity 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}


.nav-link:not(.nav-cta)::after {
  content: "";

  position: absolute;

  left: 50%;
  bottom: 4px;

  width: 0;
  height: 2px;

  background-color: #ffffff;

  transform: translateX(-50%);

  transition: width 0.2s ease;
}


.nav-link:not(.nav-cta):hover::after {
  width: 100%;
}


.nav-link:hover {
  opacity: 0.88;
}


/* ========================================
   Consultation Button
   ======================================== */

.nav-cta {
  min-height: 40px;

  padding-left:
    clamp(
      12px,
      1.2vw,
      22px
    );

  padding-right:
    clamp(
      12px,
      1.2vw,
      22px
    );

  border: 2px solid #ffffff;

  border-radius: 6px;
}


.nav-cta:hover {
  color: #1E87FC;

  background-color: #ffffff;

  opacity: 1;
}


/* ========================================
   Mobile Navigation Controls
   ======================================== */

.mobile-brand,
.menu-toggle,
.menu-button {
  display: none;
}


/* ========================================
   Hero
   ======================================== */

.hero {
  position: relative;

  width: 100%;

  height: calc(100vh - 64px);
  height: calc(100dvh - 64px);

  overflow: hidden;

  background-color: #ffffff;
}


/* ========================================
   Desktop Artwork Canvas
   ======================================== */

.desktop-canvas {
  position: absolute;

  left: 50%;
  top: 50%;

  width: max(
    100vw,
    calc((100vh - 64px) * 2.333739)
  );

  width: max(
    100vw,
    calc((100dvh - 64px) * 2.333739)
  );

  aspect-ratio: 1916 / 821;

  transform:
    translate(-50%, -50%)
    scale(1.002);

  transform-origin: center;

  overflow: hidden;
}


/* ========================================
   Desktop Background
   ======================================== */

.homepage-desktop {
  position: absolute;

  inset: 0;

  display: block;

  width: 100%;
  height: 100%;

  object-fit: fill;

  pointer-events: none;

  z-index: 1;
}


/* ========================================
   Desktop WORK FOR YOU Overlay
   ======================================== */

.work-for-you-overlay {
  position: absolute;

  inset: 0;

  display: block;

  width: 100%;
  height: 100%;

  object-fit: fill;

  pointer-events: none;

  z-index: 5;
}


/* ========================================
   Desktop Shimmer Container
   ======================================== */

.work-for-you-shimmer {
  position: absolute;

  inset: 0;

  pointer-events: none;

  z-index: 6;
}


/* ========================================
   Desktop Shimmer Masks
   ======================================== */

.shimmer-pass {
  position: absolute;

  inset: 0;

  pointer-events: none;

  -webkit-mask-image:
    url("../work-for-you-overlay.png");

  -webkit-mask-repeat:
    no-repeat;

  -webkit-mask-position:
    center;

  -webkit-mask-size:
    100% 100%;

  mask-image:
    url("../work-for-you-overlay.png");

  mask-repeat:
    no-repeat;

  mask-position:
    center;

  mask-size:
    100% 100%;
}


/* ========================================
   Desktop Shimmer Beam
   ======================================== */

.shimmer-pass::before {
  content: "";

  position: absolute;

  top: 0;
  bottom: 0;

  width: 3.5%;

  opacity: 0;

  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(190, 225, 255, 0.10) 18%,
      rgba(215, 238, 255, 0.40) 35%,
      rgba(255, 255, 255, 0.90) 50%,
      rgba(215, 238, 255, 0.40) 65%,
      rgba(190, 225, 255, 0.10) 82%,
      rgba(255, 255, 255, 0) 100%
    );

  filter:
    drop-shadow(
      0 0 4px
      rgba(120, 190, 255, 0.25)
    );

  will-change:
    left,
    opacity;
}


/* ========================================
   Desktop WORK Region
   ======================================== */

.shimmer-pass-work {
  clip-path:
    inset(
      33.37%
      63.52%
      60.05%
      25.63%
    );
}


.shimmer-pass-work::before {
  animation:
    shimmerWork
    10s
    linear
    infinite;
}


/* ========================================
   Desktop FOR Region
   ======================================== */

.shimmer-pass-for {
  clip-path:
    inset(
      42.14%
      78.86%
      51.28%
      14.25%
    );
}


.shimmer-pass-for::before {
  animation:
    shimmerFor
    10s
    linear
    infinite;
}


/* ========================================
   Desktop YOU Region
   ======================================== */

.shimmer-pass-you {
  clip-path:
    inset(
      42.14%
      70.67%
      51.28%
      21.92%
    );
}


.shimmer-pass-you::before {
  animation:
    shimmerYou
    10s
    linear
    infinite;
}


/* ========================================
   Desktop WORK Animation
   ======================================== */

@keyframes shimmerWork {

  0% {
    left: 22%;
    opacity: 0;
  }

  1% {
    left: 22%;
    opacity: 1;
  }

  32% {
    left: 38%;
    opacity: 1;
  }

  34% {
    left: 38%;
    opacity: 0;
  }

  100% {
    left: 38%;
    opacity: 0;
  }
}


/* ========================================
   Desktop FOR Animation
   ======================================== */

@keyframes shimmerFor {

  0%,
  25.9% {
    left: 11%;
    opacity: 0;
  }

  26% {
    left: 11%;
    opacity: 1;
  }

  53% {
    left: 23%;
    opacity: 1;
  }

  55% {
    left: 23%;
    opacity: 0;
  }

  100% {
    left: 23%;
    opacity: 0;
  }
}


/* ========================================
   Desktop YOU Animation
   ======================================== */

@keyframes shimmerYou {

  0%,
  44.9% {
    left: 20.17%;
    opacity: 0;
  }

  45% {
    left: 20.17%;
    opacity: 1;
  }

  70% {
    left: 31%;
    opacity: 1;
  }

  72% {
    left: 31%;
    opacity: 0;
  }

  100% {
    left: 31%;
    opacity: 0;
  }
}


/* ========================================
   Wi-Fi Pulse
   ======================================== */

.wifi-pulse {
  position: absolute;

  aspect-ratio: 1 / 1;

  border:
    2px solid
    rgba(30, 135, 252, 0.95);

  border-radius: 50%;

  box-shadow:
    0 0 8px rgba(30, 135, 252, 0.8),
    0 0 18px rgba(30, 135, 252, 0.45);

  pointer-events: none;

  transform:
    translate(-50%, -50%);

  animation:
    wifiPulse
    2.8s
    ease-out
    infinite;

  z-index: 10;
}


.wifi-pulse-desktop {
  left: 62.85%;
  top: 23.55%;

  width: 3.2%;
}


@keyframes wifiPulse {

  0% {
    opacity: 0.85;

    transform:
      translate(-50%, -50%)
      scale(0.85);
  }

  60% {
    opacity: 0.35;
  }

  100% {
    opacity: 0;

    transform:
      translate(-50%, -50%)
      scale(2.25);
  }
}


/* ========================================
   Homepage Feature Tiles
   ======================================== */

.homepage-tiles {
  position: absolute;

  left: 3.4%;
  right: 3.4%;
  bottom: clamp(18px, 3.5vh, 34px);

  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 6.5%;

  z-index: 15;
}


.homepage-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  height:
    clamp(
      124px,
      15vh,
      154px
    );

  padding:
    clamp(
      16px,
      1.35vw,
      24px
    );

  overflow: hidden;

  border:
    1px solid
    rgba(
      30,
      135,
      252,
      0.34
    );

  border-radius: 14px;

  background:
    rgba(
      255,
      255,
      255,
      0.58
    );

  -webkit-backdrop-filter:
    blur(4px);

  backdrop-filter:
    blur(4px);

  box-shadow:
    0 10px 28px
    rgba(
      13,
      66,
      122,
      0.14
    );

  color: #172033;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  text-decoration: none;

  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}


.homepage-tile:hover {
  border-color:
    rgba(
      13,
      123,
      253,
      0.70
    );

  background-color:
    rgba(
      255,
      255,
      255,
      0.82
    );

  box-shadow:
    0 16px 34px
    rgba(
      13,
      66,
      122,
      0.22
    );

  transform:
    translateY(-5px);
}


.homepage-tile h2 {
  margin-bottom:
    clamp(
      5px,
      0.6vh,
      9px
    );

  color: #0d7bfd;

  font-size:
    clamp(
      16px,
      1.25vw,
      22px
    );

  line-height: 1.15;
}


.homepage-tile p {
  max-width: 95%;

  color: #43516a;

  font-size:
    clamp(
      11px,
      0.82vw,
      14px
    );

  line-height: 1.35;
}


.tile-link {
  margin-top: 10px;

  color: #0d7bfd;

  font-size:
    clamp(
      10px,
      0.74vw,
      13px
    );

  font-weight: 700;

  letter-spacing: 0.02em;

  text-transform: uppercase;
}


/* ========================================
   Mobile
   ======================================== */

.artwork-mobile {
  display: none;
}


.mobile-work-for-you-shimmer {
  display: none;
}


.wifi-pulse-mobile {
  left: 51.55%;
  top: 55.35%;

  width: 7.2%;
}


/* ========================================
   Reduced Motion
   ======================================== */

@media (prefers-reduced-motion: reduce) {

  .wifi-pulse {
    display: none;
  }

  .work-for-you-shimmer,
  .mobile-work-for-you-shimmer {
    display: none;
  }
}


/* ========================================
   Mobile Phones
   ======================================== */

@media screen and (max-width: 768px) {

  body {
    height: auto;

    overflow-x: hidden;
    overflow-y: auto;
  }


  /* ======================================
     Mobile Top Ribbon
     ====================================== */

  .top-ribbon {
    height: 56px;

    background-color: #0D7BFD;
  }


  .nav-container {
    justify-content: space-between;

    padding-left: 16px;
    padding-right: 16px;
  }


  .mobile-brand {
    display: block;

    color: #ffffff;

    font-family:
      Arial,
      Helvetica,
      sans-serif;

    font-size: 15px;

    font-weight: 600;

    letter-spacing: 0.04em;

    text-decoration: none;

    white-space: nowrap;

    z-index: 22;
  }


  /* ======================================
     Mobile Hamburger Button
     ====================================== */

  .menu-toggle {
    position: absolute;

    opacity: 0;

    pointer-events: none;
  }


  .menu-button {
    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    gap: 5px;

    cursor: pointer;

    z-index: 23;
  }


  .menu-button span {
    display: block;

    width: 25px;
    height: 2px;

    background-color: #ffffff;

    border-radius: 2px;

    transition:
      transform 0.25s ease,
      opacity 0.25s ease;
  }


  .menu-toggle:checked
  + .menu-button
  span:nth-child(1) {
    transform:
      translateY(7px)
      rotate(45deg);
  }


  .menu-toggle:checked
  + .menu-button
  span:nth-child(2) {
    opacity: 0;
  }


  .menu-toggle:checked
  + .menu-button
  span:nth-child(3) {
    transform:
      translateY(-7px)
      rotate(-45deg);
  }


  /* ======================================
     Mobile Navigation Dropdown
     ====================================== */

  .main-nav {
    position: absolute;

    left: 0;
    top: 56px;

    display: flex;

    flex-direction: column;

    align-items: stretch;

    width: 100%;

    gap: 0;

    padding:
      10px
      16px
      16px;

    background-color:
      rgba(
        13,
        123,
        253,
        0.98
      );

    opacity: 0;

    visibility: hidden;

    transform:
      translateY(-10px);

    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s ease;

    z-index: 21;
  }


  .menu-toggle:checked
  ~ .main-nav {
    opacity: 1;

    visibility: visible;

    transform:
      translateY(0);
  }


  .nav-link {
    justify-content: flex-start;

    width: 100%;

    min-height: 48px;

    padding:
      0
      8px;

    border-bottom:
      1px solid
      rgba(
        255,
        255,
        255,
        0.22
      );

    font-size: 14px;
  }


  .nav-link:not(.nav-cta)::after {
    display: none;
  }


  .nav-cta {
    justify-content: center;

    margin-top: 12px;

    border:
      2px solid
      #ffffff;

    border-radius: 6px;
  }


  /* ======================================
     Mobile Hero
     ====================================== */

  .hero {
    width: 100%;
    height: auto;

    overflow: visible;
  }


  .desktop-canvas {
    display: none;
  }


  .artwork-mobile {
    position: relative;

    display: block;

    width: 100%;

    overflow: hidden;
  }


  .homepage-mobile {
    position: relative;

    display: block;

    width: 100%;
    height: auto;

    z-index: 1;
  }


  /* ======================================
     Mobile Homepage Tiles
     ====================================== */

  .homepage-tiles {
    position: relative;

    left: auto;
    right: auto;
    bottom: auto;

    grid-template-columns: 1fr;

    gap: 12px;

    width: 100%;

    padding:
      18px
      16px
      24px;

    background-color: #f4f7fb;
  }


  .homepage-tile {
    width: 100%;
    height: auto;
    min-height: 0;

    padding: 20px;

    border-radius: 12px;

    background:
      rgba(
        255,
        255,
        255,
        0.82
      );

    -webkit-backdrop-filter:
      blur(4px);

    backdrop-filter:
      blur(4px);
  }


  .homepage-tile h2 {
    margin-bottom: 7px;

    font-size: 20px;
  }


  .homepage-tile p {
    max-width: none;

    font-size: 14px;
  }


  .tile-link {
    margin-top: 16px;

    font-size: 12px;
  }


  /* ======================================
     Mobile Shimmer Container
     ====================================== */

  .mobile-work-for-you-shimmer {
    position: absolute;

    inset: 0;

    display: block;

    pointer-events: none;

    z-index: 6;
  }


  /* ======================================
     Mobile Shimmer Mask
     ====================================== */

  .mobile-shimmer-pass {
    position: absolute;

    inset: 0;

    pointer-events: none;

    -webkit-mask-image:
      url("../work-for-you-mobile-mask.png");

    -webkit-mask-repeat:
      no-repeat;

    -webkit-mask-position:
      center;

    -webkit-mask-size:
      100% 100%;

    mask-image:
      url("../work-for-you-mobile-mask.png");

    mask-repeat:
      no-repeat;

    mask-position:
      center;

    mask-size:
      100% 100%;
  }


  /* ======================================
     Mobile Shimmer Beam
     ====================================== */

  .mobile-shimmer-pass::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;

    width: 3.5%;

    opacity: 0;

    background:
      linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(190, 225, 255, 0.10) 18%,
        rgba(215, 238, 255, 0.40) 35%,
        rgba(255, 255, 255, 0.90) 50%,
        rgba(215, 238, 255, 0.40) 65%,
        rgba(190, 225, 255, 0.10) 82%,
        rgba(255, 255, 255, 0) 100%
      );

    filter:
      drop-shadow(
        0 0 4px
        rgba(120, 190, 255, 0.25)
      );

    will-change:
      left,
      opacity;
  }


  /* ======================================
     Mobile WORK
     ====================================== */

  .mobile-shimmer-work {
    clip-path:
      inset(
        20.16%
        15.09%
        75.18%
        50.90%
      );
  }


  .mobile-shimmer-work::before {
    animation:
      mobileShimmerWork
      10s
      linear
      infinite;
  }


  /* ======================================
     Mobile FOR
     ====================================== */

  .mobile-shimmer-for {
    clip-path:
      inset(
        26.91%
        63.76%
        68.48%
        15.20%
      );
  }


  .mobile-shimmer-for::before {
    animation:
      mobileShimmerFor
      10s
      linear
      infinite;
  }


  /* ======================================
     Mobile YOU
     ====================================== */

  .mobile-shimmer-you {
    clip-path:
      inset(
        26.91%
        38.04%
        68.48%
        39.32%
      );
  }


  .mobile-shimmer-you::before {
    animation:
      mobileShimmerYou
      10s
      linear
      infinite;
  }


  /* ======================================
     Mobile WORK Animation
     ====================================== */

  @keyframes mobileShimmerWork {

    0% {
      left: 49.15%;
      opacity: 0;
    }

    1% {
      left: 49.15%;
      opacity: 1;
    }

    32% {
      left: 83.16%;
      opacity: 1;
    }

    34% {
      left: 83.16%;
      opacity: 0;
    }

    100% {
      left: 83.16%;
      opacity: 0;
    }
  }


  /* ======================================
     Mobile FOR Animation
     ====================================== */

  @keyframes mobileShimmerFor {

    0%,
    25.9% {
      left: 13.45%;
      opacity: 0;
    }

    26% {
      left: 13.45%;
      opacity: 1;
    }

    50% {
      left: 34.49%;
      opacity: 1;
    }

    52% {
      left: 34.49%;
      opacity: 0;
    }

    100% {
      left: 34.49%;
      opacity: 0;
    }
  }


  /* ======================================
     Mobile YOU Animation
     ====================================== */

  @keyframes mobileShimmerYou {

    0%,
    49.9% {
      left: 37.57%;
      opacity: 0;
    }

    50% {
      left: 37.57%;
      opacity: 1;
    }

    72% {
      left: 60.21%;
      opacity: 1;
    }

    74% {
      left: 60.21%;
      opacity: 0;
    }

    100% {
      left: 60.21%;
      opacity: 0;
    }
  }


  /* ======================================
     Mobile Wi-Fi Pulse
     ====================================== */

  .wifi-pulse-mobile {
    left: 51.55%;
    top: 55.35%;

    width: 7.2%;
  }
}
