/* Project enquiry dialog. All rules stay scoped to the popup. */
.project-dialog {
  position: fixed;
  inset: 0;
  width: min(460px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 1px solid #dfd2ed;
  border-radius: 26px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 28px 90px #21093238;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c5b3d3 transparent;
}
.project-dialog::backdrop {
  background: #210b34a3;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.project-dialog[open] {
  animation: project-dialog-enter 220ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.project-dialog-inner {
  padding: 0 22px max(22px, env(safe-area-inset-bottom));
}
.project-dialog-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  margin: 0 -22px;
  padding: 9px 12px 9px 22px;
  border-bottom: 1px solid transparent;
  background: var(--paper);
}
.project-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.025em;
  line-height: 1.3;
}
.project-kicker::before {
  content: "";
  flex: 0 0 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 1px #29073e12;
}
.project-dialog .project-close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background 160ms ease;
}
.project-close svg {
  width: 20px;
  height: 20px;
}
.project-dialog .project-close:hover {
  background: #eee7ff;
}
.project-dialog .project-close:focus-visible {
  outline: 2px solid #8051c0;
  outline-offset: 0;
}
.project-intro h2 {
  max-width: 350px;
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.12;
  text-wrap: balance;
}
.project-intro h2 span {
  color: #754293;
}
.project-intro p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.project-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.project-field {
  min-width: 0;
}
.project-field label {
  display: block;
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.project-field .project-optional {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
}
.project-field input,
.project-field select,
.project-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #dfd2ed;
  border-radius: 12px;
  outline: 0;
  background: #fffefa;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.025em;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.project-field input::placeholder,
.project-field textarea::placeholder {
  color: #8a7a91;
  opacity: 1;
}
.project-field input:hover,
.project-field select:hover,
.project-field textarea:hover {
  border-color: #b6a0c8;
}
.project-field input:focus,
.project-field select:focus,
.project-field textarea:focus {
  border-color: #8051a8;
  box-shadow: 0 0 0 3px #8051c01a;
  background: #fff;
}
.project-field [aria-invalid="true"] {
  border-color: #b74747;
  background: #fffafa;
}
.project-field [aria-invalid="true"]:focus {
  border-color: #b74747;
  box-shadow: 0 0 0 3px #b747471a;
}
.project-select {
  position: relative;
}
.project-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}
.project-field select:required:invalid {
  color: #8a7a91;
}
.project-field select option {
  color: var(--ink);
  background: #fffefa;
}
.project-select > svg {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--ink);
}
.project-field textarea {
  min-height: 84px;
  resize: vertical;
  font-size: 16px;
  line-height: 1.4;
}
.project-error {
  display: block;
  margin-top: 5px;
  color: #a73535;
  font-size: 11px;
  line-height: 1.4;
}
.project-form-status {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #dacbea;
  border-radius: 12px;
  background: #eee7ff;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}
.project-dialog .project-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 3px;
  padding: 6px 7px 6px 19px;
  border-radius: 15px;
  font-size: 16px;
}
.project-submit .button-arrow {
  width: 38px;
  height: 38px;
  font-size: 25px;
}
.project-dialog .project-submit:focus-visible {
  outline: 3px solid #8051c0;
  outline-offset: 3px;
}
.project-dialog .project-submit:disabled {
  opacity: 0.6;
}
@keyframes project-dialog-enter {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 359px) {
  .project-dialog {
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 22px;
  }
  .project-dialog-inner {
    padding-inline: 18px;
  }
  .project-dialog-top {
    margin-inline: -18px;
    padding-left: 18px;
  }
  .project-intro h2 {
    font-size: 24px;
  }
  .project-field input,
  .project-field select,
  .project-field textarea {
    padding-left: 11px;
  }
}
@media (min-width: 768px) {
  .project-dialog {
    width: min(560px, calc(100% - 40px));
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    border-radius: 28px;
  }
  .project-dialog-inner {
    padding-inline: 30px;
    padding-bottom: 30px;
  }
  .project-dialog-top {
    margin-inline: -30px;
    padding: 12px 16px 10px 30px;
  }
  .project-kicker {
    font-size: 12px;
  }
  .project-intro h2 {
    max-width: none;
    font-family: var(--font-display, Inter, Arial, sans-serif);
    font-size: 29px;
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.17;
  }
  .project-intro p {
    font-size: 14px;
    line-height: 1.5;
  }
  .project-field label {
    font-size: 13px;
  }
  .project-field .project-optional {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .project-dialog[open] {
    animation: none;
  }
  .project-dialog .project-close,
  .project-dialog .project-submit,
  .project-field input,
  .project-field select,
  .project-field textarea {
    transition: none;
  }
}

/* Confirmation screen inside the project enquiry dialog. */
.project-success {
  min-width: 0;
  padding-top: 5px;
}
.project-success-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border: 1.5px solid var(--ink);
  border-radius: 17px;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}
.project-success-icon svg {
  width: 28px;
  height: 28px;
}
.project-success h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.15;
  text-wrap: balance;
}
.project-success h2:focus {
  outline: none;
}
.project-success > p {
  max-width: 390px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.project-success-contact {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid #dfd2ed;
  border-radius: 16px;
  background: #f2edfa;
}
.project-success-contact h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.015em;
}
.project-success-contact > p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.project-messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}
.project-dialog .project-messenger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #d5c4e4;
  border-radius: 10px;
  background: #fffefa;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.015em;
  text-decoration: none;
}
.project-dialog .project-messenger:not(:disabled):not(.disabled):hover {
  border-color: #8051a8;
  background: #fff;
}
.project-dialog .project-messenger:focus-visible {
  outline: 2px solid #8051c0;
  outline-offset: 3px;
}
.project-dialog .project-messenger:disabled,
.project-dialog .project-messenger.disabled {
  opacity: 0.65;
  cursor: default;
}
.project-dialog .project-done {
  width: 100%;
  min-height: 54px;
  margin-top: 24px;
  padding: 6px 7px 6px 19px;
  border-radius: 15px;
  font-size: 16px;
}
.project-done .button-arrow {
  width: 38px;
  height: 38px;
  font-size: 25px;
}
.project-dialog .project-done:focus-visible {
  outline: 3px solid #8051c0;
  outline-offset: 3px;
}
@media (max-width: 359px) {
  .project-success h2 {
    font-size: 26px;
  }
  .project-success-contact {
    padding: 14px;
  }
  .project-dialog .project-messenger {
    flex: 1 1 100px;
    padding-inline: 9px;
  }
}
@media (min-width: 768px) {
  .project-success {
    padding-top: 10px;
  }
  .project-success h2 {
    font-family: var(--font-display, Inter, Arial, sans-serif);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.2;
  }
  .project-success > p {
    font-size: 16px;
  }
  .project-success-contact {
    padding: 18px;
  }
  .project-success-contact h3 {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .project-dialog .project-done {
    transition: none;
  }
}

/* Delivery state and an offscreen field for automated submissions. */
.project-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.project-form-status[data-state="error"] {
  border-color: #e3bcbc;
  background: #fffafa;
}
.project-form-status a {
  color: inherit;
  white-space: nowrap;
}
.project-form-status:focus {
  outline: 2px solid #8051c0;
  outline-offset: 3px;
}
.project-dialog .project-submit:disabled,
.project-field :disabled {
  cursor: wait;
}
