/* Prure Group — redesign demo v3. The five service pages besides paid media (pages/services.py).
   Only .svc__ classes and compositions of shared classes inside them. Hidden start states are gated with .js,
   pinned layouts with html.seqpin (set by the head script only where motion is allowed),
   and everything scroll-driven reads --p from [data-progress], whose CSS default is the finished state. */

/* ---------- Hero: shared frame, five different media ---------- */
/* Round 5: one hero system for the six service pages (paid media: prure.css .pmhero, same numbers). Every hero starts at
   the same place under the header (crumb, then the headline) and every headline uses one size scale, --svc-h1; it steps
   down only where a translation's accent phrase would not fit its column (--hk, core.em_fit). Before: SEO and automation
   were 109 px at the top, the split heroes 77-79 px pushed to the foot of a full-height hero (tops 166 vs 447-479 px). */
:root{--svc-h1:clamp(2.6rem,5.5vw,5.5rem)}
.svc__hero .display{font-size:clamp(2.7rem,8vw,6.8rem)}
@media (min-width:900px){.svc__hero .display{font-size:var(--svc-h1)}}
.svc__hero .lede{max-width:44ch}
.svc__media{margin-top:clamp(36px,5vw,60px)}
@media (min-width:900px){
  .svc__hero .svc__media{align-self:stretch;margin-top:auto;padding-top:clamp(36px,5vw,60px)}
}
/* split: text beside one tall visual that runs to the edge of the screen */
.svc__hero-grid{display:grid;gap:clamp(32px,6vw,56px)}
@media (min-width:900px){
  /* split: the text column starts at the top like the other heroes; the medium is centred on the text block and the
     hero is as tall as its content (no full-screen box that pushed the text to its foot) */
  .hero--service.svc__hero--split{min-height:0}
  .hero--service.svc__hero--split>.svc__hero-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);align-items:center;gap:clamp(36px,5vw,80px)}
  .svc__hero-text{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;align-self:start}
  .svc__hero--split .svc__hero-text{container-type:inline-size}
  .svc__hero--split .display[style*="--hk"]{font-size:min(var(--svc-h1),calc(var(--hk)*1cqi))}
}

/* brand: the pack's lamp mark (own/logo/lamp/prure-lamp-512-v1.png, one of the "supplied lightbulb marks" of book p.5),
   shown as supplied: no glow, filter or other added effect, and never drawn above its own pixels ("do not enlarge a
   raster file beyond a clean result", p.5) */
.svc__mark{display:grid;place-items:center}
/* the lamp mark (prure-lamp-512-v1.png): at most 256 CSS px, 170 on phones, and never above its pixels on any screen
   (--lamp-max, prure.css: 512 / device pixel ratio) */
.svc__mark>div{width:min(44vw,170px,var(--lamp-max))}
.svc__mark img{width:100%;height:auto}
@media (min-width:600px){.svc__mark>div{width:min(36vw,240px,var(--lamp-max))}}
@media (min-width:900px){.svc__mark>div{width:min(24vw,46vh,256px,var(--lamp-max))}}

