/* offices-scroll.css (2026-11-16): the contact page "Visit us" offices as a pinned scroll story, one office at a time.
   Script: js/pages/offices-scroll.js (adds .ofs-pin to #visit and builds .ofs-run). Without the script, under reduced motion or on short
   landscape screens the static columns (.vz-*, css/pages/pages-v7.css) show unchanged. No boxes, no lines, no progress bar. */
.vz[hidden],.ofs-run[hidden]{display:none!important}
.ofs-w{display:inline-block}
.ofs-t{min-width:0}
.ofs-fl{display:flex;justify-content:flex-start;margin:0 0 clamp(14px,2.2vh,24px);transform-origin:30% 50%}
.ofs-fl .flg-i{align-items:flex-start}
.ofs-fl .flg-p{width:clamp(96px,8.4vw,136px)}
.ofs-t .vz-k{margin:0 0 8px;font-size:12.5px;letter-spacing:.2em;color:var(--burg)}
:root[data-theme=dark] .ofs-t .vz-k{color:#eaa3cf}
.ofs-t .vz-n{margin:0 0 clamp(10px,1.8vh,18px);font-size:clamp(56px,6.2vw,104px);line-height:.98;letter-spacing:-.02em}
.ofs-t .vz-a{max-width:38ch;font-size:17px}
.ofs-t .vz-l li{grid-template-columns:84px minmax(0,1fr)}
/* the Nepal contact office: a little quieter */
.ofs-t.ofs-np .vz-k{color:var(--mut)}
.ofs-t.ofs-np .vz-n{font-size:clamp(48px,5.2vw,84px)}
.ofs-t.ofs-np .ofs-fl .flg-p{width:clamp(84px,7vw,112px)}
.ofs-f.ofs-np img{filter:saturate(.86)}
/* index: city names only; the active one in ink and the serif */
.ofs-ix{list-style:none;margin:0;padding:0;display:flex;gap:6px}
.ofs-ib{appearance:none;background:none;border:0;margin:0;padding:6px 0;cursor:pointer;font:500 13px/1.3 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--mut);opacity:.7;transition:color .4s,opacity .4s,letter-spacing .4s}
.ofs-ib:hover{opacity:1}
.ofs-ib.is-on{opacity:1;color:var(--ink)}
.ofs-ib:focus-visible{outline:2px solid var(--pink);outline-offset:4px;border-radius:4px}
.ofs-ts,.ofs-fs{display:grid;min-width:0}
.ofs-ts>*,.ofs-fs>*{grid-area:1/1}
.ofs-t{align-self:start;opacity:0;visibility:hidden;transition:opacity .45s ease,visibility 0s linear .5s}
.ofs-t.is-on{opacity:1;visibility:visible;transition:opacity .3s ease}
.ofs-f{position:relative;margin:0;border-radius:28px;overflow:hidden;background:var(--phc,#8a96a3);opacity:0;z-index:1;transition:opacity .7s ease .12s}
.ofs-f.is-on{opacity:1;z-index:2;transition:opacity .8s cubic-bezier(.33,1,.68,1)}
.ofs-f img{display:block;width:100%;height:100%;object-fit:cover;transform:scale(1.04);transition:transform 1.2s cubic-bezier(.16,1,.3,1)}
.ofs-f.is-on img{transform:none}
.ofs-run.ofs-pre .ofs-t.is-on,.ofs-run.ofs-pre .ofs-f.is-on{opacity:0}
.v7 .sec.ofs-pin{padding-block:0}
.ofs-pin .vz-h{margin:0;padding:18px 0 clamp(80px,9vw,140px)}
.ofs-top .flg-hd{display:block}
.ofs-top .eyebrow{margin-bottom:10px}

/* desktop */
@media(min-width:901px) and (min-height:600px){
 .ofs-run{height:calc(100vh - var(--hdr,68px) + 210vh)}
 .ofs-stage{position:sticky;top:var(--hdr,68px);height:calc(100vh - var(--hdr,68px));display:flex;align-items:center}
 .ofs-g{width:100%;display:grid;grid-template-columns:minmax(120px,.22fr) minmax(0,.86fr) minmax(0,1.04fr);grid-template-rows:auto minmax(0,1fr);
  grid-template-areas:"top top fig" "ix txt fig";column-gap:clamp(24px,3vw,56px);height:calc(100% - clamp(48px,8vh,96px))}
 .ofs-top{grid-area:top;align-self:end;padding-bottom:clamp(20px,4vh,44px)}
 .ofs-top #vH{font-size:clamp(34px,3.3vw,52px);line-height:1.04;margin:0}
 .ofs-ix{grid-area:ix;flex-direction:column;align-self:center;gap:4px}
 .ofs-ib.is-on{font:italic 400 21px/1.3 var(--serif);letter-spacing:0;text-transform:none}
 .ofs-ts{grid-area:txt;align-self:center}
 .ofs-fs{grid-area:fig;min-height:0}
 .ofs-f{height:100%}
}
@media(min-width:901px) and (max-height:820px){
 .ofs-top #vH{font-size:clamp(30px,2.8vw,42px)}.ofs-top{padding-bottom:18px}
 .ofs-t .vz-n{font-size:clamp(48px,5vw,76px)}.ofs-t.ofs-np .vz-n{font-size:clamp(42px,4.3vw,64px)}
 .ofs-fl .flg-p{width:clamp(80px,6.6vw,108px)}.ofs-t .vz-a{font-size:16px;margin-bottom:14px}.ofs-t .vz-l{gap:8px}.ofs-t .vz-v a{font-size:16px}
}
@media(min-width:901px) and (max-height:680px){
 .ofs-fl{margin-bottom:10px}.ofs-fl .flg-p,.ofs-t.ofs-np .ofs-fl .flg-p{width:72px}.ofs-t .vz-n{font-size:clamp(40px,4.2vw,58px)}.ofs-t.ofs-np .vz-n{font-size:clamp(36px,3.8vw,52px)}
}
@media(min-width:901px) and (max-width:1100px){.ofs-g{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);grid-template-areas:"top fig" "ix fig" "txt fig"}
 .ofs-ix{flex-direction:row;gap:18px;padding-top:0}.ofs-ib.is-on{font-size:19px}.ofs-ts{margin-top:18px}}

/* phones and tablets: one screen */
@media(max-width:900px) and (min-height:560px){
 .ofs-run{height:calc(100vh - var(--hdr,64px) + 200vh);height:calc(100svh - var(--hdr,64px) + 200svh)}
 .ofs-stage{position:sticky;top:var(--hdr,64px);height:calc(100vh - var(--hdr,64px));height:calc(100svh - var(--hdr,64px));display:flex;flex-direction:column;padding:clamp(14px,2.6svh,28px) 0 clamp(14px,2.6svh,24px)}
 .ofs-g{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto minmax(0,1fr);grid-template-areas:"top" "ix" "txt" "fig"}
 .ofs-top #vH{font-size:clamp(28px,8vw,38px);line-height:1.06;margin:0}
 .ofs-top .eyebrow{margin-bottom:6px}
 .ofs-ix{grid-area:ix;flex-wrap:wrap;gap:0 4px;margin-top:clamp(8px,1.6svh,14px)}
 .ofs-ix li+li:before{content:"\00b7";padding-right:4px;color:var(--mut)}
 .ofs-ib{font-size:12px;letter-spacing:.12em;padding:6px 0}
 .ofs-ib.is-on{color:var(--burg)}
 :root[data-theme=dark] .ofs-ib.is-on{color:#eaa3cf}
 .ofs-ts{grid-area:txt;margin-top:clamp(10px,2svh,20px)}
 .ofs-fl{margin-bottom:10px}
 .ofs-fl .flg-p{width:78px}.ofs-t.ofs-np .ofs-fl .flg-p{width:70px}
 .ofs-t .vz-k{font-size:11.5px;margin-bottom:4px}
 .ofs-t .vz-n{font-size:clamp(40px,12vw,56px);margin-bottom:8px}
 .ofs-t.ofs-np .vz-n{font-size:clamp(36px,10.6vw,50px)}
 .ofs-t .vz-a{font-size:15px;line-height:1.5;margin-bottom:12px}
 .ofs-t .vz-l{gap:6px}
 .ofs-t .vz-l li{grid-template-columns:68px minmax(0,1fr);gap:10px}
 .ofs-t .vz-v{gap:2px}
 .ofs-t .vz-v a{font-size:15.5px}
 .ofs-fs{grid-area:fig;min-height:0;margin-top:clamp(12px,2.4svh,22px)}
 .ofs-f{height:100%;border-radius:22px}
}
@media(max-width:900px) and (min-height:560px) and (max-height:740px){
 .ofs-fs{display:none}
 .ofs-fl .flg-p,.ofs-t.ofs-np .ofs-fl .flg-p{width:64px}
}
@media(prefers-reduced-motion:reduce){.ofs-t,.ofs-f,.ofs-f img,.ofs-ib{transition:none!important}}
/* 2026-11-16 spacing audit (_tools/playwright/spacing_audit_2026_11_16.py): the office kicker ("NEW ZEALAND OFFICE") touched or ran 5 px into the
   big office name (line-height .98 lets the serif's ascenders rise above its box), and the name sat 4-8 px over the address. Real gaps now. */
.ofs-ts .ofs-t .vz-k{margin-bottom:16px}
.ofs-ts .ofs-t .vz-n{line-height:1.06;margin-bottom:clamp(16px,2.2vh,24px)}
@media(max-width:700px){.ofs-ts .ofs-t .vz-k{margin-bottom:12px}.ofs-ts .ofs-t .vz-n{margin-bottom:14px}}
/* 2026-11-21 owner (phone screenshot: "image is not proper, see gaping"): the three offices were stacked in one grid cell, so the text block was
   always as tall as the longest office (Nepal) and left an empty band above a squeezed photo under Auckland and Sydney. On phones/tablets only the
   current office takes space now (the others float over it while they fade), so the photo starts right under the text and gets the rest. */
@media(max-width:900px) and (min-height:560px){
 .ofs-ts{position:relative}
 .ofs-ts>.ofs-t:not(.is-on){position:absolute;top:0;left:0;right:0}
 .ofs-fs{margin-top:clamp(14px,2.2svh,20px)}
 .ofs-f{transition:opacity .45s ease}
}
/* 2026-11-26 owner ("huge empty white gap" after the offices story on the contact page): the section after the pinned story starts closer
   (its full top padding sat under the story's last screen), and the current office's flag is always visible (see vis() in offices-scroll.js). */
:root .v7 .sec.ofs-pin + .sec.sec{padding-top:clamp(36px,4vw,64px)} /* beats site.css ":root:not(:has(main.bl-post)) .v7 .sec" padding-block */
.ofs-t.is-on .ofs-fl{visibility:visible}
/* 2026-11-29 (client): four offices in the story (Auckland, Wellington, Brisbane, Kathmandu): a little more scroll so each office keeps the
   same time on screen as before (was +210vh / +200svh for three). */
@media(min-width:901px) and (min-height:600px){.ofs-run{height:calc(100vh - var(--hdr,68px) + 280vh)}}
@media(max-width:900px) and (min-height:560px){.ofs-run{height:calc(100vh - var(--hdr,64px) + 268vh);height:calc(100svh - var(--hdr,64px) + 268svh)}}
