/* 07 Telephony (v8, 31 Oct: option A on paper, with little glow). The head left and stacked (on tablet split), then
   the US callout, the SIP ladder of one call, in a white card with a header (the call, its region, its length), each
   message's time, the call's audio as a band and the note as a strip across its foot; Systems' violet path comes in at
   the top edge at the same x and runs into the card's Synthflow lifeline. Under the card the globe (a Blender render,
   globe-render.py: a pearl sphere, the land as violet dots, the three regions lit) on a weak halo (about
   35 %), with a pin on each region on a soft light (half strength), dissolving into the paper at the bottom; no light
   behind the card. Desktop: the card on the page axis, its caret on the US pin at its left. Tablet: the card above the
   globe, its caret down on the US pin. Phone: the steps as a list on one rail, the Synthflow circle on the card's top
   right where the path comes down; the labels under the pins.
   The map (globe, pins, caret) is placed from the card's bottom edge; its x is from the page axis, and below the
   tablet and phone design widths (768, 390) its x shrinks by --u, so the pins stay on their regions and in view. */

.telephony {
  --u: 1px;
  --telephony-pin-light-rgb: 226 218 253;
  position: relative; isolation: isolate; container-type: inline-size; overflow: clip;
  display: flex; flex-direction: column; align-items: center;
  padding-top: 95px; background: var(--surface-page);
}

/* Head */
.telephony-head { display: flex; flex-direction: column; align-items: flex-start; }
.telephony-head h2 { max-width: 360px; }
.telephony-lead { max-width: 390px; margin-top: 24px; font: var(--t-lead); letter-spacing: var(--t-lead-tracking); color: var(--ink-secondary); }
.telephony-servers { display: flex; align-items: center; gap: 8px; margin-top: 30px; font: var(--t-label);
  color: var(--ink-secondary); }
.telephony-servers img { width: 16px; height: 16px; }

/* Ladder (the US callout; desktop and tablet draw it as a diagram). Columns --c1..3 (Zoom Phone, Synthflow · US, your
   team) and each step's row (--y-…) are the card's coordinates; its hairline is an inset shadow. */
.telephony-ladder {
  --hd: 56px; --c1: 116px; --c2: 396px; --c3: 676px; --tile: 64px; --circle: 72px; --tile-top: 92px; --name-top: 173px;
  --life-top: 220px; --life-bottom: 575px;
  --y-rings: 258px; --y-answered: 322px; --y-call: 392px; --y-duration: 439px; --y-case: 392px; --y-reason: 470px; --y-picked: 534px;
  --pill: 42px; --pill-hl: 42px; --wave: 46px; --wave-gap: 16px; --wave-k: 1.367; --tag: 40px; --tag-gap: 23px;
  --wire: rgb(var(--c-violet-rgb) / .38); --wire-strong: rgb(var(--c-violet-rgb) / .75);
  position: relative; z-index: 1; flex: none; width: 792px; height: 671px; margin-top: 66px;
  border-radius: var(--radius-lg); background: var(--surface-card);
  box-shadow: inset 0 0 0 1px var(--border-subtle), 0 24px 48px rgb(var(--c-violet-deep-rgb) / .08), 0 2px 6px rgb(var(--c-violet-deep-rgb) / .04); }

/* The card's header: the call (live), its region and its length, over a hairline */
.telephony-bar { position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: var(--hd); display: flex; align-items: center;
  justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--border-subtle); }
.telephony-bar-call { display: flex; align-items: center; gap: 10px; font: 500 15px/22px var(--font-text); color: var(--ink-primary); }
.telephony-bar-meta { display: flex; align-items: center; gap: 14px; }
.telephony-bar-region { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px 0 10px;
  border-radius: var(--radius-full); background: var(--surface-sunken); font: var(--t-label); color: var(--ink-primary); }
.telephony-bar-region img { width: 14px; height: 14px; }
.telephony-bar-time { font: 500 14px/20px var(--font-mono); letter-spacing: .2px; color: var(--ink-secondary); font-variant-numeric: tabular-nums; }

