:root{
  /* brand colours from the logo on the van: bright green with navy type on it (8:1), plus black for
     body text and the dark bands. --green-dark (5.7:1 on --bg) is for checkmarks and focus rings on
     light backgrounds, where the bright green itself is too pale. */
  --green:#7ed957; --navy:#1f2a44; --black:#111613;
  --green-dark:color-mix(in oklab,var(--green),black 40%);
  --bg:#f4f6f2; --surface:#ffffff; --ink:var(--black); --muted:#56605a; --line:#dde3da;
  --accent:var(--green); --accent-ink:var(--navy); --accent-text:var(--green-dark);
  --ease-out:cubic-bezier(0.23,1,0.32,1);
  --ease-in-out:cubic-bezier(0.77,0,0.175,1);
  --r:14px;
  --frame-shadow:0 0 0 1px var(--line),0 1px 2px rgba(17,22,19,.05),0 14px 32px -16px rgba(17,22,19,.32);
  --frame-shadow-hover:0 0 0 1px var(--line),0 2px 4px rgba(17,22,19,.06),0 26px 44px -20px rgba(17,22,19,.42);
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#0c0f0d; --surface:#151a16; --ink:#ecf0ec; --muted:#9ba59e; --line:#252c27;
    --accent-text:var(--green);
    --frame-shadow:0 0 0 1px var(--line),0 14px 32px -16px rgba(0,0,0,.7);
    --frame-shadow-hover:0 0 0 1px var(--line),0 26px 44px -20px rgba(0,0,0,.8);
  }
}
*{box-sizing:border-box;margin:0}
/* stable gutter: locking the page under the photo viewer doesn't make it jump sideways */
html{scroll-behavior:smooth;scrollbar-gutter:stable;-webkit-text-size-adjust:100%}
body{background:var(--bg);color:var(--ink);font:16px/1.6 Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%}
a{color:inherit}
::selection{background:color-mix(in srgb,var(--accent) 45%,transparent)}
.wrap{max-width:1120px;margin:0 auto;padding:0 16px}
/* two 460px columns + a 32px gap: the widest the phone photos can show without being blown up */
.wrap.narrow{max-width:984px}
/* Jost: a geometric sans for the headings */
h1,h2,h3{font-family:Jost,system-ui,sans-serif;font-weight:500;line-height:1.1;letter-spacing:-0.02em}
h1{font-size:clamp(2.3rem,6vw,4.2rem)}
h2{font-size:clamp(1.7rem,3.6vw,2.6rem)}
h3{font-size:1.2rem;font-weight:600;letter-spacing:-0.01em}

/* header */
header{position:sticky;top:0;z-index:10;background:color-mix(in srgb,var(--bg) 85%,transparent);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
header .wrap{display:flex;align-items:center;justify-content:space-between;height:64px}
.logo{display:inline-flex;align-items:center;gap:10px;font-family:Jost,system-ui,sans-serif;font-style:italic;font-weight:500;font-size:1.2rem;letter-spacing:-0.01em;text-decoration:none}
.logo img{width:40px;height:40px}
nav{display:flex;gap:24px;font-size:.95rem}
nav a{text-decoration:none;color:var(--muted);transition:color 150ms ease}
@media (hover:hover) and (pointer:fine){nav a:hover{color:var(--ink)}}
@media (max-width:720px){nav{display:none}}

.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;border-radius:999px;background:var(--accent);color:var(--accent-ink);text-decoration:none;font-weight:600;transition:transform 160ms var(--ease-out),background-color 150ms ease;-webkit-tap-highlight-color:transparent;user-select:none}
.btn:active{transform:scale(0.97)}
.btn.ghost{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.btn.sm{padding:8px 16px;font-size:.9rem}

/* hero: full-bleed photo of the rotunda. The bronze caryatids at both edges are dark, so a dark
   scrim on the left carries the white copy; a small "Hent tilbud" button links down to the form.
   Colours are fixed (not tokens) so the hero looks the same in light and dark mode. */
.hero{position:relative;min-height:calc(100svh - 64px);display:flex;align-items:center;overflow:hidden;padding:0;border:0;color:#fff;background:var(--black)}
.hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% center;animation:settle 1200ms var(--ease-out) both}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(12,15,13,.8) 0%,rgba(12,15,13,.58) 40%,rgba(12,15,13,.22) 68%,rgba(12,15,13,.4) 100%)}
.hero .wrap{position:relative;z-index:1;width:100%;padding-top:48px;padding-bottom:48px}
.hero-copy{max-width:600px}
/* balance: even lines, so the last word of the headline never stands alone */
.hero h1{font-size:clamp(2.3rem,4.6vw,3.8rem);text-wrap:balance}
.hero p.lead{font-size:1.15rem;color:rgba(255,255,255,.86);max-width:36ch;margin:20px 0 24px}
/* the logo's own colours: navy type on its green, fixed so the button looks the same in dark mode */
.hero .btn{background:var(--green);color:var(--navy)}
@keyframes settle{from{transform:scale(1.04)}to{transform:none}}

