.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("./assets/fonts/golos-text-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("./assets/fonts/golos-text-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/cormorant-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/cormorant-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --background: #06080d;
  --foreground: #f3ede2;
  --muted: rgb(243 237 226 / 75%);
  --error: #ffc7b6;
  --font-body: "Golos Text", sans-serif;
  --font-heading: "Cormorant", Georgia, serif;
  --scene-shade: linear-gradient(180deg, rgb(6 8 13 / 35%) 0%, transparent 24%, transparent 46%, rgb(6 8 13 / 50%) 70%, rgb(6 8 13 / 75%) 100%);
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  background: var(--background);
  -webkit-text-size-adjust: 100%;
}

/* Let the browser reveal inputs freely while the on-screen keyboard is open. */
html:has(.lead-form input:focus) {
  scroll-snap-type: none;
}

body {
  margin: 0;
  min-width: 280px;
  min-height: 100svh;
  font-family: var(--font-body);
  color: var(--foreground);
  background: var(--background);
}

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button,
a {
  touch-action: manipulation;
}

img,
svg {
  display: block;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 5px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--background);
  background: var(--foreground);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.ambient-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100lvh;
  object-fit: cover;
  filter: blur(42px) brightness(0.5);
  transform: scale(1.15);
  pointer-events: none;
}

.taplink {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-inline: auto;
}

.hero,
.request-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero {
  /* A stable document position lets snapping return to the cover. */
  position: relative;
  z-index: 0;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  container-type: inline-size;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  /* Preserve the supplied taplink composition at every screen width. */
  object-fit: fill;
}

.hero__shade {
  background: var(--scene-shade);
}

.hero__logo {
  position: absolute;
  top: 14%;
  left: 50%;
  width: 46%;
  height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 2px 6px rgb(6 8 13 / 90%)) drop-shadow(0 6px 28px rgb(6 8 13 / 70%)) drop-shadow(0 0 34px rgb(243 237 226 / 28%));
}

.hero__title {
  position: absolute;
  top: 58%;
  left: 7%;
  max-width: 86%;
  margin: 0;
  font-size: 4.4cqw;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgb(6 8 13 / 55%);
}

.hero__location {
  position: absolute;
  top: 76.5%;
  left: 7%;
  display: flex;
  align-items: center;
  gap: 3cqw;
  margin: 0;
  font-size: 4cqw;
  line-height: 1.5;
  text-shadow: 0 2px 16px rgb(6 8 13 / 50%);
}

.hero__location svg {
  width: 4.6cqw;
  height: auto;
  flex-shrink: 0;
}

.hero__cta {
  position: absolute;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 12px 24px 6px;
  border-radius: 12px;
  transform: translateX(-50%);
  color: rgb(243 237 226 / 85%);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.hero__arrow {
  color: var(--foreground);
  animation: arrow-float 2.2s ease-in-out infinite;
}

.request-section {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 40px max(24px, env(safe-area-inset-right)) max(44px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  border-top: 1px solid rgb(243 237 226 / 18%);
  border-radius: 28px 28px 0 0;
  background: #0a0e16;
  box-shadow: 0 -30px 80px rgb(0 0 0 / 45%);
}

/* WebKit needs an explicit end point to keep the bottom of tall forms reachable. */
.request-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 1px;
  scroll-snap-align: end;
  pointer-events: none;
}

/* An explicit image layer keeps the form backdrop consistent in WebKit. */
.request-section__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.request-section__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  filter: blur(26px);
  transform: scale(1.15);
}

.request-section__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgb(10 14 22 / 45%), rgb(10 14 22 / 45%)), var(--scene-shade);
}

.request-section:focus {
  outline: none;
}

.glass-card {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  padding: 32px 24px 28px;
  border: 1px solid rgb(243 237 226 / 22%);
  border-radius: 24px;
  background: rgb(14 20 32 / 38%);
  box-shadow: 0 24px 60px rgb(0 0 0 / 35%);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.glass-card__title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  overflow-wrap: anywhere;
}

