/* Complete the existing server geometry for a continuous, seamless turn. */
.core-assembly { animation: core-spin 8s linear infinite; }
.server .back, .core-base .back {
  width: 240px; height: 48px; top: 0; transform-origin: top;
  transform: translateZ(0) rotateX(90deg);
  background: linear-gradient(#16385b, #09172a);
  border: 1px solid #3876b367; border-radius: 0 0 7px 7px;
}
.server .left, .core-base .left {
  width: 48px; height: 240px; left: 0; transform-origin: left;
  transform: translateZ(0) rotateY(-90deg);
  background: linear-gradient(90deg, #193e66, #08192e);
  border: 1px solid #3876b34d;
}
.core-base .back { width: 280px; height: 14px; transform: translateZ(0) rotateX(90deg); }
.core-base .left { width: 14px; height: 280px; transform: translateZ(0) rotateY(-90deg); }
@keyframes core-spin {
  from { transform: rotateX(57deg) rotateZ(-38deg); }
  to { transform: rotateX(57deg) rotateZ(322deg); }
}

.home-3d { padding-top: 76px; padding-bottom: 0; }
.home-3d-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 30px; }
.home-3d-heading h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -.045em; }
.home-3d-heading p { max-width: 345px; font-size: 16px; }
.home-3d-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.home-3d-card {
  min-width: 0; border: 1px solid var(--glass-edge); border-radius: 24px;
  background: var(--glass-surface); box-shadow: var(--glass-shadow);
}
.home-3d-card-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px 0; gap: 20px; }
.home-3d-card-head span { color: #b9d8ff; font-size: 11px; letter-spacing: .14em; font-weight: 600; }
.home-3d-card-head small { font-size: 11px; color: #829cbd; font-variant-numeric: tabular-nums; }
.home-3d-scene { position: relative; height: 290px; perspective: 1000px; overflow: hidden; border-radius: 20px; }
.home-3d-scene::before {
  content: ''; position: absolute; inset: 10% 5% 0; pointer-events: none;
  background: radial-gradient(ellipse, #3278c72e, transparent 68%);
}
.home-3d-copy { padding: 0 28px 28px; }
.home-3d-copy h3 { font-size: 26px; letter-spacing: -.035em; }
.home-3d-copy p { font-size: 14px; margin: 12px 0 18px; max-width: 390px; line-height: 1.75; }
.home-3d-copy a { display: inline-flex; align-items: center; min-height: 44px; color: #b4d3ff; font-size: 13px; }
.home-3d-copy a:hover { color: white; }
.home-3d-copy a:focus-visible { outline: 2px solid #8cbaff; outline-offset: 5px; border-radius: 3px; }
.lab-stage {
  position: absolute; width: 280px; height: 230px; left: 50%; top: 53%;
  transform-style: preserve-3d; transform: translate(-50%, -32%) rotateX(56deg) rotateZ(-32deg);
  animation: lab-sway 7s ease-in-out infinite;
}
.lab-platform {
  position: absolute; inset: -16px -25px; border: 1px solid #7cbdff69; border-radius: 18px;
  background: linear-gradient(135deg, #6aa7f42b, #17304f4d 60%);
  box-shadow: inset 0 1px 0 #b4dcff4d, 10px 14px 0 #030c1b77, 0 0 38px #348fff14;
}
.lab-platform::before {
  content: ''; position: absolute; inset: 25px; border: 1px solid #7cbdff29; border-radius: 10px;
  background: linear-gradient(#75b9ff12 1px, transparent 1px), linear-gradient(90deg, #75b9ff12 1px, transparent 1px);
  background-size: 24px 24px;
}
.lab-tower { position: absolute; width: 72px; height: 88px; transform-style: preserve-3d; }
.lab-tower-one { left: 13px; top: 14px; --tower-height: 100px; }
.lab-tower-two { left: 110px; top: 14px; --tower-height: 124px; }
.lab-tower-three { left: 110px; top: 130px; --tower-height: 80px; }
.lab-plane { position: absolute; backface-visibility: hidden; border: 1px solid #8cc9ff80; }
.lab-plane-top { width: 72px; height: 88px; transform: translateZ(var(--tower-height)); background: linear-gradient(140deg, #84bbff80, #163d7270); border-radius: 7px; }
.lab-plane-front { width: 72px; height: var(--tower-height); top: 88px; transform-origin: top; transform: translateZ(var(--tower-height)) rotateX(-90deg); background: linear-gradient(135deg, #4d87ce69, #09213b99); }
.lab-plane-side { width: var(--tower-height); height: 88px; left: 72px; transform-origin: left; transform: translateZ(var(--tower-height)) rotateY(90deg); background: linear-gradient(90deg, #316a9d52, #081c34a8); }
.lab-plane-front::after { content: ''; position: absolute; inset: 17px 12px; background: repeating-linear-gradient(180deg, #8fd8ffb3 0 2px, transparent 2px 13px); opacity: .75; }
.lab-plane-top::after { content: ''; position: absolute; inset: 17px; border: 2px solid #a6d6ff9c; border-radius: 4px; box-shadow: 0 0 16px #77c6ff40; }
.lab-chip { position: absolute; width: 58px; height: 58px; left: 15px; top: 144px; transform: translateZ(18px); border: 4px solid #77b9f2b3; outline: 1px solid #85c4ff55; outline-offset: 6px; background: #194b7b94; box-shadow: 0 0 25px #59c4ff33; }
.lab-chip::after { content: ''; position: absolute; inset: 12px; border: 1px solid #b4e2ff; background: #78caff8c; }
.scene-label { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; color: #a2bddc; font-size: 10px; letter-spacing: .12em; white-space: nowrap; }
.scene-label i { width: 5px; height: 5px; border-radius: 50%; background: #8acaff; box-shadow: 0 0 10px #6bbaff; }
.chain-paths { position: absolute; width: 100%; height: 100%; inset: 0; }
.chain-paths .chain-track { fill: none; stroke: #84bfff4d; stroke-width: 1; }
.chain-paths .chain-packet { fill: none; stroke: #a2e6ff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 14 410; animation: chain-transfer 4s linear infinite; }
.chain-paths .chain-packet:nth-of-type(3) { animation-delay: -2s; }
.chain-cube { position: absolute; width: 72px; height: 72px; transform-style: preserve-3d; animation: chain-float 5s ease-in-out infinite; }
.chain-cube-one { left: calc(24% - 36px); top: 100px; }
.chain-cube-two { left: calc(50% - 36px); top: 66px; animation-delay: -1.5s; }
.chain-cube-three { left: calc(76% - 36px); top: 130px; animation-delay: -3s; }
.chain-face { position: absolute; width: 72px; height: 72px; backface-visibility: hidden; border: 1px solid #a5d7ff99; border-radius: 5px; }
.chain-face-front { transform: translateZ(36px); background: linear-gradient(135deg, #79b7ff6b, #17476a94); box-shadow: inset 0 0 24px #a1dfff12; }
.chain-face-right { transform: rotateY(90deg) translateZ(36px); background: linear-gradient(145deg, #3682bb69, #06182a99); }
.chain-face-top { transform: rotateX(90deg) translateZ(36px); background: linear-gradient(135deg, #b3dbff80, #31619b69); }
.chain-face-front::after { content: ''; position: absolute; inset: 20px; border: 2px solid #c2edffb3; border-radius: 7px; box-shadow: 0 0 18px #8edbff33; }
.chain-halo { position: absolute; width: 260px; height: 260px; left: 50%; top: 50%; transform: translate(-50%, -50%) rotateX(64deg); border: 1px solid #79b9ff33; border-radius: 50%; box-shadow: 0 0 0 24px #71aaff05, 0 0 0 48px #71aaff04; }
.paused .home-3d * { animation-play-state: paused !important; }
@keyframes lab-sway { 50% { transform: translate(-50%, -32%) rotateX(58deg) rotateZ(-24deg) translateZ(8px); } }
@keyframes chain-float { 0%,100% { transform: rotateX(-24deg) rotateY(-35deg) translateY(0); } 50% { transform: rotateX(-20deg) rotateY(-28deg) translateY(-12px); } }
@keyframes chain-transfer { to { stroke-dashoffset: -424; } }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .home-3d-card { -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(125%); backdrop-filter: blur(var(--glass-blur)) saturate(125%); }
}
@media (max-width: 800px) {
  .home-3d { padding-top: 50px; }
  .home-3d-heading { align-items: start; flex-direction: column; gap: 16px; }
  .home-3d-heading p { font-size: 14px; }
  .home-3d-grid { grid-template-columns: 1fr; gap: 20px; }
  .home-3d-card-head { padding-inline: 24px; }
  .home-3d-copy { padding-inline: 24px; }
  .home-3d-scene { height: 280px; }
}
@media (max-width: 380px) {
  .lab-stage { zoom: .85; }
  .chain-cube { zoom: .85; }
  .home-3d-card-head { padding-inline: 20px; }
  .home-3d-copy { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .core-assembly { animation: none; transform: rotateX(57deg) rotateZ(-38deg); }
  .home-3d * { animation: none !important; }
  .chain-cube { transform: rotateX(-24deg) rotateY(-35deg); }
}
