/* The film (film.js): the network as the picture, between two navy bands (the app's dark mode, the
   logo's navy; LinkedReach has no black). The top band is
   the site's bar, which follows the ground under it; the bottom band carries each beat's words like a
   subtitle: a line, and often a second, quieter one. A beat's card sits over the picture's right side
   (over its foot on a phone). The picture's light is a set of custom properties the film writes:
   --film-g (ground), --film-line, --film-node, --film-ink and --film-edge; --wave lights the warm wave.
   Without motion it is an ordinary section: the finished picture, then every beat with its card. */
.film {
  --film-g: #dfdedb; --film-line: #070B12; --film-node: #8a877d; --film-ink: #070B12; --film-edge: .16;
  --wave: 1.3; --wave2: 1.3; --wave3: 1.3;
  --cinema: var(--night);
  --cap: 26svh;
}

/* ── The finished composition ── */
.film .scene-title { padding: 120px var(--m) 24px; }
.film-picture { position: relative; background: var(--film-g); }
.film-net { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
/* Still, the picture is a shorter strip, so the title and the button still reach the first screen. */
.film:not(.is-live) .film-net { aspect-ratio: auto; height: min(56.25vw, 56svh); }
.film-days, .film-away, .film-band { display: none; }
.film-beats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px var(--gap); padding: 56px var(--m) 120px; }
.film-beat { display: grid; gap: 16px; align-content: start; }
.film-cap { display: grid; gap: 6px; max-width: 46ch; }
.cap-main { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.01em; }
.cap-sub { color: var(--muted); }
.film-beat .slate { color: var(--muted); }
.film-card { max-width: 440px; }
.film-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
/* The title card: what it does and how to start, over the opening frame. */
.film-beat--title { grid-column: 1 / -1; }
.film-beat--title .film-cap { max-width: 900px; }
.film-beat--title .cap-main { font-size: var(--step-display); font-weight: 400; line-height: 1; letter-spacing: -0.035em; }
.film-beat--title .cap-sub { font-size: var(--step-lead); line-height: 1.4; max-width: 46ch; }
@media (max-width: 767px) { .film-beats { grid-template-columns: minmax(0, 1fr); } }

/* ── The picture's marks: the warm story's key (grey a stranger, ink a post, peach has seen you, coral
   you and what comes back to you) ── */
