/* Careers page: the shared section type, scroll reveals and the hero (careers.html).
   The hero uses the about page's blue band: the copy alone, over a faint emblem. The
   other parts: careers-why.css, careers-paths.css and careers-cta.css; the training journey
   has its own training-journey.css. */
.careers {
    --cr-ink: var(--kd-ink);
    --cr-body: var(--kd-body);
    --cr-brand: var(--kd-brand);
    --cr-ease: cubic-bezier(0.22, 1, 0.36, 1);
    color: var(--cr-body);
}

/* The hero's buttons glide down to their sections, as on the home page; with reduced motion
   they jump straight there. */
@media (prefers-reduced-motion: no-preference) {
    html:has(.careers) {
        scroll-behavior: smooth;
    }
}

/* ---------- Shared section type ---------- */
.cr-section {
    padding: 5.5rem 0;
}

@media (min-width: 900px) {
    .cr-section {
        padding: 7.5rem 0;
    }
}

.cr-inner {
    max-width: 76rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .cr-inner {
        padding: 0 1.5rem;
    }
}

.cr-kicker {
    margin: 0 0 1rem;
    color: var(--cr-brand);
    font-size: 0.95rem;
    font-weight: 600;
}

.cr-title {
    margin: 0;
    color: var(--cr-ink);
    font-size: clamp(2.1rem, 4.4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.07;
    letter-spacing: -0.03em;
}

.cr-lede {
    max-width: 36rem;
    margin: 1.1rem 0 0;
    font-size: 1.1rem;
    line-height: 1.65;
}

/* Scroll reveals: careers.js adds .is-js, then .is-in as each part comes into view. The
   transition sits on .is-in only, so nothing animates while the page is still loading.
   --d staggers siblings. */
.careers.is-js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}

.careers.is-js [data-reveal].is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s var(--cr-ease), transform 0.8s var(--cr-ease);
    transition-delay: calc(var(--d, 0) * 90ms);
}

/* ---------- Hero ---------- */
.cr-hero {
    position: relative;
    overflow: hidden;
    padding: 7.5rem 0 4.5rem;
    background:
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px) 0 0 / 32px 32px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px) 0 0 / 32px 32px,
        radial-gradient(40% 45% at 80% 45%, rgba(52, 211, 153, 0.1), transparent 70%),
        linear-gradient(180deg, var(--kd-brand) 0%, #354F8A 30%, var(--kd-brand-deep) 100%);
    color: #FFFFFF;
}

@media (min-width: 900px) {
    .cr-hero {
        padding: 9.5rem 0 7.5rem;
    }
}

/* The emblem, large and faint, to the right of the copy; on phones it sits behind it. */
.cr-hero__mark {
    position: absolute;
    top: 50%;
    right: -6rem;
    width: min(34rem, 90vw);
    height: auto;
    opacity: 0.06;
    transform: translateY(-46%);
    pointer-events: none;
}

@media (min-width: 900px) {
    .cr-hero__mark {
        right: max(-4rem, calc((100vw - 76rem) / 2 - 2rem));
    }
}

.cr-hero__copy {
    position: relative;
    max-width: 46rem;
}

.cr-hero__kicker {
    margin: 0 0 1.1rem;
    color: var(--kd-mint-soft);
    font-size: 0.95rem;
    font-weight: 600;
}

.cr-hero__title {
    margin: 0;
    font-size: clamp(2.4rem, 5.2vw, 4.25rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.cr-hero__line {
    display: block;
}

.cr-hero__accent {
    color: var(--kd-mint-light);
}

.cr-hero__lede {
    max-width: 33rem;
    margin: 1.4rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.65;
}

.cr-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-top: 2rem;
}

.cr-hero__btn {
    padding: 0.9rem 1.4rem;
    border-radius: 14px;
    font-weight: 700;
    white-space: nowrap;
    text-align: center;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

/* On phones the two buttons stack at full width, so they match and are easy to tap. */
@media (max-width: 639px) {
    .cr-hero__btn {
        flex: 1 1 100%;
    }
}

.cr-hero__btn--primary {
    background: var(--kd-mint-bright);
    color: #0B1B3F;
    box-shadow: 0 10px 30px -10px rgba(52, 211, 153, 0.6);
}

.cr-hero__btn--primary:hover {
    background: var(--kd-mint-light);
    transform: translateY(-2px);
}

.cr-hero__btn--ghost {
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
}

.cr-hero__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cr-hero__btn:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 3px;
}

/* The copy rises in on load, line by line, as on the home hero. */
.cr-hero__copy > *,
.cr-hero__line {
    animation: cr-rise 0.8s var(--cr-ease) both;
    animation-delay: calc(var(--i, 0) * 70ms);
}

.cr-hero__title {
    animation: none;
}

@keyframes cr-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cr-hero__copy > *,
    .cr-hero__line {
        animation: none;
    }

    .careers.is-js [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
