/* Navy scrims support the text while the centre of the original painting stays clear. */
.curious-product{position:fixed;inset:0;margin:auto;width:min(700px,78dvh,calc(100vw - 32px));height:calc(100dvh - 32px);max-width:none;max-height:none;padding:0;border:1px solid #0055ff;box-shadow:5px 5px 0 #0055ff;background:#263958;color:#263958;font:16px/1.45 AgencyOnion,Arial,sans-serif;overflow:hidden}
.curious-product[open]{display:grid;grid-template-rows:auto minmax(60px,1fr) auto auto}
.curious-product::backdrop{background:#142b43c9}
.curious-product *{box-sizing:border-box}
.curious-product-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 40%;z-index:-2}
.curious-product::after{content:"";position:absolute;grid-column:1;grid-row:3 / 5;inset:-56px 0 0;background:linear-gradient(180deg,rgba(16,39,60,0),rgba(16,39,60,.86) 56px,rgba(16,39,60,.94));pointer-events:none;z-index:-1}
.curious-product-heading{grid-row:1;padding:24px 70px 22px 24px;background:linear-gradient(180deg,rgba(16,39,60,.9),rgba(16,39,60,.72) 65%,rgba(16,39,60,0));color:#fff8e5;pointer-events:none}
.curious-product-heading p{font-size:14px;margin:0 0 8px;color:#fff8e5}
.curious-product-heading h2{font:400 clamp(32px,5vw,46px)/1.05 larken,Georgia,serif;letter-spacing:-.035em;margin:0}
.curious-product-heading h2:focus{outline:none}
.curious-product-close{position:absolute;right:12px;top:max(12px,env(safe-area-inset-top));width:44px;height:44px;min-height:44px;border:1px solid #26395833;background:#fff8e5;color:#263958;font:32px/1 Arial,sans-serif;cursor:pointer;z-index:2}
.curious-product-copy{grid-row:3;color:#fff8e5;max-height:32dvh;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;background:none;padding:16px 24px 0}
.curious-product-copy p{margin:0 0 12px;font-size:17px;line-height:1.45}
.curious-product-copy .curious-product-waitlist{font-size:14px;color:#fff8e5}
.curious-product-footer{grid-row:4;color:#fff8e5;padding:4px 24px max(20px,env(safe-area-inset-bottom));background:none}
.curious-product-footer .button{width:100%;min-height:44px;white-space:normal;border:1px solid #0055ff;background:#0055ff;color:#fff8e5;font:inherit;padding:10px 14px;text-align:center;cursor:pointer}
.curious-product-pause{font-size:13px;line-height:1.35;margin:6px 0 10px;color:#fff8e5}
.curious-product :is(button,.curious-product-copy):focus-visible{outline:2px solid #0055ff;outline-offset:-4px}
.curious-product[data-art-unavailable=true]{background:#142b43}
.curious-product[data-art-unavailable=true] .curious-product-heading{color:#fff8e5}
.curious-product[data-art-unavailable=true] .curious-product-heading p{color:#fff8e5}
.curious-resource-about{position:relative;z-index:2;width:44px;min-width:44px;height:44px;padding:0;border:0;background:transparent;color:#0055ff;font:italic 20px/1 Georgia,serif;cursor:pointer}
.curious-resource-about:after{content:'';position:absolute;inset:10px;border:1px solid currentColor;border-radius:50%;pointer-events:none}
.curious-resource-about:focus-visible{outline:2px solid #0055ff;outline-offset:-2px}
.agency-shell [data-sup-resource] .shell-sup-view{right:44px}
.agency-shell .opening-actions .curious-opening-link{color:#fff8e5;background:#263958c9;border:1px solid #fff8e588;box-shadow:none;font-size:14px;min-height:44px;padding:8px 14px;white-space:normal}
.welcome-product button{font:inherit;color:#0055ff;min-height:44px;padding:6px 0;border:0;background:transparent;text-decoration:underline;cursor:pointer}
@media(max-width:760px) and (orientation:portrait){
 .curious-product{width:100vw;height:100dvh;margin:0;border:0;box-shadow:none}
 .curious-product-heading{padding:calc(16px + env(safe-area-inset-top,0px)) 64px 24px 20px}
 .curious-product-heading h2{font-size:clamp(32px,8.5vw,40px)}
 .curious-product-copy{max-height:30dvh;padding:14px 20px 0}
 .curious-product-copy p{font-size:16px}
 .curious-product-copy .curious-product-waitlist{font-size:13px}
 .curious-product-footer{padding:2px 20px max(16px,env(safe-area-inset-bottom,0px))}
 .agency-shell .resource[data-sup-resource]{gap:4px}
 .agency-shell [data-sup-resource] .resource-label{font-size:12px}
}
@media(max-height:500px) and (orientation:landscape){
 .curious-product[open]{grid-template-rows:minmax(0,1fr) auto}
 .curious-product::after{grid-column:2;grid-row:1 / 3;inset:0;background:rgba(16,39,60,.6)}
 .curious-product{width:calc(100vw - 24px);height:calc(100dvh - 24px);grid-template-columns:minmax(0,1.1fr) minmax(280px,1fr);grid-template-rows:minmax(0,1fr) auto}
 .curious-product-art{width:52%;object-fit:cover;object-position:50% 27%}
 .curious-product-heading{grid-row:1;grid-column:1;align-self:start;padding:12px 16px 24px}
 .curious-product-heading p{font-size:12px;margin-bottom:6px}
 .curious-product-heading h2{font-size:30px}
 .curious-product-copy{grid-column:2;grid-row:1;max-height:none;padding:58px 20px 0;background:none}
 .curious-product-copy p{font-size:15px;margin-bottom:10px}
 .curious-product-footer{grid-column:2;grid-row:2;background:none;padding:6px 20px 12px}
 .curious-product-close{right:8px;top:8px}
}

.curious-text-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;padding:8px 0;border:0;background:transparent;color:#0055ff;font:inherit;text-align:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer;white-space:normal}
.curious-text-link:focus-visible{outline:2px solid #0055ff;outline-offset:2px}

/* Product discovery stays with the visible result controls, outside Details. */
.agency-shell .shift-moments .moment-result-bottom:has(>.moment-real-sup){flex-wrap:wrap}
.agency-shell .shift-moments .moment-result-bottom>.moment-real-sup{flex:0 0 100%;margin:0 0 6px;padding:0;border:0}
.agency-shell .shift-moments .moment-result-bottom>.moment-real-sup .curious-text-link{width:100%;min-height:44px;font-size:14px}
.agency-shell .week-report-card footer>.curious-text-link{grid-column:1/-1;flex-basis:100%;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid #0055ff;font-size:14px;text-align:center}
@media(max-width:760px),(max-height:440px) and (orientation:landscape){
 .connected-pitch-slice.agency-shell #shift-moments .moment-result-mobile .moment-result-bottom{display:block}
 .connected-pitch-slice.agency-shell #shift-moments .moment-result-mobile .moment-result-bottom>.moment-real-sup{display:block;margin:0;padding:0;border:0}
}
