/* SiteComms — system layer. Loaded last.
   One type scale, one spacing scale, one grid. Values match Site Programs V4 where the two
   differed without reason. Breakpoints: phone < 700, tablet 700–899, narrow desktop 900–1099
   (desktop structure, mobile type sizes flow in), desktop 1100+. Header and menu switch at 900.

   TYPE (Aspekta display, Inter UI)
     h1     96 → fluid → 36   lh .94 (phone .98)   ls -.04em (phone -.035em)
     h2     56 → fluid → 30   lh 1.04              ls -.03em
     h3     42                lh 1.00              ls -.035em   (sx-t, sv-t, nx-n)
     h4     32                lh 1.05–1.08         ls -.025/-.03em (rl-t, ct-h)
     h5     26                lh 1.10–1.16         ls -.025em   (qt-q, pp-name, pn, lead-n)
     lead   21 (phone 18)     lh 1.40
     body   17 / 16           lh 1.45
     ui     15 / 14 / 13      Inter, tracking neutral at 15 and below
   Display tracking tightens with size; Inter text is -.02em at 17+ and 0 at 15 and below.

   SPACE
     gutter (wrap)     60 / 32 / 16       (desktop / tablet / phone)
     grid              12 columns, 20px gap at 900+
     card gap          20 / 16 / 12
     section break     140 / 112 / 80     (polish.css)
     inner page top    72 / 56 / 44       (polish.css)                                   */

:root{
  --grey:#636363;              /* secondary text: 6.0:1 on white, 5.6:1 on #f7f7f7, 5.5:1 on #f4f4f4 */
  --gut:60px;--gap:20px;
  --sec:140px;--sec-top:72px;
  /* one fluid h1 per side of the 700 gutter change; continuous everywhere else, no jump at 1100 */
  --fs-h1:clamp(56px,calc(9.6vw - 8px),96px);
  --fs-h2:clamp(30px,calc(3vw + 22px),56px);
  --lh-h1:.94;--ls-h1:-.04em;
  --lh-h2:1.04;--ls-h2:-.03em;
  --fs-h3:42px;--fs-h5:26px;
}
@media (min-width:700px) and (max-width:1099px){:root{--gut:32px;--sec:112px;--sec-top:56px}}
@media (min-width:700px) and (max-width:899px){:root{--gap:16px}}
@media (max-width:699px){
  :root{--gut:16px;--gap:12px;--sec:80px;--sec-top:44px;
    --fs-h1:clamp(36px,calc(7.8vw + 10px),64px);--lh-h1:.98;--ls-h1:-.035em}
}

/* ============ type ============ */
.h1{text-wrap:balance;font-size:var(--fs-h1) !important;line-height:var(--lh-h1) !important;letter-spacing:var(--ls-h1) !important}
/* every section heading is one size, one leading, one tracking: the closing card's 64 and
   the dark card's 1.02 / -.035em were the odd ones out */
.h2,.cta-box .h2,.qw .h2{font-size:var(--fs-h2) !important;line-height:var(--lh-h2) !important;letter-spacing:var(--ls-h2) !important}
/* the dark proof card sets its heading in a half-width column; it keeps one step down */
@media (min-width:900px){.qw .h2{font-size:clamp(40px,4.4vw,56px) !important}}
@media (max-width:699px){.qw .h2{font-size:clamp(28px,8vw,32px) !important}}
/* h3 / h5 snaps: 44 → 42 and 27 → 26 so each role has exactly one size */
@media (min-width:1100px){.nx-n{font-size:var(--fs-h3) !important}}
@media (min-width:1300px){.qt-q{font-size:var(--fs-h5) !important}}

/* Inter: the page wrapper's -.02em is inherited as a fixed -0.32px, which over-tightens small
   text (-.025em at 13px). Inter now tracks by its own size: -.02em at 17px+, easing to 0 at 15px. */
[style*="'Inter'"],.btn,.skip,.menu-btn,.mn-call,.mn-h,.mp-em,.pm-lbl,.pm-all-m,.fl-err,.ct-st,
.cf-k,.ct-copy,.ct-em,.ct-go,.ct-s,.ct-t,.fl>span:first-child,.imp span,.lead-t,.nx-k,.pl,
.pm-card i,.pm-card span,.pm-list i,.pm-list span,.pm-town,.pr-c,.pr-r,.pt,.sv-l li,legend{
  letter-spacing:clamp(-.02em,calc((15px - 1em) * .17),0px)
}

