:root {
  --bg: #05070d;
  --text: rgba(175, 188, 205, 0.78);
  --text-active: rgba(220, 228, 238, 0.94);
  --text-faint: rgba(130, 145, 162, 0.48);
  --glow: rgba(140, 190, 255, 0.55);
  --glow-soft: rgba(140, 190, 255, 0.18);
  --glow-line: rgba(140, 190, 255, 0.38);
  --input-bg: rgba(5, 10, 20, 0.55);
  --font: "Inter", system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: none;
  touch-action: none;
}

.interface {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 2.25rem);
  border-bottom: 1px solid rgba(140, 190, 255, 0.1);
  background: linear-gradient(
    to bottom,
    rgba(5, 7, 13, 0.92) 0%,
    rgba(5, 7, 13, 0.55) 70%,
    rgba(5, 7, 13, 0) 100%
  );
  pointer-events: none;
}

.site-brand {
  color: var(--text-active);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  pointer-events: auto;
  cursor: none;
  transition: color 0.4s ease;
}

.site-brand:hover {
  color: rgba(220, 235, 255, 1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.75rem);
}

.site-nav__link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: auto;
  cursor: none;
  transition: color 0.4s ease;
}

.site-nav__link:hover {
  color: var(--text-active);
}

.site-footer {
  position: absolute;
  transform: translate(0.45rem, -50%);
  pointer-events: none;
  z-index: 2;
}

.site-footer__copy {
  margin: 0;
  overflow: hidden;
  max-width: 0.35rem;
  white-space: nowrap;
  transition: max-width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-footer.is-unrolled .site-footer__copy {
  max-width: 22rem;
}

.site-footer__roll {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text);
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 0.45s ease 0.08s,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.08s;
}

.site-footer.is-unrolled .site-footer__roll {
  opacity: 1;
  transform: translateX(0);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  background: rgba(5, 7, 13, 0.55);
  backdrop-filter: blur(8px);
  cursor: auto;
}

.modal[hidden] {
  display: none !important;
}

.modal__panel {
  position: relative;
  width: min(28rem, 88vw);
  padding: 2rem;
  border: 1px solid var(--glow-line);
  background: rgba(8, 14, 24, 0.82);
  box-shadow:
    0 0 0 1px rgba(140, 190, 255, 0.08),
    0 0 40px rgba(140, 190, 255, 0.12),
    inset 0 0 30px rgba(140, 190, 255, 0.04);
  animation: modal-enter 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal__panel--wide {
  width: min(32rem, 88vw);
}

.modal__dismiss {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid var(--glow-line);
  border-radius: 50%;
  background: rgba(140, 190, 255, 0.06);
  color: var(--text-active);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.modal__dismiss:hover {
  background: rgba(140, 190, 255, 0.14);
  box-shadow: 0 0 12px rgba(140, 190, 255, 0.2);
}

.modal__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(160, 195, 235, 0.72);
}

.modal__text {
  margin: 0;
  line-height: 1.7;
  color: var(--text);
}

.modal__links {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.modal__links--dual {
  justify-content: space-between;
}

.modal__link {
  display: inline-block;
  margin-top: 0;
  color: rgba(175, 205, 240, 0.9);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--glow-line);
  transition:
    color 0.35s ease,
    border-color 0.35s ease;
}

.modal__link[hidden] {
  display: none !important;
}

.modal__link:hover {
  color: var(--text-active);
  border-bottom-color: rgba(140, 190, 255, 0.62);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-form__field--full {
  grid-column: 1 / -1;
}

.contact-form__label {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(150, 180, 220, 0.55);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--glow-line);
  border-radius: 0;
  background: var(--input-bg);
  color: var(--text-active);
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(140, 190, 255, 0.62);
  box-shadow: 0 0 0 1px rgba(140, 190, 255, 0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 5.5rem;
}

.contact-form__submit {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 0.5rem 1rem;
  border: 1px solid var(--glow-line);
  background: rgba(140, 190, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.contact-form__submit:hover {
  color: var(--text-active);
  border-color: rgba(140, 190, 255, 0.62);
  box-shadow: 0 0 14px rgba(140, 190, 255, 0.16);
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fallback {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  padding: 2rem;
  background: var(--bg);
  overflow: auto;
  cursor: auto;
}

.fallback__header {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.fallback__header a,
.fallback__header button {
  color: var(--text);
  text-decoration: none;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.fallback__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

.fallback__nav a,
.fallback__nav button {
  color: var(--text-active);
  text-decoration: none;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

.fallback__nav span {
  color: var(--text-faint);
}

.fallback__copy {
  font-size: 0.72rem;
  color: var(--text-faint);
}

@media (prefers-reduced-motion: reduce) {
  #field,
  .interface {
    display: none;
  }

  .fallback {
    display: block;
  }

  .modal__panel {
    animation: none;
  }
}

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