/* =====================================================
   CAREERS — LIGHT PAGE

   Loaded after site.css, which supplies the tokens,
   the type scale, .container and .section-grid. This
   file adds what the job ad needs and otherwise stays
   on the front page's palette: white ground, --black
   text, --blue as the only accent.

   The amber this page used to run on is gone. #e8a33d
   is 2.2:1 on white, so on a light ground it could
   only have survived as --amber-ink, and two accent
   colours across one site read as an accident rather
   than a decision.
===================================================== */

body.careers-page {
    background: var(--white);
    color: var(--black);
}


/* =====================================================
   CAREERS / HEADER

   Deliberately empty. The page now carries the site
   navbar exactly as index.html does — white ground,
   dark logo, blue Apply button — which is why the
   markup drops the .on-dark class instead of keeping
   it and restyling it back to light.
===================================================== */


/* =====================================================
   CAREERS / HERO
===================================================== */

.role-hero {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: center;
    padding: 170px 7vw 100px;
    overflow: hidden;
}

.role-hero-glow {
    position: absolute;
    top: -30%;
    right: -15%;
    width: min(120vw, 1400px);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(20, 89, 217, 0.10) 0%,
            rgba(20, 89, 217, 0.03) 38%,
            rgba(255, 255, 255, 0) 68%
        );
    pointer-events: none;
    animation: glowBreathe 11s ease-in-out infinite;
}

@keyframes glowBreathe {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.85;
    }

    50% {
        transform: scale(1.09);
        opacity: 1;
    }

}

.role-hero-mesh {
    position: absolute;
    inset: -140px;
    /* 70px, not 78: gridDrift translates by exactly
       70px, so any other tile size makes the loop
       visibly jump on every repeat. These are the
       front page's own grid values. */
    background-image:
        linear-gradient(
            rgba(20, 89, 217, 0.045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(20, 89, 217, 0.045) 1px,
            transparent 1px
        );
    background-size: 70px 70px;
    animation: gridDrift 22s linear infinite;
    pointer-events: none;
    mask-image:
        radial-gradient(
            circle at 62% 42%,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0) 72%
        );
    -webkit-mask-image:
        radial-gradient(
            circle at 62% 42%,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0) 72%
        );
}

.role-hero-inner {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.role-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
    color: var(--blue);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    animation:
        heroRise 0.8s
        cubic-bezier(0.16, 1, 0.3, 1)
        0.05s both;
}

.role-eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--blue);
    transform-origin: left center;
    animation:
        roleRule 0.7s
        cubic-bezier(0.16, 1, 0.3, 1)
        0.12s both;
}

@keyframes roleRule {

    from {
        transform: scaleX(0);
    }

}

.role-hero h1 {
    max-width: 1080px;
    /* Sized so the longest line, "Build the algorithmic
       engine.", still gets a line of its own across
       desktop widths — three beats only read as three
       if none of them wraps. */
    font-size: clamp(46px, 6.8vw, 100px);
    line-height: 0.92;
    letter-spacing: -5px;
    font-weight: 600;
}

.role-hero h1 .role-accent {
    color: var(--blue);
}

/* --amber-ink, not --amber. #e8a33d is 2.2:1 on white,
   which fails even the 3:1 that large text is allowed;
   the ink variant is 4.7:1. It is the same colour the
   front page emphasises "algorithmic decision-making
   and execution" in, so the warm/cool pair across the
   three lines is the site's own, not a third palette
   invented here. */

.role-hero h1 .role-accent-warm {
    color: var(--amber-ink);
}

.role-line-mask {
    display: block;
    overflow: hidden;
    padding-bottom: 0.09em;
    margin-bottom: -0.09em;
}

.role-line {
    display: block;
    animation:
        heroLine 1.05s
        cubic-bezier(0.16, 1, 0.3, 1)
        both;
}

/* Addressed by position, not first/last: with three
   masks the middle one would otherwise match neither
   rule, fall back to a 0s delay, and rise first. */

.role-line-mask:nth-of-type(1) .role-line {
    animation-delay: 0.1s;
}

.role-line-mask:nth-of-type(2) .role-line {
    animation-delay: 0.22s;
}

.role-line-mask:nth-of-type(3) .role-line {
    animation-delay: 0.34s;
}

/* The formal title, boxed. Same device as the front
   page's .career-opening-tag — 1px solid --blue with a
   faint tint — so the two places the site names this
   role are recognisably the same object.

   flex + fit-content, not inline-flex: the box has to
   end where the text ends, and an inline-flex box also
   sits in a line box, which hangs its descender space
   underneath. This is block-level and shrunk to its
   content, so the 40px above it is the only gap. */

.role-title-formal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 9px;
    width: fit-content;
    max-width: 100%;
    margin-top: 40px;
    padding: 11px 17px;
    border: 1px solid var(--blue);
    background: rgba(20, 89, 217, 0.05);
    color: var(--black);
    font-family: var(--mono);
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.6px;
    animation:
        heroRise 0.9s
        cubic-bezier(0.16, 1, 0.3, 1)
        0.48s both;
}

