/* Contact channels use white card surfaces with subtle gray borders. */
.about-page .contact-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.about-page .contact-tile {
  min-width: 0;
  border: 0;
  perspective: 1000px;
}
.about-page .contact-tile-body,
.about-page .contact-tile-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 230px;
  box-sizing: border-box;
  padding: 30px 14px;
  border: 1px solid #dedede;
  border-radius: 9px;
  background: #fff;
  color: #111;
  box-shadow: none;
  font: inherit;
  text-align: center;
}
.about-page .contact-tile-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #222;
}
.about-page .contact-tile svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.about-page .contact-tile .contact-tile-name {
  display: block;
  margin: 0;
  color: #111;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
}
.about-page .contact-tile .contact-tile-value {
  display: block;
  margin: 7px 0 0;
  color: #6b6b6b;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}
.about-page .contact-tile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 36px;
  margin-top: 16px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  box-shadow: none;
  font: inherit;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease;
}
.about-page .contact-tile-link svg {
  width: 13px;
  height: 13px;
  stroke-width: 1.8;
}
.about-page .contact-tile-link:hover { background: #333; color: #fff; }
.about-page .contact-tile-inner {
  position: relative;
  height: 230px;
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.22, .7, .25, 1);
}
.about-page .contact-tile.is-flipped .contact-tile-inner { transform: rotateY(180deg); }
.about-page .contact-tile-face {
  height: 230px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.about-page .contact-tile-front { position: relative; cursor: pointer; }
.about-page .contact-tile-body > .contact-tile-link { margin-top: auto; }
.about-page .contact-tile-back {
  position: absolute;
  inset: 0;
  justify-content: center;
  transform: rotateY(180deg);
  pointer-events: none;
}
.about-page .contact-tile.is-flipped .contact-tile-back { pointer-events: auto; }
.about-page .contact-tile-reset {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #666;
  box-shadow: none;
  cursor: pointer;
}
.about-page .contact-tile-reset svg { width: 16px; height: 16px; }
.about-page .contact-tile-reset:hover { background: #e8e8e8; color: #111; }
.about-page .contact-tile-pending {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  border: 0;
  background: transparent;
  color: #666;
}
.about-page .contact-tile-back .contact-tile-name { font-size: 16px; }
.about-page .contact-tile-back .contact-tile-value { font-size: 12px; }
.about-page .contact-tile :is(button, a):focus-visible {
  outline: 2px solid #111;
  outline-offset: 4px;
}
/* Keep the supplied QR pixels and colors intact for accurate scanning. */
.about-page .contact-tile-qr-back { padding: 32px 14px 16px; }
.about-page .contact-tile-qr {
  display: block;
  width: min(100%, 180px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: #fff;
}
@media (max-width: 960px) {
  .about-page .contact-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .about-page .contact-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 380px) {
  .about-page .contact-card-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .about-page .contact-tile-inner,
  .about-page .contact-tile-link { transition: none; }
}
@media (forced-colors: active) {
  .about-page .contact-tile-body,
  .about-page .contact-tile-face { background: Canvas; color: CanvasText; outline: 1px solid CanvasText; }
  .about-page .contact-tile .contact-tile-name,
  .about-page .contact-tile .contact-tile-value,
  .about-page .contact-tile-icon,
  .about-page .contact-tile-pending,
  .about-page .contact-tile-reset { color: CanvasText; }
  .about-page .contact-tile-link { background: ButtonFace; color: ButtonText; outline: 1px solid ButtonText; }
  .about-page .contact-tile :is(button, a):focus-visible { outline-color: Highlight; }
}
