/* Civic – trustworthy practice: news serif headings, measured columns, brass accents, sticky masthead. */
.e-civic{--accent-text:#7e6034;--accent-light:#d2b483}

/* Masthead. The blur lives on a pseudo-element: a backdrop-filter on the header itself would become the
   containing block of the fixed mobile nav sheet and squeeze it into the 68px bar. */
.e-civic .site-header{position:sticky;top:0;border-bottom:1px solid var(--line);background:transparent;isolation:isolate}
.e-civic .site-header::before{content:"";position:absolute;inset:0;z-index:-1;background:color-mix(in srgb,var(--paper) 94%,transparent);-webkit-backdrop-filter:blur(10px) saturate(1.2);backdrop-filter:blur(10px) saturate(1.2);pointer-events:none}
.e-civic.menu-open .site-header::before{-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--paper)}
.e-civic .wordmark{display:inline-flex;align-items:center;gap:.5em}
.e-civic .wordmark::before{content:"";flex:0 0 auto;width:.62em;height:.62em;border:1.5px solid var(--accent);border-radius:50%;background:linear-gradient(90deg,transparent calc(50% - .75px),var(--accent) calc(50% - .75px) calc(50% + .75px),transparent calc(50% + .75px))}
.e-civic .hd-cta .btn{background:var(--brand);color:var(--on-brand)}

/* Type */
.e-civic .display{font-weight:500;letter-spacing:-.025em;line-height:1}
.e-civic h1,.e-civic h2,.e-civic h3{text-wrap:balance}
.e-civic p{text-wrap:pretty}
.e-civic h2{font-weight:500}
.e-civic .eyebrow,.e-civic .ft-num{color:var(--accent-text)}
.e-civic .s-head>.eyebrow,.e-civic .cta-copy>.eyebrow,.e-civic .st-body>.eyebrow,.e-civic .hero-split-copy>.eyebrow{display:flex;align-items:center;gap:.8rem}
.e-civic .s-head>.eyebrow::before,.e-civic .cta-copy>.eyebrow::before,.e-civic .st-body>.eyebrow::before,.e-civic .hero-split-copy>.eyebrow::before{content:"";width:1.6rem;height:1px;background:currentColor;opacity:.7}
.e-civic .t-ink{background:var(--brand)}
.e-civic .t-ink .eyebrow,.e-civic .t-brand .eyebrow,.e-civic .pc-item.is-featured .eyebrow{color:var(--accent-light);opacity:1}
.e-civic .s-intro{color:var(--muted);max-width:40rem}

/* Buttons */
.e-civic .btn-primary{transition:background-color .2s,box-shadow .25s,transform .25s}
.e-civic .btn-primary:hover{box-shadow:0 8px 20px -10px color-mix(in srgb,var(--brand) 70%,transparent);transform:translateY(-1px)}
@media (prefers-reduced-motion:reduce){.e-civic .btn-primary:hover{transform:none}}

/* Hero */
.e-civic .hero-note{font-size:.86rem;color:var(--muted);letter-spacing:.01em}
.e-civic .s-hero.v-split .hero-split-media .frame{max-height:min(calc(100svh - 160px),720px)}
@media (min-width:901px) and (max-width:1180px){.e-civic .hero-split{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:3rem}.e-civic .hero-split .display{font-size:clamp(2.8rem,4.6vw,3.6rem)}}

/* Features rows: titles carry the hierarchy, thumbnails sit as small framed plates */
.e-civic .ft-row h3{font-size:clamp(1.3rem,1.1rem + .7vw,1.7rem);font-weight:500;line-height:1.2}
.e-civic .ft-text{color:var(--muted)}
.e-civic .ft-num{font-variant-numeric:lining-nums tabular-nums;padding-top:.45em;font-size:.82rem;font-weight:600;letter-spacing:.12em}
.e-civic .ft-row:has(.ft-thumb){align-items:center}
.e-civic .ft-thumb{border-radius:var(--img-radius);overflow:hidden;width:clamp(120px,13vw,190px)}
@media (max-width:900px){.e-civic .ft-row:has(.ft-thumb){align-items:start}.e-civic .ft-thumb{width:min(100%,380px);aspect-ratio:3/2;margin-top:.8rem}}

