/* ==========================================================================
   WAYFINDER — "The way to Beam Skyline", the location section of
   property_details.html. A drawn map of Gulshan 1 from OpenStreetMap,
   centred on Road 11: the side streets, lakes and parks are one image
   (assets/img/loc/gulshan-1.svg), the main roads an inline drawing that
   draws itself outward from the building when first seen. Distance rings,
   landmarks, the walk from Gulshan 1 Circle and the building's pin sit over
   it; close up shows the streets at the door; Live map swaps in Google
   Maps. Beside it, the navy address card with the ways there.

   The drawing is a square in its own units (100 m; the building at 18, 18),
   laid over the frame like object-fit: cover, so the labels are placed in
   percent of the drawing and stay on their streets at any size and zoom.
   js/wayfinder.js runs the drawing, zoom, the live map and Copy; without it
   the map is drawn and still.

   contact.html (.wf--offices) holds two offices, each a map + card of its
   own; a switch shows one at a time (see "two offices" below).
   ========================================================================== */

.wf {
  --paper: #fbf8f1;
  position: relative;
  background: var(--c-ivory);
  color: var(--c-ink);
}
.wf__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  grid-template-areas:
    "head plate"
    "card plate";
  grid-template-rows: auto 1fr;
  gap: var(--sp-lg) clamp(40px, 5vw, 96px);
  padding-block: var(--section-gap);
}
.wf__head { grid-area: head; align-self: end; display: grid; gap: var(--sp-xs); }
.wf__h { max-width: 12ch; }


/* --- the plate ---------------------------------------------------------------- */
.wf__plate {
  --z: 1;
  grid-area: plate;
  align-self: center;
  position: relative;
  aspect-ratio: 4 / 3;
  container-type: size;
  margin: 0;
}
/* drafting corners, as on the site's other plates */
.wf__plate::before,
.wf__plate::after {
  content: "";
  position: absolute;
  z-index: 3;
  width: 22px;
  height: 22px;
  border: 0 solid var(--c-gold-ink);
  pointer-events: none;
}
.wf__plate::before { left: -12px; top: -12px; border-left-width: 1px; border-top-width: 1px; }
.wf__plate::after { right: -12px; bottom: -12px; border-right-width: 1px; border-bottom-width: 1px; }

.wf__view {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgb(23 62 98 / .14);
  border-radius: var(--r-card);
  background: var(--paper);
  box-shadow: 0 2px 6px rgb(var(--scrim) / .06), 0 40px 80px -40px rgb(var(--scrim) / .4);
  isolation: isolate;
}
/* the square drawing, covering the frame, the building at its centre */
.wf__canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100cqw, 100cqh);
  aspect-ratio: 1;
  translate: -50% -50%;
}
.wf__layers {
  position: absolute;
  inset: 0;
  transform: scale(var(--z));
  transition: transform 1.1s cubic-bezier(.65, 0, .35, 1);
}
.wf__streets,
.wf__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}
.wf__streets { clip-path: circle(72% at 50% 50%); transition: clip-path 2.6s cubic-bezier(.45, 0, .2, 1); }

.wf__grid-l { fill: none; stroke: var(--c-gold-ink); stroke-opacity: .1; stroke-width: .03; transition: opacity 1s; }
.wf__rings circle {
  fill: none;
  stroke: var(--c-gold-ink);
  stroke-opacity: .5;
  stroke-width: .05;
  stroke-dasharray: .2 .28;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity .9s var(--ease-css), scale 1.4s cubic-bezier(.22, 1, .36, 1);
}
.wf__rings circle:nth-child(2) { transition-delay: .12s; }
.wf__rings circle:nth-child(3) { transition-delay: .24s; }