/* creative: three of Prure's own vertical ads, fanned, with Pru presenting them */
.svc__adhero{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:end;gap:0;margin:0}
.svc__adhero-ads{grid-column:2;grid-row:1;position:relative;height:clamp(300px,58vw,420px);isolation:isolate}
.svc__adhero-ads li{position:absolute;top:0;left:50%;height:100%;aspect-ratio:9/16;transform:translateX(-50%)}
.svc__adhero-ads img{width:100%;height:100%;border-radius:14px;box-shadow:0 30px 60px -30px #000}
.svc__adhero-ads li:nth-child(1){transform:translateX(-112%) rotate(-7deg) scale(.88);z-index:-1}
.svc__adhero-ads li:nth-child(3){transform:translateX(12%) rotate(7deg) scale(.88);z-index:-1}
.svc__adhero .pru{grid-column:1;grid-row:1;width:clamp(110px,28vw,200px);margin-right:-12%;z-index:1}
@media (min-width:900px){
  .svc__adhero{align-self:center}
  .svc__adhero-ads{height:min(64vh,560px)}
}

/* a scene of Prure's own films as a muted loop (services.vid) */
.svc__vid{position:relative;margin:0;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:#0a0118}
.svc__vid picture,.svc__vid img,.svc__vid video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.svc__vid video{visibility:hidden}
.js .svc__vid video{visibility:visible;opacity:0;transition:opacity .8s var(--ease)}
.svc__vid video.is-on{opacity:1}
.svc__vid .film__toggle{right:12px;bottom:12px}
@media (max-width:699px) and (orientation:portrait){.svc__vid--tall{aspect-ratio:9/16;max-height:78svh;margin-inline:auto}}
.svc__vidwrap{margin-top:clamp(40px,6vw,88px)}

/* websites: Prure's landing page scene inside a browser frame, Pru standing at its corner */
.svc__device{position:relative;width:100%;padding-right:clamp(48px,12vw,90px)}
.svc__frame--clip{border-radius:16px;min-width:0}
.svc__frame--clip .svc__vid{border-radius:0}
.svc__frame--clip .film__toggle{right:auto;left:12px}
.svc__device .pru{position:absolute;right:0;bottom:-6%;width:clamp(100px,26vw,170px);z-index:1}
/* the shared reveal leaves ~4 px under its box: Pru hangs below the frame, so the revealed state keeps room for Pru */
.js .svc__device[data-reveal].in{clip-path:inset(-.15em -.1em -14% -.1em)}
@media (max-width:899px){.svc__hero--web{padding-bottom:clamp(64px,10vw,96px)}}
@media (max-width:699px) and (orientation:portrait){.svc__frame--clip{width:min(100%,46svh)}}
@media (min-width:900px){
  .svc__hero--web .svc__device{padding-right:clamp(60px,6vw,96px);margin-right:calc(-1*min(var(--edge),40px))}
  .svc__hero--web .svc__device .pru{width:clamp(140px,14vw,220px);bottom:-4%}
}

/* seo: Pru stands at the end of the drawn search line */
.svc__searchrow{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:clamp(8px,2vw,24px);width:100%}
.svc__searchrow .pru{width:clamp(90px,20vw,180px)}

/* automation: the hero text beside Pru handing off */
.svc__hero-top{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:clamp(12px,3vw,48px);width:100%}
.svc__hero-top .pru{width:clamp(100px,22vw,240px)}
@media (max-width:599px){.svc__hero-top{grid-template-columns:1fr}.svc__hero-top .pru{justify-self:end;margin-top:-8px}}

/* websites: a browser frame drawn with lines */
.svc__frame{border-radius:16px 16px 0 0;background:var(--panel);box-shadow:inset 0 0 0 1px #ffffff1f;overflow:hidden}
.svc__frame-bar{display:flex;align-items:center;gap:7px;height:44px;padding-inline:18px;box-shadow:inset 0 -1px 0 #ffffff1f}
.svc__frame-bar i{width:9px;height:9px;border-radius:50%;background:#ffffff38}
.svc__frame-bar b{flex:1;max-width:340px;height:8px;margin-left:14px;border-radius:4px;background:#ffffff1a}

/* seo: a search line that draws, with the export's statement as the query */
.svc__search{position:relative;display:flex;align-items:center;gap:clamp(14px,2.4vw,32px);padding-bottom:clamp(16px,2.4vw,30px)}
.svc__hero .svc__search{padding-top:0;padding-bottom:clamp(16px,2.4vw,30px)}
.svc__search::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:#ffffff24}
.svc__search::before{content:"";position:absolute;z-index:1;left:0;right:0;bottom:0;height:2px;background:var(--orange);transform-origin:left}
.svc__search p{font-family:var(--heading);font-weight:600;font-size:clamp(1.55rem,5.4vw,4.6rem);letter-spacing:-.035em;line-height:1.04;text-wrap:balance}
.svc__glass{position:relative;flex:none;width:clamp(26px,4.4vw,58px);height:clamp(26px,4.4vw,58px);margin-right:.2em;border:2.5px solid var(--orange);border-radius:50%}
.svc__glass::after{content:"";position:absolute;left:92%;top:92%;width:46%;height:2.5px;background:var(--orange);transform:rotate(45deg);transform-origin:0 50%}
@media (min-width:900px){.svc__glass{border-width:3.5px}.svc__glass::after{height:3.5px}}

/* Short desktop screens (1280x800, 1366x768): the hero medium still ends above the fold */
@media (min-width:900px) and (max-height:860px){
  .svc__hero--search .display,.svc__hero--flow .display{font-size:min(var(--svc-h1),10vh)}
  .svc__hero--search .svc__media{padding-top:28px}
  /* round 6: the journey keeps at least 56 px under the actions (es-mx at 1280x800 / 1366x768 had 28 px: the box began
     right at the buttons); the long Spanish lede takes two lines instead of three to pay for it */
  .svc__hero--flow .svc__media{padding-top:56px}
  .svc__hero--flow.svc__hero--long .lede{max-width:72ch}
  .svc__hero--search .svc__search p{font-size:clamp(1.55rem,min(5.4vw,7.5vh),4.6rem)}
  .svc__hero--search .svc__searchrow .pru{width:clamp(90px,min(20vw,20vh),180px)}
  .svc__hero--flow .svc__flow figcaption{margin-bottom:14px}
  /* automation: Pru stands beside the text, so long translated headlines take more lines; the size steps down further */
  .svc__hero--flow .display{font-size:min(var(--svc-h1),9vh)}
  .svc__hero--flow .lede{max-width:56ch}
}

/* automation: the export's four-step example journey with its own icons, on one drawn line */
.svc__flow figcaption{font-size:.9rem;color:var(--muted);margin-bottom:clamp(18px,2.4vw,30px)}
.svc__flow-list{position:relative;display:grid;gap:22px;font-family:var(--heading);font-weight:500;font-size:clamp(1.15rem,1.9vw,1.6rem);letter-spacing:-.02em;line-height:1.15}
.svc__flow-list::before{content:"";position:absolute;left:31px;top:20px;bottom:20px;width:2px;background:var(--orange);transform-origin:top}
.js .svc__flow-list[data-draw]:not(.in)::before{transform:scaleY(0)}
.svc__flow-list li{position:relative;display:flex;align-items:center;gap:18px}
.svc__flow-ico{flex:none;display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--base);box-shadow:inset 0 0 0 1.5px #ffffff3d}
.svc__flow-ico img{width:34px;height:34px}
.js .svc__flow-list li{opacity:0;transform:translateY(14px);transition:opacity .9s var(--ease),transform .9s var(--ease)}
.js .svc__flow-list.in li{opacity:1;transform:none}
.js .svc__flow-list li:nth-child(1){transition-delay:.35s}.js .svc__flow-list li:nth-child(2){transition-delay:.55s}
.js .svc__flow-list li:nth-child(3){transition-delay:.75s}.js .svc__flow-list li:nth-child(4){transition-delay:.95s}
@media (min-width:900px){
  .svc__flow-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
  .svc__flow-list::before{left:44px;right:calc(25% - 44px);top:43px;bottom:auto;width:auto;height:2px;transform-origin:left}
  .js .svc__flow-list[data-draw]:not(.in)::before{transform:scaleX(0)}
  .svc__flow-list li{display:grid;justify-items:start;gap:18px;padding-right:24px}
  .svc__flow-ico{width:88px;height:88px}
  .svc__flow-ico img{width:44px;height:44px}
  /* a label that wraps never lifts its icon off the drawn line */
  .svc__flow-list li{align-content:start}
}
/* automation, long translated headline (.svc__hero--long, set by services.py): sized by the screen height up to ~1040 px
   tall too (1440x900: the Spanish headline took three lines and pushed the journey 87 px below the fold) */
@media (min-width:900px) and (max-height:1040px){.svc__hero--flow.svc__hero--long .display{font-size:min(var(--svc-h1),9vh)}}
@media (min-width:900px) and (max-height:860px){
  .svc__hero--flow .svc__flow-ico{width:72px;height:72px}
  .svc__hero--flow .svc__flow-ico img{width:36px;height:36px}
  .svc__hero--flow .svc__flow-list::before{left:36px;right:calc(25% - 36px);top:35px}
}

/* ---------- "What the service is" on paper ---------- */
.svc__lead{padding-top:0}
.svc__about{padding-top:var(--sec)}
.svc__grow{margin-top:clamp(48px,7vw,110px)}
.svc__values h3{font-size:clamp(2.4rem,7vw,6rem)}
@media (min-width:900px){.svc__values li{grid-template-columns:minmax(0,1fr)}}
@media (max-width:899px){.svc__values h3{font-size:calc(clamp(2.4rem,7vw,6rem)*var(--k,1))}}
.svc__values{gap:clamp(6px,1vw,14px)}

/* ---------- Creative: the rail carries photos, not reports ---------- */
.svc__slide-media{background:var(--panel)!important;display:grid;place-items:center;padding:6% 7%}
.hs__shot.svc__slide-media img{width:auto;height:auto;object-fit:contain;border-radius:10px;box-shadow:0 24px 50px -28px #000}
.svc__duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5%;width:100%;align-items:center}
.svc__duo img:first-child{transform:rotate(-3deg)}.svc__duo img:last-child{transform:translateY(6%) rotate(2.5deg)}
.hs__shot.svc__slide-media .svc__duo img{width:100%}
.svc__fmt{display:grid;grid-template-columns:minmax(0,1.78fr) minmax(0,1fr);gap:6%;width:86%;align-items:end}
.hs__shot.svc__slide-media .svc__fmt img{width:100%}
.svc__covers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5%;width:78%;align-items:center}
.hs__shot.svc__slide-media .svc__covers img{width:100%;border-radius:12px}
.svc__covers img:nth-child(2){transform:translateY(-6%)}
.svc__slide h3{display:flex;align-items:baseline;gap:.55em}
.svc__slide-n{flex:none;font-family:var(--body);font-weight:500;font-size:.9rem;letter-spacing:.02em;color:var(--muted)}
@media (max-width:699px){.svc__slide h3{font-size:1.45rem}}

/* The creative rail's wide frames: at the end stop the last slide, the gap and the closing card fit one screen. Below
   900 px (pinned there too since the scroll system) each slide is one screen wide and the closing card keeps 80vw. */
.hspin .svc__hs{--hs-gap:clamp(40px,4vw,80px);--hs-endw:min(34vw,440px)}
@media (max-width:899px){.hspin .svc__hs{--hs-endw:80vw}}
.hspin .svc__hs .hs__rail{gap:var(--hs-gap)}
.hspin .svc__hs .hs__slide--end{width:var(--hs-endw)}
@media (min-width:900px){
  .hspin .svc__hs .svc__slide{width:min(calc(var(--w)*1px),calc(clamp(220px,100vh - 330px,720px)*var(--ar)),calc(100vw - var(--edge)*2 - var(--hs-endw) - var(--hs-gap)))}
  .hspin .svc__hs .hs__slide--end h3{font-size:min(clamp(2.2rem,5.6vw,5rem),3.6vw)}
}

/* ---------- Journey rows with a sector label in the first column ---------- */
@media (min-width:900px){.rows.svc__rows:not(.rows--path) .row__in{grid-template-columns:minmax(0,13rem) minmax(0,1.3fr) minmax(0,1fr)}}
.svc__rows .row__n{overflow-wrap:anywhere}
@media (min-width:700px) and (max-width:899px){.rows.svc__rows:not(.rows--path) .row__in{grid-template-columns:minmax(0,10.5rem) minmax(0,1.3fr) minmax(0,1fr)}}

/* ---------- Scrubbed pinned moments (websites, seo). Plain lists unless pinned. ---------- */
.svc__scroll{padding-top:var(--sec)}
.svc__scroll-pin{display:grid;gap:clamp(32px,5vw,56px);padding-block:clamp(36px,5vw,64px) var(--sec)}
.svc__scroll-track{--p:0}
.svc__scroll-list{display:grid;gap:clamp(26px,4vw,44px)}
.svc__step-n{display:block;font-size:.9rem;font-weight:500;color:var(--muted)}
.svc__scroll-list h3{margin-top:6px;font-size:clamp(1.9rem,3.6vw,3.2rem)}
.svc__scroll-list p{margin-top:10px;color:var(--muted);font-size:clamp(1rem,1.4vw,1.2rem);line-height:1.45;max-width:34ch}

/* the page inside the frame (round 5): three sections of a landing page made of Prure's own material, each with a small
   step tag. Not pinned: the three stand one under the other like a page. */
.svc__frame--page{border-radius:16px}
.svc__screen{display:grid;align-content:start;justify-items:start;gap:clamp(16px,2.4vw,24px);padding:clamp(22px,5vw,48px) clamp(20px,5vw,56px);box-shadow:inset 0 -1px 0 #ffffff14}
.svc__screen-tag{display:inline-flex;align-items:center;gap:.7em;padding:5px 12px 5px 10px;border-radius:999px;box-shadow:inset 0 0 0 1px #ffffff29;font-size:.8rem;font-weight:500;line-height:1.2;color:var(--muted)}
.svc__screen-tag span{font-weight:600;color:var(--orange)}
.svc__screen-in{display:grid;justify-items:start;align-content:center;gap:clamp(14px,2vw,22px);width:100%;min-width:0}
.svc__screen-nav{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding-bottom:12px;box-shadow:inset 0 -1px 0 #ffffff1a}
.svc__screen-nav img{width:clamp(96px,22%,150px);height:auto}
.svc__screen--msg .svc__screen-in{padding-top:clamp(8px,2vw,20px)}
.svc__screen-note{display:flex;align-items:center;gap:12px;font-family:var(--heading);font-weight:500;font-size:clamp(.9rem,1.3vw,1.05rem)}
.svc__screen-note img{width:44px;height:44px;border-radius:50%;background:var(--base)}
.svc__screen-h{font-family:var(--heading);font-weight:600;font-size:clamp(1.6rem,4vw,3rem);letter-spacing:-.035em;line-height:1.04;max-width:13em;text-wrap:balance}
.svc__screen-h em{font-style:normal;color:var(--orange)}
.svc__screen-p{max-width:40ch;color:var(--muted);font-size:clamp(.9rem,1.3vw,1.05rem);line-height:1.45}
.svc__screen-act{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px}
.svc__screen-link{font-size:.9rem;font-weight:500}
.svc__screen-link::after{content:"";display:inline-block;width:.42em;height:.42em;margin-left:.5em;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor;transform:translateY(-.12em) rotate(45deg)}
.svc__screen-ads{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(8px,1.4vw,14px);width:min(100%,520px);justify-self:center}
.svc__screen-ads img{width:100%;height:auto;border-radius:10px;box-shadow:0 20px 40px -24px #000}
.svc__fields{display:grid;gap:clamp(12px,2vw,20px);width:min(100%,420px)}
.svc__field{display:grid;gap:8px}
.svc__field em{font-style:normal;font-size:.8rem;color:var(--muted)}
.svc__field i{height:1.5px;background:#ffffff59}
.svc__pill{display:inline-flex;align-items:center;min-height:44px;padding:0 22px;border-radius:999px;background:var(--orange);color:var(--base);font-weight:600;font-size:.94rem;white-space:nowrap}
.svc__pill--sm{min-height:30px;padding:0 13px;font-size:.75rem}

.seqpin .svc__scroll--web .svc__scroll-track,.seqpin .svc__scroll--seo .svc__scroll-track{
  --N:calc(1 + var(--n)*.62);
  /* --p (prure.js) runs 0..1 over the whole track; --q is the same thing over the pinned stretch only */
  --q:clamp(0,(var(--p) - .62/var(--N))/(1 - 1/var(--N)),1);
  height:calc(var(--N)*100vh);height:calc(var(--N)*100svh)}
.seqpin .svc__scroll--web .svc__scroll-pin,.seqpin .svc__scroll--seo .svc__scroll-pin{position:sticky;top:0;height:100vh;height:100svh;padding-block:calc(var(--hdr) + 12px) 24px;align-content:center}
/* each line is brightest when the scroll is on it: --d is its distance from the current step */
.seqpin .svc__scroll--web .svc__scroll-list li,.seqpin .svc__words li{--d:calc(var(--q)*(var(--n) - 1) - var(--i))}
.seqpin .svc__scroll--web .svc__scroll-list{position:relative;gap:clamp(12px,2.4vh,24px);padding-left:clamp(22px,2.6vw,40px)}
.seqpin .svc__scroll--web .svc__scroll-list::before,.seqpin .svc__scroll--web .svc__scroll-list::after{content:"";position:absolute;left:0;top:6px;bottom:6px;width:2px;background:#ffffff24}
.seqpin .svc__scroll--web .svc__scroll-list::after{background:var(--orange);transform:scaleY(var(--q));transform-origin:top}
/* the current step: |d| <= .35 full, then fades while the frame moves (the frame holds each screen, services.py --pos) */
.seqpin .svc__scroll--web .svc__scroll-list h3{opacity:clamp(.45,1 - (max(var(--d),-1*var(--d)) - .35)*2.75,1);margin-top:2px;font-size:min(1.5rem,3.4vh)}
.seqpin .svc__scroll--web .svc__scroll-list p{margin-top:4px;font-size:.95rem;line-height:1.4}
.seqpin .svc__scroll--web .svc__scroll-pin{gap:clamp(14px,2.6vh,28px)}
.seqpin .svc__scroll--web .svc__scroll-track{--s:calc(var(--q)*(var(--n) - 1))}
.seqpin .svc__frame--page{order:-1;display:flex;flex-direction:column;height:40vh;height:40svh}
.seqpin .svc__frame--page .svc__frame-bar{height:34px}
.seqpin .svc__frame--page .svc__frame-view{flex:1;min-height:0;overflow:hidden;container-type:size}
.seqpin .svc__frame-page{height:calc(var(--n)*100%);transform:translate3d(0,calc(var(--pos,0)*-100%/var(--n)),0);will-change:transform}
/* one screen = the view; everything inside is sized by the view (cqw / cqh), so a screen always fits it */
.seqpin .svc__screen--msg .svc__screen-in{padding-top:0}
.seqpin .svc__screen.svc__screen--msg{grid-template-rows:auto auto minmax(0,1fr)}
.seqpin .svc__screen-note{font-size:clamp(.72rem,2.6cqh,1.05rem);gap:clamp(8px,1.6cqw,12px)}
.seqpin .svc__screen-note img{width:clamp(26px,6.6cqh,44px);height:clamp(26px,6.6cqh,44px)}
.seqpin .svc__screen{height:calc(100%/var(--n));grid-template-rows:auto minmax(0,1fr);gap:clamp(8px,3cqh,22px);padding:clamp(12px,5cqh,40px) clamp(16px,6cqw,56px);box-shadow:none;overflow:hidden}
.seqpin .svc__screen-tag{font-size:clamp(.68rem,2.4cqh,.8rem);padding-block:clamp(3px,.8cqh,5px)}
.seqpin .svc__screen-in{gap:clamp(8px,3.4cqh,26px);align-self:center}
.seqpin .svc__screen-nav{padding-bottom:clamp(6px,1.8cqh,12px)}
.seqpin .svc__screen-nav img{width:clamp(80px,22cqw,150px)}
.seqpin .svc__screen-h{font-size:clamp(1.15rem,min(7.2cqw,8.6cqh),3.6rem)}
.seqpin .svc__screen-p{font-size:clamp(.78rem,min(2.6cqw,2.8cqh),1.1rem)}
.seqpin .svc__pill{min-height:clamp(28px,6.6cqh,44px);padding-inline:clamp(12px,3.4cqw,22px);font-size:clamp(.72rem,2.4cqh,.94rem)}
.seqpin .svc__pill--sm{min-height:clamp(22px,4.6cqh,30px);padding-inline:clamp(9px,2.4cqw,13px);font-size:clamp(.62rem,1.9cqh,.75rem)}
.seqpin .svc__screen-link{font-size:clamp(.72rem,2.4cqh,.9rem)}
.seqpin .svc__screen-ads{width:min(100%,100cqh - 9rem)}
.seqpin .svc__fields{gap:clamp(8px,3cqh,20px)}
.seqpin .svc__field{gap:clamp(3px,1.2cqh,8px)}
.seqpin .svc__field em{font-size:clamp(.66rem,2.2cqh,.8rem)}
/* a short view (phones): the head keeps headline and actions, the contact block two fields */
@container (max-height:360px){
  .svc__screen-p{display:none}
  .svc__field:nth-child(3){display:none}
}
/* round 6, phones (a narrow view): step 02's four own ads fill the height left under the step tag (they were ~76 px
   squares in a mostly empty frame at 390x844), and the frame is a little taller where the screen allows */
@container (max-width:560px){
  .seqpin .svc__screen--design{gap:clamp(8px,2.4cqh,14px)}
  .seqpin .svc__screen--design .svc__screen-ads{width:min(100%,100cqh - 4.4rem);gap:8px}
}
/* on phones the frame takes the height the step list leaves free (at least the old 40svh, at most 48svh), so a longer
   translation never pushes the list past the screen */
@media (max-width:599px){
  .seqpin .svc__scroll--web .svc__scroll-pin{grid-template-rows:minmax(0,1fr) auto;align-content:stretch}
  .seqpin .svc__scroll--web .svc__frame--page{align-self:end;height:100%;min-height:40svh;max-height:48svh}
}
/* short phones (480-679 px tall, pinned since the scroll system): a smaller frame, two-line step texts, the seo words
   capped by the height as well */
@media (max-width:899px) and (max-height:679px){
  .seqpin .svc__scroll--web .svc__frame--page{min-height:34svh;max-height:44svh}
  .seqpin .svc__scroll--web .svc__scroll-list p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;font-size:.9rem}
  .seqpin .svc__scroll--web .svc__scroll-list h3{font-size:min(1.35rem,3.4vh)}
  .seqpin .svc__scroll--web .svc__scroll-pin{padding-block:calc(var(--hdr) + 4px) 12px}
  .seqpin .svc__words h3{font-size:calc(min(clamp(3.2rem,17vw,6rem),11vh)*var(--k,1))}
}
@media (max-width:899px) and (max-height:599px){.seqpin .svc__scroll--web .svc__frame--page{min-height:26svh}}
@media (min-width:600px) and (max-width:899px){
  .seqpin .svc__frame--page{height:44svh}
  .seqpin .svc__scroll--web .svc__scroll-list h3{font-size:2rem}
  .seqpin .svc__scroll--web .svc__scroll-list p{font-size:1.1rem}
}
@media (min-width:900px){
  .seqpin .svc__scroll--web .svc__scroll-pin{grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);gap:clamp(36px,5vw,80px);align-items:center}
  .seqpin .svc__scroll--web .svc__scroll-list{gap:clamp(22px,4.4vh,44px)}
  .seqpin .svc__scroll--web .svc__scroll-list h3{margin-top:6px;font-size:min(clamp(1.9rem,3.2vw,3.2rem),6.4vh)}
  .seqpin .svc__scroll--web .svc__scroll-list p{margin-top:10px;font-size:clamp(1rem,1.4vw,1.2rem);line-height:1.45}
  .seqpin .svc__frame--page{order:0;height:min(78vh,760px)}
  .seqpin .svc__frame--page .svc__frame-bar{height:44px}
}

/* seo: three words, the scroll moves through them; the path under them fills from search to enquiry */
.svc__words{display:grid;gap:clamp(22px,4vw,40px)}
.svc__words h3{font-size:clamp(3rem,13vw,9rem);line-height:.96}
.svc__words p{margin-top:10px;color:var(--muted);font-size:clamp(1.05rem,1.7vw,1.4rem);line-height:1.4;max-width:30ch}
.svc__trail{position:relative;display:grid;gap:16px;padding-left:30px;font-weight:500;font-size:clamp(1rem,1.5vw,1.2rem);line-height:1.3}
.svc__trail::before,.svc__trail::after{content:"";position:absolute;left:5px;top:.6em;bottom:.6em;width:2px;background:var(--orange)}
.svc__trail::after{content:none}
.svc__trail li{position:relative}
.svc__trail li::before{content:"";position:absolute;left:-30px;top:.3em;width:12px;height:12px;border-radius:50%;background:var(--panel);box-shadow:inset 0 0 0 2px var(--orange)}
.svc__trail li:last-child::before{background:var(--orange)}
@media (min-width:900px){
  .svc__trail{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:0}
  .svc__trail::before,.svc__trail::after{left:6px;right:calc(33.333% - 6px);top:5px;bottom:auto;width:auto;height:2px}
  .svc__trail li{padding:30px 20px 0 0}
  .svc__trail li::before{left:0;top:0}
}
.seqpin .svc__scroll--seo .svc__scroll-pin{align-content:center;gap:clamp(28px,6vh,72px)}
.seqpin .svc__words{position:relative;align-self:center;gap:0}
.seqpin .svc__words h3{opacity:clamp(.5,1.7 - 2.6*max(var(--d),-1*var(--d)),1)}
/* --k (set by services.py from the longest word) keeps a long word of another language inside a phone screen */
.seqpin .svc__words h3{display:inline-block;position:relative;font-size:calc(min(clamp(3.2rem,17vw,6rem),13vh)*var(--k,1));line-height:1.04}
.seqpin .svc__words h3::after{content:"";position:absolute;left:0;right:0;bottom:.02em;height:.06em;background:var(--orange);transform:scaleX(clamp(0,1.5 - 3*max(var(--d),-1*var(--d)),1));transform-origin:left}
/* the three lines share one place; only the current one is shown */
.seqpin .svc__words p{position:absolute;left:0;top:100%;margin-top:clamp(14px,3vh,28px);opacity:clamp(0,1.6 - 4*max(var(--d),-1*var(--d)),1)}
.seqpin .svc__words{margin-bottom:5.5em}
.seqpin .svc__trail::after{content:"";background:var(--orange)}
.seqpin .svc__trail::before{background:#ffffff24}
.seqpin .svc__trail::after{transform:scaleY(var(--q));transform-origin:top}
.seqpin .svc__trail li{--t:calc(var(--q)*(var(--n) - 1) - var(--i))}
.seqpin .svc__trail li::before{background:var(--panel)}
.seqpin .svc__trail li::after{content:"";position:absolute;left:-30px;top:.3em;width:12px;height:12px;border-radius:50%;background:var(--orange);opacity:clamp(0,var(--t)*6 + 1,1)}
@media (min-width:900px){
  .seqpin .svc__words h3{font-size:min(clamp(4rem,10.5vw,10rem),19vh)}
  .seqpin .svc__words{margin-bottom:0}
  .seqpin .svc__words p{left:58%;top:50%;width:42%;margin:0;transform:translateY(-50%);font-size:clamp(1.15rem,1.9vw,1.7rem);max-width:24ch}
  .seqpin .svc__trail::after{transform:scaleX(var(--q));transform-origin:left}
  .seqpin .svc__trail li::after{left:0;top:0}
}

/* ---------- Brand: stacking panels with Prure's own identity ---------- */
.svc__panel .stack__lead h3{font-size:clamp(2rem,4.2vw,3.9rem)}
.svc__id{display:grid;gap:clamp(20px,3vh,36px);justify-items:center;align-content:center}
.svc__id-sym{width:min(34vw,22vh,200px)}
.svc__id-sym img{width:100%;height:auto}
.svc__id-film{width:min(100%,72vh,640px)}
.svc__id-word{width:min(100%,520px)}
/* clear space (book p.5): at least one visible letter-height (.0985 x the wordmark's width) on every side, also on phones
   where the panel below overlaps this one by 22 px: margins are 8.25 % of the box, the wordmark 83.5 % (.0822 x box) */
.svc__id-word img{display:block;width:83.5%;margin:8.25% auto}
.svc__swatches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;height:clamp(150px,38vh,380px);border-radius:16px;overflow:hidden;box-shadow:inset 0 0 0 1px #ffffff24}
.svc__swatches li{box-shadow:inset 0 0 0 1px #ffffff33!important;display:flex;flex-direction:column;justify-content:flex-end;gap:2px;padding:10px clamp(6px,1vw,14px);background:var(--c);color:var(--ink,#0a0118);font-size:clamp(.68rem,1vw,.9rem);font-weight:600;line-height:1.25;box-shadow:inset 1px 0 0 #ffffff24}
.svc__swatches span{overflow-wrap:break-word;hyphens:auto}
.svc__swatches code{font-family:var(--body);font-weight:400;font-size:.92em;overflow-wrap:anywhere}
.svc__type{display:flex;align-items:baseline;gap:clamp(20px,4vw,56px);width:100%}
.svc__type-a{font-family:var(--heading);font-weight:600;font-size:clamp(2.6rem,6vw,5.4rem);letter-spacing:-.035em;line-height:1}
.svc__type-b{font-family:var(--body);font-weight:400;font-size:clamp(1.5rem,3vw,2.6rem);line-height:1;color:var(--muted)}
.svc__id--presence{justify-items:start}
.svc__id-og{width:min(100%,72vh,640px);border-radius:12px;overflow:hidden}
/* round 6: the two icons side by side under the film, each with its label on one shared baseline: the app icon (never
   above its pixels: --lamp-max, prure.css) and the browser icon in a browser tab beside the name */
.svc__id-icons{display:flex;flex-wrap:wrap;align-items:flex-end;gap:16px clamp(32px,5vw,64px);width:min(100%,72vh,640px);margin:0;padding:0;list-style:none}
.svc__id-icons li{display:grid;justify-items:start;gap:clamp(10px,1.6vh,14px)}
.svc__id-app img{height:min(170px,17vh,var(--lamp-max));width:auto;max-width:none;aspect-ratio:1}   /* definite height: under width:min-content a percentage/auto width collapsed the icon to its label's longest word (round-6 regression) */
.svc__id-app{width:min-content}   /* a long label wraps under the icon instead of pushing the tab to a second row */
.svc__id-label{font-size:.85rem;font-weight:500;letter-spacing:.01em;color:var(--muted)}
.svc__tab{display:inline-flex;align-items:center;gap:10px;min-width:13.5em;height:44px;padding:0 22px 0 14px;border-radius:12px 12px 0 0;background:#ffffff14;box-shadow:inset 0 1px 0 #ffffff1f,0 1px 0 var(--orange);font-size:.92rem;line-height:1}
.svc__tab img{flex:none;width:20px;height:20px}
.svc__tab b{font-weight:500;white-space:nowrap}
@media (max-width:599px){.svc__id-icons{column-gap:24px}.svc__tab{min-width:0;padding-right:16px}}
/* visuals rise a little when their panel arrives */
.js.motion .svc__panel[data-in] .svc__id{opacity:0;transform:translateY(28px);transition:opacity 1s var(--ease) .15s,transform 1.2s var(--ease) .15s}
.js.motion .svc__panel[data-in].in .svc__id{opacity:1;transform:none}
.js.motion .svc__panel[data-in] .svc__swatches li{transform:scaleY(0);transform-origin:bottom;transition:transform 1s var(--ease)}
.js.motion .svc__panel[data-in].in .svc__swatches li{transform:none}
.js.motion .svc__swatches li:nth-child(2){transition-delay:.08s}.js.motion .svc__swatches li:nth-child(3){transition-delay:.16s}
.js.motion .svc__swatches li:nth-child(4){transition-delay:.24s}.js.motion .svc__swatches li:nth-child(5){transition-delay:.32s}
.js.motion .svc__swatches li:nth-child(6){transition-delay:.40s}
/* six brand-book colours as 3 x 2 at every width: six columns left 61-93 px per swatch, too narrow for names such as
   "Tamnoljubičasta" */

/* The shared strip glides in from 6vw to the right; this keeps that start position from widening the page. */
.svc__clip{overflow:hidden;overflow:clip}

/* ---------- Automation: a winding path that draws with the scroll ---------- */
.svc__path{--p:1;position:relative;margin-top:clamp(40px,6vw,88px)}
.svc__curve{display:none}
.svc__stations{position:relative;display:grid;gap:clamp(40px,7vw,72px);padding-left:clamp(84px,12vw,112px)}
.svc__path::before,.svc__path::after{content:"";position:absolute;left:31px;top:32px;bottom:32px;width:2px;background:#ffffff29}
.svc__path::after{background:var(--orange);transform:scaleY(var(--p));transform-origin:top}
.svc__station{position:relative;display:grid;align-items:center;min-height:64px}
.svc__node{position:absolute;z-index:1;left:calc(-1*clamp(84px,12vw,112px));top:0;display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--base);box-shadow:inset 0 0 0 1.5px #ffffff3d;transition:box-shadow .5s,transform .6s var(--ease)}
.svc__node img{width:34px;height:34px}
.svc__station.is-active .svc__node{box-shadow:inset 0 0 0 2px var(--orange);transform:scale(1.08)}
.svc__station h3{margin-top:6px;font-size:clamp(1.8rem,3.6vw,3.2rem)}
.svc__station p{margin-top:12px;color:var(--muted);font-size:clamp(1rem,1.5vw,1.25rem);line-height:1.45;max-width:32ch}
.js.motion .svc__station[data-in]>div{opacity:0;transform:translateY(24px);transition:opacity 1s var(--ease),transform 1.1s var(--ease)}
.js.motion .svc__station[data-in].in>div{opacity:1;transform:none}
@media (min-width:900px){
  .svc__path::before,.svc__path::after{content:none}
  .svc__curve{display:block;position:absolute;left:32%;top:0;width:36%;height:100%;color:#ffffff29;overflow:visible}
  .svc__curve--on{color:var(--orange);clip-path:inset(0 0 calc((1 - var(--p))*100%) 0)}
  .svc__stations{gap:0;padding:0}
  .svc__station{min-height:clamp(230px,36vh,340px);grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .svc__station>div{grid-column:2;padding-left:calc(21.6% + 88px)}
  .svc__station:nth-child(odd)>div{grid-column:1;grid-row:1;justify-self:end;padding:0 calc(21.6% + 88px) 0 0}
  /* the curve touches 20 % and 80 % of its 36 % column: 39.2 % and 60.8 % of the row */
  .svc__node{left:60.8%;top:50%;width:104px;height:104px;margin:-52px 0 0 -52px}
  .svc__station:nth-child(odd) .svc__node{left:39.2%}
  .svc__node img{width:52px;height:52px}
  .js.motion .svc__station:nth-child(odd)[data-in]>div{transform:translateX(-28px)}
  .js.motion .svc__station:nth-child(even)[data-in]>div{transform:translateX(28px)}
  .js.motion .svc__station[data-in].in>div{transform:none}
}

/* ---------- Two related services: large full-width links ---------- */
.svc__next-list{margin-top:clamp(40px,6vw,88px)}
.svc__next-link{position:relative;display:block;padding-block:clamp(26px,4vw,56px);text-decoration:none;background:linear-gradient(var(--orange),var(--orange)) no-repeat 0 0/0 2px}
.svc__next-link::before{content:"";position:absolute;left:0;right:0;top:0;height:1px;background:currentColor;opacity:.15}
.svc__next-in{display:grid;gap:8px 40px;align-items:center}
.svc__next-name{font-family:var(--heading);font-weight:600;font-size:clamp(2rem,5.4vw,4.8rem);letter-spacing:-.035em;line-height:1.02;transition:color .4s,transform .7s var(--ease)}
.svc__next-desc{color:var(--muted);font-size:clamp(1rem,1.5vw,1.2rem);line-height:1.45;max-width:40ch}
.svc__next-go{justify-self:start;width:clamp(18px,2.4vw,34px);height:clamp(18px,2.4vw,34px);margin-top:8px;border-top:2px solid var(--orange);border-right:2px solid var(--orange);transform:rotate(45deg);transition:transform .6s var(--ease)}
.svc__next-link{transition:background-size .8s var(--ease)}
.svc__next-link:hover,.svc__next-link:focus-visible{background-size:100% 2px}
.svc__next-link:hover .svc__next-name,.svc__next-link:focus-visible .svc__next-name{color:var(--peach)}
.svc__next-link:focus-visible{outline-offset:-4px}
@media (hover:hover){.motion .svc__next-link:hover .svc__next-name{transform:translateX(14px)}.motion .svc__next-link:hover .svc__next-go{transform:translateX(10px) rotate(45deg)}}
@media (min-width:900px){
  .svc__next-in{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) auto}
  .svc__next-go{margin:0 12px 0 0}
}

@media (prefers-reduced-motion:reduce){
  .js .svc__flow-list li,.js .svc__flow-list[data-draw]:not(.in)::before{opacity:1;transform:none}
  .svc__path{--p:1!important}
}

/* ---------- Brand: Meet Pru (film 1) ---------- */
.svc__meet{display:grid;gap:clamp(28px,5vw,64px);align-items:end}
.svc__meet-text{min-width:0;container-type:inline-size}
.svc__meet-text .h2{font-size:clamp(2.3rem,5vw,4.3rem)}
@supports (width:1cqi){.svc__meet-text .h2{font-size:min(clamp(2.3rem,5vw,4.3rem),15.5cqi)}}
.svc__meet-note{margin-top:clamp(16px,2vw,24px);font-family:var(--heading);font-weight:500;font-size:clamp(1.2rem,2vw,1.6rem);letter-spacing:-.02em;color:var(--orange)}
/* Round 5: Pru (confident, a render; not the film's frame, which is already the film card's cover) stands beside film 1 */
.svc__meet .svc__meet-pru{justify-self:center;width:min(60vw,300px)}
.svc__meet-film{padding:0}
@media (max-width:999px){.svc__meet .svc__meet-pru{margin-bottom:-12px}}
@media (min-width:1000px){
  .svc__meet{grid-template-columns:minmax(0,1.1fr) minmax(0,.8fr) auto}
  .svc__meet .svc__meet-pru{justify-self:end;width:min(100%,340px);margin-right:calc(-1*clamp(8px,2vw,32px))}
  /* round 6: the Film 1 card, its title and "Transcript" fit one screen under the section's top padding (1024x768: the
     340 px card ran from 96 to 792 px, past the fold); the card's width follows the screen height, 9:16 */
  .svc__meet-film .reel__item{width:min(76vw,340px,(100svh - var(--sec) - 150px)*.5625)}
}

/* ---------- Automation: Pru follows the lead along the drawn path (--p from [data-progress]) ---------- */
.svc__walker{position:absolute;z-index:2;left:32px;top:calc(32px + var(--p)*(100% - 64px));width:48px;height:48px;transform:translate(-50%,-50%);border-radius:50%;box-shadow:0 0 0 2px var(--orange);pointer-events:none}
.svc__walker .pru-face{width:100%;height:100%;background:var(--panel)}
@media (min-width:900px){
  /* round 6: Pru walks only between the first and the last station (curve y 12.5 .. 87.5 %), so when the path has
     scrolled through he stops ON step 04, not on the curve's loose tail below it (it used to run to y 100 %) */
  .svc__walker{--y:clamp(12.5,var(--p)*100,87.5);width:72px;height:72px;left:50%;top:calc(var(--y)*1%)}
  /* on the curve: x(y) = 50 - 30 cos((y - 12.5) * 7.2deg) in the 36 % wide column that starts at 32 % */
  @supports (left:calc(1% * cos(0deg))){
    .svc__walker{left:calc(32% + 36% * (50 - 30 * cos((var(--y) - 12.5) * 7.2deg)) / 100)}
  }
}

/* Round 7: the official agency icon beside each related service */
.svc__next-name{display:flex;align-items:center;gap:clamp(14px,2vw,24px)}
.svc__next-ico{flex:none;width:clamp(36px,4vw,56px);height:auto}
