/* Boost case — local layout adapted from the first portfolio case. */
.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>.boost-home{grid-row:1}
  #outcome>h2,#outcome>.case-copy{grid-row:2}
}


/* Boost-specific images; shared site styles remain read-only. */
.boost-image-open{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in;color:inherit;line-height:0}
.case-figure .boost-image-open img{display:block;width:100%;height:auto;border-radius:14px}
.boost-access-screens{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:start;padding:32px;background:#e8e4f5;border-radius:14px}
.boost-access-screens figure{display:flex;flex-direction:column;gap:16px;min-width:0}
.boost-access-screens figcaption{color:#505368}
.case-page a:hover{color:#2f73ff;text-decoration:none}
.boost-viewer{position:fixed;inset:16px;margin:0;padding:0;border:0;border-radius:14px;width:calc(100vw - 32px);height:calc(100dvh - 32px);max-width:none;max-height:none;background:#e9edf5;color:#242520;overflow:hidden}
.boost-viewer::backdrop{background:#111827c9}
.boost-viewer-toolbar{display:flex;align-items:center;gap:12px;height:60px;padding:8px 20px;background:#fff}
.boost-viewer-toolbar span{margin-right:auto;font-size:16px}
.boost-viewer-toolbar button{min-width:44px;min-height:44px;padding:6px 10px;border:0;background:none;cursor:pointer;color:inherit;font-size:15px}
.boost-viewer-toolbar [data-close]{font-size:28px}
.boost-viewer-viewport{height:calc(100% - 60px);overflow:auto;padding:24px;display:flex;align-items:flex-start}
.boost-viewer-viewport img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;margin:auto}
.boost-viewer.is-zoomed .boost-viewer-viewport img{max-width:none;max-height:none;margin:0 auto}
@media(max-width:760px){
 .case-figure .boost-image-open img{border-radius:0}
 .boost-access-screens{grid-template-columns:1fr;padding:24px;gap:32px;border-radius:0}
 .boost-access-screens .boost-image-open img{border-radius:12px}
 .case-page .boost-access-screens figcaption{margin-inline:0}
 .boost-viewer{inset:0;width:100%;height:100dvh;border-radius:0}
 .boost-viewer-viewport{padding:12px}
 .boost-viewer-toolbar{padding-inline:12px}
 .boost-viewer-toolbar span{font-size:14px}
 .boost-viewer-toolbar button{font-size:13px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Reuse the Boost cover artwork behind the Home screen. */
.boost-home{padding:48px;background:#10141f url("assets/boost-cover/background.webp") center / cover no-repeat;border-radius:14px}
.boost-home .boost-image-open{border-radius:14px;box-shadow:0 16px 48px #29204426;overflow:hidden}
@media(max-width:760px){.boost-home{padding:24px;border-radius:0}.boost-home .boost-image-open{border-radius:8px}.case-page .boost-home img{border-radius:8px}}

/* Match the Retail Media picker shell, caption and arrow controls. */
.boost-access-gallery{display:block;border:1px solid var(--border);border-radius:14px;overflow:hidden;background:var(--background,#fff)}
.boost-access-stage{display:flex;justify-content:center;align-items:flex-start;padding:8px 16px;background:#e8e4f5}
.boost-access-slide{width:var(--access-screen-width,350px);max-width:100%;flex:none}
.boost-access-slide[hidden]{display:none}
.case-page .boost-access-slide .boost-image-open img{width:100%;height:auto;border-radius:10px}
.case-page .boost-access-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 20px;margin:0;font-size:14px;line-height:22px}
.boost-access-toolbar p{flex:1;min-width:0;color:var(--secondary)}
.boost-access-controls{display:flex;flex-shrink:0;gap:8px}
.boost-access-controls button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--border);border-radius:50%;background:transparent;color:var(--text);cursor:pointer}
.boost-access-controls svg{display:block;width:20px;height:20px}
.boost-access-controls button:hover{background:var(--media)}
.boost-access-controls button:focus-visible{outline:2px solid #141b20;outline-offset:2px}
@media(max-width:760px){.boost-access-gallery{border-left:0;border-right:0;border-radius:0}.case-page .boost-access-toolbar{margin-inline:0}}

/* Keep navigation above the image while each screen takes its natural height. */
.boost-access-gallery{display:flex;flex-direction:column;gap:0;height:auto}
.case-page .boost-access-toolbar{order:-1;min-height:76px;flex:none}
.boost-access-stage{flex:none;padding:24px}
.boost-access-slide{width:min(560px,100%)}
@media(max-width:760px){.boost-access-stage{padding:16px}}

.case-page .case-section-nav{position:static;display:flex;flex-wrap:wrap;flex-direction:row;align-items:baseline;justify-content:flex-start;gap:4px 8px;padding:0;margin-block:-32px;background:none;box-shadow:none;color:var(--secondary);font-size:16px;line-height:24px}
.case-page .case-section-nav a{padding:0;width:auto;white-space:nowrap}
.case-page .case-section-nav a:hover{color:#307bff}
@media(min-width:901px){.case-page .case-section-nav{margin-block:-56px}}
@media(max-width:900px){.case-page .case-section-nav{margin-block:-16px}}
@media(max-width:540px){.case-page .case-section-nav{margin-block:-8px}}
.boost-signup-gallery .boost-access-slide{width:min(1040px,100%)}

/* Result cards follow the Space case, using Boost's violet palette. */
.boost-result{display:grid;grid-template-columns:auto minmax(0,1fr);gap:32px;align-items:center;padding:32px;border-radius:14px;background:#e8e0fb;color:#242033}
.boost-result-number{font-size:40px;font-weight:400;letter-spacing:-.035em;line-height:1.1;white-space:nowrap;font-variant-numeric:lining-nums proportional-nums}
.boost-result-number>span{font-size:.55em;letter-spacing:0;margin-left:.035em}
.boost-result-number>.boost-result-arrow{font-size:.6em;margin-inline:.3em}
.boost-result h3{font-size:24px;font-weight:400;line-height:30px;letter-spacing:-.5px;margin:0 0 12px}
.boost-result p{font-size:16px;line-height:24px;margin:0}
.boost-home-followup{display:flex;flex-direction:column;gap:24px;margin-top:16px;min-width:0}
.boost-home-followup>h3{font-size:28px;font-weight:400;line-height:36px;letter-spacing:-.8px;margin:0}
.boost-recommendation-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;min-width:0}
.boost-recommendation-results .boost-result{grid-template-columns:1fr;gap:20px;align-content:start}
.boost-result-resolved{background:#7544d5;color:#fff}
.boost-results-note{grid-column:1/-1;max-width:950px;color:var(--secondary);font-size:14px;line-height:21px;margin:0}
.boost-signup-results,.boost-access-results{grid-column:1/-1}
.boost-signup-results>.boost-results-note,.boost-access-results>.boost-results-note{max-width:none;text-wrap:balance}
@media(min-width:901px){
 .boost-home-followup{grid-column:1/-1;display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,700px);column-gap:64px;row-gap:32px}
 .boost-home-followup>h3{grid-column:1}
 .boost-home-followup>.case-copy{grid-column:2;max-width:700px}
 .boost-home-followup>.case-figure,.boost-home-followup>.boost-recommendation-results{grid-column:1/-1}
}
@media(max-width:760px){
 .boost-recommendation-results{grid-template-columns:1fr;gap:16px}
 .boost-recommendation-results .boost-result{grid-template-columns:auto minmax(0,1fr);gap:24px}
 .boost-result{padding:24px;gap:24px}
 .boost-result-number{font-size:36px}
 .boost-result h3{font-size:22px;line-height:28px}
}
@media(max-width:540px){
 .boost-result,.boost-recommendation-results .boost-result{grid-template-columns:1fr;gap:16px}
 .boost-home-followup>h3{font-size:26px;line-height:32px}
}

/* A quiet, compact access result aligned with the case copy. */
.boost-access-results{width:100%;max-width:700px;justify-self:end}
.boost-access-results>.boost-result{grid-column:1/-1;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:20px;padding:20px 24px;border-radius:12px;background:#f2edfb;color:#242033}
.boost-access-results .boost-result-number{font-size:36px;color:#7544d5}
.boost-access-results .boost-result h3{font-size:18px;line-height:24px;letter-spacing:-.2px;margin:0 0 4px}
.boost-access-results .boost-result p{font-size:14px;line-height:20px;color:#5f586e}
@media(min-width:901px){.boost-access-results{grid-column:2}}
@media(max-width:540px){.boost-access-results>.boost-result{padding:16px;gap:16px}.boost-access-results .boost-result-number{font-size:32px}}
