/* ═══════════════════════════════════════════════════════════════════════════
   Fun-Tastic 悠樂長 · pages/contact.css
   Page-only styles for Contact. Not in a cascade layer, so it wins over the design
   system; everything is scoped to .page--contact.

   Contents
     1  Hero: three on the bridge        4  Where to find us, and the map
     2  The three contact bands          5  Social
     3  Other ways to reach us
   ═══════════════════════════════════════════════════════════════════════════ */

/* Single-column grids on this page take the width they are given, never the width their content
   would like: an implicit "auto" column can be pushed wider than the screen by one long unbreakable
   word. :where() keeps this at the weight of one class, so any layout rule below wins. */
.page--contact :where(.people__list, .person__who, .person__actions, .direct__layout, .ways, .way__text, .visit__layout, .visit__text, .visit__facts, .visit__pair, .map, .map__card, .social__layout, .social__list) { grid-template-columns: minmax(0, 1fr); }

/* ──────────────────────────────────── 1 Hero: three on the bridge ──
   The hero is kept short, so that the first two bands (and their buttons) are in the first
   screen on a desktop. */
.page--contact .page-hero { padding-block-end: calc(clamp(1.25rem, .9rem + 1.8vw, 2.75rem) + var(--seam-h)); }
.page--contact .page-hero__art { max-inline-size: 28rem; }
.page--contact .triobridge {
  position: relative;
  inline-size: 100%;
  aspect-ratio: 600 / 220;
  margin-block: 9% 0;
}
.page--contact .triobridge > .bridge { position: absolute; inset: 0; block-size: 100%; }
.page--contact .triobridge__stop {
  position: absolute;
  inset-inline-start: var(--x);
  inset-block-start: var(--y);
  translate: calc(-50% * var(--dir)) -50%;
}
.page--contact .triobridge__stop > .monogram {
  --size: clamp(4rem, 3.1rem + 4vw, 5.5rem);
  box-shadow: 0 0 0 .3rem var(--bg);   /* a ring of the ground: the arc passes behind each person */
}
@media (max-width: 55.99rem) {
  .page--contact .page-hero__art { max-inline-size: 20rem; }
  .page--contact .triobridge { margin-block: 12% 0; }
}

/* ───────────────────────────────── 2 The three contact bands ──
   Three people, three subjects, three colours. One band each: who, what to ask them, the two
   things to press, and the same details as text. In a row on a desktop, stacked on a phone. */
.page--contact .people { padding-block-start: clamp(1rem, .5rem + 2vw, 2.25rem); }
.page--contact .people__list { display: grid; gap: clamp(.75rem, .6rem + .6vw, 1.1rem); }
.page--contact .person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.1rem, .9rem + .9vw, 1.6rem) clamp(1rem, .6rem + 1.6vw, 2rem);
  padding: clamp(1.5rem, 1.1rem + 1.9vw, 2.75rem);
  scroll-margin-block-start: 0;
}
.page--contact .person > * { min-inline-size: 0; margin-block-start: 0; }
.page--contact .person__mono { --size: clamp(4.5rem, 3.9rem + 2.6vw, 6.25rem); }
.page--contact .person__who { display: grid; gap: .3rem; }
.page--contact .person__topic { font-size: var(--fs-sub); font-weight: var(--fw-display); }
.page--contact .person__name { font-size: var(--fs-lead); font-weight: var(--fw-medium); line-height: var(--lh-sub); }
.page--contact .person__ask { max-inline-size: 30em; margin-block-start: .25rem; color: var(--fg-muted); }
.page--contact .person__actions { grid-column: 1 / -1; display: grid; gap: .6rem; }
.page--contact .person__details {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
  gap: .75rem 1.5rem;
  padding-block-start: clamp(1rem, .8rem + .8vw, 1.4rem);
  border-block-start: 1px solid var(--rule);
}
.page--contact .person__details > div { display: grid; gap: .1rem; align-content: start; }
.page--contact .person__details dt {
  color: var(--fg-muted);
  font-size: var(--fs-small);
  font-weight: var(--fw-strong);
  line-height: var(--lh-ui);
}
.page--contact .person__details dd {
  color: var(--heading);
  font-weight: var(--fw-medium);
  overflow-wrap: anywhere;
  -webkit-user-select: all;
  user-select: all;   /* one click or tap selects the whole number or address */
}
@media (min-width: 40rem) and (max-width: 67.99rem) {
  .page--contact .person__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 68rem) {
  .page--contact .person { grid-template-columns: auto minmax(0, 1fr) minmax(0, 17.5rem) minmax(0, 18.5rem); }
  .page--contact .person__details {
    grid-column: 3;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr);
    padding-block-start: 0;
    padding-inline-start: clamp(1rem, 1.6vw, 2rem);
    border-block-start: 0;
    border-inline-start: 1px solid var(--rule);
  }
  .page--contact .person__actions { grid-column: 4; grid-row: 1; }
}

