/* Query-only comparison: ?workPresentation=stack. Existing folio and classic
   selectors remain independent; this never changes the globe or camera. */
body[data-work-layout='globe'][data-work-presentation='stack'] .work-entry .gallery-heading{left:7vw;top:max(15vh,145px)}
body[data-work-layout='globe'][data-work-presentation='stack'] .project-grid{perspective:1500px}
body[data-work-layout='globe'][data-work-presentation='stack'] .project-card{position:absolute;inset:auto;left:calc(50vw - min(35vw,425px,calc((66vh - 148px)*.9166667 + 16px)));top:22vh;width:min(70vw,850px,calc((66vh - 148px)*1.8333333 + 32px));height:auto;min-height:0;border-radius:14px;transform-origin:50% 50%;transform-style:preserve-3d;perspective:1500px;outline-offset:7px}
body[data-work-layout='globe'][data-work-presentation='stack'] .card-surface{position:relative;inset:auto;display:block;width:100%;min-height:0;padding-top:16px;border:0;border-radius:14px;background:#081a2f;box-shadow:0 26px 80px #01081255,inset 0 0 0 1px #fff5df38;overflow:visible;transform-style:preserve-3d}
body[data-work-layout='globe'][data-work-presentation='stack'] .project-card[data-stack-role='back'] .card-surface{background:#142b43;box-shadow:0 12px 35px #01081238,inset 0 0 0 1px #fff5df38;overflow:clip}
body[data-work-layout='globe'][data-work-presentation='stack'] .project-card[data-stack-role='back']:nth-child(even) .card-surface{background:#0c2139}
body[data-work-layout='globe'][data-work-presentation='stack'] .card-number{display:none}
body[data-work-layout='globe'][data-work-presentation='stack'] .project-orbit{display:none}
body[data-work-layout='globe'][data-work-presentation='stack'] .card-image{position:relative;inset:auto;left:auto;right:auto;top:auto;display:block;width:calc(100% - 32px);height:auto;max-height:none;aspect-ratio:11/6;margin:0 16px;border:0;border-radius:7px;overflow:hidden;background:#07182d;box-shadow:none;transform-origin:center;transition:none}

body[data-work-layout='globe'][data-work-presentation='stack'] .card-image>img{display:block;width:100%;height:100%;object-fit:contain;object-position:50% 50%!important;transform:none!important;transition:none}
body[data-work-layout='globe'][data-work-presentation='stack'] .card-caption-clip{position:relative;inset:auto;display:block;width:100%;height:auto;overflow:visible;perspective:none;transform-style:preserve-3d}
body[data-work-layout='globe'][data-work-presentation='stack'] .card-caption{position:relative;inset:auto;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;justify-content:start;gap:24px;height:auto;min-height:132px;padding:20px;background:none;transform:none;color:var(--paper)}
body[data-work-layout='globe'][data-work-presentation='stack'] .card-attribution{position:relative;inset:auto;left:auto;top:auto;width:auto;min-width:0;display:block}
body[data-work-layout='globe'][data-work-presentation='stack'] .card-name{display:block;font-size:clamp(28px,3vw,42px);line-height:1.04;letter-spacing:-.045em;white-space:normal;text-wrap:balance}
body[data-work-layout='globe'][data-work-presentation='stack'] .card-role{display:block;max-width:100%;margin-top:12px;font:400 12px/1.4 'DM Sans',sans-serif;letter-spacing:0;opacity:1}
body[data-work-layout='globe'][data-work-presentation='stack'] .card-explore{position:relative;inset:auto;left:auto;top:auto;bottom:auto;display:inline-flex;align-items:center;justify-content:center;gap:13px;width:128px;max-width:none;min-height:48px;margin:0;padding:10px 14px;border:1px solid #fff5df70;border-radius:999px;background:transparent;color:var(--paper);font:500 italic 21px/1.2 'Bodoni Moda',Georgia,serif;transition:background-color .3s,color .3s,border-color .3s}
body[data-work-layout='globe'][data-work-presentation='stack'] .card-explore:after{content:none}
body[data-work-layout='globe'][data-work-presentation='stack'] .card-explore i{position:static;display:block;flex:none;width:19px;height:19px;border:0;border-radius:0;box-shadow:none;background:currentColor;opacity:1;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M8 24L24 8M9 8H24V23' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;transition:transform .35s var(--ease)}
body[data-work-layout='globe'][data-work-presentation='stack'] .card-explore svg{flex:none;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .35s var(--ease)}
body[data-work-layout='globe'][data-work-presentation='stack'] .project-card:is(:hover,:focus-visible) .card-explore{background:var(--paper);color:#07182d;border-color:var(--paper)}
body[data-work-layout='globe'][data-work-presentation='stack'] .project-card:is(:hover,:focus-visible) :is(.card-explore i,.card-explore svg){transform:translate(2px,-2px)}
body[data-work-layout='globe'][data-work-presentation='stack'] .project-card:is(:hover,:focus-visible) .card-image{border:0;box-shadow:none}
body[data-work-layout='globe'][data-work-presentation='stack'] #work-globe-lines{display:none}
body[data-work-layout='globe'][data-work-presentation='stack'] .globe-stop{border:1px solid #fff5df55;background:#07182d;color:var(--paper);box-shadow:none}
body[data-work-layout='globe'][data-work-presentation='stack'] .globe-stop:is(:hover,:focus-visible),body[data-work-layout='globe'][data-work-presentation='stack'] .globe-stop[aria-current='true']{background:var(--paper);color:#07182d;border-color:var(--paper)}
body[data-work-presentation='stack'][data-work-scene='on'] #scroll-cue{visibility:hidden!important}

@media(max-width:700px),(max-aspect-ratio:9/10){
 body[data-work-presentation='stack'][data-work-scene='on'] .navigation{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:12px;padding:20px 22px}
 body[data-work-presentation='stack'][data-work-scene='on'] .navigation nav{flex:0 0 auto;width:auto;justify-content:flex-end;margin-left:auto;gap:0}
 body[data-work-presentation='stack'][data-work-scene='on'] :is(#work-nav,#about-nav){display:none}
 body[data-work-layout='globe'][data-work-presentation='stack'] .work-entry .gallery-heading{top:132px}
 body[data-work-layout='globe'][data-work-presentation='stack'] .project-card{left:calc(50vw - min(43vw,calc(23.8333333vh + 12px)));top:25vh;width:min(86vw,calc(47.6666667vh + 24px))}
 body[data-work-layout='globe'][data-work-presentation='stack'] .card-surface{padding-top:12px}
 body[data-work-layout='globe'][data-work-presentation='stack'] .card-image{width:calc(100% - 24px);margin:0 12px}
 body[data-work-layout='globe'][data-work-presentation='stack'] .card-caption{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:0;min-height:236px;padding:18px}
 body[data-work-layout='globe'][data-work-presentation='stack'] .card-attribution{position:relative;left:auto;top:auto;width:100%}
 body[data-work-layout='globe'][data-work-presentation='stack'] .card-name{font-size:clamp(32px,8vw,44px);line-height:1.04}
 body[data-work-layout='globe'][data-work-presentation='stack'] .card-role{margin-top:10px;font-size:12px;line-height:1.4}
 body[data-work-layout='globe'][data-work-presentation='stack'] .card-explore{min-height:44px;margin-top:16px;font-size:21px}
}
@media(prefers-reduced-motion:reduce){body[data-work-presentation='stack'] :is(.card-explore,.card-explore i,.card-explore svg,.globe-stop){transition:none}}
body.reduced[data-work-presentation='stack'] :is(.card-explore,.card-explore i,.card-explore svg,.globe-stop){transition:none}

/* Automatic short-screen fallback uses the verified compact folio geometry.
   Explicit classic/editorial comparisons do not match this stack-only scope. */
@media(max-height:679px){
 body[data-work-layout='editorial'][data-work-presentation='stack'] .work-entry{top:0;left:0;width:100%;height:100vh;max-height:none}
 body[data-work-layout='editorial'][data-work-presentation='stack'] .work-entry .gallery-heading{left:7vw;top:132px;margin:0}
 body[data-work-layout='editorial'][data-work-presentation='stack'] .project-grid{position:absolute;inset:0;width:100%;height:100vh;padding:0;margin:0;overflow:visible;clip-path:inset(0)}
 body[data-work-layout='editorial'][data-work-presentation='stack'] .project-card{inset:0;width:100%;height:100vh}
 body[data-work-layout='editorial'][data-work-presentation='stack'] .card-surface{inset:0;display:block}
 body[data-work-layout='editorial'][data-work-presentation='stack'] .card-image{left:max(7vw,calc(50vw - 23.83335vh));top:27vh;width:min(86vw,47.6667vh);height:auto;aspect-ratio:11/6;max-height:none;border:0;box-shadow:none}
 body[data-work-layout='editorial'][data-work-presentation='stack'] .card-image>img{object-fit:contain;object-position:50% 50%!important}
 body[data-work-layout='editorial'][data-work-presentation='stack'] :is(.project-orbit,.card-number,#work-globe-navigation){display:none}
 body[data-work-layout='editorial'][data-work-presentation='stack'] .card-caption-clip{inset:0;width:100%;height:100%;overflow:visible;perspective:none}
 body[data-work-layout='editorial'][data-work-presentation='stack'] .card-caption{inset:0;height:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:0;padding:56vh 7vw 0;transform:none;background:none}
 body[data-work-layout='editorial'][data-work-presentation='stack'] .card-attribution{position:relative;left:auto;top:auto;width:86vw;display:block}
 body[data-work-layout='editorial'][data-work-presentation='stack'] .card-name{font-size:clamp(34px,10vw,52px);line-height:1.04;letter-spacing:-.045em;text-wrap:balance}
 body[data-work-layout='editorial'][data-work-presentation='stack'] .card-role{display:block;font-size:12px;line-height:1.4;margin-top:10px;max-width:86vw}
 body[data-work-layout='editorial'][data-work-presentation='stack'] .card-explore{position:relative;left:auto;top:auto;bottom:auto;margin-top:12px;max-width:none;min-height:44px;font-size:23px}
}

body[data-work-presentation='stack'] .project-card[data-slug='stanley-security'] .card-image{aspect-ratio:1680/872}
body[data-work-presentation='stack'] .project-card[data-slug='oars'] .card-image{aspect-ratio:1680/1004}
body[data-work-presentation='stack'] .project-card[data-slug='spekit'] .card-image{aspect-ratio:1440/900}
body[data-work-presentation='stack'] .project-card[data-slug='stevesatv'] .card-image{aspect-ratio:1408/768}
body[data-work-presentation='stack'] .project-card[data-slug='bostonducktours'] .card-image{aspect-ratio:1408/768}
