/* Home motion: normal page flow and reduced-motion support. */
@media (prefers-reduced-motion: no-preference) {
  .motion-preview .home .work-introduction.motion-enter h2,
  .motion-preview .home .work-introduction.motion-enter > p:last-child {
    opacity: .55;
    transform: translateY(42px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
  }
  .motion-preview .home .work-introduction.motion-enter.in-view h2,
  .motion-preview .home .work-introduction.motion-enter.in-view > p:last-child {
    opacity: 1;
    transform: none;
  }
  .motion-preview .home .work-introduction.motion-enter > p:last-child { transition-delay: .1s; }

  .motion-preview .home .featured-work-grid.motion-enter .work-card {
    opacity: .65;
    transform: translateY(42px) scale(.965);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
  }
  .motion-preview .home .featured-work-grid.motion-enter.in-view .work-card {
    opacity: 1;
    transform: none;
  }
  .motion-preview .home .featured-work-grid.motion-enter .work-card:nth-child(2) { transition-delay: .12s; }
  .motion-preview .home .featured-work-grid.motion-enter .work-card:nth-child(3) { transition-delay: .22s; }

  .motion-preview .home .visual-section-heading.motion-enter #approach-title span {
    display: inline-block;
    opacity: .58;
    transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .8s ease, color .8s ease;
  }
  .motion-preview .home .visual-section-heading.motion-enter #approach-title span:first-child { transform: translateX(-24px); }
  .motion-preview .home .visual-section-heading.motion-enter #approach-title span:last-child { transform: translateX(24px); }
  .motion-preview .home .visual-section-heading.motion-enter.in-view #approach-title span {
    transform: none;
    opacity: 1;
  }
  .motion-preview .home .visual-section-heading.motion-enter.in-view #approach-title span:last-child { color: var(--accent); }

  .motion-preview .home .miami-residential-intro.motion-enter h2 {
    opacity: .6;
    transform: translateY(34px);
    transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1);
  }
  .motion-preview .home .miami-residential-intro.motion-enter.in-view h2 { opacity: 1; transform: none; }
  .motion-preview .home .miami-proof-image.motion-enter {
    opacity: .65;
    transform: translateX(-5vw);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
  }
  .motion-preview .home .miami-proof-image.motion-enter.miami-proof-detail { transform: translateX(5vw); }
  .motion-preview .home .miami-proof-image.motion-enter.in-view { opacity: 1; transform: none; }
}

@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .motion-preview .home .visual-section-heading.motion-enter #approach-title span:first-child,
  .motion-preview .home .visual-section-heading.motion-enter #approach-title span:last-child,
  .motion-preview .home .miami-proof-image.motion-enter,
  .motion-preview .home .miami-proof-image.motion-enter.miami-proof-detail {
    transform: translateY(24px);
  }
  .motion-preview .home .visual-section-heading.motion-enter.in-view #approach-title span,
  .motion-preview .home .miami-proof-image.motion-enter.in-view { transform: none; }
}

