/**
 * Phase 39 — Behin Saffron Story
 * Homepage-only, layered flower-to-essence scroll composition.
 * The unenhanced/reduced state intentionally shows the polished final frame.
 */
.behin-saffron-story {
  --story-cream: #fff9f1;
  --story-cream-deep: #f6ead9;
  --story-red: #a60918;
  --story-red-deep: #720811;
  --story-gold: #d19a31;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  min-height: 720px;
  padding: 0 !important;
  overflow: clip;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 29% 55%, rgba(211, 154, 57, .095), transparent 39%),
    linear-gradient(133deg, #fffefa 0%, var(--story-cream) 57%, #f8ecdf 100%);
}

.behin-saffron-story,
.behin-saffron-story * {
  box-sizing: border-box;
}

.behin-saffron-story > .e-con-inner,
.behin-saffron-story > .elementor-element,
.behin-saffron-story > .elementor-element > .elementor-widget-container {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0;
}

.saffron-story-stage {
  position: relative;
  width: 100%;
  min-height: 720px;
  overflow: hidden;
  color: var(--story-red-deep);
  background:
    linear-gradient(106deg, rgba(255, 255, 255, .44), transparent 43%),
    radial-gradient(ellipse at 45% 108%, rgba(122, 18, 25, .04), transparent 49%);
}

.story-grain,
.story-grain::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.story-grain {
  z-index: 8;
  opacity: .11;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
}

.story-grain::before {
  opacity: .38;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, .5) 50%, transparent 58%),
    radial-gradient(circle at 14% 20%, rgba(166, 9, 24, .06) 0 1px, transparent 2px);
  background-size: auto, 48px 48px;
}

.story-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.story-ambient::before,
.story-ambient::after {
  position: absolute;
  border: 1px solid rgba(166, 9, 24, .03);
  border-radius: 50%;
  content: "";
}

.story-ambient::before {
  top: -29%;
  left: -13%;
  width: min(48vw, 690px);
  aspect-ratio: 1;
  box-shadow: 0 0 0 56px rgba(196, 119, 20, .01), 0 0 0 112px rgba(166, 9, 24, .006);
}

.story-ambient::after {
  right: -16%;
  bottom: -37%;
  width: min(45vw, 650px);
  aspect-ratio: 1;
  box-shadow: 0 0 0 62px rgba(196, 119, 20, .012);
}

.story-visual {
  position: absolute;
  z-index: 2;
  top: 5%;
  bottom: 5%;
  left: 0;
  width: 69%;
  pointer-events: none;
}

.story-flower-system {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 49%;
  width: min(39vw, 560px);
  aspect-ratio: 1122 / 1402;
  transform: translate3d(-50%, -50%, 0);
  transform-origin: 50% 58%;
  will-change: transform;
}

.story-flower-layer,
.story-stigma-field,
.story-essence-focus {
  position: absolute;
  inset: 0;
}

.story-flower-layer {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  will-change: transform, opacity;
}

.story-flower-layer--base {
  z-index: 1;
  filter: drop-shadow(0 26px 28px rgba(70, 22, 75, .12));
}

.story-flower-layer--foreground {
  z-index: 5;
  filter: drop-shadow(0 18px 18px rgba(70, 22, 75, .08));
}

.story-stigma-field {
  z-index: 3;
  overflow: visible;
}

.story-motion-stigma {
  position: absolute;
  bottom: 24%;
  left: 50%;
  display: block;
  width: 21.5%;
  max-width: none;
  height: auto;
  opacity: 0;
  visibility: hidden;
  transform-origin: 50% 96%;
  will-change: transform, opacity;
  filter: drop-shadow(0 8px 7px rgba(91, 4, 13, .12));
}

.story-motion-stigma--primary {
  z-index: 4;
}

.story-motion-stigma--support {
  z-index: 2;
  filter: drop-shadow(0 6px 6px rgba(91, 4, 13, .08));
}

.story-motion-stigma--depth-back {
  z-index: 1;
}

