/* contact.html */

html:not(.is-touch), html:not(.is-touch) body { height: 100%; overflow: hidden; }

/* ── Rotating JP mark ── */
#contact-mark {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 58vh;
  height: 58vh;
  transform: translate(-50%, -50%);
  opacity: 0.06;
  pointer-events: none;
  animation: jp-spin 100s linear infinite;
}
#contact-mark svg { width: 100%; height: 100%; fill: #fff; }
@keyframes jp-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) { #contact-mark { animation: none; } }

/* ── Card + portrait row ── */
.contact-row {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 6vw;
  transform: translate(-50%, -50%);
}
.contact-portrait { margin: 0; flex: 0 0 auto; }
.contact-portrait img {
  display: block;
  height: clamp(180px, 40vh, 480px);
  width: auto;
  border-radius: 2px;
}

/* ── Details ── */
.contact-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.contact-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-style: normal;
}
.contact-link {
  display: block;
  padding: 8px 16px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.7, 0, 0.3, 1);
}
.contact-link:hover { color: #fff; }

.contact-socials { display: flex; gap: 4px; margin-top: 8px; }
.contact-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}
.contact-socials svg {
  width: 22px;
  height: 22px;
  fill: rgba(255,255,255,0.72);
  transition: fill 0.3s cubic-bezier(0.7, 0, 0.3, 1);
}
.contact-socials a:hover svg { fill: #fff; }

.contact-company {
  margin-top: 16px;
  padding: 8px 16px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.72);
  user-select: text;
}

/* ── Mobile ── */
@media (max-width: 900px) {
  .contact-row {
    position: static;
    order: 1;
    flex-direction: column;
    gap: 24px;
    margin: auto;
    transform: none;
  }
  .contact-portrait img { height: clamp(120px, 24vh, 240px); }
  #contact-mark { display: none; }
}
