/* ===== WORK WITH US PAGE ===== */
.work-container,
.work-form-container {
    width: min(100% - 2rem, 80rem);
    margin-right: auto;
    margin-left: auto;
}

.work-form-container {
    max-width: 48rem;
}

.work-hero {
    position: relative;
    overflow: hidden;
    background: #101828;
    color: #ffffff;
}

.work-hero::before {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    background-size: 64px 64px;
    content: "";
}

.work-hero__inner {
    position: relative;
    display: flex;
    min-height: 28rem;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.work-hero__copy {
    max-width: 42rem;
}

.work-kicker {
    display: inline-flex;
    border-left: 3px solid #ffd9d4;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.55rem 0.85rem;
    color: #ffd9d4;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.work-hero h1,
.work-section-heading h2 {
    margin: 0;
    color: inherit;
    font-weight: 800;
    letter-spacing: 0;
}

.work-hero h1 {
    margin-top: 1.25rem;
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    line-height: 1;
}

.work-hero p {
    max-width: 40rem;
    margin-top: 1.35rem;
    color: #cbd5e1;
    font-size: 1.06rem;
    line-height: 1.8;
}

.work-button {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.35rem;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.work-button:hover,
.work-button:focus-visible {
    transform: translateY(-2px);
}

.work-button--primary,
.work-button--submit {
    background: var(--color-brand);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(81, 4, 0, 0.18);
}

.work-button--primary:hover,
.work-button--primary:focus-visible,
.work-button--submit:hover,
.work-button--submit:focus-visible {
    background: var(--color-brand-dark);
    color: #ffffff;
}

.work-hero .work-button {
    margin-top: 2rem;
}

.work-stats {
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.work-stats__grid {
    display: grid;
    gap: 1rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.work-stat {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    padding: 1.15rem;
    text-align: center;
}

.work-stat strong {
    display: block;
    color: var(--color-brand);
    font-size: clamp(1.55rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.05;
}

.work-stat span {
    display: block;
    margin-top: 0.45rem;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.work-section {
    background: #ffffff;
    padding-top: 4.75rem;
    padding-bottom: 4.75rem;
}

.work-section--soft {
    background: #f8fafc;
}

.work-section-heading {
    max-width: 45rem;
}

.work-section-heading--center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.work-section-heading--split {
    display: grid;
    max-width: none;
    gap: 1.5rem;
    align-items: end;
}

.work-section-heading h2 {
    margin-top: 1rem;
    color: #101828;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
}

.work-section-heading p {
    margin-top: 1rem;
    color: #475569;
    font-size: 1rem;
    line-height: 1.75;
}

.work-benefits,
.work-jobs,
.work-form__grid {
    display: grid;
    gap: 1.25rem;
}

.work-benefits,
.work-jobs {
    margin-top: 2.25rem;
}

.work-card,
.work-job-card,
.work-form {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.work-card,
.work-job-card {
    padding: 1.5rem;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.work-card:hover,
.work-job-card:hover {
    border-color: rgba(81, 4, 0, 0.24);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.work-icon {
    display: inline-flex;
    width: 3.25rem;
    height: 3.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f8e9e7;
    color: var(--color-brand);
    font-size: 1.2rem;
}

.work-card h3,
.work-job-card h3 {
    margin: 1rem 0 0;
    color: #101828;
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.3;
}

.work-card p,
.work-job-card p {
    margin-top: 0.85rem;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.72;
}

.work-job-card {
    display: flex;
    flex-direction: column;
}

.work-job-card__tags,
.work-job-card__meta,
.work-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.work-job-card__tags span,
.work-requirements span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.38rem 0.7rem;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
}

.work-job-card__tags span:first-child {
    background: #f8e9e7;
    color: var(--color-brand);
}

.work-job-card__tags span:last-child,
.work-requirements span {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
}

.work-job-card__meta {
    margin-top: 0.9rem;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 700;
}

.work-job-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.work-requirements {
    margin-top: 1rem;
}

.work-requirements i {
    color: var(--color-brand);
}

.work-apply-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 1.15rem;
    color: var(--color-brand);
    font-size: 0.92rem;
    font-weight: 800;
}

.work-apply-link:hover,
.work-apply-link:focus-visible {
    color: var(--color-brand-dark);
}

.work-form {
    margin-top: 2.25rem;
    background: #f8fafc;
    padding: 1.25rem;
}

.work-field {
    display: grid;
    gap: 0.55rem;
}

.work-field--full {
    margin-top: 1rem;
}

.work-field span {
    color: #334155;
    font-size: 0.9rem;
    font-weight: 800;
}

.work-field em {
    color: #dc2626;
    font-style: normal;
}

.work-dropzone {
    position: relative;
    display: flex;
    min-height: 11rem;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    padding: 1.5rem;
    text-align: center;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.work-dropzone > i {
    color: #94a3b8;
    font-size: 2rem;
}

.work-dropzone p {
    margin: 0.75rem 0 0;
    color: #475569;
    font-size: 0.92rem;
    font-weight: 800;
}

.work-dropzone small {
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.78rem;
}

.work-dropzone input {
    position: absolute;
    inset: 0;
    cursor: pointer;
    opacity: 0;
}

.work-button--submit {
    width: 100%;
    margin-top: 1.25rem;
}

@media (min-width: 640px) {
    .work-stats__grid,
    .work-form__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .work-form {
        padding: 2rem;
    }
}

@media (min-width: 768px) {
    .work-jobs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .work-benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .work-stats__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .work-section-heading--split {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .work-section-heading--split .work-button {
        justify-self: end;
    }
}

@media (max-width: 639px) {
    .work-button {
        width: 100%;
    }
}
