/* Contact page: the A-palette visual system applied without changing its content contract. */
.a-contact-main {
  padding-top: var(--header-height);
}

.a-contact-hero {
  position: relative;
  display: grid;
  min-height: max(620px, calc(100svh - var(--header-height)));
  overflow: hidden;
  align-items: center;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.a-contact-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(rgb(234 243 255 / 2.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(234 243 255 / 2.5%) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.a-contact-atmosphere {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.a-contact-atmosphere::before {
  position: absolute;
  top: 14%;
  right: -16%;
  width: min(760px, 65vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(8 102 255 / 22%), rgb(8 102 255 / 7%) 44%, transparent 72%);
  content: "";
  filter: blur(34px);
}

.a-contact-atmosphere span {
  position: absolute;
  bottom: 18%;
  left: -12%;
  width: min(650px, 58vw);
  aspect-ratio: 1.8;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(8 102 255 / 18%), transparent 68%);
  filter: blur(50px);
  transform: rotate(-12deg);
}

.a-contact-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  align-items: end;
  gap: clamp(60px, 9vw, 150px);
  padding-block: clamp(92px, 11vw, 160px);
}

.a-contact-heading {
  position: relative;
}

.a-contact-heading::after {
  display: block;
  width: min(100%, 720px);
  height: 1px;
  margin-top: 48px;
  background: linear-gradient(90deg, var(--orange) 0 72px, var(--line) 72px 100%);
  content: "";
}

.a-contact-heading h1 {
  max-width: 11ch;
  margin-top: 24px;
  font-size: clamp(4.25rem, 7.1vw, 7.35rem);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 0.92;
  text-wrap: balance;
}

.a-contact-intro {
  display: grid;
  align-content: end;
  gap: 26px;
  padding-bottom: 49px;
}

.a-contact-index {
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 720;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.a-contact-intro p {
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.72;
}

.a-contact-form-section {
  position: relative;
  display: grid;
  min-height: 900px;
  align-items: center;
  padding-block: clamp(78px, 8vw, 124px);
  background:
    radial-gradient(circle at 92% 10%, rgb(8 102 255 / 12%), transparent 34rem),
    var(--navy);
}

.a-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  gap: clamp(18px, 2vw, 30px);
}

.a-contact-form {
  display: grid;
  gap: 24px;
  padding: clamp(34px, 5vw, 74px);
  border: 1px solid rgb(8 102 255 / 24%);
  border-radius: 5px;
  background: var(--ice);
  box-shadow: 0 30px 80px rgb(0 0 0 / 18%);
  color: var(--navy);
}

.a-contact-form-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}

.a-contact-form-heading i {
  display: block;
  width: 72px;
  height: 2px;
  background: var(--orange);
}

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

.a-contact-form label {
  display: grid;
  gap: 10px;
}

.a-contact-form label > span {
  color: rgb(8 27 51 / 74%);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.a-contact-form input,
.a-contact-form textarea {
  width: 100%;
  border: 1px solid rgb(8 27 51 / 18%);
  border-radius: 6px;
  padding: 16px 18px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.a-contact-form input {
  min-height: 56px;
}

.a-contact-form textarea {
  min-height: 170px;
  resize: vertical;
}

.a-contact-form input::placeholder,
.a-contact-form textarea::placeholder {
  color: rgb(8 27 51 / 46%);
}

.a-contact-form input:focus,
.a-contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(8 102 255 / 12%);
  outline: 0;
}

.a-contact-submit {
  width: fit-content;
  min-width: 212px;
  margin-top: 6px;
  border: 0;
  cursor: pointer;
}

.a-contact-form-status {
  padding-left: 16px;
  border-left: 2px solid var(--blue);
  color: rgb(8 27 51 / 70%);
  font-size: 0.86rem;
  line-height: 1.5;
}

.a-contact-process {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: linear-gradient(155deg, rgb(8 102 255 / 7%), transparent 58%);
}

.a-contact-process article {
  position: relative;
  display: grid;
  min-height: 0;
  align-content: center;
  padding: clamp(28px, 3vw, 44px);
}

.a-contact-process article + article {
  border-top: 1px solid var(--line);
}

.a-contact-process article > i {
  position: absolute;
  top: 0;
  left: clamp(28px, 3vw, 44px);
  width: 48px;
  height: 2px;
  background: var(--orange);
}

.a-contact-process h2 {
  margin-top: 18px;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.a-contact-process p {
  max-width: 34rem;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.a-site-footer {
  border-top: 1px solid var(--line);
  background: #06172d;
}

.a-site-footer-inner {
  position: relative;
  display: grid;
  min-height: 210px;
  grid-template-columns: minmax(180px, 0.75fr) minmax(420px, 1.5fr) minmax(180px, 0.75fr);
  align-items: center;
  gap: 48px;
  padding-block: 48px;
}

.a-site-footer-brand {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
}

.a-site-footer-brand img {
  width: 150px;
  height: auto;
}

.a-site-footer-legal {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.a-site-footer-legal > p {
  margin-bottom: 18px;
  color: rgb(234 243 255 / 50%);
  font-size: 0.7rem;
  font-weight: 680;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.a-site-footer-legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}

.a-site-footer-legal a,
.a-site-footer-contact {
  color: var(--ice);
  font-size: 0.82rem;
  transition: color 180ms ease;
}

.a-site-footer-legal a:hover,
.a-site-footer-contact:hover {
  color: var(--orange);
}

.a-site-footer-contact {
  justify-self: end;
  margin-right: 110px;
  color: rgb(234 243 255 / 72%);
}

.a-site-footer-actions {
  position: absolute;
  top: 50%;
  right: 0;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.a-site-footer-action {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(8 102 255 / 72%);
  border-radius: 8px;
  background: rgb(8 102 255 / 20%);
  box-shadow: 0 10px 24px rgb(0 0 0 / 18%);
  color: var(--ice);
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.a-site-footer-action:hover {
  border-color: var(--blue);
  background: var(--blue);
  transform: translateY(-2px);
}

.a-site-footer-action:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.a-site-footer-action svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.a-site-footer-action:first-child svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

@media (max-width: 1100px) {
  .a-contact-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    gap: 54px;
  }

  .a-contact-heading h1 {
    font-size: clamp(4rem, 7.4vw, 6rem);
  }

  .a-contact-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  }

  .a-contact-form {
    padding: 42px;
  }
}

@media (max-width: 920px) {
  .a-contact-hero-inner,
  .a-contact-layout {
    grid-template-columns: 1fr;
  }

  .a-contact-hero-inner {
    align-content: center;
    gap: 34px;
  }

  .a-contact-heading h1 {
    max-width: 12ch;
  }

  .a-contact-heading::after {
    margin-top: 36px;
  }

  .a-contact-intro {
    padding-bottom: 0;
  }

  .a-contact-process {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: none;
  }

  .a-contact-process article + article {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .a-site-footer-inner {
    grid-template-columns: 160px 1fr;
  }

  .a-site-footer-legal {
    padding-right: 80px;
  }

  .a-site-footer-legal > p,
  .a-site-footer-legal nav {
    width: fit-content;
  }

  .a-site-footer-contact {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .a-contact-hero {
    min-height: max(690px, calc(100svh - var(--header-height)));
  }

  .a-contact-hero-inner {
    gap: 34px;
    padding-block: 72px;
  }

  .a-contact-heading h1 {
    max-width: 10ch;
    margin-top: 20px;
    font-size: clamp(3.2rem, 14vw, 4rem);
    line-height: 0.94;
  }

  .a-contact-heading::after {
    margin-top: 30px;
  }

  .a-contact-intro {
    gap: 18px;
  }

  .a-contact-intro p {
    font-size: 1rem;
    line-height: 1.62;
  }

  .a-contact-form-section {
    min-height: auto;
    padding-block: 68px;
  }

  .a-contact-form {
    gap: 22px;
    padding: 34px 22px;
    border-radius: 18px;
  }

  .a-contact-form-grid {
    grid-template-columns: 1fr;
  }

  .a-contact-form input,
  .a-contact-form textarea {
    font-size: 16px;
  }

  .a-contact-submit {
    width: 100%;
  }

  .a-contact-process {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .a-contact-process article {
    min-height: 250px;
    padding: 34px 22px;
  }

  .a-contact-process article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .a-contact-process article > i {
    left: 22px;
  }

  .a-site-footer-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 46px;
  }

  .a-site-footer-legal {
    padding-top: 26px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .a-site-footer-legal nav {
    display: grid;
    gap: 18px;
  }

  .a-site-footer-contact {
    grid-column: 1;
    margin-right: 0;
  }

  .a-site-footer-actions {
    top: auto;
    bottom: 76px;
    transform: none;
  }
}

@media (max-width: 380px) {
  .a-contact-heading h1 {
    font-size: 3rem;
  }
}