/*
 * BrainyTech - Process story v3 (preview routes /onizleme/surec-3 and /onizleme/surec-3/storyboard).
 * One shared workspace, six scenes: .sv.k1 ... .sv.k6. Every piece (.e) sits at --x/--y/--w/--h with --o/--r/--s;
 * a scene only changes those values and the piece's surface (note → sketch → built), so the same rules
 * become the animation later (transitions are already declared).
 * Orange = the client (You); navy = BrainyTech. Tokens only.
 * Composition follows the component width: wide (2:1 stage, caption on the left) / narrow (caption on top, 4:5 stage).
 */
.sv{position:relative;container:sv/inline-size;color:var(--bt-ink)}
.sv-c{position:relative;aspect-ratio:2/1;container-type:inline-size}
/* Dark theme: the scene is made of paper objects (notes, screens, phone), so
   the canvas keeps its light palette on its own paper board. The board grows
   outward with a spread shadow so no scene coordinate moves. */
[data-theme="dark"] .sv{background:var(--c-paper);border-radius:14px;box-shadow:0 0 0 clamp(10px,2cqw,26px) var(--c-paper);--bt-ink:var(--c-navy);--bt-ink2:var(--c-ink2);--bt-hair:rgba(10,44,91,.16);--bt-tint:rgba(10,44,91,.07);--bt-surface:var(--c-paper);--bt-sand:var(--c-paper2)}

/* ── caption: one title, one sentence ── */
.sv-cap{position:absolute;left:0;top:4%;width:29%;z-index:3}
.sv .kick{color:var(--bt-ink2);justify-content:flex-start;text-align:left}
.sv-cap h3{margin-top:1.4cqw;font-size:3.1cqw;font-weight:800;letter-spacing:-.035em;line-height:1}
.sv-p{margin-top:1.3cqw;font-size:max(13px,1.2cqw);line-height:1.5;color:var(--bt-ink2);max-width:22em}
.sv-ticks{display:flex;gap:.45cqw;margin-top:2cqw}
.sv-ticks i{width:2.2cqw;height:3px;border-radius:2px;background:var(--bt-hair)}
.sv-ticks i.done{background:var(--bt-ink2)}
.sv-ticks i.on{background:var(--c-signal);width:4cqw}

/* ── every piece ── */
.e{position:absolute;box-sizing:border-box;left:var(--x);top:var(--y);width:var(--w,auto);height:var(--h,auto);
  opacity:calc(var(--o,0) * var(--d,1));transform:rotate(var(--r,0deg)) scale(var(--s,1));
  transition:left .9s var(--bt-ease),top .9s var(--bt-ease),width .9s var(--bt-ease),height .9s var(--bt-ease),
  transform .9s var(--bt-ease),opacity .6s ease,background-color .6s ease,border-color .6s ease,box-shadow .6s ease,font-size .9s var(--bt-ease)}

/* path */
.rt{height:.35cqw;border-radius:99px;background:var(--bt-hair)}
.rt i{position:absolute;left:0;top:0;bottom:0;width:calc(var(--p,0) * 100%);border-radius:inherit;background:var(--bt-ink);transition:width 1s var(--bt-ease)}
.rt::before,.rt::after{content:"";position:absolute;top:50%;width:1.1cqw;height:1.1cqw;margin-top:-.55cqw;border-radius:50%;background:var(--bt-ink)}
.rt::before{left:-.3cqw}
.rt::after{right:-.3cqw;background:var(--c-paper);border:.3cqw solid var(--bt-ink);box-sizing:border-box}
.rs,.re,.lab{font:500 .85cqw/1 var(--bt-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--bt-ink2);white-space:nowrap}

/* notes: the client's paper (orange tape = theirs) */
.sv .n{display:grid;align-content:center;padding:1.3cqw 1.4cqw;border-radius:4px;background:var(--c-white);border:1.5px solid transparent;
  box-shadow:0 1.2cqw 2.4cqw -1.2cqw rgba(10,44,91,.28);font-size:1.25cqw;font-weight:600;letter-spacing:-.01em;line-height:1.25;color:var(--bt-ink)}
.sv .n::before{content:"";position:absolute;left:50%;top:-.5cqw;width:3.6cqw;height:1cqw;margin-left:-1.8cqw;background:var(--c-signal);opacity:.85;transform:rotate(-2deg);transition:opacity .4s ease}
.sv .n>*{grid-area:1/1;transition:opacity .45s ease}
.sv .n .w,.sv .n .bar,.sv .n .bars,.sv .n u{opacity:0}
.sv .n1{font-size:1.55cqw}

/* BrainyTech's questions */
.sv .q{padding:.55cqw 1cqw;border-radius:99px;border:1.5px solid var(--bt-ink);background:var(--c-paper);font-size:1cqw;font-weight:600;color:var(--bt-ink);white-space:nowrap}
.sv .q::before{content:"";display:inline-block;width:.6cqw;height:.6cqw;margin-right:.6cqw;border-radius:50%;background:var(--bt-ink);vertical-align:.08em}

/* screens (sketch → built) */
.scr{border-radius:8px;border:1.5px dashed var(--bt-ink2);background:transparent}
.scr>*,.n2 .bar,.n2 .bars{position:absolute;transition:background-color .6s ease,border-color .6s ease,opacity .45s ease}
.scr .bar,.n2 .bar{left:0;right:0;top:0;height:11%;border-bottom:1.5px dashed var(--bt-ink2);border-radius:7px 7px 0 0}
.scr i{left:10%;height:5%;border-radius:3px;background:var(--bt-tint)}
.scr i:nth-of-type(1){top:20%;width:55%}
.scr i:nth-of-type(2){top:31%;width:75%;height:16%}
.scr i:nth-of-type(3){top:53%;width:75%;height:16%}
.scr i:nth-of-type(4){top:78%;width:38%;height:8%;border-radius:99px}
.ar{font-size:1.6cqw;font-weight:600;color:var(--bt-ink2)}
.lk{height:0;border-top:1.5px dashed var(--bt-ink2)}

