/* V189: mobile composition overrides sit in an important layer above legacy panel rules. */
@layer mobile-composition{
 @media(max-width:800px){
  .ag-mobile-reference-panel{--mobile-rgb:29,32,31;--mobile-surface:rgb(var(--mobile-rgb));background:var(--mobile-surface)!important}
  .home-demo-ad.ag-mobile-reference-panel{--mobile-rgb:0,0,0;background:#000!important}
  .ag-contact-hero{--mobile-rgb:27,31,32}
  .services-banner{--mobile-rgb:43,39,34}
  .about-welcome{--mobile-rgb:37,38,34}
  body[data-page=demos] .ag-hello-cta{--mobile-rgb:39,34,42}
  .work-approach-feature{--mobile-rgb:56,47,37}
  .work-cinema-window{--mobile-rgb:19,23,26}
  .ag-hello-cta:has(img[src*="storefront-cta"]){--mobile-rgb:29,34,31}
  .ag-hello-cta:has(img[src*="selfie"]){--mobile-rgb:38,32,38}
  .work-project[data-project=avercare] :is(.project-hero,.project-case-image-panel){--mobile-rgb:44,36,27}
  .work-project[data-project=fitfur] :is(.project-hero,.project-case-image-panel,.project-pet-banner){--mobile-rgb:45,38,29}
  .work-project[data-project=mayson] :is(.project-hero,.project-case-image-panel){--mobile-rgb:30,43,45}
  .ag-mobile-reference-art{mask-image:linear-gradient(90deg,transparent,#000 42%),linear-gradient(180deg,#000 38%,rgba(0,0,0,.75) 65%,transparent 100%)!important;-webkit-mask-image:linear-gradient(90deg,transparent,#000 42%),linear-gradient(180deg,#000 38%,rgba(0,0,0,.75) 65%,transparent 100%)!important}
  .ag-hello-image>img[src*="storefront-cta-v41"]{left:calc(50% - var(--mobile-art-width)*.72)!important;right:auto!important;top:-52px!important}
  .work-approach-feature .ag-mobile-reference-art{left:calc(50% - var(--mobile-art-width)*.75)!important;right:auto!important;top:0!important}
  /* Opening films retain their full media frames and individually chosen subjects. */
  :is(.about-welcome,.home-cinema-window,.work-cinema-window) .ag-mobile-reference-frame{inset:0!important;width:100%!important;height:100%!important;mask-image:none!important;-webkit-mask-image:none!important}
  :is(.about-welcome,.home-cinema-window,.work-cinema-window) .ag-mobile-reference-art{inset:0!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:50% 35%!important;mask-image:none!important;-webkit-mask-image:none!important}
  .about-welcome .ag-mobile-reference-art{object-position:58% 35%!important}
  body[data-page=demos] .home-cinema-window .ag-mobile-reference-art{object-position:50% 30%!important}
  .work-cinema-window .ag-mobile-reference-art{object-position:center!important}
  .about-welcome [data-ag-opening-role=title] em{margin-top:0!important}
  /* Every sound control gets its own reserved row instead of covering text/tags. */
  .about-welcome [data-ag-opening-role=copy]{bottom:88px!important}
  .about-welcome .home-video-controls{bottom:24px!important;right:24px!important}
  .work-cinema-window [data-ag-opening-role=copy]{bottom:88px!important}
  .work-cinema-window .work-services{max-width:100%!important;width:100%!important}
  .work-cinema-window .work-video-controls{bottom:24px!important;right:24px!important}
  .work-cinema-window .work-services.tags{display:flex!important;flex-wrap:wrap!important;gap:6px!important}
 }
}
@layer mobile-composition{
 @media(max-width:800px){
  .about-welcome .ag-mobile-reference-frame{height:440px!important}
  .about-welcome .ag-mobile-reference-art,body[data-page=demos] .home-cinema-window .ag-mobile-reference-art{height:440px!important;mask-image:linear-gradient(#000 55%,rgba(0,0,0,.8) 75%,transparent 100%)!important;-webkit-mask-image:linear-gradient(#000 55%,rgba(0,0,0,.8) 75%,transparent 100%)!important}
  .work-approach-feature .ag-mobile-reference-art{width:calc(var(--mobile-art-width)*1.15)!important;height:391px!important;left:calc(50% - var(--mobile-art-width)*.8625)!important;top:-20px!important}
 }
}
/* One header owns the black strip; Home begins immediately beneath its reserved height. */
@layer home-opening-baseline{
 @media screen{
  body[data-page=home]{margin-top:0!important;padding-top:calc(var(--ag-header-height) + env(safe-area-inset-top,0px))!important;background-image:none!important}
  body[data-page=home] #main{margin-top:0!important;padding-top:0!important}
  body[data-page=home] #main>.home-cinema{margin-top:0!important;padding-top:0!important}
  body[data-page=home] :is(.home-cinema-stage,.home-cinema-window){margin-top:0!important;padding-top:0!important}
  header.site-header.ag-dark-header::before{inset:0!important;width:100%!important;height:auto!important;clip-path:inset(0)!important}
 }
}
@layer mobile-composition{
 @media(max-width:800px){
  body[data-page=home] .home-cinema-window>video{left:50%!important;right:auto!important;top:0!important;width:var(--home-media-width,100%)!important;height:var(--home-media-height,100%)!important;object-fit:cover!important;mask-image:none!important;-webkit-mask-image:none!important}
  body[data-page=home] .home-scroll-cue{display:none!important}
 }
}
@layer mobile-composition{
 @media(max-width:800px){
  /* Smooth opacity ramps finish before the photo boundary, so no terminal line remains. */
  :is(.ag-contact-background,.ag-hello-image>img[src*="storefront-cta-v41"],.ag-hello-image>img[src*="about-cta-studio-v102"],.work-approach-feature .ag-mobile-reference-art){mask-image:radial-gradient(ellipse 140% 100% at 60% 0%,#000 22%,rgba(0,0,0,.98) 38%,rgba(0,0,0,.8) 52%,rgba(0,0,0,.42) 67%,rgba(0,0,0,.12) 79%,rgba(0,0,0,.02) 87%,transparent 94%)!important;-webkit-mask-image:radial-gradient(ellipse 140% 100% at 60% 0%,#000 22%,rgba(0,0,0,.98) 38%,rgba(0,0,0,.8) 52%,rgba(0,0,0,.42) 67%,rgba(0,0,0,.12) 79%,rgba(0,0,0,.02) 87%,transparent 94%)!important;mask-composite:add!important;-webkit-mask-composite:source-over!important}
  .ag-hello-image>img[src*="about-cta-studio-v102"]{left:0!important;right:0!important;top:-35px!important;width:100%!important;height:360px!important;object-fit:cover!important;object-position:100% center!important}
  .work-approach-feature .ag-mobile-reference-art{left:0!important;right:0!important;top:0!important;width:100%!important;height:391px!important;object-fit:cover!important;object-position:92% center!important}
  body[data-page=demos] .home-cinema-window .ag-mobile-reference-art,.about-welcome .ag-mobile-reference-art{mask-image:radial-gradient(ellipse 150% 100% at 58% 0%,#000 30%,rgba(0,0,0,.98) 46%,rgba(0,0,0,.72) 61%,rgba(0,0,0,.3) 76%,rgba(0,0,0,.04) 90%,transparent 98%)!important;-webkit-mask-image:radial-gradient(ellipse 150% 100% at 58% 0%,#000 30%,rgba(0,0,0,.98) 46%,rgba(0,0,0,.72) 61%,rgba(0,0,0,.3) 76%,rgba(0,0,0,.04) 90%,transparent 98%)!important}
  .home-cinema-window>.ag-opening-shade::before{background-image:radial-gradient(ellipse 150% 110% at 12% 110%,rgb(var(--mobile-rgb,29,32,31)) 20%,rgba(var(--mobile-rgb,29,32,31),.98) 40%,rgba(var(--mobile-rgb,29,32,31),.7) 59%,rgba(var(--mobile-rgb,29,32,31),.28) 78%,transparent 96%)!important}
  .home-cinema-copy .home-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr) minmax(0,.95fr)!important;grid-auto-flow:column!important;gap:6px!important;width:100%!important;max-width:none!important;align-items:stretch!important;container-type:inline-size}
  .home-cinema-copy .home-actions>.button,.home-cinema-copy .home-actions .home-video-controls>button{width:100%!important;max-width:none!important;min-width:0!important;height:44px!important;min-height:44px!important;padding:10px 6px!important;font-size:clamp(9px,3.2cqw,12px)!important;line-height:1.2!important;white-space:nowrap!important;gap:3px!important;justify-content:center!important;align-self:stretch!important}
  .home-cinema-copy .home-actions>.button span{white-space:nowrap!important}
  .home-video-controls[data-mobile-docked]{position:static!important;inset:auto!important;transform:none!important;width:100%!important;height:44px!important;margin:0!important;align-self:stretch!important}
  .home-video-controls[data-mobile-docked] svg{width:11px!important;height:11px!important;flex:0 0 auto}
  [data-ag-cta-role=actions],.ag-contact-actions{flex-wrap:nowrap!important}
 }
 @media(max-width:380px){
  [data-ag-cta-role=actions]>[data-ag-cta-role=button]{min-width:0!important;padding-inline:9px!important;font-size:11px!important;white-space:nowrap!important}
 }
}
@layer mobile-composition{@media(max-width:800px){.ag-hello-actions{flex-wrap:nowrap!important}.ag-hello-actions>:is(.button,.text-link){min-width:0!important}}}

/* V191: project-only mobile reframing and seamless image endings; existing gradient colors stay intact. */
@layer mobile-composition{
 @media(max-width:800px){
  .work-project .project-hero-art.ag-mobile-reference-frame{inset:0!important;width:100%!important;height:400px!important;mask-image:none!important;-webkit-mask-image:none!important;overflow:hidden!important}
  .work-project .project-hero-art>:is(img,video){inset:0!important;width:100%!important;height:400px!important;max-width:none!important;object-fit:cover!important;object-position:center!important}
  .work-project[data-project=avercare] .project-hero-art>:is(img,video){object-position:65% 35%!important}
  .work-project[data-project=fitfur] .project-hero-art>:is(img,video){object-position:50% 35%!important}
  .work-project[data-project=mayson] .project-hero-art>:is(img,video){object-position:50% 30%!important}
  .work-project .project-case-wide-photo.ag-mobile-reference-frame{inset:0!important;width:100%!important;height:clamp(280px,78vw,340px)!important;mask-image:none!important;-webkit-mask-image:none!important;overflow:hidden!important}
  .work-project .project-case-wide-photo>img{inset:0!important;width:100%!important;height:clamp(280px,78vw,340px)!important;max-width:none!important;object-fit:cover!important;object-position:50% 35%!important}
  .work-project[data-project=avercare] .project-case-wide-photo>img{object-position:48% 35%!important}
  .work-project[data-project=mayson] .project-case-wide-photo>img{object-position:65% 35%!important}
  .work-project .project-pet-banner>img{inset:0!important;width:100%!important;height:clamp(240px,68vw,330px)!important;max-width:none!important;object-fit:cover!important;object-position:center!important}
  .work-project :is(.project-hero-art>img,.project-hero-art>video,.project-case-wide-photo>img,.project-pet-banner>img){mask-image:radial-gradient(ellipse 155% 100% at 55% 0%,#000 24%,rgba(0,0,0,.98) 40%,rgba(0,0,0,.82) 55%,rgba(0,0,0,.46) 69%,rgba(0,0,0,.14) 81%,rgba(0,0,0,.02) 90%,transparent 96%)!important;-webkit-mask-image:radial-gradient(ellipse 155% 100% at 55% 0%,#000 24%,rgba(0,0,0,.98) 40%,rgba(0,0,0,.82) 55%,rgba(0,0,0,.46) 69%,rgba(0,0,0,.14) 81%,rgba(0,0,0,.02) 90%,transparent 96%)!important;mask-composite:add!important;-webkit-mask-composite:source-over!important}
 }
}

/* V192: broad curved diagonal feather on the three project openings; keep the current crops. */
@layer mobile-composition{
 @media(max-width:800px){
  .work-project[data-project] .project-hero-art>:is(img,video){mask-image:radial-gradient(ellipse 125% 115% at 105% -10%,#000 30%,rgba(0,0,0,.98) 40%,rgba(0,0,0,.85) 50%,rgba(0,0,0,.58) 62%,rgba(0,0,0,.25) 76%,rgba(0,0,0,.06) 89%,transparent 100%),linear-gradient(180deg,#000 45%,rgba(0,0,0,.9) 62%,rgba(0,0,0,.55) 78%,rgba(0,0,0,.12) 90%,transparent 98%)!important;-webkit-mask-image:radial-gradient(ellipse 125% 115% at 105% -10%,#000 30%,rgba(0,0,0,.98) 40%,rgba(0,0,0,.85) 50%,rgba(0,0,0,.58) 62%,rgba(0,0,0,.25) 76%,rgba(0,0,0,.06) 89%,transparent 100%),linear-gradient(180deg,#000 45%,rgba(0,0,0,.9) 62%,rgba(0,0,0,.55) 78%,rgba(0,0,0,.12) 90%,transparent 98%)!important;mask-composite:intersect!important;-webkit-mask-composite:source-in!important}
  .work-project[data-project] .project-hero-shade{background:none!important}
 }
 .work-project[data-project=mayson] .ag-project-cta .ag-hello-image>img{object-position:60% 40%!important}
}

/* Keep overview copy above the faded photo without changing its layout or corner label anchor. */
@layer mobile-composition{@media(max-width:800px){.work-project .project-case-overlay-copy{z-index:2!important;isolation:isolate}}}

/* Mayson's new CTA photo keeps its natural composition and a clear mobile caption area. */
@layer mobile-composition{
 @media(max-width:800px){
  .work-project[data-project=mayson] .ag-project-cta{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto!important;height:auto!important;min-height:0!important;padding:0!important}
  .work-project[data-project=mayson] .ag-project-cta .ag-hello-image{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:16/9!important}
  .work-project[data-project=mayson] .ag-project-cta .ag-hello-image>img{object-position:58% 20%!important}
  .work-project[data-project=mayson] .ag-project-cta .ag-hello-copy{position:relative!important;height:auto!important;min-height:0!important;padding:24px!important;justify-content:flex-start!important}
  .work-project[data-project=mayson] .ag-project-cta .ag-hello-copy>.eyebrow{position:static!important;inset:auto!important;margin:0 0 20px!important}
  .work-project[data-project=mayson] .ag-project-cta .ag-hello-actions{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:8px!important;width:100%!important}
  .work-project[data-project=mayson] .ag-project-cta .ag-hello-actions>.button{flex:1 1 0!important;min-width:0!important;width:auto!important;padding:6px 7px!important;min-height:48px!important;font-size:clamp(10px,2.6vw,12px)!important;line-height:1.2!important;white-space:normal!important}
  .work-project[data-project=mayson] .ag-project-cta .ag-hello-actions>.text-link{flex:0 0 auto!important;min-width:0!important;font-size:clamp(10px,2.6vw,12px)!important;white-space:nowrap!important;padding:8px 0!important}
 }
}

@layer mobile-composition{@media(max-width:800px){.work-project[data-project=mayson] .ag-project-cta .ag-hello-copy>h2{font-size:var(--mobile-fit-title,clamp(40px,11.4vw,60px))!important}}}

/* V206: keep approved mobile fade positions, with a neutral black surface and 75% peak shade. */
@layer mobile-composition{@media(max-width:800px){
 :root{--mobile-shade-rgb:0,0,0;--mobile-shade-alpha:.75;--mobile-shade-surface:0,0,0}
 :is(.home-cinema-window,.work-cinema-window,.about-welcome,.ag-news-banner,.services-banner,.ag-contact-hero,[data-ag-cta-template=standard]:not(#services-cta):not(.home-demo-ad),.work-approach-feature,.project-case-image-panel,.project-hero,[data-project-films="fitfur-pets"]){background:rgb(var(--mobile-shade-surface))!important}
 .services-banner{--mobile-shade-surface:0,0,0}
 .ag-contact-hero{--mobile-shade-surface:0,0,0}
 [data-ag-cta-template=standard]:has(img[src*="storefront-cta"]){--mobile-shade-surface:0,0,0}
 body[data-page=demos] [data-ag-cta-template=standard]{--mobile-shade-surface:0,0,0}
 [data-ag-cta-template=standard]:has(img[src*="selfie"]){--mobile-shade-surface:0,0,0}
 .work-approach-feature{--mobile-shade-surface:0,0,0}
 #project-avercare :is(.project-hero,.project-case-image-panel){--mobile-shade-surface:0,0,0}
 #project-fitfur :is(.project-hero,.project-case-image-panel,[data-project-films="fitfur-pets"]){--mobile-shade-surface:0,0,0}
 #project-mayson :is(.project-hero,.project-case-image-panel){--mobile-shade-surface:0,0,0}
 .home-cinema-window>.ag-opening-shade::before{background-image:radial-gradient(ellipse 150% 110% at 12% 110%,rgba(0,0,0,.75) 20%,rgba(0,0,0,.735) 40%,rgba(0,0,0,.525) 59%,rgba(0,0,0,.21) 78%,transparent 96%)!important}
 #project-fitfur [data-project-films="fitfur-pets"]{background:rgb(var(--mobile-shade-surface))!important}
 #project-fitfur [data-project-films="fitfur-pets"]::after{background:linear-gradient(0deg,rgba(0,0,0,.75) 0%,rgba(0,0,0,.72) 24%,rgba(0,0,0,.54) 48%,rgba(0,0,0,.21) 69%,transparent 88%)!important}
 /* An inverse of the existing 440px photo mask puts the shared tint at exactly its fade. */
 :is(#project-avercare,#project-fitfur,#project-mayson) .project-hero-shade{
  background:rgba(0,0,0,.75)!important;
  mask-image:linear-gradient(#000 0 0),radial-gradient(ellipse 130% 130% at 110% -10%,#000 40%,rgba(0,0,0,.98) 50%,rgba(0,0,0,.88) 62%,rgba(0,0,0,.62) 74%,rgba(0,0,0,.28) 86%,rgba(0,0,0,.06) 98%,transparent 108%),linear-gradient(#000 60%,rgba(0,0,0,.9) 73%,rgba(0,0,0,.55) 85%,rgba(0,0,0,.12) 94%,transparent 100%)!important;
  mask-size:100% 100%,100% 440px,100% 440px!important;mask-position:0 0!important;mask-repeat:no-repeat!important;mask-composite:subtract,intersect!important;
 }
 /* Intersect the existing side/bottom fades instead of adding opacity back at the edge. */
 .home-demo-ad>.ag-mobile-reference-art,.services-banner .ag-mobile-reference-art,
 [data-ag-cta-template=standard]:has(img[src*="selfie"]) .ag-mobile-reference-art,
 body[data-page=demos] [data-ag-cta-template=standard] .ag-mobile-reference-art,
 #services-cta .ag-hello-image>img{mask-composite:intersect!important;-webkit-mask-composite:source-in!important}
 .home-demo-ad>.ag-cta-trial-shade::before{background-image:linear-gradient(90deg,rgba(0,0,0,.75),transparent 75%)!important}
 @media(max-width:600px){.career-section>.ag-cta-trial-shade::before{background-image:linear-gradient(90deg,rgba(0,0,0,.9),rgba(0,0,0,.833143) 24%,rgba(0,0,0,.648) 62%,rgba(0,0,0,.508114)),linear-gradient(0deg,rgba(0,0,0,.63),transparent 45%)!important}}
 /* Fade only the film picture; keep its native controls solid in their existing bottom row. */
 #project-fitfur [data-project-films="fitfur-pets"]:has([data-project-film]:not([hidden]) video[controls])::before{display:none!important}
 #project-fitfur [data-project-films="fitfur-pets"] .mayson-film-slide>video{
  mask-image:linear-gradient(180deg,#000 55%,rgba(0,0,0,.88) 70%,rgba(0,0,0,.3) 90%,transparent 100%),linear-gradient(#000 0 0)!important;
  mask-size:100% calc(56.25cqw + 29px),100% 72px!important;mask-position:top,bottom!important;mask-repeat:no-repeat!important;mask-composite:add!important;
 }
 /* Blend the three stacked invitation photos into their existing light copy panels. */
 .work-project .ag-project-cta .ag-hello-image{background:inherit!important}
 .work-project .ag-project-cta .ag-hello-image>img{mask-image:linear-gradient(#000 88%,rgba(0,0,0,.65) 94%,transparent 100%)!important;-webkit-mask-image:linear-gradient(#000 88%,rgba(0,0,0,.65) 94%,transparent 100%)!important}
}}

/* The storefront film replaces its poster in view and needs the same terminal fade. */
@layer mobile-composition{@media(max-width:800px){
 [data-ag-cta-template=standard] .ag-hello-image>video{
  mask-image:radial-gradient(ellipse 140% 100% at 60% 0%,#000 22%,rgba(0,0,0,.98) 38%,rgba(0,0,0,.8) 52%,rgba(0,0,0,.42) 67%,rgba(0,0,0,.12) 79%,rgba(0,0,0,.02) 87%,transparent 94%)!important;
  -webkit-mask-image:radial-gradient(ellipse 140% 100% at 60% 0%,#000 22%,rgba(0,0,0,.98) 38%,rgba(0,0,0,.8) 52%,rgba(0,0,0,.42) 67%,rgba(0,0,0,.12) 79%,rgba(0,0,0,.02) 87%,transparent 94%)!important;
  mask-composite:add!important;-webkit-mask-composite:source-over!important;
 }
}}

/* Blurred edge extensions are independent of the sharp photo and do not affect sizing. */
@layer mobile-composition{
 .ag-media-edge-fill{display:none!important}
 @media(max-width:800px){
  :is(.about-welcome,.ag-news-banner)>.ag-opening-shade::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221552%22%20height%3D%22873%22%20viewBox%3D%220%200%201552%20873%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3Cfilter%20id%3D%22soft%22%20filterUnits%3D%22userSpaceOnUse%22%20x%3D%22-600%22%20y%3D%22-600%22%20width%3D%222800%22%20height%3D%222200%22%3E%3CfeGaussianBlur%20stdDeviation%3D%22120%22%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M%20-50%20-500%20C%20-11.666666666666664%20-416.6666666666667%20137%20-93.33333333333333%20180%200%20C%20223%2093.33333333333333%20195.33333333333334%2033.33333333333333%20208%2060%20C%20220.66666666666666%2086.66666666666667%20243.5%20133.33333333333334%20256%20160%20C%20268.5%20186.66666666666666%20267.3333333333333%20190%20283%20220%20C%20298.6666666666667%20250%20318%20310%20350%20340%20C%20382%20370%20438.1666666666667%20380%20475%20400%20C%20511.8333333333333%20420%20537.5%20440%20571%20460%20C%20604.5%20480%20645.5%20500%20676%20520%20C%20706.5%20540%20735%20560%20754%20580%20C%20773%20600%20780%20620%20790%20640%20C%20800%20660%20807%20680%20814%20700%20C%20821%20720%20827%20740%20832%20760%20C%20837%20780%20842%20801.1666666666666%20844%20820%20C%20846%20838.8333333333334%20843%20780.8333333333334%20844%20873%20C%20845%20965.1666666666666%20849%201289.6666666666667%20850%201373%20L%20-600%201373%20L%20-600%20-500%20Z%22%20fill%3D%22black%22%20fill-opacity%3D%220.75%22%20filter%3D%22url(%23soft)%22%2F%3E%3C%2Fsvg%3E")!important}
  .ag-media-edge-fill{display:block!important;position:absolute!important;left:0!important;top:0!important;width:100%!important;height:var(--edge-height,340px)!important;z-index:0!important;pointer-events:none!important;overflow:visible!important;mask-image:linear-gradient(#000 25%,rgba(0,0,0,.98) 38%,rgba(0,0,0,.8) 52%,rgba(0,0,0,.42) 67%,rgba(0,0,0,.12) 79%,rgba(0,0,0,.02) 87%,transparent 94%)!important}
  .ag-media-edge-fill>span{display:block;position:absolute;pointer-events:none;background-image:var(--edge-image);background-repeat:no-repeat;filter:blur(16px)}
  .ag-media-edge-left,.ag-media-edge-right{top:var(--edge-top,-32px);height:var(--edge-art-height,404px);background-size:2000% 100%}
  .ag-media-edge-left{left:-32px;width:var(--edge-left,32px);background-position:left center}
  .ag-media-edge-right{right:-32px;width:var(--edge-right,32px);background-position:right center}
  .ag-media-edge-top,.ag-media-edge-bottom{left:-32px;right:-32px;background-size:100% 2000%}
  .ag-media-edge-top{top:-32px;height:var(--edge-top-height,32px);background-position:center top}
  .ag-media-edge-bottom{bottom:-32px;height:64px;background-position:center bottom}
  /* Feather only sides that actually end inside the panel, over the blurred edge extension. */
  body[data-page] main .ag-mobile-reference-panel .ag-mobile-reference-art.ag-edge-feather{mask-image:var(--edge-sharp-mask),var(--edge-side-mask)!important;mask-composite:intersect!important;-webkit-mask-composite:source-in!important}
 }
 @media(max-width:600px){:is(.about-welcome,.ag-news-banner)>.ag-opening-shade::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221552%22%20height%3D%22873%22%20viewBox%3D%220%200%201552%20873%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3Cfilter%20id%3D%22soft%22%20filterUnits%3D%22userSpaceOnUse%22%20x%3D%22-600%22%20y%3D%22-600%22%20width%3D%222800%22%20height%3D%222200%22%3E%3CfeGaussianBlur%20stdDeviation%3D%22180%20110%22%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M%20-50%20-500%20C%20-11.666666666666664%20-416.6666666666667%20137%20-93.33333333333333%20180%200%20C%20223%2093.33333333333333%20195.33333333333334%2033.33333333333333%20208%2060%20C%20220.66666666666666%2086.66666666666667%20243.5%20133.33333333333334%20256%20160%20C%20268.5%20186.66666666666666%20267.3333333333333%20190%20283%20220%20C%20298.6666666666667%20250%20318%20310%20350%20340%20C%20382%20370%20438.1666666666667%20380%20475%20400%20C%20511.8333333333333%20420%20537.5%20440%20571%20460%20C%20604.5%20480%20645.5%20500%20676%20520%20C%20706.5%20540%20735%20560%20754%20580%20C%20773%20600%20780%20620%20790%20640%20C%20800%20660%20807%20680%20814%20700%20C%20821%20720%20827%20740%20832%20760%20C%20837%20780%20842%20801.1666666666666%20844%20820%20C%20846%20838.8333333333334%20843%20780.8333333333334%20844%20873%20C%20845%20965.1666666666666%20849%201289.6666666666667%20850%201373%20L%20-600%201373%20L%20-600%20-500%20Z%22%20fill%3D%22black%22%20fill-opacity%3D%220.75%22%20filter%3D%22url(%23soft)%22%2F%3E%3C%2Fsvg%3E")!important}}
}

/* Keep the viewport-sized Home film readable in unusually short desktop windows. */
@layer mobile-composition{@media(min-width:801px) and (max-height:600px){
 body[data-page=home] .home-cinema-copy>[data-ag-opening-role=title]{font-size:clamp(34px,calc((100svh - 300px)*.45),var(--pill-opening-title))!important}
}}

/* V210: clip mobile opening media and edge fills to the complete rounded panel.
   Home's parallax opener and all Projects banners deliberately retain their framing. */
@layer mobile-composition {
 @media (max-width:800px) {
  html body:is([data-page=about],[data-page=services],[data-page=demos],[data-page=contact]) main [data-ag-opening=standard] {
   border-radius:20px!important;
   overflow:hidden!important;
   clip-path:inset(0 round 20px)!important;
   -webkit-clip-path:inset(0 round 20px)!important;
  }
 }
}


/* The supplied News still keeps both foreground faces within its mobile photograph. */
@layer mobile-composition{@media(max-width:800px){body[data-page=news] [data-ag-id="ag-cta-news-0-panel"] .ag-hello-image>img{left:50%!important;right:auto!important;top:-32px!important;transform:translateX(-42%)!important;mask-image:linear-gradient(180deg,#000 35%,rgba(0,0,0,.98) 48%,rgba(0,0,0,.72) 64%,rgba(0,0,0,.2) 82%,transparent 98%)!important;-webkit-mask-image:linear-gradient(180deg,#000 35%,rgba(0,0,0,.98) 48%,rgba(0,0,0,.72) 64%,rgba(0,0,0,.2) 82%,transparent 98%)!important;mask-composite:add!important;-webkit-mask-composite:source-over!important}}
