/* A shared content edge and stable photograph frames for the home page. */
/* The original AC-H render is square with white margins. This 3:1 viewport
   removes only empty canvas; the complete product remains visible. */
.ah-home #ah-panel-air .ah-product-image-link{background:#fff}
.ah-home #ah-panel-air .ah-product-image-link img:is([src$="apricity-ac-h-standard.webp"],[data-product-render="standard"]){top:50%;bottom:auto;height:auto;aspect-ratio:3/1;object-fit:cover;object-position:center;transform:translateY(-50%)}
.ah-home .ap-download-cover:has(img:is([src$="apricity-ac-h-standard.webp"],[data-product-render="standard"])){background:#fff}
.ah-home .ap-download-cover img:is([src$="apricity-ac-h-standard.webp"],[data-product-render="standard"]){top:50%;bottom:auto;height:auto;aspect-ratio:3/1;object-fit:cover;object-position:center;transform:translateY(-50%)}
.ah-home .ap-download-model{position:absolute;bottom:20px;left:22px;right:22px;text-align:center;font-size:13px;color:#8e512b;font-weight:600;letter-spacing:.03em}
.ah-home .ah-shell{width:min(1240px,calc(100% - 96px))}
.ah-home .ah-product-panel{grid-template-columns:repeat(2,minmax(0,1fr));gap:48px;align-items:start}
.ah-home .ah-product-copy{padding-top:22px;min-width:0}
.ah-home .ah-product-visual{display:flex;flex-direction:column;gap:12px;aspect-ratio:auto;height:auto;padding:0;margin:0;overflow:visible;background:transparent;border-radius:0;align-self:start}
.ah-home .ah-product-image-link{position:relative;display:block;width:100%;height:auto;min-height:0;aspect-ratio:4/3;background:#f3ede4;border:1px solid #e8ded1;border-radius:14px;overflow:hidden;isolation:isolate}
.ah-home .ah-product-image-link img{position:absolute;inset:18px;width:calc(100% - 36px);height:calc(100% - 36px);max-width:none;min-height:0;object-fit:contain;object-position:center;transform:none}
.ah-home .ah-product-visual figcaption{position:static;padding:0 3px;margin:0;min-height:20px;font-size:12px;line-height:20px;text-align:left;color:#6b5b49;background:transparent;border:0}
.ah-home .ah-project-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;align-items:stretch}
.ah-home .ah-project-card{display:grid;grid-template-rows:auto 1fr;min-width:0;padding:0;border:1px solid #e8ded1;border-radius:14px;overflow:hidden;background:#fff}
.ah-home .ah-project-card:nth-child(2){padding-top:0}
.ah-home .ah-project-photo{position:relative;display:block;width:100%;height:auto;aspect-ratio:5/4;padding:0;border-radius:0;background:#f5f0e8;overflow:hidden}
.ah-home .ah-project-photo img{position:absolute;inset:18px;width:calc(100% - 36px);height:calc(100% - 36px);max-width:none;object-fit:contain;object-position:center;transform:none}
.ah-home .ah-project-copy{display:flex;flex-direction:column;align-items:flex-start;padding:28px;min-width:0}
.ah-home .ah-project-description{max-width:none;flex:1}
.ah-home .ah-project-copy .ah-text-link{margin-top:18px}
.ah-home .ap-home-downloads{width:min(1240px,calc(100% - 96px));margin-block:72px;padding:38px;border-radius:16px}
.ah-home .ap-home-download-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;align-items:stretch}
.ah-home :is(.ap-download-featured,.ap-download-lighting){display:flex;flex-direction:column;align-items:stretch;align-self:stretch;padding:28px;border:1px solid #e8ded1;border-radius:12px;background:#fff;min-width:0}
.ah-home .ap-download-category-heading{padding:0;margin:0 0 22px;min-height:100px}
.ah-home .ap-download-category-heading h3{font-size:27px;margin:0 0 12px;line-height:1.3}
.ah-home .ap-download-featured>div{padding:0}
.ah-home .ap-download-cover{position:relative;flex:1;height:auto;min-height:250px;margin:0 0 24px;padding:0;border-radius:8px;background:#f6f2ec;overflow:hidden}
.ah-home .ap-download-cover img{position:absolute;inset:22px;width:calc(100% - 44px);height:calc(100% - 44px);object-fit:contain}
.ah-home .ap-download-featured .ap-download-actions{margin:0;min-height:46px}
.ah-home .ap-download-lighting li{min-height:64px;padding:12px 0}
.ah-home .ap-download-lighting li:first-child{padding-top:0}
.ah-home .ap-download-lighting li:last-child{border-bottom:0;padding-bottom:0}
.ah-home :is(#home-solutions,#product-downloads,#ah-projects-title){scroll-margin-top:128px}
@media(max-width:1100px){
  .ah-home .ah-shell,.ah-home .ap-home-downloads{width:calc(100% - 64px)}
  .ah-home .ah-product-panel{gap:32px}
  .ah-home .ah-product-copy{padding-top:8px}
  .ah-home .ah-project-grid{gap:24px}
  .ah-home .ah-project-copy{padding:22px}
  .ah-home .ap-home-downloads{padding:28px}
}
@media(max-width:960px){
  .ah-home .ap-home-download-grid{grid-template-columns:1fr}
  .ah-home .ap-download-cover{flex:none;height:260px;min-height:260px}
  .ah-home .ap-download-category-heading{min-height:0}
}
@media(max-width:800px){
  .ah-home .ah-shell,.ah-home .ap-home-downloads{width:calc(100% - 44px)}
  .ah-home .ah-product-panel{grid-template-columns:1fr;gap:28px}
  .ah-home .ah-product-copy{padding-top:0}
  .ah-home .ah-product-visual{width:100%}
  .ah-home .ah-project-card:nth-child(2){padding-top:0}
  .ah-home .ah-project-copy{padding:22px 20px}
  .ah-home .ah-project-copy h3{font-size:20px}
  .ah-home .ah-project-photo img{inset:12px;width:calc(100% - 24px);height:calc(100% - 24px)}
  .ah-home .ap-home-downloads{margin-block:54px}
  .ah-home :is(#home-solutions,#product-downloads,#ah-projects-title){scroll-margin-top:104px}
}
@media(max-width:600px){
  .ah-home .ah-shell,.ah-home .ap-home-downloads{width:calc(100% - 40px)}
  .ah-home .ah-product-image-link{aspect-ratio:4/3;border-radius:12px}
  .ah-home .ah-product-image-link img{inset:12px;width:calc(100% - 24px);height:calc(100% - 24px)}
  .ah-home .ah-product-visual figcaption{font-size:11px}
  .ah-home .ah-project-grid{grid-template-columns:1fr;gap:24px}
  .ah-home .ah-project-photo{aspect-ratio:5/4}
  .ah-home .ah-project-copy{padding:24px 20px}
  .ah-home .ah-project-copy h3{font-size:21px}
  .ah-home .ap-home-downloads{padding:24px 20px;margin-block:44px}
  .ah-home :is(.ap-download-featured,.ap-download-lighting){padding:20px}
  .ah-home .ap-download-category-heading h3{font-size:24px}
  .ah-home .ap-download-cover{height:230px;min-height:230px}
}
/* Keep text readable during entry; use motion without fading the full page. */
.ah-home .ah-hero-warm :is(.ah-eyebrow,.ah-hero-title,.ah-lead,.ah-actions,.ah-warm-node){animation-name:ap-stable-enter;animation-duration:.65s;animation-delay:0s;animation-fill-mode:backwards}
@keyframes ap-stable-enter{from{translate:0 12px}to{translate:0 0}}
.ah-home .ah-product-panel{animation:none}
.ah-home .ah-warm-node{z-index:1}
.ah-home .ah-motion-tools{min-height:40px}
/* Never crop a replacement upload just because the previous asset was square. */
.ah-home img[data-product-render="standard"]:not([src$="apricity-ac-h-standard.webp"]){object-fit:contain!important}
.ah-motion-enhanced .ah-warm-paths:not([data-ap-path-aligned]){visibility:hidden}
body[data-ap-studio-motion="subtle"] .ah-home .ah-warm-node-icon{animation-duration:12s!important}
body[data-ap-studio-motion="strong"] .ah-home .ah-warm-node-icon{animation-duration:6s!important}
body[data-ap-studio-motion="subtle"] .ah-home .ah-motion-light-trail{animation-duration:14s!important}
body[data-ap-studio-motion="strong"] .ah-home .ah-motion-light-trail{animation-duration:7s!important}
body[data-ap-studio-motion="off"] .ah-motion-spark{display:none}