/* the client's marks */
.sv .ok{padding:.75cqw 1.3cqw;border-radius:var(--ctl-r,8px);background:var(--c-signal-fill);color:var(--c-white);font-size:1.1cqw;font-weight:700;white-space:nowrap;box-shadow:0 .8cqw 1.6cqw -.8cqw rgba(10,44,91,.4)}
.cm{padding:1cqw 1.3cqw;border-radius:10px;background:var(--c-white);border:1.5px solid var(--c-signal);box-shadow:0 1.2cqw 2.4cqw -1.2cqw rgba(10,44,91,.3);font-size:1.15cqw;font-weight:600;line-height:1.3}
.cm em,.cur em{display:block;font:600 .8cqw/1 var(--bt-mono);font-style:normal;letter-spacing:.08em;text-transform:uppercase;color:var(--c-signal);margin-bottom:.5cqw}
.cm::before{content:"";position:absolute;left:46%;top:-.75cqw;width:1.3cqw;height:1.3cqw;background:inherit;border-left:1.5px solid var(--c-signal);border-top:1.5px solid var(--c-signal);transform:rotate(45deg)}
.pv{display:flex;align-items:center;gap:.8cqw;padding:.8cqw 1.3cqw;border-radius:99px;background:var(--c-white);border:1.5px solid var(--c-signal);font-size:1.05cqw;font-weight:600;white-space:nowrap}
.pv svg{width:1.7cqw;fill:none;stroke:var(--c-signal);stroke-width:2}