/* main roads: a navy casing with a paper core, drawn outward from the site */
.wf-r {
  fill: none;
  stroke-linecap: butt;
  stroke-linejoin: round;
  stroke-dasharray: 1 2;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.3s cubic-bezier(.6, 0, .3, 1);
  transition-delay: calc(.15s + var(--d) * 1.6s);
}
.wf__roads--case .wf-r { stroke: var(--c-navy); stroke-opacity: .72; }
.wf__roads--fill .wf-r { stroke: var(--paper); }
.wf__roads--case .wf-r1 { stroke-width: .1; }
.wf__roads--case .wf-r2 { stroke-width: .14; }
.wf__roads--case .wf-r3 { stroke-width: .19; }
.wf__roads--case .wf-r4 { stroke-width: .24; stroke-opacity: .85; }
.wf__roads--fill .wf-r1 { stroke-width: .042; }
.wf__roads--fill .wf-r2 { stroke-width: .07; }
.wf__roads--fill .wf-r3 { stroke-width: .1; }
.wf__roads--fill .wf-r4 { stroke-width: .13; }

/* the walk from Gulshan 1 Circle, and the light travelling it */
.wf__route {
  fill: none;
  stroke: var(--c-gold);
  stroke-width: .11;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1 2;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 .12px rgb(208 173 103 / .9));
  transition: stroke-dashoffset .9s cubic-bezier(.6, 0, .3, 1) 2.5s;
}
.wf__car { fill: #fff6df; stroke: var(--c-gold); stroke-width: .04; transition: opacity .4s 3.2s; }


/* --- labels --------------------------------------------------------------------- */
.wf__labels { position: absolute; inset: 0; pointer-events: none; }
.wf__l {
  position: absolute;
  left: calc(50% + (var(--x) - 50%) * var(--z));
  top: calc(50% + (var(--y) - 50%) * var(--z));
  translate: -50% -50%;
  rotate: var(--a, 0deg);
  white-space: nowrap;
  line-height: 1;
  transition: left 1.1s cubic-bezier(.65, 0, .35, 1), top 1.1s cubic-bezier(.65, 0, .35, 1), opacity .6s var(--ease-css);
  --halo: 0 0 3px var(--paper), 0 0 3px var(--paper), 0 0 6px var(--paper);
}
.wf__l--area {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.7vw, 26px);
  font-style: italic;
  font-weight: var(--fw-medium);
  letter-spacing: .03em;
  color: rgb(23 62 98 / .5);
  text-shadow: var(--halo);
}
.wf__l--water {
  font-family: var(--font-display);
  font-size: clamp(12px, 1vw, 15px);
  font-style: italic;
  font-weight: var(--fw-medium);
  letter-spacing: .04em;
  color: #5f7d96;
}
.wf__l--road,
.wf__l--street {
  font-size: 9.5px;
  font-weight: var(--fw-semi);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgb(23 62 98 / .78);
  text-shadow: var(--halo);
}
.wf__l--place {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  translate: -4px -50%;
  font-size: 11px;
  font-weight: var(--fw-semi);
  letter-spacing: .02em;
  color: var(--c-navy);
  text-shadow: var(--halo);
}
.wf__l--place i {
  flex: none;
  width: 8px;
  height: 8px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--c-navy);
  box-shadow: 0 0 0 1px rgb(23 62 98 / .3);
}
.wf__l--ring {
  font-size: 10px;
  font-weight: var(--fw-semi);
  letter-spacing: .08em;
  color: var(--c-gold-ink);
  text-shadow: var(--halo);
}
.wf__l--street,
.wf__l--here { opacity: 0; }
.wf__l--here {
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-gold-ink);
  text-shadow: var(--halo);
}
.wf__plate.is-near .wf__l--street,
.wf__plate.is-near .wf__l--here { opacity: 1; transition-delay: 0s, 0s, .6s; }
.wf__plate.is-near .wf__l--ring,
.wf__plate.is-near .wf__l--area { opacity: 0; }