.story-motion-stigma--depth-mid {
  z-index: 2;
}

.story-motion-stigma--depth-front {
  z-index: 3;
}

.story-motion-stigma--micro {
  filter: drop-shadow(0 3px 4px rgba(91, 4, 13, .055));
}

.story-essence-focus {
  z-index: 0;
  top: 51%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: 68%;
  aspect-ratio: 1.35;
  border: 1px solid rgba(200, 145, 47, .2);
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-50%, -50%, 0) scale(.68);
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, .7) 0 19%, rgba(246, 214, 144, .22) 45%, transparent 72%);
  box-shadow:
    0 0 0 14px rgba(218, 168, 74, .025),
    inset 0 0 50px rgba(210, 144, 42, .06);
  will-change: transform, opacity;
}

.story-thread,
.story-thread--legacy {
  display: none !important;
}

.story-diffusion,
.story-diffusion span,
.story-diffusion::before,
.story-diffusion::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.story-diffusion {
  z-index: 1;
  opacity: 0;
  transform: scale(.48);
  transform-origin: 45% 57%;
  will-change: transform, opacity;
}

.story-diffusion span {
  margin: auto;
  transform-origin: center;
}

.story-diffusion::before,
.story-diffusion::after {
  display: block;
  margin: auto;
  content: "";
}

.story-diffusion::before {
  width: min(28vw, 400px);
  height: min(18vw, 260px);
  border-radius: 68% 32% 61% 39% / 38% 62% 35% 65%;
  opacity: .58;
  transform: translate(-8%, 28%) rotate(17deg);
  mix-blend-mode: multiply;
  background:
    radial-gradient(ellipse at 34% 54%, rgba(135, 10, 21, .62) 0 5%, rgba(186, 39, 22, .34) 14%, transparent 38%),
    radial-gradient(ellipse at 67% 41%, rgba(219, 92, 18, .36) 0 9%, transparent 53%);
}

.story-diffusion::after {
  width: min(57vw, 820px);
  height: min(38vw, 545px);
  border-radius: 39% 61% 31% 69% / 57% 35% 65% 43%;
  opacity: .55;
  transform: translate(4%, 16%) rotate(-9deg);
  background:
    radial-gradient(ellipse at 23% 61%, rgba(239, 158, 37, .34) 0 8%, transparent 30%),
    radial-gradient(ellipse at 49% 35%, rgba(255, 219, 125, .42) 0 9%, transparent 38%),
    radial-gradient(ellipse at 72% 60%, rgba(220, 126, 22, .2) 0 8%, transparent 32%);
}

.story-diffusion__red {
  width: min(28vw, 400px);
  height: min(18vw, 260px);
  border-radius: 33% 67% 55% 45% / 64% 42% 58% 36%;
  transform: translate(-9%, 29%) rotate(-14deg);
  mix-blend-mode: multiply;
  background:
    radial-gradient(ellipse at 35% 48%, rgba(128, 7, 20, .66) 0 7%, rgba(178, 29, 21, .4) 17%, transparent 47%),
    radial-gradient(ellipse at 70% 61%, rgba(205, 72, 14, .28) 0 10%, transparent 45%);
}

.story-diffusion__amber {
  width: min(48vw, 690px);
  height: min(28vw, 400px);
  border-radius: 62% 38% 29% 71% / 41% 61% 39% 59%;
  transform: translate(4%, 14%) rotate(11deg);
  background:
    radial-gradient(ellipse at 32% 62%, rgba(211, 99, 14, .42) 0 9%, rgba(239, 155, 32, .24) 25%, transparent 52%),
    radial-gradient(ellipse at 66% 35%, rgba(248, 190, 59, .4) 0 11%, transparent 58%);
}

.story-diffusion__gold {
  width: min(62vw, 890px);
  height: min(39vw, 560px);
  border-radius: 42% 58% 66% 34% / 63% 36% 64% 37%;
  transform: translate(7%, 13%) rotate(-7deg);
  background:
    radial-gradient(ellipse at 27% 39%, rgba(255, 224, 139, .54) 0 8%, transparent 35%),
    radial-gradient(ellipse at 58% 58%, rgba(242, 181, 61, .3) 0 12%, transparent 44%);
}

