/* Shared, decorative sample folio for the two fabric-search surfaces only.
   Three shipped editorial thumbnails; the optional centre query never leaves the device. */
.haolun-find-intro {
  display: grid;
  justify-items: center;
  gap: 13px;
  width: 100%;
  max-width: 620px;
  margin: 0 auto 18px;
}
.haolun-find-visual {
  --folio-paper: #f0e9df;
  --folio-mark: #81766966;
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: 100%;
  height: clamp(136px, 36vw, 210px);
  overflow: hidden;
  border: 1px solid #dcd3c6;
  border-radius: 14px;
  background: radial-gradient(ellipse at 29% 12%, #fcf9f3 0%, transparent 74%),
    linear-gradient(115deg, #eee7dc, var(--folio-paper) 62%, #e8dfd2);
  pointer-events: none;
  user-select: none;
}
/* Tiny registration marks, printed on the mat outside the cards. */
.haolun-find-visual::before, .haolun-find-visual::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: linear-gradient(var(--folio-mark), var(--folio-mark)) center / 10px 1px no-repeat,
    linear-gradient(var(--folio-mark), var(--folio-mark)) center / 1px 10px no-repeat;
}
.haolun-find-visual::before { top: 10px; left: 11px; }
.haolun-find-visual::after { bottom: 10px; right: 11px; }

.haolun-find-visual > .haolun-find-tile {
  --slot: -98%;
  --lift: 4%;
  --angle: -7deg;
  --from: -181%;
  --from-y: 22%;
  --from-angle: -22deg;
  --delay: 0ms;
  --serial: "01";
  --cloth: url("/assets/home-editorial-20261008/collection-25-entry-240.webp");
  --fallback: #87948a;
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: block;
  box-sizing: border-box;
  width: min(26%, 142px);
  height: 69%;
  border: 1px solid #c9bca8;
  border-radius: 2px;
  background-color: #faf5e9;
  box-shadow: 0 5px 9px -5px #544535a8, 0 1px 2px #55443229;
  transform: translate(-50%, -50%) translate(var(--slot), var(--lift)) rotate(var(--angle));
}
.haolun-find-visual > .haolun-find-tile:nth-child(2) {
  --slot: 0%;
  --lift: -4%;
  --angle: -1deg;
  --from: -4%;
  --from-y: 62%;
  --from-angle: 10deg;
  --delay: 80ms;
  --serial: "02";
  --cloth: url("/assets/home-editorial-20261008/chenille-photo-entry-240.webp");
  --fallback: #dacfb6;
  z-index: 3;
  box-shadow: 0 8px 15px -7px #443528a6, 0 1px 2px #55443233;
}
.haolun-find-visual > .haolun-find-tile:nth-child(3) {
  --slot: 98%;
  --lift: 3%;
  --angle: 7deg;
  --from: 181%;
  --from-y: 18%;
  --from-angle: 21deg;
  --delay: 150ms;
  --serial: "03";
  --cloth: url("/assets/home-editorial-20261008/collection-26-entry-240.webp");
  --fallback: #985e4e;
  z-index: 2;
}
.haolun-find-tile::before {
  content: "";
  position: absolute;
  inset: 3px 3px clamp(13px, 3vw, 18px);
  background: var(--fallback) var(--cloth) 50% 50% / cover no-repeat;
  box-shadow: inset 0 0 0 1px #382c1914;
}
.haolun-find-tile::after {
  content: var(--serial);
  position: absolute;
  inset: auto 7px 2px;
  height: clamp(8px, 2.1vw, 12px);
  text-align: left;
  color: #645a4d;
  font: 600 clamp(7px, 1.6vw, 9px)/1.1 ui-monospace, Consolas, monospace;
  letter-spacing: .08em;
  background: repeating-linear-gradient(90deg, #8b8172 0 1px, transparent 1px 3px)
    right center / 13px 3px no-repeat;
}
.haolun-find-visual.haolun-find-stream {
  --lens-y: 26%;
  --travel: clamp(102px, 29vw, 135px);
  --lane: clamp(82px, 32vw, 153px);
  width: min(100%, 430px);
  height: clamp(167px, 46vw, 212px);
  margin-inline: auto;
  contain: layout paint;
}
.find-stream-lens, .find-stream-sample {
  position: absolute;
  top: var(--lens-y);
  left: 50%;
  box-sizing: border-box;
  pointer-events: none;
}
.find-stream-lens {
  width: clamp(48px, 13vw, 61px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: 2;
  border: 3px solid #faf6ee;
  border-radius: 50%;
  background: #b7a991 var(--find-query-image, url("/assets/home-editorial-20261008/chenille-photo-entry-240.webp")) center / cover no-repeat;
  box-shadow: 0 0 0 1px #928372, 0 0 0 5px #f8f3e8, 0 0 0 6px #bfb19c, 0 5px 15px #47372437;
}
.find-stream-lanes { position: absolute; inset: 0; }
.find-stream-sample {
  --x: -1; --turn: -13deg; --phase: -.15s;
  --photo: url("/assets/home-editorial-20261008/collection-25-entry-240.webp");
  width: clamp(37px, 10vw, 47px); aspect-ratio: 1;
  border: 2px solid #fcf8ee; border-radius: 5px;
  background: #ae9c83 var(--photo) center / cover no-repeat;
  box-shadow: 0 3px 6px #4c3f303e;
  transform: translate(-50%, -50%) translate(calc(var(--x) * var(--lane)), var(--travel)) rotate(var(--turn));
}
.find-stream-sample:nth-child(2) { --x: .52; --turn: 11deg; --phase: -.59s; --photo: url("/assets/home-editorial-20261008/collection-26-entry-240.webp"); }
.find-stream-sample:nth-child(3) { --x: 0; --turn: -6deg; --phase: -1.03s; --photo: url("/assets/home-editorial-20261008/chenille-photo-entry-240.webp"); }
.find-stream-sample:nth-child(4) { --x: -.52; --turn: -9deg; --phase: -1.47s; --photo: url("/assets/home-editorial-20261008/linen-photo-entry-240.webp"); }
.find-stream-sample:nth-child(5) { --x: 1; --turn: 13deg; --phase: -1.91s; --photo: url("/assets/home-editorial-20261008/wool-photo-entry-240.webp"); }
.find-stream-sample:nth-child(6) { --x: -.78; --turn: 7deg; --phase: -.86s; --photo: url("/assets/home-editorial-20261008/velvet-user-photo-entry-240.webp"); }
.find-stream-sample:nth-child(7) { --x: .78; --turn: -8deg; --phase: -1.72s; --photo: url("/assets/home-editorial-20261008/fd-s1179-03-entry-240.webp"); }
@media (max-width: 760px) {
  .find-stream-sample:nth-child(n+6) { display: none; }
}
.haolun-find-activity {
  display: none;
  width: min(100%, 430px);
  margin: 14px auto 4px;
  pointer-events: none;
}
[data-entry-root][data-entry-activity] .haolun-find-activity { display: grid; }

.haolun-find-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(7px, 2.9vw, 15px);
  list-style: none;
  margin: 0;
  padding: 0;
  color: #493f33;
  font-size: clamp(13px, 3.65vw, 15px);
  font-weight: 600;
  line-height: 1.4;
}
.haolun-find-steps li { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; }
.haolun-find-steps li + li::before {
  display: block;
  flex: none;
  width: 5px;
  height: 5px;
  margin-right: 2px;
  border-top: 1px solid #928574;
  border-right: 1px solid #928574;
  transform: rotate(45deg);
  content: "";
}
@keyframes haolun-folio-assemble {
  from {
    opacity: 0.35;
    transform: translate(-50%, -50%) translate(var(--from), var(--from-y)) rotate(var(--from-angle));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) translate(var(--slot), var(--lift)) rotate(var(--angle));
  }
}
@keyframes haolun-stream-inward {
  0% { opacity: 0; transform: translate(-50%, -50%) translate(calc(var(--x) * var(--lane)), var(--travel)) rotate(var(--turn)) scale(1); }
  12%, 70% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) translate(0, 0) rotate(0deg) scale(.2); }
}
/* Without motion support/preferences we render the finished, legible arrangement. */
@media (prefers-reduced-motion: no-preference) {
  .haolun-find-intro .haolun-find-tile {
    animation: haolun-folio-assemble 700ms cubic-bezier(.18,.77,.23,1) var(--delay) backwards;
  }
  [data-entry-activity="cloud-search"] .haolun-find-activity .find-stream-sample,
  .haolun-find-stream.is-processing .find-stream-sample {
    animation: haolun-stream-inward 2.2s cubic-bezier(.35,.08,.56,.92) var(--phase) infinite;
  }
}
@media (min-width: 761px) {
  .haolun-find-intro { gap: 16px; }
}