.wf__eta {
  position: absolute;
  left: calc(50% + (var(--x) - 50%) * var(--z));
  top: calc(50% + (var(--y) - 50%) * var(--z));
  translate: 0 -50%;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 7px;
  border-radius: var(--r-pill);
  background: var(--c-navy);
  color: var(--c-gold);
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: .06em;
  white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgb(var(--scrim) / .5);
  transition: left 1.1s cubic-bezier(.65, 0, .35, 1), top 1.1s cubic-bezier(.65, 0, .35, 1), opacity .5s, scale .5s cubic-bezier(.34, 1.56, .64, 1);
}
.wf__eta svg { width: 13px; height: 13px; }


/* --- the building ---------------------------------------------------------------- */
.wf__pin { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.wf__dot,
.wf__pulse {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  translate: -50% -50%;
  border-radius: 50%;
}
.wf__dot {
  border: 4px solid var(--c-gold);
  background: var(--c-navy);
  box-shadow: 0 0 0 3px rgb(251 248 241 / .9), 0 8px 18px rgb(var(--scrim) / .45);
  transition: scale .7s cubic-bezier(.34, 1.56, .64, 1) 1.9s;
}
.wf__pulse {
  border: 1px solid var(--c-gold);
  background: rgb(208 173 103 / .16);
  animation: wf-pulse 3s cubic-bezier(.2, .7, .3, 1) infinite;
}
.wf__pulse + .wf__pulse { animation-delay: 1.5s; }
@keyframes wf-pulse {
  from { scale: 1; opacity: .9; }
  to   { scale: 5.5; opacity: 0; }
}
.wf__tag {
  position: absolute;
  right: 18px;
  top: 0;
  translate: 0 -50%;
  display: grid;
  gap: 3px;
  padding: 9px 14px 10px;
  border-radius: 10px;
  background: var(--c-navy-deep);
  color: var(--c-ivory);
  white-space: nowrap;
  box-shadow: 0 14px 30px -12px rgb(var(--scrim) / .6);
  transition: opacity .6s var(--ease-css) 2.3s, translate .6s var(--ease-css) 2.3s;
}
.wf__tag::after {                             /* the pointer towards the pin */
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  translate: 0 -50%;
  rotate: 45deg;
  background: var(--c-navy-deep);
}
.wf--tag-east .wf__tag { right: auto; left: 18px; }        /* the tag on the pin's east side */
.wf--tag-east .wf__tag::after { right: auto; left: -5px; }
.wf--tag-east .wf__plate.is-armed:not(.is-drawn) .wf__tag { translate: 10px -50%; }
.wf__tag b { font-family: var(--font-display); font-size: 17px; font-weight: var(--fw-semi); line-height: 1; }
.wf__tag small { font-size: 9.5px; font-weight: var(--fw-semi); letter-spacing: .14em; text-transform: uppercase; color: var(--c-gold); }


/* --- the frame's controls -------------------------------------------------------- */
.wf__hud { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.wf__hud > * { position: absolute; pointer-events: auto; }
.wf__where {
  left: 16px;
  top: 16px;
  padding: 8px 14px;
  border: 1px solid rgb(23 62 98 / .12);
  border-radius: var(--r-pill);
  background: rgb(251 248 241 / .9);
  backdrop-filter: blur(6px);
  font-size: 10.5px;
  font-weight: var(--fw-semi);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-navy);
}
.wf__modes {
  right: 16px;
  top: 16px;
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgb(23 62 98 / .14);
  border-radius: var(--r-pill);
  background: rgb(251 248 241 / .92);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px -12px rgb(var(--scrim) / .4);
}
.wf__mode {
  min-height: 36px;
  padding-inline: 16px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: var(--fw-semi);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-navy);
  transition: background-color var(--dur-fast) var(--ease-css), color var(--dur-fast) var(--ease-css);
}
.wf__mode:hover { background: rgb(23 62 98 / .07); }
.wf__mode.is-active { background: var(--c-navy); color: var(--c-ivory); }

