/* Contact overlay (Figma frame "MacBook Pro 14' - 23"). Shared by every page.
   Two rows centred on screen over the dimmed, blurred page: labels on the left,
   values right-aligned (Figma: x 452 to 1060 in a 1512 frame = 608px wide). */
.contact-panel {
  position: fixed;
  inset: 0;
  z-index: 15; /* above the page, below the fixed logo / nav / Contact (z 20) */
  display: grid;
  place-items: center;
  background: rgba(4, 4, 4, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.4s;
}
.contact-panel.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}
.contact-list {
  width: min(608px, 100vw - 48px);
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  row-gap: 17px; /* rows 43px apart in Figma with 26px line boxes */
  font-size: 18px;
  line-height: 26px;
  color: var(--fg, #fff);
  transform: translate3d(0, 10px, 0);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-panel.is-open .contact-list { transform: none; }
.contact-list dt, .contact-list dd { margin: 0; }
.contact-list dd { text-align: right; }
.contact-list a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
.contact-list a:hover { opacity: 0.7; }
.contact-list a:focus-visible { outline: none; text-decoration: underline; text-underline-offset: 4px; }

/* While open: the page underneath can't scroll, Contact stays lit as the toggle */
html.contact-open, html.contact-open body { overflow: hidden; }
html.contact-open .title-chip { opacity: 0; pointer-events: none; }

@media (max-width: 700px) {
  .contact-list { font-size: 15px; line-height: 22px; row-gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-panel, .contact-list { transition: none; }
}
