/* ========== STEPS SECTION ========== */

.atr-steps-intro {
  position: relative;
  min-height: 150vh;
  padding-bottom: 0;
  background: transparent;
  overflow: hidden;
}

.atr-steps-intro__media {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background-image: var(--atr-steps-intro-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(var(--atr-steps-intro-scale, 1));
  transform-origin: center;
}

@media (max-width: 980px) {
  .atr-steps-intro {
    min-height: 105vh;
  }

  .atr-steps-intro__media {
    height: 70vh;
  }
}

.atr-steps-intro__media::after {
  content: none;
}

.atr-steps-intro--no-media {
  display: none;
}

.atr-steps-intro__cursor {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate3d(-50%, -50%, 0);
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: rgba(215, 38, 30, 0.5);
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 1200;
  transition: opacity 0.2s ease;
  mix-blend-mode: normal;
}

.atr-steps-intro.is-cursor-active .atr-steps-intro__cursor {
  opacity: 1;
}


.atr-steps {
  position: relative;
  padding: var(--atr-section-space-y-tight) 0 var(--atr-section-space-y);
  background: linear-gradient(135deg, #141414, #2a2a2a 55%, #0f0f0f);
  color: #f7f2f2;
  margin-top: -50vh;
  z-index: 1;
}

.atr-steps--no-intro {
  margin-top: 0;
}

.atr-steps--light {
  background: #ffffff;
  color: #111318;
}

.atr-steps__container {
  width: 100%;
  margin: 0 auto;
  padding-left: clamp(18px, 4vw, 64px);
  padding-right: clamp(18px, 4vw, 64px);
  min-width: 0;
  box-sizing: border-box;
}

.atr-steps__eyebrow {
  margin: 0;
  font-size: 14px;
  color: rgba(247, 242, 242, 0.85);
}

@media (min-width: 1000px) {
  .atr-steps__container {
    padding-left: 42px;
    padding-right: 42px;
  }

  .atr-steps__eyebrow {
    font-size: 15.4px;
  }
}

.atr-steps__rule {
  height: 1px;
  background: rgba(247, 242, 242, 0.25);
  margin: 18px 0 34px;
}

.atr-steps__title {
  margin: 0 0 var(--atr-section-title-gap);
  font-size: var(--atr-section-title-size);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: clamp(676px, 91vw, 1430px);
  color: #ffffff;
}

.atr-steps--light .atr-steps__eyebrow,
.atr-steps--light .atr-steps__title,
.atr-steps--light .atr-steps__highlight {
  color: #111318;
}

.atr-steps--light .atr-steps__rule {
  background: rgba(0, 0, 0, 0.75);
}

.atr-steps__highlight {
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: #ffffff;
  font-weight: 500;
}

.atr-steps__highlight .atr-slit__word {
  padding-left: 0.12em;
  padding-right: 0.12em;
  margin-left: -0.12em;
  margin-right: -0.12em;
}

.atr-steps__cards {
  position: relative;
  display: grid;
  gap: 0;
}

.atr-steps__card {
  position: sticky;
  top: calc(clamp(72px, 10vh, 120px) + (var(--atr-step-stack-index, 0) * clamp(52px, 4.4vw, 72px)));
  background: #ffffff;
  border-radius: 18px;
  padding: clamp(24px, 3vw, 34px) clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px);
  border: 1px solid rgba(0,0,0,0.08);
  border-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  opacity: 1;
  transform: none;
  transition: box-shadow 0.35s ease;
  height: clamp(570px, 70vh, 910px);
  overflow: hidden;
  min-width: 0;
  box-sizing: border-box;
}

@media (min-width: 981px) {
  .atr-steps {
    padding-top: clamp(16px, 2vw, 32px);
  }

  .atr-steps__card {
    top: calc(clamp(20px, 3.5vh, 44px) + (var(--atr-step-stack-index, 0) * clamp(52px, 4.4vw, 72px)));
  }
}

.atr-steps__card.is-active {
  box-shadow: 0 -40px 90px rgba(0,0,0,0.5);
}

.atr-steps__card-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(0, 1.8fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: stretch;
  height: calc(100% - clamp(64px, 8vw, 96px));
  margin-top: clamp(52px, 6vw, 74px);
  min-width: 0;
}

.atr-steps__card-top {
  position: absolute;
  left: clamp(20px, 3vw, 32px);
  right: clamp(20px, 3vw, 32px);
  top: clamp(18px, 2vw, 24px);
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 28px);
}

