/* =========================================================
   MyAnatomy · Careers page  (/career)
   Uses the shared MyAnatomy palette: deep purple + orange gradient, Urbanist
   ========================================================= */
:root {
    --cr-font: 'Urbanist', sans-serif;
    --cr-primary: #4F0051;
    --cr-primary-light: #5B1F76;
    --cr-dark: #300C41;
    --cr-purple: #81469B;
    --cr-orange: #F9874F;
    --cr-text: #353F4F;
    --cr-muted: #6F6C90;
    --cr-border: #E6E3F1;
    --cr-bg-soft: #F9F5FF;
    --cr-bg-alt: #F8F8FF;
    --cr-white: #FFFFFF;
    --cr-gradient: linear-gradient(90deg, #81469B 0%, #F9874F 100%);
    --cr-gradient-soft: linear-gradient(105deg, #F5E7F7 0%, #E9E6FF 100%);
    --cr-shadow-sm: 0 4px 14px rgba(48, 12, 65, 0.06);
    --cr-shadow-md: 0 14px 40px rgba(48, 12, 65, 0.10);
    --cr-shadow-lg: 0 24px 60px rgba(79, 0, 81, 0.18);
    --cr-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --cr-radius: 20px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--cr-font);
    color: var(--cr-text);
    background: var(--cr-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

.cr-main { display: block; }

.cr-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.cr-section { padding: 100px 0; position: relative; }

#cr-roles, #cr-life, #cr-impact { scroll-margin-top: 90px; }

/* ---------- Scroll progress ---------- */
.cr-scroll-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--cr-gradient);
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: 1003;
    pointer-events: none;
}

/* ---------- Type ---------- */
.cr-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--cr-white);
    border: 1px solid var(--cr-border);
    color: var(--cr-purple);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: var(--cr-shadow-sm);
    margin-bottom: 18px;
}

.cr-heading {
    font-size: clamp(28px, 3.6vw, 44px);
    line-height: 1.18;
    font-weight: 700;
    color: var(--cr-dark);
    margin: 0 0 18px;
    letter-spacing: -0.01em;
}

.cr-paragraph {
    font-size: 18px;
    line-height: 1.7;
    color: var(--cr-muted);
    margin: 0 0 16px;
}

.cr-gradient-text {
    background: var(--cr-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.cr-section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 56px;
}

/* ---------- Buttons ---------- */
.cr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 30px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .35s var(--cr-ease), box-shadow .35s var(--cr-ease), background-color .3s, color .3s, border-color .3s;
    will-change: transform;
}

.cr-btn-primary {
    background: var(--cr-primary);
    color: var(--cr-white);
    box-shadow: 0 10px 24px rgba(79, 0, 81, 0.25);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.cr-btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--cr-gradient);
    opacity: 0;
    transition: opacity .4s var(--cr-ease);
    z-index: -1;
}
.cr-btn-primary:hover { box-shadow: 0 16px 34px rgba(129, 70, 155, 0.35); color: var(--cr-white); }
.cr-btn-primary:hover::before { opacity: 1; }
.cr-btn-primary i { transition: transform .35s var(--cr-ease); }
.cr-btn-primary:hover i.fa-arrow-right { transform: translateX(4px); }
.cr-btn-primary:hover i.fa-arrow-down { transform: translateY(3px); }

.cr-btn-ghost {
    background: rgba(255, 255, 255, 0.7);
    color: var(--cr-primary);
    border-color: var(--cr-border);
    backdrop-filter: blur(8px);
}
.cr-btn-ghost:hover { border-color: var(--cr-purple); color: var(--cr-purple); transform: translateY(-2px); }

.cr-btn-light {
    background: var(--cr-white);
    color: var(--cr-primary);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.cr-btn-light:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25); }

.cr-btn:focus-visible,
.cr-filter:focus-visible,
.cr-role-head:focus-visible,
.cr-search input:focus-visible {
    outline: 3px solid rgba(249, 135, 79, 0.6);
    outline-offset: 3px;
}

/* =========================================================
   HERO
   ========================================================= */
