/* Enflow Health site styles. Page layout is inline in each page template; shared rules and animations live here. */
/* Smooth scrolling is switched on by js/runtime.js after the page has loaded (so a link such as /#join lands at once), and never for visitors who asked for reduced motion (B-024). */
@media (prefers-reduced-motion:no-preference){html.pg-smooth{scroll-behavior:smooth}}
body{margin:0}
a{color:#111411}a:hover{color:#0B6B3A}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #0B6B3A;outline-offset:3px}
/* Controls inside a rounded, overflow:hidden group get an inset two-tone ring so the group cannot clip it (B-014). */
.pg-seg button:focus-visible{outline-offset:-3px;box-shadow:inset 0 0 0 6px #FFFFFF}
/* Skip link: hidden until a keyboard user reaches it (B-019). */
.pg-skip{position:absolute;left:12px;top:-80px;z-index:100;padding:12px 18px;border-radius:8px;background:#111411;color:#FFFFFF;font:600 15px Inter,system-ui,sans-serif;text-decoration:none}
.pg-skip:focus{top:12px}.pg-skip:hover{color:#FFFFFF}
/* The green ring is only 2.8:1 on the dark Clinician oversight section; use the bright accent there (B-021). */
#security a:focus-visible,#security button:focus-visible{outline-color:#2FBF71}
.pc-dd{position:relative}.pc-menu{display:none;position:absolute;top:100%;left:0;min-width:270px;background:#FFFFFF;border:1px solid #111411;border-radius:12px;box-shadow:6px 6px 0 #111411;padding:8px;z-index:30}.pc-dd:hover .pc-menu,.pc-dd:focus-within .pc-menu{display:block}.pc-menu a{display:flex;flex-direction:column;gap:1px;padding:10px 12px;border-radius:8px;text-decoration:none;color:#111411;font-size:15px;font-weight:600}.pc-menu a span{font-weight:400;font-size:13px;color:#5B635D}.pc-menu a:hover{background:#E6F2EA}
.pc-scene{position:absolute;inset:0;opacity:0;animation:pcScene 10s infinite}.pc-s2{animation-delay:5s}
/* A scene rises into place instead of scaling up, so text in it is never drawn below its set size (the hero captions stay at 12px or more). */
@keyframes pcScene{0%{opacity:0;transform:translateY(8px)}6%{opacity:1;transform:none}50%{opacity:1;transform:none}56%{opacity:0}100%{opacity:0}}   /* the scene fading out overlaps the one fading in, so the picture is never blank (H33) */
@keyframes pcOrbit{to{transform:rotate(360deg)}}@keyframes pcCounter{to{transform:rotate(-360deg)}}@keyframes pcSpin{to{transform:rotate(360deg)}}
@keyframes pcCard{0%{opacity:0;transform:translateY(16px)}3%{opacity:1;transform:none}100%{opacity:1;transform:none}}
@keyframes pcMarq{to{transform:translateX(-50%)}}@keyframes pcPlay{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.pc-orb{animation:pcOrbit 24s linear infinite}.pc-cnt{animation:pcCounter 24s linear infinite}.pc-spin{animation:pcSpin .9s linear infinite}
.pc-card{opacity:0;animation:pcCard 10s infinite}.pc-marq{display:flex;width:max-content;animation:pcMarq 40s linear infinite}.pc-play{transform-origin:left;animation:pcPlay 90s linear forwards}
.pc-col{transition:flex-grow .35s ease}
/* Five steps: the home page's "How the agents work" (#steps) and the About page's steps share the .pg-steps markup. The numbers are drawn by a CSS counter
   (rules with the About page block below), so they are decoration and never part of the page text. The grid is written inline in the page (auto-fit); from 700px
   up it is held to one row of five, and under 700px the steps stack with a hairline between them. */
@media (min-width:700px){.pg-steps{grid-template-columns:repeat(5,minmax(0,1fr)) !important}}
@media (min-width:700px) and (max-width:1023px){.pg-steps>li{padding:20px 16px !important}}
@media (max-width:699px){.pg-steps{grid-template-columns:minmax(0,1fr) !important}.pg-steps>li{border-left:0 !important;border-top:1px solid #DDE1DB}.pg-steps>li:first-child{border-top:0}}
/* Hand-off chain ("Who does what, from report to recall"): five cards in a row with an arrow between each pair from 1024px up. Under that the
   cards stack and the arrows turn to point down. The chips name what Enflow does between two pairs of hands. */
@media (max-width:1023px){.pg-hand{flex-direction:column}.pg-hand>li{flex-direction:column}.pg-hand-arrow{transform:rotate(90deg);align-self:center;min-height:40px}}
.pc-link{stroke-dasharray:1;stroke-dashoffset:0;animation:pcLink 10s infinite}
@keyframes pcLink{0%,18%{stroke-dashoffset:1}32%,100%{stroke-dashoffset:0}}
.pc-rd{animation:pcRd 10s infinite}@keyframes pcRd{0%,28%{opacity:0}36%,100%{opacity:1}}
.pc-pulse{transform-box:fill-box;transform-origin:center;animation:pcPulse 10s infinite}@keyframes pcPulse{0%,30%{opacity:0;transform:scale(.8)}38%{opacity:.8}55%,100%{opacity:0;transform:scale(1.4)}}
.pc-spinp{transform-box:fill-box;transform-origin:center;animation:pcSpin 20s linear infinite}
.pg-ph{background:linear-gradient(135deg,#CFE6D6,#8FC4A5)}
@media (prefers-reduced-motion:reduce){.pg-fly,.pg-chip,.pg-ring,.pc-link,.pc-rd,.pc-pulse,.pc-spinp{animation:none!important}.pc-pulse{opacity:0}}

@media (prefers-reduced-motion:reduce){.pc-scene,.pc-orb,.pc-cnt,.pc-spin,.pc-card,.pc-marq,.pc-play{animation:none!important}.pc-s1{opacity:1}.pc-card{opacity:1}}
.pcreel{position:relative;width:100%;height:100%;overflow:hidden;color:#FFFFFF}.pcr{position:absolute;inset:0;padding:0 8% 28px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;opacity:0;animation:pcr 20s infinite;animation-play-state:var(--pcs,running)}.pcbar{position:absolute;left:0;bottom:0;height:4px;width:100%;background:#2FBF71;transform-origin:left;animation:pcb 20s linear infinite;animation-play-state:var(--pcs,running)}@keyframes pcr{0%,17%{opacity:1}20%,100%{opacity:0}}@keyframes pcb{from{transform:scaleX(0)}to{transform:scaleX(1)}}@media (prefers-reduced-motion:reduce){.pcr{animation:none}.pcr:first-child{opacity:1}.pcbar{animation:none}}

/* Hero picture (home page). Six realistic icons in large white round chips, each with a real HTML caption under it, around the Enflow tile.
   Everything is placed from the centre of the picture in whole pixels (--lx/--ly on large screens, --sx/--sy on phones), never scaled, so the 12px
   captions are always drawn at 12px. Large: the chips sit on a circle. Phones (440px and under): an upright oval and smaller sizes, so the two-line
   captions fit between the chips and the tile. Every loop here stops under "Pause motion" (the .pg-paused rule below) and under reduced motion. */
.pg-hero{position:relative;height:470px;border:1px solid #111411;border-radius:14px;overflow:hidden;box-shadow:8px 8px 0 #111411;background:radial-gradient(circle at 50% 35%,#1C7A4A,#0B3D24 75%);--chip:80px;--icon:60px;--tile:96px;--cy:198px;--k:1}
.pg-stage{position:absolute;inset:0 0 44px 0}
.pg-origin{position:absolute;left:50%;top:var(--cy);width:0;height:0}
.pg-links{position:absolute;left:-170px;top:-170px;width:340px;height:340px;overflow:visible}
.pg-sm{display:none}
.pg-ring{transform-box:fill-box;transform-origin:center;animation:pcSpin 60s linear infinite}
.pg-tile{position:absolute;left:calc(var(--tile) * -.5469);top:calc(var(--tile) * -.5469);width:calc(var(--tile) * 1.0938);height:calc(var(--tile) * 1.0938)}
.pg-hero .pg-slot{position:absolute;left:var(--lx);top:var(--ly);width:0;height:0}
.pg-fly{position:absolute;left:0;top:0;width:0;height:0;animation:pgFly 10s infinite ease-in-out}
.pg-item{position:absolute;left:0;top:calc(var(--chip) * -.5);display:flex;flex-direction:column;align-items:center;gap:6px;transform:translateX(-50%)}
.pg-chip{display:flex;align-items:center;justify-content:center;flex:none;box-sizing:border-box;width:var(--chip);height:var(--chip);border-radius:50%;background:radial-gradient(circle at 34% 24%,#FFFFFF,#F6F9F6 52%,#E3EAE5);border:1px solid rgba(17,20,17,.18);box-shadow:0 12px 22px -8px rgba(0,0,0,.55),0 0 0 5px rgba(255,255,255,.13);animation:pgFloat var(--ft) ease-in-out var(--fd) infinite alternate}
.pg-chip img{display:block;width:var(--icon);height:var(--icon)}
.pg-lbl{display:block;box-sizing:border-box;padding:3px 9px 4px;border:1px solid rgba(255,255,255,.22);border-radius:14px;background:rgba(7,36,21,.74);color:#F4FAF6;font:500 12px/1.35 'IBM Plex Mono',monospace;text-align:center;white-space:nowrap}
.pg-lbl br{display:none}
.pg-cap{position:absolute;left:0;right:0;bottom:22px;text-align:center;font-family:'IBM Plex Mono',monospace;font-size:12px;letter-spacing:.08em;color:#CFE6D6}
.pg-ico{flex:none;display:block;width:40px;height:40px}
@keyframes pgFly{0%,6%{transform:translate(calc(var(--dx) * var(--k) * 1px),calc(var(--dy) * var(--k) * 1px)) rotate(var(--fr))}22%,100%{transform:none}}
@keyframes pgFloat{from{transform:translate(0,0) rotate(-1.4deg)}to{transform:translate(0,-4px) rotate(1.4deg)}}
@media (max-width:440px){
.pg-hero{height:440px;--chip:56px;--icon:42px;--tile:68px;--cy:184px;--k:.6}
.pg-lg{display:none}.pg-sm{display:inline}
.pg-sm .pg-ring{animation:none}
.pg-hero .pg-slot{left:var(--sx);top:var(--sy)}
.pg-lbl br{display:inline}
.pg-cards{width:calc(100% - 24px) !important}
.pg-hero .pg-card{width:100% !important;margin-left:0 !important}
}

/* Phone header and Menu (B-030). Above 640px the header is the desktop header and the Menu button and its panel are not shown.
   At 640px and under it is one compact row (logo, Early access, Menu) of 64px at most, and the navigation lives in the Menu panel.
   The header's layout is written inline in each page, so the phone rules below use !important to override it. */
.pg-menu-btn,.pg-menu{display:none}
.pg-menu-btn{align-items:center;min-height:44px;padding:0 12px;border:1px solid #111411;border-radius:8px;background:#FFFFFF;color:#111411;font:600 14px Inter,system-ui,sans-serif;cursor:pointer}
.pg-menu-btn:hover{background:#E6F2EA}
.pg-menu-btn[aria-expanded=true]{background:#111411;color:#FFFFFF}
.pg-menu{border-top:1px solid #DDE1DB;background:#FFFFFF}
.pg-menu ul{margin:0;padding:0;list-style:none}
.pg-menu>ul{padding:4px 16px 16px}
.pg-menu a{display:flex;align-items:center;min-height:44px;padding:0 6px;border-radius:6px;color:#111411;font-size:16px;font-weight:600;text-decoration:none}
.pg-menu ul ul{margin:0 0 6px 6px;padding-left:12px;border-left:2px solid #DDE1DB}
.pg-menu ul ul a{min-height:40px;font-size:15px;font-weight:400;color:#3F4741}
.pg-menu a:hover{background:#E6F2EA;color:#0B6B3A}
@media (max-width:640px){
.pg-hdr{flex-wrap:nowrap !important;gap:6px !important;padding:8px 16px !important}   /* nowrap on purpose: with wrap, 320-360px phones get a two-row header (check C4). Known cost: user text-spacing overrides (WCAG 1.4.12) can push the Menu button a few px past 320 */
.pg-logo{flex:0 1 auto !important}
.pg-wordmark{font-size:17px !important;line-height:1.05}
.pg-nav{display:none !important}
.pg-hdr-actions{flex:none;flex-wrap:nowrap !important;gap:6px !important}
.pg-early{padding:0 12px !important}
.pg-menu-btn{display:inline-flex}
.pg-menu:not([hidden]){display:block}
}
@media (max-width:360px){
.pg-hdr,.pg-hdr-actions{gap:4px !important}
.pg-wordmark{font-size:16px !important}
.pg-early,.pg-menu-btn{padding:0 10px !important}
}

/* Tab panels (B-031) are in the tab sequence, because their first content is not a control. They get the site's ring, drawn inside the
   panel so that no overflow:hidden parent can clip it. */
[role=tabpanel]:focus-visible{outline:3px solid #0B6B3A;outline-offset:-3px}

/* Pause motion (B-031, WCAG 2.2.2). The button sits just above the hero picture. While motion is paused, every animation on the page is
   paused (the page root gets pg-paused). Visitors who ask for reduced motion already get no loops (the rules above), so they never see the button. */
.pg-motion{position:absolute;right:0;bottom:calc(100% + 6px);z-index:2;display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border:1px solid #111411;border-radius:8px;background:#FFFFFF;color:#111411;font:600 14px Inter,system-ui,sans-serif;cursor:pointer;box-shadow:3px 3px 0 #111411}
.pg-motion:hover{background:#E6F2EA}
.pg-paused .pg-motion{background:#111411;color:#FFFFFF}
.pg-paused .pg-motion:hover{background:#2F3A33}
.pg-paused *,.pg-paused *::before,.pg-paused *::after{animation-play-state:paused !important}
@media (prefers-reduced-motion:reduce){.pg-motion{display:none}}

/* "Request demo" (B-032). In the header it is the secondary button next to "Early access"; phones get the same link in the Menu panel
   instead, so the phone header stays one row (B-030). */
.pg-demo{white-space:nowrap;display:inline-flex;align-items:center;box-sizing:border-box;min-height:44px;padding:0 18px;border:1px solid #111411;border-radius:8px;background:#FFFFFF;color:#111411;font-size:15px;font-weight:600;text-decoration:none}   /* border-box: with its 1px border it stays 44px, the height of "Early access" beside it (F1) */
.pg-demo:hover{background:#E6F2EA;color:#0B6B3A}

/* The demo page keeps its details form in the page while it is hidden (so Back finds every answer as typed). The form's layout is inline,
   which would beat the browser's own [hidden] rule, so this one says it plainly. */
#demo-details[hidden]{display:none !important}
/* Times grouped by day, each time a radio button drawn as a tile. The real radio sits invisibly over its tile, so a click, Tab, the arrow
   keys and Space all work natively and a screen reader gets a normal radio group; the tile shows the state and the focus ring.
   The tiles are written as .pg-slots .pg-slot because the home hero uses the name .pg-slot too (for its chip positions, scoped there as .pg-hero .pg-slot). */
.pg-day{margin:0 0 8px;font:500 12px 'IBM Plex Mono',monospace;letter-spacing:.08em;text-transform:uppercase;color:#5B635D}
.pg-slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:8px}
.pg-slots .pg-slot{position:relative;display:block}
.pg-slots .pg-slot input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.pg-slots .pg-slot span{display:flex;align-items:center;justify-content:center;min-height:48px;padding:0 4px;border:1px solid #111411;border-radius:8px;background:#FFFFFF;color:#111411;font:500 14px Inter,system-ui,sans-serif;text-align:center}
.pg-slots .pg-slot input:hover+span{background:#E6F2EA}
.pg-slots .pg-slot input:checked+span,.pg-slots .pg-slot input:checked:hover+span{background:#111411;color:#FFFFFF}
.pg-slots .pg-slot input:focus-visible{outline:none}
.pg-slots .pg-slot input:focus-visible+span{outline:3px solid #0B6B3A;outline-offset:3px}
@media (max-width:640px){
.pg-demo{display:none !important}
.pg-main{padding:32px 16px 64px !important;gap:40px !important}
.pg-main .pg-card{padding:20px !important}
}

/* Photo heroes (About, and Home below). The About hero is a full-bleed photo of a smiling clinician (six real <img>s with alt text, .pg-hero-img, that take turns) under a shade (.pg-shade). Above 700px the text sits on the
   left under a heavy left-to-right shade that clears towards the right, where the face is. At 700px and under the text comes first and the photo fills a band below it, under
   a top-to-bottom shade that has cleared before the face. Checks N4 and N4b measure the text's contrast and the shade over the face at five widths. The text column stays
   clear of the face: it ends before the shade starts to clear. */
.pg-photo-hero{min-height:72vh;overflow:hidden;--band:clamp(340px,100vw,460px)}
.pg-hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:75% 0}
/* The photo on screen fades in over the one before it, which stays put until the fade is done. The wrapper keeps their stacking under the shade and the text. */
.pg-slides{position:absolute;inset:0;isolation:isolate;overflow:hidden}
.pg-slide{opacity:0;visibility:hidden;transition:opacity 0s linear 1.2s,visibility 0s linear 1.2s}
.pg-slide.is-on{z-index:1;opacity:1;visibility:visible;transition:opacity 1.2s ease}
.pg-photo-hero .pg-motion{right:16px;bottom:16px;min-height:44px}
.pg-photo-hero .pg-motion:focus-visible{outline:3px solid #FFFFFF;outline-offset:0;box-shadow:0 0 0 6px #111411}
.pg-photo-hero .pg-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,16,12,.88) 0%,rgba(10,16,12,.84) 40%,rgba(10,16,12,.66) 54%,rgba(10,16,12,.30) 66%,rgba(10,16,12,.08) 82%,rgba(10,16,12,0) 100%)}
.pg-hero-copy{padding:88px 24px 96px}
.pg-hero-col{display:flex;flex-direction:column;align-items:flex-start;gap:26px;max-width:54%}
@media (max-width:1000px){
.pg-photo-hero .pg-shade{background:linear-gradient(90deg,rgba(10,16,12,.88) 0%,rgba(10,16,12,.84) 34%,rgba(10,16,12,.66) 48%,rgba(10,16,12,.30) 60%,rgba(10,16,12,.08) 76%,rgba(10,16,12,0) 100%)}
.pg-hero-col{max-width:48%}
}
@media (max-width:700px){
.pg-photo-hero{min-height:0}
.pg-hero-img{inset:auto 0 0 0;height:var(--band);object-position:100% 0}
.pg-photo-hero .pg-shade{background:linear-gradient(180deg,rgba(10,16,12,.9) 0,rgba(10,16,12,.86) calc(100% - var(--band) - 10px),rgba(10,16,12,0) calc(100% - var(--band) + 80px))}
.pg-hero-copy{padding:40px 24px calc(var(--band) + 24px)}
.pg-hero-col{max-width:none}
}
/* Home hero: the same photo hero, but most of its photos show two people. On wide screens the picture takes the right-hand side and fades into the dark on its left,
   and each photo says where it sits (--pos wide, --pos-sm in the band under the text). At 1000px and under the text comes first and the photo sits below it. */
.pg-photo-hero a:focus-visible{outline-color:#FFFFFF}
.pg-home-hero .pg-slides{left:38%}
.pg-home-hero .pg-hero-img{object-position:var(--pos,70%) 0}
.pg-home-hero .pg-shade{background:linear-gradient(90deg,rgb(10,16,12) 0%,rgb(10,16,12) 38%,rgba(10,16,12,.8) 45%,rgba(10,16,12,.32) 54%,rgba(10,16,12,0) 64%)}
.pg-home-hero .pg-hero-col{max-width:46%}
@media (max-width:1000px){
.pg-home-hero{min-height:0}
.pg-home-hero .pg-slides{left:0}
.pg-home-hero .pg-hero-img{inset:auto 0 0 0;height:var(--band);object-position:var(--pos-sm,80%) 0}
.pg-home-hero .pg-shade{background:linear-gradient(180deg,rgb(10,16,12) 0,rgb(10,16,12) calc(100% - var(--band)),rgba(10,16,12,0) calc(100% - var(--band) + 90px))}
.pg-home-hero .pg-hero-copy{padding:40px 24px calc(var(--band) + 24px)}
.pg-home-hero .pg-hero-col{max-width:640px}
}
/* The steps row ("How the agents work") is numbered by CSS, so the numbers are decoration and never part of the page text; the grid in the page
   stacks the steps on phones. The emphasized step (pg-on, "Deploy") gets the active look of the home-page tabs: a near-black border and a green number. */
.pg-steps{counter-reset:pgstep}.pg-steps>li{counter-increment:pgstep}
/* The step numbers sit in hexagons, the shape of the logo: a near-black hexagon with a white one 1.5px inside it. The emphasized step is solid green. */
.pg-step-no{position:relative;align-self:flex-start;display:inline-flex;align-items:center;justify-content:center;width:38px;height:44px;background:#111411;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);font:500 12px 'IBM Plex Mono',monospace;color:#5B635D}
.pg-step-no::after{content:'';position:absolute;inset:1.5px;background:#FFFFFF;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%)}
.pg-step-no::before{content:counter(pgstep,decimal-leading-zero);position:relative;z-index:1}
.pg-steps>li.pg-on .pg-step-no{color:#FFFFFF;background:#0B6B3A}
.pg-steps>li.pg-on .pg-step-no::after{background:#0B6B3A}
/* The green ring is only 2.8:1 on the dark CTA band; use the bright accent there, as on the Clinician oversight section (B-021). */
#about-cta a:focus-visible,#see-demo a:focus-visible{outline-color:#2FBF71}

/* Agents (home, #agents): one card across four agents. The four tabs sit above the card in a grid (two rows of two up to 999px, one row of four from 1000px);
   the card holds all four panels stacked in one grid cell, so it is as tall as the tallest and the page below never jumps when the card changes. The panel
   shown is the one without the hidden attribute; the others stay in the cell, faded out and visibility:hidden, so a switch is a short fade through (the old
   card fades out in .12s, then the new one fades in over .16s: two one-shot transitions on opacity, never a loop, and the two texts never overlap). The fade
   is off under reduced motion and while "Pause motion" is on. From 700px a panel is two columns (the
   agent on a pale green pane, what it does beside it); under 700px they stack. The card never clips: no overflow on it, and the panel's own corners follow its
   rounded border (13px inside a 14px card), so the inset focus ring of a tab panel follows the curve. */
.pg-ag-stage{display:flex;flex-direction:column;gap:20px}
.pg-ag-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
@media (min-width:1000px){.pg-ag-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}}
.pg-ag-tab{box-sizing:border-box;min-height:48px;padding:8px 12px;border:1px solid #111411;border-radius:8px;background:#FFFFFF;color:#111411;font:600 15px/1.25 Inter,system-ui,sans-serif;text-align:center;cursor:pointer}
.pg-ag-tab[aria-selected=false]:hover{background:#E6F2EA}
.pg-ag-tab[aria-selected=true]{background:#111411;color:#FFFFFF}
@media (max-width:380px){.pg-ag-tab{padding:8px 6px;font-size:14px}}
.pg-ag-card{display:grid;border:1px solid #111411;border-radius:14px;background:#FFFFFF;box-shadow:8px 8px 0 #111411}
.pg-ag-panel{grid-area:1/1;display:grid;grid-template-columns:minmax(0,1fr);border-radius:13px;opacity:1;visibility:visible;transition:opacity .16s ease .12s,visibility 0s linear .12s}
.pg-ag-panel[hidden]{opacity:0;visibility:hidden;transition:opacity .12s ease,visibility 0s linear .12s}
@media (min-width:700px){.pg-ag-panel{grid-template-columns:minmax(0,5fr) minmax(0,7fr)}}
.pg-paused .pg-ag-panel,.pg-paused .pg-ag-panel[hidden]{transition:none}
@media (prefers-reduced-motion:reduce){.pg-ag-panel,.pg-ag-panel[hidden]{transition:none}}
.pg-ag-lead{display:flex;flex-direction:column;align-items:flex-start;gap:14px;padding:32px;background:#E6F2EA;border-radius:13px 13px 0 0}
@media (min-width:700px){.pg-ag-lead{border-radius:13px 0 0 13px}}
.pg-ag-lead h3{margin:0;font-family:'Inter Tight',Inter,sans-serif;font-weight:700;font-size:clamp(26px,2.6vw,32px);line-height:1.05;letter-spacing:-0.02em;text-wrap:balance}
.pg-ag-job{margin:0;font-size:17px;color:#3F4741;text-wrap:pretty}
.pg-ag-note{display:flex;align-items:flex-start;gap:10px;margin:0;padding:10px 12px;border:1px solid #111411;border-radius:8px;background:#FFFFFF;font-size:14.5px;color:#2F3A33}
.pg-ag-glyph{flex:none;display:block}
.pg-ag-detail{display:flex;flex-direction:column;gap:12px;padding:32px}
.pg-ag-label{font-family:'IBM Plex Mono',monospace;font-size:12px;letter-spacing:.1em;color:#3F4741}
.pg-ag-list{margin:0;padding:0;list-style:none}
.pg-ag-list li{display:flex;align-items:flex-start;gap:14px;padding:14px 0;border-top:1px solid #DDE1DB;font-size:17px;line-height:1.4;color:#111411}
.pg-ag-list li:first-child{border-top:0;padding-top:2px}
@media (max-width:699px){.pg-ag-lead,.pg-ag-detail{padding:24px 20px}}

/* Hand-off chain (26 Nov): one pass when it scrolls into view. Each step lifts in turn and a small report moves across each arrow, then the gate is ticked.
   It ends within 5 seconds, never loops, stops under "Pause motion" (the .pg-paused rule) and does not run for visitors who ask for reduced motion.
   The class is put on by home.js from page state, so a re-render does not restart it. */
.pg-hand-arrow{position:relative}
.pg-hand-doc{position:absolute;left:50%;top:50%;z-index:2;width:22px;height:28px;margin:-14px 0 0 -11px;box-sizing:border-box;border:1.5px solid #111411;border-top:7px solid #0B6B3A;border-radius:3px;background:linear-gradient(#0B6B3A,#0B6B3A) 3px 4px/9px 2px no-repeat,linear-gradient(#8FB39C,#8FB39C) 3px 9px/13px 2px no-repeat,linear-gradient(#8FB39C,#8FB39C) 3px 14px/11px 2px no-repeat,#FFFFFF;box-shadow:2px 2px 0 #111411;opacity:0}
.pg-node{position:relative}
.pg-tick{position:absolute;top:10px;right:10px;width:26px;height:26px;border-radius:999px;background:#FFFFFF;color:#0B6B3A;display:flex;align-items:center;justify-content:center;font:700 15px Inter,system-ui,sans-serif;opacity:0;transform:scale(.4)}
.pg-hand.is-playing .pg-node{animation:pgNode .9s ease-out calc(var(--i) * 1s) 1 both}
.pg-hand.is-playing .pg-hand-doc{animation:pgDoc .6s ease-in-out calc(var(--i) * 1s + .55s) 1 both}
.pg-hand.is-playing .pg-tick{animation:pgTick .45s cubic-bezier(.2,1.4,.4,1) 3.35s 1 forwards}
@keyframes pgNode{0%{transform:none}35%{transform:translateY(-6px);box-shadow:8px 10px 0 #111411;outline:3px solid #2FBF71;outline-offset:2px}100%{transform:none}}
@keyframes pgDoc{0%{opacity:0;transform:translateX(-18px)}20%{opacity:1}80%{opacity:1}100%{opacity:0;transform:translateX(18px)}}
@keyframes pgDocDown{0%{opacity:0;transform:rotate(-90deg) translateY(-18px)}20%{opacity:1}80%{opacity:1}100%{opacity:0;transform:rotate(-90deg) translateY(18px)}}
@keyframes pgTick{to{opacity:1;transform:scale(1)}}
@media (max-width:1023px){.pg-hand.is-playing .pg-hand-doc{animation-name:pgDocDown}}   /* the arrow is turned 90 degrees when stacked: turn the report back and move it down */
@media (prefers-reduced-motion:reduce){.pg-hand.is-playing .pg-node,.pg-hand.is-playing .pg-hand-doc,.pg-hand.is-playing .pg-tick{animation:none}}
