/* UIFH prototype. Version 1 copies the look of the current urbanimagehomes.com (2026-11-11):
   Prata headings, Cormorant Garamond text, black / white / stone colours, pill-shaped buttons,
   floating dark menu pill. Changes for the Page Down rule: the menu stays on screen, and home sections
   are sized to exactly one screen. */
:root{
  --ink:#1c1c1c; --muted:#555; --black:#0b0b0b; --white:#f8f5f0; --stone:#eeeae3; --line:#dcd5ca;   /* warm off-white "paper" (owner: less hospital-white, 2026-11-16) */
  --headH:97px;          /* header area: 10px gap + 67px menu pill + 20px gap below */
  --wrap:1320px;
  --serif:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  --display:"Prata",Georgia,"Times New Roman",serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--serif);font-size:19.2px;font-weight:500;line-height:1.6;color:var(--ink);background:var(--white)}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
h1,h2,h3{font-family:var(--display);font-weight:400;line-height:1.15;margin:0 0 .45em}
h1{font-size:clamp(2.6rem,4.8vw,4.6rem)}
h2{font-size:clamp(2rem,3.3vw,3.2rem)}
h3{font-size:1.6rem}
p{margin:0 0 1em}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 40px}
.kicker{font-family:var(--serif);font-weight:600;font-size:.72rem;letter-spacing:.24em;text-transform:uppercase;margin:0 0 1.1em}
.btn{display:inline-block;font-family:var(--display);font-size:1rem;line-height:1.5;padding:.85em 2.2em;border-radius:999px;border:1px solid var(--black);background:var(--black);color:#fff;text-decoration:none;cursor:pointer;white-space:nowrap}
.btn:hover{opacity:.85}
.btn-outline{background:transparent;border-color:#fff;color:#fff}
.btn-sm{font-size:.95rem;padding:.55em 1.5em}
.ctas{margin-top:28px;display:flex;gap:12px;flex-wrap:wrap}
main .ctas{justify-content:center}   /* owner request: buttons such as "Start the Conversation" are centred in their column */

/* Prototype notice: a small tag in the corner, outside the page flow so it never changes the layout */
.proto{position:fixed;left:10px;bottom:10px;z-index:80;background:#fff6d6;color:#6b5200;border:1px solid #e8d48a;font:600 12px/1.4 Arial,sans-serif;padding:4px 10px;border-radius:20px;pointer-events:none}

/* ---------- Header: floating dark menu pill ---------- */
.site-head{position:fixed;top:0;left:0;right:0;z-index:50;padding:10px 0 20px;transition:background .25s}
.site-head.solid{background:var(--strip,var(--white))}      /* below the top photo: a solid strip so nothing peeks around the pill; home.js sets --strip to the colour of the section below, so it blends in */
.site-head .wrap{max-width:1460px;padding:0 20px}
/* Logo sits on its own, outside the black pill (owner request 2026-11-17). At the top of a page it is 3x the old
   size (168px) over the photo; once you scroll it shrinks back and switches to the dark version on the off-white strip.
   The row stays 67px tall (the big logo hangs below it), so the header area is still 97px for the Page Down rules. */
.site-head .wrap{display:flex;align-items:flex-start;gap:24px;height:67px}
.pill{height:67px;flex:none;margin-left:auto;display:flex;align-items:center;gap:18px;padding:0 14px 0 22px;border-radius:999px;background:rgba(14,14,14,.55);color:#fff;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.site-head.solid .pill{background:rgba(14,14,14,.78)}   /* close to the see-through look over the top photo, still clear on the light strip */
:root{--markH:min(168px,11vw)}
.mark{position:relative;flex:none;display:block;height:var(--markH);transition:height .35s ease}
.mark img{height:100%;width:auto;transition:opacity .35s ease}     /* wordmark: emblem with URBAN IMAGE / FINE HOMES to the right */
.mark .on-light{position:absolute;left:0;top:0;opacity:0}
.site-head.solid .mark{height:62px;margin-top:2px}
.site-head.solid .mark .on-dark{opacity:0}
.site-head.solid .mark .on-light{opacity:1}
.site-head.solid.over-dark .mark .on-dark{opacity:1}     /* strip over a black or photo section: cream logo, as on the top photo */
.site-head.solid.over-dark .mark .on-light{opacity:0}
.nav{margin-left:auto}
.nav ul{list-style:none;display:flex;gap:4px;margin:0;padding:0}
.nav a{display:block;font-family:var(--display);font-size:.82rem;color:#fff;text-decoration:none;padding:6px 10px;border-radius:999px;white-space:nowrap}
.nav a:hover{background:rgba(255,255,255,.12)}
.nav a[aria-current]{text-decoration:underline;text-underline-offset:6px}
.ig{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid rgba(255,255,255,.7);border-radius:50%;color:#fff;flex:none}
.ig svg{width:16px;height:16px}
/* menu: a bigger solid white button so Instagram is easy to spot; footer: an outlined button with the words */
.pill > .ig{width:38px;height:38px;background:#fff;border-color:#fff;color:#0b0b0b;transition:background .2s ease}
.pill > .ig svg{width:22px;height:22px}
.pill > .ig:hover,.pill > .ig:focus-visible{background:#e4e4e4}
.ig-follow{display:inline-flex;align-items:center;gap:8px}
.ig-follow svg{width:18px;height:18px;flex:none}
.menu-btn{display:none;margin-left:auto;background:transparent;border:1px solid rgba(255,255,255,.7);color:#fff;border-radius:999px;padding:8px 16px;font:600 .8rem/1 var(--serif);letter-spacing:.15em}

/* ---------- Photo heroes ---------- */
.hero,.page-hero{position:relative;color:#fff;background:#222 center/cover no-repeat;display:flex;align-items:flex-end}
.hero::before,.page-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(rgba(0,0,0,.45) 0%,rgba(0,0,0,.15) 40%,rgba(0,0,0,.75) 100%)}
.hero .wrap,.page-hero .wrap{position:relative;width:100%}
.hero{min-height:100vh}
.hero .wrap{padding-bottom:9vh}
.hero h1,.page-hero h1{max-width:12.5ch}
.hero .lead,.page-hero .lead{font-size:1.07rem;max-width:34em;margin:0}
/* Backyard waterfall photo (owner 2026-11-17: water hard to see): wherever it is cropped, centre it on the falls and pond */
img[src*="mk-backyard-pond"]{object-position:55% 62%}
.hero-bg[style*="mk-backyard-pond"]{background-position:55% 62%}
.hero-bg[style*="mk-venture-hero"]{background-position:50% 58%}
.page-hero .hero-bg[style*="mk-exterior-spruce-street"]{background-position:50% 84%}   /* (needs the .page-hero prefix: the shorthand rule further down would otherwise win) */
/* Contact hero (photo 65): the photo is bright and sunny, but the usual dark overlay made it look dull (Tarik 2026-11-30). A lighter overlay only on this page, plus a very slight lift, so it still looks natural. */
.page-hero:has(.hero-bg[style*="mk-contact-banner"])::before{background:linear-gradient(90deg,rgba(0,0,0,.34) 0%,rgba(0,0,0,.14) 40%,rgba(0,0,0,0) 70%),linear-gradient(rgba(0,0,0,.06) 0%,rgba(0,0,0,0) 40%,rgba(0,0,0,.40) 100%)}   /* bright living-room banner: only the lower left, where the white title sits, is shaded (title contrast about 6:1) */
.page-hero .hero-bg[style*="mk-contact-banner"]{filter:none}
.page-hero.no-photo{background:var(--black)}   /* page without a top photo (Testimonials): plain black, no darkening layer */
.page-hero.no-photo::before{display:none}
.page-hero{min-height:clamp(420px,72vh,560px);padding-top:calc(10px + var(--markH) + 28px);overflow:hidden}   /* the title always starts below the big logo */
/* Sub-page top photo: zooms in very slowly after the page opens (about 10% over 30 seconds), so no page is static */
.page-hero .hero-bg{position:absolute;inset:0;background:#222 center/cover no-repeat;animation:hero-zoom 30s cubic-bezier(.25,.1,.35,1) forwards}
.page-hero::before{z-index:1}
/* Lighter shading (owner 2026-11-17: interiors looked darker than on the live site). The photo is untouched; the
   see-through layer is dark only behind the title (bottom left) plus a light band at the top for the logo and menu,
   so most of the photo shows as photographed. The title gets a soft shadow instead. */
.page-hero::before{background:
  radial-gradient(ellipse 60% 70% at 20% 82%,rgba(0,0,0,.52) 0%,rgba(0,0,0,.3) 50%,rgba(0,0,0,0) 100%),
  linear-gradient(rgba(0,0,0,.3) 0%,rgba(0,0,0,.06) 24%,rgba(0,0,0,0) 50%,rgba(0,0,0,.16) 100%)}
.page-hero h1,.page-hero .lead{text-shadow:0 1px 14px rgba(0,0,0,.55)}
.page-hero .wrap{z-index:2}
@keyframes hero-zoom{from{transform:scale(1)}to{transform:scale(1.1)}}
@media (prefers-reduced-motion:reduce){.page-hero .hero-bg{animation:none}}
/* Photo placeholders on sub-pages (top photo, or the photo behind a "cover" section): striped frame, label at the top right
   so it never sits under the heading */
.inner .ph{display:flex;text-align:right;color:#c9c3b9;background:repeating-linear-gradient(135deg,#2b2b2a 0 16px,#252524 16px 32px);outline:1px dashed #6d675e;outline-offset:-10px}
.inner .ph .ph-in{max-width:380px;padding:12px}
.inner .ph svg{width:30px;height:30px;margin:0 0 10px auto;opacity:.7;display:block}
.inner .ph b{display:block;font:700 11px/1.4 Arial,sans-serif;letter-spacing:.18em;text-transform:uppercase;margin-bottom:8px}
.inner .ph span{display:block;font-family:var(--display);font-size:1.2rem;line-height:1.25;color:#f1ede6}
.inner .ph small{display:block;font-size:.85rem;line-height:1.35;margin-top:8px}
.page-hero .hero-ph{justify-content:flex-end;align-items:flex-start;padding:120px 5vw 0 0}
.cover-ph-band .cover-ph{position:absolute;inset:0;justify-content:flex-end;align-items:flex-start;padding:28px 4vw 0 0}
.cover-ph-band::before{z-index:1;background:rgba(11,11,11,.35)}
.cover-ph-band .wrap{z-index:2}
.cover-ph-band .cover-ph .ph-in{position:relative;z-index:2}
@media (max-width:700px){ .page-hero .hero-ph,.cover-ph-band .cover-ph{padding:96px 20px 0;justify-content:center;text-align:center} .inner .ph svg{margin:0 auto 10px} }
/* A box that marks content still to come (for example a story or facts from Tarik) */
.ph-note{border:1px dashed #b5afa5;background:repeating-linear-gradient(135deg,#ebe6dd 0 16px,#e4ded3 16px 32px);padding:44px 48px;text-align:center;color:#5d5850}
.ph-note b{display:block;font:700 11px/1.4 Arial,sans-serif;letter-spacing:.18em;text-transform:uppercase;margin-bottom:10px}
.ph-note h2{color:var(--ink);font-size:clamp(1.6rem,2.4vw,2.2rem)}
.ph-note p{max-width:40em;margin:0 auto 1em}
.ph-note ul{display:inline-block;text-align:left;margin:0;padding-left:1.2em}
.ph-note li{margin:0 0 .3em}
.page-hero .wrap{padding-bottom:56px}

/* ---------- Bands (sections) ---------- */
.band{padding:96px 0}
.band-black{background:var(--black);color:#fff}
.band-stone{background:var(--stone)}
.band-cover{position:relative;color:#fff;background:#222 center/cover no-repeat;text-align:center;display:flex;align-items:center;min-height:511px}
/* photo-background bands: darker only in the middle behind the text, light at the edges (was an even 70% black) */
.band-cover::before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse 58% 78% at 50% 50%,rgba(11,11,11,.62) 0%,rgba(11,11,11,.42) 55%,rgba(11,11,11,.16) 100%)}
.band-cover .wrap{position:relative;width:100%;text-shadow:0 1px 12px rgba(0,0,0,.6)}
.center{text-align:center}
.center .narrow,.narrow{max-width:900px;margin-left:auto;margin-right:auto}
.center .ctas{justify-content:center}
.split{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}
.split figure{margin:0}
.split img{width:100%;aspect-ratio:3/2;object-fit:cover}
.split.photo-right > figure,.split.photo-right > .photo-col{order:2}
.split.title-over .photo-col h2{margin:0 0 .5em}
.split.title-over .photo-col figure{margin:0}
.split.title-over .brand-line{display:block}
/* tall two-stop section (About Us, Tarik): the photo lines up with the top of the text, so it is whole on the first screen */
@media (min-width:1025px){ .band.snap-items .split{align-items:start} }
/* Laptop and larger: title above the photo, list beside it, all inside one screen (window height minus the 190px logo/menu strip) */
@media (min-width:1025px){
  main > .band:has(> .title-over){padding-top:30px;padding-bottom:26px}
  .split.title-over{align-items:start;gap:0 56px}
  /* title in row 1 (left), photo in row 2 (left), and the list centred beside the photo (right) */
  .split.title-over .photo-col{display:contents}
  .split.title-over .photo-col > h2,.split.title-over .photo-col > .kicker{grid-column:1;grid-row:1}
  .split.title-over .photo-col > figure{grid-column:1;grid-row:2}
  .split.title-over > div:not(.photo-col){grid-column:2;grid-row:2;align-self:center}
  .split.title-over .photo-col h2{font-size:clamp(1.7rem,2.4vw,2.5rem);line-height:1.12;margin:0 0 .45em}
  .split.title-over .photo-col > figure{align-self:stretch;min-height:200px;position:relative}
  .split.title-over .photo-col img{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto}   /* the photo is as tall as the list beside it */
  .split.title-over ul.checks{margin-top:.5em}
  .split.title-over ul.checks li{font-size:.94rem;line-height:1.33;margin:0 0 .4em}
  .split.title-over p{font-size:1rem;line-height:1.38;margin:0 0 .4em}
}
/* A person's portrait (Tarik, About Us): the whole photo shows, nothing cropped; a short bio card appears beside it on hover, tap or keyboard focus.
   (Moved here from home.css on 2026-11-18 when the portrait moved from the home page to the About Us page.) */
.portrait-frame{position:relative;aspect-ratio:580 / 472;background:#a4a4a4;box-shadow:0 20px 50px rgba(0,0,0,.18);cursor:help;z-index:3}
.split .portrait-frame img.portrait,.portrait-frame img.portrait{display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:contain}
.portrait-frame .bio{position:absolute;left:calc(100% + 14px);bottom:-8px;width:min(400px,30vw);padding:18px 22px;background:var(--white);
  box-shadow:0 18px 44px rgba(0,0,0,.22);font-size:.92rem;line-height:1.5;color:var(--ink);text-align:left;
  opacity:0;visibility:hidden;translate:-8px 0;transition:opacity .3s ease,translate .3s ease,visibility .3s;pointer-events:none;z-index:4}
.portrait-frame .bio b{display:block;font-family:var(--display);font-weight:400;font-size:1.35rem;margin-bottom:6px}
.portrait-frame.open .bio{opacity:1;visibility:visible;translate:0 0}
@media (hover:hover){ .portrait-frame:hover .bio,.portrait-frame:focus .bio,.portrait-frame:focus-within .bio{opacity:1;visibility:visible;translate:0 0} }   /* mouse and keyboard; on touch screens only a tap (.open) opens the card */
.portrait-frame:focus-visible{outline:2px solid var(--white);outline-offset:4px}
/* Phones and tablets: the card opens over the bottom of the photo (so it can never run off the screen) and is opened by a tap (home.js adds .open) */
@media (max-width:1024px){ .portrait-frame .bio{left:0;right:0;bottom:0;width:auto;padding:12px 16px;font-size:.84rem;line-height:1.42;translate:0 8px} .portrait-frame .bio b{font-size:1.15rem;margin-bottom:3px} }
@media (hover:none){ .portrait-frame:not(.open)::after{content:"Tap to read bio";position:absolute;right:10px;bottom:10px;z-index:5;background:rgba(0,0,0,.7);color:#fff;font:600 .72rem/1 var(--serif);letter-spacing:.12em;text-transform:uppercase;padding:8px 14px;border-radius:999px;pointer-events:none} }
/* About Us, Tarik's section: the paragraphs after the first sit under the portrait in two columns (home.js adds the spacing that keeps them off the first screen) */
.snap-more{display:grid;grid-template-columns:1fr 1fr;gap:0 64px;margin-top:56px;align-items:start}
.snap-more p{margin:0}
@media (max-width:1024px){ .snap-more{grid-template-columns:1fr;gap:1em;margin-top:1.4em} }
/* one wide photo under a section's text (Venture > Prairie Gateway), shown whole */
.wide-photo{margin:36px auto 0;max-width:1240px}   /* wide enough for the long site view (4.97 : 1) on Venture */
.wide-photo img{display:block;width:100%;height:auto;box-shadow:0 16px 36px rgba(40,30,20,.14)}   /* the picture keeps its own shape, whatever it is */
@media (max-width:700px){ .wide-photo img{aspect-ratio:2 / 1;object-fit:cover;object-position:100% 50%} }   /* phones: the long site view would be a thin strip, so show its right-hand part (the large bays) bigger */
.band .wrap + .wrap .btn{margin-top:0}
/* Community Involvement (About Us): picture cards that turn over to show text on hover / keyboard focus / tap (home.js adds .open on touch screens) */
.flip-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin-top:34px;text-align:left}
.flip-card{perspective:1600px;height:clamp(300px,25vw,390px);cursor:help;outline:none}
.flip-in{position:relative;width:100%;height:100%;transition:transform .7s ease;transform-style:preserve-3d}
.flip-front,.flip-back{position:absolute;inset:0;border-radius:10px;overflow:hidden;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.flip-front{background:#fff;box-shadow:0 14px 36px rgba(0,0,0,.14)}
.flip-front img{display:block;width:100%;height:100%;object-fit:contain;aspect-ratio:auto}
.flip-back{background:var(--stone);transform:rotateY(180deg);padding:22px 28px;overflow:auto;box-shadow:0 14px 36px rgba(0,0,0,.14);font-size:1rem;line-height:1.5;color:var(--ink);display:flex;flex-direction:column;justify-content:center}
.flip-back h3{font-family:var(--display);font-weight:400;font-size:1.35rem;line-height:1.2;text-align:center;margin:0 0 .5em}
.flip-back p{margin:0 0 .7em}.flip-back p:last-child{margin-bottom:0}
.flip-card.open .flip-in{transform:rotateY(180deg)}
@media (hover:hover){ .flip-card:hover .flip-in,.flip-card:focus-visible .flip-in,.flip-card:focus-within .flip-in{transform:rotateY(180deg)} }
.flip-card:focus-visible .flip-front{outline:2px solid var(--ink);outline-offset:4px}
@media (hover:none){ .flip-card:not(.open) .flip-front::after{content:"Tap to read more";position:absolute;right:10px;bottom:10px;background:rgba(0,0,0,.7);color:#fff;font:600 .72rem/1 var(--serif);letter-spacing:.12em;text-transform:uppercase;padding:8px 14px;border-radius:999px;pointer-events:none} }
@media (prefers-reduced-motion:reduce){ .flip-in{transition:none} }
@media (max-width:1024px){ .flip-grid{grid-template-columns:1fr;gap:28px} .flip-card{height:clamp(300px,62vw,420px)} }
@media (max-width:600px){ .flip-card{height:400px} .flip-back{padding:18px 20px;font-size:.95rem} }
.checks{list-style:disc;padding-left:1.2em;margin:0}
.checks li{margin:0 0 .35em}
.band-black .checks li::marker{color:#fff}
.opps{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:40px;text-align:center}
.opp{background:var(--stone);padding:36px 32px}
.opp h3{font-family:var(--serif);font-weight:600;font-size:.8rem;letter-spacing:.2em;text-transform:uppercase}
.opp p{margin:0}
.quote-list{max-width:1050px;margin:0 auto;display:grid;gap:36px}
.quote-box{background:var(--stone);padding:48px 64px;text-align:center}
.quote-box h3{font-size:1.6rem}
.quote-box p{font-size:1rem}
.testi{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}
.testi .mark-q{font-family:var(--display);font-size:3rem;line-height:.6;margin:6px 0 18px}
.testi cite{display:block;font-style:normal;font-weight:600;letter-spacing:.2em;text-transform:uppercase;font-size:.85rem;margin:18px 0 12px}
.testi .more{font-size:.9rem}
.testi.solo{grid-template-columns:1fr;max-width:860px;text-align:center}   /* client story without photos: one centred column */
.pair{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.pair img{width:100%;aspect-ratio:3/4;object-fit:cover}
.pair .pair-ph{grid-column:1/-1;aspect-ratio:3/2;justify-content:center;align-items:center;text-align:center}   /* one frame where the two photos were */
.inner .pair .pair-ph svg{margin:0 auto 10px}
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.gallery figure{margin:0}
.gallery img{width:100%;aspect-ratio:3/2;object-fit:cover}
/* Projects page "showcase": numbered title, then a staggered photo grid (one big feature photo per group) */
.show-head{display:flex;align-items:flex-end;gap:28px;margin:0;grid-column:1 / -1}   /* the title is the first cell of the photo grid */
.show-head .num{font-family:var(--display);font-size:clamp(3.2rem,6vw,5.6rem);line-height:.78;color:#cdc3b4}
.show-head h2{margin:0}
.show-head .kicker{margin-bottom:.6em}
.show-head p{margin:.5em 0 0;max-width:36em;color:var(--muted)}
.gallery-show{display:grid;grid-template-columns:repeat(3,1fr);grid-auto-rows:clamp(170px,15.5vw,280px);grid-auto-flow:dense;gap:64px 24px;padding-bottom:28px}   /* row gap 64 (was 48): with the 30px of air under the bottom photos, the next screen's first row stays just below the window edge */
.gallery-show figure{margin:0;overflow:hidden;box-shadow:0 16px 36px rgba(40,30,20,.14)}
.gallery-show img{width:100%;height:100%;object-fit:cover;transition:scale 1.4s cubic-bezier(.2,.65,.25,1)}
.gallery-show figure:hover img{scale:1.04}
.gallery-show .feature{grid-column:span 2;grid-row:span 2}
.gallery-show.feature-right .feature{grid-column:2 / span 2}
.gallery-show .wide{grid-column:span 2}
.gallery-show .tall{grid-row:span 2}
@media (min-width:1025px){ .gallery-show .tall.low{grid-column:1;grid-row:3 / span 2} }   /* a tall photo that sits on the second screen of its group (rows 3-4), so it is never split between two Page Down screens */
.gallery-show figure:nth-child(odd){translate:0 28px}   /* slight stagger (the title is child 1, so odd = every other photo) */
/* Laptop and larger: each group is built from whole screens. Screen 1 = title (top left), the big photo beside it and one photo under
   the title; every later screen = two full rows. Row height follows the window height so two rows fill the screen. */
@media (min-width:1025px){
  /* The strip behind the logo and menu is (logo height + 22px) tall and solid, so the reading area is the window height minus
     that. Two rows + the gap + the 28px stagger + a little air must fit in it (home.js showcaseStops() uses the same sums). */
  main > .showcase{padding-top:40px}
  .gallery-show{grid-auto-rows:clamp(150px,calc((100vh - var(--markH) - 152px) / 2),380px)}   /* two rows + 64px gap + 28px stagger leave about 30px of air under the bottom photos, so they never look cut off */
  .gallery-show .show-head{grid-column:1;grid-row:1;align-self:end;gap:20px;padding-bottom:8px}
  .show-head .num{font-size:clamp(2.8rem,4vw,4.2rem)}
}
/* Our Homes: this tall photo is cropped from the right side so the house (not the tree beside it) fills the frame */
.gallery-show img[src*="mk-exterior-modern-infill"]{object-position:100% 50%}
/* Bathrooms: this photo sits in a flat wide strip; show the shower and the tub rather than the empty wall above them */
.gallery-show img[src*="mk-bath-steam-shower-tub"]{object-position:50% 72%}
/* Kitchens: wide strip, show the pendants, the island and the stairs */
.gallery-show img[src*="mk-kitchen-waterfall-island-stairs"]{object-position:50% 40%}   /* slight stagger */
/* Sub-page fade-in (home.js adds .reveal-on to the page; off for visitors who ask for less motion) */
.reveal-on [data-reveal]{opacity:0;transform:translateY(36px);transition:opacity 1.3s ease var(--d,0s),transform 1.5s cubic-bezier(.2,.65,.25,1) var(--d,0s)}
.reveal-on [data-reveal].in{opacity:1;transform:none}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:start}
.contact-grid h3{font-size:1.45rem;margin:.9em 0 .3em}
.contact-grid h2 + p{margin-bottom:1.6em}
.detail p{margin:0}
.form{display:grid;gap:18px}
.form label{display:block;font-size:.85rem;margin-bottom:6px}
.form input,.form textarea{width:100%;font:inherit;font-size:1rem;padding:10px 12px;border:0;background:#fffdfa;box-shadow:inset 0 0 0 1px var(--line)}
.form textarea{min-height:150px}
.form .note{font-size:.85rem;color:var(--muted);margin:0}
.form .btn{justify-self:start}
.form .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}   /* robot trap: people never see or fill this */
.form .note:empty{display:none}
.form .note.ok{color:#2c6b34;font-weight:600}
.form .note.err{color:#9b2c2c;font-weight:600}
.form .btn:disabled{opacity:.6;cursor:wait}

/* ---------- Footer ---------- */
/* Certifications and memberships band: on every page's end screen, above the footer (home first, sub-pages since 2026-11-17) */
.certs-band{background:var(--black);color:#fff;text-align:center;padding:clamp(28px,6vh,64px) 0 clamp(10px,2vh,24px)}
.certs-band h2{font-size:clamp(1.7rem,2.4vw,2.3rem);margin:0}
.certs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;max-width:1040px;margin:clamp(18px,3.5vh,34px) auto 0}
.cert{display:flex;flex-direction:column;align-items:center;gap:4px}
.cert .plate{display:flex;align-items:center;justify-content:center;width:100%;height:clamp(70px,11vh,104px);background:#fff;border-radius:6px;padding:10px 14px;margin-bottom:8px}
.cert .plate img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.cert .plate-duo{gap:16px}                       /* BILD Calgary Region and CHBA logos side by side: one membership */
.cert .plate-duo img{max-width:46%}
.cert .badge{display:flex;align-items:center;justify-content:center;height:100%;min-width:56%;padding:0 18px;border:3px solid #a98a5a;border-radius:999px}   /* matching gold-ring badge for the BBB grade and the CICBA mark (2026-11-30) */
.cert .plate:has(.badge){padding:5px 14px}
.cert .badge img{max-width:100%;max-height:78%}
.cert .badge .grade{font-size:clamp(1.4rem,3.2vh,2rem)}
.cert .grade{font-family:var(--display);font-size:clamp(2rem,4.5vh,2.8rem);color:var(--black);line-height:1}
.cert .name{font-family:var(--display);font-size:1rem;line-height:1.3}
.cert .what{font-size:.82rem;opacity:.7;line-height:1.3}
@media (max-width:700px){ .certs{grid-template-columns:1fr 1fr} }
footer{background:var(--black);color:#fff;text-align:center;padding:56px 0 28px}
footer .logo{height:160px;width:auto;margin:0 auto 26px}
.foot-nav{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 22px;font-family:var(--display);font-size:.9rem}
.foot-nav a{text-decoration:none}
.foot-actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;margin:22px 0}
.foot-contact{font-size:.82rem;margin:0}
footer hr{border:0;border-top:1px solid rgba(255,255,255,.18);margin:26px 0 18px}
.foot-bottom{font-size:.8rem;margin:0}

/* ---------- Logo marks: the emblem sits faintly in open space, partly off the edge, behind the content.
   Light sections use the light-grey emblem, black sections the cream emblem at very low strength.
   Decoration only (no meaning), so screen readers skip it. ---------- */
.band{position:relative;overflow:hidden;overflow:clip}
.band[id]{scroll-margin-top:calc(var(--markH) + 22px)}   /* a link like /projects/#kitchens stops just below the logo and menu */
.band > .wrap{position:relative;z-index:1}
main > .band.center::after, main > .band:has(> .split)::after, main > .band:has(> .testi)::after{
  content:"";position:absolute;z-index:0;pointer-events:none;aspect-ratio:1;background:center/contain no-repeat}
/* Every watermark sits at the TOP CENTRE of its band (Tarik, 2026-11-17; before: half off the left or right edge) */
main > .band.center::after, main > .band:has(> .split)::after, main > .band:has(> .testi)::after{width:min(480px,34vw);left:50%;top:16px;translate:-50% 0}
/* light bands: light-grey emblem */
main > .band.center:not(.band-black)::after, main > .band:has(> .split)::after, main > .band:has(> .testi)::after{background-image:url('/images/logo-emblem-dark.png');opacity:.6}
/* black bands: cream emblem at very low strength */
main > .band-black.center::after, main > .band-black:has(> .split)::after{background-image:url('/images/logo-emblem-light.png');opacity:.07}
/* client stories page: a small emblem crowns each quote */
.quote-box{position:relative}
.quote-box::before{content:"";display:block;width:58px;height:58px;margin:0 auto 14px;background:url('/images/logo-emblem-dark.png') center/contain no-repeat;opacity:.9}
/* contact page: the wordmark signs off the contact details */
.contact-grid > div:first-child::after{content:"";display:block;width:210px;aspect-ratio:627/218;margin-top:36px;background:url('/images/logo-wordmark-dark.png') center/contain no-repeat;opacity:.35}
@media (max-width:1024px){main > .band::after{opacity:.35 !important}}

.callbar{display:none}
.pd-hold{position:fixed;left:0;right:0;z-index:40;pointer-events:none;background:var(--hold,var(--white));opacity:0;transition:opacity .2s ease}
.pd-hold.on{opacity:1}
@media print{.pd-hold,.proto{display:none}.site-head{position:absolute}}

/* ---------- Home: every section below the photo is exactly one screen on a laptop or desktop ---------- */
.home-sec{display:flex;align-items:center}
.home-sec > .wrap{width:100%}
.about3{display:grid;grid-template-columns:1fr .85fr 1fr;gap:56px;align-items:stretch}
.about3 .titles{display:flex;flex-direction:column;justify-content:space-between}
.about3 h2{margin:0}
.about3 figure{margin:0}
.about3 img{width:100%;height:100%;aspect-ratio:4/5;object-fit:cover}
.about3 .text{align-self:center}
.wwd{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:36px}
.wwd figure{margin:0}
.wwd img{width:100%;aspect-ratio:4/5;object-fit:cover}
.wwd figcaption{font-family:var(--display);font-size:1.35rem;margin-top:16px}
.process{display:grid;grid-template-columns:1fr 1.15fr;gap:72px;align-items:start}
.process .item{border-bottom:1px solid var(--line);padding:0 0 14px;margin:0 0 16px}
.process .item:last-of-type{border:0}
.process .item h3{margin:0 0 .25em}
.process .item p{margin:0}
.process figure{margin:28px 0 0}
.process figure img{width:100%;aspect-ratio:16/10;object-fit:cover}
@media (min-width:1025px) and (min-height:480px){
  body:not(.inner) > section:not(.hero), body > .screen{min-height:calc(100vh - var(--headH))}
  body:not(.inner) > .band{padding:clamp(28px,6vh,72px) 0}
  .screen{display:flex;flex-direction:column}
  .screen-end footer{flex:1;display:flex;flex-direction:column;justify-content:center}
  .about3 img{max-height:calc(100vh - var(--headH) - 12vh);height:100%;aspect-ratio:auto}
  .wwd img{max-height:calc(100vh - var(--headH) - 12vh - 190px);aspect-ratio:auto;height:calc(100vh - var(--headH) - 12vh - 190px)}
  #venture img,#why-partner img{max-height:calc(100vh - var(--headH) - 12vh)}
  .home-sec .pair img{max-height:calc(100vh - var(--headH) - 12vh);aspect-ratio:auto;height:calc(100vh - var(--headH) - 12vh)}
}
/* "Floating header" (TRIAL on the home page, owner request 2026-11-17; add class "float-head" to <body> to use it):
   the big logo and the see-through menu bar stay exactly as over the top photo on every section, with no strip behind
   them. To keep the Page Down rule (whole sections only, nothing peeking), each section is a full window tall and
   keeps the top part (10px + logo + 12px) free for the logo and bar; home.js then stops at the section's very top. */
@media (min-width:1025px) and (min-height:480px){
  body.float-head{--headH:calc(10px + var(--markH) + 12px)}
  body.float-head > section:not(.hero), body.float-head > .screen{min-height:100vh}
  body.float-head > .band:not(.hero){padding-top:calc(var(--headH) + clamp(16px,3vh,40px));padding-bottom:clamp(16px,3vh,40px)}
  body.float-head > .screen{padding-top:var(--headH)}
  body.float-head > .screen-end{background:var(--black)}   /* last screen (certifications + footer) is black right to the top */
  /* Sub-pages (owner request 2026-11-17): the same big logo and see-through bar while scrolling. Their Page Down stops
     fall inside long sections, so the area behind the logo and bar stays solid in the colour of the section below it
     (home.js blend()), which reads as no strip at all; the header area is 10px + logo + 12px tall, so nothing peeks. */
  body.inner .site-head.solid{padding-bottom:calc(var(--markH) - 55px)}
  body.inner .site-head.solid .mark{height:var(--markH);margin-top:0}
  body.inner .site-head.solid .pill{background:rgba(14,14,14,.55)}
  /* Sub-page end screen (owner 2026-11-17): certifications band, then the footer logo centred between it and
     "Start the Conversation", all within the reading area below the big logo / menu (10px + logo + 12px) */
  body.inner .screen-end{min-height:calc(100vh - var(--markH) - 22px);background:var(--black)}   /* black behind both blocks: no hairline gap */
  body.inner .screen-end .certs-band{flex-shrink:0;padding:clamp(10px,2vh,24px) 0 clamp(6px,1vh,12px)}
  body.inner .screen-end .certs{margin-top:clamp(12px,2.2vh,28px)}
  body.inner .screen-end .cert .plate{height:clamp(52px,7vh,90px)}
  body.inner .screen-end footer{justify-content:flex-start;flex-shrink:0;padding-top:0;padding-bottom:clamp(12px,2.5vh,28px)}
  body.inner .screen-end footer > .wrap{flex:1;display:flex;flex-direction:column;width:100%}
  body.inner .screen-end footer > .wrap > a:first-child{flex:1;display:flex;align-items:center;justify-content:center;padding:12px 0 10px}
  body.inner .screen-end footer .logo{height:clamp(105px,18vh,200px);margin:0}
  body.inner .screen-end .foot-actions{margin:8px 0}
  body.float-head > .screen > .band, body.float-head .certs-band{padding-top:clamp(8px,1.5vh,20px)}   /* certifications band on the last screen */
  /* footer logo larger to fill the last screen (owner 2026-11-17); room taken from smaller gaps and plates */
  /* the logo sits centred in the open space between the certifications and "Start the Conversation" (owner 2026-11-17) */
  body.float-head .screen-end footer{justify-content:flex-start;flex-shrink:0;padding-top:0}
  body.float-head .screen-end .certs-band{flex-shrink:0}   /* never squeezed under the footer */
  body.float-head .screen-end footer > .wrap{flex:1;display:flex;flex-direction:column;width:100%}
  body.float-head .screen-end footer > .wrap > a:first-child{flex:1;display:flex;align-items:center;justify-content:center;padding:6px 0 16px}
  body.float-head .screen-end footer .logo{height:clamp(120px,19vh,200px);margin:0}
  body.float-head .screen-end .foot-actions{margin:8px 0}
  body.float-head .certs{margin-top:clamp(12px,2.2vh,28px)}
  body.float-head .cert .plate{height:clamp(52px,7vh,90px)}
  body.float-head .site-head.solid{background:transparent}
  body.float-head .site-head.solid .mark{height:var(--markH);margin-top:0}
  body.float-head .site-head.solid .pill{background:rgba(14,14,14,.55)}
}
@media (min-width:1025px) and (max-height:920px){
  #process .item p{font-size:.95rem;line-height:1.5}
  #process .item h3{font-size:1.4rem}
  #process .item{padding-bottom:10px;margin-bottom:12px}
}
@media (min-width:1025px) and (max-height:800px){
  body:not(.inner) .home-sec h2{font-size:2.6rem}
  #why-partner .checks{font-size:.9rem}
  #why-partner .checks li{margin-bottom:.15em}
  #process .item{padding-bottom:8px;margin-bottom:10px}
  #process .item h3{font-size:1.35rem}
  #process .item p{font-size:.92rem;line-height:1.5}
  #process .lead-p{font-size:.95rem}
  .band-cover .narrow p{font-size:1rem}
  #testimonial .testi p{font-size:1rem}
}

/* ---------- Tablet and phone ---------- */
@media (max-width:1400px){ .nav a{padding:6px 7px;font-size:.78rem} }
@media (min-width:1025px) and (max-width:1400px){ :root{--markH:min(168px,calc(82px + (100vw - 1180px) * .2))} }   /* big logo shrinks a little on smaller screens so the menu bubble and Let's Talk never run off the right edge */
@media (min-width:1025px) and (max-width:1300px){ .site-head.solid .mark{height:50px;margin-top:8px} .pill{gap:12px} }
@media (max-width:1024px){ :root{--markH:min(150px,20vw)} .site-head.solid .mark{height:52px;margin-top:6px} }
@media (min-width:1025px) and (max-width:1100px){ .pill > .ig{display:none} :root{--markH:6.8vw} .nav a{padding:6px 4px;font-size:.72rem} .pill{gap:8px;padding:0 10px 0 14px} }   /* Instagram stays in the footer */
@media (max-width:1024px){
  .menu-btn{display:block}
  .pill > .btn,.pill > .ig{display:none}
  .pill{border-radius:24px;backdrop-filter:none;-webkit-backdrop-filter:none}   /* the blur made the pill the reference box for the dropdown menu, which squeezed it to the pill's width */
  .nav{position:absolute;left:20px;right:20px;top:84px;background:rgba(14,14,14,.95);border-radius:20px;display:none;padding:12px 18px;margin:0}
  .nav.open{display:block}
  .nav ul{flex-direction:column}
  .nav a{font-size:1rem;padding:10px 6px}
  .split,.about3,.process,.testi,.contact-grid{grid-template-columns:1fr;gap:36px}
  .split.photo-right > figure{order:0}
  .about3 img{aspect-ratio:3/2}
  .band{padding:64px 0}
}
@media (max-width:700px){
  :root{--headH:84px}
  .site-head{padding:8px 0 12px}
  .pill{height:64px}
  .nav{top:76px}
  .wrap{padding:0 20px}
  .wwd,.opps,.gallery,.pair{grid-template-columns:1fr}
  .gallery-show{grid-template-columns:1fr 1fr;grid-auto-rows:42vw;gap:28px 14px}
  .gallery-show .feature,.gallery-show.feature-right .feature{grid-column:1 / -1;grid-row:span 1}
  .gallery-show figure:nth-child(odd){translate:0 16px}
  .show-head{gap:16px;margin-bottom:28px}
  .quote-box{padding:32px 24px}
  .band{padding:52px 0}
  body{padding-bottom:56px}
  .callbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:70;background:var(--black)}
  .callbar a{flex:1;color:#fff;text-align:center;padding:16px;font-family:var(--display);text-decoration:none}
  .proto{bottom:64px}
}

/* Phones: a long button label (for example the Exeleon article button on About Us) wraps onto two lines instead of running past the screen edge */
@media (max-width:700px){ .btn{white-space:normal;max-width:100%;text-align:center;padding:.8em 1.6em;line-height:1.3} }
