/* Original concept, isolated to the added homepage figure. */
.duo-showcase{--duo-radius:29px;--duo-depth:12px;--duo-unit:1px;position:relative;z-index:0;margin:0;padding:48px 0 38px;border-bottom:1px solid var(--rule)}
/* Match the adjacent opening's theme surface across the viewport.
   Paint-only bleed avoids adding a wide layout box or clipping the device. */
.duo-showcase::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--background);box-shadow:0 0 0 100vmax var(--background);clip-path:inset(0 -100vmax)}
/* Exact dark tokens from SocioDating globals.css; follows the existing site's theme. */
:root[data-effective-theme="dark"] .duo-showcase,[data-duo-theme="dark"]{--duo-ui-bg:#1b1716;--duo-ui-surface:#2b2320;--duo-ui-secondary:#342926;--duo-ui-glass:rgba(45,36,33,.88);--duo-ui-glass-color:#2d2421;--duo-ui-glint:rgba(255,235,225,.2);--duo-ui-accent:#ed8064;--duo-ui-accent-soft:rgba(237,128,100,.16);--duo-ui-accent-strong:#f2a08b;--duo-ui-accent-border:rgba(237,128,100,.44);--duo-ui-text:#f5eee9;--duo-ui-secondary-text:#c9bcb4;--duo-ui-muted:#a99a92;--duo-ui-inverse:#241d1b;--duo-ui-border:rgba(255,235,225,.14);--duo-ui-input:#302724;--duo-ui-input-border:rgba(255,235,225,.18)}
:root[data-effective-theme="dark"] .duo-showcase .duo-surface-light{background:#070b128c}
:root[data-effective-theme="dark"] .duo-showcase .duo-occlusion{background:linear-gradient(90deg,#030609a8,transparent 82%)}
:root[data-effective-theme="dark"] .duo-showcase .duo-leaf--left .duo-occlusion{background:linear-gradient(270deg,#070b1080,transparent 76%)}
.duo-showcase *{box-sizing:border-box}
.duo-showcase .duo-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin:0;max-width:none}
.duo-showcase .duo-eyebrow{margin:0 0 12px;color:var(--ink);opacity:.7;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.duo-showcase h2{margin:0;font:500 38px/1.1 var(--font-display);letter-spacing:-.055em;color:var(--ink)}
.duo-showcase .duo-description{margin:0;max-width:34ch;color:var(--secondary);font-size:14px;line-height:1.65}
.duo-showcase .duo-visual{min-width:0}
.duo-showcase .duo-stage{position:relative;display:grid;place-items:center;aspect-ratio:1.55;isolation:isolate;overflow:visible}
/* Let the continuous page background show through in both themes. */
.duo-showcase .duo-aura{display:none}
.duo-showcase .duo-shadow{position:absolute;left:16%;right:12%;bottom:7%;height:10%;border-radius:50%;background:radial-gradient(ellipse,#080b0ea8,transparent 69%);filter:blur(12px);opacity:.48;transform:scaleX(1) translateY(0)}
.duo-showcase .duo-motion{position:relative;width:58%;max-width:650px;transform:translateY(14px);aspect-ratio:1.41421356;perspective:2400px;filter:blur(0)}
.duo-showcase .duo-device{position:absolute;inset:0;transform-style:preserve-3d;transform:translateX(0) rotateX(17deg) rotateY(-16deg) rotateZ(-5deg)}
.duo-showcase .duo-leaf{position:absolute;top:0;width:50%;height:100%;transform-style:preserve-3d}
.duo-showcase .duo-leaf--left{left:0;transform-origin:100% 50%;transform:rotateY(0deg)}
.duo-showcase .duo-leaf--right{left:50%}
.duo-showcase .duo-back{position:absolute;inset:0;border-radius:var(--duo-radius) 0 0 var(--duo-radius);background:linear-gradient(115deg,#dededb 0,#8d8e8f 23%,#44484b 46%,#aeb1b2 68%,#292d30 90%);border:1px solid #7b8083;transform:translateZ(calc(var(--z)*var(--duo-unit)*-1));backface-visibility:hidden;-webkit-backface-visibility:hidden}
.duo-showcase .duo-back{--z:12;transform:translateZ(calc(-1*var(--duo-depth))) rotateY(180deg);background:linear-gradient(120deg,#b2b6b8,#788086 50%,#d2d4d4)}
.duo-showcase .duo-side{position:absolute;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:linear-gradient(90deg,#5d646a,#d8dcde 22%,#949b9e 42%,#4d555c 60%,#afb6b9 83%,#343c42);border:1px solid #929b9f}
.duo-showcase .duo-side--edge{width:var(--duo-depth);top:var(--duo-radius);bottom:var(--duo-radius);left:0;transform-origin:0 0;transform:translateZ(calc(-1*var(--duo-depth))) rotateY(-90deg)}
.duo-showcase .duo-leaf--right .duo-side--edge{left:100%;transform:rotateY(90deg)}
/* Each leaf has a straight hinge edge and two rounded free-edge corners.
   The back-facing cover uses the mirrored contour; no mask rounds the hinge. */
.duo-showcase .duo-side--hinge{width:var(--duo-depth);height:100%;top:0;left:100%;transform-origin:0 0;transform:rotateY(90deg)}
.duo-showcase .duo-leaf--right .duo-side--hinge{left:0;transform:translateZ(calc(-1*var(--duo-depth))) rotateY(-90deg)}
.duo-showcase .duo-side--top,.duo-showcase .duo-side--bottom{left:var(--duo-radius);right:0;height:var(--duo-depth);transform-origin:0 0;transform:rotateX(-90deg);background:linear-gradient(#e0e4e6,#939da4 25%,#444b52 50%,#89939a 80%,#d0d6da)}
.duo-showcase .duo-leaf--right .duo-side--top,.duo-showcase .duo-leaf--right .duo-side--bottom{left:0;right:var(--duo-radius)}
.duo-showcase .duo-side--top{top:0;transform:translateZ(calc(-1*var(--duo-depth))) rotateX(90deg)}.duo-showcase .duo-side--bottom{top:100%}
.duo-showcase .duo-face{position:absolute;inset:0;border-radius:var(--duo-radius) 0 0 var(--duo-radius);background:linear-gradient(130deg,#d4dadc,#565e64 26%,#a7afb3 55%,#363f46 75%,#e0e6e9);padding:3px;border:1px solid #c0c7cc;box-shadow:inset 0 0 0 1px #f2f6f8,0 1px 1px #0009;backface-visibility:hidden;-webkit-backface-visibility:hidden;transform:translateZ(.3px)}
.duo-showcase .duo-leaf--right .duo-face{border-radius:0 var(--duo-radius) var(--duo-radius) 0}
.duo-showcase .duo-face--outer{transform:translateZ(calc(-1*var(--duo-depth) - .3px)) rotateY(180deg);border-radius:0 var(--duo-radius) var(--duo-radius) 0}
.duo-showcase .duo-glass{position:absolute;inset:4px;overflow:hidden;border:3px solid #101417;border-radius:calc(var(--duo-radius) - 4px) 0 0 calc(var(--duo-radius) - 4px);background:#232c33}
.duo-showcase .duo-leaf--left .duo-face:not(.duo-face--outer) .duo-glass{right:0;border-right:0}
.duo-showcase .duo-leaf--right .duo-glass{left:0;border-left:0;border-radius:0 calc(var(--duo-radius) - 4px) calc(var(--duo-radius) - 4px) 0}
.duo-showcase .duo-face--outer .duo-glass{border-radius:0 calc(var(--duo-radius) - 4px) calc(var(--duo-radius) - 4px) 0;background:var(--duo-ui-bg,#fcfaf8)}
.duo-showcase .duo-canvas{position:absolute;left:0;top:0;width:200%;height:100%;max-width:none;display:block}
/* Equal non-overlapping half-canvases; both meet at the physical hinge.
   The full-width flat surface keeps the same scale/origin without a center stroke. */
.duo-showcase .duo-face--inner .duo-canvas{width:200%}
.duo-showcase .duo-leaf--right .duo-canvas{left:-100%}
.duo-showcase .duo-face--inner{opacity:1;visibility:hidden}
.duo-showcase[data-duo-surface]:not([data-duo-surface="flat"]) .duo-flat-face{display:none}
.duo-showcase[data-duo-surface="closed"] .duo-face--inner,.duo-showcase[data-duo-surface="flat"] .duo-face--outer{display:none}
.duo-showcase[data-duo-surface="split"] .duo-face--inner{visibility:visible}
.duo-showcase .duo-flat-face{position:absolute;inset:0;border:1px solid #bfc7cc;border-radius:var(--duo-radius);background:linear-gradient(130deg,#d4dadc,#565e64 26%,#a7afb3 55%,#363f46 75%,#e0e6e9);transform:translateZ(.6px);backface-visibility:hidden;-webkit-backface-visibility:hidden}
.duo-showcase .duo-flat-face .duo-glass{border-radius:calc(var(--duo-radius) - 4px)}
.duo-showcase .duo-flat-face .duo-canvas{width:100%}
.duo-showcase .duo-cover-ui{display:block;width:100%;height:100%}
.duo-brand--dark{display:none}
:root[data-effective-theme="dark"] .duo-showcase .duo-brand--light,[data-duo-theme="dark"] .duo-brand--light{display:none}
:root[data-effective-theme="dark"] .duo-showcase .duo-brand--dark,[data-duo-theme="dark"] .duo-brand--dark{display:block}
.duo-showcase .duo-camera{position:absolute;right:7.1%;top:4%;width:5%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 45% 35%,#425c74,#16202a 32%,#020609 62%);box-shadow:0 0 0 1px #11191f}
.duo-showcase .duo-hinge{position:absolute;left:calc(50% - 4px);top:var(--duo-radius);bottom:var(--duo-radius);width:8px;border-radius:5px;background:linear-gradient(90deg,#343f49,#b9c3cc 44%,#485663);transform:translateZ(-5px);box-shadow:0 0 3px #0c1217;opacity:0}
.duo-showcase .duo-hinge i{position:absolute;left:0;right:0;height:7%;background:linear-gradient(90deg,#141b23,#99a6af,#323f4a);border-top:1px solid #c3cbd280;border-bottom:1px solid #121c25;top:12%}
.duo-showcase .duo-hinge i:nth-child(2){top:46%}.duo-showcase .duo-hinge i:nth-child(3){top:81%}
/* The separate hinge rail protrudes past the left silhouette. Keep the
   physical edge and corner facets of the folding leaf for its depth. */
.duo-showcase .duo-hinge{display:none}

.duo-showcase .duo-surface-light{position:absolute;inset:0;pointer-events:none;background:#070b12;opacity:0}
.duo-showcase .duo-metal-shade{position:absolute;inset:0;background:#060b12;opacity:.12}
.duo-showcase .duo-corner{position:absolute;height:var(--duo-depth);transform-origin:0 0;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:linear-gradient(#3a424a,#a6adb1 14%,#676f75 40%,#d8dde0 85%,#eef1f1)}
.duo-showcase .duo-leaf--left .duo-face--inner{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:none}
.duo-showcase .duo-leaf--right .duo-face--inner{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:none}
.duo-showcase .duo-occlusion{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#030609f2,transparent 82%);opacity:0}
.duo-showcase .duo-leaf--left .duo-occlusion{background:linear-gradient(270deg,#070b10cc,transparent 76%)}
.duo-showcase .duo-motion[role="button"]{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.duo-showcase .duo-motion[role="button"]:focus-visible{outline:2px solid var(--accent);outline-offset:10px;border-radius:var(--duo-radius)}
.duo-showcase .duo-caption{color:var(--secondary);font-size:11px;line-height:1.65}
.duo-showcase .duo-caption{text-align:center;margin:12px auto 0;max-width:60ch}
.duo-showcase[data-duo-playing] .duo-device,.duo-showcase[data-duo-playing] .duo-leaf--left{will-change:transform}
@media(max-width:760px){
 .duo-showcase{padding:36px 0 30px;--duo-radius:15px;--duo-depth:5px;--duo-unit:.4166667px}
 .duo-showcase .duo-heading{display:block}.duo-showcase h2{font-size:30px}.duo-showcase .duo-eyebrow{font-size:10px;margin-bottom:10px}.duo-showcase .duo-description{font-size:13px;margin-top:13px}
 .duo-showcase .duo-stage{aspect-ratio:1.04;margin:10px -10px 0}
 .duo-showcase .duo-motion{width:80%;perspective:1000px;transform:none}
 .duo-showcase .duo-hinge{width:4px;left:calc(50% - 2px);transform:translateZ(-2px)}
 .duo-showcase .duo-glass{inset:3px;border-width:2px}.duo-showcase .duo-shadow{bottom:17%;filter:blur(7px)}
 .duo-showcase .duo-caption{font-size:10px;max-width:37ch}.duo-showcase .duo-camera{box-shadow:0 0 0 1px #11191f}
}
@media(prefers-reduced-motion:reduce){
 .duo-showcase .duo-motion{filter:none!important}.duo-showcase .duo-device{transform:rotateX(17deg) rotateY(-16deg) rotateZ(-5deg)!important}.duo-showcase .duo-leaf--left{transform:rotateY(0deg)!important}.duo-showcase .duo-occlusion,.duo-showcase .duo-surface-light,.duo-showcase .duo-hinge,.duo-showcase .duo-typing{opacity:0!important}.duo-showcase .duo-content,.duo-showcase .duo-insights,.duo-showcase .duo-reply{opacity:1!important;transform:none!important}
}

/* A static wash joins the preview and concept without a new animation layer. */
.home-page .workshop-opening .workshop-hero{padding-bottom:48px}
.home-page .duo-showcase{padding-top:28px}
.home-page .duo-showcase::after{content:"";position:absolute;left:0;right:0;top:-96px;height:240px;z-index:-1;pointer-events:none;background:radial-gradient(ellipse 50% 50% at 50% 50%,var(--opening-glow),transparent 100%);opacity:.16}
@media(max-width:760px){.home-page .duo-showcase::after{top:-72px;height:180px}}

/* Bound desktop breathing room to the device, whose width already caps at 650px. */
@media(min-width:1001px){
 .home-page .workshop-opening .workshop-hero{padding-top:36px;padding-bottom:24px;min-height:560px}
 .home-page .duo-showcase{padding-top:20px}
 .home-page .duo-showcase .duo-stage{aspect-ratio:auto;height:clamp(480px,48vw,640px)}
}

/* Only the original lights rest between inputs/folds. Preview clocks, screen
   transitions and other page effects keep their own visibility/pause rules. */
.home-page[data-motion-frame="idle"] :is(.brand-satellite,.signal-light),
.home-page[data-motion-frame="idle"] :is(.brand-satellite,.signal-light)::after{animation-play-state:paused!important}
/* No opacity/filter/mask on this group: retain the chassis's 3D depth sorting. */
.duo-orbits{position:absolute;inset:0;transform-style:preserve-3d;pointer-events:none;--brand-core:#d18b45;--brand-halo:230,165,87}
:root[data-effective-theme="dark"] .duo-orbits{--brand-core:#ffdb9d;--brand-halo:255,195,116}
/* Transfer uses the existing nodes outside the stage clip, then native 3D.
   Static shadows replace the old per-particle blurred breathing animation. */
.duo-light-transfer{position:fixed;inset:0;z-index:8;pointer-events:none;--brand-core:#d18b45;--brand-halo:230,165,87}
:root[data-effective-theme="dark"] .duo-light-transfer{--brand-core:#ffdb9d;--brand-halo:255,195,116}
.duo-orbit-anchor{position:absolute;left:0;top:0;width:0;height:0;visibility:hidden;pointer-events:none}
.duo-orbit-light{position:absolute;display:block;left:0;top:0;animation:none!important;translate:none!important;scale:none!important;background:var(--brand-core);box-shadow:0 0 9px 2px rgba(var(--brand-halo),.48),0 0 20px 3px rgba(var(--brand-halo),.22);pointer-events:none}
.duo-orbit-light::after{display:none!important}

/* Keep native flight phases still only during the finite return to their home field. */
.page-companions .duo-returning,.page-companions .duo-returning::after{animation-play-state:paused!important}

/* Event-driven pointer tilt; preserve the device's 3D context and layout box. */
.duo-showcase .duo-pointer-tilt{position:absolute;inset:0;transform-style:preserve-3d;transform:rotateX(0deg) rotateY(0deg);transition:transform 650ms cubic-bezier(.22,.61,.36,1)}
@media(prefers-reduced-motion:reduce),(max-width:900px),(hover:none),(pointer:coarse){.duo-showcase .duo-pointer-tilt{transform:none!important;transition:none}}

/* Calm local motion composes with, rather than replaces, pointer and fold poses. */
.duo-showcase .duo-calm-motion{position:absolute;inset:0;transform-style:preserve-3d;animation:duo-calm 7s ease-in-out infinite;animation-play-state:paused}
.duo-showcase .duo-orbits{animation:duo-light-drift 9s ease-in-out infinite;animation-play-state:paused}
.duo-showcase[data-duo-attention="running"] .duo-calm-motion,.duo-showcase[data-duo-attention="running"] .duo-orbits{animation-play-state:running}
@keyframes duo-calm{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(0,-2px,0)}}
@keyframes duo-light-drift{0%,100%{transform:translate3d(-1px,0,0)}50%{transform:translate3d(1px,-2px,0)}}
/* Reserve the projected open silhouette; captions and subsequent copy paint transparently. */
.duo-showcase{z-index:1}
.duo-showcase .duo-caption,.duo-showcase .duo-description,.duo-showcase + .company-section{background:transparent}
@media(prefers-reduced-motion:reduce),(max-width:900px),(hover:none),(pointer:coarse){.duo-showcase .duo-calm-motion,.duo-showcase .duo-orbits{animation:none!important;transform:none!important}}

/* Orbit anchors can retain desktop coordinates during resize; mobile orbits are inactive. */
@media(max-width:900px){.duo-showcase .duo-stage{overflow-x:clip}}