.wf__zoom {
  right: 16px;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  overflow: hidden;
  border: 1px solid rgb(23 62 98 / .14);
  border-radius: 12px;
  background: rgb(251 248 241 / .92);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px -12px rgb(var(--scrim) / .4);
}
.wf__z {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--c-navy);
  transition: background-color var(--dur-fast) var(--ease-css), color var(--dur-fast) var(--ease-css);
}
.wf__z + .wf__z { border-top: 1px solid rgb(23 62 98 / .12); }
.wf__z svg { width: 18px; height: 18px; }
.wf__z:hover:not(:disabled) { background: var(--c-navy); color: var(--c-ivory); }
.wf__z:disabled { color: rgb(23 62 98 / .3); cursor: default; }

.wf__legend {
  left: 16px;
  bottom: 14px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgb(251 248 241 / .88);
  font-size: 10px;
  font-weight: var(--fw-semi);
  letter-spacing: .1em;
  color: var(--c-navy);
}
.wf__north { display: grid; justify-items: center; gap: 1px; line-height: 1; }
.wf__north svg { width: 14px; height: 14px; color: var(--c-gold-ink); }
.wf__scale { display: grid; gap: 4px; line-height: 1; transition: opacity .5s; }
.wf__scale i {
  display: block;
  height: 5px;
  border: 1px solid var(--c-navy);
  border-top: 0;
  transition: width 1.1s cubic-bezier(.65, 0, .35, 1);
}
.wf__scale--far i { width: calc(max(100cqw, 100cqh) * 5 / 36); }
.wf__scale--near i { width: calc(max(100cqw, 100cqh) * var(--z) / 36); }   /* 100 m, at the close-up scale */
.wf__scale--near,
.wf__plate.is-near .wf__scale--far { display: none; }
.wf__plate.is-near .wf__scale--near { display: grid; }

.wf__credit {
  right: 12px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgb(251 248 241 / .85);
  font-size: 9.5px;
  color: var(--c-slate);
}
.wf__credit a { text-decoration: underline; text-underline-offset: 2px; }

/* the live map */
.wf__live { position: absolute; inset: 0; z-index: 1; background: var(--c-sand); }
.wf__live[hidden] { display: none; }
.wf__live iframe { display: block; width: 100%; height: 100%; border: 0; }
.wf__plate.is-live .wf__zoom,
.wf__plate.is-live .wf__legend,
.wf__plate.is-live .wf__where,
.wf__plate.is-live .wf__credit { display: none; }
.wf:not(.is-enhanced) .wf__modes,
.wf:not(.is-enhanced) .wf__zoom { display: none; }


/* --- drawn in, the first time it is seen --------------------------------------------- */
.wf__plate.is-armed:not(.is-drawn) .wf__streets { clip-path: circle(0% at 50% 50%); }
.wf__plate.is-armed:not(.is-drawn) .wf-r,
.wf__plate.is-armed:not(.is-drawn) .wf__route { stroke-dashoffset: 1.02; }
.wf__plate.is-armed:not(.is-drawn) .wf__grid-l,
.wf__plate.is-armed:not(.is-drawn) .wf__rings circle { opacity: 0; }
.wf__plate.is-armed:not(.is-drawn) .wf__rings circle { scale: .4; }
.wf__plate.is-armed:not(.is-drawn) .wf__l,
.wf__plate.is-armed:not(.is-drawn) .wf__car { opacity: 0; }
.wf__plate.is-armed:not(.is-drawn) .wf__eta { opacity: 0; scale: .6; }
.wf__plate.is-armed:not(.is-drawn) .wf__dot { scale: 0; }
.wf__plate.is-armed:not(.is-drawn) .wf__pulse { visibility: hidden; }
.wf__plate.is-armed:not(.is-drawn) .wf__tag { opacity: 0; translate: -10px -50%; }
.wf__plate.is-armed .wf__rings circle { transition-delay: 1.2s; }
.wf__plate.is-armed .wf__rings circle:nth-child(2) { transition-delay: 1.32s; }
.wf__plate.is-armed .wf__rings circle:nth-child(3) { transition-delay: 1.44s; }
.wf__plate.is-drawn .wf__l--area { transition-delay: 0s, 0s, 1.3s; }
.wf__plate.is-drawn .wf__l--water { transition-delay: 0s, 0s, 1.5s; }
.wf__plate.is-drawn .wf__l--road { transition-delay: 0s, 0s, 1.8s; }
.wf__plate.is-drawn .wf__l--ring { transition-delay: 0s, 0s, 1.7s; }
.wf__plate.is-drawn .wf__l--place { transition-delay: 0s, 0s, 2s; }
.wf__plate.is-drawn .wf__eta { transition-delay: 0s, 0s, 3s, 3s; }
.wf__plate.is-settled .wf__l,
.wf__plate.is-settled .wf__eta { transition-delay: 0s; }
.wf__plate.is-settled.is-near .wf__l--street,
.wf__plate.is-settled.is-near .wf__l--here { transition-delay: 0s, 0s, .6s; }
.wf__plate.is-settled .wf__streets,
.wf__plate.is-settled .wf-r { transition: none; }


