/* ---------- the kitchen planner: 2D, then 3D, then walk inside (one 9 s loop) ---------- */
.kp { --kp: 9s; }
.kp-tabs { display: flex; gap: 4px; margin-bottom: 6px; }
.kp-tabs b { padding: 3px 7px; border-radius: 6px; font-size: 9px; font-weight: 700; background: #e3e9f2; color: #4b5b70; }
.kp-tabs .t1 { animation: kp-t1 var(--kp) infinite; } .kp-tabs .t2 { animation: kp-t2 var(--kp) infinite; } .kp-tabs .t3 { animation: kp-t3 var(--kp) infinite; }
@keyframes kp-t1 { 0%, 31% { background: #0d1b30; color: #ffca08 } 33%, 100% { background: #e3e9f2; color: #4b5b70 } }
@keyframes kp-t2 { 0%, 32% { background: #e3e9f2; color: #4b5b70 } 34%, 64% { background: #0d1b30; color: #ffca08 } 66%, 100% { background: #e3e9f2; color: #4b5b70 } }
@keyframes kp-t3 { 0%, 65% { background: #e3e9f2; color: #4b5b70 } 67%, 98% { background: #0d1b30; color: #ffca08 } 100% { background: #e3e9f2; color: #4b5b70 } }
.kp-view { position: relative; height: 128px; overflow: hidden; border-radius: 8px; perspective: 520px; background: linear-gradient(#dfe7f1, #c7d3e3); }
.kp-floor { position: absolute; left: 50%; top: 50%; width: 180px; height: 108px; margin: -54px 0 0 -90px; border-radius: 4px; transform-style: preserve-3d;
  background: #f7f9fc; background-image: linear-gradient(#e4eaf2 1px, transparent 1px), linear-gradient(90deg, #e4eaf2 1px, transparent 1px); background-size: 12px 12px;
  box-shadow: 0 0 0 1px #b9c6d8; animation: kp-cam var(--kp) cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes kp-cam {
  0%, 26% { transform: none }
  36%, 58% { transform: rotateX(58deg) rotateZ(-32deg) scale(.95) }
  70%, 92% { transform: rotateX(78deg) rotateZ(-8deg) translateY(30px) scale(2.1) }
  100% { transform: none } }
.kp-wall { position: absolute; background: #8da0b8; transform-origin: bottom; }
.kp-wall.w1 { left: 0; top: 0; width: 100%; height: 4px; } .kp-wall.w2 { left: 0; top: 0; width: 4px; height: 100%; }
.kp-obj { position: absolute; display: grid; place-items: center; border-radius: 3px; background: linear-gradient(145deg, #dde5ef, #a9b9cd); box-shadow: 0 0 0 1px #7f93ad;
  transform-style: preserve-3d; animation: kp-lift var(--kp) cubic-bezier(.65, 0, .35, 1) infinite; }
.kp-obj i { font-style: normal; font-size: 7px; font-weight: 700; color: #33465f; white-space: nowrap; }
.kp-obj.o1 { left: 8px; top: 8px; width: 46px; height: 18px; } .kp-obj.o2 { left: 60px; top: 8px; width: 40px; height: 18px; background: linear-gradient(145deg, #3a4a60, #1f2b3b); }
.kp-obj.o2 i { color: #ffca08; } .kp-obj.o3 { left: 8px; top: 34px; width: 18px; height: 52px; } .kp-obj.o4 { left: 150px; top: 8px; width: 22px; height: 30px; }
.kp-obj.o5 { left: 66px; top: 50px; width: 60px; height: 30px; background: linear-gradient(145deg, #f3f6fa, #c6d3e2); }
@keyframes kp-lift { 0%, 26% { box-shadow: 0 0 0 1px #7f93ad } 36%, 92% { box-shadow: 0 0 0 1px #7f93ad, 2px 2px 0 #8fa3bb, 4px 4px 0 #8fa3bb, 6px 6px 0 #7c90a9, 8px 8px 0 #6e8299 } 100% { box-shadow: 0 0 0 1px #7f93ad } }

/* the websites card: catalogue, then planner (18 s) */
.wm-body.wm-two { position: relative; height: 206px; }
.wm-two .wm-page { position: absolute; inset: 10px 12px 14px; animation: wm-a 18s infinite; }
.wm-two .wm-plan { animation-name: wm-b; }
@keyframes wm-a { 0%, 46% { opacity: 1; transform: none } 50%, 96% { opacity: 0; transform: translateX(-12px) } 100% { opacity: 1 } }
@keyframes wm-b { 0%, 46% { opacity: 0; transform: translateX(12px) } 50%, 96% { opacity: 1; transform: none } 100% { opacity: 0 } }
.wm-two .wm-plan .kp { --kp: 9s; }
.wm-two .wm-plan .kp-floor, .wm-two .wm-plan .kp-obj, .wm-two .wm-plan .kp-tabs b { animation-delay: 9s; }

/* ---------- the hover preview by the cursor ---------- */
#work .help-card.wd-has { cursor: zoom-in; transition: border-color .2s, transform .2s; }
#work .help-card.wd-has:hover { border-color: #ffca0880; transform: translateY(-3px); }
.wd-pop { position: fixed; left: 0; top: 0; z-index: 90; width: 300px; pointer-events: none; opacity: 0; scale: .92; transform-origin: 0 0;
  transition: opacity .18s ease-out, scale .22s cubic-bezier(.23, 1, .32, 1); border-radius: 16px; padding: 8px; background: rgb(9 20 38 / .92);
  border: 1px solid #ffffff1f; box-shadow: 0 30px 60px -20px #000, 0 0 0 1px rgb(255 202 8 / .15); backdrop-filter: blur(10px); }
.wd-pop.on { opacity: 1; scale: 1; }
.wd-toggle { margin-top: 14px; padding: 9px 14px; border-radius: 999px; border: 1px solid #ffca0880; background: transparent; color: #ffca08; font: 600 13px/1 inherit; }
.wd-inline { margin-top: 12px; max-width: 320px; }

/* WhatsApp chats in the demos */
.wd-wa { border-radius: 12px; overflow: hidden; background: #0b141a; font-family: Manrope, Tahoma, Arial, sans-serif; }
.wd-wa__head { display: flex; align-items: center; gap: 8px; padding: 9px 11px; background: #1f2c34; color: #e9edef; font-size: 12px; }
.wd-wa__head b { flex: 1; }
.wd-av { width: 22px; height: 22px; border-radius: 50%; background: url(/assets/noahlabs-chat-avatar.png) center / cover; }
.wd-wa__body { display: flex; flex-direction: column; gap: 6px; padding: 10px; min-height: 150px; background: radial-gradient(#ffffff06 1px, transparent 1.2px) 0 0 / 12px 12px, #0b141a; }
.wd-m { max-width: 85%; padding: 6px 9px; border-radius: 8px; font-size: 11.5px; line-height: 1.45; color: #e9edef; opacity: 0; animation: wd-in 7s infinite both; }
.wd-m.me { align-self: flex-end; background: #005c4b; } .wd-m.bot { align-self: flex-start; background: #1f2c34; }
[dir="rtl"] .wd-m.me { align-self: flex-start; } [dir="rtl"] .wd-m.bot { align-self: flex-end; }
.wd-photo { display: flex; align-items: center; gap: 6px; } .wd-photo span { width: 34px; height: 26px; border-radius: 4px; background: linear-gradient(135deg, #8fb3cf, #3e6f99); }
.wd-chip, .wd-chips { align-self: center; opacity: 0; animation: wd-in 7s infinite both; }
.wd-chip { padding: 4px 9px; border-radius: 999px; background: rgb(255 202 8 / .14); border: 1px solid rgb(255 202 8 / .5); color: #ffe27a; font-size: 10.5px; font-weight: 700; }
.wd-chips { display: flex; gap: 6px; } .wd-chips span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; background: #1f2c34; color: #e9edef; font-size: 10.5px; }
.s1 { animation-delay: .2s } .s2 { animation-delay: 1.2s } .s3 { animation-delay: 2.6s } .s4 { animation-delay: 3.6s }
@keyframes wd-in { 0% { opacity: 0; transform: translateY(6px) } 6%, 88% { opacity: 1; transform: none } 96%, 100% { opacity: 0 } }
.wd-voice { display: flex; align-items: center; gap: 7px; } .wd-voice i { width: 0; height: 0; border-left: 7px solid #e9edef; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.wd-wave { display: inline-flex; gap: 2px; align-items: center; } .wd-wave b { width: 2px; height: 10px; border-radius: 2px; background: #9fd8c8; animation: wd-wv 1s ease-in-out infinite; }
.wd-wave b:nth-child(3n) { animation-delay: .2s; height: 14px; } .wd-wave b:nth-child(4n) { animation-delay: .4s; height: 6px; }
@keyframes wd-wv { 50% { transform: scaleY(.4) } }

/* hiring: the chat and a sheet that gains a row */
.wd-hr { display: grid; gap: 8px; } .wd-hr .wd-wa__body { min-height: 96px; }
.wd-sheet { border-radius: 10px; overflow: hidden; background: #fff; color: #1b2733; font: 600 10.5px/1.3 Manrope, Tahoma, Arial, sans-serif; }
.wd-sheet__head { display: flex; align-items: center; gap: 6px; padding: 6px 9px; background: #e7f3ec; color: #185c37; }
.wd-row { display: grid; grid-template-columns: 1fr 1.3fr .5fr; gap: 6px; padding: 5px 9px; border-top: 1px solid #edf0f4; }
.wd-row.h { color: #6b7785; } .wd-row.s3 { opacity: 0; animation: wd-in 7s infinite both; animation-delay: 2.6s; background: #fff8d6; }

/* planner demo frame */
.wd-plan { border-radius: 12px; padding: 8px; background: #f4f6fa; } .wd-plan .kp-view { height: 150px; }
.wd-plan__bar { display: flex; justify-content: space-between; margin-bottom: 6px; font: 800 11px/1 Manrope, Tahoma, Arial, sans-serif; color: #0d1b30; } .wd-plan__bar em { font-style: normal; color: #6b7785; }

/* tracker demo */
.wd-trk { border-radius: 12px; overflow: hidden; background: #f4f6fa; color: #0d1b30; font: 600 10.5px/1.3 Manrope, Tahoma, Arial, sans-serif; }
.wd-trk__bar { display: flex; gap: 6px; padding: 8px; background: #0f1c30; }
.wd-search { flex: 1; padding: 4px 8px; border-radius: 6px; background: #1b2b44; color: #9fb0c8; } .wd-search em { font-style: normal; color: #fff; }
.wd-search i { display: inline-block; width: 1px; height: 10px; margin-inline-start: 2px; background: #ffca08; animation: wd-caret 1s steps(1) infinite; vertical-align: middle; }
@keyframes wd-caret { 50% { opacity: 0 } }
.wd-filter { padding: 4px 8px; border-radius: 6px; background: #ffca08; color: #1b1606; }
.wd-trk__row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 6px 9px; border-top: 1px solid #e3e8f0; } .wd-trk__row.h { color: #6b7785; border-top: 0; }
.st { position: relative; height: 16px; } .st b { position: absolute; inset: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 9.5px; }
.st b:first-child { background: #e3e9f2; color: #4b5b70; } .st b + b { background: #d8f5e3; color: #146c3a; opacity: 0; animation: wd-st 7s infinite; }
.s-b b + b { animation-delay: 1.4s; } .s-c b { background: #fff2c2 !important; color: #7a5a00 !important; }
@keyframes wd-st { 0%, 30% { opacity: 0 } 36%, 90% { opacity: 1 } 100% { opacity: 0 } }
.wd-trk__foot { padding: 7px 9px; text-align: end; color: #146c3a; border-top: 1px solid #e3e8f0; }

.wd-still .wd-m, .wd-still .wd-chip, .wd-still .wd-chips, .wd-still .wd-row.s3 { opacity: 1; animation: none; }
@media (prefers-reduced-motion: reduce) {
  .kp-floor, .kp-obj, .kp-tabs b, .wm-two .wm-page, .wd-wave b, .st b + b { animation: none !important; }
  .wm-two .wm-plan { display: none; }
}

/* Our Work: the card itself turns into its example */
#work .help-card.wd-has { position: relative; overflow: hidden; cursor: pointer; }
#work .help-card.wd-has:hover { transform: none; }
#work .help-card.wd-has > :not(.wd-face) { transition: opacity .25s ease, transform .35s cubic-bezier(.23, 1, .32, 1); }
#work .help-card.wd-on > :not(.wd-face) { opacity: 0; transform: translateY(-10px); }
.wd-face { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; pointer-events: none;
  background: radial-gradient(80% 70% at 30% 0%, #1d3b62, transparent 70%), linear-gradient(160deg, #142b48, #0d1d33);
  opacity: 0; transform: scale(.94) rotateX(8deg); transform-origin: 50% 100%; transition: opacity .3s ease, transform .45s cubic-bezier(.23, 1, .32, 1); }
.wd-face > * { width: min(320px, 100%); }
#work .help-card.wd-on .wd-face { opacity: 1; transform: none; }
#work .help-card.wd-on { border-color: #ffca0880; box-shadow: 0 0 0 1px #ffca0833, 0 24px 50px -30px #ffca0855; }
.wd-pop, .wd-toggle, .wd-inline { display: none !important; }
@media (prefers-reduced-motion: reduce) { .wd-face, #work .help-card.wd-has > :not(.wd-face) { transition: none; } }

/* the example fills the whole card, edge to edge */
.wd-face { padding: 0; place-items: stretch; background: #0b141a; }
.wd-face > * { width: 100%; height: 100%; border-radius: 0; }
.wd-face .wd-wa { display: flex; flex-direction: column; }
.wd-face .wd-wa__head { padding: 14px 16px; font-size: 14px; }
.wd-face .wd-av { width: 28px; height: 28px; }
.wd-face .wd-wa__body { flex: 1; padding: 16px; gap: 9px; min-height: 0; }
.wd-face .wd-m { font-size: 13.5px; padding: 8px 12px; }
.wd-face .wd-chip, .wd-face .wd-chips span { font-size: 12px; }
.wd-face .wd-hr { display: flex; flex-direction: column; gap: 0; }
.wd-face .wd-hr .wd-wa { flex: 1; height: auto; }
.wd-face .wd-sheet { border-radius: 0; font-size: 12px; }
.wd-face .wd-plan { display: flex; flex-direction: column; padding: 16px; background: #f4f6fa; }
.wd-face .wd-plan .kp { flex: 1; display: flex; flex-direction: column; }
.wd-face .wd-plan .kp-view { flex: 1; height: auto; }
.wd-face .wd-plan .kp-floor { width: 240px; height: 144px; margin: -72px 0 0 -120px; }
.wd-face .wd-plan .kp-tabs b { font-size: 11px; padding: 4px 9px; }
.wd-face .wd-trk { display: flex; flex-direction: column; font-size: 12.5px; }
.wd-face .wd-trk__bar { padding: 14px 16px; }
.wd-face .wd-trk__row { padding: 12px 16px; }
.wd-face .wd-trk__foot { margin-top: auto; padding: 12px 16px; }
.wd-face .st { height: 20px; } .wd-face .st b { font-size: 11px; }

/* the planner project: catalogue first (9 s), then the planner (9 s) */
.wd-face .wd-plan.wd-two { position: relative; display: block; padding: 0; }
.wd-two .wd-pg { position: absolute; inset: 16px; display: flex; flex-direction: column; animation: wm-a 18s infinite; }
.wd-two .wd-pg-plan { animation-name: wm-b; }
.wd-two .wd-pg-plan .kp { flex: 1; display: flex; flex-direction: column; }
.wd-two .wd-pg-plan .kp-view { flex: 1; height: auto; }
.wd-two .wd-pg-plan .kp-floor, .wd-two .wd-pg-plan .kp-obj, .wd-two .wd-pg-plan .kp-tabs b { animation-delay: 9s; }
.wd-big { color: #0d1b30 !important; background: #ffca08; padding: 3px 8px; border-radius: 999px; font-style: normal; }
.wd-cat-tools { display: flex; gap: 8px; margin-bottom: 10px; }
.wd-cat-search { flex: 1; display: flex; align-items: center; gap: 4px; padding: 7px 10px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px #e3e8f0; color: #4b5b70; font: 600 11.5px/1 Manrope, Tahoma, Arial, sans-serif; }
.wd-cat-search i { width: 1px; height: 12px; background: #0d1b30; animation: wd-caret 1s steps(1) infinite; }
.wd-cat-cart { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 8px; background: #ffca08; color: #1b1606; font-weight: 800; }
.wd-cat-grid { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; align-content: start; }
.wd-cat-grid .wm-img { height: 46px; }
.wd-cat-grid .wm-item { color: #0d1b30; font-family: Manrope, Tahoma, Arial, sans-serif; }
.wd-cat-grid .wm-name { color: #0d1b30; font-size: 11.5px; }
.wd-cat-cart .wm-count { color: #ffca08; background: #0d1b30; }
