.contact-page {
  background: #02080b;
}

.contact-page .site-header {
  position: relative;
  z-index: 5;
  background: #04090c;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.contact-page .site-nav a[aria-current="page"] {
  color: var(--paper);
}

.contact-page .site-nav a[aria-current="page"]::after {
  background: #00ccff;
  transform: scaleX(1);
}

.contact-main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(48px, 5vw, 72px) var(--frame-gutter) clamp(92px, 8vw, 122px);
}

.contact-inner {
  position: relative;
  width: min(100%, var(--section-width));
  margin: 0 auto;
}

.contact-overline,
.contact-overline p {
  display: flex;
  align-items: center;
}

.contact-overline {
  justify-content: space-between;
  gap: 24px;
}

.contact-overline p {
  gap: 14px;
  margin: 0;
  color: rgba(247, 247, 247, .76);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1.45;
  text-transform: uppercase;
}

.contact-overline p:last-child {
  color: rgba(247, 247, 247, .56);
  text-align: right;
}

.contact-rule {
  width: 42px;
  height: 1px;
  background: #00ccff;
  flex: none;
}

.contact-slash,
.contact-dot {
  color: #00ccff;
}

.contact-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, .85fr);
  gap: clamp(45px, 6vw, 110px);
  align-items: end;
  margin-top: clamp(58px, 5.5vw, 84px);
}

.contact-intro h1 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(66px, 7.3vw, 112px);
  font-weight: 350;
  letter-spacing: -.085em;
  line-height: .91;
}

.contact-intro h1 > span,
.contact-intro h1 em {
  display: block;
}

.contact-intro h1 em {
  width: max-content;
  max-width: 100%;
  margin: .08em 0 0 .46em;
  font-size: .77em;
  font-style: italic;
  line-height: 1.04;
}

.contact-intro > p {
  max-width: 500px;
  margin: 0 0 .15em;
  padding-left: 32px;
  border-left: 1px solid rgba(247, 247, 247, .34);
  color: rgba(247, 247, 247, .76);
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.55;
}

.contact-form-panel :focus-visible {
  outline: 2px solid #00ccff;
  outline-offset: 3px;
}

.contact-form-panel {
  margin-top: clamp(48px, 5.6vw, 86px);
  padding: clamp(24px, 4.1vw, 60px);
  border: 1px solid rgba(223, 240, 246, .3);
  border-radius: 20px;
  background:
    radial-gradient(
      ellipse 128% 118% at 10% -34%,
      transparent 70%,
      rgba(20, 53, 77, .22) 83%,
      rgba(29, 74, 110, .52) 98%,
      rgba(14, 46, 70, .44) 110%,
      transparent 138%
    ),
    linear-gradient(145deg, #151c22, #0a1117 76%);
  scroll-margin-top: 24px;
}

.contact-form-heading {
  margin-bottom: clamp(26px, 3vw, 40px);
}

.contact-form-heading > p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 15px;
  color: #88cbdc;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.contact-form-rule {
  width: 30px;
  height: 1px;
  flex: none;
  background: #00ccff;
}

.contact-form-heading h2 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 350;
  letter-spacing: -.065em;
  line-height: 1.12;
}

.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(19px, 1.6vw, 24px) clamp(20px, 2.6vw, 38px);
}

.contact-field {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 9px;
}

.contact-field--message {
  grid-column: 1 / -1;
}

.contact-field label {
  color: rgba(247, 247, 247, .82);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .06em;
  line-height: 1.4;
}

.contact-field label span {
  color: #00ccff;
}

.contact-field :is(input, select, textarea) {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid rgba(223, 240, 246, .36);
  border-radius: 8px;
  background: rgba(2, 8, 11, .48);
  color: var(--paper);
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  transition: border-color 180ms ease;
}

.contact-field textarea {
  min-height: 122px;
  resize: vertical;
}

.contact-field select {
  padding-inline-end: 38px;
  appearance: none;
  cursor: pointer;
}

.contact-field select option {
  background: #101b20;
  color: var(--paper);
}

.contact-field--select::after {
  position: absolute;
  inset-inline-end: 18px;
  bottom: 24px;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--paper);
  border-bottom: 1px solid var(--paper);
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(247, 247, 247, .56);
}

.contact-field :is(input, select, textarea):hover {
  border-color: rgba(223, 240, 246, .54);
}

.contact-field :is(input, select, textarea):focus {
  border-color: #00ccff;
}

.contact-form-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(22px, 2.6vw, 34px);
  padding-top: clamp(18px, 2vw, 25px);
  border-top: 1px solid rgba(223, 240, 246, .18);
}

.contact-form-bottom p {
  margin: 0;
  color: rgba(247, 247, 247, .61);
  font-size: 14px;
  line-height: 1.55;
}

.contact-form-bottom button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 26px);
  flex: none;
  padding: 13px 23px;
  border: 1px solid var(--paper);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease;
}

.contact-form-bottom button span {
  font-size: 22px;
  font-weight: 350;
  line-height: .7;
  transition: transform 180ms ease;
}

.contact-form-bottom button:hover,
.contact-form-bottom button:focus-visible {
  border-color: #00ccff;
  background: #00ccff;
}

.contact-form-bottom button:hover span,
.contact-form-bottom button:focus-visible span { transform: translate(2px, -2px); }

.contact-form-status {
  min-height: 0;
  margin: 0;
  color: #a5e2ef;
  font-size: 14px;
  line-height: 1.5;
}

.contact-form-status:not(:empty) {
  margin-top: 18px;
}

@media (max-width: 1050px) {
  .contact-intro {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .contact-intro > p {
    margin-left: 4px;
  }
}

@media (max-width: 700px) {
  .contact-fields { grid-template-columns: 1fr; }

  .contact-form-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-page .site-header {
    padding-bottom: 24px;
  }

  .contact-main {
    padding-top: 47px;
    padding-bottom: 90px;
  }

  .contact-overline {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }

  .contact-overline p {
    font-size: 10px;
  }

  .contact-overline p:last-child { display: none; }

  .contact-rule {
    width: 28px;
  }

  .contact-intro {
    margin-top: 60px;
  }

  .contact-intro h1 {
    font-size: clamp(53px, 10.5vw, 72px);
  }

  .contact-intro h1 em {
    margin-left: .25em;
    font-size: .74em;
  }

  .contact-intro > p {
    padding-left: 22px;
    font-size: 17px;
  }

  .contact-form-panel {
    padding: 26px clamp(16px, 5vw, 30px);
  }
}

@media (max-width: 390px) {
  .contact-intro h1 {
    font-size: clamp(46px, 10.8vw, 53px);
  }

  .contact-intro h1 em {
    margin-left: .1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-field :is(input, select, textarea),
  .contact-form-bottom button,
  .contact-form-bottom button span { transition: none; }
  html {
    scroll-behavior: auto;
  }
}
