/* ==================================================
   SCORPION LABS FEATURE
================================================== */

.scorpion-feature {
  --navy: #001b44;
  --orange: #ff7620;
  --body-text: #596477;
  --card-gray: rgba(245, 246, 248, 0.94);

  position: relative;

  width: 100%;
  padding: 96px 24px;

  overflow: hidden;

  background: #ffffff;

  font-family:
    "Proxima Nova",
    "ProximaNova",
    Arial,
    Helvetica,
    sans-serif;
}

.scorpion-feature *,
.scorpion-feature *::before,
.scorpion-feature *::after {
  box-sizing: border-box;
}


/* ==================================================
   MAIN LAYOUT
================================================== */

.scorpion-feature__inner {
  display: grid;

  grid-template-columns:
    minmax(350px, 0.76fr)
    minmax(650px, 1.35fr);

  align-items: center;

  width: min(1480px, 100%);
  margin: 0 auto;

  gap: clamp(60px, 7vw, 120px);
}


/* ==================================================
   LEFT CONTENT
================================================== */

.scorpion-feature__content {
  position: relative;
  z-index: 2;
}

.scorpion-feature__eyebrow {
  display: inline-block;

  width: auto;
  max-width: none;

  margin: 0;
  padding-right: 0.12em;

  overflow: visible;

  color: var(--orange);

  font-size: clamp(44px, 4.5vw, 72px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.045em;

  white-space: nowrap;
}

@supports (background-clip: text) {
  .scorpion-feature__eyebrow {
    background:
      linear-gradient(
        110deg,
        #ff6818 0%,
        #ff8426 52%,
        #ffae6a 100%
      );

    background-clip: text;
    -webkit-background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.scorpion-feature__accent {
  display: block;

  width: 76px;
  height: 4px;

  margin: 38px 0 54px;

  border-radius: 999px;

  background: var(--orange);
}

.scorpion-feature__heading {
  margin: 0 0 28px;

  color: var(--navy);

  font-size: clamp(40px, 3.5vw, 58px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.scorpion-feature__description {
  max-width: 580px;
  margin: 0 0 42px;

  color: var(--body-text);

  font-size: clamp(19px, 1.55vw, 25px);
  font-weight: 400;
  line-height: 1.5;
}


/* ==================================================
   CTA BUTTON
================================================== */

.scorpion-feature__button,
.scorpion-feature__button:link,
.scorpion-feature__button:visited {
  position: relative;

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

  min-width: 334px;
  padding: 20px 27px;

  gap: 38px;

  border: 2px solid var(--navy);
  border-radius: 12px;

  background: var(--navy);
  color: #ffffff;

  font-family:
    "Proxima Nova",
    "ProximaNova",
    Arial,
    Helvetica,
    sans-serif;

  font-size: 20px;
  font-weight: 600;
  line-height: 1;

  text-decoration: none !important;

  box-shadow:
    0 12px 28px rgba(0, 27, 68, 0.15);

  transition:
    background-color 250ms ease,
    border-color 250ms ease,
    color 250ms ease,
    box-shadow 250ms ease,
    transform 250ms ease;
}

.scorpion-feature__button:hover,
.scorpion-feature__button:focus-visible {
  border-color: var(--orange);

  background: var(--orange);
  color: var(--navy);

  box-shadow:
    0 14px 32px rgba(255, 118, 32, 0.24);

  transform: translateY(-2px);
}

.scorpion-feature__button-text {
  color: inherit;
}

.scorpion-feature__button-arrow {
  position: relative;

  display: block;

  width: 29px;
  height: 18px;

  flex: 0 0 29px;

  color: inherit;

  transition: transform 250ms ease;
}

.scorpion-feature__button-arrow::before {
  content: "";

  position: absolute;
  top: 8px;
  left: 0;

  width: 27px;
  height: 2px;

  border-radius: 999px;

  background: currentColor;
}

.scorpion-feature__button-arrow::after {
  content: "";

  position: absolute;
  top: 3px;
  right: 1px;

  width: 11px;
  height: 11px;

  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;

  transform: rotate(45deg);
}

.scorpion-feature__button:hover
.scorpion-feature__button-arrow,
.scorpion-feature__button:focus-visible
.scorpion-feature__button-arrow {
  transform: translateX(5px);
}


/* ==================================================
   RIGHT PANEL
================================================== */

.scorpion-feature__visual {
  position: relative;

  min-height: 740px;

  overflow: hidden;
  isolation: isolate;

  border: 1px solid rgba(7, 91, 232, 0.11);
  border-radius: 32px;

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

  box-shadow:
    0 24px 70px rgba(0, 27, 68, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.scorpion-feature__gradient {
  position: absolute;
  inset: 0;
  z-index: -3;

  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.99) 0%,
      rgba(255, 255, 255, 0.9) 45%,
      rgba(255, 255, 255, 0.84) 100%
    );
}

.scorpion-feature__blob {
  position: absolute;

  display: block;

  border-radius: 50%;

  filter: blur(50px);

  will-change: transform;
}

.scorpion-feature__blob--teal {
  left: -18%;
  bottom: -32%;

  width: 76%;
  aspect-ratio: 1;

  background:
    radial-gradient(
      circle,
      rgba(107, 224, 227, 0.78) 0%,
      rgba(107, 224, 227, 0.36) 42%,
      rgba(107, 224, 227, 0) 72%
    );

  animation:
    scorpionBlobTeal
    11s
    ease-in-out
    infinite
    alternate;
}

.scorpion-feature__blob--aqua {
  left: 30%;
  bottom: -52%;

  width: 72%;
  aspect-ratio: 1;

  background:
    radial-gradient(
      circle,
      rgba(58, 192, 212, 0.36) 0%,
      rgba(58, 192, 212, 0.16) 44%,
      rgba(58, 192, 212, 0) 72%
    );

  animation:
    scorpionBlobAqua
    13s
    ease-in-out
    infinite
    alternate;
}

.scorpion-feature__blob--orange {
  top: -36%;
  right: -25%;

  width: 73%;
  aspect-ratio: 1;

  background:
    radial-gradient(
      circle,
      rgba(255, 132, 38, 0.67) 0%,
      rgba(255, 132, 38, 0.27) 41%,
      rgba(255, 132, 38, 0) 72%
    );

  animation:
    scorpionBlobOrange
    12s
    ease-in-out
    infinite
    alternate;
}

@keyframes scorpionBlobTeal {
  from {
    transform:
      translate3d(-2%, 4%, 0)
      scale(1);
  }

  to {
    transform:
      translate3d(13%, -9%, 0)
      scale(1.09);
  }
}

@keyframes scorpionBlobAqua {
  from {
    transform:
      translate3d(6%, 5%, 0)
      scale(1);
  }

  to {
    transform:
      translate3d(-10%, -11%, 0)
      scale(1.13);
  }
}

@keyframes scorpionBlobOrange {
  from {
    transform:
      translate3d(2%, -3%, 0)
      scale(1);
  }

  to {
    transform:
      translate3d(-12%, 12%, 0)
      scale(1.1);
  }
}


/* ==================================================
   DOT PATTERN
================================================== */

.scorpion-feature__dots {
  position: absolute;
  inset: 0;
  z-index: -1;

  pointer-events: none;

  opacity: 0.44;

  background-image:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.94) 1.3px,
      transparent 1.45px
    );

  background-size: 22px 22px;

  -webkit-mask-image:
    linear-gradient(
      145deg,
      transparent 3%,
      rgba(0, 0, 0, 0.75) 36%,
      rgba(0, 0, 0, 0.92) 70%,
      transparent 100%
    );

  mask-image:
    linear-gradient(
      145deg,
      transparent 3%,
      rgba(0, 0, 0, 0.75) 36%,
      rgba(0, 0, 0, 0.92) 70%,
      transparent 100%
    );
}


/* ==================================================
   PANEL CONTENT
================================================== */

.scorpion-feature__visual-content {
  position: relative;
  z-index: 2;

  min-height: 740px;
  padding: 58px 42px 34px;
}

.scorpion-feature__visual-title {
  margin: 0 0 38px;

  color: var(--navy);

  font-size: clamp(28px, 2.4vw, 38px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}


/* ==================================================
   SERVICE CARDS
================================================== */

.scorpion-services {
  position: relative;
  z-index: 3;

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

  width: 100%;

  gap: 16px;
}

.scorpion-service-card {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 0;
  min-height: 170px;

  padding: 26px 22px;

  border: 1px solid rgba(0, 27, 68, 0.09);
  border-radius: 15px;

  background: var(--card-gray);

  text-align: center;

  box-shadow:
    0 10px 24px rgba(0, 27, 68, 0.055);

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

  transition:
    background-color 250ms ease,
    border-color 250ms ease,
    box-shadow 250ms ease,
    transform 250ms ease;
}

.scorpion-service-card:hover {
  border-color: rgba(255, 118, 32, 0.34);

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

  box-shadow:
    0 15px 30px rgba(0, 27, 68, 0.1);

  transform: translateY(-5px);
}

.scorpion-service-card__name {
  width: 100%;
  margin: 0;

  color: var(--navy);

  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 700;
  line-height: 1.25;

  text-align: center;
}


/* ==================================================
   EXACT SCORPION SVG
================================================== */

.scorpion-graphic {
  position: relative;
  z-index: 2;

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

  width: min(520px, 86%);
  height: 335px;

  margin: 24px auto 0;

  pointer-events: none;
}

.scorpion-graphic__svg {
  display: block;

  width: 100%;
  height: 100%;

  overflow: visible;

  filter:
    drop-shadow(
      0 16px 18px rgba(0, 40, 80, 0.12)
    );
}


/*
  Important:
  Do not add a universal stroke to these paths.
  The logo intentionally uses open gaps between
  the individual tail segments.
*/

.scorpion-graphic__svg path,
.scorpion-graphic__svg polygon {
  stroke: none;
  outline: none;
}


/* ==================================================
   TAIL JOINT SETUP
================================================== */

.scorpion-svg__tail-joint {
  transform-box: view-box;
  will-change: transform;
}


/*
  Each origin is positioned at the visual connection
  between that segment and the segment below it.
*/

.scorpion-svg__tail-joint--1 {
  transform-origin: 456px 225px;

  animation:
    scorpion-tail-01
    8s
    cubic-bezier(0.45, 0, 0.2, 1)
    infinite;
}

.scorpion-svg__tail-joint--2 {
  transform-origin: 456px 194px;

  animation:
    scorpion-tail-02
    8s
    cubic-bezier(0.45, 0, 0.2, 1)
    infinite;
}

.scorpion-svg__tail-joint--3 {
  transform-origin: 452px 140px;

  animation:
    scorpion-tail-03
    8s
    cubic-bezier(0.45, 0, 0.2, 1)
    infinite;
}

.scorpion-svg__tail-joint--4 {
  transform-origin: 419px 109px;

  animation:
    scorpion-tail-04
    8s
    cubic-bezier(0.45, 0, 0.2, 1)
    infinite;
}

.scorpion-svg__tail-joint--5 {
  transform-origin: 371px 99px;

  animation:
    scorpion-tail-05
    8s
    cubic-bezier(0.45, 0, 0.2, 1)
    infinite;
}

.scorpion-svg__tail-joint--6 {
  transform-origin: 354px 131px;

  animation:
    scorpion-stinger
    8s
    cubic-bezier(0.45, 0, 0.2, 1)
    infinite;
}


/* ==========================================
   OUTWARD SCORPION STRIKE
   Replace all previous tail animation CSS
========================================== */

.scorpion-svg__tail-joint {
  transform-box: view-box;
  will-change: transform;
}

.scorpion-svg__tail-joint--1 {
  transform-origin: 456px 225px;
  animation: tailOut01 3.6s ease-in-out infinite;
}

.scorpion-svg__tail-joint--2 {
  transform-origin: 456px 194px;
  animation: tailOut02 3.6s ease-in-out infinite;
}

.scorpion-svg__tail-joint--3 {
  transform-origin: 452px 140px;
  animation: tailOut03 3.6s ease-in-out infinite;
}

.scorpion-svg__tail-joint--4 {
  transform-origin: 419px 109px;
  animation: tailOut04 3.6s ease-in-out infinite;
}

.scorpion-svg__tail-joint--5 {
  transform-origin: 371px 99px;
  animation: tailOut05 3.6s ease-in-out infinite;
}

.scorpion-svg__tail-joint--6 {
  transform-origin: 354px 131px;
  animation: stingerOut 3.6s ease-in-out infinite;
}


/* Lower tail moves only slightly */

@keyframes tailOut01 {
  0%,
  50%,
  82%,
  100% {
    transform: rotate(0deg);
  }

  59% {
    transform: rotate(-1deg);
  }

  68% {
    transform: rotate(1.5deg);
  }

  73% {
    transform: rotate(2deg);
  }
}

@keyframes tailOut02 {
  0%,
  50%,
  82%,
  100% {
    transform: rotate(0deg);
  }

  59% {
    transform: rotate(-1.5deg);
  }

  68% {
    transform: rotate(3deg);
  }

  73% {
    transform: rotate(4deg);
  }
}

@keyframes tailOut03 {
  0%,
  50%,
  82%,
  100% {
    transform: rotate(0deg);
  }

  59% {
    transform: rotate(-2deg);
  }

  68% {
    transform: rotate(5deg);
  }

  73% {
    transform: rotate(6deg);
  }
}


/* Upper tail opens outward toward the left */

@keyframes tailOut04 {
  0%,
  50%,
  82%,
  100% {
    transform: rotate(0deg);
  }

  59% {
    transform: rotate(-3deg);
  }

  68% {
    transform: rotate(7deg);
  }

  73% {
    transform: rotate(9deg);
  }
}

@keyframes tailOut05 {
  0%,
  50%,
  82%,
  100% {
    transform: rotate(0deg);
  }

  59% {
    transform: rotate(-4deg);
  }

  68% {
    transform: rotate(10deg);
  }

  73% {
    transform: rotate(13deg);
  }

  77% {
    transform: rotate(8deg);
  }
}


/* Orange stinger projects outward after the tail opens */

@keyframes stingerOut {
  0%,
  50%,
  82%,
  100% {
    transform:
      translate(0, 0)
      rotate(0deg);
  }

  /* Small preparation */
  59% {
    transform:
      translate(1px, -1px)
      rotate(-3deg);
  }

  /* Follow the tail outward */
  67% {
    transform:
      translate(-2px, 0)
      rotate(5deg);
  }

  /* Controlled strike */
  71% {
    transform:
      translate(-6px, 1px)
      rotate(10deg);
  }

  /* Small overshoot without detaching */
  74% {
    transform:
      translate(-8px, 1px)
      rotate(12deg);
  }

  /* Return */
  78% {
    transform:
      translate(-3px, 0)
      rotate(5deg);
  }

  82% {
    transform:
      translate(0, 0)
      rotate(0deg);
  }
}

/* ==================================================
   RESPONSIVE — TABLET
================================================== */

@media (max-width: 1100px) {
  .scorpion-feature {
    padding: 80px 24px;
  }

  .scorpion-feature__inner {
    grid-template-columns: 1fr;
    align-items: stretch;

    width: min(760px, 100%);

    gap: 64px;
  }

  .scorpion-feature__content {
    width: 100%;
  }

  .scorpion-feature__visual {
    width: 100%;
    min-height: 720px;
  }

  .scorpion-feature__visual-content {
    min-height: 720px;
  }
}


/* ==================================================
   RESPONSIVE — MOBILE
================================================== */

@media (max-width: 767px) {
  .scorpion-feature {
    padding: 64px 18px;
  }

  .scorpion-feature__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);

    width: 100%;

    gap: 48px;
  }

  .scorpion-feature__content,
  .scorpion-feature__visual {
    min-width: 0;
    width: 100%;
  }


  /* LEFT CONTENT */

  .scorpion-feature__eyebrow {
    max-width: 100%;

    font-size: clamp(38px, 12vw, 52px);
    line-height: 1.05;

    white-space: normal;
  }

  .scorpion-feature__accent {
    width: 64px;

    margin: 28px 0 38px;
  }

  .scorpion-feature__heading {
    margin-bottom: 24px;

    font-size: clamp(36px, 11vw, 48px);
    line-height: 1;
  }

  .scorpion-feature__description {
    margin-bottom: 34px;

    font-size: 19px;
    line-height: 1.48;
  }

 .scorpion-feature__button,
.scorpion-feature__button:link,
.scorpion-feature__button:visited {
  width: fit-content;
  min-width: 0;

  padding: 18px 22px;

  gap: 28px;

  font-size: 20px;
}


  /* RIGHT PANEL */

  .scorpion-feature__visual {
    display: block;

    min-height: 760px;

    border-radius: 24px;
  }

  .scorpion-feature__gradient,
  .scorpion-feature__dots {
    display: block;
  }

  .scorpion-feature__visual-content {
    display: flex;
    flex-direction: column;

    min-height: 760px;
    padding: 36px 18px 0;
  }

  .scorpion-feature__visual-title {
    margin-bottom: 26px;

    font-size: clamp(27px, 8vw, 34px);
  }


  /* SERVICE CARDS */

  .scorpion-services {
    grid-template-columns: 1fr;

    gap: 12px;
  }

  .scorpion-service-card {
    min-height: 92px;

    padding: 20px 18px;
  }

  .scorpion-service-card__name {
    font-size: 18px;
  }


  /* SCORPION GRAPHIC */

  .scorpion-graphic {
    width: 145%;
    max-width: none;
    height: 330px;

    margin: 18px 0 -6px;

    transform: translateX(-16%);
  }

  .scorpion-graphic__svg {
    width: 100%;
    height: 100%;
  }
}


/* ==================================================
   RESPONSIVE — SMALL MOBILE
================================================== */

@media (max-width: 420px) {
  .scorpion-feature {
    padding-right: 16px;
    padding-left: 16px;
  }

  .scorpion-feature__visual {
    min-height: 730px;
  }

  .scorpion-feature__visual-content {
    min-height: 730px;
    padding-right: 15px;
    padding-left: 15px;
  }

  .scorpion-service-card {
    min-height: 86px;
  }

  .scorpion-service-card__name {
    font-size: 17px;
  }

  .scorpion-graphic {
    width: 160%;
    height: 310px;

    margin-top: 14px;

    transform: translateX(-21%);
  }
}
/* ==================================================
   PLACE SERVICE BOXES BELOW THE SCORPION
================================================== */

.scorpion-feature__visual-content {
  display: flex;
  flex-direction: column;
}

.scorpion-feature__visual-title {
  order: 1;
}

.scorpion-graphic {
  order: 2;

  margin: 24px auto;
}

.scorpion-services {
  order: 3;
}

/* Mobile spacing */
@media (max-width: 767px) {
  .scorpion-graphic {
    margin: 18px 0 20px;
  }
}

/* Small-mobile spacing */
@media (max-width: 420px) {
  .scorpion-graphic {
    margin: 14px 0 18px;
  }
}

/* ==================================================
   SCORPION MOBILE GRADIENT + BOTTOM SPACING FIX
   Keep this at the very bottom of the CSS
================================================== */

/* Preserve the original laptop and tablet appearance */
@media (min-width: 768px) {
  .scorpion-feature__gradient {
    z-index: -3;
  }

  .scorpion-feature__dots {
    z-index: -1;
  }
}

/* Mobile-only adjustments */
@media (max-width: 767px) {
  .scorpion-feature__gradient {
    z-index: 0;

    background:
      linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.99) 0%,
        rgba(255, 255, 255, 0.94) 50%,
        rgba(255, 255, 255, 0.9) 100%
      );
  }

  .scorpion-feature__dots {
    z-index: 1;
  }

  /*
   * Smaller, softer blobs prevent the strong
   * teal-and-orange split seen previously.
   */

  .scorpion-feature__blob {
    filter: blur(68px);
  }

  .scorpion-feature__blob--orange {
    top: -65px;
    right: -115px;
    bottom: auto;
    left: auto;

    width: 300px;

    opacity: 0.42;
  }

  .scorpion-feature__blob--aqua {
    top: 44%;
    right: -90px;
    bottom: auto;
    left: auto;

    width: 280px;

    opacity: 0.2;
  }

  .scorpion-feature__blob--teal {
    top: auto;
    right: auto;
    bottom: -75px;
    left: -115px;

    width: 320px;

    opacity: 0.46;
  }

  /*
   * Keep the corrected space beneath the
   * Red & Purple Teaming card.
   */

  .scorpion-feature__visual-content {
    padding-bottom: 32px;
  }
}

/* ==================================================
   REDUCED MOTION
   Keep this at the very bottom of the CSS
================================================== */

@media (prefers-reduced-motion: reduce) {
  .scorpion-feature__blob,
  .scorpion-svg__tail-joint {
    animation: none;
  }

  .scorpion-feature__button,
  .scorpion-feature__button-arrow,
  .scorpion-service-card {
    transition: none;
  }
}