/* Redesign 2 trio, "One call. Three screens." (trio3d.js builds the parts).
   Each phone is a 3D phone with a back. All three start face-down; when the scroll reaches a phone's step it plays:
   caller types the conversation, your phone buzzes and wakes with the alert, the digest phone gets unlocked and used. */

#trioRow .phone{backface-visibility:hidden}
#trioRow .tilt3d .tilt{transition:transform .9s cubic-bezier(.45,.05,.25,1)}
#trioRow .tilt3d .tilt.snap{transition:none}

/* Back: near-black matte glass, a camera bump that's mostly black with faint reflections, and the TextTriage logo
   engraved: very light, cut into the surface rather than sitting on it */
.p-back{position:absolute;inset:0;backface-visibility:hidden;overflow:hidden;
  background:linear-gradient(160deg,#131516 0%,#0d0e0f 55%,#0a0b0b 100%);box-shadow:inset 0 0 0 1px rgba(236,232,220,.045)}
.p-back .cam{position:absolute;left:7%;top:3.2%;width:40%;aspect-ratio:1;border-radius:25%;
  background:linear-gradient(150deg,#0c0d0e 0%,#070808 60%,#050505 100%);
  box-shadow:inset 0 0 0 1px rgba(236,232,220,.07),inset 1px 1px 0 rgba(255,255,255,.04),0 1px 3px rgba(0,0,0,.8)}
.p-back .cam i{position:absolute;width:41%;aspect-ratio:1;border-radius:50%;
  background:radial-gradient(circle at 50% 50%,#030404 0,#000 55%,#0b0c0d 70%,#020202 100%);
  box-shadow:0 0 0 1.5px #000,0 0 0 2.5px #1d1f21,inset 0 0 0 1px rgba(255,255,255,.04)}
/* a slight reflection on each lens */
.p-back .cam i::after{content:"";position:absolute;left:24%;top:20%;width:30%;height:22%;border-radius:50%;
  background:radial-gradient(closest-side,rgba(190,214,232,.32),rgba(190,214,232,0));transform:rotate(-30deg)}
.p-back .cam i::before{content:"";position:absolute;right:26%;bottom:24%;width:10%;height:10%;border-radius:50%;background:rgba(214,190,150,.22)}
.p-back .cam i:nth-child(1){left:7%;top:7%}.p-back .cam i:nth-child(2){left:7%;bottom:7%}.p-back .cam i:nth-child(3){right:7%;top:29.5%}
.p-back .cam b{position:absolute;right:13%;top:9%;width:12%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#3a3833,#1a1916 75%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}
.p-back .cam s{position:absolute;right:15%;bottom:13%;width:7%;aspect-ratio:1;border-radius:50%;background:#000;box-shadow:0 0 0 1px #1a1c1d}
/* engraved logo: pale and low contrast, a dark lip on the top-left inner edge and a faint catch of light bottom-right */
.p-back .mk{position:absolute;left:50%;top:50%;width:24%;aspect-ratio:1;translate:-50% -50%;opacity:.16;
  filter:grayscale(1) brightness(2.6) drop-shadow(-.6px -.6px 0 rgba(0,0,0,.9)) drop-shadow(.6px .6px 0 rgba(255,255,255,.35))}
.p-back .sheen{display:none}

/* Solo: every phone rests dim and small, face-down. While one is face-up (.lit, set by trio3d.js as it flips up)
   it steps forward, brighter and bigger; it dims and recedes again as it's set back down. It grows by real layout
   width (an animated --w), not a scale, so its screen text is drawn at full size and stays sharp. */
@property --w{syntax:'<length>';inherits:true;initial-value:0px}
#trioRow .tilt3d .tilt{will-change:auto}
.trio-row figure{transition:opacity .5s ease,transform .7s cubic-bezier(.2,.8,.2,1),--w .7s cubic-bezier(.2,.8,.2,1)}
@media (min-width:761px){
  .trio-row figure{position:relative;--w:min(clamp(150px,12.5vw,190px),calc((100svh - 380px) * .31))}
  .trio-row figure.lit{z-index:2;--w:min(clamp(210px,18.5vw,270px),calc((100svh - 380px) * .41))}
  .trio-row figure:not(.lit){opacity:.2;transform:scale(.92)}
  .trio-row .phone{--w:inherit}
}
@media (max-width:760px){
  .trio-row figure:not(.act){opacity:0}
  .trio-row figure.act:not(.lit){opacity:.35}
}

/* buzz while face-down */
#trioRow .tilt3d.buzz{animation:trio-buzz .06s linear 8 alternate}
@keyframes trio-buzz{from{translate:-2px 0}to{translate:2px 0}}

/* Caller: messages arrive one by one, sitting on the compose field */
#trioRow .thread>.st:not(.on){display:none}
#trioRow .thread>.st.on{animation:tt-arrive .32s ease}

/* Your phone: screen off until it turns. Notifications arrive as full-width but skinny, blurred pills
   (locked, content hidden); when Face ID unlocks the phone they open up into focus. */
.scr-off{position:absolute;inset:0;z-index:8;background:#000;transition:opacity .7s ease;pointer-events:none}
#trioRow .mini-lock{gap:2.4cqw}
#trioRow .mini-lock .tn{margin-top:0;max-height:48cqw;overflow:hidden;transform:none;
  transition:max-height .5s cubic-bezier(.3,.9,.3,1),opacity .3s ease,transform .3s ease}
#trioRow .mini-lock .tn:not(.on){opacity:0;transform:translateY(-3cqw)}
#trioRow .mini-lock .tn.condensed{max-height:11.5cqw}
#trioRow .mini-lock .tn header,#trioRow .mini-lock .tn .nb{transition:filter .4s ease,opacity .4s ease}
#trioRow .mini-lock .tn.condensed header{filter:blur(1.6px);opacity:.75}
#trioRow .mini-lock .tn.condensed .nb{filter:blur(3px);opacity:.5}
#trioRow .mini-lock .tn .nb{display:block}
.mc header .ph-ic{display:grid;place-items:center;width:6.4cqw;height:6.4cqw;margin-left:0;border-radius:1.6cqw;background:#3d5244;flex:none}  /* sits at the left like the app icon; header spans otherwise get pushed right */
.mc .ph-ic svg{width:4.2cqw;height:4.2cqw;fill:#ECE8DC}
.mc .mct{display:block;font-weight:600;color:#ECE8DC;margin-bottom:.6cqw}
/* lock above the clock: closed, then the Face ID scan, then open */
.lkicon{position:relative;width:6cqw;height:6cqw;margin-top:2cqw;flex:none}
.lkicon svg{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:#ECE8DC;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:opacity .25s,transform .25s}
.lkicon .i-face,.lkicon .i-open{opacity:0}
.lkicon.scan .i-lock{opacity:0}.lkicon.scan .i-face{opacity:1;animation:trio-scan .7s ease-in-out}
.lkicon.open .i-lock,.lkicon.open .i-face{opacity:0}.lkicon.open .i-open{opacity:1}
@keyframes trio-scan{0%{transform:scale(.8);opacity:.4}50%{transform:scale(1.12);opacity:1}100%{transform:scale(1)}}
#trioRow .mini-lock .day{margin-top:1cqw}

/* Digest phone: lock screen, home screen, the TextTriage app (inbox, then the digest tab) */
.trio-dg .v{position:absolute;inset:0;padding-top:9.5cqw;display:flex;flex-direction:column}
.trio-dg .sb{z-index:9}
.v-lock{z-index:3;align-items:center;gap:3cqw;background:radial-gradient(120% 70% at 50% 0%,#17201C 0%,#0C110F 70%);transition:transform .55s cubic-bezier(.3,.7,.2,1)}
.v-lock.up{transform:translateY(-100%)}
.v-lock .day{font:500 4.6cqw/1 var(--body);color:#B9C0B9;margin-top:6cqw}
.v-lock .time{font:300 26cqw/1 var(--display);font-variation-settings:'wdth' 66;letter-spacing:-.03em;color:#ECE8DC}
.v-lock .notif{width:88%;margin-top:3cqw}
.v-lock .bar{position:absolute;bottom:3.6cqw;left:50%;width:34cqw;height:1.2cqw;margin-left:-17cqw;border-radius:9px;background:rgba(236,232,220,.55)}
.v-home{z-index:2;padding:12cqw 6cqw 0;background:radial-gradient(120% 80% at 25% 0%,#22322b 0%,#0e1512 65%)}
.v-home .grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6cqw 3cqw}
.app-ic{display:grid;justify-items:center;gap:1.6cqw;font-size:2.7cqw;color:#C9CCC6}
.app-ic i{width:15cqw;aspect-ratio:1;border-radius:3.8cqw;background:var(--c,#2a302d);transition:transform .15s}
.app-ic.tt i{display:grid;place-items:center;background:#0E1512;box-shadow:inset 0 0 0 .4cqw rgba(236,232,220,.14)}
.app-ic.tt svg{width:10cqw;height:10cqw}
.app-ic.press i{transform:scale(.86)}
.v-home .dock{position:absolute;left:4cqw;right:4cqw;bottom:4cqw;padding:3cqw;border-radius:8cqw;background:rgba(236,232,220,.09);display:flex;justify-content:space-around}
.v-home .dock i{width:14cqw;aspect-ratio:1;border-radius:3.6cqw;background:var(--c,#2a302d)}
.v-app{z-index:4;background:#0C110F;opacity:0;transform:scale(.12);transition:transform .45s cubic-bezier(.2,.8,.2,1),opacity .2s}
.v-app.open{opacity:1;transform:none}
.v-app .ah{display:flex;align-items:center;justify-content:space-between;padding:3cqw 5cqw 2cqw}
.v-app .ah b{font:700 6.4cqw/1 var(--body)}
.v-app .ah svg{width:7cqw;height:7cqw}
.v-app .panes{flex:1;position:relative;overflow:hidden}
.v-app .pane{position:absolute;inset:0;padding:0 5cqw;transition:opacity .25s}
.v-app .pane:not(.on){opacity:0}
.v-app .chips{display:flex;flex-wrap:wrap;gap:1.6cqw;margin:1cqw 0 3cqw}
.v-app .chips span{font:500 2.7cqw/1 var(--mono);padding:1.4cqw 2.2cqw;border-radius:99px;background:rgba(236,232,220,.08);color:#C9CCC6}
.v-app .chips span.u{background:rgba(224,106,80,.16);color:var(--urgent-text)}
.v-app .rows{list-style:none;margin:0;padding:0}
.v-app .rows li{display:grid;grid-template-columns:2.2cqw 1fr;gap:.8cqw 2.6cqw;padding:2.8cqw 0;border-top:1px solid rgba(236,232,220,.08)}
.v-app .rows li i{grid-row:1/span 2;width:2.2cqw;height:2.2cqw;border-radius:50%;margin-top:1cqw}
.v-app .rows b{font:600 3.6cqw/1.25 var(--body)}
.v-app .rows small{font:400 2.8cqw/1.3 var(--mono);color:#8C948C}
.v-app .dscroll{transition:transform 1.9s cubic-bezier(.45,.05,.25,1)}
.v-app .mail{padding:2cqw 0 6cqw}
.v-app .dstat{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:1cqw 0 2cqw;border-block:1px solid rgba(236,232,220,.08)}
.v-app .dstat span{display:grid;gap:1cqw;padding:3cqw 0;font-size:2.8cqw;color:#8C948C}
.v-app .dstat span:nth-child(even){padding-left:3cqw;border-left:1px solid rgba(236,232,220,.08)}
.v-app .dstat span:nth-child(n+3){border-top:1px solid rgba(236,232,220,.08)}
.v-app .dstat b{font:400 9cqw/1 var(--display);font-variation-settings:'wdth' 66;color:#ECE8DC}
.v-app .mail .foot{font:400 2.8cqw/1.4 var(--mono);color:#8C948C;margin-top:2cqw}
.v-app .tabs{display:flex;justify-content:space-around;padding:3cqw 2cqw 6cqw;border-top:1px solid rgba(236,232,220,.08);font:500 3cqw/1 var(--body);color:#8C948C}
.v-app .tabs span{padding:1.6cqw 2.4cqw;border-radius:99px;transition:background .2s,color .2s}
.v-app .tabs span.on{color:#0B0F0D;background:#ECE8DC}
/* touch: a fingertip ripple for taps, a dot that drags for the unlock swipe */
.tap{position:absolute;z-index:10;width:12cqw;height:12cqw;margin:-6cqw 0 0 -6cqw;border-radius:50%;background:rgba(236,232,220,.38);opacity:0;pointer-events:none}
.tap.go{animation:trio-tap .5s ease-out}
@keyframes trio-tap{0%{opacity:.95;transform:scale(.35)}100%{opacity:0;transform:scale(1.25)}}
.swipe{position:absolute;z-index:10;left:50%;bottom:6cqw;width:9cqw;height:9cqw;margin-left:-4.5cqw;border-radius:50%;background:rgba(236,232,220,.4);opacity:0;pointer-events:none}
.swipe.go{animation:trio-swipe .6s cubic-bezier(.3,.7,.2,1)}
@keyframes trio-swipe{0%{opacity:.9;transform:translateY(0)}100%{opacity:0;transform:translateY(-70cqw)}}