/* quote form: a white card on the van band, fixed colours so it reads the same in dark mode */
.quote{padding:24px;border-radius:20px;color:var(--black);background:#fff;box-shadow:0 24px 48px -24px rgba(0,0,0,.5);scroll-margin-top:80px}
/* the card is the "Hent tilbud" jump target: fade it in without the 12px rise, or the jump lands 12px off */
.quote.reveal{transform:none}
.quote h2{font-size:1.45rem}
.quote-sub{font-size:.9rem;color:#4f5852;margin-top:6px}
.fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
.field{display:grid;gap:6px;min-width:0}
.field.full{grid-column:1/-1}
.field label{font-size:.8rem;font-weight:600}
.field input,.field textarea{width:100%;font:inherit;font-size:16px;color:var(--black);background:rgba(255,255,255,.78);border:1px solid rgba(17,22,19,.14);border-radius:10px;padding:10px 12px;transition:border-color 150ms ease,box-shadow 150ms ease}
.field textarea{min-height:72px;resize:vertical}
.field input:focus,.field textarea:focus{outline:none;border-color:var(--green-dark);box-shadow:0 0 0 3px color-mix(in srgb,var(--green) 40%,transparent)}
.field input:user-invalid,.field textarea:user-invalid{border-color:#b3261e}
/* button and "Eller ring" share a row; an error message wraps onto its own line below */
.quote-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;margin-top:16px}
.quote .btn.submit{background:var(--black);color:#fff;padding:12px 28px;border:0;font:inherit;font-weight:600;cursor:pointer}
.quote .btn.submit:disabled{opacity:.6;cursor:default}
.form-status{flex-basis:100%;order:1;font-size:.85rem;color:#b3261e}
.form-status:empty{display:none}
.form-note{font-size:.85rem;color:#4f5852}
.form-note a{font-weight:600}
.quote-done{text-align:center;padding:32px 8px;animation:done-in 300ms var(--ease-out)}
.quote-done svg{display:block;margin:0 auto 14px;color:var(--green-dark)}
.quote-done p{color:#4f5852;margin-top:8px}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
@keyframes done-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* van band: the form card lies on top of the company van. The photo is a square (--s wide) placed
   so the logo starts where the content starts (--x0); the logo and "Malerfirmaet K.M Juliussen ApS"
   cover x 24-68 % and y 23-51 % of the photo, which keeps them left of the card (or above it on
   phones) at every width. The photo's edges fade into the black band under the card. */
.cta-band{--s:min(95vw,1300px);--x0:max(16px,calc(50% - 544px));position:relative;overflow:hidden;background:var(--black);color:#fff;border-top:1px solid rgba(255,255,255,.08);padding:56px 0}
.cta-bg{position:absolute;width:var(--s);height:var(--s);max-width:none;left:calc(var(--x0) - .24 * var(--s));top:min(0px,calc(50% - .37 * var(--s)));-webkit-mask-image:linear-gradient(90deg,transparent,#000 10%,#000 70%,transparent);mask-image:linear-gradient(90deg,transparent,#000 10%,#000 70%,transparent)}
.cta-grid{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,460px);gap:56px}
.cta-grid .quote{grid-column:2}
@media (max-width:1023px){
  .cta-band{--s:85vw}
  .cta-grid{grid-template-columns:minmax(0,1fr) minmax(0,420px);gap:24px}
}
/* phones: the photo spans the width at the top and the card starts just under the logo */
@media (max-width:767px){
  .cta-band{--s:100vw;padding:calc(.55 * var(--s)) 0 32px}
  .cta-bg{left:0;top:0;-webkit-mask-image:linear-gradient(180deg,#000 60%,transparent 95%);mask-image:linear-gradient(180deg,#000 60%,transparent 95%)}
  .cta-grid{display:block}
  .cta-grid .quote{max-width:560px;margin-inline:auto}
}

/* below 960px the copy sits at the foot of the photo, over a dark bottom edge */
@media (max-width:959px){
  .hero{align-items:flex-end}
  /* portrait crop: frame the left caryatid and the marble columns */
  .hero-img{object-position:12% center}
  .hero::after{background:linear-gradient(0deg,rgba(12,15,13,.9) 0%,rgba(12,15,13,.62) 45%,rgba(12,15,13,.15) 100%)}
  .hero .wrap{padding-top:96px;padding-bottom:40px}
}
/* the fixed call bar covers the bottom ~100px on phones, so lift the hero copy clear of it */
@media (max-width:720px){.hero .wrap{padding-bottom:104px}.quote{padding:20px}}
@media (max-width:420px){.field.full-sm{grid-column:1/-1}}

section{padding:80px 0;border-top:1px solid var(--line);scroll-margin-top:64px}
.head{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:36px;flex-wrap:wrap}
.head p{color:var(--muted);max-width:44ch}
/* centred heading over a section that spans the page (services carousel, before/after, gallery) */
.head.center{justify-content:center;text-align:center}

/* before / after: two sliders side by side, each no bigger than its photos so they stay sharp.
   460px wide is 920 device pixels on a retina screen, the width of the source images (923 / 971px).
   The top layer (før) is clipped; JS only moves clip-path + the divider's transform. */
.ba-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
.ba-item{max-width:460px}
.ba{position:relative;overflow:hidden;width:100%;aspect-ratio:923/1224;border-radius:var(--r);touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;cursor:ew-resize;background:var(--black)}
.ba-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.ba-top{position:absolute;inset:0;clip-path:inset(0 50% 0 0)}
.ba-divider{position:absolute;inset:0;pointer-events:none}
.ba-divider::before{content:"";position:absolute;top:0;bottom:0;left:50%;width:2px;margin-left:-1px;background:#fff;box-shadow:0 0 8px rgba(0,0,0,.3)}
.ba-knob{position:absolute;top:50%;left:50%;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;background:#fff;color:var(--black);display:grid;place-items:center;box-shadow:0 2px 12px rgba(0,0,0,.25);transition:transform 160ms var(--ease-out)}
.ba.dragging .ba-knob{transform:scale(0.92)}
.ba-knob:focus-visible{outline:2px solid #fff;outline-offset:3px;box-shadow:0 0 0 6px var(--accent)}
@media (max-width:640px){.ba-pair{grid-template-columns:minmax(0,1fr)}}

/* work gallery: an endless row of framed photos drifting slowly left (moved by the script in
   index.html). The row is a track inside a clipped, full-width viewport whose ends fade out; the
   padding leaves room for the frames' shadows and the hover lift. Each photo sits in a white mat
   like a framed print; the width follows from the width/height attributes, so nothing shifts while
   they load. A tap opens the photo in .viewer. The photos are ~1175px, never blown up. */
#arbejde{--edge:max(16px,calc((100% - 1120px) / 2 + 16px))}
.strip-viewport{--fade:min(96px,8vw);overflow:clip;padding:16px 0 44px;margin:-16px 0 -28px;touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 var(--fade),#000 calc(100% - var(--fade)),transparent);
  mask-image:linear-gradient(90deg,transparent,#000 var(--fade),#000 calc(100% - var(--fade)),transparent)}
.strip-viewport.dragging{cursor:grabbing}
.strip{display:flex;gap:20px;width:max-content;margin:0;padding:0;list-style:none;will-change:transform}
.strip li{flex:none}
.strip-item{display:block;height:clamp(260px,40vw,440px);padding:8px;border-radius:18px;background:var(--surface);box-shadow:var(--frame-shadow);-webkit-tap-highlight-color:transparent;-webkit-user-drag:none;transition:transform 300ms var(--ease-out),box-shadow 300ms var(--ease-out)}
/* a faint edge where photo meets mat, like the cut of a passe-partout */
.strip-item img{width:auto;height:100%;max-width:none;border-radius:11px;background:var(--line);outline:1px solid rgba(17,22,19,.08);outline-offset:-1px;-webkit-user-drag:none}
.strip-item:focus-visible{outline:2px solid var(--accent-text);outline-offset:3px}
@media (hover:hover) and (pointer:fine){.strip-item:hover{transform:translateY(-4px);box-shadow:var(--frame-shadow-hover)}}
.strip-viewport.dragging .strip-item{transform:none}
.strip-controls{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}
.strip-btn{flex:none;width:44px;height:44px;border:0;border-radius:50%;display:grid;place-items:center;background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform 160ms var(--ease-out),box-shadow 150ms ease}
.strip-btn:active{transform:scale(0.94)}
@media (hover:hover) and (pointer:fine){.strip-btn:hover{box-shadow:inset 0 0 0 1px var(--ink)}}
/* touch screens swipe the row instead */
@media (hover:none){.strip-controls{display:none}}

/* photo viewer: a popup over the dimmed, blurred page rather than full screen. One photo in a frame
   like the row's, then a row with the job's other photos between two arrows; no text. The stage has
   a fixed height and the bar a fixed size, so stepping between upright and wide photos never moves
   the controls. A job of one photo has no bar. The dialog is a size container: cqi/cqb are its inner
   width and height; --ar (width/height of the photo shown) is set by the script. */
.viewer{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:16px;border:0;background:transparent;color:#fff;overflow:hidden;container-type:size;touch-action:none}
.viewer[open]{display:grid;place-items:center}
.viewer::backdrop{background:rgba(10,12,11,.62);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.viewer[open]::backdrop{animation:v-fade 260ms ease-out}
@keyframes v-fade{from{opacity:0}}
html:has(.viewer[open]){overflow:hidden}
.v-panel{--stage-h:min(62cqb,600px);--bar-h:66px;width:min(960px,100cqi,calc((var(--stage-h) - 16px) * 1.336 + 16px));display:grid;grid-template-rows:var(--stage-h) var(--bar-h)}
.v-stage{display:grid;place-items:center;min-height:0}
.v-frame{position:relative;margin:0;padding:8px;border-radius:18px;background:var(--surface);box-shadow:0 0 0 1px rgba(255,255,255,.06),0 30px 60px -20px rgba(0,0,0,.55)}
.v-photo{display:block;width:min(calc(min(960px,100cqi) - 16px),calc((var(--stage-h) - 16px) * var(--ar,1.335)));height:auto;border-radius:11px;background:var(--line);outline:1px solid rgba(17,22,19,.08);outline-offset:-1px}
.v-close{position:absolute;top:16px;right:16px;width:40px;height:40px;border:0;border-radius:50%;display:grid;place-items:center;background:rgba(17,22,19,.55);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color 150ms ease,transform 160ms var(--ease-out)}
.v-close:active{transform:scale(0.94)}
.v-bar{display:flex;justify-content:center;align-items:center;gap:16px;padding-top:18px;min-width:0}
.v-thumbs{display:flex;gap:8px}
.v-thumb{flex:none;width:48px;height:48px;padding:0;border:0;border-radius:10px;overflow:hidden;background:rgba(255,255,255,.1);opacity:.5;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:opacity 150ms ease,box-shadow 150ms ease,transform 160ms var(--ease-out)}
.v-thumb img{width:100%;height:100%;object-fit:cover}
.v-thumb[aria-current="true"]{opacity:1;box-shadow:0 0 0 2px #fff}
.v-thumb:active{transform:scale(0.94)}
.v-btn{width:44px;height:44px;border:0;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.12);color:#fff;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color 150ms ease,opacity 150ms ease,transform 160ms var(--ease-out)}
.v-btn:active{transform:scale(0.94)}
.v-btn[aria-disabled="true"]{opacity:.3;cursor:default;transform:none}
.v-thumb:focus-visible,.v-btn:focus-visible,.v-close:focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media (hover:hover) and (pointer:fine){
  .v-close:hover{background:rgba(17,22,19,.75)}
  .v-thumb:not([aria-current="true"]):hover{opacity:.85}
  .v-btn:not([aria-disabled="true"]):hover{background:rgba(255,255,255,.22)}
}
.viewer.single .v-bar{display:none}
.viewer.single .v-panel{grid-template-rows:var(--stage-h)}
.viewer.single .v-stage{place-items:center}
.v-live{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* phones: the photo gets the full width and sits right on top of the thumbnails */
@media (max-width:640px){
  .v-panel{--stage-h:min(62cqb,calc((100cqi - 16px) * 4 / 3 + 16px))}
  .v-stage{place-items:end center}
}
/* touch screens and narrow windows swipe or tap the thumbnails instead of the arrows */
@media (hover:none),(max-width:640px){.v-btn{display:none}}

/* services: photo cards on a black band, each linking to its own service page.
   Photo and tint sit behind the label in their own stacking context. */
.service-section{background:var(--black);color:#fff;border-top:0}
.service-section .head p{color:rgba(255,255,255,.7)}
.service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.service{position:relative;isolation:isolate;display:grid;place-items:center;aspect-ratio:16/9;border-radius:var(--r);overflow:hidden;color:#fff;text-decoration:none;-webkit-tap-highlight-color:transparent;transition:transform 160ms var(--ease-out)}
.service img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;transition:transform 500ms var(--ease-out)}
.service::before{content:"";position:absolute;inset:0;z-index:-1;background:rgba(17,22,19,.5);transition:background-color 200ms ease}
.service-label{display:inline-flex;align-items:center;gap:10px;font-family:Jost,system-ui,sans-serif;font-weight:600;font-size:clamp(1.3rem,2.4vw,1.75rem);letter-spacing:-0.01em;text-shadow:0 1px 12px rgba(0,0,0,.35)}
.service-label span{color:var(--green);transition:transform 200ms var(--ease-out)}
.service:active{transform:scale(0.98)}
.service:focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media (hover:hover) and (pointer:fine){
  .service:hover img{transform:scale(1.04)}
  .service:hover::before{background:rgba(17,22,19,.32)}
  .service:hover .service-label span{transform:translateX(4px)}
}
/* home page, five cards: the two customer types big on top, the three specialties in a row below.
   The smaller cards' labels may shrink to 1rem so "Facaderenovering" still fits on a tablet. */
@media (min-width:641px){
  .service-grid.five{grid-template-columns:repeat(6,minmax(0,1fr))}
  .service-grid.five .service{grid-column:span 2}
  .service-grid.five .service:nth-child(-n+2){grid-column:span 3}
  .service-grid.five .service:nth-child(n+3) .service-label{font-size:clamp(1rem,2.4vw,1.75rem)}
}
/* service pages, the four other services: one row of smaller cards on desktop, 2×2 below that */
@media (min-width:901px){
  .service-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
  .service-grid.four .service{aspect-ratio:4/3}
  .service-grid.four .service-label{font-size:1.15rem}
}
@media (max-width:640px){.service-grid{grid-template-columns:minmax(0,1fr)}.service{aspect-ratio:2/1}}
/* home page: the five cards as a carousel that drives slowly round on its own (the script in
   index.html adds .is-live; without it they stay the grid above). It spans the full width. The cards
   slide sideways and back along a curve, upright and turned towards the viewer: the script places
   each one in depth under the stage's perspective. --cw is the card width before perspective; the
   front card shows about 1.42 times bigger, and the stage is as tall as that card plus room for the
   focus ring. */
.service-grid.is-live{--cw:clamp(172px,18.4vw + 150px,386px);display:block;position:relative;max-width:none;height:calc(var(--cw) * .8 + 24px);padding:0;overflow:hidden;overflow:clip;perspective:1350px;touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab}
.service-grid.is-live .service{position:absolute;left:50%;top:50%;width:var(--cw);aspect-ratio:16/9;margin:calc(var(--cw) * -9 / 32) 0 0 calc(var(--cw) / -2);transition:none;-webkit-user-drag:none}
.service-grid.is-live .service .service-label{font-size:clamp(14px,var(--cw) * .062,26px)}
.service-grid.is-live.dragging,.service-grid.is-live.dragging *{cursor:grabbing}

/* faq */
.faq{max-width:760px}
details{border-bottom:1px solid var(--line)}
summary{list-style:none;cursor:pointer;padding:20px 0;font-weight:600;display:flex;justify-content:space-between;gap:16px}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";font-weight:400;color:var(--muted);transition:transform 200ms var(--ease-out)}
details[open] summary::after{transform:rotate(45deg)}
details p{padding:0 0 20px;color:var(--muted);max-width:60ch}

/* contact: a green band with navy type – the logo's own colours, in light and dark mode alike.
   The logo's square is the same green, so only K.M.J and its ring show; -4px puts the ring's
   left edge in line with the text. */
#kontakt{--ink:var(--navy);--muted:color-mix(in oklab,var(--navy) 80%,var(--green));background:var(--green);color:var(--ink);border-top:0}
.contact-mark{width:88px;height:88px;margin:0 0 20px -4px}
/* phone on the left, address on the right; stacked below 960px */
.contact{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,460px);gap:56px;align-items:start}
.contact dl{display:grid;grid-template-columns:auto 1fr;gap:12px 24px;align-content:start}
.contact dt{color:var(--muted)}
.contact dd{font-weight:500}
.big-phone{font-family:Jost,system-ui,sans-serif;font-weight:500;font-size:clamp(2rem,5vw,3.2rem);text-decoration:none;display:inline-block;margin:16px 0 24px}
@media (max-width:959px){.contact{grid-template-columns:minmax(0,1fr);gap:40px}}

footer{padding:32px 0;background:var(--black);color:rgba(236,240,236,.66);font-size:.85rem}
footer .wrap{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
footer .brand{display:inline-flex;align-items:center;gap:12px;color:#ecf0ec}
footer .brand img{width:32px;height:32px}
@media (max-width:720px){footer{padding-bottom:96px}}

/* mobile call bar */
.callbar{display:none}
@media (max-width:720px){
  .callbar{display:flex;position:fixed;left:16px;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:20;justify-content:center}
  /* the navy ring keeps the green pill visible over the green contact band and the black footer */
  .callbar .btn{width:100%;justify-content:center;box-shadow:inset 0 0 0 1.5px var(--navy),0 8px 24px rgba(0,0,0,.2)}
}

/* service pages: a split hero (copy + photo shown no bigger than its source), body text with a
   checklist beside it, and a grid of photos from the jobs */
.page-hero{padding:56px 0 72px;border-top:0}
.page-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,460px);gap:56px;align-items:center}
.page-hero h1{font-size:clamp(2.1rem,4.2vw,3.2rem)}
.page-hero .lead{font-size:1.15rem;color:var(--muted);max-width:40ch;margin:20px 0 28px}
.page-hero .ctas{display:flex;gap:12px;flex-wrap:wrap}
.page-hero-img{border-radius:var(--r);overflow:hidden;background:var(--line)}
.page-hero-img img{width:100%;height:auto}
.prose-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,360px);gap:56px;align-items:start}
.prose p{color:var(--muted);max-width:60ch;margin-top:16px}
.checklist{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:24px}
.checklist ul{list-style:none;padding:0;margin-top:14px;display:grid;gap:10px}
.checklist li{position:relative;padding-left:26px}
.checklist li::before{content:"";position:absolute;left:2px;top:.45em;width:11px;height:6px;border-left:2px solid var(--accent-text);border-bottom:2px solid var(--accent-text);transform:rotate(-45deg)}
.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.photo-grid figure{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
/* height:auto matters: without it the <img height> attribute wins and aspect-ratio is ignored */
.photo-grid img{width:100%;height:auto;aspect-ratio:3/4;object-fit:cover}
@media (max-width:820px){
  .page-hero-grid,.prose-grid{grid-template-columns:minmax(0,1fr);gap:32px}
  .page-hero-img{max-width:460px}
  .photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:520px){.photo-grid{grid-template-columns:minmax(0,1fr)}}

/* reveal */
.reveal{opacity:0;transform:translateY(12px);transition:opacity 500ms var(--ease-out),transform 500ms var(--ease-out)}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .reveal{transform:none;transition:opacity 300ms ease}
  .hero-img{animation:none}
  .viewer[open]::backdrop{animation:none}
  html{scroll-behavior:auto}
}
