/* Contact — offices accordion beside a world map, after the supplied reference.
   The left column carries the dotted texture block and the list; the map sits
   right and highlights the pin for whichever office is open. */

.contact-page { padding: 0; }

.offices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; min-height: calc(calc(100 * var(--vh, 1vh)) - 62px); }

/* Left column ----------------------------------------------------------- */
.of-panel-left { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 96px var(--gutter) 72px; }
/* Tonal block behind the heading, as in the reference: a slightly deeper beige
   panel that the dot grid sits on and the list runs past. */
.of-tone { position: absolute; top: 0; left: 0; z-index: 0; width: min(78%, 620px); height: min(52%, 430px); background: #e8e4da; pointer-events: none; }
.of-dots { position: absolute; top: 0; left: 0; z-index: 1; width: min(44%, 320px); height: min(46%, 300px); background-image: radial-gradient(rgba(10, 10, 10, .22) 1.4px, transparent 1.5px); background-size: 22px 22px; opacity: .55; pointer-events: none; }
.of-heading { position: relative; z-index: 2; margin: 0 0 42px; font-size: clamp(42px, calc(5.2 * var(--vw, 1vw)), 76px); font-weight: 400; letter-spacing: -0.035em; line-height: 1; }
.of-list { position: relative; z-index: 2; border-top: 1px solid rgba(10, 10, 10, .16); }
.of-general { position: relative; z-index: 2; margin: 34px 0 0; color: rgba(10, 10, 10, .5); font-size: 13px; }
.of-general a { color: #0a0a0a; text-decoration: none; border-bottom: 1px solid rgba(10, 10, 10, .28); }
.of-general a:hover { border-bottom-color: #0a0a0a; }

/* Rows ------------------------------------------------------------------ */
.of-row { border-bottom: 1px solid rgba(10, 10, 10, .16); }
.of-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 22px 4px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.of-title { font-size: clamp(22px, calc(2.3 * var(--vw, 1vw)), 30px); font-weight: 400; letter-spacing: -0.025em; line-height: 1.1; }
.of-city { transition: color .3s var(--ease); }
.of-hq { color: rgba(10, 10, 10, .55); font-size: .62em; }
.of-country { color: rgba(10, 10, 10, .45); font-size: .58em; letter-spacing: -0.01em; }
.of-row.is-open .of-city, .of-row.is-open .of-hq { color: var(--accent, #2f3bff); }
.of-head:hover .of-city { color: var(--accent, #2f3bff); }

/* Plus / minus mark, drawn so the vertical bar can retract on open. */
.of-sign { position: relative; flex: 0 0 auto; width: 18px; height: 18px; }
.of-sign::before, .of-sign::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--accent, #2f3bff); transform: translate(-50%, -50%); }
.of-sign::before { width: 18px; height: 1.5px; }
.of-sign::after { width: 1.5px; height: 18px; transition: transform .35s var(--ease), opacity .35s var(--ease); }
.of-row.is-open .of-sign::after { opacity: 0; transform: translate(-50%, -50%) scaleY(0); }

/* Panel: height is animated by GSAP, so it starts clipped. */
.of-panel { overflow: hidden; }
.of-panel-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; padding: 4px 4px 30px 38px; }
.of-address { display: block; color: rgba(10, 10, 10, .78); font-size: 16px; line-height: 1.55; }
.of-line { display: block; }
.of-legal { color: rgba(10, 10, 10, .55); }
.of-contact { align-self: start; }
.of-tel { color: rgba(10, 10, 10, .78); font-size: 16px; text-decoration: none; white-space: nowrap; }
.of-tel:hover { color: #0a0a0a; }
.of-map { grid-column: 1 / -1; justify-self: start; margin-top: 18px; padding-bottom: 2px; border-bottom: 1px solid rgba(10, 10, 10, .3); color: #0a0a0a; font-size: 13px; text-decoration: none; }
.of-map:hover { border-bottom-color: var(--accent, #2f3bff); }
.of-arrow { display: inline-block; margin-left: 10px; }

/* Map ------------------------------------------------------------------- */
.of-map-pane { position: relative; display: flex; align-items: center; justify-content: center; padding: 60px 40px; background: #f4f2ed; overflow: hidden; }
.of-map-wrap { position: relative; width: 100%; max-width: 780px; }
.of-map-img { display: block; width: 100%; height: auto; }
.of-pin { position: absolute; z-index: 2; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #0a0a0a; transition: background-color .35s var(--ease), transform .35s var(--ease); }
.of-pin.is-active { background: var(--accent, #2f3bff); transform: scale(1.7); }

@media (max-width: 1080px) {
  .offices { grid-template-columns: 1fr; min-height: 0; }
  .of-panel-left { padding: 84px var(--gutter) 48px; }
  .of-map-pane { order: -1; padding: 74px 20px 26px; }
  .of-map-wrap { max-width: 620px; }
}
@media (max-width: 620px) {
  .of-panel-inner { grid-template-columns: 1fr; padding-left: 4px; }
  .of-map-pane { padding-top: 70px; }
  /* Tonal block behind the heading, as in the reference: a slightly deeper beige
   panel that the dot grid sits on and the list runs past. */
.of-tone { position: absolute; top: 0; left: 0; z-index: 0; width: min(78%, 620px); height: min(52%, 430px); background: #e8e4da; pointer-events: none; }
.of-dots { width: 60%; height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .of-sign::after, .of-pin { transition: none; }
}

/* Tone block sits only behind the heading so it never runs under the list. */
.of-tone { width: min(62%, 520px); height: 210px; }
.of-dots { width: min(34%, 260px); height: 170px; }
@media (max-width: 620px) {
  .of-tone, .of-dots { display: none; }
  .of-panel-left { padding: 34px 20px 44px; }
  .of-heading { margin-bottom: 22px; font-size: 40px; }
  .of-head { padding: 18px 0; }
  .of-title { font-size: 22px; }
  .of-panel-inner { padding: 0 0 22px; gap: 6px; }
  .of-address, .of-tel { font-size: 15px; }
  .of-map-pane { padding: 70px 16px 8px; }
  .of-map-wrap { max-width: 100%; }
  .of-general { font-size: 14px; line-height: 1.6; }
}
