/* Contact: a compact signal ribbon, a clear invitation, and Matmon's GHL form. */
.contact-page .contact-shell {
  width: min(1280px, calc(100% - 80px));
  margin-inline: auto;
}

.contact-ribbon {
  --contact-pattern-width: 1800px;
  --contact-pattern-start: -450px;
  position: relative;
  overflow: hidden;
  background: #0b1c28;
  color: #f7f6f3;
}
.contact-ribbon__scene {
  position: relative;
  height: 168px;
}
.contact-ribbon__scene::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: min(580px, 100%);
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #0b1c28 30%, #0b1c28 70%, transparent);
  pointer-events: none;
  z-index: 1;
}
.contact-ribbon__pattern {
  position: absolute;
  inset: 0;
  background: url('/assets/img/contact/communication-frieze-expanded.webp') var(--contact-pattern-start) center / var(--contact-pattern-width) auto repeat-x;
  animation: contact-pattern-drift 120s linear infinite;
  animation-play-state: paused;
}
.contact-ribbon__core {
  top: 50%;
  left: 50%;
  bottom: auto;
  width: 76px;
  height: 76px;
  transform: translate(-50%, -50%);
  z-index: 3;
}
.contact-ribbon__network {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(560px, 100%);
  height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}
.contact-ribbon.is-animated .contact-ribbon__pattern {
  animation-play-state: running;
}
.contact-ribbon__legend {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  min-height: 42px;
  padding: 0 76px 0 40px;
  border-top: 1px solid rgb(156 219 234 / 13%);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  color: #c4d1d5;
}
.contact-ribbon__legend > span:first-child {
  color: #e4cca0;
}
.contact-ribbon__legend > span:nth-child(2) {
  text-align: center;
  font-weight: 600;
}
.contact-ribbon__legend > span:nth-child(3) {
  text-align: right;
  color: #9cdbea;
}
.contact-ribbon__mobile-break { display: none; }
.contact-ribbon__toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 44px;
  height: 42px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #c4d1d5;
}
.contact-ribbon__toggle[hidden] { display: none; }
.contact-ribbon__toggle::before {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1px solid rgb(196 209 213 / 45%);
  border-radius: 50%;
}
.contact-ribbon__toggle > span {
  width: 8px;
  height: 9px;
  border-inline: 2px solid currentColor;
}
.contact-ribbon__toggle[data-paused="true"] > span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border: 5px solid transparent;
  border-left: 7px solid currentColor;
  border-right: 0;
}
.contact-ribbon__toggle:focus-visible {
  outline: 2px solid #9cdbea;
  outline-offset: -4px;
}
@keyframes contact-pattern-drift {
  to { background-position-x: calc(var(--contact-pattern-start) + var(--contact-pattern-width)); }
}

.contact-start {
  padding-block: clamp(44px, 4.5vw, 70px) 64px;
}
.contact-start__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr);
  gap: 64px;
  align-items: start;
}
.contact-start h1 {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: clamp(50px, 4.2vw, 64px);
  line-height: 1.035;
  letter-spacing: -.035em;
  font-weight: 800;
  color: #0b1c28;
}
.contact-start__possibilities {
  margin: 0;
  font-size: clamp(18px, 1.65vw, 24px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -.015em;
}
.contact-start__unsure {
  max-width: 31ch;
  margin: 15px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: #5c6670;
}
.contact-start__invitation {
  margin: 32px 0 0;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  font-weight: 700;
  color: #0d5270;
}
.contact-start__form {
  min-width: 0;
}
.contact-form-embed {
  display: block;
  width: 100%;
  max-width: 100%;
}
.contact-form__alternatives {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 650px;
  margin-inline: auto;
  margin-top: 16px;
}
.contact-form__phone {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #5c6670;
}
.contact-form__phone a {
  display: inline-block;
  color: #0d5270;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-form__direct {
  font-size: 12px;
  line-height: 1.5;
  color: #5c6670;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-reassurance {
  padding-block: 52px 60px;
  background: #eeeae2;
  border-top: 1px solid #dedbd4;
}
.contact-reassurance__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(50px, 7vw, 116px);
}
.contact-reassurance h2 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 700;
  color: #0b1c28;
}
.contact-reassurance p {
  max-width: 49ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
}
.contact-reassurance .contact-reassurance__experience {
  margin-top: 22px;
  font-weight: 700;
  color: #0d5270;
}
.contact-testimonial {
  margin: 0;
  padding-left: 28px;
  border-left: 2px solid #c4ac78;
  align-self: start;
}
.contact-testimonial blockquote { margin: 0; }
.contact-testimonial blockquote p {
  font-size: clamp(21px, 1.8vw, 26px);
  line-height: 1.45;
  font-weight: 500;
  color: #0b1c28;
}
.contact-testimonial figcaption {
  display: grid;
  gap: 3px;
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.5;
  color: #5c6670;
}
.contact-testimonial figcaption strong { color: #0b1c28; }
.contact-testimonial__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 12px;
  color: #0d5270;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1100px) and (min-width: 681px) {
  .contact-start__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .contact-start__copy { max-width: 650px; width: 100%; margin-inline: auto; }
  .contact-start h1 br, .contact-start__possibilities br { display: none; }
}
@media (max-width: 900px) {
  .contact-page .contact-shell { width: calc(100% - 48px); }
  .contact-start__grid, .contact-reassurance__grid { gap: 38px; }
  .contact-start h1 { font-size: 56px; }
  .contact-start__possibilities { font-size: 18px; }
  .contact-start__invitation br { display: none; }
}
@media (max-width: 680px) {
  .contact-ribbon { --contact-pattern-width: 1440px; --contact-pattern-start: -720px; }
  .contact-ribbon__scene { height: 126px; }
  .contact-ribbon__scene::after { width: 100%; background: linear-gradient(90deg, transparent, #0b1c28 36%, #0b1c28 64%, transparent); }
  .contact-ribbon__core { width: 52px; height: 52px; }
  .contact-ribbon__legend { min-height: 56px; grid-template-columns: .7fr 1.6fr .9fr; padding-inline: 16px 54px; gap: 8px; font-size: 12px; }
  .contact-ribbon__mobile-break { display: initial; }
  .contact-ribbon__toggle { right: 3px; }
  .contact-start { padding-block: 36px 40px; }
  .contact-start__grid, .contact-reassurance__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .contact-start h1 { margin-bottom: 21px; font-size: clamp(40px, 10.8vw, 60px); }
  .contact-start__unsure { max-width: 100%; margin-top: 12px; font-size: 16px; }
  .contact-start__invitation { margin-top: 22px; font-size: 17px; }
  .contact-start__invitation br { display: initial; }
  .contact-reassurance { padding-block: 34px 40px; }
  .contact-reassurance__grid { gap: 21px; }
  .contact-reassurance h2 { font-size: 34px; }
  .contact-reassurance h2 br { display: none; }
  .contact-reassurance p { font-size: 16px; }
  .contact-testimonial { padding-left: 20px; margin-top: 8px; }
  .contact-testimonial blockquote p { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-ribbon__pattern { animation: none; }
}