.cr-hero {
    position: relative;
    min-height: min(calc(100vh - 80px), 860px);
    min-height: min(calc(100svh - 80px), 860px);
    display: flex;
    align-items: center;
    padding: 60px 0 90px;
    overflow: hidden;
    background: linear-gradient(180deg, #FBF7FF 0%, #FFFFFF 100%);
}

.cr-hero-bg { position: absolute; inset: 0; pointer-events: none; }

.cr-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    animation: cr-blob 18s ease-in-out infinite alternate;
}
.cr-blob-1 { width: 520px; height: 520px; background: #E6D3F3; top: -160px; left: -140px; }
.cr-blob-2 { width: 420px; height: 420px; background: #FFD9C6; bottom: -160px; right: 8%; animation-delay: -6s; }
.cr-blob-3 { width: 320px; height: 320px; background: #DCD6FF; top: 18%; right: -80px; animation-delay: -12s; }

@keyframes cr-blob {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(40px, -30px) scale(1.08); }
    100% { transform: translate(-30px, 30px) scale(0.95); }
}

.cr-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(129, 70, 155, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(129, 70, 155, 0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

.cr-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}

.cr-hero-anim {
    opacity: 0;
    transform: translateY(24px);
    animation: cr-rise .9s var(--cr-ease) forwards;
    animation-delay: calc(var(--d, 0) * 0.12s + 0.1s);
}
@keyframes cr-rise { to { opacity: 1; transform: none; } }

.cr-pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: cr-pulse 2s infinite;
}
@keyframes cr-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
    70%  { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.cr-hero-title {
    font-size: clamp(36px, 4.4vw, 58px);
    line-height: 1.1;
    font-weight: 800;
    color: var(--cr-dark);
    letter-spacing: -0.02em;
    margin: 0 0 22px;
}

.cr-rotator { display: inline-block; }
.cr-rotator-word {
    display: inline-block;
    transition: opacity .38s var(--cr-ease), transform .38s var(--cr-ease), filter .38s;
    padding-bottom: 0.08em;
}
.cr-rotator-word.is-out { opacity: 0; transform: translateY(-14px); filter: blur(4px); }

.cr-hero-text {
    font-size: 19px;
    line-height: 1.7;
    color: var(--cr-muted);
    max-width: 560px;
    margin: 0 0 34px;
}

.cr-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero visual */
.cr-hero-visual { display: flex; justify-content: center; }

.cr-orbit-stage {
    position: relative;
    width: 460px;
    height: auto;
    max-width: 100%;
    aspect-ratio: 1 / 1;
}

.cr-orbit {
    position: absolute;
    top: 50%; left: 50%;
    border-radius: 50%;
    border: 1px dashed rgba(129, 70, 155, 0.28);
    transform: translate(-50%, -50%);
    animation: cr-spin 30s linear infinite;
}
.cr-orbit-1 { width: 42%; height: 42%; animation-duration: 18s; }
.cr-orbit-2 { width: 70%; height: 70%; animation-duration: 28s; animation-direction: reverse; }
.cr-orbit-3 { width: 98%; height: 98%; animation-duration: 40s; }

.cr-orbit-dot {
    position: absolute;
    top: -6px; left: 50%;
    width: 12px; height: 12px;
    margin-left: -6px;
    border-radius: 50%;
    background: var(--cr-gradient);
    box-shadow: 0 0 0 5px rgba(249, 135, 79, 0.15);
}
.cr-orbit-2 .cr-orbit-dot { background: var(--cr-purple); width: 9px; height: 9px; top: -4.5px; margin-left: -4.5px; }

@keyframes cr-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.cr-hero-core {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 150px; height: 150px;
    border-radius: 50%;
    background: var(--cr-white);
    box-shadow: var(--cr-shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-align: center;
}
.cr-hero-core::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #81469B, #F9874F, #81469B);
    z-index: -1;
    animation: cr-spin-plain 6s linear infinite;
    opacity: .9;
}
.cr-hero-core::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: var(--cr-white);
    z-index: -1;
}
@keyframes cr-spin-plain { to { transform: rotate(360deg); } }

.cr-hero-core img { width: 40px; height: 40px; margin-bottom: 4px; }
.cr-hero-core strong { font-size: 22px; color: var(--cr-dark); font-weight: 800; }
.cr-hero-core span { font-size: 12px; color: var(--cr-muted); font-weight: 600; }

.cr-float-card,
.cr-float-chip {
    position: absolute;
    transition: translate .6s var(--cr-ease);
}

.cr-float-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    max-width: 230px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: var(--cr-shadow-md);
    animation: cr-float 6s ease-in-out infinite;
}
.cr-float-card i {
    flex: 0 0 auto;
    width: 40px; height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--cr-white);
    background: var(--cr-gradient);
    font-size: 17px;
}
.cr-float-card strong { display: block; font-size: 15px; color: var(--cr-dark); }
.cr-float-card span { display: block; font-size: 12.5px; line-height: 1.35; color: var(--cr-muted); }

.cr-fc-1 { top: 4%; left: -6%; }
.cr-fc-2 { top: 42%; right: -12%; animation-delay: -2s; }
.cr-fc-3 { bottom: 4%; left: 2%; animation-delay: -4s; }

.cr-float-chip {
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--cr-white);
    font-size: 14px;
    font-weight: 700;
    color: var(--cr-primary);
    box-shadow: var(--cr-shadow-md);
    animation: cr-float 7s ease-in-out infinite;
}
.cr-chip-1 { top: 14%; right: 2%; animation-delay: -1s; }
.cr-chip-2 { bottom: 18%; right: 4%; animation-delay: -3s; }

@keyframes cr-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

.cr-scroll-cue {
    position: absolute;
    bottom: 62px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px; height: 42px;
    border-radius: 14px;
    border: 2px solid rgba(79, 0, 81, 0.35);
}
.cr-scroll-cue span {
    position: absolute;
    top: 8px; left: 50%;
    width: 4px; height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--cr-primary);
    animation: cr-wheel 1.8s var(--cr-ease) infinite;
}
@keyframes cr-wheel {
    0%   { opacity: 0; transform: translateY(0); }
    30%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(14px); }
}

/* =========================================================
   STATS
   ========================================================= */
.cr-impact { position: relative; margin-top: -40px; z-index: 2; }

