/* Agencies (/agencies), green version. Built on the inner-page kit (assets/page.css, tools/partials/KIT.md) and the
   homepage's vocabulary (assets/home.css: team list, Studio and Portal Builder, sign-off, report builder, CTA) and the
   /specialists launch plan. Every product scene is aria-hidden with a vh caption beside it. Motion: the decided state is
   the markup; assets/agencies.js adds .pend (the state before) and .go (transitions on), then plays it once in view. */

/* ---------- Shared bits ---------- */
.pg .ui p{margin:0;}
.pg .ui .nm{display:flex;align-items:center;gap:8px;min-width:0;}
.pg .ui .h4{font-size:19px;line-height:26px;font-weight:600;letter-spacing:-0.02em;}
.pg .ui .tag{white-space:nowrap;}
.pg .ui .tag .ico{width:12px;height:12px;margin:0 4px 0 -2px;color:currentColor;stroke-width:2;}
.pg .ag-od{display:inline-flex;align-items:center;gap:5px;height:20px;padding:0 8px 0 6px;border-radius:999px;background:var(--u-teal-w);color:var(--green);font-size:12px;font-weight:500;white-space:nowrap;}
.pg .ag-od svg{width:11px;height:11px;fill:currentColor;}
.pg .ag-tg{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:999px;background:#F4EBDD;color:#7A4B12;font-size:12px;font-weight:500;white-space:nowrap;}
.pg .ui .av.od{box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--u-teal-b);}
.pg .ag-more{margin-top:28px;}
/* two states in one cell (before and decided), so the swap never moves the layout; decided (.s1) shows by default */
.pg .ag-sw{display:inline-grid;align-items:center;justify-items:start;}
.pg .ag-sw > *{grid-area:1 / 1;}
.pg .ag-sw > .s0{opacity:0;}
.pg .ag-sw.alt > .s0{opacity:1;}
.pg .ag-sw.alt > .s1{opacity:0;transform:translateY(3px);}
.pg .go .ag-sw > *{transition:opacity .22s var(--ease-out),transform .22s var(--ease-out);}