/* Stats: labels clear of the rules */
.e-civic .stat{padding-inline-start:clamp(1rem,2vw,2rem)}
.e-civic .stat:first-child{padding-inline-start:0}
.e-civic .stat dd{font-variant-numeric:lining-nums proportional-nums}
.e-civic .s-stats .s-note{margin-top:1.4rem}
@media (max-width:700px){.e-civic .stat{padding-inline-start:0}}

/* Statement: centred pull statement on navy */
.e-civic .s-statement.v-reveal .st-body{display:grid;justify-items:center;text-align:center}
.e-civic .s-statement.v-reveal .st-text{max-width:24ch;margin-inline:auto}
.e-civic .s-statement.v-reveal .eyebrow{justify-content:center}
.e-civic .s-statement.v-reveal .eyebrow::after{content:"";width:1.6rem;height:1px;background:currentColor;opacity:.7}
.e-civic .s-statement.v-quote .st-body{max-width:60rem}

/* Gallery: editorial triptych – the tall portrait (figure 01, first in the document, so the engine requests it large)
   opens the sequence in the left column; plates 02 and 03 follow on the right, so the numbers read in order. */
@media (min-width:760px){
  .e-civic .s-gallery.v-mosaic .mosaic:has(>:nth-child(3):last-child){grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto;column-gap:clamp(1rem,2.4vw,2.2rem);row-gap:clamp(1rem,2vw,1.8rem)}
  .e-civic .mosaic:has(>:nth-child(3):last-child) .mosaic-item.m1{grid-column:2;grid-row:1}
  .e-civic .mosaic:has(>:nth-child(3):last-child) .mosaic-item.m2{grid-column:2;grid-row:2;padding-inline-end:clamp(0rem,4vw,4rem)}
  .e-civic .mosaic:has(>:nth-child(3):last-child) .mosaic-item.m0{grid-column:1;grid-row:1/3;display:flex;flex-direction:column}
  .e-civic .mosaic:has(>:nth-child(3):last-child) .mosaic-item.m1 img,.e-civic .mosaic:has(>:nth-child(3):last-child) .mosaic-item.m2 img{aspect-ratio:3/2}
  .e-civic .mosaic:has(>:nth-child(3):last-child) .mosaic-item.m0 picture{flex:1;min-height:0;display:block}
  .e-civic .mosaic:has(>:nth-child(3):last-child) .mosaic-item.m0 img{aspect-ratio:auto;height:100%}
}
@media (max-width:759px){.e-civic .s-gallery.v-mosaic .mosaic{grid-template-columns:1fr}.e-civic .s-gallery.v-mosaic .mosaic-item[class*=m]{grid-column:1}.e-civic .s-gallery.v-mosaic .mosaic-item img{aspect-ratio:3/2}.e-civic .s-gallery.v-mosaic .mosaic-item.m0 img{aspect-ratio:4/5}}
.e-civic .mosaic-item figcaption{display:flex;align-items:center;gap:.7rem;font-size:.86rem;color:var(--muted)}
.e-civic .mosaic-item figcaption::before{content:"";width:1.2rem;height:1px;background:var(--accent)}

/* Team: three equal columns (phones: engine swipe row, mobile = swipe); portraits toned to one shoot */
@media (min-width:641px){.e-civic .s-team .tmb{grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1rem,2.4vw,2.4rem)}}
.e-civic .s :is(.tmb,.mosaic)[data-mobile=swipe]{--swipe-w:80%;--swipe-max:360px}
.e-civic .s-team .frame{box-shadow:none;background:color-mix(in srgb,var(--brand) 8%,var(--paper));border-radius:var(--img-radius)}
.e-civic .s-team .frame img,.e-civic .s-story .alt-media img{filter:saturate(.82) contrast(1.02)}
.e-civic .tmb-name{font-family:var(--f-display);font-weight:500;font-size:1.3rem;margin-top:.2rem}
.e-civic .tmb-role{max-width:28ch;font-size:.95rem}
.e-civic .tmb-item{align-content:start}

