/* Restore the original footer logo and layout; try the supplied boy photograph. */
body #ansen-garden .ag-photo {background-image:var(--ag-photo);background-size:cover;background-position:center 45%;}
body #ansen-garden .ag-photo::before {display:none;}
body #ansen-garden .ag-photo::after {background:linear-gradient(90deg,rgba(52,60,0,.58),rgba(52,60,0,.06) 63%);}
@media(max-width:760px){
 /* The upper crop supplies foliage; the lower crop keeps the boy below the copy. */
 html body #ansen-garden [data-screen="home"] .ag-hero {min-height:max(680px,calc(100svh - 68px))!important;}
 body #ansen-garden .ag-photo {background-color:#343c00;background-image:var(--ag-photo);background-size:cover;background-position:left top!important;background-repeat:no-repeat;}
 html body #ansen-garden .ag-photo::before {display:block;content:"";position:absolute;inset:auto 0 0;height:70%;background-image:var(--ag-photo);background-size:cover;background-position:68% bottom;background-repeat:no-repeat;transform:none;mask-image:linear-gradient(180deg,transparent 0%,#000 14%);-webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 14%);}
 html body #ansen-garden .ag-photo::after {display:block;content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(52,60,0,.84) 0%,rgba(52,60,0,.66) 24%,rgba(52,60,0,.18) 40%,rgba(52,60,0,0) 58%);}
}

/* Keep the existing footer layout and white wordmark, showing the supplied symbol colors. */
body #ansen-garden .ag-footer img[data-logo=footer],
body #ansen-garden .mr-footer-brand img {filter:none;opacity:1;mix-blend-mode:normal;}

/* Reference composition: compact white copy at the upper left, photo in focus. */
html body #ansen-garden [data-screen="home"] .ag-hero {align-items:flex-start;}
html body #ansen-garden [data-screen="home"] .ag-hero-copy {width:100%;max-width:none;padding:clamp(42px,5.2vw,84px) 8% 112px;justify-content:flex-start;}
html body #ansen-garden #ag-home-title {font-size:clamp(30px,3vw,46px)!important;line-height:1.45!important;font-weight:700!important;letter-spacing:.015em!important;text-shadow:0 1px 12px #14291e25;}
html body #ansen-garden .ag-hero-title-line,
html body #ansen-garden .ag-hero-copy-line {display:block;}
html body #ansen-garden [data-screen="home"] .ag-hero-copy>p {font-size:14px!important;line-height:1.8!important;margin-top:22px;max-width:none;font-weight:500;}
@media(min-width:761px){
 html body #ansen-garden .ag-photo::after {background:linear-gradient(90deg,rgba(52,60,0,.68) 0%,rgba(52,60,0,.50) 24%,rgba(52,60,0,.18) 48%,rgba(52,60,0,0) 72%);}
 html body #ansen-garden .ag-hero-title-line {white-space:nowrap;}
}
@media(max-width:760px){
 html body #ansen-garden [data-screen="home"] .ag-hero-copy {width:100%;max-width:none;padding:44px 8% 100px;}
 html body #ansen-garden #ag-home-title {font-size:clamp(20px,5.65vw,28px)!important;line-height:1.5!important;letter-spacing:.01em!important;}
 html body #ansen-garden [data-screen="home"] .ag-hero-copy>p {font-size:13px!important;line-height:1.8!important;margin-top:18px;}
 html body #ansen-garden[data-language="en"] #ag-home-title {font-size:clamp(19px,5vw,26px)!important;}
 html body #ansen-garden[data-language="en"] .ag-hero-copy-line {max-width:25em;}
}

/* Brand dark green specified by the clinic: RGB 52, 60, 0. */
html body #ansen-garden {--ag-forest:var(--ag-brand-deep);--ag-deep:var(--ag-brand-deep);}
html body #ansen-garden .ag-footer,
html body #ansen-garden .mr-footer {background-color:var(--ag-brand-deep);}

