/* The homepage motion controller enables effects only when visitors allow them. */
.home-motion-word {
  display: inline-block;
  white-space: nowrap;
  transform-origin: 50% 100%;
}

.home-refreshed h1 .home-motion-word,
.home-refreshed h2 .home-motion-word,
body[data-page="home"] .vision-finale h2 .home-motion-word {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
}

.home-motion-on .vision-hero {
  isolation: isolate;
}

.home-motion-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse at 14% 45%, rgba(236, 194, 161, .14), transparent 48%),
    radial-gradient(ellipse at 80% 15%, rgba(182, 112, 132, .13), transparent 48%);
}

.home-motion-on .home-motion-glow {
  opacity: 1;
  animation: home-glow 7s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.home-motion-on .motion-visible .home-motion-glow {
  animation-play-state: running;
}

.home-motion-on .home-hero-portrait img {
  animation: home-portrait-float 6s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.home-motion-on .motion-visible .home-hero-portrait img {
  animation-play-state: running;
}

.home-motion-on.home-motion-hidden .home-motion-glow,
.home-motion-on.home-motion-hidden .home-hero-portrait img {
  animation-play-state: paused;
}

.home-portrait-trace {
  display: none;
  position: absolute;
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  pointer-events: none;
}

.home-motion-on .home-portrait-trace {
  display: block;
}

.home-portrait-trace path {
  fill: none;
  stroke: rgba(242, 206, 174, .85);
  stroke-width: 1.3px;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  vector-effect: non-scaling-stroke;
}

.home-motion-on .home-section-motion {
  position: relative;
}

.home-refreshed .home-section-motion > .home-motion-divider {
  display: none;
  position: absolute;
  right: 0;
  bottom: -18px;
  left: 0;
  height: 6px;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  pointer-events: none;
  opacity: .3;
}

.home-motion-on .home-refreshed .home-motion-divider {
  display: flex;
}

.home-motion-divider-line {
  flex: 1;
  height: 1px;
  background: currentColor;
  transform-origin: left;
}

.home-motion-divider-line:last-child {
  transform-origin: right;
}

.home-motion-divider-diamond {
  width: 5px;
  height: 5px;
  background: currentColor;
  transform: rotate(45deg);
}

.home-motion-photo {
  position: relative;
}

.home-photo-curtain {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.home-motion-on .home-photo-curtain {
  display: flex;
}

.home-photo-curtain[hidden] {
  display: none !important;
}

.home-photo-curtain > i {
  flex: 1;
  height: 100%;
  background: #eadbcb;
}

.home-photo-curtain > i:last-child {
  background: #dfc1b1;
}

.home-photo-curtain-wine > i {
  background: #76263e;
}

.home-photo-curtain-wine > i:last-child {
  background: #48222d;
}

.home-card-light {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle 150px at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255, 234, 209, .17), transparent 100%);
  transition: opacity .3s ease;
}

.home-motion-on .hero-plan-dock {
  outline: 1px solid rgba(255, 255, 255, .18);
  transition: box-shadow .35s ease, outline-color .35s ease;
}

.home-motion-on .hero-plan-dock:focus-within {
  outline-color: rgba(229, 186, 175, .8);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .28), 0 0 0 4px rgba(229, 186, 175, .12);
}

.home-motion-on .hero-plan-dock > button,
.home-motion-on .city-action,
.home-motion-on .home-help-actions a,
.home-motion-on .vision-finale a {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.home-motion-on .hero-plan-dock > button::after,
.home-motion-on .city-action::after,
.home-motion-on .home-help-actions a::after,
.home-motion-on .vision-finale a::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .23) 48%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .65s ease;
}

.home-motion-on .hero-plan-dock > button:is(:hover, :focus-visible)::after,
.home-motion-on .city-action:is(:hover, :focus-visible)::after,
.home-motion-on .home-help-actions a:is(:hover, :focus-visible)::after,
.home-motion-on .vision-finale a:is(:hover, :focus-visible)::after {
  transform: translateX(120%);
}

.home-motion-on .hero-plan-dock > button > span,
.home-motion-on .city-action > span,
.home-motion-on .vision-section-action a > span,
.home-motion-on .home-step-grid a > span,
.home-motion-on .home-help-actions a > span,
.home-motion-on .vision-secondary > span,
.home-motion-on .vision-category-copy b > span,
.home-motion-on .vision-real-overlay b > span {
  display: inline-block;
  transition: transform .3s ease;
}

