.agent-shift {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #fcfaf6;
    border-top: 1px solid #EEF2F6;
    min-height: clamp(34rem, 64vw, 46rem);
    padding: clamp(5rem, 9vw, 7.5rem) 0 clamp(5.5rem, 10vw, 8rem);
  }
  .agent-shift .ss-stream {
    position: absolute;
    inset: -4% -16%;
    z-index: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    pointer-events: none;
    user-select: none;
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image:
      linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
  .agent-shift .ss-stream-layer {
    display: block;
    width: 100%;
  }
  .agent-shift .ss-stream-layer--far {
    opacity: 0.7;
    filter: none;
  }
  .agent-shift .ss-stream-layer--mid {
    opacity: 0.88;
    filter: none;
  }
  .agent-shift .ss-stream-layer--near {
    opacity: 1;
    filter: none;
  }
  .agent-shift .ss-stream-layer:nth-child(1) { margin-top: 0.35rem; }
  .agent-shift .ss-stream-layer:nth-child(2) { margin-top: 1.85rem; }
  .agent-shift .ss-stream-layer:nth-child(3) { margin-top: 0.95rem; }
  .agent-shift .ss-stream-layer:nth-child(4) { margin-top: 2.35rem; }
  .agent-shift .ss-stream-layer:nth-child(5) { margin-top: 1.15rem; }
  .agent-shift .ss-stream-layer:nth-child(6) { margin-top: 2.05rem; }
  .agent-shift .ss-stream-layer:nth-child(7) { margin-top: 0.7rem; }
  .agent-shift .ss-stream-layer:nth-child(8) { margin-top: 1.95rem; }
  .agent-shift .ss-stream-layer:nth-child(9) { margin-top: 1.35rem; }
  .agent-shift .ss-stream-layer:nth-child(10) { margin-top: 2.2rem; }
  .agent-shift .ss-stream-layer:nth-child(11) { margin-top: 0.85rem; }
  .agent-shift .ss-stream-row {
    display: flex;
    width: max-content;
    align-items: center;
    will-change: transform;
  }
  .agent-shift .ss-stream-row.is-paused,
  .agent-shift .ss-stream-row.is-paused .ss-pill {
    animation-play-state: paused !important;
  }
  .agent-shift .ss-stream-row--a { animation: ss-stream-left 42s linear infinite; animation-delay: -18s; }
  .agent-shift .ss-stream-row--b { animation: ss-stream-right 57s linear infinite; animation-delay: -31s; }
  .agent-shift .ss-stream-row--c { animation: ss-stream-left 55s linear infinite; animation-delay: -9s; }
  .agent-shift .ss-stream-row--d { animation: ss-stream-right 48s linear infinite; animation-delay: -27s; }
  .agent-shift .ss-stream-row--e { animation: ss-stream-left 62s linear infinite; animation-delay: -41s; }
  .agent-shift .ss-stream-row--f { animation: ss-stream-right 46s linear infinite; animation-delay: -14s; }
  .agent-shift .ss-stream-row--g { animation: ss-stream-left 58s linear infinite; animation-delay: -36s; }
  .agent-shift .ss-stream-row--h { animation: ss-stream-right 44s linear infinite; animation-delay: -22s; }
  .agent-shift .ss-stream-row--i { animation: ss-stream-left 52s linear infinite; animation-delay: -47s; }
  .agent-shift .ss-stream-row--j { animation: ss-stream-right 60s linear infinite; animation-delay: -6s; }
  .agent-shift .ss-stream-row--k { animation: ss-stream-left 47s linear infinite; animation-delay: -33s; }
  .agent-shift .ss-stream-row--l { animation: ss-stream-right 54s linear infinite; animation-delay: -19s; }
  .agent-shift .ss-stream-row--m { animation: ss-stream-left 49s linear infinite; animation-delay: -28s; }
  .agent-shift .ss-stream-row--n { animation: ss-stream-right 61s linear infinite; animation-delay: -11s; }
  .agent-shift .ss-stream-row--o { animation: ss-stream-left 43s linear infinite; animation-delay: -25s; }
  .agent-shift .ss-pill {
    --ss-bob: 7px;
    --ss-float-dur: 5.5s;
    --ss-float-delay: 0s;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
    margin-right: var(--ss-gap, 0.95rem);
    padding: 0.72rem 1.2rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 999px;
    background: #fff;
    box-shadow:
      0 12px 30px rgba(15, 23, 42, 0.07),
      0 1px 2px rgba(15, 23, 42, 0.04);
    white-space: nowrap;
    transform: none;
    animation: ss-float var(--ss-float-dur) ease-in-out var(--ss-float-delay) infinite;
    will-change: transform;
  }
  .agent-shift .ss-pill--plain {
    padding: 0.7rem 1.15rem 0.7rem 0.75rem;
  }
  .agent-shift .ss-pill--sm {
    padding: 0.55rem 1rem;
    gap: 0.5rem;
    box-shadow:
      0 8px 20px rgba(15, 23, 42, 0.05),
      0 1px 2px rgba(15, 23, 42, 0.03);
  }
  .agent-shift .ss-pill--sm .ss-pill-name,
  .agent-shift .ss-pill--sm .ss-pill-query {
    font-size: 0.8rem;
  }
  .agent-shift .ss-pill--sm .ss-pill-logo,
  .agent-shift .ss-pill--sm .ss-pill-logo svg {
    width: 17px;
    height: 17px;
  }
  .agent-shift .ss-pill--lg {
    padding: 0.85rem 1.35rem;
    gap: 0.72rem;
    box-shadow:
      0 16px 36px rgba(15, 23, 42, 0.09),
      0 1px 2px rgba(15, 23, 42, 0.04);
  }
  .agent-shift .ss-pill--lg .ss-pill-name,
  .agent-shift .ss-pill--lg .ss-pill-query {
    font-size: 0.94rem;
  }
  .agent-shift .ss-pill-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #94a3b8;
  }
  .agent-shift .ss-pill-search-icon svg {
    display: block;
    width: 16px;
    height: 16px;
  }
  .agent-shift .ss-stream-row .ss-pill:nth-child(3n):not(.ss-pill--soft):not(.ss-pill--ghost) {
    opacity: 0.7;
  }
  .agent-shift .ss-stream-row .ss-pill:nth-child(5n):not(.ss-pill--soft):not(.ss-pill--ghost) {
    opacity: 0.4;
  }
  .agent-shift .ss-stream-row .ss-pill:nth-child(7n):not(.ss-pill--soft):not(.ss-pill--ghost) {
    opacity: 0.55;
  }
  .agent-shift .ss-stream-layer--near .ss-pill:not(.ss-pill--soft):not(.ss-pill--ghost):nth-child(4n+1) {
    opacity: 1;
  }
  .agent-shift .ss-pill--soft {
    opacity: 0.45 !important;
  }
  .agent-shift .ss-pill--ghost {
    opacity: 0.22 !important;
  }
  .agent-shift .ss-pill-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
  .agent-shift .ss-pill-logo svg {
    display: block;
    width: 20px;
    height: 20px;
  }
  .agent-shift .ss-pill-name {
    font-family: "Switzer", ui-sans-serif, system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: #0f172a;
    line-height: 1;
  }
  .agent-shift .ss-pill-divider {
    width: 1px;
    height: 1.05rem;
    flex-shrink: 0;
    background: #e5e7eb;
  }
  .agent-shift .ss-pill-query {
    font-family: "Switzer", ui-sans-serif, system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 520;
    letter-spacing: -0.01em;
    color: #334155;
    line-height: 1.2;
  }
  .agent-shift .ss-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      radial-gradient(ellipse 64% 52% at 50% 46%, rgba(252, 250, 246, 1) 0%, rgba(252, 250, 246, 0.98) 28%, rgba(252, 250, 246, 0.88) 46%, rgba(252, 250, 246, 0.45) 68%, transparent 100%);
  }
  .agent-shift .ss-intro {
    position: relative;
    z-index: 2;
    max-width: 46rem;
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 4rem) 1.25rem;
    text-align: center;
    container-type: inline-size;
  }
  @media (min-width: 640px) {
    .agent-shift .ss-intro { padding-left: 1.5rem; padding-right: 1.5rem; }
  }
  @media (min-width: 1024px) {
    .agent-shift .ss-intro { max-width: 70rem; }
  }
  .agent-shift .ss-eyebrow {
    margin: 0;
    font-family: "Switzer", ui-sans-serif, system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #021329;
  }
  .agent-shift .ss-eyebrow + .ss-heading {
    margin-top: 1.05rem;
  }
  .agent-shift .ss-heading {
    margin: 0;
    color: #021329;
    font-family: var(--kelsey-display-serif);
    font-weight: 400;
    font-size: clamp(2rem, 5.4vw, 3.75rem);
    font-size: min(3.75rem, calc(100cqi / 16.8));
    line-height: 1.12;
    letter-spacing: -0.02em;
    white-space: nowrap;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
  .agent-shift .ss-lead {
    margin: 1.15rem auto 0;
    max-width: 42rem;
    color: #64748B;
    font-family: "Switzer", ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(1rem, 1.7vw, 1.125rem);
    line-height: 1.6;
  }
  .agent-shift .ss-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
    min-height: 2.85rem;
    padding: 0.8rem 1.55rem;
    border-radius: var(--kelsey-btn-radius, 4px);
    background: var(--kelsey-btn-bg, #032B52);
    color: #fff;
    font-family: "Switzer", ui-sans-serif, system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.18s ease;
  }
  .agent-shift .ss-cta svg {
    width: 15px;
    height: 15px;
  }
  .agent-shift .ss-cta:hover {
    background: var(--kelsey-btn-bg-hover, #043E72);
    transform: translateY(-1px);
  }
  @media (max-width: 640px) {
    .agent-shift {
      min-height: 32rem;
      padding: 4rem 0 4.5rem;
    }
    .agent-shift .ss-stream {
      gap: 0;
      inset: -4% -22%;
    }
    .agent-shift .ss-stream-layer:nth-child(1) { margin-top: 0.2rem; }
    .agent-shift .ss-stream-layer:nth-child(2) { margin-top: 1.15rem; }
    .agent-shift .ss-stream-layer:nth-child(3) { margin-top: 0.65rem; }
    .agent-shift .ss-stream-layer:nth-child(4) { margin-top: 1.45rem; }
    .agent-shift .ss-stream-layer:nth-child(5) { margin-top: 0.75rem; }
    .agent-shift .ss-stream-layer:nth-child(6) { margin-top: 1.3rem; }
    .agent-shift .ss-stream-layer:nth-child(7) { margin-top: 0.5rem; }
    .agent-shift .ss-stream-layer:nth-child(8) { margin-top: 1.2rem; }
    .agent-shift .ss-stream-layer:nth-child(9) { margin-top: 0.85rem; }
    .agent-shift .ss-stream-layer:nth-child(10) { margin-top: 1.4rem; }
    .agent-shift .ss-stream-layer:nth-child(11) { margin-top: 0.55rem; }
    .agent-shift .ss-veil {
      background:
        radial-gradient(ellipse 92% 56% at 50% 46%, rgba(252, 250, 246, 1) 0%, rgba(252, 250, 246, 0.98) 32%, rgba(252, 250, 246, 0.88) 48%, rgba(252, 250, 246, 0.45) 70%, transparent 100%);
    }
    .agent-shift .ss-pill {
      gap: 0.5rem;
      padding: 0.58rem 0.95rem;
    }
    .agent-shift .ss-pill--plain { padding: 0.58rem 0.95rem 0.58rem 0.65rem; }
    .agent-shift .ss-pill-name,
    .agent-shift .ss-pill-query {
      font-size: 0.78rem;
    }
    .agent-shift .ss-pill-logo,
    .agent-shift .ss-pill-logo svg {
      width: 17px;
      height: 17px;
    }
    .agent-shift .ss-heading {
      white-space: normal;
      font-size: min(3.75rem, calc(100cqi / 12.4));
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .agent-shift .ss-stream-row,
    .agent-shift .ss-pill {
      animation: none !important;
    }
  }
  @keyframes ss-stream-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
  @keyframes ss-stream-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
  }
  @keyframes ss-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, calc(var(--ss-bob) * -1), 0); }
  }

.agent-shift.agent-hero-first {
  border-top: 0;
  padding-top: calc(var(--kelsey-header-offset, 5.5rem) + clamp(2.75rem, 6vw, 4.75rem));
}
/* Keep the assignment pills under the fixed nav, not scrolling through it. */
.agent-shift.agent-hero-first .ss-stream {
  /* Extra room covers the pill float, so a row never rises into the nav. */
  top: calc(var(--kelsey-header-offset, 5.5rem) + 1.15rem);
}
#aeo-page-hero .ss-heading {
  font-size: min(3.75rem, calc(100cqi / 12.4));
}
body:has(.agent-hero-first) #kelsey-header > header {
  z-index: 80;
  background: #fcfaf6;
}
.agent-shift .ss-soon {
  display: inline-flex;
  align-items: center;
  margin-top: 1.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(16, 35, 63, 0.08);
  color: #3d4d63;
  font-family: Switzer, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
