/* Scoped homepage, portfolio and booking components. */

.portfolio-project .img img{width:100%;height:auto;object-fit:contain;display:block}
.portfolio-project .body{display:flex;flex-direction:column;flex:1;background:#fff;color:#171717;padding:28px}
.portfolio-project h3{color:#171717;font-family:var(--body);font-size:1.4rem;font-weight:650;letter-spacing:-.025em;line-height:1.2;text-transform:none}
.portfolio-project .project-description{font-family:var(--body);font-size:1rem;line-height:1.65;letter-spacing:0;text-transform:none;color:#343434;margin:16px 0 22px}
.portfolio-project .project-links{display:flex;flex-wrap:wrap;gap:12px 22px;margin-top:auto}
.portfolio-project .project-links a{color:#222;font-size:1rem;font-weight:550;text-decoration:underline;text-underline-offset:5px;padding:6px 0}
.portfolio-project a:focus-visible,.filter-btn:focus-visible,.text-link:focus-visible{outline:3px solid var(--pink);outline-offset:5px}
.project-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.portfolio-project.is-hidden{display:none}
:is(.home-edited,.portfolio-edited) .reveal{opacity:1;transform:none;transition:none}





.home-edited h2{font-size:clamp(2rem,4.1vw,3.7rem);text-transform:none;letter-spacing:-.025em;line-height:1.04}
.home-edited .text-link{color:inherit;font-family:var(--body);font-size:1rem;text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:1px;line-height:1.5;display:inline-block;padding:10px 0}
.home-edited .home-intro{min-height:0;padding:160px 0 72px;align-items:initial}



.home-intro-bottom{display:flex;align-items:end;justify-content:space-between;gap:36px;margin-top:34px}
.home-intro-bottom p{max-width:47ch;font-size:1.12rem;line-height:1.7;color:var(--muted)}
.home-intro-bottom .btn-row{align-items:center;gap:22px;flex-shrink:0}
.home-edited section{padding:76px 0}
.home-edited #work{background:var(--bg)}
.home-work h2{margin-bottom:32px}
.home-edited .work-card{border:0}
.home-edited .project-feature{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)}
.home-edited .project-feature .img{background:#101010;align-self:center}
.home-edited .project-feature .body{justify-content:center;padding:clamp(26px,4vw,56px)}
.home-edited .project-feature h3{font-size:clamp(1.8rem,3vw,2.6rem)}
.home-edited .project-feature .project-links{margin-top:8px}
.home-edited .project-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;margin-top:40px}
.home-apps{border-top:1px solid var(--line)}
.app-story{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:70px;align-items:start;margin-bottom:36px}
.app-story h3{font-family:var(--body);font-size:1.4rem;letter-spacing:-.02em;text-transform:none;line-height:1.2;margin-bottom:18px}
.app-story p{max-width:54ch;color:var(--muted);line-height:1.75;margin-bottom:14px;font-size:1.06rem}
.app-screenshot{display:block;border:1px solid var(--line-2);background:#101010}
.app-screenshot img{display:block;width:100%;height:auto}
.work-more{margin-top:36px;text-align:right}
.home-services{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.service-list{margin-top:38px}
.service-list>div{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(0,1.4fr) minmax(160px,.6fr);gap:32px;padding:26px 0;border-top:1px solid var(--line);align-items:start}
.service-list h3{font-family:var(--body);text-transform:none;font-size:1.3rem;line-height:1.4;letter-spacing:-.02em}
.service-list p{color:var(--muted);line-height:1.7;max-width:55ch}
.service-list .text-link{padding-top:0;justify-self:end}
.about-person{display:grid;grid-template-columns:minmax(200px,320px) minmax(0,650px);gap:clamp(32px,6vw,90px);align-items:center}
.about-person>img{display:block;width:100%;height:auto}
.about-person h2{margin-bottom:24px}
.about-person p{color:var(--muted);font-size:1.06rem;line-height:1.8;margin-bottom:18px}
.home-quote{margin:64px 0 0;padding:38px 0 0;border-top:1px solid var(--line);max-width:940px}
.home-quote blockquote{font-family:var(--body);font-size:clamp(1.3rem,2.3vw,2rem);line-height:1.5;letter-spacing:-.025em}
.home-quote figcaption{margin-top:20px;font-size:.94rem;color:#b0ada7}
.home-contact{border-top:1px solid var(--line)}
.home-contact p{font-size:1.1rem;line-height:1.7;color:var(--muted);margin:24px 0 30px}


.portfolio-edited .client-intro{padding:0 0 24px}
.portfolio-edited .client-filter{margin:0;padding:20px 0 8px;border-top:0;gap:12px 26px}
.portfolio-edited .filter-btn{font-family:var(--body);font-size:1rem;text-transform:none;letter-spacing:0;margin:0;min-height:44px;padding:6px 0;color:var(--muted);transform:none}
.portfolio-edited .filter-btn.active{color:var(--cat);text-decoration:underline;text-underline-offset:8px}
.portfolio-edited .work-count{color:#aaa;font-size:.9rem;margin-top:12px}
.portfolio-edited .case-study-section{background-image:none;padding-top:16px}
.portfolio-edited .case-study-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:40px 32px}
.portfolio-edited .case-study-grid .work-card{border:0;backdrop-filter:none}
.portfolio-edited .case-study-grid .work-card>.body{background:#fff;color:#171717;padding:28px}
.portfolio-edited .case-study-grid .work-card h3{font-family:var(--body);font-size:1.4rem;font-weight:650;line-height:1.25;letter-spacing:-.025em;text-transform:none;color:#171717}

@media(min-width:901px) and (max-width:1100px){.foot-grid{grid-template-columns:1fr 1fr}.social-grid{justify-content:flex-start}}
@media(max-width:1100px){.home-intro-bottom{align-items:start;flex-direction:column}.service-list>div{grid-template-columns:minmax(180px,.8fr) minmax(0,1.4fr)}.service-list .text-link{grid-column:2;justify-self:start}.app-story{gap:36px}}
@media(max-width:760px){
 .home-edited .home-intro{padding:120px 0 46px}
 .home-intro-bottom{gap:22px;margin-top:24px}.home-intro-bottom p{font-size:1rem}.home-intro-bottom .btn-row{gap:12px;flex-wrap:wrap;flex-shrink:1}
 .home-edited section{padding:48px 0}.home-edited .project-feature,.home-edited .project-pair,.app-story,.about-person{grid-template-columns:1fr}
 .home-edited .project-pair{gap:28px;margin-top:28px}.home-edited .project-feature .body,.portfolio-project .body{padding:24px}
 .app-story{gap:24px}.app-story h2 br{display:none}.about-person{gap:28px}.about-person>img{max-width:280px}
 .service-list>div{grid-template-columns:1fr;gap:12px;padding:24px 0}.service-list .text-link{grid-column:1}.service-list h3{font-size:1.2rem}
 .home-quote{margin-top:36px;padding-top:28px}.work-more{text-align:left}
 .portfolio-edited .case-study-grid{grid-template-columns:1fr;gap:28px}
 .portfolio-edited .client-filter{gap:8px 22px}.portfolio-edited .case-study-grid .work-card>.body{padding:24px}
}
@media(prefers-reduced-motion:reduce){.home-edited *,.portfolio-edited *{scroll-behavior:auto;animation:none;transition:none}}

/* Booking-led homepage: distinct sections with light surfaces for decisions and reassurance. */
.home-edited section{padding:96px 0}








.home-edited .home-intro-bottom .btn-row{flex-direction:column;align-items:flex-start;gap:10px}
.home-edited .home-intro-bottom p{max-width:50ch}
.section-next{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-top:48px;padding-top:36px;border-top:1px solid var(--line-2)}
.section-next>p{font-size:1.2rem;color:#efede8}
.section-next .btn-row{align-items:center;gap:24px}
.process-list{list-style:none;counter-reset:steps;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:44px;margin:42px 0 0;padding:0}
.process-list li{counter-increment:steps;border-top:1px solid var(--line-2);padding-top:24px}
.process-list h3{font-family:var(--body);font-size:1.3rem;line-height:1.35;letter-spacing:-.02em;text-transform:none;margin:0 0 18px}
.process-list h3::before{content:counter(steps) '. ';color:var(--cat)}
.process-list p{font-size:1rem;line-height:1.75;color:var(--muted)}
.home-edited .home-contact p{max-width:55ch}
.home-edited .home-contact .booking-expectation{font-size:.92rem;margin:18px 0 0;color:#57564f}
.booking-dialog{width:min(900px,calc(100vw - 40px));height:min(880px,92svh);max-width:none;max-height:92svh;padding:0;margin:auto;border:1px solid #c6c5bf;background:#fff;color:var(--ink);overflow:hidden}
.booking-dialog[open]{display:flex;flex-direction:column}
.booking-dialog::backdrop{background:rgba(0,0,0,.76)}
.booking-dialog-head{display:flex;align-items:start;justify-content:space-between;gap:20px;padding:24px 28px 18px;border-bottom:1px solid #ddd;flex-shrink:0}
.home-edited .booking-dialog h2{font-family:var(--body);font-size:1.45rem;line-height:1.3;text-transform:none;letter-spacing:-.02em;color:var(--ink);margin:0}
.booking-dialog-head p{font-family:var(--body);font-size:.95rem;line-height:1.5;color:#555;margin:8px 0 0}
.booking-close{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;background:var(--paper);border:1px solid #ccc;color:var(--ink);font-size:30px;cursor:pointer}
.booking-frame{display:block;width:100%;flex:1;min-height:0;border:0;background:#fff}
.booking-fallback{padding:12px 24px;margin:0;font-family:var(--body);font-size:.84rem;line-height:1.5;color:#555;border-top:1px solid #ddd;flex-shrink:0}
.booking-fallback a{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.booking-close:focus-visible{outline:3px solid var(--pink);outline-offset:2px}
html.booking-embed body{background:#fff;color:var(--ink);min-height:0}
html.booking-embed body::before,html.booking-embed nav,html.booking-embed footer,html.booking-embed body>header,html.booking-embed body>section:not(#apply){display:none!important}
html.booking-embed #apply{padding:22px 0!important;background:#fff!important}
html.booking-embed #apply .wrap{width:100%;max-width:100%;padding:0 24px!important;margin:0}
html.booking-embed #apply .split{display:block!important}
html.booking-embed #apply .split>.sec-head{display:none}
html.booking-embed .reveal{opacity:1!important;transform:none!important}






html.booking-embed body>.wrap{width:100%;max-width:none;padding:0!important;margin:0}
html.booking-embed .page-actions,html.booking-embed .grid>.panel{display:none!important}
html.booking-embed .grid{display:block!important}
html.booking-embed .calendar-shell{border:0;min-height:640px;width:100%;padding:0!important}
html.booking-embed .calendly-inline-widget{min-width:0;height:720px}
html.booking-embed .calendar-direct{padding:20px;background:#fff;color:var(--ink)}
html.booking-embed .calendar-direct p,html.booking-embed .calendar-direct h2{color:#333}
@media(min-width:761px) and (max-width:1100px){.portfolio-edited .case-study-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){


 .section-next{align-items:flex-start;flex-direction:column}.process-list{gap:24px}
}
@media(max-width:760px){
 .home-edited section{padding:60px 0}
 .process-list{grid-template-columns:1fr;gap:26px;margin-top:30px}.section-next{margin-top:32px;padding-top:28px}
 .section-next .btn-row{align-items:flex-start;flex-direction:column;gap:12px}
 .booking-dialog{width:calc(100vw - 16px);height:96svh;max-height:96svh}.booking-dialog-head{padding:16px;gap:12px}
 .home-edited .booking-dialog h2{font-size:1.15rem}.booking-dialog-head p{font-size:.88rem}
 .booking-fallback{padding:10px 16px}html.booking-embed #apply .wrap{padding:0 16px!important}
 html.booking-embed .field-grid{grid-template-columns:1fr!important}
}

/* Approved light section treatment from site-standard.css. */
.home-edited{--paper:#F4F3EF;--ink:#11110F}
.home-edited .section-light{background:var(--paper);color:var(--ink)}
.home-edited .section-light p{color:#2f2d28}
.home-edited .section-light h2,.home-edited .section-light h3,.home-edited .section-light a:not(.btn),.home-edited .section-light figcaption{color:var(--ink)}
.home-edited .section-light .service-list>div,.home-edited .section-light .home-quote{border-color:currentColor}

/* Use the existing site-standard font families on the homepage. */
.home-edited{--display:Inter,system-ui,sans-serif;--body:Inter,system-ui,sans-serif;--mono:Inter,system-ui,sans-serif}
.home-edited .portfolio-project h3{font-family:var(--display);font-weight:700;text-transform:uppercase;letter-spacing:.012em}
@media(max-width:680px){.home-edited .hero-person{display:block;width:min(320px,85vw);margin:20px auto -36px;transform:none;justify-self:center}.home-edited .hero-grid{gap:12px}}
/* Keep the restored portrait visible without an entrance-animation dependency. */
.home-edited .hero-person{position:relative;z-index:1;animation:none;opacity:1;filter:none}
/* Original work cards, arranged as a manually controlled horizontal slider. */
.home-edited .project-slider{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 44px)/3);gap:22px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;padding-bottom:16px}
.home-edited .project-slider .work-card{scroll-snap-align:start;border:1px solid var(--line);min-width:0}
.home-edited .project-slider .work-card:hover{border-color:var(--cat)}
.home-edited .project-slider img{width:100%;height:auto;object-fit:contain}
.slider-controls{display:flex;justify-content:space-between;gap:22px;flex-wrap:wrap;margin-top:28px}
.slider-controls button{cursor:pointer}.slider-controls button:disabled{opacity:.35;cursor:default}
@media(max-width:980px){.home-edited .project-slider{grid-auto-columns:calc((100% - 22px)/2)}}
@media(max-width:600px){.home-edited .project-slider{grid-auto-columns:88%}.slider-controls .btn{padding:14px 18px}}
