/* "Look over their shoulder" (Terrell, Nov 24): the home page's scroll story. A loop of real people laughing at a laptop
   (licensed Envato footage) folds into a laptop's screen, the screen turns into the Talencia web app, and the camera
   pushes in until the app fills the window, with three short notes on what the app does. story.js drives it from the
   scroll position. Without that script, with reduced motion, or before it runs, the same parts stand still in order
   (.ss without .ss-live). The stage is near-black in every look; accents use --teal, which the holiday look recolours. */
.ss{position:relative;margin:0;padding:0;background:#0B0C0E;color:#F4F4F6;--ss-mute:#B4B5BC}
.ss-pin{position:relative;padding:clamp(64px,9vw,120px) 20px;display:flex;flex-direction:column;align-items:center;gap:28px;overflow-x:clip}
.ss-film{position:relative;width:min(1040px,100%);aspect-ratio:16/9;border-radius:18px;overflow:hidden;background:#141518}
.ss-film img,.ss-film video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.ss-film video{opacity:0;transition:opacity .5s}.ss-film.is-playing video{opacity:1}
.ss-scrim{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(11,12,14,0) 45%,rgba(11,12,14,.72) 100%)}
.ss-intro{max-width:640px;text-align:center}
.ss-intro .eyebrow{color:var(--teal);margin:0 0 10px}
.ss-intro h2{margin:0;font-size:clamp(34px,5.4vw,64px);line-height:1.04;letter-spacing:-.025em;color:#F4F4F6}
.ss-intro p{margin:14px 0 0;color:var(--ss-mute);font-size:clamp(16px,1.5vw,19px)}
.ss-hint{display:inline-flex;align-items:center;gap:8px}
.ss-hint svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;animation:ss-bob 1.8s ease-in-out infinite}
@keyframes ss-bob{50%{transform:translateY(4px)}}

/* The laptop: a lid with a thin bezel around a 16:10 screen, and a base a little wider than the lid. */
.ss-laptop{position:relative;width:min(1040px,100%)}
.ss-lid{position:relative;padding:2.1% 2.1% 2.6%;border-radius:18px 18px 10px 10px;background:linear-gradient(180deg,#2A2C31,#1C1D21);box-shadow:0 0 0 1px rgba(255,255,255,.08) inset,0 40px 80px -40px rgba(0,0,0,.8)}
.ss-lid::before{content:"";position:absolute;top:.9%;left:50%;width:6px;height:6px;margin-left:-3px;border-radius:50%;background:#0B0C0E;box-shadow:0 0 0 1px rgba(255,255,255,.08)}
.ss-screen{position:relative;aspect-ratio:16/10;border-radius:6px;overflow:hidden;background:#000}
.ss-app,.ss-app img{display:block;width:100%;height:100%}
.ss-app img{object-fit:cover;object-position:0 0}
.ss-base{position:relative;left:-6%;width:112%;height:clamp(10px,1.6vw,18px);border-radius:2px 2px 14px 14px;background:linear-gradient(180deg,#D7DADF,#9EA2A8);box-shadow:0 24px 40px -20px rgba(0,0,0,.9)}
.ss-base::after{content:"";position:absolute;top:0;left:50%;width:16%;height:38%;margin-left:-8%;border-radius:0 0 8px 8px;background:#8E9298}

/* The three notes and the light that picks out what each one is about. */
.ss-notes{list-style:none;margin:0;padding:0;display:grid;gap:12px;width:min(1040px,100%);grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.ss-note{padding:16px 18px;border-radius:16px;background:#1A1B1F;box-shadow:0 0 0 1px rgba(255,255,255,.1)}
.ss-note b{display:block;font-size:17px;color:#F4F4F6;margin-bottom:4px}
.ss-note span{display:block;font-size:15px;line-height:1.45;color:var(--ss-mute)}
.ss-note i{font-style:normal;display:inline-grid;place-items:center;width:22px;height:22px;margin-right:8px;border-radius:50%;background:var(--teal);color:#0B0C0E;font-size:12px;font-weight:800;vertical-align:1px}
.ss-spot{display:none}
.ss-end{text-align:center;max-width:560px}
.ss-end h3{margin:0 0 16px;font-size:clamp(26px,3.4vw,40px);letter-spacing:-.02em;line-height:1.1;color:#F4F4F6}
.ss-end .acts{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.ss .ss-end .btn:not(.ghost){background:var(--teal);color:#0B0C0E;border-color:var(--teal)}
.ss .ss-end .btn.ghost{color:#F4F4F6;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.5);background:transparent}

/* Live: story.js pins the stage for the length of the section and moves the parts. */
.ss.ss-live{height:420vh}
.ss-live .ss-pin{position:sticky;top:0;height:100vh;height:100svh;padding:0;overflow:hidden;display:block}
.ss-live .ss-film{position:absolute;inset:0;width:auto;aspect-ratio:auto;border-radius:0;z-index:1;will-change:clip-path,opacity}
.ss-live .ss-intro{position:absolute;left:0;right:0;bottom:clamp(40px,9vh,96px);margin:0 auto;padding:0 20px;z-index:2;will-change:opacity,transform}
.ss-live .ss-intro h2,.ss-live .ss-intro p{text-shadow:0 2px 24px rgba(0,0,0,.6)}
.ss-live .ss-laptop{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);transform-origin:50% 50%;opacity:0;will-change:transform,opacity}
.ss-live .ss-notes{display:block;position:absolute;inset:0;width:auto;z-index:4;pointer-events:none}
.ss-live .ss-note{position:absolute;max-width:min(320px,calc(100vw - 32px));opacity:0;transform:translateY(8px);transition:opacity .3s,transform .3s;background:rgba(20,21,24,.94);backdrop-filter:blur(10px)}
.ss-live .ss-note.on{opacity:1;transform:none}
.ss-live .ss-spot{display:block;position:absolute;z-index:3;border-radius:12px;box-shadow:0 0 0 2px var(--teal),0 0 0 100vmax rgba(11,12,14,.55);opacity:0;transition:opacity .3s,left .3s,top .3s,width .3s,height .3s;pointer-events:none}
.ss-live .ss-spot.on{opacity:1}
.ss-live .ss-end{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(560px,calc(100vw - 32px));z-index:5;padding:28px 24px;border-radius:22px;background:rgba(11,12,14,.9);box-shadow:0 0 0 1px rgba(255,255,255,.1),0 40px 80px -30px rgba(0,0,0,.8);opacity:0;visibility:hidden;transition:opacity .35s,visibility .35s}
.ss-live .ss-end.on{opacity:1;visibility:visible}
.ss-film .vid-toggle{z-index:3}
/* Phones: the intro and the closing card stay clear of the bottom bar (Find work, Request talent) and Talsie. */
@media (max-width:900px){.ss-live .ss-intro{bottom:calc(120px + env(safe-area-inset-bottom))}.ss-live .ss-end{top:42%}}

/* The live demo, in a dialog over the page. */
.ss-demo{width:min(1200px,calc(100vw - 24px));height:min(780px,calc(100vh - 24px));padding:0;border:0;border-radius:18px;background:#0B0C0E;box-shadow:0 40px 120px -20px rgba(0,0,0,.8);overflow:hidden}
.ss-demo::backdrop{background:rgba(0,0,0,.7)}
.ss-demo iframe{width:100%;height:100%;border:0;display:block}
.ss-demo .ss-x{position:absolute;top:10px;right:10px;z-index:2;width:44px;height:44px;border-radius:50%;border:0;background:rgba(11,12,14,.8);color:#fff;font-size:22px;line-height:1;cursor:pointer;box-shadow:0 0 0 1px rgba(255,255,255,.2)}
.ss-demo .ss-x:focus-visible,.ss-end .btn:focus-visible{outline:3px solid var(--teal);outline-offset:3px}
@media (prefers-reduced-motion:reduce){.ss-hint svg{animation:none}.ss-live .ss-note,.ss-live .ss-spot,.ss-live .ss-end{transition:none}}
