/* Zoodle motion layer: quiet, slow, editorial. Everything here is opt-in via html.zd-motion,
   so the site reads perfectly if the script never runs, and nothing moves for reduced-motion visitors. */
:root { --zd-ease: cubic-bezier(.22,.7,.18,1); --zd-ink: #13354E; --zd-coral: #DD4127; --zd-sky: #A3DCF7; --zd-cream: #F1F2ED; }

/* ---- reveal on scroll ---- */
html.zd-motion [data-zd-rv] { opacity: 0; translate: 0 18px; transition: opacity .9s var(--zd-ease), translate .9s var(--zd-ease), scale 1.2s var(--zd-ease); transition-delay: var(--zd-d, 0ms); }
html.zd-motion img[data-zd-rv] { translate: 0 10px; scale: 1.035; }
html.zd-motion [data-zd-rv].zd-in { opacity: 1; translate: 0 0; scale: 1; }

/* ---- palms: a slow sea breeze ---- */
@keyframes zd-sway { 0% { rotate: -1.4deg; } 100% { rotate: 1.8deg; } }
html.zd-motion .zd-palm { transform-origin: 50% 100%; animation: zd-sway var(--zd-dur, 7s) ease-in-out var(--zd-delay, 0s) infinite alternate; will-change: rotate; }

/* ---- links and buttons ---- */
html.zd-motion header nav a { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px; transition: background-size .5s var(--zd-ease); }
html.zd-motion header nav a:hover, html.zd-motion header nav a:focus-visible { background-size: 100% 1px; }
html.zd-motion .zd-btn { transition: translate .35s var(--zd-ease), background-color .35s var(--zd-ease), color .35s var(--zd-ease); }
html.zd-motion .zd-btn:hover, html.zd-motion .zd-btn:focus-visible { translate: 0 -2px; }
html.zd-motion .zd-btn:active { translate: 0 0; }

/* ---- photos: gentle settle on hover ---- */
html.zd-motion .car-stage img, html.zd-motion .rel-img img, html.zd-motion .shop-img img, html.zd-motion .piece-img img { transition: scale 1.1s var(--zd-ease); }
html.zd-motion .kit-card:hover .car-stage img, html.zd-motion .kit-row:hover .car-stage img, html.zd-motion .rel:hover .rel-img img, html.zd-motion .shop-item:hover .shop-img img, html.zd-motion .piece:hover .piece-img img { scale: 1.035; }
html.zd-motion .chip { transition: background-color .3s var(--zd-ease), color .3s var(--zd-ease), border-color .3s var(--zd-ease); }

/* ---- the map ---- */
.zd-map-wrap { position: relative; }
.zd-map .zd-pin { cursor: pointer; outline: none; }
.zd-map .zd-pin .zd-dot { transition: scale .45s var(--zd-ease); transform-box: fill-box; transform-origin: center; }
.zd-map .zd-pin:hover .zd-dot, .zd-map .zd-pin:focus-visible .zd-dot, .zd-map .zd-pin.zd-on .zd-dot { scale: 1.22; }
.zd-map .zd-pin:focus-visible .zd-dot:first-of-type { stroke-width: 4; }
.zd-map .zd-ring { fill: none; stroke: var(--zd-coral); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
@keyframes zd-ring { 0% { opacity: .55; scale: .6; } 80%, 100% { opacity: 0; scale: 2.1; } }
html.zd-motion .zd-map.zd-live .zd-ring { animation: zd-ring 3.6s ease-out var(--zd-rd, 0s) infinite; }
html.zd-motion .zd-map .zd-pin { opacity: 0; translate: 0 -14px; transition: opacity .7s var(--zd-ease), translate .9s var(--zd-ease); transition-delay: var(--zd-pd, 0ms); }
html.zd-motion .zd-map.zd-live .zd-pin { opacity: 1; translate: 0 0; }
html.zd-motion .zd-map .zd-river { stroke-dasharray: var(--zd-len); stroke-dashoffset: var(--zd-len); transition: stroke-dashoffset 2.2s var(--zd-ease); }
html.zd-motion .zd-map.zd-live .zd-river { stroke-dashoffset: 0; }
.zd-tip { position: absolute; z-index: 3; pointer-events: none; min-width: 168px; max-width: 220px; padding: 12px 14px 11px; background: var(--zd-cream); border: 1px solid var(--zd-ink); color: var(--zd-ink); font-family: 'Josefin Sans', system-ui, sans-serif; opacity: 0; translate: -50% calc(-100% - 10px); scale: .97; transition: opacity .3s var(--zd-ease), scale .3s var(--zd-ease); }
.zd-tip.zd-show { opacity: 1; scale: 1; }
.zd-tip b { display: block; font-family: 'Bodoni Moda', Georgia, serif; font-weight: 500; font-size: 19px; line-height: 1.15; }
.zd-tip span { display: block; margin-top: 4px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #C7381F; }
.zd-tip em { display: block; margin-top: 3px; font-style: normal; font-size: 14px; line-height: 1.35; }
.zd-town { transition: background-color .35s var(--zd-ease), color .35s var(--zd-ease), translate .35s var(--zd-ease); cursor: default; }
.zd-town.zd-on { background-color: var(--zd-ink) !important; color: var(--zd-cream) !important; }
html.zd-motion .zd-town.zd-on { translate: 4px 0; }

/* ---- header menu button: phones only ---- */
@media (min-width: 761px) { header button[aria-label$=" menu"] { display: none !important; } }
@media (max-width: 760px) {
  header nav[aria-label="Main"] { display: none !important; flex-direction: column; align-items: flex-start; gap: 18px !important; padding: 22px 4px 10px; margin-top: 14px !important; border-top: 1px solid #A3DCF7; }
  header.zd-open nav[aria-label="Main"] { display: flex !important; }
  header button[aria-label$=" menu"] span { transition: translate .35s var(--zd-ease), rotate .35s var(--zd-ease), opacity .25s var(--zd-ease); }
  header.zd-open button[aria-label$=" menu"] span:nth-child(1) { translate: 0 9px; rotate: 45deg; }
  header.zd-open button[aria-label$=" menu"] span:nth-child(2) { opacity: 0; }
  header.zd-open button[aria-label$=" menu"] span:nth-child(3) { translate: 0 -9px; rotate: -45deg; }
}
@media (prefers-reduced-motion: reduce) {
  html.zd-motion [data-zd-rv] { opacity: 1 !important; translate: none !important; scale: none !important; }
  html.zd-motion .zd-palm, html.zd-motion .zd-ring { animation: none !important; }
}