/* Team page: clinician profiles with portrait plates */
.e-civic .s-story .alt-row{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
.e-civic .s-story .alt-row.is-flip{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr)}
.e-civic .s-story .alt-media{aspect-ratio:4/5;max-width:440px;width:100%;box-shadow:none;background:color-mix(in srgb,var(--brand) 8%,var(--paper))}
.e-civic .s-story .alt-row.is-flip .alt-media{justify-self:end}
.e-civic .s-story .alt-copy{max-width:36rem}
.e-civic .s-story .alt-copy h3{font-size:clamp(1.6rem,1.2rem + 1.4vw,2.4rem);font-weight:500}
.e-civic .s-story .alt-copy p:is(:last-child:not(.alt-more),:has(+.alt-more)){color:var(--accent-text);font-size:.92rem;padding-top:1rem;border-top:1px solid var(--line)}
@media (max-width:900px){.e-civic .s-story .alt-row,.e-civic .s-story .alt-row.is-flip{grid-template-columns:1fr}.e-civic .s-story .alt-media{max-width:none;aspect-ratio:4/3.6}.e-civic .s-story .alt-row.is-flip .alt-media{justify-self:stretch}}

/* Pricing: the entry product is featured in brand navy */
.e-civic .pc-item.is-featured{background:var(--brand);color:var(--on-brand);--muted:color-mix(in srgb,var(--on-brand) 72%,var(--brand));--line:color-mix(in srgb,var(--on-brand) 22%,var(--brand))}
.e-civic .pc-item.is-featured .btn-primary{background:var(--on-brand);color:var(--brand);border-color:var(--on-brand)}
.e-civic .t-surface .pc-item:not(.is-featured){background:var(--paper)}
.e-civic .pc-price span{font-family:var(--f-display);font-weight:400;font-size:clamp(2.4rem,1.6rem + 2.4vw,3.6rem);letter-spacing:-.02em;font-variant-numeric:lining-nums}
.e-civic .pc-item .btn{justify-self:start;margin-top:.4rem}
/* Tablet: no orphaned third card – the featured entry product spans the row, the two follow-ups pair below */
@media (min-width:640px) and (max-width:999px){.e-civic .pc:has(>:nth-child(3):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}.e-civic .pc:has(>:nth-child(3):last-child)>.is-featured{grid-column:1/-1}}

/* CTA band: editorial two columns, actions on the right */
.e-civic .s-cta.v-band{padding-block:clamp(72px,9vw,128px)}
@media (min-width:1000px){
  .e-civic .s-cta.v-band .cta-copy{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);column-gap:clamp(3rem,8vw,8rem);align-items:end}
  .e-civic .s-cta.v-band .cta-copy>*{grid-column:1}
  .e-civic .s-cta.v-band .cta-copy>.cta-text,.e-civic .s-cta.v-band .cta-copy>.actions{grid-column:2}
  .e-civic .s-cta.v-band .cta-copy>.cta-text{grid-row:2;margin-top:0;align-self:end}
  .e-civic .s-cta.v-band .cta-copy>.cta-title{grid-row:2}
  .e-civic .s-cta.v-band .cta-copy>.eyebrow{grid-row:1}
  .e-civic .s-cta.v-band .cta-copy>.actions{grid-row:3;margin-top:1.8rem}
  .e-civic .s-cta.v-band .cta-copy>.actions .btn{flex:1 1 13rem;justify-content:center}
}
.e-civic .t-brand .btn-secondary{color:var(--on-brand);border-color:color-mix(in srgb,var(--on-brand) 45%,transparent)}