.fe { stroke: var(--film-line); stroke-width: 1px; opacity: var(--film-edge); vector-effect: non-scaling-stroke; }
.fe.is-hub { opacity: calc(var(--film-edge) * 2.6); stroke-width: 1.5px; }
.fn { fill: var(--film-node); transition: fill 500ms ease, r 400ms ease; }
.fn.is-warm { fill: #F0997B; r: 5px; transition-delay: calc(var(--k, 0) * 70ms); }
.fn--post.is-hub { fill: var(--film-ink); r: 8px; }
.fn--dana.is-warm { fill: #F0997B; r: 6px; }
/* Booked, Dana is a client: the peach of people who know you, larger, with a soft halo. Coral is only ever
   you and your team. */
.fn--dana.is-booked { fill: #F0997B; r: 9px; stroke: #F0997B; stroke-width: 8px; stroke-opacity: .3; paint-order: stroke; vector-effect: non-scaling-stroke; }
/* You, coral; grey while your account is restricted, until you find another way. */
.fn--you { fill: var(--coral); transition: fill 400ms ease; }
.fn--you.is-locked { fill: var(--film-node); }
/* Warmth spreads from each sender: yours (--wave), then your teammates' (--wave2, --wave3) at the end. */
.fw { fill: #F0997B; opacity: clamp(0, max((var(--wave) - var(--d)) * 5, (var(--wave2) - var(--d2, 9)) * 5, (var(--wave3) - var(--d3, 9)) * 5), 1); }
.fr { fill: none; stroke: var(--film-ink); stroke-width: 1.5px; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity 500ms ease; transition-delay: calc(var(--k, 0) * 90ms); }
.fr.is-on { opacity: .45; }
/* Cold, the villain: your emails (they die on the way), your calls (they ring, then go dark) and your
   invitations (dashed, waiting, then gone). Lines drawn out by their end keep picture-unit widths. */
.fmail { fill: var(--coral); opacity: 0; }
.fcall { stroke: var(--film-ink); stroke-width: 1.2; opacity: 0; }
.finv { stroke: var(--coral); stroke-width: 2; stroke-dasharray: 7 9; opacity: 0; }
/* The cold cycle: a dashed ring that turns round you. */
.forbit { fill: none; stroke: var(--film-line); stroke-width: 2px; stroke-dasharray: 10 14; vector-effect: non-scaling-stroke; opacity: 0; }
/* The shortcut: a tool's even, mechanical fan of lines, then LinkedIn's ring closing round you. */
.fbot { stroke: var(--film-ink); stroke-width: 1.2; opacity: 0; }
.flock { fill: none; stroke: var(--film-ink); stroke-width: 3px; vector-effect: non-scaling-stroke; opacity: 0; }
/* The plan's three steps: you, warming, a meeting. */
.fstep { stroke: none; opacity: 0; }
.fstep--you { fill: var(--coral); }
.fstep--warm { fill: #F0997B; }
.fstep--meet { fill: #F0997B; stroke: #F0997B; stroke-width: 6; stroke-opacity: .3; }
/* The agent's round, your line to Dana, and the people who come to you at the end. */
.ftr { stroke: var(--coral); stroke-width: 2; fill: none; stroke-linejoin: round; }
.fl { stroke: var(--coral); stroke-width: 3; stroke-dasharray: 9 10; }
.fl.is-solid { stroke-dasharray: none; }
.fin { stroke: var(--coral); stroke-width: 2; opacity: 0; }
/* Your team, joined up across the market. */
.fteam { stroke: var(--coral); stroke-width: 2; opacity: 0; }
.fring { fill: none; stroke: var(--coral); stroke-width: 2px; vector-effect: non-scaling-stroke; opacity: 0; }
.fring--ink { stroke: var(--film-ink); }
.fring--pending { stroke-width: 2.5px; }
/* Your website and your LinkedIn: one ring sweeps out from you and reads the whole market. */
.fsweep { fill: none; stroke: var(--film-ink); stroke-width: 1.5px; vector-effect: non-scaling-stroke; opacity: 0; }
/* Away: a dashed ring round you while you're somewhere else. */
.fring--away { stroke-dasharray: 3 6; }
/* The opening frame breathes: a ring keeps leaving you, so the first screen is plainly alive and asks
   to be scrolled. Only while the film sits on its first frame. */
.fbreath { fill: none; stroke: var(--coral); stroke-width: 2px; vector-effect: non-scaling-stroke; opacity: 0; transform-box: fill-box; transform-origin: center; pointer-events: none; }
html.js .film.is-live[data-beat="0"] .fbreath { animation: film-breath 2.6s cubic-bezier(.2, .6, .3, 1) infinite; }
@keyframes film-breath { from { opacity: .6; transform: scale(1); } to { opacity: 0; transform: scale(2.8); } }
@media (prefers-reduced-motion: reduce) { html.js .film.is-live[data-beat="0"] .fbreath { animation: none; } }
.fdot { fill: var(--coral); opacity: 0; }
.flab { font: 600 22px Archivo, system-ui, sans-serif; fill: var(--film-ink); paint-order: stroke; stroke: var(--film-g); stroke-width: 6px; stroke-linejoin: round; opacity: 0; transition: opacity 500ms ease; }
.flab.is-on { opacity: 1; }
.film:not(.is-live) .flab { font-size: max(22px, calc(86px - 6.4vw)); stroke-width: max(6px, calc(21px - 1.6vw)); }
@media (prefers-reduced-motion: reduce) { .fn, .fn--you, .fr, .flab { transition: none; } }

/* The cards: your side wears your colour, and your reply is in ink, since navy is the page's one action. */
.film .av--you { width: 14px; height: 14px; margin-inline: 9px; }
.film .bubble--out { background: var(--ink); color: var(--paper); }
.film .ui-quiet { color: var(--muted); }
/* What it learned: from your website, what you sell and who buys it; from your LinkedIn, how you write. */
.learned-card .ui-body { display: grid; gap: 14px; }
.ui-fact { display: grid; gap: 2px; margin: 0; }
.ui-fact > span:first-child { color: var(--muted); font-size: var(--step-small); }
/* The Autopilot card: the app's three levels; the chosen one keeps a coral frame, as in the app. It shows
   Autopilot chosen; the film shows Control until you switch, partway through the beat. */
.mode-card .ui-body { display: grid; gap: 8px; }
.ui-mode { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 10px 12px; border: 1.5px solid transparent; border-radius: 10px; transition: border-color 300ms ease; }
.ui-mode > span:last-child { display: grid; gap: 2px; }
.ui-mode b { font-weight: 600; }
.ui-mode > span:last-child > span { color: var(--muted); font-size: var(--step-small); line-height: 1.4; }
.ui-radio { position: relative; flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--muted); transition: border-color 300ms ease; }
.ui-radio::after { content: ""; position: absolute; inset: 2.5px; border-radius: 50%; background-color: transparent; transition: background-color 300ms ease; }
.mode-card .ui-mode.is-control, .mode-card.is-auto .ui-mode.is-autopilot { border-color: var(--coral); }
.mode-card .ui-mode.is-control .ui-radio, .mode-card.is-auto .ui-mode.is-autopilot .ui-radio { border-color: var(--coral); }
.mode-card .ui-mode.is-control .ui-radio::after, .mode-card.is-auto .ui-mode.is-autopilot .ui-radio::after { background-color: var(--coral); }
.mode-card.is-auto .ui-mode.is-control { border-color: transparent; }
.mode-card.is-auto .ui-mode.is-control .ui-radio { border-color: var(--muted); }
.mode-card.is-auto .ui-mode.is-control .ui-radio::after { background-color: transparent; }
@media (prefers-reduced-motion: reduce) { .ui-mode, .ui-radio, .ui-radio::after { transition: none; } }
@media (forced-colors: active) { .mode-card .ui-mode.is-control, .mode-card.is-auto .ui-mode.is-autopilot { border-color: Highlight; } }

/* ── Live: the held stage ── */
/* The bar is the stage's top band, so the playing film starts under it: at the first paint the whole
   stage is on screen (it otherwise sat a bar's height low until the first scroll, with the band's foot,
   the cue, below the fold). */
html.js .film.is-live { margin-top: calc(-1 * var(--bar)); }
html.js .film.is-live > .scene-stage { background: var(--cinema); color: var(--night-ink); }
html.js .film.is-live .scene-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html.js .film.is-live .film-picture { position: absolute; left: 0; right: 0; top: var(--bar); bottom: var(--cap); overflow: hidden; }
html.js .film.is-live .film-net { width: 100%; height: 100%; aspect-ratio: auto; }
html.js .film.is-live .film-band { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: var(--cap); }
/* The days that go by, and the places you are while it works, large over the picture. */
html.js .film.is-live .film-days, html.js .film.is-live .film-away { display: grid; place-items: center; position: absolute; inset: 0; margin: 0; pointer-events: none; }
html.js .film.is-live .film-days span, html.js .film.is-live .film-away span { grid-area: 1 / 1; font-size: calc(0.9 * clamp(2.5rem, 1.2rem + 3vw, 4.25rem)); font-weight: 400; letter-spacing: -0.035em; line-height: 1; color: var(--film-ink); opacity: 0; }
/* The camera holds you at the middle while the days go by, so the days pass above you. */
html.js .film.is-live .film-days { place-items: start center; padding-top: clamp(28px, 8svh, 88px); }
/* Every beat stays in the reading order; only the current one is seen. A faded beat is clipped and
   moved out of frame (both keep it in the accessibility tree), so no stack of invisible ones lies
   under the line on screen. */
html.js .film.is-live .film-beats { position: absolute; inset: 0; z-index: 2; display: block; padding: 0; pointer-events: none; }
html.js .film.is-live .film-beat { position: absolute; inset: 0; display: block; opacity: 0; clip-path: inset(50%); translate: 0 200vh; transition: opacity 260ms ease, clip-path 0s linear 260ms, translate 0s linear 260ms; }
html.js .film.is-live .film-beat.is-current { opacity: 1; clip-path: none; translate: none; transition: opacity 320ms ease, clip-path 0s, translate 0s; }
html.js .film.is-live .film-beat.is-current .film-card, html.js .film.is-live .film-beat.is-current .film-actions { pointer-events: auto; }
/* The words under the picture: the line, then the quieter one under it. */
html.js .film.is-live .film-cap {
  position: absolute; left: var(--m); bottom: 0; height: var(--cap); width: min(760px, calc(100% - 2 * var(--m)));
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; margin: 0;
  color: var(--night-ink); transform: translateY(10px); transition: transform 700ms var(--ease);
}
html.js .film.is-live .cap-main { font-size: var(--step-head); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; max-width: 30ch; }
html.js .film.is-live .cap-sub { font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.01em; color: #C9CED8; text-wrap: pretty; max-width: 46ch; }
html.js .film.is-live .film-beat.is-current .film-cap { transform: none; }
html.js .film.is-live .film-beat--title .cap-main { font-size: clamp(2.5rem, 1.2rem + 3vw, 4.25rem); line-height: 1.02; letter-spacing: -0.035em; }
/* The opening question takes the band's width beside its buttons, and on a short screen it may rise out
   of the band into the opening frame, which is the same navy and empty there (you are at its middle).
   film.js allows it up to a third of the picture. */
html.js .film.is-live .film-beat--title .film-cap { height: auto; min-height: var(--cap); padding-block: 24px; max-width: min(760px, calc(100% - 2 * var(--m) - 400px)); }
/* The words answer the hand on the next frame (2026-11-05: "you can't be sure if you're scrolling"; the
   opening held still for seven wheel notches). --p is the raw scroll progress (the stage writes it on
   every scroll, never the catch-up), --beats the film's beat count, and --beat-i each beat's place, so --t runs
   0 → 1 across a line's own beat. Every line drifts up a little while you scroll through it, and the
   title card lifts away from the very first notch instead of waiting out its beat. It rises 18vh and is
   gone by 90% of its beat, which stops it short of you (the dot) on every screen measured: 1440x900,
   1366x768 and a phone. The buttons fade over the whole beat, so they're never clickable while invisible. */
html.js .film.is-live .film-beat { --t: clamp(0, calc(var(--p, 0) * var(--beats, 1) - var(--beat-i, 0)), 1.5); }
html.js .film.is-live .film-beat .film-cap { translate: 0 calc(var(--t) * -20px); }
html.js .film.is-live .film-beat--title .film-cap { translate: 0 calc(var(--t) * -18vh); opacity: clamp(0, calc(1 - var(--t) * 1.1), 1); }
html.js .film.is-live .film-beat--title .film-actions { translate: 0 calc(var(--t) * -18vh); opacity: clamp(0, calc(1 - var(--t)), 1); }
/* The opening question's typewriter, the same motion as the live site's "LinkedIn that …": the ending is
   typed, held, deleted and replaced, one question for each kind of visitor. It never wraps, so the
   question keeps its height while it types. */
.tw { display: inline-block; white-space: nowrap; }
.tw-caret { display: inline-block; width: .055em; min-width: 3px; height: .82em; margin-left: .06em; background: var(--coral); vertical-align: -.04em; border-radius: 1px; animation: tw-blink 1.05s steps(1, end) infinite; }
@keyframes tw-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
html:not(.js) .tw-caret { display: none; }
@media (prefers-reduced-motion: reduce) { .tw-caret { display: none; } }
/* A few words in each act carry the story: coral on the navy band, like the live site's typed words;
   on the stone page, where coral text would be too faint to read, an ink word with a coral underline. */
.hl, .tw-word { font-style: normal; text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: .08em; text-underline-offset: .12em; text-decoration-skip-ink: none; }
html.js .film.is-live .hl, html.js .film.is-live .tw-word { color: var(--coral); text-decoration: none; }
/* On a phone the longest ending still fits its one line. */
@media (max-width: 767px) { .film-beat--title .cap-main, html.js .film.is-live .film-beat--title .cap-main { font-size: clamp(1.875rem, 8.4vw, 2.5rem); } }
/* The days and the places over the picture stay a step below the opening question, which leads the first
   screen. */
@media (max-width: 767px) { html.js .film.is-live .film-days span, html.js .film.is-live .film-away span { font-size: calc(0.9 * clamp(1.875rem, 8.4vw, 2.5rem)); } }
/* The cue under it: the coral dot is you, so scroll. */
.film-cue { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--muted); line-height: 1.4; }
.cue-dot { flex: none; width: 10px; height: 10px; margin-top: calc((1.4em - 10px) / 2); border-radius: 50%; background: var(--coral); }
html:not(.js) .film-cue { display: none; }
html.js .film.is-live .film-cue { color: var(--night-muted); font-size: var(--step-body); line-height: 1.4; margin-top: 4px; }
html.js .film.is-live .slate { color: var(--night-muted); }
/* A beat's card, over the picture's right side. */
html.js .film.is-live .film-card { position: absolute; right: var(--m); top: calc(var(--bar) + 32px); width: min(400px, 34vw); max-width: none; transform: translateX(20px); transition: transform 700ms var(--ease); }
html.js .film.is-live .film-beat.is-current .film-card { transform: none; }
/* The last beat's actions sit in the band, on its right, in the band's own light. */
html.js .film.is-live .film-actions { position: absolute; right: var(--m); bottom: 0; height: var(--cap); --focus-btn: var(--night-ink); }
html.js .film.is-live .film-actions .btn { background: var(--night-ink); color: var(--night); }
html.js .film.is-live .film-actions .btn:hover { background: #ffffff; }
html.js .film.is-live .film-actions .text-link { color: var(--night-ink); }

/* Skip the story: a quiet way past the film for anyone who doesn't want the whole of it. It sits in the
   band's bottom-right corner, where no story beat puts anything, small and in the band's muted ink until
   a pointer or the keyboard finds it. It is a plain link to what follows, so it jumps there at once rather
   than scrolling through every beat, and it works without script. It shows from the first story beat to
   the one before the last: the opening keeps its own two buttons, and the ending has nothing left to skip. */
.film-skip { display: none; }
html.js .film.is-live .film-skip {
  display: inline-flex; align-items: center; min-height: 44px;
  position: absolute; z-index: 3; right: var(--m); bottom: 8px;
  font-size: var(--step-small); font-weight: 600; color: var(--night-muted); text-decoration: underline;
  text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 5px;
  transition: color 200ms ease, text-decoration-color 200ms ease, opacity 300ms ease, visibility 0s;
}
html.js .film.is-live .film-skip:hover, html.js .film.is-live .film-skip:focus-visible { color: var(--night-ink); text-decoration-color: var(--coral); }
html.js .film.is-live .film-skip:focus-visible { outline: 2px solid var(--night-ink); outline-offset: 3px; }
html.js .film.is-live .film-skip.is-away { opacity: 0; visibility: hidden; transition: opacity 300ms ease, visibility 0s linear 300ms; }
@media (prefers-reduced-motion: reduce) { html.js .film.is-live .film-skip { transition: none; } }

/* A short laptop screen: the found list keeps three people and the one below your bar. */
@media (min-width: 768px) and (max-height: 820px) {
  html.js .film.is-live .found-card .ui-row:nth-child(4) { display: none; }
}

/* Stacked (a phone, an upright tablet): the picture, then the band; the card over the picture's foot. */
@media (max-width: 767px), (max-width: 1023px) and (orientation: portrait) {
  .film { --cap: 38svh; }
  html.js .film.is-live .film-cap { justify-content: flex-start; padding-top: 20px; gap: 8px; }
  /* The opening question keeps clear of the buttons at the band's foot. */
  html.js .film.is-live .film-beat--title .film-cap { max-width: none; padding-bottom: 92px; }
  html.js .film.is-live .cap-main { font-size: var(--step-lead); line-height: 1.25; }
  html.js .film.is-live .cap-sub { font-size: var(--step-body); line-height: 1.45; }
  html.js .film.is-live .film-card { left: var(--m); right: var(--m); top: auto; bottom: calc(var(--cap) + 12px); width: auto; transform: translateY(14px); }
  html.js .film.is-live .film-actions { left: var(--m); right: auto; bottom: 20px; height: auto; }
  /* A card keeps only its message on a phone; who said it stays for screen readers. */
  html.js .film.is-live .ui-extra { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html.js .film.is-live .film-card .ui-text, html.js .film.is-live .film-card .bubble { font-size: var(--step-small); line-height: 1.45; }
  html.js .film.is-live .film-card .ui-head { padding: 10px 14px; }
  html.js .film.is-live .film-card .ui-body { padding: 12px 14px 14px; gap: 10px; }
  html.js .film.is-live .found-card .ui-row { padding: 4px 0; }
  html.js .film.is-live .found-card .ui-row:nth-child(n+4) { display: none; }
}
@media (max-width: 767px) and (max-height: 700px) { .film { --cap: 42svh; } }