.cr-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--cr-white);
    border: 1px solid var(--cr-border);
    border-radius: 24px;
    box-shadow: var(--cr-shadow-md);
    padding: 34px 20px;
}
.cr-stat { text-align: center; padding: 6px 12px; position: relative; }
.cr-stat + .cr-stat::before {
    content: '';
    position: absolute;
    left: 0; top: 15%; bottom: 15%;
    width: 1px;
    background: var(--cr-border);
}
.cr-stat strong {
    display: block;
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    background: var(--cr-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
}
.cr-stat > span { display: block; margin-top: 6px; color: var(--cr-muted); font-size: 15px; font-weight: 600; }

/* =========================================================
   REVEAL
   ========================================================= */
.cr-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s var(--cr-ease), transform .8s var(--cr-ease);
    transition-delay: var(--rd, 0s);
}
.cr-reveal.is-visible { opacity: 1; transform: none; transition-delay: var(--rd, 0s); }
.cr-reveal.is-settled { transition-delay: 0s; }

/* =========================================================
   MISSION
   ========================================================= */
.cr-mission-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
    align-items: center;
}

.cr-quote-card {
    position: relative;
    padding: 44px 38px;
    border-radius: 28px;
    background: var(--cr-gradient-soft);
    border: 1px solid #EBDDF3;
    box-shadow: var(--cr-shadow-md);
    transition: transform .4s var(--cr-ease);
    transform-style: preserve-3d;
    overflow: hidden;
}
.cr-quote-card::after {
    content: '';
    position: absolute;
    width: 240px; height: 240px;
    right: -80px; bottom: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 135, 79, 0.28), transparent 70%);
}
.cr-quote-icon {
    font-size: 34px;
    background: var(--cr-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}
.cr-quote-card p {
    position: relative;
    font-size: 24px;
    line-height: 1.45;
    font-weight: 600;
    color: var(--cr-dark);
    margin: 0 0 28px;
}
.cr-quote-meta { display: flex; align-items: center; gap: 12px; position: relative; }
.cr-quote-avatar {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--cr-white);
    display: grid;
    place-items: center;
    box-shadow: var(--cr-shadow-sm);
}
.cr-quote-meta strong { display: block; color: var(--cr-dark); font-size: 16px; }
.cr-quote-meta span { display: block; color: var(--cr-muted); font-size: 14px; }

/* =========================================================
   VALUES
   ========================================================= */
.cr-values { background: var(--cr-bg-alt); }

.cr-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cr-spotlight,
.cr-perk,
.cr-role { --mx: 50%; --my: 50%; }

.cr-value-card {
    position: relative;
    padding: 34px 30px;
    background: var(--cr-white);
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
    overflow: hidden;
    isolation: isolate;
    transition: transform .45s var(--cr-ease), box-shadow .45s var(--cr-ease), border-color .3s, opacity .8s var(--cr-ease);
}
.cr-spotlight::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(360px circle at var(--mx) var(--my), rgba(129, 70, 155, 0.10), transparent 60%);
    opacity: 0;
    transition: opacity .4s;
    z-index: -1;
    pointer-events: none;
}
.cr-spotlight:hover::before { opacity: 1; }
.cr-value-card.is-visible:hover {
    transform: translateY(-6px);
    box-shadow: var(--cr-shadow-md);
    border-color: #DCC9EA;
}

.cr-value-icon {
    width: 54px; height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--cr-bg-soft);
    color: var(--cr-purple);
    font-size: 22px;
    margin-bottom: 22px;
    transition: transform .5s var(--cr-ease), background .4s, color .4s;
}
.cr-value-card:hover .cr-value-icon {
    background: var(--cr-gradient);
    color: var(--cr-white);
    transform: rotate(-8deg) scale(1.06);
}

.cr-value-card h3 { font-size: 21px; color: var(--cr-dark); margin: 0 0 10px; font-weight: 700; }
.cr-value-card p { font-size: 16px; line-height: 1.65; color: var(--cr-muted); margin: 0; }

.cr-value-card-accent {
    background: linear-gradient(135deg, var(--cr-primary) 0%, var(--cr-purple) 70%, #B9628A 100%);
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cr-value-card-accent h3 { color: var(--cr-white); font-size: 26px; }
.cr-value-card-accent p { color: rgba(255, 255, 255, 0.85); margin-bottom: 22px; }

.cr-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cr-white);
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
}
.cr-link-arrow i { transition: transform .35s var(--cr-ease); }
.cr-link-arrow:hover i { transform: translateX(6px); }

/* =========================================================
   MARQUEE
   ========================================================= */
.cr-marquee {
    overflow: hidden;
    padding: 26px 0;
    background: var(--cr-dark);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.cr-marquee-track {
    display: flex;
    align-items: center;
    gap: 34px;
    width: max-content;
    animation: cr-marquee 38s linear infinite;
}
.cr-marquee:hover .cr-marquee-track { animation-play-state: paused; }
.cr-marquee-track span {
    font-size: clamp(22px, 2.6vw, 34px);
    font-weight: 700;
    color: var(--cr-white);
    white-space: nowrap;
}
.cr-marquee-track span:nth-of-type(even) {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.6);
}
.cr-marquee-track i { font-style: normal; color: var(--cr-orange); font-size: 20px; }
@keyframes cr-marquee { to { transform: translateX(-50%); } }

/* =========================================================
   PERKS
   ========================================================= */
