/* Homepage chapters. Each scene keeps its content in the document flow. */
body.cinematic-home { --chapter-ink:#070b12; --chapter-silver:#c4cddd; }
.cinematic-home main > section:not(.cast-hero) { position:relative; }
.cinematic-home #work { padding:clamp(90px,11vw,160px) 0 140px; background:#f7f8fb; isolation:isolate; overflow:clip; }
.cinematic-home #work::before { content:''; position:absolute; width:70vw; height:70vw; border:1px solid #dbe3f0; border-radius:50%; left:45%; top:15%; z-index:-1; transform:translateY(var(--work-orbit,0px)); }
.cinematic-home #work .section-heading { align-items:flex-end; margin-bottom:80px; }
.cinematic-home #work h2 { max-width:830px; font-size:clamp(42px,5.5vw,78px); line-height:1.04; }
.cinematic-home #work .muted { max-width:570px; font-size:16px; margin-top:28px; }
.cinematic-home #work .text-link { flex-shrink:0; }
.cinematic-home #work .project-logos { gap:16px; border:0; perspective:1200px; }
.cinematic-home #work .project-logo { position:relative; border:1px solid #dce3ed; border-radius:4px; background:#fff; padding:36px 24px 30px; min-height:275px; display:flex; flex-direction:column; box-shadow:0 18px 40px #11275008; transform:translate3d(var(--logo-x,0px),var(--logo-y,0px),0) rotateX(var(--logo-tilt,0deg)) rotateZ(var(--logo-roll,0deg)); opacity:1; transition:box-shadow .35s,border-color .35s,background .35s; }
.cinematic-home #work .project-logo::before { content:attr(data-chapter-index); color:#748198; font-size:10px; font-variant-numeric:tabular-nums; letter-spacing:.14em; position:absolute; top:20px; left:24px; }
.cinematic-home #work .project-logo-art { flex:1; height:140px; margin:8px 0 30px; display:flex; align-items:center; justify-content:center; }
.cinematic-home #work .project-logo-art img { max-height:90px; max-width:95%; }
.cinematic-home #work .project-logo > span { justify-content:space-between; width:100%; font-size:14px; }
.cinematic-home #work .project-logo > small { margin-top:8px; color:#5b687a; }
.cinematic-home #work .project-logo:hover { background:#fff; border-color:#8ca9f7; box-shadow:0 24px 70px #1c3d6e16; }
.cinematic-home #work .project-logo:focus-visible { transform:none; }
/* A deep architectural space, with a fixed reading position and passing services. */
.cinematic-home #services .cinematic-film { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; pointer-events:none; opacity:0; transition:opacity .6s; }
.cinematic-home #services.has-cinematic-film .cinematic-film { opacity:.55; }
.cinematic-home #services.has-cinematic-film::before { opacity:0; }
.cinematic-home #services > .wrap { position:relative; z-index:1; }
.cinematic-home #services { background:var(--chapter-ink); color:#fff; padding:140px 0; isolation:isolate; overflow:clip; }
.cinematic-home #services::before { content:''; position:absolute; inset:0; z-index:-2; background:url('/assets/cinematic/architecture.webp') center/cover no-repeat; opacity:.55; transform:scale(1.06) translate3d(0,var(--architecture-y,0px),0); }
.cinematic-home #services::after { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#050910e6 0%,#050910a1 47%,#05091099 100%),linear-gradient(0deg,#070b12,transparent 18%,transparent 80%,#070b12); }
.cinematic-home #services .split { grid-template-columns:1fr 1.05fr; align-items:start; gap:clamp(48px,7vw,110px); }
.cinematic-home #services .split > .reveal { position:sticky; top:150px; opacity:1; transform:none; }
.cinematic-home #services h2 { font-size:clamp(40px,4.5vw,64px); line-height:1.08; margin-bottom:30px; }
.cinematic-home #services .accent { color:#91afff; }
.cinematic-home #services .eyebrow { color:#a7b9d4; }
.cinematic-home #services .split > .reveal > p:not(.eyebrow) { color:#d0d7e3; font-size:16px; max-width:390px; }
.cinematic-home #services .text-link { color:#b6c9ff; margin-top:22px; }
.cinematic-home #services .service-list { border:0; }
.cinematic-home #services .service-row { min-height:245px; padding:42px 22px; gap:22px; align-items:center; border-bottom:1px solid #a3b2cf35; background:linear-gradient(110deg,#14213b70,#0b122040); border-left:1px solid #a3b2cf28; opacity:1; transform:none; transition:background .5s,border-color .5s; }
.cinematic-home #services .service-row:first-child { border-top:1px solid #a3b2cf35; }
.cinematic-home #services .service-row h3 { font-size:clamp(23px,2.35vw,32px); color:#f5f8ff; margin-bottom:16px; }
.cinematic-home #services .service-row p { color:#bdc9db; font-size:14px; }
.cinematic-home #services .service-num { color:#9cb9f5; align-self:start; padding-top:7px; }
.cinematic-home #services .service-direction { color:#aac0ff; }
.cinematic-home #services .service-row[data-chapter-active=true] { background:linear-gradient(110deg,#234992b0,#10234685); border-left-color:#668fff; }
.cinematic-home #services .service-row::after { transform:scaleX(var(--service-line,0)); transition:none; background:#789bff; }
.cinematic-home #services .service-row:hover { background:#193361; }
/* Pricing stays a usable comparison, while its panels settle into one plane. */
.cinematic-home #pricing { padding:130px 0; overflow:clip; background:#fff; }
.cinematic-home #pricing h2 { font-size:clamp(40px,4.8vw,65px); }
.cinematic-home #pricing .pricing-grid { perspective:1400px; gap:28px; }
.cinematic-home #pricing .price-card { transform:translateY(var(--price-y,0px)) rotateY(var(--price-rotate,0deg)); opacity:1; transition:box-shadow .3s; }
.cinematic-home #pricing .price-card:first-child { background:linear-gradient(145deg,#f1f5ff,#fff 70%); border-top:3px solid #2457f5; box-shadow:0 25px 80px #123e830d; }
.cinematic-home #pricing .price-card:focus-within { transform:none; }
.cinematic-home .visual-direction-section { background:#eef2f8; }
.cinematic-home .visual-direction-teaser { padding:30px 0; background:#eef2f8; border-block:1px solid #dbe2ec; }
.cinematic-home .visual-direction-teaser .wrap { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.cinematic-home .visual-direction-teaser p { margin:0; color:#56627a; font-size:14px; }
.cinematic-home .visual-direction-teaser .text-link { flex-shrink:0; }
/* The process becomes a scroll narrative without hiding any of its five steps. */
.cinematic-home .process.dark { color:#fff; background:#080c14; padding:140px 0; isolation:isolate; }
.cinematic-home .process > .wrap { display:grid; grid-template-columns:1fr 1fr; gap:clamp(60px,9vw,130px); align-items:start; }
.cinematic-home .process .section-heading { display:block; position:sticky; top:140px; margin:0; transform:none; opacity:1; }
.cinematic-home .process .eyebrow { color:#9faec8; }
.cinematic-home .process h2 { font-size:clamp(42px,5vw,72px); line-height:1.06; }
.cinematic-home .process .accent { color:#91afff; }
.cinematic-home .process .lead { color:#b8c5da; font-size:16px; margin-top:30px; max-width:350px; }
.cinematic-home .chapter-dial { position:relative; width:190px; height:190px; margin-top:40px; display:grid; place-items:center; }
.cinematic-home .chapter-dial::before,.cinematic-home .chapter-dial::after { content:''; position:absolute; inset:0; border:1px solid #ffffff22; border-radius:50%; }
.cinematic-home .chapter-dial::after { inset:12px; border-color:#7199ff77 transparent #7199ff77 #7199ff77; transform:rotate(var(--dial-angle,0deg)); }
.cinematic-home .chapter-dial span { font-family:Manrope,sans-serif; font-size:60px; line-height:1; font-weight:600; letter-spacing:-.06em; color:#dbe6ff; }
.cinematic-home .process .steps { display:block; margin:0; padding:0; }
.cinematic-home .process .steps::before,.cinematic-home .process .steps::after { display:none; }
.cinematic-home .process .steps > li { display:block; min-height:235px; margin:0; padding:38px 0 44px 78px; border-top:1px solid #9db0d330; transform:none; opacity:1; position:relative; }
.cinematic-home .process .steps > li:not(:last-child)::before { display:none; }
.cinematic-home .process .steps > li:last-child { border-bottom:1px solid #9db0d330; }
.cinematic-home .process .steps > li::after { content:''; position:absolute; top:-1px; left:0; width:100%; height:1px; background:#8babff; transform:scaleX(var(--step-line,0)); transform-origin:left; }
.cinematic-home .process .step-number,.cinematic-home .process .steps li.is-active .step-number,.cinematic-home .process .steps li.is-complete .step-number { position:absolute; left:0; top:38px; width:44px; height:44px; background:#111d32; color:#9fb3d5; border:1px solid #6a7fa83d; box-shadow:none; margin:0; }
.cinematic-home .process .steps > li[data-chapter-active=true] .step-number { background:#2457f5; color:white; border-color:#5c87ff; box-shadow:0 0 35px #2457f555; }
.cinematic-home .process .steps h3 { max-width:none; color:#d7dfef; font-size:clamp(24px,2.5vw,34px); line-height:1.25; margin:0 0 20px; }
.cinematic-home .process .steps p { max-width:370px; color:#adbbd2; font-size:15px; line-height:1.8; }
.cinematic-home .process .steps > li[data-chapter-active=true] h3 { color:#fff; }
/* A calmer portrait chapter gives the experience a human center. */
.cinematic-home .chapter-founder { padding:150px 0; background:#f1f3f6; overflow:clip; }
.cinematic-home .founder-layout { grid-template-columns:1fr 1fr; gap:clamp(50px,8vw,120px); }
.cinematic-home .founder-layout > .reveal { transform:none; opacity:1; }
.cinematic-home .founder-layout .portrait { max-width:none; border-radius:3px; position:relative; box-shadow:24px 24px 0 #e0e6ef; clip-path:inset(var(--portrait-mask,0%) 0 0 0); }
.cinematic-home .founder-layout .portrait img { clip-path:none!important; transform:scale(1.045) translateY(var(--portrait-y,0px)); transition:none; }
.cinematic-home .founder-copy h2 { font-size:clamp(40px,4.7vw,64px); line-height:1.08; }
.cinematic-home .founder-copy p { font-size:16px; }
.cinematic-home .portrait-caption { margin-top:40px; }
.cinematic-home #questions { padding:120px 0; background:white; }
.cinematic-home #questions .hosting-strip { border-radius:3px; padding:45px; background:#edf2fb; border:1px solid #d5dff0; }
.cinematic-home #questions h2 { font-size:clamp(36px,4vw,54px); }
.cinematic-home #questions .faq details { border-color:#ced8e7; }
.cinematic-home .referral-invitation { background:#eef2f9; border-top:1px solid #d9e1ed; border-bottom:1px solid #d9e1ed; }
.cinematic-home .closing { background:#070d1a; color:#fff; padding:160px 0; isolation:isolate; overflow:clip; }
.cinematic-home .closing::before { content:''; position:absolute; width:780px; height:780px; right:-260px; top:50%; border:1px solid #5277d247; border-radius:50%; transform:translateY(-50%) scale(var(--closing-scale,1)); z-index:-1; box-shadow:0 0 0 100px #5277d20a,0 0 0 200px #5277d207; }
.cinematic-home .closing::after { content:''; position:absolute; inset:0; z-index:-2; background:radial-gradient(ellipse at 90% 90%,#12398a80,transparent 65%); }
.cinematic-home .closing h2 { max-width:850px; font-size:clamp(46px,6.4vw,90px); line-height:1.04; }
.cinematic-home .closing p { color:#bdcbe2; max-width:520px; font-size:17px; margin-top:32px; }
.cinematic-home .closing .wrap { transform:translateY(var(--closing-y,0px)); opacity:1; }
.cinematic-home .closing .button { margin-top:12px; }
.cinematic-home .site-footer { background:#070b12; border-top:1px solid #28364d; }
@media(min-width:1600px) { .cinematic-home #services::before { background-position:60% center; } }
@media(max-width:1000px) {
 .cinematic-home .visual-direction-teaser { padding:24px 0; }
 .cinematic-home .visual-direction-teaser .wrap { align-items:flex-start; flex-direction:column; gap:12px; }
 .cinematic-home #work { padding:95px 0; }
 .cinematic-home #work .section-heading { display:block; }
 .cinematic-home #work .text-link { margin-top:20px; }
 .cinematic-home #work .project-logos { grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
 .cinematic-home #work .project-logo { min-height:250px; }
 .cinematic-home #services { padding:100px 0; }
 .cinematic-home #services .split { grid-template-columns:.9fr 1.1fr; gap:35px; }
 .cinematic-home #services .service-row { padding:28px 14px; gap:12px; min-height:240px; grid-template-columns:20px 1fr; }
 .cinematic-home #services .service-direction { display:none; }
 .cinematic-home .process > .wrap { gap:40px; grid-template-columns:.9fr 1.1fr; }
 .cinematic-home .process .steps > li { padding-left:62px; }
 .cinematic-home .chapter-founder { padding:100px 0; }
}
@media(max-width:700px) {
 .cinematic-home #work,.cinematic-home #services,.cinematic-home #pricing,.cinematic-home .process.dark,.cinematic-home .chapter-founder,.cinematic-home #questions { padding:80px 0; }
 .cinematic-home #work .section-heading { margin-bottom:40px; }
 .cinematic-home #work h2 { font-size:40px; }
 .cinematic-home #work .project-logos { gap:10px; }
 .cinematic-home #work .project-logo { padding:30px 15px 22px; min-height:230px; transform:none; }
 .cinematic-home #work .project-logo::before { left:15px; top:15px; }
 .cinematic-home #work .project-logo-art { height:100px; margin-bottom:22px; }
 .cinematic-home #work .project-logo-art img { max-height:65px; }
 .cinematic-home #work .project-logo > span { font-size:12px; line-height:1.4; }
 .cinematic-home #work .project-logo > small { font-size:9px; }
 .cinematic-home #services::before { background-size:auto 80%; background-position:62% 15%; opacity:.38; }
 .cinematic-home #services::after { background:linear-gradient(#070b12b0,#070b1270 30%,#070b12d9 60%); }
 .cinematic-home #services .split { grid-template-columns:1fr; gap:38px; }
 .cinematic-home #services .split > .reveal { position:static; }
 .cinematic-home #services h2 { max-width:440px; }
 .cinematic-home #services .service-row { min-height:0; padding:30px 18px; grid-template-columns:20px 1fr; }
 .cinematic-home #pricing .pricing-grid { grid-template-columns:1fr; }
 .cinematic-home #pricing .price-card { transform:none; }
 .cinematic-home .process > .wrap { display:block; }
 .cinematic-home .process .section-heading { position:static; margin-bottom:38px; }
 .cinematic-home .chapter-dial { display:none; }
 .cinematic-home .process .steps > li { min-height:0; padding:30px 0 32px 60px; }
 .cinematic-home .process .step-number,.cinematic-home .process .steps li.is-active .step-number,.cinematic-home .process .steps li.is-complete .step-number { top:30px; width:38px; height:38px; }
 .cinematic-home .process .steps h3 { font-size:25px; margin-bottom:14px; }
 .cinematic-home .process .steps p { font-size:14px; }
 .cinematic-home .founder-layout { grid-template-columns:1fr; gap:44px; }
 .cinematic-home .founder-layout .portrait { max-width:480px; box-shadow:12px 12px 0 #e0e6ef; }
 .cinematic-home .portrait-caption { margin-top:25px; }
 .cinematic-home #questions .hosting-strip { padding:28px; }
 .cinematic-home .closing { padding:100px 0; }
 .cinematic-home .closing h2 { font-size:46px; }
 .cinematic-home .closing::before { width:500px; height:500px; right:-400px; }
}
@media(prefers-reduced-motion:reduce) {
 .cinematic-home #work .project-logo,.cinematic-home #pricing .price-card,.cinematic-home .closing .wrap,.cinematic-home .founder-layout .portrait img { transform:none!important; transition:none!important; }
 .cinematic-home .founder-layout .portrait { clip-path:none; }
 .cinematic-home #services::before,.cinematic-home #work::before { transform:none; }
 .cinematic-home .process .section-heading,.cinematic-home #services .split > .reveal { position:static; }
 .cinematic-home .chapter-dial::after { transform:none; }
}
/* Let the final service panel clear the frame before the dark chapter releases. */
@media(min-width:1001px) {
 .cinematic-home #services .service-list { padding-bottom:clamp(420px,72svh,760px); }
}
@media(min-width:701px) and (max-width:1000px) {
 .cinematic-home #services .service-list { padding-bottom:clamp(220px,42svh,420px); }
}
@media(max-width:700px) {
 .cinematic-home #services .service-list { padding-bottom:0; }
}
@media(min-width:701px) {
 .cinematic-home #services .service-row:last-child { position:sticky; top:clamp(120px,16svh,170px); z-index:2; }
}
@media(prefers-reduced-motion:reduce) {
 .cinematic-home #services .service-list { padding-bottom:0; }
 .cinematic-home #services .service-row:last-child { position:static; }
}
body.cinema-paused.cinematic-home #services .service-list { padding-bottom:0; }
body.cinema-paused.cinematic-home #services .service-row:last-child { position:static; }
/* Portrait choreography keeps depth and a visible chapter indicator. */
@media(max-width:700px) and (prefers-reduced-motion:no-preference){
 .cinematic-home #work .project-logo { transform:translate3d(var(--logo-x,0px),var(--logo-y,0px),0) rotateX(var(--logo-tilt,0deg)) rotateZ(var(--logo-roll,0deg)); }
 .cinematic-home #pricing .price-card { transform:perspective(1000px) translateY(var(--price-y,0px)) rotateY(var(--price-rotate,0deg)); }
 .cinematic-home .process .section-heading { position:sticky; top:80px; z-index:4; padding:20px 0 18px; margin:0 0 24px; background:#080c14; border-bottom:1px solid #7295d63b; display:grid; grid-template-columns:minmax(0,1fr) 58px; gap:8px; align-items:center; }
 .cinematic-home .process .section-heading h2 { font-size:31px; }
 .cinematic-home .process .section-heading .eyebrow { font-size:9px; margin-bottom:12px; }
 .cinematic-home .process .section-heading .lead { display:none; }
 .cinematic-home .chapter-dial { display:grid; width:58px; height:58px; margin:0; }
 .cinematic-home .chapter-dial::after { inset:5px; }
 .cinematic-home .chapter-dial span { font-size:23px; }
 .cinematic-home .process .steps > li { min-height:230px; }
 .cinematic-home #services::before { background-size:auto 110%; opacity:.5; }
 .cinematic-home .closing { min-height:460px; }
}
@media(max-height:650px){ .cinematic-home .process .section-heading { position:static; } }
@media(max-width:700px) and (prefers-reduced-motion:no-preference){
 .cinematic-home #work .project-logo,.cinematic-home #pricing .price-card { transition:box-shadow .35s,border-color .35s; }
 .cinematic-home .founder-layout .portrait img { transition:none; }
}
body.cinema-paused.cinematic-home #work .project-logo,body.cinema-paused.cinematic-home #pricing .price-card { transition:none; }
body.cinema-paused.cinematic-home .process .section-heading { position:static; }
