/* Meanestro homepage v0.12 — detailed audit workflow section.
   Hero v0.11 styles remain untouched. */

.how-story {
  position: relative;
  z-index: 4;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.85), transparent 34rem),
    linear-gradient(180deg, #f4f1eb 0%, #f7f4ef 44%, #f2eee7 100%);
  border-top: 1px solid rgba(73, 54, 47, .09);
  color: #252321;
  padding: clamp(96px, 10vw, 156px) 24px clamp(112px, 11vw, 176px);
  overflow: clip;
}

.how-story::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image:
    linear-gradient(rgba(73,54,47,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73,54,47,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}

.how-story__inner {
  position: relative;
  width: min(1480px, 100%);
  margin: 0 auto;
}

.how-story__intro {
  width: min(900px, 100%);
  margin: 0 auto clamp(76px, 8vw, 118px);
  text-align: center;
}

.how-story__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: #5f5a54;
  font: 750 12px/1.2 Manrope, "Segoe UI Variable", system-ui, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.how-story__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #315f62;
  box-shadow: 0 0 0 5px rgba(49,95,98,.08);
}

.how-story__title {
  max-width: 900px;
  margin: 0 auto;
  color: #171614;
  font: 720 clamp(44px, 5.4vw, 78px)/.99 Manrope, "Segoe UI Variable", system-ui, sans-serif;
  letter-spacing: -.055em;
}

.how-story__lede {
  max-width: 740px;
  margin: 26px auto 0;
  color: #6f6a64;
  font: 480 clamp(17px, 1.5vw, 21px)/1.55 Manrope, "Segoe UI Variable", system-ui, sans-serif;
  letter-spacing: -.018em;
}

.how-story__proofline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 9px 13px;
  border: 1px solid rgba(73,54,47,.12);
  border-radius: 999px;
  background: rgba(251,250,247,.68);
  color: #5f5a54;
  font: 650 13px/1 Manrope, "Segoe UI Variable", system-ui, sans-serif;
  box-shadow: 0 10px 32px rgba(58,45,38,.04);
}

.how-story__proofline svg {
  width: 17px;
  height: 17px;
  stroke: #39735c;
  stroke-width: 1.8;
  fill: none;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(310px, .78fr) minmax(620px, 1.62fr);
  gap: clamp(50px, 6vw, 102px);
  align-items: start;
}

.story-steps {
  position: relative;
  padding-bottom: 18vh;
}

.story-step {
  min-height: 62vh;
  display: flex;
  align-items: center;
  outline: none;
}

.story-step__card {
  position: relative;
  width: 100%;
  padding: 24px 22px 24px 25px;
  border: 1px solid transparent;
  border-radius: 22px;
  transition: background-color .32s ease, border-color .32s ease, box-shadow .32s ease, transform .32s ease, opacity .32s ease;
  opacity: .48;
}

.story-step.is-active .story-step__card {
  opacity: 1;
  transform: translateX(8px);
  border-color: rgba(73,54,47,.13);
  background: rgba(251,250,247,.78);
  box-shadow: 0 22px 60px rgba(62,48,40,.075);
}

.story-step__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: #ece7df;
  color: #49362f;
  font: 760 12px/1 Manrope, "Segoe UI Variable", system-ui, sans-serif;
  transition: background-color .3s ease, color .3s ease;
}

.story-step.is-active .story-step__index {
  background: #49362f;
  color: #fff;
}

.story-step h3 {
  margin: 0;
  color: #171614;
  font: 720 clamp(28px, 2.4vw, 38px)/1.06 Manrope, "Segoe UI Variable", system-ui, sans-serif;
  letter-spacing: -.04em;
}

.story-step p {
  margin: 15px 0 0;
  color: #6f6a64;
  font: 480 16px/1.62 Manrope, "Segoe UI Variable", system-ui, sans-serif;
  letter-spacing: -.012em;
}

.story-step__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 19px;
}

.story-step__facts span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(73,54,47,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.66);
  color: #5f5a54;
  font: 650 12px/1 Manrope, "Segoe UI Variable", system-ui, sans-serif;
}

.story-visual-wrap {
  position: sticky;
  top: 108px;
  height: min(75vh, 790px);
  min-height: 620px;
  display: flex;
  align-items: center;
}

.story-visual {
  position: relative;
  width: 100%;
  height: min(69vh, 720px);
  min-height: 570px;
  overflow: hidden;
  border: 1px solid rgba(73,54,47,.13);
  border-radius: 30px;
  background: #ebe6de;
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 30px 90px rgba(60,45,38,.13),
    0 8px 30px rgba(60,45,38,.08);
  isolation: isolate;
}

