/*ha-fluid*//* Hafezi Architects — project location animations. Colours match the portfolio pages. */
.ha-location{--ha-ink:#503f2d;--ha-rule:#cfc1ad;color:var(--ha-ink);min-width:0}
.ha-location-stage{position:relative;width:100%;aspect-ratio:3/2;max-height:calc(380 * var(--u))}
.ha-location-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.ha-location--globe .ha-location-stage canvas,.ha-location--lift .ha-location-stage canvas{-webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent),linear-gradient(transparent,#000 8%,#000 92%,transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent),linear-gradient(transparent,#000 8%,#000 92%,transparent);mask-composite:intersect}

/* Caption row (globe, lift) */
.ha-location-caption{display:flex;justify-content:space-between;align-items:center;margin:calc(14 * var(--u)) calc(35 * var(--u)) 0;border-top:1px solid var(--ha-rule);padding-top:calc(14 * var(--u));font-size:calc(9 * var(--u));letter-spacing:.14em}
.ha-location-replay{font-size:calc(9 * var(--u));letter-spacing:.14em;text-transform:uppercase;color:inherit;opacity:.55;padding:0;background:none;border:0;cursor:pointer;transition:opacity .3s}
.ha-location-replay:hover,.ha-location-replay:focus-visible{opacity:1}

/* Title block (survey) */
.ha-location-sheet dl{display:grid;grid-template-columns:1.1fr 1.1fr .9fr .9fr;margin:0 calc(8 * var(--u));border:1px solid var(--ha-ink);border-top:0}
.ha-location-sheet dl>div{padding:calc(10 * var(--u)) calc(12 * var(--u)) calc(11 * var(--u));border-left:1px solid var(--ha-ink);min-width:0}
.ha-location-sheet dl>div:first-child{border-left:0}
.ha-location-sheet dt{font-size:calc(9 * var(--u));letter-spacing:.12em;text-transform:uppercase;opacity:.65;margin:0 0 calc(6 * var(--u))}
.ha-location-sheet dd{margin:0;font-size:calc(12 * var(--u));line-height:1.4;overflow-wrap:anywhere}
.ha-location-sheet-foot{display:flex;justify-content:flex-end;margin:calc(10 * var(--u)) calc(8 * var(--u)) 0}

/* Caption and title block arrive near the end of the motion. */
.ha-location-caption,.ha-location-sheet dl{opacity:0;transform:translateY(calc(4 * var(--u)));transition:opacity .6s,transform .6s}
.ha-location.is-playing .ha-location-caption,.ha-location.is-playing .ha-location-sheet dl{opacity:1;transform:none}
.ha-location.is-playing:not(.is-complete) .ha-location-caption,.ha-location.is-playing:not(.is-complete) .ha-location-sheet dl{transition-delay:var(--ha-caption-at,3s)}

@media(max-width:760px){
.ha-location-caption{margin-inline:calc(15 * var(--u))}
.ha-location-sheet dl{grid-template-columns:1fr 1fr}
.ha-location-sheet dl>div:nth-child(3){border-left:0}
.ha-location-sheet dl>div:nth-child(n+3){border-top:1px solid var(--ha-ink)}
}
@media(prefers-reduced-motion:reduce){.ha-location-caption,.ha-location-sheet dl{opacity:1;transform:none;transition:none}}
/* Guard the title block against page-level dl styles. */
.ha-location .ha-location-sheet dl{gap:0;font-size:inherit;margin-top:0;margin-bottom:0}
.ha-location .ha-location-sheet dl>div{margin:0}
.ha-location .ha-location-sheet dt{font-size:calc(9 * var(--u));letter-spacing:.12em;text-transform:uppercase;opacity:.65;margin:0 0 calc(6 * var(--u))}
.ha-location .ha-location-sheet dd{margin:0;font-size:calc(12 * var(--u))}

/* Lift captions build alongside the outline rather than after the bloom. */
.ha-location--lift .ha-location-caption{transition-duration:1.5s;transform:none}