/* The path from Systems' hub: from far above the card (the section clips it at its top edge) to the Synthflow circle */
.telephony-path { position: absolute; z-index: 1; left: calc(var(--c2) - .75px); bottom: calc(100% - var(--tile-top) - var(--tile) / 2);
  width: 1.5px; height: 4000px; background: var(--accent); pointer-events: none; }

.telephony-party { position: absolute; z-index: 2; top: var(--tile-top); display: flex; flex-direction: column; align-items: center;
  translate: -50% 0; white-space: nowrap; }
.telephony-party--zoom { left: var(--c1); }
.telephony-party--synthflow { left: var(--c2); }
.telephony-party--team { left: var(--c3); }
.telephony-party-tile { display: grid; place-items: center; width: var(--tile); height: var(--tile); border-radius: var(--radius-sm);
  background: var(--surface-card); box-shadow: inset 0 0 0 1px var(--border-subtle); }
.telephony-party-tile img { max-width: none; }
.telephony-party--zoom img { width: 46px; height: auto; }
.telephony-party--team img { width: 24px; height: 24px; }
/* Synthflow · US: the violet circle on a soft violet light, centred on the tiles' row */
.telephony-party--synthflow .telephony-party-tile { width: var(--circle); height: var(--circle); margin: calc((var(--tile) - var(--circle)) / 2);
  border-radius: var(--radius-full); background: var(--accent); box-shadow: 0 6px 22px rgb(var(--c-violet-rgb) / .32), 0 0 0 1px rgb(var(--c-violet-rgb) / .12); }
.telephony-party--synthflow img { width: calc(var(--circle) * .47); height: auto; }
.telephony-party-name { position: absolute; top: calc(var(--name-top) - var(--tile-top)); font: var(--t-label-l); color: var(--ink-primary); }

.telephony-lifeline { position: absolute; top: var(--life-top); height: calc(var(--life-bottom) - var(--life-top)); }
.telephony-lifeline--zoom { left: calc(var(--c1) - .75px); width: 1.5px; background: rgb(var(--c-midnight-rgb) / .12); }
.telephony-lifeline--synthflow { left: calc(var(--c2) - 1px); width: 2px; background: var(--accent); }
.telephony-lifeline--team { left: calc(var(--c3) - .5px); width: 1px;
  background: repeating-linear-gradient(rgb(var(--c-midnight-rgb) / .3) 0 4px, transparent 4px 8px); }

