/* Visit us: Dhaka drawn from OpenStreetMap in navy and brass; the three ateliers are lit pins. */
/* ═════════ Map (2) ═════════ */
.visit { background: #0e1730; color: #f1ead9; --cream: #f1ead9; --brass-2: #e2c891; }
.visit .ulink { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; padding-bottom: 4px; }
.mp { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); min-height: min(100svh, 920px); }
.mp__side { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 8vh, 90px) clamp(22px, 4vw, 64px); }
.mp__k { font-size: 10.5px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--brass-2); }
.mp__h { margin: 16px 0 36px; font-family: "Playfair Display", serif; font-weight: 400; font-size: clamp(32px, 3.2vw, 48px); line-height: 1.05; }
.mp__list { display: grid; }
.mp__item { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; padding: 18px 0; border-top: 1px solid rgba(241,234,217,.12); text-align: left; transition: opacity 200ms ease; }
.mp__item:last-child { border-bottom: 1px solid rgba(241,234,217,.12); }
.mp__dot { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--brass-2); transition: background-color 200ms ease, transform 300ms var(--ease-out); }
.mp__item[aria-selected="true"] .mp__dot { background: var(--brass-2); transform: scale(1.25); }
.mp__name { font-size: 13px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; }
.mp__dist { font-size: 11px; color: rgba(241,234,217,.72); font-variant-numeric: tabular-nums; }
.mp__list:has([aria-selected="true"]) .mp__item:not([aria-selected="true"]) { opacity: .5; }
@media (hover: hover) and (pointer: fine) { .mp__list .mp__item:hover { opacity: 1; } }
.mp__all { margin-top: 26px; align-self: flex-start; color: rgba(241,234,217,.8); }
.mp__all[hidden] { display: inline-block; visibility: hidden; }
.mp__frame { position: relative; overflow: hidden; background: #0b1328; }
.mp__frame svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cam { transform-box: view-box; transform-origin: 0 0; transition: transform 1300ms var(--ease-in-out); }
.m-water { fill: rgba(96, 132, 196, .16); stroke: none; }
.m-river { fill: none; stroke: rgba(110, 150, 215, .38); stroke-width: 2.2; stroke-linecap: round; }
.m-minor { fill: none; stroke: rgba(241, 234, 217, .13); stroke-width: .9; stroke-linecap: round; stroke-linejoin: round; }
.m-major { fill: none; stroke: rgba(241, 234, 217, .42); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* the map draws itself the first time it is seen */
.mp__frame .m-major { stroke-dasharray: 1; stroke-dashoffset: 1; }
.mp__frame .m-minor, .mp__frame .m-water, .mp__frame .m-river { opacity: 0; }
.mp__frame[data-in] .m-major { stroke-dashoffset: 0; transition: stroke-dashoffset 2600ms cubic-bezier(.45,.05,.35,1); }
.mp__frame[data-in] .m-minor { opacity: 1; transition: opacity 1400ms ease 700ms; }
.mp__frame[data-in] .m-water, .mp__frame[data-in] .m-river { opacity: 1; transition: opacity 1600ms ease 300ms; }
.pin { cursor: pointer; }
/* Each atelier: a breathing brass glow, two ripples a beat apart, and a dashed stitch ring that turns slowly. */
.pin > * { transform-box: fill-box; transform-origin: center; }
.pin__halo { opacity: 0; transform: scale(.4); transition: opacity 600ms ease, transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
.mp__frame[data-in] .pin__halo { opacity: 1; transform: none; animation: breathe 3200ms ease-in-out infinite; animation-delay: calc(var(--d, 0ms) + 700ms); }
@keyframes breathe { 0%, 100% { opacity: .65; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.12); } }
.pin__wave { fill: none; stroke: var(--brass-2); stroke-width: 1.1; opacity: 0; }
.mp__frame[data-in] .pin__wave { animation: ripple 3200ms cubic-bezier(.2,.6,.3,1) infinite; animation-delay: calc(var(--d, 0ms) + 500ms); }
.mp__frame[data-in] .pin__wave--2 { animation-delay: calc(var(--d, 0ms) + 1300ms); }
@keyframes ripple { 0% { transform: scale(.7); opacity: .85; stroke-width: 1.4; } 70%, 100% { transform: scale(3.4); opacity: 0; stroke-width: .4; } }
.pin__stitch { fill: none; stroke: var(--brass-2); stroke-width: 1; stroke-dasharray: 2.2 3.2; stroke-linecap: round; opacity: 0; transform: scale(.5) rotate(-90deg); transition: opacity 500ms ease, transform 900ms var(--ease-out); transition-delay: calc(var(--d, 0ms) + 200ms); }
.mp__frame[data-in] .pin__stitch { opacity: .9; transform: none; animation: stitch 16s linear infinite; animation-delay: calc(var(--d, 0ms) + 1100ms); }
@keyframes stitch { to { transform: rotate(360deg); } }
.pin__core { fill: var(--brass-2); stroke: #0b1328; stroke-width: 1.5; transform: scale(.6); opacity: 0; transition: transform 500ms var(--ease-out), opacity 300ms ease, fill 200ms ease; transition-delay: var(--d, 0ms); }
.mp__frame[data-in] .pin__core { transform: scale(1); opacity: 1; }
.pin[data-on] .pin__core { fill: #fff; transition-delay: 0ms; }
.pin[data-on] .pin__stitch { animation-duration: 6s; opacity: 1; }
.pin[data-on] .pin__wave { animation-duration: 2200ms; }
.pin__label { fill: var(--cream); font: 600 11px "Inter", sans-serif; letter-spacing: .24em; text-transform: uppercase; opacity: 0; transition: opacity 400ms ease; transition-delay: calc(var(--d, 0ms) + 300ms); paint-order: stroke; stroke: #0b1328; stroke-width: 4px; }
.mp__frame[data-in] .pin__label { opacity: .9; }
.mp__card { position: absolute; z-index: 3; left: 22px; bottom: 22px; width: min(320px, calc(100% - 44px)); background: #f8f4ec; color: var(--ink); opacity: 0; transform: translateY(14px) scale(.98); transform-origin: bottom left; pointer-events: none; transition: opacity 150ms ease, transform 160ms ease; box-shadow: 0 30px 60px -24px rgba(0,0,0,.8); }
.mp__card[data-on] { opacity: 1; transform: none; pointer-events: auto; transition: opacity 300ms ease 650ms, transform 500ms var(--ease-out) 650ms; }
.mp__card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.mp__card div { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 16px; }
.mp__card b { font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; }
.mp__card nav { display: flex; gap: 16px; }
.mp__card .ulink { font-size: 11px; }
.mp__osm { position: absolute; z-index: 2; right: 10px; bottom: 8px; font-size: 10px; color: rgba(241,234,217,.66); }
.mp__osm a { text-decoration: underline; }
@media (max-width: 820px) {
  .mp { grid-template-columns: 1fr; min-height: 0; }
  .mp__side { display: contents; }
  .mp__k { order: 1; padding: 64px 18px 0; }
  .mp__h { order: 2; margin: 14px 18px 26px; }
  .mp__frame { order: 3; aspect-ratio: 4 / 5; }
  .mp__list { order: 4; margin: 0 18px; }
  .mp__all { order: 5; margin: 20px 18px 60px; }
  .mp__card { left: 12px; bottom: 12px; width: calc(100% - 24px); display: grid; grid-template-columns: 96px 1fr; }
  .mp__card img { width: 96px; height: 96px; aspect-ratio: auto; }
  .mp__card div { flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; padding: 12px 14px; }
  .mp__all { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) { .cam { transition: none; } .mp__frame .m-major { stroke-dasharray: none; } .pin__wave, .pin__halo, .pin__stitch { animation: none !important; } }

/* the map is the last section, so only the page's rounded bottom corners turn navy;
   every other section keeps the paper background */
main:has(> .visit:last-child) { background: linear-gradient(var(--paper), var(--paper)) top / 100% calc(100% - 120px) no-repeat, #0e1730; }