.glass-card__description {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.lead-form fieldset {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-field input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 15px 18px;
  border: 1px solid rgb(243 237 226 / 25%);
  border-radius: 14px;
  outline: none;
  background: rgb(243 237 226 / 8%);
  color: var(--foreground);
  font-size: 16px;
  line-height: 1.25;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.form-field input::placeholder {
  color: rgb(243 237 226 / 50%);
  opacity: 1;
}

.form-field input:focus {
  border-color: rgb(243 237 226 / 70%);
  background: rgb(243 237 226 / 12%);
  box-shadow: 0 0 0 2px rgb(243 237 226 / 10%);
}

.form-field input[aria-invalid="true"] {
  border-color: var(--error);
}

.form-field input:-webkit-autofill {
  -webkit-text-fill-color: var(--foreground);
  -webkit-box-shadow: 0 0 0 1000px #242b36 inset;
  caret-color: var(--foreground);
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 6px;
  padding: 16px 18px;
  border: 0;
  border-radius: 14px;
  background: var(--foreground);
  color: #131a26;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.submit-button:active:not(:disabled) {
  transform: scale(0.98);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.submit-button__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgb(19 26 38 / 25%);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.lead-form[aria-busy="true"] .submit-button__spinner {
  display: block;
}

.field-error,
.form-feedback {
  margin: 8px 0 0;
  color: var(--error);
  font-size: 12px;
  line-height: 1.5;
}

.form-feedback {
  margin-top: 12px;
}

.consent-note {
  margin: 12px 0 0;
  color: rgb(243 237 226 / 62%);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.consent-note a {
  text-underline-offset: 3px;
}

.success-message {
  padding: 24px 0;
  text-align: center;
}

.success-message .glass-card__title {
  margin-bottom: 10px;
}

.success-message p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.contact-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 16px;
  color: rgb(243 237 226 / 60%);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.contact-divider::before,
.contact-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgb(243 237 226 / 20%);
}

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

.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 10px;
  border: 1px solid rgb(243 237 226 / 25%);
  border-radius: 14px;
  background: rgb(243 237 226 / 8%);
  font-size: 13px;
  line-height: 20px;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.contact-link svg {
  flex-shrink: 0;
}

.contact-link[aria-disabled="true"] {
  color: rgb(243 237 226 / 50%);
  cursor: not-allowed;
}

.page-footer {
  margin: 22px 0 0;
  color: rgb(243 237 226 / 60%);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(6 8 13 / 55%);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  pointer-events: none;
  animation: loader-dismiss 700ms ease 2400ms forwards;
}

.page-loader__logo {
  position: relative;
  width: min(46vw, 210px);
}

.page-loader__logo img {
  width: 100%;
  height: auto;
}

.page-loader__base {
  filter: grayscale(1) brightness(0.65) opacity(0.4);
}

.page-loader__fill {
  position: absolute;
  inset: 0;
  animation: logo-fill 2.2s ease-in-out forwards;
}

@keyframes arrow-float {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(10px); opacity: 0.5; }
}

@keyframes logo-fill {
  from { clip-path: inset(100% 0 0); }
  to { clip-path: inset(0); }
}

@keyframes loader-dismiss {
  to { opacity: 0; visibility: hidden; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (hover: hover) {
  .hero__cta:hover { color: #fff; }
  .submit-button:hover:not(:disabled) { background: #fff; }
  .contact-link[href]:hover {
    border-color: rgb(243 237 226 / 40%);
    background: rgb(243 237 226 / 16%);
  }
}

@media (max-width: 374px) {
  .request-section { padding-inline: 16px; }
  .glass-card { padding-inline: 18px; }
  .contact-link { gap: 7px; padding-inline: 6px; font-size: 12px; }
  .contact-link svg { width: 18px; height: 18px; }
  .page-footer { font-size: 10px; letter-spacing: 0.14em; }
}

@media (max-width: 319px) {
  .contact-grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 13px; }
  .hero__location { font-size: 13px; }
}

@media (max-height: 740px) and (min-width: 600px) {
  .hero { min-height: 720px; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-card { background: rgb(14 20 32 / 90%); }
}

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