.project-modal[hidden] {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

.header-cta {
  min-width: 124px;
  min-height: 46px;
  padding: 13px 20px;
  justify-content: center;
  font-size: 14px;
}

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

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 5, 17, .78);
  backdrop-filter: blur(14px);
  animation: projectBackdropIn .25s ease both;
}

.project-modal-panel {
  position: relative;
  isolation: isolate;
  width: min(940px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  padding: 44px;
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 48px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  border: 1px solid rgba(190, 139, 255, .25);
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 8% 8%, rgba(107, 76, 230, .28), transparent 34%),
    radial-gradient(circle at 94% 90%, rgba(239, 77, 131, .18), transparent 34%),
    linear-gradient(145deg, #100c1d 0%, #17102b 56%, #210f39 100%);
  box-shadow: 0 42px 110px rgba(5, 2, 15, .6), inset 0 1px 0 rgba(255, 255, 255, .08);
  animation: projectModalIn .38s cubic-bezier(.16, 1, .3, 1) both;
}

.project-modal-panel::-webkit-scrollbar {
  display: none;
}

.project-modal-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 330px;
  height: 330px;
  top: -245px;
  right: -95px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255, 255, 255, .018), 0 0 0 110px rgba(255, 255, 255, .012);
}

.project-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  color: rgba(255, 255, 255, .72);
  background: #171029;
  box-shadow: 0 0 0 7px #171029;
  font: 300 25px/1 "DM Sans", sans-serif;
  cursor: pointer;
  transition: transform .2s ease, color .2s ease, background .2s ease;
}

.project-modal-close:hover {
  color: #fff;
  background: rgba(239, 77, 131, .18);
  transform: rotate(6deg);
}

.project-modal-intro {
  align-self: center;
}

.project-modal-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d3c7ff;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 10px;
  font-weight: 700;
}

.project-modal-kicker i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4d83;
  box-shadow: 0 0 0 6px rgba(239, 77, 131, .12);
}

.project-modal-intro h2 {
  margin: 25px 0 18px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(37px, 4.3vw, 54px);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 600;
}

.project-modal-intro h2 em {
  color: #c6b6ff;
  font-style: normal;
}

.project-modal-intro > p {
  margin: 0;
  color: rgba(255, 255, 255, .58);
  font-size: 15px;
  line-height: 1.7;
}

.project-modal-trust {
  margin-top: 30px;
  display: grid;
  gap: 11px;
}

.project-modal-trust span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  font-weight: 600;
}

.project-modal-trust span::before {
  content: "✓";
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #8ce9b8;
  background: rgba(103, 230, 165, .09);
  font-size: 10px;
}

.project-form {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 20px;
  background: rgba(255, 255, 255, .055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055);
}

.project-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 15px;
}

.project-form label {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.project-form label > span {
  color: rgba(255, 255, 255, .66);
  font-size: 11px;
  font-weight: 700;
}

.project-form input,
.project-form select {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 11px;
  outline: 0;
  color: #fff;
  background: rgba(8, 6, 20, .4);
  font: 500 13px "DM Sans", sans-serif;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.project-form select {
  padding-right: 38px;
  color-scheme: dark;
  cursor: pointer;
}

.project-form input::placeholder {
  color: rgba(255, 255, 255, .3);
}

.project-form input:focus,
.project-form select:focus {
  border-color: rgba(185, 142, 255, .72);
  background: rgba(18, 12, 38, .68);
  box-shadow: 0 0 0 4px rgba(107, 76, 230, .12);
}

.project-form-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 22px;
  padding: 8px 8px 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(105deg, #7047df, #a14df2 54%, #e34d8c);
  box-shadow: 0 16px 34px rgba(118, 51, 211, .27), inset 0 1px 0 rgba(255, 255, 255, .22);
  font: 700 14px "DM Sans", sans-serif;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.project-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(118, 51, 211, .38), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.project-form-submit b {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, .16);
  font-size: 18px;
  font-weight: 500;
}

.project-form-note {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .35);
  text-align: center;
  font-size: 10px;
  line-height: 1.5;
}

@keyframes projectBackdropIn {
  from { opacity: 0; }
}

@keyframes projectModalIn {
  from { opacity: 0; transform: translateY(24px) scale(.975); }
}

@media (max-width: 760px) {
  .project-modal { padding: 12px; }
  .project-modal-panel {
    max-height: calc(100vh - 24px);
    padding: 32px 22px 24px;
    grid-template-columns: 1fr;
    gap: 27px;
    border-radius: 22px;
  }
  .project-modal-intro h2 { max-width: 430px; margin: 21px 0 13px; font-size: 38px; }
  .project-modal-trust { margin-top: 20px; grid-template-columns: repeat(3, auto); gap: 9px; }
  .project-modal-trust span { gap: 6px; font-size: 10px; }
  .project-modal-trust span::before { width: 18px; height: 18px; }
  .project-form { padding: 22px; }
}

@media (max-width: 520px) {
  .project-modal-panel { padding: 29px 17px 20px; }
  .project-modal-close { top: 10px; right: 10px; }
  .project-modal-intro h2 { padding-right: 25px; font-size: 34px; }
  .project-modal-intro > p { font-size: 14px; }
  .project-modal-trust { grid-template-columns: 1fr; }
  .project-form { padding: 18px; }
  .project-form-grid { grid-template-columns: 1fr; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .project-modal-backdrop,
  .project-modal-panel { animation: none; }
}
