/* PROCESS SECTION */

.process {
  position: relative;
  overflow: hidden;
  padding: 64px 0;
  background:
    radial-gradient(circle at top right, rgba(215, 25, 32, 0.07), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f4f4f4 100%);
  color: #111111;
}

.process::before {
  content: "FULL CYCLE";
  position: absolute;
  right: -0.08em;
  top: 44px;
  color: rgba(0, 0, 0, 0.035);
  font-size: clamp(4rem, 18vw, 14rem);
  line-height: 0.8;
  font-weight: 950;
  letter-spacing: -0.1em;
  pointer-events: none;
}

.process .container {
  position: relative;
  z-index: 2;
}

.process__header {
  max-width: 820px;
  margin-bottom: 34px;
}

.process__label {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.68rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.process__title {
  margin: 0;
  color: #111111;
  font-size: clamp(2rem, 8vw, 3.4rem);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.process__text {
  max-width: 680px;
  margin: 14px 0 0;
  color: #666666;
  font-size: 0.96rem;
  line-height: 1.6;
}

/* TIMELINE */

.process__timeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  max-width: 900px;
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);

  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.process-step:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 26px;
  bottom: -29px;
  z-index: 5;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 900;

  opacity: 0;
  transform: translateY(-8px) scale(0.7);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.process-step__number {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  border: 1px solid rgba(215, 25, 32, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.process-step__content {
  padding-top: 3px;
}

.process-step__title {
  margin: 0;
  color: #111111;
  font-size: 1.1rem;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.process-step__desc {
  margin: 9px 0 0;
  color: #666666;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ANIMATION */

.process__timeline.is-visible .process-step {
  opacity: 1;
  transform: translateY(0);
}

.process__timeline.is-visible .process-step:not(:last-child)::after {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.process__timeline.is-visible .process-step:nth-child(1) {
  transition-delay: 0.05s;
}

.process__timeline.is-visible .process-step:nth-child(1)::after {
  transition-delay: 0.42s;
}

.process__timeline.is-visible .process-step:nth-child(2) {
  transition-delay: 0.52s;
}

.process__timeline.is-visible .process-step:nth-child(2)::after {
  transition-delay: 0.89s;
}

.process__timeline.is-visible .process-step:nth-child(3) {
  transition-delay: 0.99s;
}

.process__timeline.is-visible .process-step:nth-child(3)::after {
  transition-delay: 1.36s;
}

.process__timeline.is-visible .process-step:nth-child(4) {
  transition-delay: 1.46s;
}

.process__timeline.is-visible .process-step:nth-child(4)::after {
  transition-delay: 1.83s;
}

.process__timeline.is-visible .process-step:nth-child(5) {
  transition-delay: 1.93s;
}

.process__timeline.is-visible .process-step:nth-child(5)::after {
  transition-delay: 2.3s;
}

.process__timeline.is-visible .process-step:nth-child(6) {
  transition-delay: 2.4s;
}

/* SUMMARY */

.process__summary {
  margin-top: 34px;
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(215, 25, 32, 0.12), transparent 44%),
    #111111;
  color: #ffffff;
  border: 1px solid rgba(215, 25, 32, 0.22);
}

.process__summary span {
  display: block;
  color: #ffffff;
  font-size: clamp(1.35rem, 7vw, 2.4rem);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.process__summary p {
  max-width: 700px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* TABLET */

@media (min-width: 768px) {
  .process {
    padding: 88px 0;
  }

  .process__header {
    margin-bottom: 42px;
  }

  .process__title {
    font-size: clamp(3rem, 5.6vw, 5rem);
    line-height: 1.02;
  }

  .process__text {
    margin-top: 18px;
    font-size: 1.04rem;
  }

  .process__timeline {
    max-width: 980px;
    gap: 38px;
  }

  .process-step {
    grid-template-columns: 58px 1fr;
    padding: 24px;
    border-radius: 30px;
  }

  .process-step:not(:last-child)::after {
    left: 31px;
    bottom: -32px;
    width: 32px;
    height: 32px;
  }

  .process-step__number {
    width: 58px;
    height: 58px;
    font-size: 0.86rem;
  }

  .process-step__title {
    font-size: 1.35rem;
  }

  .process-step__desc {
    font-size: 0.96rem;
  }

  .process__summary {
    margin-top: 38px;
    padding: 32px;
    border-radius: 34px;
  }

  .process__summary p {
    font-size: 1rem;
  }
}

/* DESKTOP */

@media (min-width: 1120px) {
  .process {
    padding: 108px 0;
  }

  .process__header {
    max-width: 920px;
    margin-bottom: 46px;
  }

  .process__title {
    max-width: 980px;
    font-size: clamp(3.4rem, 4.8vw, 5.6rem);
  }

  .process__timeline {
    max-width: 1060px;
  }

  .process-step {
    min-height: 150px;
  }

  .process-step:hover {
    border-color: rgba(215, 25, 32, 0.34);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.1);
  }

  .process-step:hover .process-step__number {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
  }

  .process-step__number {
    transition:
      background 0.3s ease,
      color 0.3s ease,
      border-color 0.3s ease;
  }

  .process__summary {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 34px;
    align-items: center;
    margin-top: 44px;
    padding: 38px;
    border-radius: 38px;
  }

  .process__summary p {
    margin: 0;
  }
}

/* SMALL PHONES */

@media (max-width: 390px) {
  .process {
    padding: 56px 0;
  }

  .process__header {
    margin-bottom: 28px;
  }

  .process__label {
    font-size: 0.6rem;
  }

  .process__title {
    font-size: clamp(1.65rem, 8vw, 2.25rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
  }

  .process__text {
    margin-top: 12px;
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .process__timeline {
    gap: 30px;
  }

  .process-step {
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 16px;
    border-radius: 22px;
  }

  .process-step:not(:last-child)::after {
    left: 23px;
    bottom: -25px;
    width: 26px;
    height: 26px;
    font-size: 0.86rem;
  }

  .process-step__number {
    width: 42px;
    height: 42px;
    font-size: 0.7rem;
  }

  .process-step__title {
    font-size: 1rem;
  }

  .process-step__desc {
    margin-top: 7px;
    font-size: 0.84rem;
    line-height: 1.42;
  }

  .process__summary {
    padding: 20px;
    border-radius: 24px;
  }

  .process__summary span {
    font-size: clamp(1.25rem, 7vw, 2rem);
  }

  .process__summary p {
    font-size: 0.86rem;
  }
}