/* Tech Fernandes homepage motion layer.
 * Progressive enhancement only: the original hero remains complete without it.
 */
.tf-motion-hero {
  --tf-motion-progress: 0;
  --tf-motion-copy-y: 0px;
  --tf-motion-visual-y: 0px;
  --tf-motion-visual-rotate: 0deg;
  --tf-motion-visual-scale: 1;
  --tf-motion-node-a-x: 0px;
  --tf-motion-node-a-y: 0px;
  --tf-motion-node-b-x: 0px;
  --tf-motion-node-b-y: 0px;
  --tf-motion-node-c-x: 0px;
  --tf-motion-node-c-y: 0px;
  --tf-motion-node-d-x: 0px;
  --tf-motion-node-d-y: 0px;
  --tf-motion-light-x: 72%;
  --tf-motion-light-y: 34%;
  isolation: isolate;
  min-height: min(700px, calc(100svh - var(--header-height, 72px)));
  background:
    radial-gradient(circle at 76% 28%, rgba(37, 104, 215, 0.16), transparent 31%),
    radial-gradient(circle at 88% 72%, rgba(25, 195, 156, 0.11), transparent 28%),
    #071426;
  box-shadow: inset 0 -1px rgba(121, 220, 255, 0.1);
}

.tf-motion-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -30%;
  pointer-events: none;
  background: radial-gradient(
    circle 420px at var(--tf-motion-light-x) var(--tf-motion-light-y),
    rgba(79, 151, 255, 0.2),
    rgba(24, 203, 166, 0.07) 42%,
    transparent 72%
  );
  opacity: calc(0.56 + (var(--tf-motion-progress) * 0.28));
  transform: translate3d(0, var(--tf-motion-visual-y), 0);
  will-change: transform, opacity;
}

.tf-motion-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: -12%;
  bottom: -52%;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(76, 192, 255, 0.1);
  box-shadow:
    0 0 0 52px rgba(42, 112, 226, 0.025),
    0 0 0 104px rgba(29, 199, 159, 0.018);
  transform: scale(calc(1 + (var(--tf-motion-progress) * 0.12)));
  transform-origin: center;
}

.tf-motion-hero > .absolute.inset-0 {
  z-index: 0;
  opacity: 0.2;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.48), #000 55%, rgba(0, 0, 0, 0.78));
}

.tf-motion-hero > .container-tf {
  z-index: 3;
}

.tf-motion-copy {
  transform: translate3d(0, var(--tf-motion-copy-y), 0);
  will-change: transform;
}

.tf-motion-copy h1 {
  color: #fff;
  background: linear-gradient(112deg, #fff 12%, #f7fbff 56%, #cfe6ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
  filter: drop-shadow(0 18px 34px rgba(1, 8, 20, 0.22));
}

.tf-motion-copy > p:first-child {
  text-shadow: 0 0 24px rgba(39, 218, 182, 0.22);
}

.tf-motion-copy > div:last-child a {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.tf-motion-copy > div:last-child a::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -90% auto -90% -45%;
  width: 32%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: skewX(-18deg) translateX(-220%);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tf-motion-copy > div:last-child a:hover::after,
.tf-motion-copy > div:last-child a:focus-visible::after {
  transform: skewX(-18deg) translateX(520%);
}

.tf-motion-visual {
  position: relative;
  transform:
    translate3d(0, var(--tf-motion-visual-y), 0)
    rotate(var(--tf-motion-visual-rotate))
    scale(var(--tf-motion-visual-scale));
  transform-origin: 52% 55%;
  filter: drop-shadow(0 34px 58px rgba(0, 0, 0, 0.22));
  will-change: transform;
}

.tf-motion-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 5% 3% 2% 6%;
  border: 1px solid rgba(111, 183, 255, 0.12);
  border-radius: 46% 54% 56% 44% / 52% 43% 57% 48%;
  background:
    radial-gradient(circle at 42% 48%, rgba(34, 106, 221, 0.14), transparent 54%),
    rgba(8, 28, 52, 0.15);
  box-shadow:
    inset 0 0 70px rgba(36, 159, 255, 0.055),
    0 0 80px rgba(23, 189, 155, 0.045);
  animation: tf-motion-breathe 9s ease-in-out infinite alternate;
}

.tf-motion-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 18% 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(50, 139, 255, 0.16), transparent 67%);
  filter: blur(22px);
  animation: tf-motion-aura 7s ease-in-out infinite alternate;
}

.tf-motion-visual svg {
  overflow: visible;
}

.tf-motion-visual svg > g:first-of-type path {
  stroke-dasharray: 8 9;
  filter: drop-shadow(0 0 4px rgba(27, 209, 179, 0.28));
  animation: tf-motion-flow 8s linear infinite;
}

.tf-motion-visual svg > g:nth-of-type(2) circle {
  filter: drop-shadow(0 0 7px rgba(93, 160, 255, 0.7));
  animation: tf-motion-pulse 3.2s ease-in-out infinite;
}

.tf-motion-visual svg > g:nth-of-type(2) circle:nth-child(2) { animation-delay: -0.8s; }
.tf-motion-visual svg > g:nth-of-type(2) circle:nth-child(3) { animation-delay: -1.6s; }
.tf-motion-visual svg > g:nth-of-type(2) circle:nth-child(4) { animation-delay: -2.4s; }

.tf-motion-visual svg > g:nth-of-type(3) > * {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 90ms linear;
}

