/* =============================================================
   Mariposa — Transformations / Success Stories page
   Editorial adaptation of the Lakeview success-stories layout,
   translated to the Mariposa palette (paper base, forest dark
   blocks, wing-gradient + lime/teal accents, Cormorant serif).
   Uses tokens from styles.css.
   ============================================================= */

/* ---------- Hero (dark forest editorial) ---------- */
.ss-hero {
  position: relative; overflow: hidden; color: var(--paper);
  padding: clamp(9rem, 16vh, 13rem) 0 clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(60% 80% at 82% 18%, rgba(63,182,201,.28), transparent 60%),
    radial-gradient(70% 90% at 10% 100%, rgba(30,90,168,.4), transparent 60%),
    linear-gradient(155deg, #16321f 0%, #1d4a37 55%, #256a5a 100%);
}
.ss-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: url("../img/mariposa-mark.png") no-repeat 92% 30%;
  background-size: min(42vw, 500px); opacity: .12; mix-blend-mode: screen;
}
/* montage video layered behind the forest gradient */
.ss-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: 0; opacity: .42; }
.ss-hero__scrim { position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(70% 90% at 12% 100%, rgba(22,50,31,.72), transparent 60%),
    linear-gradient(155deg, rgba(22,50,31,.62) 0%, rgba(29,74,55,.5) 55%, rgba(37,106,90,.42) 100%);
}
.ss-hero__inner { position: relative; z-index: 2; max-width: 60rem; }
.ss-eyebrow {
  display: inline-flex; flex-direction: column; gap: .55rem;
  font-family: var(--sans); font-weight: 700; font-size: .78rem;
  letter-spacing: .24em; text-transform: uppercase; color: var(--lime);
}
.ss-eyebrow::after { content: ""; width: 46px; height: 3px; border-radius: 3px; background: var(--wing); }
.ss-display {
  font-family: var(--serif); font-weight: 600; line-height: 1.0;
  letter-spacing: -.015em; font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  color: #fff; margin: 1.4rem 0 1.6rem; text-wrap: balance;
}
.ss-display .g {
  background: var(--wing); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; font-style: italic;
}
.ss-lede { font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.6; color: rgba(247,246,241,.9); max-width: 46rem; }
.ss-note {
  margin-top: 1.6rem; font-size: .92rem; color: rgba(247,246,241,.7);
  border-left: 3px solid; border-image: var(--wing) 1; padding-left: 1rem; max-width: 42rem;
}

/* Word-reveal animation for the hero display */
.wr .word { display: inline-block; opacity: 0; transform: translateY(0.4em); }
.wr.is-in .word { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
@media (prefers-reduced-motion: reduce) { .wr .word { opacity: 1 !important; transform: none !important; } }

/* ---------- Intro strip ---------- */
.ss-intro { padding: clamp(3.5rem, 7vw, 6rem) 0 0; }
.ss-intro p { font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.35; color: var(--forest); max-width: 40rem; }

/* ---------- Stories ---------- */
.ss-stories { padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem); display: grid; gap: clamp(4rem, 9vw, 8rem); }
.ss-story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.ss-story:nth-child(even) .ss-story__media { order: 2; }
.ss-story__media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5;
  box-shadow: var(--shadow-md); background: linear-gradient(150deg, #e7eee3, #cbe0d5 55%, #b6d4d9);
}
.ss-story__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ss-story__media--ph { display: grid; place-items: center; }
.ss-story__media--ph::before { content: ""; position: absolute; inset: 0;
  background: url("../img/mariposa-mark.png") no-repeat center 42%; background-size: 58%; opacity: .4; }
.ss-story__num {
  position: absolute; top: 14px; left: 16px; z-index: 2; font-family: var(--serif);
  font-size: 2.4rem; font-weight: 600; color: #fff; text-shadow: 0 4px 20px rgba(0,0,0,.4);
}
.ss-story__label { color: var(--teal); }
.ss-story__title {
  font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.01em;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem); color: var(--forest); margin: 1rem 0 1.6rem; text-wrap: balance;
}
.ss-block { border-top: 1px solid var(--line); padding: 1.15rem 0; }
.ss-block__k { font-family: var(--sans); font-weight: 700; font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--forest-55); margin-bottom: .4rem; }
.ss-block__v { color: var(--forest); font-size: 1.05rem; line-height: 1.55; }
.ss-block__v b { font-weight: 800; }
.ss-quote {
  margin-top: 1.6rem; padding: 1.2rem 1.4rem; border-radius: 14px;
  background: rgba(63,182,201,.08); border: 1px dashed rgba(34,61,44,.22);
}
.ss-quote p { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--forest); line-height: 1.4; }
.ss-quote .ph { display: block; margin-top: .6rem; font-family: var(--sans); font-style: normal;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--forest-55); }

/* ---------- Method (the blueprint) ---------- */
.ss-method { background: var(--bg-butterfly); color: var(--paper); }
.ss-method .ss-eyebrow { color: var(--lime); }
.ss-method h2 { color: #fff; max-width: 24ch; }
.ss-method__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.4rem); margin-top: clamp(2rem, 4vw, 3rem); }
.ss-method__item { border-top: 2px solid rgba(247,246,241,.18); padding-top: 1.1rem; }
.ss-method__item .n { font-family: var(--serif); font-size: 1.6rem; color: var(--lime); }
.ss-method__item h3 { color: #fff; font-size: 1.3rem; margin: .3rem 0 .5rem; }
.ss-method__item p { color: rgba(247,246,241,.78); font-size: .98rem; }

/* ---------- Founding-member (real stories placeholder) ---------- */
.ss-founding { text-align: center; }
.ss-founding__inner { max-width: 44rem; margin-inline: auto; }
.ss-founding .badge {
  display: inline-block; margin-bottom: 1.2rem; font-family: var(--sans); font-weight: 700;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal);
  border: 1px dashed rgba(34,61,44,.3); padding: .45rem .9rem; border-radius: 999px;
}

/* ---------- Closing CTA ---------- */
.ss-cta { position: relative; overflow: hidden; text-align: center; color: #fff; }
.ss-cta__bg { position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 80% at 20% 20%, rgba(63,182,201,.5), transparent 60%),
    radial-gradient(70% 80% at 82% 30%, rgba(181,211,52,.42), transparent 60%),
    linear-gradient(150deg, #16321f, #1d4a37 55%, #256a4f); }
.ss-cta__inner { position: relative; z-index: 1; max-width: 42rem; margin-inline: auto; }
.ss-cta h2 { color: #fff; }
.ss-cta p { color: rgba(247,246,241,.9); font-size: clamp(1.05rem,1.4vw,1.3rem); margin: 1rem 0 2rem; }
.ss-cta__row { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

@media (max-width: 860px) {
  .ss-story { grid-template-columns: 1fr; }
  .ss-story:nth-child(even) .ss-story__media { order: 0; }
  .ss-story__media { max-width: 440px; }
  .ss-method__grid { grid-template-columns: 1fr; gap: 1.4rem; }
}
