.contact {
  background: var(--color-bg-dark);
  position: relative;
  overflow: hidden;
}

/* Dual radial accents */
.contact::before {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -8%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 180, 220, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

.contact::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 100, 160, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

/* ── Header ────────────────────────────────────────────── */

.contact__header {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
  z-index: 1;
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: 0.03em;
  color: var(--color-text-primary);
  line-height: 1.0;
  margin-bottom: 0.75rem;
}

.contact__subtitle {
  font-size: 0.97rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--color-text-muted);
}

/* ── Contact bar ───────────────────────────────────────── */

.contact__bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  z-index: 1;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--color-bg-card);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.contact__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  gap: 1rem;
  position: relative;
  transition: background var(--t-mid);
}

.contact__item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15%;
  right: 0;
  height: 70%;
  width: 1px;
  background: var(--color-border-subtle);
}

.contact__item:hover {
  background: var(--color-bg-card-hover);
}

/* ── Icon ──────────────────────────────────────────────── */

.contact__item-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-dim);
  border: 1px solid rgba(0, 180, 220, 0.2);
  border-radius: var(--r-md);
  color: var(--color-accent);
  flex-shrink: 0;
  transition: background var(--t-mid), border-color var(--t-mid);
}

.contact__item:hover .contact__item-icon {
  background: rgba(0, 180, 220, 0.2);
  border-color: rgba(0, 180, 220, 0.4);
}

.contact__item-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
}

/* ── Text ──────────────────────────────────────────────── */

.contact__item-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  line-height: 1;
}

.contact__item-value {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 1.5;
}

.contact__item-value a {
  color: inherit;
  transition: color var(--t-fast);
}

.contact__item-value a:hover {
  color: var(--color-accent);
}

/* ── CTA ───────────────────────────────────────────────── */

.contact__cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.contact__cta-note {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-text-faint);
  letter-spacing: 0.04em;
}

.contact__cta-note strong {
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 1024px) {
  .contact__bar {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact__item:nth-child(3)::after {
    display: none;
  }

  /* Bottom row: 2 items — center them */
  .contact__item:nth-child(4),
  .contact__item:nth-child(5) {
    grid-column: span 1;
  }

  .contact__item:nth-child(4) {
    border-top: 1px solid var(--color-border-subtle);
  }

  .contact__item:nth-child(5) {
    border-top: 1px solid var(--color-border-subtle);
  }

  /* Hide the right-border pseudo on last of each row */
  .contact__item:nth-child(4)::after {
    display: block;
  }

  .contact__item:nth-child(5)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .contact__bar {
    grid-template-columns: repeat(2, 1fr);
    border-radius: var(--r-md);
  }

  .contact__item:nth-child(odd)::after {
    display: block;
  }

  .contact__item:nth-child(even)::after {
    display: none;
  }

  .contact__item:nth-child(n+3) {
    border-top: 1px solid var(--color-border-subtle);
  }

  .contact__item:nth-child(5) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--color-border-subtle);
  }

  .contact__item:nth-child(5)::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .contact__bar {
    grid-template-columns: 1fr;
  }

  .contact__item {
    flex-direction: row;
    text-align: left;
    align-items: center;
    padding: 1.25rem 1.5rem;
    gap: 1.25rem;
  }

  .contact__item::after {
    display: none !important;
  }

  .contact__item:not(:first-child) {
    border-top: 1px solid var(--color-border-subtle);
  }

  .contact__item:nth-child(5) {
    grid-column: auto;
  }

  .contact__item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
  }
}