.cr-perks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cr-perk {
    position: relative;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 28px 26px;
    border-radius: var(--cr-radius);
    background: var(--cr-white);
    border: 1px solid var(--cr-border);
    overflow: hidden;
    isolation: isolate;
    transition: transform .45s var(--cr-ease), box-shadow .45s var(--cr-ease), border-color .3s, opacity .8s var(--cr-ease);
}
.cr-perk::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(220px circle at var(--mx) var(--my), rgba(249, 135, 79, 0.9), rgba(129, 70, 155, 0.6) 40%, transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .35s;
    pointer-events: none;
}
.cr-perk:hover::after { opacity: 1; }
.cr-perk.is-visible:hover { transform: translateY(-4px); box-shadow: var(--cr-shadow-md); }

.cr-perk > i {
    flex: 0 0 auto;
    width: 50px; height: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 20px;
    color: var(--cr-orange);
    background: #FFF1EA;
    transition: transform .5s var(--cr-ease);
}
.cr-perk:hover > i { transform: scale(1.1) rotate(6deg); }
.cr-perk h3 { margin: 4px 0 6px; font-size: 18px; color: var(--cr-dark); font-weight: 700; }
.cr-perk p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--cr-muted); }

/* =========================================================
   ROLES
   ========================================================= */
.cr-roles { background: linear-gradient(180deg, var(--cr-bg-soft) 0%, #FFFFFF 100%); }

.cr-roles-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.cr-filters {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px;
    background: var(--cr-white);
    border: 1px solid var(--cr-border);
    border-radius: 18px;
    box-shadow: var(--cr-shadow-sm);
}

.cr-filter-pill {
    position: absolute;
    top: 0; left: 0;
    border-radius: 12px;
    background: var(--cr-primary);
    box-shadow: 0 6px 16px rgba(79, 0, 81, 0.25);
    transition: transform .45s var(--cr-ease), width .45s var(--cr-ease), height .45s var(--cr-ease);
    z-index: 0;
    pointer-events: none;
}

.cr-filter {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--cr-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: color .3s;
}
.cr-filter:hover { color: var(--cr-primary); }
.cr-filter.is-active { color: var(--cr-white); }
.cr-filter-count {
    min-width: 22px;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: var(--cr-bg-soft);
    color: var(--cr-purple);
    transition: background .3s, color .3s;
}
.cr-filter.is-active .cr-filter-count { background: rgba(255, 255, 255, 0.2); color: var(--cr-white); }

.cr-search {
    position: relative;
    flex: 0 1 320px;
    min-width: 240px;
}
.cr-search i {
    position: absolute;
    left: 18px; top: 50%;
    transform: translateY(-50%);
    color: var(--cr-muted);
    font-size: 15px;
}
.cr-search input {
    width: 100%;
    padding: 15px 18px 15px 46px;
    border-radius: 16px;
    border: 1px solid var(--cr-border);
    background: var(--cr-white);
    font-family: inherit;
    font-size: 15px;
    color: var(--cr-dark);
    box-shadow: var(--cr-shadow-sm);
    transition: border-color .3s, box-shadow .3s;
}
.cr-search input:focus { outline: none; border-color: var(--cr-purple); box-shadow: 0 0 0 4px rgba(129, 70, 155, 0.12); }

.cr-roles-list { display: grid; gap: 14px; }

.cr-role {
    position: relative;
    background: var(--cr-white);
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
    overflow: hidden;
    isolation: isolate;
    opacity: 0;
    transform: translateY(16px);
    animation: cr-rise .6s var(--cr-ease) forwards;
    animation-delay: calc(var(--i, 0) * 50ms);
    transition: box-shadow .4s var(--cr-ease), border-color .3s;
}
.cr-role::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(129, 70, 155, 0.07), transparent 60%);
    opacity: 0;
    transition: opacity .4s;
    z-index: -1;
    pointer-events: none;
}
.cr-role::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--cr-gradient);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .45s var(--cr-ease);
}
.cr-role:hover::before,
.cr-role.is-open::before { opacity: 1; }
.cr-role:hover,
.cr-role.is-open { border-color: #DCC9EA; box-shadow: var(--cr-shadow-md); }
.cr-role:hover::after,
.cr-role.is-open::after { transform: scaleY(1); }

.cr-role-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    border: 0;
    background: transparent;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    color: inherit;
}

.cr-role-team {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cr-orange);
    margin-bottom: 6px;
}
.cr-role-main h3 {
    margin: 0 0 10px;
    font-size: 21px;
    font-weight: 700;
    color: var(--cr-dark);
    transition: color .3s;
}
.cr-role:hover .cr-role-main h3 { color: var(--cr-primary); }

.cr-role-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.cr-role-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14.5px;
    color: var(--cr-muted);
    font-weight: 500;
}
.cr-role-meta i { color: var(--cr-purple); font-size: 13px; }

.cr-role-toggle {
    flex: 0 0 auto;
    width: 46px; height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--cr-bg-soft);
    color: var(--cr-primary);
    transition: transform .45s var(--cr-ease), background .3s, color .3s;
}
.cr-role:hover .cr-role-toggle { background: var(--cr-primary); color: var(--cr-white); }
.cr-role.is-open .cr-role-toggle { transform: rotate(135deg); background: var(--cr-primary); color: var(--cr-white); }

.cr-role-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .55s var(--cr-ease);
}
.cr-role-body-inner {
    padding: 0 28px 28px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .4s ease .05s, transform .45s var(--cr-ease) .05s;
}
.cr-role.is-open .cr-role-body-inner { opacity: 1; transform: none; }