/* use case */
.sv .sp{left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.sv .sp path{fill:none;stroke:var(--c-signal);stroke-width:2.5;stroke-dasharray:1 6;stroke-linecap:round;vector-effect:non-scaling-stroke}
.spm{display:none}
.ck{width:2cqw;height:2cqw;display:grid;place-items:center;border-radius:50%;background:var(--c-signal-fill);color:var(--c-white);font-size:1.1cqw;font-weight:800}
.sv .rg{width:4.6cqw;height:4.6cqw;border-radius:50%;border:.35cqw solid var(--c-signal);box-shadow:0 0 0 1cqw color-mix(in srgb,var(--c-signal) 15%,transparent)}
.gp{padding:.6cqw 1.1cqw;border-radius:99px;background:var(--bt-ink);color:var(--c-paper);font-size:1cqw;font-weight:600;white-space:nowrap}
.gp b{color:var(--c-signal);font-weight:700}

/* product, starting pile */
.pf{border-radius:12px;background:var(--c-white);box-shadow:0 3cqw 6cqw -3cqw rgba(10,44,91,.45)}
.pf b{position:absolute;left:0;right:0;top:0;height:6%;border-radius:12px 12px 0 0;background:var(--bt-ink)}
.pf em{position:absolute;right:1.4cqw;top:1.1%;padding:.35cqw .9cqw;border-radius:99px;background:var(--c-signal-fill);color:var(--c-white);font:600 .8cqw/1 var(--bt-mono);font-style:normal;letter-spacing:.08em;text-transform:uppercase}
.gh i{position:absolute;width:42%;height:34%;border-radius:2px;background:var(--c-white);box-shadow:0 .4cqw .8cqw -.4cqw rgba(10,44,91,.3)}
.gh i::before{content:"";position:absolute;left:35%;top:-6%;width:30%;height:14%;background:var(--c-signal)}
.gh i:nth-child(1){left:0;top:4%;transform:rotate(-6deg)}
.gh i:nth-child(2){left:40%;top:0;transform:rotate(5deg)}
.gh i:nth-child(3){left:12%;top:30%;transform:rotate(3deg)}
.gh i:nth-child(4){left:52%;top:32%;transform:rotate(-4deg)}
.gh i:nth-child(5){left:30%;top:56%;width:30%;height:24%;transform:rotate(7deg)}
.gh span{position:absolute;left:0;bottom:-8%;font:500 .8cqw/1 var(--bt-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--bt-ink2);white-space:nowrap}

/* cursors */
.cur{z-index:5;display:flex;align-items:flex-start;gap:.3cqw}
.cur svg{width:1.6cqw;flex:none;filter:drop-shadow(0 .2cqw .3cqw rgba(10,44,91,.3))}
.cur em{margin:1.3cqw 0 0;padding:.45cqw .8cqw;border-radius:99px;color:var(--c-white)}
.cY svg{fill:var(--c-signal)}.cY em{background:var(--c-signal-fill)}
.cB svg{fill:var(--bt-ink)}.cB em{background:var(--bt-ink)}

/* ── surfaces per scene ── */
/* sketch (scene 3): the first-release notes open into dashed parts */
.sv.k3 :is(.n1,.n2,.n3){background:transparent;box-shadow:none;border:1.5px dashed var(--bt-ink2);border-radius:8px}
.sv:is(.k3,.k4,.k5,.k6) :is(.n1,.n2,.n3)::before{opacity:0}
.sv:is(.k3,.k4,.k5,.k6) :is(.n1,.n2,.n3) .t{opacity:0;position:absolute;left:0;top:0;width:100%}
.sv:is(.k3,.k4,.k5,.k6) :is(.n1,.n2,.n3) .w{opacity:1}
.sv:is(.k3,.k4,.k5,.k6) .n1 .w,.sv:is(.k3,.k4,.k5,.k6) .n3 .w{font-size:1.05cqw;color:var(--bt-ink2)}
.sv:is(.k3,.k4,.k5,.k6) .n2{display:block;padding:0}
.sv:is(.k3,.k4,.k5,.k6) .n2 .w{position:absolute;left:10%;top:20%;font-size:1cqw;color:var(--bt-ink2)}
.sv:is(.k3,.k4,.k5,.k6) .n2 .bar,.sv:is(.k3,.k4,.k5,.k6) .n2 .bars{opacity:1}
.n2 .bars{left:10%;right:10%;bottom:10%;height:52%;display:flex;align-items:flex-end;gap:8%}
.n2 .bars i{flex:1;border:1.5px dashed var(--bt-ink2);border-radius:3px 3px 0 0;transition:background-color .6s ease,border-color .6s ease}
.n2 .bars i:nth-child(1){height:38%}.n2 .bars i:nth-child(2){height:66%}.n2 .bars i:nth-child(3){height:50%}.n2 .bars i:nth-child(4){height:88%}
.n1 u{position:absolute;right:1.4cqw;top:50%;width:45%;height:30%;margin-top:-.8cqw;opacity:0;
  background:repeating-linear-gradient(90deg,currentColor 0 18%,transparent 18% 22%);color:var(--bt-tint);transition:opacity .45s ease}
.sv:is(.k3,.k4,.k5,.k6) .n1 u{opacity:1}
/* parked "later" notes: only the paper, no words */
.sv:is(.k3,.k4,.k5,.k6) :is(.n4,.n5) .t{opacity:0}
.sv:is(.k3,.k4,.k5,.k6) :is(.n4,.n5)::before{width:40%;margin-left:-20%;height:12%;top:-6%}

/* built (scenes 4-6): the same parts become real */
.sv:is(.k4,.k5,.k6) :is(.scr,.n2){background:var(--c-white);border:1.5px solid transparent;box-shadow:0 1.6cqw 3cqw -1.6cqw rgba(10,44,91,.35)}
.sv:is(.k4,.k5,.k6) :is(.scr,.n2) .bar{background:var(--bt-ink);border-bottom-color:transparent}
.sv:is(.k4,.k5,.k6) .scr i{background:color-mix(in srgb,var(--bt-ink) 10%,transparent)}
.sv:is(.k4,.k5,.k6) .scr i:nth-of-type(4){background:var(--bt-ink)}
.sv:is(.k4,.k5,.k6) .n2 .bars i{background:var(--bt-ink);border-color:transparent}
.sv:is(.k4,.k5,.k6) .n2 .bars i:nth-child(4){background:color-mix(in srgb,var(--bt-ink) 55%,var(--c-white))}
.sv:is(.k4,.k5,.k6) .n1{background:var(--bt-ink);border:1.5px solid transparent;border-radius:8px;box-shadow:0 1.6cqw 3cqw -1.6cqw rgba(10,44,91,.4)}
.sv:is(.k4,.k5,.k6) .n1 .w{color:var(--c-paper)}
.sv:is(.k4,.k5,.k6) .n1 u{color:color-mix(in srgb,var(--c-paper) 22%,transparent)}
.sv:is(.k4,.k5,.k6) .n3{background:var(--c-white);border:1.5px solid var(--bt-ink);border-radius:8px;box-shadow:none}
.sv:is(.k4,.k5,.k6) .n3 .w{color:var(--bt-ink)}
.sv:is(.k4,.k5,.k6) .lk{border-top:2px solid var(--bt-ink)}
.sv.k6 :is(.scr,.n2){box-shadow:none;border-color:transparent;border-radius:6px}
.sv.k6 :is(.scr,.n2) .bar{opacity:0}
.sv.k6 .n2{background:color-mix(in srgb,var(--bt-ink) 5%,var(--c-white))}
.sv.k6 .n3{padding:.4cqw .8cqw}

/* ═════ WIDE: positions per scene (x, y, w, h in % of the 2:1 stage) ═════ */
/* 1 · listening: the client's scattered notes, BrainyTech's questions */
.k1 .n1{--x:40%;--y:13%;--w:19%;--h:26%;--r:-3deg;--o:1}
.k1 .n2{--x:62%;--y:7%;--w:16%;--h:22%;--r:2deg;--o:1}
.k1 .n3{--x:81%;--y:19%;--w:16%;--h:24%;--r:-2deg;--o:1}
.k1 .n4{--x:48%;--y:52%;--w:17%;--h:22%;--r:2deg;--o:1}
.k1 .n5{--x:70%;--y:56%;--w:13%;--h:18%;--r:5deg;--o:1}
.k1 .q1{--x:39%;--y:43%;--o:1;--r:-2deg}
.k1 .q2{--x:62%;--y:33%;--o:1;--r:1deg}
.k1 .q3{--x:80%;--y:46%;--o:1;--r:-1deg}
.k1 .cB{--x:58%;--y:40%;--o:1}
.k1 .cY{--x:80%;--y:70%;--o:1}

/* 2 · the path: first release above it, later below; approval */
.k2 .l1{--x:37%;--y:14%;--o:1}
.k2 .l2{--x:37%;--y:70%;--o:1}
.k2 .n1{--x:37%;--y:21%;--w:17%;--h:28%;--o:1}
.k2 .n2{--x:56%;--y:21%;--w:17%;--h:28%;--o:1}
.k2 .n3{--x:75%;--y:21%;--w:17%;--h:28%;--o:1}
.k2 .n4{--x:37%;--y:76%;--w:15%;--h:16%;--o:.6}
.k2 .n5{--x:54%;--y:76%;--w:13%;--h:16%;--o:.6}
.k2 .rt{--x:37%;--y:57%;--w:57%;--o:1;--p:.04}
.k2 .rs{--x:36.4%;--y:61%;--o:1}
.k2 .re{--x:91.5%;--y:61%;--o:1}
.k2 .q1{--x:41%;--y:34%;--s:.4}.k2 .q2{--x:60%;--y:34%;--s:.4}.k2 .q3{--x:79%;--y:34%;--s:.4}
.k2 .ok{--x:77%;--y:66%;--o:1}
.k2 .cY{--x:84.5%;--y:70.5%;--o:1}
.k2 .cB{--x:66%;--y:44%;--o:1}

/* 3 · design: screens, report screen, shared record, link; the client's comment merges two screens */
.k3 .sA{--x:37%;--y:9%;--w:13%;--h:45%;--o:1}
.k3 .sB{--x:52.5%;--y:9%;--w:13%;--h:45%;--o:1}
.k3 .ar1{--x:50.4%;--y:28%;--o:1}
.k3 .ar2{--x:65.9%;--y:28%;--o:1}
.k3 .n2{--x:68%;--y:9%;--w:13%;--h:45%;--o:1}
.k3 .n1{--x:37%;--y:63%;--w:44%;--h:12%;--o:1}
.k3 .n3{--x:86%;--y:63%;--w:12%;--h:12%;--o:1}
.k3 .lk{--x:81%;--y:69%;--w:5%;--o:1}
.k3 .cm{--x:40%;--y:47%;--w:22%;--o:1}
.k3 .cY{--x:59%;--y:58%;--o:1}
.k3 .cB{--x:78%;--y:40%;--o:1}
.k3 .rt,.k4 .rt,.k5 .rt{--x:37%;--y:90%;--w:61%;--o:1}
.k3 .rt{--p:.2}.k4 .rt{--p:.62}.k5 .rt{--p:.86}
.k3 .rs,.k4 .rs,.k5 .rs{--x:36.4%;--y:93.5%;--o:1}
.k3 .re,.k4 .re,.k5 .re{--x:95.5%;--y:93.5%;--o:1}
.k3 .l2,.k4 .l2,.k5 .l2{--x:86%;--y:8%;--o:1}
.k3 .n4,.k4 .n4,.k5 .n4{--x:86%;--y:14%;--w:9%;--h:13%;--r:-3deg;--o:.6}
.k3 .n5,.k4 .n5,.k5 .n5{--x:88.5%;--y:31%;--w:8%;--h:12%;--r:4deg;--o:.6}

/* 4 · building: a code layer behind the screen; parts start working one by one, each with its status */
.cd{border-radius:8px;background:var(--bt-ink);overflow:hidden;box-shadow:0 1.6cqw 3cqw -1.6cqw rgba(10,44,91,.45)}
.cd b{position:absolute;left:0;right:0;top:0;height:9%;border-bottom:1px solid color-mix(in srgb,var(--c-paper) 14%,transparent)}
.cd b::before{content:"";position:absolute;left:5%;top:50%;width:.55cqw;height:.55cqw;margin-top:-.275cqw;border-radius:50%;
  background:color-mix(in srgb,var(--c-paper) 35%,transparent);box-shadow:.95cqw 0 0 color-mix(in srgb,var(--c-paper) 35%,transparent),1.9cqw 0 0 color-mix(in srgb,var(--c-paper) 35%,transparent)}
.cd i{position:absolute;left:calc(7% + var(--in,0) * 7%);height:2.6%;width:var(--lw,40%);border-radius:2px;
  background:linear-gradient(90deg,color-mix(in srgb,var(--c-paper) 70%,transparent) 0 var(--kw,22%),transparent var(--kw,22%) calc(var(--kw,22%) + 5%),color-mix(in srgb,var(--c-paper) 26%,transparent) calc(var(--kw,22%) + 5%))}
.cd i:nth-of-type(1){top:16%;--lw:46%}
.cd i:nth-of-type(2){top:24%;--in:1;--lw:58%;--kw:30%}
.cd i:nth-of-type(3){top:32%;--in:2;--lw:40%}
.cd i:nth-of-type(4){top:40%;--in:2;--lw:52%;--kw:40%}
.cd i:nth-of-type(5){top:48%;--in:1;--lw:22%;--kw:60%}
.cd i:nth-of-type(6){top:58%;--lw:38%}
.cd i:nth-of-type(7){top:66%;--in:1;--lw:62%;--kw:26%}
.cd i:nth-of-type(8){top:74%;--in:2;--lw:34%}
.cd i:nth-of-type(9){top:82%;--in:1;--lw:44%;--kw:34%}
.cd i:nth-of-type(10){top:90%;--lw:14%;--kw:100%}
.stt{display:flex;align-items:center;gap:.5cqw;padding:.4cqw .85cqw;border-radius:99px;background:var(--c-white);border:1.5px solid var(--bt-ink);
  font:600 .72cqw/1 var(--bt-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--bt-ink);white-space:nowrap;z-index:2}
.stt i{width:.65cqw;height:.65cqw;border-radius:50%;border:1.5px solid var(--bt-ink);box-sizing:border-box}
.st1 i{background:var(--bt-ink)}
.st2 i{background:linear-gradient(90deg,var(--bt-ink) 50%,transparent 50%)}
.st3{border-style:dashed;border-color:var(--bt-ink2);color:var(--bt-ink2)}
.st3 i{border-style:dashed;border-color:var(--bt-ink2)}
.scr .cr{left:47%;top:56%;width:2px;height:10%;background:var(--bt-ink);opacity:0}
/* surfaces: the screen is filled in, the report is half built, the system link is still to come */
.sv.k4 .sA i:is(:nth-of-type(2),:nth-of-type(3)){background:var(--c-white);border:1.5px solid color-mix(in srgb,var(--bt-ink) 22%,transparent)}
.sv.k4 .sA i:is(:nth-of-type(2),:nth-of-type(3))::before{content:"";position:absolute;left:5%;top:38%;height:24%;width:var(--vw,46%);border-radius:2px;background:color-mix(in srgb,var(--bt-ink) 75%,transparent)}
.sv.k4 .sA i:nth-of-type(3){--vw:34%;border-color:var(--bt-ink)}
.sv.k4 .sA .cr{opacity:1;left:calc(10% + 75% * .39);top:57%;height:12%}
.sv.k4 .n2 .bars i:nth-child(4){background:transparent;border:1.5px dashed var(--bt-ink2)}
.sv.k4 .lk{border-top:1.5px dashed var(--bt-ink2)}
.sv.k4 .n3{border-style:dashed;border-color:var(--bt-ink2)}
.k4 .cd{--x:34%;--y:4%;--w:21%;--h:46%;--r:-2deg;--o:1}
.k4 .sA{--x:45%;--y:12%;--w:20.5%;--h:43%;--o:1}
.k4 .sB{--x:45%;--y:12%;--w:20.5%;--h:43%;--o:0}
.k5 .sA{--x:37%;--y:9%;--w:28.5%;--h:45%;--o:1}
.k5 .sB{--x:37%;--y:9%;--w:28.5%;--h:45%;--o:0}
.k4 .ar2,.k5 .ar2{--x:65.9%;--y:28%;--o:1}
.k4 .n2,.k5 .n2{--x:68%;--y:9%;--w:13%;--h:45%;--o:1}
.k4 .n1,.k5 .n1{--x:37%;--y:63%;--w:44%;--h:12%;--o:1}
.k4 .n3,.k5 .n3{--x:86%;--y:63%;--w:12%;--h:12%;--o:1}
.k4 .lk,.k5 .lk{--x:81%;--y:69%;--w:5%;--o:1}
.k4 .st1{--x:57.5%;--y:9.6%;--o:1}
.k4 .st2{--x:70%;--y:6.6%;--o:1}
.k4 .st3{--x:87%;--y:60.6%;--o:1}
.k4 .pv{--x:37%;--y:79%;--o:1}
.k4 .cY{--x:52%;--y:82%;--o:1}
.k4 .cB{--x:35.5%;--y:40%;--o:1}
.sv.k4 .cB svg{stroke:var(--c-paper);stroke-width:1.5}
.sv.k4 .cB em{box-shadow:0 0 0 1.5px var(--c-paper)}

/* 5 · verifying: a use case runs through; a gap is found and fixed */
.k5 .spd{--o:1}
.k5 .ck1{--x:46%;--y:43%;--o:1}
.k5 .ck2{--x:57%;--y:65%;--o:1}
.k5 .rg{--x:72.2%;--y:31%;--o:1}
.k5 .gp{--x:63%;--y:79%;--o:1}
.k5 .cY{--x:40%;--y:48%;--o:1}
.k5 .cB{--x:75.5%;--y:41%;--o:1}

/* 6 · live: one action travels through the whole - the phone sends, the shared record carries,
   the office screen shows it as new, the report grows, the current system syncs. Field, office, management. */
.sv .ph{border-radius:1.6cqw;background:var(--c-white);border:2px solid var(--bt-ink);box-shadow:0 2.4cqw 4.4cqw -2.4cqw rgba(10,44,91,.5)}
.sv .ph>*{position:absolute;left:10%;right:10%}
.sv .ph b{top:3%;left:38%;right:38%;height:2.2%;border-radius:99px;background:color-mix(in srgb,var(--bt-ink) 22%,transparent)}
.sv .ph i{height:9%;border-radius:6px;background:var(--c-white);border:1.5px solid color-mix(in srgb,var(--bt-ink) 22%,transparent)}
.sv .ph i::before{content:"";position:absolute;left:8%;top:40%;height:20%;width:55%;border-radius:2px;background:color-mix(in srgb,var(--bt-ink) 75%,transparent)}
.sv .ph i:nth-of-type(1){top:12%}
.sv .ph i:nth-of-type(2){top:25%}.sv .ph i:nth-of-type(2)::before{width:38%}
.sv .ph .pb{top:40%;height:9%;display:grid;place-items:center;border-radius:6px;background:var(--c-signal-fill);color:var(--c-white);font-size:.95cqw;font-weight:700}
.sv .ph .pt{top:54%;left:14%;right:14%;padding:.5cqw 0;text-align:center;border-radius:99px;background:var(--bt-ink);color:var(--c-paper);font-size:.8cqw;font-weight:600;white-space:nowrap}
.fl{left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:1}
.fl path{fill:none;stroke:var(--c-signal);stroke-width:2.5;stroke-dasharray:1 6;stroke-linecap:round;vector-effect:non-scaling-stroke}
.flm{display:none}
.nw{padding:.3cqw .7cqw;border-radius:99px;background:var(--c-signal-fill);color:var(--c-white);font:600 .7cqw/1 var(--bt-mono);letter-spacing:.08em;text-transform:uppercase;z-index:2}
.nt{display:flex;align-items:center;gap:.7cqw;padding:.75cqw 1.2cqw;border-radius:10px;background:var(--bt-ink);color:var(--c-paper);font-size:1cqw;font-weight:600;white-space:nowrap;z-index:3;
  box-shadow:0 1.4cqw 2.6cqw -1.2cqw rgba(10,44,91,.55)}
.nt i{width:.75cqw;height:.75cqw;border-radius:50%;background:var(--c-signal);box-shadow:0 0 0 .35cqw color-mix(in srgb,var(--c-signal) 30%,transparent)}
.sy{font:600 .75cqw/1 var(--bt-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--bt-ink);white-space:nowrap}
.sv .pp{display:flex;align-items:center;gap:.55cqw;padding:.3cqw .9cqw .3cqw .3cqw;border-radius:99px;background:var(--c-white);border:1.5px solid var(--bt-hair);
  font-size:.95cqw;font-weight:600;color:var(--bt-ink);white-space:nowrap;z-index:2;box-shadow:0 .6cqw 1.2cqw -.6cqw rgba(10,44,91,.3)}
.sv .pp i{width:1.7cqw;height:1.7cqw;display:grid;place-items:center;border-radius:50%;background:var(--bt-ink);color:var(--c-paper);font-size:.8cqw;font-weight:700;font-style:normal}
.sv .p1 i{background:var(--c-signal-fill);color:var(--c-white)}
/* surfaces: the screen becomes a list of records, the newest one in the client orange */
.sv.k6 .sA i{left:5%;width:90%;height:15%;border-radius:6px;background:var(--c-white);border:1.5px solid color-mix(in srgb,var(--bt-ink) 12%,transparent)}
.sv.k6 .sA i:nth-of-type(1){top:7%;border-color:var(--c-signal);background:color-mix(in srgb,var(--c-signal) 8%,var(--c-white))}
.sv.k6 .sA i:nth-of-type(2){top:26%}
.sv.k6 .sA i:nth-of-type(3){top:45%}
.sv.k6 .sA i:nth-of-type(4){top:64%;width:90%;height:15%;border-radius:6px;background:var(--c-white)}
.sv.k6 .sA i::before{content:"";position:absolute;left:3.5%;top:50%;width:1.4cqw;height:1.4cqw;margin-top:-.7cqw;border-radius:50%;background:color-mix(in srgb,var(--bt-ink) 22%,transparent)}
.sv.k6 .sA i::after{content:"";position:absolute;left:14%;top:28%;width:46%;height:44%;
  background:linear-gradient(var(--bt-ink) 0 30%,transparent 30% 62%,color-mix(in srgb,var(--bt-ink) 22%,transparent) 62% 100%)}
.sv.k6 .sA i:nth-of-type(1)::before{background:var(--c-signal)}
.sv.k6 .sA i:nth-of-type(3)::after{width:38%}.sv.k6 .sA i:nth-of-type(4)::after{width:52%}
.sv.k6 .n2 .bars i:nth-child(4){background:var(--c-signal);height:100%}
.sv.k6 .n1{border-radius:8px}
.k6 .pf{--x:36%;--y:7%;--w:40%;--h:58%;--o:1}
.k6 .sA{--x:37.5%;--y:13%;--w:24%;--h:50%;--o:1}
.k6 .sB{--x:37.5%;--y:13%;--w:24%;--h:50%;--o:0}
.k6 .n2{--x:62.5%;--y:13%;--w:12.5%;--h:50%;--o:1}
.k6 .ph{--x:80.5%;--y:6%;--w:13%;--h:52%;--o:1}
.k6 .n1{--x:36%;--y:74%;--w:48%;--h:9%;--o:1}
.k6 .n3{--x:88%;--y:73.5%;--w:10%;--h:10%;--o:1}
.k6 .n3 .w{font-size:.85cqw}
.k6 .lk{--x:84%;--y:78.5%;--w:4%;--o:1}
.k6 .fld{--o:1}
.k6 .nw{--x:56.4%;--y:17.4%;--o:1}
.k6 .nt{--x:39%;--y:-1%;--o:1}
.k6 .sy{--x:88.6%;--y:86.5%;--o:1}
.k6 .p1{--x:85%;--y:61%;--o:1}
.k6 .p2{--x:37%;--y:67%;--o:1}
.k6 .p3{--x:62.5%;--y:67%;--o:1}
.k6 .gh{--x:4%;--y:72%;--w:9%;--h:18%;--o:1}
.k6 .l2{--x:16.5%;--y:74%;--o:1}
.k6 .n4{--x:16.5%;--y:79%;--w:4%;--h:7%;--r:-4deg;--o:.6}
.k6 .n5{--x:21.5%;--y:80%;--w:3.6%;--h:6%;--r:5deg;--o:.6}

/* ═════ NARROW (phone): caption on top, a tall stage, its own composition ═════ */
@container sv (max-width: 640px){
  .sv-cap{position:static;width:auto;margin-bottom:5cqw}
  .sv-cap h3{margin-top:3cqw;font-size:8.6cqw}
  .sv-p{margin-top:2.6cqw;font-size:4cqw}
  .sv-ticks{gap:1.4cqw;margin-top:4cqw}
  .sv-ticks i{width:7cqw}.sv-ticks i.on{width:12cqw}
  .sv-c{aspect-ratio:4/5}

  .rt{height:1cqw}
  .rt::before,.rt::after{width:3cqw;height:3cqw;margin-top:-1.5cqw}
  .rs,.re,.lab{font-size:max(10px,2.7cqw)}
  .sv .n{font-size:3.6cqw;padding:3cqw 3.4cqw}
  .sv .n1{font-size:4.2cqw}
  .sv .n::before{width:9cqw;height:2.4cqw;margin-left:-4.5cqw;top:-1.2cqw}
  .sv .q{font-size:max(10px,3cqw);padding:1.4cqw 2.6cqw}
  .sv .q::before{width:1.6cqw;height:1.6cqw;margin-right:1.4cqw}
  .ar{font-size:4cqw}
  .sv .ok{font-size:max(10px,3.4cqw);padding:2cqw 3.4cqw}
  .cm{font-size:max(10px,3.5cqw);padding:2.6cqw 3.2cqw}
  .cm em,.cur em{font-size:max(10px,2.4cqw);margin-bottom:1.2cqw}
  .cm::before{width:3.4cqw;height:3.4cqw;top:-1.9cqw}
  .pv{font-size:max(10px,3.2cqw);padding:2.2cqw 3.4cqw;gap:2cqw}
  .pv svg{width:4.6cqw}
  .spd{display:none}.spm{display:block}
  .ck{width:5.6cqw;height:5.6cqw;font-size:3.2cqw}
  .sv .rg{width:12cqw;height:12cqw;border-width:1cqw}
  .gp{font-size:max(10px,3.1cqw);padding:1.8cqw 3cqw}
  .pf em{font-size:max(10px,2.4cqw);right:3cqw;padding:1cqw 2.4cqw}
  .cur svg{width:4.6cqw}
  .cur em{margin-top:3.6cqw;padding:1.2cqw 2.2cqw}
  .sv:is(.k3,.k4,.k5,.k6) .n1 .w,.sv:is(.k3,.k4,.k5,.k6) .n3 .w{font-size:3.2cqw}
  .sv:is(.k3,.k4,.k5,.k6) .n2 .w{font-size:3cqw}

  /* 1 */
  .k1 .n1{--x:5%;--y:3%;--w:54%;--h:20%;--r:-3deg}
  .k1 .n2{--x:61%;--y:2%;--w:35%;--h:19%;--r:3deg}
  .k1 .n3{--x:6%;--y:34%;--w:42%;--h:19%;--r:2deg}
  .k1 .n4{--x:52%;--y:30%;--w:44%;--h:20%;--r:-2deg}
  .k1 .n5{--x:27%;--y:63%;--w:40%;--h:14%;--r:4deg}
  .k1 .q1{--x:7%;--y:25%}
  .k1 .q2{--x:47%;--y:53%}
  .k1 .q3{--x:6%;--y:84%}
  .k1 .cB{--x:38%;--y:44%}
  .k1 .cY{--x:68%;--y:74%}

  /* 2: the path runs down the left edge */
  .k2 .rt{--x:7.5%;--y:6%;--w:56%;--r:90deg}
  .k2 .rt{transform-origin:0 50%}
  .k2 .rs{--x:11%;--y:1%}
  .k2 .re{--x:11%;--y:53%}
  .k2 .l1{--x:74%;--y:1%}
  .k2 .n1{--x:14%;--y:6%;--w:60%;--h:13%}
  .k2 .n2{--x:14%;--y:21%;--w:60%;--h:13%}
  .k2 .n3{--x:14%;--y:36%;--w:60%;--h:13%}
  .k2 .q1{--x:40%;--y:10%}.k2 .q2{--x:40%;--y:25%}.k2 .q3{--x:40%;--y:40%}
  .k2 .ok{--x:44%;--y:52%}
  .k2 .cY{--x:74%;--y:56%}
  .k2 .cB{--x:62%;--y:24%}
  .k2 .l2{--x:14%;--y:68%}
  .k2 .n4{--x:14%;--y:73%;--w:40%;--h:14%}
  .k2 .n5{--x:56%;--y:73%;--w:36%;--h:14%}

  /* 3 */
  .k3 .sA{--x:4%;--y:3%;--w:28%;--h:36%}
  .k3 .sB{--x:36%;--y:3%;--w:28%;--h:36%}
  .k3 .ar1{--x:32.4%;--y:18%}
  .k3 .ar2{--x:64.4%;--y:18%}
  .k3 .n2{--x:68%;--y:3%;--w:28%;--h:36%}
  .k3 .cm{--x:12%;--y:33%;--w:58%}
  .k3 .cY{--x:66%;--y:44%}
  .k3 .cB{--x:78%;--y:30%}
  .k3 .n1,.k4 .n1,.k5 .n1{--x:4%;--y:56%;--w:62%;--h:11%}
  .k3 .n3,.k4 .n3,.k5 .n3{--x:73%;--y:56%;--w:23%;--h:11%}
  .k3 .lk,.k4 .lk,.k5 .lk{--x:66%;--y:61.5%;--w:7%}
  .k3 .rt,.k4 .rt,.k5 .rt{--x:5%;--y:95%;--w:90%}
  .k3 .rs,.k4 .rs,.k5 .rs,.k3 .re,.k4 .re,.k5 .re{--o:0}
  .k3 .l2,.k4 .l2,.k5 .l2{--x:4%;--y:73%}
  .k3 .n4,.k4 .n4,.k5 .n4{--x:4%;--y:78%;--w:15%;--h:10%;--r:-3deg}
  .k3 .n5,.k4 .n5,.k5 .n5{--x:21%;--y:79%;--w:13%;--h:9%;--r:4deg}

  /* 4 */
  .stt{font-size:max(10px,2.3cqw);padding:1.1cqw 2.2cqw;gap:1.3cqw}
  .stt i{width:1.8cqw;height:1.8cqw}
  .k4 .cd{--x:3%;--y:1%;--w:44%;--h:38%}
  .k4 .sA,.k4 .sB{--x:15%;--y:8%;--w:49%;--h:31%}
  .k5 .sA,.k5 .sB{--x:4%;--y:3%;--w:60%;--h:36%}
  .k4 .ar2,.k5 .ar2{--x:64.4%;--y:18%}
  .k4 .n2,.k5 .n2{--x:68%;--y:3%;--w:28%;--h:36%}
  .k4 .st1{--x:38%;--y:6%}
  .k4 .st2{--x:68.5%;--y:.6%}
  .k4 .st3{--x:71%;--y:53.6%}
  .k4 .pv{--x:40%;--y:76%}
  .k4 .cY{--x:62%;--y:83%}
  .k4 .cB{--x:4%;--y:35%}

  /* 5 */
  .k5 .ck1{--x:24.5%;--y:29.5%}
  .k5 .ck2{--x:31%;--y:58.7%}
  .k5 .rg{--x:76%;--y:16%}
  .k5 .gp{--x:40%;--y:73%}
  .k5 .spm{--o:1}
  .k5 .cY{--x:8%;--y:30%}
  .k5 .cB{--x:82%;--y:28%}

  /* 6 */
  .fld{display:none}.flm{display:block}
  .sv .ph{border-radius:4.4cqw}
  .sv .ph .pb{font-size:max(10px,2.6cqw)}
  .sv .ph .pt{font-size:max(10px,2.2cqw);padding:1.4cqw 0;left:8%;right:8%}
  .nw{font-size:max(10px,2cqw);padding:.9cqw 1.8cqw}
  .nt{font-size:max(10px,2.9cqw);padding:2cqw 3cqw;gap:2cqw}
  .nt i{width:2cqw;height:2cqw}
  .sy{font-size:max(10px,2.3cqw)}
  .sv .pp{font-size:max(10px,2.7cqw);gap:1.4cqw;padding:.8cqw 2.4cqw .8cqw .8cqw}
  .sv .pp i{width:4.6cqw;height:4.6cqw;font-size:max(10px,2.3cqw)}
  .sv.k6 .sA i::before{width:3.4cqw;height:3.4cqw;margin-top:-1.7cqw}
  .k6 .pf{--x:3%;--y:5%;--w:63%;--h:46%}
  .k6 .sA,.k6 .sB{--x:5%;--y:10.5%;--w:38%;--h:39%}
  .k6 .n2{--x:44.5%;--y:10.5%;--w:19.5%;--h:39%}
  .k6 .ph{--x:70%;--y:5%;--w:27%;--h:49%}
  .k6 .n1{--x:3%;--y:62%;--w:94%;--h:7%}
  .sv.k6 .n3{padding:2cqw 3cqw}
  .gh span{font-size:2.4cqw}
  .k6 .n3{--x:61%;--y:74%;--w:36%;--h:8%}
  .k6 .n3 .w{font-size:2.8cqw}
  .k6 .lk{--o:0}
  .k6 .flm{--o:1}
  .k6 .nw{--x:30%;--y:13%}
  .k6 .nt{--x:9%;--y:1%}
  .k6 .sy{--x:62%;--y:85%}
  .k6 .p1{--x:76.5%;--y:55.6%}
  .k6 .p2{--x:5%;--y:53%}
  .k6 .p3{--x:44.5%;--y:53%}
  .k6 .gh{--x:6%;--y:75%;--w:26%;--h:15%}
  .k6 .l2,.k6 .n4,.k6 .n5,.k6 .cB,.k6 .cY{--o:0}
  /* in motion the helpers below the shared record are hidden: the stage ends with its content */
  .sv-c{transition:margin-bottom .9s var(--bt-ease)}
  .sv.play.k6 .sv-c{margin-bottom:-32%}
}

/* ═════ Final motion trial (page only): Story.js adds .play to .sv.k6 and walks data-f 0..5;
   data-at keeps the moments already played. One event in front at a time, the rest steps back. ═════ */
.fl .tr{display:none;stroke-dasharray:100;stroke-dashoffset:100;stroke-linecap:round;vector-effect:none}
.fld .tr{stroke-width:.5}.flm .tr{stroke-width:.7}
.sv.play .fl .tr{display:inline;stroke-dasharray:100;transition:stroke-dashoffset 1.2s cubic-bezier(.6,0,.3,1),opacity .6s ease}
.sv.play:not([data-at~="2"]) .tr1,.sv.play:not([data-at~="4"]) .tr2{opacity:0}
.sv.play[data-at~="4"] .tr1{opacity:.3}
.sv.play[data-f="5"] .tr{opacity:0}
.sv.play .fl path:not(.tr){opacity:.3}
.sv.play[data-at~="2"] .tr1,.sv.play[data-at~="4"] .tr2{stroke-dashoffset:0}
/* helpers stay out of the motion */
.sv.play :is(.gh,.l2,.n4,.n5,.sy,.lk){--d:0}
.sv.play .n3{--d:0}
/* who is in front */
.sv.play :is(.pf,.sA,.n2,.ph,.n1,.pp,.nw){--d:.3}
.sv.play[data-f="0"] .ph,
.sv.play[data-f="1"] :is(.ph,.p1),
.sv.play[data-f="2"] .n1,
.sv.play[data-f="3"] :is(.pf,.sA,.p2,.nw),
.sv.play[data-f="4"] :is(.n2,.p3),
.sv.play[data-f="5"] :is(.pf,.sA,.n2,.ph,.n1,.pp,.nw){--d:1}
.sv.play[data-f="2"] .ph,.sv.play[data-f="4"] .pf{--d:.6}
/* 1 · send */
.sv .ph .pt{transition:opacity .4s ease .45s,transform .5s var(--bt-ease) .45s}
.sv.play:not([data-at~="1"]) .ph .pt{opacity:0;transform:translateY(40%)}
.sv.play[data-f="1"] .ph .pb{animation:svPress .5s .1s both}
@keyframes svPress{45%{transform:scale(.92);filter:brightness(.88)}}
/* 3 · the record arrives at the office: the list makes room, the new row lands on top */
.sv.play .sA i{transition:top .7s var(--bt-ease),opacity .5s ease,transform .7s var(--bt-ease)}
.sv.play:not([data-at~="3"]) .sA i:nth-of-type(1){opacity:0;transform:translateY(-30%) scale(.96)}
.sv.play:not([data-at~="3"]) .sA i:nth-of-type(2){top:7%}
.sv.play:not([data-at~="3"]) .sA i:nth-of-type(3){top:26%}
.sv.play:not([data-at~="3"]) .sA i:nth-of-type(4){top:45%}
.sv.play:not([data-at~="3"]) :is(.nt,.nw),.sv.play[data-at~="4"] .nt{--d:0}
.sv.play .nw{transition-delay:.5s}
/* 4 · the report updates */
.sv.play .n2 .bars i{transition:height .9s var(--bt-ease) .5s,background-color .5s ease .5s}
.sv.play:not([data-at~="4"]) .n2 .bars i:nth-child(4){height:56%;background:var(--bt-ink)}

@media (prefers-reduced-motion:reduce){.e,.e *{transition:none!important}}

/* ═════ Placement on the page ═════ */
.stp{padding-top:24px;padding-bottom:150px}
.stp-in{background:linear-gradient(90deg,var(--bt-hair),transparent 85%) top left/100% 1px no-repeat;padding-top:72px}

/* ═════ Flow trial page (/onizleme/surec-3/akis) ═════ */
.sv-cap{transition:opacity .26s ease}
.sv-cap.swap{opacity:0}
.fw{margin-top:40px}
.fw-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.fw-chip,.fw-re{display:inline-flex;align-items:center;gap:10px;padding:9px 16px;border-radius:99px;border:1px solid var(--bt-hair);
  background:var(--bt-surface);color:var(--bt-ink2);font-family:inherit;font-size:14px;font-weight:600;line-height:1;cursor:pointer}
.fw-chip b{font:500 11px/1 var(--bt-mono);color:var(--bt-ink2)}
.fw-chip.on{border-color:var(--c-signal);color:var(--bt-ink)}
.fw-chip.on b{color:var(--c-signal)}
.fw-re{margin-left:auto;border-color:transparent;background:var(--bt-ink);color:var(--bt-surface)}
.fw .fw-row{margin-top:24px}
.fw-cmp{margin-top:96px}
.fw-cmp h2{font-size:clamp(22px,2.2vw,30px);font-weight:800;letter-spacing:-.03em}

/* ═════ Storyboard board ═════ */
.sb{padding:56px 0 120px}
.sb-h{max-width:52em}
.sb-h h1{font-size:clamp(30px,3vw,44px);font-weight:800;letter-spacing:-.04em}
.sb-h p{margin-top:10px;color:var(--bt-ink2)}
.sb-row{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:28px 40px;margin-top:64px;padding-top:40px;border-top:1px solid var(--bt-hair)}
.sb-lb{display:block;margin-bottom:12px;font:500 11px/1 var(--bt-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--bt-ink2)}
.sb-ph{padding:26px 18px 22px;border-radius:28px;border:1px solid var(--bt-hair);background:var(--bt-surface)}
.sb-notes{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.sb-notes b{display:block;margin-bottom:6px;font:500 11px/1 var(--bt-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--c-signal)}
.sb-notes p{font-size:15px;line-height:1.5;color:var(--bt-ink)}
@media (max-width:900px){.sb-row{grid-template-columns:1fr}.sb-notes{grid-template-columns:1fr 1fr}}
