/* =========================
   CAREER PAGE
========================= */

.career-page {
    background: #ffffff;
    color: #050505;
    overflow-x: hidden;
}

.career-page * {
    box-sizing: border-box;
}

.career-container {
    width: min(1160px, calc(100% - 80px));
    margin: 0 auto;
    position: relative;
}

.career-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: #14e27a;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.career-label::before {
    content: "";
    width: 24px;
    height: 1px;
    background: #14e27a;
}

/* =========================
   HERO
========================= */

.career-hero {
    position: relative;
    padding: 155px 0 64px;
    overflow: hidden;
}

.career-hero::after {
    content: "";
    position: absolute;
    right: 8%;
    top: 20%;

    width: 330px;
    height: 330px;
    border-radius: 50%;

    background: radial-gradient(circle, rgba(20, 226, 122, 0.16), transparent 62%);
    filter: blur(24px);
    pointer-events: none;
}

.career-hero-grid {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 88px;
    align-items: start;

    margin-top: 18px;
    padding-bottom: 34px;
    /* border-bottom: 1px solid rgba(0, 0, 0, .13); */
}

.career-hero h1 {
    margin: 0;
    max-width: 560px;

    font-size: clamp(42px, 4.1vw, 60px);
    line-height: .94;
    letter-spacing: -2px;
    font-weight: 500;
    color: #050505;
}

.career-hero p {
    margin: 0;
    max-width: 520px;
    padding-top: 4px;

    font-size: 17px;
    line-height: 1.65;
    /* letter-spacing: -0.2px; */
    font-weight: 400;
    color: rgba(0, 0, 0, .62);
}

.career-hero-image {
    position: relative;
    z-index: 2;

    margin-top: 42px;
    width: 100%;
    height: 500px;

    border-radius: 20px;
    overflow: hidden;
    background: #ddd;
}

.career-hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* =========================
   CULTURE
========================= */

.career-culture {
    padding: 44px 0 28px;
}

.career-culture-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 110px;
    align-items: start;

    padding: 0;
    background: transparent;
}

.career-culture-title h2 {
    margin: 18px 0 0;
    max-width: 500px;

    font-size: clamp(40px, 3.1vw, 54px);
    line-height: .95;
    letter-spacing: -1.8px;
    font-weight: 600;
    color: #050505;
}

.career-culture-copy {
    padding-top: 34px;
}

.career-culture-copy p {
    margin: 0 0 20px;
    max-width: 510px;

    font-size: 17px;
    line-height: 1.7;
    /* letter-spacing: -0.15px; */
    font-weight: 400;
    color: rgba(0, 0, 0, .66);
}

.career-culture-copy p:last-child {
    margin-bottom: 0;
}





/* =========================
   GALLERY - UPDATED BIG ALIGNMENT
========================= */

.career-gallery-section {
    padding: 28px 0 90px;
}

.career-gallery {
    position: relative;
    width: 100%;
    padding: 0 0 82px;
    background: transparent;
    overflow: visible;
}

.career-gallery-track {
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    padding: 0;
    transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}

.career-gallery-card {
    position: relative;
    flex: 0 0 82px;
    height: 550px;

    border-radius: 15px;
    overflow: hidden;
    background: #111;

    cursor: pointer;
    transition:
        flex-basis .55s cubic-bezier(.22, 1, .36, 1),
        opacity .35s ease;
}

.career-gallery-card.active {
    flex-basis: 760px;
}

.career-gallery-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;

    opacity: .88;
    transition: opacity .35s ease, transform .6s ease;
}

.career-gallery-card.active img {
    opacity: .98;
}

.career-gallery-card:hover img {
    transform: scale(1.035);
}

.career-gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, .60),
        rgba(0, 0, 0, .14),
        transparent
    );
}

.career-gallery-card h3 {
    position: absolute;
    left: 28px;
    bottom: 28px;
    z-index: 2;

    margin: 0;

    color: #fff;
    font-size: 25px;
    line-height: 1.05;
    letter-spacing: -0.45px;
    font-weight: 600;

    opacity: 0;
    transform: translateY(14px);
    transition: .35s ease;
}

.career-gallery-card.active h3 {
    opacity: 1;
    transform: translateY(0);
}

.career-gallery-actions {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);

    display: flex;
    gap: 12px;
}

.career-gallery-actions button {
    width: 44px;
    height: 44px;

    border: none;
    border-radius: 4px;
    background: #050505;
    color: #fff;

    font-size: 22px;
    line-height: 1;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: .3s ease;
}