.cr-role-summary {
    font-size: 17px;
    line-height: 1.65;
    color: var(--cr-text);
    margin: 0 0 18px;
    padding-top: 18px;
    border-top: 1px dashed var(--cr-border);
}
.cr-role-body h4 { margin: 0 0 10px; font-size: 16px; color: var(--cr-dark); font-weight: 700; }
.cr-role-body ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.cr-role-body li {
    position: relative;
    padding-left: 28px;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--cr-muted);
}
.cr-role-body li::before {
    content: '';
    position: absolute;
    left: 0; top: 4px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--cr-bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2381469B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.cr-role-skills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.cr-role-skills span {
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--cr-primary);
    background: var(--cr-bg-soft);
    border: 1px solid #EEE3F5;
}

.cr-apply { padding: 14px 28px; }

.cr-roles-empty {
    text-align: center;
    padding: 50px 20px;
    border: 1px dashed var(--cr-border);
    border-radius: var(--cr-radius);
    background: var(--cr-white);
}
.cr-roles-empty i { font-size: 36px; color: var(--cr-purple); margin-bottom: 12px; }
.cr-roles-empty p { color: var(--cr-muted); font-size: 17px; margin: 0 0 20px; }

/* =========================================================
   PROCESS / TIMELINE
   ========================================================= */
.cr-timeline {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.cr-timeline-line {
    position: absolute;
    top: 30px;
    left: 12.5%;
    right: 12.5%;
    height: 3px;
    border-radius: 3px;
    background: var(--cr-border);
    overflow: hidden;
}
.cr-timeline-fill {
    --p: 0;
    position: absolute;
    inset: 0;
    background: var(--cr-gradient);
    transform-origin: left;
    transform: scaleX(var(--p));
    transition: opacity .6s ease;
}
/* glowing head that leads the progress line */
.cr-timeline-fill::after {
    content: '';
    position: absolute;
    right: 0; top: 50%;
    width: 40px; height: 3px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9));
    filter: blur(1px);
}
.cr-timeline.is-resetting .cr-timeline-fill { opacity: 0; }

.cr-step.is-active .cr-step-num { animation: cr-step-pop .6s var(--cr-ease); }
@keyframes cr-step-pop {
    0%   { box-shadow: 0 0 0 0 rgba(249, 135, 79, 0.55); }
    100% { box-shadow: 0 10px 26px rgba(249, 135, 79, 0.35), 0 0 0 14px rgba(249, 135, 79, 0); }
}

.cr-step { position: relative; text-align: center; padding: 0 8px; }
.cr-step-num {
    position: relative;
    z-index: 1;
    width: 62px; height: 62px;
    margin: 0 auto 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 800;
    color: var(--cr-purple);
    background: var(--cr-white);
    /* outline drawn as an inset ring (no real border, so the filled gradient has no seams) */
    box-shadow: inset 0 0 0 2px var(--cr-border);
    isolation: isolate;
    transition: color .5s, transform .5s var(--cr-ease), box-shadow .5s;
}
.cr-step-num::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--cr-gradient);
    opacity: 0;
    transition: opacity .5s var(--cr-ease);
    z-index: -1;
}
.cr-step.is-active .cr-step-num {
    color: var(--cr-white);
    transform: scale(1.08);
    box-shadow: 0 10px 26px rgba(249, 135, 79, 0.35);
}
.cr-step.is-active .cr-step-num::before { opacity: 1; }
.cr-step h3 { font-size: 20px; color: var(--cr-dark); margin: 0 0 8px; font-weight: 700; }
.cr-step p { font-size: 15.5px; line-height: 1.6; color: var(--cr-muted); margin: 0; }

/* =========================================================
   LOCATIONS
   ========================================================= */
.cr-locations { background: var(--cr-bg-alt); }

.cr-locations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.cr-location {
    position: relative;
    padding: 30px 26px;
    border-radius: var(--cr-radius);
    background: var(--cr-white);
    border: 1px solid var(--cr-border);
    overflow: hidden;
    isolation: isolate;
    transition: transform .45s var(--cr-ease), box-shadow .45s var(--cr-ease), opacity .8s var(--cr-ease);
}
.cr-location.is-visible:hover { transform: translateY(-6px); box-shadow: var(--cr-shadow-md); }
.cr-location > i {
    font-size: 26px;
    margin-bottom: 18px;
    background: var(--cr-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform .5s var(--cr-ease);
    display: inline-block;
}
.cr-location:hover > i { transform: translateY(-4px); animation: cr-bounce 1s var(--cr-ease); }
@keyframes cr-bounce {
    0%, 100% { transform: translateY(-4px); }
    50%      { transform: translateY(-10px); }
}
.cr-location h3 { margin: 0 0 6px; font-size: 22px; color: var(--cr-dark); font-weight: 700; }
.cr-location p { margin: 0; font-size: 15px; color: var(--cr-muted); line-height: 1.5; }
.cr-loc-tag {
    position: absolute;
    top: 20px; right: 20px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--cr-white);
    background: var(--cr-gradient);
}

/* =========================================================
   CTA
   ========================================================= */