/* Contact: booking form right after the intro on phones, phone number first in the list */
.e-civic .ct-list div:has(a[href^="tel:"]){order:-1}
.e-civic .ct-list dd a{text-decoration:underline;text-decoration-color:color-mix(in srgb,currentColor 35%,transparent);text-underline-offset:.2em}
.e-civic .ct-form{padding:clamp(1.4rem,3vw,2.4rem);background:var(--surface);border-radius:var(--radius)}
.e-civic .ct-form .field input,.e-civic .ct-form .field textarea{background:var(--paper)}
@media (max-width:900px){.e-civic .ct{row-gap:clamp(1.4rem,4vw,2.4rem)}.e-civic .ct-info{display:contents}.e-civic .ct-info>.s-head{margin-bottom:0}.e-civic .ct-list{order:2}.e-civic .ct-form{order:1}.e-civic .ct-text{margin-bottom:0}}
@media (max-width:900px){.e-civic .ct-text p:last-child{padding:.8rem 1rem;border-inline-start:2px solid var(--accent);background:var(--surface)}}
.e-civic .hr-list dd{font-variant-numeric:lining-nums tabular-nums}

/* Legal pages align with the page grid */
.e-civic .wrap.rt{max-width:none}
.e-civic .rt-body{max-width:68ch}

/* Page heads: a ruled masthead, then the first section follows closely instead of a second full gap */
.e-civic .page-head{padding-bottom:clamp(22px,3vw,40px);border-bottom:1px solid var(--line)}
.e-civic .page-head+.s.t-paper{padding-top:clamp(36px,5vw,80px)}
/* Footer has three columns (no social): use all tracks so the e-mail never breaks mid-word at 901–1180px */
@media (min-width:901px){.e-civic .ft-grid:not(:has(>:nth-child(4))){grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1.4fr)}}

/* ===== Design pass 2 – "Measured care". The meridian scale (a brass hairline with ticks, like a goniometer or a
   chart ruler) is the one graphic device; photographs are graded cool-neutral and annotated like case notes. ===== */
.e-civic{--img-filter:saturate(.84) contrast(1.04) brightness(1.01);--scale:repeating-linear-gradient(90deg,var(--accent) 0 1px,transparent 1px 10px);--scale-y:repeating-linear-gradient(180deg,var(--accent) 0 1px,transparent 1px 10px)}
.e-civic .frame,.e-civic .mosaic-item img,.e-civic .hero-collage-art>div{box-shadow:none}
.e-civic .frame{background:color-mix(in srgb,var(--brand) 7%,var(--paper))}

