/* Generated 3D-style artwork replaces the old interactive device viewport.
   Keep the complete scene visible instead of cropping the developer on mobile. */
.hero-developer { align-self: center; padding-bottom: 30px; flex-direction: column; gap: 14px; }
.hero-developer .hero-3d-stage {
  display: block;
  min-height: 0;
  border-color: #e6b7794d;
  background: #281c2b;
  box-shadow: 0 24px 64px -24px #120a22b3, 0 0 42px -22px #efb45c73;
}
.hero-developer .hero-image-frame {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  opacity: 1;
  filter: none;
}
.hero-developer .hero-image-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1400 / 933;
  object-fit: contain;
}
.hero-developer .visual-caption { bottom: 3px; background: #281a2eed; border-color: #e6b7794d; }
.developer-motion { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-developer .developer-effects { position: absolute; inset: 0; display: block; width: 100%; height: 100%; stroke-width: 1; }
/* Both hand cutouts share the artwork's coordinate system: no viewport offsets. */
.typing-hand, .typing-finger {
  position: absolute; inset: 0;
  background: url('assets/hero-developer-black-suit.jpg') center / 100% 100% no-repeat;
  transform-origin: 44% 54%;
  animation: developer-type 1.65s cubic-bezier(.45, 0, .55, 1) infinite alternate;
}
.typing-hand { backface-visibility: hidden; }
.typing-hand-left { clip-path: polygon(40.7% 50%,41.9% 48.5%,43.3% 48.2%,44.8% 49.1%,45.6% 50.8%,45% 52%,42.7% 52.4%); animation-delay: -.35s; }
.typing-hand-right { clip-path: polygon(42.4% 55%,44.6% 53%,45.4% 51.3%,46.5% 50.4%,48% 50.6%,49.7% 52.1%,49.4% 54.1%,47.7% 55.6%,45.9% 57.1%); animation-duration: 1.95s; animation-delay: -1.2s; transform-origin: 44% 56%; }
.typing-finger { animation: developer-finger .39s cubic-bezier(.45, 0, .55, 1) infinite alternate; transform-origin: var(--joint); clip-path: var(--finger-shape); }
.finger-left-index { --joint: 44% 50.7%; --finger-shape: polygon(43.6% 49.2%,44.3% 49.1%,45.3% 50%,45.7% 50.9%,45.2% 51.3%,44.6% 50.5%,43.9% 50.4%); }
.finger-left-middle { --joint: 43.2% 50.3%; --finger-shape: polygon(42.9% 48.7%,43.6% 48.7%,44.7% 49.5%,45% 50.4%,44.5% 50.8%,43.8% 49.9%,43% 49.8%); animation-duration: .46s; animation-delay: -.24s; }
.finger-right-index { --joint: 47% 53.4%; --finger-shape: polygon(47.1% 51.5%,48.3% 51%,49.2% 51.7%,49.6% 52.4%,49.2% 52.8%,48.4% 52.1%,47.3% 52.6%); animation-duration: .37s; animation-delay: -.13s; }
.finger-right-middle { --joint: 46.4% 53.2%; --finger-shape: polygon(46.3% 51.3%,47.3% 50.7%,48.1% 51%,48.7% 51.8%,48.1% 52.2%,47.3% 51.7%,46.6% 52.4%); animation-duration: .43s; animation-delay: -.38s; }
.finger-right-ring { --joint: 46% 53.4%; --finger-shape: polygon(45.8% 51.6%,46.2% 51%,46.8% 51%,47.3% 51.6%,46.8% 52.3%,46.4% 52.9%); animation-duration: .55s; animation-delay: -.47s; }
.form-field-hint { display: block; margin-top: 8px; font-size: 12px; line-height: 1.7; font-weight: 400; color: var(--muted); overflow-wrap: anywhere; }
#contact-form label > span { font-size: 12px; }
#contact-form input, #contact-form select, #contact-form textarea { min-width: 0; }
.fan-rotor { transform-origin: 0 0; animation: gaming-fan-spin 1.6s linear infinite; opacity: .5; }
.fan-rotor-offset { animation-duration: 1.85s; animation-delay: -.7s; }
.rgb-ring { stroke: #7bdcff; stroke-width: 2.5; opacity: .65; animation: gaming-rgb 8s ease-in-out infinite; }
.pc-fan:nth-of-type(2n) .rgb-ring { animation-delay: -3s; }
.keyboard-rgb { stroke: #8ceaff; stroke-width: 3; stroke-linecap: round; opacity: .7; animation: gaming-rgb 8s ease-in-out infinite; }
.code-writing { stroke: #83d8ff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 100; animation: developer-code 6s linear infinite; opacity: .75; }
.code-writing-second { animation-delay: -3s; stroke: #dbb0fc; }
.code-cursor { stroke: #e0faff; stroke-width: 2; animation: developer-cursor 1.2s steps(2, jump-none) infinite; }
/* Alternate direction has matching endpoint velocity: no abrupt loop reset. */
@keyframes developer-type { from { transform: translate3d(0, .025%, 0) rotate(-.4deg); } to { transform: translate3d(0, -.1%, 0) rotate(.9deg); } }
@keyframes developer-finger { from { transform: translate3d(0, 0, 0) rotate(-.4deg) scaleY(1); } to { transform: translate3d(0, .07%, 0) rotate(3.2deg) scaleY(.985); } }
@keyframes gaming-fan-spin { to { transform: rotate(360deg); } }
@keyframes gaming-rgb { 0%,100% { stroke: #7bdcff; } 33% { stroke: #b994ff; } 66% { stroke: #f5a1db; } }
@keyframes developer-code { 0%,8% { stroke-dashoffset: 100; } 65%,90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 100; } }
@keyframes developer-cursor { from { opacity: .85; } to { opacity: .15; } }
.hero-developer.scene-paused .developer-motion * { animation-play-state: paused; }
@media (max-width: 640px) {
  .hero-developer { padding-bottom: 20px; }
  .hero-developer .hero-3d-stage { border-radius: 20px; }
  .hero-developer .visual-caption { max-width: calc(100% - 20px); font-size: 10px; }
  .rgb-ring { stroke-width: 3; }
  .contact-links { align-self: stretch; width: 100%; }
  #contact-form input, #contact-form select, #contact-form textarea { font-size: 16px; min-height: 48px; }
  .form-card { padding: clamp(18px, 5vw, 24px); }
  #contact-form .submit-button { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .developer-motion * { animation: none !important; }
  .typing-hand, .typing-finger, .code-writing, .code-cursor { display: none; }
}