/* ---------- S1 Hero: the campaign team, the agency's row highlighted ---------- */
.pg .ag-hero-fig{display:flex;justify-content:flex-end;}
/* the team scene is taller than the hero text: pin the text to the top so the H1 sits where it does on the other pages */
.pg .ag-hero .pg-hero-g{align-items:start;}
.pg .ag-team{--cols:32px minmax(0,1fr) auto;width:100%;max-width:560px;border-radius:var(--r-m);background:#fff;box-shadow:var(--sh-3);overflow:hidden;}
.pg .ag-th{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:16px 20px 14px;border-bottom:1px solid var(--u-line);}
.pg .ag-th .t{display:flex;flex-direction:column;}
.pg .ag-th b{font-size:15px;line-height:22px;}
.pg .ag-cols{display:flex;justify-content:space-between;padding:12px 20px 6px;}
.pg .ag-m{position:relative;display:grid;grid-template-columns:var(--cols);gap:12px;align-items:center;padding:11px 20px;}
.pg .ag-m + .ag-m{border-top:1px solid var(--u-line);}
.pg .ag-m .av{width:32px;height:32px;}
.pg .ag-m .t{display:flex;flex-direction:column;min-width:0;}
.pg .ag-m .a{font-weight:500;}
.pg .ag-m.hi{background:#FBF7F0;box-shadow:inset 3px 0 0 #C99A5B;}
.pg .ag-act{padding:12px 20px 16px;border-top:1px solid var(--u-line);background:var(--u-canvas);}
.pg .ag-a{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:10px;align-items:center;margin-top:8px;padding:6px 8px;margin-left:-8px;margin-right:-8px;border-radius:8px;}
.pg .ag-a .av{width:24px;height:24px;}
.pg .ag-a p{color:var(--u-2);}
.pg .ag-a p b{color:var(--u-ink);}
.pg .ag-a.hi{background:#fff;box-shadow:0 0 0 1px #EADBC4;}
/* motion: the activity arrives line by line */
.pg .ag-team.pend .ag-a{opacity:0;transform:translateY(6px);}
.pg .ag-team.go .ag-a{transition:opacity .26s var(--ease-out) calc(var(--i,0) * 100ms),transform .26s var(--ease-out) calc(var(--i,0) * 100ms);}

/* ---------- S3 Three ways to partner ---------- */
.pg .ag-wl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.pg .ag-w{display:flex;flex-direction:column;padding:30px 30px 24px;border-radius:var(--r-l);background:var(--tile);}
.pg .ag-w .k{display:flex;align-items:baseline;gap:12px;}
.pg .ag-w .n{font-size:14px;line-height:20px;font-weight:500;color:var(--green-2);font-variant-numeric:tabular-nums;}
.pg .ag-w .l{font-size:12px;line-height:16px;letter-spacing:.05em;text-transform:uppercase;font-weight:500;color:var(--ink-2);}
.pg .ag-w h3{margin-top:28px;font-size:var(--fs-h3);line-height:1.3;letter-spacing:-0.02em;}
.pg .ag-w p{margin-top:12px;color:var(--ink-2);}
.pg .ag-w .lnk{margin-top:auto;padding-top:20px;align-self:flex-start;}
.pg .ag-wf{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 16px;margin-top:24px;}
.pg .ag-wf > span{font-size:15px;line-height:1.5;color:var(--ink-2);}

/* ---------- S4 White label: Studio, Portal Builder and the Campaign agent's draft ---------- */
.pg .ag-stu-st{padding:40px;border-radius:var(--r-l);background:var(--canvas);}
.pg .ag-stu{max-width:1120px;margin:0 auto;background:#fff;}
.pg .ag-stu .tb .me,.pg .ag-rb .tb .me{width:28px;height:28px;border-radius:50%;object-fit:cover;padding:0;}
.pg .ag-stb{display:flex;align-items:center;gap:8px;padding:10px 14px;border-bottom:1px solid var(--u-line);background:#fff;}
.pg .ag-stb .pill{height:26px;}
.pg .ag-stb .sp{flex:1 1 auto;}
.pg .ag-pb{display:grid;grid-template-columns:176px minmax(0,1fr) 320px;min-height:420px;}
.pg .ag-tree{display:flex;flex-direction:column;padding:12px 10px;border-right:1px solid var(--u-line);background:#fff;}
.pg .ag-tree .cap{padding:4px 8px 6px;}
.pg .ag-tree .it + .cap{padding-top:14px;}
.pg .ag-tree .it{display:flex;align-items:center;gap:8px;height:28px;padding:0 8px;border-radius:6px;color:var(--u-2);white-space:nowrap;}
.pg .ag-tree .it .sm{margin-left:auto;}
.pg .ag-tree .it.on{background:#EFEFEF;color:var(--u-ink);font-weight:500;}
.pg .ag-tree .it.sub{padding-left:24px;}
.pg .ag-tree .it.dom{color:var(--u-ink);}
.pg .ag-pv{display:flex;flex-direction:column;align-items:center;padding:14px 18px 18px;background:var(--u-wash);}
.pg .ag-pv .bar{align-self:stretch;display:flex;align-items:center;gap:6px;margin-bottom:12px;color:var(--u-2);}
.pg .ag-pv .bar b{color:var(--u-ink);font-weight:500;}
.pg .ag-portal{width:100%;max-width:340px;background:#FAF8F4;border-radius:14px;overflow:hidden;color:#1B1A18;box-shadow:0 0 0 1px var(--u-line),0 12px 28px -12px rgba(20,32,27,.25);}
.pg .ag-portal .phd{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;background:#fff;border-bottom:1px solid var(--u-line);}
.pg .ag-portal .phd b{font-weight:600;letter-spacing:.14em;font-size:12px;}
.pg .ag-portal .nv2{display:flex;gap:6px;padding:10px 14px;overflow:hidden;}
.pg .ag-portal .nv2 span{height:26px;padding:0 10px;display:inline-flex;align-items:center;border-radius:999px;box-shadow:inset 0 0 0 1px #E4E0D8;white-space:nowrap;font-size:12px;}
.pg .ag-portal .nv2 span.on{background:#10695E;box-shadow:none;color:#fff;}
.pg .ag-portal .bl{margin:0 14px 10px;padding:12px;background:#fff;border-radius:10px;box-shadow:inset 0 0 0 1px #ECE8E0;}
.pg .ag-portal .bl.hi .hl{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.pg .ag-portal .bl.hi b{font-size:16px;font-weight:600;letter-spacing:-0.01em;}
.pg .ag-portal .bl .tag.ok{background:#E3F0EC;color:#10695E;}
.pg .ag-portal .cm{display:flex;gap:10px;align-items:center;}
.pg .ag-portal .cm img{width:44px;height:44px;border-radius:8px;object-fit:cover;object-position:50% 15%;flex:0 0 auto;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px;}
.pg .ag-portal .cm .t{flex:1;display:flex;flex-direction:column;min-width:0;}
.pg .ag-portal .cm.nw{box-shadow:inset 0 0 0 1.5px #9BCFB3;}
.pg .ag-dm{display:flex;flex-direction:column;gap:12px;padding:14px 16px;border-left:1px solid var(--u-line);background:#fff;}
.pg .ag-dm .h{display:flex;align-items:center;gap:8px;color:var(--u-teal);}
.pg .ag-dm .h .ico{color:currentColor;}
.pg .ag-dm .h .sm{margin-left:auto;}
.pg .ag-dm .to{display:flex;align-items:center;gap:10px;}
.pg .ag-dm .to .t{flex:1;display:flex;flex-direction:column;min-width:0;}
.pg .ag-dm .bub{padding:10px 12px;border-radius:14px 14px 4px 14px;background:var(--u-teal-w);}
.pg .ag-dm .bub p{font-size:13.5px;line-height:20px;}
.pg .ag-dm .bm{display:block;margin-top:6px;text-align:right;color:var(--u-teal);}
.pg .ag-dm .act{display:flex;justify-content:flex-end;gap:8px;}
.pg .ag-dm .nb{margin-top:auto;}
/* motion: Autumn Gloss lands in Rhea's app, then the agent's draft arrives, waiting on a person */
.pg .ag-stu.pend .cm.nw,.pg .ag-stu.pend .ag-dm .bub,.pg .ag-stu.pend .ag-dm .act{opacity:0;transform:translateY(8px);}
.pg .ag-stu.go .cm.nw{transition:opacity .26s var(--ease-out),transform .26s var(--ease-out);}
.pg .ag-stu.go .ag-dm .bub{transition:opacity .26s var(--ease-out) .22s,transform .26s var(--ease-out) .22s;}
.pg .ag-stu.go .ag-dm .act{transition:opacity .24s var(--ease-out) .36s,transform .24s var(--ease-out) .36s;}
.pg .ag-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:48px;margin-top:48px;}
.pg .ag-two > div{display:grid;grid-template-columns:40px minmax(0,1fr);grid-template-rows:auto 1fr;align-items:start;gap:4px 18px;padding-top:22px;border-top:1px solid var(--line);}
.pg .ag-two .ic{grid-row:span 2;width:40px;height:40px;border-radius:10px;display:grid;place-items:center;background:var(--canvas);color:var(--green);}
.pg .ag-two .ic .ico{width:18px;height:18px;}
.pg .ag-two h3{font-size:var(--fs-h3);line-height:1.3;letter-spacing:-0.02em;}
.pg .ag-two p{margin-top:4px;color:var(--ink-2);}

/* ---------- S5 Inside the workspace: staged sign-off with the agency as a reviewer ---------- */
.pg main .pg-sec.tint + .pg-sec.ag-in{padding-top:128px;}
.pg .ag-cg{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:64px;align-items:start;}
.pg .ag-ul li{display:grid;grid-template-columns:40px minmax(0,1fr);gap:18px;padding:22px 0;border-top:1px solid var(--line);}
.pg .ag-ul li:last-child{border-bottom:1px solid var(--line);}
.pg .ag-ul .ic{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;background:var(--tile);color:var(--green);}
.pg .ag-ul .ic .ico{width:18px;height:18px;}
.pg .ag-ul h3{font-size:var(--fs-h3);line-height:1.3;letter-spacing:-0.02em;}
.pg .ag-ul p{margin-top:4px;font-size:15.5px;color:var(--ink-2);}
.pg .ag-cl .lnk{margin-top:20px;}
.pg .ag-so-st{padding:40px;}
.pg .ag-sow{width:100%;max-width:600px;display:grid;gap:14px;}
.pg .ag-sow .card{border:0;border-radius:var(--r-m);box-shadow:0 0 0 1px rgba(20,32,27,.06),var(--sh-2);overflow:hidden;background:#fff;}
.pg .ag-so .h,.pg .ag-hist .h{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 16px 12px;border-bottom:1px solid var(--u-line);}
.pg .ag-hist .h{align-items:baseline;}
.pg .ag-so .h > div{display:flex;flex-direction:column;min-width:0;}
.pg .ag-so .h b,.pg .ag-hist .h b{font-size:15px;line-height:22px;}
.pg .ag-so .h .ag-sw{justify-items:end;flex:0 0 auto;padding-top:3px;}
.pg .ag-so .stg{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 16px;border-bottom:1px solid var(--u-line);}
.pg .ag-so .stg .t{display:flex;flex-direction:column;}
.pg .ag-so .stg > .ag-sw:last-child{justify-items:end;}
.pg .ag-so .dot{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--u-ok-d);}
.pg .ag-so .dot .ico{width:12px;height:12px;color:#fff;stroke-width:2.4;}
.pg .ag-so .dot.att{background:#fff;box-shadow:inset 0 0 0 2px var(--u-att-d);}
.pg .ag-so .rv{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 16px 14px 50px;background:var(--u-canvas);}
.pg .ag-so .rv .r{display:flex;align-items:center;gap:8px;min-width:0;padding:8px 10px;border-radius:8px;background:#fff;box-shadow:inset 0 0 0 1px var(--u-line);}
.pg .ag-so .rv .r .t{flex:1;display:flex;flex-direction:column;min-width:0;}
.pg .ag-so .rv .av{width:26px;height:26px;}
.pg .ag-hist .lr{display:flex;align-items:center;gap:10px;padding:10px 16px;}
.pg .ag-hist .lr + .lr{border-top:1px solid var(--u-line);}
.pg .ag-hist .lr .t{display:flex;flex-direction:column;min-width:0;}
.pg .ag-hist .lr .av{width:26px;height:26px;}
.pg .ag-hist .lr.nw{background:var(--u-teal-w);}
/* motion: Priya signs off after Tess, and the decision lands at the top of the history */
.pg .ag-sow.pend .ag-hist .lr.nw{opacity:0;transform:translateY(-6px);}
.pg .ag-sow.pend .ag-hist .lr:not(.nw){transform:translateY(calc(var(--rh,47px) * -1));}
.pg .ag-sow.go .ag-hist .lr{transition:opacity .26s var(--ease-out),transform .28s var(--ease-out);}

/* ---------- S6 Client reports (dark band) ---------- */
.pg .ag-rg{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:64px;align-items:center;}
.pg .ag-rb{background:#fff;}
.pg .ag-rbd{display:flex;flex-direction:column;gap:14px;padding:20px 22px 22px;}
.pg .ag-rbd .top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
.pg .ag-rbd .tt{display:flex;flex-direction:column;min-width:0;}
.pg .ag-rbd .meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin-top:8px;}
.pg .ag-rbd .by{display:inline-flex;align-items:center;gap:6px;}
.pg .ag-rbd .by img{width:18px;height:18px;border-radius:50%;object-fit:cover;}
.pg .ag-rbd .top > .bt{flex:0 0 auto;}
.pg .ag-rbd .k3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));}
.pg .ag-rbd .k3 > div{display:flex;flex-direction:column;padding:12px 14px;}
.pg .ag-rbd .k3 > div + div{border-left:1px solid var(--u-line);}
.pg .ag-rbd .k3 b{font-size:20px;line-height:28px;font-weight:600;letter-spacing:-0.01em;font-variant-numeric:tabular-nums;}
.pg :is(.ag-a > .sm,.ag-so .stg .st,.ag-hist .lr .sm,.ag-rbd .nx b,.ag-portal .tag){font-variant-numeric:tabular-nums;}
.pg .ag-two-c{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:14px;align-items:stretch;}
.pg .ag-rbd .chart{display:flex;flex-direction:column;padding:12px 14px;}
.pg .ag-rbd .chh{display:flex;align-items:center;justify-content:space-between;}
/* the chart sits on the card's floor, level with Companion's footnote; axis labels sized in CSS so they render at about 12px
   (alternate months and the 0 label hidden so the bigger labels never touch) */
.pg .ag-rbd .chart svg{width:100%;height:auto;display:block;margin-top:auto;padding-top:12px;overflow:visible;}
.pg .ag-rbd .chart svg text{font-size:21px;}
.pg .ag-rbd .chart svg text.o,.pg .ag-rbd .chart svg text:first-of-type{display:none;}
.pg .ag-rbd .chart svg text.y{transform:translateY(4px);}
.pg .ag-rbd .chart svg text.e{transform:translateY(3px);}
.pg .ag-cmp{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border-radius:10px;background:#fff;box-shadow:0 0 0 1px var(--u-teal-b);}
.pg .ag-cmp .h{display:flex;align-items:center;gap:6px;}
.pg .ag-cmp .h .star{color:var(--u-teal);}
.pg .ag-cmp .h .sm{margin-left:auto;}
.pg .ag-cmp .rd{color:var(--u-2);}
.pg .ag-cmp .rd b{color:var(--u-ink);}
.pg .ag-cmp sup{font-size:9px;line-height:0;color:var(--u-teal);}
.pg .ag-cmp .sg{padding:8px 10px;border-radius:8px;background:var(--u-teal-w);color:var(--u-ink);}
.pg .ag-cmp .act{display:flex;flex-wrap:wrap;gap:8px;}
.pg .ag-cmp .fn{margin-top:auto;}
.pg .ag-rbd .nx{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;padding:10px 14px;border-radius:8px;background:var(--u-wash);}
.pg .ag-rbd .nx .sm{margin-left:auto;}
/* motion: the dots fill in month by month, then Companion's read arrives */
.pg .ag-rb .dts circle{transform-box:fill-box;transform-origin:center;}
.pg .ag-rb.pend .dts circle{opacity:0;transform:scale(.6);}
.pg .ag-rb.pend .ag-cmp{opacity:0;transform:translateY(8px);}
.pg .ag-rb.go .dts circle{transition:opacity .2s var(--ease-out),transform .2s var(--ease-out);}
.pg .ag-rb.go .ag-cmp{transition:opacity .26s var(--ease-out) .34s,transform .26s var(--ease-out) .34s;}
.pg .ag-ri li{display:grid;grid-template-columns:40px minmax(0,1fr);gap:4px 16px;padding:22px 0;border-top:1px solid var(--edge-dk);}
.pg .ag-ri li:last-child{border-bottom:1px solid var(--edge-dk);}
.pg .ag-ri .n{grid-row:span 2;padding-top:2px;font-size:14px;line-height:20px;font-weight:500;color:var(--on-dark-2);font-variant-numeric:tabular-nums;}
.pg .ag-ri h3{font-size:var(--fs-h3);line-height:1.3;letter-spacing:-0.02em;}
.pg .ag-ri p{color:var(--on-dark-2);font-size:15.5px;}

/* ---------- S7 Launch, then handover ---------- */
.pg main .pg-sec.dark + .pg-sec.ag-ho{padding-top:128px;}
.pg .ag-tlw{padding:40px;border-radius:var(--r-l);background:var(--tile);}
.pg .ag-tl{border:0;border-radius:var(--r-m);background:#fff;box-shadow:0 0 0 1px rgba(20,32,27,.06),var(--sh-2);overflow:hidden;}
.pg .ag-tl .h{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:14px 20px 12px;border-bottom:1px solid var(--u-line);}
.pg .ag-tl .h > div{display:flex;flex-direction:column;}
.pg .ag-tl .h b{font-size:15px;line-height:22px;}
.pg .ag-tl .steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:22px 20px 24px;}
.pg .ag-tl .steps li{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding-right:12px;}
.pg .ag-tl .steps li::before{content:"";position:absolute;left:30px;right:8px;top:10px;height:2px;border-radius:2px;background:#9BCFB3;transform-origin:0 50%;}
.pg .ag-tl .steps li:last-child::before{display:none;}
.pg .ag-tl .dot{position:relative;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--u-ok-d);flex:0 0 auto;}
.pg .ag-tl .dot .ico{width:12px;height:12px;color:#fff;stroke-width:2.4;}
.pg .ag-tl .fin .dot{background:var(--u-dark);box-shadow:0 0 0 4px rgba(31,31,31,.1);}
.pg .ag-tl .steps b{font-size:14px;line-height:20px;}
.pg .ag-tl .who{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 9px 0 7px;border-radius:999px;font-size:12px;font-weight:500;white-space:nowrap;}
.pg .ag-tl .who svg{width:11px;height:11px;fill:currentColor;}
.pg .ag-tl .who.od{background:var(--u-teal-w);color:var(--green);}
.pg .ag-tl .who.mix{background:var(--u-wash);color:var(--u-2);padding:0 9px;}
.pg .ag-tl .who.br{background:var(--u-dark);color:#fff;padding-left:3px;}
.pg .ag-tl .who.br img{width:16px;height:16px;border-radius:50%;object-fit:cover;}
.pg .ag-tl.pend .steps li > *{opacity:0;transform:translateY(6px);}
.pg .ag-tl.pend .steps li::before{transform:scaleX(0);}
.pg .ag-tl.go .steps li > *{transition:opacity .26s var(--ease-out) calc(var(--i,0) * 90ms),transform .26s var(--ease-out) calc(var(--i,0) * 90ms);}
.pg .ag-tl.go .steps li::before{transition:transform .24s var(--ease-out) calc(var(--i,0) * 90ms + 100ms);}
.pg .ag-after{display:flex;align-items:center;justify-content:space-between;gap:24px 64px;margin-top:40px;}
.pg .ag-after p{max-width:34em;font-size:20px;line-height:1.45;letter-spacing:-0.015em;color:var(--ink);}
.pg .ag-after .acts{flex:0 0 auto;gap:4px 28px;}

/* ---------- S8 CTA ---------- */
.pg .ag-cta .card > *{position:relative;z-index:1;}
.pg .ag-cta .card > .mark{position:absolute;z-index:0;right:-60px;top:-80px;width:360px;height:auto;opacity:.07;pointer-events:none;}
.pg .ag-cta p{max-width:32em;}

/* ---------- Reveals: a row of cards arrives in order (50 ms apart) where the row enters together; on phones each item enters on its own ---------- */
@media (min-width:760px){
  .js-rv .pg :is(.ag-wl,.ag-two,.ag-ul,.ag-ri) > [data-anim]:nth-child(2){transition-delay:50ms;}
  .js-rv .pg :is(.ag-wl,.ag-two,.ag-ul,.ag-ri) > [data-anim]:nth-child(3){transition-delay:100ms;}
  .js-rv .pg :is(.ag-wl,.ag-two,.ag-ul,.ag-ri) > [data-anim]:nth-child(4){transition-delay:150ms;}
}

/* ---------- Medium widths ---------- */
@media (min-width:1100px) and (max-width:1279px){
  .pg .ag-stu .tb .nv:not(.on) .l,.pg .ag-rb .tb .nv:not(.on) .l{display:none;}
  .pg .ag-pb{grid-template-columns:160px minmax(0,1fr) 290px;}
  .pg .ag-two-c{grid-template-columns:1fr;}
  .pg .ag-rbd .chart svg text{font-size:14px;}
  .pg .ag-rbd .chart svg text.y{transform:translateY(1px);}
  .pg .ag-rbd .chart svg text.e{transform:none;}
  /* parallel reviewers: one per row so names and roles never wrap */
  .pg .ag-so .rv{grid-template-columns:1fr;padding-left:16px;}
}
@media (max-width:1099px){
  .pg .ag-hero-fig{justify-content:flex-start;}
  .pg .ag-w{padding:26px 24px 20px;}
  .pg .ag-w h3{margin-top:20px;}
  .pg .ag-stu-st{padding:28px;}
  .pg .ag-pb{grid-template-columns:minmax(0,1fr) 300px;}
  .pg .ag-tree{display:none;}
  .pg .ag-stu .tb .nv:not(.on) .l,.pg .ag-rb .tb .nv:not(.on) .l{display:none;}
  .pg .ag-cg{grid-template-columns:1fr;gap:40px;}
  .pg .ag-so-st{padding:28px;}
  .pg .ag-rg{grid-template-columns:1fr;gap:40px;}
  .pg .ag-ri{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 28px;}
  .pg .ag-ri li{grid-template-columns:1fr;border-bottom:1px solid var(--edge-dk);}
  .pg .ag-ri .n{grid-row:auto;}
  .pg .ag-tlw{padding:28px;}
  .pg .ag-after{flex-direction:column;align-items:flex-start;}
}

@media (min-width:760px) and (max-width:1099px){
  .pg .ag-ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px;}
  .pg .ag-ul li:last-child{border-bottom:0;}
}
@media (max-width:899px){
  .pg .ag-wl{grid-template-columns:1fr;}
}
@media (min-width:900px) and (max-width:1099px){
  .pg .ag-rbd .chart svg text{font-size:16px;}
  .pg .ag-rbd .chart svg text.y{transform:translateY(2px);}
  .pg .ag-rbd .chart svg text.e{transform:none;}
}
@media (min-width:760px) and (max-width:899px){
  .pg .ag-rbd .chart svg text{font-size:20px;}
  .pg .ag-rbd .chart svg text.y{transform:translateY(3px);}
  .pg .ag-rbd .chart svg text.e{transform:translateY(2px);}
}

/* ---------- Phones ---------- */
@media (max-width:759px){
  /* hero: the team list, Access hidden; the activity keeps Tess's line only */
  .pg .ag-th{padding:12px 14px 10px;}
  .pg .ag-cols,.pg .ag-acc{display:none;}
  .pg .ag-m{grid-template-columns:32px minmax(0,1fr);padding:10px 14px;}
  .pg .ag-act{padding:10px 14px 12px;}
  .pg .ag-a.ag-x{display:none;}
  .pg .ag-a{grid-template-columns:24px minmax(0,1fr);}
  .pg .ag-a > .sm{display:none;}
  .pg .ag-team.go .ag-a{transition-delay:0s;}
  /* three ways: stacked, label and H3 lead each card */
  .pg .ag-wl{gap:10px;}
  .pg .ag-w{display:flex;padding:20px 18px 14px;border-radius:var(--r-m);}
  .pg .ag-w h3{margin-top:10px;font-size:18px;}
  .pg .ag-w p{margin-top:6px;font-size:15.5px;text-wrap:wrap;}
  .pg .ag-w .lnk{padding-top:8px;}
  .pg .ag-wf{margin-top:16px;}
  /* white label: the app preview only, then the two blocks */
  .pg .ag-stu-st{padding:0;background:none;border-radius:0;}
  .pg .ag-stu .tb,.pg .ag-stb,.pg .ag-dm{display:none;}
  .pg .ag-pb{grid-template-columns:1fr;min-height:0;}
  .pg .ag-pv{padding:14px 12px 16px;}
  .pg .ag-two{grid-template-columns:1fr;gap:0;margin-top:28px;}
  .pg .ag-two > div{grid-template-columns:32px minmax(0,1fr);gap:4px 14px;padding:18px 0;}
  .pg .ag-two > div:last-child{border-bottom:1px solid var(--line);}
  .pg .ag-two .ic{width:32px;height:32px;border-radius:8px;}
  .pg .ag-two .ic .ico{width:16px;height:16px;}
  .pg .ag-two h3{font-size:18px;}
  .pg .ag-two p{font-size:15px;text-wrap:wrap;}
  .pg .ag-more{margin-top:16px;}
  /* inside the workspace: four short rows; the three stages and Tess's history line */
  .pg main .pg-sec.tint + .pg-sec.ag-in{padding-top:64px;}
  .pg .ag-ul li{grid-template-columns:32px minmax(0,1fr);gap:14px;padding:18px 0;}
  .pg .ag-ul .ic{width:32px;height:32px;border-radius:8px;}
  .pg .ag-ul .ic .ico{width:16px;height:16px;}
  .pg .ag-ul h3{font-size:18px;}
  .pg .ag-ul p{font-size:15px;text-wrap:wrap;}
  .pg .ag-cg{gap:28px;}
  .pg .ag-so-st{padding:0;}
  .pg .ag-so .h{flex-direction:column;gap:6px;}
  .pg .ag-so .h .ag-sw{justify-items:start;padding-top:0;}
  .pg .ag-so .stg{grid-template-columns:22px minmax(0,1fr);row-gap:2px;}
  .pg .ag-so .stg > :last-child,.pg .ag-so .stg > .ag-sw:last-child{grid-column:2;justify-items:start;}
  .pg .ag-so .rv,.pg .ag-hist .lr.nw{display:none;}
  .pg .ag-sow.pend .ag-hist .lr:not(.nw){transform:none;}
  /* reports: header, one figure row and Companion's read */
  .pg .ag-rb .tb,.pg .ag-rbd .chart,.pg .ag-rbd .nx,.pg .ag-rbd .top > .bt,.pg .ag-rbd .k3 > .k3x,.pg .ag-cmp .act .bt:not(.pri),.pg .ag-cmp .sg{display:none;}
  .pg .ag-rbd{padding:16px 14px;}
  .pg .ag-rbd .k3{grid-template-columns:repeat(2,minmax(0,1fr));}
  .pg .ag-rb.go .ag-cmp{transition-delay:0s;}
  .pg .ag-two-c{grid-template-columns:1fr;}
  .pg .ag-ri{display:block;}
  .pg .ag-ri li{grid-template-columns:32px minmax(0,1fr);padding:18px 0;border-bottom:0;}
  .pg .ag-ri li:last-child{border-bottom:1px solid var(--edge-dk);}
  .pg .ag-ri .n{grid-row:span 2;}
  .pg .ag-ri h3{font-size:18px;}
  .pg .ag-ri p{font-size:15px;text-wrap:wrap;}
  /* handover: the plan as a vertical list of five steps; the line and both links stay */
  .pg main .pg-sec.dark + .pg-sec.ag-ho{padding-top:64px;}
  .pg .ag-tlw{padding:0;background:none;border-radius:0;}
  .pg .ag-tl .h{padding:12px 14px 10px;}
  .pg .ag-tl .steps{grid-template-columns:1fr;padding:6px 14px 8px;}
  .pg .ag-tl .steps li{flex-direction:row;align-items:center;gap:12px;padding:10px 0;}
  .pg .ag-tl .steps li::before{left:10px;right:auto;top:calc(50% + 15px);width:2px;height:calc(100% - 30px);transform-origin:50% 0;}
  .pg .ag-tl .steps b{flex:1;}
  .pg .ag-tl.pend .steps li::before{transform:scaleY(0);}
  .pg .ag-after{gap:12px;margin-top:24px;}
  .pg .ag-after p{font-size:16px;}
  .pg .ag-after .acts{flex-direction:row;gap:4px 20px;}
  /* CTA: H2, lede, two stacked actions */
  .pg .ag-cta .acts{flex-direction:column;align-items:flex-start;gap:8px;}
  .pg .ag-cta .card > .mark{width:240px;right:-70px;top:-60px;}
}
/* small tablets: the five-step handover plan is too tight for one row, so it uses the phone's vertical list */
@media (min-width:760px) and (max-width:899px){
  .pg .ag-tlw{padding:0;background:none;border-radius:0;}
  .pg .ag-tl .h{padding:12px 14px 10px;}
  .pg .ag-tl .steps{grid-template-columns:1fr;padding:6px 14px 8px;}
  .pg .ag-tl .steps li{flex-direction:row;align-items:center;gap:12px;padding:10px 0;}
  .pg .ag-tl .steps li::before{left:10px;right:auto;top:calc(50% + 15px);width:2px;height:calc(100% - 30px);transform-origin:50% 0;}
  .pg .ag-tl .steps b{flex:1;}
  .pg .ag-tl.pend .steps li::before{transform:scaleY(0);}
}