.career-gallery-actions button:hover {
    background: #14e27a;
    color: #050505;
}




/* =========================
   APPLICATION FORM
========================= */

.career-application {
    padding: 8px 0 130px;
}

.career-application-grid {
    display: grid;
    grid-template-columns: .9fr 1.15fr;
    gap: 70px;
    align-items: start;
}

.career-application-head {
    position: sticky;
    top: 120px;
}

.career-application-head h2 {
    margin: 18px 0 22px;
    max-width: 500px;

    font-size: clamp(38px, 3.3vw, 56px);
    line-height: .95;
    letter-spacing: -2px;
    font-weight: 600;
    color: #050505;
}

.career-application-head p {
    margin: 0;
    max-width: 460px;

    font-size: 17px;
    line-height: 1.7;
    /* letter-spacing: -0.15px; */
    color: rgba(0, 0, 0, .62);
}

.career-form {
    position: relative;

    padding: 42px;
    border-radius: 24px;

    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(0, 0, 0, .08);

    box-shadow:
        0 30px 90px rgba(0, 0, 0, .045),
        inset 0 1px 0 rgba(255, 255, 255, .75);
}

.career-form::before {
    content: "";
    position: absolute;
    left: 42px;
    top: 0;

    width: 86px;
    height: 3px;
    border-radius: 999px;

    background: #14e27a;
}

.career-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.career-field {
    display: grid;
    gap: 10px;
}

.career-field-full {
    grid-column: 1 / -1;
}

.career-field label {
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, .55);
}

.career-field input,
.career-field textarea {
    width: 100%;

    border: none;
    outline: none;

    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, .08);

    color: #050505;

    font-family: inherit;
    font-size: 15.5px;
    line-height: 1.4;

    padding: 17px 18px;

    transition:
        border-color .3s ease,
        background .3s ease,
        box-shadow .3s ease;
}

.career-field textarea {
    resize: vertical;
    min-height: 135px;
}

.career-field input::placeholder,
.career-field textarea::placeholder {
    color: rgba(0, 0, 0, .36);
}

.career-field input:focus,
.career-field textarea:focus {
    background: #fff;
    border-color: rgba(20, 226, 122, .75);
    box-shadow: 0 0 0 4px rgba(20, 226, 122, .12);
}

.career-field input[type="file"] {
    padding: 14px;
    cursor: pointer;
}



/* =========================
   CAREER FORM SUBMIT BUTTON
========================= */

.career-submit-btn {
    position: relative;
    margin-top: 28px;

    width: fit-content;
    min-width: 210px;
    height: 62px;
    padding: 0 34px;

    border: none;
    border-radius: 999px;

    background: linear-gradient(135deg, #14e27a 0%, #74ff00 100%);
    color: #050505;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    font-family: inherit;
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.8px;
    text-transform: uppercase;

    cursor: pointer;
    overflow: hidden;

    box-shadow: 0 24px 55px rgba(20, 226, 122, 0.28);

    transition:
        transform .35s cubic-bezier(.22, 1, .36, 1),
        box-shadow .35s ease,
        background .35s ease,
        border .35s ease;
}

.career-submit-btn::before {
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(255, 255, 255, .32);
    transform: translateX(-115%) skewX(-18deg);
    transition: transform .65s cubic-bezier(.22, 1, .36, 1);
    pointer-events: none;
}

.career-submit-btn:hover::before {
    transform: translateX(115%) skewX(-18deg);
}

.career-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 70px rgba(20, 226, 122, 0.34);
}

.career-submit-text,
.career-submit-arrow {
    position: relative;
    z-index: 2;
}

.career-submit-arrow {
    font-size: 26px;
    line-height: 1;
    transition: transform .35s ease;
}

.career-submit-btn:hover .career-submit-arrow {
    transform: translateX(8px);
}