/* Miami geography composition. */
.miami-map-study { display: none; }
.motion-preview .home .miami-proof-detail { display: none; }
.motion-preview .home .miami-map-study { display: block; min-width: 0; }
.motion-preview .home .miami-residential-gallery { grid-template-columns: minmax(0,1.22fr) minmax(0,.78fr); align-items: start; gap: clamp(24px,4vw,62px); }
.miami-map-frame { position: relative; height: clamp(320px,44vh,500px); overflow: hidden; background: #343d3d; border: 1px solid #54615e; }
.miami-map-fallback { padding: 25px; color: #edf0ea; font-size: 16px; }
.miami-map-frame .leaflet-tile-pane { filter: grayscale(1) brightness(.68) contrast(1.15); }
.miami-map-frame .leaflet-control-attribution { background: #171b1be6; color: white; font-size: 10px; }
.miami-map-frame .leaflet-control-attribution a { color: #ffad22; }
.miami-map-frame .leaflet-control-zoom a { background: #1f2525; color: #f2f2ed; border-color: #59625e; }
.miami-map-pin { display: grid; place-items: center; border-radius: 50%; background: #ffad22; border: 2px solid #19201d; box-shadow: 0 0 0 6px #ffad2240; color: #171b1b; font: 700 11px/1 Arial,sans-serif; }
.miami-map-pin span { display: block; }
.miami-map-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); list-style: none; gap: 0 14px; margin: 16px 0 0; padding: 0; }
.miami-map-list li { min-width: 0; }
.miami-map-list button { display: flex; gap: 10px; align-items: baseline; width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid #4a5450; background: transparent; color: #edf0ea; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.miami-map-list button span { color: #ffad22; font-size: 11px; }
.miami-map-list button:hover,.miami-map-list button[aria-pressed="true"] { color: #ffad22; }
.miami-map-list button:focus-visible { outline: 2px solid #ffad22; outline-offset: 2px; }
.miami-map-label { margin: 18px 0 2px; color: #ffad22; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.miami-building-register { display: none; }
.motion-preview .home .miami-building-register { display: grid; grid-template-columns: minmax(0,.29fr) minmax(0,.71fr); gap: 18px clamp(30px,6vw,92px); align-items: start; margin-top: clamp(34px,5vw,66px); padding-top: 24px; border-top: 1px solid #4a5450; }
.miami-building-register .miami-map-label { margin-top: 0; }
.miami-building-register > div > p:last-child { max-width: 310px; margin: 10px 0 0; color: #edf0ea; font-size: 17px; line-height: 1.45; }
.miami-building-register ul { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px 28px; margin: 0; padding: 0; list-style: none; }
.miami-building-register li { padding: 1px 0 12px; border-bottom: 1px solid #4a5450; color: #edf0ea; font-size: clamp(15px,1.35vw,19px); line-height: 1.35; }
.motion-preview .home .miami-role-note { display: none; }
.home #miami-residential-title { scroll-margin-top: 125px; }
.miami-map-credit { grid-column: 2; color: #b8bfba; font-size: 11px; line-height: 1.5; margin: 0; }
@media(max-width:900px) { .motion-preview .home .miami-residential-gallery { grid-template-columns: 1fr; } .miami-map-frame { height: 420px; } }
@media(max-width:760px) { .motion-preview .home .miami-map-study { order: 4; } .motion-preview .home .miami-building-register { order: 5; grid-template-columns: 1fr; gap: 20px; width: 100%; } .miami-map-credit { grid-column: 1; } }
@media(max-width:600px) { .miami-map-frame { height: 340px; } .miami-map-list { grid-template-columns: 1fr; } .miami-building-register ul { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 18px; } }

@media (prefers-reduced-motion: no-preference) {
  .motion-preview .home #work .work-introduction h2,
  .motion-preview .home #work .work-introduction > p:last-child,
  .motion-preview .home #work .featured-work-grid .work-card { transform: translateY(var(--work-shift,0px)); }
  .motion-preview .home #work .work-card-image img { transform: translateY(var(--work-image-shift,0px)) scale(var(--work-image-scale,1)); will-change: transform; }
  .motion-preview .home #work .work-card-link::before { content: ''; position: absolute; inset: 0; z-index: 2; background: #171e1d; pointer-events: none; opacity: var(--work-curtain,0); }
  .motion-preview .home #work .work-card-meta { z-index: 3; }
  .motion-preview .home .visual-section-heading #approach-title span { display: inline-block; opacity: var(--approach-opacity,1); }
  .motion-preview .home .visual-section-heading #approach-title span:last-child { transform: translateX(var(--approach-offset,0px)); transition: color .45s ease; }
  .motion-preview .home .visual-section-heading.motion-arrived #approach-title span:last-child { color: var(--accent); }
  .motion-preview .home .miami-residential-intro h2 { transform: translateY(var(--miami-heading-shift,0px)); }
  .motion-preview .home .miami-proof-main > a img { transform: translateY(var(--miami-image-shift,0px)) scale(1.12); will-change: transform; }
}
