/* «Así fluye»: a pinned dark scene; scrolling walks one piece through its five steps. */
.flow {
  position: relative;
  background: var(--color-stage);
  color: var(--stage-text);
}
.js .flow {
  height: 360vh;
}
.flow-sticky {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(40px, 6vw, 104px);
  padding: 120px max(64px, calc((100% - 1312px) / 2));
}
.js .flow-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding-block: 72px 40px;
}
.flow .eyebrow {
  color: var(--stage-muted);
}
.flow-copy h2 {
  margin: 18px 0 40px;
  font-size: clamp(40px, 4.4vw, 66px);
}
.flow-copy h2 em {
  font-style: normal;
  color: #f2967d;
}
.flow-steps {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.flow-steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  padding: 12px 0;
  border-top: 1px solid var(--color-stage-line);
  transition: opacity 500ms var(--ease-out);
}
.flow-num {
  padding-top: 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--stage-muted);
  transition: color 400ms;
}
.flow-steps h3 {
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.2;
}
.flow-steps p {
  max-width: 400px;
  padding-top: 6px;
  color: var(--stage-muted);
  font-size: 15px;
  line-height: 1.5;
}
.js .flow-steps li {
  opacity: calc(0.36 + var(--near, 0) * 0.64);
  transition: none;
}
.js .flow-steps .flow-num {
  color: color-mix(in srgb, #f2967d calc(var(--near, 0) * 100%), var(--stage-muted));
}
.js .flow-steps p {
  opacity: calc(0.5 + var(--near, 0) * 0.5);
}
.flow-progress {
  height: 2px;
  margin-top: 28px;
  background: var(--color-stage-line);
}
.flow-progress span {
  display: block;
  height: 100%;
  background: #f2967d;
  transform-origin: left;
  transform: scaleX(calc(var(--reel, 4) / 4));
}

/* Stage drawn at 64em; every size inside is relative to its width. */
.flow-stage {
  container-type: inline-size;
  width: 100%;
  max-width: 720px;
  justify-self: end;
}
.flow-canvas {
  position: relative;
  overflow: hidden;
  aspect-ratio: 64 / 50;
  font-size: calc(100cqw / 64);
  padding: 2.4em;
  border: 1px solid rgba(245, 243, 237, 0.1);
  border-radius: 2.6em;
  background:
    radial-gradient(60em 30em at 85% -10%, rgba(242, 150, 125, 0.16), transparent 60%),
    var(--color-stage-surface);
  box-shadow: 0 4em 8em -4em rgba(0, 0, 0, 0.7);
}
.stage-caption--dark {
  justify-content: flex-end;
  color: var(--stage-muted);
}
.fs-head {
  display: flex;
  align-items: center;
  gap: 1.2em;
  padding-bottom: 1.8em;
  border-bottom: 1px solid var(--color-stage-line);
}
.fs-head .face {
  width: 2.3em;
  height: 2.3em;
  font-size: 1.8em;
}
.fs-head .face i {
  width: 0.55em;
  height: 0.55em;
  border-color: var(--color-stage-surface);
}
.fs-who strong,
.fs-who small {
  display: block;
}
.fs-who strong {
  font-family: var(--font-heading);
  font-size: 1.9em;
  font-weight: 600;
  line-height: 1.1;
}
.fs-who small {
  font-size: 1.3em;
  color: var(--stage-muted);
}
.fs-who small span {
  display: none;
}
.flow[data-step="1"] .fs-s1,
.flow[data-step="2"] .fs-s2,
.flow[data-step="3"] .fs-s3,
.flow[data-step="4"] .fs-s4,
.flow[data-step="5"] .fs-s5 {
  display: inline;
}
.fs-track {
  width: 11em;
  height: 0.35em;
  margin-left: auto;
  overflow: hidden;
  border-radius: 99em;
  background: var(--color-stage-line);
}
.fs-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #f2967d;
  transform-origin: left;
  transform: scaleX(calc(0.04 + var(--reel, 4) / 4 * 0.96));
}

