/* /personal — page content only. Header, footer, buttons and How it works come from style.css as on the home page.
   Figma: Quackle file, frame 336:21338 (1400 wide). Design coordinates below are that frame's, in px. */

/* Hero: title, then the characters band. The band's box is design x -45..1440 and y 320..790,
   so every character stays whole: the blue one starts at x≈-44 and the yellow one ends at x≈1421. */
.phero h1{position:relative;z-index:1;text-align:center;font-size:72px;line-height:.9;letter-spacing:-.05em;margin:0;padding:85px 20px 0}
.pstage{position:relative;width:min(100%,1485px);margin:-20px auto 0;container-type:inline-size}
.part{position:relative;aspect-ratio:1485/470}
.part .a{position:absolute;left:calc((var(--x) + 45) * 100% / 1485);top:calc((var(--y) - 320) * 100% / 470);width:calc(var(--w) * 100% / 1485);height:auto;max-width:none;display:block}
.part .mul{mix-blend-mode:multiply}
.pcta{text-align:center}
.pcta p{margin:0;color:rgba(0,0,0,.4);letter-spacing:-.05em;line-height:1}
.pcta .plead{font-size:24px;max-width:320px;margin:0 auto}
.pcta .pnote{font-size:16px;margin-top:10px}
.pcta .btn{margin-top:22px}
@media(max-width:1100px){
 .pcta{padding:24px var(--page-x,20px) 0}
}
@media(min-width:1101px){
 /* Overlay on the band, centred under the black character (Figma 336:21465, 370:21735, 338:21499). */
 .pcta{--u:calc(100cqw / 1485);position:absolute;left:calc(654 * var(--u));top:calc(288 * var(--u));transform:translateX(-50%);display:flex;flex-direction:column;align-items:center}
 .pcta .plead{font-size:calc(33 * var(--u));width:calc(390 * var(--u));max-width:none}
 .pcta .pnote{font-size:calc(18 * var(--u));margin-top:calc(10 * var(--u))}
 .pcta .btn{margin-top:calc(22 * var(--u));height:calc(57 * var(--u));box-sizing:border-box;padding:0 calc(52 * var(--u));font-size:calc(22 * var(--u))}
}
@media(min-width:861px) and (max-width:1100px){.phero h1{font-size:min(72px,6.4vw)}}
.phero h1 br.mb{display:none}
@media(max-width:860px){.phero h1{font-size:min(64px,calc((100vw - 2 * var(--page-x,20px)) / 6.3));padding-top:44px;text-align:left;padding-left:var(--page-x,20px);padding-right:var(--page-x,20px)}.phero h1 br.dk{display:none}.phero h1 br.mb{display:inline}.pstage{margin-top:32px}}

/* "AIs pass the work along themselves": heading on the left, chat on the right (Figma 370:21717, 370:21719; chat 393:22244). */
.ppass{padding-top:136px;padding-bottom:100px}
.ptext h2{max-width:482px}
/* Break after "themselves," wherever the heading is 72px, as in Figma; "have to" never splits. */
@media(max-width:860px){.ptext h2 .pbr{display:none}}
.ptext p{max-width:407px;margin:20px 0 0;font-size:30px;line-height:1.2;letter-spacing:-.05em;color:rgba(0,0,0,.4)}
/* Chats flow as a three-column grid: left avatar, messages, right avatar; --g is each element's row.
   Every bubble sits in the middle column, so left and right bubbles share the same outer edges.
   One spacing system for all chats: --rg between rows whatever the bubble, avatars add no height to a row,
   a "to" label sits a fixed distance above its bubble, and each divider has the same space above and below.
   u = one design px of the 623-wide Figma chat, never under .68px, so text stays about 18px on phones. */
