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

@font-face {
    font-family: 'Gilda Display';
    src: url('/fonts/GildaDisplay-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #05070a;
    --ink-soft: #0d1318;
    --paper: #f5f7f4;
    --white: #ffffff;
    --slate: #52606d;
    --muted: #9aa8b2;
    --line: #dce3df;
    --dark-line: rgba(255, 255, 255, 0.12);
    --teal: #2dd4bf;
    --teal-dark: #087f72;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    line-height: 1.65;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    border-bottom: 1px solid var(--dark-line);
    background: rgba(5, 7, 10, 0.92);
    backdrop-filter: blur(14px);
}

.nav-inner,
.page-width {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
}

.nav-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--white);
    text-decoration: none;
    font-size: 21px;
    font-weight: 800;
    line-height: 1;
}

.brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.brand-accent {
    color: var(--teal);
}

.brand-mark {
    position: relative;
    top: -8px;
    margin-left: 2px;
    color: #d6dce1;
    font-size: 6px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.language-switch {
    display: inline-flex;
    flex-shrink: 0;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.04);
}

.language-switch button {
    min-width: 36px;
    min-height: 32px;
    padding: 0 8px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #9eabb3;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.language-switch button:hover {
    color: var(--white);
}

.language-switch button[aria-pressed="true"] {
    background: var(--teal);
    color: var(--ink);
}

.nav-link,
.footer-link,
.breadcrumb a {
    text-decoration: none;
}

.nav-link {
    color: #c8d0d6;
    font-size: 12px;
    font-weight: 700;
}

.nav-link:hover,
.footer-link:hover,
.breadcrumb a:hover {
    color: var(--teal);
}

.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid var(--teal);
    border-radius: 5px;
    background: var(--teal);
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    font-family: inherit;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease;
}

.button:hover {
    border-color: var(--white);
    background: var(--white);
}

.button-secondary {
    border-color: var(--dark-line);
    background: transparent;
    color: var(--white);
}

.button:focus-visible,
.language-switch button:focus-visible,
.nav-link:focus-visible,
.brand:focus-visible,
.footer-link:focus-visible,
.breadcrumb a:focus-visible,
.job-row:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 4px;
}

.dark-intro {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--dark-line);
    background-color: var(--ink);
    color: var(--white);
}

.dark-intro::after {
    content: '';
    position: absolute;
    inset: 72px 0 0;
    pointer-events: none;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(45, 212, 191, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 212, 191, 0.12) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to right, transparent 0%, black 62%, transparent 100%);
}

.intro-inner {
    position: relative;
    z-index: 1;
    padding: 126px 0 54px;
}

.careers-intro .intro-inner {
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 72px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--teal);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--teal);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.breadcrumb-separator {
    color: #5f6b73;
}

h1,
h2,
h3 {
    margin-top: 0;
}

h1,
.display-heading {
    font-family: 'Gilda Display', serif;
    font-weight: 400;
    line-height: 1.06;
}

h1 {
    max-width: 820px;
    margin-bottom: 18px;
    font-size: clamp(44px, 6vw, 70px);
}

.careers-intro h1 {
    font-size: clamp(52px, 7vw, 82px);
}

.intro-copy {
    max-width: 660px;
    margin: 0;
    color: #c9d3d9;
    font-size: 18px;
    line-height: 1.6;
}

.role-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 24px;
    margin-top: 24px;
    color: #dce4e8;
    font-size: 13px;
    font-weight: 700;
}

.role-meta span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.role-meta span::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--teal);
}

.positions-section {
    padding: 72px 0 92px;
}

.section-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.section-heading-row h2 {
    margin-bottom: 0;
    font-family: 'Gilda Display', serif;
    font-size: 38px;
    font-weight: 400;
    line-height: 1.1;
}

