/* Original contact experience restored from the 15 July version. */
body.modal-open { overflow: hidden; }

.contact-modal {
  position: fixed;
  inset: 0;
  width: min(1120px, calc(100% - 32px));
  height: min(760px, calc(100dvh - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: var(--white);
  background: #0a1015;
  border: 1px solid rgba(255, 253, 250, 0.18);
  border-radius: 16px;
  box-shadow: 0 40px 140px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(98, 224, 210, 0.08);
}

.contact-modal::backdrop {
  background: radial-gradient(circle at 18% 20%, rgba(38, 127, 120, 0.3), transparent 34rem), radial-gradient(circle at 86% 82%, rgba(75, 125, 255, 0.2), transparent 32rem), rgba(2, 5, 8, 0.82);
  backdrop-filter: blur(14px) saturate(0.8);
}

.contact-modal[open] { animation: contact-modal-in 460ms cubic-bezier(0.16, 1, 0.3, 1) both; }

@keyframes contact-modal-in {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.contact-modal-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.4fr);
  height: 100%;
  min-height: 0;
}

.contact-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--white);
  background: rgba(255, 253, 250, 0.07);
  border: 1px solid rgba(255, 253, 250, 0.14);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.contact-modal-close:hover {
  transform: rotate(90deg);
  background: rgba(98, 224, 210, 0.12);
  border-color: rgba(98, 224, 210, 0.52);
}

.contact-modal-close svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.contact-modal-visual {
  position: relative;
  display: flex;
  min-height: 100%;
  padding: 42px;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(38, 127, 120, 0.42), transparent 48%), linear-gradient(330deg, rgba(75, 125, 255, 0.24), transparent 54%), #071015;
  border-right: 1px solid rgba(255, 253, 250, 0.11);
}

.contact-modal-grid {
  position: absolute;
  inset: 0;
  opacity: 0.48;
  background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.contact-modal-signal {
  position: absolute;
  top: 44%;
  left: 50%;
  width: 270px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.contact-modal-signal > span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(98, 224, 210, 0.32);
  border-radius: 50%;
  animation: contact-pulse 3.6s ease-out infinite;
}

.contact-modal-signal > span:nth-child(2) { animation-delay: 1.2s; }
.contact-modal-signal > span:nth-child(3) { animation-delay: 2.4s; }

@keyframes contact-pulse {
  0% { opacity: 0.9; transform: scale(0.28); }
  80%, 100% { opacity: 0; transform: scale(1); }
}

.signal-core {
  position: absolute;
  inset: 50%;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  transform: translate(-50%, -50%);
  overflow: hidden;
  background: #05080d;
  border-radius: 24px;
  box-shadow: 0 0 64px rgba(98, 224, 210, 0.35);
}

.signal-core img { width: 100%; height: 100%; object-fit: cover; }

.contact-modal-visual-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
}

