@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

:root {
    --purple: #7a3d9d;
    --purple-dark: #57216f;
    --ink: #141116;
    --muted: #68636b;
    --line: #ddd8df;
    --soft: #f6f3f7;
    --white: #fff;
    --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Montserrat", sans-serif;
    line-height: 1.6;
}
body.modal-open { overflow: hidden; }
main { margin-top: 100px; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.nav a,
.mobile-menu a {
    text-transform: uppercase;
}
.content-width { width: min(calc(100% - 40px), var(--max-width)); margin-inline: auto; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 92px;
    padding: 0 max(20px, calc((100vw - var(--max-width)) / 2));
    display: flex;
    align-items: center;
    gap: 38px;
    color: var(--white);
    background: #050505;
    border-bottom: 3px solid var(--purple);
}
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { display: block; width: 146px; height: auto; }
.desktop-nav { display: flex; align-items: center; gap: 30px; }
.desktop-nav a {
    position: relative;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
}
.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -9px;
    height: 2px;
    background: var(--purple);
    transition: right .2s ease;
}
.desktop-nav a:hover::after, .desktop-nav a.active::after { right: 0; }
.language-switcher { display: flex; gap: 5px; }
.language-switcher a {
    padding: 7px 8px;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
}
.language-switcher a.active { color: #111; background: var(--white); }
.menu-button {
    display: none;
    color: var(--white);
    background: transparent;
    border: 0;
    font-size: 28px;
}

.jobs-hero, .detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 80% 20%, rgba(181, 94, 220, .45), transparent 27%),
        linear-gradient(120deg, #17101b 0%, #4c175e 55%, #7a3d9d 100%);
}
.jobs-hero::after, .detail-hero::after {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    right: -100px;
    bottom: -260px;
    border: 60px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
}
.jobs-hero .content-width { padding-block: 88px 94px; }
.detail-hero .content-width { padding-block: 50px 62px; }
.eyebrow {
    margin: 0 0 14px;
    color: #c99ddd;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
h1 { margin: 0; font-size: clamp(34px, 5vw, 62px); line-height: 1.08; }
.hero-copy { max-width: 720px; margin: 22px 0 0; font-size: 18px; }

.jobs-section { padding-block: 58px 90px; }
.filters {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 14px;
    margin-top: -83px;
    padding: 18px;
    position: relative;
    z-index: 2;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 16px 45px rgba(34, 17, 40, .15);
}
.filters input, .filters select {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
}
.filters input:focus, .filters select:focus, .modal-dialog input:focus, .modal-dialog textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(122, 61, 157, .12);
}
.results-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin: 54px 0 22px;
}
.results-heading h2 { margin: 0; font-size: 29px; }
#result-count { color: var(--muted); font-size: 14px; }
.jobs-list { display: grid; gap: 18px; }
.job-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.job-card:hover {
    border-color: #b997c8;
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(50, 25, 58, .1);
}
.job-card-main { display: block; padding: 25px 28px 22px; text-decoration: none; }
.job-card-top { display: flex; justify-content: space-between; gap: 20px; }
.job-card h3 { margin: 0; color: var(--purple-dark); font-size: 23px; line-height: 1.3; }
.arrow { color: var(--purple); font-size: 26px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 13px 0 17px; font-size: 14px; font-weight: 600; }
.job-meta span:not(:last-child)::before { content: "●"; margin-right: 9px; color: var(--purple); font-size: 8px; vertical-align: 2px; }
.job-card ul, .job-content ul { padding: 0; margin: 0; list-style: none; }
.job-card li { margin-top: 7px; color: #454047; }
.job-card li::before, .job-content li::before { content: "■"; margin-right: 10px; color: var(--purple); font-size: 8px; vertical-align: 3px; }
.job-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid #eee9ef;
    color: var(--muted);
    font-size: 13px;
}
.job-card-footer strong {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 16px;
    color: var(--white);
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    border: 2px solid #b867db;
    border-radius: 8px;
    box-shadow:
        0 0 0 3px rgba(122, 61, 157, .12),
        0 0 16px rgba(122, 61, 157, .48);
    white-space: nowrap;
    animation: job-button-pulse 2s ease-in-out infinite;
}