/* Static/reduced-motion fallback: clean product, copy, and restrained atmosphere. */
.behin-saffron-story:not(.is-story-enhanced) :is(.story-flower-system, .story-thread) {
  display: none !important;
}

.behin-saffron-story:not(.is-story-enhanced) .story-diffusion {
  opacity: .2;
  transform: scale(1);
}

.story-final-composition {
  position: absolute;
  z-index: 3;
  inset: 2% -3% 0 -2%;
  display: grid;
  place-items: center;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: 46% 65%;
  will-change: transform, opacity;
}

.story-product-halo {
  position: absolute;
  width: min(42vw, 605px);
  height: min(29vw, 418px);
  border-radius: 61% 39% 53% 47% / 44% 62% 38% 56%;
  transform: translate(-2%, 8%) rotate(-7deg);
  background:
    radial-gradient(ellipse at 47% 59%, rgba(255, 255, 255, .88) 0 18%, rgba(255, 229, 160, .54) 39%, rgba(226, 151, 35, .14) 64%, transparent 76%);
  box-shadow: inset 0 0 75px rgba(255, 193, 66, .1);
}

.story-final-composition::after {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 13%;
  width: min(28vw, 405px);
  height: 42px;
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
  filter: blur(15px);
  background: rgba(90, 27, 15, .2);
}

.story-product {
  position: relative;
  z-index: 2;
  display: block;
  width: min(34vw, 490px);
  height: auto;
  transform: translate(-2%, 11%);
  filter: drop-shadow(0 30px 26px rgba(73, 12, 17, .18)) drop-shadow(0 0 22px rgba(237, 166, 48, .11));
}

.story-petal {
  position: absolute;
  z-index: 1;
  width: clamp(46px, 6vw, 86px);
  height: auto;
  opacity: .52;
  filter: drop-shadow(0 13px 15px rgba(67, 24, 72, .1));
}

.story-petal--1 {
  top: 24%;
  left: 18%;
  transform: rotate(-38deg) scale(.82);
}

.story-petal--2 {
  right: 15%;
  bottom: 16%;
  transform: rotate(151deg) scale(.6);
}

.story-copy {
  position: absolute;
  z-index: 5;
  top: 49%;
  right: 5%;
  width: 41%;
  max-width: 650px;
  padding-inline: clamp(20px, 4vw, 64px);
  text-align: right;
  transform: translateY(-50%);
}

.story-kicker,
.story-brand,
.behin-saffron-story .story-title {
  margin: 0;
}

.story-kicker {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  color: var(--story-gold);
  font-size: clamp(11px, .92vw, 14px);
  font-weight: 700;
  letter-spacing: .01em;
}

.story-kicker::before {
  width: 20px;
  height: 1px;
  background: currentColor;
  content: "";
}

.story-title {
  color: var(--story-red-deep);
  font-family: IRYekanBakh, inherit;
  font-size: clamp(46px, 3.75vw, 56px) !important;
  font-weight: 900 !important;
  line-height: 1.42 !important;
  text-wrap: balance;
  text-shadow: 0 12px 30px rgba(110, 8, 17, .06);
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
}

.behin-saffron-story .story-title span {
  display: block;
}

.behin-saffron-story .story-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: var(--story-red);
  font-size: clamp(18px, 1.5vw, 22px) !important;
  font-weight: 700 !important;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
}

.story-brand::after {
  width: 46px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--story-red), var(--story-gold));
  content: "";
}

.behin-saffron-story.is-story-enhanced {
  height: 205svh;
  min-height: 1300px;
}

.behin-saffron-story.is-story-enhanced .saffron-story-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 620px;
}