.fs-viewport {
  position: absolute;
  inset: 10.5em 0 2.4em;
  overflow: hidden;
}
.fs-reel {
  display: flex;
  width: 500%;
  height: 100%;
  transform: translate3d(calc(var(--reel, 4) * -20%), 0, 0);
}
.fs-screen {
  display: flex;
  flex-direction: column;
  gap: 1.4em;
  width: 20%;
  height: 100%;
  padding-inline: 2.4em;
  opacity: calc(1 - var(--dist, 0) * 0.7);
  scale: calc(1 - var(--dist, 0) * 0.06);
  filter: blur(calc(var(--dist, 0) * 3px));
}
/* Without motion the reel does not slide: the current screen simply replaces the last one. */
.js:not(.motion) .fs-reel {
  display: grid;
  width: 100%;
  transform: none;
}
.js:not(.motion) .fs-screen {
  grid-area: 1 / 1;
  width: 100%;
  opacity: 0;
  scale: 1;
  filter: none;
}
.js:not(.motion) .fs-screen.is-current {
  opacity: 1;
}
.fs-label {
  font-size: 1.15em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stage-muted);
}
.fs-label b {
  margin-left: 0.4em;
  color: #f2967d;
}
.fs-note {
  margin-top: auto;
  font-size: 1.3em;
  color: var(--stage-muted);
}
.fs-note span {
  margin-right: 0.4em;
  color: #f2967d;
}

.fs-search {
  display: flex;
  align-items: center;
  gap: 0.7em;
  position: relative;
  overflow: hidden;
  padding: 1em 1.3em;
  border-radius: 99em;
  background: var(--flow-paper);
  color: var(--flow-ink);
  font-size: 1.35em;
}
.fs-search span {
  color: var(--color-brand);
  font-size: 1.3em;
  line-height: 1;
}
.fs-search i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(242, 150, 125, 0.35), transparent);
  translate: -100% 0;
}
.fs-sources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9em;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fs-sources li {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 1em 1.2em;
  border: 1px solid rgba(245, 243, 237, 0.1);
  border-radius: 1.1em;
  background: rgba(245, 243, 237, 0.04);
  font-size: 1.3em;
}
.fs-sources span {
  color: #f2967d;
}

.fs-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2em;
}
.fs-product {
  position: relative;
  display: grid;
  gap: 0.3em;
  padding: 0.9em;
  border-radius: 1.4em;
  background: rgba(245, 243, 237, 0.06);
}
.fs-product strong {
  margin-top: 0.5em;
  font-size: 1.3em;
}
.fs-product small {
  font-size: 1.2em;
  color: var(--stage-muted);
}
.fs-product i {
  position: absolute;
  top: 1.4em;
  right: 1.4em;
  display: grid;
  place-items: center;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  font-style: normal;
  font-size: 1.1em;
}
.fs-thumb {
  aspect-ratio: 1;
  border-radius: 1em;
  background: url("../media/editorial-still-life.webp") 72% 60% / 300% no-repeat;
}
.fs-thumb--bowl {
  background-position: 28% 72%;
  background-size: 360%;
}
.fs-thumb--linen {
  background-position: 0 100%;
  background-size: 340%;
}

.fs-draft-card,
.fs-review-card {
  padding: 2em;
  border-radius: 1.8em;
  background: var(--flow-paper);
  color: var(--flow-ink);
}
.fs-voice {
  display: inline-block;
  margin-bottom: 1.2em;
  padding: 0.5em 1em;
  border-radius: 99em;
  background: #dde9e7;
  color: #1f5154;
  font-size: 1.15em;
  font-weight: 600;
}
.fs-draft {
  min-height: 7.6em;
  font-family: var(--font-heading);
  font-size: 1.85em;
  line-height: 1.32;
}
.fs-draft.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 1em;
  margin-left: 0.06em;
  vertical-align: -0.12em;
  background: var(--color-brand);
  animation: caret 0.9s steps(1) infinite;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}