/* Steps: on desktop and tablet each part sits at its place on the ladder; the route is for screen readers */
.telephony-route { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.telephony-wire { position: absolute; height: 2px; background: var(--wire); }
.telephony-wire img { position: absolute; max-width: none; }
.telephony-node { position: absolute; top: -3px; width: 8px; height: 8px; }
.telephony-node--dot { border-radius: var(--radius-full); background: var(--accent); }
.telephony-arrow { width: 8px; height: 10px; top: -4px; }
/* A message runs between two lifelines, its pill centred between them */
.telephony-step--rings .telephony-wire, .telephony-step--answered .telephony-wire { left: var(--c1); width: calc(var(--c2) - var(--c1)); }
.telephony-step--reason .telephony-wire, .telephony-step--picked .telephony-wire { left: var(--c2); width: calc(var(--c3) - var(--c2)); }
.telephony-step--rings .telephony-wire { top: calc(var(--y-rings) - 1px); }
.telephony-step--answered .telephony-wire { top: calc(var(--y-answered) - 1px); }
.telephony-step--reason .telephony-wire { top: calc(var(--y-reason) - 1px); background: var(--wire-strong); }
.telephony-step--picked .telephony-wire { top: calc(var(--y-picked) - 1px); }
.telephony-step--rings .telephony-node, .telephony-step--reason .telephony-node { left: -4px; }
.telephony-step--answered .telephony-node, .telephony-step--picked .telephony-node { left: calc(100% - 4px); }
.telephony-step--rings .telephony-arrow, .telephony-step--reason .telephony-arrow { left: calc(100% - 8px); }
.telephony-step--answered .telephony-arrow, .telephony-step--picked .telephony-arrow { left: 0; }
.telephony-step--call .telephony-wire { display: none; }
.telephony-step--during .telephony-wire { left: var(--c2); top: calc(var(--y-case) - 1px); width: var(--tag-gap); }
.telephony-step--during .telephony-node { left: -4px; }

/* Each SIP message's time on the call, right-aligned before Zoom Phone's lifeline */
.telephony-time { position: absolute; left: 0; width: calc(var(--c1) - 20px); text-align: right; font: 500 13px/20px var(--font-mono);
  letter-spacing: .2px; color: var(--ink-secondary); font-variant-numeric: tabular-nums; }
.telephony-step--rings .telephony-time { top: calc(var(--y-rings) - 10px); }
.telephony-step--answered .telephony-time { top: calc(var(--y-answered) - 10px); }
.telephony-step--reason .telephony-time { top: calc(var(--y-reason) - 10px); }
.telephony-step--picked .telephony-time { top: calc(var(--y-picked) - 10px); }

/* Diagram/Message: the code in mono, what it means in words; Highlight for the step the diagram is about */
.telephony-msg { position: absolute; display: inline-flex; align-items: center; gap: 8px; height: var(--pill); padding: 0 16px;
  translate: -50% 0; border: 1px solid var(--border-subtle); border-radius: var(--radius-full); background: var(--surface-card);
  box-shadow: 0 1px 2px rgb(var(--c-midnight-rgb) / .05), 0 6px 14px -8px rgb(var(--c-violet-deep-rgb) / .22);
  font: 400 16px/22px var(--font-text); color: var(--ink-primary); white-space: nowrap; }
.telephony-msg code { font: 500 14px/18px var(--font-mono); letter-spacing: .2px; color: var(--ink-accent); }
.telephony-msg--highlight { height: var(--pill-hl); border: 0; background: var(--accent); color: var(--ink-on-dark);
  box-shadow: 0 10px 24px -10px rgb(var(--c-violet-rgb) / .7); }
.telephony-msg--highlight code { color: var(--accent-line); }
.telephony-step--rings .telephony-msg, .telephony-step--answered .telephony-msg { left: calc((var(--c1) + var(--c2)) / 2); }
.telephony-step--reason .telephony-msg, .telephony-step--picked .telephony-msg { left: calc((var(--c2) + var(--c3)) / 2); }
.telephony-step--rings .telephony-msg { top: calc(var(--y-rings) - var(--pill) / 2); }
.telephony-step--answered .telephony-msg { top: calc(var(--y-answered) - var(--pill) / 2); }
.telephony-step--reason .telephony-msg { top: calc(var(--y-reason) - var(--pill-hl) / 2); }
.telephony-step--picked .telephony-msg { top: calc(var(--y-picked) - var(--pill) / 2); }

/* The call: its audio as a band between Zoom Phone's and Synthflow's lifelines (a live dot and the Waveform, violet);
   its length is in the header (and under the audio on the phone) */
.telephony-audio { position: absolute; left: calc(var(--c1) + var(--wave-gap)); right: calc(100% - var(--c2) + var(--wave-gap));
  top: calc(var(--y-call) - var(--wave) / 2); display: flex; align-items: center; gap: 12px; height: var(--wave); padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent); border-radius: var(--radius-sm);
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 4%, var(--surface-card)), color-mix(in srgb, var(--accent) 9%, var(--surface-card))); }
.telephony-live { flex: none; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--status-live);
  box-shadow: 0 0 0 1px rgba(60, 150, 30, .45); }
.telephony-wave { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: calc(1.519px * var(--wave-k)); height: calc(16.203px * var(--wave-k)); }
.telephony-wave i { flex: none; width: calc(1.013px * var(--wave-k)); height: calc(var(--h) * 1px * var(--wave-k)); border-radius: var(--radius-full);
  background: var(--accent); }
.telephony-duration { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  font: var(--t-panel); letter-spacing: var(--t-panel-tracking); color: var(--ink-primary); }

/* Event on the Synthflow lifeline: Case updated in Salesforce */
.telephony-tag { position: absolute; left: calc(var(--c2) + var(--tag-gap)); top: calc(var(--y-case) - var(--tag) / 2);
  display: inline-flex; align-items: center; gap: 9px; height: var(--tag); padding: 0 14px 0 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent); border-radius: var(--radius-full); background: var(--surface-sunken);   /* a tag, as the page's other tags */
  font: 500 15px/20px var(--font-text); color: var(--ink-primary); white-space: nowrap; }