.atr-steps__card-label {
  position: relative;
  margin: 0;
  max-width: min(60%, 420px);
  color: rgba(20, 20, 20, 0.16);
  font-size: clamp(34px, 4vw, 64px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.atr-steps__media {
  height: 100%;
  overflow: hidden;
  border-radius: 14px;
  position: relative;
}

.atr-steps__media .atrmi-picture {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
}

.atr-steps__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  border-radius: inherit;
}

@media (min-width: 981px) {
  .atr-steps__media {
    overflow: hidden;
  }

  .atr-steps__media img {
    height: 100%;
  }

  .atr-steps__step-title {
    font-size: clamp(20.28px, 2.568vw, 41.28px);
  }
}

.atr-steps__center {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 19.2px;
  padding-left: clamp(18px, 2.8vw, 40px);
  padding-right: clamp(18px, 3vw, 40px);
  padding-top: clamp(18px, 2.6vw, 42px);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.atr-steps__overview {
  margin-top: auto;
  width: 100%;
  padding-top: clamp(20px, 2.8vw, 32px);
}

.atr-steps__overview-grid {
  --atr-steps-overview-gap: clamp(8px, 1.4vw, 10px);
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(min-content, auto);
  gap: var(--atr-steps-overview-gap);
  align-items: stretch;
  width: 100%;
}

.atr-steps__overview-card {
  min-width: 0;
  min-height: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f6f6f6;
  border: 1px solid rgba(0,0,0,0.08);
  box-sizing: border-box;
}

.atr-steps__overview-label {
  display: block;
  margin-bottom: 12px;
  color: #141414;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.atr-steps__overview-value {
  display: block;
  color: #141414;
  font-size: 14.6px;
  font-weight: 600;
  line-height: 1.45;
}

.atr-steps__overview-card:nth-child(3):last-child {
  grid-column: 1 / -1;
}

.atr-steps__step-title {
  margin: 0;
  font-size: clamp(16.9px, 2.14vw, 34.4px);
  color: #141414;
  max-width: min(100%, clamp(340px, 58vw, 720px));
}

.atr-steps__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.atr-steps__actions--top {
  justify-content: flex-end;
  margin-left: auto;
  max-width: 48%;
}

.atr-steps__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12.1px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: color 0.2s ease;
  min-width: 0;
  box-sizing: border-box;
}

.atr-steps__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: #d7261e;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.atr-steps__btn:hover,
.atr-steps__btn:focus-visible {
  color: #fff;
}

.atr-steps__btn:hover::before,
.atr-steps__btn:focus-visible::before {
  transform: scale(0.98);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}

.atr-steps__btn--secondary {
  color: #141414;
  border: 1px solid rgba(20,0,0,0.16);
}

.atr-steps__btn--secondary::before {
  background: #ffffff;
  box-shadow: none;
}

.atr-steps__btn--secondary:hover,
.atr-steps__btn--secondary:focus-visible {
  color: #ffffff;
}

.atr-steps__btn--secondary:hover::before,
.atr-steps__btn--secondary:focus-visible::before {
  background: #141414;
  box-shadow: none;
  transform: scale(0.98);
}

.atr-steps__btn-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-block;
  transform: rotate(45deg);
}

.atr-steps__aside {
  display: none;
}

.atr-steps__text {
  margin: 0;
  max-width: min(100%, clamp(340px, 52vw, 680px));
  color: #2f2f2f;
  line-height: 1.6;
  font-size: clamp(0.85rem, 0.935vw, 1.0625rem);
}

@media (max-width: 980px) {
  .atr-steps__card {
    position: relative;
    top: auto;
    height: auto;
  }

  .atr-steps__card-label {
    max-width: 70%;
    font-size: clamp(28px, 9vw, 46px);
  }

  .atr-steps__card-top {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .atr-steps__card-inner {
    grid-template-columns: 1fr;
    padding-bottom: 28px;
    height: auto;
    margin-top: 20px;
  }

  .atr-steps__actions--top {
    max-width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .atr-steps__cards {
    gap: 0;
    padding-bottom: 0;
  }

  .atr-steps__media img {
    height: 320px;
  }

  .atr-steps__overview {
    margin-top: 0;
    padding-top: 8px;
  }

  .atr-steps__overview-grid {
    grid-template-columns: 1fr;
  }

  .atr-steps__overview-label {
    margin-bottom: 6px;
  }

  .atr-steps__overview-value {
    font-size: 16.66px;
  }

  .atr-steps__overview-card:nth-child(3):last-child {
    grid-column: auto;
  }

  .atr-steps__center {
    padding-left: 0;
    padding-right: 0;
    align-items: flex-start;
  }

  .atr-steps__aside {
    padding-left: 0;
    padding-right: 0;
    justify-self: start;
  }

  .atr-steps__text {
    font-size: clamp(0.85rem, 0.935vw, 1.0625rem);
    max-width: 100%;
  }

  .atr-steps__step-title {
    font-size: clamp(20.3px, 2.57vw, 41.3px);
    max-width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  .atr-steps__card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