.cr-cta-section { padding-top: 90px; }
.cr-cta-box {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 80px 40px;
    border-radius: 32px;
    color: var(--cr-white);
    background: linear-gradient(120deg, #300C41 0%, #4F0051 40%, #81469B 80%, #C86A6E 100%);
    background-size: 200% 200%;
    animation: cr-gradient-move 12s ease infinite;
    box-shadow: var(--cr-shadow-lg);
}
@keyframes cr-gradient-move {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
.cr-cta-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    pointer-events: none;
    animation: cr-ring 9s ease-in-out infinite;
}
.cr-cta-ring-1 { width: 420px; height: 420px; top: -200px; left: -140px; }
.cr-cta-ring-2 { width: 300px; height: 300px; bottom: -150px; right: -80px; animation-delay: -4s; }
@keyframes cr-ring {
    0%, 100% { transform: scale(1); opacity: .7; }
    50%      { transform: scale(1.12); opacity: 1; }
}
.cr-cta-box h2 {
    position: relative;
    font-size: clamp(28px, 3.6vw, 44px);
    margin: 0 0 16px;
    font-weight: 800;
}
.cr-cta-box p {
    position: relative;
    max-width: 640px;
    margin: 0 auto 32px;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}
.cr-cta-box .cr-btn { position: relative; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
    .cr-fc-2 { right: -4%; }
    .cr-fc-1 { left: -2%; }
}

@media (max-width: 992px) {
    .cr-section { padding: 80px 0; }

    .cr-hero { min-height: auto; padding: 50px 0 90px; }
    .cr-hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .cr-hero-text { margin-left: auto; margin-right: auto; }
    .cr-hero-actions { justify-content: center; }
    .cr-orbit-stage { width: 420px; }
    .cr-float-card { text-align: left; }
    .cr-fc-2 { top: auto; bottom: 22%; right: -10%; }
    .cr-chip-2 { display: none; }
    .cr-scroll-cue { display: none; }

    .cr-stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
    .cr-stat:nth-child(3)::before { display: none; }

    .cr-mission-grid { grid-template-columns: 1fr; gap: 40px; }
    .cr-values-grid,
    .cr-perks-grid { grid-template-columns: repeat(2, 1fr); }
    .cr-locations-grid { grid-template-columns: repeat(2, 1fr); }

    .cr-timeline { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
    .cr-timeline-line { display: none; }

    .cr-roles-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .cr-filters-wrap, .cr-search { flex: none; width: 100%; }
    .cr-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .cr-filters::-webkit-scrollbar { display: none; }
    .cr-search { flex: 1 1 auto; min-width: 0; }
}

@media (max-width: 640px) {
    .cr-container { padding: 0 16px; }
    .cr-section { padding: 64px 0; }
    .cr-section-head { margin-bottom: 36px; }
    .cr-paragraph { font-size: 16px; }

    .cr-hero { padding: 36px 0 70px; }
    .cr-hero-title { font-size: 34px; text-wrap: balance; }
    .cr-rotator { display: block; min-height: 1.15em; }
    .cr-hero-text { font-size: 16px; }
    .cr-hero-actions { flex-direction: column; align-items: stretch; }
    .cr-hero-actions .cr-btn { width: 100%; }

    .cr-br-desk { display: none; }
    .cr-orbit-stage { width: 300px; }
    .cr-hero-core { width: 110px; height: 110px; }
    .cr-hero-core strong { font-size: 18px; }
    .cr-hero-core img { width: 28px; height: 28px; }
    .cr-float-card { padding: 8px 12px 8px 8px; gap: 8px; max-width: none; text-align: left; }
    .cr-float-card i { width: 30px; height: 30px; font-size: 13px; border-radius: 9px; }
    .cr-float-card strong { font-size: 13px; white-space: nowrap; }
    .cr-float-card span { display: none; }
    .cr-fc-1 { left: 0; top: 6%; }
    .cr-fc-2 { right: 0; top: auto; bottom: 8%; }
    .cr-fc-3 { display: none; }
    .cr-float-chip { font-size: 12px; padding: 7px 12px; }
    .cr-chip-1 { top: 4%; right: 0; }
    .cr-chip-2 { display: none; }

    .cr-stats { padding: 24px 8px; }
    .cr-stat > span { font-size: 13px; }

    .cr-quote-card { padding: 32px 24px; }
    .cr-quote-card p { font-size: 20px; }

    .cr-values-grid,
    .cr-perks-grid,
    .cr-locations-grid,
    .cr-timeline { grid-template-columns: 1fr; }

    .cr-value-card { padding: 28px 24px; }
    .cr-perk { padding: 22px 20px; }

    .cr-timeline { gap: 28px; }
    .cr-timeline-line {
        display: block;
        left: 24.5px;
        right: auto;
        top: 26px;
        bottom: 26px;
        width: 3px;
        height: auto;
    }
    .cr-timeline-fill { transform: scaleY(var(--p)); transform-origin: top; }
    .cr-timeline-fill::after {
        top: auto; bottom: 0; right: auto; left: 50%;
        width: 3px; height: 40px;
        transform: translateX(-50%);
        background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.9));
    }
    .cr-step { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; text-align: left; padding: 0; }
    .cr-step-num { width: 52px; height: 52px; margin: 0; font-size: 16px; grid-row: span 2; }
    .cr-step h3 { align-self: end; margin-bottom: 4px; }

    .cr-role-head { padding: 20px 18px; gap: 12px; align-items: flex-start; }
    .cr-role-main h3 { font-size: 18px; }
    .cr-role-meta { gap: 6px 14px; }
    .cr-role-meta span { font-size: 13.5px; }
    .cr-role-toggle { width: 38px; height: 38px; }
    .cr-role-body-inner { padding: 0 18px 22px; }
    .cr-apply { width: 100%; }

    .cr-cta-box { padding: 56px 22px; border-radius: 24px; }
    .cr-cta-box p { font-size: 16px; }
    .cr-cta-box .cr-btn { width: 100%; font-size: 15px; padding: 15px 18px; }
}