/* ─────────────────────────────────────── 3 Other ways to reach us ── */
.page--contact .direct__layout { display: grid; gap: clamp(1.5rem, 1rem + 3vw, 4rem); }
.page--contact .direct__layout > .section__head { margin-block-end: 0; }
.page--contact .ways { display: grid; gap: .6rem; }
.page--contact .way {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem clamp(1rem, .6rem + 1.5vw, 1.6rem);
  padding: clamp(1rem, .85rem + .8vw, 1.5rem);
  border-radius: var(--r-panel);
  background: var(--row);
}
.page--contact .way__text { flex: 1 1 11rem; display: grid; gap: .1rem; max-inline-size: none; }
.page--contact .way__label {
  color: var(--fg-muted);
  font-size: var(--fs-small);
  font-weight: var(--fw-strong);
  line-height: var(--lh-ui);
}
.page--contact .way__value {
  color: var(--heading);
  font-size: var(--fs-lead);
  font-weight: var(--fw-strong);
  line-height: var(--lh-sub);
  overflow-wrap: anywhere;
}
.page--contact .way > .btn { flex: 0 1 auto; }
@media (max-width: 33.99rem) {
  .page--contact .way > .icon-circle { --size: 3.5rem; }
  .page--contact .way > .btn { flex: 1 1 100%; }
}
@media (min-width: 60rem) {
  .page--contact .direct__layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
}

/* ──────────────────────────── 4 Where to find us, and the map ── */
.page--contact .visit__layout { display: grid; gap: clamp(2rem, 1rem + 4.5vw, 5rem); }
.page--contact .visit__text { display: grid; align-content: start; gap: clamp(1.25rem, 1rem + 1.2vw, 2rem); min-inline-size: 0; }
.page--contact .visit__facts { display: grid; gap: 1.1rem; }
.page--contact .visit__fact { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1rem; }
.page--contact .visit__pair { display: grid; gap: .1rem; max-inline-size: 24em; }
.page--contact .visit__label {
  color: var(--fg-muted);
  font-size: var(--fs-small);
  font-weight: var(--fw-strong);
  line-height: var(--lh-ui);
}
.page--contact .visit__value { color: var(--heading); font-size: var(--fs-lead); font-weight: var(--fw-medium); line-height: var(--lh-sub); }
/* The MTR stop: a station marker, as on a line map. */
.page--contact .visit__stop::before {
  content: "";
  inline-size: 44%;
  block-size: 44%;
  border: .28rem solid var(--indigo);
  border-radius: 50%;
}
.page--contact .visit__note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .8rem;
  max-inline-size: 30em;
}
.page--contact .visit__note::before {
  content: "";
  inline-size: .7rem;
  block-size: .7rem;
  margin-block-start: calc((1lh - .7rem) / 2);
  border-radius: 50%;
  background: var(--dot-a);
}

.page--contact .map { display: grid; justify-items: start; gap: 1.1rem; min-inline-size: 0; }
.page--contact .map__frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  inline-size: 100%;
  border-radius: var(--r-panel);
  background: var(--white);
  overflow: clip;
  isolation: isolate;
}
/* The frame is four by three, or as tall as its card needs if that is more (Urdu, large text).
   A sizer in the same grid cell does it: aspect-ratio would let WebKit clip the card instead. */
