/* The flight layers never participate in page layout. */
.jiro-nav-anchor { width: 38px; height: 38px; flex: none; }
.jiro-flight { opacity: 0; position: fixed; left: 0; top: 0; width: 252px; height: 252px; z-index: 1001; pointer-events: none; transform-origin: 50% 50%; will-change: transform; }
.jiro-swarm { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 999; pointer-events: none; }
.jiro-copy { position: absolute; left: 0; top: 0; width: 84px; height: 84px; opacity: 0; transform-origin: 50% 50%; will-change: transform; }
.jiro-body, .jiro-puppet { position: relative; width: 100%; height: 100%; }
.jiro-face { display: block; width: 100%; height: 100%; }
.alt-face { position: absolute; inset: 0; opacity: 0; }
.jiro-local { position: absolute; z-index: 1; left: 238px; top: 34px; width: 84px; height: 84px; }
/* While Jiro flies, the flier stands in for the Ditch mascot and the copies own the boxes until they land. */
.jiro-flying .callj, .jiro-flying .jiro-local:not(.is-home) { opacity: 0; }
.jiro-flying.jiro-landed .callj { opacity: 1; }
.jiro-scene { position: relative; overflow: hidden; contain: layout paint; }
.jiro-stage { position: absolute; width: 560px; height: 252px; left: 50%; top: 0; transform: translateX(-50%) scale(var(--scene-scale, 1)); transform-origin: 50% 50%; pointer-events: none; }
/* Base styles are each scene's end state, which reduced motion shows as a still. */
.jiro-scene [data-shape] { position: absolute; box-sizing: border-box; }
.jiro-floor { left: 110px; top: 212px; width: 340px; height: 3px; background: #0a0a0a; }

/* Touch reticles: a tap ring in the person's colour, and the ripple a press leaves. */
.reticle { left: 0; top: 0; z-index: 3; width: 30px; height: 30px; border: 2px solid #0a0a0a; border-radius: 50%; background: var(--c); will-change: transform; }
.reticle::after { content: ''; position: absolute; left: 10px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--dot, #0a0a0a); }
.ripple { left: 0; top: 0; z-index: 3; width: 30px; height: 30px; border: 1px solid #0a0a0a; border-radius: 50%; }

.session-device { top: 140px; width: 100px; height: 68px; border: 2px solid #0a0a0a; background: #fff; }
.session-device.laptop { left: 86px; }
.session-device.laptop::after { content: ''; position: absolute; bottom: -9px; left: -12px; width: 120px; height: 5px; background: #0a0a0a; }
.session-device.phone { left: 253px; width: 54px; height: 88px; top: 126px; border-radius: 8px; }
.session-device.phone::after { content: ''; position: absolute; bottom: 6px; left: 20px; width: 10px; height: 3px; background: #0a0a0a; }
.session-device.terminal { left: 374px; }
.terminal-bars { position: absolute; left: 12px; top: 16px; width: 30px; height: 3px; background: #0a0a0a; box-shadow: 0 11px #0a0a0a, 17px 22px #0a0a0a; }
.session-light { position: absolute; inset: 5px; background: var(--person); }
.session-device.phone .session-light { bottom: 15px; border-radius: 3px; }
.bubble { left: 0; top: 0; border: 1px solid #0a0a0a; border-radius: 4px; will-change: transform; }
.bubble::after { content: ''; position: absolute; left: 4px; bottom: -4px; width: 6px; height: 6px; background: inherit; border: solid #0a0a0a; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.session-send { width: 28px; height: 20px; background: var(--c); }
/* Bubbles pass behind Jiro: sent ones sink into him and the reply emerges from him. */
.session-reply { width: 32px; height: 22px; background: #fff; }
.session-reply i { position: absolute; left: 6px; top: 6px; width: 18px; height: 2px; background: #0a0a0a; }
.session-reply i + i { top: 12px; width: 11px; }

.scene-2 .jiro-local { left: 118px; top: 96px; }
.absorb-glow { left: 108px; top: 88px; width: 104px; height: 100px; border-radius: 24px; background: #2bff6b; }
.heal-shelf { left: 350px; top: 183px; width: 158px; height: 1px; background: #0a0a0a; }
.heal-card { left: 0; top: 0; z-index: 2; width: 84px; height: 84px; border: 1px solid #0a0a0a; background: #fff; transform-origin: 0 0; }
.heal-card i, .heal-callout i, .antenna-tip i { position: absolute; left: 0; top: 0; box-sizing: border-box; border: 1px solid #0a0a0a; background: #2bff6b; }
.heal-card i { width: 17px; height: 17px; background: var(--c); }
.heal-callout { left: 0; top: 0; z-index: 3; width: 47px; height: 47px; border: 1px solid #0a0a0a; background: #fff; }
.antenna-stalk { left: 0; top: 0; z-index: 2; width: 2px; height: 16.8px; background: #0a0a0a; transform-origin: 50% 100%; }
.antenna-tip { left: 0; top: 0; z-index: 2; width: 13px; height: 13px; transform-origin: 50% 100%; }

.scene-3 .jiro-local { left: 268px; top: 70px; }
.guard-vault { left: 380px; top: 120px; width: 93px; height: 84px; border: 2px solid #0a0a0a; background: #fff; }
.guard-vault::before { content: ''; position: absolute; left: 22px; top: -34px; width: 43px; height: 38px; border: 3px solid #0a0a0a; border-radius: 24px 24px 0 0; }
.guard-vault::after { content: ''; position: absolute; left: 39px; top: 30px; width: 10px; height: 19px; background: #0a0a0a; border-radius: 8px 8px 0 0; }
.vault-light { position: absolute; inset: 6px; background: #2bff6b; }
.guard-shield { left: 236px; top: 92px; z-index: 2; width: 48px; height: 64px; transform-origin: 50% 100%; }

.cal-top { left: 150px; top: 116px; width: 262px; height: 12px; background: #0a0a0a; }
.cal-grid { left: 150px; top: 128px; display: grid; grid-template-columns: repeat(4, 65px); grid-auto-rows: 56px; border-left: 2px solid #0a0a0a; border-top: 2px solid #0a0a0a; background: #fff; }
.cal-grid i { box-sizing: border-box; border-right: 2px solid #0a0a0a; border-bottom: 2px solid #0a0a0a; }
.cal-dot, .cal-done { left: calc(168px + var(--c) * 65px); top: calc(142px + var(--r) * 56px); width: 30px; height: 30px; border: 1px solid #0a0a0a; border-radius: 50%; background: #fb5e45; }
.cal-done { background: #2bff6b; }
.cal-bolt { left: calc(170px + var(--c) * 65px); top: calc(124px + var(--r) * 56px); z-index: 2; width: 28px; height: 44px; transform-origin: 50% 100%; }

.scene-5 .jiro-floor { left: 40px; top: 226px; width: 356px; }
.scene-5 .jiro-puppet { transform-origin: 50% 100%; }
.key-chip { width: 36px; height: 16px; will-change: transform; }
.sub-socket { left: 418px; top: 128px; width: 76px; height: 76px; border: 2px solid #0a0a0a; background: #fff; }
.sub-socket::before { content: ''; position: absolute; left: -2px; top: 22px; width: 10px; height: 28px; background: #0a0a0a; }
.socket-light { position: absolute; inset: 6px 6px 6px 14px; background: #2bff6b; }
.sub-badge { left: 390px; top: 152px; z-index: 2; width: 40px; height: 24px; border: 1px solid #0a0a0a; border-radius: 4px; background: #2bff6b; }
.sub-badge::after { content: ''; position: absolute; left: 6px; top: 5px; width: 10px; height: 10px; background: #0a0a0a; }

/* Box 6: tool tokens on two rings around Jiro, each wired to him by a green line that grows from his edge. */
.scene-6 .jiro-local { top: 84px; z-index: 2; }
.eco-ring { border: 1px solid #0a0a0a; border-radius: 50%; }
.eco-arm { left: 280px; top: 126px; width: 0; height: 0; }
.eco-wire { left: 40px; top: -2px; height: 4px; border: 1px solid #0a0a0a; background: #2bff6b; transform-origin: 0 50%; }
.eco-chip { left: 0; top: 0; width: 32px; height: 32px; will-change: transform; }
.eco-body { position: absolute; inset: 0; border: 1px solid #0a0a0a; border-radius: 50%; background: #fff; }
.eco-fed { position: absolute; inset: -1px; border: 1px solid #0a0a0a; border-radius: 50%; background: #2bff6b; }
.eco-body > svg { position: absolute; left: 50%; top: 50%; margin: -9px 0 0 -9px; }

@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .jiro-nav-anchor, .jiro-flight, .jiro-swarm { display: none; }
}

/* Product and pricing seats are page anchors; only their traveling copies move. */
.compare-headrow { height: 137px !important; }
.ctable > .compare-headrow > div:not(:first-child) { position: relative; padding-top: 80px !important; }
.jiro-compare-seat { position: absolute; top: 8px; left: calc(50% - 32px); width: 64px; height: 64px; }
.jiro-compare-seat > img, .jiro-price-seat > img { display: block; width: 100%; height: 100%; }
.tface > .jiro-price-seat { position: relative; display: block; width: 72px; height: 72px; flex: none; }
.jiro-lower-swarm { position: fixed; inset: 0; width: 100%; height: 100%; overflow: clip; z-index: 999; pointer-events: none; }
.jiro-lower-copy { position: absolute; top: 0; left: 0; width: 112px; height: 112px; opacity: 0; transform-origin: center; will-change: transform; }
.jiro-lower-copy > img, .jiro-departure, .jiro-departure > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.jiro-flying .jiro-compare-seat, .jiro-flying .jiro-price-seat, .jiro-flying .jiro-trial-seat, .jiro-flying .jiro-local.is-away { opacity: 0; }
.jiro-flying.jiro-at-table .jiro-compare-seat, .jiro-flying.jiro-at-pricing .jiro-price-seat, .jiro-flying.jiro-at-pricing .jiro-trial-seat { opacity: 1; }
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .jiro-lower-swarm { display: none; }
  .jiro-compare-seat, .jiro-price-seat, .jiro-trial-seat { opacity: 1 !important; }
  .tface > .jiro-price-seat { width: 60px; height: 60px; }
}