/* one secondary grey (V4's #636363) for every small or body-grey line */
[style*="color: #5f5855"],[style*="color:#5f5855"],
.ct-em,.pb,.sv-d,.pr-c,.lead-p,.mp-em,.mn-em{color:var(--grey) !important}
/* mobile menu labels were #8a8f8f, 3.3:1 */
.mn-h{color:var(--grey) !important}

/* ============ grid ============ */
/* one gutter token drives the wrap, the menu, and every edge-to-edge element on phone */
@media (max-width:699px){
  .wrap{padding-left:var(--gut) !important;padding-right:var(--gut) !important}
  .qt{margin:0 calc(-1 * var(--gut)) !important;padding:0 var(--gut) !important;scroll-padding:0 var(--gut) !important;gap:var(--gap) !important}
}
@media (max-width:899px){
  .mn-m{padding-left:var(--gut) !important;padding-right:var(--gut) !important}
  .pr::before,.nx::before{inset:0 calc(-1 * var(--gut)) !important}
}
@media (min-width:700px) and (max-width:899px){
  .qt{gap:var(--gap) !important}
}
/* card grids share one gap per size */
.rl,.pm-list,.pp,#people .g3,.g4:not(.cfs),.ct,.ct-pp{column-gap:var(--gap) !important}
@media (max-width:899px){.rl,.pm-list,.ct{row-gap:var(--gap) !important}}

/* desktop: page-level splits land on the 12-column grid instead of fr ratios */
@media (min-width:900px){
  /* projects table: name 4 / place 2 / client 3 / role 3 */
  .pr{grid-template-columns:repeat(12,minmax(0,1fr)) !important;column-gap:var(--gap) !important}
  .pr>.pr-n{grid-column:span 4}
  .pr>.pr-n+.pr-c{grid-column:span 2}
  .pr>.pr-c+.pr-c{grid-column:span 3}
  .pr>.pr-r{grid-column:span 3}
  /* contact: form 7 / details 5 */
  .ct{grid-template-columns:repeat(12,minmax(0,1fr)) !important}
  .ct>:first-child{grid-column:span 7}
  .ct>:last-child{grid-column:span 5}
  /* case facts and the "what we do" split use the grid gap, so their edges line up with the
     cards directly below them */
  .cfs{column-gap:var(--gap) !important}
  .g2[style*="gap: 56px"]{column-gap:var(--gap) !important}
}
@media (min-width:700px) and (max-width:899px){
  .cfs,.g2[style*="gap: 56px"]{column-gap:var(--gap) !important}
}

/* ============ measure ============ */
/* a fixed-width intro paragraph no longer runs past the 360 gutter */
[style*="width: 339px"]{width:auto !important;max-width:min(380px,100%) !important}

/* ============ touch targets (44px, visual size unchanged) ============ */
@media (max-width:899px){
  .mark,.ct-mail,.lead-tel{position:relative}
  .mark::after,.ct-mail::after,.lead-tel::after{content:"";position:absolute;left:0;right:0;top:50%;height:44px;transform:translateY(-50%)}
  /* stacked phone + email pairs: the phone target grows up, the email target grows down,
     so the two never overlap */
  .ct-tel,.ct-em,.mp-tel,.mp-em{position:relative}
  .ct-tel::after,.mp-tel::after{content:"";position:absolute;left:0;right:0;bottom:0;height:44px}
  .ct-em::after,.mp-em::after{content:"";position:absolute;left:0;right:0;top:0;height:44px}
  .call::after,.menu-btn::after{content:"";position:absolute;inset:-2px}
}

/* QA: a field focused by validation lands below the sticky header, label in view */
.ct-f input,.ct-f textarea{scroll-margin-top:140px}
/* QA: pill buttons never break their label onto two lines (Meet the team, 700-780px) */
.btn{white-space:nowrap}