@media (max-width: 380px) {
    .cr-hero-title { font-size: 30px; }
    .cr-orbit-stage { width: 290px; }
    .cr-float-card { max-width: 150px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .cr-hero-anim,
    .cr-reveal,
    .cr-role { opacity: 1; transform: none; }
}

/* =========================================================
   TEAMS MODE (shown while there are no open roles)
   ========================================================= */
.cr-open-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cr-primary);
    background: var(--cr-white);
    border: 1px solid var(--cr-border);
    box-shadow: var(--cr-shadow-sm);
}
.cr-open-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--cr-purple);
    box-shadow: 0 0 0 0 rgba(129, 70, 155, 0.5);
    animation: cr-pulse-purple 2.2s infinite;
}
.cr-open-count.is-hiring .cr-open-dot { background: #22C55E; animation-name: cr-pulse; }
@keyframes cr-pulse-purple {
    0%   { box-shadow: 0 0 0 0 rgba(129, 70, 155, 0.5); }
    70%  { box-shadow: 0 0 0 9px rgba(129, 70, 155, 0); }
    100% { box-shadow: 0 0 0 0 rgba(129, 70, 155, 0); }
}

.cr-hiring-dot {
    width: 7px; height: 7px;
    margin-left: -2px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.cr-team .cr-role-head { justify-content: flex-start; }
.cr-team .cr-role-main { flex: 1; min-width: 0; }
.cr-team-icon {
    flex: 0 0 auto;
    width: 56px; height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 22px;
    color: var(--cr-purple);
    background: var(--cr-bg-soft);
    border: 1px solid #EEE3F5;
    align-self: flex-start;
    transition: transform .5s var(--cr-ease), background .4s, color .4s, border-color .4s;
}
.cr-team:hover .cr-team-icon,
.cr-team.is-open .cr-team-icon {
    background: var(--cr-gradient);
    color: var(--cr-white);
    border-color: transparent;
    transform: rotate(-6deg) scale(1.05);
}
.cr-team-blurb {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.55;
    color: var(--cr-muted);
}
.cr-team-status { color: var(--cr-purple) !important; font-weight: 600 !important; }

.cr-team .cr-role-body-inner { padding-left: 104px; }
.cr-subteams-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding-top: 20px;
    margin-bottom: 14px;
    border-top: 1px dashed var(--cr-border);
}
.cr-subteams-head h4 { margin: 0; }
.cr-subteams-head span { font-size: 14px; color: var(--cr-muted); }

.cr-subteams {
    display: grid;
    gap: 10px;
}
.cr-subteam {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 14px 20px;
    align-items: center;
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--cr-bg-alt);
    border: 1px solid transparent;
    transition: border-color .3s, background .3s;
}
.cr-subteam:hover { border-color: #EBDDF3; background: #FBF8FF; }
.cr-subteam-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--cr-dark);
}
.cr-subteam-dot {
    flex: 0 0 auto;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--cr-gradient);
}
.cr-subteam-roles { display: flex; flex-wrap: wrap; gap: 8px; }

.cr-role-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cr-primary);
    background: var(--cr-white);
    border: 1px solid #E7DAF1;
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    transition: color .3s, border-color .3s, transform .35s var(--cr-ease), box-shadow .35s var(--cr-ease);
}
.cr-role-chip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--cr-gradient);
    opacity: 0;
    transition: opacity .35s var(--cr-ease);
    z-index: -1;
}
.cr-role-chip i {
    font-size: 12px;
    width: 0;
    opacity: 0;
    margin-left: -8px;
    transition: width .3s var(--cr-ease), opacity .3s, margin .3s var(--cr-ease);
}
.cr-role-chip:hover,
.cr-role-chip:focus-visible {
    color: var(--cr-white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(129, 70, 155, 0.25);
    outline: none;
}
.cr-role-chip:hover::before,
.cr-role-chip:focus-visible::before { opacity: 1; }
.cr-role-chip:hover i,
.cr-role-chip:focus-visible i { width: 12px; opacity: 1; margin-left: 0; }
.cr-role-chip.is-match { border-color: var(--cr-orange); box-shadow: 0 0 0 3px rgba(249, 135, 79, 0.18); }

.cr-team-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 20px;
    margin-top: 24px;
}
.cr-team-note { font-size: 14.5px; color: var(--cr-muted); }