.pchat{--cw:623;--av:54;--rg:8px;position:relative;width:100%;max-width:623px;container-type:inline-size;margin-top:40px;padding-bottom:6px;display:grid;grid-template-columns:max(calc(var(--av) * .68px),calc(var(--av) * 100% / var(--cw))) minmax(0,1fr) max(calc(var(--av) * .68px),calc(var(--av) * 100% / var(--cw)));column-gap:max(6px,calc(10 * 100% / var(--cw)));row-gap:var(--rg);align-items:start;align-content:start}
@media(min-width:861px){.pchat{--rg:12px}}
.pchat>*,.pchat>.msg>*{--u:max(.68px,calc(100cqw / var(--cw)));margin:0}
.pchat>*{grid-row:var(--g);grid-column:2;justify-self:start}
.pchat>.e{justify-self:end}
.pchat>.av{grid-column:1}
.pchat>.av.e{grid-column:3}
.pchat .av{width:calc(var(--w) * var(--u));height:auto;max-width:none;display:block}
/* An avatar hangs beside its bubble without making the row taller. */
.pchat>.av{margin-bottom:-100px}
/* An avatar beside a labelled message lines up with the bubble, under the label. */
.pchat .av.lab{margin-top:calc(26 * var(--u))}
.pchat>.bub,.pchat>.msg{max-width:100%}
.pchat>.msg{display:flex;flex-direction:column;align-items:flex-start}
.pchat>.msg.e{align-items:flex-end}
.pchat .msg .bub{max-width:100%}
/* "to …" labels: 20px in from the bubble's edge, on the side the bubble starts. */
.pchat .row{display:flex;height:calc(26 * var(--u));padding-left:calc(20 * var(--u));box-sizing:border-box}
.pchat>.row{margin-bottom:calc(-1 * var(--rg))}
.pchat .row.r,.pchat .msg.e .row{padding-left:0;padding-right:calc(20 * var(--u))}
.pchat .to{display:flex;align-items:center;gap:calc(6 * var(--u));margin:0;font-size:max(13px,calc(18 * var(--u)));line-height:1;letter-spacing:-.05em;color:rgba(0,0,0,.6);white-space:nowrap}
.pchat .to img{width:max(15px,calc(20 * var(--u)));height:max(15px,calc(20 * var(--u)));display:block}
.pchat .to b{font-weight:500}
.pchat .to span{font-weight:400}
/* Bubbles fit their text; public/personal.js narrows a wrapped bubble to its longest line. */
.pchat .bub{width:fit-content;box-sizing:border-box;padding:calc(11 * var(--u)) calc(18 * var(--u));border-radius:calc(20 * var(--u));font-size:calc(26 * var(--u));line-height:1.15;letter-spacing:-.05em;color:#000;text-wrap:balance}
.pchat .bub br{display:none}
.pchat .blue{background:rgba(0,109,255,.1)}
.pchat .green{background:rgba(12,160,45,.1)}
.pchat .gline{border:calc(3 * var(--u)) solid rgba(12,160,45,.2)}
.pchat .oline{border:calc(3 * var(--u)) solid rgba(232,112,78,.4)}
.pchat .pline{border:calc(3 * var(--u)) solid rgba(113,120,220,.5)}
/* A bubble with a video thumbnail or photos beside its text (Creative chat). */
.pchat .media{display:flex;align-items:center;gap:calc(var(--gap,10) * var(--u));padding-top:calc(var(--pv,10) * var(--u));padding-bottom:calc(var(--pv,10) * var(--u))}
.pchat .vid{width:calc(64 * var(--u));height:calc(36 * var(--u));border-radius:calc(3 * var(--u));display:block;flex:none;max-width:none}
/* The stack of photos takes a 47 x 38 slot in its bubble; the tilted photos spill a little past it, as in Figma. */
.pchat .photos{width:calc(56 * var(--u));height:auto;max-width:none;display:block;flex:none;margin:calc(-6 * var(--u)) calc(-4.5 * var(--u))}
/* Dashed line between separate chats: 7 on and 6 off. */
.pchat>.dv{grid-column:1/-1;justify-self:stretch;height:2px;margin:2px 0;background:repeating-linear-gradient(90deg,rgba(55,59,50,.2) 0 calc(7 * var(--u)),transparent calc(7 * var(--u)) calc(13 * var(--u)))}
/* Development / Finances tabs (Figma 396:1639): grey 2px pills; the active pill's border is the timer, a blue stroke
   that runs round it from the top centre while its chat plays (public/personal.js sizes the path), then the next tab opens. */
.ptabs{display:flex;flex-wrap:wrap;gap:10px;max-width:360px;margin-top:20px}
.ptab{position:relative;height:52px;box-sizing:border-box;padding:0 20px;border:2px solid rgba(0,0,0,.1);border-radius:40px;background:none;font:inherit;font-size:23px;line-height:1.2;letter-spacing:-.05em;color:#000;cursor:pointer}
.ptab svg{position:absolute;left:-2px;top:-2px;width:calc(100% + 4px);height:calc(100% + 4px);overflow:visible;pointer-events:none}
.ptab path{fill:none;stroke:#006dff;stroke-width:2;stroke-linecap:round;opacity:0}
.ptab.on path{opacity:1;stroke-dasharray:var(--p) calc(var(--p) + 4);stroke-dashoffset:var(--p);animation:ptab-trace var(--t,8s) linear forwards}
.ptabs.paused .ptab.on path{animation-play-state:paused}
@keyframes ptab-trace{to{stroke-dashoffset:0}}
.ptab:focus-visible{outline:2px solid #006dff;outline-offset:3px}
/* Light grey on hover, light blue for the active tab. After a click the tab stays put, with a solid blue border. */
.ptab{transition:background-color .25s ease}
@media(hover:hover){.ptab:hover{background:rgba(0,0,0,.05)}}
.ptabs .ptab.on{background:rgba(0,109,255,.1)}
.ptabs.locked .ptab.on path{animation:none;stroke-dasharray:none;stroke-dashoffset:0}
@media(prefers-reduced-motion:reduce){.ptab.on path{animation:none;stroke-dasharray:none;stroke-dashoffset:0}}
/* Both chats share one grid cell, so the block keeps the taller chat's height when the tab changes. */
.pchats{display:grid;grid-template-columns:minmax(0,1fr);width:100%;max-width:623px;margin-top:40px}
/* The block takes the tallest chat's height; a shorter chat keeps its rows packed at the top (align-content:start above), so its gaps never stretch. */
.pchats>.pchat{grid-area:1/1;min-width:0;margin-top:0}
/* Switching chats: the next one slides in from the right while the current one drifts left and fades out. */
.pchats>.pchat{transition:transform .65s cubic-bezier(.22,.8,.24,1),opacity .45s ease,visibility 0s}
.pchats>.pchat.off{opacity:0;visibility:hidden;transform:translateX(100%);transition:transform .65s cubic-bezier(.22,.8,.24,1),opacity .3s ease,visibility 0s .65s}
.pchats>.pchat.off.out{transform:translateX(-16%)}
@media(prefers-reduced-motion:reduce){.pchats>.pchat,.pchats>.pchat.off{transition:none;transform:none}}
@media(min-width:1101px){.ptext h2,.ptext p,.ptabs{margin-left:-9px}}
@media(min-width:1201px){
 .ppass{display:grid;grid-template-columns:473px 623px;column-gap:105px;align-items:start}
 .pchat,.pchats{margin-top:0}
 .ptext{padding-top:2px}
}
@media(max-width:860px){
 .ppass{padding-top:92px;padding-bottom:50px}
 .ptext p{font-size:22px;margin-top:16px}
 .pchat,.pchats{margin-top:32px}
 .ptabs{margin-top:20px}
 .ptab{height:44px;padding:0 16px;font-size:19px}
}
/* Phones: slimmer avatar columns, and a left-hand message may run on into the right avatar column (left rows never have a right avatar),
   so long left bubbles wrap to two lines, not three. Right-hand bubbles still stop at the middle column, never left of where left bubbles start. */
@media(max-width:600px){.pchat{grid-template-columns:32px minmax(0,1fr) 32px}.pchat .av{width:32px}.pchat>.bub:not(.e),.pchat>.msg:not(.e),.pchat>.row:not(.e){grid-column:2/4}}
/* Phones: all three tab pills fit on one row from 360px up, so the sticky bar stays one row tall. */
@media(max-width:600px){.ptabs{gap:8px}.ptab{height:40px;padding:0 13px;font-size:16px}}

/* How it works: the home page's section on a full-width light blue band (Figma 371:21754, #e5f0ff, 120px above and below). */
.phow{background:#e5f0ff}
@media(min-width:861px){.phow .sec{padding:120px 0}}
/* On this page the steps are just the four numbered titles, no answers to open. */
.psteps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:18px;max-width:850px}
.psteps li{display:flex;align-items:flex-start}
.psteps .t{margin-left:14px;font-size:30px;line-height:1.3;letter-spacing:-.03em}
@media(max-width:860px){.psteps{gap:14px}.psteps .t{font-size:21px;line-height:1.35}.psteps .num{width:32px;height:32px;font-size:22px}}

/* Orchestration (Figma 379:21998, 374:21758, 374:21759; art x 563–1386, y 2415–2852; tiles 378:21997).
   Yellow label over the heading, art on the right running 56px into the page margin, three tiles in a row under both.
   Re-export public/assets/personal/orchestration.webp to swap the art. */
.porch{padding-top:69px;padding-bottom:120px}
.ptext .plabel{margin:0;max-width:none;font-size:32px;line-height:.9;letter-spacing:-.05em;color:#e3d41f}
.ptext .plabel+h2{margin-top:10px}
.porch .ptext p:not(.plabel){max-width:433px}
.porch-art{display:block;width:100%;max-width:823px;height:auto;margin-top:40px}
.ptiles{list-style:none;margin:64px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:30px}
.ptile{border:3px solid;border-radius:20px;padding:20px;min-width:0}
.ptile.pink{border-color:rgba(238,51,221,.267)}
.ptile.yellow{border-color:#e3d41f}
.ptile.rose{border-color:rgba(221,140,142,.5)}
.ptile img{display:block;height:74px;width:auto}
.ptile h3{margin:14px 0 0;font-size:36px;font-weight:700;line-height:.9;letter-spacing:-.05em;color:#000}
.ptile p{margin:14px 0 0;max-width:361px;font-size:24px;line-height:1.1;letter-spacing:-.05em;color:rgba(0,0,0,.4)}
@media(min-width:1101px){.ptext .plabel{margin-left:-9px}.ptiles{margin-left:-10px;margin-right:-10px}}
@media(min-width:1101px) and (max-width:1200px){.ptile h3{font-size:30px}.ptile p{font-size:20px}}
@media(min-width:1201px){
 .porch{display:grid;grid-template-columns:482px 1fr;column-gap:11px;align-items:start}
 .porch-art{max-width:none;margin-top:28px;width:calc(100% + min(56px, 50px + max(0px, (100vw - 1360px) / 2)))}
 .ptiles{grid-column:1/-1}
}
@media(max-width:1100px){.ptiles{grid-template-columns:1fr;max-width:560px;gap:20px}}
@media(max-width:860px){
 .porch{padding-top:60px;padding-bottom:60px}.porch-art{margin-top:28px}
 .ptext .plabel{font-size:24px}
 .ptiles{margin-top:40px}
 .ptile h3{font-size:30px}.ptile p{font-size:20px}
}

/* Meetings and scheduling (Figma 383:22059, 383:22058, 383:22057; chat 389:22230, 627x852 at x 649, y 3284).
   Same layout and scroll-in chat as "AIs pass the work along themselves"; the chat's coordinates are in its own 627-wide box. */
.pmeet{padding-top:16px;padding-bottom:120px}
.pmeet .ptext h2{max-width:450px}
.pmeet .ptext p:not(.plabel){max-width:433px}
.pmeet .ptext p.pnomore{margin-top:36px}
.pnomore .nw{white-space:nowrap}
.pchat.pmeet-chat{--cw:627;--av:60;max-width:627px}
.pchat .yellow{background:rgba(227,212,31,.4)}
.pchat .yline{border:calc(3 * var(--u)) solid rgba(227,212,31,.5)}
.pchat .mline{border:calc(3 * var(--u)) solid #d5f5dc}
.pchat .mint{background:#d5f5dc}
.pchat .pink{background:#f2d5e6}
@media(min-width:1201px){
 .pmeet{display:grid;grid-template-columns:473px 627px;column-gap:105px;align-items:start}
 .pmeet .pchat{margin-top:0}
 .pmeet .ptext{padding-top:11px}
}
@media(max-width:860px){
 .pmeet{padding-top:20px;padding-bottom:60px}
 .pmeet .ptext p.pnomore{margin-top:26px}
}

/* Closing call to action (Figma 389:22240, 389:22242): centred heading in two lines, "Let your aigents work / together as one team!", Get Started 20px under it. */
.pend{text-align:center;padding-top:40px;padding-bottom:140px}
.pend h2{max-width:760px;margin:0 auto;text-wrap:balance}
.pend .btn{margin-top:20px;height:57px;box-sizing:border-box;padding:0 52px;font-size:22px}
@media(max-width:860px){.pend{padding-top:20px;padding-bottom:80px}.pend .btn{margin-top:24px}}
/* phones: the hero follows the mobile frame in Figma (396:1133, 402 wide); m = one design px */
.pmob{display:none}
@media(max-width:600px){
 .phero{--m:calc(100vw / 402)}
 .phero h1{font-size:calc(50 * var(--m));padding:68px calc(30 * var(--m)) 0}
 .pstage{margin-top:calc(-30 * var(--m))}
 .part{display:none}
 .pmob{display:block;position:relative;width:100%;aspect-ratio:402/312;overflow:hidden}
 .pmob .a{position:absolute;left:calc(var(--x) * 100% / 402);top:calc((var(--y) - 311) * 100% / 312);width:calc(var(--w) * 100% / 402);height:auto;max-width:none;display:block}
 .pmob .mul{mix-blend-mode:multiply}
 .pcta{position:relative;padding:0 var(--page-x,20px);margin-top:calc(-15 * var(--m))}
 .pcta .plead{font-size:calc(33 * var(--m));max-width:calc(326 * var(--m))}
 .pcta .pnote{font-size:calc(18 * var(--m));margin-top:calc(10 * var(--m))}
 .pcta .btn{margin-top:calc(22 * var(--m));height:calc(57 * var(--m));box-sizing:border-box;padding:0 calc(52 * var(--m));font-size:calc(22 * var(--m))}
}

/* Phones and tablets (one column): the tab pills stick under the site header while the chat block is on screen.
   .ptext lets go of its children so the pills' sticky box is the whole section, chat included. --hdr comes from personal.js. */
@media(max-width:1200px){
 .ppass .ptext{display:contents}
 .ppass{--pp:50px}
 .ptabs.ptabs{position:sticky;top:var(--hdr,60px);z-index:5;max-width:none;margin:10px calc(-1 * var(--pp)) 0;padding:10px var(--pp);background:#fff}
 .pchats.pchats{margin-top:30px}
}
@media(max-width:860px){.ppass{--pp:var(--page-x,20px)}.pchats.pchats{margin-top:22px}}