.telephony-tag img { width: 23px; height: 16px; }

.telephony-note { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; display: flex; align-items: center; padding: 0 28px;
  border-top: 1px solid var(--border-subtle); border-radius: 0 0 var(--radius-lg) var(--radius-lg); background: var(--surface-sunken);
  font: var(--t-small); color: var(--ink-secondary); }

/* Map: from the card's bottom edge to the section's; its parts are placed from the card's bottom edge (y) and the page
   axis (x, shrinking by --u below the design width) */
.telephony-map { --map-h: 90px; position: relative; flex: none; align-self: stretch; height: var(--map-h); }
.telephony-map picture { display: contents; }

/* The globe and its halo (the dome's brush colours, weak), dissolving into the paper towards the bottom edge */
.telephony-horizon { --fade: linear-gradient(to top, transparent 0, rgb(0 0 0 / .4) 150px, #000 380px);
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: 3000px; pointer-events: none;
  -webkit-mask: var(--fade); mask: var(--fade); }
.telephony-halo-brush, .telephony-globe { position: absolute; max-width: none; height: auto;
  left: calc(50% + var(--gx) * var(--u) - var(--s) * var(--u) / 2); bottom: calc(var(--gb) - var(--s) * var(--u) / 2); width: calc(var(--s) * var(--u)); }
.telephony-horizon { --gx: 16; --gb: 54px; }
.telephony-globe { --s: 1750; aspect-ratio: 3500 / 1960; }
/* The globe's ratio is set here as well as in its width and height: inside the picture (display: contents) Webflow
   serves the img with no ratio from them, so its height was 0 and the lazy picture never loaded (4 Nov, staging). Each
   breakpoint takes the ratio of the picture its source serves there. */
/* The globe's image is the top of its square (--crop of its height), so its foot sits that far above the square's */
.telephony-globe { bottom: calc(var(--gb) + var(--s) * var(--u) * (.5 - var(--crop, .56))); }
.telephony-halo-brush { --s: 1774; opacity: .32; aspect-ratio: 1; }   /* square at every width; set here, as the globe's (lazy pictures with no height never load on Webflow) */

/* Each pin's centre (--x from the axis, in design px; --y from the card's bottom edge) */
.telephony-site { position: absolute; left: calc(50% + var(--x) * var(--u)); top: var(--y); }
.telephony-site--us { --x: -444; --y: -287px; }
.telephony-site--eu { --x: 466; --y: -264px; }
.telephony-site--latam { --y: -44px; left: max(50% - 619px, 36px); }

/* A pin's light: the dome's violet, soft and weak */
.telephony-glow { position: absolute; left: -95px; top: -95px; width: 190px; height: 190px; border-radius: var(--radius-full);
  background: radial-gradient(closest-side, rgb(var(--c-agent-rgb) / .5), rgb(var(--c-agent-rgb) / .2) 55%, rgb(var(--c-agent-rgb) / 0));
  pointer-events: none; }
.telephony-site:not(.telephony-site--us) .telephony-glow { left: -70px; top: -70px; width: 140px; height: 140px;
  background: radial-gradient(closest-side, rgb(var(--telephony-pin-light-rgb) / .9), rgb(var(--telephony-pin-light-rgb) / .45) 55%, rgb(var(--telephony-pin-light-rgb) / 0)); }

/* Map pin: a Synthflow server on a map (Figma "Map pin"): a white disc on a lavender ring, the violet core, the mark */
.telephony-pin { position: absolute; left: -28px; top: -28px; width: 56px; height: 56px; border: 1px solid var(--accent-line);
  border-radius: var(--radius-full); background: var(--surface-card); }
.telephony-pin-core { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 34px; height: 34px;
  translate: -50% -50%; border: 2px solid var(--surface-card); border-radius: var(--radius-full); background: var(--accent); }
.telephony-pin-core img { width: 14.738px; height: 15px; max-width: none; }

/* Map label, beside the pin (the US pin's is the card, so its label is for screen readers) */
.telephony-site-label { position: absolute; left: 44px; top: -18px; display: block; height: 36px; padding: 6px 16px;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-full); background: var(--surface-card);
  box-shadow: 0 6px 16px rgb(var(--c-violet-deep-rgb) / .06); font: 400 16px/22px var(--font-text); color: var(--ink-primary); white-space: nowrap; }
