:root {
  --bg: #050709;
  --panel: #0b1117;
  --ink: #f6fbff;
  --muted: #9aa9b4;
  --line: #22303a;
  --blue: #18a8d8;
  --blue-strong: #41c7ee;
  --field: #080d12;
  --error: #f0a5a5;
  --success: #8eddb7;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  width: min(100% - 40px, 980px);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 0;
}

.intro {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 32px;
  text-align: center;
}

.brand {
  display: inline-grid;
  justify-items: center;
  align-items: center;
  gap: 22px;
  color: var(--ink);
  text-decoration: none;
}

.brand-symbol {
  width: clamp(132px, 24vw, 230px);
}

.brand-symbol img {
  width: 100%;
  height: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.brand-text strong {
  font-size: clamp(42px, 9vw, 82px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.16em;
  padding-left: 0.16em;
}

.brand-text small {
  color: var(--blue-strong);
  font-size: clamp(10px, 2vw, 16px);
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: 0.14em;
  padding-left: 0.14em;
}

.contact-open {
  min-width: 156px;
  height: 48px;
  padding: 0 24px;
  color: #031018;
  background: var(--blue-strong);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.contact-open:hover,
.contact-open:focus-visible {
  background: #6fd9f4;
}

.site-year {
  margin: -12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(7px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: transparent;
  border: 1px solid #30404d;
  border-radius: 6px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: var(--blue);
  color: var(--blue-strong);
}

.contact-copy {
  max-width: 520px;
  padding-right: 44px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-strong);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 560;
  letter-spacing: 0;
}

p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

.email-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--ink);
  text-decoration-color: rgba(65, 199, 238, 0.55);
  text-underline-offset: 5px;
}

.email-link:hover,
.email-link:focus-visible {
  color: var(--blue-strong);
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  color: #dce8ee;
  font-size: 14px;
  line-height: 1.3;
}

.form-field input,
.form-field textarea {
  width: 100%;
  color: var(--ink);
  background: var(--field);
  border: 1px solid #2d3b46;
  border-radius: 6px;
  outline: none;
}

.form-field input {
  height: 46px;
  padding: 0 14px;
}

.form-field textarea {
  min-height: 132px;
  resize: vertical;
  padding: 13px 14px;
  line-height: 1.55;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24, 168, 216, 0.18);
}

.contact-captcha {
  min-height: 78px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.contact-submit {
  width: 100%;
  height: 48px;
  color: #031018;
  background: var(--blue-strong);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  background: #6fd9f4;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.contact-status {
  min-height: 24px;
  margin: 0;
  font-size: 14px;
}

.contact-status-text {
  display: none;
}

.contact-status--sending .contact-status-text--sending,
.contact-status--success .contact-status-text--success,
.contact-status--error .contact-status-text--error,
.contact-status--captcha .contact-status-text--captcha {
  display: inline;
}

.contact-status--success {
  color: var(--success);
}

.contact-status--error,
.contact-status--captcha {
  color: var(--error);
}

.contact-status--idle {
  visibility: hidden;
}

@media (max-width: 820px) {
  .page-shell {
    padding: 44px 0;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 28px, 980px);
    padding: 36px 0;
  }

  .brand {
    gap: 18px;
  }

  .brand-text strong {
    font-size: 34px;
  }

  .brand-text small {
    font-size: 9px;
  }

  .modal {
    padding: 14px;
  }

  .modal-panel {
    padding: 20px;
  }

  .contact-copy {
    padding-right: 40px;
  }

  .contact-captcha {
    transform: scale(0.89);
    transform-origin: left center;
  }
}
