/* How it works: layout aligned to the approved reference. */
body.gift-home .gift-steps {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 5.8vw, 104px) 0 clamp(54px, 4.4vw, 76px);
  background: #fffcf9;
}

body.gift-home .gift-steps .gift-container {
  width: min(100% - 48px, 1160px);
}

body.gift-home .gift-steps .gift-section-heading {
  width: fit-content;
  max-width: 940px;
  margin: 0 auto clamp(76px, 6.2vw, 112px);
  text-align: left;
}

body.gift-home .gift-steps .gift-section-heading .gift-eyebrow {
  display: grid;
  margin-bottom: 17px;
}

body.gift-home .gift-steps .gift-section-heading h2 {
  max-width: none;
  margin: 0;
  color: #302332;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(48px, 4.25vw, 66px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .98;
  text-align: left;
  text-wrap: balance;
}

body.gift-home .gift-steps__accent {
  color: #f45878;
  font-weight: 500;
}

body.gift-home .gift-steps__journey {
  position: relative;
  width: 100%;
  max-width: 1110px;
  margin: 0 auto;
}

body.gift-home .gift-steps__flow {
  position: absolute;
  z-index: 0;
  top: 112px;
  left: 16.667%;
  display: block;
  width: 66.666%;
  height: 48px;
  object-fit: fill;
  opacity: .9;
  pointer-events: none;
}

body.gift-home .gift-step-grid {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(34px, 4vw, 58px);
  margin: 0;
  padding: 0;
}

body.gift-home .gift-step-grid::before,
body.gift-home .gift-step-grid::after {
  display: none;
}