/* "Write your own role" card */
.cr-write-own {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    border-radius: var(--cr-radius);
    border: 1.5px dashed #D9C3E8;
    background: linear-gradient(105deg, rgba(245, 231, 247, 0.6) 0%, rgba(255, 241, 234, 0.6) 100%);
    text-decoration: none;
    color: inherit;
    opacity: 0;
    transform: translateY(16px);
    animation: cr-rise .6s var(--cr-ease) forwards;
    animation-delay: calc(var(--i, 0) * 50ms);
    transition: border-color .3s, box-shadow .4s var(--cr-ease), background .4s;
}
.cr-write-own:hover { border-color: var(--cr-purple); border-style: solid; box-shadow: var(--cr-shadow-md); }
.cr-write-icon {
    flex: 0 0 auto;
    width: 56px; height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 21px;
    color: var(--cr-white);
    background: var(--cr-gradient);
    transition: transform .5s var(--cr-ease);
}
.cr-write-own:hover .cr-write-icon { transform: rotate(10deg) scale(1.06); }
.cr-write-own h3 { margin: 0 0 4px; font-size: 20px; color: var(--cr-dark); font-weight: 700; }
.cr-write-own p { margin: 0; font-size: 15.5px; color: var(--cr-muted); line-height: 1.5; }
.cr-write-own > div { flex: 1; }
.cr-write-arrow {
    flex: 0 0 auto;
    width: 46px; height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--cr-primary);
    background: var(--cr-white);
    box-shadow: var(--cr-shadow-sm);
    transition: transform .4s var(--cr-ease), background .3s, color .3s;
}
.cr-write-own:hover .cr-write-arrow { transform: translateX(4px); background: var(--cr-primary); color: var(--cr-white); }
.cr-write-own:focus-visible { outline: 3px solid rgba(249, 135, 79, 0.6); outline-offset: 3px; }

@media (max-width: 992px) {
    .cr-team .cr-role-body-inner { padding-left: 28px; }
    .cr-subteam { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 640px) {
    .cr-team-icon { width: 44px; height: 44px; font-size: 18px; border-radius: 12px; }
    .cr-team-blurb { font-size: 14.5px; }
    .cr-team .cr-role-body-inner { padding-left: 18px; }
    .cr-team .cr-role-head { flex-wrap: wrap; row-gap: 14px; }
    .cr-team .cr-team-icon { order: 1; }
    .cr-team .cr-role-toggle { order: 2; margin-left: auto; }
    .cr-team .cr-role-main { order: 3; flex: 1 1 100%; }
    .cr-subteam { padding: 12px 14px; }
    .cr-role-chip { font-size: 13px; padding: 6px 12px; }
    .cr-role-chip i { width: 12px; opacity: .6; margin-left: 0; }
    .cr-team-actions { flex-direction: column; align-items: stretch; text-align: center; }
    .cr-open-count { font-size: 13px; }
    .cr-write-own { padding: 20px 18px; gap: 14px; }
    .cr-write-icon { width: 44px; height: 44px; font-size: 18px; border-radius: 12px; }
    .cr-write-arrow { display: none; }
    .cr-write-own h3 { font-size: 18px; }
    .cr-write-own p { font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
    .cr-write-own { opacity: 1; transform: none; }
}

/* =========================================================
   Department tabs: one row, smart horizontal scroll (all widths)
   ========================================================= */
.cr-roles-toolbar { flex-wrap: nowrap; }
.cr-filters-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}
.cr-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.cr-filters::-webkit-scrollbar { display: none; }
.cr-filter { flex: 0 0 auto; }
.cr-search { flex: 0 0 280px; min-width: 0; }

/* edge fade + arrow, shown only on the side that has more tabs */
.cr-tabs-arrow {
    position: absolute;
    top: 1px; bottom: 1px;
    z-index: 3;
    width: 64px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    border: 0;
    cursor: pointer;
    color: var(--cr-primary);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--cr-ease);
}
.cr-tabs-arrow.is-prev {
    left: 1px;
    justify-content: flex-start;
    border-radius: 17px 0 0 17px;
    background: linear-gradient(90deg, #fff 45%, rgba(255, 255, 255, 0));
}
.cr-tabs-arrow.is-next {
    right: 1px;
    justify-content: flex-end;
    border-radius: 0 17px 17px 0;
    background: linear-gradient(270deg, #fff 45%, rgba(255, 255, 255, 0));
}
.cr-tabs-arrow i {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    background: var(--cr-white);
    border: 1px solid var(--cr-border);
    box-shadow: var(--cr-shadow-sm);
    transition: background .3s, color .3s, transform .3s var(--cr-ease);
}
.cr-tabs-arrow:hover i { background: var(--cr-primary); color: var(--cr-white); transform: scale(1.08); }
.cr-filters-wrap.can-left .cr-tabs-arrow.is-prev,
.cr-filters-wrap.can-right .cr-tabs-arrow.is-next { opacity: 1; pointer-events: auto; }
/* touch screens swipe naturally: keep the fade as a hint, drop the buttons */
@media (hover: none) {
    .cr-tabs-arrow { width: 40px; pointer-events: none !important; }
    .cr-tabs-arrow i { display: none; }
}

/* team tags inside a card */
.cr-covers { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.cr-covers > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cr-dark);
    background: var(--cr-bg-alt);
    border: 1px solid var(--cr-border);
}
.cr-covers > span.is-match { border-color: var(--cr-orange); box-shadow: 0 0 0 3px rgba(249, 135, 79, 0.18); }
.cr-covers + .cr-subteams-head { border-top: 0; padding-top: 0; }
.cr-roles-chips { margin-bottom: 4px; }
}