.contact-modal-index {
  margin-bottom: auto;
  color: rgba(255, 253, 250, 0.5);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.contact-modal-visual-copy p {
  margin: 0 0 26px;
  color: var(--white);
  font-size: clamp(1.65rem, 2.5vw, 2.45rem);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.contact-modal-availability {
  display: flex;
  gap: 9px;
  align-items: center;
  padding-top: 18px;
  color: rgba(255, 253, 250, 0.7);
  border-top: 1px solid rgba(255, 253, 250, 0.13);
  font-size: 0.79rem;
}

.contact-modal-availability i {
  width: 7px;
  height: 7px;
  background: #62e0d2;
  border-radius: 50%;
  box-shadow: 0 0 12px #62e0d2;
}

.contact-modal-content {
  min-height: 0;
  padding: clamp(32px, 4vw, 52px);
  overflow-y: auto;
  background: radial-gradient(circle at 88% 0%, rgba(75, 125, 255, 0.11), transparent 24rem), #0a1015;
  scrollbar-width: thin;
  scrollbar-color: rgba(98, 224, 210, 0.38) transparent;
}

.contact-modal-content::-webkit-scrollbar { width: 6px; }
.contact-modal-content::-webkit-scrollbar-track { background: transparent; }
.contact-modal-content::-webkit-scrollbar-thumb { background: rgba(98, 224, 210, 0.38); border-radius: 999px; }

.contact-modal-heading { margin-bottom: 24px; }
.contact-modal-heading .eyebrow { margin: 0 0 12px; color: #62e0d2; }

.contact-modal .contact-modal-heading h2 {
  max-width: none;
  margin: 0;
  color: var(--white);
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.contact-modal-heading h2 em {
  color: transparent;
  background: linear-gradient(90deg, #62e0d2, #8ca9ff);
  background-clip: text;
  -webkit-background-clip: text;
  font-style: normal;
}

.contact-modal-heading > p:last-child {
  max-width: 590px;
  margin: 14px 0 0;
  color: rgba(255, 253, 250, 0.6);
  font-size: 0.92rem;
  line-height: 1.6;
}

.contact-form, .contact-form-row { display: grid; gap: 13px; }
.contact-form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-field { position: relative; display: grid; gap: 8px; }

.contact-field > span {
  color: rgba(255, 253, 250, 0.68);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-field input, .contact-field select, .contact-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  color: var(--white);
  background: rgba(255, 253, 250, 0.055);
  border: 1px solid rgba(255, 253, 250, 0.13);
  border-radius: 8px;
  outline: none;
  font: inherit;
  font-size: 0.94rem;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.contact-field textarea { min-height: 92px; padding-top: 14px; resize: vertical; line-height: 1.5; }
.contact-field select { color: var(--white); color-scheme: dark; cursor: pointer; }
.contact-field select option { color: #fffdfa; background: #111820; }
.contact-field input::placeholder, .contact-field textarea::placeholder { color: rgba(255, 253, 250, 0.3); }

.contact-field input:focus, .contact-field select:focus, .contact-field textarea:focus {
  background: rgba(98, 224, 210, 0.055);
  border-color: rgba(98, 224, 210, 0.72);
  box-shadow: 0 0 0 4px rgba(98, 224, 210, 0.08);
}

.contact-field-message small {
  position: absolute;
  right: 12px;
  bottom: 9px;
  color: rgba(255, 253, 250, 0.33);
  font-size: 0.67rem;
}

.contact-honey { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.contact-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255, 253, 250, 0.48);
  font-size: 0.75rem;
  line-height: 1.45;
  cursor: pointer;
}

.contact-consent input { flex: 0 0 auto; width: 16px; height: 16px; margin: 1px 0 0; accent-color: #62e0d2; }

.contact-form-footer { display: flex; gap: 18px; align-items: center; justify-content: flex-end; min-height: 50px; }
.contact-form-status { flex: 1; margin: 0; color: rgba(255, 253, 250, 0.62); font-size: 0.8rem; line-height: 1.4; }
.contact-form-status.is-success { color: #78eadc; }
.contact-form-status.is-error { color: #ff9f91; }

.contact-submit {
  display: inline-flex;
  gap: 34px;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 20px;
  color: #071015;
  background: linear-gradient(105deg, #fffdfa, #62e0d2);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(38, 127, 120, 0.22);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.contact-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(98, 224, 210, 0.28); }
.contact-submit:disabled { cursor: wait; opacity: 0.62; }
.contact-submit svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 820px) {
  .contact-modal { width: min(680px, calc(100% - 20px)); height: calc(100dvh - 20px); max-height: calc(100dvh - 20px); }
  .contact-modal-shell { grid-template-columns: 1fr; height: 100%; min-height: 0; }
  .contact-modal-visual { display: none; }
  .contact-modal-content { height: 100%; max-height: none; padding: 42px 28px 28px; }
}

@media (max-width: 540px) {
  .contact-modal-heading { margin-bottom: 25px; }
  .contact-modal .contact-modal-heading h2 { font-size: 2.35rem; }
  .contact-modal-heading h2 br { display: none; }
  .contact-form-row { grid-template-columns: 1fr; }
  .contact-form-footer { align-items: stretch; flex-direction: column; }
  .contact-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-modal[open], .contact-modal-signal > span { animation: none; }
}
