/* LOOM Studio — "It starts with a message": an animated WhatsApp chat that
   plays the studio process (share idea → craft concept → build it together). */
.loom-wa{
  position:relative; z-index:5; width:100%;
  display:flex; flex-direction:column; align-items:center;
  padding:8dvh 5dvw 9dvh;
  font-family:"neuehaasdisplayroman","Helvetica Neue",Arial,sans-serif;
}
.loom-wa__head{ text-align:center; max-width:780px; margin:0 auto 3dvh; }
.loom-wa__eyebrow{ display:inline-block; color:#a99cff; letter-spacing:3px; font-size:12px; text-transform:uppercase; margin-bottom:14px; }
.loom-wa__title{ color:#fff; font-size:clamp(28px,3.6dvw,52px); line-height:1.02; letter-spacing:-1px; margin:0; font-weight:400; }
.loom-wa__sub{ color:#ffffff80; font-size:16px; margin-top:14px; font-family:"neuehaasdisplaylight"; }

/* phone */
.loom-wa__phone{
  position:relative; height:min(78dvh,740px); width:auto; aspect-ratio:390/800;
  flex:0 0 auto;
  border-radius:48px; padding:12px; background:linear-gradient(150deg,#23202b,#0c0b12 60%);
  box-shadow:0 2px 4px #000,0 36px 90px -24px #5328ff77, inset 0 0 0 1.6px #ffffff1f;
}
.loom-wa__notch{ position:absolute; top:20px; left:50%; transform:translateX(-50%); width:32%; height:22px; background:#05050a; border-radius:0 0 16px 16px; z-index:6; }
.loom-wa__screen{ position:relative; width:100%; height:100%; min-height:0; overflow:hidden; border-radius:38px; background:#efeae2; display:flex; flex-direction:column; }

/* whatsapp header */
.wa-top{ flex:0 0 auto; background:#008069; color:#fff; display:flex; align-items:center; gap:10px; padding:46px 14px 12px; }
.wa-top .wa-back{ font-size:20px; opacity:.9; }
.wa-top .wa-av{ width:38px; height:38px; border-radius:50%; background:#20174e; display:flex; align-items:center; justify-content:center; font-size:15px; font-weight:700; color:#fff; flex:0 0 auto; letter-spacing:.5px; }
.wa-top .wa-meta{ display:flex; flex-direction:column; line-height:1.15; min-width:0; }
.wa-top .wa-name{ font-size:15px; font-weight:600; }
.wa-top .wa-status{ font-size:11.5px; opacity:.85; }
.wa-top .wa-icons{ margin-left:auto; display:flex; gap:16px; font-size:15px; opacity:.92; }

/* chat body */
.wa-body{
  flex:1 1 auto; min-height:0; overflow-y:auto; overflow-x:hidden; scroll-behavior:smooth; padding:14px 12px 16px; position:relative;
  -ms-overflow-style:none; scrollbar-width:none;
  display:flex; flex-direction:column; gap:8px;
  background-color:#efeae2;
  background-image:radial-gradient(#00000008 1px, transparent 1px);
  background-size:18px 18px;
}
.wa-body::-webkit-scrollbar{ width:0; height:0; display:none; }
.wa-day{ align-self:center; background:#ffffffcc; color:#54656f; font-size:10.5px; padding:4px 10px; border-radius:8px; margin-bottom:4px; box-shadow:0 1px 0 #0000000d; }
.wa-msg{
  max-width:78%; padding:7px 10px 8px; border-radius:12px; font-size:13.5px; line-height:1.32;
  font-family:"Helvetica Neue",Arial,sans-serif; color:#111b21; position:relative;
  opacity:0; transform:translateY(10px) scale(.96); transition:opacity .28s ease, transform .28s cubic-bezier(.2,.7,.3,1);
  box-shadow:0 1px .5px #0000001a; word-wrap:break-word;
}
.wa-msg.in{ align-self:flex-start; background:#fff; border-top-left-radius:3px; }
.wa-msg.out{ align-self:flex-end; background:#d9fdd3; border-top-right-radius:3px; }
.wa-msg.show{ opacity:1; transform:none; }
.wa-msg .wa-time{ display:block; text-align:right; font-size:9.5px; color:#667781; margin-top:2px; }
.wa-msg.out .wa-time::after{ content:" ✓✓"; color:#53bdeb; }
.wa-msg img{ display:block; width:100%; border-radius:9px; }
.wa-msg.pic{ padding:4px; max-width:62%; }
.wa-msg.pic .wa-time{ position:absolute; right:9px; bottom:8px; color:#fff; text-shadow:0 1px 3px #0006; margin:0; }

/* typing indicator */
.wa-typing{ align-self:flex-start; background:#fff; border-radius:12px; border-top-left-radius:3px; padding:11px 13px; display:flex; gap:4px; opacity:0; transform:translateY(8px); transition:opacity .2s; box-shadow:0 1px .5px #0000001a; }
.wa-typing.show{ opacity:1; transform:none; }
.wa-typing i{ width:7px; height:7px; border-radius:50%; background:#9aa6ad; animation:wa-bounce 1.2s infinite; }
.wa-typing i:nth-child(2){ animation-delay:.18s; } .wa-typing i:nth-child(3){ animation-delay:.36s; }
@keyframes wa-bounce{ 0%,60%,100%{ transform:translateY(0); opacity:.5; } 30%{ transform:translateY(-5px); opacity:1; } }

/* progress chips under the phone (the 3 steps) */
.loom-wa__steps{ display:flex; gap:10px; margin-top:26px; flex-wrap:wrap; justify-content:center; }
.wa-step{ display:flex; align-items:center; gap:8px; color:#ffffff80; font-size:13px; letter-spacing:.3px; border:1px solid #ffffff1f; border-radius:100px; padding:9px 15px; transition:all .35s ease; }
.wa-step b{ color:#a99cff; font-weight:400; }
.wa-step.on{ color:#fff; border-color:#ffffff66; background:#ffffff12; }
.wa-step.on b{ color:#fff; }

@media (max-width:768px){
  .loom-wa__phone{ height:min(72dvh,640px); }
}

/* typing indicator side (out = LOOM, right) */
.wa-typing.out{ align-self:flex-end; background:#d9fdd3; }
.wa-typing.in{ align-self:flex-start; }