/* Home hero: a vertical scale beside the photograph, the note set as a ruled case line */
@media (min-width:901px){
  .e-civic .s-hero.v-split .hero-split-media{position:relative}
  .e-civic .s-hero.v-split .hero-split-media::before{content:"";position:absolute;inset-block:0;inset-inline-start:calc(-1 * clamp(18px,2vw,28px));width:9px;background:var(--scale-y),linear-gradient(var(--accent),var(--accent)) 0 0/1px 100% no-repeat;opacity:.55;-webkit-mask:linear-gradient(transparent,#000 12%,#000 88%,transparent);mask:linear-gradient(transparent,#000 12%,#000 88%,transparent)}
  [dir=rtl] .e-civic .s-hero.v-split .hero-split-media::before{background-position:100% 0}
}
.e-civic .s-hero .hero-note{display:flex;align-items:center;gap:.8rem;padding-top:1rem;border-top:1px solid var(--line);margin-top:1.6rem;max-width:34rem}
.e-civic .s-hero .hero-note::before{content:"";flex:0 0 auto;width:7px;height:7px;border-radius:50%;background:var(--accent)}

/* Stats band directly under the hero: the scale runs above the figures */
.e-civic .s-stats .stats{border-top:0;position:relative;padding-top:14px}
.e-civic .s-stats .stats::before{content:"";position:absolute;inset-inline:0;top:0;height:9px;background:var(--scale),linear-gradient(var(--accent),var(--accent)) 0 100%/100% 1px no-repeat;opacity:.6}
.e-civic .s-stats .stat dd,.e-civic .s-stats .stat-value{letter-spacing:-.02em}
.e-civic .s-stats{padding-block:clamp(48px,6vw,88px)}

/* Gallery captions numbered like figures in a case note */
.e-civic .mosaic{counter-reset:fig}
.e-civic .mosaic-item{counter-increment:fig}
.e-civic .mosaic-item figcaption::before{content:counter(fig,decimal-leading-zero);width:auto;height:auto;background:none;color:var(--accent-text);font-weight:600;font-size:.78rem;letter-spacing:.1em;font-variant-numeric:tabular-nums;padding-inline-end:.7rem;border-inline-end:1px solid var(--line)}
.e-civic .mosaic-item img{transition:transform .9s cubic-bezier(.2,.7,.2,1)}
.e-civic .mosaic-item{overflow:hidden;border-radius:var(--img-radius)}
.e-civic .mosaic-item figcaption{padding-top:.8rem}
@media (hover:hover) and (prefers-reduced-motion:no-preference){.e-civic .mosaic-item:hover img{transform:scale(1.025)}}

/* Treatments hero (depth): headline left, text and actions answer it on the right; the photograph is a wide plate */
@media (min-width:1000px){
  .e-civic .hero-depth-copy{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);column-gap:clamp(3rem,6vw,6rem);align-items:end}
  .e-civic .hero-depth-copy>.eyebrow{grid-column:1/-1}
  .e-civic .hero-depth .display{max-width:12ch;font-size:clamp(3rem,1rem + 4.4vw,5.4rem)}
  .e-civic .hero-depth-meta{margin-top:0;display:grid;gap:1.4rem;padding-bottom:.6rem}
}
.e-civic .hero-depth{padding-block:clamp(40px,7vw,104px) clamp(28px,4vw,56px)}
.e-civic .hero-depth-meta .hero-note{margin-top:.2rem}
.e-civic .hero-depth-media .frame{height:min(64vh,640px)}
.e-civic .hero-depth-media{padding-inline:0;width:min(var(--container),100% - 2 * var(--gutter));margin-inline:auto}
@media (max-width:900px){.e-civic .hero-depth-media .frame{height:auto;aspect-ratio:4/3}}

/* Timeline ledger = the course of treatment, drawn on a brass meridian with a marker per visit */
.e-civic .s-timeline .tl{position:relative}
.e-civic .s-timeline .tl-row{position:relative;padding-inline-start:clamp(2rem,3.4vw,3rem);border-bottom-color:var(--line)}
.e-civic .s-timeline .tl-row::before{content:"";position:absolute;inset-inline-start:5px;top:0;bottom:0;width:1px;background:color-mix(in srgb,var(--accent) 70%,transparent)}
.e-civic .s-timeline .tl-row:first-child::before{top:calc(1.8rem + .55rem)}
.e-civic .s-timeline .tl-row:last-child::before{bottom:auto;height:calc(1.8rem + .55rem)}
.e-civic .s-timeline .tl-row::after{content:"";position:absolute;inset-inline-start:0;top:calc(1.8rem + .55rem - 5px);width:11px;height:11px;border-radius:50%;border:1px solid var(--accent);background:var(--s-bg,var(--surface));box-sizing:border-box}
.e-civic .s-timeline .tl-row:first-child::after,.e-civic .s-timeline .tl-row:last-child::after{background:var(--accent)}
.e-civic .s-timeline .tl-period{font-family:var(--f-text);font-size:.78rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--accent-text);font-variant-numeric:lining-nums tabular-nums}
.e-civic .s-timeline .tl-main h3{font-family:var(--f-display);font-weight:500;font-size:clamp(1.35rem,1.1rem + .8vw,1.8rem);line-height:1.15}
.e-civic .s-timeline .tl-org{font-size:.92rem}
.e-civic .s-timeline .tl-text{color:var(--muted);max-width:44ch}
@media (min-width:901px){.e-civic .s-timeline .tl-row{grid-template-columns:minmax(0,.5fr) minmax(0,1fr) minmax(0,1.15fr);padding-block:2.2rem}.e-civic .s-timeline .tl-row:first-child::before{top:calc(2.2rem + .55rem)}.e-civic .s-timeline .tl-row:last-child::before{height:calc(2.2rem + .55rem)}.e-civic .s-timeline .tl-row::after{top:calc(2.2rem + .55rem - 5px)}}
@media (max-width:900px){.e-civic .s-timeline .tl-row{gap:.35rem}.e-civic .s-timeline .tl-text{margin-top:.4rem}}
[dir=rtl] .e-civic .s-timeline .tl-period{letter-spacing:0;text-transform:none}

