/* Agencies — the multi-client control room, brought onto the shared system.
   Loaded after agency-v2.css; keeps the page's structure, story and scripts. */
.agencies-v3{position:relative;isolation:isolate;font-size:15px}
.agencies-v3 .wrap{max-width:none;width:min(1320px,calc(100% - 96px))}
.agencies-v3 main :is(h1,h2){font-family:var(--display);font-stretch:94%;font-optical-sizing:auto;font-weight:510;letter-spacing:-.035em;text-wrap:balance}
.agencies-v3 main h2{font-size:clamp(34px,4.1vw,56px);line-height:1.06}
.agencies-v3 .a-hero h1{font-size:clamp(44px,5vw,77px);line-height:1.045;letter-spacing:-.036em}
.agencies-v3 .agency-questions h2{font-size:clamp(30px,3.3vw,43px)}
.agencies-v3 .start-card h2{font-size:clamp(34px,4.1vw,56px)}
.agencies-v3 main em{letter-spacing:-.045em}
.agencies-v3 .step h3,.agencies-v3 .week-caption h3,.agencies-v3 .model-copy h3{font-family:var(--display);font-stretch:94%;letter-spacing:-.025em}
.agencies-v3 :is(.step p,.week-caption p,.service-head p,.roles p,.a-hero p){color:var(--quiet);line-height:1.65}

/* Even rhythm: same air above and below, homepage clamps. */
.agencies-v3 .a-hero{padding-top:clamp(48px,5vw,92px)}
.agencies-v3 .week{margin-top:var(--gap-l);padding-block:var(--gap-l);background:#111312;border-color:#232923}
.agencies-v3 .service,.agencies-v3 .roles,.agencies-v3 .agency-questions,.agencies-v3 .start{padding-block:var(--gap-l) 0}

/* Week: shorter scroll and more legible inactive steps (was 4 × 72vh of mostly empty dark). */
.agencies-v3 .step{min-height:46vh;opacity:.5}
.agencies-v3 .step:last-child{min-height:40vh}
.agencies-v3 .step.is-active{opacity:1}
.agencies-v3 .week-stage{border-color:#3b433b;border-radius:10px;background:#151816}

/* Service line: every client column carries the same three-part service, not an empty box. */
.agencies-v3 .stack-service:empty{background:repeating-linear-gradient(180deg,transparent 0 12px,#d0f85a1a 12px 30px,transparent 30px 36px),linear-gradient(180deg,#d0f85a1f,#d0f85a08);background-clip:content-box;padding:14px 10px}
.agencies-v3 .stack.is-next .stack-service:empty{background:repeating-linear-gradient(180deg,transparent 0 12px,#d0f85a0d 12px 30px,transparent 30px 36px);background-clip:content-box}
.agencies-v3 .service-panel,.agencies-v3 .model{border-color:#353a3d;border-radius:10px;background:#151719}
.agencies-v3 .stack-note,.agencies-v3 .stack-client small{font-size:11px}

/* Small controls get a usable hit area. */
.agencies-v3 #watch-replay,.agencies-v3 .watch-controls button{min-height:36px;padding-inline:12px}
.agencies-v3 :is(.scale-toggle,.week-tabs) button{min-height:36px}

/* Footer parity with the homepage. */
.agencies-v3 .site-footer{border-top:0}
.agencies-v3 .watch-title{flex-wrap:wrap;row-gap:4px}
.agencies-v3 .watch-title .watch-concept{flex-basis:100%;color:var(--quiet)}
@media (max-width:860px){.agencies-v3 .model-fields input,.agencies-v3 .sentence input{font-size:16px}}

@media (max-width:1100px){.agencies-v3 .wrap{width:calc(100% - 64px)}}
@media (max-width:540px){.agencies-v3 .wrap{width:calc(100% - 36px)}}
/* The shared reset removes default margins; restore this page's spacing. */
.agencies-v3 main :is(h1,h2,h3) + p{margin-top:18px}
.agencies-v3 .a-hero p{margin-bottom:22px}
.agencies-v3 .service-head p{margin-top:18px}
.agencies-v3 .start-card .sentence{margin-top:28px}
.agencies-v3 .footer-column{gap:11px}
.agencies-v3 .footer-column a{line-height:1.55}
.agencies-v3 .stack-service:empty{background:repeating-linear-gradient(180deg,transparent 0 14px,#d0f85a12 14px 32px,transparent 32px 40px);background-clip:content-box}
/* Legibility floor for the agency UI (was 10px in places). */
.agencies-v3 main :is(small,.ask-who,.rec-status,.scene-note,.evidence span,.w-head span,.watch-foot span,th){font-size:11px}