/* sending state */
.career-submit-btn.is-sending {
    background: linear-gradient(135deg, #1cf07f 0%, #74ff00 100%);
    border: 2px solid #050505;
    box-shadow: 0 24px 55px rgba(20, 226, 122, 0.22);
    pointer-events: none;
}

.career-submit-btn.is-sending .career-submit-arrow {
    display: none;
}

/* success state */
.career-submit-btn.is-success {
    background: #050505;
    color: #ffffff;
    box-shadow: none;
    pointer-events: none;
}

.career-submit-btn.is-success .career-submit-arrow {
    display: none;
}





/* =========================
   TABLET
========================= */

@media (max-width: 1024px) {

    .career-container {
        width: calc(100% - 56px);
    }

    .career-hero {
        padding-top: 145px;
    }

    .career-hero-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .career-hero h1 {
        max-width: 760px;
    }

    .career-hero-image {
        height: 390px;
    }

    .career-culture-card {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .career-culture-copy {
        padding-top: 0;
    }

    .career-gallery {
        overflow: hidden;
        padding-bottom: 78px;
    }

    .career-gallery-track {
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    .career-gallery-card {
        height: 430px;
        flex-basis: 64px;
    }

    .career-gallery-card.active {
        flex-basis: 610px;
    }

    .career-application-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .career-application-head {
        position: relative;
        top: auto;
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .career-container {
        width: calc(100% - 32px);
    }

    .career-hero {
        padding: 125px 0 42px;
    }

    .career-hero::after {
        right: -130px;
        top: 14%;
        width: 260px;
        height: 260px;
        opacity: .65;
    }

    .career-label {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .career-label::before {
        width: 18px;
    }

    .career-hero-grid {
        margin-top: 14px;
        padding-bottom: 24px;
        gap: 18px;
    }

    .career-hero h1 {
        font-size: 34px;
        line-height: .98;
        letter-spacing: -1.5px;
    }

    .career-hero p {
        font-size: 14px;
        line-height: 1.6;
        padding-top: 0;
    }

    .career-hero-image {
        margin-top: 30px;
        height: 265px;
        border-radius: 14px;
    }

    .career-culture {
        padding: 24px 0;
    }

    .career-culture-title h2 {
        font-size: 30px;
        letter-spacing: -1.2px;
        max-width: 100%;
    }

    .career-culture-copy p {
        font-size: 15px;
        line-height: 1.65;
    }

    /* gallery mobile like reference */
    .career-gallery-section {
        padding: 16px 0 54px;
    }

    .career-gallery {
        width: 100%;
        overflow: hidden;
        padding-bottom: 76px;
    }

    .career-gallery-track {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: stretch;
        gap: 8px;
        padding: 0;
    }

    .career-gallery-card {
        flex: 0 0 32px;
        height: 560px;
        border-radius: 12px;
    }

    .career-gallery-card.active {
        flex-basis: min(305px, calc(100vw - 116px));
    }

    .career-gallery-card img {
        object-fit: cover;
    }

    .career-gallery-card h3 {
        left: 22px;
        bottom: 24px;
        font-size: 34px;
        line-height: 1;
        letter-spacing: -1.2px;
    }

    .career-gallery-actions {
        left: 50%;
        bottom: 18px;
        transform: translateX(-50%);
        gap: 12px;
    }

    .career-gallery-actions button {
        width: 44px;
        height: 44px;
        border-radius: 4px;
        font-size: 22px;
    }

    .career-application {
        padding: 18px 0 86px;
    }

    .career-application-grid {
        gap: 32px;
    }

    .career-application-head h2 {
        font-size: 32px;
        letter-spacing: -1.2px;
    }

    .career-application-head p {
        font-size: 15px;
        line-height: 1.65;
    }

    .career-form {
        padding: 34px 24px;
        border-radius: 18px;
    }

    .career-form::before {
        left: 24px;
        width: 70px;
    }

    .career-form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .career-field input,
    .career-field textarea {
        border-radius: 12px;
        font-size: 15px;
        padding: 15px 16px;
    }

    .career-submit-btn {
        height: 54px;
        min-width: 180px;
        font-size: 18px;
        padding: 0 28px;
    }
}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 420px) {

    .career-container {
        width: calc(100% - 28px);
    }

    .career-hero h1 {
        font-size: 31px;
    }

    .career-hero-image {
        height: 250px;
    }

    .career-gallery-card {
        flex-basis: 28px;
        height: 540px;
    }

    .career-gallery-card.active {
        flex-basis: min(295px, calc(100vw - 98px));
    }

    .career-gallery-card h3 {
        font-size: 32px;
        left: 20px;
        bottom: 22px;
    }
}


/* =========================
   EXTRA SMALL MOBILE
========================= */

@media (max-width: 360px) {

    .career-gallery-card {
        flex-basis: 24px;
        height: 510px;
    }

    .career-gallery-card.active {
        flex-basis: min(270px, calc(100vw - 84px));
    }

    .career-gallery-card h3 {
        font-size: 28px;
    }
}