.page--contact .map__frame::before {
  content: "";
  grid-area: 1 / 1;
  padding-block-end: var(--map-ratio, 75%);
  pointer-events: none;
}
.page--contact .map__card {
  grid-area: 1 / 1;
  display: grid;
  justify-items: center;
  gap: 1rem;
  max-inline-size: 28rem;
  padding: clamp(1.5rem, 1rem + 2.6vw, 3rem);
  text-align: center;
}
.page--contact .map__pin { position: relative; margin-block: 1.25rem .75rem; }
.page--contact .map__pin::before,
.page--contact .map__pin::after {
  content: "";
  position: absolute;
  inset: -1rem;
  border: 2px solid var(--indigo-mist);
  border-radius: 50%;
  pointer-events: none;
}
.page--contact .map__pin::after { inset: -2.25rem; border-color: var(--mint-mist); }
.page--contact .map__address {
  color: var(--heading);
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  font-weight: var(--fw-sub);
  line-height: var(--lh-sub);
  text-wrap: balance;
}
.page--contact .map__note { color: var(--fg-muted); font-size: var(--fs-small); text-wrap: balance; }
.page--contact .map__load[aria-busy="true"] { opacity: .8; cursor: progress; }   /* pressed: its label now says that the map is loading */
.page--contact .map__view {
  position: absolute;
  inset: 0;
  z-index: 1;
  inline-size: 100%;
  block-size: 100%;
  border: 0;
  background: var(--white);
}
/* Without scripts the map cannot be loaded here: the plain link below is the way to it. */
html:not(.js) .page--contact :is(.map__load, .map__note) { display: none; }
/* The locator rings open with the pin (they are simply there without scripts or with reduced motion). */
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.ft-failsafe) .page--contact .map__pin::before,
  html.js:not(.ft-failsafe) .page--contact .map__pin::after {
    opacity: 0;
    scale: .6;
    transition: opacity var(--dur-4) ease, scale var(--dur-5) var(--ease-out);
  }
  html.js:not(.ft-failsafe) .page--contact .map__pin.is-in::before { opacity: 1; scale: 1; transition-delay: 150ms; }
  html.js:not(.ft-failsafe) .page--contact .map__pin.is-in::after { opacity: 1; scale: 1; transition-delay: 320ms; }
}
@media (min-width: 60rem) {
  .page--contact .visit__layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
}
@media (max-width: 39.99rem) {
  .page--contact .map__frame { --map-ratio: 125%; }
}

/* ───────────────────────────────────────────────────────── 5 Social ── */
.page--contact .social__layout { display: grid; gap: clamp(1.5rem, 1rem + 3vw, 4rem); }
.page--contact .social__layout > .section__head { margin-block-end: 0; }
.page--contact .social__list { display: grid; gap: .6rem; }
.page--contact .social__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-block-size: 5.5rem;
  padding-block: .5rem;
  padding-inline: .5rem 1.5rem;
  border-radius: 2.75rem;
  background: var(--row);
  color: var(--heading);
  font-size: var(--fs-lead);
  font-weight: var(--fw-strong);
  line-height: var(--lh-sub);
  text-decoration: none;
  transition: background-color var(--dur-2) ease, scale var(--dur-1) var(--ease-out);
}
.page--contact .social__link:active { scale: .985; }
.page--contact .social__out { display: grid; color: var(--fg-muted); transition: translate var(--dur-3) var(--ease-out), color var(--dur-2) ease; }
@media (hover: hover) and (pointer: fine) {
  .page--contact .social__list > li:nth-child(3n + 1) .social__link:hover { background: var(--orchid-mist); }
  .page--contact .social__list > li:nth-child(3n + 2) .social__link:hover { background: var(--mint-mist); }
  .page--contact .social__link:hover .social__out { translate: calc(3px * var(--dir)) -3px; color: var(--heading); }
}
@media (max-width: 29.99rem) {
  .page--contact .social__link { min-block-size: 4.5rem; padding-inline-end: 1.1rem; }
  .page--contact .social__link > .icon-circle { --size: 3.5rem; }
}
@media (min-width: 60rem) {
  .page--contact .social__layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
}

/* A button with a glyph whose label runs to two lines (German, Russian, Urdu …): the label is set
   from the start side, so the glyph stays beside its first word instead of drifting away from it. */
.page--contact .btn > .icon + span { text-align: start; }
