/* People Group Services - seasonal banners (v11.4)
   Pairs with season.js. Nothing here moves a heading's layout: every decoration is absolutely
   positioned behind the words, buttons and portraits (the hats sit on top of the portraits). */

/* Tile backgrounds: still navy and ice, just warmed or cooled for the season */
.hero-space[data-season] .audience{transition:background .5s ease}
.hero-space[data-season=christmas] .audience.agency{background:radial-gradient(85% 75% at 78% 30%,rgba(242,193,78,.15),transparent 62%),linear-gradient(170deg,#0c406d 0%,#082d50 52%,#061f38 100%)}
.hero-space[data-season=christmas] .audience.contractor{background:radial-gradient(80% 70% at 78% 30%,rgba(242,193,78,.2),transparent 62%),linear-gradient(180deg,#f5fafd 0%,#e4f0f8 100%);border-color:#d3e5f0}
.hero-space[data-season=easter] .audience.agency{background:radial-gradient(85% 75% at 78% 30%,rgba(201,181,242,.22),transparent 62%),linear-gradient(170deg,#0c406d 0%,#082d50 55%,#0a2a4f 100%)}
.hero-space[data-season=easter] .audience.contractor{background:linear-gradient(160deg,#f7f3fe 0%,#eef8f3 100%);border-color:#e2dcf3}
.hero-space[data-season=halloween] .audience.agency{background:radial-gradient(80% 70% at 80% 26%,rgba(255,214,120,.12),transparent 60%),linear-gradient(170deg,#0f2f57 0%,#14214b 50%,#1b1441 100%)}
.hero-space[data-season=halloween] .audience.contractor{background:linear-gradient(160deg,#fff6ec 0%,#f4effd 100%);border-color:#efdfcf}
.hero-space[data-season=hanukkah] .audience.agency{background:radial-gradient(85% 75% at 78% 30%,rgba(143,216,242,.18),transparent 62%),linear-gradient(170deg,#0d4377 0%,#082d50 55%,#062544 100%)}
.hero-space[data-season=hanukkah] .audience.contractor{background:linear-gradient(160deg,#f3f9fe 0%,#e3effb 100%);border-color:#cfe2f4}
.hero-space[data-season=diwali] .audience.agency{background:radial-gradient(85% 75% at 78% 30%,rgba(255,176,46,.2),transparent 62%),linear-gradient(170deg,#0d3a63 0%,#082d50 50%,#191c45 100%)}
.hero-space[data-season=diwali] .audience.contractor{background:linear-gradient(160deg,#fff8ec 0%,#fdf0f5 100%);border-color:#f2e0cc}
.hero-space[data-season=eid] .audience.agency{background:radial-gradient(85% 75% at 80% 25%,rgba(242,193,78,.15),transparent 60%),linear-gradient(170deg,#0a3f5e 0%,#082d50 55%,#062a3d 100%)}
.hero-space[data-season=eid] .audience.contractor{background:linear-gradient(160deg,#effaf5 0%,#eef6fb 100%);border-color:#d3eadf}
.hero-space[data-season=lny] .audience.agency{background:radial-gradient(85% 75% at 78% 30%,rgba(212,32,39,.24),transparent 62%),linear-gradient(170deg,#0c3b66 0%,#082d50 55%,#251633 100%)}
.hero-space[data-season=lny] .audience.contractor{background:linear-gradient(160deg,#fff4f1 0%,#fff9ea 100%);border-color:#f4dcd2}
.hero-space[data-season=holi] .audience.agency{background:radial-gradient(60% 55% at 15% 100%,rgba(255,95,162,.2),transparent 70%),radial-gradient(55% 50% at 100% 0%,rgba(35,185,231,.22),transparent 70%),var(--navy)}
.hero-space[data-season=holi] .audience.contractor{background:linear-gradient(160deg,#fdf1f8 0%,#eef8fd 100%);border-color:#f1dcea}
.hero-space[data-season=newyear] .audience.agency{background:radial-gradient(85% 75% at 78% 30%,rgba(242,193,78,.2),transparent 62%),linear-gradient(170deg,#0c406d 0%,#082d50 55%,#0b1f3e 100%)}
.hero-space[data-season=newyear] .audience.contractor{background:linear-gradient(160deg,#fffaf0 0%,#eef6fc 100%);border-color:#efe3c6}

/* The decoration layer: behind the copy (z 3) and the portrait (z 2) */
.ss-layer{position:absolute;inset:0;z-index:1;pointer-events:none;transition:opacity .45s ease}
.page-hero.ss-host>.wrap{position:relative;z-index:2}
/* v11.7: banners marked by hand (Agency Hub, Agency Portal, the accreditation pages) hold their decorations behind the words */
[data-season-hero].ss-host{position:relative}[data-season-hero].ss-host>.wrap{position:relative;z-index:2}
.ss-parts{position:absolute;inset:0;overflow:hidden}
.ss-garland{position:absolute;left:0;top:0;width:100%;height:64px;overflow:visible}
.ss-corner{position:absolute;right:0;bottom:0;width:clamp(130px,calc(100cqi - 400px),236px);height:auto;aspect-ratio:240/180;overflow:visible}
.ss-hang{position:absolute;top:0;right:12px;width:64px;height:auto;aspect-ratio:80/200;overflow:visible}
.ss-hang-web{right:0;width:150px;aspect-ratio:140/150}

/* The glow or motif behind the person. Same box as the portrait itself. */
.ss-halo{position:absolute;left:0;top:0;width:0;height:0;z-index:-1;pointer-events:none;transition:opacity .45s ease;
  -webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 13%,#000 56%,transparent 90%),linear-gradient(90deg,transparent 0%,#000 26%);-webkit-mask-composite:source-in;
          mask-image:linear-gradient(180deg,transparent 0%,#000 13%,#000 56%,transparent 90%),linear-gradient(90deg,transparent 0%,#000 26%);mask-composite:intersect}
.page-hero .ss-halo{-webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 13%,#000 56%,transparent 90%);mask-image:linear-gradient(180deg,transparent 0%,#000 13%,#000 56%,transparent 90%)}
.ss-halo svg{display:block;width:100%;height:100%;overflow:visible}

/* The hat: a picture laid over the portrait, fading in and out with it as the people change */
.ss-hat{position:absolute;left:0;top:0;width:0;height:0;z-index:1;pointer-events:none;background:no-repeat 0 0/100% 100%;transition:opacity .7s ease,transform .7s ease}
.ss-hat[hidden]{display:none}
.person-stage.changing .ss-hat{opacity:0;transform:translateY(8px)}

/* The greeting chip takes the place of the small "For agencies" line (same height) */
.ss-hidden{display:none!important}
.ss-chip{flex:none;display:inline-flex;align-items:center;gap:8px;height:28px;max-width:100%;margin:0 0 9px;padding:0 13px 0 4px;border-radius:999px;background:var(--chip-bg);color:var(--chip-fg);
  font-size:.72rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase;line-height:1;white-space:nowrap;box-shadow:0 6px 16px rgba(4,22,40,.16)}
.ss-chip>span:last-child{overflow:hidden;text-overflow:ellipsis}
.ss-chip-ic{width:20px;height:20px;border-radius:50%;background:#fff;display:grid;place-items:center;flex:none}
.ss-chip-ic svg{width:15px;height:15px;display:block}
.aud-label.ss-has-chip{flex-wrap:wrap;row-gap:8px}
.aud-label.ss-has-chip .ss-chip{margin:0}

/* Keep the portrait name and Pause control easy to read over any decoration */
.hero-space[data-season] .audience .rotation-line{position:relative;z-index:3;padding:0 8px;border-radius:999px}
.hero-space[data-season] .agency .rotation-line{background:rgba(8,45,80,.62)}
.hero-space[data-season] .contractor .rotation-line{background:rgba(255,255,255,.7)}
.hero-space[data-season] .agency .btn.outline{background:rgba(8,45,80,.92)}
.hero-space[data-season] .agency .btn.outline:hover{background:#0d3a64}
.hero-space[data-season] .agency .person-meta{text-shadow:0 1px 10px rgba(6,30,54,.85)}
.hero-space[data-season] .contractor .person-meta{text-shadow:0 1px 10px rgba(255,255,255,.95)}
.page-hero.ss-host .hero-person .rotation-line{position:relative;z-index:3;padding:0 8px;border-radius:999px;background:rgba(255,255,255,.7)}
.page-hero.ss-host.navy .hero-person .rotation-line,.page-hero.ss-host.calc .hero-person .rotation-line{background:rgba(8,45,80,.62)}
.page-hero.ss-host .person-meta{text-shadow:0 1px 10px rgba(255,255,255,.95)}
.page-hero.ss-host.navy .person-meta,.page-hero.ss-host.calc .person-meta{text-shadow:0 1px 10px rgba(6,30,54,.85)}
.page-hero.ss-host.navy .btn.outline,.page-hero.ss-host.calc .btn.outline{background:rgba(8,45,80,.9)}

/* Particles */
.ss-p{position:absolute;left:var(--x);top:0;width:var(--s);height:calc(var(--s) * var(--a,1));opacity:var(--o);will-change:transform;animation:ss-fall var(--d) linear var(--dl) infinite}
.ss-p>i{display:block;width:100%;height:100%;animation:ss-sway calc(var(--d) / 3) ease-in-out var(--dl) infinite alternate}
.ss-p b{display:block;width:100%;height:100%}
.ss-p svg{display:block;width:100%;height:100%}
.ss-p.spin>i>b{animation:ss-spin var(--spd,6s) linear infinite}
.ss-p.rev>i>b{animation-direction:reverse}
@keyframes ss-spin{to{transform:rotate(360deg)}}
@keyframes ss-fall{from{transform:translateY(-60px)}to{transform:translateY(calc(var(--h,560px) + 20px))}}
@keyframes ss-sway{from{transform:translateX(calc(var(--sw) * -1)) rotate(calc(var(--r) * -1))}to{transform:translateX(var(--sw)) rotate(var(--r))}}
.ss-p.rise{animation-name:ss-rise}
@keyframes ss-rise{0%{transform:translateY(var(--h,560px));opacity:0}15%{opacity:var(--o)}75%{opacity:var(--o)}100%{transform:translateY(calc(var(--h,560px) * .18));opacity:0}}
.ss-p.twinkle{top:var(--y);animation-name:ss-twinkle;animation-timing-function:ease-in-out}
.ss-p.twinkle>i{animation:none}
@keyframes ss-twinkle{0%,100%{opacity:.12;transform:scale(.5)}50%{opacity:var(--o);transform:scale(1)}}
.ss-p.fly{top:var(--y);left:0;animation-name:ss-fly}
.ss-p.fly>i{animation:ss-flap .3s ease-in-out infinite alternate}
@keyframes ss-fly{0%{transform:translate(-60px,0)}50%{transform:translate(calc(var(--w,640px) * .5),-26px)}100%{transform:translate(calc(var(--w,640px) + 60px),8px)}}
@keyframes ss-flap{from{transform:scaleY(1)}to{transform:scaleY(.42)}}
.ss-p.drift{top:var(--y);animation-name:ss-drift;animation-timing-function:ease-in-out}
.ss-p.drift>i{animation:none}
@keyframes ss-drift{0%{transform:translate(0,0) scale(.7);opacity:0}25%{opacity:var(--o)}75%{opacity:var(--o)}100%{transform:translate(var(--sw),-70px) scale(1.3);opacity:0}}

/* Seasons taking turns fade across */
.ss-swapping .ss-layer,.ss-swapping .ss-halo,.ss-swapping .ss-hat,.ss-swapping .ss-chip{opacity:0}
.ss-chip{transition:opacity .45s ease}

/* Twinkling bulbs and the Halloween spider */
.ss-tw{animation:ss-glow var(--tw,2s) ease-in-out var(--tdl,0s) infinite alternate}
@keyframes ss-glow{from{opacity:.25}to{opacity:1}}
.ss-bob{animation:ss-bob 3.6s ease-in-out infinite alternate}
@keyframes ss-bob{from{transform:translateY(-8px)}to{transform:translateY(12px)}}

/* One Pause button stops everything; reduced-motion users get a still picture */
.ss-paused .ss-p,.ss-paused .ss-p>i,.ss-paused .ss-p b,.ss-paused .ss-tw,.ss-paused .ss-bob{animation-play-state:paused!important}
@media (prefers-reduced-motion:reduce){
  .ss-p,.ss-p>i,.ss-p b,.ss-tw,.ss-bob{animation:none!important}
  .ss-p.fall,.ss-p.rise{transform:translateY(calc(var(--h,560px) * var(--yf)))}
  .ss-p.fly{left:var(--x)}
  .hero-space[data-season] .audience,.ss-layer,.ss-halo,.ss-hat,.ss-chip{transition:none}
}

@media(max-width:1180px){
  .ss-corner{width:clamp(140px,calc(100cqi - 420px),210px)}
}
@media(max-width:920px){
  .page-hero.ss-hats .hero-person{margin-top:24px}
}
@media(max-width:600px){
  .ss-halo{-webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 13%,#000 56%,transparent 90%);mask-image:linear-gradient(180deg,transparent 0%,#000 13%,#000 56%,transparent 90%)}
  .ss-corner,.ss-hang{display:none}
  .ss-hang-web{display:block;width:96px}
  .hero-space.ss-hats .audience .person-stage{margin-top:16px}
}
