@font-face {
  font-family: "Melodrama";
  src: url("../fonts/Melodrama-Variable.woff2") format("woff2"),
    url("../fonts/Melodrama-Variable.woff") format("woff");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Variable.woff2") format("woff2"),
    url("../fonts/Satoshi-Variable.woff") format("woff");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --white: #f5f8ff;
  --blue: #58b8ff;
  --muted: rgba(200, 215, 236, 0.62);
  --ink: rgba(214, 226, 240, 0.88);
  --dim: rgba(148, 170, 196, 0.55);
  --bg: #010207;
  --page-inline: clamp(1.25rem, 3.5vw, 2.75rem);
  --line: rgba(160, 190, 220, 0.28);
  --line-focus: rgba(88, 184, 255, 0.78);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100%;
  color: var(--white);
  background: var(--bg);
  font-family: "Satoshi", sans-serif;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}

::selection {
  color: #f4f9ff;
  background: #1a4f86;
}

::-moz-selection {
  color: #f4f9ff;
  background: #1a4f86;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 52% 38% at 50% 14%,
      rgba(37, 75, 124, 0.2),
      rgba(37, 75, 124, 0.08) 42%,
      transparent 78%
    ),
    radial-gradient(
      ellipse 75% 48% at 50% 88%,
      rgba(7, 37, 74, 0.22),
      rgba(7, 37, 74, 0.08) 48%,
      transparent 78%
    ),
    linear-gradient(180deg, #010206 0%, #02050a 55%, #010206 100%);
}

.atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.028;
  background-image: radial-gradient(
    circle,
    rgba(152, 193, 230, 0.32) 0 0.45px,
    transparent 0.7px
  );
  background-size: 42px 42px;
  mask-image: radial-gradient(
    ellipse 80% 66% at 50% 40%,
    #000 0%,
    rgba(0, 0, 0, 0.4) 34%,
    transparent 76%
  );
}

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem var(--page-inline);
  pointer-events: none;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5.75rem;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(1, 2, 7, 0.78) 0%,
    rgba(1, 2, 7, 0.42) 48%,
    rgba(1, 2, 7, 0) 100%
  );
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  mask-image: linear-gradient(180deg, #000 0%, #000 42%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 42%, transparent 100%);
}

.brand-mark {
  position: relative;
  z-index: 2;
  color: rgba(236, 245, 255, 0.92);
  font-family: "Melodrama", serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  text-shadow: 0 0 18px rgba(94, 190, 255, 0.28);
  pointer-events: auto;
}

.site-nav {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.site-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.65rem;
}

.site-links a {
  position: relative;
  color: rgba(199, 215, 233, 0.58);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 220ms ease, text-shadow 220ms ease;
}

.site-links a[aria-current="page"],
.site-links a:hover,
.site-links a:focus-visible {
  color: rgba(239, 248, 255, 0.94);
  text-shadow: 0 0 14px rgba(94, 190, 255, 0.46);
  outline: none;
}

.site-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35em;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(121, 203, 255, 0.8), transparent);
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: left center;
  transition: opacity 220ms ease, transform 220ms ease;
}

.site-links a:hover::after,
.site-links a:focus-visible::after,
.site-links a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
}

.contact {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(6.5rem, 12vh, 8.5rem) var(--page-inline) 4rem;
}

.contact__eyebrow {
  margin-bottom: 0.85rem;
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact__title {
  max-width: 9em;
  margin-bottom: 1.15rem;
  color: rgba(244, 248, 255, 0.96);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.contact__lede {
  max-width: 28rem;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.7;
}

.contact-form {
  display: grid;
  gap: 1.85rem;
  padding-top: 0.35rem;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.field {
  display: grid;
  gap: 0.7rem;
}

.field__label {
  color: rgba(220, 232, 246, 0.72);
  font-size: 0.68rem;
  font-weight: 550;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field__input {
  width: 100%;
  padding: 0.15rem 0 0.85rem;
  color: rgba(240, 246, 255, 0.94);
  font: inherit;
  font-size: 1.02rem;
  line-height: 1.4;
  background: transparent;
  border: 0;
  border-bottom: 1px dashed var(--line);
  border-radius: 0;
  outline: none;
  transition: border-color 200ms ease, color 200ms ease;
}

.field__input::placeholder {
  color: rgba(150, 170, 195, 0.38);
}

.field__input:hover {
  border-bottom-color: rgba(160, 190, 220, 0.45);
}

.field__input:focus {
  border-bottom-color: var(--line-focus);
  border-bottom-style: solid;
}

.field__textarea {
  min-height: 7.5rem;
  resize: vertical;
  line-height: 1.55;
}

.field--message .field__input {
  padding-bottom: 1rem;
}

.contact-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 0.35rem;
}

.contact-form__status {
  flex: 1;
  min-height: 1.35em;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.contact-form__status.is-error {
  color: rgba(255, 170, 170, 0.9);
}

.contact-form__status.is-success {
  color: rgba(170, 220, 255, 0.92);
}

.submit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  padding: 0;
  color: var(--blue);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 550;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 180ms ease, text-shadow 180ms ease, opacity 180ms ease;
}

.submit-link span {
  font-size: 1.05em;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.submit-link:hover,
.submit-link:focus-visible {
  color: #9fd4ff;
  text-shadow: 0 0 14px rgba(88, 184, 255, 0.4);
  outline: none;
}

.submit-link:hover span,
.submit-link:focus-visible span {
  transform: translateX(3px);
}

.submit-link:disabled {
  opacity: 0.45;
  cursor: wait;
  text-shadow: none;
}

.field.is-invalid .field__input {
  border-bottom-color: rgba(255, 140, 140, 0.65);
  border-bottom-style: solid;
}

@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    padding-top: 6.5rem;
  }

  .contact__title {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 2;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 7px;
    width: 40px;
    height: 40px;
    padding: 0 9px;
    background: rgba(4, 13, 24, 0.28);
    border: 1px solid rgba(132, 190, 231, 0.12);
    border-radius: 4px;
    backdrop-filter: blur(12px);
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    height: 1.5px;
    background: rgba(230, 243, 252, 0.9);
    box-shadow: 0 0 7px rgba(93, 188, 255, 0.4);
    border-radius: 1px;
    transform-origin: center;
    transition:
      transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
      width 280ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .menu-toggle span:first-child {
    width: 20px;
  }

  .menu-toggle span:last-child {
    width: 13px;
  }

  .site-nav.is-open .menu-toggle span:first-child {
    width: 18px;
    transform: translateY(4.25px) rotate(45deg);
  }

  .site-nav.is-open .menu-toggle span:last-child {
    width: 18px;
    transform: translateY(-4.25px) rotate(-45deg);
  }

  .site-links {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 156px;
    padding: 0.95rem 1rem;
    gap: 1rem;
    background: rgba(5, 16, 28, 0.92);
    border: 1px solid rgba(111, 182, 232, 0.16);
    border-radius: 4px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 240ms ease,
      visibility 240ms ease,
      transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .site-nav.is-open .site-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-links a::after {
    display: none;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
    gap: 1.85rem;
  }

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

  .submit-link {
    align-self: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle span,
  .site-links,
  .submit-link span {
    transition-duration: 0.01ms !important;
  }
}
