.contact-scene {
  position: relative;
  height: 100svh;
  min-height: 660px;
  overflow: hidden;
  isolation: isolate;
  background: var(--charcoal);
  --parallax-offset: 0px;
}

.contact-bg {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: center 50%;
  transform: translate3d(0, var(--parallax-offset), 0) scale(1);
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1), filter 420ms ease;
  will-change: transform;
}

.contact-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(12, 12, 12, 0.76), rgba(52, 58, 77, 0.28) 48%, rgba(12, 12, 12, 0.2)),
    linear-gradient(180deg, rgba(8, 8, 8, 0.38), transparent 40%, rgba(8, 8, 8, 0.48));
}

.contact-content {
  position: relative;
  z-index: 3;
  width: min(1320px, calc(100% - 80px));
  height: 100%;
  display: grid;
  align-content: center;
  gap: clamp(34px, 5vh, 58px);
  margin-inline: auto;
  padding-top: 92px;
}

.contact-copy h1 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(3rem, 5.1vw, 5.9rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-transform: none;
}

.contact-copy h1 strong { color: var(--cream); font-weight: 500; }
.contact-copy p { margin: 0; color: rgba(255, 255, 255, 0.92); font-size: clamp(0.82rem, 0.95vw, 1.02rem); line-height: 1.6; }

.seller-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }

.seller-card {
  min-height: 176px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  padding: 22px 15px 16px;
  border: 1px solid rgba(52, 58, 77, 0.13);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--charcoal);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.seller-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--slate);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
}

.avatar-red { background: #9d3636; }
.avatar-community { background: #1f8f57; }
.community-card .seller-info small { max-width: 170px; line-height: 1.35; }
.seller-info { align-self: center; text-align: center; }
.seller-info strong,
.seller-info small { display: block; }
.seller-info strong { font-size: 0.96rem; font-weight: 700; }
.seller-info small { margin-top: 5px; font-size: 0.72rem; }
.seller-action { display: flex; align-items: center; gap: 5px; border-bottom: 1px solid var(--slate); color: var(--slate); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.seller-action .material-symbols-outlined { font-size: 14px; }

.seller-card:hover,
.seller-card:focus-visible {
  border-color: var(--cream);
  background: var(--slate);
  color: var(--white);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.32);
  transform: translateY(-9px);
}

.seller-card:hover .seller-action,
.seller-card:focus-visible .seller-action { border-color: var(--cream); color: var(--cream); }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .contact-scene:has(.seller-card:hover) .contact-bg { transform: translate3d(0, var(--parallax-offset), 0) scale(1.075); filter: brightness(0.68) blur(1px); }
}

@media (max-width: 800px) {
  .contact-scene { height: auto; min-height: 100svh; overflow: hidden; }
  .contact-bg { object-position: center 50%; }
  .contact-shade { background: linear-gradient(180deg, rgba(8, 8, 8, 0.48), rgba(52, 58, 77, 0.28) 36%, rgba(8, 8, 8, 0.64)); }
  .contact-content { width: calc(100% - 36px); height: auto; min-height: 100svh; align-content: start; gap: 18px; padding-top: 126px; padding-bottom: 48px; }
  .contact-copy { text-align: center; }
  .contact-copy h1 { margin-bottom: 10px; font-size: clamp(2.25rem, 10.8vw, 3.45rem); line-height: 1.02; }
  .contact-copy p { font-size: 0.68rem; line-height: 1.45; }
  .seller-grid { grid-template-columns: 1fr; gap: 5px; }
  .seller-card { min-height: 57px; grid-template-columns: 40px 1fr auto; grid-template-rows: 1fr; align-items: center; justify-items: start; padding: 7px 12px; border-radius: 7px; }
  .seller-avatar { width: 35px; height: 35px; font-size: 0.65rem; }
  .seller-info { padding-left: 8px; text-align: left; }
  .seller-info strong { font-size: 0.78rem; }
  .seller-info small { margin-top: 2px; font-size: 0.56rem; line-height: 1.18; }
  .community-card .seller-info small { max-width: 145px; font-size: 0.52rem; line-height: 1.14; }
  .seller-action { justify-self: end; font-size: 0.6rem; }
  .seller-card:hover,
  .seller-card:focus-visible { transform: translateX(4px); }
}

@media (max-width: 370px) {
  .contact-content { padding-top: 108px; }
  .contact-copy h1 { font-size: 1.95rem; }
  .seller-card { min-height: 53px; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-bg { transform: none !important; }
}