/* --- the address card -------------------------------------------------------------- */
.wf__card {
  grid-area: card;
  align-self: start;
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  padding: clamp(24px, 2.4vw, 38px);
  border-radius: var(--r-card);
  background:
    radial-gradient(110% 80% at 100% 0%, rgb(43 92 138 / .55), transparent 62%),
    linear-gradient(160deg, var(--c-navy) 0%, var(--c-navy-deep) 100%);
  color: var(--c-ivory);
  box-shadow: 0 34px 70px -34px rgb(var(--scrim) / .6);
}
.wf__card::before {                           /* the gold seam */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c-gold), rgb(208 173 103 / .2));
}
.wf__card::after {                            /* blueprint grid in the corner */
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 60%;
  height: 70%;
  background-image:
    linear-gradient(rgb(208 173 103 / .08) 1px, transparent 1px),
    linear-gradient(90deg, rgb(208 173 103 / .08) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(100% 100% at 100% 0%, #000, transparent 75%);
  mask-image: radial-gradient(100% 100% at 100% 0%, #000, transparent 75%);
  pointer-events: none;
}
.wf__card > * { position: relative; z-index: 1; }
.wf__card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-sm); }
.wf__k {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: var(--fw-semi);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-gold);
}
.wf__k::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.wf__go {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgb(248 245 239 / .28);
  border-radius: 50%;
  color: var(--c-ivory);
  transition: background-color var(--dur-fast) var(--ease-css), color var(--dur-fast) var(--ease-css), border-color var(--dur-fast) var(--ease-css);
}
.wf__go svg { width: 18px; height: 18px; }
.wf__go:hover { border-color: var(--c-gold); background: var(--c-gold); color: var(--c-navy); }

.wf__addr { display: grid; gap: 8px; }
.wf__addr-1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 2.6vw, 42px);
  font-weight: var(--fw-medium);
  line-height: 1.04;
  letter-spacing: -.01em;
  color: var(--c-ivory);
}
.wf__addr-2 { font-size: 12px; font-weight: var(--fw-semi); letter-spacing: .16em; text-transform: uppercase; color: var(--c-mist); }
.wf__fact {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
  padding: 7px 14px 7px 10px;
  border: 1px solid rgb(208 173 103 / .35);
  border-radius: var(--r-pill);
  background: rgb(208 173 103 / .08);
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: #f1dcaa;
}
.wf__fact svg { width: 16px; height: 16px; color: var(--c-gold); }

