/* Hero: made for iPhone Duo (2026-10-24). The Duo starts folded, its outer screen showing a real
   Worthzy reveal; scrolling swings the cover open toward you, like a book, and the inner screen
   steps through three real two-page screens. duo-hero.js drives every frame. */
.dx { position: relative; }
.dx-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.dx-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.dx-vign { position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse 70% 60% at 50% 48%, rgba(15,15,17,.3) 0%, rgba(15,15,17,.84) 100%); }
.dx-dim { position: absolute; inset: 0; z-index: -1; background: var(--ground); opacity: 0; }

.dx-copy { position: absolute; z-index: 10; display: flex; flex-direction: column; gap: 26px; }
.dx-copy h1 { margin: 0; font-weight: 800; line-height: .94; letter-spacing: -.045em; text-wrap: balance; font-size: clamp(56px, 6.4vw, 104px); }
.dx-copy .ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.dx-copy .ghost { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 6px; text-decoration: none; font-size: 16px; font-weight: 700; color: var(--lavender); }
.dx-copy .ghost svg { stroke: currentColor; }

.dx-stage { position: absolute; inset: 0; z-index: 5; pointer-events: none; perspective: 1600px; perspective-origin: 50% 40%; }
.dx-device { position: absolute; left: 0; top: 0; transform-style: preserve-3d; transform-origin: 0 0; will-change: transform; }
/* The open Duo, flat. A titanium rim (dark edge inside a bright one) and a black bezel, from SEENCAM. */
.dx-body { position: absolute; inset: 0; background: #040605;
  box-shadow: 0 0 0 var(--r1) #7F8481, 0 0 0 var(--r2) #D6D9D6, inset 0 0 0 1px rgba(255,255,255,.04), 0 50px 110px rgba(0,0,0,.65); }
.dx-scr { position: absolute; overflow: hidden; background: #262628; }
.dx-scr img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* The door: the left page on the hinge. Its inside is the screen's left half; its outside the folded phone. */
.dx-door { position: absolute; left: 0; top: 0; height: 100%; transform-origin: 100% 50%; transform-style: preserve-3d; will-change: transform; }
.dx-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.dx-face-in { background: #040605; overflow: hidden; box-shadow: 0 0 0 var(--r1) #7F8481, 0 0 0 var(--r2) #D6D9D6; clip-path: inset(-20% 0 -20% -20%); }
.dx-face-out { transform: rotateY(180deg); background: #040605;
  box-shadow: 0 0 0 var(--r1) #7F8481, 0 0 0 var(--r2) #D6D9D6, calc(var(--r2) * -1.4) 0 0 var(--r2) #A4A8A5, 0 30px 70px rgba(0,0,0,.6); }
.dx-cam { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2A3340, #06080A 60%); box-shadow: 0 0 0 2px #1A1D1F; }

.dx-cap { position: absolute; left: 50%; width: min(92vw, 820px); margin: 0; text-align: center; z-index: 12; pointer-events: none;
  font-weight: 800; font-size: clamp(30px, 4vw, 54px); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; opacity: 0; }
.dx-cue { position: absolute; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); width: 1px; height: 46px; z-index: 10;
  background: linear-gradient(180deg, rgba(198,194,242,.95), rgba(198,194,242,0)); animation: dxcue 1.8s var(--ease) infinite; }
@keyframes dxcue { 0% { transform: translateY(-10px) scaleY(.4); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(8px) scaleY(1); opacity: 0; } }
.dx-dots { position: absolute; right: clamp(12px, 2.4vw, 32px); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 15; }
.dx-dots span { display: block; width: 6px; height: 6px; border-radius: 3px; background: rgba(255,246,238,.28); transition: height .35s var(--ease), background .35s; }
.dx-dots span.on { height: 26px; background: var(--lavender); }

@media (max-width: 819px) {
  .dx-copy { gap: 22px; }
  .dx-copy h1 { font-size: clamp(42px, 11.5vw, 60px); }
}
@media (prefers-reduced-motion: reduce) { .dx-cue { animation: none; } }
