@font-face {
  font-family: "Open Sauce Sans";
  src: url("/assets/fonts/open-sauce-sans-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "Open Sauce Sans", Arial, sans-serif;
  font-synthesis: none;
  color: #e0eae9;
  background: #e0eae9;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.landing {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  min-height: 420px;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #e0eae9;
}

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

.scene__media, .scene__veil, .scene__texture {
  position: absolute;
  inset: 0;
}

.scene__media {
  background: url("/assets/backdrop-poster.jpg") center / cover no-repeat;
  opacity: .53;
}

.scene__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease;
}

.scene__video.is-playing { opacity: 1; }

.scene__veil {
  background: #191c2729;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.scene__texture {
  background: url("/assets/dot-texture.svg") center / cover no-repeat;
  -webkit-mask-image: radial-gradient(50% 50%, #000 0%, #0000 83.4304%);
  mask-image: radial-gradient(50% 50%, #000 0%, #0000 83.4304%);
}

.scene__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2357px;
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%);
  opacity: .24;
}

.brand {
  position: absolute;
  top: 60px;
  left: 50%;
  display: block;
  width: 57px;
  height: 90px;
  transform: translateX(-50%);
}

.brand img { display: block; width: 100%; height: 100%; }

.hero-title {
  width: 320px;
  max-width: calc(100% - 40px);
  margin: 0;
  font-size: 44px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

.footer {
  position: absolute;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}

.footer small {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: -.02em;
  opacity: .9;
}

.contact-link {
  min-height: 24px;
  padding: 4px 7px;
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
  text-underline-offset: 4px;
  opacity: .8;
  transition: opacity .15s ease;
}

.contact-link:hover, .contact-link:focus-visible { opacity: 1; text-decoration: underline; }

.contact-dialog {
  width: min(460px, calc(100% - 40px));
  max-height: calc(100vh - 40px);
  max-height: calc(100svh - 40px);
  margin: auto;
  padding: 34px 30px 26px;
  overflow: auto;
  border: 1px solid #ffffff80;
  border-radius: 8px;
  color: #30434b;
  background: #e7ededf2;
  box-shadow: 0 18px 70px #1d2b332b;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.contact-dialog::backdrop { background: #24313d59; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
body.dialog-open { overflow: hidden; }

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: #52636a;
  background: transparent;
}

.dialog-close:hover { background: #52636a0d; }
.contact-dialog h2 { margin: 0 20px 12px 0; font-size: 23px; font-weight: 400; line-height: 1.3; }
.contact-intro { margin: 0 0 24px; color: #53646b; font-size: 13px; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; min-width: 0; }
.form-field label { font-size: 12px; line-height: 1.5; }
.optional { opacity: .72; }

.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #74868c59;
  border-radius: 4px;
  color: #263e47;
  background: #ffffff45;
  font-size: 14px;
  line-height: 1.5;
}

.form-field textarea { min-height: 100px; resize: vertical; }
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible { outline-offset: 2px; }
.honeypot { display: none; }
.form-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

.send-button, .home-link {
  padding: 11px 17px;
  border: 1px solid #52666e;
  border-radius: 4px;
  color: #f3f6f5;
  background: #52666e;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
}

.send-button:hover, .home-link:hover { background: #415962; }
.send-button:disabled { opacity: .65; }
.form-status { min-height: 18px; margin: 0; font-size: 12px; line-height: 1.5; }
.form-status[data-state="error"] { color: #913f3f; }
.form-status[data-state="success"] { color: #2c6251; }
.not-found { width: min(480px, calc(100% - 40px)); text-align: center; }
.not-found h1 { margin: 0 0 15px; font-size: 36px; font-weight: 400; }
.not-found p { margin: 0 0 28px; font-size: 14px; line-height: 1.6; }

@media (max-width: 1199px) { .scene__watermark { width: 1595px; } }

@media (max-width: 809px) {
  .scene__watermark { width: 1049px; }
  .hero-title { width: 290px; font-size: 36px; }
}

@media (max-width: 430px) {
  .contact-dialog { padding: 32px 22px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-field input, .form-field select, .form-field textarea { font-size: 16px; }
}

@media (max-height: 560px) {
  .landing { min-height: 360px; }
  .brand { top: 25px; width: 44px; height: 70px; }
  .footer { bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .scene__video { display: none; }
}
