/* Selected lower-page choreography: Opus direction, Codex integration. */
body[data-cinema] .cine-draw__stage{grid-template-columns:minmax(0,.72fr) minmax(0,1.48fr);gap:4%;isolation:isolate;position:relative;overflow:clip}
body[data-cinema] .drawing-art{width:100%;max-width:none;min-width:0;position:relative;z-index:1}
body[data-cinema] .drawing-art svg{width:108%;max-width:none;margin-right:-8%;max-height:66svh;min-height:0}
body[data-cinema] .cine-draw__rail{position:relative;z-index:2;min-width:0}
body[data-cinema] .cine-draw__rail h2{font-size:clamp(38px,3.8vw,62px)}
body[data-cinema] .cine-draw__rail .process-list{font-size:13px;margin-block:26px 22px}
body[data-cinema] .cine-draw__rail .process-list li{padding-block:13px}
body[data-cinema] .cine-draw__rail .process-list p{font-size:12px}
body[data-cinema] .cine-chapters{list-style:none;counter-reset:none;display:flex;gap:22px;padding:0;margin:0 0 27px;font:500 11px/1.5 Geist,sans-serif;letter-spacing:.025em}
body[data-cinema] .cine-chapters li{opacity:.38;position:relative;padding-bottom:8px;border:0}
body[data-cinema] .cine-chapters li::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:currentColor;transform:scaleX(var(--chapter,0));transform-origin:left}
body[data-cinema] .cine-chapters li.is-current{opacity:1}
body[data-cinema] [data-cine-plane]{stroke:none}
body[data-cinema] [data-cine-rake]{opacity:0;pointer-events:none}
body[data-cinema] .cine-shot{isolation:isolate;overflow:hidden;position:relative}
body[data-cinema] .cine-shot__frame{position:absolute;inset:0;overflow:hidden;z-index:0}
body[data-cinema] .cine-shot__frame img{width:100%;height:100%;object-fit:cover;transform:none;scale:1;translate:0 0;display:block}
body[data-cinema] .cine-shot__veil{position:absolute;inset:0;pointer-events:none;z-index:1;opacity:0}
body[data-cinema] .cine-shot figcaption{z-index:2}
body[data-cinema] .gallery-card{transform:none}
body[data-cinema] .cine-mat{position:relative;isolation:isolate}
body[data-cinema] .cinema-material-outgoing{position:absolute;z-index:5;overflow:hidden;pointer-events:none;transform-origin:0 0;contain:layout paint;will-change:transform,opacity}
body[data-cinema] .cinema-material-outgoing img{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;object-fit:cover;opacity:1!important;transform:none!important;scale:1!important;clip-path:none!important}
body[data-cinema] .material-panel img{clip-path:inset(calc((1 - var(--cine-photo,1)) * 35%) 0 calc((1 - var(--cine-photo,1)) * 35%) 0)}
body[data-cinema] .questions-section{position:relative}
body[data-cinema] .questions-section::before{content:"";position:absolute;inset:0 6% auto;height:1px;background:currentColor;opacity:.25;transform-origin:left;transform:scaleX(var(--cine-entry,1))}
body[data-cinema] .estimate{position:relative;isolation:isolate}
body[data-cinema] .estimate::before{content:"";position:absolute;inset:0 0 auto;height:4px;background:var(--action);transform-origin:left;transform:scaleX(var(--cine-entry,1));opacity:.65}
body[data-cinema] .contact-mark path{stroke-dasharray:1;stroke-dashoffset:0}
html.cine-on body[data-cinema] .cine-shot[data-shot=wipe] .cine-shot__veil{inset:50% 0 auto;height:26%;border-top:1px solid #14213a55;background:linear-gradient(var(--veil),transparent);transform:translateY(calc(var(--cine-sweep,0) * 1%));opacity:var(--cine-veil,0)}
html.cine-on body[data-cinema] .cine-shot[data-shot=blade] .cine-shot__veil{inset:-50% -25%;border-left:2px solid #c47a4a;background:linear-gradient(90deg,#c47a4a24,transparent 7%);transform:translateX(calc(var(--cine-sweep,100) * 1%)) rotate(22deg);opacity:var(--cine-veil,0)}
html.cine-on body[data-cinema] .cine-shot[data-shot=aperture] .cine-shot__veil{background:#dbe8f2;transform:translateX(calc(var(--cine-sweep,101) * 1%));opacity:var(--cine-veil,0)}
/* Harborline: a broad horizon, then the neighborhood becomes the closing scene. */
body[data-cinema=harborline] .cine-draw__stage{background:radial-gradient(ellipse at 72% 53%,#f9f5ec 0,transparent 60%),#e9e2d2}
body[data-cinema=harborline] .cine-draw__stage::before{content:"";position:absolute;width:70%;height:42%;right:-3%;top:30%;background:linear-gradient(0deg,#14213a06,transparent 75%);transform:translateX(calc(var(--cine-mist,0) * 1%));pointer-events:none}
body[data-cinema=harborline] .services{padding-top:clamp(78px,8vw,132px)}
body[data-cinema=harborline] .gallery-card figure{background:#ded5c4}
body[data-cinema=harborline] .neighborhood{padding:0;background:var(--ink);color:var(--paper)}
body[data-cinema=harborline] .editorial{width:100%;display:block;position:relative;min-height:85svh;isolation:isolate;overflow:hidden}
body[data-cinema=harborline] .editorial>figure{position:absolute;inset:0;aspect-ratio:auto;z-index:-2}
body[data-cinema=harborline] .editorial>figure img{aspect-ratio:auto;height:100%;object-position:center 45%}
body[data-cinema=harborline] .editorial>figure figcaption{position:absolute;bottom:22px;right:6%;color:#fff;text-shadow:0 1px 10px #000;font-size:10px;margin:0}
body[data-cinema=harborline] .editorial::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#14213ae8,#14213a26 85%)}
body[data-cinema=harborline] .neighborhood-copy{padding:clamp(78px,10vw,150px) 6%;max-width:840px}
body[data-cinema=harborline] .editorial h2{font-size:clamp(48px,6vw,88px);max-width:750px}
body[data-cinema=harborline] .editorial .eyebrow,body[data-cinema=harborline] .editorial p:not(.eyebrow){color:#f3ecdd;max-width:330px}
body[data-cinema=harborline] .editorial .text-link{color:#f3ecdd}
/* Alloy: seam-aligned portraits and a larger photographic material stage. */
body[data-cinema=alloy] .cine-draw__stage{grid-template-columns:minmax(0,.72fr) minmax(0,1.48fr)}
body[data-cinema=alloy] .cine-chapters{color:#df9b6e}
body[data-cinema=alloy] .drawing-art svg{max-height:76svh}
body[data-cinema=alloy] .services .section-intro{border-bottom:0}
body[data-cinema=alloy] .gallery-card figure{border-top:0}
body[data-cinema=alloy] .gallery-card figure::after{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:#c47a4a;transform:scaleX(var(--cine-rule,1));transform-origin:left;z-index:3}
body[data-cinema=alloy] .material-panel{grid-template-columns:1fr;gap:30px}
body[data-cinema=alloy] .material-panel>img{height:clamp(340px,42vw,640px);width:100%;clip-path:polygon(0 calc((1 - var(--cine-photo,1)) * 42%),100% calc((1 - var(--cine-photo,1)) * 42%),100% calc(88% - (1 - var(--cine-photo,1)) * 30%),88% calc(100% - (1 - var(--cine-photo,1)) * 42%),0 calc(100% - (1 - var(--cine-photo,1)) * 42%))}
body[data-cinema=alloy] .material-copy{display:grid;grid-template-columns:1fr 1.2fr;gap:12px 32px;padding:0;align-items:start}
body[data-cinema=alloy] .material-copy h3{font-size:clamp(28px,3vw,46px);grid-column:1;grid-row:1 / span 2}
body[data-cinema=alloy] .material-copy p,body[data-cinema=alloy] .material-copy a,body[data-cinema=alloy] .material-copy small{grid-column:2;margin:0}
body[data-cinema=alloy] .material-copy a{justify-self:start;margin-block:6px 4px}
/* Aperture: the pale-blue plane continues from the drawing to each photo sheet. */
body[data-cinema=aperture] .cine-draw__stage{grid-template-columns:minmax(0,1.48fr) minmax(0,.72fr)}
body[data-cinema=aperture] .drawing-art svg{margin-left:-8%;margin-right:0}
body[data-cinema=aperture] .services{background:linear-gradient(90deg,#dbe8f233 0 12%,transparent 12% 100%)}
body[data-cinema=aperture] .gallery-card{border-top:0;padding-block:44px}
body[data-cinema=aperture] .gallery-card:nth-child(even) .cine-shot__veil{background:#e8f0f6}
body[data-cinema=aperture] .materials{background:linear-gradient(180deg,#edf3f8,#fbfcfd 48%)}
body[data-cinema=aperture] .material-panel>img{height:clamp(340px,40vw,570px)}
@media(min-width:1024px) and (min-height:720px){
 .motion-enabled body[data-cinema] [data-drawing-scene].is-scroll-scene{min-height:195vh}
 .motion-enabled body[data-cinema] [data-drawing-scene].is-scroll-scene .drawing-stage{height:100svh;padding-block:50px}
 body[data-cinema] .drawing-art figcaption{margin-block:18px 0}
}
@media(max-width:1023px),(max-height:719px){
 body[data-cinema] .cine-draw__stage{display:flex;flex-direction:column;gap:32px;padding-block:62px 42px}
 body[data-cinema] .cine-draw__rail{width:100%;display:block;max-width:740px}
 body[data-cinema] .cine-draw__rail .process-list{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
 body[data-cinema] .drawing-art{width:min(100%,800px)}
 body[data-cinema] .drawing-art svg{width:100%;margin:0;max-height:450px}
 body[data-cinema] .cine-draw__rail h2{font-size:clamp(38px,6vw,64px)}
 body[data-cinema=aperture] .drawing-art{order:2}
 body[data-cinema=harborline] .neighborhood-copy{padding-block:80px 100px}
}
@media(max-width:760px){
 body[data-cinema] .cine-chapters{margin-bottom:23px;font-size:10px;gap:24px}
 body[data-cinema] .cine-draw__stage{gap:25px}
 body[data-cinema] .cine-draw__rail .process-list{display:block;margin-top:24px}
 body[data-cinema] .cine-draw__rail .process-list li{padding-block:12px}
 body[data-cinema] .drawing-art svg{max-height:none;min-height:0}
 body[data-cinema] .cine-draw__rail h2{font-size:clamp(38px,10.6vw,60px)}
 body[data-cinema=alloy] .material-copy{display:block}
 body[data-cinema=alloy] .material-copy p{margin-block:18px}
 body[data-cinema=alloy] .material-copy small{margin-top:18px}
 body[data-cinema=alloy] .material-panel>img,body[data-cinema=aperture] .material-panel>img{height:340px}
 body[data-cinema=harborline] .editorial{min-height:740px}
 body[data-cinema=harborline] .editorial h2{font-size:clamp(42px,11.4vw,66px)}
 body[data-cinema=harborline] .editorial::after{background:linear-gradient(180deg,#14213ad9,#14213a8c 60%,#14213a1a)}
 body[data-cinema=harborline] .neighborhood-copy{padding-top:65px;padding-bottom:165px}
 body[data-cinema=aperture] .gallery-card{padding-block:28px}
}
@media(prefers-reduced-motion:reduce){body[data-cinema] .cine-shot__veil{display:none!important}}
html.motion-paused body[data-cinema] .cine-shot__veil{display:none!important}

/* On phones the drawing appears before the process details. */
@media(max-width:760px){
 body[data-cinema] .cine-draw__stage{display:grid;grid-template-columns:1fr;gap:18px}
 body[data-cinema] .cine-draw__rail{display:contents}
 body[data-cinema] .cine-draw__rail>*,body[data-cinema] .cine-draw__art{grid-column:1;grid-row:auto;min-width:0}
 body[data-cinema] .cine-draw__rail>.eyebrow{order:1;margin:0}
 body[data-cinema] .cine-draw__rail>h2{order:2;margin:0}
 body[data-cinema] .cine-draw__art{order:3;margin:0}
 body[data-cinema] .cine-chapters{order:4;margin:4px 0 0}
 body[data-cinema] .cine-draw__rail>.process-list{order:5;margin:0}
 body[data-cinema] .cine-draw__rail>a{order:6;justify-self:start;margin:0}
 body[data-cinema=aperture] .drawing-art{order:3}
}
body[data-cinema=aperture] .sheet-head{border-bottom:0}