.behin-saffron-story.is-story-enhanced :is(
  .story-flower-system,
  .story-flower-layer,
  .story-motion-stigma,
  .story-essence-focus,
  .story-diffusion,
  .story-final-composition,
  .story-title,
  .story-brand,
  .story-kicker
) {
  will-change: transform, opacity;
}

@media (max-width: 1100px) {
  .behin-saffron-story.is-story-enhanced {
    height: 185svh;
  }

  .story-visual {
    left: 0;
    width: 63%;
  }

  .story-flower-system {
    left: 48%;
    width: min(45vw, 500px);
  }

  .story-copy {
    right: 3%;
    width: 45%;
    padding-inline: 22px;
  }

  .behin-saffron-story .story-title {
    font-size: clamp(37px, 4.7vw, 49px) !important;
  }
}

@media (min-width: 768px) and (max-width: 900px) {
  .behin-saffron-story.is-story-enhanced {
    height: 170svh;
  }

  .story-visual {
    width: 58%;
  }

  .story-flower-system {
    left: 47%;
    width: min(50vw, 440px);
  }

  .story-copy {
    right: 2%;
    width: 48%;
    padding-inline: 16px;
  }

  .behin-saffron-story .story-title {
    font-size: 32px !important;
  }

  .story-petal--2 {
    display: none;
  }
}

@media (max-width: 767px) {
  .behin-saffron-story {
    min-height: 680px;
  }

  .behin-saffron-story.is-story-enhanced {
    height: 150svh;
    min-height: 950px;
  }

  .behin-saffron-story.is-story-enhanced .saffron-story-stage,
  .saffron-story-stage {
    height: calc(100svh - 68px);
    min-height: 650px;
    padding-bottom: 72px;
  }

  .story-visual {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 62%;
  }

  .story-flower-system {
    top: 47%;
    left: 50%;
    width: min(82vw, 340px);
  }

  .story-flower-layer--base {
    filter: drop-shadow(0 18px 20px rgba(70, 22, 75, .1));
  }

  .story-motion-stigma {
    filter: drop-shadow(0 6px 6px rgba(91, 4, 13, .09));
  }

  .story-diffusion {
    transform-origin: 50% 42%;
  }

  .story-diffusion__gold,
  .story-petal--2 {
    display: none;
  }

  .story-diffusion__red {
    width: 76vw;
    height: 48vw;
  }

  .story-diffusion__amber {
    width: 96vw;
    height: 61vw;
  }

  .story-diffusion::before {
    width: 70vw;
    height: 46vw;
  }

  .story-diffusion::after {
    width: 104vw;
    height: 68vw;
  }

  .story-product-halo {
    width: min(88vw, 380px);
    height: min(56vw, 245px);
  }

  .story-product {
    width: min(73vw, 325px);
  }

  .story-petal--1 {
    top: 11%;
    left: 8%;
    width: 66px;
  }

  .story-copy {
    top: auto;
    right: 18px;
    bottom: 11%;
    left: 18px;
    width: auto;
    max-width: none;
    padding: 0;
    text-align: center;
    transform: none;
  }

  .story-kicker {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .story-kicker::before {
    width: 24px;
  }

  .behin-saffron-story .story-title {
    font-size: clamp(28px, 8.4vw, 34px) !important;
    line-height: 1.48 !important;
  }

  .behin-saffron-story .story-brand {
    margin-top: 10px;
    font-size: 16px !important;
  }

  .story-brand::after {
    width: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .behin-saffron-story,
  .behin-saffron-story.is-story-enhanced {
    height: auto !important;
    min-height: 680px;
  }

  .behin-saffron-story .saffron-story-stage,
  .behin-saffron-story.is-story-enhanced .saffron-story-stage {
    position: relative;
    top: auto;
    height: auto;
    min-height: 680px;
  }

  .behin-saffron-story :is(
    .story-flower-system,
    .story-motion-stigma,
    .story-diffusion,
    .story-final-composition,
    .story-title,
    .story-brand,
    .story-kicker
  ) {
    transition: none !important;
    animation: none !important;
  }
}