body.gift-home .gift-step-grid li,
body.gift-home .gift-step-grid li:nth-child(n) {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

body.gift-home .gift-step-grid__visual {
  position: relative;
  z-index: 2;
  width: 90px;
  height: 90px;
  margin: 0 0 18px;
  filter: drop-shadow(0 10px 20px rgba(112, 68, 88, .07));
}

body.gift-home .gift-step-grid__visual img {
  display: block;
  width: 100%;
  height: 100%;
}

body.gift-home .gift-step-grid__number {
  position: relative;
  z-index: 2;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin: 0 auto 24px;
  border: 1px solid rgba(230, 112, 143, .36);
  border-radius: 50%;
  background: #fffcf9;
  color: #dd6685;
  box-shadow: 0 0 0 9px #fffcf9, 0 8px 18px rgba(130, 76, 99, .06);
  font-family: Manrope, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
}

body.gift-home .gift-step-grid__content {
  width: 100%;
  padding: 0;
}

body.gift-home .gift-step-grid h3 {
  margin: 0;
  color: #392b39;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(25px, 2vw, 29px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.02;
}

body.gift-home .gift-step-grid p {
  max-width: 310px;
  margin: 16px auto 0;
  color: #827981;
  font-family: Manrope, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

body.gift-home .gift-step-grid__time {
  min-height: 25px;
  margin-top: 14px;
  padding: 0 11px;
  border-color: rgba(244, 88, 120, .24);
  background: rgba(244, 88, 120, .045);
  color: #ef5677;
  font-size: 9px;
}

body.gift-home .gift-step-grid__time + p {
  margin-top: 13px;
}

body.gift-home .gift-section-action {
  gap: 10px;
  margin-top: clamp(48px, 4.2vw, 68px);
}

body.gift-home .gift-section-action .gift-button {
  min-height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff826f, #f34f7c);
  box-shadow: 0 11px 25px rgba(198, 68, 102, .16);
  font-size: 13px;
}

body.gift-home .gift-section-action > p {
  color: #a39aa0;
  font-size: 11px;
}

@media (max-width: 820px) {
  body.gift-home .gift-steps {
    padding-block: 64px 58px;
  }

  body.gift-home .gift-steps .gift-container {
    width: min(100% - 32px, 680px);
  }

  body.gift-home .gift-steps .gift-section-heading {
    width: auto;
    margin-bottom: 52px;
  }

  body.gift-home .gift-steps .gift-section-heading h2 {
    font-size: clamp(36px, 8.5vw, 52px);
    line-height: 1.01;
  }

  body.gift-home .gift-steps__flow {
    display: none;
  }

  body.gift-home .gift-step-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  body.gift-home .gift-step-grid::before {
    position: absolute;
    z-index: 0;
    top: 38px;
    bottom: 38px;
    left: 38px;
    display: block;
    width: 1.5px;
    height: auto;
    border-radius: 999px;
    background: linear-gradient(180deg, #ed8b7e, #df7392 52%, #bd8ee1);
    content: "";
    opacity: .5;
  }

  body.gift-home .gift-step-grid li,
  body.gift-home .gift-step-grid li:nth-child(n) {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 19px;
    align-items: start;
    text-align: left;
  }

  body.gift-home .gift-step-grid__visual {
    width: 76px;
    height: 76px;
    grid-row: 1 / span 2;
    grid-column: 1;
    margin: 0;
  }

  body.gift-home .gift-step-grid__number {
    width: 46px;
    height: 46px;
    grid-row: 1;
    grid-column: 2;
    margin: 0;
    box-shadow: 0 0 0 7px #fffcf9, 0 7px 16px rgba(130, 76, 99, .06);
  }

  body.gift-home .gift-step-grid__content {
    grid-row: 2;
    grid-column: 2;
    padding-top: 12px;
  }

  body.gift-home .gift-step-grid h3 {
    font-size: 25px;
  }

  body.gift-home .gift-step-grid p {
    max-width: 520px;
    margin: 10px 0 0;
    font-size: 14px;
  }

  body.gift-home .gift-step-grid__time + p {
    margin-top: 9px;
  }
}

@media (max-width: 430px) {
  body.gift-home .gift-steps {
    padding-block: 54px 50px;
  }

  body.gift-home .gift-steps .gift-section-heading {
    margin-bottom: 42px;
  }

  body.gift-home .gift-steps .gift-section-heading h2 {
    font-size: clamp(34px, 10.2vw, 43px);
  }

  body.gift-home .gift-step-grid {
    gap: 32px;
  }

  body.gift-home .gift-step-grid li,
  body.gift-home .gift-step-grid li:nth-child(n) {
    grid-template-columns: 66px minmax(0, 1fr);
    column-gap: 15px;
  }

  body.gift-home .gift-step-grid__visual {
    width: 66px;
    height: 66px;
  }

  body.gift-home .gift-step-grid::before {
    left: 33px;
  }

  body.gift-home .gift-step-grid__number {
    width: 42px;
    height: 42px;
  }

  body.gift-home .gift-step-grid__content {
    padding-top: 10px;
  }

  body.gift-home .gift-step-grid h3 {
    font-size: 23px;
  }

  body.gift-home .gift-step-grid p {
    font-size: 13px;
    line-height: 1.48;
  }

  body.gift-home .gift-section-action {
    margin-top: 42px;
  }

  body.gift-home .gift-section-action .gift-button {
    width: auto;
    min-height: 50px;
  }
}

/* Slow editorial motion: reveal the story in sequence, then keep it gently alive. */
body.gift-home .gift-steps::before {
  position: absolute;
  top: 7%;
  left: -210px;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 198, 177, .16), rgba(229, 194, 244, .07) 46%, transparent 72%);
  content: "";
  pointer-events: none;
  animation: giftStepsAura 16s ease-in-out infinite alternate;
}

body.gift-home .gift-steps .gift-container {
  position: relative;
  z-index: 1;
}

body.gift-home .gift-steps.is-entrance-ready:not(.is-visible) .gift-section-heading .gift-eyebrow,
body.gift-home .gift-steps.is-entrance-ready:not(.is-visible) .gift-section-heading h2 {
  opacity: 0;
  transform: translateY(22px);
}

body.gift-home .gift-steps.is-entrance-ready .gift-section-heading .gift-eyebrow,
body.gift-home .gift-steps.is-entrance-ready .gift-section-heading h2 {
  transition: opacity .82s ease, transform .92s cubic-bezier(.16, 1, .3, 1);
}

body.gift-home .gift-steps.is-entrance-ready .gift-section-heading h2 {
  transition-delay: .1s;
}

body.gift-home .gift-steps.is-entrance-ready:not(.is-visible) .gift-steps__flow {
  clip-path: inset(0 100% 0 0);
  opacity: .16;
}

body.gift-home .gift-steps.is-entrance-ready .gift-steps__flow {
  transition: clip-path 1.7s cubic-bezier(.2, .72, .16, 1), opacity .72s ease;
  transition-delay: .28s;
}

body.gift-home .gift-step-grid li:nth-child(1) { --step-delay: 0s; }
body.gift-home .gift-step-grid li:nth-child(2) { --step-delay: .22s; }
body.gift-home .gift-step-grid li:nth-child(3) { --step-delay: .44s; }

body.gift-home .gift-steps.is-entrance-ready:not(.is-visible) .gift-step-grid__visual {
  opacity: 0;
  transform: translateY(20px) scale(.9);
}

body.gift-home .gift-steps.is-entrance-ready .gift-step-grid__visual {
  transition: opacity .72s ease, transform .88s cubic-bezier(.16, 1, .3, 1), filter .3s ease;
  transition-delay: calc(.38s + var(--step-delay));
}

body.gift-home .gift-steps.is-entrance-ready:not(.is-visible) .gift-step-grid__number {
  opacity: 0;
  transform: scale(.72);
}

body.gift-home .gift-steps.is-entrance-ready .gift-step-grid__number {
  transition: opacity .58s ease, transform .76s cubic-bezier(.16, 1, .3, 1), border-color .3s ease;
  transition-delay: calc(.53s + var(--step-delay));
}

body.gift-home .gift-steps.is-entrance-ready:not(.is-visible) .gift-step-grid__content {
  opacity: 0;
  transform: translateY(16px);
}

body.gift-home .gift-steps.is-entrance-ready .gift-step-grid__content {
  transition: opacity .72s ease, transform .84s cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(.67s + var(--step-delay));
}

body.gift-home .gift-steps.is-entrance-ready:not(.is-visible) .gift-section-action {
  opacity: 0;
  transform: translateY(16px);
}

body.gift-home .gift-steps.is-entrance-ready .gift-section-action {
  transition: opacity .74s ease, transform .86s cubic-bezier(.16, 1, .3, 1);
  transition-delay: 1.22s;
}

body.gift-home .gift-steps.is-visible .gift-step-grid__visual img {
  animation: giftStepFloat 6.8s ease-in-out infinite;
  animation-delay: calc(1.65s + var(--step-delay));
}

body.gift-home .gift-steps.is-visible .gift-step-grid__number {
  animation: giftStepNumberHalo 7.4s ease-in-out infinite;
  animation-delay: calc(1.45s + var(--step-delay));
}

body.gift-home .gift-steps.is-visible .gift-steps__flow {
  animation: giftStepsFlowGlow 8s ease-in-out infinite;
  animation-delay: 1.65s;
}

@keyframes giftStepsAura {
  0% { opacity: .58; transform: translate3d(-18px, 16px, 0) scale(.95); }
  100% { opacity: .9; transform: translate3d(72px, -14px, 0) scale(1.08); }
}

@keyframes giftStepFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes giftStepNumberHalo {
  0%, 100% { border-color: rgba(230, 112, 143, .36); }
  50% { border-color: rgba(195, 125, 218, .52); }
}

@keyframes giftStepsFlowGlow {
  0%, 100% { filter: saturate(.94); opacity: .82; }
  50% { filter: saturate(1.16); opacity: 1; }
}

@media (max-width: 820px) {
  body.gift-home .gift-steps.is-entrance-ready:not(.is-visible) .gift-step-grid::before {
    transform: scaleY(0);
  }

  body.gift-home .gift-steps.is-entrance-ready .gift-step-grid::before {
    transform-origin: top center;
    transition: transform 1.45s cubic-bezier(.2, .72, .16, 1);
    transition-delay: .35s;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.gift-home .gift-steps::before,
  body.gift-home .gift-steps.is-visible .gift-steps__flow,
  body.gift-home .gift-steps.is-visible .gift-step-grid__visual img,
  body.gift-home .gift-steps.is-visible .gift-step-grid__number {
    animation: none !important;
  }

  body.gift-home .gift-steps.is-entrance-ready .gift-section-heading .gift-eyebrow,
  body.gift-home .gift-steps.is-entrance-ready .gift-section-heading h2,
  body.gift-home .gift-steps.is-entrance-ready .gift-steps__flow,
  body.gift-home .gift-steps.is-entrance-ready .gift-step-grid__visual,
  body.gift-home .gift-steps.is-entrance-ready .gift-step-grid__number,
  body.gift-home .gift-steps.is-entrance-ready .gift-step-grid__content,
  body.gift-home .gift-steps.is-entrance-ready .gift-section-action,
  body.gift-home .gift-steps.is-entrance-ready .gift-step-grid::before {
    clip-path: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