.wf__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 4px; }
.wf__copy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding-inline: 20px 22px;
  border: 1px solid rgb(248 245 239 / .28);
  border-radius: var(--r-pill);
  font-size: var(--fs-label);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-ivory);
  transition: border-color var(--dur-fast) var(--ease-css), background-color var(--dur-fast) var(--ease-css), color var(--dur-fast) var(--ease-css);
}
.wf__copy:hover { border-color: var(--c-gold); background: rgb(248 245 239 / .06); }
.wf__copy-i { position: relative; display: grid; width: 18px; height: 18px; }
.wf__copy-i svg { grid-area: 1 / 1; width: 18px; height: 18px; transition: opacity .25s, scale .35s cubic-bezier(.34, 1.56, .64, 1); }
.wf__copy .i-tick { opacity: 0; scale: .4; color: var(--c-gold); }
.wf__copy.is-copied { border-color: var(--c-gold); color: var(--c-gold); }
.wf__copy.is-copied .i-copy { opacity: 0; scale: .4; }
.wf__copy.is-copied .i-tick { opacity: 1; scale: 1; }
.wf:not(.is-enhanced) .wf__copy { display: none; }

.wf__rows { border-top: 1px solid rgb(248 245 239 / .12); }
.wf__row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding-block: 14px;
  border-bottom: 1px solid rgb(248 245 239 / .12);
  color: var(--c-ivory);
}
.wf__ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgb(248 245 239 / .07);
  color: var(--c-gold);
  transition: background-color var(--dur-fast) var(--ease-css), color var(--dur-fast) var(--ease-css);
}
.wf__ico svg { width: 19px; height: 19px; }
.wf__row-t { display: grid; gap: 4px; min-width: 0; font-size: var(--fs-text); font-weight: var(--fw-medium); overflow-wrap: anywhere; }
.wf__row-t small { font-size: 10px; font-weight: var(--fw-semi); letter-spacing: .16em; text-transform: uppercase; color: var(--c-mist); }
.wf__arr { color: var(--c-mist); transition: translate var(--dur-fast) var(--ease-css), color var(--dur-fast) var(--ease-css); }
.wf__arr svg { width: 18px; height: 18px; }
.wf__row:hover .wf__ico { background: var(--c-gold); color: var(--c-navy); }
.wf__row:hover .wf__arr { translate: 4px 0; color: var(--c-gold); }
.wf__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}


/* --- two offices (contact.html) ----------------------------------------------------------
   Each office (.wf__office, [data-wayfinder]) is a map + card; the wrapper makes no box, so
   both maps share the plate area and both cards the card area, and the one switched off
   fades out where it stands. Without js/wayfinder.js (.is-switch) there is no switch and the
   second office stands under the first. */
.wf__office { display: contents; }
.wf--offices .wf__grid {
  grid-template-areas:
    "head plate"
    "switch plate"
    "card plate";
  grid-template-rows: auto auto 1fr;
}
.wf--offices:not(.is-switch) .wf__grid {
  grid-template-areas:
    "head plate"
    "card plate"
    "card2 plate2";
  grid-template-rows: auto 1fr auto;
}
.wf--offices:not(.is-switch) .wf__switch { display: none; }
.wf--offices:not(.is-switch) .wf__office + .wf__office .wf__plate { grid-area: plate2; }
.wf--offices:not(.is-switch) .wf__office + .wf__office .wf__card { grid-area: card2; }

.wf--offices.is-switch .wf__office > * {
  transition: opacity .6s var(--ease-css) .12s, translate .8s var(--ease-css) .12s, visibility 0s linear 0s;
}
.wf--offices.is-switch .wf__office:not(.is-on) > * {
  opacity: 0;
  visibility: hidden;
  translate: 0 14px;
  pointer-events: none;
  transition: opacity .3s var(--ease-css), translate .3s var(--ease-css), visibility 0s linear .3s;
}