/* Match the designer desktop photograph frame; preserve the mobile composition. */
@media(min-width:761px){
 html body #ansen-garden [data-screen=home] .ag-hero {aspect-ratio:auto;min-height:0!important;height:var(--ag-hero-height,calc(var(--ag-scroll-height) - var(--ag-header-height)));}
 html body #ansen-garden [data-screen=home] .ag-photo {background-position:center 10%!important;transform:none;animation:none;}
}

/* Desktop home: one visible reading frame per section, with the footer on the last. */
@media(min-width:1001px) and (hover:hover) and (pointer:fine){
 html body #ansen-garden [data-screen=home]>section:not(.mr-only):not(.ag-home-closing):not(.ag-services):not(.ag-hero){
  height:calc(var(--ag-scroll-height) - var(--ag-header-height));min-height:0!important;box-sizing:border-box;overflow:clip;
 }
 html body #ansen-garden .ag-home-closing{
  height:auto;flex-shrink:0;
  min-height:max(0px,calc(var(--ag-scroll-height) - var(--ag-header-height) - var(--ag-home-footer-height)))!important;box-sizing:border-box;
  --ag-closing-icon-height:clamp(48px,calc((var(--ag-scroll-height) - var(--ag-header-height) - var(--ag-home-footer-height) - 310px)/2),126px);
 }
 html body #ansen-garden .ag-home-closing .ag-resource-icon{
  height:var(--ag-closing-icon-height)!important;width:calc(var(--ag-closing-icon-height)*1.42857)!important;
 }
}

@media(min-width:1001px) and (max-height:800px) and (hover:hover) and (pointer:fine){
 html body #ansen-garden .ag-home-closing .ag-next-link{padding:4px;}
 html body #ansen-garden .ag-home-closing .ag-next-link small{margin-top:4px;}
 html body #ansen-garden .ag-home-closing .ag-next-link strong::after{margin:4px auto;}
}

@media(min-width:1001px) and (hover:hover) and (pointer:fine){
 html body #ansen-garden [data-screen=home]>.ag-international-home{
  height:calc(var(--ag-scroll-height) - var(--ag-header-height));min-height:0;box-sizing:border-box;
  align-items:center;overflow:clip;scroll-snap-align:start;scroll-snap-stop:always;scroll-margin-top:0!important;
 }
}

@media(min-width:1001px) and (max-height:800px) and (hover:hover) and (pointer:fine){
 html body #ansen-garden[data-language=en] .ag-services .ag-service-copy{padding-right:42px!important;}
}

@media(min-width:1001px) and (max-height:800px) and (hover:hover) and (pointer:fine){
 html body #ansen-garden[data-language=en] .ag-home-space-tour .ag-space-stage{height:100%;min-height:0;grid-template-rows:minmax(0,1fr) auto;}
}

@media(min-width:1001px) and (hover:hover) and (pointer:fine){
 html body #ansen-garden [data-screen=home]>.ag-services{height:auto;min-height:calc(var(--ag-scroll-height) - var(--ag-header-height))!important;overflow:visible;}
 html body #ansen-garden .ag-services .ag-service-display{height:auto;min-height:calc(var(--ag-scroll-height) - var(--ag-header-height))!important;grid-template-rows:auto;}
 html body #ansen-garden .ag-services .ag-service-copy{min-height:0;overflow:visible;padding-bottom:64px!important;}
 html body #ansen-garden .ag-services .ag-service-copy>*{flex-shrink:0;}
 html body #ansen-garden .ag-services .ag-service-copy :is(.ag-service-text,.ag-service-context){max-width:none;}
}
@media(min-width:1001px) and (max-height:800px) and (hover:hover) and (pointer:fine){
 html body #ansen-garden[data-language=en] .ag-services .ag-service-copy{padding:16px 42px 64px!important;}
 html body #ansen-garden[data-language=en] .ag-services .ag-service-copy p{font-size:16px!important;line-height:1.6!important;}
}
