/* Photographic objects are separate layers, with their actions driven by scroll. */
[data-scene] > .image-shell { clip-path: none !important; }
.object-scene { position: absolute; inset: 0; overflow: hidden; opacity: 0; pointer-events: none; }
.scene-loaded .object-scene { opacity: 1; }
.scene-loaded .scene-fallback { visibility: hidden; }
.scene-canvas { position: absolute; perspective: 1400px; container-type: inline-size; isolation: isolate; }
.object-scene .scene-plate {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  top: 0 !important;
  transform: none !important;
  filter: none;
  object-fit: fill;
  will-change: auto;
}
.scene-scroll { position: relative; min-height: calc(var(--scene-frame-height, 500px) + 100vh); }
.scene-scroll > .service-image { position: sticky; top: clamp(100px, 17vh, 150px); }
.scene-scroll .image-label { bottom: 53px; }
.scene-guide {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 38px;
  padding: 9px 20px;
  z-index: 5;
  background: #101114e8;
  font-size: 9px;
  color: #b5b9bc;
}
.scene-step { color: var(--accent); text-transform: uppercase; font-size: 8px; letter-spacing: .08em; }
.scene-phase { margin-left: auto; }
.scene-meter { width: 65px; height: 2px; background: #ffffff25; overflow: hidden; }
.scene-meter i { display: block; height: 100%; background: var(--accent); transform: scaleX(var(--scene-progress, 0)); transform-origin: left; }

.laptop-lid,.screen-light,.laptop-closed-cover {
  position: absolute;
  inset: 0;
  background: url('assets/web-cover.png') center/100% 100% no-repeat;
  clip-path: polygon(52.333% 29.335%,85.183% 28.629%,81.021% 72.681%,48.235% 66.532%);
  transform-origin: 0 0;
  transform: var(--lid-transform,none);
  backface-visibility: visible;
  opacity: var(--lid-visible,0);
  will-change: auto;
}
.screen-light { background: #06090a; opacity: calc((1 - var(--screen-power, 0)) * .87 * var(--lid-visible,0)); clip-path: polygon(53.3% 31.1%,84.25% 30.7%,80.5% 70.5%,49.3% 65.1%); }
.laptop-closed-cover {
  background: linear-gradient(155deg,#22292d 33%,#424b50 66%,#252d32 85%);
  opacity: var(--closed-opacity, 1);
}

.chat-screen {
  position: absolute;
  left: 38.2%;
  top: 21%;
  width: 19%;
  height: 49%;
  transform: skewY(4deg) skewX(7deg);
  font-family: Inter,Arial,sans-serif;
  font-size: 1.45cqw;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  gap: 3.1cqw;
}
.chat-message { width: 92%; padding: 1.25cqw 1.35cqw; border-radius: 1.5cqw; box-shadow: 0 8px 20px #0003; }
.chat-message.outgoing { align-self: end; background: linear-gradient(135deg,#21e4d1,#04b9ac); color: #082729; border-bottom-right-radius: .2cqw; }
.chat-message.incoming { align-self: start; background: linear-gradient(135deg,#42494b,#2d3335); color: #f1f3f1; border: 1px solid #ffffff1a; border-bottom-left-radius: .2cqw; }
.chat-message small { display: block; margin-top: .6cqw; font-size: .85cqw; opacity: .65; text-align: right; }
.message-1 { --bubble: var(--message-1,0); }
.message-2 { --bubble: var(--message-2,0); }
.message-3 { --bubble: var(--message-3,0); }
.message-4 { --bubble: var(--message-4,0); }
.chat-message { opacity: var(--bubble); transform: translate3d(calc((1 - var(--bubble)) * 3cqw),calc((1 - var(--bubble)) * 5cqw),0) scale(calc(.76 + var(--bubble) * .24)); transform-origin: right bottom; }
.chat-message.incoming { transform-origin: left bottom; transform: translate3d(calc((1 - var(--bubble)) * -3cqw),calc((1 - var(--bubble)) * 5cqw),0) scale(calc(.76 + var(--bubble) * .24)); }
.chat-typing { position: absolute; bottom: -1%; left: 0; display: flex; gap: .55cqw; opacity: var(--typing,0); padding: 1.2cqw; border-radius: 1cqw; background: #363e40; }
.chat-typing i { width: .65cqw; height: .65cqw; background: var(--accent); border-radius: 50%; transform: translateY(var(--typing-dot-1,0px)); }
.chat-typing i:nth-child(2) { transform: translateY(var(--typing-dot-2,0px)); }
.chat-typing i:nth-child(3) { transform: translateY(var(--typing-dot-3,0px)); }
.chat-send-arrow { position: absolute; left: 56.5%; top: 75.3%; width: 2.5cqw; height: 2.5cqw; display: grid; place-items: center; border-radius: 50%; color: var(--deep); background: var(--accent); font-size: 1.6cqw; opacity: calc(.4 + var(--send,0) * .6); transform: scale(calc(1 + var(--send,0) * .3)); }
.chat-float { position: absolute; left: 64%; top: 28%; padding: 2cqw; width: 22%; border: 1px solid #12dbc355; border-radius: 1.5cqw; color: var(--ink); background: #1b2b2de6; box-shadow: 0 20px 45px #0005; font-size: 1.8cqw; line-height: 1.5; opacity: var(--chat-float,0); transform: translateY(calc((1 - var(--chat-float,0)) * 8cqw)) rotate(calc((1 - var(--chat-float,0)) * 8deg)); }
.chat-float > span { display: block; color: var(--accent); font-size: 3.4cqw; margin-bottom: 1cqw; }

.workflow-hand {
  position: absolute;
  inset: 0;
  background: url('assets/hand-touch.png') center/100% 100%;
  clip-path: none;
  transform-origin: 53.72% 74.5%;
  transform: translate(var(--hand-x,-4.17%),var(--hand-y,-8.98%)) rotate(var(--hand-turn,-2deg));
  opacity: var(--hand-opacity,1);
  filter: brightness(.88) saturate(.9) drop-shadow(0 var(--hand-shadow,16px) 7px #0005);
  z-index: 3;
  will-change: auto;
}
.scene-active .laptop-lid,.scene-active .screen-light,.scene-active .laptop-closed-cover,
.scene-active .workflow-hand,.scene-active .tile-art,.scene-active .chat-message { will-change: transform, opacity; }
.paused [data-scene] *, .paused [data-scene] *::before, .paused [data-scene] *::after { will-change: auto; }
.touch-ring { position: absolute; left: 45.3%; top: 67.5%; width: 8.6%; height: 5.4%; border: 2px solid var(--accent); border-radius: 50%; box-shadow: 0 0 22px #12dbc3bb,inset 0 0 18px #12dbc366; transform: scale(var(--tap-scale,1)); opacity: var(--tap-opacity,0); }
.touch-ring-outer { transform: scale(calc(var(--tap-scale,1) * 1.5)); border-width: 1px; }
.workflow-beam { position: absolute; left: 49.1%; top: 36%; height: 34.1%; width: .3%; background: linear-gradient(0deg,#c0fff6,#12dbc3cc,transparent); box-shadow: 0 0 20px 6px #12dbc335; transform: scaleY(var(--beam,0)); transform-origin: bottom; opacity: var(--beam,0); }
.tile-art { position: absolute; inset: 0; background: url('assets/workflow-cover.png') center/100% 100%; --tile: 0; opacity: var(--tile); transform: translate(calc((1 - var(--tile)) * var(--tile-x)),calc((1 - var(--tile)) * var(--tile-y))) scale(calc(.25 + var(--tile) * .75)) rotate(calc((1 - var(--tile)) * -12deg)); z-index: 4; }
.tile-web { --tile: var(--tile-web,0); --tile-x: 7%; --tile-y: 37.9%; transform-origin: 42.6% 32.3%; clip-path: polygon(36.3% 26.1%,48.8% 26.1%,48.8% 37.4%,47.8% 39.1%,37% 41%,36.3% 39.5%); }
.tile-calling { --tile: var(--tile-calling,0); --tile-x: -14.2%; --tile-y: 34.4%; transform-origin: 63.8% 35.8%; clip-path: polygon(58.8% 28%,67.8% 28.8%,69.4% 30.2%,69.4% 42.3%,68.3% 44.2%,58.7% 43%,58.6% 41%); }
.tile-chat { --tile: var(--tile-chat,0); --tile-x: 11.1%; --tile-y: 17.2%; transform-origin: 38.5% 52.9%; clip-path: polygon(33.3% 46.5%,34.5% 45.7%,41.8% 44.5%,43.1% 46%,43% 59.8%,41.9% 61.2%,34.2% 62%,33.2% 60.1%); }
.tile-flow { --tile: var(--tile-flow,0); --tile-x: -13.4%; --tile-y: 12.4%; transform-origin: 63% 57.8%; clip-path: polygon(57.8% 49.8%,59% 49%,66.6% 50%,68% 51.4%,67.9% 64.6%,66.8% 66.2%,58.4% 64.1%,57.6% 62.3%); }
.workflow-options { position: absolute; z-index: 5; container-type: inline-size; pointer-events: none; }
.workflow-options a { position: absolute; text-align: center; font-size: .96cqw; font-weight: 750; padding: .4cqw .3cqw; background: #103732e8; color: #e2fffa; border: 1px solid #ffffff28; border-radius: .4cqw; pointer-events: auto; opacity: var(--option,0); transform: translateY(calc((1 - var(--option,0)) * 5cqw)); }
.workflow-options[inert] a { pointer-events: none; }
.workflow-options a:hover { background: var(--deep); color: var(--accent); }
.workflow-options a:focus-visible { opacity: 1; transform: none; }
.option-web { --option: var(--tile-web,0); left: 37%; top: 38%; width: 11%; }
.option-calling { --option: var(--tile-calling,0); left: 59%; top: 41%; width: 10%; }
.option-chat { --option: var(--tile-chat,0); left: 33.8%; top: 59%; width: 9.1%; }
.option-flow { --option: var(--tile-flow,0); left: 58.3%; top: 63%; width: 9.2%; }
.workflow-connections { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.workflow-connections path { fill: none; stroke: #bdfff4; stroke-width: 2; opacity: calc(var(--beam,0) * .8); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--beam,0)); filter: drop-shadow(0 0 5px #12dbc3); }

@media (max-width: 600px) {
  .scene-scroll > .service-image { top: 19vh; }
  .scene-scroll > .service-image[data-scene] { aspect-ratio: 4/5; }
  .scene-guide { padding: 8px 12px; gap: 9px; font-size: 8px; }
  .scene-step { display: none; }
  .scene-phase { margin-left: 0; font-size: 10px; color: var(--ink); }
  .scene-meter { margin-left: auto; width: 48px; }
  .workflow-options a { font-size: 1.5cqw; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-scroll { min-height: 0; }
  .scene-scroll > .service-image { position: relative; top: auto; }
  .laptop-lid,.screen-light,.workflow-hand { will-change: auto; }
}
