.contact-page {
  min-height: 100svh;
  background:
    linear-gradient(180deg, #10101430, #101014 510px),
    linear-gradient(90deg, #101014 12%, #10101492 58%, #10101425),
    url('assets/revit-tools/05-tools-wave-background-v1.webp') top right / min(100%, 1450px) auto no-repeat,
    var(--bg);
}

.contact-shell {
  width: min(1120px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.contact-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 80px;
  border-bottom: 1px solid #b9dfff26;
}

.contact-masthead img {
  display: block;
  width: clamp(124px, 17vw, 180px);
  height: auto;
}

.contact-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #c4d5e6;
  font-size: 13px;
  white-space: nowrap;
}

.contact-back:hover { color: #8cdeff; }
.contact-back .icon { width: 16px; height: 16px; transform: rotate(180deg); }

.contact-main { padding-block: clamp(42px, 5.4vw, 76px) clamp(52px, 6vw, 88px); }
.contact-intro { margin-bottom: clamp(32px, 4vw, 46px); }

.contact-kicker {
  margin: 0 0 15px;
  color: #91dcff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
}

.contact-intro h1 {
  margin: 0;
  color: #f5f8fc;
  font-size: clamp(44px, 6.3vw, 80px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.055em;
}

.contact-direct h2, .directory-group h2 {
  margin: 0 0 13px;
  color: #f1f6fc;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.contact-direct-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.directory-link {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 17px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 58px;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background .2s, border-color .2s, color .2s;
}

.directory-link:hover, .directory-link:focus-visible { background: #75c7f216; }

.contact-direct .directory-link {
  min-height: 76px;
  padding: 12px 16px;
  border: 1px solid #acdafa32;
  border-radius: 15px;
  background: linear-gradient(145deg, #203449dd, #141d29eb);
}

.contact-direct .directory-link:hover, .contact-direct .directory-link:focus-visible {
  border-color: #90dfff78;
  background: #233a4d;
}

.directory-mark {
  display: grid;
  place-items: center;
  height: 40px;
  border: 1px solid #9fdaff30;
  border-radius: 10px;
  background: #8bcaff10;
  color: #9bdfff;
}

.directory-mark .icon { width: 20px; height: 20px; }
.directory-arrow { width: 17px; height: 17px; color: #9bd3ee; }

.directory-copy {
  display: grid;
  gap: 3px;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.directory-copy strong { color: #eef5fd; font-size: 15px; font-weight: 600; }
.directory-copy > span { color: #b3c6d9; font-size: 13px; }

.directory-group {
  min-width: 0;
  margin-top: 25px;
  padding: 20px 13px 12px;
  border: 1px solid #95c7f128;
  border-radius: 18px;
  background: linear-gradient(145deg, #171f2b, #151922);
}

.directory-group h2 { margin: 0 12px 9px; }
.directory-group .directory-link + .directory-link { border-top: 1px solid #b8dfff15; }

.contact-footer {
  padding-block: 20px 28px;
  border-top: 1px solid #b9dfff26;
  color: #a0afbd;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .contact-page { background-size: auto, auto, auto 480px, auto; }
  .contact-masthead { min-height: 66px; }
  .contact-direct-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .contact-direct .directory-link { min-height: 66px; }
}