/* the switch: two office tabs, the chosen one with the card's gold seam */
.wf__switch {
  grid-area: switch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-block-end: calc(var(--sp-lg) * -.5);
}
.wf__pick {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 18px;
  border: 1px solid rgb(23 62 98 / .14);
  border-radius: 18px;
  background: transparent;
  text-align: start;
  color: var(--c-navy);
  transition: border-color var(--dur-fast) var(--ease-css), background-color var(--dur-fast) var(--ease-css),
              box-shadow var(--dur-fast) var(--ease-css), translate var(--dur-fast) var(--ease-css);
}
.wf__pick::before {                           /* the gold seam, as on the card */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c-gold), rgb(208 173 103 / .2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-css);
}
.wf__pick b {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: var(--fw-medium);
  line-height: 1;
  color: rgb(127 95 40 / .45);
  transition: color var(--dur-fast) var(--ease-css);
}
.wf__pick span {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: var(--fw-medium);
  line-height: 1.1;
}
.wf__pick small {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: var(--fw-semi);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-gold-ink);
}
.wf__pick:hover { border-color: rgb(23 62 98 / .32); translate: 0 -2px; }
.wf__pick.is-active {
  border-color: rgb(208 173 103 / .7);
  background: var(--paper);
  box-shadow: 0 18px 36px -26px rgb(var(--scrim) / .55);
}
.wf__pick.is-active::before { transform: scaleX(1); }
.wf__pick.is-active b { color: var(--c-gold-ink); }
.wf__pick:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }


/* labels that only fit on a roomy map */
@container (max-width: 600px) {
  .wf__l--wide { display: none; }
}
@container (max-width: 480px) {
  .wf__tag-more { display: none; }
}


/* --- narrow ---------------------------------------------------------------------------- */
@media (max-width: 959px) {
  .wf__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "plate" "card";
    grid-template-rows: auto;
    row-gap: var(--sp-lg);
  }
  .wf__plate { aspect-ratio: 1; max-height: 640px; width: 100%; justify-self: center; }
  .wf__card { max-width: 640px; width: 100%; justify-self: center; }
  .wf--offices .wf__grid { grid-template-areas: "head" "switch" "plate" "card"; grid-template-rows: auto; }
  .wf--offices:not(.is-switch) .wf__grid { grid-template-areas: "head" "plate" "card" "plate2" "card2"; }
  .wf__switch { max-width: 640px; width: 100%; justify-self: center; margin-block-end: calc(var(--sp-lg) * -.4); }
}
@media (min-width: 960px) and (max-width: 1199px) {           /* a narrow left column: the names only */
  .wf__pick { grid-template-columns: minmax(0, 1fr); padding-inline: 16px; }
  .wf__pick b { display: none; }
  .wf__pick span { font-size: 19px; }
}

@media (max-width: 559px) {
  .wf__plate::before,
  .wf__plate::after { display: none; }
  .wf__where { display: none; }
  .wf__modes { left: 10px; right: auto; top: 10px; }
  .wf__mode { min-height: 34px; padding-inline: 13px; font-size: 10px; }
  .wf__zoom { right: 10px; top: 10px; translate: none; display: flex; }
  .wf__z { width: 40px; height: 40px; }
  .wf__z + .wf__z { border-top: 0; border-left: 1px solid rgb(23 62 98 / .12); }
  .wf__legend { left: 10px; bottom: 10px; padding: 6px 10px; gap: 10px; }
  .wf__credit { right: 8px; bottom: 8px; font-size: 8.5px; }
  .wf__l--road { font-size: 8px; letter-spacing: .1em; }
  .wf__l--place { font-size: 10px; }
  .wf__tag { padding: 7px 11px 8px; }
  .wf__tag b { font-size: 15px; }
  .wf__acts > * { flex: 1 1 100%; justify-content: space-between; }
  .wf__switch { gap: 8px; }
  .wf__pick { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 68px; padding: 12px 14px; border-radius: 14px; }
  .wf__pick b { display: none; }
  .wf__pick span { font-size: 18px; }
  .wf__pick small { font-size: 9px; letter-spacing: .14em; }
}

@media (prefers-reduced-motion: reduce) {
  .wf__layers,
  .wf__l,
  .wf__eta,
  .wf__scale i { transition: none; }
  .wf__pulse { animation: none; opacity: 0; }
  .wf--offices.is-switch .wf__office > *,
  .wf--offices.is-switch .wf__office:not(.is-on) > * { transition: none; translate: none; }
  .wf__pick,
  .wf__pick::before { transition: none; }
}
