.project-builder-page {
  background: #f4f1e8;
}

.project-builder-hero {
  position: relative;
  display: grid;
  min-height: clamp(460px, 43vw, 620px);
  align-items: end;
  overflow: hidden;
  background: #080808;
  color: #fff;
  isolation: isolate;
}

.project-builder-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.55) 48%, rgba(0, 0, 0, 0.12) 78%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent 52%);
}

.project-builder-hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-builder-hero-copy {
  padding-top: 150px;
  padding-bottom: clamp(64px, 8vw, 110px);
}

.project-builder-hero-copy .kicker {
  color: #faac18;
}

.project-builder-hero h1 {
  max-width: none;
  margin: 12px 0 18px;
  font-size: clamp(5rem, 6.4vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.project-builder-hero-copy > p:not(.kicker) {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  line-height: 1.5;
}

.project-builder-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.project-builder-hero-meta span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  padding: 9px 14px;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.project-builder-shell {
  padding: clamp(42px, 6vw, 84px) 0 clamp(88px, 10vw, 150px);
}

.project-progress {
  margin-bottom: 26px;
  border: 1px solid rgba(8, 8, 8, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 54px rgba(8, 8, 8, 0.08);
}

.project-progress ol {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 16px;
  list-style: none;
}

.project-progress li {
  position: relative;
  min-width: 0;
}

.project-progress li button {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 8px;
  padding: 4px 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: inherit;
}

.project-progress li.is-available button {
  cursor: pointer;
}

.project-progress li.is-available button:hover {
  background: rgba(100, 182, 228, 0.1);
}

.project-progress li button:focus-visible {
  outline: 3px solid rgba(36, 121, 165, 0.42);
  outline-offset: 2px;
}

.project-progress li button:disabled {
  cursor: not-allowed;
}

.project-progress li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 38px;
  color: rgba(8, 8, 8, 0.48);
  font-size: 1.3rem;
  text-transform: uppercase;
}

.project-progress li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  width: 1px;
  height: 22px;
  background: rgba(8, 8, 8, 0.1);
  transform: translateY(-50%);
}

.project-progress li span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(8, 8, 8, 0.18);
  border-radius: 50%;
  background: #fff;
  font-size: 1.2rem;
}

.project-progress li.is-complete,
.project-progress li[aria-current="step"] {
  color: #080808;
}

.project-progress li.is-complete span {
  border-color: #64b6e4;
  background: #64b6e4;
}

.project-progress li[aria-current="step"] span {
  border-color: #faac18;
  background: #faac18;
  box-shadow: 0 0 0 5px rgba(250, 172, 24, 0.15);
}

.project-builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: start;
}

.project-builder-grid[hidden],
.project-success[hidden] {
  display: none;
}

