/* After Hours: approved effects 1 / 9 / 11. Native CSS + Web Animations. */
.ah-home{--motion-fast:220ms;--motion-reveal:620ms;--motion-ease:cubic-bezier(.22,1,.36,1)}
.ah-home .dev-banner{height:26px;padding:4px 10px;display:flex;align-items:center;justify-content:center}
.ah-home header{height:76px;min-height:76px;padding:0 5%}
.ah-home .ah-hero{height:calc(100svh - 102px);min-height:480px;padding:22px 5% 24px;display:grid;grid-template-rows:auto minmax(0,1fr);gap:22px}
.ah-home .ah-intro{display:flex;align-items:end;gap:35px;padding:0;min-width:0}
.ah-home .ah-intro h1{font-size:clamp(40px,4.2vw,62px);line-height:1.06;margin:12px 0 0}
.ah-home .ah-intro-action{display:block;flex-shrink:0;padding:0;margin:0}
.ah-home .ah-intro-action p{font-size:13px;margin:0 0 14px}
.ah-home .ah-button{min-height:48px;padding:12px 20px}
.ah-home .ah-showcase{display:grid;grid-template-columns:minmax(0,1fr) 248px;min-height:0;margin:0}
.ah-home .ah-hero-photo{min-height:0;display:flex;align-items:center;justify-content:center;background:#222b28}
.ah-home .ah-hero-photo img{width:100%;height:100%;max-height:100%;aspect-ratio:auto;object-fit:contain}
.ah-home .ah-hero-detail{display:flex;flex-direction:column;justify-content:center;padding:20px 25px;gap:12px;min-height:0;overflow-wrap:anywhere}
.ah-home .ah-hero-detail>.ah-kicker{font-size:10px}
.ah-home .ah-hero-detail h2{font-size:32px;line-height:1.1;margin:0}
.ah-home .ah-hero-detail h2>span{font-size:13px;margin:0 0 7px}
.ah-home .ah-hero-detail p{font-size:12px;line-height:1.65;margin:0}
.ah-home .ah-hero-detail dl{margin:0;width:100%}
.ah-home .ah-hero-detail dl>div{padding:8px 0}
.ah-home .ah-hero-detail dd{margin-top:3px}
.ah-home .ah-hero-detail strong{font-size:28px;line-height:1.2}
.ah-home .ah-hero-detail .ah-arrow-link{margin:0;min-height:44px;padding:9px 0}
.ah-word-mask{display:inline-block;overflow:hidden;vertical-align:bottom;padding-bottom:.09em;margin-bottom:-.09em}
.ah-word{display:inline-block;transform-origin:0 100%}
.ah-home .ah-car-image{overflow:hidden;isolation:isolate}
.ah-card-overlay{position:absolute;inset:0;background:rgba(23,30,29,.24);display:flex;align-items:end;justify-content:end;padding:20px;opacity:0;pointer-events:none}
.ah-card-overlay>span{display:flex;align-items:center;gap:18px;padding:11px 16px;background:#d7e6bc;color:#1c2922;font-size:12px;letter-spacing:0;line-height:1.5}
.ah-home .ah-car-image:focus-visible .ah-card-overlay{opacity:1;transform:none!important}
.ah-home .ah-story-image{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:8px 8px 0;background:#d2d9d0;align-self:center}
.ah-detail-photo{position:relative;display:block;width:100%;min-width:0;padding:0;border:0;background:#cbd3c8;color:white;text-align:left;cursor:zoom-in;overflow:hidden}
.ah-detail-photo:first-child{grid-column:1/-1}
.ah-home .ah-detail-photo img{width:100%;height:auto;aspect-ratio:3/2;object-fit:contain}
.ah-detail-photo>span{position:absolute;bottom:12px;left:12px;background:#171e1d;color:#f0f2ef;font-size:11px;padding:6px 10px;display:flex;gap:20px;align-items:center;line-height:1.5}
.ah-detail-photo>span b{font-size:16px;font-weight:400}
.ah-home .ah-story-image>.ah-detail-caption{grid-column:1/-1;padding:10px 12px 14px;background:transparent;font-size:10px;letter-spacing:.09em;color:#435448}
.ah-home .ah-photo-dialog{width:min(1120px,calc(100vw - 36px));max-width:none;max-height:calc(100svh - 36px);margin:auto;padding:0;border:1px solid #637366;overflow:auto;background:#171e1d;color:#f0f2ef}
.ah-photo-dialog::backdrop{background:rgba(12,18,15,.86)}
.ah-photo-heading{display:flex;justify-content:space-between;gap:25px;align-items:center;padding:18px 24px;border-bottom:1px solid #3a483d}
.ah-home .ah-photo-heading h2{font-size:22px;letter-spacing:-.035em;margin:0;line-height:1.3}
.ah-home .ah-photo-heading p{font-size:11px;letter-spacing:.08em;color:#bdc9bf;margin:5px 0 0;line-height:1.5}
.ah-photo-dialog .ah-photo-close{padding:10px 16px;margin:0;min-height:44px;flex-shrink:0;background:transparent;border:1px solid #91a08e;color:#f0f2ef;font-size:13px}
.ah-photo-stage{height:min(65svh,690px);min-height:140px;background:#222b28;display:flex;align-items:center;justify-content:center}
.ah-photo-stage img{width:100%;height:100%;max-height:none;object-fit:contain}
.ah-photo-footer{padding:14px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:12px}
.ah-photo-footer a{border-bottom:1px solid #b7c6ac;padding:9px 0;min-height:44px}
.ah-photo-clone{position:fixed;pointer-events:none;z-index:2;object-fit:contain;max-height:none!important;transform-origin:0 0;will-change:transform;background:transparent}
.ah-home .ah-detail-photo:focus-visible,.ah-home .ah-car-image:focus-visible{outline:3px solid #57723e;outline-offset:4px}
.ah-home .ah-photo-dialog :focus-visible{outline:3px solid #d7e6bc;outline-offset:4px}
@media(min-width:651px) and (max-width:1000px){
 .ah-home .ah-intro{display:block}
 .ah-home .ah-intro h1{font-size:clamp(35px,5.4vw,49px)}
 .ah-home .ah-intro-action{display:flex;align-items:center;justify-content:space-between;margin-top:16px}
 .ah-home .ah-intro-action p{margin:0;font-size:12px}
 .ah-home .ah-showcase{grid-template-columns:minmax(0,1fr) 205px}
 .ah-home .ah-hero-detail{padding:16px;gap:10px}
 .ah-home .ah-hero-detail h2{font-size:28px}
 .ah-home .ah-hero-detail>p{display:none}
}
@media(min-width:651px) and (max-height:760px){
 .ah-home .ah-hero{min-height:380px;padding-top:16px;padding-bottom:16px;gap:16px}
 .ah-home .ah-intro h1{font-size:clamp(34px,3.5vw,49px)}
 .ah-home .ah-hero-detail>p{display:none}
 .ah-home .ah-hero-detail dl>div{padding:5px 0}
 .ah-home .ah-hero-detail{gap:8px}
}
@media(max-width:650px){
 .ah-home .dev-banner{height:24px;font-size:9px}
 .ah-home header{height:auto;min-height:72px;padding:12px 6%;gap:12px}
 .ah-home .brand{font-size:21px}
 .ah-home .brand small{font-size:8px;letter-spacing:.12em}
 .ah-home .ah-hero{height:calc(100svh - 96px);min-height:450px;padding:18px 6% 16px;gap:16px}
 .ah-home .ah-intro{display:block}
 .ah-home .ah-intro h1{font-size:clamp(28px,8.2vw,36px);line-height:1.1;margin-top:10px}
 .ah-home .ah-intro-action{display:block;padding:0;margin-top:15px}
 .ah-home .ah-intro-action p{font-size:12px;line-height:1.6;margin:0 0 12px}
 .ah-home .ah-button{min-height:46px;font-size:12px;padding:11px 18px}
 .ah-home .ah-showcase{display:grid;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;min-height:0;margin:0 -6.82%;background:#222b28}
 .ah-home .ah-hero-photo img{height:100%;width:100%;aspect-ratio:auto;object-fit:contain}
 .ah-home .ah-hero-detail{display:grid;grid-template-columns:1fr auto;padding:12px 6%;gap:0 15px;align-items:center}
 .ah-home .ah-hero-detail>.ah-kicker,.ah-home .ah-hero-detail>p,.ah-home .ah-hero-detail dl{display:none}
 .ah-home .ah-hero-detail h2{font-size:25px;line-height:1.12;margin:0}
 .ah-home .ah-hero-detail h2>span{font-size:11px;margin:0 0 4px}
 .ah-home .ah-hero-detail strong{grid-column:2;grid-row:1;font-size:23px;text-align:right;padding:0;align-self:center}
 .ah-home .ah-hero-detail .ah-arrow-link{grid-column:1/-1;margin:6px 0 0;min-height:44px;padding:8px 0;font-size:12px}
 .ah-home .ah-story-image{gap:6px;padding:6px 6px 0}
 .ah-detail-photo>span{bottom:8px;left:8px;font-size:10px;padding:5px 8px;gap:14px}
 .ah-home .ah-photo-dialog{width:calc(100vw - 20px);max-height:calc(100svh - 20px)}
 .ah-photo-heading{padding:14px;gap:15px}
 .ah-home .ah-photo-heading h2{font-size:18px}
 .ah-home .ah-photo-heading p{font-size:10px}
 .ah-photo-dialog .ah-photo-close{padding:8px 10px;font-size:12px}
 .ah-photo-stage{height:55svh}
 .ah-photo-footer{padding:10px 14px;font-size:11px;gap:12px}
}
@media(max-width:650px) and (max-height:700px){
 .ah-home .ah-hero{min-height:410px;padding-top:14px;padding-bottom:12px;gap:12px}
 .ah-home .ah-intro-action p{display:none}
 .ah-home .ah-intro-action{margin-top:12px}
 .ah-home .ah-hero-detail .ah-arrow-link{display:none}
 .ah-home .ah-hero-detail{padding-top:10px;padding-bottom:10px}
}
/* On very short landscape screens, retain readable content and natural scrolling. */
@media(max-height:480px){.ah-home .ah-hero{height:auto;min-height:0;display:block}.ah-home .ah-intro{margin-bottom:20px}.ah-home .ah-showcase{height:300px}.ah-home .ah-hero-detail dl{display:none}}
@media(hover:none),(pointer:coarse){.ah-card-overlay{display:none}}
@media(prefers-reduced-motion:reduce){.ah-word,.ah-card-overlay{transform:none!important}.ah-photo-clone{display:none}.ah-home *{animation:none!important;transition:none!important}}

/* Final visual review: limit empty space on tall portrait screens. */
.ah-photo-stage{height:auto;aspect-ratio:3/2;max-height:65svh}
@media(min-width:651px) and (max-width:1000px) and (min-height:700px){
 .ah-home .ah-hero{height:min(calc(100svh - 102px),860px)}
 .ah-home .ah-showcase{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto}
 .ah-home .ah-hero-detail{display:grid;grid-template-columns:1fr auto;padding:14px 24px;gap:0 20px}
 .ah-home .ah-hero-detail>.ah-kicker,.ah-home .ah-hero-detail dl{display:none}
 .ah-home .ah-hero-detail h2{margin:0}
 .ah-home .ah-hero-detail strong{grid-column:2;grid-row:1;align-self:center}
 .ah-home .ah-hero-detail .ah-arrow-link{grid-column:1/-1;margin-top:5px}
}
@media(max-width:650px) and (min-height:701px){.ah-home .ah-hero{height:min(calc(100svh - 96px),calc(66.666vw + 370px))}.ah-photo-stage{height:auto;max-height:65svh}}
@media(max-width:650px) and (max-height:700px){.ah-photo-stage{height:auto;max-height:65svh}}
