/* Keep the work, explanations and next steps visible on everyday laptop screens. */
html{scroll-padding-top:76px}
#main section[id]{scroll-margin-top:16px}
#work .section-head h2 em{color:#ffc4a1}
:is(#skills,#work,#studio,#process,#faq,#start) :is(p,h2,h3,a,button){overflow-wrap:break-word}
#quick-request{scrollbar-gutter:stable;scroll-padding-block:82px 24px}
#quick-request .quick-request-bar{position:sticky;top:0}
#project-dialog .close{position:sticky;top:12px;float:right;margin:12px 12px -56px 0;z-index:3}
.vision-illustration{margin:32px 0;border:1px solid #465470;border-radius:16px;overflow:hidden;background:#1d263d}
.vision-illustration img{width:100%;height:auto;display:block;aspect-ratio:16/9;object-fit:cover}
.vision-illustration figcaption{padding:16px 20px;color:#c4cde0;font:13px/1.6 var(--sans)}
.vision-illustration figcaption strong{display:block;color:#d4fa66;margin-bottom:5px;font:600 11px/1.5 var(--mono)}
@media(min-width:761px) and (min-height:481px){
 .section{padding-block:72px}
 .section-head{margin-bottom:28px;gap:28px}
 .section-head h2{font-size:clamp(36px,4vw,56px);line-height:1.1}
 .section-head .section-intro{font-size:16px;line-height:1.65}
 #skills .skills{gap:18px}
 #skills .offer-card{padding:20px}
 #skills .offer-card h3{font-size:23px;line-height:1.2;min-height:0}
 #skills .offer-card>p{font-size:15px;line-height:1.65}
 #work .section-head{margin-bottom:24px}
 #work .work-console{padding:14px}
 #work .work-console-bar{min-height:30px;padding-bottom:10px;font-size:11px}
 #work .work-cartridge{min-height:68px;padding:12px;gap:8px;grid-template-columns:18px minmax(0,1fr) 10px}
 #work .cartridge-name{font-size:16px;line-height:1.2}
 #work .cartridge-name small{font-size:11px;margin-top:4px}
 #work .cartridge-number{font-size:10px}
 #work .work-cartridges{margin-bottom:10px}
 #work .work-browse{min-height:44px;margin-bottom:10px}
 #work .work-browse button{height:44px;width:44px}
 #work .work-preview-art{min-height:310px}
 #work .work-preview-copy{padding:24px}
 #work #work-preview-title{font-size:34px;margin-bottom:12px}
 #work .work-preview-copy #work-preview-description{font-size:15px;line-height:1.65}
 #work #work-preview-tags{margin-top:14px}
 #work .work-preview-copy .work-preview-actions{margin-top:16px}
 #work .work-preview-kicker{margin-bottom:10px}
 #studio .manifesto-art{height:clamp(250px,28vw,420px)}
 #studio .manifesto-inner{padding-block:56px;gap:48px}
 #studio .studio-copy>p:not(.eyebrow){font-size:16px;line-height:1.75;margin-block:20px}
 #process .steps{gap:24px}
 #process .steps h3{font-size:22px;line-height:1.3}
 #process .steps p{font-size:15px;line-height:1.7}
 #faq .faq-layout{gap:40px}
 #start{gap:44px}
 #start .contact-copy h2{font-size:clamp(38px,4.5vw,58px)}
 #start .contact-copy>p:not(.eyebrow){font-size:16px;line-height:1.7}
 /* The artwork stays in view while the service explanation scrolls beside it. */
 #service-closeup{width:min(1180px,calc(100% - 40px));height:min(760px,calc(100dvh - 32px));max-height:calc(100dvh - 32px)}
 #service-closeup .service-closeup-main{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);align-items:start;scrollbar-gutter:stable}
 #service-closeup .service-closeup-art{position:sticky;top:0;height:min(500px,calc(100dvh - 190px));min-height:0;border-right:1px solid var(--builder-edge)}
 #service-closeup .service-closeup-sprite{width:100%;height:auto;max-height:100%;object-fit:contain;aspect-ratio:3/2}
 #service-closeup .service-closeup-copy{padding:24px;min-width:0}
 #service-closeup .service-closeup-copy h2{font-size:30px;line-height:1.15}
 #service-closeup .service-closeup-copy p{font-size:14px;line-height:1.65}
 #service-closeup .service-scope{grid-template-columns:1fr;gap:16px;margin-top:22px}
 #service-closeup .service-scope h3{font-size:14px;margin-bottom:5px}
 #service-closeup .service-scope section p{font-size:14px;margin:0}
 #service-closeup .service-example{padding:14px;margin:0}
 /* Real app screens fit the available height; explanations live alongside. */
 #tend-screen-dialog{width:min(960px,calc(100% - 40px));height:calc(100dvh - 32px)}
 .tend-viewer-tabs{max-width:480px;width:calc(100% - 36px);margin-inline:auto}
 .tend-viewer-hint{text-align:center;margin-block:8px}
 .tend-viewer-slide{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);align-items:center;gap:28px;padding:14px 36px 20px}
 #tend-screen-dialog .tend-viewer-slide img{width:auto;max-width:100%;height:auto;max-height:calc(100dvh - 270px);border-radius:14px}
 .tend-viewer-caption{margin:0;max-width:30ch}
 .tend-viewer-caption h3{font-size:26px;line-height:1.2}
 .tend-viewer-caption p{font-size:16px;line-height:1.7}
 #project-model-dialog{width:min(900px,calc(100% - 40px));max-height:calc(100dvh - 32px)}
 #work #project-model-dialog #seefood-stage{height:clamp(220px,42dvh,380px)}
 /* A compact heading leaves the actual demo above the fold. */
 .sightline-viewer-bar{padding:12px 24px}
 .sightline-viewer-scroll{padding:16px max(24px,calc((100vw - 1240px)/2)) 32px;scrollbar-gutter:stable}
 .sightline-viewer-footer{padding:10px 24px}
 .sightline-scene-tabs{margin-bottom:14px}
 .vision-demo{max-width:1200px;margin-inline:auto}
 .vision-demo .camera-heading{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:6px 30px;margin-bottom:12px}
 .vision-demo .camera-heading>span{grid-column:1/-1;font-size:10px}
 .vision-demo .camera-heading h3{font-size:28px;line-height:1.13;margin:4px 0}
 .vision-demo .camera-heading p{align-self:center;margin:0;font-size:14px;line-height:1.6}
 .vision-clip-tabs{margin-bottom:12px}
 .vision-workspace{grid-template-columns:minmax(0,1.55fr) minmax(270px,.75fr);gap:20px}
 .vision-recording-label{padding:7px 12px}
 .vision-frame{width:min(100%,calc((100dvh - 480px)*16/9));max-height:none;min-height:0;aspect-ratio:16/9;margin-inline:auto}
 .vision-frame video{object-fit:contain}
 .vision-playback{margin-block:8px}
 .vision-scrub-label input{height:32px;min-height:32px}
 .vision-layers button{min-height:36px;padding:7px 10px}
 .vision-player-state{margin:8px 0;min-height:0}
 .vision-readout{padding:18px}
 .vision-metrics{margin:8px 0 12px}
 .vision-metrics>div{padding:8px 0}
 .vision-metrics strong{font-size:29px}
 .vision-clip-note{font-size:13px;line-height:1.6}
 .vision-limit{font-size:12px}
 .vision-credit{margin:14px 0 28px}
 .vision-illustration{display:grid;grid-template-columns:1.5fr 1fr;align-items:center}
 .vision-illustration figcaption{padding:24px;font-size:15px}
 .sightline-interactive-map{max-height:calc(100dvh - 310px);min-height:240px;aspect-ratio:48/31;width:auto;margin-inline:auto}
 .sightline-zone-info{padding:20px}
}
@media(min-width:1100px){#work .work-cartridges{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:760px){.vision-illustration{margin-block:24px}.vision-illustration figcaption{padding:16px;font-size:13px}}
@media(min-width:761px) and (min-height:481px){
 #sightline-dialog .sightline-scene-tabs{position:absolute;right:max(24px,calc((100vw - 1200px)/2));top:88px;z-index:2;margin:0}
 .vision-demo .camera-heading{display:block;padding-right:300px;margin-bottom:12px}
 .vision-demo .camera-heading>span{display:none}
 .vision-demo .camera-heading h3{font-size:24px;margin:0 0 7px}
 .vision-demo .camera-heading h3 br{display:none}
 .vision-demo .camera-heading p{font-size:13px;line-height:1.5;max-width:70ch}
 .vision-frame{width:min(100%,max(280px,calc((100dvh - 480px)*16/9)))}
}
.vision-demo .vision-scrub{padding:0}
@media(min-width:761px) and (min-height:481px){.vision-demo .vision-scrub-label{margin-bottom:8px}}
@media(min-width:761px) and (min-height:481px){#tend-screen-dialog .tend-viewer-slide img{max-height:calc(100dvh - 320px)}}
@media(min-width:1001px) and (min-height:481px){
 #studio{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:start}
 #studio .manifesto-art{position:sticky;top:76px;height:calc(100dvh - 76px);min-height:500px}
 #studio .manifesto-art>img{height:100%;object-position:46% center}
 #studio .art-caption{left:20px;right:20px;width:fit-content;max-width:calc(100% - 40px);font-size:9px}
 #studio .manifesto-inner{display:block;width:100%;max-width:none;padding:44px 40px;box-sizing:border-box}
 #studio .studio-ascii{display:none}
 #studio .studio-copy h2{font-size:42px;line-height:1.1}
 #studio .studio-copy>p:not(.eyebrow){margin-block:16px}
 #studio .founder-role{margin:20px 0;padding:14px}
 #studio .founder-focus{margin-block:18px}
 #studio .credential{padding-block:14px}
}
@media(min-width:761px) and (min-height:481px){
 #work{padding-block:44px 64px}
 #work .section-head h2{font-size:36px;line-height:1.12}
 #work .section-head .eyebrow{margin-bottom:12px}
 #work .work-console-bar{min-height:24px;padding-bottom:8px}
}
@media(min-width:1100px){
 #work .work-cartridge{grid-template-columns:minmax(0,1fr) 10px;min-height:60px;padding:10px 12px}
 #work .cartridge-number{display:none}
 #work .cartridge-name{font-size:15px}
 #work .cartridge-name small{font-size:10px}
}
.tend-original-screen{display:inline-flex;align-items:center;min-height:44px;margin-top:12px;color:#354978;font:600 14px/1.5 var(--sans);text-decoration:underline;text-underline-offset:4px}
#work .camera-direct-entry>img{height:auto}
