/* JTraceX Duo: evolution of the existing brand. DESIGN_VARIANCE 7, MOTION_INTENSITY 6,
   VISUAL_DENSITY 3. Native CSS 3D, official closed hardware, real app captures.
   Layers: within-device 0–3; navigation stays at existing 20; dialogs use top layer.
   Radius scale: sections 36px, media 24px, controls pill. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.duo-hero{padding:46px 24px 35px;text-align:center;overflow:clip;background:var(--page)}
.duo-hero-heading{position:relative;z-index:3}
.duo-eyebrow{font-size:15px;font-weight:650;letter-spacing:.035em;margin:0 0 14px;color:var(--secondary)}
.duo-hero h2{font-size:clamp(42px,5.5vw,80px);font-weight:740;line-height:1.13;letter-spacing:-.055em}
.duo-hero h2 span{display:inline;color:var(--ink)}
.duo-hero-heading>p:not(.duo-eyebrow){font-size:clamp(15px,1.4vw,19px);line-height:1.75;color:var(--secondary);margin:17px auto 16px;max-width:38em}
.duo-hero-actions{display:flex;justify-content:center;align-items:center;gap:26px}
.duo-hero-actions .button{min-height:44px;padding:10px 20px;font-size:14px}
.duo-hero-actions .text-button{margin:0;font-size:14px}
.duo-explorer{max-width:1020px;margin:38px auto 0;scroll-margin-top:90px}
.duo-app-picker,.duo-gallery-tabs{display:flex;justify-content:center;gap:5px;align-items:center;flex-wrap:wrap}
.duo-app-picker button,.duo-gallery-tabs button{border:0;background:transparent;color:var(--secondary);font-size:14px;min-height:44px;border-radius:99px;padding:10px 22px;transition:background .2s,color .2s}
.duo-app-picker{margin:0 auto 13px}.duo-app-picker button{font-size:13px;min-height:40px;padding:8px 19px}
.duo-app-picker button[aria-selected=true]{background:var(--surface);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.duo-gallery-tabs button[aria-selected=true]{background:var(--ink);color:var(--page)}
/* Body dimensions: Apple iPhone Duo technical specifications, 2026-10-25.
   Open 164.6 × 117.8 mm; closed 84.1 × 117.8 mm.
   The cover extends beyond half the open width to account for the hinge housing. */
