/* UIFH home page, version 2 (2026-11-16): a simpler home page from the 2026-10-30 slide package,
   with movement inspired by westridgefinehomes.com (crossfading hero photos with a slow zoom, text and
   photos that slide gently into place, photos that drift at different speeds while scrolling).
   Loaded only by index.html, after site.css. Sub-pages are not affected.
   Every home section is exactly one screen on a laptop or desktop (Page Down rule). */

/* ---------- Photo placeholders: a frame that says which photo is needed ---------- */
.ph{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;text-align:center;
  color:#5d5850;background:repeating-linear-gradient(135deg,#ebe6dd 0 16px,#e4ded3 16px 32px);outline:1px dashed #b5afa5;outline-offset:-10px}
.ph-in{max-width:min(82%,420px);padding:12px}
.ph svg{width:30px;height:30px;margin:0 auto 10px;opacity:.7;display:block}
.ph b{display:block;font:700 11px/1.4 Arial,sans-serif;letter-spacing:.18em;text-transform:uppercase;margin-bottom:8px}
.ph span{display:block;font-family:var(--display);font-size:1.2rem;line-height:1.25;color:#2b2925}
.ph small{display:block;font-size:.85rem;line-height:1.35;margin-top:8px}
.ph.dark{color:#c9c3b9;background:repeating-linear-gradient(135deg,#2b2b2a 0 16px,#252524 16px 32px);outline-color:#6d675e}
.ph.dark span{color:#f1ede6}
.ph.sm span{font-size:1rem}
.ph.sm small{font-size:.78rem}

/* ---------- Frames: photos and placeholders sit in a frame; the picture can drift inside it ---------- */
.frame{position:relative;overflow:hidden;margin:0;background:#ddd}
.frame > img,.frame > .ph{position:absolute;left:0;top:-8%;width:100%;height:116%;object-fit:cover;will-change:transform}

/* ---------- Hero: crossfading photos with a slow zoom ---------- */
.hero{background:#1a1a1a}
.hero .slides{position:absolute;inset:0;overflow:hidden}
.hero .slide{position:absolute;inset:0;opacity:0;transition:opacity 2s ease}
.hero .slide.on{opacity:1}
.hero .slide.first{transition-duration:3.2s}   /* the very first photo fades in slowly from black when the page opens */
.hero .slide > img,.hero .slide > .ph{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;scale:1;transition:scale 14s linear}
.hero .slide.zoom > img,.hero .slide.zoom > .ph{scale:1.07}

/* Slow zoom: every photo (and placeholder) slowly grows a little once it comes into view, so no screen is
   ever completely still. Kept very slow so it never pulls attention from the words. Uses "scale", so it
   works together with the drift ("transform") without one cancelling the other. */
.frame > img,.frame > .ph,.closing .bg img{scale:1;transition:scale 24s cubic-bezier(.25,.1,.35,1)}
.frame.zoom > img,.frame.zoom > .ph,.closing .bg.zoom img{scale:1.1}
.hero .slide > .ph{align-items:flex-start;justify-content:flex-end;padding:130px 6vw 0 0;text-align:right}
.hero .slide > .ph .ph-in{max-width:380px}
.hero .slide > .ph svg{margin:0 0 10px auto}
/* Shading over the hero photos (Tarik 2026-11-17: homes looked too dark, especially at the bottom). The photos
   themselves are untouched; only this see-through layer is lighter. Darker only where the words sit (bottom left)
   and a light band at the top for the menu; the right side and middle of each home now show almost as photographed. */
.hero::before{z-index:1;background:
  radial-gradient(ellipse 62% 58% at 18% 78%,rgba(0,0,0,.5) 0%,rgba(0,0,0,.3) 50%,rgba(0,0,0,0) 100%),
  linear-gradient(rgba(0,0,0,.30) 0%,rgba(0,0,0,.06) 24%,rgba(0,0,0,0) 50%,rgba(0,0,0,.18) 100%)}
.hero h1 .tagline,.hero .lead,.trust-line{text-shadow:0 1px 12px rgba(0,0,0,.55)}
.hero .wrap{z-index:2;padding-bottom:7vh}   /* a little lower than sub-pages so the larger company name stays clear of the big logo */
.hero h1{max-width:none}
/* Company name as the first line of the title (owner: make clear who we are), headline below it */
/* company name: larger than the "Luxury homes..." line below it (owner request 2026-11-17) */
.hero h1 .brand-line{display:block;font-size:1.18em;line-height:1.05;margin:0 0 .15em;white-space:nowrap;text-shadow:0 2px 14px rgba(0,0,0,.45)}
.hero h1 .tagline{display:block;max-width:15ch}
@media (max-width:700px){ .hero h1 .brand-line{white-space:normal} }
/* short browser windows: shrink the headline so it never runs up behind the big logo */
@media (max-height:700px) and (min-width:701px){ .hero h1{font-size:clamp(28px,calc((100vh - 400px) / 3.7),59px)} }
.hero .ctas{margin-top:26px}
.trust-line{margin:22px 0 0;font:600 .72rem/1.6 var(--serif);letter-spacing:.2em;text-transform:uppercase;opacity:.9}
.dots{position:absolute;right:40px;bottom:9vh;z-index:2;display:flex;gap:10px}
.dots button{width:10px;height:10px;padding:0;border-radius:50%;border:1px solid #fff;background:transparent;cursor:pointer}
.dots button.on{background:#fff}
.btn-light{background:#fff;border-color:#fff;color:var(--black)}

/* Review-only: try other headlines (removed before launch) */

/* ---------- Sections ---------- */
.home2 .band{padding:clamp(28px,6vh,72px) 0}
.home2 > section{overflow:hidden;overflow:clip}   /* drifting photos never spill into the next section */
.intro{display:grid;grid-template-columns:1fr 1.05fr;gap:80px;align-items:center}
.intro p{max-width:30em}
.more-link{font-family:var(--display);font-size:.95rem;text-decoration:none;border-bottom:1px solid currentColor;padding-bottom:2px}
/* Certifications and memberships: top of the last screen, above the footer (logos are made for white, so each sits on a white plate) */
/* certifications band: styles moved to site.css (it is on every page's end screen now) */
.home2 .screen-end footer{padding-top:clamp(16px,3vh,40px)}
.home2 .screen-end footer .logo{height:clamp(95px,15vh,170px)}
.duo{position:relative;height:calc(100vh - var(--headH) - 14vh);min-height:420px}
.duo .big{position:absolute;right:0;top:0;width:80%;height:84%}
.duo .small{position:absolute;left:0;bottom:0;width:44%;height:52%;box-shadow:0 20px 50px rgba(0,0,0,.18);border:8px solid var(--white)}
.band-stone .duo .small{border-color:var(--stone)}
/* Tarik's portrait and bio card moved to the About Us page (2026-11-18); its styles are in site.css. With the portrait gone,
   the home page's "About us" photo fills its whole frame. */
#about .duo .big{width:100%;height:100%}
.duo .big .ph{justify-content:flex-end;align-items:flex-start;padding:16% 5% 0 0}   /* keep the label clear of the small photo */
.duo .big .ph-in{max-width:52%}

.build3{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:30px}
.build3 .frame{height:calc(100vh - var(--headH) - 12vh - 190px);min-height:300px}
.build3 h3{margin:16px 0 0;font-size:1.45rem}
.build3 p{margin:2px 0 0;font-size:.95rem;color:var(--muted)}

#process .ctas{justify-content:center}   /* buttons centred in their column (owner request) */
/* Recent work: title on the left; three photos stacked on the right, each shifted sideways (staggered) and
   slightly overlapping, fading in one after another (delays set in index.html) */
/* Recent work (owner 2026-11-17: photos larger, less black space): wider section, narrower text column,
   taller photo stack, and each photo half the stack's height with more overlap */
#homes > .wrap.work{max-width:1480px}
.work{display:grid;grid-template-columns:.62fr 1.6fr;gap:48px;align-items:center}
.work-text{text-align:center}
.work-text p{max-width:22em;margin:0 auto 22px}
.work-stack{position:relative;height:calc(100vh - var(--headH) - 7vh);min-height:420px}
/* zig-zag (owner: middle photo was too hidden): left, right, left; the middle photo sits on top, so only
   the corners where the photos meet overlap */
.work-stack .frame{position:absolute;width:62%;height:50%;box-shadow:0 18px 40px rgba(0,0,0,.45)}
.work-stack .s1{top:0;left:-3%;z-index:1}   /* a smidge closer to the text (owner 2026-11-17) */
.work-stack .s2{top:25%;right:0;z-index:3}
.work-stack .s3{top:50%;left:0;z-index:2}
/* Recent work, new layout (Tarik 2026-11-30: see more of the pictures, smaller text): a slim text line on top,
   three large photos side by side below (desktop only; phones keep the stacked version further down) */
@media (min-width:1025px){
  #homes > .wrap.work{max-width:1560px;grid-template-columns:1fr;gap:18px;align-items:start}
  .work-text{display:grid;grid-template-columns:auto 1fr auto;column-gap:36px;align-items:center;text-align:left}
  .work-text .kicker{grid-column:1;grid-row:1;margin:0 0 2px}
  .work-text h2{grid-column:1;grid-row:2;margin:0;font-size:clamp(1.6rem,2.3vw,2.2rem)}
  .work-text p{grid-column:2;grid-row:1 / span 2;margin:0;max-width:none;font-size:1rem;text-align:left}
  .work-text .btn{grid-column:3;grid-row:1 / span 2}
  .work-stack{display:grid;grid-template-columns:1.1fr 1fr 1.1fr;gap:22px;height:calc(100vh - var(--headH) - 7vh - 70px);min-height:300px}
  .work-stack .frame{position:relative;width:100%;height:100%;top:auto;left:auto;right:auto}
  .work-stack .s2{translate:0 22px}
}
/* very short windows (under 560px tall): shrink each section's content a little so every section still fits one screen and Page Down moves exactly one section */
@media (min-width:1025px) and (max-height:559px){ .home2 > section:not(.hero) > .wrap, .home2 > .screen > *{zoom:.72} }
.band-black .ph{outline-color:#6d675e}

.story{display:grid;grid-template-columns:1.15fr 1fr;gap:72px;align-items:center}
.story .frame{height:calc(100vh - var(--headH) - 12vh);min-height:380px}
.story blockquote{margin:0;font-family:var(--display);font-size:clamp(1.4rem,2vw,1.85rem);line-height:1.4}
.story .mark-q{font-family:var(--display);font-size:3.4rem;line-height:.6;margin:0 0 18px}
.story cite{display:block;font-style:normal;font-weight:600;letter-spacing:.2em;text-transform:uppercase;font-size:.85rem;margin:24px 0 14px}

.steps{display:grid;grid-template-columns:1fr 1.05fr;gap:80px;align-items:center}
.steps ol{list-style:none;margin:26px 0 0;padding:0}
.steps li{display:grid;grid-template-columns:62px 1fr;gap:6px;padding:14px 0;border-top:1px solid var(--line)}
.steps li:last-child{border-bottom:1px solid var(--line)}
.steps .num{font-family:var(--display);font-size:1.5rem;color:#9a9388}
.steps h3{margin:0;font-size:1.4rem}
.steps li p{margin:2px 0 0;font-size:.95rem}

/* Restored original-site sections (2026-11-16, manager: keep all original text) */
.story p{max-width:34em}
.story.flip{grid-template-columns:1.25fr .8fr}
.story.solo{grid-template-columns:1fr;max-width:920px;text-align:center}   /* client story without a photo: one centred column */
.story.solo p{margin-left:auto;margin-right:auto}
#venture .ctas,#venture .ctas{justify-content:center}
#why-partner .checks{font-size:1rem;line-height:1.5}
#why-partner .checks li{margin-bottom:.4em}
#testimonial blockquote{font-size:clamp(1.15rem,1.5vw,1.45rem)}
#testimonial blockquote p{margin:0 0 .7em}
/* left column runs the full height of the section, so its text starts level with the list on the right and the
   photo gets all the room below it (owner 2026-11-17: text up a bit, photo looked cut off) */
#process .process{align-items:stretch;gap:64px}
#process .process > div:first-child{display:flex;flex-direction:column;min-height:420px}
#process .process > div:first-child h2{margin-bottom:12px}
#process .process .frame{flex:1;min-height:150px;margin:16px 0 0}
#process .lead-p{margin:0}
#process .item:last-of-type{border:0}
.closing h3{font-size:1.5rem;margin:1.3em 0 .4em}

.closing{position:relative;color:#fff;text-align:center;display:flex;align-items:center;overflow:hidden;background:#1a1a1a}
.closing .bg{position:absolute;inset:-6% 0;will-change:transform}
.closing .bg img{width:100%;height:100%;object-fit:cover}
.closing::before{content:"";position:absolute;inset:0;z-index:1;background:rgba(11,11,11,.62)}
.closing .wrap{position:relative;z-index:2;width:100%}
/* lighter shading (owner 2026-11-17): darker only behind the centred text, light at the edges; text gets a soft shadow */
.closing::before{background:radial-gradient(ellipse 56% 74% at 50% 52%,rgba(11,11,11,.6) 0%,rgba(11,11,11,.4) 55%,rgba(11,11,11,.14) 100%)}
#environmental.closing::before{background:radial-gradient(ellipse 62% 86% at 50% 54%,rgba(11,11,11,.62) 0%,rgba(11,11,11,.42) 58%,rgba(11,11,11,.16) 100%)}
.closing .wrap{text-shadow:0 1px 12px rgba(0,0,0,.6)}
#environmental .wrap{text-shadow:0 1px 10px rgba(0,0,0,.6)}
.closing p{max-width:34em;margin:0 auto 1em}
.closing .ctas{justify-content:center}
.closing .side-links{margin-top:30px;font-size:.95rem}
/* short browser windows: keep the Environmental text below the logo and menu bubble */
@media (min-width:1025px) and (max-height:700px){ .closing{padding-top:110px} }
.closing .side-links a{text-decoration:none;border-bottom:1px solid rgba(255,255,255,.6);margin:0 12px}

/* ---------- Logo marks (subtle): the wordmark signs off "Since 1998"; the emblem sits faintly in open space ---------- */
.sig{display:block;height:54px;width:auto;margin-top:clamp(28px,6vh,56px);opacity:.32}
#testimonial::after,#homes::after,#process::after,#about::after{content:"";position:absolute;z-index:0;pointer-events:none;aspect-ratio:1;background:center/contain no-repeat}
#testimonial > .wrap,#homes > .wrap,#process > .wrap,#about > .wrap{position:relative;z-index:1}
/* About ("Building Excellence Since 1998"): top-centre emblem instead of the small wordmark under the text (owner 2026-11-17) */
#about::after{background-image:url('/images/logo-emblem-dark.png');width:min(480px,34vw);left:50%;top:calc(var(--headH, 97px) - 30px);translate:-50% 0;opacity:.6}
/* Watermarks at the TOP CENTRE of their section, just below the logo/menu area (Tarik, 2026-11-17) */
#testimonial::after,#homes::after,#process::after{width:min(480px,34vw);left:50%;top:calc(var(--headH, 97px) - 30px);translate:-50% 0}
#testimonial::after{background-image:url('/images/logo-emblem-dark.png');opacity:.6}
#homes::after{background-image:url('/images/logo-emblem-light.png');opacity:.07}
#homes::after{left:auto;right:2%;translate:none}   /* Recent work: top RIGHT, in the open space above the right-hand photo (owner 2026-11-17) */
/* Every other home section gets one too (owner 2026-11-17), placed in open space: */
#what-we-build::after,#venture::after,#why-partner::after,#environmental::after,#start::after{content:"";position:absolute;pointer-events:none;aspect-ratio:1;background:center/contain no-repeat;width:min(480px,34vw);top:calc(var(--headH, 97px) - 30px)}
#what-we-build > .wrap,#venture > .wrap,#why-partner > .wrap{position:relative;z-index:1}
#what-we-build::after,#venture::after,#why-partner::after{z-index:0;background-image:url('/images/logo-emblem-dark.png');opacity:.55}
#what-we-build::after,#venture::after{right:2%}         /* top right: beside the centred heading / in the open space right of the text */
#why-partner::after{left:50%;translate:-50% 0}          /* top centre, between the text and the photo */
#environmental::after,#start::after{z-index:1;left:50%;translate:-50% 0;background-image:url('/images/logo-emblem-light.png');opacity:.12}   /* photo sections: cream emblem over the darkened photo, under the text */
#process::after{background-image:url('/images/logo-emblem-dark.png');opacity:.55}

/* ---------- Movement: things slide gently into place the first time they come into view ---------- */
.motion [data-reveal]{opacity:0;transition:opacity 1s ease,transform 1.1s cubic-bezier(.2,.65,.25,1);transition-delay:var(--d,0s)}
.motion [data-reveal="up"]{transform:translateY(46px)}
.motion [data-reveal="left"]{transform:translateX(-60px)}
.motion [data-reveal="right"]{transform:translateX(60px)}
.motion [data-reveal="zoom"]{transform:scale(.94)}
.motion [data-reveal="fade"]{transform:none;transition:opacity 1.6s ease var(--d,0s)}   /* a slow, pure fade */
.motion [data-reveal].in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .motion [data-reveal]{opacity:1;transform:none;transition:none}
  .hero .slide > img,.hero .slide > .ph,.frame > img,.frame > .ph,.closing .bg img{transition:none;scale:1}
  .hero .slide{transition:none}
}

/* ---------- Shorter laptop screens (Olaf's laptop is about 1536 x 730) ---------- */
@media (min-width:1025px) and (max-height:800px){
  .home2 h2{font-size:2.6rem}
  .steps li{padding:9px 0}
  .steps ol{margin-top:16px}
  .story blockquote{font-size:1.45rem}
  #about .intro p,#venture p,#process .lead-p{font-size:1rem;line-height:1.55}
  #about .sig{margin-top:18px;height:42px}
  #about .intro h2,#venture h2,#why-partner h2{margin-bottom:.45em}
  #testimonial blockquote{font-size:1.2rem}
  #why-partner .checks{font-size:.95rem}
  #why-partner .checks li{margin-bottom:.25em}
  .home2 .screen-end footer{padding-bottom:16px}
  .home2 .screen-end footer .logo{margin-bottom:14px}
  .home2 .screen-end .foot-actions{margin:12px 0}
  .home2 .screen-end footer hr{margin:14px 0 10px}
}

/* ---------- Tablet and phone ---------- */
@media (max-width:1024px){
  .intro,.story,.story.flip,.steps,.work,#process .process{grid-template-columns:1fr;gap:40px}
  #process .process > div:first-child{height:auto;min-height:0}
  #process .process .frame{flex:none;aspect-ratio:16/10}
  .work-stack{height:auto;min-height:0;display:grid;gap:16px}
  .work-stack .frame{position:relative;width:86%;height:auto;aspect-ratio:3/2;top:auto;left:auto;right:auto}
  .work-stack .s2{justify-self:end}
  .work-stack .s3{justify-self:center}
  .duo{height:auto;aspect-ratio:5/4;min-height:0}
  .build3 .frame,.story .frame{height:auto;aspect-ratio:4/3;min-height:0}
  .closing{min-height:80vh}
  .dots{right:20px}
}
@media (max-width:700px){
  .build3{grid-template-columns:1fr}
  .hero .slide > .ph{padding:110px 20px 0;justify-content:center;text-align:center}
  .hero .slide > .ph svg{margin:0 auto 10px}
}

/* Multi-Family aerial photo (2026-11-18): starts close on the front building, then very slowly zooms out until all three buildings are in view.
   Starts when the photo first comes into view (.zoom is added by motion.js). The frame is a "container" so the photo can be sized from the frame's own width/height
   (cqw / cqh), which keeps the same start and end look on every screen size. If the frame is taller than the finished picture, a blurred copy of the same photo fills the gap. */
.frame.pan-reveal{container-type:size;background:#cfc9bf}
.frame.pan-reveal::before{content:"";position:absolute;inset:-24px;background:url('/images/mk-multi-family-aerial.jpg') center/cover no-repeat;filter:blur(16px) brightness(.92)}
.frame.pan-reveal > img{
  --w1:min(115cqw,max(100cqw,211.4cqh));      /* size of the FINISHED view: all three buildings (motion.js zooms in from a close-up start) */
  width:var(--w1);height:auto;aspect-ratio:1800/988;max-width:none;object-fit:fill;
  left:calc((100cqw - var(--w1)) * .8);
  top:calc((100cqh - var(--w1) / 1.822) / 2);
  translate:none;scale:1;transition:none;transform-origin:0 0}
.frame.pan-reveal.zoom > img{scale:1}
/* Photos in frames may be taller than the frame (they drift and zoom inside it); an older rule in site.css capped their height and left a grey strip under the photo (2026-11-18) */
#venture .frame > img,#why-partner .frame > img{max-height:none}

/* Home photo 7 (winter home): the roof was cut off by the drift and zoom, which use a picture 16% taller than its frame.
   This photo is anchored to the top of its frame instead, and its slow zoom grows downwards from the top edge (2026-11-18). */
.frame.hold-top > img{top:0;height:100%;object-position:50% 0;transform-origin:50% 0}
/* Home photo 7 shows the spruce-street house: crop in on the house (less tree and sky). object-view-box picks the part of the picture that is shown (2026-11-30) */
.frame.hold-top > img[src*="mk-exterior-spruce-street"]{object-view-box:inset(30% 2% 4% 40%);object-fit:cover;object-position:50% 50%}
/* Hero slide with the spruce-street house: the house sits low in the photo, so keep the crop low (2026-11-18) */
.hero .slide > img[src*="mk-exterior-spruce-street"]{object-position:50% 82%}
/* Hero slide with Drone photo 1: keep the brick townhomes in view (2026-11-18) */
.hero .slide > img[src*="mk-venture-hero"]{object-position:50% 58%}
/* Home photo 13 (Venture): a silent looping drone clip plays over the photo once it is ready; the photo stays underneath
   as the first picture and as the fallback (slow connections, "reduce motion", data saver). Loaded and paused by motion.js. */
.frame.has-video > img{top:0;height:100%}
.frame.has-video > video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1s ease;pointer-events:none}
.frame.has-video > video.ready{opacity:1}
@media (prefers-reduced-motion:reduce){ .frame.has-video > video{display:none} }
/* Phones: the tiny slideshow dots sat on top of the small print under the hero button and are too small to tap; the photos still change by themselves */
@media (max-width:700px){ .hero .dots{display:none} }