.position-count {
    color: var(--slate);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.job-list {
    border-top: 1px solid #cbd5d0;
}

.job-row {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(150px, 0.7fr) minmax(145px, 0.6fr) auto;
    gap: 24px;
    align-items: center;
    min-height: 116px;
    padding: 24px 4px;
    border-bottom: 1px solid #cbd5d0;
    text-decoration: none;
    transition: padding 160ms ease, border-color 160ms ease, background 160ms ease;
}

.job-row:hover {
    padding-right: 16px;
    padding-left: 16px;
    border-bottom-color: var(--teal-dark);
    background: var(--white);
}

.job-title {
    display: block;
    margin-bottom: 4px;
    color: var(--ink);
    font-size: 19px;
    font-weight: 800;
}

.job-reference,
.job-detail {
    color: var(--slate);
    font-size: 13px;
}

.job-action {
    color: var(--teal-dark);
    font-size: 13px;
    font-weight: 800;
}

.careers-note {
    max-width: 700px;
    margin-top: 28px;
    color: var(--slate);
    font-size: 13px;
}

.detail-shell {
    width: min(960px, calc(100% - 40px));
    margin: 0 auto;
    padding: 54px 0 72px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 60px;
    align-items: start;
}

.detail-main {
    min-width: 0;
}

.detail-section {
    padding: 0 0 38px;
}

.detail-section + .detail-section {
    padding-top: 38px;
    border-top: 1px solid var(--line);
}

.detail-section h2 {
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
}

.detail-section p {
    margin: 0 0 13px;
    color: #35434d;
}

.detail-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.detail-list li {
    position: relative;
    padding: 0 0 14px 24px;
    color: #35434d;
}

.detail-list li:last-child {
    padding-bottom: 0;
}

.detail-list li::before {
    content: '';
    position: absolute;
    top: 9px;
    left: 0;
    width: 7px;
    height: 7px;
    border: 2px solid var(--teal-dark);
    border-radius: 50%;
}

.detail-list strong {
    color: var(--ink);
}

.apply-panel {
    position: sticky;
    top: 96px;
    padding: 24px;
    border: 1px solid #202b32;
    border-radius: 6px;
    background: var(--ink-soft);
    color: var(--white);
}

.apply-panel h2 {
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.35;
}

.apply-panel p {
    margin: 0 0 20px;
    color: #aeb9c0;
    font-size: 13px;
}

.apply-email {
    display: block;
    margin-top: 18px;
    padding: 16px 14px;
    border-left: 3px solid var(--teal);
    background: rgba(45, 212, 191, 0.08);
    color: var(--white);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
    user-select: all;
}

.apply-email-label {
    display: block;
    margin-bottom: 4px;
    color: var(--teal);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.role-facts {
    margin: 24px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--dark-line);
}

.role-facts div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    font-size: 11px;
}

.role-facts dt {
    color: #7f8d96;
}

.role-facts dd {
    margin: 0;
    color: #e4eaed;
    font-weight: 700;
    text-align: right;
}

.supporters {
    padding: 42px 0;
    border-top: 1px solid var(--line);
    background: var(--white);
}

.supporters-inner {
    width: min(820px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 52px;
}

.supporters h2 {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.logo-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 44px;
}

.logo-row img {
    width: 100%;
    max-width: 130px;
    max-height: 46px;
    margin: 0 auto;
    object-fit: contain;
}

.site-footer {
    padding: 32px 0;
    background: var(--ink);
    color: #a8b2b9;
}

.footer-inner {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-size: 12px;
}

.footer-link {
    color: var(--white);
    font-weight: 700;
}

@media (max-width: 760px) {
    .nav-inner,
    .page-width,
    .detail-shell,
    .footer-inner {
        width: min(100% - 32px, 1080px);
    }

    .nav-link {
        display: none;
    }

    .nav-actions {
        gap: 10px;
    }

    .dark-intro::after {
        background-size: 42px 42px;
    }

    .intro-inner {
        padding: 108px 0 40px;
    }

    .careers-intro .intro-inner {
        min-height: 370px;
        padding-bottom: 52px;
    }

    h1 {
        font-size: 44px;
    }

    .careers-intro h1 {
        font-size: 54px;
    }

    .intro-copy {
        font-size: 16px;
    }

    .positions-section {
        padding: 54px 0 68px;
    }

    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .job-row {
        grid-template-columns: 1fr auto;
        gap: 6px 18px;
        min-height: 0;
        padding: 22px 2px;
    }

    .job-title-block,
    .job-reference {
        grid-column: 1;
    }

    .job-detail {
        grid-column: 1;
    }

    .job-action {
        grid-column: 2;
        grid-row: 1 / span 3;
        align-self: center;
    }

    .detail-shell {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 40px 0 56px;
    }

    .detail-section {
        padding-bottom: 30px;
    }

    .detail-section + .detail-section {
        padding-top: 30px;
    }

    .apply-panel {
        position: static;
    }

    .supporters-inner {
        width: min(100% - 32px, 820px);
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .logo-row {
        gap: 24px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 380px) {
    .brand {
        font-size: 18px;
    }

    .brand img {
        width: 32px;
        height: 32px;
    }

    .button {
        padding-right: 7px;
        padding-left: 7px;
        font-size: 11px;
    }

    .language-switch button {
        min-width: 32px;
        padding-right: 6px;
        padding-left: 6px;
    }

    .logo-row {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button,
    .job-row {
        transition: none;
    }
}