.fold-scene{position:relative;width:min(700px,87vw,77svh);margin:20px auto 38px;aspect-ratio:1646/1178;perspective:1800px;isolation:isolate}
.fold-position{width:100%;height:100%;transform:translateX(0);transform-style:preserve-3d}
.fold-scene{touch-action:pan-y;cursor:grab;user-select:none;-webkit-user-select:none}.fold-scene.is-dragging{cursor:grabbing}
.fold-device{--fold:0deg;--case-radius:27px;--case-border:2px;--hinge-round:0;position:relative;width:100%;height:100%;transform:translateZ(0);transform-style:preserve-3d}
.fold-flat{display:none;align-items:center;justify-content:center;position:absolute;inset:0;padding:4px;border:2px solid #9b9da0;border-radius:27px;background:#17181a;box-shadow:inset 0 0 0 1px #252629,0 0 0 1px #4c4e52;overflow:hidden}
.fold-flat img{width:100%;height:auto;max-height:100%;object-fit:contain;border-radius:21px}
.fold-device[data-flat="true"] .fold-flat{display:flex}
.fold-device[data-flat="true"] .fold-leaf{visibility:hidden}
@media(max-width:767px){.fold-flat{border-width:1.5px;border-radius:20px}.fold-flat img{border-radius:14px}}
.fold-leaf{position:absolute;top:0;bottom:0;width:50%;transform-style:preserve-3d;background:transparent;box-shadow:none}
.fold-left{left:0;width:calc(50% + 1px);transform-origin:calc(100% - 1px) 50%;transform:rotateY(var(--fold));border-radius:27px 0 0 27px;z-index:2}
.fold-right{right:0;width:calc(50% + 1px);border-radius:0 27px 27px 0;transform:translateZ(0)}
.fold-face{position:absolute;inset:0;border:2px solid #9b9da0;background:#17181a;overflow:hidden;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.fold-inner{border-radius:inherit;padding:4px;transform:translateZ(0)}
.fold-left .fold-inner{border-right:0;padding-right:0}
.fold-right .fold-inner{border-left:0;padding-left:0}
.fold-right .fold-inner{border-top-left-radius:calc(var(--case-radius) * var(--hinge-round));border-bottom-left-radius:calc(var(--case-radius) * var(--hinge-round))}
.fold-inner img{position:absolute;top:0;bottom:0;margin-block:auto;left:4px;width:calc(200% - 8px);max-width:none;height:auto;object-fit:contain;border-radius:21px}
/* Both textures share one hinge plane. The one-pixel overlap seals raster gaps;
   subtract its doubled width so the screenshot keeps exactly the same scale. */
.fold-left .fold-inner img{width:calc(200% - 10px)}
.fold-right .fold-inner img{left:auto;right:4px;width:calc(200% - 10px)}
.fold-outer{width:calc(102.1871203% - 1.0218712px);transform:rotateY(180deg) translateZ(.5px);border:0;border-radius:0;padding:0;background:transparent;box-shadow:none;overflow:visible}
/* Official Outer Closed Portrait geometry: one uniformly scaled canvas.
   Native screen mask preserves the nearly square hinge corners and camera hole. */
.fold-cover{position:absolute;left:0;top:50%;width:100%;aspect-ratio:1574/2194;transform:translateY(-50%)}
.fold-cover-screen{position:absolute;left:calc(88 / 1574 * 100%);top:calc(80 / 2194 * 100%);width:calc(1398 / 1574 * 100%);height:calc(2034 / 2194 * 100%);max-width:none;border-radius:0;object-fit:contain;-webkit-mask-image:url('duo-closed-mask.png');mask-image:url('duo-closed-mask.png');mask-mode:luminance;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.fold-cover-hardware{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:contain;pointer-events:none;border-radius:0}
/* Explicit face selection also protects engines that flatten backface layers.
   At the closed endpoint the inner panel cannot protrude beyond the outer shell. */
.fold-device[data-back="true"] .fold-left .fold-inner{visibility:hidden}
.fold-device[data-back="false"] .fold-outer{visibility:hidden}
.fold-device[data-closed="true"] .fold-right{visibility:hidden}
@media(max-width:767px){.fold-device{--case-radius:20px;--case-border:1.5px}}
.fold-shadow{position:absolute;bottom:-24px;left:7%;width:86%;height:30px;background:radial-gradient(ellipse,rgba(43,50,70,.2),transparent 65%);filter:blur(8px);transform:scaleX(1)}
.fold-toolbar{display:flex;align-items:center;justify-content:center;gap:18px;max-width:590px;margin:auto;padding:7px 10px;background:var(--surface);border:1px solid var(--line);border-radius:99px}
.fold-presets{display:flex;gap:2px}.fold-presets button{min-width:56px;min-height:40px;border:0;background:transparent;border-radius:99px;font-size:13px;padding:10px 12px;color:var(--secondary)}
.fold-presets button[aria-pressed=true]{background:var(--page);color:var(--ink);box-shadow:0 1px 4px rgba(50,55,65,.12)}
.fold-range-wrap{display:flex;align-items:center;gap:10px;min-width:0}
.fold-range-wrap input{width:130px;height:38px;accent-color:var(--accent);cursor:ew-resize;touch-action:pan-y;margin:0}
.fold-range-wrap output{font-size:12px;font-variant-numeric:tabular-nums;color:var(--secondary);width:33px;text-align:right}
.fold-play{display:flex;align-items:center;justify-content:center;gap:8px;min-width:78px;min-height:40px;background:var(--ink);color:var(--page);border:0;border-radius:99px;font-size:13px}
.fold-play [data-play-symbol]{font-size:10px}
.duo-state-copy{color:var(--secondary);font-size:14px;line-height:1.7;margin:17px auto 0;min-height:1.7em}
.duo-load-error,.duo-static-note{font-size:14px;line-height:1.7;color:var(--secondary)}
.duo-load-error button{border:0;background:transparent;text-decoration:underline;color:var(--accent);min-height:44px}
.duo-section-heading{margin:0 0 44px}.duo-section-heading h2,.duo-detail-lead h2{font-size:clamp(35px,4.2vw,58px);font-weight:760;letter-spacing:-.045em;line-height:1.2;margin:0}
.duo-section-heading h2 span,.duo-detail-lead h2 span{color:var(--secondary)}
.duo-section-heading>p,.duo-detail-lead>p{color:var(--secondary);font-size:17px;line-height:1.8;margin:22px 0 0;max-width:40em}
.duo-story{padding-top:110px}.duo-comparison{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.4fr);gap:24px}
.duo-comparison article{border-radius:36px;padding:38px 38px 32px;overflow:hidden;min-width:0;background:var(--surface)}
.duo-expansive{display:flex;flex-direction:column;justify-content:space-between}
.duo-feature-heading h3{font-size:28px;letter-spacing:-.035em;line-height:1.3;margin:0}
.duo-feature-heading p{font-size:15px;line-height:1.8;color:var(--secondary);margin:16px 0 0}
.duo-outer-frame{width:min(220px,100%);margin:34px auto 0;border:5px solid #82868b;border-radius:27px;background:#17181a;padding:5px;box-shadow:0 20px 28px -20px rgba(43,50,70,.4)}
.duo-outer-frame img{border-radius:18px;width:100%;height:auto}
.duo-flat-frame{margin:32px 0 20px;border:5px solid #82868b;border-radius:25px;background:#17181a;padding:5px;box-shadow:0 20px 28px -20px rgba(43,50,70,.3)}
.duo-flat-frame img{border-radius:16px;width:100%;height:auto}
.duo-apps{padding-top:120px}.duo-gallery-tabs{justify-content:flex-start;gap:8px;margin:0 0 24px}
.duo-gallery-tabs button{background:var(--surface);padding-inline:23px;min-height:46px}
.duo-gallery-panel{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);align-items:center;gap:50px;background:var(--surface);border-radius:36px;padding:48px 44px;min-height:460px}
.duo-gallery-copy h3{font-size:clamp(28px,2.9vw,40px);line-height:1.3;letter-spacing:-.035em;margin:0}
.duo-gallery-copy>p{color:var(--secondary);font-size:16px;line-height:1.8;margin:22px 0 20px;max-width:25em;min-height:5.4em}
.duo-gallery-copy .text-button{font-size:14px;margin:0;min-height:44px;display:flex;align-items:center;gap:8px}
.duo-detail-button{display:flex;align-items:center;gap:12px;min-height:44px;margin-top:10px;border:0;padding:0;background:transparent;color:var(--secondary);font-size:13px}
.duo-gallery-media{margin:0;background:var(--card);border-radius:24px;padding:8px;border:1px solid var(--line)}
.duo-gallery-media img{width:100%;height:auto;aspect-ratio:1.4215;object-fit:contain;border-radius:17px}
.duo-evidence-note{font-size:12px;color:var(--secondary);line-height:1.8;margin:18px 4px 0}
.duo-details{padding-top:120px;padding-bottom:45px}.duo-principles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:54px;margin-top:48px}
.principle-symbol{font-size:31px;font-weight:600;line-height:1;height:38px;display:flex;align-items:center;color:var(--secondary);letter-spacing:-.07em}
.principle-columns{gap:4px}.principle-columns i{border:2px solid currentColor;width:20px;height:30px;border-radius:5px}
.duo-principles h3{font-size:20px;letter-spacing:-.025em;margin:18px 0 12px}
.duo-principles p{font-size:15px;line-height:1.85;color:var(--secondary);margin:0}
.duo-faq{margin-top:48px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:14px;line-height:1.8}
.duo-faq summary{display:flex;justify-content:space-between;align-items:center;gap:20px;cursor:pointer;padding:22px 0;font-weight:600;list-style:none}
.duo-faq summary::-webkit-details-marker{display:none}.duo-faq summary>span{font-size:22px;color:var(--secondary);transition:transform .2s}.duo-faq[open] summary>span{transform:rotate(45deg)}
.duo-faq>div{max-width:65em;color:var(--secondary);padding-bottom:16px}.duo-faq summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
.duo-link{display:inline-flex;min-height:44px;align-items:center;color:var(--accent);font-size:13px;margin-top:10px;gap:7px}
.product-availability{font-size:12px;line-height:1.7;color:var(--secondary);margin:12px 0 0}
@media(min-width:768px){.product-description span{display:block}}
@media(min-width:1200px){.product-family{grid-template-columns:repeat(7,minmax(0,1fr));width:min(1320px,100%);gap:18px}.product-family .store-link{padding-inline:10px;font-size:12px}.product-family h3{font-size:18px}}
@media(min-width:768px) and (max-width:1199px){.product-family{display:flex;justify-content:center;flex-wrap:wrap;width:100%;gap:42px 28px}.product-family .product-item{flex:0 0 calc((100% - 84px)/4)}.product-description{max-width:none}}
@media(max-width:767px){.product-family .duo-link,.product-family .product-availability{grid-column:2}.product-family .duo-link{margin-top:5px}}
.deck-family{padding-top:120px}.deck-family-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.deck-family article{background:var(--surface);padding:36px;border-radius:36px}
.deck-family h3{font-size:31px;margin:0 0 15px;letter-spacing:-.035em}.deck-family article p{font-size:16px;line-height:1.8;color:var(--secondary);margin:0 0 18px;max-width:30em}
.deck-family .text-button{font-size:14px;margin:0}
.deck-family .deck-family-grid article{display:flex;flex-direction:column;padding:0;overflow:hidden}
.deck-visual{margin:0;padding:32px 32px 0;aspect-ratio:1.46;display:flex;align-items:center}
.deck-visual img{width:100%;height:auto;max-height:100%;object-fit:contain;border-radius:15px;box-shadow:0 9px 22px -12px rgba(30,35,45,.35)}
.deck-card-copy{padding:28px 34px 34px;display:flex;flex-direction:column;align-items:flex-start;flex:1}
.deck-card-copy .deck-platform{font-size:12px;line-height:1.7;margin-bottom:12px}
.deck-card-copy h3{margin-bottom:15px}
.deck-card-copy>p:not([class]){font-size:15px;line-height:1.9;margin-bottom:22px;flex:1}
.deck-card-copy .product-availability{font-size:12px;line-height:1.7;margin-bottom:9px}
.duo-apps .duo-faq{margin-top:32px;border-bottom:0}
@media(max-width:767px){.deck-family-grid article{padding:0}.deck-visual{padding:23px 23px 0}.deck-card-copy{padding:22px 26px 28px}.deck-family-grid h3{font-size:29px}}
.duo-dialog{width:min(1200px,calc(100% - 40px));max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:30px;padding:25px;background:var(--page);color:var(--ink)}
.duo-dialog::backdrop{background:rgba(8,12,20,.72);backdrop-filter:blur(6px)}
.duo-dialog-top{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:20px}.duo-dialog h2{font-size:22px;margin:0;line-height:1.4}.duo-dialog-close{border:0;background:var(--surface);padding:12px 18px;border-radius:99px;min-height:44px;font-size:14px;white-space:nowrap}
.duo-dialog img{width:100%;height:auto;border-radius:16px}.duo-dialog>p{font-size:13px;color:var(--secondary);line-height:1.8;margin:18px 0 0}
/* Preserve original sections while tightening the long-page rhythm. */
.intro{padding-block:94px 35px}.medals-section{padding-top:90px}.site-header nav{gap:25px}.section-footnote{font-size:12px}
@media(min-width:768px) and (max-height:800px){.duo-hero{padding-top:24px}.duo-hero h2{font-size:60px}.duo-explorer{margin-top:17px}.fold-scene{width:min(520px,70svh);margin-block:14px 25px}.duo-hero-heading>p:not(.duo-eyebrow){margin-block:12px}.duo-eyebrow{margin-bottom:8px}}
@media(max-width:1023px){.duo-gallery-panel{gap:30px;padding:34px;min-height:380px}.duo-comparison article{padding:30px 28px}.duo-principles{gap:28px}.site-header nav{gap:18px}.wordmark span{display:none}.fold-toolbar{gap:12px}.duo-story,.duo-apps,.duo-details,.deck-family{padding-top:90px}}
@media(max-width:767px){
  .duo-hero{padding:32px 16px 25px}.duo-hero h2{font-size:clamp(33px,8.4vw,48px);line-height:1.2}.duo-hero h2 span{display:inline}.duo-eyebrow{font-size:13px;margin-bottom:12px}.duo-hero-heading>p:not(.duo-eyebrow){max-width:22em;margin:16px auto;font-size:15px}.duo-hero-actions{gap:24px}.duo-explorer{margin-top:22px}.fold-scene{width:min(560px,88vw);margin-top:22px;margin-bottom:30px}.fold-toolbar{border-radius:24px;max-width:430px;flex-wrap:wrap;gap:8px 14px;padding:9px 10px}.fold-presets{order:0}.fold-play{order:1}.fold-range-wrap{order:2;justify-content:center;flex-basis:100%}.fold-range-wrap input{width:calc(100% - 85px);max-width:280px}.fold-presets button{min-width:60px}.duo-state-copy{font-size:13px;max-width:26em;margin-top:16px}.fold-face{border-width:1.5px}.fold-left,.fold-right{border-radius:20px}.fold-left{border-top-right-radius:0;border-bottom-right-radius:0}.fold-right{border-top-left-radius:0;border-bottom-left-radius:0}.fold-inner img{border-radius:14px}
  .duo-story,.duo-apps,.duo-details,.deck-family{padding-top:72px}.duo-section-heading{margin-bottom:30px}.duo-section-heading h2,.duo-detail-lead h2{font-size:36px}.duo-section-heading>p,.duo-detail-lead>p{font-size:16px;margin-top:19px}.duo-comparison{grid-template-columns:1fr;gap:18px}.duo-comparison article{padding:28px;border-radius:28px}.duo-outer-frame{width:190px;margin-top:25px}.duo-flat-frame{margin-block:28px 0}.duo-feature-heading h3{font-size:26px}.duo-gallery-tabs{gap:6px;justify-content:flex-start}.duo-gallery-tabs button{font-size:13px;padding-inline:16px}.duo-gallery-panel{grid-template-columns:1fr;gap:25px;padding:28px 24px;border-radius:28px;min-height:0}.duo-gallery-copy h3{font-size:29px}.duo-gallery-copy>p{min-height:0;margin-block:17px 12px}.duo-gallery-media{padding:5px;border-radius:17px}.duo-gallery-media img{border-radius:12px}.duo-principles{grid-template-columns:1fr;gap:32px;margin-top:35px}.duo-principles article{position:relative;padding-left:64px}.principle-symbol{position:absolute;left:0;top:0}.duo-principles h3{margin:0 0 10px}.duo-principles p{max-width:30em}.deck-family-grid{grid-template-columns:1fr;gap:18px}.deck-family article{padding:30px;border-radius:28px}.duo-dialog{width:calc(100% - 24px);padding:18px;border-radius:24px}.duo-dialog h2{font-size:18px}.duo-dialog-close{padding-inline:13px}.intro{padding-top:65px}.medals-section{padding-top:60px}
}
@media(max-width:359px){.duo-hero h2{font-size:32px}.duo-hero{padding-inline:12px}.duo-gallery-tabs button{padding-inline:12px}.duo-comparison article{padding:24px}.duo-section-heading h2,.duo-detail-lead h2{font-size:32px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.duo-hero *, .duo-dialog *, .duo-apps *, .duo-faq *{animation:none!important;transition:none!important}.fold-device{transform:none!important}.fold-shadow{filter:none}}
@media(prefers-reduced-transparency:reduce){.site-header{background:var(--page);backdrop-filter:none;-webkit-backdrop-filter:none}.duo-dialog::backdrop{backdrop-filter:none;background:#17191e}}
@media(forced-colors:active){.fold-toolbar,.duo-gallery-panel,.duo-faq{border:1px solid CanvasText}.fold-presets button[aria-pressed=true],.duo-gallery-tabs button[aria-selected=true],.duo-app-picker button[aria-selected=true]{outline:2px solid Highlight}.fold-play{border:1px solid ButtonText}}

/* A continuous inner display has no decorative center crease when fully open. */
.fold-device[data-flat="true"] .fold-left{transform:translateZ(0)}
.fold-device[data-flat="true"] .fold-face{box-shadow:none}

/* Opacity/filter on a preserve-3d ancestor flattens the scene and reverses
   occlusion during app changes. Keep the device opaque while images preload. */
@media(prefers-reduced-motion:no-preference){.duo-outer-frame,.duo-flat-frame{transition:transform .55s var(--ease)}@media(hover:hover){.duo-compact:hover .duo-outer-frame,.duo-expansive:hover .duo-flat-frame{transform:translateY(-5px)}}}

/* Keep every primary fold control comfortably touchable on phones. */
.duo-app-picker button,.fold-presets button,.fold-play{min-height:44px}
.fold-range-wrap input{height:44px}

/* Visual product opening first, software catalog next, Duo as a later chapter. */
.product-overview{padding-block:96px 28px}
.product-overview h2{font-size:clamp(38px,4.3vw,62px);line-height:1.15;letter-spacing:-.045em}
.product-overview h2 span{color:var(--ink)}
.product-overview .product-heading p:last-child{font-size:17px;line-height:1.8;margin-top:23px}
.product-overview .product-family{margin-block:58px 24px}
#product-clawdeck>img,#product-aetherdeck>img{background:#fbfbfd}
.product-overview+.deck-family{padding-top:100px}
.duo-hero{padding-top:112px}
.duo-hero h2{margin:0;font-size:clamp(36px,4.2vw,58px);font-weight:760;line-height:1.2;letter-spacing:-.045em}
.duo-hero h2 span{color:var(--secondary)}
@media(max-width:767px){
  .product-overview{padding-block:66px 15px}
  .product-overview h2{font-size:clamp(35px,8.4vw,48px);line-height:1.18}
  .product-overview .section-label{font-size:13px;margin-bottom:17px}
  .product-overview .product-heading p:last-child{font-size:14px;line-height:1.8;margin-top:20px}
  .product-overview .product-family{margin-block:36px 18px}
  .product-overview+.deck-family{padding-top:60px}
  .duo-hero{padding-top:72px}
  .duo-hero h2{font-size:clamp(31px,8.2vw,40px)}
}
