/* iPhone Duo proportions verified against Apple, 26 Nov 2026.
   Open 164.6 × 117.8 × 5.2 mm; closed 84.1 × 117.8 × 11.3 mm.
   https://www.apple.com/de/iphone-duo/specs/
   Camera cutouts intentionally omitted for the portfolio presentation. */
.duo{--fold:0;--turn:180deg;--shift:-25.5468%;--flat:0;--inner-visible:0;width:100%;perspective:1200px;isolation:isolate}
.duo__scene{width:100%;aspect-ratio:1646/1178;perspective:1200px}
.duo__body{position:relative;width:100%;height:100%;transform-style:preserve-3d;transform:translateX(var(--shift)) rotateY(-4deg) rotateX(2deg);transition:transform .14s linear}
.duo__base,.duo__wing{position:absolute;top:0;left:50%;width:50%;height:100%;border-radius:0 18px 18px 0;transform-style:preserve-3d}
.duo__base{opacity:var(--inner-visible);background:linear-gradient(125deg,#cbd0d6,#59616b 32%,#b9bec5 75%,#464d57);box-shadow:10px 17px 25px #0002}
.duo__wing{left:0;transform-origin:right center;transform:rotateY(var(--turn));transition:transform .14s linear;z-index:2}
.duo__face{position:absolute;inset:0;border-radius:18px 0 0 18px;background:linear-gradient(115deg,#d5d9df,#626a74 32%,#b9bec5 75%,#464d57);backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden}
.duo__cover{left:-2.18712%;right:auto;width:102.18712%;transform:rotateY(180deg);border-radius:18px;box-shadow:0 4px 0 #555e69,0 12px 22px #0002}
.duo__inside-left{transform:translateZ(.01px)}
.duo__glass{position:absolute;overflow:hidden;background:#fafafa}
.duo__cover .duo__glass{inset:2.3% 4%;border-radius:13px}
.duo__inside-left .duo__glass{inset:3% 0 3% 4.24%;border-radius:13px 0 0 13px}
.duo__inside-right{inset:3% 4.24% 3% 0;border-radius:0 13px 13px 0}
/* A single image surface covers the two folding faces at rest. No center rim,
   painted crease, gap or antialiasing seam can cross the open screen. */
.duo__flat{position:absolute;inset:3% 2.12%;z-index:4;border-radius:13px;overflow:hidden;opacity:var(--flat);pointer-events:none;background:#fafafa;transform:translateZ(.1px)}
.duo__flow-pair{display:grid;grid-template-columns:1fr 1fr;height:100%;background:#f7f9fe}
.preview-slides{position:relative;width:100%;height:100%;overflow:hidden;background:#fafafa}
.preview-slides>img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover;object-position:top;opacity:0;transition:opacity .65s ease;max-width:none!important;transform:none!important}
.preview-slides>img.is-current{opacity:1}
.duo__inside-left .preview-slides,.duo__inside-right .preview-slides{width:200%}
.duo__inside-right .preview-slides{transform:translateX(-50%)}
.duo-chapter .tour__frame{width:100%;height:auto;transform:none!important}
.duo-chapter .tour__stage{padding-top:clamp(28px,6svh,64px)!important;grid-template-rows:auto 1fr!important;row-gap:20px}
.duo-chapter .tour__span{margin-top:0!important;align-self:start}
.project-preview{color:inherit;position:relative;width:100%;container-type:inline-size}
.preview-caption{display:flex;justify-content:space-between;gap:16px;align-items:start;margin:6px 0 20px;font-size:clamp(12px,1.05vw,16px)}
.preview-caption p{max-width:25em;margin:0;font-weight:500}
.preview-caption>span{font-size:.8em;opacity:.7;text-align:right;max-width:16em}
.preview-devices{position:relative;min-height:clamp(260px,37vw,500px);display:flex;align-items:center;padding:2% 20% 8% 0}
.preview-desktop{position:relative!important;aspect-ratio:1331/825!important;width:100%!important;max-height:none!important;background:#e1e3e7;border:1px solid #ffffff70;border-radius:10px;box-shadow:0 25px 50px #0002;overflow:hidden;transform:perspective(1600px) rotateY(5deg);flex:none}
.preview-desktop__bar{height:25px;display:flex;align-items:center;gap:4px;padding:0 10px;background:#edf0f4;color:#374254}
.preview-desktop__bar i{width:4px;height:4px;border-radius:50%;background:#a3adbb}
.preview-desktop__bar span{margin:auto;font:9px/1.2 system-ui}
.preview-desktop>.preview-slides{height:calc(100% - 25px)}
.duo-chapter .tour__phone{position:absolute!important;inset:auto 0 0 auto!important;width:58%!important;max-width:440px!important;transform:none!important;translate:none!important;rotate:none!important;perspective:1200px!important}
.preview-toolbar{display:flex;align-items:center;justify-content:end;gap:8px;flex-wrap:wrap;margin-top:18px;font:12px/1.3 inherit}
.preview-toolbar button{display:flex;align-items:center;gap:12px;border:1px solid currentColor;border-radius:30px;padding:10px 14px;min-height:44px;color:inherit;background:transparent;font-size:12px;cursor:pointer}
.preview-toolbar button:hover,.preview-toolbar button:focus-visible{background:#fff3;outline-offset:3px}
.preview-hint{margin-right:auto;opacity:.65;font-size:12px}
.preview-process{display:block;width:fit-content;margin:10px 0 0 auto;font-size:12px;text-decoration:underline;text-underline-offset:4px}
.duo-art{position:relative;overflow:hidden;background:var(--studio-lime-soft)}
.duo-art>.preview-desktop{position:absolute!important;width:75%!important;left:5%;top:15%}
.duo-art>.duo{position:absolute;right:4%;bottom:7%;width:55%;max-width:340px}
.duo-art .art-watermark{opacity:.055}
.duo-chapter[data-project="skg-estates"]{background:#e4ded2!important;color:#28313a!important}
@media (min-width:768px) and (orientation:landscape){.duo-chapter .tour__span{grid-column:span 8/span 8!important}.duo-chapter[data-mascot="left"] .tour__span{grid-column-start:5!important}.duo-chapter[data-mascot="right"] .tour__span{grid-column-start:1!important}}
@media(max-width:767px),(orientation:portrait){.duo-chapter .tour__stage{padding:24px 6% 36svh!important;row-gap:12px}.preview-caption{margin:0 0 12px;font-size:12px}.preview-caption>span{display:none}.preview-devices{min-height:0;height:clamp(190px,34svh,310px);padding:0 20% 9% 0}.duo-chapter .tour__phone{width:64%!important;max-width:280px!important}.preview-desktop__bar{height:18px}.preview-desktop>.preview-slides{height:calc(100% - 18px)}.preview-desktop__bar span{font-size:6px}.preview-toolbar{margin-top:10px;gap:6px}.preview-hint{display:none}.preview-toolbar button{font-size:10px;padding:6px 10px;min-height:36px}.preview-process{font-size:10px;margin-top:8px}.duo__base{border-radius:0 12px 12px 0}.duo__face{border-radius:12px 0 0 12px}.duo__cover{border-radius:12px}.duo__cover .duo__glass,.duo__flat{border-radius:9px}.duo__inside-left .duo__glass{border-radius:9px 0 0 9px}.duo__inside-right{border-radius:0 9px 9px 0}}
@media(prefers-reduced-motion:reduce){.duo{--turn:0deg!important;--shift:0%!important;--flat:1!important;--inner-visible:1!important}.duo__body,.duo__wing,.preview-slides>img{transition:none!important}.preview-hint{display:none}}
/* Zellix exposes separate phone flows, never a stretched mobile dashboard. */
.duo--paired .duo__inside-left .preview-slides,.duo--paired .duo__inside-right .preview-slides{width:100%;transform:none}

.duo--paired .preview-slides>img{object-fit:contain}
.duo-art--concept>.duo{width:62%;max-width:340px;right:18%;bottom:8%}

.duo--concept .preview-slides>img{object-fit:fill;left:-7%!important;top:-13%!important;width:114%!important;height:116%!important}
.duo__concept-copy{height:100%;padding:12%;display:flex;flex-direction:column;justify-content:center;gap:12px;background:#f4f1e9;color:#1c1a24}
.duo__concept-copy>span{font-size:clamp(8px,1vw,12px)}
.duo__concept-copy strong{font-size:clamp(16px,2vw,28px);line-height:1.1}
.duo__concept-copy p{font-size:clamp(10px,1.1vw,14px);line-height:1.4}
@media(max-width:767px),(orientation:portrait){.preview-toolbar button{min-height:44px}}
/* Remove positioning inherited from the former flying iPhone composition. */
.duo-chapter .tour__frame{translate:none!important;rotate:none!important;scale:none!important}
.duo-chapter .tour__span{height:auto!important;min-width:0}
@media(max-width:767px) and (max-height:700px){
  .duo-chapter .preview-devices{height:180px}
  .duo-chapter .tour__bubble{position:fixed!important;top:auto!important;bottom:18px!important;transform:none!important;translate:none!important;width:58vw!important;max-width:210px!important;padding:14px!important;font-size:14px!important;line-height:1.2!important;hyphens:none!important}
  .duo-chapter .tour__bubble p{font-size:14px!important;line-height:1.2!important;hyphens:none!important}
  .duo-chapter[data-mascot="right"] .tour__bubble{left:16px!important;right:auto!important}
  .duo-chapter[data-mascot="left"] .tour__bubble{left:auto!important;right:16px!important}
}
@media(max-width:374px){.home-work-heading h2{font-size:42px!important;min-width:0;flex-wrap:wrap}}
body:has(.duo-chapter){overflow-x:clip}
@media(prefers-reduced-motion:reduce){.preview-toolbar{display:none}}
