/* The track owns scroll space; only the device scene stays in the viewport. */
html, body { overflow-x: clip; }
.hero-device-track { position: relative; height: var(--scene-height, auto); margin-top: 52px; margin-bottom: max(0px, calc(var(--tablet-height, 0px) * .4 - 60px)); }
.hero-device-track .hero-visual { position: sticky; top: var(--pin-top, 150px); width: min(var(--scene-width, min(1240px, calc((100svh - 112px) * 1.5))), 100%); margin: 0 auto; perspective: 1600px; perspective-origin: 50% 40%; }
.hero-device-track .ipad-mini-shell { z-index: 3; transform-origin: 50% 50%; will-change: transform; box-shadow: 0 var(--device-depth, 0px) 0 -1px #59636b, 0 calc(var(--device-depth, 0px) + 2px) 0 -1px #151b20, 0 24px 44px -20px #0009, inset 0 1px 1px #ffffff40; }
.hero-device-track .ipad-mini-shell::after { content: ""; position: absolute; inset: 1px; border-radius: inherit; pointer-events: none; background: linear-gradient(155deg, #ffffff0a, transparent 45%, #65bfd312); opacity: var(--scene-progress, 0); }
.hero-device-track .deck-flyouts { z-index: 4; will-change: transform; }
.device-desk { position: absolute; z-index: 0; top: 50%; left: 50%; width: 148%; height: 44cqw; opacity: 0; border: 1px solid #7398aa12; border-radius: 50%; background: radial-gradient(ellipse at 36% 50%, #58c4d52b, transparent 62%), radial-gradient(ellipse at 68% 45%, #818df322, transparent 62%), linear-gradient(180deg, #22343c24, #15232b30 50%, transparent); box-shadow: 0 0 70px #3f99bc0d, inset 0 1px 0 #b9e9f410; mask-image: radial-gradient(ellipse at 50% 50%, #000 22%, transparent 71%); pointer-events: none; }
.device-desk::after { content: ""; position: absolute; inset: 30% 10% auto; height: 1px; background: linear-gradient(90deg, transparent, #a9e4ed38, transparent); }
.device-contact-shadow { position: absolute; z-index: 2; top: 50%; left: 50%; width: 50%; height: 7cqw; opacity: 0; background: radial-gradient(ellipse, #000b, #0005 34%, transparent 72%); filter: blur(5px); pointer-events: none; }
.desktop-monitor { position: absolute; z-index: 1; top: 50%; left: 50%; width: 100%; opacity: 0; transform: translate(-50%, -50%) scale(.86); transform-origin: center; will-change: transform, opacity; text-align: left; }
.monitor-frame { position: relative; padding: 1.05cqw 1.05cqw 0; border: 1px solid #697078; border-radius: 2cqw; background: linear-gradient(135deg, #6f7980, #20282f 30%, #48545d 80%, #939b9e); box-shadow: 0 30px 65px -30px #000c, inset 0 1px 1px #ffffff80; }
.desktop-screen { --screen-brightness: .999; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: .6cqw solid #080b0d; border-radius: .8cqw; background: radial-gradient(ellipse at 80% 100%, #387576 0, transparent 55%), radial-gradient(ellipse at 15% 90%, #3f5b8f, transparent 65%), linear-gradient(125deg, #101d36, #204550 70%, #508c8b); color: #eff8fc; filter: brightness(var(--screen-brightness)); font-size: 1.25cqw; line-height: 1.5; transition: filter .12s; }
.monitor-chin { display: block; padding: .7cqw 0; color: #adb6bd; font-size: .85cqw; letter-spacing: .1em; text-align: center; }
.monitor-stand { position: relative; width: 13%; height: 7.5cqw; margin: 0 auto; background: linear-gradient(90deg, #404a53, #99a4aa 40%, #626e77 70%, #38434d); clip-path: polygon(18% 0, 82% 0, 95% 100%, 5% 100%); box-shadow: inset 0 18px 20px #0008; }
.monitor-foot { width: 31%; height: 1.4cqw; margin: -.4cqw auto 0; border-radius: 50% 50% 20% 20%; background: linear-gradient(#b7c0c4, #697680 50%, #37434c); box-shadow: 0 12px 20px #0007; }
.hero-device-track.scene-reduced { height: auto; margin-top: 180px; }
.scene-reduced .hero-visual { position: relative; top: auto; margin-bottom: 180px; }
.scene-reduced .deck-flyouts { display: none; }
@media (max-width: 820px) { .hero-device-track { margin-top: 44px; } }
@media (max-width: 640px) {
  .hero-device-track { margin-top: 24px; }
  .hero-device-track .hero-visual { width: min(var(--scene-width, 640px), 100%); perspective: 950px; }
  .desktop-monitor { width: 100%; }
  .hero-device-track.scene-reduced { margin-top: 130px; }
}