.project-intake,
.project-summary,
.project-success {
  border: 1px solid rgba(8, 8, 8, 0.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(8, 8, 8, 0.1);
}

.project-intake {
  min-width: 0;
  padding: clamp(28px, 5vw, 62px);
}

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

.project-step-kicker,
.project-summary-kicker {
  margin: 0 0 10px;
  color: #8b5a00;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.project-step h2,
.project-summary h2,
.project-success h2 {
  margin: 0;
  font-size: clamp(3.2rem, 4.8vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.project-summary h2 {
  font-size: 2.8rem;
}

.project-step-intro {
  max-width: 720px;
  margin: 15px 0 34px;
  color: rgba(8, 8, 8, 0.66);
  font-size: 1.8rem;
  line-height: 1.55;
}

.project-step fieldset {
  margin: 34px 0 0;
  border: 0;
  padding: 0;
}

.project-step legend,
.project-field > span {
  display: block;
  margin-bottom: 11px;
  color: #080808;
  font-size: 1.45rem;
  font-weight: 700;
}

.project-step legend span,
.project-field small {
  color: rgba(8, 8, 8, 0.5);
  font-size: 0.9em;
  font-weight: 400;
}

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

.project-service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-choice {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 116px;
  overflow: hidden;
  border: 1px solid rgba(8, 8, 8, 0.14);
  border-radius: 11px;
  background: #fff;
  color: #080808;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.project-choice:hover,
.project-choice:focus-visible {
  border-color: rgba(8, 8, 8, 0.42);
  box-shadow: 0 14px 30px rgba(8, 8, 8, 0.1);
  transform: translateY(-2px);
}

.project-choice:focus-visible {
  outline: 3px solid rgba(100, 182, 228, 0.5);
  outline-offset: 2px;
}

.project-choice[aria-pressed="true"] {
  border-color: #080808;
  box-shadow: inset 0 0 0 2px #080808, 0 14px 30px rgba(8, 8, 8, 0.12);
}

.project-choice[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  z-index: 3;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: #faac18;
  color: #080808;
  font-size: 1.3rem;
  font-weight: 700;
}

.project-choice-image img {
  width: 124px;
  min-width: 124px;
  object-fit: cover;
}

.project-choice > span {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 18px;
}

.project-choice strong {
  font-size: 1.55rem;
  line-height: 1.2;
}

.project-choice small {
  color: rgba(8, 8, 8, 0.58);
  font-size: 1.3rem;
  line-height: 1.4;
}

.project-choice-text {
  min-height: 92px;
}

.project-choice-grid-compact .project-choice {
  min-height: 88px;
}

.project-field {
  display: block;
  margin-top: 28px;
}

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

.project-field-grid .project-field {
  margin-top: 0;
}

.project-field-grid-location {
  grid-template-columns: minmax(0, 1fr) 180px;
  margin-top: 18px;
}

.project-field-grid-location .project-field {
  margin-top: 0;
}

.project-field input,
.project-field select,
.project-field textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid rgba(8, 8, 8, 0.18);
  border-radius: 9px;
  background: #fff;
  color: #080808;
  padding: 14px 15px;
  font-family: inherit;
  font-size: 1.6rem;
  line-height: 1.4;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.project-field input,
.project-field select {
  height: 52px;
  min-height: 52px;
  padding-top: 0;
  padding-bottom: 0;
}

.project-field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 46px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M2 2l5 5 5-5' fill='none' stroke='%23080808' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 22px center;
  background-size: 14px 9px;
}

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

.project-field input:focus,
.project-field select:focus,
.project-field textarea:focus {
  border-color: #080808;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(100, 182, 228, 0.24);
}

.project-field [aria-invalid="true"] {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.project-photo-guides {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 20px;
}

.project-photo-guides article {
  border: 1px solid rgba(8, 8, 8, 0.12);
  border-radius: 10px;
  background: #f8f6ef;
  padding: 18px;
}

.project-photo-guides span {
  display: block;
  margin-bottom: 16px;
  color: #8b5a00;
  font-size: 1.2rem;
  font-weight: 700;
}

.project-photo-guides strong {
  font-size: 1.5rem;
}

.project-photo-guides p {
  margin: 7px 0 0;
  color: rgba(8, 8, 8, 0.58);
  font-size: 1.3rem;
  line-height: 1.45;
}

.project-upload {
  display: grid;
  min-height: 210px;
  place-items: center;
  align-content: center;
  border: 2px dashed rgba(8, 8, 8, 0.25);
  border-radius: 12px;
  background: #faf9f5;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.project-upload:hover,
.project-upload:focus-within {
  border-color: #080808;
  background: #fff8e7;
}

.project-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.project-upload-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 50%;
  background: #faac18;
  font-size: 2.5rem;
  line-height: 1;
}

.project-upload strong {
  font-size: 1.7rem;
}

.project-upload small {
  max-width: 520px;
  margin-top: 7px;
  color: rgba(8, 8, 8, 0.56);
  font-size: 1.3rem;
  line-height: 1.45;
}

.project-photo-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.project-photo-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #080808;
  aspect-ratio: 4 / 3;
}

.project-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-photo-item button {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.76);
  color: #fff;
  cursor: pointer;
}

.project-photo-item span {
  position: absolute;
  inset: auto 0 0;
  overflow: hidden;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.84));
  color: #fff;
  padding: 28px 10px 9px;
  font-size: 1.1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.project-review-card {
  border: 1px solid rgba(8, 8, 8, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(8, 8, 8, 0.05);
  padding: 20px;
}

.project-review-card h3 {
  margin: 0 0 14px;
  color: #2479a5;
  font-size: 1.65rem;
  line-height: 1.2;
}

.project-review-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.project-review-row {
  border-top: 1px solid rgba(8, 8, 8, 0.08);
  padding-top: 11px;
}

.project-review-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.project-review-row dt {
  color: rgba(8, 8, 8, 0.52);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-review-row dd {
  margin: 3px 0 0;
  font-size: 1.35rem;
  line-height: 1.4;
  white-space: pre-line;
}

.project-error,
.project-submit-status {
  min-height: 22px;
  margin: 18px 0 0;
  color: #b42318;
  font-size: 1.4rem;
  font-weight: 700;
}

.project-submit-status[data-status="sending"] {
  color: #8b5a00;
}

.project-step-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 34px;
  border-top: 1px solid rgba(8, 8, 8, 0.1);
  padding-top: 24px;
}

.project-step-actions-end {
  justify-content: flex-end;
}

.project-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid #080808;
  border-radius: 999px;
  padding: 0 24px;
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.project-button:hover,
.project-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(8, 8, 8, 0.18);
}

.project-button:focus-visible {
  outline: 3px solid rgba(100, 182, 228, 0.5);
  outline-offset: 2px;
}

.project-button:disabled {
  opacity: 0.58;
  cursor: wait;
  transform: none;
}

.project-button-primary {
  background: #faac18;
  color: #080808;
}

.project-button-secondary {
  background: #fff;
  color: #080808;
}

.project-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.project-summary {
  position: sticky;
  top: 82px;
  padding: 28px;
}

.project-summary dl {
  margin: 24px 0 0;
}

.project-summary dl div {
  border-top: 1px solid rgba(8, 8, 8, 0.1);
  padding: 13px 0;
}

.project-summary dt {
  margin-bottom: 5px;
  color: rgba(8, 8, 8, 0.48);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.project-summary dd {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
}

.project-summary-note {
  margin: 12px 0 0;
  border-radius: 8px;
  background: #f4f1e8;
  padding: 14px;
  color: rgba(8, 8, 8, 0.62);
  font-size: 1.25rem;
  line-height: 1.5;
}

.project-summary-contact {
  display: grid;
  gap: 7px;
  margin-top: 20px;
  border-top: 1px solid rgba(8, 8, 8, 0.1);
  padding-top: 18px;
  font-size: 1.35rem;
}

.project-summary-contact span {
  color: rgba(8, 8, 8, 0.52);
}

.project-summary-contact a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #faac18;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.project-success {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 84px);
  text-align: center;
}

.project-success-mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #faac18;
  font-size: 3rem;
  font-weight: 700;
}

.project-success > p:not(.project-step-kicker, .project-success-id) {
  max-width: 650px;
  margin: 18px auto 0;
  color: rgba(8, 8, 8, 0.64);
  font-size: 1.8rem;
  line-height: 1.55;
}

.project-success-id {
  margin: 26px 0 0;
  font-size: 1.5rem;
}

.project-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.project-success-actions a {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  border: 1px solid #080808;
  border-radius: 999px;
  padding: 0 24px;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
}

.project-success-actions a:first-child {
  background: #faac18;
}

@media (max-width: 1080px) {
  .project-builder-grid {
    grid-template-columns: 1fr;
  }

  .project-summary {
    position: static;
  }

  .project-summary dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 18px;
  }
}

