/* A lightweight, two-sided hinge. The default pose is open without JavaScript. */
.duo-stage { --fold-angle: 0deg; --device-shift: 0%; --device-yaw: -6deg; position: relative; perspective: 1600px; isolation: isolate; }
.duo-device { position: relative; width: 100%; aspect-ratio: 1.43; transform-style: preserve-3d; transform: translateX(var(--device-shift)) rotateX(7deg) rotateY(var(--device-yaw)) rotateZ(-2deg); }
.duo-panel { position: absolute; top: 0; width: 50%; height: 100%; transform-style: preserve-3d; }
.duo-panel-left { left: 0; transform-origin: right center; transform: rotateY(var(--fold-angle)); z-index: 2; }
.duo-panel-right { right: 0; }
.duo-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #080a10; border: 2px solid #999ba8; box-shadow: inset 0 0 0 3px #24242e, inset 0 0 0 5px #06070b, 0 3px 0 1px #4e4b5d; overflow: hidden; }
.duo-panel-left .duo-front { border-radius: 10% 0 0 10% / 7% 0 0 7%; border-right: 0; }
.duo-panel-right .duo-front { border-radius: 0 10% 10% 0 / 0 7% 7% 0; border-left: 0; opacity: var(--inside-opacity, 1); }
.duo-screen { position: absolute; inset: 9px 0 9px 9px; overflow: hidden; border-radius: 8% 0 0 8% / 6% 0 0 6%; background: #0b1221; }
.duo-panel-right .duo-screen { inset: 9px 9px 9px 0; border-radius: 0 8% 8% 0 / 0 6% 6% 0; }
.duo-screen img { position: absolute; max-width: none; width: 333.2%; height: 183.5%; left: -117.4%; top: -44.1%; }
.duo-panel-right .duo-screen img { left: -217.4%; }
.duo-front::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, #ffffff0d, transparent 50%); }
.duo-panel-left .duo-front::after { background: linear-gradient(90deg, transparent 87%, #0005 100%); }
.duo-panel-right .duo-front::after { background: linear-gradient(90deg, #0003, transparent 9%, #ffffff06); }
.duo-back { transform: rotateY(180deg) translateZ(1px); border-radius: 10% / 7%; padding: 8%; background: linear-gradient(150deg, #131c30, #060b15); color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.duo-back-camera { align-self: flex-end; width: 13%; aspect-ratio: 1; border: 5px solid #02030a; box-shadow: 0 0 0 1px #414759; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #547bb7, #101c36 34%, #000 65%); }
.duo-back .duo-rec { display: flex; align-items: center; gap: 7px; font-size: clamp(9px, 1.3vw, 14px); letter-spacing: .03em; }
.duo-wordmark { font-size: clamp(8px, 1vw, 12px); letter-spacing: .15em; color: #c5a5ff; }
.duo-rec::before { content: ""; width: 7px; height: 7px; background: #f85269; border-radius: 50%; }
.duo-back p { font-size: clamp(11px, 1.8vw, 21px); line-height: 1.4; color: #acb6ce; margin: 0; }
.duo-back strong { display: block; color: #fff; font-size: clamp(19px, 3.2vw, 38px); line-height: 1.12; margin: 16px 0; letter-spacing: -.04em; }
.duo-back-progress { height: 5px; background: #2c344c; border-radius: 5px; margin-top: 12px; }
.duo-back-progress::before { content: ""; display: block; height: 100%; width: 30%; border-radius: inherit; background: #bba0ff; }
.duo-stage::after { content: ""; position: absolute; z-index: -1; left: 5%; right: 0; bottom: -8%; height: 18%; background: #0009; filter: blur(28px); border-radius: 50%; }
@media (max-width: 600px) {
  .duo-face { border-width: 1px; }
  .duo-screen { inset: 5px 0 5px 5px; }
  .duo-panel-right .duo-screen { inset: 5px 5px 5px 0; }
  .duo-back strong { margin: 8px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .duo-device { transform: none; }
}
