/* Direct New Camp — concise Figma layout, 2503:57045. */
.case-page{--inset:64px}
.case-page .content,.case-page .header-inner{width:calc(100% - 2 * var(--inset));max-width:1360px}
.case-page .header-inner{padding:16px 0}
.case-page .case-content{display:flex;flex-direction:column;gap:64px;padding-top:48px;padding-bottom:64px}
.case-intro{display:flex;flex-direction:column;align-items:flex-start;gap:24px}
.back-link{color:var(--secondary);font-size:16px;line-height:28px}
.case-page #case-title{font-size:56px;font-weight:400;line-height:62px;letter-spacing:-3.0528px;max-width:1050px;margin:0;padding:0;text-wrap:balance;overflow-wrap:normal;word-break:normal}
.case-context{max-width:700px;font-size:18px;line-height:28px;color:var(--secondary)}
.case-section{display:flex;flex-direction:column;gap:20px;scroll-margin-top:96px;min-width:0}
.case-page .case-section h2{margin:0;font-size:36px;line-height:44px;font-weight:400;letter-spacing:-1.5232px}
.case-copy{max-width:950px;font-size:18px;line-height:28px}
.case-copy p~p{margin-top:28px}
.outcome-features{margin:20px 0 0;padding-left:1.25em;list-style:disc}
.outcome-features li+li{margin-top:12px}
.outcome-features strong{font-weight:600}
.case-figure{display:flex;flex-direction:column;gap:20px;margin:0;width:100%;min-width:0}
.case-figure>a{display:block;line-height:0}
.case-figure img{display:block;width:100%;height:auto;border-radius:14px}
.case-image-slot{width:100%;aspect-ratio:1152/310;background:var(--media);border-radius:14px}
.case-figure figcaption{min-height:24px;color:var(--secondary);font-size:14px;line-height:21px}
.case-return{display:flex;justify-content:space-between;gap:24px;padding:16px 0;font-size:16px;line-height:28px}
.case-page footer{margin:0;display:flex;flex-direction:column;align-items:flex-start;gap:32px;padding:48px 0 64px;border-top:1px solid var(--border)}
.case-page footer h2{font-size:48px;line-height:56px;letter-spacing:-1.44px;font-weight:400}
.case-page footer .metadata{line-height:20px}
.case-page footer .contact-actions{display:flex;flex-direction:row;flex-wrap:wrap;gap:16px;align-items:flex-start}
.case-build-note{padding:8px 0 0;width:100%;font-size:14px;line-height:21px;color:var(--secondary)}
@media(max-width:900px){.case-page{--inset:24px}.case-page #case-title{font-size:44px;line-height:50px;letter-spacing:-2px}.case-page .case-content{gap:48px}.case-page .case-section h2{font-size:32px;line-height:40px}}
@media(max-width:540px){.case-page #case-title{font-size:40px;line-height:44px;letter-spacing:-1.8px}.case-page .case-content{padding-top:32px;gap:40px}.case-copy,.case-context{font-size:16px;line-height:25px}.case-copy p~p{margin-top:25px}.case-page .case-section h2{font-size:30px;line-height:36px;letter-spacing:-1px}.case-image-slot{min-height:160px}.case-page footer{padding-bottom:64px}.case-page footer h2{font-size:40px;line-height:48px}.case-page footer .contact-actions{gap:12px}.case-return{gap:16px}.case-build-note{padding:8px 0 0}.case-page footer .metadata{font-size:14px;line-height:20px}}

.case-page #contacts>.metadata,.case-page #contacts>h2{text-align:left}

.case-video{display:block;width:100%;height:auto;border-radius:14px;background:var(--media)}

/* Match the homepage mobile breakpoint; keep captions aligned with body copy. */
@media(max-width:760px){
  .case-page .case-figure{width:calc(100% + 2 * var(--inset));margin-inline:calc(-1 * var(--inset))}
  .case-page .case-figure img,.case-page .case-video,.case-page .case-image-slot{border-radius:0}
  .case-page .case-figure figcaption{margin-inline:var(--inset)}
}

/* Shared case layout: section title, readable copy, then full-width media. */
.case-page .case-content{max-width:1200px}
@media(min-width:901px){
  .case-page .case-content{gap:88px}
  .case-section{display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,700px);column-gap:64px;row-gap:32px;align-items:start}
  .case-section>h2{grid-column:1;grid-row:1}
  .case-section>.case-copy{grid-column:2;grid-row:1;max-width:700px;min-width:0}
  .case-section>.case-figure{grid-column:1 / -1}
}

@media(min-width:901px){
  #outcome>.case-figure{grid-row:1}
  #outcome>h2,#outcome>.case-copy{grid-row:2}
}

/* Trim the recording edges in the inline Outcome player. */
#outcome>.case-figure{overflow:hidden;border-radius:14px}
#outcome .case-video{width:calc(100% + 4px);max-width:none;margin-inline:-2px;border-radius:0}
#outcome .case-video:fullscreen{width:100%;margin:0}
@media(max-width:760px){#outcome>.case-figure{border-radius:0}}

/* Early selector explorations, on the blue field of Figma 2590:103920. */
.exploration-gallery{position:relative;width:100%;aspect-ratio:1152/760;container-type:inline-size;overflow:hidden;border-radius:14px;background:linear-gradient(82.341deg,rgba(25,30,40,.9) 12.042%,rgba(25,30,40,0) 86.786%),#325aeb}
.exploration-stack{position:absolute;inset:0 0 72px}
.exploration-card{position:absolute;display:flex;align-items:center;justify-content:center;left:22%;top:6%;width:72%;height:68%;padding:0;border:1px solid rgba(255,255,255,.55);border-radius:14px;background:#eff2f8;overflow:hidden;cursor:zoom-in;box-shadow:8px 16px 37px rgba(26,31,46,.31);z-index:4;transition:top .5s cubic-bezier(.22,1,.36,1),left .5s cubic-bezier(.22,1,.36,1),filter .4s,box-shadow .4s}
.case-figure .exploration-card img{display:block;width:100%;height:100%;object-fit:contain;border-radius:0;pointer-events:none}
.exploration-card[data-depth="1"]{left:17%;top:6%;z-index:3;filter:brightness(.8);cursor:pointer}
.exploration-card[data-depth="2"]{left:12%;top:6%;z-index:2;filter:brightness(.65);cursor:pointer}
.exploration-card[data-depth="3"]{left:7%;top:6%;z-index:1;filter:brightness(.5);cursor:pointer}
.exploration-card:not([data-depth="0"]):hover{filter:brightness(.95)}
.exploration-toolbar{position:absolute;bottom:24px;left:28px;right:28px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.exploration-picker{display:flex;gap:8px}
.exploration-picker button[aria-pressed="true"]{color:#1e242e;background:#fff;border-color:#fff}
.exploration-gallery button:focus-visible{outline:3px solid #ffdc45;outline-offset:4px}
#key-decisions figcaption{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
@media(max-width:760px){
 .exploration-gallery{aspect-ratio:1/1;min-height:350px;border-radius:0}
 .exploration-stack{bottom:80px}
 .exploration-card{width:82%;height:62%;left:14%;top:6%;border-radius:8px}
 .exploration-card[data-depth="1"]{left:10.5%;top:6%}
 .exploration-card[data-depth="2"]{left:7%;top:6%}
 .exploration-card[data-depth="3"]{left:3.5%;top:6%}
 .exploration-toolbar{left:16px;right:16px;bottom:20px;gap:8px}
 .exploration-picker{gap:5px}
 .exploration-picker button{padding:8px 11px;min-height:44px}
}
@media(prefers-reduced-motion:reduce){.exploration-card{transition:none}}

/* Preserve each Figma export's proportions and transparent rounded corners. */
.exploration-card{width:70%;height:auto;left:24%;top:6%;border:0;border-radius:0;background:transparent;overflow:visible;box-shadow:none;cursor:pointer;filter:drop-shadow(8px 16px 25px rgba(26,31,46,.31))}
.case-figure .exploration-card img{width:100%;height:auto;object-fit:contain;border-radius:0}
.exploration-picker{gap:0;align-items:center}
.exploration-picker button{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer}
.exploration-picker button span{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.45);transition:background .2s,transform .2s}
.exploration-picker button[aria-pressed="true"]{background:transparent}
.exploration-picker button[aria-pressed="true"] span{background:#fff;transform:scale(1.25)}
.exploration-arrows{display:flex;gap:8px}
.exploration-arrow{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:transparent;color:white;font:inherit;font-size:24px;cursor:pointer}
@media(hover:hover){.exploration-arrow:hover{background:rgba(255,255,255,.14)}.exploration-picker button:hover span{background:white}}
@media(max-width:760px){.exploration-card{width:82%;height:auto;left:14%;top:6%}}

.feature-preview-trigger{display:inline;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.feature-preview-trigger:hover,.feature-preview-trigger:focus-visible{color:inherit}
.feature-preview-trigger:focus-visible{outline:2px solid #2f73ff;outline-offset:4px;border-radius:2px}
.feature-preview{position:fixed;z-index:1000;width:600px;max-width:calc(100vw - 32px);filter:drop-shadow(0 12px 24px rgba(20,29,55,.24));line-height:0}
.feature-preview[hidden]{display:none}
.feature-preview img{display:block;width:100%;height:auto;border-radius:0}
.feature-preview-trigger{vertical-align:top}
.feature-preview{border-radius:14px;overflow:hidden;filter:none;box-shadow:0 12px 24px rgba(20,29,55,.24)}
.feature-preview img{border-radius:inherit}

/* Clip the rectangular export bounds to each screen's rounded silhouette. */
.exploration-card{border-radius:1.4cqw;overflow:hidden}
.exploration-gallery{aspect-ratio:1152/720}
.exploration-stack{bottom:56px}
.exploration-toolbar{bottom:8px;left:20px;right:20px;gap:8px}
.exploration-picker button{width:32px}
.exploration-arrows{gap:0}
.exploration-arrow{border:0;border-radius:0}
@media(hover:hover){.exploration-arrow:hover{background:transparent;color:rgba(255,255,255,.7)}}
@media(max-width:760px){
 .exploration-gallery{aspect-ratio:1/1}
 .exploration-toolbar{left:8px;right:8px;bottom:4px}
 .exploration-card{border-radius:1.4cqw}
   }

/* Cards retain their slots; selection only brings one above the others. */
.exploration-card{transition:filter .25s}
.exploration-card[aria-pressed="true"]{z-index:5;filter:drop-shadow(8px 16px 25px rgba(26,31,46,.31))}
.exploration-card[aria-pressed="false"]{filter:brightness(.65)}
.exploration-card[aria-pressed="false"]:hover{filter:brightness(.85)}
/* Trim the unused lower edge of the recording without hiding player controls. */
#outcome>.case-figure{aspect-ratio:1920/1060}
#outcome .case-video{height:100%;object-fit:cover;object-position:center top}
#outcome .case-video:fullscreen{height:100%;object-fit:contain}
@media(max-width:760px){#outcome>.case-figure,#outcome .case-video{border-radius:0}}

/* All exploration screens share one top edge, independent of selection. */
.exploration-card[data-depth]{top:6%}
@media(max-width:760px){.exploration-card[data-depth]{top:6%}}

/* Fit the gallery to its tallest screen plus compact navigation spacing. */
.exploration-gallery{aspect-ratio:auto;height:0;padding-top:calc(45.5% + 84px);min-height:0}
.exploration-card[data-depth]{top:24px;box-shadow:0 4px 10px rgba(10,17,35,.22),0 12px 28px rgba(10,17,35,.35)}
.exploration-card[aria-pressed="true"]{filter:none}
@media(max-width:760px){
 .exploration-gallery{height:0;padding-top:calc(53.3% + 76px);min-height:0}
 .exploration-card[data-depth]{top:16px}
}

.exploration-heading{margin:0;font-size:18px;line-height:1.3;font-weight:600}
@media(max-width:760px){.exploration-heading{margin-inline:var(--inset);font-size:16px}}
.exploration-card[aria-pressed="true"]:hover{filter:none}

/* Keep case navigation consistent regardless of homepage stylesheet version. */
.case-page a:hover{text-decoration:none}
.case-page .back-link:hover,.case-page .case-return a:hover,.case-page #navigation a:hover{color:#2f73ff;text-decoration:none}

/* Crop the screenshot to the modal content, excluding the backdrop and close control. */
.messenger-preview{aspect-ratio:2016/1280;background:#eff2f7}
.messenger-preview img{position:absolute;width:104.365079%;max-width:none;height:auto;left:-2.281746%;top:-3.28125%;border-radius:0}

.feature-preview video{display:block;width:100%;height:auto;border-radius:inherit}

/* Preserve the full modal inset; mask only the close button at its corner. */
.preview-corner{position:absolute;right:0;top:0;width:2.6%;height:3.8%;background:#eff2f7;pointer-events:none}
#outdoor-preview .preview-corner{background:#e9f0f5}
.preview-corner::after{content:"";position:absolute;left:0;bottom:0;top:47%;right:47%;background:#fff;border-top-right-radius:7px}

.outcome-links{display:flex;flex-wrap:wrap;gap:16px;margin-top:28px}

.handoff-dialog{position:fixed;inset:16px;width:calc(100vw - 32px);height:calc(100dvh - 32px);max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:16px;background:#1e242e;color:#242520;overflow:hidden}
.handoff-dialog::backdrop{background:rgba(15,20,30,.65)}
.handoff-toolbar{height:56px;display:flex;align-items:center;gap:20px;padding:0 20px;background:white}
.handoff-toolbar span{margin-right:auto}
.handoff-toolbar button{border:0;background:none;color:inherit;font:inherit;cursor:pointer;padding:8px}
#handoff-close{font-size:28px}
.handoff-viewport{height:calc(100% - 56px);overflow:auto;overscroll-behavior:contain;padding:16px;box-sizing:border-box}
.handoff-image{display:block;border:0;padding:0;margin:auto;background:none;cursor:zoom-in;line-height:0}
.handoff-image img{display:block;width:100%;height:100%;max-width:none}
.handoff-dialog.is-zoomed .handoff-image{cursor:zoom-out;margin:0}
@media(max-width:600px){.handoff-dialog{inset:8px;width:calc(100vw - 16px);height:calc(100dvh - 16px)}.handoff-toolbar{padding:0 10px;gap:8px;font-size:14px}}

.handoff-image{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:5361fr 5362fr;overflow:hidden}

.preview-eye{display:inline-block;width:16px;height:16px;margin-left:2px;margin-right:0;color:var(--secondary);vertical-align:-2px;flex-shrink:0}
.handoff-toolbar{color:#242520}

@media(max-width:600px){
 .handoff-dialog{inset:0;width:100%;height:100dvh;border-radius:0}
 .handoff-toolbar{height:calc(56px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);padding-left:16px;padding-right:16px}
 #handoff-zoom{display:none}
 .handoff-viewport{position:relative;height:calc(100% - 56px - env(safe-area-inset-top));padding:0;overflow:hidden;touch-action:none}
 .handoff-image,.handoff-dialog.is-zoomed .handoff-image{position:absolute;left:0;top:0;margin:0;transform-origin:0 0;cursor:default;user-select:none;-webkit-user-select:none}
 .handoff-image img{pointer-events:none;-webkit-user-drag:none}
}
@media(max-width:600px){
 #handoff-close:focus,#handoff-close:focus-visible{outline:none;box-shadow:none}
}

.exploration-label{position:absolute;z-index:6;pointer-events:none;top:20px;left:7%;right:7%;color:#fff;font-size:18px;line-height:24px;margin:0}
.exploration-gallery{padding-top:calc(45.5% + 132px)}
.exploration-card[data-depth]{top:72px}
@media(max-width:760px){.exploration-label{top:16px;left:3.5%;right:3.5%;font-size:16px;line-height:22px}.exploration-gallery{padding-top:calc(53.3% + 132px)}.exploration-card[data-depth]{top:72px}}

.research-findings{margin:24px 0 28px;padding-left:1.5em}
.research-findings li+li{margin-top:16px}

.case-section>.case-copy.research-results{grid-row:auto}

/* Section links use the homepage metadata tag treatment. */
.case-section-nav{display:flex;flex-wrap:wrap;gap:4px;color:var(--secondary);font-size:16px;line-height:24px}
.case-section-nav-item{display:inline-flex;align-items:baseline;gap:4px}
.case-section-nav a{white-space:nowrap;text-decoration:none}
.case-section-nav a:hover,.case-section-nav a:focus-visible{color:#307bff;text-decoration:none}

/* Compact original UX artifacts, with an accessible enlarged viewer. */
.ux-artifacts{display:flex;gap:20px;flex-wrap:wrap;margin:24px 0 28px}
.ux-artifacts figure{margin:0;width:220px;max-width:100%}
.ux-artifact{display:flex;flex-direction:column;gap:8px;color:var(--secondary);font-size:12px;line-height:18px;cursor:zoom-in;text-decoration:none}
.ux-artifact img{width:100%;height:140px;object-fit:contain;background:var(--media);border:1px solid var(--border);border-radius:10px;padding:8px;box-sizing:border-box}
.ux-artifact:hover img{border-color:currentColor}
.ux-artifacts figcaption{font-size:14px;line-height:20px;margin-top:6px}
.ux-dialog{width:calc(100vw - 32px);max-width:1400px;height:calc(100dvh - 32px);max-height:none;padding:0;border:1px solid var(--border);border-radius:14px;background:var(--bg,#fff);color:var(--text,#222)}
.ux-dialog::backdrop{background:rgba(0,0,0,.72)}
.ux-dialog-toolbar{display:flex;align-items:center;gap:16px;padding:12px 16px;height:60px;box-sizing:border-box;border-bottom:1px solid var(--border)}
.ux-dialog-toolbar span{flex:1;font-size:14px}
.ux-dialog-toolbar button{font:inherit;color:inherit;background:transparent;border:0;cursor:pointer;white-space:nowrap}
#ux-close{font-size:28px}
.ux-image-viewport{height:calc(100% - 60px);padding:24px;box-sizing:border-box;overflow:auto;text-align:center;overscroll-behavior:contain}
.ux-image-viewport svg{display:block;width:100%;height:100%}
.ux-dialog{box-shadow:none}
@media(max-width:540px){.ux-artifacts{gap:12px}.ux-artifacts figure{width:calc(50% - 6px)}.ux-artifact img{height:110px}.ux-dialog-toolbar{gap:10px}}

#outcome>.case-figure:has(.before-after-video){aspect-ratio:auto}
#outcome .before-after-video{width:100%;height:auto;aspect-ratio:1920/968;margin-inline:0;object-fit:contain}
.case-copy a.benchmarks-link{border-bottom:0;padding-bottom:2px;background-image:linear-gradient(#ccc,#ccc);background-size:100% 1px;background-position:left bottom 3px;background-repeat:no-repeat}