@media (max-width: 760px) {
  .project-builder-hero {
    min-height: 570px;
  }

  .project-builder-hero::after {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.16) 78%);
  }

  .project-builder-hero-copy {
    padding-top: 120px;
    padding-bottom: 52px;
  }

  .project-builder-hero h1 {
    max-width: 11ch;
    white-space: normal;
  }

  .project-progress {
    overflow-x: auto;
  }

  .project-progress ol {
    width: max-content;
    min-width: 100%;
    grid-template-columns: repeat(6, 96px);
    padding: 12px;
  }

  .project-progress li {
    font-size: 1rem;
  }

  .project-progress li button {
    flex-direction: column;
    gap: 5px;
  }

  .project-progress li:not(:last-child)::after {
    display: none;
  }

  .project-intake {
    border-radius: 12px;
    padding: 28px 20px;
  }

  .project-service-grid,
  .project-choice-grid,
  .project-field-grid,
  .project-field-grid-location,
  .project-photo-guides,
  .project-summary dl {
    grid-template-columns: 1fr;
  }

  .project-choice-image img {
    width: 104px;
    min-width: 104px;
  }

  .project-photo-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-review {
    grid-template-columns: 1fr;
  }

  .project-review-card {
    padding: 18px;
  }

  .project-step-actions {
    align-items: stretch;
  }

  .project-button {
    flex: 1;
    padding: 0 16px;
  }
}

@media (max-width: 430px) {
  .project-builder-hero h1 {
    font-size: 5rem;
  }

  .project-builder-hero-meta span {
    font-size: 1.1rem;
  }

  .project-choice-image {
    min-height: 126px;
  }

  .project-choice-image img {
    width: 92px;
    min-width: 92px;
  }

  .project-choice > span {
    padding: 15px;
  }

  .project-step-actions {
    flex-direction: column-reverse;
  }

  .project-step-actions-end {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-choice,
  .project-button {
    transition: none;
  }
}