.home-motion-on .hero-plan-dock > button:hover > span,
.home-motion-on .city-action:hover > span,
.home-motion-on .vision-section-action a:hover > span,
.home-motion-on .home-step-grid a:hover > span,
.home-motion-on .home-help-actions a:hover > span,
.home-motion-on .vision-secondary:hover > span,
.home-motion-on .vision-category-panel:hover .vision-category-copy b > span,
.home-motion-on .vision-real-panel:hover .vision-real-overlay b > span {
  transform: translate(3px, -3px);
}

.home-motion-on .home-refreshed .vision-category-copy b,
.home-motion-on .home-refreshed .vision-city-card b {
  max-width: 100%;
}

.home-motion-on .home-step-grid li {
  position: relative;
}

.home-motion-on .home-step-grid li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--v-wine);
  transform: scaleX(var(--step-line, 0));
  transform-origin: left;
}

.home-motion-on .home-step-number {
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}

.home-motion-on .home-step-grid li:is(:hover, :focus-within) .home-step-number {
  background: var(--v-wine);
  border-color: var(--v-wine);
  color: #fffdf8;
}

.home-motion-on .vision-section-head h2 em,
.home-motion-on .home-steps h2 em {
  position: relative;
}

.home-motion-on .vision-section-head h2 em::after,
.home-motion-on .home-steps h2 em::after {
  content: "";
  position: absolute;
  bottom: -.05em;
  left: 0;
  width: 72%;
  height: 1px;
  background: currentColor;
  opacity: .4;
  transform: scaleX(var(--heading-line, 0));
  transform-origin: left;
}

.home-motion-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 10020;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #7b203b, #b97287, #d7ad85);
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left;
}

.home-motion-progress[hidden] {
  display: none !important;
}

.home-motion-reduced .home-refreshed *,
.home-motion-reduced .home-refreshed *::before,
.home-motion-reduced .home-refreshed *::after,
.home-motion-reduced .vision-finale * {
  animation: none !important;
  transition: none !important;
}

.home-motion-reduced .home-refreshed .home-motion-card,
.home-motion-reduced .home-refreshed .home-motion-card img,
.home-motion-reduced .hero-plan-dock > button > span {
  transform: none !important;
  scale: 1 !important;
  translate: none !important;
}

.home-motion-reduced .home-magnetic-button {
  translate: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .home-motion-on .home-card-light {
    display: block;
  }

  .home-motion-on .home-motion-card:hover > .home-card-light {
    opacity: 1;
  }

  .home-motion-on .home-magnetic-button {
    translate: var(--magnetic-x, 0px) var(--magnetic-y, 0px);
    transition: translate .25s ease, box-shadow .3s ease, background .3s ease;
  }

  .home-motion-on .home-refreshed .home-motion-card {
    --card-lift: 0px;
    --card-x: 0deg;
    --card-y: 0deg;
    transform: perspective(1000px) translateY(var(--card-lift)) rotateX(var(--card-x)) rotateY(var(--card-y)) !important;
    transform-origin: center;
    transition: transform .28s ease, box-shadow .3s ease, border-color .3s ease;
  }

  .home-motion-on .home-refreshed .home-motion-card:hover {
    --card-lift: -5px;
    box-shadow: 0 22px 48px rgba(23, 18, 15, .2);
  }

  .home-motion-on .home-motion-card img {
    scale: 1;
    transition: scale .65s ease, filter .65s ease;
  }

  .home-motion-on .home-motion-card:hover img {
    scale: 1.035;
    filter: saturate(1.07);
  }
}

@keyframes home-glow {
  from {
    opacity: .5;
    transform: translateX(-2%) scale(1);
  }
  to {
    opacity: 1;
    transform: translateX(2%) scale(1.04);
  }
}

@keyframes home-portrait-float {
  from {
    translate: 0 -5px;
  }
  to {
    translate: 0 5px;
  }
}

@media (max-width: 720px) {
  .home-motion-glow {
    display: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  .home-motion-word {
    opacity: 1 !important;
    transform: none !important;
  }

  .home-motion-glow,
  .home-motion-progress,
  .home-photo-curtain,
  .home-card-light,
  .home-motion-divider,
  .home-portrait-trace {
    display: none !important;
  }

  .home-motion-on .home-refreshed .home-motion-card {
    transform: none !important;
  }
}
