.project-page {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 18% 18%, rgb(182 243 106 / 7%), transparent 30%),
    radial-gradient(ellipse at 85% 72%, rgb(182 243 106 / 5%), transparent 34%),
    #0a0c10;
  color: #fff;
}

.project-header {
  border-bottom: 1px solid #252a30;
}

.project-header__inner {
  display: flex;
  width: min(1200px, calc(100% - 48px));
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-inline: auto;
}

.project-header .brand {
  color: #fff;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.project-back-link {
  color: #a4a9a1;
  font-size: 13px;
  text-decoration: none;
  transition: color 180ms ease;
}

.project-back-link:focus-visible {
  color: #b6f36a;
}

@media (min-width: 1101px) and (hover: hover) and (pointer: fine) {
  .project-back-link:hover {
    color: #b6f36a;
  }
}

.project-main {
  padding-block: clamp(58px, 7vw, 92px) 110px;
}

.project-main__inner {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
}

.project-intro {
  max-width: 820px;
  margin: 0 auto 38px;
  text-align: center;
}

.project-eyebrow {
  margin: 0 0 13px;
  color: #9aa3b5;
  font: 500 11px/1.4 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.14em;
}

.project-eyebrow span {
  padding-inline: 5px;
  color: #b6f36a;
}

.project-intro h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 550;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.project-intro h1 span {
  color: #b6f36a;
}

.project-intro > p:last-child {
  max-width: 590px;
  margin: 0 auto;
  color: #a4a9a1;
  font-size: 15px;
  line-height: 1.7;
}

.project-form {
  width: min(100%, 860px);
  margin-inline: auto;
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid #30373b;
  border-radius: 9px;
  background:
    radial-gradient(ellipse at 100% 0, rgb(182 243 106 / 5.5%), transparent 38%),
    #11151a;
  box-shadow: 0 24px 65px rgb(0 0 0 / 24%);
}

.project-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 22px;
}

.project-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.project-field--wide {
  grid-column: 1 / -1;
}

.project-field label {
  color: #e4e9e3;
  font-size: 13px;
  font-weight: 500;
}

.project-field label span {
  color: #858d88;
  font-weight: 400;
}

.project-field input,
.project-field select,
.project-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgb(224 232 214 / 16%);
  border-radius: 5px;
  outline: none;
  background: rgb(10 12 16 / 76%);
  color: #fff;
  font: inherit;
  font-size: 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.project-field select {
  padding-right: 42px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='m1 1.5 5 5 5-5' stroke='%23b6f36a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}

.project-field textarea {
  min-height: 150px;
  resize: vertical;
}

.project-field input::placeholder,
.project-field textarea::placeholder {
  color: #777e79;
}

.project-field select:invalid {
  color: #777e79;
}

.project-field input:focus,
.project-field select:focus,
.project-field textarea:focus {
  border-color: rgb(182 243 106 / 70%);
  box-shadow: 0 0 0 3px rgb(182 243 106 / 8%);
}

.project-field .is-invalid,
.project-field input.is-invalid:focus,
.project-field select.is-invalid:focus,
.project-field textarea.is-invalid:focus {
  border-color: #ff3b3b;
  box-shadow: 0 0 0 3px rgb(255 59 59 / 22%), 0 0 16px rgb(255 59 59 / 12%);
}

.project-field__error {
  display: none;
  color: #ff5c5c;
  font-size: 12px;
  line-height: 1.35;
}

.project-field__error.is-visible {
  display: block;
}

.project-form__footer {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 13px;
  margin-top: 26px;
}

.project-submit {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 19px;
  border: 1px solid #b6f36a;
  border-radius: 7px;
  background: #b6f36a;
  color: #11140d;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.project-submit:focus-visible {
  transform: translateY(-2px);
  border-color: #b6f36a;
  background: #202720;
  color: #fff;
}

.project-submit span {
  color: #28351c;
  transition: color 180ms ease, transform 180ms ease;
}

.project-submit:focus-visible span {
  transform: translate(2px, -2px);
  color: #b6f36a;
}

@media (min-width: 1101px) and (hover: hover) and (pointer: fine) {
  .project-submit:hover {
    transform: translateY(-2px);
    border-color: #b6f36a;
    background: #202720;
    color: #fff;
  }

  .project-submit:hover span {
    transform: translate(2px, -2px);
    color: #b6f36a;
  }
}

.project-form__status {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: #b6f36a;
  font-size: 13px;
}

.project-submit:disabled,
.project-submit:disabled:hover,
.project-submit:disabled:focus-visible {
  transform: none;
  border-color: #555b53;
  background: #555b53;
  color: #d0d2ce;
  cursor: not-allowed;
}

.project-submit:disabled span {
  color: #d0d2ce;
}

.project-header .brand:focus-visible,
.project-back-link:focus-visible,
.project-submit:focus-visible {
  outline: 2px solid #b6f36a;
  outline-offset: 4px;
}

@media (max-width: 680px) {
  .project-header__inner,
  .project-main__inner {
    width: calc(100% - 40px);
  }

  .project-main {
    padding-block: 54px 72px;
  }

  .project-intro {
    margin-bottom: 28px;
  }

  .project-form__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
  }

  .project-field--wide {
    grid-column: auto;
  }

  .project-form__footer {
    align-items: stretch;
  }

  .project-submit {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .project-header__inner {
    min-height: 68px;
    gap: 12px;
  }

  .project-header .brand {
    font-size: 16px;
  }

  .project-back-link {
    font-size: 11px;
  }

  .project-form {
    padding: 20px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-page *,
  .project-page *::before,
  .project-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