/* The separator hangs off the segment before it rather
   than being a flex item of its own, so when the box
   wraps on a phone no line can begin with a stray dot. */

.role-title-formal span:not(:last-child)::after {
    content: "\00b7";
    margin-left: 9px;
    color: var(--blue);
}

/* Two segments are the job, the third is us. */

.role-title-formal span:last-child {
    color: var(--grey);
}

/* The role in the words the front page uses for it,
   between the formal breakdown and the pitch. 23px so
   it outranks the 19px intro below it without going
   near the h1, and 0.53s so it rises between the box
   at 0.48 and the intro at 0.58 — the hero's ladder is
   unchanged, this just takes the rung between them. */

.role-title-plain {
    max-width: 700px;
    margin-top: 26px;
    color: var(--black);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.4px;
    animation:
        heroRise 0.9s
        cubic-bezier(0.16, 1, 0.3, 1)
        0.53s both;
}

/* 34px here against the 26px above the bold line, so
   the box and the role read as one title block and the
   pitch reads as the next thing. */

.role-intro {
    max-width: 700px;
    margin-top: 34px;
    color: var(--grey);
    font-size: 19px;
    line-height: 1.65;
    animation:
        heroRise 0.9s
        cubic-bezier(0.16, 1, 0.3, 1)
        0.58s both;
}


/* =====================================================
   CAREERS / FACT STRIP
===================================================== */

.role-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 52px;
    /* The 1px gaps show this through as hairlines. The
       border closes the box: a gap grid on a white
       ground is otherwise open on all four outer
       edges, which on dark it never looked like. */
    border: 1px solid var(--border);
    background: var(--border);
    animation:
        heroRise 0.9s
        cubic-bezier(0.16, 1, 0.3, 1)
        0.7s both;
}

.role-fact {
    padding: 20px 22px 22px;
    background: var(--white);
}

.role-fact small {
    display: block;
    margin-bottom: 8px;
    color: #9ba2aa;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.35px;
    text-transform: uppercase;
}

.role-fact strong {
    display: block;
    color: var(--black);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
}

/* Only the ownership cell carries a note. Without it
   the strip claims a single layer while section 04
   promises the whole stack. */

.role-fact-note {
    display: block;
    margin-top: 8px;
    color: var(--blue);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.8px;
}

.role-cta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 28px;
    margin-top: 46px;
    animation:
        heroRise 0.9s
        cubic-bezier(0.16, 1, 0.3, 1)
        0.8s both;
}

.role-apply {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 17px 26px;
    color: var(--white);
    background: var(--blue);
    border-radius: 3px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.role-apply:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}

.role-apply-note {
    color: var(--grey);
    font-size: 13px;
}


/* =====================================================
   CAREERS / AGENT BOARD

   The one flourish on the page. It shows the working
   day the advert is describing: several tracks moving
   at once, and a human deciding which diff matters.
===================================================== */

.agent-board {
    max-width: 1250px;
    margin: 0 auto;
    /* White on the --light panel section, so the
       board reads as a card lifted off the ground
       rather than a differently tinted slab. */
    border: 1px solid var(--border);
    background:
        radial-gradient(
            130% 150% at 12% 0%,
            var(--white) 0%,
            var(--white) 46%,
            #f1f3f6 100%
        );
}

.agent-board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    color: var(--grey);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.agent-board-head span {
    display: flex;
    align-items: center;
    gap: 9px;
}

.agent-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
    animation: intelPulse 2.4s ease-in-out infinite;
}

.agent-row {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) 150px 74px;
    align-items: center;
    gap: 22px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 12.5px;
}

.agent-name {
    color: var(--black);
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-track {
    height: 4px;
    background: var(--border);
    overflow: hidden;
}

.agent-fill {
    display: block;
    width: 0;
    height: 100%;
    background: var(--blue);
    transition: width 0.42s linear;
}

.agent-state {
    color: var(--grey);
    font-size: 11px;
    letter-spacing: 0.8px;
    text-align: right;
}

.agent-row.is-done .agent-state {
    color: var(--green);
}

.agent-row.is-done .agent-fill {
    background: var(--green);
}

.agent-human {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    color: var(--black);
    font-family: var(--mono);
    font-size: 12.5px;
}

.agent-human b {
    color: var(--blue);
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    font-size: 10px;
}

.agent-caption {
    max-width: 1250px;
    margin: 18px auto 0;
    color: var(--grey);
    font-size: 12.5px;
    line-height: 1.7;
}


/* =====================================================
   CAREERS / SECTIONS
===================================================== */

.role-section {
    position: relative;
    padding: 130px 7vw;
}

.role-section.is-panel {
    padding-top: 96px;
    padding-bottom: 96px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--light);
}

/* No override for .section-label or .section-title
   span: site.css already paints both --blue, which is
   this page's accent now too. */