/* Methods rows with photographs: landscape plates, large enough to read */
@media (min-width:901px){
  .e-civic .ft-row:has(.ft-thumb){grid-template-columns:3.5rem minmax(0,.9fr) minmax(0,1.1fr) clamp(200px,22vw,320px)}
  .e-civic .ft-thumb{width:100%;aspect-ratio:4/3}
}

/* Team hero: an ordered triptych instead of a scattered collage – one tall plate, two stacked */
.e-civic .hero-collage-art{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));gap:clamp(.7rem,1.4vw,1.2rem);aspect-ratio:1/1}
.e-civic .hero-collage-art>div{position:relative;inset:auto;width:auto;aspect-ratio:auto;min-height:0}
.e-civic .hero-collage-art .c1{grid-row:1/3}
.e-civic .hero-collage-art .c2{grid-column:2;grid-row:1}
.e-civic .hero-collage-art .c3{grid-column:2;grid-row:2;margin-inline-start:clamp(0rem,2.5vw,2.4rem)}
@media (max-width:900px){.e-civic .hero-collage-art{aspect-ratio:5/4;margin-top:.4rem}.e-civic .hero-collage-art .c3{margin-inline-start:0}}

/* Team profiles: specialism meta as a brass line above the name */
.e-civic .s-story .alt-meta{color:var(--accent-text);margin-bottom:.7rem}
.e-civic .s-story .alt-list{gap:clamp(56px,8vw,120px)}
.e-civic .ft-num{font-family:var(--f-text)}
@media (max-width:520px){.e-civic .hero-depth-meta>*{flex:1 1 100%}}
/* Content page heads (not legal): the masthead rule becomes the meridian scale */
.e-civic.page-page .page-head{border-bottom:0;position:relative}
.e-civic.page-page .page-head::after{content:"";position:absolute;inset-inline:0;bottom:0;height:9px;background:var(--scale),linear-gradient(var(--accent),var(--accent)) 0 100%/100% 1px no-repeat;opacity:.55}

/* ===== Design pass 3 – "Measured care", refined. One easing ("settle") for every state; the meridian scale draws
   itself as it is read; figures and quotes are set like case notes; phones get swipe rows instead of long stacks. ===== */
.e-civic{--settle:cubic-bezier(.2,.7,.2,1)}

/* Typography: optical sizes on, balanced short lines, a hanging opening quote */
.e-civic .display,.e-civic .s-title,.e-civic .cta-title,.e-civic .st-quote p{font-optical-sizing:auto;font-kerning:normal}
.e-civic .eyebrow,.e-civic .mosaic-item figcaption,.e-civic .hero-note,.e-civic .tl-org,.e-civic .alt-meta,.e-civic .tmb-role,.e-civic .stat dt{text-wrap:balance}
.e-civic .st-quote p{text-indent:-.42em;hanging-punctuation:first}
.e-civic .st-quote footer{display:flex;align-items:center;gap:.8rem;font-size:.9rem;letter-spacing:.01em}
.e-civic .st-quote footer::before{content:"";width:1.6rem;height:1px;background:var(--accent)}
.e-civic .pc-price,.e-civic .stat dd,.e-civic .hero-note,.e-civic .tl-period{font-variant-numeric:lining-nums}

