.contact-illustration {
  min-height: 410px; display: grid; place-items: center; overflow: visible;
  padding: 0; background: transparent; perspective: 1100px;
}
.contact-illustration-scene {
  --pointer-x: 0deg; --pointer-y: 0deg;
  position: relative; width: min(100%, 460px); aspect-ratio: 1.1; isolation: isolate;
  transform-style: preserve-3d; transform: rotateX(var(--pointer-y)) rotateY(var(--pointer-x));
  transition: transform 450ms cubic-bezier(.2,.75,.25,1);
}
.contact-illustration-aura {
  position: absolute; inset: 12% 9% 10%; z-index: -2; border-radius: 50%;
  background: radial-gradient(ellipse,rgba(83,151,255,.14),rgba(83,151,255,.04) 49%,transparent 72%); filter: blur(8px);
}
.contact-thread {
  position: absolute; z-index: -1; height: 15%; border-top: 2px solid rgba(37,99,235,.38);
  border-radius: 50%; filter: drop-shadow(0 0 4px rgba(69,156,255,.48));
}
.contact-thread-one { top: 39%; left: 18%; width: 66%; transform: rotate(-13deg); }
.contact-thread-two { top: 43%; left: 24%; width: 51%; transform: rotate(11deg); opacity: .68; }
.contact-bubble {
  position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid rgba(106,166,255,.65); border-radius: 18px;
  background: linear-gradient(145deg,#fff 5%,#eff6ff 58%,#dceaff);
  box-shadow: inset 0 2px 3px rgba(255,255,255,.95),0 10px 22px rgba(15,41,87,.15),0 3px 0 #b6d1ff;
  animation: contact-float 5.2s ease-in-out infinite;
}
.contact-bubble::after {
  content: ""; position: absolute; bottom: -8px; left: 24px; width: 16px; height: 16px;
  background: #eaf3ff; border-right: 1px solid #a8c9ff; border-bottom: 1px solid #a8c9ff; transform: rotate(45deg);
}
.contact-bubble-main { top: 12%; right: 12%; width: 43%; height: 22%; animation-delay: -.7s; }
.contact-bubble-small { height: 13%; width: 27%; border-radius: 15px; }
.contact-bubble-left { top: 30%; left: 5%; animation-delay: -2.1s; }
.contact-bubble-right { top: 36%; right: 1%; animation-delay: -3.4s; }
.contact-bubble-small::after { left: auto; right: 18px; width: 12px; height: 12px; bottom: -6px; }
.bubble-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(145deg,#52c5ff,#2563eb); box-shadow: 0 0 8px rgba(37,99,235,.35); }
.bubble-line { height: 5px; width: 25%; border-radius: 10px; background: linear-gradient(90deg,#6ea5ff,#b5d2ff); }
.bubble-line-long { width: 36%; }
.bubble-line-short { width: 17%; opacity: .7; }
.contact-bubble-small .bubble-line { width: 42%; height: 4px; }
.contact-envelope-shadow {
  position: absolute; left: 19%; right: 15%; bottom: 10%; height: 12%; border-radius: 50%;
  background: rgba(12,31,68,.2); filter: blur(15px); transform: rotate(-5deg);
}
.contact-envelope {
  position: absolute; left: 16%; bottom: 17%; width: 70%; height: 41%; border-radius: 22px 22px 25px 25px;
  transform: rotateX(12deg) rotateZ(-4deg); transform-style: preserve-3d;
  filter: drop-shadow(0 18px 13px rgba(18,48,99,.2)); animation: envelope-hover 5.8s ease-in-out infinite;
}
.envelope-back {
  position: absolute; inset: 0; overflow: hidden; border-radius: inherit;
  background: linear-gradient(150deg,#244d9b,#0b1f44 68%,#081735);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35),inset 0 -8px 15px rgba(3,12,34,.35),0 5px 0 #081735;
}
.envelope-letter {
  position: absolute; z-index: 1; left: 17%; top: -37%; width: 66%; height: 93%; padding: 13% 12% 0;
  box-sizing: border-box; border-radius: 13px 13px 7px 7px; background: linear-gradient(145deg,#fff,#eaf2ff);
  box-shadow: 0 7px 13px rgba(7,28,66,.2),inset 0 1px 0 white; transform: translateZ(5px) rotate(2deg);
}
.envelope-letter span { display: block; height: 5px; margin: 0 0 9px; border-radius: 5px; background: linear-gradient(90deg,#88b8ff,#d2e5ff); }
.envelope-letter span:nth-child(2) { width: 85%; }
.envelope-letter span:nth-child(3) { width: 68%; }
.envelope-letter span:nth-child(4) { width: 48%; }
.envelope-side { position: absolute; z-index: 2; inset: 0; border-radius: inherit; }
.envelope-side-left { clip-path: polygon(0 0,52% 56%,0 100%); background: linear-gradient(130deg,#3777e8,#1d4fa8); }
.envelope-side-right { clip-path: polygon(100% 0,48% 56%,100% 100%); background: linear-gradient(230deg,#2865d2,#123a7d); }
.envelope-front {
  position: absolute; z-index: 3; inset: 0; border-radius: inherit;
  clip-path: polygon(0 0,50% 63%,100% 0,100% 100%,0 100%);
  background: linear-gradient(150deg,#3477ed 5%,#16459b 60%,#0b1f44); box-shadow: inset 0 2px 0 rgba(255,255,255,.34);
}
.envelope-highlight { position: absolute; z-index: 4; inset: 1px; border: 1px solid rgba(180,211,255,.38); border-bottom: 0; border-radius: 21px 21px 0 0; pointer-events: none; }
@keyframes contact-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes envelope-hover { 0%,100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@media (prefers-reduced-motion: reduce) { .contact-bubble,.contact-envelope { animation: none; } .contact-illustration-scene { transition: none; } }
@media (max-width: 900px) { .contact-illustration { min-height: 330px; } .contact-illustration-scene { width: min(100%,390px); } }
@media (max-width: 600px) { .contact-illustration { min-height: 290px; } .contact-illustration-scene { width: min(100%,330px); } }
.contact-direct-contact .contact-entity { flex-basis: 100%; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; }
