.identity-system-section {
  overflow: hidden;
}

.identity-system {
  position: relative;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 28px;
  padding: 38px;
  background:
    linear-gradient(90deg, rgba(11, 92, 255, .16), rgba(37, 208, 180, .08), rgba(255, 210, 51, .12)),
    rgba(3, 18, 38, .58);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .25);
  overflow: hidden;
}

.identity-system::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  opacity: .55;
  pointer-events: none;
}

.system-head {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-bottom: 34px;
}

.system-head h2 {
  margin-top: 10px;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.identity-flow {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1fr) 130px;
  gap: 16px;
  align-items: end;
}

.identity-character {
  align-self: end;
  width: min(150px, 100%);
  height: 230px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 24px 26px rgba(0, 0, 0, .34));
  animation: identityCharacterFloat 5.8s ease-in-out infinite;
}

.identity-character--cab {
  justify-self: end;
}

.identity-character--gemini {
  justify-self: start;
  animation-delay: .75s;
}

.identity-node {
  position: relative;
  min-height: 245px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 20px;
  background: rgba(255, 255, 255, .075);
  overflow: hidden;
}

.identity-node::before {
  content: "";
  position: absolute;
  inset: 18px auto auto 18px;
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 70px 0 0 rgba(255, 255, 255, .18), 140px 0 0 rgba(255, 255, 255, .1);
}

.identity-node-cab {
  color: #AFCBFF;
  background: linear-gradient(145deg, rgba(11, 92, 255, .22), rgba(255, 255, 255, .055));
}

.identity-node-gemini {
  color: var(--yellow-soft);
  background: linear-gradient(145deg, rgba(255, 210, 51, .18), rgba(255, 255, 255, .055));
}

.node-kicker {
  display: inline-flex;
  margin-top: 46px;
  color: inherit;
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.identity-node h3 {
  margin: 46px 0 12px;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1.1;
}

.identity-node p {
  max-width: 470px;
  color: var(--muted);
}

.sync-core {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 245px;
  border-radius: 20px;
  background: transparent;
  overflow: visible;
}

.sync-core::before {
  content: "";
  position: absolute;
  inset: 28px 0;
  background:
    linear-gradient(90deg, transparent 48%, rgba(37, 208, 180, .26) 49%, rgba(37, 208, 180, .26) 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(255, 210, 51, .18) 49%, rgba(255, 210, 51, .18) 51%, transparent 52%);
  border-radius: 24px;
  opacity: .45;
}

.sync-beam {
  position: absolute;
  top: 50%;
  width: 48%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--yellow));
  box-shadow: 0 0 22px rgba(37, 208, 180, .5);
  animation: syncBeam 2.4s ease-in-out infinite;
}

.sync-beam-left {
  right: 50%;
}

.sync-beam-right {
  left: 50%;
  animation-delay: .45s;
}

.sync-mark {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 154px;
  height: 154px;
  clip-path: polygon(50% 0, 91% 25%, 91% 75%, 50% 100%, 9% 75%, 9% 25%);
  background: linear-gradient(145deg, rgba(11, 92, 255, .94), rgba(3, 18, 38, .9) 48%, rgba(255, 210, 51, .84));
  box-shadow: 0 24px 58px rgba(0, 0, 0, .3), 0 0 68px rgba(37, 208, 180, .2);
  animation: syncFloat 5s ease-in-out infinite;
}

.sync-mark::after {
  content: "";
  position: absolute;
  inset: 16px;
  clip-path: inherit;
  background: rgba(3, 18, 38, .74);
  border: 1px solid rgba(255, 255, 255, .18);
}

.sync-mark strong {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 950;
  line-height: .95;
  letter-spacing: -.03em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, .38);
}

.sync-mark strong span {
  color: var(--yellow);
  font-size: .92rem;
}

.sync-frame {
  position: absolute;
  inset: 7px;
  z-index: 1;
  clip-path: inherit;
  border: 1px solid rgba(255, 255, 255, .24);
  animation: frameSpin 9s linear infinite;
}

.sync-frame-two {
  inset: 26px;
  border-color: rgba(255, 210, 51, .42);
  animation-direction: reverse;
  animation-duration: 7s;
}

.sync-dot {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 950;
  letter-spacing: .04em;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .26);
}

.sync-dot-cab {
  top: 20px;
  left: 14px;
  color: #fff;
  background: var(--blue-500);
  animation: dotCab 4.2s ease-in-out infinite;
}

.sync-dot-gemini {
  right: 17px;
  bottom: 20px;
  color: var(--blue-950);
  background: var(--yellow);
  animation: dotGemini 4.2s ease-in-out infinite;
}

.identity-signals {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.identity-signals span {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 2px solid rgba(255, 210, 51, .75);
  transform: rotate(45deg);
  animation: signalDrift 5s ease-in-out infinite;
}

.identity-signals span:nth-child(1) {
  left: 8%;
  top: 22%;
}

.identity-signals span:nth-child(2) {
  right: 9%;
  top: 24%;
  border-color: rgba(37, 208, 180, .8);
  animation-delay: .8s;
}

.identity-signals span:nth-child(3) {
  left: 42%;
  bottom: 12%;
  border-color: rgba(11, 92, 255, .9);
  animation-delay: 1.4s;
}

.identity-signals span:nth-child(4) {
  right: 30%;
  bottom: 18%;
  animation-delay: 2s;
}

@keyframes syncBeam {
  50% {
    opacity: .45;
    transform: scaleX(.72);
  }
}

@keyframes syncFloat {
  50% {
    transform: translateY(-8px);
  }
}

@keyframes frameSpin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes dotCab {
  50% {
    transform: translate(14px, 10px);
  }
}

@keyframes dotGemini {
  50% {
    transform: translate(-14px, -10px);
  }
}

@keyframes signalDrift {
  50% {
    opacity: .35;
    transform: translateY(-12px) rotate(45deg);
  }
}

@keyframes identityCharacterFloat {
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 1050px) {
  .identity-system {
    padding: 28px;
  }

  .identity-flow {
    grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr) 110px;
    gap: 12px;
  }

  .identity-character {
    height: 190px;
  }
}

@media (max-width: 760px) {
  .identity-system {
    padding: 22px;
    border-radius: 22px;
  }

  .identity-node {
    min-height: auto;
    padding: 24px;
  }

  .identity-flow {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .identity-character {
    width: min(135px, 92%);
    height: 170px;
  }

  .identity-character--cab {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
  }

  .identity-character--gemini {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .identity-node {
    grid-column: span 2;
  }
}