.story-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.46);
}

.story-visual__chrome {
  position: absolute;
  inset: 0 0 auto;
  z-index: 12;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 20px;
  border-bottom: 1px solid rgba(73,54,47,.09);
  background: rgba(251,250,247,.9);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}

.story-visual__label {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.story-visual__step-number {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #49362f;
  color: #fff;
  font: 750 11px/1 Manrope, "Segoe UI Variable", system-ui, sans-serif;
}

.story-visual__label strong {
  color: #252321;
  font: 700 14px/1.2 Manrope, "Segoe UI Variable", system-ui, sans-serif;
}

.story-visual__label span:last-child {
  color: #8a847e;
  font: 580 12px/1.2 Manrope, "Segoe UI Variable", system-ui, sans-serif;
}

.story-visual__state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #5f5a54;
  font: 650 12px/1 Manrope, "Segoe UI Variable", system-ui, sans-serif;
}

.story-visual__state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #39735c;
  box-shadow: 0 0 0 5px rgba(57,115,92,.08);
}

.story-visual__slides {
  position: absolute;
  inset: 58px 0 0;
}

.story-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(.988);
  transition: opacity .48s cubic-bezier(.22,1,.36,1), transform .72s cubic-bezier(.22,1,.36,1), filter .48s ease;
  pointer-events: none;
  filter: saturate(.82) contrast(.98);
}

.story-slide.is-active {
  opacity: 1;
  transform: translate3d(0,0,0) scale(1);
  filter: saturate(1) contrast(1);
  pointer-events: auto;
}

.story-slide picture,
.story-slide img {
  display: block;
  width: 100%;
  height: 100%;
}

.story-slide img {
  object-fit: contain;
  object-position: center;
  padding: 32px;
  transition: transform 1.4s cubic-bezier(.22,1,.36,1);
}

.story-slide.is-active img {
  transform: scale(1.018);
}

.story-slide--share img {
  padding: 24px 30px 30px;
  object-fit: contain;
}

.story-evidence-float {
  position: absolute;
  z-index: 11;
  right: 22px;
  bottom: 22px;
  width: min(39%, 340px);
  padding: 12px;
  border: 1px solid rgba(73,54,47,.13);
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 22px 50px rgba(56,43,37,.14);
  opacity: 0;
  transform: translate3d(0,14px,0) scale(.97);
  transition: opacity .45s ease, transform .6s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.story-visual[data-active="3"] .story-evidence-float {
  opacity: 1;
  transform: translate3d(0,0,0) scale(1);
}

.story-evidence-float__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  color: #5f5a54;
  font: 680 11px/1 Manrope, "Segoe UI Variable", system-ui, sans-serif;
}

.story-evidence-float__header span:last-child {
  color: #39735c;
}

.story-evidence-float img {
  width: 100%;
  display: block;
  border-radius: 11px;
  border: 1px solid rgba(73,54,47,.08);
}