/* ============ load states (perf pass, 7 Nov) — owned by js/site.js + build.py ============ */
/* Metric-matched fallbacks: build.py puts these right after Aspekta / Inter in the inline
   stacks, so text shown before the web fonts arrive wraps the same and nothing reflows on swap.
   size-adjust/ascent/descent: the site’s own heading and body copy measured in the variable
   fonts (400/500 and 650) against Arial. */
@font-face{font-family:"Aspekta Fallback";src:local("Arial"),local("ArialMT"),local("Liberation Sans"),local("LiberationSans");font-weight:100 549;size-adjust:99.6%;ascent-override:110.4%;descent-override:33.1%;line-gap-override:0%}
@font-face{font-family:"Aspekta Fallback";src:local("Arial Bold"),local("Arial-BoldMT"),local("Liberation Sans Bold"),local("LiberationSans-Bold");font-weight:550 1000;size-adjust:98.5%;ascent-override:111.7%;descent-override:33.5%;line-gap-override:0%}
@font-face{font-family:"Inter Fallback";src:local("Arial"),local("ArialMT"),local("Liberation Sans"),local("LiberationSans");font-weight:100 549;size-adjust:107.4%;ascent-override:90.2%;descent-override:22.5%;line-gap-override:0%}
@font-face{font-family:"Inter Fallback";src:local("Arial Bold"),local("Arial-BoldMT"),local("Liberation Sans Bold"),local("LiberationSans-Bold");font-weight:550 1000;size-adjust:101.9%;ascent-override:95.1%;descent-override:23.7%;line-gap-override:0%}
/* lazy pictures still loading when the page starts sit on their box colour, then fade in once
   loaded instead of painting in strips. Only JS adds these classes; no JS, no change. */
html.js img.ld-pre{opacity:0}
html.js img.ld-in{animation:rise var(--t-slow) var(--e-out) backwards}

/* ============ type pass 2 (7 Nov) — line breaks, card rhythm, one seam ============ */
/* short labels and titles balance their lines instead of leaving one word behind:
   "Sr. Communications / + Engagement Manager", "Stanley Park Water / Supply Tunnel",
   "BC Transportation / Investment Corporation" */
.pt,.pp-role,.ct-t,.lead-t,.rl-k,.rl-t,.qw-l,.qw-n+span,.pr-c,.pr-r,.cf-v,.cf-k,.sv-l li,
.pm-card i,.pm-list i{text-wrap:balance}
/* home "Named in the contract": two of the three role titles always set on two lines at 900+,
   so the third reserves the same two lines and all three descriptions start on one line */
@media (min-width:900px){.rl-t{min-height:2lh}}
/* phone projects list: place and client flow as one line of text, so a long client wraps
   inside itself and the "·" never hangs at a line end and the pair balances
   ("Vancouver · BC Transportation / Investment Corporation") */
@media (max-width:699px){
  .pr{display:block !important;font-size:0;text-wrap:balance}
  .pr-n,.pr-r{display:block}
  .pr-c{display:inline;vertical-align:top}
}
/* phone h1 used to peak at 64px at 699 and then drop to 59px at 700; it now levels off at the
   tablet's opening size, so the title never shrinks as the window grows */
@media (max-width:699px){:root{--fs-h1:clamp(36px,calc(7.8vw + 10px),59px)}}

/* ============ device hardening (7 Nov, cross-device QA) ============ */
/* the open menu is its own scroll box: reaching its end on iOS no longer rubber-bands or
   chains the scroll into the page underneath */
.menu{overscroll-behavior:contain}
/* the site is designed light: keep UA-drawn parts (scrollbars, form controls, autofill) light
   when the OS is in dark mode, and opt out of browser auto-darkening */
:root{color-scheme:only light}
:root[data-theme-eff="dark"]{color-scheme:dark}
/* print: nothing waits on a scroll reveal, dark cards keep their ground so their white text
   stays legible, and the sticky header / menu / cursor stay out of the page */
@media print{
  .rv,.rv .stg>*,.rv .pm-card,.pk-w,html.js img.ld-pre,html.js-pre .h1{opacity:1 !important;transform:none !important;filter:none !important;animation:none !important}
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .hdr{position:static !important}
  .menu,.cur{display:none !important}
}