/* Buttons: settle on hover, a firm press, a ring that clears the radius */
.e-civic .btn{transition:background-color .25s var(--settle),color .25s var(--settle),border-color .25s var(--settle),box-shadow .3s var(--settle),transform .3s var(--settle)}
.e-civic .btn:focus-visible{outline-offset:4px}
.e-civic .btn:active{transform:translateY(1px);box-shadow:none;transition-duration:.08s}
.e-civic .btn-secondary:hover{border-color:var(--brand);background:color-mix(in srgb,var(--brand) 6%,transparent)}
.e-civic :is(.t-brand,.t-ink) .btn-secondary:hover{border-color:var(--on-brand);background:color-mix(in srgb,var(--on-brand) 10%,transparent)}
.e-civic :is(.t-brand,.t-ink) .btn-primary:hover,.e-civic .pc-item.is-featured .btn-primary:hover{box-shadow:0 10px 24px -12px rgba(0,0,0,.55)}

/* Desktop nav: a brass hairline grows from the start edge; the current page carries it in full */
@media (min-width:961px){
  .e-civic .nav a{position:relative}
  .e-civic .nav a[aria-current]{text-decoration:none}
  .e-civic .nav a::after{content:"";position:absolute;inset-inline:0;bottom:9px;height:1px;background:var(--accent);transform:scaleX(0);transform-origin:left;transition:transform .4s var(--settle)}
  [dir=rtl] .e-civic .nav a::after{transform-origin:right}
  .e-civic .nav a:hover::after{transform:scaleX(.55)}
  .e-civic .nav a[aria-current]::after{transform:scaleX(1)}
}

/* Small states: fees cards lift when their button is aimed at, FAQ rows warm to brass, fields get a soft brass ring */
.e-civic .pc-item{transition:translate .35s var(--settle),box-shadow .35s var(--settle)}
@media (hover:hover){.e-civic .pc-item:has(.btn:hover){translate:0 -3px;box-shadow:0 18px 40px -28px color-mix(in srgb,var(--brand) 80%,transparent)}}
.e-civic .pc-item:has(.btn:focus-visible){box-shadow:0 0 0 1px var(--accent)}
.e-civic .fq-item summary{transition:color .2s var(--settle)}
.e-civic .fq-item summary:hover,.e-civic .fq-item[open] summary{color:var(--accent-text)}
.e-civic .fq-item[open] .fq-icon{color:var(--accent)}
.e-civic .field input,.e-civic .field textarea{transition:border-color .2s var(--settle),box-shadow .25s var(--settle)}
.e-civic .field input:hover,.e-civic .field textarea:hover{border-color:color-mix(in srgb,var(--ink) 55%,var(--paper))}
.e-civic .field input:focus,.e-civic .field textarea:focus{border-color:var(--brand);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 20%,transparent)}
.e-civic .ct-list dd a{transition:text-decoration-color .2s var(--settle),color .2s}
.e-civic .ct-list dd a:hover{text-decoration-color:var(--accent);color:var(--brand)}
/* Portraits are graded to one shoot; on hover they warm back to natural colour */
@media (hover:hover){.e-civic .s-team .frame img{transition:filter .6s var(--settle)}.e-civic .tmb-item:hover .frame img{filter:none}}

/* Phones: clinic triptych and team are engine swipe rows (mobile = swipe), numbered 4:5 plates in figure order. */

/* Scroll choreography – only with motion allowed and scroll timelines supported. Nothing is hidden: the scales are
   decoration, the photographs only settle in scale. */
