/* Geist and Geist Mono, self-hosted (SIL Open Font License): no third-party font request, no swap flash. */
@font-face{font-family:'Geist';font-style:normal;font-weight:400 600;font-display:swap;src:url(/assets/superpolish/fonts/geist-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Geist';font-style:normal;font-weight:400 600;font-display:swap;src:url(/assets/superpolish/fonts/geist-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/superpolish/fonts/geist-mono-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/superpolish/fonts/geist-mono-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Geist Fallback';src:local('Arial'),local('Helvetica Neue'),local('Helvetica');size-adjust:102.0%;ascent-override:98.5%;descent-override:28.9%;line-gap-override:0%}

/* Superpolished (v3): loaded after polish.css. Brings in the rebuild's typography and the first half of its home page,
   keeps the polish draft's green accent, layout below the fold, reviews, closing block and footer. */

/* The rebuild's font: Geist for everything, Geist Mono for small labels. */
:root{
  --f-display:'Geist','Geist Fallback',system-ui,-apple-system,'Segoe UI',sans-serif;
  --f-body:'Geist','Geist Fallback',system-ui,-apple-system,'Segoe UI',sans-serif;
  --f-mono:'Geist Mono',ui-monospace,'SF Mono',Menlo,Consolas,monospace;
}
body{font-size:1rem;text-rendering:optimizeLegibility}
.display{font-weight:500;letter-spacing:-.032em;line-height:1.04}
.display--sm,.section-title{font-weight:500;letter-spacing:-.026em;line-height:1.08}
h3,.index .t,.faq__q,.details .big,.footer-phone,.proof__value{font-weight:500;letter-spacing:-.018em}
.article h2{font-weight:500;letter-spacing:-.02em}
.button{font-weight:500}
.slide blockquote{font-family:var(--f-body);font-size:clamp(1rem,.96rem + .2vw,1.125rem)}

/* Mono for metadata, as in the rebuild. */
.eyebrow,.crumb,.gallery figcaption,.dog-media figcaption,.ba__tag,.footer h2,.footer-legal,
.slide .src,.index .n,.index .go,.post .go,.checks__group,.survey__lead{
  font-family:var(--f-mono);font-weight:400;font-size:.75rem;letter-spacing:.06em;text-transform:uppercase}
.slide cite{letter-spacing:.02em;text-transform:none;font-size:.9375rem;font-weight:500}

/* Header: sentence-case navigation, as in the rebuild. */
.main-nav__link{text-transform:none;letter-spacing:0;font-size:.9375rem;font-weight:450;color:rgba(251,251,248,.86)}
.main-nav__link:hover,.main-nav__link[aria-current="page"]{color:var(--white)}
@media(width<=62em){.main-nav__link{font-size:1.125rem}}

/* Home hero from the rebuild: text bottom-left over the photo, two-tone headline. The owner's slideshow stays. */
.hero__content{align-items:flex-start;justify-content:flex-end;text-align:left;min-height:min(100svh,920px);
  padding-top:clamp(8rem,18vh,10rem);padding-bottom:clamp(3.5rem,7vw,5.5rem)}
.hero__content .display{font-size:clamp(2.5rem,1rem + 6vw,4.75rem);line-height:1.02;max-width:none;text-shadow:none}
.hero__content .display .tone{color:rgba(251,251,248,.62)}
.hero__content p{max-width:34rem;margin:1.25rem 0 2rem;font-size:clamp(1.0625rem,1rem + .4vw,1.25rem);line-height:1.45;color:rgba(251,251,248,.86)}
.hero-cta{justify-content:flex-start}
.hero__media::after{background:
  linear-gradient(to right,rgba(10,19,14,.62) 0%,rgba(10,19,14,.28) 45%,rgba(10,19,14,0) 75%),
  linear-gradient(to top,rgba(10,19,14,.84) 0%,rgba(10,19,14,.46) 42%,rgba(10,19,14,.3) 72%,rgba(10,19,14,.62) 100%)}
@media(width<=40em){.hero-cta{margin-inline:0}}
/* Leave room for the fixed call bar on phones so it never covers the hero buttons. */
@media(width<=48em){.hero__content{min-height:calc(100svh - 56px);padding-bottom:2.5rem}}

/* Inner page heroes line up with the home hero: left-aligned, at the bottom of the photo. */
.page-hero__content{align-items:flex-start;justify-content:flex-end;text-align:left}
.page-hero__content .display{max-width:18ch;text-shadow:none}
.page-hero__content p{margin-left:0}
.page-hero__media::after{background:
  linear-gradient(to right,rgba(10,19,14,.6) 0%,rgba(10,19,14,.25) 50%,rgba(10,19,14,.1) 80%),
  linear-gradient(to top,rgba(10,19,14,.8) 0%,rgba(10,19,14,.35) 50%,rgba(10,19,14,.55) 100%)}
.page-hero--plain .page-hero__content{justify-content:flex-start}

/* Proof strip as in the rebuild. */
.proof__value{font-family:var(--f-body);font-size:clamp(1.125rem,1rem + .4vw,1.25rem)}

/* Service cards from the rebuild: left-aligned, 4:3 photos, a text link instead of a boxed button. */
.pillar{text-align:left}
.pillar img{aspect-ratio:4/3;border-radius:14px;margin-bottom:1.25rem}
.pillar h3{font-size:clamp(1.125rem,1rem + .4vw,1.25rem);margin-bottom:.35rem}
.pillar .cta{margin:0;padding-top:.85rem}
.pillar .cta .button{min-height:0;padding:0;border:0;border-radius:0;background:none;color:var(--ink);font-size:.9375rem;
  text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:2px;text-underline-offset:5px}
.pillar .cta .button::after{content:" \2192";display:inline-block;margin-left:.35em;transition:transform .2s var(--ease-out)}
.pillar .cta .button:hover{background:none;color:var(--ink)}
.pillar .cta .button:hover::after{transform:translateX(4px)}
@media(width<=62em){
  .pillar{display:flex;flex-direction:column;text-align:left}
  .pillar img{aspect-ratio:4/3}
  .pillar .body{grid-column:auto}
  .pillar .cta{padding-top:.75rem}
  .pillar .cta .button{width:auto}
}

/* The one-line intro under a page hero sat in its own full-height section, stacking
   three section paddings before the first content. Tighten it to one short gap. */
section:has(> .wrap > .intro){padding-top:clamp(2rem,4vw,3rem)}
/* Only drop the bottom padding when a plain section follows; a coloured band (The Dog page) needs it. */
section:has(> .wrap > .intro):has(+ section){padding-bottom:0}
section:has(> .wrap > .intro) + section{padding-top:clamp(2rem,4vw,3rem)!important} /* beats inline padding-top:0 on About and Services */

/* Home 'The Dog' teaser: shorter band. Less padding, and the 9:16 clip cropped to 4:5 (square on phones). */
.dog-teaser{padding-block:clamp(2.5rem,5vw,5.5rem)}
.dog-teaser__media img{max-width:300px;aspect-ratio:4/5;object-position:center 60%}
@media(width<=54em){.dog-teaser__media img{max-width:260px;aspect-ratio:1/1}}

/* Service-card "Find out more" links: a 44px tap area with the same look; less space above to compensate. */
.pillar .cta{padding-top:.25rem}
/* inline-block, not flex: a flex child would inherit the underline and draw a stray line under the arrow. */
.pillar .cta .button{display:inline-block;min-height:0;padding-block:.8rem;line-height:1.3}
/* Line the three "Find out more" links up at the bottom of their cards. */
.pillar .cta{margin-top:auto}

/* Four badges (About) sit on one row instead of three plus one; two by two on tablets. */
.details:has(> :nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr))}
@media(width<=62em){.details:has(> :nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Split lists mix linked items (44px tap height) with plain ones; give every item the same height and centre the bullet. */
.split-list li{display:flex;align-items:center;min-height:44px;padding-block:0}
.split-list li::before{top:50%;transform:translateY(-50%)}
/* The Dog: keep the hero photo clear of the 129px header, and centre the figures note under the centred stats. */
.dog-hero__inner{padding-top:clamp(9rem,16vh,10rem)}
.dog-stats + .sub-note{text-align:center;border-left:0;padding-left:0}
/* A note under a centred heading or photo grid is centred too; notes under bullet lists stay left with their rule. */
:not(ul) + .sub-note{text-align:center;border-left:0;padding-left:0}
/* A centred button straight after a list needs breathing room (commercial grounds pricing). */
.sub-list + div[style*="text-align:center"]{margin-top:2rem}
/* Pages with no photo header (404): the see-through header needs its solid scrolled background to stay readable. */
body:not(:has(.page-hero, .hero)) .header{background:var(--ink-2)}
body:not(:has(.page-hero, .hero)) .header::before{opacity:0}

/* ══════════ The 1% details (2026-11-22). Small feel changes; no layout or wording.
   apply.py appends this file to superpolish.css, so both drafts get it. ══════════ */
@keyframes sp-spin{to{transform:rotate(360deg)}}
@keyframes sp-rise{from{opacity:0;transform:translateY(10px)}}
@keyframes sp-pop{from{opacity:0;transform:scale(.6)}}
@keyframes sp-progress{to{transform:scaleX(1)}}
@keyframes sp-bar-safe{to{transform:none}}

/* 1. Press and tap feedback. */
a,button,summary,label,input,select,textarea{-webkit-tap-highlight-color:transparent}
.button{transition:background-color .2s var(--ease-out),color .2s var(--ease-out),border-color .2s var(--ease-out),transform .12s var(--ease-out)}
.button:active,.chip:active{transform:scale(.98)}
.callbar a:active{filter:brightness(.93)}
.faq__q:active,.index a:active,.picker__group summary:active{background:var(--shell)}
.main-nav__link:active,.footer li a:active{opacity:.7}

/* 2. The whole service card is the link, and it lifts a little on hover. */
.pillar{position:relative}
.pillar .cta .button{position:static;overflow:visible}
.pillar .cta .button::before{content:"";display:block;position:absolute;inset:0;width:auto;background:none;border-radius:14px}
.pillar img{transition:transform .35s var(--ease-out)}
@media(hover:hover){
  .pillar:hover img{transform:translateY(-3px)}
  .pillar:hover .cta .button::after{transform:translateX(4px)}
}
.pillar .cta .button:focus-visible{outline:none}
.pillar:has(.button:focus-visible){outline:2px solid var(--ink);outline-offset:6px;border-radius:14px}

/* 3. Forms: a soft focus ring, marked empty fields, a visible sending state, and a success panel that arrives gently. */
.field input:focus,.field select:focus,.field textarea:focus,.blog-search:focus{border-color:var(--ink);outline:none;box-shadow:0 0 0 3px rgba(0,208,132,.28)}
.field [aria-invalid="true"]{border-color:#b3261e;box-shadow:0 0 0 3px rgba(179,38,30,.14)}
.button:disabled{opacity:.6;cursor:progress}
.form .button:disabled::after{content:"";width:.9em;height:.9em;flex:0 0 auto;border:2px solid currentColor;border-right-color:transparent;
  border-radius:50%;animation:sp-spin .7s linear infinite}
.form-success:not([hidden]){animation:sp-rise .4s var(--ease-out) both}
.form-success::before{content:"";display:block;width:2.75rem;height:2.75rem;margin-bottom:1.1rem;border-radius:50%;
  background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6.5 12.5 3.6 3.6 7.4-8' fill='none' stroke='%230c1611' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/58% no-repeat;
  animation:sp-pop .45s var(--ease-out) .12s both}
/* Stacked fields on phones got the grid gap on top of the field margin. */
@media(width<=46em){.form .row{gap:0}}
/* 16px stops iOS zooming in when the blog search is tapped. */
.blog-search{font-size:1rem}

/* 4. Soft page-to-page transitions; the header holds still. Browsers without support just load the page. */
@media(prefers-reduced-motion:no-preference){
  @view-transition{navigation:auto}
  ::view-transition-old(root),::view-transition-new(root){animation-duration:.22s}
  .header{view-transition-name:site-header}
}

/* 5. Typography: no stranded last words, steady digits, a brand selection colour. */
.display,.display--sm,.section-title,h3,.faq__q,.proof__label{text-wrap:balance}
p,li,figcaption,blockquote{text-wrap:pretty}
a[href^="tel:"],.dog-stats h3,.step::before{font-variant-numeric:tabular-nums}
::selection{background:var(--accent);color:var(--ink)}

/* 6. Before/after tiles can be flipped by hand (script); show that they are pressable. */
.ba__frame{cursor:pointer}
.ba__frame:focus-visible{outline:2px solid var(--ink);outline-offset:3px}

/* 7. Lazy photos fade in once loaded. Only when the script has marked the page, so nothing stays hidden without it. */
.sp-fade img[loading="lazy"]{opacity:0;transition:opacity .45s var(--ease-out)}
.sp-fade img[loading="lazy"].is-loaded{opacity:1}
/* The Dog clips are video now; same framing as the animated images they replace. */
.dog-teaser__media video{display:block;width:100%;max-width:300px;height:auto;aspect-ratio:4/5;object-fit:cover;object-position:center 60%;border-radius:12px}
@media(width<=54em){.dog-teaser__media video{max-width:260px;aspect-ratio:1/1}}
.dog-media video{display:block;width:100%;height:auto;aspect-ratio:9/16;object-fit:cover;border-radius:12px;background:var(--ink)}

/* 8. Phone call bar: also shown on tablets (no other quote button there), and it steps aside while the hero
      buttons or a form are on screen. Hidden until the script is ready, with a 3s fallback if it never loads. */
@media(width<=62em){.callbar{display:grid}body{padding-bottom:56px}}
.callbar{transition:transform .3s var(--ease-out)}
.callbar.is-away{transform:translateY(100%)}
html.js:not(.sp-ready) .callbar{transform:translateY(100%);animation:sp-bar-safe 0s 3s forwards}

/* 9. FAQ answers open smoothly where the browser can animate to automatic height. */
@supports (interpolate-size:allow-keywords){
  .faq__item{interpolate-size:allow-keywords}
  .faq__item::details-content{block-size:0;overflow:clip;transition:block-size .28s var(--ease-out),content-visibility .28s allow-discrete}
  .faq__item[open]::details-content{block-size:auto}
}

/* 10. Header: eased shrink, an underline that grows from the left, and a staggered phone menu. */
.header{transition:padding .28s var(--ease-out),background-color .28s var(--ease-out),box-shadow .28s var(--ease-out)}
.logo{transition:height .28s var(--ease-out)}
@media(width>62em){
  .main-nav__link{position:relative}
  .main-nav__link:hover,.main-nav__link[aria-current="page"]{border-bottom-color:transparent}
  .main-nav__link::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--accent);
    transform:scaleX(0);transform-origin:0 50%;transition:transform .25s var(--ease-out)}
  .main-nav__link:hover::after,.main-nav__link[aria-current="page"]::after{transform:scaleX(1)}
}
@media(width<=62em){
  .main-nav li{opacity:0;transform:translateX(14px);transition:opacity .25s var(--ease-out),transform .25s var(--ease-out)}
  .main-nav.open li{opacity:1;transform:none}
  .main-nav.open li:nth-child(1){transition-delay:.08s}.main-nav.open li:nth-child(2){transition-delay:.11s}
  .main-nav.open li:nth-child(3){transition-delay:.14s}.main-nav.open li:nth-child(4){transition-delay:.17s}
  .main-nav.open li:nth-child(5){transition-delay:.2s}.main-nav.open li:nth-child(6){transition-delay:.23s}
  .main-nav.open li:nth-child(7){transition-delay:.26s}
}

/* 11. Quiet icons on the home proof strip (the four emblems from About). */
.proof__value{display:flex;align-items:center;gap:.5rem}
.proof__icon{width:18px;height:18px;flex:0 0 auto;color:var(--quiet)}

/* 12. The closing band gets a very faint leaf texture, cut from one of our own job photos. */
.closing{background:linear-gradient(rgba(12,22,17,.975),rgba(12,22,17,.9825)),url(/assets/superpolish/leaf-texture.webp) center/cover var(--ink)}

/* 14. Gallery photos open full size. */
.gallery figure:not(.ba) img{cursor:zoom-in}
.gallery figure:not(.ba) img:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
dialog.sp-lightbox{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:1rem;border:0;
  background:transparent;place-items:center;overflow:hidden}
dialog.sp-lightbox[open]{display:grid;animation:sp-rise .25s var(--ease-out) both}
dialog.sp-lightbox::backdrop{background:rgba(12,22,17,.92)}
.sp-lightbox figure{margin:0;display:grid;justify-items:center;gap:.85rem;cursor:zoom-out}
.sp-lightbox img{max-width:min(94vw,1500px);max-height:84dvh;width:auto;height:auto;border-radius:12px;object-fit:contain}
.sp-lightbox figcaption{font-family:var(--f-mono);font-size:.75rem;letter-spacing:.06em;text-transform:uppercase;color:#ffffffc9}
.sp-lightbox__close{position:fixed;top:1rem;right:1rem;width:44px;height:44px;border:1px solid rgba(251,251,248,.55);border-radius:50%;
  background:none;color:var(--white);font-size:1.5rem;line-height:1;cursor:pointer}
.sp-lightbox__close:hover{border-color:var(--white)}
.sp-lightbox :focus-visible{outline:2px solid var(--white);outline-offset:3px}

/* 15. Blog cards: the top rule darkens on hover. */
.post{transition:border-color .2s var(--ease-out)}
.post:hover{border-top-color:var(--ink)}

/* 17. Reading progress on blog posts: a 2px line across the top, driven by scroll. */
@media(prefers-reduced-motion:no-preference){
  @supports (animation-timeline:scroll()){
    body:has(.article-foot)::after{content:"";position:fixed;top:0;left:0;right:0;height:2px;z-index:1000;background:var(--accent);
      transform:scaleX(0);transform-origin:0 50%;animation:sp-progress linear both;animation-timeline:scroll(root)}
  }
}

/* 18. A small leaf above the 404 heading. */
.sp-leaf{display:block;width:30px;height:45px;margin:0 auto 1.25rem;color:var(--quiet)}
.sp-leaf path{fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}

/* Photo credit under a picture that needs one (the CC BY aerial on /commercial). */
.split__media .credit{display:block;margin-top:.5rem;font-size:.75rem;line-height:1.4;color:var(--quiet)}

/* Header crops: keep the hedge, not the wall below it, in the wide band. */
.page-hero__media img[src*="hedge-above-wall"]{object-position:center 30%}
