.progress-timeline {
  overflow: hidden;
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}

.progress-timeline__inner {
  display: grid;
  width: min(1290px, calc(100% - var(--space-3xl)));
  margin: 0 auto;
  padding: var(--space-4xl) 0;
  grid-template-columns: minmax(0, 630px) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3xl);
}

.progress-timeline__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
}

.progress-timeline__heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.progress-timeline__kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-light);
  font-family: var(--font-body);
  font-size: var(--fs-body-small);
  font-weight: var(--fw-medium);
  line-height: 1.1;
  letter-spacing: 0.87px;
  text-transform: uppercase;
}

.progress-timeline__dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
}

.progress-timeline__title {
  width: min(630px, 100%);
  margin: 0;
  color: var(--color-text-light);
  font-family: var(--font-display);
  font-size: var(--fs-section-title);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  letter-spacing: 0;
}

.progress-timeline__copy {
  width: min(630px, 100%);
  max-height: 6.5rem;
  overflow: hidden;
  color: var(--color-bg-medium);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: 1.6;
  letter-spacing: 0;
}

.progress-timeline__copy.is-open {
  max-height: none;
}

.progress-timeline__copy p {
  margin: 0;
}

.progress-timeline__copy p + p {
  margin-top: var(--space-md);
}

.progress-timeline__toggle {
  display: inline-flex;
  padding: 0;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body-small);
  font-weight: var(--fw-medium);
  line-height: 1.3;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
}

.progress-timeline__toggle-mark {
  width: 12px;
  height: 8px;
  background-color: currentColor;
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  transition: transform var(--duration-normal) var(--ease-out);
}

.progress-timeline__toggle[aria-expanded="true"] .progress-timeline__toggle-mark {
  transform: rotate(180deg);
}

.progress-timeline__cta {
  margin-top: var(--space-sm);
}

.progress-timeline__phone-button {
  min-height: 47px;
  padding: var(--space-sm) var(--space-2xl);
}

.progress-timeline__visual {
  min-width: 0;
  justify-self: end;
  width: min(100%, 520px);
  overflow: visible;
}

.progress-timeline__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 520 / 620;
  background-color: var(--color-surface);
}

.progress-timeline__frame--fallback {
  overflow: visible;
  --frame-x: 0px;
  --frame-y: 0px;
  background-color: transparent;
}

.progress-timeline__image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background-color: var(--color-surface);
}

.progress-timeline__frame-border {
  position: absolute;
  inset: 12px -12px -12px 12px;
  z-index: 2;
  display: block;
  border: 2px solid var(--color-primary);
  pointer-events: none;
}

.progress-timeline__frame--fallback .progress-timeline__frame-border {
  transform: translate3d(var(--frame-x), var(--frame-y), 0);
  transition: transform 220ms ease-out;
}

.progress-timeline__fallback-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.progress-timeline__fallback-portrait {
  position: absolute;
  left: 50%;
  bottom:0;
  z-index: 3;
  display: block;
  width: 90%;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
}

@media (max-width: 1140px) {
  .progress-timeline__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-2xl);
  }

  .progress-timeline__title {
    font-size: var(--fs-section-title);
  }
}

@media (max-width: 768px) {
  .progress-timeline__inner {
    width: calc(100% - var(--space-xl));
    padding: var(--space-4xl) 0;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

  .progress-timeline__title {
    font-size: var(--fs-h3);
  }

  .progress-timeline__visual {
    justify-self: stretch;
    width: 100%;
  }

  .progress-timeline__frame {
    aspect-ratio: 4 / 5;
  }

  .progress-timeline__phone-button {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .progress-timeline__inner {
    width: calc(100% - var(--space-lg));
  }

  .progress-timeline__title {
    font-size: var(--fs-h4);
  }
}