.story-trail {
  position: absolute;
  z-index: 13;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px;
  border: 1px solid rgba(73,54,47,.1);
  border-radius: 999px;
  background: rgba(251,250,247,.9);
  box-shadow: 0 12px 35px rgba(54,43,37,.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.story-trail__dot {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: #918a83;
  font: 720 10px/1 Manrope, "Segoe UI Variable", system-ui, sans-serif;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.story-trail__dot:hover,
.story-trail__dot:focus-visible {
  transform: translateY(-1px);
  outline: none;
  background: #ece7df;
  color: #49362f;
}

.story-trail__dot.is-active {
  background: #49362f;
  color: #fff;
}

.story-bottom-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  max-width: 1040px;
  margin: clamp(70px, 8vw, 116px) auto 0;
  padding: 22px 24px;
  border: 1px solid rgba(73,54,47,.11);
  border-radius: 20px;
  background: rgba(251,250,247,.72);
}

.story-bottom-note__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #e4eeeb;
  color: #315f62;
}

.story-bottom-note__icon svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.story-bottom-note strong {
  display: block;
  color: #252321;
  font: 700 16px/1.3 Manrope, "Segoe UI Variable", system-ui, sans-serif;
}

.story-bottom-note p {
  margin: 5px 0 0;
  color: #6f6a64;
  font: 480 14px/1.55 Manrope, "Segoe UI Variable", system-ui, sans-serif;
}

@media (max-width: 1120px) {
  .story-layout {
    grid-template-columns: minmax(280px, .78fr) minmax(520px, 1.35fr);
    gap: 38px;
  }

  .story-visual-wrap {
    top: 96px;
  }
}

@media (max-width: 900px) {
  .how-story {
    padding: 82px 18px 106px;
  }

  .how-story__intro {
    margin-bottom: 56px;
  }

  .how-story__title {
    font-size: clamp(40px, 10vw, 58px);
  }

  .story-layout {
    display: block;
  }

  .story-steps {
    display: grid;
    gap: 20px;
    padding: 0;
  }

  .story-step {
    min-height: 0;
    display: block;
  }

  .story-step__card,
  .story-step.is-active .story-step__card {
    opacity: 1;
    transform: none;
    padding: 22px;
    border-color: rgba(73,54,47,.12);
    background: rgba(251,250,247,.82);
    box-shadow: 0 18px 46px rgba(62,48,40,.06);
  }

  .story-step__index {
    margin-bottom: 17px;
    background: #49362f;
    color: #fff;
  }

  .story-step h3 {
    font-size: 29px;
  }

  .story-step p {
    font-size: 15px;
  }

  .story-mobile-visual {
    display: block;
    margin: 22px -9px -9px;
    overflow: hidden;
    border: 1px solid rgba(73,54,47,.1);
    border-radius: 16px;
    background: #ebe6de;
  }

  .story-mobile-visual img {
    display: block;
    width: 100%;
    height: auto;
  }

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

  .story-bottom-note {
    margin-top: 38px;
  }
}

@media (min-width: 901px) {
  .story-mobile-visual {
    display: none;
  }
}

@media (max-width: 560px) {
  .how-story {
    padding-left: 14px;
    padding-right: 14px;
  }

  .how-story__title {
    font-size: clamp(38px, 12vw, 50px);
    letter-spacing: -.06em;
  }

  .how-story__lede {
    font-size: 16px;
  }

  .how-story__proofline {
    font-size: 12px;
  }

  .story-step__card,
  .story-step.is-active .story-step__card {
    border-radius: 19px;
  }

  .story-bottom-note {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-step__card,
  .story-slide,
  .story-slide img,
  .story-evidence-float,
  .story-trail__dot {
    transition: none !important;
  }
}

/* v0.13 — remove generic AI-template embellishments while preserving the approved story interaction. */
.how-story::before {
  display: none;
}

.how-story__eyebrow {
  gap: 0;
  letter-spacing: .14em;
}

.how-story__eyebrow::before {
  display: none;
}

.how-story__proofline {
  display: block;
  margin-top: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #6b655f;
  font-weight: 570;
  letter-spacing: -.01em;
}

.how-story__proofline svg {
  display: none;
}

.story-step__facts {
  gap: 0;
  margin-top: 18px;
}

.story-step__facts span {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #746e68;
  font-weight: 600;
}

.story-step__facts span:not(:last-child)::after {
  content: "·";
  margin: 0 9px;
  color: #b3aca5;
}

.story-visual__state {
  gap: 0;
}

.story-visual__state i {
  display: none;
}

/* Functional carousel navigation, but without the generic floating pill. */
.story-trail {
  gap: 15px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.story-trail__dot {
  position: relative;
  width: 24px;
  height: 28px;
  border-radius: 0;
  background: transparent !important;
  color: #9a938c;
  font-size: 10px;
}

.story-trail__dot::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 0;
  left: 4px;
  height: 1px;
  transform: scaleX(0);
  background: #49362f;
  transition: transform .25s ease;
}

.story-trail__dot:hover,
.story-trail__dot:focus-visible {
  transform: none;
  color: #49362f;
}

.story-trail__dot.is-active {
  color: #49362f;
  background: transparent;
}

.story-trail__dot.is-active::after {
  transform: scaleX(1);
}

/* Turn the closing statement into an editorial note instead of another rounded card. */
.story-bottom-note {
  display: block;
  max-width: 900px;
  margin-top: clamp(76px, 8vw, 118px);
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid rgba(73,54,47,.17);
  border-radius: 0;
  background: transparent;
}

.story-bottom-note__icon {
  display: none;
}

.story-bottom-note strong {
  font-size: 17px;
}

.story-bottom-note p {
  max-width: 760px;
  margin-top: 7px;
}

@media (max-width: 900px) {
  .story-step__facts {
    display: block;
  }

  .story-step__facts span {
    display: inline;
  }

  .story-trail {
    display: none;
  }

  .story-bottom-note {
    padding-top: 20px;
  }
}
