.project-intake {
    position: relative;
    isolation: isolate;
    padding: 5rem 1rem 6rem;
    overflow: hidden;
    background: #f5f5f7;
    scroll-margin-top: 7rem;
}

.project-intake-inner { max-width: 80rem; margin-inline: auto; }
.project-intake-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 2rem;
    margin-bottom: 2.25rem;
}
.project-intake-eyebrow {
    display: block;
    margin-bottom: 1rem;
    color: #0065cc;
    font-size: .76rem;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.project-intake-heading h2 {
    color: #1d1d1f;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(2.8rem, 5.2vw, 5rem);
    letter-spacing: -.055em;
    line-height: 1.04;
}
.project-intake-heading h2 span {
    display: block;
    color: #0071e3;
    background: linear-gradient(105deg, #45b6f5, #0071e3 48%, #e26686);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.project-intake-heading p {
    max-width: 22rem;
    color: #626268;
    font-size: 1.05rem;
    line-height: 1.65;
    padding-bottom: .2rem;
}
.project-intake-card.matte-transparent {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow-anchor: none;
    padding: clamp(1.4rem, 3.5vw, 3rem);
    border-radius: 2rem;
    background-color: rgba(255, 255, 255, .9);
}
.project-intake-card > .project-form,
.project-intake-card > .project-success { grid-area: 1 / 1; min-width: 0; }
.project-success { align-self: center; }
.project-form { scroll-margin-top: 7.5rem; }
.project-form [hidden], .project-success[hidden] { display: none !important; }
.project-form.is-enhanced {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}
.project-form.is-enhanced > .project-progress { grid-area: 1 / 1; }
.project-form.is-enhanced > .project-step { grid-area: 2 / 1; align-self: start; }
/* Inactive steps reserve their natural height but remain invisible and
   inaccessible. The tallest step sizes the shared row at every breakpoint. */
.project-form.is-enhanced > .project-step[hidden] {
    display: block !important;
    visibility: hidden;
    pointer-events: none;
}
.project-form.is-enhanced > .project-form-footer { grid-area: 3 / 1; }
.project-form.is-enhanced > .project-form-status {
    grid-area: 4 / 1;
    box-sizing: border-box;
    block-size: 4rem;
    padding-top: 1rem;
    overflow-y: auto;
}
/* Preserve the same card size for the confirmation message. */
.project-form.is-enhanced[hidden] {
    display: grid !important;
    visibility: hidden;
    pointer-events: none;
}
.project-form-tools { display: none; }
.project-form.is-enhanced .project-form-tools { display: flex; }
.project-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 0 0 1.2rem;
    margin: 0 0 1.4rem;
    list-style: none;
    border-bottom: 1px solid rgba(29, 29, 31, .09);
}
.project-progress li { min-width: 0; }
.project-progress.project-form-tools { display: none; }
.project-form.is-enhanced .project-progress { display: grid; }
.project-progress-button {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: #626268;
    font-size: .88rem;
    font-weight: 650;
    text-align: left;
    border-radius: 999px;
}
.project-progress-button:disabled { cursor: default; opacity: .65; }
.project-progress-number {
    display: grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    flex-shrink: 0;
    border-radius: 50%;
    color: var(--c-content, #224);
    font-size: .8rem;
    font-weight: 750;
    transition: background .2s, color .2s, box-shadow .2s;
}
.project-progress-button[aria-current="step"] { color: #0065cc; }
.project-progress-button[aria-current="step"] .project-progress-number {
    color: #0065cc;
    outline: 1px solid rgba(0, 113, 227, .28);
    outline-offset: 2px;
}
.project-progress-button.is-complete .project-progress-number {
    color: #0065cc;
}
.project-step { min-width: 0; margin: 0 0 2rem; padding: 0; border: 0; }
.project-form.is-enhanced .project-step { margin-bottom: 0; }
.project-step legend {
    width: 100%;
    padding: 0;
    color: #1d1d1f;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.6rem, 2.5vw, 2.35rem);
    font-weight: 750;
    letter-spacing: -.045em;
    line-height: 1.2;
}
.project-step legend:focus { outline: none; }
.project-step-description { color: #626268; font-size: .98rem; line-height: 1.55; margin: .65rem 0 1.5rem; }
.project-choice-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.project-choice { position: relative; grid-column: span 2; cursor: pointer; min-width: 0; }
.project-choice-grid.is-services {
    --service-choice-height: 5rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: var(--service-choice-height);
    align-items: stretch;
}
.project-choice-grid.is-services .project-choice { grid-column: auto; height: 100%; }
.project-choice-grid.is-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-choice-grid.is-four .project-choice { grid-column: auto; }
.project-choice input {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.project-choice-surface.matte-transparent {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    height: 100%;
    min-height: 7.2rem;
    padding: 1.3rem 1.4rem;
    border-radius: 1.25rem;
    background-color: rgba(255, 255, 255, .28);
    color: #1d1d1f;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.project-choice:hover .project-choice-surface { transform: translateY(-2px); background-color: rgba(255, 255, 255, .65); }
.project-choice input:checked + .project-choice-surface {
    color: #005ebf;
    background-color: rgba(0, 113, 227, .09);
    box-shadow: inset 0 0 0 1.5px rgba(0, 113, 227, .65), inset 0 2px 2px rgba(255, 255, 255, .85), 0 6px 20px rgba(0, 113, 227, .1);
}
.project-choice-surface::after {
    content: "";
    position: absolute;
    top: 1.3rem;
    right: 1.3rem;
    width: 1rem;
    height: 1rem;
    border: 1px solid rgba(29, 29, 31, .2);
    border-radius: 50%;
    background: rgba(255, 255, 255, .4);
}
.project-choice input:checked + .project-choice-surface::after {
    border: 4px solid #0071e3;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, .08);
}
.project-choice-title { display: block; font-size: 1.05rem; font-weight: 750; letter-spacing: -.02em; padding-right: 1rem; }
.project-choice-description { display: block; color: #626268; margin-top: .3rem; font-size: .84rem; line-height: 1.5; }
.project-choice-grid.is-services .project-choice-surface {
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: .75rem 1rem;
    text-align: center;
}
.project-choice-grid.is-services .project-choice-surface::after { display: none; }
.project-choice-grid.is-services .project-choice-title { padding-right: 0; line-height: 1.35; }
.project-choice-grid.is-four .project-choice-surface { min-height: 5.8rem; justify-content: center; }
.project-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.project-field { display: flex; flex-direction: column; gap: .55rem; color: #303035; font-size: .9rem; font-weight: 650; }
.project-field.is-full { grid-column: 1 / -1; margin-top: 1.5rem; }
.project-field small { color: #626268; font-size: .8rem; font-weight: 450; }
.project-field input, .project-field textarea {
    width: 100%;
    min-width: 0;
    padding: .9rem 1rem;
    color: #1d1d1f;
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(29, 29, 31, .16);
    border-radius: .9rem;
    box-shadow: inset 0 2px 4px rgba(29, 29, 31, .025), 0 1px 0 rgba(255, 255, 255, .85);
    font: inherit;
    font-weight: 450;
    transition: border-color .2s, box-shadow .2s;
}
.project-field input::placeholder, .project-field textarea::placeholder { color: #76767d; }
.project-field textarea { min-height: 6.5rem; resize: none; line-height: 1.6; }
.project-field input:focus, .project-field textarea:focus {
    outline: none;
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, .12), inset 0 1px 2px rgba(29, 29, 31, .03);
}
.project-summary { display: flex; flex-wrap: wrap; align-content: flex-start; gap: .5rem; min-height: 5.5rem; margin-bottom: 1.5rem; }
.project-summary span { color: #005ebf; font-size: .8rem; font-weight: 650; background: rgba(0, 113, 227, .07); border: 1px solid rgba(0, 113, 227, .12); border-radius: 999px; padding: .45rem .8rem; }
.project-consent { display: flex; align-items: flex-start; gap: .7rem; margin-top: 1.4rem; color: #626268; font-size: .82rem; line-height: 1.6; }
.project-consent input { flex-shrink: 0; width: 1rem; height: 1rem; margin-top: .25rem; accent-color: #0071e3; }
.project-privacy { color: #0065cc; text-decoration: underline; text-underline-offset: 3px; }
.project-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; }
.project-form-note { display: inline-flex; align-items: center; gap: .45rem; color: #626268; font-size: .8rem; line-height: 1.5; }
.project-form-note svg { width: 1rem; height: 1rem; flex-shrink: 0; color: #0071e3; }
.project-form-navigation { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.project-form-navigation.project-form-tools { display: none; }
.project-form.is-enhanced .project-form-navigation.project-form-tools { display: flex; }
.project-back { padding: .85rem .25rem; color: #626268; font-weight: 650; font-size: .9rem; border-radius: .5rem; }
.project-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 1.1rem;
    padding: .95rem 1.4rem;
    color: #fff;
    background: #0071e3;
    border: 1px solid rgba(0, 79, 170, .16);
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, .45), 0 5px 16px rgba(0, 113, 227, .18);
    font-size: .95rem;
    font-weight: 700;
    transition: background-color .2s, transform .2s;
}
.project-button svg { width: 1.1rem; height: 1.1rem; stroke-width: 2; }
.project-button:hover { background: #0077ed; transform: translateY(-1px); }
.project-button:disabled { opacity: .6; cursor: wait; transform: none; }
.project-form button:focus-visible, .project-choice input:focus-visible + .project-choice-surface, .project-consent input:focus-visible {
    outline: 3px solid #0071e3;
    outline-offset: 4px;
}
.project-form-status { color: #ae202e; font-size: .9rem; line-height: 1.6; }
.project-form-status:not(:empty) { padding-top: 1rem; }
.project-form-status.is-preview { color: #005ebf; }
.project-success { padding: 2.5rem 1rem; text-align: center; outline: none; }
.project-success-icon { width: 4rem; height: 4rem; display: grid; place-items: center; color: #0071e3; background: rgba(0, 113, 227, .08); border: 1px solid rgba(0, 113, 227, .18); border-radius: 50%; margin: 0 auto 1.5rem; }
.project-success-icon svg { width: 1.7rem; height: 1.7rem; }
.project-success h3 { font-family: 'Poppins', sans-serif; font-size: clamp(1.7rem, 3vw, 2.7rem); font-weight: 750; letter-spacing: -.045em; line-height: 1.2; color: #1d1d1f; }
.project-success p { max-width: 30rem; margin: 1rem auto 0; color: #626268; line-height: 1.7; }

@media (min-width: 641px) and (max-width: 900px) {
    .project-choice-grid.is-services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .project-intake { padding: 3.5rem 1rem 4rem; }
    .project-intake-heading { flex-direction: column; align-items: flex-start; gap: 1.2rem; margin-bottom: 1.8rem; }
    .project-intake-heading h2 { font-size: clamp(2.5rem, 10.5vw, 3.5rem); }
    .project-intake-heading p { max-width: 30rem; font-size: .98rem; }
    .project-intake-card.matte-transparent { border-radius: 1.5rem; padding: 1.4rem 1.1rem; }
    .project-progress { gap: .4rem; padding-bottom: 1.25rem; margin-bottom: 1.4rem; }
    .project-progress-button { flex-direction: column; align-items: center; width: 100%; gap: .4rem; font-size: .72rem; }
    .project-progress-number { width: 1.9rem; height: 1.9rem; }
    .project-form.is-enhanced > .project-form-status { block-size: 7rem; }
    .project-step legend { font-size: 1.65rem; }
    .project-step-description { font-size: .9rem; }
    .project-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .project-choice { grid-column: auto; }
    .project-choice-grid.is-services {
        --service-choice-height: 5.5rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .project-choice-surface.matte-transparent { min-height: 8.3rem; padding: 1rem; border-radius: 1rem; }
    .project-choice-title { font-size: .95rem; padding-right: .3rem; }
    .project-choice-description { font-size: .78rem; }
    .project-choice-surface::after { top: 1rem; right: 1rem; width: .9rem; height: .9rem; }
    .project-choice-grid.is-four .project-choice-surface { justify-content: flex-start; padding-top: 2.1rem; min-height: 7rem; }
    .project-fields { grid-template-columns: 1fr; }
    .project-field input, .project-field textarea { font-size: 1rem; }
    .project-form-footer { flex-wrap: wrap; }
    .project-form-note { order: 2; width: 100%; justify-content: center; font-size: .73rem; }
    .project-form-navigation { width: 100%; justify-content: space-between; }
    .project-next, .project-submit { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .project-intake *, .project-intake *::before, .project-intake *::after { transition: none !important; }
    .project-choice:hover .project-choice-surface, .project-button:hover { transform: none; }
}
@media (forced-colors: active) {
    .project-choice-surface.matte-transparent { border: 1px solid ButtonText; }
    .project-choice input:checked + .project-choice-surface { outline: 3px solid Highlight; }
}
