/* Loaded only on the five-section homepage. */
.page-home,.page-about,.page-projects{--paper:#faf6ef;--night:#191714;--pad:clamp(24px,5vw,90px);background:var(--paper)}
.page-home main{font:clamp(18px,1.55vw,27px)/1.48 var(--sans)}
.page-home main h1,.page-home main h2,.page-home main h3{font-family:var(--serif);font-weight:400;line-height:1.02;letter-spacing:-.035em}
.hp-header.site-header,.hp-footer,.hp-process,.hp-connect{background:var(--night);color:var(--paper)}
.hp-header.site-header{padding:16px var(--pad);min-height:70px}
.hp-word,.hp-name{font:500 clamp(23px,2vw,34px)/1.1 var(--sans);text-transform:uppercase;letter-spacing:.1em}
.hp-header nav a,.hp-footer nav a,.hp-workfoot>a,.hp-btn,.hp-label{font:600 clamp(11px,.88vw,15px)/1.45 var(--sans);letter-spacing:.14em;text-transform:uppercase}
.hp-header nav a{color:inherit}.hp-label{max-width:none}
.hp-hero{position:relative;isolation:isolate;display:flex;align-items:center;min-height:clamp(540px,52vw,840px);padding:54px var(--pad);color:white;background:var(--night)}
.hp-hero img,.hp-hero:after{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.hp-hero:after{content:'';background:linear-gradient(90deg,rgba(14,12,10,.9),rgba(17,14,11,.60) 34%,transparent 76%);z-index:-1}
.hp-hero .hp-label:after,.hp-connect .hp-label:after{content:'';display:block;margin:24px 0;width:104px;border-top:1px solid}
.hp-hero h1{font-size:clamp(48px,5.36vw,92.8px);margin:0 0 20px}.hp-hero p:not(.hp-label){max-width:36ch}
.hp-btn{display:inline-block;margin-top:30px;padding:16px 25px;background:var(--night);color:var(--paper);border:1px solid var(--night)}.hp-btn.light{background:var(--paper);color:var(--night);border-color:var(--paper)}.hp-btn.outline{border-color:currentColor}.hp-btn:hover,.hp-workfoot>a:hover,.hp-footer a:hover{text-decoration:underline;text-underline-offset:4px}
.hp-about{display:grid;grid-template-columns:44fr 56fr;align-items:center;gap:3.5%;margin:clamp(25px,4vw,64px) 2%;padding:1.5%}
.hp-about>img{width:100%;height:100%;object-fit:cover;object-position:50% 40%}.hp-about>div{padding:12px 2% 12px 0}.hp-name,.hp-rule{display:flex;align-items:center;gap:22px}.hp-name:after,.hp-rule:after{content:'';flex:1;border-top:1px solid}.hp-name{font-size:clamp(23px,2.4vw,43px);letter-spacing:.04em}.hp-about .hp-label{margin:10px 0 26px}.hp-about h2{font-size:clamp(34px,3.8vw,68px)}.hp-about h2~p,.hp-stages p{margin-top:20px}
.hp-process,.hp-work,.hp-connect{padding:clamp(50px,5.8vw,100px) var(--pad)}
.hp-stages{display:grid;grid-template-columns:1.6fr repeat(3,1fr);gap:2.4%;margin:38px 0 50px}.hp-stages>div+div{border-left:1px solid;padding-left:12%}.hp-stages h2{font-size:clamp(34px,3.45vw,66px)}.hp-stages h3{font-size:clamp(29px,2.8vw,50px);margin:8px 0 20px}.hp-services{border-top:1px solid;padding-top:22px;line-height:2}
.hp-work{padding-inline:3.5%}.hp-work .hp-rule:after{flex:0 1 90px}.hp-workintro,.hp-connect{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:6%}.hp-workintro{margin:25px 0 45px}.hp-workintro h2,.hp-connect h2{font-size:clamp(49px,5.4vw,94px)}.hp-workintro p{border-left:1px solid;padding-left:7%}
.hp-track{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 20px)/3);gap:10px;overflow-x:auto;scroll-snap-type:x mandatory}
.hp-card{position:relative;isolation:isolate;scroll-snap-align:start;display:flex;align-items:end;aspect-ratio:1.15;color:white;background:var(--night)}.hp-card img,.hp-card:before{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.hp-card:before{content:'';background:linear-gradient(transparent 32%,rgba(17,14,11,.92));z-index:-1}.hp-card>div{padding:6%;width:100%}.hp-card h3{font-size:clamp(27px,2.45vw,46px);text-transform:capitalize;margin:0 0 .3em}.hp-card div>span:last-child{float:right}.hp-workfoot,.hp-footer,.hp-footer nav{display:flex;align-items:center;gap:24px}.hp-workfoot{justify-content:space-between;margin-top:20px}.hp-workfoot>a{padding:12px 0;border-bottom:1px solid}.hp-controls button{background:none;border:0;color:inherit;padding:0;width:30px;height:44px}.hp-controls button:after{content:'';display:inline-block;width:9px;height:9px;border:1px solid;border-radius:50%}.hp-controls [aria-pressed=true]:after{background:currentColor}
.hp-footer{padding:30px var(--pad);border-top:1px solid #817d75;flex-wrap:wrap}.hp-footer nav{margin-left:auto}.hp-footer>a:last-child{font-size:12px}
@media(max-width:800px){.hp-header.site-header{min-height:64px}.hp-header .menu-toggle{color:inherit}.hp-about{margin:22px 15px;padding:15px;grid-template-columns:1fr;gap:20px}.hp-about>img{aspect-ratio:1.25;height:auto}.hp-about>div{padding:0 4px 12px}.hp-stages{grid-template-columns:1fr 1fr;gap:28px}.hp-stages>div+div{padding-left:16px}.hp-workintro,.hp-connect{grid-template-columns:1fr;gap:22px}.hp-workintro p{padding:0;border:0}.hp-track{grid-auto-columns:84%}.hp-work{padding-inline:var(--pad)}.hp-footer nav{margin-left:0;flex-wrap:wrap}.hp-footer{gap:18px}.hp-hero{min-height:560px}.hp-hero:after{background:linear-gradient(90deg,#161410dc,#16141060)}}
@media(max-width:520px){.hp-stages{grid-template-columns:1fr}.hp-stages>div+div{padding:18px 0 0;border:0;border-top:1px solid #716e68}.hp-stages p{margin-top:10px}.hp-stages h3{margin:5px 0}.hp-footer nav{width:100%;gap:16px}.hp-workfoot{gap:8px;flex-wrap:wrap}.hp-workfoot>a{margin-left:auto}.hp-connect h2{font-size:clamp(32px,9.65vw,50px)}}

/* Only homepage display text uses these locally hosted Latin faces. */
@font-face {
  font-family: "Bodoni Moda";
  src: url("/fonts/bodoni-moda/latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("/fonts/bodoni-moda/latin-400-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
.page-home main :is(h1,h2,h3) { font-family: "Bodoni Moda", var(--serif); font-synthesis: none; }
.page-home main em, .hp-stages i, .hp-card i, .hp-footer i {
  font-family: "Bodoni Moda", var(--serif);
  font-style: italic;
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: -.012em;
}
.hp-header .hp-word, .hp-footer .hp-word {
  font-size: clamp(16px, 1.36vw, 23px);
  font-weight: 500;
  letter-spacing: .24em;
}
.hp-footer .hp-word { font-size: clamp(15px, 1.24vw, 20.5px); }
.hp-hero p:not(.hp-label) { max-width: 43ch; text-wrap: balance; }
.hp-services { text-align: center; text-wrap: balance; }
@media (min-width: 801px) {
  .hp-connect h2 { font-size: clamp(36px, 4.65vw, 84px); }
}
.hp-footer a:focus-visible,
.page-home :is(.hp-header,.hp-connect,.hp-hero) a:focus-visible,
.hp-header button:focus-visible { outline-color: currentColor; }

.hp-card i { font-size: clamp(15px, 1.2vw, 18px); }

/* Reading sizes for the two editorial pages. */
:is(.page-home,.page-about) main p:not(.hp-label,.hp-name),
.work-opening p:not(.hp-label) {
  font-size: clamp(16px, 1rem + .15vw, 18px);
  line-height: 1.55;
}
.page-home .hp-stages > div + div p:not(.hp-label),
.page-about .about-focus p:not(.hp-label) {
  font-size: clamp(15px, .925rem + .1vw, 16px);
}

/* Photography-led homepage project labels. */
.hp-card>div{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
.page-home .hp-card h3{font:400 clamp(15px,1.25vw,20px)/1.25 var(--sans);text-transform:uppercase;letter-spacing:.025em;margin:0;min-width:0}
.hp-card div>span:last-child{float:none;flex-shrink:0}

/* Keep the conversation heading and its single action balanced. */
.hp-connect{grid-template-columns:max-content auto;justify-content:center;column-gap:clamp(32px,5vw,72px);row-gap:28px}
.hp-connect .hp-btn{margin-top:0}
@media(max-width:800px){.hp-connect{grid-template-columns:1fr;text-align:center}.hp-connect>div:last-child{justify-self:center}}

/* Keep the hero headline to two lines on phones; preserve desktop sizing. */
@media(max-width:700px){.hp-hero h1{font-size:clamp(24px,9.5vw,48px)}.hp-hero h1 em{white-space:nowrap}}

/* Center the first two homepage actions on phones. */
@media(max-width:700px){.hp-hero .hp-btn,.hp-about .hp-btn{display:table;margin-left:auto;margin-right:auto}}

/* Phone-only text alignment; tablet and desktop layouts stay intact. */
@media(max-width:600px){
 .hp-hero>div{width:100%;text-align:center}
 .hp-hero p:not(.hp-label){margin-left:auto;margin-right:auto}
 .hp-about>div,.hp-workintro{text-align:center}
 .hp-about .hp-name{gap:12px;white-space:nowrap}
 .hp-about .hp-name:before{content:'';flex:1;border-top:1px solid}
 .hp-about .hp-name:after{flex:1}
 .hp-work .hp-rule{justify-content:center;gap:16px}
 .hp-work .hp-rule:before{content:'';flex:1;border-top:1px solid}
 .hp-work .hp-rule:after{flex:1}
 .hp-workintro h2{font-size:clamp(28px,8.6vw,50px);white-space:nowrap}
}

/* Give the portrait and name more breathing room on phones. */
@media(max-width:600px){.hp-about{row-gap:32px}}

/* Restore the phone hero height and bring the kitchen closer. */
@media(max-width:600px){.hp-hero{min-height:560px;overflow:hidden}.hp-hero img{transform:none;transform-origin:center;object-position:72% 50%}}

/* Phone preview: let the photograph lead, with copy anchored below its focal area. */
@media(max-width:600px){
 .hp-hero{align-items:flex-end;padding-top:180px;padding-bottom:32px;min-height:600px}
 .hp-hero:after{background:linear-gradient(to bottom,rgba(0,0,0,.02) 0%,rgba(0,0,0,.04) 35%,rgba(0,0,0,.46) 65%,rgba(0,0,0,.8) 100%)}
 .hp-hero h1{font-size:clamp(24px,9.5vw,48px);margin-bottom:14px}
 .hp-hero .hp-btn{margin-top:22px}
}

/* Raise the phone photograph without changing its scale or horizontal crop. */
@media(max-width:600px){
 .hp-hero img{transform:translateY(-72px)}
 .hp-hero:after{background:linear-gradient(to bottom,rgba(25,23,20,.02) 0%,rgba(25,23,20,.04) 35%,rgba(25,23,20,.46) 65%,#191714 92%,#191714 100%)}
}

/* The extended mobile floor fills the frame beneath the raised photograph. */
.hp-hero-photo{display:contents}
@media(max-width:600px){
 .hp-hero img{height:133.333333%;bottom:auto}
 .hp-hero:after{background:linear-gradient(to bottom,rgba(0,0,0,.02) 0%,rgba(0,0,0,.04) 35%,rgba(0,0,0,.46) 65%,rgba(0,0,0,.72) 100%)}
}

/* Lift the phone composition while retaining continuous floor below the action. */
@media(max-width:600px){
 .hp-hero{padding-bottom:84px}
 .hp-hero img{transform:translateY(-112px)}
 .hp-hero:after{background:linear-gradient(to bottom,rgba(0,0,0,.02) 0%,rgba(0,0,0,.04) 28%,rgba(0,0,0,.46) 58%,rgba(0,0,0,.72) 100%)}
}

/* Unpublished refinement of the live phone hero: less floor, clear upper image. */
@media(max-width:600px){
 .hp-hero{min-height:560px;padding-bottom:72px}
 .hp-hero img{height:800px}
 .hp-hero:after{background:linear-gradient(to bottom,transparent 0%,transparent 38%,rgba(0,0,0,.12) 48%,rgba(0,0,0,.48) 65%,rgba(0,0,0,.66) 100%)}
}

/* Phone preview: center the complete copy group within the full-height room image. */
@media(max-width:600px){
 .hp-hero{min-height:600px;align-items:center;padding:54px 24px}
 .hp-hero img{height:100%;width:100%;transform:none;object-fit:cover;object-position:72% 50%}
 .hp-hero:after{background:linear-gradient(to bottom,transparent 0%,transparent 24%,rgba(0,0,0,.38) 32%,rgba(0,0,0,.55) 50%,rgba(0,0,0,.62) 100%)}
}

/* Preview: place the countertop above the centered headline. */
@media(max-width:600px){.hp-hero img{height:133.333333%;transform:translateY(-185px)}}

/* Preview: lower the copy to the middle of the cabinet fronts. */
@media(max-width:600px){.hp-hero>div{transform:translateY(64px)}}

/* Preview: move the image and copy down together. */
@media(max-width:600px){.hp-hero img{transform:translateY(-153px)}.hp-hero>div{transform:translateY(96px)}}

/* Unpublished phone crop matched to the supplied Photoshop draft. */
@media(max-width:600px){
 .hp-hero img{width:220%;max-width:none;height:auto;left:-60%;right:auto;top:0;bottom:auto;transform:translateY(-42%);object-fit:contain;object-position:center}
 .hp-hero:after{background:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.04) 34%,rgba(0,0,0,.24) 46%,rgba(0,0,0,.5) 72%,rgba(0,0,0,.8) 100%)}
}

/* Unpublished: source photograph cropped to the supplied reference, with live text. */
@media(max-width:600px){
 .hp-hero{display:flex;min-height:0;height:auto;aspect-ratio:1108 / 1707;padding:0 24px;align-items:center}
 .hp-hero img{position:absolute;width:123.84%;max-width:none;height:auto;left:-12.98%;right:auto;top:-5.5%;bottom:auto;transform:none;object-fit:contain}
 .hp-hero>div{transform:translateY(32.82vw)}
 .hp-hero:after{display:block;background:linear-gradient(to bottom,transparent 0%,transparent 47%,rgba(0,0,0,.14) 59%,rgba(0,0,0,.35) 79%,rgba(0,0,0,.8) 100%)}
}
