/*
 * The standalone concept ships with page-level resets. Both source sheets live
 * in a low-priority layer so the portal can reuse their geometry without
 * restyling the rest of the landing.
 */
@import url("callflow-explorations.css?v=20260818a") layer(vq-portal-concept);
@import url("callflow-sequenced.css?v=20260818a") layer(vq-portal-concept);

.portal-story {
  --cf-bg: #07111c;
  --cf-surface: #0d1d2d;
  --cf-ink: #f4f8fc;
  --cf-muted: #8394a8;
  --cf-line: rgba(143, 194, 255, 0.16);
  --cf-accent: #58a7ff;
  --cf-blue: #1f7aec;
  --cf-blue-light: #8fc2ff;
  --cf-mint: #72d4bb;
  --cf-phone-bg: #07111c;
  --cf-font: var(--font);
  --cf-mono: var(--mono);
  --cf-header: var(--header-height);
  --cf-phone-scale: 1;
  --cf-agenda-scale: 0.965;
  --cf-answer-inset: 6px;
  --cf-answer-knob-size: 42px;
  --cf-answer-x: 0px;
  --cf-lookup-line-x: -110%;
  --cf-answer-fill-scale: 0.2182;
  --cf-answer-label: 1;
  --cf-answer-knob-scale: 1;
  --cf-answer-knob-rotate: -5deg;
  --cf-answer-land-ring: 0;
  --cf-answer-ring-scale: 1;
  --cf-phone-tilt: -2.2deg;
  --cf-incoming-blur: 0px;
  --cf-incoming-scale: 1;
  --cf-incoming-slide: 0%;
  --cf-live-slide: 102%;
  --cf-chat-y: 0px;
  --cf-m0-blur: 7px;
  --cf-m1-blur: 7px;
  --cf-m2-blur: 7px;
  --cf-m3-blur: 7px;
  --cf-m0-scale: 0.95;
  --cf-m1-scale: 0.95;
  --cf-m2-scale: 0.95;
  --cf-m3-scale: 0.95;
  --cf-m0-x: 28px;
  --cf-m1-x: -28px;
  --cf-m2-x: 28px;
  --cf-m3-x: -28px;
  --cf-intent-1: 0;
  --cf-intent-2: 0;
  --cf-intent-3: 0;
  --cf-intent-scale-1: 0.92;
  --cf-intent-scale-2: 0.92;
  --cf-intent-scale-3: 0.92;
  --cf-busy-1: 0;
  --cf-busy-2: 0;
  --cf-busy-3: 0;
  --cf-busy-x-1: 9px;
  --cf-busy-x-2: 9px;
  --cf-busy-x-3: 9px;
  --cf-scan-y: 0px;
  --cf-slot-y: 9px;
  --cf-slot-pulse: 0;
  --cf-slot-pulse-scale: 1;
  --cfs-available-y: 8px;
  --cf-transfer: 0;
  --cf-transfer-message: 1;
  --cf-transfer-time: 0;
  --cf-transfer-shell: 1;
  --cf-transfer-shell-x: 1;
  --cf-transfer-shell-y: 1;
  --cf-transfer-particle: 0;
  --cf-transfer-particle-scale: 0.72;
  --cf-transfer-scale: 0.98;
  --cf-transfer-x: 0px;
  --cf-transfer-y: 0px;
  --cf-confirm-tick: 0;
  --cf-confirm-tick-scale: 0.62;
  --cf-chapter-0: 1;
  --cf-chapter-1: 0;
  --cf-chapter-2: 0;
  --cf-chapter-3: 0;
  --cf-chapter-tab-0: 1;
  --cf-chapter-tab-1: 0.48;
  --cf-chapter-tab-2: 0.48;
  --cf-chapter-tab-3: 0.48;
  --cf-chapter-y-0: 0px;
  --cf-chapter-y-1: 8px;
  --cf-chapter-y-2: 8px;
  --cf-chapter-y-3: 8px;
  --cf-chapter-body-0: 1;
  --cf-chapter-body-1: 0;
  --cf-chapter-body-2: 0;
  --cf-chapter-body-3: 0;
  --cf-card-max: 193px;
  --cf-card-h-0: 193px;
  --cf-card-h-1: 42px;
  --cf-card-h-2: 42px;
  --cf-card-h-3: 42px;
  --cf-card-pos-0: 0px;
  --cf-card-pos-1: 200px;
  --cf-card-pos-2: 249px;
  --cf-card-pos-3: 298px;
  --cf-card-body-bottom: 18px;
  --cf-marker-color: #2583f2;
  --cf-ring-pulse: 0;
  --cf-ring-scale: 0.92;
  --cf-voice-pulse: 0;
  --cf-voice-bar-1: 0.72;
  --cf-voice-bar-2: 0.72;
  --cf-voice-bar-3: 0.72;
  min-height: var(--vq-screen-height);
  scroll-margin-top: 0;
  color: var(--cf-ink);
  background: var(--vq-space-sky);
  border-top: 1px solid rgba(143, 194, 255, 0.14);
  isolation: isolate;
}

.portal-story .cf-sticky {
  height: var(--vq-screen-height);
  min-height: 0;
  background: var(--vq-space-sky);
}

.portal-story .star-field--workflow {
  z-index: 0;
  opacity: 0.76;
}

.portal-story .star-field--workflow::before {
  animation: none;
  opacity: 0.62;
  transform: none;
  will-change: auto;
}

.portal-story .star-field--workflow::after {
  display: none;
  animation: none;
}

@media (max-width: 900px) {
  .portal-story .star-field--workflow::before {
    animation: none;
    opacity: 0.58;
    transform: none;
    will-change: auto;
  }
}

.portal-story .cf-layout {
  padding-top: calc(var(--cf-header) + 18px);
}

.portal-story .cf-copy {
  color: var(--cf-ink);
}

.portal-story .cf-heading {
  color: rgba(255, 255, 255, 0.5);
  text-wrap: balance;
}

.portal-story .cf-heading em {
  color: #f4f8fc;
}

.portal-story .cf-chapters--sequence {
  --cf-sequence-index: 0;
  --cf-sequence-collapsed: 42px;
  --cf-sequence-half: 21px;
  --cf-sequence-gap: 7px;
  --cf-sequence-marker-y: var(--cf-sequence-half);
  position: relative;
  height: clamp(340px, 43vh, 390px);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  contain: layout style;
  align-items: stretch;
  gap: var(--cf-sequence-gap);
  margin-top: clamp(20px, 2.8vh, 26px);
  overflow: visible;
  isolation: isolate;
}

.portal-story[data-step="0"] .cf-chapters--sequence {
  --cf-sequence-index: 0;
  --cf-sequence-marker-y: var(--cf-sequence-half);
}
.portal-story[data-step="1"] .cf-chapters--sequence {
  --cf-sequence-index: 1;
  --cf-sequence-marker-y: calc(var(--cf-sequence-collapsed) + var(--cf-sequence-gap) + var(--cf-sequence-half));
}
.portal-story[data-step="2"] .cf-chapters--sequence {
  --cf-sequence-index: 2;
  --cf-sequence-marker-y: calc(var(--cf-sequence-collapsed) + var(--cf-sequence-gap) + var(--cf-sequence-collapsed) + var(--cf-sequence-gap) + var(--cf-sequence-half));
}
.portal-story[data-step="3"] .cf-chapters--sequence {
  --cf-sequence-index: 3;
  --cf-sequence-marker-y: calc(var(--cf-sequence-collapsed) + var(--cf-sequence-gap) + var(--cf-sequence-collapsed) + var(--cf-sequence-gap) + var(--cf-sequence-collapsed) + var(--cf-sequence-gap) + var(--cf-sequence-half));
}

.portal-story .cf-chapters--sequence::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 14px;
  bottom: 14px;
  left: -12px;
  width: 1px;
  pointer-events: none;
  background: rgba(143, 194, 255, 0.13);
}

