/* Abbey Cars — Final Option B: slower premium baseline-up reveal */
.abbey-animation-shell {
  --abbey-ivory:#FEFCF5;
  --abbey-charcoal:#212121;
  --abbey-gold:#B5924B;
  --abbey-ease:cubic-bezier(.22,.74,.18,1);
  --abbey-ease-soft:cubic-bezier(.25,.67,.22,1);
}

.abbey-animation-shell{
  width:min(100%,1180px);
  margin-inline:auto;
  aspect-ratio:1191/651;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:var(--abbey-ivory);
  position:relative;
  isolation:isolate;
  contain:layout paint;
}

.abbey-animation-shell::before{
  content:"";
  position:absolute;
  inset:-18%;
  pointer-events:none;
  opacity:0;
  z-index:-1;
  background:radial-gradient(circle at 22% 44%,rgba(255,255,255,.45),rgba(255,255,255,0) 37%);
  transform:translate3d(-7%,0,0);
}

/* Slower, calmer background motion; it resolves well before the final hold. */
.abbey-animation-shell.is-inview::before{
  animation:abbeyBgSweep 3.30s var(--abbey-ease-soft) .10s 1 both;
}

.abbey-animation-shell svg{
  display:block;
  width:91%;
  height:auto;
  overflow:visible;
}

.abbey-animation-shell #abbey-logo-lockup{
  transform-box:view-box;
  transform-origin:50% 50%;
  transform:translateY(1.5px) scale(.994);
}

.abbey-animation-shell #abbey-west-mask-rect,
.abbey-animation-shell #abbey-nave-mask-rect,
.abbey-animation-shell #abbey-east-mask-rect{
  transform-box:fill-box;
  transform-origin:50% 100%;
  transform:translateY(447px);
}

.abbey-animation-shell #abbey-marque-west,
.abbey-animation-shell #abbey-marque-nave,
.abbey-animation-shell #abbey-marque-east{
  opacity:.06;
}

.abbey-animation-shell #abbey-baseline-mask-rect{
  transform-box:fill-box;
  transform-origin:0% 50%;
  transform:scaleX(0);
}

/* Locked wordmark paths remain stationary; only masks open upward from baseline. */
.abbey-animation-shell #abbey-wordmark-abbey-mask-rect,
.abbey-animation-shell #abbey-wordmark-cars-mask-rect{
  transform-box:fill-box;
  transform-origin:50% 100%;
  transform:scaleY(0);
}

/* Architectural reveal: slower with overlapping stages. */
.abbey-animation-shell.is-inview #abbey-west-mask-rect{
  animation:abbeyRise 1.72s var(--abbey-ease) .14s 1 both;
}
.abbey-animation-shell.is-inview #abbey-nave-mask-rect{
  animation:abbeyRise 1.68s var(--abbey-ease) .50s 1 both;
}
.abbey-animation-shell.is-inview #abbey-east-mask-rect{
  animation:abbeyRise 1.62s var(--abbey-ease) .86s 1 both;
}

.abbey-animation-shell.is-inview #abbey-marque-west{
  animation:abbeyMarqueResolve 1.62s ease-out .14s 1 both;
}
.abbey-animation-shell.is-inview #abbey-marque-nave{
  animation:abbeyMarqueResolve 1.58s ease-out .50s 1 both;
}
.abbey-animation-shell.is-inview #abbey-marque-east{
  animation:abbeyMarqueResolve 1.54s ease-out .86s 1 both;
}

/* Drafting-line sweep overlaps the final architectural reveal. */
.abbey-animation-shell.is-inview #abbey-baseline-mask-rect{
  animation:abbeyBaseline .90s var(--abbey-ease) 1.72s 1 both;
}

/* Option B preserved: deliberate baseline-up reveal, with CARS following 290ms later. */
.abbey-animation-shell.is-inview #abbey-wordmark-abbey-mask-rect{
  animation:abbeyWordVertical .80s var(--abbey-ease) 2.65s 1 both;
}
.abbey-animation-shell.is-inview #abbey-wordmark-cars-mask-rect{
  animation:abbeyWordVertical .82s var(--abbey-ease-soft) 2.94s 1 both;
}

/* Roughly 280ms breathing room after CARS resolves, then a restrained settle. */
.abbey-animation-shell.is-inview #abbey-logo-lockup{
  animation:abbeySettle .46s var(--abbey-ease) 4.04s 1 both;
}

@keyframes abbeyRise{to{transform:translateY(0)}}
@keyframes abbeyMarqueResolve{0%{opacity:.06}72%{opacity:.94}100%{opacity:1}}
@keyframes abbeyBaseline{to{transform:scaleX(1)}}
@keyframes abbeyWordVertical{to{transform:scaleY(1)}}
@keyframes abbeySettle{to{transform:translateY(0) scale(1)}}
@keyframes abbeyBgSweep{
  0%{opacity:0;transform:translate3d(-7%,0,0)}
  34%{opacity:.30}
  100%{opacity:0;transform:translate3d(16%,0,0)}
}

@media(prefers-reduced-motion:reduce){
  .abbey-animation-shell::before{display:none}
  .abbey-animation-shell *{animation:none!important;transition:none!important}
  .abbey-animation-shell #abbey-logo-lockup{transform:none}
  .abbey-animation-shell #abbey-west-mask-rect,
  .abbey-animation-shell #abbey-nave-mask-rect,
  .abbey-animation-shell #abbey-east-mask-rect{transform:translateY(0)}
  .abbey-animation-shell #abbey-baseline-mask-rect{transform:scaleX(1)}
  .abbey-animation-shell #abbey-wordmark-abbey-mask-rect,
  .abbey-animation-shell #abbey-wordmark-cars-mask-rect{transform:scaleY(1)}
  .abbey-animation-shell #abbey-marque-west,
  .abbey-animation-shell #abbey-marque-nave,
  .abbey-animation-shell #abbey-marque-east{opacity:1}
}

@media(max-width:640px){
  .abbey-animation-shell svg{width:96%}
}

/* Progressive enhancement: without the controller, approved artwork remains visible. */
.abbey-animation-shell:not(.is-ready) #abbey-logo-lockup{transform:none}
.abbey-animation-shell:not(.is-ready) #abbey-west-mask-rect,.abbey-animation-shell:not(.is-ready) #abbey-nave-mask-rect,.abbey-animation-shell:not(.is-ready) #abbey-east-mask-rect{transform:translateY(0)}
.abbey-animation-shell:not(.is-ready) #abbey-baseline-mask-rect{transform:scaleX(1)}
.abbey-animation-shell:not(.is-ready) #abbey-wordmark-abbey-mask-rect,.abbey-animation-shell:not(.is-ready) #abbey-wordmark-cars-mask-rect{transform:scaleY(1)}
.abbey-animation-shell:not(.is-ready) #abbey-marque-west,.abbey-animation-shell:not(.is-ready) #abbey-marque-nave,.abbey-animation-shell:not(.is-ready) #abbey-marque-east{opacity:1}
