/* --- CONTACT PAGE --- */
.contact-page {
  min-height: 100vh;
  background: radial-gradient(ellipse 55% 45% at 90% 8%, rgba(244, 163, 0, 0.1), transparent), rgb(10, 12, 20);
  color: rgba(245, 240, 225, 0.72);
  font-family: "Inter", sans-serif;
}

.contact-scroll-progress {
  position: fixed;
  top: 50%;
  right: 15px;
  z-index: 20;
  width: 24px;
  height: 200px;
  translate: 0 -50%;
  pointer-events: none;
}

.contact-scroll-progress::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 50%;
  width: 1px;
  translate: -50% 0;
  background: linear-gradient(transparent, rgba(160, 160, 160, 0.35) 15%, rgba(160, 160, 160, 0.35) 85%, transparent);
  opacity: 0.55;
}

.contact-scroll-thumb {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border-radius: 50%;
  background: #f4a300;
  box-shadow:
    0 0 0 3px rgba(244, 163, 0, 0.18),
    0 0 12px rgba(244, 163, 0, 0.45);
  animation: contact-scroll-breathe 2.4s ease-in-out infinite;
}

.contact-scroll-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid #f4a300;
  border-radius: 50%;
  animation: contact-scroll-ripple 2.4s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}

@keyframes contact-scroll-breathe {
  0%,
  100% {
    scale: 1;
    box-shadow:
      0 0 0 3px rgba(244, 163, 0, 0.18),
      0 0 12px rgba(244, 163, 0, 0.45);
  }
  50% {
    scale: 1.22;
    box-shadow:
      0 0 0 5px rgba(244, 163, 0, 0.28),
      0 0 22px rgba(244, 163, 0, 0.8);
  }
}

@keyframes contact-scroll-ripple {
  from {
    opacity: 0.8;
    scale: 1;
  }
  to {
    opacity: 0;
    scale: 2.8;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-scroll-thumb,
  .contact-scroll-thumb::after {
    animation: none;
  }
}

.contact-top {
  padding: 20px 40px;
}

.contact-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(48px, 10vw, 150px);
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(70px, 12vh, 140px) 40px 120px;
}

.contact-intro h6,
.contact-socials h6 {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #f4a300;
}

.contact-intro h1 {
  margin: 18px 0 22px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4rem, 8vw, 7rem);
  font-style: italic;
  font-weight: 400;
  line-height: 0.82;
  color: #f5f0e1;
}

.contact-intro h1 em {
  color: #f4a300;
}

.contact-intro p {
  max-width: 28rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-details {
  display: grid;
  align-content: start;
  gap: 12px;
  padding-top: 38px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(245, 240, 225, 0.12);
  color: inherit;
  text-decoration: none;
}

.contact-detail:hover {
  color: #f4a300;
}

.contact-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(244, 163, 0, 0.5);
  border-radius: 50%;
  color: #f4a300;
}

.contact-detail small,
.contact-detail b,
.contact-detail i {
  display: block;
}

.contact-detail small {
  margin-bottom: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 225, 0.62);
}

.contact-detail b {
  font-weight: 400;
  color: #f5f0e1;
}

.contact-detail i {
  margin-top: 5px;
  font-size: 0.8rem;
  font-style: normal;
  color: rgba(245, 240, 225, 0.62);
}

.contact-socials {
  grid-column: 2;
  padding-top: 4px;
}

.contact-socials [data-contact-social-list] {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.contact-social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 128px;
  padding: 10px 13px 10px 9px;
  border: 1px solid rgba(245, 240, 225, 0.14);
  border-radius: 999px;
  background: rgba(245, 240, 225, 0.035);
  color: #f5f0e1;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-decoration: none;
  opacity: 0;
  animation: contact-social-in 0.55s cubic-bezier(0.19, 1, 0.22, 1) calc(var(--social-index) * 90ms) forwards;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    translate 0.25s ease;
}

.contact-social-link:hover,
.contact-social-link:focus-visible {
  border-color: rgba(244, 163, 0, 0.65);
  background: rgba(244, 163, 0, 0.12);
  color: #f4a300;
  translate: 0 -4px;
}

.contact-social-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(244, 163, 0, 0.12);
  color: #f4a300;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    rotate 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-social-link:hover .contact-social-icon,
.contact-social-link:focus-visible .contact-social-icon {
  rotate: 8deg;
  background: #f4a300;
  color: #1a1a1a;
}

@keyframes contact-social-in {
  from {
    opacity: 0;
    translate: 0 12px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-social-link {
    animation: none;
    opacity: 1;
  }
}

@media (max-width: 700px) {
  .contact-top {
    padding: max(16px, env(safe-area-inset-top)) 16px 16px;
  }

  /* sat over the text on a phone (Home hides its dots the same way) */
  .contact-scroll-progress {
    display: none;
  }

  .contact-main {
    display: block;
    padding: 68px 22px 80px;
  }

  .contact-intro h1 {
    font-size: clamp(3.8rem, 18vw, 5.2rem);
  }

  .contact-details {
    padding-top: 54px;
  }

  .contact-socials {
    padding-top: 20px;
  }
}
