/* The ecosystem has its own entrance; do not delay it with the old photo fade. */
#qf-why-wrapper .qf-panel--ecosystem .qf-img-half.qf-cycle-half {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.franchise-cycle {
  --fc-orange: #ec690d;
  position: relative;
  width: 100%;
  aspect-ratio: 800 / 760;
  margin: 0;
  container-type: inline-size;
  color: #272022;
  font-family: 'Helvetica Neue Light', 'Helvetica Neue', Arial, sans-serif;
  isolation: isolate;
}

.fc-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.fc-arrow-line {
  fill: none;
  stroke: var(--fc-orange);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.fc-arrow-head {
  fill: var(--fc-orange);
}

.fc-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 43%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 35%, #fff 25%, #fcfaf7 100%);
  transform: translate(-50%, -50%);
}

.fc-center-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.fc-halo {
  stroke: #e8dfd4;
  stroke-width: 1.5;
  fill: none;
}

.fc-center-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 19px;
  font-size: clamp(11px, 3cqw, 24px);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.12em;
  text-align: center;
}

.fc-center-copy span { display: block; white-space: nowrap; }

.fc-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 32%;
  text-align: center;
  transform: translateX(-50%);
}

.fc-node--brands { left: 50%; top: 3.5%; width: 40%; }
.fc-node--franchisees { left: 84%; top: 31%; }
.fc-node--team { left: 75%; top: 82%; width: 43%; }
.fc-node--customers { left: 25%; top: 82%; width: 39%; }
.fc-node--society { left: 16%; top: 31%; }

.fc-node-rule {
  width: 12%;
  min-width: 16px;
  height: 1.5px;
  margin-bottom: 8px;
  margin-bottom: 1.4cqw;
  background: var(--fc-orange);
}

.fc-node-name {
  font-family: 'Helvetica Neue Bold', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  font-size: clamp(10px, 2.6cqw, 20px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.fc-node-desc {
  margin: 8px 0 0;
  margin-top: 1.5cqw;
  font-size: 12px;
  font-size: clamp(9px, 2cqw, 15px);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: 0.12em;
}

.fc-node--franchisees .fc-node-desc,
.fc-node--society .fc-node-desc { max-width: 14ch; }

/* Fully readable without JavaScript; progressive drawing starts after setup. */
.fc-ready .fc-center,
.fc-ready .fc-node,
.fc-ready .fc-arrow { opacity: 0; }
.fc-ready .fc-center.is-visible,
.fc-ready .fc-node.is-visible,
.fc-ready .fc-arrow.is-visible { opacity: 1; }
.fc-ready .fc-node { transition: none; filter: blur(3px); }
.fc-ready .fc-node.is-visible { filter: blur(0); transition: opacity 650ms ease, filter 650ms ease; }
.fc-ready .fc-arrow-line,
.fc-ready .fc-halo { stroke-dasharray: 1; stroke-dashoffset: 1; }
.fc-ready .fc-arrow-head { opacity: 0; }
.fc-ready .fc-center-copy span { opacity: 0; clip-path: inset(0 100% 0 0); }

.fc-ready .fc-center.is-drawing .fc-halo { animation: fc-trace 1250ms cubic-bezier(.4, 0, .2, 1) forwards; }
.fc-ready .fc-center.is-drawing .fc-center-copy span { animation: fc-write 650ms ease forwards; }
.fc-ready .fc-center.is-drawing .fc-center-copy span:nth-child(1) { animation-delay: 180ms; }
.fc-ready .fc-center.is-drawing .fc-center-copy span:nth-child(2) { animation-delay: 400ms; }
.fc-ready .fc-center.is-drawing .fc-center-copy span:nth-child(3) { animation-delay: 620ms; }
.fc-ready .fc-arrow.is-drawing .fc-arrow-line { animation: fc-trace 620ms cubic-bezier(.4, 0, .2, 1) forwards; }
.fc-ready .fc-arrow.is-drawing .fc-arrow-head { animation: fc-head 220ms ease 440ms forwards; }
.fc-ready .fc-node.is-active .fc-node-rule { animation: fc-close 1400ms ease both; }
.fc-ready .fc-node.is-active .fc-node-name { animation: fc-return 1400ms ease both; }
.franchise-cycle.is-resetting { opacity: 0; transition: opacity 650ms ease; }

@keyframes fc-trace { to { stroke-dashoffset: 0; } }
@keyframes fc-write { to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes fc-head { to { opacity: 1; } }
@keyframes fc-close { 40% { transform: scaleX(1.65); box-shadow: 0 0 12px #ec690d33; } }
@keyframes fc-return { 40% { color: var(--fc-orange); } }

.fc-static .fc-center,
.fc-static .fc-node,
.fc-static .fc-arrow,
.fc-static .fc-arrow-head,
.fc-static .fc-center-copy span { opacity: 1 !important; filter: none !important; animation: none !important; transition: none !important; clip-path: none !important; }
.fc-static .fc-arrow-line,
.fc-static .fc-halo { stroke-dashoffset: 0 !important; animation: none !important; }

@media (min-width: 780px) {
  #qf-why-wrapper.qf-wrapper #qf-stage .qf-panel.qf-panel--ecosystem .qf-img-half.qf-cycle-half {
    position: absolute !important;
    inset: auto;
    left: calc(var(--qf-ox) + 1110 * var(--qfu)) !important;
    top: calc(var(--qf-oy) + 145 * var(--qfu)) !important;
    width: calc(740 * var(--qfu)) !important;
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    overflow: visible !important;
    z-index: 1;
  }
}

@media (max-width: 779px) {
  #qf-why-wrapper.qf-wrapper #qf-stage .qf-panel.qf-panel--ecosystem .qf-img-half.qf-cycle-half {
    position: relative !important;
    inset: auto !important;
    width: min(440px, calc(100% - 20px)) !important;
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    display: block !important;
    margin: 30px auto 8px !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }

  .fc-center-copy { font-size: clamp(10px, 3.4cqw, 14px); letter-spacing: 0.06em; }
  .fc-node-desc { font-size: clamp(8px, 2.8cqw, 11px); letter-spacing: 0.055em; }
  .fc-node-name { font-size: clamp(9.5px, 3.2cqw, 12px); letter-spacing: 0.035em; }
}

@media (prefers-reduced-motion: reduce) {
  .franchise-cycle *,
  .franchise-cycle.is-resetting { animation: none !important; transition: none !important; }
}