.tf-motion-visual svg > g:nth-of-type(3) > :nth-child(1) {
  transform: translate3d(var(--tf-motion-node-a-x), var(--tf-motion-node-a-y), 0);
}

.tf-motion-visual svg > g:nth-of-type(3) > :nth-child(2) {
  transform: translate3d(var(--tf-motion-node-b-x), var(--tf-motion-node-b-y), 0);
  filter: drop-shadow(0 0 13px rgba(52, 126, 255, 0.34));
}

.tf-motion-visual svg > g:nth-of-type(3) > :nth-child(3) {
  transform: translate3d(var(--tf-motion-node-c-x), var(--tf-motion-node-c-y), 0);
}

.tf-motion-visual svg > g:nth-of-type(3) > :nth-child(4) {
  transform: translate3d(var(--tf-motion-node-d-x), var(--tf-motion-node-d-y), 0);
  filter: drop-shadow(0 0 15px rgba(24, 204, 165, 0.32));
}

.tf-motion-scene {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint style;
}

.tf-motion-orb,
.tf-motion-beam {
  position: absolute;
  display: block;
  will-change: transform, opacity;
}

.tf-motion-orb {
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.38;
}

.tf-motion-orb--one {
  top: 12%;
  right: 18%;
  width: 5px;
  height: 5px;
  background: #75b7ff;
  box-shadow: 0 0 22px 7px rgba(80, 155, 255, 0.3);
  animation: tf-motion-drift-a 11s ease-in-out infinite alternate;
}

.tf-motion-orb--two {
  right: 7%;
  bottom: 19%;
  width: 7px;
  height: 7px;
  background: #30ddb4;
  box-shadow: 0 0 26px 8px rgba(36, 211, 171, 0.25);
  animation: tf-motion-drift-b 13s ease-in-out infinite alternate;
}

.tf-motion-orb--three {
  left: 47%;
  bottom: 8%;
  width: 4px;
  height: 4px;
  background: #5a92ff;
  box-shadow: 0 0 18px 6px rgba(66, 128, 255, 0.22);
  animation: tf-motion-drift-c 9s ease-in-out infinite alternate;
}

.tf-motion-beam {
  top: -42%;
  right: 8%;
  width: 18%;
  height: 170%;
  opacity: 0.13;
  background: linear-gradient(90deg, transparent, rgba(104, 186, 255, 0.2), rgba(41, 217, 177, 0.05), transparent);
  filter: blur(16px);
  transform: rotate(18deg) translate3d(calc(var(--tf-motion-progress) * -72px), 0, 0);
}

.tf-motion-ready .tf-motion-copy > * {
  animation: tf-motion-enter 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tf-motion-ready .tf-motion-copy > :nth-child(2) { animation-delay: 80ms; }
.tf-motion-ready .tf-motion-copy > :nth-child(3) { animation-delay: 150ms; }
.tf-motion-ready .tf-motion-copy > :nth-child(4) { animation-delay: 220ms; }
.tf-motion-ready .tf-motion-visual { animation: tf-motion-visual-enter 950ms 170ms cubic-bezier(0.22, 1, 0.36, 1) both; }

@keyframes tf-motion-enter {
  from { opacity: 0; transform: translate3d(0, 18px, 0); filter: blur(5px); }
  to { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }
}

@keyframes tf-motion-visual-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes tf-motion-flow { to { stroke-dashoffset: -136; } }
@keyframes tf-motion-pulse { 0%, 100% { opacity: 0.68; } 50% { opacity: 1; } }
@keyframes tf-motion-breathe { to { transform: rotate(3deg) scale(1.035); border-radius: 54% 46% 42% 58% / 47% 55% 45% 53%; } }
@keyframes tf-motion-aura { to { opacity: 0.62; transform: scale(1.09); } }
@keyframes tf-motion-drift-a { to { transform: translate3d(-38px, 24px, 0); opacity: 0.75; } }
@keyframes tf-motion-drift-b { to { transform: translate3d(-28px, -34px, 0); opacity: 0.7; } }
@keyframes tf-motion-drift-c { to { transform: translate3d(30px, -18px, 0); opacity: 0.62; } }

@media (max-width: 1023px) {
  .tf-motion-hero {
    min-height: auto;
    background:
      radial-gradient(circle at 86% 18%, rgba(38, 116, 231, 0.18), transparent 34%),
      radial-gradient(circle at 5% 92%, rgba(26, 198, 160, 0.1), transparent 28%),
      #071426;
  }

  .tf-motion-hero::after {
    right: -52%;
    bottom: -29%;
    width: 105%;
  }

  .tf-motion-beam {
    right: -6%;
    width: 38%;
  }
}

@media (max-width: 639px) {
  .tf-motion-hero > .container-tf {
    padding-top: 4.8rem;
    padding-bottom: 4.8rem;
  }

  .tf-motion-copy h1 {
    letter-spacing: -0.045em;
  }

  .tf-motion-orb--three {
    left: 72%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tf-motion-hero,
  .tf-motion-hero *,
  .tf-motion-hero::before,
  .tf-motion-hero::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .tf-motion-ready .tf-motion-copy > *,
  .tf-motion-ready .tf-motion-visual {
    opacity: 1 !important;
  }

  .tf-motion-copy,
  .tf-motion-visual,
  .tf-motion-visual svg > g:nth-of-type(3) > * {
    transform: none !important;
  }

  .tf-motion-beam { transform: rotate(18deg) !important; }
  .tf-motion-orb { opacity: 0.22; }
}
