/* Template: process — image on the left, overlapping glass card on the
   right with a numbered vertical timeline (see js/templates/process.js).
   Mobile: image on top, card centered over its bottom edge. */

.process {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  padding: clamp(96px, 16vh, 160px) 0;
}

.process__inner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.process__image {
  flex: 0 0 auto;
  width: 60%;
  height: clamp(300px, 60vh, 620px);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.process__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Glass card: translucent surface tint + backdrop blur, so the part
   covering the image stays visible while the text stays readable. */
.process__content {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 52%;
  margin-left: -14%;
  padding: clamp(28px, 4vw, 48px);
  background: var(--color-surface);
  background: color-mix(in srgb, var(--color-surface) 55%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.process__title {
  font-size: clamp(22px, 3.5vw, 34px);
  letter-spacing: 0.04em;
}

.process__intro {
  margin-top: clamp(12px, 2vh, 18px);
  font-size: clamp(13.5px, 1.8vw, 15.5px);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* --- Steps: minimal vertical timeline ------------------------------------- */

.process__steps {
  margin-top: clamp(24px, 4vh, 36px);
  display: flex;
  flex-direction: column;
}

.process__step {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 2vw, 20px);
}

.process__step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
}

.process__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--color-accent) 55%, transparent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

/* Hairline connector joining the number nodes, except after the last step. */
.process__step:not(:last-child) .process__step-marker::after {
  content: '';
  flex: 1;
  width: 1px;
  margin-top: 6px;
  margin-bottom: 6px;
  background: color-mix(in srgb, var(--color-text-secondary) 25%, transparent);
}

/* Marker column must stretch so the connector fills the row height. */
.process__step:not(:last-child) {
  min-height: 100%;
}

.process__step-body {
  padding-top: 4px;
  padding-bottom: clamp(18px, 3vh, 26px);
}

.process__step:last-child .process__step-body {
  padding-bottom: 0;
}

.process__step-title {
  font-size: clamp(14px, 1.8vw, 15.5px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 32px;
  color: var(--color-text-primary);
}

.process__step-text {
  margin-top: 4px;
  font-size: clamp(13px, 1.7vw, 14px);
  line-height: 1.65;
  color: var(--color-text-secondary);
}

@media (max-width: 767px) {
  .process__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .process__image {
    width: 100%;
    height: clamp(240px, 34vh, 380px);
  }

  .process__content {
    width: 88%;
    margin: calc(-1 * clamp(44px, 7vh, 64px)) auto 0;
  }
}