/* Scoped proof gallery: fixed media stage, no autoplay or layout animation. */
#proof .rf-proof-gallery{display:block;position:relative;aspect-ratio:auto;overflow:hidden;margin:24px 0 0;padding:18px;isolation:isolate;border:1px solid #ffffff24;border-radius:24px;background:radial-gradient(ellipse at 12% 0,#c0cad114,transparent 58%),linear-gradient(145deg,#1a1b20e8,#0b0b10f5);box-shadow:inset 0 1px 0 #ffffff30,inset 0 -1px 0 #ffffff0b,0 20px 55px #0005;transform:none!important}
#proof .rf-proof-gallery::after{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:inset 1px 0 0 #ffffff10}
#proof .rf-proof-top{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#b9bbc3;font:500 10px/1.5 Inter,Arial,sans-serif;letter-spacing:.09em;margin-bottom:14px}
#proof .rf-proof-count{font-size:12px;letter-spacing:.12em;font-variant-numeric:tabular-nums}
#proof .rf-proof-stage{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:14px}
#proof .rf-proof-image{display:block;width:100%;aspect-ratio:16/10;border:0;border-radius:12px;overflow:hidden;padding:0;background:#08090c;cursor:zoom-in;touch-action:pan-y pinch-zoom}
#proof .rf-proof-image img{display:block!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;object-position:center!important;transform:none!important;filter:none!important;border-radius:0!important}
.rf-proof-arrow.rf-case-lg{display:grid;place-items:center;width:48px;height:48px;min-width:48px;padding:0;color:#f7f7fa;--rf-case-lg-tint:24 26 32;--rf-case-lg-tint-a:.7;--rf-case-lg-rim-top:.8;--rf-case-lg-rim-side:.16;--rf-case-lg-rim-bottom:.35;--rf-case-lg-refraction:22;--rf-case-lg-band:7;--rf-case-lg-blur-svg:6;--rf-case-lg-blur:12px;--rf-case-lg-shadow:0 6px 18px #0004;transition:color .18s,box-shadow .18s}
.rf-proof-arrow .rf-case-lg-content{display:grid;place-items:center;pointer-events:none}.rf-proof-arrow svg{display:block}.rf-proof-arrow:hover{color:#ffd4a4;box-shadow:0 0 20px #ffad5826,inset 0 1px 0 #ffffff40}.rf-proof-arrow:focus-visible,.rf-proof-expand:focus-visible,.rf-proof-image:focus-visible{outline:2px solid #ffd4a4;outline-offset:4px}
#proof .rf-proof-caption{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:44px;margin-top:12px;color:#bcbec5;font:400 12px/1.4 Inter,Arial,sans-serif}
#proof .rf-proof-expand{display:flex;align-items:center;justify-content:center;gap:7px;border:0;padding:8px 0;background:transparent;color:#f0f0f3;font:500 12px/1.4 Inter,Arial,sans-serif;white-space:nowrap;cursor:zoom-in}#proof .rf-proof-expand svg{width:15px;height:15px}
#proof .stats-panel .story-panel__card{padding:clamp(20px,3vw,42px)}
.rf-proof-dialog{position:fixed;inset:0;width:min(1440px,calc(100% - 40px));height:min(94dvh,1100px);max-width:none;max-height:none;margin:auto;padding:20px;border:1px solid #ffffff38;border-radius:24px;background:#101116f5;color:#f5f5f8;box-shadow:inset 0 1px 0 #ffffff50,0 30px 100px #0009;overflow:clip;box-sizing:border-box}
.rf-proof-dialog:not([open]){display:none}.rf-proof-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:16px;animation:rf-proof-reveal .22s ease-out}.rf-proof-dialog::backdrop{background:#030406d9;backdrop-filter:blur(10px)}
.rf-proof-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;font:500 14px/1.4 Inter,Arial,sans-serif}.rf-proof-full{min-height:0;overflow:auto;display:flex;align-items:center;justify-content:center;touch-action:pan-y pinch-zoom}.rf-proof-full img{display:block;width:100%;height:100%;object-fit:contain;max-width:100%;max-height:100%;border-radius:8px}.rf-proof-dialog-nav{display:flex;align-items:center;justify-content:center;gap:22px;color:#bcbec5;font:400 12px/1.4 Inter,Arial,sans-serif}
html.rf-proof-expanded{overflow:hidden!important}html.rf-proof-expanded body{overflow:hidden!important}
@keyframes rf-proof-reveal{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:901px){#proof .studio__mobile-proof{display:none!important}}
@media(max-width:900px){#proof .studio__tabs{display:none!important}#proof .studio__mobile-proof{display:none!important}#proof .studio__sticky{position:relative;top:auto;padding-bottom:0}#proof .studio__story{gap:24px}#proof .stats-panel__proof{display:block!important}#proof .stats-panel{margin-top:20px}#proof .stats-panel .story-panel__card{padding:18px 12px}#proof .rf-proof-gallery{padding:14px 10px;margin-top:16px;border-radius:20px}#proof .rf-proof-stage{grid-template-columns:44px minmax(0,1fr) 44px;gap:6px}#proof .rf-proof-image{aspect-ratio:4/3}#proof .rf-proof-arrow.rf-case-lg{width:44px;height:44px;min-width:44px}#proof .rf-proof-caption{font-size:11px;gap:8px}#proof .rf-proof-top{font-size:9px}#proof .rf-proof-stage{position:relative;display:block;padding-bottom:58px}#proof .rf-proof-stage>.rf-proof-arrow{position:absolute;bottom:0}#proof .rf-proof-stage>.rf-proof-arrow:first-child{left:calc(50% - 54px)}#proof .rf-proof-stage>.rf-proof-arrow:last-child{right:calc(50% - 54px)}#proof .rf-proof-image{aspect-ratio:4/3}#proof .rf-proof-caption{margin-top:6px}#proof .stats-panel__numbers{margin-top:22px}.rf-proof-dialog{width:calc(100% - 16px);height:calc(100dvh - 24px);padding:14px 10px;border-radius:20px}.rf-proof-dialog-head{font-size:12px}.rf-proof-dialog-nav{padding-bottom:env(safe-area-inset-bottom)}}
@media(prefers-reduced-motion:reduce){.rf-proof-dialog[open]{animation:none}}
#proof .rf-proof-image{aspect-ratio:16/9}
#proof .rf-proof-dialog .rf-proof-full img{position:static!important;display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;transform:none!important;filter:none!important;margin:0!important}

/* Final case study layout; every selector is gallery-scoped. */
#proof .rf-proof-gallery{padding:0;border-radius:20px;background:linear-gradient(140deg,#18191d,#0b0c10);box-shadow:inset 0 1px 0 #ffffff24,0 16px 38px #0003}
#proof .rf-proof-top{padding:17px 18px;margin:0;font-size:10px;letter-spacing:.07em}
#proof .rf-proof-stage{display:block;position:relative;padding:0}
#proof .rf-proof-image{aspect-ratio:auto!important;height:clamp(330px,38vw,560px);border-radius:0;background:#090a0d}
#proof .rf-proof-stage>.rf-proof-arrow{position:absolute;top:50%;bottom:auto;z-index:3;transform:translateY(-50%);width:44px;height:44px;min-width:44px}
#proof .rf-proof-stage>.rf-proof-arrow:first-child{left:10px;right:auto}
#proof .rf-proof-stage>.rf-proof-arrow:last-child{right:10px;left:auto}
#proof .rf-proof-caption{padding:9px 18px;margin:0;min-height:48px;border-bottom:1px solid #ffffff14;font-size:11px}
#proof .rf-case-story{padding:24px 22px 0;min-height:278px}
#proof .rf-case-channel{margin:0 0 10px;font:500 10px/1.5 Inter,Arial,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:#b3b5be}
#proof .rf-case-story h3{margin:0 0 12px;color:#f2f1f3;font:500 clamp(23px,2.4vw,35px)/1.12 Inter,Arial,sans-serif;letter-spacing:-.045em}
#proof .rf-case-description{margin:0;min-height:64px;font:400 14px/1.65 Inter,Arial,sans-serif;color:#b9bbc4}
#proof .rf-case-facts{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:22px;padding-top:18px;border-top:1px solid #ffffff20}
#proof .rf-case-fact{display:flex;flex-direction:column;gap:7px}
#proof .rf-case-fact strong{font:500 clamp(30px,3.1vw,47px)/1 Inter,Arial,sans-serif;letter-spacing:-.05em;background:linear-gradient(110deg,#ee688d,#ff9c44);background-clip:text;-webkit-background-clip:text;color:transparent}
#proof .rf-case-fact span{font:400 11px/1.45 Inter,Arial,sans-serif;color:#b6b8c1}
#proof .rf-case-note{padding:15px 22px 20px;margin:0;color:#8f929d;font:400 10px/1.5 Inter,Arial,sans-serif}
#proof .rf-proof-dialog[open]{grid-template-rows:auto minmax(0,1fr) auto auto}
#proof .rf-case-modal-story{max-width:760px;width:100%;justify-self:center;padding:12px 4px;border-top:1px solid #ffffff20}
#proof .rf-case-modal-story strong{display:block;font:500 17px/1.3 Inter,Arial,sans-serif;letter-spacing:-.02em}
#proof .rf-case-modal-story p{margin:6px 0 0;color:#b8bbc5;font:400 12px/1.55 Inter,Arial,sans-serif}
@media(max-width:900px){#proof .rf-proof-image{height:clamp(280px,47svh,410px)!important}#proof .rf-proof-top{padding:14px 13px;font-size:9px}#proof .rf-proof-caption{padding:7px 13px;gap:8px}#proof .rf-proof-caption>span{max-width:54%;font-size:10px}#proof .rf-case-story{padding:20px 16px 0;min-height:282px}#proof .rf-case-description{font-size:13px;min-height:82px}#proof .rf-case-facts{gap:12px;margin-top:17px}#proof .rf-case-fact strong{font-size:34px}#proof .rf-case-note{padding:14px 16px 18px}#proof .stats-panel .story-panel__card{padding:18px 0 0;background:transparent;box-shadow:none;border:0}#proof .stats-panel .story-panel__card>.eyebrow{padding-inline:4px}#proof .rf-case-modal-story{padding:8px 3px}#proof .rf-case-modal-story p{font-size:11px}#proof .rf-proof-dialog{gap:10px}}

/* Compact viewport-aware case study; no geometry changes during navigation. */
html.rf-case-in-focus .site-header,html.rf-proof-expanded .site-header{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
.site-header{transition:opacity .2s ease,visibility .2s ease}
#results .story-panel__card>.eyebrow{display:none}
#proof .rf-proof-top{padding:12px 16px;font-size:10px;text-transform:uppercase}
#proof .rf-proof-image{height:clamp(240px,40svh,480px)!important}
#proof .rf-proof-caption{position:relative;min-height:42px;padding:6px 16px;background:#111216}
#proof .rf-proof-caption>span{max-width:70%;font-size:11px;font-weight:500;line-height:1.4;color:#e9e9ed}
#proof .rf-proof-expand{font-size:11px}
#proof .rf-case-story{padding:18px 18px 0;min-height:244px}
#proof .rf-case-story h3{text-transform:none;font-size:clamp(22px,2.1vw,31px);margin-bottom:10px;min-height:2.25em}
#proof .rf-case-description{font-size:13px;line-height:1.55;min-height:62px}
#proof .rf-case-facts{margin-top:14px;padding-top:12px}
#proof .rf-case-fact strong{font-size:clamp(28px,2.8vw,40px);background:linear-gradient(96deg,#ffb168 0%,#f16a30 48%,#df4d27 100%);background-clip:text;-webkit-background-clip:text;filter:drop-shadow(0 5px 12px #e14e1f25)}
#proof .rf-case-note{padding:12px 18px 15px;font-size:9px}
#proof .rf-proof-dialog[open]{grid-template-rows:auto minmax(0,1fr) auto}
#proof .rf-proof-full{position:relative;overflow:hidden}
#proof .rf-proof-full>.rf-proof-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3}
#proof .rf-proof-full>.rf-proof-arrow:first-child{left:5px}
#proof .rf-proof-full>.rf-proof-arrow:last-child{right:5px}
@media(max-width:900px){
 #proof .studio__sticky{padding-top:24px}
 #proof .studio__sticky h2{font-size:clamp(36px,9vw,54px)}
 #proof .studio__intro{font-size:14px;line-height:1.6}
 #proof .rf-proof-image{height:clamp(230px,39svh,370px)!important}
 #proof .rf-proof-top{padding:11px 13px}
 #proof .rf-proof-caption{padding:5px 12px;gap:8px}
 #proof .rf-proof-caption>span{max-width:65%;font-size:10px}
 #proof .rf-proof-expand{font-size:10px;gap:5px}
 #proof .rf-case-story{padding:15px 14px 0;min-height:172px}
 #proof .rf-case-story h3{font-size:22px;line-height:1.15;min-height:2.3em}
 #proof .rf-case-description{display:none}
 #proof .rf-case-facts{margin-top:10px;padding-top:12px;gap:12px}
 #proof .rf-case-fact strong{font-size:30px}
 #proof .rf-case-fact span{font-size:10px;line-height:1.4}
 #proof .rf-case-note{padding:10px 14px 13px;font-size:9px}
 #proof .rf-proof-dialog{height:calc(100svh - 16px)}
}
@media(prefers-reduced-motion:reduce){.site-header{transition:none}}

#proof .rf-case-story{min-height:178px;padding-bottom:4px}
#proof .rf-case-description{display:block;min-height:4.65em}
#proof .rf-proof-caption>span{color:#ffae76}
@media(max-width:900px){
 #proof .rf-case-story{min-height:186px}
 #proof .rf-case-description{display:block;font-size:12px;line-height:1.55;min-height:6.2em;color:#bcbec5}
 #proof .rf-proof-dialog{inset:auto 0 0;width:100%;height:94svh;max-height:94svh;margin:0;border-radius:24px 24px 0 0;padding:16px 12px max(16px,env(safe-area-inset-bottom));border-bottom:0}
 #proof .rf-proof-dialog[open]{animation:rf-case-sheet-in .34s cubic-bezier(.22,1,.36,1)}
 #proof .rf-proof-dialog-head{padding:3px 2px 9px;border-bottom:1px solid #ffffff18}
 #proof .rf-case-modal-story{padding:12px 4px}
}
@keyframes rf-case-sheet-in{from{transform:translateY(100%);opacity:.7}to{transform:translateY(0);opacity:1}}
@media(prefers-reduced-motion:reduce){#proof .rf-proof-dialog[open]{animation:none}}

/* Requested type scale and mobile section hierarchy. */
#proof .rf-case-story{min-height:256px}
#proof .rf-case-story h3{font-size:clamp(28px,2.65vw,38px);font-weight:600;line-height:1.13;text-transform:capitalize}
#proof .rf-case-description{font-size:16px;line-height:1.6;font-weight:450;color:#d0d1d7;text-transform:capitalize}
#proof .rf-proof-top{font-size:11px;font-weight:600}
#proof .rf-proof-caption>span,#proof .rf-proof-expand{font-size:13px;font-weight:500}
#proof .rf-case-modal-story{max-width:900px}
#proof .rf-case-modal-story strong{font-size:clamp(24px,2.1vw,32px);font-weight:600;line-height:1.2;text-transform:capitalize}
#proof .rf-case-modal-story p{font-size:16px;line-height:1.6;font-weight:450;color:#d0d1d7;text-transform:capitalize}
@media(max-width:900px){
 #proof #principles{display:none!important}
 #proof .studio__story{gap:32px}
 #proof #results{min-height:0;margin-bottom:0;padding-bottom:0}
 #proof #preview{margin-top:0}
 #proof .rf-proof-image{height:clamp(260px,42svh,430px)!important}
 #proof .rf-case-story{min-height:290px;padding:20px 16px 8px}
 #proof .rf-case-story h3{font-size:clamp(25px,6.6vw,31px);min-height:2.26em;margin-bottom:14px}
 #proof .rf-case-description{font-size:14px;line-height:1.6;font-weight:500}
 #proof .rf-proof-caption>span,#proof .rf-proof-expand{font-size:11px}
 #proof .rf-case-modal-story strong{font-size:25px}
 #proof .rf-case-modal-story p{font-size:14px;font-weight:500;line-height:1.6}
 #proof .rf-proof-dialog-head{font-size:13px;font-weight:500}
}

/* Mobile native-scroll case-study stack. No scroll interpolation or transforms. */
#proof .rf-proof-scroll-stack{display:none}
@media(max-width:900px){
 #proof,#proof .studio__story,#proof #results,#proof #results>.story-panel__card{overflow:visible;contain:none;transform:none}
 #proof #results>.story-panel__card{padding-top:0}
 #proof .rf-proof-has-stack{isolation:auto;overflow:visible;border:0;border-radius:0;background:none;box-shadow:none;margin:20px 0 32px;padding:0;position:relative}
 #proof .rf-proof-has-stack::after{display:none}
 #proof .rf-proof-has-stack>.rf-proof-top,#proof .rf-proof-has-stack>.rf-proof-stage,#proof .rf-proof-has-stack>.rf-proof-caption,#proof .rf-proof-has-stack>.rf-case-story,#proof .rf-proof-has-stack>.rf-case-note{display:none}
 #proof .rf-proof-scroll-stack{display:block;position:relative;width:calc(100vw - 16px);margin-left:calc((100% - 100vw + 16px)/2);padding-bottom:32px}
 #proof .rf-stack-card{position:sticky;top:calc(8px + var(--stack-i)*3px);z-index:calc(1 + var(--stack-i));display:grid;grid-template-rows:auto minmax(180px,1fr) auto auto auto;height:calc(100svh - 44px);min-height:660px;box-sizing:border-box;margin:0 0 28px;border:1px solid #ffffff36;border-radius:24px;background:linear-gradient(155deg,#1a1c21,#0d0e12 36%);box-shadow:inset 0 1px 0 #ffffff35,0 -8px 26px #0007;overflow:hidden}
 #proof .rf-stack-card>.rf-proof-top{padding:14px 16px}
 #proof .rf-stack-image{display:block;position:relative;min-height:0;width:100%;height:100%;border:0;padding:0;background:#08090b;cursor:zoom-in;touch-action:pan-y pinch-zoom;overflow:hidden}
 #proof .rf-stack-image img{position:static!important;display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;transform:none!important;filter:none!important}
 #proof .rf-stack-card .rf-proof-caption{padding:9px 15px;min-height:44px}
 #proof .rf-stack-story{padding:18px 16px 8px;min-height:0}
 #proof .rf-stack-story h3{min-height:0;margin-bottom:12px;font-size:clamp(25px,6.5vw,31px)}
 #proof .rf-stack-story .rf-case-description{min-height:0;font-size:14px;line-height:1.6}
 #proof .rf-stack-progress{margin:0;padding:10px 16px 16px;color:#aaadb6;font:500 10px/1.4 Inter,Arial,sans-serif}
 #proof .rf-stack-image:focus-visible{outline:2px solid #ffae76;outline-offset:-3px}
}
@media(max-width:900px) and (max-height:650px){#proof .rf-stack-card{position:relative;top:auto;height:auto;min-height:0;grid-template-rows:auto 300px auto auto auto}}
@media(max-width:900px){#proof #results{padding-top:0;margin-top:0}#proof .rf-proof-has-stack{margin-top:20px}}

@media(max-width:900px){
 #proof .rf-stack-card{grid-template-rows:auto minmax(180px,1fr) auto auto auto auto}
 #proof .rf-stack-sources{display:flex;gap:4px;justify-content:stretch;padding:0 10px;background:#101115}
 #proof .rf-stack-sources:empty{display:none}
 #proof .rf-stack-sources button{flex:1;min-width:0;min-height:44px;padding:8px 5px;border:0;border-bottom:2px solid transparent;background:transparent;color:#b6b8c0;font:500 11px/1.3 Inter,Arial,sans-serif;cursor:pointer}
 #proof .rf-stack-sources button[aria-pressed=true]{color:#ffb178;border-bottom-color:#f78342}
 #proof .rf-stack-sources button:focus-visible{outline:2px solid #ffb178;outline-offset:-3px}
}
@media(max-width:900px) and (max-height:650px){#proof .rf-stack-card{grid-template-rows:auto 300px auto auto auto auto}}

@media(max-width:900px){
 #proof .rf-search-pair{display:grid;grid-template-rows:repeat(2,minmax(0,1fr));gap:6px;min-height:0;padding:4px 0;background:#08090b;overflow:hidden}
 #proof .rf-search-pair .rf-stack-image{min-height:0}
 #proof .rf-stack-sources:not(:empty){flex-wrap:wrap;gap:7px;padding:10px 12px 12px;border-bottom:1px solid #ffffff15}
 #proof .rf-stack-sources[data-switch-hint]::before{content:attr(data-switch-hint);flex-basis:100%;color:#e4e4e8;font:500 11px/1.4 Inter,Arial,sans-serif;padding-bottom:3px}
 #proof .rf-stack-sources button{border:1px solid #ffffff35;border-radius:10px;min-height:44px;font-size:12px;font-weight:600;color:#e6e6eb;background:#ffffff09}
 #proof .rf-stack-sources button[aria-pressed=true]{background:#ff9b5822;border-color:#ff9b58;color:#ffbd8e;box-shadow:inset 0 1px 0 #ffd4af25}
}

/* The AI switcher uses the same isolated glass material as the viewer controls. */
@media(max-width:900px){
 #proof .rf-stack-sources button.rf-case-lg{border:0;border-radius:999px;min-height:48px;background:transparent;--rf-case-lg-radius:999px;--rf-case-lg-tint:32 34 40;--rf-case-lg-tint-a:.6;--rf-case-lg-rim-top:.86;--rf-case-lg-rim-side:.16;--rf-case-lg-rim-bottom:.42;--rf-case-lg-refraction:22;--rf-case-lg-band:7;--rf-case-lg-blur-svg:6;--rf-case-lg-blur:12px;--rf-case-lg-shadow:0 5px 14px #0004;box-shadow:var(--rf-case-lg-shadow);color:#efeff2}
 #proof .rf-stack-sources button.rf-case-lg[aria-pressed=true]{--rf-case-lg-tint:103 61 31;--rf-case-lg-tint-a:.48;--rf-case-lg-rim-top:.96;--rf-case-lg-rim-bottom:.62;background:transparent;color:#ffbd8e;box-shadow:0 5px 16px #0004,0 0 14px #ff913018}
 #proof .rf-stack-sources button .rf-case-lg-content{display:flex;align-items:center;justify-content:center;min-height:28px;pointer-events:none}
}
