/* Skinjo Farm immersive About experience */

.farm-story {
  position: relative;
  overflow: clip;
  background: #111410;
  color: #fff;
}

.farm-story::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 18%, rgba(136, 191, 63, .16), transparent 28%),
    radial-gradient(circle at 86% 72%, rgba(136, 191, 63, .08), transparent 30%);
}

.farm-story-head,
.farm-story-layout {
  position: relative;
  z-index: 1;
}

.farm-story-head {
  max-width: 760px;
  margin-bottom: 52px;
}

.farm-story-head .section-kicker {
  color: #cfe8a5;
}

.farm-story-head .lede {
  color: rgba(255, 255, 255, .68);
}

.farm-story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}

.farm-story-visual {
  position: sticky;
  top: 92px;
  height: calc(100vh - 136px);
  min-height: 560px;
  max-height: 780px;
  perspective: 1250px;
  transform-style: preserve-3d;
}

.story-frame {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 32px;
  background: #242a23;
  opacity: 0;
  transform: translate3d(0, 28px, -180px) rotateX(5deg) rotateY(9deg) scale(.9);
  transform-origin: 55% 54%;
  transition:
    opacity .5s ease,
    transform .72s cubic-bezier(.18,.78,.18,1),
    filter .6s ease;
  filter: saturate(.72) brightness(.72);
  pointer-events: none;
}

.story-frame:nth-child(even) {
  transform: translate3d(0, 28px, -180px) rotateX(5deg) rotateY(-9deg) scale(.9);
}

.story-frame.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateX(0) rotateY(0) scale(1);
  filter: saturate(.92) brightness(.9);
  z-index: 2;
}

.story-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.1s cubic-bezier(.18,.78,.18,1);
}

.story-frame.is-active img {
  transform: scale(1.015);
}

.story-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(6, 9, 6, .78) 100%);
}

.story-frame figcaption {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  color: #fff;
}

.story-frame figcaption strong {
  display: block;
  max-width: 18ch;
  font-size: clamp(1.45rem, 2.5vw, 2.35rem);
  line-height: .98;
  letter-spacing: -.04em;
}

.story-frame figcaption span {
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #dff2c4;
}

.farm-story-steps {
  display: grid;
}

.story-step {
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid rgba(255,255,255,.12);
  opacity: .38;
  transform: translateX(16px);
  transition: opacity .38s ease, transform .5s cubic-bezier(.18,.78,.18,1);
}

.story-step:last-child {
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.story-step.is-active {
  opacity: 1;
  transform: translateX(0);
}

.story-index {
  margin-bottom: 16px;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .15em;
  color: #a8d64f;
}

.story-step h3 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.15rem, 4.2vw, 4.7rem);
  line-height: .93;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.story-step p {
  max-width: 540px;
  margin: 20px 0 0;
  color: rgba(255,255,255,.68);
  font-size: 1rem;
  line-height: 1.65;
}

.story-step.is-active p {
  color: rgba(255,255,255,.8);
}

.story-mobile-media {
  display: none;
}

@media (max-width: 900px) {
  .farm-story {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .farm-story-head {
    margin-bottom: 34px;
  }

  .farm-story-layout {
    display: block;
  }

  .farm-story-visual {
    display: none;
  }

  .story-step {
    min-height: 0;
    padding: 28px 0 34px;
    opacity: 1;
    transform: none;
  }

  .story-step h3 {
    max-width: 15ch;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .story-step p {
    margin-top: 14px;
    font-size: .92rem;
  }

  .story-mobile-media {
    display: block;
    position: relative;
    height: min(68vw, 320px);
    margin: 0 0 22px;
    overflow: hidden;
    border-radius: 22px;
    background: #242a23;
  }

  .story-mobile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-frame,
  .story-frame img,
  .story-step {
    transition: none !important;
    transform: none !important;
  }
}
