/* Human imagery and restrained motion for the YounitedCapital homepage. */
.yc-hero-grid{grid-template-rows:auto auto}
.yc-hero-copy{grid-row:1/3}
.yc-hero-photo{position:relative;grid-column:2;grid-row:1;height:350px;margin:0;overflow:hidden;border-radius:20px;box-shadow:0 28px 72px rgba(7,27,51,.18);animation:ycPhotoEnter .85s cubic-bezier(.2,.75,.2,1) both}
.yc-hero-photo:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,rgba(7,27,51,.48))}
.yc-hero-photo img{width:100%;height:100%;object-fit:cover;object-position:62% center;transition:transform 1.1s cubic-bezier(.2,.75,.2,1)}
.yc-hero-photo:hover img{transform:scale(1.035)}
.yc-hero-photo figcaption{position:absolute;z-index:2;right:18px;bottom:17px;display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:8px;color:#fff;text-align:right}
.yc-hero-photo figcaption i{grid-row:1/3;width:9px;height:9px;border-radius:50%;background:#45d2ad;box-shadow:0 0 0 6px rgba(69,210,173,.18),0 0 18px rgba(69,210,173,.65);animation:ycStatusPulse 2s ease-in-out infinite}
.yc-hero-photo figcaption span{font-size:9px;font-weight:600;opacity:.82}
.yc-hero-photo figcaption b{font-size:11px}
.yc-hero .yc-preview{z-index:4;grid-column:2;grid-row:2;width:88%;margin:-112px 0 0 -46px;box-shadow:0 30px 80px rgba(7,27,51,.24);animation:ycPreviewEnter .95s .16s cubic-bezier(.2,.75,.2,1) both,ycPreviewFloat 6s 1.2s ease-in-out infinite}
.yc-preview-top>b i{animation:ycStatusPulse 2s ease-in-out infinite}
.yc-progress>span i{transform-origin:left;animation:ycProgressGrow 1.3s .75s cubic-bezier(.2,.75,.2,1) both}
.yc-adviser figure{background:url("images/younited-adviser-client.webp") center 28%/cover no-repeat}
.yc-adviser figure>img{opacity:0}
.yc-adviser figure:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 60%,rgba(7,27,51,.24));pointer-events:none}
.yc-adviser figcaption{z-index:2}
.yc-solution-grid>a,.yc-journey li,.yc-adviser figure,.yc-adviser-copy,.yc-simulator-copy,.yc-simulator-panel{animation:ycScrollReveal linear both;animation-timeline:view();animation-range:entry 5% cover 28%}
.yc-solution-grid>a:nth-child(2),.yc-journey li:nth-child(2){animation-range:entry 10% cover 31%}
.yc-solution-grid>a:nth-child(3),.yc-journey li:nth-child(3){animation-range:entry 15% cover 34%}
.yc-solution-grid>a:nth-child(4),.yc-journey li:nth-child(4){animation-range:entry 20% cover 37%}
.yc-journey li{animation:none!important;opacity:1!important;transform:none}
.yc-proof article>i{transition:transform .3s,background .3s,color .3s}
.yc-proof article:hover>i{transform:translateY(-4px) rotate(-4deg);background:var(--yc-blue);color:#fff}

@keyframes ycPhotoEnter{from{opacity:0;transform:translateX(34px) scale(.975)}to{opacity:1;transform:none}}
@keyframes ycPreviewEnter{from{opacity:0;transform:translateY(34px) scale(.96)}to{opacity:1;transform:none}}
@keyframes ycPreviewFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
@keyframes ycStatusPulse{50%{box-shadow:0 0 0 8px rgba(69,210,173,0),0 0 18px rgba(69,210,173,.35)}}
@keyframes ycProgressGrow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes ycScrollReveal{from{opacity:0;transform:translateY(38px)}to{opacity:1;transform:none}}

@media(max-width:1050px){
  .yc-hero-photo{height:330px}
  .yc-hero .yc-preview{width:94%;margin-left:-24px}
}
@media(max-width:820px){
  .yc-hero-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto!important}
  .yc-hero-copy,.yc-hero-photo,.yc-hero .yc-preview{grid-column:1;grid-row:auto}
  .yc-hero-photo{height:380px;margin-top:48px}
  .yc-hero .yc-preview{width:calc(100% - 28px)!important;max-width:570px!important;margin:-70px auto 0!important}
}
@media(max-width:600px){
  .yc-hero-photo{height:280px;border-radius:16px}
  .yc-hero-photo img{object-position:64% center}
  .yc-hero .yc-preview{width:calc(100% - 20px)!important;margin:-44px auto 0!important}
  .yc-adviser figure{background-position:center 22%}
}
@media(prefers-reduced-motion:reduce){
  .yc-hero-photo,.yc-hero .yc-preview,.yc-preview-top>b i,.yc-progress>span i,.yc-solution-grid>a,.yc-journey li,.yc-adviser figure,.yc-adviser-copy,.yc-simulator-copy,.yc-simulator-panel{animation:none!important}
  .yc-hero-photo img{transition:none!important}
}