/* ===== v2 brand frame (7 Nov 2026): SiteCommunications. collapses to Site. on scroll ===== */
.mark{white-space:nowrap;display:inline-flex;align-items:baseline}
.mk-c{display:inline-block;overflow:hidden;vertical-align:bottom;max-width:7.4em;transition:max-width 560ms cubic-bezier(.22,1,.36,1),opacity 260ms ease-out}
body.scrolled .mk-c,body.menu-open .mk-c{max-width:0;opacity:0}
@media (prefers-reduced-motion:reduce){.mk-c{transition:none}}
.ft-mark{font-size:clamp(30px,6.4vw,44px)}

/* ===== v2 placeholders: content we don't have yet (never invented) ===== */
.ph{color:#9a9c9c}
.ph-img{display:flex;align-items:center;justify-content:center;background:#efefef;color:#9a9c9c;font-family:'Inter',sans-serif;font-size:13px;letter-spacing:0;text-align:center}
.ph-tag{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:999px;border:1px dashed #b5b5b5;color:#8a8a8a;font-family:'Inter',sans-serif;font-size:12px;font-weight:500;letter-spacing:0;vertical-align:middle}

/* ===== v2 polish (7 Nov 2026): detail pass on the new v2 sections, before client review ===== */
/* logo strip: every row drifts at the same calm ~14px/s (was 13–17), and the edge fade is a
   real fade on phone too (9% of 390 was a 35px smear; now never under 40px, never over 140px) */
.mq{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 clamp(40px,9%,140px),#000 calc(100% - clamp(40px,9%,140px)),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 clamp(40px,9%,140px),#000 calc(100% - clamp(40px,9%,140px)),transparent 100%)}
.mq-track{animation-duration:175s}
.mq-rev{animation-duration:160s}
.mq-r3{animation-duration:145s}

/* (groom S6: the .sx-ph placeholder-slide styling now lives in home.tpl) */

/* image placeholders: one small grey square before "Photo to come" (the site's own marker),
   so an empty frame reads as deliberate */
.ph-img{gap:8px}
.ph-img::before{content:"";flex:none;width:6px;height:6px;background:#c2c4c4}

/* services summary: linked service names carry a quiet 20% rule that draws to full black on
   hover, instead of a solid black rule under half the sentence */
.sm a{background:linear-gradient(#000000,#000000) 0 100% / 0 .045em no-repeat,linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2)) 0 100% / 100% .045em no-repeat;padding-bottom:.06em;transition:background-size 420ms cubic-bezier(.22,1,.36,1)}
.sm a:hover,.sm a:focus-visible{background-size:100% .045em,100% .045em}
.sm-n a{text-decoration-color:rgba(0,0,0,.3);transition:text-decoration-color 200ms cubic-bezier(.22,.61,.36,1)}
.sm-n a:hover{text-decoration-color:#000000}
@media (hover:none){.sm a:hover{background-size:0 .045em,100% .045em}}
/* sub-services: the label dims with its icon on hover, so the whole row reads as the target */
.xp summary{transition:color 200ms cubic-bezier(.22,.61,.36,1)}
.xp summary:hover{color:#636363}
.xp summary:hover .xp-i{opacity:1}
@media (hover:none){.xp summary:hover{color:inherit}}

/* people, phone: 9 people in two columns left one card alone on the last row; the odd one out
   now spans the row, photo in the left column and name + title beside it on the baseline */
@media (max-width:699px){
  .tg3>.pc:last-child:nth-child(odd){grid-column:1 / -1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:1fr auto auto;column-gap:var(--gap)}
  .tg3>.pc:last-child:nth-child(odd)>img{grid-row:1 / span 3}
  .tg3>.pc:last-child:nth-child(odd)>.pn,.tg3>.pc:last-child:nth-child(odd)>.pt{grid-column:2}
  .tg3>.pc:last-child:nth-child(odd)>.pn{grid-row:2;margin-top:0}
  .tg3>.pc:last-child:nth-child(odd)>.pt{grid-row:3}
}
/* home hero statement: one fluid size from 700 up, so it always sets in two lines above the film
   ("Strategic communications that / shape moments + momentum.") instead of stepping through
   four ragged lines between 700 and 1280; 94px at 1440, 96px from 1464 */
@media (min-width:700px) and (max-width:1099px){#top .hero-h{font-size:6.6vw !important}}
@media (min-width:1100px){#top .hero-h{font-size:min(calc((100vw - 120px) / 14),96px) !important}}

/* ===== groom S1: the one Site network list (V4 convention: name + coloured full stop, arrow when linked) =====
   Order everywhere: SiteCommunications (here), SitePartners, SiteProductions, SiteMedia, SiteTalent, SiteAdvisors. */
.net{display:flex;flex-direction:column;align-items:flex-start;gap:8px;font-weight:650;font-size:15px;line-height:1.2;letter-spacing:-.02em}
.net-i{display:inline-flex;align-items:center;gap:6px;color:rgba(0,0,0,.55);text-decoration:none}
.net-here{color:#000}
.co-dot{font-style:normal}
.net-a{width:12px;height:12px;flex:none;opacity:0;transform:translate(-3px,3px);transition:opacity 200ms ease-out,transform 200ms ease-out}
@media (hover:hover) and (pointer:fine){a.net-i:hover{color:#000}a.net-i:hover .net-a{opacity:1;transform:none}}
a.net-i:focus-visible{outline:2px solid #000;outline-offset:3px;border-radius:4px}
.net-mn{flex-direction:row;flex-wrap:wrap;gap:8px 22px;font-size:14px}
.net-mm{flex-direction:row;flex-wrap:wrap;gap:8px 16px;font-size:14px}
.net-dk .net-i{color:rgba(255,255,255,.6)}.net-dk .net-here,.net-dk a.net-i:hover{color:#fff}
/* groom S2: stat sizes = feature 120 (.pp-n) / row 72 (.qw-n). Retired: 160 and the .df-n numeral. */
/* groom S3: one statement style */
.stmt{margin:40px 0 0;max-width:1060px;font-weight:550;font-size:34px;line-height:1.24;letter-spacing:-.022em;color:rgba(0,0,0,.55);text-wrap:pretty}
.stmt b{font-weight:650;color:#000}
.stmt-lg{font-weight:650;font-size:48px;line-height:1.10;letter-spacing:-.03em;text-wrap:pretty}
@media (max-width:1099px){.stmt{font-size:28px;line-height:1.3}.stmt-lg{font-size:40px}}
@media (max-width:699px){.stmt{font-size:22px;line-height:1.3}.stmt-lg{font-size:30px}}
/* groom S5: one kicker */
.kick{display:inline-flex;align-items:center;gap:8px;font-family:'Inter','Inter Fallback',sans-serif;font-weight:500;font-size:14px;letter-spacing:0;color:#636363}
.kick i{width:8px;height:8px;flex:none;display:inline-block}
/* groom S4 + S7: header mark on very small phones; letters fade after the width starts closing */
@media (max-width:379px){.mark{font-size:19px}}
.mk-c{transition:max-width 560ms cubic-bezier(.22,1,.36,1),opacity 360ms 120ms ease-out}
body.scrolled .mk-c,body.menu-open .mk-c{transition:max-width 560ms cubic-bezier(.22,1,.36,1),opacity 220ms ease-out}
.net-i{position:relative}.net-a{position:absolute;right:-16px;top:50%;margin-top:-6px}
@media (hover:none){.net-a{display:none}}

/* ===================== groom R3 (7 Nov 2026): final detail pass ===================== */
/* phone: responsive.css sets every first-section paragraph as an 18px lead. It was also catching the
   two statements that open a page (services summary, people intro), so they fell to lead size and the
   page lost its second tier. They keep their statement tokens and sit 28px under the title. */
@media (max-width:699px){
  main>section:first-child>p.stmt{margin-top:28px !important;font-size:22px !important;line-height:1.3 !important}
  main>section:first-child>p.stmt-lg{margin-top:28px !important;font-size:30px !important;line-height:1.1 !important}
}
/* the network names inside the dark proof card took the light-page black focus ring, invisible on
   #0f1a1f; on dark they ring in white like every other link in the card */
.qw a.net-i:focus-visible,.net-dk a.net-i:focus-visible{outline-color:#ffffff}

/* shared mobile basics, for every page (they used to live only in each page's own style block) */
@media (max-width:899px){
  .hide-sm{display:none !important}
  .stack{flex-direction:column !important;align-items:flex-start !important}
}