.role-copy {
    max-width: 700px;
    margin-top: 34px;
    color: var(--grey);
    font-size: 16px;
    line-height: 1.85;
}

.role-copy + .role-copy {
    margin-top: 22px;
}

/* A claim gets its own beat rather than a sentence at
   the end of a paragraph. "milliseconds" is blue for
   the same reason the navbar clock's ms digits are —
   it is the one number on the site that carries the
   speed argument, and it is the same word in both
   places. */

.role-claim {
    max-width: 700px;
    margin-top: 32px;
    color: var(--black);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.2px;
}

.role-claim span {
    color: var(--blue);
}

/* On a dark band --blue is 3.3:1, so the emphasis
   follows the ground like every other accent here. */

.is-deep .role-claim {
    color: white;
}

.is-deep .role-claim span {
    color: var(--amber);
}

.role-blocks {
    display: grid;
    gap: 1px;
    margin-top: 58px;
    border: 1px solid var(--border);
    background: var(--border);
}

.role-block {
    padding: 32px 30px 36px;
    background: var(--white);
}

.role-block-mark {
    display: block;
    margin-bottom: 18px;
    color: var(--blue);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1.5px;
}

.role-block h3 {
    margin-bottom: 12px;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -0.3px;
}

.role-block p {
    color: var(--grey);
    font-size: 14px;
    line-height: 1.8;
}


/* =====================================================
   CAREERS / STACK SPINE
===================================================== */

.stack-spine {
    margin-top: 56px;
    border-top: 1px solid var(--border);
}

.stack-layer {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateX(-14px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.stack-spine.visible .stack-layer {
    opacity: 1;
    transform: translateX(0);
}

.stack-spine.visible .stack-layer:nth-child(2) {
    transition-delay: 0.08s;
}

.stack-spine.visible .stack-layer:nth-child(3) {
    transition-delay: 0.16s;
}

.stack-spine.visible .stack-layer:nth-child(4) {
    transition-delay: 0.24s;
}

.stack-spine.visible .stack-layer:nth-child(5) {
    transition-delay: 0.32s;
}

.stack-index {
    color: #9ba2aa;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 1.4px;
}

.stack-name {
    color: var(--grey);
    font-size: 17px;
    font-weight: 500;
}

.stack-role {
    color: #9ba2aa;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.stack-layer.is-yours {
    background:
        linear-gradient(
            90deg,
            rgba(20, 89, 217, 0.07),
            rgba(20, 89, 217, 0)
        );
}

.stack-layer.is-yours .stack-index,
.stack-layer.is-yours .stack-role {
    color: var(--blue);
}

.stack-layer.is-yours .stack-name {
    color: var(--black);
}

.stack-layer.is-adjacent .stack-name {
    color: #3f4855;
}

.stack-layer.is-adjacent .stack-index,
.stack-layer.is-adjacent .stack-role {
    color: var(--grey);
}


/* =====================================================
   CAREERS / LISTS
===================================================== */

.role-list {
    max-width: 780px;
    margin-top: 46px;
    list-style: none;
}

.role-list li {
    position: relative;
    padding: 0 0 22px 30px;
    color: var(--grey);
    font-size: 15.5px;
    line-height: 1.8;
}

.role-list li:last-child {
    padding-bottom: 0;
}

.role-list li::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 4px;
    width: 7px;
    height: 7px;
    background: var(--blue);
}

.role-list strong {
    color: var(--black);
    font-weight: 600;
}

.role-facts-table {
    max-width: 820px;
    margin-top: 46px;
    border-top: 1px solid var(--border);
}

/* 220px, not 200: the longest key is WHY MOSTLY ON
   SITE, and at 13px mono with 1.2px tracking that is
   ~162px. The old 200px column had room for it at
   10px and would not have had it at 13px without
   wrapping mid-key. */

.role-facts-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}

/* The keys were 10px, which is smaller than anything
   else on the page that a reader is meant to actually
   read. 13px and bold, with the tracking eased from
   1.5 to 1.2 — wide tracking is what makes small caps
   legible and what makes larger caps loose. */

.role-facts-row dt {
    color: var(--blue);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding-top: 3px;
}

.role-facts-row dd {
    color: var(--grey);
    font-size: 15px;
    line-height: 1.75;
}

.role-facts-row dd strong {
    color: var(--black);
    font-weight: 600;
}


/* =====================================================
   CAREERS / CLOSING
===================================================== */

.role-close {
    position: relative;
    padding: 150px 7vw 160px;
    overflow: hidden;
    text-align: left;
}

