:root {
  --paper: #f7f7f5;
  --surface: #ffffff;
  --line: #d9d9d5;
  --dark: #111111;
  --white: #ffffff;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-enter: cubic-bezier(0, 0, 0.2, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);

  /* Ink tiers — black @ opacity on light paper (Figma Ink/100..30) */
  --ink-100: rgba(0, 0, 0, 1);
  --ink-80: rgba(0, 0, 0, 0.8);
  --ink-65: rgba(0, 0, 0, 0.65);
  --ink-45: rgba(0, 0, 0, 0.45);
  --ink-30: rgba(0, 0, 0, 0.3);

  /* Type scale — same 8-step px scale as 点点2.0/3.0 */
  --fs-h1: 38.5px;
  --fs-h2: 28.9px;
  --fs-t1: 23.1px;
  --fs-h3: 18.3px;
  --fs-body: 14.4px;
  --fs-eyebrow: 13.5px;
  --fs-nav: 11.6px;
  --fs-label: 10.6px;

  /* Moodie accent — from Figma hero gradient */
  --accent: #4d6bff;
  --accent-2: #8b5cf6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-100);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(247, 247, 245, 0.92);
  backdrop-filter: blur(16px);
}

.topbar a,
.topbar span {
  color: var(--ink-100);
  font: 400 var(--fs-nav)/1.5 var(--mono);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.topbar__back:hover,
.topbar__title:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-shell {
  display: grid;
  grid-template-columns: 176px minmax(0, 1120px);
  gap: clamp(36px, 6vw, 96px);
  width: min(100% - 56px, 1416px);
  margin: 0 auto;
  padding-top: 56px;
}

.case-index {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 74px;
}

.case-index__title {
  margin: 0 0 12px;
  color: var(--ink-45);
  font: 400 var(--fs-label)/1 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.case-index a {
  position: relative;
  color: var(--ink-45);
  font: 400 var(--fs-nav)/1.5 var(--mono);
  text-decoration: none;
  transition: color 180ms ease;
}

.case-index a::before {
  position: absolute;
  top: 0.65em;
  left: -18px;
  width: 8px;
  height: 1px;
  background: var(--ink-100);
  content: "";
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.case-index a:hover,
.case-index a.is-active { color: var(--ink-100); }

.case-index a.is-active::before {
  opacity: 1;
  transform: none;
}

.case-main { min-width: 0; }

.hero {
  padding: clamp(72px, 9vw, 124px) 0 clamp(64px, 8vw, 96px);
}

.hero__heading { max-width: 800px; }

.eyebrow,
.caption {
  margin: 0;
  color: var(--ink-65);
  font: 400 var(--fs-eyebrow)/1.4 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0;
  color: var(--ink-100);
  font-family: "Alibaba PuHuiTi 3.0", var(--sans);
  font-size: var(--fs-h1);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.hero__dek {
  max-width: 700px;
  margin: 0;
  color: var(--ink-80);
  font-size: var(--fs-h3);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: clamp(52px, 7vw, 84px) 0 36px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-meta div { min-width: 0; }

.project-meta dt {
  margin-bottom: 8px;
  color: var(--ink-30);
  font: 400 var(--fs-label)/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-meta dd {
  margin: 0;
  color: var(--ink-100);
  font-size: var(--fs-body);
  line-height: 1.5;
}

.media { margin: 0; }
.media img { width: 100%; height: auto; }

.media--board {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

/* ---------- Hero carousel: 576/360 media window, crossfade ---------- */
.media--hero.hero-carousel {
  overflow: hidden;
  min-height: 0;
  padding: clamp(32px, 5vw, 56px);
  background: linear-gradient(155deg, #1c6dff 0%, #3fa9f5 45%, #eaf6ee 100%);
}

.hero-carousel__stage {
  position: relative;
  height: 576px;
}

.hero-carousel__stage .hero-carousel__img {
  position: absolute;
  inset: 0;
  margin: 0 auto;
  max-width: min(100%, 320px);
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.28));
  opacity: 0;
  transition: opacity 900ms var(--ease-enter);
}

.hero-carousel__stage .hero-carousel__img.is-active {
  opacity: 1;
  transition: opacity 900ms var(--ease-enter);
}

/* first slide is a live animated demo (hero-moodie-loop.html) instead of a screenshot —
   wrapper just centers it; the drop-shadow + scaling live on the iframe itself so the
   shadow hugs the phone shape rather than a full 320px-wide box. */
.hero-carousel__stage .hero-carousel__img.hero-carousel__anim {
  max-width: none;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: none;
}

.hero-carousel__anim-frame {
  flex: none;
  width: 402px;
  height: 874px;
  border: 0;
  border-radius: 46px;
  transform: scale(0.659); /* 576 / 874 — matches the stage's 576px-tall window */
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

@media (max-width: 720px) {
  .hero-carousel__stage { height: 360px; }
  .hero-carousel__anim-frame { transform: scale(0.412); } /* 360 / 874 */
}

/* ---------- Three-second summary strip ---------- */
.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 clamp(64px, 8vw, 96px);
  background: var(--line);
  border: 1px solid var(--line);
  counter-reset: summary-index;
}

.summary-strip p {
  margin: 0;
  padding: 28px 24px;
  background: var(--surface);
  color: var(--ink-80);
  font-size: var(--fs-body);
  line-height: 1.6;
  counter-increment: summary-index;
}

.summary-strip p::before {
  display: block;
  margin-bottom: 12px;
  color: var(--ink-45);
  font: 400 var(--fs-label)/1 var(--mono);
  content: "0" counter(summary-index);
}

.section {
  padding: clamp(76px, 9vw, 112px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 72px;
}

.chapter-title {
  position: relative;
  max-width: 900px;
  margin-bottom: clamp(56px, 7vw, 84px);
}

.chapter-title h2 {
  margin: 18px 0 0;
  color: var(--ink-100);
  font-size: var(--fs-h2);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.chapter-title__intro {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--ink-65);
  font-size: var(--fs-body);
  line-height: 1.75;
}

.prose { max-width: 760px; }

.prose p {
  margin: 0 0 18px;
  color: var(--ink-65);
  font-size: var(--fs-body);
  line-height: 1.8;
}

.prose-line {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--ink-65);
  font-size: var(--fs-body);
  line-height: 1.8;
}

.pull-quote {
  max-width: 820px;
  margin: 32px 0 0;
  color: var(--ink-100);
  font-size: var(--fs-t1);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.pull-quote--strong {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.pull-quote--small {
  font-size: var(--fs-h3);
}

.media-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(48px, 6vw, 72px);
}

.media-pair__caption {
  margin: 12px 0 0;
  color: var(--ink-45);
  font-size: var(--fs-label);
  line-height: 1.6;
}

/* research stats: a few headline numbers pulled from the survey instead of screenshotted
   charts — signals "we surveyed this" without turning it into a centerpiece.
   Same bordered-card-grid technique as .summary-strip (and 点点2.0's .stat-grid):
   1px gap + var(--line) background shows through as hairline dividers/border. */
.research-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(40px, 5vw, 56px);
  background: var(--line);
  border: 1px solid var(--line);
}

.research-stat {
  padding: clamp(36px, 5vw, 56px) clamp(16px, 2vw, 20px);
  background: var(--surface);
}

.research-stat__num {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: "Alibaba PuHuiTi 3.0", var(--sans);
  font-size: var(--fs-h1);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.research-stat__label {
  margin: 0;
  color: var(--ink-65);
  font-size: var(--fs-label);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .research-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 02 Flip cards (pain -> direction, time-based transition) ---------- */
.flip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(56px, 7vw, 84px);
  perspective: 1400px;
}

.flip-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.flip-card__inner {
  position: relative;
  min-height: 320px;
  transform-style: preserve-3d;
  transition: transform 900ms var(--ease-enter);
}

.flip-card.is-flipped .flip-card__inner {
  transform: rotateY(180deg);
  transition: transform 900ms var(--ease-exit);
}

.flip-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 28px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.flip-card__evidence {
  display: block;
  overflow: hidden;
  height: 96px;
  margin: -28px -28px 24px;
  background: var(--paper);
}

.flip-card__evidence img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.flip-card__face--front .icon-cluster {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.flip-card__face--front .icon-cluster img {
  width: 22px;
  height: 22px;
  margin: 0;
  border-radius: 6px;
}

.flip-card__face--back {
  transform: rotateY(180deg);
  background: var(--dark);
  color: var(--white);
}

.flip-card__icon {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
}

.flip-card__icon img { width: 100%; height: 100%; object-fit: contain; }

.flip-card__face h3 {
  margin: 0 0 8px;
  font-size: var(--fs-h3);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.flip-card__face--front h3 { color: var(--ink-100); }
.flip-card__face--back h3 { color: var(--white); }

.flip-card__face p {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.7;
}

.flip-card__face--front p { color: var(--ink-65); }
.flip-card__face--back p { color: #b5b5b5; }

.flip-card__face--back .caption { color: #8892ff; margin-bottom: 4px; }

.flip-hint {
  margin: 16px 0 0;
  color: var(--ink-30);
  font: 400 var(--fs-label)/1 var(--mono);
  text-align: center;
}

/* ---------- 03 Insight blocks ---------- */
.insight-block { margin-bottom: clamp(80px, 10vw, 120px); }
.insight-block .pull-quote { margin-top: 20px; }
.insight-block .media--board { margin-top: clamp(40px, 5vw, 56px); }

/* Journey map + emotion curve */
.journey { margin-bottom: clamp(80px, 10vw, 120px); }

.journey h3 {
  max-width: 700px;
  margin: 16px 0 0;
  color: var(--ink-100);
  font-size: var(--fs-h3);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.journey-track {
  position: relative;
  height: 220px;
  margin: clamp(56px, 7vw, 80px) 0 32px;
}

.journey-curve {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.journey-curve__path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  transition: stroke-dashoffset 1600ms var(--ease-enter);
}

.journey.is-active .journey-curve__path { stroke-dashoffset: 0; }

.journey-stage {
  position: absolute;
  top: var(--y, 50%);
  left: var(--x);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 144px;
  margin-left: -72px;
  text-align: center;
  transform: translateY(-50%);
}

.journey-stage__emoji {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 20px;
}

.journey-stage p {
  margin: 0;
  color: var(--ink-65);
  font-size: var(--fs-label);
  line-height: 1.5;
}

.journey-bubble {
  position: absolute;
  top: 100%;
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: 12px 12px 12px 2px;
  background: var(--dark);
  color: var(--white);
  font-size: var(--fs-label);
  line-height: 1.5;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 500ms var(--ease-enter), transform 500ms var(--ease-enter);
  transition-delay: var(--delay, 0ms);
}

.journey.is-active .journey-bubble {
  opacity: 1;
  transform: none;
}

.potential-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 40px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.potential-list li {
  position: relative;
  padding-left: 16px;
  color: var(--ink-65);
  font-size: var(--fs-body);
  line-height: 1.6;
}

.potential-list li::before {
  position: absolute;
  left: 0;
  content: "\2192";
  color: var(--accent);
}

/* Market matrix */
.market-block { margin-bottom: clamp(80px, 10vw, 120px); }

.market-block h3 {
  max-width: 700px;
  margin: 16px 0 0;
  color: var(--ink-100);
  font-size: var(--fs-h3);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.market-matrix {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  margin: clamp(56px, 7vw, 80px) 0;
}

.market-matrix__axis {
  color: var(--ink-30);
  font: 400 var(--fs-label)/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.market-matrix__axis--top {
  grid-row: 1;
  grid-column: 2;
}

.market-matrix__axis--bottom {
  grid-row: 3;
  grid-column: 2;
}

.market-matrix__axis--left,
.market-matrix__axis--right {
  grid-row: 2;
  writing-mode: vertical-rl;
  align-self: center;
  white-space: nowrap;
}

.market-matrix__axis--left {
  grid-column: 1;
  transform: rotate(180deg);
}

.market-matrix__axis--right { grid-column: 3; }

.market-matrix__grid {
  grid-row: 2;
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.market-matrix__quad {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
}

.market-matrix__quad img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  filter: grayscale(1);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 500ms var(--ease-enter), transform 500ms var(--ease-enter), filter 300ms ease;
  transition-delay: var(--d, 0ms);
}

.market-matrix__quad img:hover { filter: grayscale(0); }

.market-block.is-active .market-matrix__quad img {
  opacity: 1;
  transform: none;
}

.market-matrix__quad--gap {
  position: relative;
}

.market-matrix__gap-label {
  color: var(--ink-45);
  font: 400 var(--fs-label)/1.6 var(--mono);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.market-matrix__quad--gap::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 107, 255, 0.16), transparent 70%);
  opacity: 0;
  animation: none;
}

.market-block.is-active .market-matrix__quad--gap::before {
  opacity: 1;
  animation: matrix-breathe 2600ms ease-in-out 1200ms infinite;
}

@keyframes matrix-breathe {
  0%, 100% { transform: scale(0.92); opacity: 0.5; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* Conclusion: three-step flow */
.conclusion-block .caption { display: block; margin-bottom: 16px; }

.conclusion-block h3 {
  max-width: 780px;
  margin: 0 0 16px;
  color: var(--ink-100);
  font-size: var(--fs-h3);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.5;
}

.flow-progress { margin-top: clamp(48px, 6vw, 64px); }

.flow-progress__bar {
  height: 3px;
  margin-bottom: 32px;
  background: var(--line);
}

.flow-progress__fill {
  display: block;
  height: 100%;
  width: 33.33%;
  background: var(--accent);
  transition: width 500ms var(--ease-enter);
}

.flow-progress__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-progress__list li {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 260ms ease;
}

.flow-progress__list li span {
  color: var(--ink-45);
  font: 400 var(--fs-label)/1 var(--mono);
}

.flow-progress__list li h4 {
  margin: 8px 0 0;
  color: var(--ink-65);
  font-size: var(--fs-body);
  font-weight: 400;
  transition: color 260ms ease;
}

.flow-progress__list li.is-active {
  border-color: var(--ink-100);
}

.flow-progress__list li.is-active h4 { color: var(--ink-100); }

/* step 01 preview: 3 stacked cards, center one holds still, the two side ones fan out on
   hover — simplest possible version, pure CSS transform/transition, no JS. */
.flow-fan {
  position: relative;
  height: 196px;
  margin-top: 20px;
}

.flow-fan__card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 144px;
  height: 180px;
  opacity: 0;
  transform-origin: bottom center;
  transform: translateX(-50%);
  transition: transform 420ms var(--ease-enter), opacity 300ms ease;
}
.flow-progress__list li.is-active .flow-fan__card { opacity: 1; }

/* these source PNGs are already complete, correctly-rounded cards (real transparent
   corners baked into the export) — no cropping needed, just show them as-is. Shadow
   uses drop-shadow (follows the image's actual rounded alpha shape) instead of
   box-shadow (which would draw a plain rectangle behind the rounded corners). */
.flow-fan__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}

.flow-fan__card--center { z-index: 2; }
.flow-fan__card--left,
.flow-fan__card--right { z-index: 1; }

/* pivot from the bottom edge like cards fanning open in a hand, tilted slightly */
.flow-progress__list li.is-active .flow-fan__card--left { transform: translateX(calc(-50% - 20px)) rotate(-18deg); }
.flow-progress__list li.is-active .flow-fan__card--right { transform: translateX(calc(-50% + 20px)) rotate(18deg); }

/* step 02 preview: the hero's search-box reveal, copied as-is (same values as
   moodie-full-flow.html's .reveal-search*) and scaled down to fit the column.
   Gated on li:hover instead of [data-cascade="on"] — everything else untouched. */
.flow-search-demo {
  margin-top: 28px;
}

.flow-search-demo__box {
  position: relative;
  width: 240px;
  height: 38px;
}

.reveal-search {
  position: absolute;
  top: 0;
  left: 0;
  width: 354px;
  height: 56px;
  transform: scale(0.678);
  transform-origin: left top;
}
.reveal-search__shape {
  position: absolute;
  inset: 0;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform-origin: 92.3% 50%;
  transform: scaleX(0.001);
  opacity: 0;
}
.flow-progress__list li.is-active .reveal-search__shape {
  animation: searchShapeGrow 520ms cubic-bezier(0.22, 1, 0.36, 1) 150ms forwards;
}
@keyframes searchShapeGrow {
  0%   { transform: scaleX(0.001); opacity: 0.4; }
  100% { transform: scaleX(1); opacity: 1; }
}

.reveal-search__flow {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.flow-progress__list li.is-active .reveal-search__flow {
  animation: searchFlowAppear 250ms ease 680ms forwards;
}
@keyframes searchFlowAppear { to { opacity: 1; } }

.reveal-search__text {
  position: absolute;
  left: 24px; top: 50%;
  transform: translateY(-50%);
  margin: 0;
  font: 400 14px/22px "PingFang SC", sans-serif;
  letter-spacing: 0.7px;
  color: #a3a3a3;
  white-space: nowrap;
  opacity: 0;
}
.flow-progress__list li.is-active .reveal-search__text {
  animation:
    searchTextFade 320ms ease 500ms forwards,
    searchTextHide 1ms linear 1400ms forwards;
}
@keyframes searchTextFade { to { opacity: 1; } }
@keyframes searchTextHide { to { opacity: 0; } }

/* once the box has finished revealing, the placeholder above hands off to Moodie
   actually typing out a real query — plain width-reveal typewriter, one step per
   character (13 characters in "Moodie，帮我生成路线"). Lives as a sibling of the
   scaled .reveal-search (not inside it), so its 16px is a real 16px on screen
   instead of getting diluted by that component's 0.678 scale-down. */
.reveal-search__typed {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.flow-search-demo .reveal-search__typed span {
  display: inline-block;
  font: 400 12px/22px "PingFang SC", sans-serif;
  letter-spacing: 0.7px;
  color: var(--ink-100);
}
.flow-progress__list li.is-active .reveal-search__typed {
  animation: searchTyping 900ms steps(13, end) 1400ms forwards;
}
@keyframes searchTyping { to { width: 136px; } }

.reveal-search__ring {
  position: absolute;
  right: 11.5px; top: 50%;
  width: 31.4px;
  height: 27.5px;
  transform: translateY(-50%) rotate(150deg) scale(0.4);
  opacity: 0;
}
.flow-progress__list li.is-active .reveal-search__ring {
  animation:
    searchRingGrow 450ms ease-out 250ms forwards,
    searchRingBreathe 2600ms ease-in-out 700ms infinite;
}
@keyframes searchRingGrow {
  0%   { opacity: 0; transform: translateY(-50%) rotate(150deg) scale(0.4); }
  100% { opacity: 1; transform: translateY(-50%) rotate(150deg) scale(1); }
}
@keyframes searchRingBreathe {
  0%, 100% { transform: translateY(-50%) rotate(150deg) scale(1); }
  50%      { transform: translateY(-50%) rotate(150deg) scale(1.08); }
}

/* step 03 preview: pins pop in, then the two route segments draw themselves in one
   after another, then the time badge pops in last. Positions/gradients/shapes copied
   from the Figma node as-is (105.99×216 canvas) inside a scaled reserved box, same
   pattern as steps 01/02. Route line uses SVG pathLength=1 so stroke-dashoffset can
   animate 1→0 as a plain draw-on effect regardless of the path's real geometry. */
.flow-route-demo {
  width: 90px;
  height: 184px;
  margin-top: 20px;
  overflow: hidden;
}
.flow-route-demo__canvas {
  position: relative;
  width: 106px;
  height: 216px;
  transform: scale(0.85);
  transform-origin: left top;
}

.flow-route-demo__line {
  position: absolute;
  left: 0;
  top: 18px;
}
.flow-route-demo__path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.flow-progress__list li.is-active .flow-route-demo__path--1 {
  animation: routeLineDraw 500ms ease 650ms forwards;
}
.flow-progress__list li.is-active .flow-route-demo__path--2 {
  animation: routeLineDraw 500ms ease 1150ms forwards;
}
@keyframes routeLineDraw { to { stroke-dashoffset: 0; } }

.flow-route-demo__pin {
  position: absolute;
  width: 28.269px;
  height: 35px;
  opacity: 0;
  transform: scale(0.4) translateY(8px);
}
.flow-route-demo__pin--bottom { left: 9.73px; top: 181px; }
.flow-route-demo__pin--middle { left: 18.73px; top: 98px; }
.flow-route-demo__pin--top    { left: 77.73px; top: 0; }
.flow-progress__list li.is-active .flow-route-demo__pin--bottom { animation: routePinPop 380ms cubic-bezier(0.34, 1.56, 0.64, 1) 0ms forwards; }
.flow-progress__list li.is-active .flow-route-demo__pin--middle { animation: routePinPop 380ms cubic-bezier(0.34, 1.56, 0.64, 1) 120ms forwards; }
.flow-progress__list li.is-active .flow-route-demo__pin--top    { animation: routePinPop 380ms cubic-bezier(0.34, 1.56, 0.64, 1) 240ms forwards; }
@keyframes routePinPop {
  0%   { opacity: 0; transform: scale(0.4) translateY(8px); }
  60%  { opacity: 1; transform: scale(1.12) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.flow-route-demo__pin-shadow {
  position: absolute;
  left: 33.3%; right: 33.3%; bottom: 0; height: 12%;
}
.flow-route-demo__pin-shape {
  position: absolute;
  inset: 0 0 3.85% 0;
  width: 100%; height: 96.15%;
}
.flow-route-demo__pin-icon {
  position: absolute;
  left: 50%; top: 42%;
  width: 18px; height: 18px;
  transform: translate(-50%, -50%);
}

.flow-route-demo__badge {
  position: absolute;
  left: 41.98px; top: 57.03px;
  width: 52.496px; height: 22.9436px;
  opacity: 0;
  transform: scale(0.5);
}
.flow-progress__list li.is-active .flow-route-demo__badge {
  animation: routeBadgePop 400ms cubic-bezier(0.34, 1.56, 0.64, 1) 1700ms forwards;
}
@keyframes routeBadgePop {
  0%   { opacity: 0; transform: scale(0.5); }
  60%  { opacity: 1; transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}
.flow-route-demo__badge-outer {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.flow-route-demo__badge-inner {
  position: absolute;
  left: 50%; bottom: 3.41px;
  transform: translateX(-50%);
  width: 50.391px; height: 18.392px;
  display: block;
}
.flow-route-demo__badge-text {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font: 400 10px/1 "PingFang SC", sans-serif;
  color: #404040;
  white-space: nowrap;
}

/* ---------- 04 Product ---------- */
/* Solution block: one screen on the left, numbered list on the right
   (reused from 点点3.0's result-section pattern). The three flows share
   ONE stage — clicking a list item crossfades in that flow's video.
   Poster shows a representative screen until the real screen recording
   is dropped in and each <source> is wired up. */
.solution-block {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(48px, 8vw, 96px);
  align-items: center;
  margin: clamp(48px, 6vw, 64px) 0 0;
}

.solution-block__stage {
  position: relative;
  height: 576px;
  padding: 0;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-prototype {
  position: relative;
  width: auto;
  height: 576px;
  aspect-ratio: 393 / 853;
  margin: 0 auto;
  overflow: hidden;
  border: 1.5px solid rgba(0, 0, 0, 0.35);
  border-radius: 48px;
  -webkit-clip-path: url(#flow-screen-squircle);
  clip-path: url(#flow-screen-squircle);
  background: #f3f3f3;
  isolation: isolate;
}

.flow-prototype__clip-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.solution-block__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--paper);
  color: var(--ink-45);
  font: 400 var(--fs-label)/1 var(--mono);
  letter-spacing: 0.04em;
}

.solution-block__video {
  /* flow1/2/3.mp4 are exported on a padded 2846x2462 canvas with the real
     393x853 phone screen sitting inside at roughly (967,335)-(1770,2030) —
     measured pixel-by-pixel from the source recordings (with a small extra
     inset on top/bottom to clear compression noise at the black/white
     edge), not eyeballed. These values zoom past that baked-in padding so
     only the screen content shows. */
  position: absolute;
  width: 354.42%;
  height: 145.28%;
  left: -120.42%;
  top: -19.76%;
  max-width: none;
  border: 0;
  border-radius: inherit;
  background: #f3f3f3;
  opacity: 0;
  transition: opacity 500ms var(--ease-enter);
}

.solution-block__video.is-active { opacity: 1; }

.solution-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.solution-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding 260ms var(--ease-enter), background 180ms ease;
}

.solution-list li.is-active {
  padding-right: 16px;
  padding-left: 16px;
  background: #f1f1ef;
}

.solution-list li:focus-visible {
  outline: 1px solid var(--ink-100);
  outline-offset: 3px;
}

.solution-list li span {
  color: var(--ink-45);
  font: 400 var(--fs-label)/1 var(--mono);
}

.solution-list li h3 {
  margin: 0 0 8px;
  color: var(--ink-100);
  font-size: var(--fs-body);
  font-weight: 400;
}

.solution-list li p {
  margin: 0;
  color: var(--ink-65);
  font-size: var(--fs-body);
  line-height: 1.65;
}

.case-end-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: clamp(72px, 9vw, 112px);
  padding: 24px 0;
  border-top: 1px solid var(--ink-100);
}

.case-end-nav span,
.case-end-nav a {
  color: var(--ink-45);
  font: 400 var(--fs-label)/1.5 var(--mono);
  text-decoration: none;
}

.case-end-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-enter), transform 700ms var(--ease-enter);
}

[data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

@media (max-width: 1040px) {
  .page-shell {
    display: block;
    width: min(100% - 40px, 920px);
  }

  .case-index { display: none; }

  .flip-grid { grid-template-columns: 1fr; }
  .solution-block { grid-template-columns: 1fr; }
  .media-pair { gap: 16px; }
  .potential-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar { min-height: 52px; padding: 0 18px; }
  .topbar__title { display: none; }

  .page-shell { width: min(100% - 32px, 620px); padding-top: 52px; }

  .hero { padding-top: 56px; }
  .hero h1 { font-size: 32px; }
  .hero__dek { font-size: 16px; }

  .project-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }

  .summary-strip { grid-template-columns: 1fr; }

  .media-pair { grid-template-columns: 1fr; }

  .flip-card__inner { min-height: 280px; }

  .journey-track { height: 380px; }
  .journey-stage { position: static; margin: 0 0 20px; transform: none; width: 100%; }
  .journey-bubble { position: static; margin-top: 8px; white-space: normal; }
  .journey-curve { display: none; }

  .market-matrix__grid { grid-template-rows: repeat(2, minmax(140px, 1fr)); }
  .market-matrix__quad img { width: 34px; height: 34px; }

  .flow-progress__list { grid-template-columns: 1fr; gap: 16px; }

  .solution-block__stage { height: 360px; }
  .flow-prototype { height: 360px; border-radius: 38px; }
  .solution-list li { grid-template-columns: 24px 1fr; gap: 12px; }

  .case-end-nav { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] { opacity: 1; transform: none; }
}
