.contact-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(72px, 8vw, 112px) 24px;
  background: linear-gradient(145deg, #f8f6f2 0%, #f5f9fc 58%, #eef7fb 100%);
  border-top: 1px solid rgba(26, 23, 20, .08);
}

[data-public-contact-nav][hidden] {
  display: none !important;
}

[data-public-contact-section-link][hidden],
[data-public-contact-link][hidden] {
  display: none !important;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .48;
  background-image:
    linear-gradient(rgba(133, 197, 237, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(133, 197, 237, .08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(100deg, transparent, #000 42%, transparent);
}

.contact-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(760px, 70vw);
  height: 2px;
  right: -18%;
  top: 20%;
  opacity: .65;
  background: linear-gradient(90deg, transparent, #85c5ed 30%, #dff6f2 72%, transparent);
  box-shadow: 0 0 22px rgba(133, 197, 237, .28);
  transform: rotate(-8deg);
  animation: contact-line-drift 18s ease-in-out infinite alternate;
}

.contact-section__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}

.contact-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #397fa9;
  font: 600 12px/1.2 "DM Sans", sans-serif;
  letter-spacing: .18em;
}

.contact-section__eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
}

.contact-section h2 {
  max-width: 650px;
  margin: 0;
  color: #1a1714;
  font-family: "DM Serif Display", serif;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -.025em;
}

.contact-section__intro {
  max-width: 650px;
  margin: 22px 0 0;
  color: #5d5a57;
  font: 400 clamp(17px, 1.5vw, 20px)/1.7 "DM Sans", sans-serif;
}

.contact-section__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 30px;
  padding: 13px 24px;
  border: 1px solid #1a1714;
  border-radius: 999px;
  background: #1a1714;
  color: #fff;
  font: 600 14px/1 "DM Sans", sans-serif;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.contact-section__cta::after {
  content: "→";
  margin-left: 12px;
}

.contact-section__cta:hover {
  transform: translateY(-2px);
  border-color: #397fa9;
  background: #397fa9;
}

.contact-section__cta:focus-visible,
.contact-section__link:focus-visible,
.contact-section__social:focus-visible {
  outline: 3px solid rgba(42, 151, 215, .36);
  outline-offset: 4px;
}

.contact-section__support {
  display: grid;
  gap: 18px;
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid rgba(26, 23, 20, .12);
}

.contact-section__support-item h3 {
  margin: 0 0 5px;
  color: #1a1714;
  font: 600 15px/1.35 "DM Sans", sans-serif;
}

.contact-section__support-item p {
  margin: 0;
  color: #6a6460;
  font: 400 14px/1.6 "DM Sans", sans-serif;
}

.contact-section__panel {
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid rgba(82, 129, 157, .18);
  border-radius: 24px;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 18px 54px rgba(42, 74, 92, .08);
}

.contact-section__row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(26, 23, 20, .09);
}

.contact-section__row:first-child { padding-top: 0; }
.contact-section__row:last-child { padding-bottom: 0; border-bottom: 0; }

.contact-section__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #eaf4fb;
  color: #267fb5;
}

.contact-section__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-section__label {
  display: block;
  margin-bottom: 3px;
  color: #77716c;
  font: 600 11px/1.3 "DM Sans", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-section__value,
.contact-section__link {
  color: #1d252a;
  font: 500 16px/1.5 "DM Sans", sans-serif;
  overflow-wrap: anywhere;
}

.contact-section__link {
  text-decoration-color: rgba(38, 127, 181, .36);
  text-underline-offset: 4px;
}

.contact-section__link:hover { color: #267fb5; }

.contact-section__note {
  display: block;
  margin-top: 4px;
  color: #77716c;
  font: 400 13px/1.5 "DM Sans", sans-serif;
}

.contact-section__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
}

.contact-section__social {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 9px 15px;
  border: 1px solid rgba(26, 23, 20, .12);
  border-radius: 999px;
  color: #3a3632;
  font: 600 13px/1 "DM Sans", sans-serif;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.contact-section__social:hover {
  transform: translateY(-1px);
  border-color: #85c5ed;
  color: #267fb5;
}

@keyframes contact-line-drift {
  0% { transform: translate3d(-4%, -5px, 0) rotate(-8deg); opacity: .42; }
  55% { transform: translate3d(5%, 9px, 0) rotate(-5deg); opacity: .72; }
  100% { transform: translate3d(-1%, 2px, 0) rotate(-9deg); opacity: .52; }
}

@media (max-width: 820px) {
  .contact-section__inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }
}

@media (min-width: 961px) and (max-width: 1120px) {
  .nav-in { padding-inline: 20px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
}

@media (max-width: 520px) {
  .contact-section { padding: 64px 20px; }
  .contact-section h2 { font-size: clamp(36px, 11vw, 48px); }
  .contact-section__panel { padding: 24px 20px; border-radius: 20px; }
  .contact-section__cta { width: 100%; }
  .contact-section__row { grid-template-columns: 38px minmax(0, 1fr); gap: 13px; }
  .contact-section__icon { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-section::after { animation: none; transform: rotate(-8deg); }
  .contact-section__cta,
  .contact-section__social { transition: none; }
}