.role-close-inner {
    max-width: 1250px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.role-close h2 {
    max-width: 900px;
    font-size: clamp(42px, 5.6vw, 82px);
    line-height: 0.95;
    letter-spacing: -4px;
    font-weight: 500;
}

.role-close h2 span {
    color: var(--blue);
}

.role-close p {
    max-width: 620px;
    margin-top: 30px;
    color: var(--grey);
    font-size: 16px;
    line-height: 1.8;
}

/* All that survives here is the underline the dark
   footer added. Ground, logo and text colour come
   from site.css unchanged. */

.careers-page .footer-right a {
    border-bottom: 1px solid transparent;
    transition:
        color 0.25s ease,
        border-color 0.25s ease;
}

.careers-page .footer-right a:hover {
    color: var(--grey);
    border-bottom-color: var(--border);
}


/* =====================================================
   CAREERS / RESPONSIVE
===================================================== */

@media (min-width: 901px) {

    .role-blocks {
        grid-template-columns: repeat(3, 1fr);
    }

}


@media (max-width: 900px) {

    .role-hero {
        min-height: 0;
        padding: 130px 25px 80px;
    }

    .role-hero h1 {
        font-size: clamp(40px, 11vw, 62px);
        letter-spacing: -2.5px;
    }

    .role-title-plain {
        font-size: 20px;
    }

    .role-claim {
        font-size: 18px;
    }

    .role-intro {
        font-size: 17px;
    }

    .role-title-formal {
        padding: 10px 14px;
        font-size: 12px;
    }

    .role-facts {
        margin-top: 40px;
    }

    .role-facts {
        grid-template-columns: repeat(2, 1fr);
    }

    .role-section {
        padding: 88px 25px;
    }

    .role-section.is-panel {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .agent-row {
        grid-template-columns:
            minmax(0, 1fr) 64px;
        gap: 14px;
        padding: 14px 16px;
        font-size: 11.5px;
    }

    .agent-track {
        display: none;
    }

    .agent-board-head,
    .agent-human {
        padding-left: 16px;
        padding-right: 16px;
    }

    .agent-human {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .stack-layer {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 14px;
    }

    .stack-role {
        grid-column: 2;
        margin-top: 4px;
    }

    .role-facts-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .role-close {
        padding: 100px 25px 110px;
    }

}


@media (prefers-reduced-motion: reduce) {

    .role-filled,
    .role-eyebrow,
    .role-eyebrow::before,
    .role-line,
    .role-title-formal,
    .role-title-plain,
    .role-intro,
    .role-facts,
    .role-cta-row {
        animation-delay: 0s !important;
    }

    .role-hero-glow,
    .role-hero-mesh,
    .agent-dot {
        animation: none;
    }

    .stack-layer {
        opacity: 1;
        transform: none;
    }

}


/* =====================================================
   CAREERS / PROMOTION PATH

   The dot uses currentColor, so animating the stage's
   colour lights the label and its dot together from a
   single keyframe.
===================================================== */

.role-pipeline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 26px;
    max-width: 1250px;
    margin: 20px auto 0;
    padding: 16px 22px;
    border: 1px solid var(--border);
    background: var(--white);
}

.role-pipeline-label {
    color: #9ba2aa;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.role-pipeline-track {
    display: flex;
    align-items: center;
}

/* Boxed, like .role-title-formal — the third place on
   the site that puts a border round a label, after
   that one and the front page's .career-opening-tag.

   border-color is currentColor, so the keyframe that
   lights the label lights its box and its dot from one
   declaration. The fill has to be animated explicitly,
   and it interpolates from rgba(…, 0) rather than from
   `transparent`, which is rgba(0, 0, 0, 0) and would
   drag the tween through black. */

.role-stage {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 13px;
    border: 1px solid currentColor;
    background: rgba(20, 89, 217, 0);
    color: var(--grey);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 1.6px;
    white-space: nowrap;
    animation: stageOn 4.8s linear infinite;
}

.role-stage-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.stage-one {
    animation-delay: 0s;
}

.stage-two {
    animation-delay: 1.6s;
}

.stage-three {
    animation-delay: 3.2s;
}

@keyframes stageOn {

    0%,
    4% {
        color: var(--grey);
        background: rgba(20, 89, 217, 0);
    }

    10%,
    28% {
        color: var(--blue);
        background: rgba(20, 89, 217, 0.07);
    }

    38%,
    100% {
        color: var(--grey);
        background: rgba(20, 89, 217, 0);
    }

}

.role-stage-link {
    width: 46px;
    height: 1px;
    margin: 0 14px;
    background: var(--border);
    animation: linkOn 4.8s linear infinite;
}

.link-one {
    animation-delay: 0.8s;
}

.link-two {
    animation-delay: 2.4s;
}

@keyframes linkOn {

    0%,
    4% {
        background: var(--border);
    }

    10%,
    28% {
        background: rgba(20, 89, 217, 0.7);
    }

    38%,
    100% {
        background: var(--border);
    }

}


@media (max-width: 900px) {

    .role-pipeline {
        gap: 10px 14px;
        padding: 14px 16px;
    }

    .role-stage {
        padding: 6px 10px;
    }

    .role-stage-link {
        width: 20px;
        margin: 0 8px;
    }

}


/* .role-pipeline-track does not wrap, so on a narrow
   phone the boxed chips plus their connectors overflow
   the strip rather than reflowing inside it: measured,
   three chips and two links come to ~276px against
   ~278px of inner width at 360px. Two pixels is not a
   margin.

   Below 560px the connectors go and the track wraps.
   DEV, TEST, PROD is self-evidently a sequence without
   a line drawn between the boxes, and a wrapped line
   can then never open with a dangling connector. */

@media (max-width: 560px) {

    .role-pipeline-track {
        flex-wrap: wrap;
        gap: 8px;
    }

    .role-stage-link {
        display: none;
    }

}


@media (prefers-reduced-motion: reduce) {

    .role-stage,
    .role-stage-link {
        animation: none;
    }

    .role-stage {
        color: var(--blue);
        background: rgba(20, 89, 217, 0.07);
    }

    .role-stage-link {
        background: rgba(20, 89, 217, 0.55);
    }

}


/* =====================================================
   CAREERS / THE FUN STUFF

   Four stations. Only one of them belongs to the tool,
   which is the entire argument the section is making,
   so ownership is carried by the border and not by a
   caption. Deliberately static — the agent board below
   is the animated element and two competing animations
   would just be noise.
===================================================== */

.fun-loop {
    max-width: 900px;
    margin-top: 52px;
}

.fun-loop-title {
    margin-bottom: 20px;
    color: var(--blue);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.fun-loop-row {
    display: flex;
    align-items: stretch;
}

.fun-node {
    flex: 1 1 0;
    min-width: 0;
    padding: 18px 16px 20px;
    border: 1px solid var(--border);
    background: transparent;
    transition:
        border-color 0.25s ease,
        transform 0.25s ease;
}

.fun-node.is-yours {
    border-color: rgba(20, 89, 217, 0.35);
    background: rgba(20, 89, 217, 0.04);
}

.fun-node.is-tool {
    border-style: dashed;
    border-color: #c3cad2;
    background: transparent;
}

.fun-node:hover {
    transform: translateY(-3px);
}

.fun-node.is-yours:hover {
    border-color: var(--blue);
}

.fun-owner {
    display: block;
    margin-bottom: 12px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.fun-node.is-yours .fun-owner {
    color: var(--blue);
}

.fun-node.is-tool .fun-owner {
    color: var(--grey);
}

.fun-node strong {
    display: block;
    margin-bottom: 7px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.3px;
}

.fun-node.is-yours strong {
    color: var(--black);
}

.fun-node.is-tool strong {
    color: var(--grey);
}

.fun-sub {
    display: block;
    color: var(--grey);
    font-size: 12.5px;
    line-height: 1.5;
}

.fun-arrow {
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8bfc7;
    font-size: 16px;
}


/* The loop closes underneath: a U drawn with three
   borders, and a triangle at the left end pointing
   back up into Design. */

.fun-return {
    position: relative;
    height: 40px;
    margin: 0 42px;
    border-left: 1px solid rgba(20, 89, 217, 0.3);
    border-right: 1px solid rgba(20, 89, 217, 0.3);
    border-bottom: 1px solid rgba(20, 89, 217, 0.3);
    border-radius: 0 0 4px 4px;
}

.fun-return::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -4px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 6px solid rgba(20, 89, 217, 0.55);
}

.fun-return-label {
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    padding: 0 12px;
    background: var(--white);
    color: var(--grey);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    white-space: nowrap;
}


/* The panel sections sit on a different ground, so the
   label that interrupts the line has to match it. */

.role-section.is-panel .fun-return-label {
    background: var(--light);
}


@media (max-width: 760px) {

    .fun-loop {
        margin-top: 40px;
    }

    .fun-loop-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .fun-arrow {
        flex: none;
        height: 26px;
        transform: rotate(90deg);
    }

    .fun-return {
        height: 30px;
        margin: 0 24px;
    }

    .fun-return-label {
        font-size: 9px;
        letter-spacing: 1px;
    }

}


@media (prefers-reduced-motion: reduce) {

    .fun-node:hover {
        transform: none;
    }

}


@media (max-width: 560px) {

    .role-facts {
        grid-template-columns: minmax(0, 1fr);
    }

}


/* =====================================================
   CAREERS / DARK BANDS

   The front page runs exactly one dark band on an
   otherwise white site — 03 / Intelligence — and this
   page borrows the device for two: the working day and
   the closing ask. Not the page, two bands of it.

   The accent switches with the ground, which is the
   front page's rule and not a decision made here:
   #e8a33d is 9.1:1 on --deep and 2.2:1 on white, and
   --blue is 6.1:1 on white and 3.3:1 on --deep. So
   amber inside a band, blue outside one, and the title
   accent becomes --blue-soft exactly as it does in
   .intelligence.

   Every rule below is prefixed .is-deep and the block
   sits last in the file, so it beats the light rules
   on specificity and on order both. The panel values
   it overrides are still there, one class weaker.
===================================================== */

.role-section.is-deep,
.role-close.is-deep {
    background: var(--deep);
    color: white;
}

.role-section.is-deep {
    border-top-color: rgba(127, 165, 240, 0.14);
    border-bottom-color: rgba(127, 165, 240, 0.14);
}

.is-deep .section-label {
    color: var(--amber);
}

.is-deep .section-title span {
    color: var(--blue-soft);
}

.is-deep .role-copy {
    color: #9aa4b1;
}


/* --- the fun stuff, on deep --- */

.is-deep .fun-loop-title {
    color: var(--amber);
}

.is-deep .fun-node {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.014);
}

.is-deep .fun-node.is-yours {
    border-color: rgba(232, 163, 61, 0.42);
    background: rgba(232, 163, 61, 0.05);
}

.is-deep .fun-node.is-yours:hover {
    border-color: rgba(232, 163, 61, 0.75);
}

.is-deep .fun-node.is-tool {
    border-color: rgba(127, 165, 240, 0.34);
    background: transparent;
}

.is-deep .fun-node.is-yours .fun-owner {
    color: var(--amber);
}

.is-deep .fun-node.is-tool .fun-owner {
    color: rgba(127, 165, 240, 0.72);
}

.is-deep .fun-node.is-yours strong {
    color: white;
}

.is-deep .fun-node.is-tool strong {
    color: rgba(255, 255, 255, 0.5);
}

.is-deep .fun-sub {
    color: rgba(255, 255, 255, 0.4);
}

.is-deep .fun-arrow {
    color: rgba(255, 255, 255, 0.26);
}

.is-deep .fun-return {
    border-left-color: rgba(232, 163, 61, 0.3);
    border-right-color: rgba(232, 163, 61, 0.3);
    border-bottom-color: rgba(232, 163, 61, 0.3);
}

.is-deep .fun-return::before {
    border-bottom-color: rgba(232, 163, 61, 0.55);
}

/* Written at .role-section.is-deep, not .is-deep, so it
   outweighs the .role-section.is-panel rule this band
   still matches — the label interrupts the loop line
   and has to carry the band's own ground. */

.role-section.is-deep .fun-return-label {
    background: var(--deep);
    color: rgba(255, 255, 255, 0.42);
}


/* --- agent board, on deep ---
   The same panel gradient as .intel-graph on the front
   page, so the two dark cards on the site are the same
   object. */

.is-deep .agent-board {
    border-color: rgba(127, 165, 240, 0.16);
    background:
        radial-gradient(
            130% 150% at 12% 0%,
            #101a26 0%,
            var(--deep-panel) 55%,
            #060a10 100%
        );
}

.is-deep .agent-board-head {
    border-bottom-color: rgba(127, 165, 240, 0.12);
    color: rgba(255, 255, 255, 0.44);
}

.is-deep .agent-dot {
    background: var(--amber);
}

.is-deep .agent-row {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.is-deep .agent-name {
    color: rgba(255, 255, 255, 0.8);
}

.is-deep .agent-track {
    background: rgba(255, 255, 255, 0.08);
}

.is-deep .agent-fill {
    background: var(--amber);
}

.is-deep .agent-state {
    color: rgba(255, 255, 255, 0.32);
}

.is-deep .agent-row.is-done .agent-state {
    color: #7fc79c;
}

.is-deep .agent-row.is-done .agent-fill {
    background: #65a883;
}

.is-deep .agent-human {
    color: rgba(255, 255, 255, 0.62);
}

.is-deep .agent-human b {
    color: var(--amber);
}

.is-deep .agent-caption {
    color: rgba(255, 255, 255, 0.34);
}


/* --- promotion path, on deep ---
   A keyframe cannot be scoped by an ancestor, so the
   band needs its own pair rather than a colour
   override. Only animation-name is replaced, which
   leaves the per-stage delays intact. */

.is-deep .role-pipeline {
    border-color: rgba(232, 163, 61, 0.16);
    background: rgba(232, 163, 61, 0.03);
}

.is-deep .role-pipeline-label {
    color: rgba(255, 255, 255, 0.3);
}

.is-deep .role-stage {
    /* No border-color here on purpose. The base rule
       sets it to currentColor, and this is the only
       band the pipeline appears in — pin it and the
       keyframe would light the text and the fill while
       the box stayed dead.

       0.45, not the 0.26 the bare label used: an unlit
       box has to be visible enough to read as a box,
       and 0.45 white on --deep is 4.5:1 where 0.26 was
       2.2:1. Amber lit is 9.1:1, so the pulse is still
       a doubling. */
    background: rgba(232, 163, 61, 0);
    color: rgba(255, 255, 255, 0.45);
    animation-name: stageOnDeep;
}

.is-deep .role-stage-link {
    background: rgba(255, 255, 255, 0.14);
    animation-name: linkOnDeep;
}

@keyframes stageOnDeep {

    0%,
    4% {
        color: rgba(255, 255, 255, 0.45);
        background: rgba(232, 163, 61, 0);
    }

    10%,
    28% {
        color: var(--amber);
        background: rgba(232, 163, 61, 0.12);
    }

    38%,
    100% {
        color: rgba(255, 255, 255, 0.45);
        background: rgba(232, 163, 61, 0);
    }

}

@keyframes linkOnDeep {

    0%,
    4% {
        background: rgba(255, 255, 255, 0.14);
    }

    10%,
    28% {
        background: rgba(232, 163, 61, 0.7);
    }

    38%,
    100% {
        background: rgba(255, 255, 255, 0.14);
    }

}


/* --- closing ask, on deep --- */

.role-close.is-deep .role-hero-glow {
    background:
        radial-gradient(
            circle,
            rgba(232, 163, 61, 0.16) 0%,
            rgba(232, 163, 61, 0.05) 38%,
            rgba(7, 11, 17, 0) 68%
        );
}

.role-close.is-deep h2 span {
    color: var(--blue-soft);
}

.role-close.is-deep p {
    color: #9aa4b1;
}

.is-deep .role-apply {
    color: var(--deep);
    background: var(--amber);
}

.is-deep .role-apply:hover {
    background: #f2b352;
}

.is-deep .role-apply-note {
    color: rgba(255, 255, 255, 0.42);
}


/* --- stack spine, on deep ---
   The three steps of emphasis are carried by white
   opacity here, where on the light ground they are
   carried by how dark the name is. Same hierarchy,
   inverted mechanism. */

.is-deep .stack-spine {
    border-top-color: rgba(127, 165, 240, 0.12);
}

.is-deep .stack-layer {
    border-bottom-color: rgba(127, 165, 240, 0.1);
}

.is-deep .stack-index {
    color: rgba(255, 255, 255, 0.28);
}

.is-deep .stack-name {
    color: rgba(255, 255, 255, 0.42);
}

.is-deep .stack-role {
    color: rgba(255, 255, 255, 0.22);
}

.is-deep .stack-layer.is-yours {
    background:
        linear-gradient(
            90deg,
            rgba(232, 163, 61, 0.09),
            rgba(232, 163, 61, 0)
        );
}

.is-deep .stack-layer.is-yours .stack-index,
.is-deep .stack-layer.is-yours .stack-role {
    color: var(--amber);
}

.is-deep .stack-layer.is-yours .stack-name {
    color: white;
}

.is-deep .stack-layer.is-adjacent .stack-name {
    color: rgba(255, 255, 255, 0.72);
}

.is-deep .stack-layer.is-adjacent .stack-index,
.is-deep .stack-layer.is-adjacent .stack-role {
    color: rgba(232, 163, 61, 0.6);
}


/* --- lists, on deep --- */

.is-deep .role-list li {
    color: #a3adba;
}

.is-deep .role-list li::before {
    background: var(--amber);
}

.is-deep .role-list strong {
    color: white;
}


@media (prefers-reduced-motion: reduce) {

    .is-deep .role-stage {
        background: rgba(232, 163, 61, 0.12);
        color: var(--amber);
    }

    .is-deep .role-stage-link {
        background: rgba(232, 163, 61, 0.55);
    }

}


/* =====================================================
   CAREERS / OPEN ROLES

   Two cards with their own borders and a real gutter,
   not the 1px gap-grid the rest of the page uses. That
   device makes cells read as one table; here they have
   to read as two alternatives, and a shared hairline is
   exactly what says "same object".

   The card is the <a>, not a link inside it — a role
   card with a small "read more" target is a card most
   people miss.
===================================================== */

.role-openings {
    display: grid;
    gap: 18px;
    margin-top: 58px;
}

/* The "or" divider that sat between two cards is gone
   with the third role: two alternatives fork, three are
   a list. The borders and the gutter still carry the
   point that these are separate choices. */

.role-opening {
    display: flex;
    flex-direction: column;
    padding: 36px 32px 34px;
    border: 1px solid var(--border);
    background: var(--white);
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.role-opening:hover {
    border-color: var(--blue);
    background: #fbfcfe;
    transform: translateY(-3px);
}

.role-opening-tag {
    display: block;
    margin-bottom: 20px;
    color: var(--blue);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.role-opening h3 {
    margin-bottom: 16px;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.6px;
}

.role-opening p {
    color: var(--grey);
    font-size: 15px;
    line-height: 1.8;
}

/* margin-top: auto pins the footer of the card to the
   bottom, so two cards carrying different amounts of
   copy still line their meta lines up with each other. */

.role-opening-meta {
    margin-top: auto;
    padding-top: 28px;
    color: #9ba2aa;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.9px;
}

.role-opening-go {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 700;
}

.role-opening-go span {
    transition: transform 0.25s ease;
}

.role-opening:hover .role-opening-go span {
    transform: translateX(5px);
}


@media (min-width: 901px) {

    /* Back to 901px with the third role gone. Three
       columns had to clear the 190px label column and
       its 80px gap, which left ~204px per card at
       1024px — narrower than the titles. Two columns
       have twice that and fit from 901px up. */

    /* auto-fit with a ceiling, not a fixed count: with
       one role left a two-column grid leaves an empty
       half that reads as a card that failed to load. */

    .role-openings {
        grid-template-columns:
            repeat(auto-fit, minmax(320px, 480px));
    }

}


@media (prefers-reduced-motion: reduce) {

    .role-opening:hover,
    .role-opening:hover .role-opening-go span {
        transform: none;
    }

}


/* =====================================================
   CAREERS / THE SAME ARITHMETIC

   A grid rather than a <table>. The point of the figure
   is that three unrelated situations carry the same
   three numbers, and a table that has to fold on a
   phone loses the header row that says so — this one
   keeps the number headings and drops only the one
   that is obvious from the row itself.
===================================================== */

.odds-table {
    max-width: 820px;
    margin-top: 46px;
    border: 1px solid var(--border);
}

.odds-row {
    display: grid;
    /* 3.4fr. The domain prefixes push the longest line
       to "Power Market: Model turns bullish, market has
       not" — 48 characters, ~374px of 13px mono — and
       2.3fr only gave it 313. This leaves ~384px, and
       113px per number column against an 88px "PRICE
       IMPLIES" heading. It still wraps on a narrow
       laptop, which is fine: the rows are grid rows and
       grow. It should just not wrap at the width the
       figure was drawn for. */
    grid-template-columns:
        minmax(0, 3.4fr) repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 17px 22px;
    border-bottom: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 13px;
}

.odds-row:last-child {
    border-bottom: none;
}

.odds-row.is-head {
    color: #9ba2aa;
    font-size: 9.5px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.odds-what {
    color: var(--black);
}

/* The domain is the argument: three unrelated tables
   carrying the same three numbers. Blue so the labels
   scan down the column as a set, rather than reading as
   part of the situation they introduce. */

.odds-domain {
    color: var(--blue);
}

.odds-row.is-head .odds-what {
    color: #9ba2aa;
}

/* tabular-nums so the three columns line up on the
   decimal point rather than drifting with the glyphs. */

.odds-num,
.odds-edge {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.odds-num {
    color: var(--grey);
}

.odds-edge {
    color: var(--green);
    font-weight: 700;
}

.odds-row.is-head .odds-num,
.odds-row.is-head .odds-edge {
    color: #9ba2aa;
    font-weight: 400;
}

.odds-caption {
    max-width: 820px;
    margin-top: 16px;
    color: var(--grey);
    font-size: 13px;
    line-height: 1.7;
}


@media (max-width: 700px) {

    .odds-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px 14px;
        padding: 15px 16px;
        font-size: 12px;
    }

    .odds-what {
        grid-column: 1 / -1;
        margin-bottom: 8px;
    }

    .odds-row.is-head .odds-what {
        display: none;
    }

}


/* =====================================================
   CAREERS / FILLED NOTICE

   Grey, not blue. A closed role is a status, and the
   one blue thing on the page should stay the link out
   to what is still open — otherwise the notice reads
   as the call to action it is replacing.
===================================================== */

.role-filled {
    max-width: 640px;
    margin-bottom: 32px;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--grey);
    background: var(--light);
    color: var(--grey);
    font-size: 14.5px;
    line-height: 1.7;
    animation:
        heroRise 0.8s
        cubic-bezier(0.16, 1, 0.3, 1)
        0.02s both;
}

.role-filled strong {
    display: block;
    margin-bottom: 3px;
    color: var(--black);
    font-size: 16px;
    font-weight: 600;
}

.role-filled a {
    color: var(--blue);
    font-weight: 600;
    border-bottom: 1px solid rgba(20, 89, 217, 0.3);
    transition: border-color 0.25s ease;
}

.role-filled a:hover {
    border-bottom-color: var(--blue);
}


/* =====================================================
   CAREERS / PREVIOUS POSTINGS

   Inert by construction: a <div>, never an <a>. A card
   that looks disabled but still takes a click is worse
   than one that does not — the pointer promises a page
   that no longer exists.

   Muted, not unreadable. The point of the section is to
   show what we hire for, so the text has to survive
   being de-emphasised: --grey is 4.5:1 on --light, and
   the "greyed out" reading comes from the flat ground,
   the missing accent and the FILLED badge instead.
===================================================== */

.role-past-grid {
    display: grid;
    gap: 18px;
    margin-top: 48px;
}

.role-past {
    padding: 30px 28px 28px;
    border: 1px solid #dde1e6;
    background: #eceef1;
    cursor: default;
}

.role-past-tag {
    display: inline-block;
    margin-bottom: 18px;
    padding: 5px 11px;
    background: #70787f;
    color: #ffffff;
    font-family: var(--mono);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.role-past h3 {
    margin-bottom: 12px;
    color: var(--grey);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.22;
    letter-spacing: -0.5px;
}

.role-past p {
    color: #7b838c;
    font-size: 14px;
    line-height: 1.75;
}

.role-past-ask {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 26px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.role-past-ask p {
    flex: 1 1 360px;
    margin: 0;
    color: var(--black);
    font-size: 16px;
    line-height: 1.7;
}


@media (min-width: 901px) {

    .role-past-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}