.portal-story .cf-chapters--sequence::after {
  content: "";
  position: absolute;
  z-index: 5;
  top: 0;
  left: -15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  pointer-events: none;
  background: var(--cf-chapter-color, #58a7ff);
  box-shadow: 0 0 0 5px rgba(88, 167, 255, 0.08), 0 0 15px rgba(88, 167, 255, 0.72);
  transform: translate3d(0, var(--cf-sequence-marker-y), 0) translateY(-50%);
  transition: transform 820ms cubic-bezier(0.16, 1, 0.3, 1), background-color 380ms ease;
}

.portal-story[data-step="0"] .cf-chapters--sequence::after { background: #2583f2; }
.portal-story[data-step="1"] .cf-chapters--sequence::after { background: #58a7ff; }
.portal-story[data-step="2"] .cf-chapters--sequence::after { background: #8fc2ff; }
.portal-story[data-step="3"] .cf-chapters--sequence::after { background: #72d4bb; }

.portal-story .cf-chapters--sequence article {
  --cf-chapter-color: #58a7ff;
  position: relative;
  grid-area: auto;
  flex: 0 1 var(--cf-sequence-collapsed);
  min-height: 0;
  display: block;
  overflow: hidden;
  isolation: isolate;
  margin: 0;
  padding: 0;
  visibility: visible;
  opacity: 0.48;
  clip-path: none;
  border: 1px solid rgba(143, 194, 255, 0.13);
  border-radius: 15px;
  color: #f7fbff;
  background: rgba(9, 24, 39, 0.68);
  box-shadow: none;
  transform: none;
  transition:
    flex-grow 820ms cubic-bezier(0.16, 1, 0.3, 1),
    flex-basis 820ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 420ms ease,
    border-color 520ms ease,
    background-color 520ms ease;
}

.portal-story .cf-chapters--sequence article:nth-child(1) { --cf-chapter-color: #2583f2; }
.portal-story .cf-chapters--sequence article:nth-child(2) { --cf-chapter-color: #58a7ff; }
.portal-story .cf-chapters--sequence article:nth-child(3) { --cf-chapter-color: #8fc2ff; }
.portal-story .cf-chapters--sequence article:nth-child(4) { --cf-chapter-color: #72d4bb; }

.portal-story .cf-chapters--sequence article::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  pointer-events: none;
  border-radius: inherit;
  background: var(--cf-chapter-color);
  opacity: 0.5;
  transform: scaleY(0.18);
  transform-origin: 50% 50%;
  transition: transform 720ms cubic-bezier(0.16, 1, 0.3, 1), opacity 420ms ease;
}

.portal-story .cf-chapters--sequence article::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--cf-chapter-color) 15%, transparent), transparent 34%);
  transition: opacity 520ms ease;
}

.portal-story[data-step="0"] .cf-chapters--sequence article:nth-child(1),
.portal-story[data-step="1"] .cf-chapters--sequence article:nth-child(2),
.portal-story[data-step="2"] .cf-chapters--sequence article:nth-child(3),
.portal-story[data-step="3"] .cf-chapters--sequence article:nth-child(4) {
  flex-grow: 1;
  opacity: 1;
  border-color: color-mix(in srgb, var(--cf-chapter-color) 44%, transparent);
  background-color: rgba(9, 24, 39, 0.94);
}

.portal-story[data-step="0"] .cf-chapters--sequence article:nth-child(1)::before,
.portal-story[data-step="1"] .cf-chapters--sequence article:nth-child(2)::before,
.portal-story[data-step="2"] .cf-chapters--sequence article:nth-child(3)::before,
.portal-story[data-step="3"] .cf-chapters--sequence article:nth-child(4)::before {
  opacity: 1;
  transform: scaleY(1);
}

.portal-story[data-step="0"] .cf-chapters--sequence article:nth-child(1)::after,
.portal-story[data-step="1"] .cf-chapters--sequence article:nth-child(2)::after,
.portal-story[data-step="2"] .cf-chapters--sequence article:nth-child(3)::after,
.portal-story[data-step="3"] .cf-chapters--sequence article:nth-child(4)::after {
  opacity: 1;
}

.portal-story .cf-chapter-tab {
  position: relative;
  z-index: 3;
  height: var(--cf-sequence-collapsed);
  display: grid;
  grid-template-columns: 30px 1fr 8px;
  align-items: center;
  gap: 9px;
  padding: 0 17px;
}

.portal-story .cf-chapter-tab span,
.portal-story .cf-chapter-tab b {
  font: 730 8px/1 var(--cf-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-story .cf-chapter-tab span {
  color: color-mix(in srgb, var(--cf-chapter-color) 78%, #fff);
}

.portal-story .cf-chapter-tab b {
  color: rgba(244, 248, 252, 0.52);
}

.portal-story .cf-chapter-tab i {
  width: 7px;
  height: 7px;
  border: 1px solid var(--cf-chapter-color);
  border-radius: 50%;
  opacity: 0.42;
  transition: background-color 420ms ease, box-shadow 420ms ease, opacity 420ms ease;
}

.portal-story[data-step="0"] .cf-chapters--sequence article:nth-child(1) .cf-chapter-tab i,
.portal-story[data-step="1"] .cf-chapters--sequence article:nth-child(2) .cf-chapter-tab i,
.portal-story[data-step="2"] .cf-chapters--sequence article:nth-child(3) .cf-chapter-tab i,
.portal-story[data-step="3"] .cf-chapters--sequence article:nth-child(4) .cf-chapter-tab i {
  opacity: 1;
  background: var(--cf-chapter-color);
  box-shadow: 0 0 14px color-mix(in srgb, var(--cf-chapter-color) 64%, transparent);
}

.portal-story .cf-chapter-body {
  position: absolute;
  z-index: 2;
  top: var(--cf-sequence-collapsed);
  right: 24px;
  bottom: 18px;
  left: 47px;
  overflow: hidden;
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition: opacity 170ms ease, transform 170ms ease;
  pointer-events: none;
}

.portal-story[data-step="0"] .cf-chapters--sequence article:nth-child(1) .cf-chapter-body,
.portal-story[data-step="1"] .cf-chapters--sequence article:nth-child(2) .cf-chapter-body,
.portal-story[data-step="2"] .cf-chapters--sequence article:nth-child(3) .cf-chapter-body,
.portal-story[data-step="3"] .cf-chapters--sequence article:nth-child(4) .cf-chapter-body {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 410ms ease 260ms, transform 520ms cubic-bezier(0.16, 1, 0.3, 1) 220ms;
}

.portal-story .cf-chapters--sequence h2 {
  max-width: 18ch;
  margin: 0;
  color: #f7fbff;
  font-size: clamp(27px, 2.25vw, 34px);
  font-weight: 690;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.portal-story .cf-chapters--sequence h2 b {
  display: block;
  color: var(--cf-chapter-color);
  font-weight: inherit;
}

.portal-story .cf-chapter-body > p {
  max-width: 38ch;
  margin: 10px 0 0;
  color: #91a4b9;
  font-size: 11px;
  line-height: 1.45;
}

.portal-story .cf-stepper::before {
  background: rgba(143, 194, 255, 0.14);
}

.portal-story .cf-stepper::after {
  width: 100%;
  background: linear-gradient(90deg, #1f7aec, #58a7ff);
  box-shadow: 0 0 12px rgba(88, 167, 255, 0.4);
  transform: scaleX(var(--cf-story-p));
  transform-origin: 0 50%;
}

.portal-story .cf-stepper li {
  color: rgba(255, 255, 255, 0.28);
}

.portal-story[data-step="0"] .cf-stepper li:nth-child(1),
.portal-story[data-step="1"] .cf-stepper li:nth-child(2),
.portal-story[data-step="2"] .cf-stepper li:nth-child(3),
.portal-story[data-step="3"] .cf-stepper li:nth-child(4) {
  color: #f4f8fc;
}

.portal-story .cf-phone-rig {
  transform:
    translate(-50%, -50%)
    translate(var(--cf-phone-x), var(--cfs-phone-y));
  filter: none;
  will-change: auto;
}

.portal-story .cf-scene {
  perspective: none;
}

.portal-story .cf-phone {
  border-color: #52708d;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 30px 70px rgba(0, 0, 0, 0.48),
    0 0 52px rgba(31, 122, 236, 0.12);
}

.portal-story.is-ringing .cf-phone {
  animation: none;
}

.portal-story.is-live .cf-phone-rig {
  filter: none;
  will-change: auto;
}

.portal-story .cf-phone__status {
  font: 750 9px/1.1 var(--cf-font);
  letter-spacing: -0.01em;
}

.portal-story .cf-phone__viewport {
  position: absolute;
  inset: 30px 0 0;
  overflow: hidden;
  clip-path: inset(0);
}

.portal-story .cf-phone__viewport > .cf-phone__incoming,
.portal-story .cf-phone__viewport > .cf-phone__live {
  inset: 0;
}

.portal-story.is-screen-settled .cf-phone__incoming {
  transform: translate3d(0, -102%, 0);
  will-change: auto;
}

.portal-story.is-screen-settled .cf-phone__live {
  filter: none;
  transform: none;
  will-change: auto;
}

.portal-story .cf-phone__incoming {
  opacity: 1;
  filter: none;
  transform: none;
  will-change: auto;
}

.portal-story .cf-phone__live {
  grid-template-rows: auto minmax(0, 1fr) auto 34px;
  gap: 7px;
  padding: 13px 13px 11px;
  opacity: 1;
  background:
    radial-gradient(circle at 50% 0%, rgba(31, 122, 236, 0.22), transparent 35%),
    linear-gradient(180deg, #0e1d2b, #07111b);
  filter: none;
  transform: translate3d(0, var(--cf-live-slide), 0);
  transform-origin: 50% 100%;
  will-change: auto;
}

.portal-story.is-screen-transitioning .cf-phone__incoming {
  transform: translate3d(0, var(--cf-incoming-slide), 0);
  will-change: transform;
}

.portal-story.is-screen-transitioning .cf-phone__live {
  will-change: transform;
}

.portal-story .cf-contact {
  color: #dcecff;
  border-color: rgba(143, 194, 255, 0.4);
  background: #102941;
  box-shadow: 0 0 0 13px rgba(31, 122, 236, 0.08), 0 0 46px rgba(88, 167, 255, 0.22);
}

.portal-story .cf-contact svg {
  width: 34%;
  height: 34%;
  stroke-width: 1.65;
}

.portal-story .cf-answer-slider {
  position: relative;
  width: min(220px, 96%);
  height: 54px;
  flex: none;
  margin-top: auto;
  overflow: hidden;
  border: 1px solid rgba(143, 194, 255, 0.2);
  border-radius: 999px;
  background: rgba(2, 8, 14, 0.48);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 18px 34px rgba(0, 0, 0, 0.24);
  isolation: isolate;
}

.portal-story .cf-answer-slider::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 auto 0 0;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(114, 212, 187, 0.28), rgba(31, 122, 236, 0.2));
  transform: scaleX(var(--cf-answer-fill-scale));
  transform-origin: 0 50%;
}

.portal-story .cf-answer-label {
  position: absolute;
  z-index: 1;
  inset: 0 16px;
  display: grid;
  place-items: center;
  color: rgba(232, 243, 253, 0.88);
  font: 700 9px/1.15 var(--cf-font);
  letter-spacing: 0.01em;
  opacity: var(--cf-answer-label);
}

.portal-story .cf-answer-knob {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: var(--cf-answer-inset);
  width: var(--cf-answer-knob-size);
  height: var(--cf-answer-knob-size);
  display: grid;
  place-items: center;
  border: 1px solid rgba(190, 244, 228, 0.58);
  border-radius: 50%;
  color: #f5fffc;
  background: linear-gradient(145deg, #72d4bb, #168a6b);
  box-shadow: 0 0 0 6px rgba(114, 212, 187, 0.1), 0 9px 24px rgba(10, 87, 68, 0.38);
  transform: translate3d(var(--cf-answer-x), -50%, 0) rotate(var(--cf-answer-knob-rotate)) scale(var(--cf-answer-knob-scale));
  will-change: auto;
}

.portal-story .cf-answer-knob::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 1px solid rgba(173, 239, 220, 0.72);
  border-radius: inherit;
  opacity: var(--cf-answer-land-ring);
  pointer-events: none;
  transform: scale(var(--cf-answer-ring-scale));
}

.portal-story .cf-answer-knob svg {
  width: 18px;
  height: 18px;
}

.portal-story .cf-live-logo {
  position: relative;
  isolation: isolate;
  background: #1f7aec;
  box-shadow: 0 0 0 5px rgba(31, 122, 236, 0.11), 0 0 22px rgba(88, 167, 255, 0.18);
}

.portal-story .cf-live-logo::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -7px;
  border: 1px solid rgba(143, 194, 255, 0.55);
  border-radius: 12px;
  opacity: 0;
  transform: scale(0.78);
  will-change: transform, opacity;
}

.portal-story .cf-live-logo img {
  position: relative;
  z-index: 1;
}

.portal-story.is-speaking .cf-live-logo::after {
  animation: portalCoreSpeak 920ms ease-in-out infinite;
}

.portal-story .cf-live-head {
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.portal-story .cf-live-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.portal-story .cf-live-signal {
  height: 16px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 5px;
  border: 1px solid rgba(114, 212, 187, 0.2);
  border-radius: 999px;
  color: #8ce1ca;
  background: rgba(114, 212, 187, 0.07);
}

.portal-story .cf-live-signal svg {
  width: 9px;
  height: 9px;
  margin-right: 2px;
}

.portal-story .cf-live-signal i {
  width: 1.5px;
  height: 4px;
  flex: none;
  border-radius: 99px;
  background: #72d4bb;
  opacity: 0.48;
  transform-origin: 50% 50%;
}

.portal-story.is-speaking .cf-live-signal i {
  animation: portalVoiceLevel 620ms ease-in-out infinite alternate;
}

.portal-story .cf-live-signal i:nth-of-type(2) { animation-delay: -460ms; }
.portal-story .cf-live-signal i:nth-of-type(3) { animation-delay: -210ms; }
.portal-story .cf-live-signal i:nth-of-type(4) { animation-delay: -530ms; }
.portal-story .cf-live-signal i:nth-of-type(5) { animation-delay: -120ms; }

.portal-story .cf-live-meta > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-story .cf-live-head > time {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border: 1px solid rgba(114, 212, 187, 0.14);
  border-radius: 999px;
  color: rgba(224, 238, 252, 0.58);
  background: rgba(114, 212, 187, 0.05);
  font: 700 7px/1 var(--cf-mono);
  letter-spacing: 0.04em;
}

.portal-story .cf-live-head > time::before {
  content: "";
  width: 4px;
  height: 4px;
  flex: none;
  border-radius: 50%;
  background: #72d4bb;
  box-shadow: 0 0 7px rgba(114, 212, 187, 0.72);
}

.portal-story .cf-wave span {
  background: #8fc2ff;
}

.portal-story .cf-transcript {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 3px 1px 6px;
  transform: translate3d(0, var(--cf-chat-y), 0);
  will-change: auto;
}

.portal-story .cf-transcript::before {
  content: "";
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 12px;
  width: 1px;
  background: linear-gradient(180deg, rgba(88, 167, 255, 0.06), rgba(88, 167, 255, 0.45), rgba(114, 212, 187, 0.12));
  box-shadow: 0 0 10px rgba(88, 167, 255, 0.15);
}

.portal-story .cf-moment {
  position: relative;
  grid-area: auto;
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  color: rgba(247, 251, 255, 0.95);
  background: none;
  box-shadow: none;
  font-size: clamp(10px, 0.82vw, 12px);
  line-height: 1.32;
  transform-origin: 0 50%;
  will-change: auto;
}

.portal-story .cf-moment--client {
  align-self: stretch;
  color: rgba(250, 252, 255, 0.92);
  background: none;
  transform-origin: 0 50%;
}

.portal-story .cf-speaker {
  position: relative;
  z-index: 1;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(143, 194, 255, 0.26);
  border-radius: 8px;
  color: rgba(222, 237, 252, 0.68);
  background: #0a1928;
  box-shadow: 0 0 0 3px #07111c;
  transition: border-color 240ms ease, box-shadow 240ms ease, color 240ms ease;
}

.portal-story .cf-moment--vorqen .cf-speaker {
  border-color: rgba(88, 167, 255, 0.42);
  background: #1f7aec;
}

.portal-story .cf-speaker img,
.portal-story .cf-speaker svg {
  width: 11px;
  height: 11px;
  object-fit: contain;
}

.portal-story[data-voice="vorqen"] .cf-moment--vorqen .cf-speaker,
.portal-story[data-voice="client"] .cf-moment--client .cf-speaker {
  border-color: #8fc2ff;
  color: #fff;
  box-shadow: 0 0 0 3px #07111c, 0 0 16px rgba(88, 167, 255, 0.42);
}

.portal-story[data-voice="client"] .cf-moment--client .cf-speaker {
  border-color: rgba(114, 212, 187, 0.74);
  box-shadow: 0 0 0 3px #07111c, 0 0 16px rgba(114, 212, 187, 0.26);
}

.portal-story .cf-utterance {
  min-width: 0;
  padding: 1px 0 7px;
  border-bottom: 1px solid rgba(143, 194, 255, 0.08);
}

.portal-story .cf-moment:last-child .cf-utterance {
  border-bottom-color: transparent;
}

.portal-story .cf-utterance > header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}

.portal-story .cf-moment small {
  margin: 0;
  color: #a9d1ff;
  font: 750 6px/1 var(--cf-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.portal-story .cf-moment--client small {
  color: rgba(218, 231, 244, 0.62);
}

.portal-story .cf-utterance time {
  margin-left: auto;
  color: rgba(189, 207, 225, 0.36);
  font: 650 5.5px/1 var(--cf-mono);
  letter-spacing: 0.03em;
}

.portal-story .cf-voice-level {
  height: 8px;
  display: flex;
  align-items: center;
  gap: 1.5px;
  opacity: 0.26;
}

.portal-story .cf-voice-level i {
  width: 1.5px;
  height: 3px;
  border-radius: 99px;
  background: currentColor;
  transform-origin: 50% 50%;
}

.portal-story[data-voice="vorqen"] .cf-moment--vorqen .cf-voice-level,
.portal-story[data-voice="client"] .cf-moment--client .cf-voice-level {
  color: #8fc2ff;
  opacity: 0.92;
}

.portal-story[data-voice="client"] .cf-moment--client .cf-voice-level {
  color: #72d4bb;
}

.portal-story[data-voice="vorqen"] .cf-moment--vorqen .cf-voice-level i,
.portal-story[data-voice="client"] .cf-moment--client .cf-voice-level i {
  animation: portalVoiceLevel 420ms ease-in-out infinite alternate;
}

.portal-story .cf-voice-level i:nth-child(2) { animation-delay: -260ms !important; }
.portal-story .cf-voice-level i:nth-child(3) { animation-delay: -120ms !important; }

.portal-story .cf-moment q {
  display: block;
  color: rgba(239, 247, 255, 0.92);
  font-weight: 570;
  letter-spacing: -0.01em;
  quotes: none;
}

.portal-story .cf-moment--client q {
  color: rgba(227, 238, 248, 0.8);
}

.portal-story .cf-moment q::before,
.portal-story .cf-moment q::after {
  content: none;
}

.portal-story .cf-moment--0 {
  opacity: var(--cf-m0);
  filter: none;
  transform: translate3d(0, var(--cf-m0-y), 0);
}

.portal-story .cf-moment--1 {
  opacity: var(--cf-m1);
  filter: none;
  transform: translate3d(0, var(--cf-m1-y), 0);
}

.portal-story .cf-moment--2 {
  opacity: var(--cf-m2);
  filter: none;
  transform: translate3d(0, var(--cf-m2-y), 0);
}

.portal-story .cf-moment--3 {
  opacity: var(--cf-m3);
  filter: none;
  transform: translate3d(0, var(--cf-m3-y), 0);
}

.portal-story .cf-intent {
  opacity: 1;
}

.portal-story .cf-intent span {
  will-change: transform, opacity;
}

.portal-story .cf-intent span:nth-child(1) {
  opacity: var(--cf-intent-1);
  transform: scale(var(--cf-intent-scale-1));
}

.portal-story .cf-intent span:nth-child(2) {
  opacity: var(--cf-intent-2);
  transform: scale(var(--cf-intent-scale-2));
}

.portal-story .cf-intent span:nth-child(3) {
  opacity: var(--cf-intent-3);
  transform: scale(var(--cf-intent-scale-3));
}

.portal-story .cf-operation {
  min-height: 25px;
  padding-inline: 2px;
  font-size: 9px;
}

.portal-story .cf-operation__slot {
  color: #a7e5d1;
  opacity: var(--cf-slot);
  transform: translate3d(0, var(--cf-slot-y), 0);
}

.portal-story .cf-call-dock {
  min-height: 34px;
  display: grid;
  grid-template-columns: auto minmax(34px, 1fr) 29px;
  align-items: center;
  gap: 8px;
  padding: 4px 5px;
  border: 1px solid rgba(143, 194, 255, 0.1);
  border-radius: 12px;
  background: rgba(2, 8, 14, 0.32);
}

.portal-story .cf-mic-control {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(143, 194, 255, 0.16);
  border-radius: 50%;
  color: rgba(221, 235, 248, 0.72);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 0 rgba(88, 167, 255, 0);
}

.portal-story.is-speaking .cf-mic-control {
  color: #dcebfa;
  border-color: rgba(88, 167, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(88, 167, 255, 0.07);
}

.portal-story .cf-call-dock .cf-wave {
  height: 20px;
  gap: 2px;
  border: 0;
}

.portal-story .cf-call-dock .cf-wave span {
  width: 1.5px;
}

.portal-story .cf-hangup {
  width: 27px;
  height: 27px;
  justify-self: end;
  transform: none;
}

.portal-story .cf-hangup svg {
  width: 15px;
  height: 15px;
}

.portal-story .cf-agenda {
  z-index: 7;
  opacity: var(--cf-agenda);
  border-color: rgba(143, 194, 255, 0.2);
  box-shadow: 0 32px 86px rgba(0, 0, 0, 0.42), 0 0 46px rgba(31, 122, 236, 0.1);
  transform: translate3d(var(--cf-agenda-x), -50%, 0);
  will-change: auto;
}

.portal-story.is-complete .cf-agenda {
  border-color: rgba(114, 212, 187, 0.5);
  box-shadow: 0 32px 86px rgba(0, 0, 0, 0.42), 0 0 52px rgba(114, 212, 187, 0.12);
}

.portal-story .cf-agenda > header {
  height: 68px;
  background: #edf3f8;
}

.portal-story .cf-agenda > header > time {
  color: #718195;
  font: 700 9px/1 var(--cf-mono);
  letter-spacing: 0.04em;
}

.portal-story .cf-agenda__columns,
.portal-story .cf-agenda__row > time {
  font-size: 8px;
}

.portal-story .cf-agenda__body {
  height: calc(100% - 68px);
}

.portal-story .cf-busy {
  position: absolute;
  top: 7px;
  right: 5px;
  bottom: 7px;
  left: calc(20% + 14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 7px 10px;
  overflow: hidden;
  border: 1px solid #d7e1ea;
  border-left: 4px solid #9babba;
  border-radius: 10px;
  color: #405165;
  background: linear-gradient(90deg, #edf2f6, #f5f7f9);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.7);
  transform: translate3d(9px, 0, 0);
  will-change: auto;
}

.portal-story .cf-agenda__body > .cf-agenda__row--occupied:nth-child(2) .cf-busy {
  opacity: var(--cf-busy-1);
  transform: translate3d(var(--cf-busy-x-1), 0, 0);
}

.portal-story .cf-agenda__body > .cf-agenda__row--occupied:nth-child(3) .cf-busy {
  opacity: var(--cf-busy-2);
  transform: translate3d(var(--cf-busy-x-2), 0, 0);
}

.portal-story .cf-agenda__body > .cf-agenda__row--occupied:nth-child(5) .cf-busy {
  opacity: var(--cf-busy-3);
  transform: translate3d(var(--cf-busy-x-3), 0, 0);
}

.portal-story .cf-busy strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-story .cf-busy small {
  flex: none;
  color: #718195;
  font: 700 8px/1 var(--cf-mono);
}

.portal-story .cf-scan {
  top: 20%;
  transform: translate3d(0, var(--cf-scan-y), 0);
  transition: none;
  will-change: auto;
}

.portal-story .cf-slot {
  border-color: rgba(31, 122, 236, 0.68);
  background: linear-gradient(90deg, rgba(31, 122, 236, 0.07), rgba(114, 212, 187, 0.08));
  box-shadow: 0 0 18px rgba(88, 167, 255, 0.16);
  transform: translate3d(0, var(--cf-slot-y), 0) scale(var(--cf-slot-scale));
  transform-origin: 50% 50%;
  will-change: auto;
}

.portal-story .cf-slot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(88, 167, 255, 0.52);
  border-radius: 15px;
  opacity: var(--cf-slot-pulse);
  transform: scale(var(--cf-slot-pulse-scale));
}

.portal-story .cfs-available {
  font-size: 9px;
  transform: translateY(calc(-50% + var(--cfs-available-y)));
  will-change: auto;
}

.portal-story.is-looking .cf-scan {
  animation: none;
  will-change: transform, opacity;
}

.portal-story .cf-booking {
  border-color: rgba(16, 128, 96, 0.34);
  background: linear-gradient(90deg, rgba(114, 212, 187, 0.16), rgba(31, 122, 236, 0.06)), #f8fbfd;
  box-shadow: 0 8px 18px rgba(16, 128, 96, 0.1);
  transform-origin: 50% 50%;
  will-change: auto;
}

.portal-story .cf-booking p svg {
  width: 10px;
  height: 10px;
}

.portal-story .cf-booking p i {
  position: relative;
  overflow: visible;
  opacity: var(--cf-confirm-tick);
  transform: scale(var(--cf-confirm-tick-scale));
  transform-origin: center;
}

.portal-story .cf-booking p i::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid #72d4bb;
  border-radius: 50%;
  opacity: var(--cf-impact);
  transform: scale(var(--cf-impact-scale));
  transform-origin: center;
  pointer-events: none;
}

.portal-story .cf-booking::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid #72d4bb;
  border-radius: inherit;
  opacity: var(--cf-impact);
  transform: scale(var(--cf-impact-scale));
  transform-origin: center;
  pointer-events: none;
}

.portal-story .cf-booking p,
.portal-story .cf-booking small {
  font-size: 8px;
}

.portal-story .cf-booking strong {
  font-size: 11px;
}

.portal-story .cf-route {
  z-index: 10;
}

.portal-story .cf-route__base {
  stroke: rgba(114, 212, 187, 0.24);
}

.portal-story .cf-route__glow {
  fill: none;
  stroke: rgba(114, 212, 187, 0.14);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: var(--cf-route-offset);
  vector-effect: non-scaling-stroke;
}

.portal-story .cf-route__live {
  stroke: #72d4bb;
  stroke-width: 3.5;
  filter: none;
}

.portal-story .cf-transfer {
  position: absolute;
  z-index: 12;
  left: 0;
  top: 0;
  width: 98px;
  height: 40px;
  display: grid;
  place-items: center;
  overflow: visible;
  border: 0;
  color: #eaf5ff;
  background: none;
  box-shadow: none;
  opacity: var(--cf-transfer);
  transform:
    translate3d(var(--cf-transfer-x), var(--cf-transfer-y), 0)
    translate3d(-50%, -50%, 0)
    scale(var(--cf-transfer-scale));
  will-change: auto;
}

.portal-story .cf-transfer::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(151, 202, 255, 0.42);
  border-radius: 11px;
  background: linear-gradient(145deg, #173652, #0b2137);
  opacity: var(--cf-transfer-shell);
  transform: scaleX(var(--cf-transfer-shell-x)) scaleY(var(--cf-transfer-shell-y));
  transform-origin: center;
}

.portal-story:not(.is-transferring) .cf-transfer {
  visibility: hidden;
}

.portal-story.is-transferring .cf-transfer {
  visibility: visible;
  will-change: transform, opacity;
}

.portal-story .cf-transfer__message,
.portal-story .cf-transfer__time {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  white-space: nowrap;
}

.portal-story .cf-transfer__message {
  font: 650 8px/1 var(--cf-font);
  opacity: var(--cf-transfer-message);
}

.portal-story .cf-transfer__time {
  color: #bcecdf;
  font: 800 9px/1 var(--cf-mono);
  opacity: var(--cf-transfer-time);
}

.portal-story .cf-transfer__particle {
  position: absolute;
  z-index: 2;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(224, 255, 246, 0.9);
  border-radius: 50%;
  background: #72d4bb;
  box-shadow: 0 0 0 4px rgba(114, 212, 187, 0.12);
  opacity: var(--cf-transfer-particle);
  transform: scale(var(--cf-transfer-particle-scale));
  transform-origin: center;
}

.portal-story .cf-impact { display: none; }

.portal-story .cf-scroll-hint {
  color: rgba(255, 255, 255, 0.5);
}

.portal-story .cf-scroll-hint b {
  font: inherit;
}

.portal-story .cf-scroll-hint span {
  border-color: rgba(143, 194, 255, 0.24);
}

.portal-story .cf-scroll-hint span::after {
  background: #58a7ff;
  box-shadow: 0 0 8px rgba(88, 167, 255, 0.62);
}

.portal-story[data-animating="true"] .cf-scroll-hint {
  color: #8fc2ff;
}

.portal-story[data-scroll-complete="true"] .cf-scroll-hint {
  color: #8ddbc6;
}

.portal-story[data-scroll-complete="true"] .cf-scroll-hint span {
  border-color: rgba(114, 212, 187, 0.34);
}

.portal-story[data-scroll-complete="true"] .cf-scroll-hint span::after {
  background: #72d4bb;
  box-shadow: 0 0 8px rgba(114, 212, 187, 0.58);
}

/* Active call: iPhone-like hierarchy with one readable caption at a time. */
.portal-story .cf-phone__live {
  grid-template-rows: auto minmax(90px, 1fr) auto auto;
  gap: 8px;
  padding: 15px 14px 13px;
  filter: none;
}

.portal-story .cf-call-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding-top: 4px;
  text-align: center;
}

.portal-story .cf-caller-avatar {
  position: relative;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: rgba(244, 249, 255, 0.86);
  background: linear-gradient(145deg, #33475b, #172737);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 12px 30px rgba(0, 0, 0, 0.25);
}

.portal-story .cf-caller-avatar::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(114, 212, 187, 0.4);
  border-radius: 50%;
  opacity: 0;
}

.portal-story[data-voice="client"] .cf-caller-avatar::after {
  animation: portalCoreSpeak 920ms ease-in-out infinite;
}

.portal-story .cf-caller-avatar svg {
  width: 27px;
  height: 27px;
}

.portal-story .cf-call-identity > strong {
  color: #f6f9fc;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.portal-story .cf-call-duration {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(219, 231, 243, 0.54);
  font: 650 8px/1 var(--cf-mono);
}

.portal-story .cf-call-duration > i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #72d4bb;
  box-shadow: 0 0 7px rgba(114, 212, 187, 0.62);
}

.portal-story .cf-transcript {
  position: relative;
  display: block;
  min-height: 90px;
  padding: 4px 0 0;
  overflow: visible;
  transform: none;
}

.portal-story .cf-transcript::before {
  content: none;
}

.portal-story .cf-moment,
.portal-story .cf-moment--client {
  position: absolute;
  top: 5px;
  bottom: auto;
  width: min(88%, 222px);
  max-width: 88%;
  display: flex;
  align-items: flex-end;
  gap: 13px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  filter: none;
  font-size: 11px;
  line-height: 1.38;
  will-change: auto;
}

.portal-story[data-caption-settled="0"] .cf-moment--0,
.portal-story[data-caption-settled="1"] .cf-moment--1,
.portal-story[data-caption-settled="2"] .cf-moment--2,
.portal-story[data-caption-settled="3"] .cf-moment--3 {
  transform: none;
}

.portal-story .cf-moment--client {
  right: auto;
  left: 0;
  transform-origin: 0 50%;
}

.portal-story .cf-moment--vorqen {
  right: 0;
  left: auto;
  flex-direction: row-reverse;
  transform-origin: 100% 50%;
}

.portal-story .cf-speaker {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  box-shadow: none;
  transform: translate3d(0, calc(50% + 1px), 0);
}

.portal-story .cf-moment--vorqen .cf-speaker {
  border-color: rgba(255, 255, 255, 0.9);
  background: #fff;
  box-shadow: 0 4px 13px rgba(0, 0, 0, 0.24);
}

.portal-story .cf-moment--vorqen .cf-speaker img {
  width: 14px;
  height: 14px;
}

.portal-story[data-voice="vorqen"] .cf-moment--vorqen .cf-speaker,
.portal-story[data-voice="client"] .cf-moment--client .cf-speaker {
  box-shadow: 0 0 0 4px rgba(88, 167, 255, 0.08), 0 0 14px rgba(88, 167, 255, 0.25);
}

.portal-story[data-voice="client"] .cf-moment--client .cf-speaker {
  box-shadow: 0 0 0 4px rgba(114, 212, 187, 0.07), 0 0 14px rgba(114, 212, 187, 0.2);
}

.portal-story .cf-utterance {
  position: relative;
  min-width: 0;
  padding: 8px 10px 12px;
  border: 0;
  border-radius: 14px;
  background: rgba(27, 43, 59, 0.96);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.portal-story .cf-utterance::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: auto;
  bottom: -1px;
  width: 22px;
  height: 26px;
  pointer-events: none;
  transform: none;
}

.portal-story .cf-utterance > header,
.portal-story .cf-utterance > q,
.portal-story .cf-utterance-meta {
  position: relative;
  z-index: 1;
}

.portal-story .cf-moment--client .cf-utterance::before {
  left: -14px;
  background: rgba(27, 43, 59, 0.96);
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 64% 62%, 64% 0);
  clip-path: path("M 22 0 Q 22 26, 0 26 Q 14 16, 14 0 Z");
}

.portal-story .cf-moment--vorqen .cf-utterance {
  background: rgba(18, 54, 88, 0.97);
}

.portal-story .cf-moment--vorqen .cf-utterance::before {
  right: -14px;
  background: rgba(18, 54, 88, 0.97);
  clip-path: polygon(0 0, 0 100%, 100% 100%, 36% 62%, 36% 0);
  clip-path: path("M 0 0 Q 0 26, 22 26 Q 8 16, 8 0 Z");
}

.portal-story .cf-utterance > header {
  gap: 5px;
  margin-bottom: 4px;
}

.portal-story .cf-moment small {
  font-size: 8px;
}

.portal-story .cf-moment q,
.portal-story .cf-moment--client q {
  color: #f0f5fa;
  font-size: 11px;
  font-weight: 600;
  text-wrap: pretty;
}

.portal-story .cf-utterance-meta-spacer {
  display: inline-block;
  width: 28px;
  height: 0;
  pointer-events: none;
}

.portal-story .cf-utterance-meta {
  position: absolute;
  right: 9px;
  bottom: 3px;
  display: inline-flex;
  align-items: center;
  color: rgba(214, 229, 243, 0.48);
  font: 650 6px/1 var(--cf-mono);
  letter-spacing: 0.02em;
  pointer-events: none;
}

.portal-story .cf-moment--0 {
  opacity: var(--cf-m0);
  transform: translate3d(var(--cf-m0-x), var(--cf-m0-y), 0) scale(var(--cf-m0-scale));
}

.portal-story .cf-moment--1 {
  opacity: var(--cf-m1);
  transform: translate3d(var(--cf-m1-x), var(--cf-m1-y), 0) scale(var(--cf-m1-scale));
}

.portal-story .cf-moment--2 {
  opacity: var(--cf-m2);
  transform: translate3d(var(--cf-m2-x), var(--cf-m2-y), 0) scale(var(--cf-m2-scale));
}

.portal-story .cf-moment--3 {
  opacity: var(--cf-m3);
  transform: translate3d(var(--cf-m3-x), var(--cf-m3-y), 0) scale(var(--cf-m3-scale));
}

.portal-story .cf-call-dock {
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  justify-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.portal-story .cf-call-actions {
  display: grid;
  grid-template-columns: repeat(3, 34px);
  gap: 14px;
}

.portal-story .cf-call-control {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  color: rgba(247, 250, 253, 0.82);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.portal-story .cf-call-control svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-story .cf-hangup {
  width: 38px;
  height: 38px;
  justify-self: center;
  transform: none;
}

@keyframes portalCoreSpeak {
  0%, 100% { opacity: 0; transform: scale(0.78); }
  46% { opacity: 0.72; }
  72% { opacity: 0; transform: scale(1.32); }
}

@keyframes portalVoiceLevel {
  0% { transform: scaleY(0.7); opacity: 0.46; }
  100% { transform: scaleY(2.4); opacity: 1; }
}

@media (max-width: 1100px) {
  .portal-story .cf-chapters--sequence {
    height: clamp(370px, 48vh, 390px);
    min-height: 370px;
  }

  .portal-story .cf-chapters--sequence h2 {
    max-width: 18ch;
    font-size: clamp(25px, 2.8vw, 31px);
  }
}

@media (max-width: 900px) {
  .portal-story .cf-layout {
    padding-top: 0;
  }

  .portal-story .cf-chapters--sequence {
    --cf-sequence-collapsed: 34px;
    --cf-sequence-half: 17px;
    --cf-sequence-gap: 5px;
    height: 270px;
    min-height: 270px;
    margin-top: 9px;
  }

  .portal-story .cf-chapter-tab {
    grid-template-columns: 27px 1fr 7px;
    gap: 8px;
    padding-inline: 14px;
  }

  .portal-story .cf-chapter-body {
    right: 18px;
    bottom: 12px;
    left: 42px;
  }

  .portal-story .cf-chapters--sequence h2 {
    max-width: 22ch;
    font-size: clamp(24px, 3.2vw, 28px);
  }

  .portal-story .cf-chapter-body > p {
    margin-top: 7px;
    font-size: 10px;
  }

  .portal-story .cf-copy {
    margin-inline: max(14px, var(--safe-left)) max(14px, var(--safe-right));
  }

  .portal-story .cf-scene {
    inset: 440px max(14px, var(--safe-right)) max(14px, var(--vq-stable-safe-bottom)) max(14px, var(--safe-left));
  }

  .portal-story .cf-phone-rig {
    transform:
      translate(-50%, -50%)
      translate(var(--cf-phone-x), var(--cfs-phone-y));
  }

  .portal-story .cf-agenda {
    right: 0;
    left: 0;
    margin-inline: auto;
    transform: translate3d(0, var(--cfs-agenda-y), 0);
  }

  .portal-story.is-complete .cf-agenda,
  .portal-story.is-complete .cf-busy {
    transform: none;
  }
}

@media (max-width: 600px) {
  .portal-story .cf-scene {
    inset: max(366px, calc(var(--header-height) + 302px)) max(10px, var(--safe-right)) max(10px, var(--vq-stable-safe-bottom)) max(10px, var(--safe-left));
    display: grid;
    place-items: center;
    perspective: none;
  }

  .portal-story .cf-phone-rig {
    position: relative;
    inset: auto;
    width: auto;
    height: min(430px, 94%);
    place-self: center;
    margin: 0;
    filter: none;
    transform: none;
    will-change: auto;
  }

  .portal-story.is-screen-settled .cf-phone__live {
    filter: none;
    transform: none;
    will-change: auto;
  }

  .portal-story .cf-moment {
    will-change: auto;
  }

  .portal-story[data-caption-settled="0"] .cf-moment--0,
  .portal-story[data-caption-settled="1"] .cf-moment--1,
  .portal-story[data-caption-settled="2"] .cf-moment--2,
  .portal-story[data-caption-settled="3"] .cf-moment--3 {
    transform: none;
  }

  .portal-story .star-field--workflow::after {
    display: none;
  }

  .portal-story .cf-chapters--sequence {
    --cf-sequence-collapsed: 29px;
    --cf-sequence-half: 14.5px;
    --cf-sequence-gap: 5px;
    height: 250px;
    min-height: 250px;
    margin-top: 7px;
  }

  .portal-story .cf-chapters--sequence::before {
    left: -7px;
  }

  .portal-story .cf-chapters--sequence::after {
    left: -10px;
    width: 7px;
    height: 7px;
  }

  .portal-story .cf-chapter-tab {
    grid-template-columns: 24px 1fr 7px;
    gap: 6px;
    padding-inline: 12px;
  }

  .portal-story .cf-chapter-tab span,
  .portal-story .cf-chapter-tab b {
    font-size: 7px;
  }

  .portal-story .cf-chapter-body {
    right: 13px;
    bottom: 9px;
    left: 37px;
  }

  .portal-story .cf-chapters--sequence h2 {
    max-width: 19ch;
    font-size: clamp(20px, 5.6vw, 23px);
  }

  .portal-story .cf-chapter-body > p {
    margin-top: 6px;
    color: #9cacc0;
    font-size: 9px;
    line-height: 1.4;
  }

  .portal-story .cf-phone__live {
    grid-template-rows: auto minmax(64px, 1fr) auto auto;
    gap: 4px;
    padding: 9px 9px 10px;
  }

  .portal-story .cf-call-identity {
    gap: 2px;
    padding-top: 1px;
  }

  .portal-story .cf-caller-avatar {
    width: 46px;
    height: 46px;
  }

  .portal-story .cf-caller-avatar svg {
    width: 20px;
    height: 20px;
  }

  .portal-story .cf-call-identity > strong {
    font-size: 10px;
  }

  .portal-story .cf-call-duration {
    gap: 4px;
    font-size: 8px;
  }

  .portal-story .cf-live-head {
    grid-template-columns: 25px minmax(0, 1fr) auto;
    gap: 5px;
    padding-bottom: 5px;
  }

  .portal-story .cf-live-logo {
    width: 25px;
    height: 25px;
    border-radius: 7px;
  }

  .portal-story .cf-live-logo::after {
    inset: -4px;
    border-radius: 9px;
  }

  .portal-story .cf-live-signal {
    display: none;
  }

  .portal-story .cf-live-meta > strong {
    font-size: 8.5px;
  }

  .portal-story .cf-live-head > time {
    gap: 3px;
    padding: 3px 4px;
    font-size: 7.5px;
  }

  .portal-story .cf-live-head > time::before {
    width: 3px;
    height: 3px;
  }

  .portal-story .cf-transcript {
    min-height: 64px;
    padding-block: 1px 3px;
  }

  .portal-story .cf-transcript::before {
    top: 10px;
    bottom: 10px;
    left: 9.5px;
  }

  .portal-story .cf-moment {
    top: 2px;
    width: 94%;
    max-width: 94%;
    gap: 13px;
    padding: 0;
    font-size: 10.5px;
    line-height: 1.32;
  }

  .portal-story .cf-speaker {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    box-shadow: 0 0 0 2px #07111c;
  }

  .portal-story .cf-speaker img,
  .portal-story .cf-speaker svg {
    width: 9px;
    height: 9px;
  }

  .portal-story .cf-moment--vorqen .cf-speaker img {
    width: 12px;
    height: 12px;
  }

  .portal-story[data-voice="vorqen"] .cf-moment--vorqen .cf-speaker,
  .portal-story[data-voice="client"] .cf-moment--client .cf-speaker {
    box-shadow: 0 0 0 2px #07111c, 0 0 12px rgba(88, 167, 255, 0.34);
  }

  .portal-story .cf-utterance {
    padding: 6px 7px;
    border-radius: 10px;
  }

  .portal-story .cf-utterance > header {
    gap: 3px;
    margin-bottom: 2px;
  }

  .portal-story .cf-moment small,
  .portal-story .cf-utterance time {
    font-size: 7.5px;
  }

  .portal-story .cf-answer-slider { height: 46px; }

  .portal-story .cf-answer-knob {
    left: clamp(21px, var(--cf-answer-position), calc(100% - 21px));
    width: 36px;
    height: 36px;
  }

  .portal-story .cf-answer-label {
    inset: 0 5px 0 43px;
    font-size: 8px;
    line-height: 1.15;
    text-align: center;
  }

  .portal-story .cf-moment q {
    font-size: 11px;
    line-height: 14px;
    letter-spacing: 0;
  }

  .portal-story .cf-voice-level {
    gap: 1px;
    height: 6px;
  }

  .portal-story .cf-voice-level i {
    width: 1px;
  }

  .portal-story .cf-intent {
    gap: 3px;
    margin-top: 4px;
  }

  .portal-story .cf-intent span {
    padding: 3px 5px;
    font-size: 5.5px;
  }

  .portal-story .cf-operation {
    min-height: 20px;
  }

  .portal-story .cf-call-dock {
    min-height: 70px;
    gap: 6px;
  }

  .portal-story .cf-hangup {
    width: 32px;
    height: 32px;
  }

  .portal-story .cf-call-actions {
    grid-template-columns: repeat(3, 28px);
    gap: 10px;
  }

  .portal-story .cf-call-control {
    width: 28px;
    height: 28px;
  }

  .portal-story .cf-call-control svg {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 480px) {
  .portal-story {
    --cf-header: var(--header-height);
  }
}

@media (max-width: 600px) {
  html.vq-stable-height-lte-680 .portal-story .cf-phone-rig {
    height: min(370px, 100%);
  }

  html.vq-stable-height-lte-680 .portal-story .cf-chapters--sequence {
    --cf-sequence-collapsed: 23px;
    --cf-sequence-half: 11.5px;
    --cf-sequence-gap: 4px;
    height: 180px;
    min-height: 180px;
    margin-top: 4px;
  }

  html.vq-stable-height-lte-680 .portal-story .cf-chapter-tab {
    grid-template-columns: 21px 1fr 6px;
    padding-inline: 10px;
  }

  html.vq-stable-height-lte-680 .portal-story .cf-chapter-tab span,
  html.vq-stable-height-lte-680 .portal-story .cf-chapter-tab b {
    font-size: 6px;
  }

  html.vq-stable-height-lte-680 .portal-story .cf-chapter-body {
    right: 10px;
    bottom: 6px;
    left: 32px;
  }

  html.vq-stable-height-lte-680 .portal-story .cf-chapters--sequence h2 {
    max-width: 22ch;
    font-size: clamp(17px, 4.8vw, 20px);
  }

  html.vq-stable-height-lte-680 .portal-story .cf-chapter-body > p {
    max-width: 44ch;
    margin-top: 4px;
    font-size: 8px;
    line-height: 1.35;
  }

  html.vq-stable-height-lte-680 .portal-story .cf-scene {
    inset: max(288px, calc(var(--header-height) + 224px)) max(9px, var(--safe-right)) max(8px, var(--vq-stable-safe-bottom)) max(9px, var(--safe-left));
  }

  html.vq-stable-height-lte-680 .portal-story .cf-scroll-hint {
    right: 5px;
    bottom: max(5px, var(--safe-bottom));
    gap: 6px;
    padding: 4px 6px;
    border: 1px solid rgba(88, 167, 255, 0.2);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.68);
    background: rgba(7, 17, 28, 0.84);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  html.vq-stable-height-lte-680 .portal-story .cf-scroll-hint b {
    font-size: 0;
  }

  html.vq-stable-height-lte-680 .portal-story .cf-scroll-hint b::after {
    content: "Desliza";
    font: 700 7px/1 var(--cf-mono);
    letter-spacing: 0.08em;
  }
}

html.vq-stable-height-lte-559 .portal-story,
html.vq-stable-height-lte-559 .portal-story .cf-track,
html.vq-stable-height-lte-559 .portal-story .cf-sticky {
  min-height: 560px;
}

html.vq-stable-height-lte-559 .portal-story .cf-track {
  height: 560px !important;
}

html.vq-stable-height-lte-559 .portal-story .cf-chapters--sequence::after,
html.vq-stable-height-lte-559 .portal-story .cf-chapters--sequence article,
html.vq-stable-height-lte-559 .portal-story .cf-chapters--sequence article::before,
html.vq-stable-height-lte-559 .portal-story .cf-chapters--sequence article::after,
html.vq-stable-height-lte-559 .portal-story .cf-chapter-tab i,
html.vq-stable-height-lte-559 .portal-story .cf-chapter-body {
  transition: none !important;
}

@media (max-width: 900px) {
  html.vq-stable-height-lte-559 .portal-story .cf-heading {
    display: none;
  }

  html.vq-stable-height-lte-559 .portal-story .cf-chapters--sequence {
    --cf-sequence-collapsed: 23px;
    --cf-sequence-half: 11.5px;
    --cf-sequence-gap: 4px;
    height: 180px;
    min-height: 180px;
    margin-top: 4px;
  }

  html.vq-stable-height-lte-559 .portal-story .cf-chapter-tab {
    grid-template-columns: 21px 1fr 6px;
    padding-inline: 10px;
  }

  html.vq-stable-height-lte-559 .portal-story .cf-chapter-body {
    right: 10px;
    bottom: 6px;
    left: 32px;
  }

  html.vq-stable-height-lte-559 .portal-story .cf-chapters--sequence h2 {
    max-width: 24ch;
    font-size: 19px;
  }

  html.vq-stable-height-lte-559 .portal-story .cf-chapter-body > p {
    display: none;
  }

  html.vq-stable-height-lte-559 .portal-story .cf-scene {
    inset: 288px 9px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-story .cf-scroll-hint {
    display: none;
  }

  .portal-story .star-field--workflow::before,
  .portal-story .star-field--workflow::after,
  .portal-story.is-speaking .cf-live-logo::after {
    animation: none !important;
  }

  .portal-story .cf-chapters--sequence::after,
  .portal-story .cf-chapters--sequence article,
  .portal-story .cf-chapters--sequence article::before,
  .portal-story .cf-chapters--sequence article::after,
  .portal-story .cf-chapter-tab i,
  .portal-story .cf-chapter-body {
    transition: none !important;
  }
}

/* Reduced motion and very short viewports use a complete, naturally scrolling summary. */
.portal-story.is-static {
  min-height: auto;
  padding: calc(var(--header-height) + 28px) var(--gutter) max(48px, var(--safe-bottom));
  overflow: visible;
}

.portal-story.is-static .cf-track,
.portal-story.is-static .cf-sticky {
  display: contents;
  width: 100%;
  height: auto !important;
  min-height: 0;
  overflow: visible;
}

.portal-story.is-static .cf-sticky { position: relative; }

.portal-story.is-static .cf-layout {
  width: min(var(--shell), 100%);
  height: auto !important;
  min-height: 0;
  display: block;
  margin-inline: auto;
  padding: 0;
}

.portal-story.is-static .cf-copy {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  max-width: none;
  margin: 0;
}

.portal-story.is-static .cf-heading {
  position: relative;
  display: block;
  max-width: 14ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(32px, 6vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.portal-story.is-static .cf-chapters,
.portal-story.is-static .cf-stepper,
.portal-story.is-static .cf-scene,
.portal-story.is-static .cf-scroll-hint { display: none; }

.portal-story.is-static .cf-accessible {
  position: relative;
  width: min(var(--shell), 100%);
  height: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 30px;
  margin: clamp(28px, 5vh, 48px) auto 0;
  padding: 0;
  overflow: visible;
  clip: auto;
  color: #cad8e7;
  white-space: normal;
  list-style: none;
}

.portal-story.is-static .cf-accessible li {
  min-width: 0;
  padding: 18px 0;
  border-top: 1px solid rgba(143, 194, 255, 0.18);
  font-size: 13px;
  line-height: 1.6;
}

.portal-story.is-static .cf-accessible strong {
  display: block;
  margin-bottom: 5px;
  color: #8fc2ff;
  font-size: 15px;
}

@media (max-width: 680px) {
  .portal-story.is-static {
    padding-top: calc(var(--header-height) + 20px);
    padding-inline: max(16px, var(--safe-left)) max(16px, var(--safe-right));
  }

  .portal-story.is-static .cf-heading { font-size: clamp(29px, 8.5vw, 42px); }
  .portal-story.is-static .cf-accessible { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; margin-top: 16px; }
  .portal-story.is-static .cf-accessible li { padding: 11px 0; font-size: 11px; line-height: 1.45; }
  .portal-story.is-static .cf-accessible strong { font-size: 13px; }
}

html.vq-stable-height-lte-559 .portal-story.is-static {
  padding-top: calc(var(--header-height) + 20px);
  padding-inline: max(16px, var(--safe-left)) max(16px, var(--safe-right));
}

html.vq-stable-height-lte-559 .portal-story.is-static .cf-heading { font-size: clamp(29px, 8.5vw, 42px); }
html.vq-stable-height-lte-559 .portal-story.is-static .cf-accessible { grid-template-columns: 1fr; margin-top: 24px; }
html.vq-stable-height-lte-559 .portal-story.is-static .cf-accessible li { padding: 14px 0; font-size: 12px; }
html.vq-stable-height-lte-559 .portal-story.is-static .cf-accessible strong { font-size: 14px; }

@media (max-width: 760px) and (orientation: portrait) {
  .portal-story.is-static {
    width: 100%;
    height: auto;
    min-height: var(--vq-screen-height);
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
  }
}

@media (min-width: 681px) {
  html.vq-stable-height-lte-559 .portal-story.is-static {
    min-height: var(--vq-screen-height);
    padding-top: calc(var(--header-height) + 12px);
    padding-bottom: max(24px, var(--safe-bottom));
  }

  html.vq-stable-height-lte-559 .portal-story.is-static .cf-heading {
    max-width: 18ch;
    font-size: clamp(24px, 4vw, 34px);
  }

  html.vq-stable-height-lte-559 .portal-story.is-static .cf-accessible {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    margin-top: 14px;
  }

  .portal-story.is-static .cf-accessible li {
    padding: 10px 0;
    font-size: 11.5px;
  }

  .portal-story.is-static .cf-accessible strong {
    margin-bottom: 3px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .portal-story[data-scroll-complete="true"] .cf-scroll-hint {
    visibility: hidden;
    opacity: 0;
  }
}

/* Native scroll-scrub: every narrative state is a direct function of scroll. */
.portal-story:not(.is-static) .cf-chapters--sequence {
  display: block;
  contain: layout style;
}

.portal-story:not(.is-static) .cf-chapters--sequence::after {
  background: var(--cf-marker-color);
  transform: translate3d(0, var(--cf-scrub-marker-y, var(--cf-sequence-half)), 0) translateY(-50%);
  transition: none;
}

.portal-story:not(.is-static) .cf-chapters--sequence article {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: var(--cf-card-max);
  display: block;
  contain: layout style;
  overflow: hidden;
  opacity: 1 !important;
  border: 0 !important;
  border-radius: 0;
  background: none !important;
  box-shadow: none !important;
  pointer-events: none;
  clip-path: inset(0 0 calc(var(--cf-card-max) - var(--cf-card-h)) 0 round 15px);
  transform: translate3d(0, var(--cf-card-pos), 0);
  transition: none !important;
}

.portal-story:not(.is-static) .cf-chapters--sequence article:nth-child(1) { --cf-card-h: var(--cf-card-h-0); --cf-card-pos: var(--cf-card-pos-0); --cf-chapter-active: var(--cf-chapter-0); --cf-chapter-tab-opacity: var(--cf-chapter-tab-0); --cf-chapter-body-opacity: var(--cf-chapter-body-0); --cf-chapter-y: var(--cf-chapter-y-0); }
.portal-story:not(.is-static) .cf-chapters--sequence article:nth-child(2) { --cf-card-h: var(--cf-card-h-1); --cf-card-pos: var(--cf-card-pos-1); --cf-chapter-active: var(--cf-chapter-1); --cf-chapter-tab-opacity: var(--cf-chapter-tab-1); --cf-chapter-body-opacity: var(--cf-chapter-body-1); --cf-chapter-y: var(--cf-chapter-y-1); }
.portal-story:not(.is-static) .cf-chapters--sequence article:nth-child(3) { --cf-card-h: var(--cf-card-h-2); --cf-card-pos: var(--cf-card-pos-2); --cf-chapter-active: var(--cf-chapter-2); --cf-chapter-tab-opacity: var(--cf-chapter-tab-2); --cf-chapter-body-opacity: var(--cf-chapter-body-2); --cf-chapter-y: var(--cf-chapter-y-2); }
.portal-story:not(.is-static) .cf-chapters--sequence article:nth-child(4) { --cf-card-h: var(--cf-card-h-3); --cf-card-pos: var(--cf-card-pos-3); --cf-chapter-active: var(--cf-chapter-3); --cf-chapter-tab-opacity: var(--cf-chapter-tab-3); --cf-chapter-body-opacity: var(--cf-chapter-body-3); --cf-chapter-y: var(--cf-chapter-y-3); }

.portal-story:not(.is-static) .cf-chapters--sequence article::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--cf-chapter-color) 38%, transparent);
  border-radius: 15px;
  background:
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--cf-chapter-color) 15%, transparent), transparent 34%),
    rgba(9, 24, 39, 0.94);
  box-shadow: none;
  opacity: var(--cf-chapter-tab-opacity) !important;
  pointer-events: none;
  transition: none !important;
}

.portal-story:not(.is-static) .cf-chapters--sequence article::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: 100%;
  height: 15px;
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--cf-chapter-color) 38%, transparent);
  border-top: 0;
  border-radius: 0 0 15px 15px;
  background: transparent;
  opacity: var(--cf-chapter-tab-opacity) !important;
  pointer-events: none;
  transform: translate3d(0, calc(var(--cf-card-h) - 15px), 0) !important;
  transition: none !important;
}

.portal-story:not(.is-static) .cf-chapter-tab {
  position: relative;
  z-index: 4;
  height: var(--cf-sequence-collapsed);
  opacity: var(--cf-chapter-tab-opacity);
  border: 0;
  background: none;
  transition: none !important;
}

.portal-story:not(.is-static) .cf-chapter-tab::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 2px;
  height: var(--cf-card-max);
  border-radius: 15px 0 0 15px;
  background: var(--cf-chapter-color);
  opacity: var(--cf-chapter-tab-opacity);
  pointer-events: none;
}

.portal-story:not(.is-static) .cf-chapter-tab i {
  opacity: var(--cf-chapter-tab-opacity) !important;
  background: var(--cf-chapter-color) !important;
  box-shadow: 0 0 14px color-mix(in srgb, var(--cf-chapter-color) 64%, transparent) !important;
  transition: none !important;
}

.portal-story:not(.is-static) .cf-chapter-body,
.portal-story:not(.is-static)[data-step="0"] .cf-chapters--sequence article:nth-child(1) .cf-chapter-body,
.portal-story:not(.is-static)[data-step="1"] .cf-chapters--sequence article:nth-child(2) .cf-chapter-body,
.portal-story:not(.is-static)[data-step="2"] .cf-chapters--sequence article:nth-child(3) .cf-chapter-body,
.portal-story:not(.is-static)[data-step="3"] .cf-chapters--sequence article:nth-child(4) .cf-chapter-body {
  position: absolute;
  top: var(--cf-sequence-collapsed);
  right: 24px;
  bottom: auto;
  left: 47px;
  z-index: 2;
  height: max(0px, calc(var(--cf-card-max) - var(--cf-sequence-collapsed) - var(--cf-card-body-bottom)));
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  opacity: var(--cf-chapter-body-opacity) !important;
  transform: translate3d(0, var(--cf-chapter-y), 0) !important;
  transition: none !important;
}

.portal-story:not(.is-static) .cf-phone-rig {
  transform:
    translate(-50%, -50%)
    translate3d(var(--cf-phone-x), var(--cfs-phone-y), 0)
    rotate(var(--cf-phone-tilt));
  transform-origin: 50% 50%;
  transition: none !important;
}

@keyframes cfsPhoneRinging {
  0%, 22%, 100% { rotate: 0deg; }
  4% { rotate: -0.32deg; }
  8% { rotate: 0.28deg; }
  12% { rotate: -0.2deg; }
  16% { rotate: 0.12deg; }
  20% { rotate: 0deg; }
}

.portal-story:not(.is-static).is-vibrating .cf-phone {
  animation: cfsPhoneRinging 2.2s steps(1, end) infinite;
  transform-origin: 50% 50%;
}

.portal-story:not(.is-static) .cf-answer-knob {
  left: var(--cf-answer-inset);
  animation: none !important;
  transform: translate3d(var(--cf-answer-x), -50%, 0) rotate(var(--cf-answer-knob-rotate)) scale(var(--cf-answer-knob-scale));
}

.portal-story:not(.is-static).is-ringing .cf-contact::before {
  opacity: var(--cf-ring-pulse);
  transform: scale(var(--cf-ring-scale));
}

.portal-story:not(.is-static).is-ringing .cf-contact::after,
.portal-story:not(.is-static).is-ringing .cf-answer-slider::after {
  display: none;
}

.portal-story:not(.is-static).is-ringing .cf-contact::before,
.portal-story:not(.is-static).is-ringing .cf-contact::after,
.portal-story:not(.is-static).is-ringing .cf-answer-slider::after,
.portal-story:not(.is-static).is-speaking .cf-live-logo::after,
.portal-story:not(.is-static)[data-voice="client"] .cf-caller-avatar::after,
.portal-story:not(.is-static)[data-voice] .cf-voice-level i,
.portal-story:not(.is-static)[data-voice] .cf-live-signal i {
  animation: none !important;
  transition: none !important;
}

.portal-story:not(.is-static) .cf-operation__lookup i::after {
  animation: none !important;
  transform: translate3d(var(--cf-lookup-line-x), 0, 0);
}

.portal-story:not(.is-static).is-looking .cf-scan,
.portal-story:not(.is-static) .cf-scroll-hint span::after {
  animation: none !important;
}

.portal-story:not(.is-static)[data-voice="client"] .cf-caller-avatar::after {
  opacity: var(--cf-voice-pulse);
  transform: scale(var(--cf-ring-scale));
}

.portal-story:not(.is-static)[data-voice="client"] .cf-caller-avatar {
  animation: none !important;
}

.portal-story:not(.is-static) .cf-voice-level i:nth-child(1),
.portal-story:not(.is-static) .cf-live-signal i:nth-of-type(1) { transform: scaleY(var(--cf-voice-bar-1)); }
.portal-story:not(.is-static) .cf-voice-level i:nth-child(2),
.portal-story:not(.is-static) .cf-live-signal i:nth-of-type(2) { transform: scaleY(var(--cf-voice-bar-2)); }
.portal-story:not(.is-static) .cf-voice-level i:nth-child(3),
.portal-story:not(.is-static) .cf-live-signal i:nth-of-type(3) { transform: scaleY(var(--cf-voice-bar-3)); }

.portal-story:not(.is-static) .cf-phone,
.portal-story:not(.is-static) .cf-phone__incoming,
.portal-story:not(.is-static) .cf-phone__live,
.portal-story:not(.is-static) .cf-speaker,
.portal-story:not(.is-static) .cf-moment,
.portal-story:not(.is-static) .cf-agenda,
.portal-story:not(.is-static) .cf-busy,
.portal-story:not(.is-static) .cf-slot,
.portal-story:not(.is-static) .cf-booking,
.portal-story:not(.is-static) .cf-scan,
.portal-story:not(.is-static) .cf-transfer {
  transition: none !important;
}

@media (max-width: 900px) {
  .portal-story {
    --cf-card-body-bottom: 12px;
  }

  .portal-story:not(.is-static) .cf-chapter-body,
  .portal-story:not(.is-static)[data-step="0"] .cf-chapters--sequence article:nth-child(1) .cf-chapter-body,
  .portal-story:not(.is-static)[data-step="1"] .cf-chapters--sequence article:nth-child(2) .cf-chapter-body,
  .portal-story:not(.is-static)[data-step="2"] .cf-chapters--sequence article:nth-child(3) .cf-chapter-body,
  .portal-story:not(.is-static)[data-step="3"] .cf-chapters--sequence article:nth-child(4) .cf-chapter-body {
    right: 18px;
    left: 42px;
  }

  .portal-story:not(.is-static) .cf-agenda,
  .portal-story:not(.is-static).is-agenda-settled .cf-agenda,
  .portal-story:not(.is-static).is-complete .cf-agenda {
    z-index: 7;
    top: 50%;
    right: 0;
    bottom: auto;
    left: auto;
    width: min(300px, 42%);
    height: min(340px, 60%);
    min-height: 228px;
    margin: 0;
    transform: translate3d(var(--cf-agenda-x), -50%, 0);
  }

  .portal-story:not(.is-static) .cf-agenda > header {
    height: 50px;
    padding-inline: 14px;
  }

  .portal-story:not(.is-static) .cf-agenda > header span {
    margin-bottom: 3px;
    font-size: 7px;
  }

  .portal-story:not(.is-static) .cf-agenda > header strong {
    font-size: 12px;
  }

  .portal-story:not(.is-static) .cf-agenda > header > time {
    font-size: 8px;
  }

  .portal-story:not(.is-static) .cf-agenda__body {
    height: calc(100% - 50px);
    display: grid;
    grid-template-rows: 26px repeat(4, minmax(0, 1fr));
    padding: 0 12px 6px;
  }

  .portal-story:not(.is-static) .cf-agenda__columns,
  .portal-story:not(.is-static) .cf-agenda__row {
    height: auto;
    min-height: 0;
  }

  .portal-story:not(.is-static) .cf-agenda__columns,
  .portal-story:not(.is-static) .cf-agenda__row > time,
  .portal-story:not(.is-static) .cfs-available {
    font-size: 7.5px;
  }

  .portal-story:not(.is-static) .cf-busy,
  .portal-story:not(.is-static) .cf-booking {
    top: 4px;
    bottom: 4px;
    left: calc(20% + 9px);
    padding: 4px 7px;
    border-left-width: 3px;
    border-radius: 9px;
  }

  .portal-story:not(.is-static) .cf-slot {
    top: 4px;
    bottom: 4px;
    left: calc(20% + 9px);
    border-radius: 9px;
  }

  .portal-story:not(.is-static) .cf-busy strong,
  .portal-story:not(.is-static) .cf-booking strong {
    font-size: 9px;
  }

  .portal-story:not(.is-static) .cf-busy small,
  .portal-story:not(.is-static) .cf-booking p,
  .portal-story:not(.is-static) .cf-booking small {
    font-size: 7px;
  }
}

@media (max-width: 600px) {
  .portal-story {
    --cf-answer-inset: 5px;
    --cf-answer-knob-size: 36px;
    --cf-card-body-bottom: 9px;
  }

  .portal-story:not(.is-static) .cf-chapter-body,
  .portal-story:not(.is-static)[data-step="0"] .cf-chapters--sequence article:nth-child(1) .cf-chapter-body,
  .portal-story:not(.is-static)[data-step="1"] .cf-chapters--sequence article:nth-child(2) .cf-chapter-body,
  .portal-story:not(.is-static)[data-step="2"] .cf-chapters--sequence article:nth-child(3) .cf-chapter-body,
  .portal-story:not(.is-static)[data-step="3"] .cf-chapters--sequence article:nth-child(4) .cf-chapter-body {
    right: 13px;
    left: 37px;
  }

  .portal-story:not(.is-static) .cf-phone-rig {
    position: absolute;
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    place-self: auto;
    transform:
      translate(-50%, -50%)
      translate3d(var(--cf-phone-x), var(--cfs-phone-y), 0)
      rotate(var(--cf-phone-tilt));
  }

  .portal-story:not(.is-static) .cf-agenda,
  .portal-story:not(.is-static).is-agenda-settled .cf-agenda,
  .portal-story:not(.is-static).is-complete .cf-agenda {
    width: clamp(148px, 43vw, 172px);
    height: min(331.2px, 76.8%);
    min-height: min(268.8px, 76.8%);
  }

  .portal-story:not(.is-static) .cf-agenda > header {
    height: 52.8px;
    padding-inline: 12px;
  }

  .portal-story:not(.is-static) .cf-agenda > header span {
    margin-bottom: 3px;
    font-size: 7px;
  }

  .portal-story:not(.is-static) .cf-agenda > header strong {
    font-size: 11px;
  }

  .portal-story:not(.is-static) .cf-agenda > header > time {
    font-size: 7px;
  }

  .portal-story:not(.is-static) .cf-agenda__body {
    height: calc(100% - 52.8px);
    display: grid;
    grid-template-rows: 26.4px repeat(4, minmax(0, 1fr));
    padding: 0 10px 6px;
  }

  .portal-story:not(.is-static) .cf-agenda__columns,
  .portal-story:not(.is-static) .cf-agenda__row {
    height: auto;
    min-height: 0;
  }

  .portal-story:not(.is-static) .cf-agenda__columns,
  .portal-story:not(.is-static) .cf-agenda__row > time,
  .portal-story:not(.is-static) .cfs-available {
    font-size: 7px;
  }

  .portal-story:not(.is-static) .cf-busy,
  .portal-story:not(.is-static) .cf-booking {
    top: 4px;
    bottom: 4px;
    left: calc(20% + 8px);
    padding: 3px 6px;
    border-left-width: 3px;
    border-radius: 8px;
  }

  .portal-story:not(.is-static) .cf-slot {
    top: 4px;
    bottom: 4px;
    left: calc(20% + 8px);
    border-radius: 8px;
  }

  .portal-story:not(.is-static) .cf-busy strong,
  .portal-story:not(.is-static) .cf-booking strong {
    font-size: 8px;
  }

  .portal-story:not(.is-static) .cf-busy small,
  .portal-story:not(.is-static) .cf-booking p,
  .portal-story:not(.is-static) .cf-booking small {
    font-size: 6.5px;
  }

  .portal-story:not(.is-static) .cf-booking p i {
    width: 13px;
    height: 13px;
  }

  .portal-story:not(.is-static) .cf-booking {
    grid-template-columns: minmax(0, 1fr) 13px;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 4px;
    padding: 2.4px 4px;
    overflow: visible;
  }

  .portal-story:not(.is-static) .cf-booking > strong {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    min-width: 0;
    overflow: hidden;
    font-size: 9px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .portal-story:not(.is-static) .cf-booking > small {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    min-width: 0;
    overflow: hidden;
    font-size: 6.5px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .portal-story:not(.is-static) .cf-booking > p {
    grid-column: 2;
    grid-row: 1 / 3;
    justify-self: end;
    gap: 0;
    font-size: 0;
  }

  .portal-story .cf-utterance {
    padding: 6px 7px 10px;
    border-radius: 14px;
  }

  .portal-story .cf-utterance::before {
    width: 22px;
    height: 26px;
  }

  .portal-story .cf-moment--client .cf-utterance::before {
    left: -14px;
    clip-path: polygon(100% 0, 100% 100%, 0 100%, 64% 62%, 64% 0);
    clip-path: path("M 22 0 Q 22 26, 0 26 Q 14 16, 14 0 Z");
  }

  .portal-story .cf-moment--vorqen .cf-utterance::before {
    right: -14px;
    clip-path: polygon(0 0, 0 100%, 100% 100%, 36% 62%, 36% 0);
    clip-path: path("M 0 0 Q 0 26, 22 26 Q 8 16, 8 0 Z");
  }

  .portal-story .cf-utterance-meta-spacer {
    width: 25px;
  }

  .portal-story .cf-utterance-meta {
    right: 7px;
    bottom: 3px;
    font-size: 5.5px;
  }

  .portal-story .cf-transfer {
    width: 80px;
    height: 34px;
  }

  .portal-story .cf-transfer__message { font-size: 7.5px; }
  .portal-story .cf-transfer__time { font-size: 8px; }
  .portal-story .cf-transfer__particle { width: 9px; height: 9px; }
}

@media (max-width: 600px) {
  html.vq-stable-height-lte-680 .portal-story {
    --cf-card-body-bottom: 6px;
  }

  html.vq-stable-height-lte-680 .portal-story:not(.is-static) .cf-chapter-body,
  html.vq-stable-height-lte-680 .portal-story:not(.is-static)[data-step="0"] .cf-chapters--sequence article:nth-child(1) .cf-chapter-body,
  html.vq-stable-height-lte-680 .portal-story:not(.is-static)[data-step="1"] .cf-chapters--sequence article:nth-child(2) .cf-chapter-body,
  html.vq-stable-height-lte-680 .portal-story:not(.is-static)[data-step="2"] .cf-chapters--sequence article:nth-child(3) .cf-chapter-body,
  html.vq-stable-height-lte-680 .portal-story:not(.is-static)[data-step="3"] .cf-chapters--sequence article:nth-child(4) .cf-chapter-body {
    right: 10px;
    left: 32px;
  }
}