.fs-review-card {
  display: grid;
  grid-template-columns: 15em 1fr;
  gap: 1.6em;
  padding: 1.2em;
}
.fs-review-photo {
  width: 100%;
  height: 100%;
  min-height: 15em;
  border-radius: 1.2em;
  object-fit: cover;
}
.fs-review-card strong {
  display: block;
  margin: 0.6em 0;
  font-family: var(--font-heading);
  font-size: 1.8em;
  font-weight: 600;
  line-height: 1.1;
}
.fs-review-card p {
  font-size: 1.3em;
  color: var(--color-text-muted);
}
.fs-ask {
  display: inline-block;
  margin-top: 1em;
  padding: 0.5em 1em;
  border-radius: 99em;
  background: #dde9e7;
  color: #1f5154;
  font-size: 1.15em;
}
.fs-actions {
  display: flex;
  align-items: center;
  gap: 1em;
  font-size: 1.35em;
  font-weight: 600;
}
.fs-change,
.fs-approve,
.fs-approved {
  padding: 0.7em 1.4em;
  border-radius: 99em;
}
.fs-change {
  border: 1px solid rgba(245, 243, 237, 0.25);
}
.fs-approve {
  background: var(--color-brand);
  color: #fff;
}
.fs-approved {
  margin-left: auto;
  background: #e3eadf;
  color: #3d5444;
}


.fs-targets {
  display: grid;
  gap: 0.8em;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fs-targets li {
  display: grid;
  grid-template-columns: 2.4em 1fr auto;
  align-items: center;
  gap: 1em;
  padding: 1.15em 1.3em;
  border: 1px solid rgba(245, 243, 237, 0.08);
  border-radius: 1.2em;
  background: rgba(245, 243, 237, 0.05);
}
.fs-targets img {
  width: 1.8em;
  height: 1.8em;
  filter: invert(1);
}
.fs-targets .is-iguana img {
  width: 2.4em;
  height: 2.4em;
  filter: none;
}
.fs-targets span {
  font-size: 1.35em;
  font-weight: 600;
}
.fs-targets small {
  margin-left: 0.7em;
  font-weight: 400;
  color: var(--stage-muted);
}
.fs-targets b {
  padding: 0.35em 0.9em;
  border-radius: 99em;
  background: rgba(175, 193, 168, 0.16);
  color: #afc1a8;
  font-size: 1.15em;
}
.fs-targets b::before {
  content: "✓ ";
}
.fs-targets .is-iguana {
  border-color: rgba(159, 122, 230, 0.4);
  background: rgba(103, 63, 180, 0.18);
}

/* Content follows the scroll: every few pixels something arrives, ticks or gets written. */
.motion .fs-sources li,
.motion .fs-product,
.motion .fs-targets li {
  --in: clamp(0, calc(var(--lp, 1) * 7 - var(--i, 0) - 0.4), 1);
  opacity: var(--in);
  translate: 0 calc((1 - var(--in)) * 1.6em);
}
.motion .fs-product {
  --in: clamp(0, calc(var(--lp, 1) * 4.5 - var(--i, 0) * 0.9), 1);
}
.motion .fs-product i,
.motion .fs-targets b {
  scale: clamp(0, calc(var(--lp, 1) * 6.5 - var(--i, 0) - 1), 1);
}
.motion .fs-product i {
  scale: clamp(0, calc(var(--lp, 1) * 5 - var(--i, 0) - 2), 1);
}
.motion .fs-search i {
  translate: calc(var(--lp, 1) * 300% - 100%) 0;
}
.motion .fs-note {
  opacity: clamp(0, calc(var(--lp, 1) * 5 - 3.6), 1);
}
.motion .fs-ask {
  opacity: clamp(0, calc(var(--lp, 1) * 5 - 0.6), 1);
}
.motion .fs-approve {
  scale: calc(1 - clamp(0, calc(var(--lp, 1) * 10 - 5), 1) * clamp(0, calc(7 - var(--lp, 1) * 10), 1) * 0.1);
}
.motion .fs-approved {
  opacity: clamp(0, calc(var(--lp, 1) * 5 - 3), 1);
  scale: calc(0.85 + clamp(0, calc(var(--lp, 1) * 5 - 3), 1) * 0.15);
}