/* Latin America's label in two lines (Ellipsis, 5 Nov: "Latin America · Regional point of presence"), under its pin from
   its left edge on desktop and phones, clear of the call card and of the screen's edge; beside the pin on tablets */
.telephony-site--latam .telephony-site-label { left: -14px; top: 37px; height: auto; padding: 7px 14px 8px; border-radius: 18px; }
.telephony-site-sub { display: block; font: 400 13px/18px var(--font-text); color: var(--ink-secondary); }
.telephony-site--us .telephony-site-label { width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* The callout's caret: on desktop at the card's left edge, pointing at the US pin; it covers the card's hairline */
.telephony-caret { position: absolute; left: calc(50% - 396px - 13px); top: calc(-287px - 14px); width: 14px; height: 28px; max-width: none; }

/* Narrow desktops: the card leaves no room for Latin America's label beside its pin, so it goes under it */
@media (min-width: 1200px) and (max-width: 1279px) {
  .telephony-site--latam { left: calc(50% - 500px); }
  .telephony-site--latam .telephony-site-label { top: 44px; }   /* clear of the call card's foot */
}

/* Tablet: the head split, the card above the globe (600 wide, narrower below 664), its caret down on the US pin */
@media (max-width: 1199px) {
  .telephony { --u: calc(min(100cqw, 768px) / 768); padding-top: 87px; }
  .telephony-head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; align-items: start; }
  .telephony-head h2 { max-width: 280px; }
  .telephony-lead { margin-top: 0; max-width: none; }
  .telephony-servers { margin-top: 26px; }

  .telephony-ladder {
    --cw: min(600px, 100cqw - 64px);
    --c1: calc(var(--cw) * .1); --c2: calc(var(--cw) / 2); --c3: calc(var(--cw) * .9);
    --hd: 52px; --tile: 56px; --circle: 64px; --tile-top: 84px; --name-top: 151.5px;
    --life-top: 192px; --life-bottom: 505px;
    --y-rings: 226px; --y-answered: 282px; --y-call: 341.5px; --y-duration: 386px; --y-case: 341.5px; --y-reason: 414px; --y-picked: 470px;
    --pill: 40px; --pill-hl: 40px; --wave: 40px; --wave-gap: 12px; --wave-k: 1.17; --tag-gap: 19px;
    width: var(--cw); height: 593px; margin-top: 83px; }
  .telephony-bar { padding: 0 20px; }
  .telephony-time { width: calc(var(--c1) - 12px); font-size: 12px; }
  .telephony-party-name { font-size: 16px; line-height: 22px; }
  .telephony-party--zoom img { width: 40px; }
  .telephony-msg { padding: 0 14px; }
  .telephony-audio { gap: 10px; padding: 0 12px; }
  .telephony-tag { padding: 0 12px; }
  .telephony-duration { top: calc(var(--y-duration) - 16px); font-size: 24px; line-height: 32px; letter-spacing: -.2px; }
  .telephony-note { height: 56px; padding: 0 20px; font-size: 14px; }

  .telephony-map { --map-h: 238px; }
  .telephony-horizon { --gx: -24; --gb: 30px; --fade: linear-gradient(to top, transparent 0, rgb(0 0 0 / .45) 60px, #000 170px); }
  .telephony-globe { --s: 854; aspect-ratio: 1708 / 956; }   /* globe-768 */
  .telephony-halo-brush { --s: 866; }
  /* The US pin under the card's caret, 42 in from the card's left edge; the others from the axis */
  .telephony-site--us { left: calc(50% - var(--cw, min(600px, 100cqw - 64px)) / 2 + 42px); --y: 51px; }
  .telephony-site--eu { --x: 188; --y: 61px; }
  .telephony-site--latam { left: calc(50% - 324 * var(--u)); --y: 151px; }
  .telephony-site-label { left: 40px; top: -19px; height: 38px; padding: 7px 16px; }
  .telephony-site--latam .telephony-site-label { left: 40px; top: -24px; }
  .telephony-caret { left: calc(50% - min(600px, 100cqw - 64px) / 2 + 42px - 13px); top: -1px; width: 26px; height: 13px; }
}

/* Narrow tablets: the card is narrower than 600, so its messages and tag a step smaller to keep between the lifelines
   (the code stays at the 14 px label floor: at 600 px the longest message keeps 9 px to each lifeline) */
@media (min-width: 600px) and (max-width: 663px) {
  .telephony-msg { padding: 0 12px; font-size: 15px; }
  .telephony-msg code { font-size: 14px; }
  .telephony-tag { gap: 8px; padding: 0 10px; font-size: 14px; }
}

/* Phone: the head stacked clear of the path; the card's steps as a list on one rail; labels under the pins */
@media (max-width: 599px) {
  .telephony { --u: calc(min(100cqw, 390px) / 390); padding-top: 48px; padding-bottom: var(--space-6); }   /* the map's foot to the next head as the other sections' gap */
  .telephony-head { display: flex; padding-right: calc(50cqw - min(175px, 50cqw - 20px) + 63px); }   /* clear of the path */
  .telephony-head h2 { max-width: none; }
  .telephony-lead { margin-top: 16px; font-size: 17px; line-height: 26px; }
  .telephony-servers { margin-top: 22px; }

  /* --pl: the steps' inset, narrower on the narrowest phones so the case tag stays inside the card */
  .telephony-ladder { --cw: min(350px, 100cqw - 40px); --c2: calc(var(--cw) - 65px); --tile-top: -29px; --circle: 56px; --tile: 56px;
    --pill: 46px; --pill-hl: 44px; --pl: min(41px, var(--cw) - 250px);
    width: var(--cw); height: auto; margin-top: 52px; padding: 37px 20px 23px var(--pl); }
  .telephony-party--zoom, .telephony-party--team, .telephony-party-name, .telephony-lifelines, .telephony-bar, .telephony-time { display: none; }

  .telephony-steps { display: flex; flex-direction: column; gap: 14px; }
  .telephony-step { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
  .telephony-route { position: static; width: auto; height: auto; overflow: visible; clip: auto;
    font: 400 15px/22px var(--font-text); color: var(--ink-secondary); }
  .telephony-msg, .telephony-tag, .telephony-audio, .telephony-duration { position: static; translate: none; }
  .telephony-call { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
  .telephony-msg { padding: 0 18px; }
  .telephony-audio { gap: 13px; height: 46px; padding: 0 18px 0 16px; }
  .telephony-wave { --wave-k: 1.25; }
  .telephony-duration { width: auto; height: auto; overflow: visible; clip: auto; font-size: 24px; line-height: 28px; letter-spacing: -.2px; }
  .telephony-tag { height: 40px; padding: 0 12px; }
  .telephony-note { position: static; height: auto; margin: 22px -20px -23px calc(-1 * var(--pl)); padding: 14px 20px 16px var(--pl);
    font-size: 15px; line-height: 22px; }

  /* The rail: from each step's message to the next one's, solid while the call runs, dashed after the case update;
     each step's wire joins it to the rail, with its node on the rail and its arrow towards the receiver */
  .telephony-step { --mid: 51px; --next: 51px; }
  .telephony-step--call { --next: 48px; }
  .telephony-step--during { --mid: 48px; --next: 50px; }
  .telephony-step--reason { --mid: 50px; }
  .telephony-step:not(:last-child)::before { content: ""; position: absolute; left: calc(16.5px - var(--pl)); top: var(--mid);
    height: calc(100% - var(--mid) + 14px + var(--next)); border-left: 2px solid var(--accent); }
  .telephony-step--during::before, .telephony-step--reason::before { border-left: 1.5px dashed rgb(var(--c-violet-rgb) / .45) !important;
    left: calc(16.75px - var(--pl)) !important; }
  .telephony-wire, .telephony-step--call .telephony-wire, .telephony-step--during .telephony-wire,
  .telephony-step--reason .telephony-wire, .telephony-step--picked .telephony-wire, .telephony-step--rings .telephony-wire,
  .telephony-step--answered .telephony-wire { display: block; left: calc(17.5px - var(--pl)); top: calc(var(--mid) - 1px);
    width: calc(var(--pl) - 17.5px); background: var(--wire); }
  .telephony-step .telephony-node { left: -4px; }
  .telephony-step--rings .telephony-arrow, .telephony-step--reason .telephony-arrow { left: auto; right: 1px; }
  .telephony-step--answered .telephony-arrow, .telephony-step--picked .telephony-arrow { left: 4px; }
  .telephony-step--during .telephony-node--dot { background: var(--surface-card); box-shadow: inset 0 0 0 1.5px var(--accent); }

  .telephony-map { --map-h: 238px; }
  .telephony-horizon { --gx: 38; --gb: 98px; --fade: linear-gradient(to top, transparent 0, rgb(0 0 0 / .4) 50px, #000 150px); }
  .telephony-globe { --s: 480; --crop: .72; aspect-ratio: 1000 / 720; }   /* globe-390 */
  .telephony-halo-brush { --s: 487; }
  .telephony-site--us { left: calc(50% - var(--cw, min(350px, 100cqw - 40px)) / 2 + 86px); --y: 51px; }
  .telephony-site--eu { --x: 140; --y: 68px; }
  .telephony-site--latam { left: calc(50% - 155 * var(--u)); --y: 143px; }
  .telephony-site-label { left: 0; top: 37px; height: 38px; padding: 7px 16px; translate: -50% 0; }
  .telephony-site--us .telephony-site-label { width: auto; padding: 7px 16px; overflow: visible; clip: auto; border: 1px solid var(--border-subtle); height: 38px; }
  /* Latin America's label keeps 13 px from the left edge */
  .telephony-site--latam .telephony-site-label { left: max(-14px, 13px - (50cqw - 155 * var(--u))); top: 37px; translate: none; }
  .telephony-caret { left: calc(50% - min(350px, 100cqw - 40px) / 2 + 86px - 13px); }
}


/* Motion (System, 14 · Motion: "SIP ladder — on view, once: the US pin pulses, then the SIP ladder plays its steps;
   off with reduced motion"). When the US pin and a third of the card are in view, /_assets/design/63c399f14925ad9e/07-telephony.js pulses the pin
   once (a ring opens from it and fades while its core beats and its light swells), then plays the call in its order:
   the lifelines draw, each SIP message travels from its sender to its receiver with its label, the call's audio runs
   while the case updates in Salesforce, the call's length, the transfer, then the closing line. The pins stay still.
   The script adds is-waiting to the ladder (every part held at its first frame), then is-pulsing to the US pin and
   is-playing to the ladder, and takes them off when they end, so the rest state is the CSS above. Reduced motion or
   ?static: the rest state. Each part's keyframes (--m-name) and start (--m-at, in s from the ladder's start) are below. */
.telephony-site--us .telephony-pin::after { content: ""; position: absolute; inset: -1px; border: 2px solid var(--accent);
  border-radius: var(--radius-full); opacity: 0; pointer-events: none; }
.telephony-site--us.is-pulsing .telephony-pin::after {
  animation: telephony-ping calc(var(--motion-arrive) * 1.5) var(--ease-arrive); }
.telephony-site--us.is-pulsing .telephony-pin-core { animation: telephony-beat var(--motion-arrive) var(--ease-settle); }
.telephony-site--us.is-pulsing .telephony-glow { animation: telephony-swell calc(var(--motion-arrive) * 1.5) var(--ease-settle); }
@keyframes telephony-ping { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(2.2); } }
@keyframes telephony-beat { 40% { transform: scale(1.14); } }
@keyframes telephony-swell { 35% { opacity: .45; transform: scale(1.15); } }

.telephony-ladder.is-waiting :is(.telephony-bar, .telephony-time, .telephony-lifeline, .telephony-route, .telephony-wire, .telephony-arrow,
  .telephony-step--during .telephony-node, .telephony-msg, .telephony-audio, .telephony-wave, .telephony-duration,
  .telephony-tag, .telephony-note) {
  animation: var(--m-name, telephony-in) var(--m-dur, var(--motion-arrive)) var(--m-ease, var(--ease-arrive))
    var(--m-at, 0s) var(--m-fill, backwards) var(--m-state, paused);
}
.telephony-ladder.is-playing { --m-state: running; }
/* The clip-path reveals (lifelines, wires, the call's audio, the Salesforce chip) hold their last frame until the ladder
   rests. Chrome runs a clip-path animation off the main thread; when one ended with nothing to hold, Chrome showed the
   part for one frame as it was last painted: the audio wave lost two thirds of its bars at the end of its reveal (8 Nov,
   Chrome 156 at 125 %, in 3 of 4 plays). */
.telephony-ladder :is(.telephony-lifeline, .telephony-wire, .telephony-wave, .telephony-tag) { --m-fill: both; }

/* The ladder: the lifelines, then each step at its turn; a step's route (phone) arrives with it */
.telephony-lifeline { --m-name: telephony-down; }
.telephony-lifeline--synthflow { --m-at: .05s; }
.telephony-lifeline--team { --m-at: .1s; }
.telephony-wire { --m-name: telephony-send; }
.telephony-step--answered .telephony-wire, .telephony-step--picked .telephony-wire { --m-name: telephony-return; }
.telephony-arrow { --m-name: telephony-ride; }
.telephony-step--rings { --m-at: .25s; --run: calc(var(--c1) - var(--c2) + 8px); }
.telephony-step--rings .telephony-msg { --m-at: .4s; }
.telephony-step--answered { --m-at: .85s; --run: calc(var(--c2) - var(--c1) - 8px); }
.telephony-step--answered .telephony-msg { --m-at: 1s; }
.telephony-step--call { --m-at: 1.45s; }
.telephony-wave { --m-name: telephony-play; --m-dur: 1300ms; --m-ease: linear; --m-at: 1.6s; }
.telephony-duration { --m-at: 2.8s; }
.telephony-step--during { --m-at: 1.95s; --head: 6px; }
.telephony-step--during .telephony-node { --m-name: telephony-pop; }
.telephony-tag { --m-name: telephony-chip; --m-at: 2.05s; }
.telephony-ladder.is-waiting .telephony-tag { transform-origin: 13px 50%; }
.telephony-step--reason { --m-at: 3s; --run: calc(var(--c2) - var(--c3) + 8px); }
.telephony-step--reason .telephony-msg { --m-at: 3.15s; }
.telephony-step--picked { --m-at: 3.6s; --run: calc(var(--c3) - var(--c2) - 8px); }
.telephony-step--picked .telephony-msg { --m-at: 3.75s; }
.telephony-note { --m-at: 4.2s; }
/* On the phone the wires are short: each arrowhead rides only its own wire */
@media (max-width: 599px) {
  .telephony-step--rings, .telephony-step--reason { --run: -15px; }
  .telephony-step--answered, .telephony-step--picked { --run: 15px; }
}

/* A part arrives: it fades in and settles 6 px up (a message pill keeps its centring) */
@keyframes telephony-in { from { opacity: 0; transform: translateY(6px); } }
/* A lifeline draws down from its party */
@keyframes telephony-down { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
/* A wire draws from the sender's node (--head wide) to the receiver, rightwards or back; its arrowhead rides the tip
   (--run is the arrowhead's way along the wire) */
@keyframes telephony-send {
  0% { opacity: 0; clip-path: inset(-6px calc(100% - var(--head, 8px)) -6px -6px); }
  20% { opacity: 1; }
  100% { clip-path: inset(-6px -6px -6px -6px); } }
@keyframes telephony-return {
  0% { opacity: 0; clip-path: inset(-6px -6px -6px calc(100% - var(--head, 8px))); }
  20% { opacity: 1; }
  100% { clip-path: inset(-6px -6px -6px -6px); } }
@keyframes telephony-ride { from { transform: translateX(var(--run, 0px)); } }
/* The call's audio runs from its start to its end */
@keyframes telephony-play { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
/* The event on the Synthflow lifeline: its node lights, then the tag opens from its icon */
@keyframes telephony-pop { from { opacity: 0; transform: scale(.4); } }
@keyframes telephony-chip {
  0% { opacity: 0; transform: scale(.6); clip-path: inset(0 calc(100% - 26px) 0 0 round 999px); }
  35% { opacity: 1; transform: none; clip-path: inset(0 calc(100% - 26px) 0 0 round 999px); }
  100% { clip-path: inset(0 0 0 0 round 999px); } }
