html:has(.careers-page),
body:has(.careers-page) {
    height: auto !important;
    min-height: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.careers-page {
    min-height: 100vh;
    overflow: clip;
    color: #201f27;
    background: linear-gradient(118deg, #d5efc8 0%, #fde3a0 46%, #f4b9cf 100%);
    background-size: 220% 220%;
    animation: careers-gradient-drift 13s ease-in-out infinite alternate;
}

@keyframes careers-gradient-drift {
    0% { background-position: 0% 15%; }
    50% { background-position: 55% 85%; }
    100% { background-position: 100% 25%; }
}

.careers-page > .header { height: 90px; }
.careers-page .logo { color: #201f27; }

.careers-shell {
    width: min(1180px, calc(100% - 4rem));
    margin-inline: auto;
}

.careers-hero {
    position: relative;
    padding: clamp(5rem, 10vw, 9rem) 0 clamp(6rem, 12vw, 11rem);
}

.careers-hero::after {
    content: "";
    position: absolute;
    right: -12vw;
    bottom: -14vw;
    width: min(58vw, 760px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255,255,255,.24);
    filter: blur(2px);
}

.careers-eyebrow {
    margin: 0 0 1.2rem;
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: .13em;
    text-transform: uppercase;
    opacity: .6;
}

.careers-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(3.5rem, 8vw, 8rem);
    line-height: .92;
    letter-spacing: -.06em;
}

.careers-lead {
    max-width: 720px;
    margin: 2rem 0 1rem;
    font-size: clamp(1.35rem, 2.3vw, 2.15rem);
    line-height: 1.35;
}

.careers-intro {
    max-width: 660px;
    font-size: 1rem;
    line-height: 1.7;
}

.careers-button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    margin-top: 1.75rem;
    padding: .8rem 1.8rem;
    border: 1px solid #111;
    border-radius: 999px;
    color: #fff;
    background: #111;
    font-weight: 700;
    text-decoration: none;
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

.careers-button:hover,
.careers-button:focus-visible { transform: translateY(-3px); background: transparent; color: #111; }

.careers-content { padding-bottom: 6rem; }

.careers-panel,
.careers-about {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 1.5rem;
    padding: clamp(2rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,.62);
    border-radius: 28px;
    background: rgba(255,255,255,.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.careers-index { margin: .55rem 0 0; font-size: .75rem; font-weight: 800; opacity: .5; }
.careers-content h2 { margin: 0 0 1.25rem; font-size: clamp(2rem, 4.2vw, 4.2rem); line-height: 1.02; letter-spacing: -.045em; }
.careers-copy { max-width: 760px; font-size: 1rem; line-height: 1.75; }
.careers-copy p:last-child { margin-bottom: 0; }
.careers-copy ul { margin: 1.2rem 0 0; padding-inline-start: 1.2rem; }

.careers-process { padding: clamp(4rem, 9vw, 8rem) 0; }
.careers-process h2 { max-width: 700px; }
.careers-process ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 0; margin: 3rem 0 0; list-style: none; counter-reset: steps; }
.careers-process li { position: relative; counter-increment: steps; min-height: 160px; padding: 1.5rem; border-top: 1px solid rgba(32,31,39,.58); font-size: 1.1rem; font-weight: 650; }
.careers-process li::before { content: "0" counter(steps); display: block; margin-bottom: 3rem; font-size: .7rem; opacity: .5; }

.careers-process li::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,.94);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .7s cubic-bezier(.16,.7,.2,1);
}

@media (hover: hover) and (pointer: fine) {
    .careers-process li:hover::after {
        transform: scaleX(1);
        transition-duration: .52s;
        transition-delay: .08s;
        transition-timing-function: cubic-bezier(.62,.02,.78,.4);
    }
}

.careers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.careers-card {
    padding: clamp(2rem, 4vw, 3.5rem);
    border-radius: 28px;
    background: #201f27;
    color: #fff;
    transition: background-color .55s ease, color .55s ease;
}
.careers-card:nth-child(2) { background: rgba(255,255,255,.48); color: #201f27; }
.careers-card .careers-index { margin-bottom: 2.5rem; }
.careers-card h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); }
.careers-card:first-child h2 { color: #fff !important; }

@media (hover: hover) and (pointer: fine) {
    .careers-grid.is-inverted .careers-card:first-child {
        color: #201f27;
        background: rgba(255,255,255,.48);
    }

    .careers-grid.is-inverted .careers-card:first-child h2 { color: #201f27 !important; }

    .careers-grid.is-inverted .careers-card:nth-child(2) {
        color: #fff;
        background: #201f27;
    }

    .careers-grid.is-inverted .careers-card:nth-child(2) h2 { color: #fff !important; }
}

.careers-cta { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding: clamp(3rem, 7vw, 6rem) 0 1rem; }
.careers-cta h2 { max-width: 780px; margin-bottom: 0; }
.careers-cta .careers-button { flex: 0 0 auto; margin-bottom: .5rem; }

.careers-legal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    padding-top: 4rem;
    color: rgba(32,31,39,.62);
    font-size: .78rem;
}

.careers-legal-footer a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.careers-legal-footer a:hover,
.careers-legal-footer a:focus-visible { color: #201f27; }

.careers-back-top {
    position: fixed;
    z-index: 80;
    left: 28px;
    bottom: 28px;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(32,31,39,.18);
    border-radius: 999px;
    color: #201f27;
    background: rgba(255,255,255,.68);
    box-shadow: 0 10px 30px rgba(32,31,39,.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .35s ease, transform .35s ease, background-color .25s ease;
}

.careers-back-top svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.careers-back-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.careers-back-top:hover,
.careers-back-top:focus-visible { background: #fff; transform: translateY(-2px); }

body.rtl .careers-page { direction: rtl; text-align: right; }
body.rtl .careers-hero::after { right: auto; left: -12vw; }
body.rtl .careers-back-top { right: 28px; left: auto; }
body.rtl .careers-process li::after { transform-origin: right center; }

@media (prefers-reduced-motion: reduce) {
    .careers-page { animation: none; background-position: 50% 50%; }
    .careers-process li::after { transition: none; }
}

@media (max-width: 767.98px) {
    .careers-shell { width: calc(100% - 2rem); }
    .careers-page > .header { height: 85px; }
    .careers-hero { padding-top: 4rem; }
    .careers-hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
    .careers-panel, .careers-about { grid-template-columns: 1fr; padding: 1.5rem; border-radius: 20px; }
    .careers-process ol, .careers-grid { grid-template-columns: 1fr; }
    .careers-process li { min-height: 120px; }
    .careers-process li::before { margin-bottom: 2rem; }
    .careers-cta { align-items: flex-start; flex-direction: column; }
    .careers-back-top { left: 16px; bottom: 16px; }
    body.rtl .careers-back-top { right: 16px; left: auto; }
}