@keyframes civic-wipe{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0)}}
@keyframes civic-wipe-rtl{from{clip-path:inset(0 0 0 100%)}to{clip-path:inset(0)}}
@keyframes civic-drop{from{clip-path:inset(0 0 100% 0)}to{clip-path:inset(0)}}
@keyframes civic-settle{from{scale:1.06}to{scale:1}}
@keyframes civic-mark{from{background-color:var(--s-bg,var(--surface))}to{background-color:var(--accent)}}
@media (prefers-reduced-motion:no-preference){
  html:not([data-motion=off]) .e-civic .s-hero.v-split .hero-split-media img{animation:civic-settle 1.8s var(--settle) both}
  html:not([data-motion=off]) .e-civic .s-hero.v-split .hero-split-media::before{animation:civic-drop 1.4s var(--settle) .25s both}
  html:not([data-motion=off]) .e-civic.page-page .page-head::after{animation:civic-wipe 1.2s var(--settle) .15s both}
  html:not([data-motion=off]) [dir=rtl] .e-civic.page-page .page-head::after{animation-name:civic-wipe-rtl}
  @supports (animation-timeline:view()){
    html:not([data-motion=off]) .e-civic .s-stats .stats{view-timeline:--civic-scale block}
    html:not([data-motion=off]) .e-civic .s-stats .stats::before{animation:civic-wipe linear both;animation-timeline:--civic-scale;animation-range:entry 0% entry 45%}
    html:not([data-motion=off]) [dir=rtl] .e-civic .s-stats .stats::before{animation-name:civic-wipe-rtl}
    html:not([data-motion=off]) .e-civic .s-timeline .tl-row{view-timeline:--civic-visit block}
    html:not([data-motion=off]) .e-civic .s-timeline .tl-row::before{animation:civic-drop linear both;animation-timeline:--civic-visit;animation-range:entry 40% cover 55%}
    html:not([data-motion=off]) .e-civic .s-timeline .tl-row:not(:first-child):not(:last-child)::after{animation:civic-mark linear both;animation-timeline:--civic-visit;animation-range:cover 38% cover 46%}
  }
}
@media (prefers-reduced-motion:reduce){
  .e-civic .btn,.e-civic .pc-item,.e-civic .nav a::after,.e-civic .s-team .frame img,.e-civic .field input,.e-civic .field textarea{transition:none}
  .e-civic .pc-item:has(.btn:hover){translate:none}.e-civic .btn:active,.e-civic .btn-primary:hover{transform:none}
}
.e-civic .s-statement .st-text{text-wrap:balance}
/* Stats as engine rows on phones (mobile = rows): figures share one column so the labels align like a case-note table. */
@media (max-width:700px){.e-civic .stats[data-mobile=rows] .stat{grid-template-columns:6.6rem minmax(0,1fr)}}

/* Pass 4: home roster – portraits live on /team only, so the home team grid is a typographic case-sheet index */
.e-civic .s-team .tmb{counter-reset:clin}
.e-civic .s-team .tmb-item:not(:has(.frame)){counter-increment:clin;position:relative;gap:.5rem;padding:1.3rem 0 1.5rem;border-top:1px solid color-mix(in srgb,var(--brand) 32%,transparent);transition:border-color .5s var(--settle)}
.e-civic .s-team .tmb-item:not(:has(.frame))::before{content:"0" counter(clin);font-family:var(--f-display);font-size:.95rem;font-variant-numeric:lining-nums tabular-nums;color:var(--accent-text);letter-spacing:.04em}
.e-civic .s-team .tmb-item:not(:has(.frame)) .tmb-name{font-size:clamp(1.45rem,1.1rem + 1vw,1.9rem);line-height:1.15;margin:0;text-wrap:balance}
.e-civic .s-team .tmb-item:not(:has(.frame)) .tmb-more{color:var(--brand);margin-top:.7rem}
.e-civic .s-team .tmb-item:not(:has(.frame)) .tmb-role{max-width:34ch;font-size:1rem}
@media (hover:hover){.e-civic .s-team .tmb-item.has-link:not(:has(.frame)):hover{border-top-color:var(--accent)}}
@media (max-width:640px){.e-civic .s-team .tmb:not(:has(.frame)){gap:0}.e-civic .s-team .tmb-item:not(:has(.frame)){padding-block:1.1rem 1.3rem}}
/* Empty icon elements (<i>) must not pull in an italic face */
.e-civic main i:empty{font-style:normal}