.job-card:hover .job-card-footer strong {
    background: linear-gradient(135deg, #914db1, #64257e);
    box-shadow:
        0 0 0 4px rgba(122, 61, 157, .16),
        0 0 24px rgba(122, 61, 157, .7);
}

@keyframes job-button-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 0 0 3px rgba(122, 61, 157, .12),
            0 0 13px rgba(122, 61, 157, .42);
    }
    50% {
        transform: scale(1.04);
        box-shadow:
            0 0 0 5px rgba(122, 61, 157, .16),
            0 0 25px rgba(122, 61, 157, .72);
    }
}

@media (prefers-reduced-motion: reduce) {
    .job-card-footer strong {
        animation: none;
    }
}
.empty-state { padding: 70px 20px; text-align: center; background: var(--soft); border-radius: 14px; }

.back-link { display: inline-block; margin-bottom: 30px; color: #eadcf0; text-decoration: none; }
.detail-hero h1 { max-width: 850px; font-size: clamp(34px, 5vw, 56px); }
.job-facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 24px 0 30px; }
.job-facts span { font-size: 15px; }
.primary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    padding: 0 26px;
    color: var(--white);
    background: var(--purple);
    border: 0;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}
.primary-button:hover { background: var(--purple-dark); transform: translateY(-1px); }
.detail-hero .primary-button { color: var(--purple-dark); background: var(--white); }
.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 70px;
    padding-block: 65px 90px;
}
.job-content .lead { margin: 0 0 48px; color: #3f3941; font-size: 20px; }
.job-content section + section { margin-top: 45px; }
.job-content h2 { margin: 0 0 17px; font-size: 27px; }
.job-content li { margin: 11px 0; padding-left: 2px; }
.apply-card {
    position: sticky;
    top: 125px;
    align-self: start;
    padding: 30px;
    background: var(--soft);
    border: 1px solid #e5dce8;
    border-radius: 14px;
}
.apply-card h2 { margin: 0 0 12px; font-size: 25px; line-height: 1.25; }
.apply-card p:not(.eyebrow) { color: var(--muted); }
.apply-card .primary-button { width: 100%; margin-top: 13px; }
.not-found { min-height: 62vh; padding-block: 100px; text-align: center; }
.not-found h1 { color: var(--purple-dark); }
.not-found p { margin: 18px auto 30px; max-width: 640px; }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 7, 11, .76); backdrop-filter: blur(4px); }
.modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 620px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 35px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .3);
}
.modal-dialog h2 { margin: 0; font-size: 29px; }
.modal-close {
    position: absolute;
    top: 13px;
    right: 16px;
    width: 40px;
    height: 40px;
    color: #4c454e;
    background: transparent;
    border: 0;
    font-size: 31px;
    line-height: 1;
}
.form-job-name { margin: 6px 0 22px; color: var(--purple-dark); font-weight: 600; }
#application-form { display: grid; gap: 16px; }
#application-form label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; }
#application-form input:not([type="checkbox"]), #application-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    resize: vertical;
}
#application-form .consent { grid-template-columns: auto 1fr; align-items: start; font-size: 12px; font-weight: 400; }
.consent input { margin-top: 4px; accent-color: var(--purple); }
.consent a { color: var(--purple-dark); }
.submit-button { width: 100%; margin-top: 5px; }
.honeypot { position: absolute !important; left: -9999px !important; }

.site-footer {
    min-height: 150px;
    padding: 35px max(20px, calc((100vw - var(--max-width)) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: #ddd;
    background: #050505;
}
.site-footer img { width: 145px; }
.site-footer div { text-align: right; }
.site-footer p { margin: 0 0 4px; font-size: 13px; }
.site-footer a { color: #fff; font-size: 14px; }

@media (max-width: 900px) {
    .filters { grid-template-columns: 1fr; margin-top: -70px; }
    .detail-layout { grid-template-columns: 1fr; gap: 35px; }
    .apply-card { position: static; }
}

@media (max-width: 600px) {
    .content-width { width: min(calc(100% - 28px), var(--max-width)); }
    .jobs-hero .content-width { padding-block: 62px 82px; }
    .detail-hero .content-width { padding-block: 34px 45px; }
    .job-card-main { padding: 21px 19px; }
    .job-card h3 { font-size: 20px; }
    .job-card-footer { flex-direction: column; gap: 5px; }
    .job-card-footer strong {
        align-self: flex-start;
        margin-top: 8px;
    }
    .results-heading { align-items: start; flex-direction: column; gap: 6px; }
    .detail-layout { padding-block: 42px 60px; }
    .modal { padding: 10px; }
    .modal-dialog { padding: 28px 20px; max-height: calc(100vh - 20px); }
}

@media (max-width: 768px) {
    main { margin-top: 100px; }
}
