@import url("https://fonts.googleapis.com/css2?family=Tulpen+One&display=swap");

:root {
  --ink: #101117;
  --muted: #6f7380;
  --line: #e8e9ed;
  --blue: #3e68f4;
  --pale-blue: #e9efff;
  --page-pad: clamp(24px, 5vw, 84px);
  --content: 1240px;
  --sidebar-width: 429px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family:
    Inter, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Discourage saving or copying portfolio media through standard browser gestures. */
.media-protected {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
}

/* Android and embedded browsers may ignore touch-callout on replaced elements.
   Let their existing wrapper receive taps so native long-press image detection
   cannot target the media node itself. */
img.media-protected,
picture.media-protected,
video.media-protected,
canvas.media-protected,
svg.media-protected {
  pointer-events: none;
}

/* Zhongshan container park image gallery */
.other-project-detail {
  min-height: 100vh;
  background: #f2f2f2;
  color: #090909;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.other-project-detail .site-header {
  position: fixed;
  right: 0;
  left: 0;
}

.other-project-main {
  min-height: 100vh;
  padding: 112px 0 115px;
}

.other-project-gallery {
  width: min(var(--content), calc(100% - var(--page-pad) * 2));
  margin: 0 auto;
  container-type: inline-size;
}

.other-project-intro {
  margin: 0 0 clamp(6px, 0.891cqw, 11px);
}

.other-project-intro h1 {
  margin: 0 0 clamp(2px, 0.334cqw, 4px);
  font-size: clamp(19px, 2.673cqw, 33.14px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.45;
}

.other-project-intro p {
  margin: 0;
  font-size: clamp(11px, 1.225cqw, 15.16px);
  font-weight: 300;
  line-height: 1.6;
}

.gallery-stage {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 898 / 519;
  overflow: hidden;
  place-items: center;
  background: #fff;
  touch-action: pan-y;
}

.other-project-gallery--edge-image .gallery-stage {
  background: transparent;
}

.other-project-gallery--edge-image .gallery-main-image,
.other-project-gallery--edge-image .gallery-main-video,
.other-project-gallery--edge-image .gallery-sequence-frame {
  object-fit: cover;
}

.gallery-main-image,
.gallery-main-video,
.gallery-main-sequence {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: opacity 180ms ease;
}

.gallery-main-image {
  object-fit: contain;
}

.gallery-main-video {
  object-fit: contain;
  background: #fff;
}

.gallery-main-sequence {
  overflow: hidden;
  background: #fff;
}

.gallery-main-sequence[hidden],
.gallery-main-video[hidden],
.gallery-main-image[hidden] {
  display: none;
}

.gallery-main-image.is-changing,
.gallery-main-video.is-changing,
.gallery-main-sequence.is-changing {
  opacity: 0.38;
}

.gallery-sequence-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  animation: gallerySequenceCut 17s infinite;
  animation-delay: calc(var(--sequence-index, 0) * 2s);
}

.gallery-sequence-frame--last {
  animation-name: gallerySequenceCutLast;
}

@keyframes gallerySequenceCut {
  0% {
    opacity: 1;
  }

  11.764% {
    opacity: 1;
  }

  11.765% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes gallerySequenceCutLast {
  0% {
    opacity: 1;
  }

  17.646% {
    opacity: 1;
  }

  17.647% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  width: clamp(40px, 5.345cqw, 66.24px);
  height: clamp(40px, 5.345cqw, 66.24px);
  padding: 0;
  color: rgba(35, 35, 35, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  background: rgba(175, 175, 175, 0.56);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(125%);
  transform: translateY(-50%);
  cursor: pointer;
  place-items: center;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.gallery-arrow:hover {
  color: #111;
  background: rgba(220, 220, 220, 0.72);
  transform: translateY(-50%) scale(1.04);
}

.gallery-arrow--previous {
  left: clamp(8px, 1.559cqw, 19.33px);
}

.gallery-arrow--next {
  right: clamp(8px, 1.559cqw, 19.33px);
}

.gallery-arrow svg {
  width: clamp(21px, 2.784cqw, 34.5px);
  height: clamp(21px, 2.784cqw, 34.5px);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.gallery-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: clamp(20px, 3.007cqw, 37.2px) 0 clamp(4px, 0.557cqw, 6.9px);
}

.gallery-heading h2,
.gallery-heading p {
  margin: 0;
  font-size: clamp(11px, 1.225cqw, 15.16px);
  font-weight: 400;
  line-height: 1.4;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(2px, 0.223cqw, 2.76px);
}

.gallery-thumbnail {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1;
  border: 0;
  background: #fff;
  cursor: pointer;
}

.gallery-thumbnail::after {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  content: "";
  pointer-events: none;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.gallery-thumbnail:hover::after {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.86);
}

.gallery-thumbnail.is-active::after {
  border-color: #fff;
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 180ms ease, transform 220ms ease;
}

.gallery-thumbnail.is-active img {
  opacity: 1;
}

.gallery-thumbnail:hover img {
  opacity: 0.78;
  transform: scale(1.025);
}

.gallery-thumbnail.is-active:hover img {
  opacity: 1;
}

.gallery-arrow:focus-visible,
.gallery-thumbnail:focus-visible {
  outline: 2px solid #3e68f4;
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .other-project-main {
    padding-top: 94px;
  }

  .other-project-intro h1 {
    letter-spacing: -0.025em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-main-image,
  .gallery-main-sequence,
  .gallery-sequence-frame,
  .gallery-arrow,
  .gallery-thumbnail::after,
  .gallery-thumbnail img {
    animation: none;
    transition: none;
  }

  .gallery-sequence-frame:first-child {
    opacity: 1;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 var(--page-pad);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.header-start {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-drawer-toggle {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 9px 7px;
  place-content: center;
  gap: 5px;
  color: var(--ink);
  border: 0;
  background: transparent;
  cursor: pointer;
}

.profile-drawer-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  transition:
    transform 240ms ease,
    opacity 180ms ease;
}

.profile-drawer-toggle:hover {
  color: var(--blue);
}

.project-back-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  flex: 0 0 38px;
  place-items: center;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.project-back-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.project-back-button:hover {
  color: var(--blue);
  border-color: #d9e3ff;
  background: #f4f7ff;
  transform: translateX(-2px);
}

.project-back-button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.profile-drawer-toggle:focus-visible,
.profile-drawer-close:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

body.profile-drawer-open .profile-drawer-toggle span:first-child {
  transform: translateY(6px) rotate(45deg);
}

body.profile-drawer-open .profile-drawer-toggle span:nth-child(2) {
  opacity: 0;
}

body.profile-drawer-open .profile-drawer-toggle span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.brand-name {
  font-size: 26px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.3vw, 36px);
  color: var(--muted);
  font-size: 14px;
}

.language-toggle {
  position: relative;
  padding: 25px 0;
  color: inherit;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: color 180ms ease;
}

.language-toggle::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--ink);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.language-toggle:hover {
  color: var(--ink);
}

.language-toggle:hover::after {
  transform: scaleX(1);
}

.language-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.site-nav a {
  position: relative;
  padding: 25px 0;
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  background: var(--ink);
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav .active {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav .active::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 38px;
  height: 38px;
  padding: 10px 7px;
  border: 0;
  background: transparent;
}

.menu-button span {
  display: block;
  height: 1px;
  margin: 5px 0;
  background: var(--ink);
}

.page-shell {
  margin-left: var(--sidebar-width);
}

.profile-sidebar {
  position: fixed;
  z-index: 15;
  top: 76px;
  bottom: 0;
  left: 0;
  display: flex;
  width: var(--sidebar-width);
  padding: 30px 18px 22px;
  overflow-y: auto;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #fff;
}

.profile-intro {
  text-align: center;
}

.avatar-link {
  position: relative;
  display: block;
  width: 104px;
  height: 104px;
  margin: 0 auto 12px;
}

.profile-avatar {
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  border: 1px solid #e3e4e8;
  border-radius: 50%;
  background: #f1f1f1;
}

.availability {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0 0 9px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 650;
}

.availability svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.profile-intro h2 {
  margin: 0 0 7px;
  font-size: 23px;
  font-weight: 680;
  letter-spacing: -0.04em;
}

.profile-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.profile-location svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.profile-role {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 650;
}

.message-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  margin-top: 34px;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.message-button:hover {
  background: #24262d;
  box-shadow: 0 9px 22px rgba(15, 18, 25, 0.18);
  transform: translateY(-1px);
}

.message-button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.message-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

body.private-message-open {
  overflow: hidden;
}

.private-message-modal[hidden] {
  display: none;
}

.private-message-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
}

.private-message-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 25, 0.46);
  backdrop-filter: blur(8px);
}

.private-message-dialog {
  position: relative;
  width: min(520px, 100%);
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(12, 18, 32, 0.2);
}

.private-message-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f2f4f8;
  cursor: pointer;
}

.private-message-close span {
  position: absolute;
  width: 15px;
  height: 1px;
  background: var(--ink);
}

.private-message-close span:first-child {
  transform: rotate(45deg);
}

.private-message-close span:last-child {
  transform: rotate(-45deg);
}

.private-message-close:hover {
  background: #e9eeff;
}

.private-message-close:focus-visible,
.private-message-form input:focus-visible,
.private-message-form textarea:focus-visible,
.private-message-submit:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.private-message-eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.14em;
}

.private-message-dialog h2 {
  margin: 0;
  font-size: clamp(31px, 5vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.private-message-privacy {
  margin: 16px 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.private-message-form {
  display: grid;
  gap: 18px;
}

.private-message-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 680;
}

.private-message-form input,
.private-message-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  border: 1px solid #dfe3eb;
  border-radius: 12px;
  background: #f8f9fb;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

.private-message-form input::placeholder,
.private-message-form textarea::placeholder {
  color: #9ba2b0;
}

.private-message-submit {
  min-height: 48px;
  margin-top: 2px;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  font: inherit;
  font-size: 14px;
  font-weight: 720;
  cursor: pointer;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.private-message-submit:hover {
  background: #154fe4;
  transform: translateY(-1px);
}

.profile-nav {
  display: grid;
  gap: 5px;
  margin-top: 11px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.profile-nav a {
  display: grid;
  min-height: 48px;
  padding: 0 12px;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 570;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.profile-nav a:hover {
  color: var(--ink);
  background: #f5f6f8;
}

.profile-nav a.active {
  color: var(--ink);
  background: #f3f4f7;
  font-weight: 700;
}

.profile-nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.profile-nav a > span {
  font-size: 13px;
}

.current-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.resume-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 16px 3px 3px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.resume-prompt:hover {
  color: var(--blue);
}

.resume-prompt b {
  font-size: 14px;
}

.profile-drawer-close {
  display: none;
}

.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 1;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  background:
    radial-gradient(circle at 67% 36%, rgba(103, 126, 255, 0.3), transparent 22%),
    linear-gradient(135deg, #f1f5ff 0%, #dde7ff 47%, #eef1ff 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(93, 111, 170, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 111, 170, 0.09) 1px, transparent 1px);
  background-size: 4.62cqw 4.62cqw;
  mask-image: linear-gradient(to right, transparent, #000 42%, #000);
}

.hero-content {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 10.25cqw;
  width: 79.5cqw;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
}

.eyebrow,
.section-index {
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero .eyebrow {
  margin-bottom: 0.72cqw;
  font-size: 0.65cqw;
}

.hero h1 {
  position: relative;
  max-width: 43cqw;
  margin: 0;
  font-size: 3.55cqw;
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 0.87;
  cursor: crosshair;
  user-select: none;
  touch-action: pan-y;
}

html[lang="zh-CN"] .hero h1 {
  width: 43cqw;
  max-width: none;
  font-size: 3.65cqw;
  letter-spacing: 0.19cqw;
  line-height: 1.08;
}

html[lang="zh-CN"] .hero h1 .ripple-line {
  padding: 0.04em 0 0.05em;
}

html[lang="zh-CN"] .hero h1 .ripple-character {
  overflow: visible;
}

.hero-pointer-glow {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 8cqw;
  aspect-ratio: 1;
  opacity: 0;
  border: 1px solid rgba(91, 111, 255, 0.2);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(77, 219, 255, 0.22) 0%,
    rgba(116, 104, 255, 0.13) 38%,
    rgba(171, 116, 240, 0.06) 58%,
    transparent 72%
  );
  filter: blur(1px);
  pointer-events: none;
  transform: translate3d(
      calc(var(--hero-pointer-x, 50%) - 50%),
      calc(var(--hero-pointer-y, 50%) - 50%),
      0
    )
    scale(0.82);
  transition:
    opacity 240ms ease,
    transform 180ms ease-out;
  will-change: transform, opacity;
}

.hero.is-pointer-active .hero-pointer-glow {
  opacity: 0.88;
  transform: translate3d(
      calc(var(--hero-pointer-x, 50%) - 50%),
      calc(var(--hero-pointer-y, 50%) - 50%),
      0
    )
    scale(1);
}

.ripple-character {
  display: inline-block;
  color: transparent;
  background-image: linear-gradient(
    100deg,
    #182763 0%,
    #4669ef 28%,
    #8d5fe8 55%,
    #31a9e6 78%,
    #254acb 100%
  );
  background-position: var(--gradient-offset, 0) center;
  background-size: var(--gradient-width, 850px) 100%;
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 5px 14px rgba(70, 92, 221, 0.08));
  transform: translate3d(var(--wave-x, 0), var(--wave-y, 0), 0) rotate(var(--wave-rotate, 0))
    scale(var(--wave-scale, 1));
  transform-origin: center 70%;
  transition:
    transform 520ms cubic-bezier(0.2, 0.75, 0.25, 1),
    filter 220ms ease;
  will-change: transform;
}

.ripple-line {
  display: block;
  width: max-content;
  white-space: nowrap;
}

.ripple-word {
  display: inline-block;
  white-space: nowrap;
}

.ripple-title.is-rippling .ripple-character {
  filter: drop-shadow(0 8px 18px rgba(77, 91, 224, 0.2));
  transition: transform 70ms linear;
}

.hero-description {
  max-width: 24cqw;
  margin: 1.05cqw 0 0;
  color: #5f6470;
  font-size: 0.9cqw;
  line-height: 1.55;
}

html[lang="zh-CN"] .hero-description {
  max-width: 38cqw;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.62cqw;
  margin-top: 1.15cqw;
  padding-bottom: 0.38cqw;
  border-bottom: 1px solid var(--ink);
  font-size: 0.72cqw;
  font-weight: 650;
}

.hero-link > span:last-child {
  transition: transform 180ms ease;
}

.hero-link:hover > span:last-child {
  transform: translateY(4px);
}

.hero-shape {
  position: absolute;
  z-index: -1;
  top: -4%;
  right: 19%;
  width: 26cqw;
  aspect-ratio: 1;
  transform: rotate(-8deg);
  cursor: crosshair;
  touch-action: pan-y;
}

.shape-face {
  position: absolute;
  display: block;
  opacity: 0.72;
  filter:
    drop-shadow(0 18px 24px rgba(55, 75, 176, 0.1))
    saturate(1.08);
  transform-origin: center;
  will-change: transform, filter;
  transition: filter 320ms ease;
}

.shape-face svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ice-body {
  stroke: none;
}

.hero-shape.is-rippling .shape-face {
  filter:
    drop-shadow(0 22px 30px rgba(55, 75, 176, 0.16))
    saturate(1.16);
}

.shape-face-one {
  inset: 16% 29% 20% 5%;
  transform: translate3d(var(--face-x, 0), var(--face-y, 0), 0)
    rotate(calc(22deg + var(--face-rotate, 0deg))) scale(var(--face-scale, 1));
}

.shape-face-two {
  inset: 6% 3% 27% 41%;
  transform: translate3d(var(--face-x, 0), var(--face-y, 0), 0)
    rotate(calc(-4deg + var(--face-rotate, 0deg))) scale(var(--face-scale, 1));
}

.shape-face-three {
  inset: 36% 14% 3% 19%;
  transform: translate3d(var(--face-x, 0), var(--face-y, 0), 0)
    rotate(calc(12deg + var(--face-rotate, 0deg))) scale(var(--face-scale, 1));
}

.hero-orbit {
  position: absolute;
  z-index: -2;
  top: 50%;
  right: 1%;
  border: 1px solid rgba(87, 106, 171, 0.17);
  border-radius: 50%;
  transform: translateY(-50%);
}

.orbit-runner {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 50%;
  animation: orbit-spin 22s linear infinite;
}

.orbit-runner-two {
  animation-duration: 15s;
  animation-direction: reverse;
}

.orbit-bubble {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  aspect-ratio: 1;
  border: 1px solid rgba(113, 127, 255, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.62), transparent 20%),
    radial-gradient(circle at 58% 62%, rgba(75, 220, 255, 0.25), transparent 48%),
    linear-gradient(145deg, rgba(173, 132, 245, 0.13), rgba(70, 190, 255, 0.08));
  box-shadow:
    inset 0 0 24px rgba(255, 255, 255, 0.22),
    0 0 28px rgba(96, 123, 235, 0.11);
  transform: translate(-50%, -50%);
}

.orbit-bubble-large {
  width: 5.8cqw;
}

.orbit-bubble-small {
  width: 3.1cqw;
}

@keyframes orbit-spin {
  to {
    transform: rotate(1turn);
  }
}

.hero-orbit-one {
  right: 13%;
  width: 38cqw;
  aspect-ratio: 1;
}

.hero-orbit-two {
  right: 21%;
  width: 27cqw;
  aspect-ratio: 1;
}

.spark {
  position: absolute;
  z-index: 2;
  color: hsl(var(--spark-hue, 258) 78% 62%);
  font-size: 2.1cqw;
  filter: drop-shadow(0 5px 12px hsl(var(--spark-hue, 258) 70% 60% / 0.22));
  transform:
    translate3d(var(--spark-x, 0), var(--spark-y, 0), 0)
    rotate(calc(var(--spark-base-rotate, 0deg) + var(--spark-rotate, 0deg)))
    scale(var(--spark-scale, 1));
  transform-origin: center;
  will-change: transform, color, filter;
}

.spark-one {
  top: 18%;
  right: 52%;
  --spark-base-rotate: 18deg;
}

.spark-two {
  right: 9%;
  bottom: 18%;
  --spark-hue: 38;
  font-size: 1.05cqw;
}

.projects-section,
.about-section {
  width: min(var(--content), calc(100% - var(--page-pad) * 2));
  margin: 0 auto;
  padding: clamp(88px, 10vw, 142px) 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 44px;
}

.section-heading h2,
.about-section h2 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 58px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1;
}

.section-note {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 76px 24px;
}

.project-card {
  min-width: 0;
}

.project-image {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #f1f2f5;
}

.project-image-featured {
  aspect-ratio: 16 / 10;
}

.project-image-compact {
  aspect-ratio: 16 / 9;
}

.project-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.65, 0.25, 1);
}

.project-image .focus-top {
  object-position: center 23%;
}

.project-image:hover img {
  transform: scale(1.035);
}

.project-image::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  background: linear-gradient(to top, rgba(12, 14, 20, 0.36), transparent 50%);
  transition: opacity 220ms ease;
}

.project-image:hover::after {
  opacity: 1;
}

.view-project {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  opacity: 0;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 650;
  transform: translateY(8px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.view-project b {
  font-size: 14px;
}

.project-image:hover .view-project {
  opacity: 1;
  transform: translateY(0);
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 17px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tags span {
  padding: 7px 10px;
  color: #4565c7;
  border-radius: 999px;
  background: var(--pale-blue);
  font-size: 11px;
  font-weight: 650;
}

.project-number {
  margin: 0;
  color: #a0a3ac;
  font-size: 11px;
  letter-spacing: 0.09em;
}

.project-card h3 {
  margin: 13px 0 0;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 640;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.project-summary {
  max-width: 540px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.other-section {
  border-top: 1px solid var(--line);
}

.other-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px 20px;
}

.compact-card h3 {
  font-size: clamp(18px, 1.6vw, 23px);
}

html[lang="en"] .compact-card h3 {
  min-height: 2.24em;
  white-space: pre-line;
}

.compact-card .project-meta {
  justify-content: flex-start;
}

.compact-card .tags {
  flex-wrap: nowrap;
  gap: 6px;
}

.compact-card .tags span {
  padding: 7px 9px;
  white-space: nowrap;
}

.compact-card .project-info {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}

.about-section {
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(50px, 10vw, 150px);
  align-items: start;
}

.about-grid > div {
  padding-top: 6px;
}

.about-grid p {
  margin: 0;
  color: #464a55;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.55;
}

.about-grid a {
  display: inline-flex;
  gap: 12px;
  margin-top: 34px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 650;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px var(--page-pad);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.06em;
}

footer p {
  margin: 0;
}

.resume-header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--muted);
  font-size: 13px;
}

.resume-header-nav .language-toggle {
  padding: 28px 0;
}

.resume-header-nav a {
  padding: 28px 0;
}

.resume-header-nav a.active {
  color: var(--ink);
  font-weight: 650;
}

.resume-main {
  width: min(980px, calc(100% - var(--page-pad) * 2));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) 0;
}

.resume-main > h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(42px, 6.5vw, 84px);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.resume-layout {
  display: grid;
  margin-top: clamp(72px, 10vw, 130px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.resume-layout section {
  padding: 30px 30px 48px 0;
  border-bottom: 1px solid var(--line);
}

.resume-layout section:nth-child(even) {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.resume-layout h2 {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resume-layout p,
.resume-layout li,
.resume-layout a {
  color: #555a65;
  font-size: 16px;
  line-height: 1.7;
}

.resume-layout p,
.resume-layout ul {
  margin: 0;
}

.resume-layout ul {
  padding-left: 18px;
}

.resume-layout a {
  border-bottom: 1px solid #a9acb4;
}

.resume-cv {
  max-width: 1040px;
  color: #1f2733;
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

.resume-cv,
.resume-cv * {
  box-sizing: border-box;
}

.resume-cv a {
  color: inherit;
}

.resume-cv-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(36px, 8vw, 120px);
  margin-bottom: 58px;
}

.resume-cv-profile {
  flex: 1;
}

.resume-cv-profile h1 {
  margin: 0 0 24px;
  color: #263442;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.resume-cv-info-grid {
  display: grid;
  max-width: 720px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(40px, 12vw, 180px);
}

.resume-cv-info-grid dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.resume-cv-info-grid dt {
  margin: 0 0 5px;
  color: #17202b;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.resume-cv-info-grid dd {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.35;
}

.resume-cv-photo {
  width: 150px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.resume-cv-section {
  margin-top: 63px;
}

.resume-cv-hero + .resume-cv-section {
  margin-top: 0;
}

.resume-cv-section h2 {
  display: grid;
  grid-template-columns: auto 1fr 32px;
  align-items: center;
  gap: 18px;
  margin: 0 0 22px;
  color: #263442;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.resume-cv-section h2::before {
  content: none;
}

.resume-cv-section h2::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, #a8adb4 0, #a8adb4 calc(100% - 32px), #1f2733 calc(100% - 32px), #1f2733 100%);
  grid-column: 2 / 4;
}

.resume-cv-section > p,
.resume-cv-item p,
.resume-cv-item li,
.resume-cv-simple-list li,
.resume-cv-tools p {
  margin: 0;
  color: #202833;
  font-size: 15px;
  line-height: 1.9;
}

.resume-cv-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 26px;
}

.resume-cv-card {
  min-height: 118px;
  padding: 22px 24px;
  background: #f4f4f5;
}

.resume-cv-card h3 {
  margin: 0 0 12px;
  color: #151c26;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.resume-cv-card p {
  margin: 0;
  color: #5d6673;
  font-size: 14px;
  line-height: 1.55;
}

.resume-cv-tools {
  padding-left: 0;
}

.resume-cv-tools p {
  line-height: 1.75;
}

.resume-cv-tools strong {
  display: inline-block;
  min-width: 130px;
  color: #111822;
  font-weight: 800;
}

.resume-cv-timeline {
  display: grid;
  gap: 20px;
}

.resume-cv-item {
  position: relative;
  padding-left: 0;
}

.resume-cv-item::before {
  content: none;
}

.resume-cv-item header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 12px;
  padding: 7px 0;
  background: #f4f4f5;
}

.resume-cv-item h3 {
  margin: 0;
  color: #1f2733;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
}

.resume-cv-item h3 a,
.resume-cv-project-link {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 160ms ease;
}

.resume-cv-item h3 a:hover,
.resume-cv-item h3 a:focus-visible,
.resume-cv-project-link:hover,
.resume-cv-project-link:focus-visible {
  color: #2864ff;
  text-decoration: underline;
}

.resume-cv-item time {
  color: #1d2430;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.resume-cv-item ul,
.resume-cv-simple-list {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding-left: 18px;
}

.resume-cv-item p + ul,
.resume-cv-item ul + p {
  margin-top: 9px;
}

.resume-cv-simple-list {
  padding-left: 18px;
}

.resume-cv-simple-list strong,
.resume-cv-item strong {
  color: #111822;
  font-weight: 800;
}

@media (max-width: 760px) {
  .resume-cv {
    width: min(100% - 32px, 1040px);
    padding-top: 58px;
  }

  .resume-cv-hero,
  .resume-cv-info-grid,
  .resume-cv-card-grid,
  .resume-cv-item header {
    grid-template-columns: 1fr;
  }

  .resume-cv-hero {
    display: grid;
    gap: 28px;
  }

  .resume-cv-photo {
    width: 116px;
    order: -1;
  }

  .resume-cv-section h2 {
    grid-template-columns: auto 1fr 24px;
    gap: 12px;
    font-size: 22px;
  }

  .resume-cv-section h2::after {
    background: linear-gradient(90deg, #a8adb4 0, #a8adb4 calc(100% - 24px), #1f2733 calc(100% - 24px), #1f2733 100%);
  }

  .resume-cv-item header {
    gap: 8px;
  }

  .resume-cv-item time {
    font-size: 14px;
  }

  .resume-cv-tools {
    padding-left: 0;
  }

  .resume-cv-simple-list {
    padding-left: 18px;
  }

  .resume-cv-tools strong {
    min-width: 0;
  }
}

@media (max-width: 900px) {
  .page-shell {
    margin-left: 0;
  }

  .profile-sidebar {
    position: relative;
    z-index: 1;
    top: auto;
    bottom: auto;
    display: grid;
    width: 100%;
    padding: 24px var(--page-pad);
    overflow: visible;
    grid-template-columns: auto minmax(160px, 1fr) auto;
    gap: 20px;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .profile-intro {
    display: grid;
    grid-template-areas:
      "avatar name"
      "availability location"
      "availability role";
    grid-template-columns: 94px auto;
    column-gap: 14px;
    row-gap: 2px;
    align-items: center;
    text-align: left;
  }

  .avatar-link {
    width: 68px;
    height: 68px;
    margin: 0 auto;
    grid-area: avatar;
  }

  .availability {
    grid-area: availability;
    justify-content: center;
    align-self: start;
    margin: 3px 0 0;
    font-size: 10px;
  }

  .profile-intro h2 {
    grid-area: name;
    margin-bottom: 2px;
    font-size: 20px;
  }

  .profile-location {
    grid-area: location;
    justify-content: flex-start;
  }

  .profile-role {
    grid-area: role;
    margin-top: 3px;
  }

  .message-button {
    width: 150px;
    margin: 0;
  }

  .profile-nav {
    display: flex;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .profile-nav a {
    min-width: 112px;
  }

  .resume-prompt {
    display: none;
  }

  .hero {
    aspect-ratio: auto;
    min-height: 640px;
  }

  .hero-grid {
    background-size: 72px 72px;
  }

  .hero-content {
    position: relative;
    top: auto;
    left: auto;
    width: min(var(--content), calc(100% - var(--page-pad) * 2));
    margin: 0 auto;
    padding: clamp(108px, 13vw, 166px) 0 100px;
    transform: none;
  }

  .hero .eyebrow {
    margin-bottom: 20px;
    font-size: 12px;
  }

  .hero h1 {
    max-width: 850px;
    font-size: clamp(35px, calc(5.5vw - 8px), 76px);
  }

  html[lang="zh-CN"] .hero h1 {
    width: min(820px, calc(100% + 112px));
    font-size: clamp(50px, 7vw, 68px);
    letter-spacing: 3.8px;
  }

  .hero-pointer-glow {
    width: clamp(90px, 9vw, 125px);
  }

  .hero-description {
    max-width: 400px;
    margin-top: 30px;
    font-size: clamp(15px, 1.45vw, 18px);
  }

  html[lang="zh-CN"] .hero-description {
    max-width: min(760px, calc(100vw - 48px));
  }

  .hero-link {
    gap: 12px;
    margin-top: 34px;
    padding-bottom: 6px;
    font-size: 13px;
  }

  .hero-shape {
    top: 30%;
    right: -15%;
    width: clamp(300px, 37vw, 550px);
    opacity: 0.65;
  }

  .hero-orbit {
    right: -23%;
  }

  .hero-orbit-one {
    width: clamp(420px, 52vw, 790px);
  }

  .hero-orbit-two {
    width: clamp(280px, 36vw, 540px);
  }

  .orbit-bubble-large {
    width: clamp(72px, 8vw, 116px);
  }

  .orbit-bubble-small {
    width: clamp(38px, 4.2vw, 62px);
  }

  .spark {
    font-size: clamp(28px, 3vw, 46px);
  }

  .spark-two {
    font-size: 22px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .other-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    height: 66px;
  }

  .menu-button {
    position: relative;
    z-index: 2;
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 65px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 10px var(--page-pad) 22px;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }

  .site-nav.open {
    display: flex;
    flex-direction: column;
  }

  .site-nav a {
    padding: 13px 0;
  }

  .site-nav a::after {
    display: none;
  }

  .profile-sidebar {
    display: grid;
    padding-top: 20px;
    padding-bottom: 20px;
    grid-template-columns: 1fr auto;
    gap: 18px 12px;
  }

  .profile-intro {
    grid-column: 1 / -1;
  }

  .message-button {
    width: auto;
    min-width: 124px;
  }

  .profile-nav {
    justify-content: flex-end;
  }

  .profile-nav a {
    min-width: auto;
    min-height: 42px;
    padding: 0 10px;
    grid-template-columns: 20px auto;
  }

  .profile-nav a > span:not([data-i18n]) {
    display: none;
  }

  .site-nav .language-toggle {
    align-self: flex-start;
    padding: 13px 0;
  }

  .site-nav .language-toggle::after {
    display: none;
  }

  .hero {
    min-height: 590px;
  }

  .hero-content {
    padding-top: 105px;
  }

  .hero h1 {
    font-size: clamp(40px, calc(15vw - 8px), 64px);
  }

  html[lang="zh-CN"] .hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(28px, 8.1vw, 34px);
    letter-spacing: 0.07em;
    line-height: 1.16;
  }

  .ripple-line {
    width: auto;
    white-space: normal;
  }

  html[lang="zh-CN"] .hero h1 .ripple-line {
    width: max-content;
    max-width: 100%;
    white-space: nowrap;
  }

  .hero-description {
    max-width: 320px;
  }

  html[lang="zh-CN"] .hero-description {
    max-width: min(100%, calc(100vw - 48px));
  }

  .hero-shape {
    top: 42%;
    right: -32%;
    width: 390px;
    opacity: 0.45;
  }

  .spark-one {
    top: 50%;
    right: 14%;
  }

  .featured-grid,
  .other-grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .projects-section,
  .about-section {
    padding: 82px 0;
  }

  .project-image-featured {
    aspect-ratio: 4 / 3;
  }

  .project-image-compact {
    aspect-ratio: 16 / 9;
  }

  .compact-card .tags {
    flex-wrap: wrap;
  }

  .view-project {
    display: none;
  }

  footer {
    align-items: start;
    flex-direction: column;
    gap: 13px;
  }

  .resume-header-nav {
    gap: 10px;
    font-size: 12px;
  }

  .resume-header-nav a {
    padding: 22px 0;
  }

  .resume-header-nav .language-toggle {
    padding: 22px 0;
    font-size: inherit;
  }

  .resume-header-nav .language-toggle::after {
    bottom: 14px;
  }

  .resume-main {
    min-height: auto;
    padding: 72px 0;
  }

  .resume-layout {
    grid-template-columns: 1fr;
  }

  .resume-layout section,
  .resume-layout section:nth-child(even) {
    padding: 28px 0 36px;
    border-left: 0;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .ripple-character {
    transform: none !important;
  }

  .shape-face-one {
    transform: rotate(22deg) !important;
  }

  .shape-face-two {
    transform: rotate(-4deg) !important;
  }

  .shape-face-three {
    transform: rotate(12deg) !important;
  }

  .hero-pointer-glow {
    transition: opacity 180ms ease;
  }

  .orbit-runner {
    animation-play-state: paused;
  }

  .spark {
    transform: none !important;
  }
}

body:is([data-page="portfolio"], [data-page="resume"]) .page-shell {
  margin-left: 0;
  width: 100%;
  transition:
    width 420ms cubic-bezier(0.22, 0.78, 0.22, 1),
    margin-left 420ms cubic-bezier(0.22, 0.78, 0.22, 1);
}

body:is([data-page="portfolio"], [data-page="resume"]) .profile-sidebar {
  position: fixed;
  z-index: 80;
  top: 0;
  right: auto;
  bottom: 0;
  left: 0;
  display: flex;
  width: min(var(--sidebar-width), calc(100vw - 24px));
  padding: 88px 28px 26px;
  overflow-y: auto;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  border-right: 1px solid rgba(16, 17, 23, 0.08);
  border-left: 0;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 28px 0 70px rgba(24, 32, 66, 0.14);
  opacity: 0;
  transform: translateX(-100%);
  visibility: hidden;
  transition:
    transform 420ms cubic-bezier(0.22, 0.78, 0.22, 1),
    opacity 260ms ease,
    visibility 0s linear 420ms;
}

body:is([data-page="portfolio"], [data-page="resume"]).profile-drawer-open .profile-sidebar {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s;
}

body:is([data-page="portfolio"], [data-page="resume"]) .profile-drawer-close {
  position: absolute;
  top: 22px;
  right: 24px;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f3f4f7;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

body:is([data-page="portfolio"], [data-page="resume"]) .profile-drawer-close:hover {
  color: #fff;
  background: var(--ink);
  transform: rotate(4deg);
}

body:is([data-page="portfolio"], [data-page="resume"]) .profile-drawer-close span {
  position: absolute;
  width: 17px;
  height: 1px;
  background: currentColor;
  transform: rotate(45deg);
}

body:is([data-page="portfolio"], [data-page="resume"]) .profile-drawer-close span:last-child {
  transform: rotate(-45deg);
}

body:is([data-page="portfolio"], [data-page="resume"]) .profile-intro {
  display: block;
  text-align: center;
}

body:is([data-page="portfolio"], [data-page="resume"]) .avatar-link {
  width: 104px;
  height: 104px;
  margin: 0 auto 12px;
}

body:is([data-page="portfolio"], [data-page="resume"]) .availability {
  justify-content: center;
  margin: 0 0 9px;
  font-size: 12px;
}

body:is([data-page="portfolio"], [data-page="resume"]) .profile-intro h2 {
  margin: 0 0 7px;
  font-size: 23px;
}

body:is([data-page="portfolio"], [data-page="resume"]) .profile-location {
  justify-content: center;
}

body:is([data-page="portfolio"], [data-page="resume"]) .profile-role {
  margin: 8px 0 0;
}

body:is([data-page="portfolio"], [data-page="resume"]) .message-button {
  width: auto;
  min-width: 0;
  margin-top: 34px;
}

body:is([data-page="portfolio"], [data-page="resume"]) .profile-nav {
  display: grid;
  margin-top: 11px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

body:is([data-page="portfolio"], [data-page="resume"]) .profile-nav a {
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  grid-template-columns: 24px 1fr auto;
}

body:is([data-page="portfolio"], [data-page="resume"]) .profile-nav a > span:not([data-i18n]) {
  display: block;
}

body[data-page="portfolio"] .resume-prompt {
  display: flex;
}

@media (min-width: 1101px) {
  body:is([data-page="portfolio"], [data-page="resume"]) .site-header {
    width: 100%;
    margin-left: 0;
    transition:
      width 420ms cubic-bezier(0.22, 0.78, 0.22, 1),
      margin-left 420ms cubic-bezier(0.22, 0.78, 0.22, 1);
  }

  body:is([data-page="portfolio"], [data-page="resume"]).profile-drawer-open .site-header,
  body:is([data-page="portfolio"], [data-page="resume"]).profile-drawer-open .page-shell {
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
  }

  html[lang="zh-CN"] body[data-page="portfolio"].profile-drawer-open .hero h1 {
    width: 100%;
    font-size: clamp(50px, calc((100vw - var(--sidebar-width)) * 0.075), 66px);
  }
}

@media (max-width: 680px) {
  .header-start {
    gap: 9px;
  }

  .profile-drawer-toggle {
    margin-left: -7px;
  }

  body:is([data-page="portfolio"], [data-page="resume"]) .profile-sidebar {
    padding: 82px 22px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:is([data-page="portfolio"], [data-page="resume"]) .profile-sidebar,
  .profile-drawer-toggle span {
    transition-duration: 0.01ms;
  }
}

.project-detail-page {
  color: #101117;
  background: #f2f2f2;
}

.project-detail-header {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  padding: 0 var(--page-pad);
  color: #fff;
  background: linear-gradient(to bottom, rgba(8, 9, 14, 0.52), transparent);
}

.project-header-actions {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 42px);
}

.project-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.project-detail-header .language-toggle {
  padding: 11px 0;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.project-detail-header .language-toggle::after {
  bottom: 4px;
  background: #fff;
}

.project-detail-header .language-toggle:hover {
  color: #fff;
}

.project-video-hero {
  position: relative;
  display: grid;
  width: 100%;
  height: calc(100svh - 68px);
  min-height: 640px;
  overflow: hidden;
  place-items: center;
  background: #0d0e12;
}

.project-video-hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(8, 9, 14, 0.26), transparent 24%),
    linear-gradient(to top, rgba(6, 7, 12, 0.9) 0%, rgba(6, 7, 12, 0.58) 34%, transparent 67%);
}

.project-video-hero video,
.project-video-hero .project-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-scroll-cue {
  position: absolute;
  z-index: 2;
  right: var(--page-pad);
  bottom: 34px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.project-scroll-cue span {
  font-size: 18px;
}

.project-introduction {
  position: absolute;
  z-index: 2;
  display: flex;
  left: var(--page-pad);
  bottom: clamp(58px, 6.6vh, 88px);
  width: 62vw;
  margin: 0;
  padding: 0;
  color: #fff;
  flex-direction: column;
}

.project-detail-index {
  margin: 0 0 1.05vw;
  color: rgba(255, 255, 255, 0.72);
  font-size: max(9px, 0.78vw);
  font-weight: 750;
  letter-spacing: 0.15em;
}

.project-introduction h1 {
  width: 86%;
  max-width: none;
  margin: 0;
  font-size: min(5vw, 8.2vh, 80px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.project-credit-grid {
  display: grid;
  width: 94%;
  max-width: none;
  margin-top: clamp(12px, 1.2vw, 22px);
  padding-top: clamp(14px, 1.1vw, 18px);
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  gap: 0.36vw;
}

.project-credit-grid p,
.project-role {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: max(9px, 0.84vw);
  line-height: 1.5;
}

.project-role {
  width: 92%;
  max-width: none;
  margin-top: 1vw;
  padding-top: 0.86vw;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.project-role strong {
  color: #fff;
}

.project-story {
  padding: clamp(84px, 10vw, 150px) 0 clamp(100px, 12vw, 180px);
  background: #f2f2f2;
}

.project-story-layout {
  display: grid;
  width: min(1500px, calc(100% - var(--page-pad) * 2));
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) 224px;
  grid-template-rows: auto minmax(0, 1fr);
  column-gap: clamp(54px, 7vw, 112px);
  row-gap: clamp(22px, 2.6vw, 38px);
  align-items: start;
}

.project-story-topbar {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 224px;
  column-gap: clamp(54px, 7vw, 112px);
  align-items: stretch;
}

.project-story-main {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

.project-sidebar {
  grid-column: 2;
  grid-row: 1 / -1;
}

/* Fixed header bar: mother (chapter) title + chapter summary + sub-title. */
.project-story-headbar {
  min-width: 0;
}

.modular-hero .project-hero-image {
  object-position: center;
}

.modular-reference-grid {
  display: grid;
  margin-top: clamp(22px, 2.4vw, 36px);
  gap: clamp(12px, 1.4vw, 18px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modular-reference-grid article {
  padding: clamp(18px, 2vw, 26px);
  background: #fff;
}

.modular-reference-grid h3 {
  margin: 0 0 10px;
  color: #242830;
  font-size: clamp(17px, 1.25vw, 22px);
  font-weight: 760;
  letter-spacing: -0.035em;
}

.modular-reference-grid p {
  margin: 0;
  color: #555b66;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.55;
}

.modular-purpose {
  --modular-purpose-ink: #252a32;
  --modular-purpose-muted: #777c85;
}

.modular-purpose figure,
.modular-goal figure,
.modular-movement figure,
.modular-grab figure,
.modular-prototype figure,
.modular-iteration figure,
.modular-detail-design figure,
.modular-unit figure,
.modular-operation-mode figure,
.modular-spatial-module figure,
.modular-spatial-variation figure,
.modular-spatial-form figure {
  margin: 0;
}

.modular-purpose-cycle {
  padding: clamp(12px, 1.35vw, 20px);
  border: 1px solid #d9dadd;
  background: #fff;
}

.modular-purpose-cycle img {
  display: block;
  width: 100%;
  height: auto;
}

.modular-purpose-cycle-caption {
  display: grid;
  margin-top: clamp(10px, 1vw, 14px);
  padding-top: clamp(9px, 0.8vw, 12px);
  color: var(--modular-purpose-muted);
  border-top: 1px solid #e2e3e5;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.modular-purpose-cycle-caption span:last-child {
  color: var(--blue);
  text-align: right;
}

.modular-purpose-argument {
  margin: 0;
  padding: 0;
}

.modular-purpose-copy {
  max-width: 820px;
  margin-left: 0;
}

.modular-goal-copy {
  max-width: 820px;
}

.modular-purpose-vision {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: #20242a;
}

.modular-purpose-vision::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 48%, rgba(14, 16, 20, 0.76) 100%);
}

.modular-purpose-vision img {
  display: block;
  width: 100%;
  height: clamp(420px, 46vw, 620px);
  object-fit: cover;
  object-position: center;
}

.modular-purpose-vision figcaption {
  position: absolute;
  z-index: 1;
  right: clamp(20px, 2.8vw, 42px);
  bottom: clamp(20px, 2.6vw, 38px);
  left: clamp(20px, 2.8vw, 42px);
  color: #fff;
}

.modular-purpose-vision figcaption span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.modular-purpose-vision figcaption p {
  max-width: 680px;
  margin: 0;
  font-size: clamp(18px, 1.7vw, 27px);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.modular-movement-diagram,
.modular-grab-diagram,
.modular-prototype-figure,
.modular-iteration-figure,
.modular-detail-figure,
.modular-unit-figure,
.modular-physical-figure,
.modular-spatial-figure {
  padding: clamp(12px, 1.35vw, 20px);
  background: #fff;
}

.modular-movement-diagram img,
.modular-movement-photo-grid img,
.modular-grab-diagram img,
.modular-grab-photo-grid img,
.modular-prototype-figure img,
.modular-iteration-figure img,
.modular-detail-figure img,
.modular-unit-figure img,
.modular-physical-figure img,
.modular-spatial-figure img {
  display: block;
  width: 100%;
}

.modular-movement-copy,
.modular-grab-copy,
.modular-prototype-copy,
.modular-iteration-copy,
.modular-detail-copy,
.modular-unit-copy,
.modular-control-copy,
.modular-spatial-copy {
  max-width: 880px;
}

.modular-prototype-result,
.modular-unit-aggregation,
.modular-control-sequence,
.modular-spatial-result {
  margin-top: clamp(16px, 1.6vw, 24px) !important;
}

.modular-movement .modular-movement-photos,
.modular-grab .modular-grab-photos {
  margin-top: clamp(16px, 1.6vw, 24px);
  padding: clamp(10px, 1.1vw, 16px);
  background: #fff;
}

.modular-movement-photo-grid,
.modular-grab-photo-grid {
  display: grid;
  gap: clamp(10px, 1vw, 16px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.modular-movement-photo-grid img,
.modular-grab-photo-grid img {
  aspect-ratio: 681 / 457;
  background: #fff;
  object-fit: cover;
}

@media (max-width: 760px) {
  .modular-purpose-cycle-caption {
    grid-template-columns: 1fr;
  }

  .modular-purpose-cycle-caption span:last-child {
    text-align: left;
  }

  .modular-purpose-copy,
  .modular-goal-copy {
    margin-left: 0;
  }

  .modular-purpose-vision,
  .modular-purpose-vision img {
    min-height: 0;
    height: clamp(320px, 78vw, 460px);
  }

  .modular-movement-photo-grid,
  .modular-grab-photo-grid {
    grid-template-columns: 1fr;
  }
}

.headbar-mother {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.15em;
}

.headbar-summary {
  max-width: 980px;
  margin: 0;
  color: #2f333b;
  font-size: clamp(30px, 3vw, 50px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.headbar-subtitle {
  margin: 16px 0 0;
  color: #4c515a;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

/* The chapter / sub-chapter labels now live in the headbar, so hide the inline
   copies inside the scrolling content (keep the a./b. step labels). */
.loops-detail .project-story-main .project-story-heading,
.loops-detail .project-story-main .project-chapter-summary,
.loops-detail .project-story-main .project-kicker:not(.project-kicker-tertiary) {
  display: none;
}

.loops-detail.is-story-continuous .project-story-main .modular-continuous-heading,
.loops-detail.is-story-continuous .project-story-main .modular-continuous-summary,
.loops-detail.is-story-continuous .project-story-main .project-kicker:not(.project-kicker-tertiary) {
  display: block;
}

html.loops-detail-scroll {
  scroll-snap-type: y mandatory;
  scroll-padding-top: 28px;
}

html.loops-detail-scroll.is-section-switching {
  scroll-behavior: auto;
}

.loops-detail [data-story-section] {
  min-height: calc(100svh - 28px);
  padding-block: clamp(64px, 8vw, 110px);
  scroll-margin-top: 28px;
  scroll-snap-align: start;
  transition:
    opacity 360ms ease,
    transform 360ms ease;
}

.loops-detail [data-story-section].is-story-leaving {
  opacity: 0;
}

.loops-detail [data-story-section].is-story-entering {
  opacity: 0;
}

.project-story-intro,
.project-chapter {
  width: 100%;
  margin: 0;
}

.project-story-intro {
  margin-bottom: clamp(48px, 6vw, 86px);
}

.project-story-heading p,
.project-kicker {
  margin: 0 0 14px;
  color: #686d78;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.15em;
}

.project-chapter-summary {
  max-width: 980px;
  margin: 24px 0 clamp(46px, 6vw, 84px);
  color: #2f333b;
  font-size: 50px;
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.project-subchapter-summary {
  max-width: 760px;
  margin: 0;
  color: #555a64;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
}

.project-prose {
  color: #515661;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.55;
}

.project-prose p {
  margin: 0;
}

.project-prose p + p {
  margin-top: 10px;
}

.project-media,
.project-media-image,
.project-media-video {
  display: block;
  width: 100%;
}

.project-media-grid {
  display: grid;
  gap: clamp(12px, 1.4vw, 22px);
}

.project-media-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-media-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-media-intro {
  width: 100%;
  margin: 0;
  grid-template-columns: 1fr;
  align-items: center;
}

.project-media-cited {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 8px solid #fff;
}

.project-media-cited #intro-friedman {
  width: calc(100% + 20px);
  max-width: none;
  transform: translateX(-20px);
}

.project-media-cited figcaption {
  position: absolute;
  right: 10px;
  bottom: 8px;
  max-width: calc(100% - 20px);
  padding: 0;
  color: #fff;
  background: transparent;
  font-size: clamp(8px, 0.64vw, 10px);
  line-height: 1.35;
}

.project-media-cited figcaption a {
  max-width: 100%;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
  text-align: right;
}

.project-media-cited figcaption a:hover,
.project-media-cited figcaption a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.project-media-two,
.project-media-three {
  grid-template-columns: 1fr;
}

.project-media img,
.project-media-image {
  background: #fff;
}

.project-media-video {
  aspect-ratio: 16 / 9;
  background: #121318;
  object-fit: cover;
}

.project-video-frame {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-video-frame > .project-video-element {
  display: block;
  width: 100%;
  height: 100%;
  background: #121318;
  object-fit: cover;
}

.project-video-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: clamp(54px, 4.8vw, 76px);
  height: clamp(54px, 4.8vw, 76px);
  padding: 0;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(15, 16, 22, 0.42);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  place-items: center;
  transform: translate(-50%, -50%);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
  backdrop-filter: blur(10px);
}

.project-video-play::before {
  display: block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: clamp(9px, 0.85vw, 13px) solid transparent;
  border-bottom: clamp(9px, 0.85vw, 13px) solid transparent;
  border-left: clamp(15px, 1.3vw, 21px) solid currentColor;
  content: "";
}

.project-video-play:hover,
.project-video-play:focus-visible {
  background: rgba(15, 16, 22, 0.62);
  transform: translate(-50%, -50%) scale(1.04);
}

.project-video-play:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.88);
  outline-offset: 4px;
}

.project-video-frame.is-playing .project-video-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.94);
}

.project-video-progress {
  position: absolute;
  z-index: 3;
  right: clamp(12px, 1.4vw, 22px);
  bottom: clamp(12px, 1.2vw, 18px);
  left: clamp(12px, 1.4vw, 22px);
  width: auto;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  --progress: 0%;
}

.project-video-progress::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background:
    linear-gradient(to right, #fff 0 var(--progress), rgba(255, 255, 255, 0.36) var(--progress) 100%);
}

.project-video-progress::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.project-video-progress::-moz-range-progress {
  height: 3px;
  border-radius: 999px;
  background: #fff;
}

.project-video-progress::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  appearance: none;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.project-video-progress::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.project-video-frame:hover .project-video-progress::-webkit-slider-thumb,
.project-video-progress:focus-visible::-webkit-slider-thumb {
  opacity: 1;
}

.project-video-frame:hover .project-video-progress::-moz-range-thumb,
.project-video-progress:focus-visible::-moz-range-thumb {
  opacity: 1;
}

.project-video-progress:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.78);
  outline-offset: 5px;
}

.project-media-after-text {
  margin-top: clamp(16px, 1.6vw, 24px);
}

.project-chapter {
  margin-top: clamp(106px, 14vw, 210px);
}

.project-prose-after {
  width: 100%;
  max-width: none;
  margin-top: clamp(16px, 1.6vw, 24px);
  text-align: justify;
  text-justify: inter-ideograph;
}

.project-prose + .project-media,
.project-prose + .project-media-image,
.project-prose + .project-media-video {
  margin-top: clamp(16px, 1.6vw, 24px);
}

.project-chapter > .project-story-heading {
  margin-bottom: 14px;
}

.project-chapter-page {
  min-width: 0;
}

.project-subchapter + .project-subchapter {
  margin-top: clamp(74px, 10vw, 148px);
}

.project-chapter-page + .project-subchapter {
  margin-top: clamp(74px, 10vw, 148px);
}

.project-subchapter-copy {
  margin-bottom: clamp(18px, 2.5vw, 32px);
}

.project-subchapter > .project-kicker {
  margin-bottom: 22px;
}

.project-kicker-secondary {
  margin-top: clamp(26px, 3vw, 42px) !important;
  margin-bottom: 16px !important;
}

.project-kicker-tertiary {
  margin-bottom: 12px !important;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.project-media-step {
  display: grid;
}

.project-subchapter > .project-media-image,
.project-subchapter > .project-media-video,
.project-subchapter > .project-media {
  margin-top: clamp(16px, 1.6vw, 24px);
}

.project-outlook {
  padding-bottom: clamp(20px, 3vw, 56px);
}

.project-sidebar {
  position: sticky;
  top: 98px;
  align-self: start;
}

.project-team {
  width: 100%;
  overflow: hidden;
}

.project-team-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.project-team-track::-webkit-scrollbar {
  display: none;
}

.project-team-card {
  display: grid;
  min-width: 100%;
  min-height: 210px;
  padding: 0 8px;
  text-align: center;
  scroll-snap-align: start;
  place-items: center;
  align-content: start;
}

.project-team-card img,
.project-team-avatar {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
  border-radius: 50%;
  object-fit: cover;
  place-items: center;
}

.project-team-avatar {
  color: #fff;
  background: linear-gradient(145deg, #7484b8, #373e58);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.project-team-name,
.project-team-focus {
  margin: 0;
}

.project-team-name {
  color: #24272f;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.project-team-focus {
  margin-top: 10px;
  color: #737984;
  font-size: 11px;
  line-height: 1.55;
}

.project-team-controls {
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #777c85;
  font-size: 10px;
  text-align: center;
}

.project-team-control {
  width: 24px;
  height: 24px;
  padding: 0;
  color: #4c515a;
  border: 1px solid #c9ccd1;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.project-team-control:hover {
  color: #101117;
  border-color: #777c85;
}

.project-team-controls-muted,
.project-team-controls-muted .project-team-control {
  color: #a7adb6;
}

.project-team-controls-muted .project-team-control {
  border-color: #d6d9de;
}

.project-team-controls-muted .project-team-control:hover {
  color: #8c929c;
  border-color: #c4c8cf;
}

.project-toc {
  display: flex;
  height: clamp(510px, 50svh, 620px);
  margin-top: clamp(34px, 4vh, 48px);
  padding: 6px 0 6px 15px;
  border-left: 1px dashed #737780;
  color: #666b74;
  transform: translateX(clamp(8px, 0.8vw, 16px));
  flex-direction: column;
  justify-content: space-between;
}

html[lang="zh-CN"] .loops-detail .project-toc,
html[lang="zh-CN"] .fangtang-detail .project-toc {
  transform: translateX(calc(clamp(8px, 0.8vw, 16px) + 10px));
}

.project-toc a {
  display: block;
  width: fit-content;
  margin-top: 6px;
  color: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.34;
}

.project-toc span {
  display: block;
  width: fit-content;
  margin-top: 6px;
  color: rgba(102, 107, 116, 0.72);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.34;
}

.project-toc a:hover {
  color: #101117;
}

.project-toc a.is-active {
  color: #101117 !important;
  font-weight: 750;
}

.project-toc-primary {
  position: relative;
  margin-top: 0 !important;
  color: #4d5159 !important;
  font-size: 20px !important;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.15 !important;
}

.project-toc span.project-toc-primary {
  color: rgba(77, 81, 89, 0.72) !important;
  font-size: 20px !important;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.15 !important;
}

.project-toc-primary::before {
  position: absolute;
  top: 50%;
  left: -20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
  background: #777b82;
  transform: translateY(-50%);
}

.project-toc span.project-toc-primary::before {
  position: absolute;
  top: 50%;
  left: -20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
  background: rgba(119, 123, 130, 0.48);
  transform: translateY(-50%);
}

.modular-toc {
  height: auto;
  margin-top: calc(clamp(34px, 4vh, 48px) + 30px);
  justify-content: flex-start;
  gap: clamp(23px, 2.6vh, 33px);
}

.modular-toc .project-toc-group {
  display: grid;
  gap: 1px;
}

.modular-toc a,
.modular-toc span {
  margin-top: 3px;
}

.modular-toc .project-toc-primary {
  margin-bottom: 3px;
}

.project-toc-all {
  position: relative;
  margin-top: 0 !important;
  padding-top: 0;
  color: #4d5159 !important;
  font-size: 18px !important;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.15 !important;
}

.project-toc-all::before {
  position: absolute;
  top: 50%;
  left: -20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
  background: #777b82;
  transform: translateY(-50%);
}

@media (min-width: 1101px) {
  /* Keep the right-column controls aligned on the same visual centreline. */
  .loops-detail .project-sidebar {
    position: sticky;
    top: 92px;
    transform: translateX(clamp(12px, 1.2vw, 24px));
  }

  .loops-detail.is-story-pager .project-story {
    height: 100svh;
    padding: clamp(76px, 6.8vw, 112px) 0 0;
    overflow: hidden;
  }

  .loops-detail.is-story-pager .project-story-layout {
    height: 100%;
    align-items: stretch;
    row-gap: 24px;
  }

  .loops-detail.is-story-pager .project-story-main {
    position: relative;
    grid-row: 2;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  .loops-detail.is-story-pager .project-story-main > .project-chapter {
    display: contents;
  }

  .loops-detail.is-story-pager [data-story-section] {
    position: absolute;
    inset: 0;
    display: block;
    min-height: 0;
    margin: 0;
    padding: 0 0 clamp(56px, 6vw, 96px);
    /* Scrolling is driven by JS (scrollTop) in the wheel handler. Keep this
       hidden — not auto — so a native wheel over the chapter content can't
       capture the scroll; it must chain to the window (e.g. to leave the hero). */
    overflow: hidden;
    overscroll-behavior: contain;
    opacity: 0;
    pointer-events: none;
    scroll-snap-align: none;
    scrollbar-width: none;
  }

  .loops-detail.is-story-pager [data-story-section]::-webkit-scrollbar {
    display: none;
  }

  .loops-detail.is-story-pager [data-story-section].is-story-active {
    opacity: 1;
    pointer-events: auto;
  }

  .loops-detail.is-story-pager [data-story-section].is-story-leaving,
  .loops-detail.is-story-pager [data-story-section].is-story-entering {
    opacity: 0;
  }

  .loops-detail.is-story-pager .project-sidebar {
    position: sticky;
    top: 92px;
    grid-row: 1 / -1;
    height: 100%;
  }

  /* Each active chapter starts its first media at the same distance from the headbar. */
  .loops-detail.is-story-pager [data-story-section] .project-subchapter-copy {
    margin-bottom: 0;
  }

  .loops-detail.is-story-pager [data-story-section] .project-subchapter > .project-media-image,
  .loops-detail.is-story-pager [data-story-section] .project-subchapter > .project-media-video,
  .loops-detail.is-story-pager [data-story-section] .project-subchapter > .project-media,
  .loops-detail.is-story-pager [data-story-section].project-subchapter > .project-media-image,
  .loops-detail.is-story-pager [data-story-section].project-subchapter > .project-media-video,
  .loops-detail.is-story-pager [data-story-section].project-subchapter > .project-media {
    margin-top: 0;
  }

  .loops-detail.is-story-pager [data-story-section] .project-prose + .project-media,
  .loops-detail.is-story-pager [data-story-section] .project-prose + .project-media-image,
  .loops-detail.is-story-pager [data-story-section] .project-prose + .project-media-video {
    margin-top: clamp(16px, 1.6vw, 24px);
  }
}

/* Team, reading mode and contents are one coordinated right-hand sidebar. */
.project-sidebar .project-team {
  display: flex;
  flex-direction: column;
  margin-bottom: clamp(28px, 3vw, 46px);
}

.project-sidebar .project-team-card {
  min-height: 0;
}

/* Right column: reading-mode switch above the table of contents. */
.project-sidebar {
  display: flex;
  flex-direction: column;
}

.project-reading-mode {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: clamp(20px, 2.4vw, 34px);
}

.project-reading-mode-label {
  color: #686d78;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-align: center;
  text-transform: uppercase;
}

.project-reading-mode-options {
  display: inline-flex;
  align-self: center;
  padding: 3px;
  border: 1px solid #c9ccd1;
  border-radius: 999px;
  background: #e9eaec;
}

.project-reading-toggle {
  padding: 6px 16px;
  color: #5a5f69;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.project-reading-toggle.is-active {
  color: #15171c;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 17, 28, 0.16);
}

@media (min-width: 1101px) {
  /* Keep a deliberate lower gap below the table of contents. */
  .loops-detail.is-story-pager .project-toc {
    height: auto;
    min-height: 0;
    margin-top: 0;
    flex: 0 1 clamp(510px, 52svh, 660px);
  }

  .loops-detail.is-story-pager .modular-toc {
    position: relative;
    height: auto;
    min-height: 0;
    margin-top: 60px;
    border-left: 0;
    flex: 0 0 auto;
  }

  .loops-detail.is-story-pager .modular-toc::before {
    position: absolute;
    top: 2px;
    left: 0;
    width: 0;
    height: calc(100% - 4px);
    border-left: 1px dashed #737780;
    content: "";
  }

  /* Continuous mode follows the document flow, like the original project page. */
  .loops-detail.is-story-continuous .project-story-topbar {
    position: static;
  }

  .loops-detail.is-story-continuous .headbar-subtitle {
    display: none;
  }

  .loops-detail.is-story-continuous [data-story-section] {
    min-height: 0;
    padding-block: 0;
    scroll-margin-top: 28px;
    scroll-snap-align: none;
  }

  .loops-detail.is-story-continuous .project-story-main .project-story-heading,
  .loops-detail.is-story-continuous .project-story-main .project-chapter-summary,
  .loops-detail.is-story-continuous .project-story-main .project-kicker:not(.project-kicker-tertiary) {
    display: revert;
  }

  .loops-detail.is-story-continuous .project-story-main .project-story-heading p {
    color: var(--blue);
  }

  .loops-detail.is-story-continuous .project-story-main .project-kicker:not(.project-kicker-tertiary) {
    color: #4c515a;
    font-size: 16px;
    font-weight: 750;
    letter-spacing: 0.06em;
    line-height: 1.3;
    margin: 0 0 12px !important;
  }

  .loops-detail.is-story-continuous .project-chapter-summary {
    margin: 12px 0 14px;
  }

  .loops-detail.is-story-continuous .project-story-intro {
    margin-bottom: 0;
  }

  .loops-detail.is-story-continuous .project-subchapter-copy {
    margin-bottom: 0;
  }

  .loops-detail.is-story-continuous .project-story-intro + .project-story-intro,
  .loops-detail.is-story-continuous .project-subchapter + .project-subchapter,
  .loops-detail.is-story-continuous .project-chapter-page + .project-subchapter {
    margin-top: clamp(44px, 3.6vw, 56px);
  }

  .loops-detail.is-story-continuous .project-story-intro + .modular-chapter-start {
    margin-top: clamp(176px, 14.4vw, 224px);
  }
}

/* Fangtang APP detail page — Figma frame 1:2 / 01 项目概述 */
.fangtang-detail {
  background: #f2f2f2;
  --fangtang-story-content-height: auto;
  --fangtang-story-bottom-gap: clamp(56px, 6vw, 96px);
  --heritage-story-panel-top-gap: clamp(36px, 4.6vw, 62px);
}

.fangtang-detail .project-story {
  min-height: calc(100svh - 68px);
  padding: 0;
  scroll-margin-top: 64px;
}

.fangtang-hero .project-introduction {
  width: min(72vw, 1160px);
}

.fangtang-hero .project-introduction h1 {
  width: min(980px, 86%);
}

.heritage-hero .project-introduction {
  width: min(72vw, 1160px);
}

.heritage-hero .project-introduction h1 {
  width: min(980px, 86%);
}

.heritage-hero .project-hero-image {
  object-position: center;
}

.fangtang-layout {
  --fangtang-sidebar-w: 224px;
  --fangtang-col-gap: clamp(54px, 7vw, 112px);
  width: min(1500px, calc(100% - var(--page-pad) * 2));
  padding: clamp(78px, 5vw, 96px) 0 96px;
  grid-template-columns: minmax(0, 1fr) var(--fangtang-sidebar-w);
  grid-template-rows: auto;
  column-gap: var(--fangtang-col-gap);
  row-gap: 0;
}

.fangtang-overview,
.fangtang-opportunity,
.fangtang-users,
.fangtang-journey,
.fangtang-core,
.fangtang-decision,
.fangtang-validation,
.fangtang-ecosystem,
.fangtang-uiux,
.fangtang-iteration {
  grid-column: 1;
  min-width: 0;
}

.fangtang-section-index {
  margin: 0 0 10px;
  color: #2d5eca;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.fangtang-overview h1 {
  max-width: 730px;
  margin: 0;
  color: #000;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(42px, 3.25vw, 48px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.34;
}

.fangtang-meta {
  display: grid;
  gap: 8px;
  margin: 86px 0 0;
  color: #000;
  font-size: 18px;
  line-height: 1.3;
}

.fangtang-meta div {
  display: flex;
  gap: 3px;
}

.fangtang-meta dt,
.fangtang-meta dd {
  margin: 0;
}

.fangtang-meta dt {
  font-weight: 800;
}

.fangtang-meta dd {
  font-weight: 300;
}

.fangtang-overview-image {
  width: 100%;
  margin-top: clamp(16px, 1.6vw, 24px);
  aspect-ratio: 893 / 532;
  object-fit: cover;
}

.heritage-overview-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 893 / 532;
  background: #15110f;
}

.heritage-overview-source,
.heritage-overview-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.heritage-overview-source {
  object-fit: cover;
  object-position: center;
  transition: opacity 120ms ease;
}

.heritage-overview-canvas {
  opacity: 0;
  filter: blur(0.1px);
  image-rendering: auto;
}

.heritage-overview-media.is-progressive-ready .heritage-overview-source {
  opacity: 0;
}

.heritage-overview-media.is-progressive-ready .heritage-overview-canvas {
  opacity: 1;
}

.heritage-opportunity {
  padding: clamp(48px, 4.7vw, 64px) clamp(54px, 5.7vw, 70px) clamp(56px, 6vw, 96px);
  background: #f2f2f2;
}

.heritage-opportunity .fangtang-section-index {
  margin-bottom: 8px;
  font-size: 13px;
}

.heritage-opportunity h2 {
  max-width: 660px;
  margin: 0;
  color: #000;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(34px, 3.15vw, 47px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.22;
}

.heritage-opportunity-panel {
  width: calc(100% + (clamp(54px, 5.7vw, 70px) * 2));
  margin-left: calc(clamp(54px, 5.7vw, 70px) * -1);
  margin-top: clamp(36px, 4.6vw, 62px);
  padding: clamp(44px, 4.8vw, 64px) clamp(54px, 5.7vw, 70px) clamp(42px, 4.6vw, 58px);
  background: #f8f3ef;
}

.heritage-opportunity-grid {
  display: grid;
  gap: clamp(12px, 1vw, 16px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.heritage-opportunity-prompt {
  display: flex;
  min-height: clamp(210px, 16.4vw, 236px);
  padding: clamp(12px, 1.2vw, 18px) clamp(4px, 0.8vw, 12px) 0;
  color: #000;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  flex-direction: column;
  justify-content: flex-start;
}

.heritage-opportunity-prompt span {
  font-size: clamp(12px, 0.95vw, 16px);
  font-weight: 300;
  line-height: 1.2;
}

.heritage-opportunity-prompt strong {
  display: block;
  margin-top: 2px;
  font-size: clamp(13px, 1.02vw, 16px);
  font-weight: 800;
  line-height: 1.25;
}

.heritage-opportunity-card {
  min-width: 0;
  min-height: clamp(210px, 16.4vw, 236px);
  padding: clamp(7px, 0.65vw, 9px) clamp(7px, 0.65vw, 9px) clamp(18px, 1.7vw, 24px);
  background: #fff;
  color: #000;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
}

.heritage-opportunity-card img {
  display: block;
  width: 100%;
  aspect-ratio: 192 / 129;
  object-fit: cover;
}

.heritage-opportunity-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 192 / 129;
}

.heritage-opportunity-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.heritage-opportunity-card--recognition img {
  object-position: center 38%;
}

.heritage-opportunity-card--print img {
  object-position: center 42%;
}

.heritage-opportunity-card--audience img {
  object-position: center 61.25%;
}

.heritage-opportunity-card--color img {
  object-position: center 81%;
}

.heritage-opportunity-card--parametric img {
  object-position: center 45%;
}

.heritage-opportunity-card--increment img {
  object-fit: cover;
  object-position: center;
  transform: none;
}

.heritage-opportunity-card h3 {
  margin: clamp(10px, 1vw, 14px) 0 clamp(5px, 0.6vw, 8px);
  color: #000;
  font-size: clamp(12px, 0.98vw, 16px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.28;
}

.heritage-opportunity-card p {
  margin: 0;
  color: #000;
  font-size: clamp(10px, 0.72vw, 12px);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.48;
}

.heritage-opportunity-problem {
  background: #f2f2f2;
}

.heritage-problem-panel {
  position: relative;
  width: calc(100% + (clamp(54px, 5.7vw, 70px) * 2));
  min-height: clamp(680px, 54vw, 820px);
  margin-left: calc(clamp(54px, 5.7vw, 70px) * -1);
  margin-top: clamp(38px, 4.7vw, 62px);
  padding: clamp(26px, 2.8vw, 38px) clamp(54px, 5.7vw, 70px) 0;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f3ef 0%, #f8f3ef 44%, #f3e0d0 100%);
  color: #000;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
}

.heritage-problem-panel::before {
  position: absolute;
  top: clamp(86px, 9vw, 132px);
  right: 0;
  left: 0;
  z-index: 1;
  height: clamp(92px, 10vw, 134px);
  background: #f8f3ef;
  content: "";
}

.heritage-problem-label,
.heritage-problem-cards,
.heritage-problem-source {
  position: relative;
  z-index: 3;
}

.heritage-problem-label {
  width: min(250px, 28%);
  margin-left: 0;
  font-weight: 800;
  line-height: 1.18;
}

.heritage-problem-label span {
  display: block;
  margin-bottom: 2px;
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 300;
}

.heritage-problem-label strong {
  display: block;
  font-size: clamp(13px, 1vw, 16px);
  letter-spacing: 0;
}

.heritage-problem-cards {
  display: grid;
  width: min(88%, 850px);
  margin: clamp(24px, 2.7vw, 35px) auto 0;
  gap: clamp(14px, 1.4vw, 18px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.heritage-problem-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: clamp(222px, 16.3vw, 280px);
  min-height: 0;
  padding: clamp(12px, 1.15vw, 15px) clamp(14px, 1.35vw, 18px) clamp(10px, 1vw, 13px);
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.heritage-problem-card h3 {
  margin: 0 0 clamp(6px, 0.75vw, 10px);
  font-size: clamp(11px, 0.9vw, 14px);
  font-weight: 800;
  line-height: 1.2;
}

.heritage-problem-rating-grid {
  display: grid;
  max-width: 168px;
  margin-bottom: clamp(18px, 2vw, 26px);
  color: #000;
  column-gap: 5px;
  row-gap: 3px;
  align-items: center;
  grid-template-columns: auto max-content auto max-content;
}

.heritage-problem-rating-grid span {
  font-size: clamp(6px, 0.55vw, 8px);
  font-weight: 300;
  line-height: 1.05;
  white-space: nowrap;
}

.heritage-rating {
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(3, clamp(4px, 0.36vw, 6px));
}

.heritage-problem-rating-grid > span:nth-child(3),
.heritage-problem-rating-grid > span:nth-child(7) {
  margin-left: clamp(18px, 1.7vw, 24px);
}

.heritage-rating i {
  display: block;
  aspect-ratio: 1;
  background: #d9d9d9;
}

.heritage-rating[data-score="1"] i:nth-child(-n + 1),
.heritage-rating[data-score="2"] i:nth-child(-n + 2),
.heritage-rating[data-score="3"] i:nth-child(-n + 3) {
  background: #8b8960;
}

.heritage-problem-stat {
  display: flex;
  margin-top: clamp(22px, 1.5vw, 27px);
  margin-bottom: clamp(4px, 0.45vw, 6px);
  gap: clamp(8px, 0.8vw, 12px);
  align-items: flex-end;
}

.heritage-problem-stat strong {
  font-family: "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(19px, 1.7vw, 26px);
  font-weight: 400;
  line-height: 0.9;
}

.heritage-problem-stat span {
  font-size: clamp(7px, 0.63vw, 10px);
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
}

.heritage-problem-card p {
  margin: 0;
  font-size: clamp(7px, 0.58vw, 9px);
  font-weight: 300;
  line-height: 1.24;
}

.heritage-problem-stat + p {
  position: relative;
  min-height: clamp(25px, 2.35vw, 36px);
  padding-left: clamp(10px, 0.85vw, 13px);
}

.heritage-problem-stat + p::before {
  position: absolute;
  top: 0.35em;
  left: 0;
  width: clamp(6px, 0.56vw, 9px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #111;
  content: "";
}

.heritage-problem-chart {
  display: block;
  width: 100%;
  height: clamp(30px, 3.05vw, 42px);
  margin-top: clamp(2px, 0.25vw, 4px);
  object-fit: fill;
  object-position: center;
}

.heritage-problem-card > p:last-of-type {
  margin-top: clamp(8px, 0.85vw, 12px);
}

.heritage-problem-source {
  position: absolute;
  bottom: clamp(8px, 0.8vw, 12px);
  left: clamp(16px, 1.6vw, 24px);
  z-index: 4;
  width: min(82%, 850px);
  margin: 0;
  font-size: clamp(8px, 0.75vw, 12px);
  font-weight: 300;
  line-height: 1.35;
}

.heritage-problem-device-crop {
  display: contents;
}

.heritage-problem-device-media {
  position: absolute;
  right: auto;
  bottom: 0;
  left: 8.47%;
  z-index: 2;
  display: block;
  width: 83.1%;
  max-width: none;
}

.heritage-problem-device-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.heritage-problem-device-screen {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  background: #050505;
  clip-path: polygon(32.405% 60.283%, 70.513% 53.094%, 70.513% 81.674%, 32.493% 86.447%);
}

.heritage-problem-device-video-smoothing {
  --heritage-problem-video-smoothing: 0.12px;
  position: absolute;
  inset: 0;
  filter: blur(var(--heritage-problem-video-smoothing));
}

.heritage-problem-device-video-canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  max-width: none;
  background: #050505;
  image-rendering: auto;
  transform-origin: 0 0;
  will-change: transform;
}

.heritage-problem-device-video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.heritage-problem-device-playback {
  --heritage-playback-control-size: clamp(26px, 3vw, 40px);
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 0;
  border: 0;
  background: transparent;
  clip-path: polygon(32.405% 60.283%, 70.513% 53.094%, 70.513% 81.674%, 32.493% 86.447%);
  cursor: pointer;
}

.heritage-problem-device-playback::before,
.heritage-problem-device-playback::after {
  display: none;
  position: absolute;
  top: 58.7%;
  left: 51.5%;
  content: "";
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.heritage-problem-device-playback::before {
  width: var(--heritage-playback-control-size);
  height: var(--heritage-playback-control-size);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.68);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(3px);
}

.heritage-problem-device-playback::after {
  width: calc(var(--heritage-playback-control-size) * 0.25);
  height: calc(var(--heritage-playback-control-size) * 0.31);
  margin-left: 1px;
  background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.heritage-problem-device-playback.is-playing::after {
  margin-left: 0;
  background: linear-gradient(90deg, #fff 0 34%, transparent 34% 66%, #fff 66% 100%);
  clip-path: none;
}

.heritage-problem-device-playback.is-playing:not(:hover):not(:focus-visible)::before,
.heritage-problem-device-playback.is-playing:not(:hover):not(:focus-visible)::after {
  opacity: 0;
}

.heritage-problem-device-playback:hover::before {
  background: rgba(5, 5, 5, 0.82);
}

.heritage-problem-device-playback:focus-visible {
  outline: none;
}

.heritage-problem-device-playback:focus-visible::before {
  box-shadow: 0 0 0 3px #2864ff, 0 5px 16px rgba(0, 0, 0, 0.26);
}

.fangtang-users.heritage-users {
  margin-top: clamp(96px, 9vw, 144px);
  padding: clamp(48px, 4.7vw, 64px) clamp(54px, 5.7vw, 70px) clamp(56px, 6vw, 96px);
  background: #f2f2f2;
  scroll-margin-top: 96px;
}

.fangtang-users.heritage-users .fangtang-section-index {
  margin-bottom: 8px;
  font-size: 13px;
}

.fangtang-users.heritage-users h2 {
  max-width: 680px;
  margin: 0;
  color: #000;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(34px, 3.15vw, 47px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.22;
}

.heritage-users-panel {
  position: relative;
  container-type: inline-size;
  width: calc(100% + (clamp(54px, 5.7vw, 70px) * 2));
  min-height: clamp(650px, 52vw, 800px);
  margin-left: calc(clamp(54px, 5.7vw, 70px) * -1);
  margin-top: clamp(38px, 4.7vw, 62px);
  padding: 0;
  overflow: hidden;
  background: #f0ebe5;
  color: #000;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
}

.heritage-persona-heading,
.heritage-pain-heading {
  position: absolute;
  z-index: 3;
  color: #000;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(15px, 2.03cqw, 17px);
  font-weight: 800;
  line-height: 1.2;
}

.heritage-persona-heading {
  top: 3.84%;
  left: 6.36%;
}

.heritage-personas {
  position: absolute;
  top: 13.28%;
  left: 6.36%;
  z-index: 3;
  display: grid;
  width: auto;
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(28px, 2.89vw, 37px);
  justify-items: center;
}

.heritage-persona {
  display: grid;
  justify-items: center;
}

.heritage-persona img {
  width: clamp(70px, 7.5vw, 96px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.heritage-persona p {
  margin: clamp(7px, 1.05vw, 10px) 0 0;
  color: #000;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(12px, 1.67cqw, 14px);
  font-weight: 300;
  line-height: 1.2;
  text-align: center;
}

.heritage-pain-heading {
  top: 40%;
  left: 6.36%;
}

.heritage-pain-roof {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: auto;
  height: 89.76%;
  max-width: none;
  opacity: 1;
  pointer-events: none;
}

.heritage-pain-card {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 27.41%;
  height: auto;
  min-height: 0;
  padding: 0;
  grid-template-columns: clamp(32px, 4.05vw, 42px) minmax(0, 1fr);
  column-gap: clamp(7px, 1.05vw, 10px);
  border-radius: 0;
  background: transparent;
  color: #000;
  backdrop-filter: none;
  transform: none;
}

.heritage-pain-card--one {
  top: 50.72%;
  left: 6.36%;
}

.heritage-pain-card--two {
  top: 47.04%;
  left: 42.1%;
}

.heritage-pain-card--three {
  top: 64.8%;
  left: 6.36%;
}

.heritage-pain-card--four {
  top: 61.1%;
  left: 42.1%;
}

.heritage-pain-card span {
  display: block;
  grid-row: 1 / span 2;
  margin: 0;
  color: #3b3b3b;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(24px, 3.46cqw, 29px);
  font-weight: 800;
  line-height: 1;
}

.heritage-pain-card h3 {
  grid-column: 2;
  width: clamp(210px, 31cqw, 260px);
  margin: 0;
  color: #3b3b3b;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(16px, 2.27cqw, 19px);
  font-weight: 800;
  line-height: 1.2;
}

.heritage-pain-card p {
  grid-column: 2;
  width: clamp(210px, 31cqw, 260px);
  margin: clamp(1px, 0.22vw, 3px) 0 0;
  color: #545454;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(13px, 1.79cqw, 15px);
  font-weight: 300;
  line-height: 1.32;
}

.fangtang-opportunity {
  margin-top: clamp(96px, 9vw, 144px);
  scroll-margin-top: 96px;
}

.fangtang-opportunity-panel {
  width: 100%;
  padding: clamp(48px, 4.7vw, 64px) clamp(54px, 5.7vw, 70px) clamp(76px, 7.3vw, 98px);
  background: #edebe9;
}

.fangtang-opportunity-header {
  max-width: 660px;
}

.fangtang-opportunity .fangtang-section-index {
  margin-bottom: 10px;
  font-size: 13px;
}

.fangtang-opportunity h2 {
  max-width: 650px;
  margin: 0;
  color: #000;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(40px, 3.15vw, 47px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.28;
}

.fangtang-opportunity-cards {
  display: grid;
  margin-top: clamp(46px, 4.5vw, 60px);
  gap: clamp(8px, 0.8vw, 12px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fangtang-opportunity-card {
  min-width: 0;
  padding: 5px 5px 24px;
  background: #fff;
  text-align: center;
}

.fangtang-opportunity-card img {
  display: block;
  width: 100%;
  aspect-ratio: 184 / 125;
  object-fit: cover;
}

.fangtang-opportunity-card h3 {
  margin: 16px 8px 7px;
  color: #000;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(13px, 1.05vw, 18px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.28;
}

.fangtang-opportunity-card p {
  max-width: 220px;
  margin: 0 auto;
  color: #000;
  font-size: clamp(11px, 0.9vw, 15px);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.45;
}

.fangtang-market {
  margin-top: clamp(76px, 7vw, 100px);
}

.fangtang-market h3 {
  margin: 0;
  color: #000;
  font-size: 0;
}

.fangtang-market-table {
  display: grid;
  color: #000;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(11px, 0.92vw, 15px);
  line-height: 1.35;
}

.fangtang-market-row {
  display: grid;
  min-height: clamp(50px, 4.5vw, 66px);
  align-items: center;
  border-top: 1px solid #777;
  grid-template-columns: minmax(150px, 1.25fr) repeat(5, minmax(96px, 1fr));
}

.fangtang-market-row:last-child {
  border-bottom: 1px solid #777;
}

.fangtang-market-row > span {
  min-width: 0;
}

.fangtang-market-head {
  min-height: 42px;
  border-top: 0;
  font-weight: 300;
}

.fangtang-market-head span:first-child,
.fangtang-market-row [role="rowheader"] {
  text-align: left;
}

.fangtang-market-head span:first-child {
  font-weight: 800;
}

.fangtang-market-head span:not(:first-child),
.fangtang-market-rating {
  justify-content: center;
  text-align: center;
}

.fangtang-market-rating {
  display: flex;
  gap: 3px;
}

.fangtang-market-rating i {
  display: block;
  width: clamp(7px, 0.62vw, 9px);
  height: clamp(7px, 0.62vw, 9px);
  border: 1px solid #000;
  background: #000;
}

.fangtang-market-rating i.is-empty {
  background: transparent;
}

.fangtang-users {
  margin-top: clamp(96px, 9vw, 144px);
  scroll-margin-top: 96px;
}

.fangtang-users-panel {
  position: relative;
  display: flex;
  width: 100%;
  min-height: clamp(740px, 73svh, 880px);
  padding: clamp(48px, 4.7vw, 64px) clamp(54px, 5.7vw, 70px) 0;
  overflow: hidden;
  background: #edebe9;
  flex-direction: column;
}

.fangtang-users-header {
  position: relative;
  z-index: 2;
  max-width: 690px;
}

.fangtang-users .fangtang-section-index {
  margin-bottom: 10px;
  font-size: 13px;
}

.fangtang-users h2 {
  max-width: 690px;
  margin: 0;
  color: #000;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(40px, 3.15vw, 47px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.28;
}

.fangtang-users-visual {
  position: relative;
  flex: 1;
  min-height: 500px;
  margin-top: clamp(34px, 4.4vw, 58px);
}

.fangtang-users-visual::after {
  position: absolute;
  right: -70px;
  bottom: 0;
  left: -70px;
  z-index: 1;
  height: 112px;
  background: linear-gradient(180deg, rgba(237, 235, 233, 0), #edebe9 72%, #edebe9);
  content: "";
  pointer-events: none;
}

.fangtang-users-rock {
  position: absolute;
  bottom: clamp(-280px, -14vw, -190px);
  left: 50%;
  z-index: 0;
  width: min(96%, 920px);
  max-width: none;
  transform: translateX(-50%);
}

.fangtang-user-cards {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(76%, 690px);
  margin: clamp(72px, 8.5vh, 112px) auto 0;
  gap: clamp(14px, 1.5vw, 20px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fangtang-user-card {
  display: flex;
  min-width: 0;
  min-height: clamp(248px, 24vw, 282px);
  padding: 24px clamp(14px, 1.45vw, 18px) 26px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(9px);
  flex-direction: column;
  text-align: center;
}

.fangtang-user-badge {
  display: inline-flex;
  min-height: 24px;
  padding: 4px 11px 5px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: #fff;
  background: #000;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.fangtang-user-card img {
  display: block;
  width: 52px;
  height: 52px;
  margin: clamp(34px, 4vw, 42px) auto 22px;
  object-fit: contain;
}

.fangtang-user-card h3 {
  margin: 0 0 6px;
  color: #000;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.fangtang-user-card p {
  margin: 0;
  color: #000;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.45;
}

.fangtang-journey {
  margin-top: clamp(96px, 9vw, 144px);
  scroll-margin-top: 96px;
}

.fangtang-journey-panel {
  position: relative;
  display: flex;
  width: 100%;
  min-height: clamp(760px, 75svh, 905px);
  padding: clamp(48px, 4.7vw, 64px) clamp(54px, 5.7vw, 70px) 0;
  overflow: hidden;
  background: #edebe9;
  flex-direction: column;
}

.fangtang-journey-header {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.fangtang-journey .fangtang-section-index {
  margin-bottom: 10px;
  font-size: 13px;
}

.fangtang-journey h2 {
  max-width: 760px;
  margin: 0;
  color: #000;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(40px, 3.15vw, 47px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.28;
}

.fangtang-journey-summary {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: clamp(22px, 2.2vw, 30px) 0 0;
  color: #000;
  font-size: clamp(12px, 1.05vw, 15px);
  font-weight: 300;
  line-height: 1.55;
}

.fangtang-journey-flow {
  position: relative;
  z-index: 2;
  width: min(79%, 940px);
  aspect-ratio: 1505 / 404;
  container-type: inline-size;
  margin: clamp(76px, 8.8vw, 106px) auto 0;
}

.fangtang-journey-path-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  overflow: visible;
}

.fangtang-journey-steps {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-step {
  position: absolute;
  width: 92px;
  color: #000;
  text-align: center;
  transform: translateX(-50%);
}

.journey-step span {
  position: relative;
  z-index: 3;
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #000;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.journey-step span::after {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  width: 0;
  height: 14px;
  border-left: 1px dotted #000;
  content: "";
  transform: translateX(-50%);
}

.journey-step p {
  margin: 18px 0 0;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.32;
}

.journey-step-1 {
  top: 38.5%;
  left: 3.3%;
}

.journey-step-2 {
  top: 0;
  left: 19.9%;
}

.journey-step-3 {
  top: 0;
  left: 42.9%;
}

.journey-step-4 {
  top: 0;
  left: 66%;
}

.journey-step-5 {
  top: 0;
  left: 88%;
}

.journey-step-6 {
  top: 59.5%;
  left: 88%;
}

.journey-step-7 {
  top: 59.5%;
  left: 71%;
}

.journey-step-8 {
  top: 59.5%;
  left: 54%;
}

.journey-step-9 {
  top: 59.5%;
  left: 36.9%;
}

.journey-step-10 {
  top: 59.5%;
  left: 19.9%;
}

@media (min-width: 761px) {
  .fangtang-journey-flow .journey-step span {
    visibility: hidden;
  }

  html:not([lang="zh-CN"]) .fangtang-journey-flow .journey-step span {
    visibility: visible;
  }

  html[lang="zh-CN"] .fangtang-journey-flow .journey-step p {
    display: none;
  }

  html:not([lang="zh-CN"]) .fangtang-journey-flow .journey-step p {
    position: relative;
    left: 50%;
    z-index: 2;
    width: min(120px, 16cqw);
    margin: 11px 0 0;
    padding: 0 5px;
    font-family: Inter, "Helvetica Neue", Arial, sans-serif;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.22;
    transform: translateX(-50%);
  }

  html:not([lang="zh-CN"]) .fangtang-journey-flow .journey-step::before {
    position: absolute;
    top: 18px;
    left: 50%;
    z-index: 1;
    width: min(130px, 16cqw);
    height: min(90px, 9cqw);
    background: #edebe9;
    content: "";
    transform: translateX(-50%);
  }
}

.fangtang-journey-landscape {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: clamp(390px, 42svh, 500px);
  object-fit: cover;
  object-position: center top;
  opacity: 0.84;
}

.fangtang-journey.heritage-flow {
  margin-top: clamp(96px, 9vw, 144px);
  padding: clamp(48px, 4.7vw, 64px) clamp(54px, 5.7vw, 70px) clamp(56px, 6vw, 96px);
  background: #f2f2f2;
  scroll-margin-top: 96px;
}

.fangtang-journey.heritage-flow .fangtang-section-index {
  margin-bottom: 8px;
  font-size: 13px;
}

.fangtang-journey.heritage-flow h2 {
  max-width: 720px;
  margin: 0;
  color: #000;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(34px, 3.15vw, 47px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.22;
}

.heritage-flow-summary {
  position: relative;
  z-index: 2;
  width: min(100%, 722px);
  margin: 0 auto;
  color: #000;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 800;
  line-height: 1.55;
  text-align: left;
}

.heritage-flow-panel {
  position: relative;
  width: calc(100% + (clamp(54px, 5.7vw, 70px) * 2));
  min-height: clamp(500px, 43vw, 650px);
  margin-top: clamp(54px, 5.6vw, 74px);
  margin-left: calc(clamp(54px, 5.7vw, 70px) * -1);
  padding: clamp(58px, 6.3vw, 82px) clamp(72px, 7.4vw, 95px) clamp(54px, 5.4vw, 72px);
  overflow: hidden;
  background: #f0ebe5;
  color: #000;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
}

.heritage-flow-steps {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100%, 722px);
  margin: clamp(36px, 4vw, 50px) auto 0;
  gap: clamp(3px, 0.45vw, 6px);
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.heritage-flow-step {
  min-width: 0;
}

.heritage-flow-image {
  position: relative;
  height: clamp(250px, 24.4vw, 311px);
  margin: 0;
  overflow: hidden;
}

.heritage-flow-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heritage-flow-step h3 {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  color: #fff;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(14px, 1.25vw, 16px);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.heritage-flow-step p {
  margin: clamp(8px, 0.9vw, 12px) 0 0;
  color: #2b2b2b;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(11px, 0.93vw, 12px);
  font-weight: 300;
  line-height: 1.42;
  text-align: justify;
}

.fangtang-core.heritage-core {
  margin-top: clamp(96px, 9vw, 144px);
  padding: clamp(48px, 4.7vw, 64px) clamp(54px, 5.7vw, 70px) clamp(56px, 6vw, 96px);
  background: #f2f2f2;
  scroll-margin-top: 96px;
}

.fangtang-core.heritage-core .fangtang-section-index {
  margin-bottom: 8px;
  font-size: 13px;
}

.fangtang-core.heritage-core h2 {
  max-width: 660px;
  margin: 0;
  color: #000;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(34px, 3.15vw, 47px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.22;
}

.fangtang-decision.heritage-decisions {
  margin-top: clamp(96px, 9vw, 144px);
  padding: clamp(48px, 4.7vw, 64px) clamp(54px, 5.7vw, 70px) clamp(56px, 6vw, 96px);
  background: #f2f2f2;
  scroll-margin-top: 96px;
}

.fangtang-decision.heritage-decisions .fangtang-section-index {
  margin-bottom: 8px;
  font-size: 13px;
}

.fangtang-decision.heritage-decisions h2 {
  max-width: 690px;
  margin: 0;
  color: #000;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(34px, 3.15vw, 47px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.22;
}

.fangtang-validation.heritage-validation {
  margin-top: clamp(96px, 9vw, 144px);
  padding: clamp(48px, 4.7vw, 64px) clamp(54px, 5.7vw, 70px) clamp(56px, 6vw, 96px);
  background: #f2f2f2;
  scroll-margin-top: 96px;
}

.fangtang-validation.heritage-validation .fangtang-section-index {
  margin-bottom: 8px;
  font-size: 13px;
}

.fangtang-validation.heritage-validation h2 {
  max-width: 620px;
  margin: 0;
  color: #000;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(34px, 3.15vw, 47px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.22;
}

.heritage-validation-panel {
  width: calc(100% + (clamp(54px, 5.7vw, 70px) * 2));
  margin: clamp(58px, 6vw, 76px) calc(clamp(54px, 5.7vw, 70px) * -1) 0;
  padding: clamp(24px, 2.45vw, 31px) 3.4% clamp(30px, 2.95vw, 37px);
  background: #fff;
  color: #2f333b;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
}

.heritage-validation-item {
  margin: 0;
}

.heritage-validation-item + .heritage-validation-item {
  margin-top: clamp(16px, 1.48vw, 20px);
}

.heritage-validation-item figcaption {
  margin: 0 0 clamp(6px, 0.58vw, 8px);
  color: #343840;
  font-size: clamp(8px, 0.72vw, 10px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.heritage-validation-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.fangtang-ecosystem.heritage-ecosystem {
  margin-top: clamp(96px, 9vw, 144px);
  padding: clamp(48px, 4.7vw, 64px) clamp(54px, 5.7vw, 70px) clamp(56px, 6vw, 96px);
  background: #f2f2f2;
  scroll-margin-top: 96px;
}

.heritage-ecosystem-sheet {
  width: calc(100% + (clamp(54px, 5.7vw, 70px) * 2));
  margin: 0 calc(clamp(54px, 5.7vw, 70px) * -1);
  padding: clamp(42px, 4.3vw, 55px) 3.25% clamp(60px, 6vw, 78px);
  background: #fff;
  color: #000;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
}

.heritage-ecosystem-header {
  max-width: 640px;
}

.heritage-ecosystem .fangtang-section-index {
  margin-bottom: 8px;
  font-size: 13px;
}

.heritage-ecosystem h2 {
  max-width: 640px;
  margin: 0;
  color: #000;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(34px, 3.15vw, 47px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.22;
}

.heritage-ecosystem-stack {
  display: grid;
  margin-top: clamp(38px, 3.7vw, 48px);
  gap: clamp(28px, 2.9vw, 37px);
}

.heritage-ecosystem-item {
  margin: 0;
  scroll-margin-top: 96px;
}

.heritage-ecosystem-item h3,
.heritage-ecosystem-item p,
.heritage-ecosystem-item h4 {
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  letter-spacing: 0;
}

.heritage-ecosystem-item h3 {
  margin: 0 0 clamp(5px, 0.5vw, 7px);
  color: #333942;
  font-size: clamp(11px, calc(0.8vw + 2px), 13px);
  font-weight: 700;
  line-height: 1.25;
}

.heritage-ecosystem-item > p {
  margin: 0 0 clamp(10px, 1vw, 13px);
  color: #626872;
  font-size: clamp(8px, 0.72vw, 10px);
  font-weight: 300;
  line-height: 1.3;
}

.heritage-ecosystem-web .heritage-matrix + p {
  margin-top: 3px;
}

.heritage-ecosystem-photo,
.heritage-ecosystem-item img {
  display: block;
  width: 100%;
  height: auto;
}

.heritage-matrix {
  position: relative;
  overflow: hidden;
  background: #f8f4ef;
}

.heritage-matrix-base {
  display: block;
  width: 100%;
  height: auto;
}

.heritage-matrix-static .heritage-matrix-overlay {
  display: none;
}

.heritage-matrix-overlay {
  position: absolute;
  inset: 0;
  color: #343434;
  pointer-events: none;
}

.heritage-matrix-title {
  position: absolute;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  color: #9fa3aa;
  font-size: clamp(14px, 1.55vw, 22px);
  font-weight: 300;
  line-height: 1;
  text-align: center;
}

.heritage-matrix-title-plane {
  top: 3.1%;
}

.heritage-matrix-title-school {
  top: 30.6%;
}

.heritage-matrix-title-roof {
  top: 53.7%;
}

.heritage-matrix-status,
.heritage-matrix-legend i {
  display: grid;
  width: clamp(11px, 1.45vw, 19px);
  height: clamp(11px, 1.45vw, 19px);
  place-items: center;
  border: clamp(1px, 0.14vw, 2px) solid #c9cecf;
  border-radius: clamp(2px, 0.25vw, 4px);
  color: #b5bbbc;
  font-size: clamp(8px, 0.9vw, 13px);
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.heritage-matrix-status {
  position: absolute;
  top: var(--y);
  left: var(--x);
}

.heritage-matrix-status.is-done,
.heritage-matrix-legend i.is-done {
  border-color: #9da572;
  color: #7d8455;
}

.heritage-matrix-label {
  position: absolute;
  top: var(--y);
  left: var(--x);
  min-width: 5em;
  transform: translate(-50%, -50%);
  color: #4b4f55;
  font-size: clamp(7px, 0.72vw, 10px);
  font-weight: 300;
  line-height: 1.2;
  text-align: center;
}

.heritage-matrix-legend {
  position: absolute;
  right: 2.9%;
  bottom: 1.4%;
  display: flex;
  gap: clamp(8px, 1.35vw, 18px);
}

.heritage-matrix-legend span {
  display: inline-flex;
  align-items: center;
  gap: clamp(3px, 0.4vw, 6px);
  color: #626872;
  font-size: clamp(7px, 0.7vw, 10px);
  font-weight: 300;
  line-height: 1;
}

.heritage-matrix-legend b {
  font-weight: 300;
}

.heritage-community-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  background: #fff;
}

.heritage-community-cards article {
  position: relative;
  min-height: clamp(360px, 35vw, 429px);
  overflow: hidden;
}

.heritage-community-cards article::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.38) 43%, rgba(0, 0, 0, 1) 100%);
  content: "";
}

.heritage-community-cards img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heritage-community-cards article > div {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  padding: clamp(120px, 12.5vw, 154px) clamp(18px, 2vw, 27px) clamp(22px, 2.3vw, 30px);
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(68px, 7vw, 88px);
  color: #fff;
  text-align: center;
}

.heritage-community-cards h4 {
  margin: 0 auto;
  max-width: 220px;
  color: #fff;
  font-weight: 800;
  line-height: 1.16;
  text-align: center;
}

.heritage-community-title-main,
.heritage-community-title-sub {
  display: block;
  color: #fff;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  letter-spacing: 0;
  text-align: center;
}

.heritage-community-title-main {
  font-size: clamp(19px, 1.875vw, 24px);
  font-weight: 800;
  line-height: 1.08;
}

.heritage-community-title-sub {
  margin-top: clamp(1px, 0.22vw, 3px);
  font-size: clamp(13px, 1.25vw, 16px);
  font-weight: 400;
  line-height: 1.22;
}

.heritage-community-cards p {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(9px, 0.86vw, 11px);
  font-weight: 300;
  line-height: 1.38;
  text-align: center;
}

.heritage-material-figure {
  position: relative;
  padding-bottom: clamp(54px, 6.3vw, 76px);
  overflow: hidden;
  background: #fff;
  margin: 0;
}

.heritage-material-photo-crop {
  position: relative;
  overflow: hidden;
  aspect-ratio: 854 / 546;
}

.heritage-material-photo-crop .heritage-ecosystem-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}

.heritage-material-swatches {
  position: absolute;
  right: 6.2%;
  bottom: calc(clamp(8px, 1.35vw, 16px) + 15px);
  z-index: 2;
  display: grid;
  width: min(33.6%, 300px);
  gap: clamp(7px, 1.05vw, 14px);
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.heritage-material-swatches span {
  display: grid;
  gap: clamp(5px, 0.55vw, 7px);
  color: #666;
  font-size: clamp(8px, 0.78vw, 11px);
  font-weight: 300;
  line-height: 1;
  text-align: center;
}

.heritage-material-swatches span::before {
  display: block;
  aspect-ratio: 1;
  height: auto;
  border: clamp(1px, 0.2vw, 2px) solid #fff;
  background: var(--swatch);
  box-sizing: border-box;
  content: "";
}

.heritage-decisions-panel {
  position: relative;
  width: calc(100% + (clamp(54px, 5.7vw, 70px) * 2));
  min-height: 0;
  aspect-ratio: 912 / 608;
  margin: clamp(58px, 6vw, 76px) calc(clamp(54px, 5.7vw, 70px) * -1) 0;
  overflow: hidden;
  background: linear-gradient(-45.9296deg, #f8f5f2 33.431%, #f2ebe5 95.122%);
  color: #333;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
}

.heritage-decisions-device {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
}

.heritage-decisions-cards {
  position: absolute;
  top: 10.9%;
  right: 5.15%;
  left: 5.15%;
  z-index: 2;
  display: grid;
  height: 25.8%;
  gap: 0.9%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  transform: translateY(-40px);
}

.heritage-decision-card {
  display: flex;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  padding: clamp(14px, 1.55vw, 20px) clamp(11px, 1.25vw, 16px);
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: clamp(10px, 1.02vw, 13px);
  background: rgba(181, 181, 181, 0.26);
  box-shadow:
    0 22px 44px rgba(80, 72, 64, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 -1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(21px) saturate(120%);
  -webkit-backdrop-filter: blur(21px) saturate(120%);
  text-align: center;
}

.heritage-decision-card h3 {
  margin: 0 0 clamp(7px, 0.95vw, 12px);
  color: #3e3e3e;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
}

.heritage-decision-card p {
  margin: 0;
  color: #545454;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(12px, 1.09vw, 14px);
  font-weight: 300;
  line-height: 1.28;
  text-align: center;
}

.heritage-core-anchor {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.heritage-core-panel {
  position: relative;
  width: calc(100% + (clamp(54px, 5.7vw, 70px) * 2));
  min-height: clamp(540px, 52vw, 664px);
  margin: clamp(58px, 6vw, 76px) calc(clamp(54px, 5.7vw, 70px) * -1) 0;
  overflow: hidden;
  background: #f0ebe5;
  cursor: grab;
  user-select: none;
}

.heritage-core-panel.is-core-dragging {
  cursor: grabbing;
}

.heritage-core-tabs {
  position: absolute;
  top: calc(clamp(72px, 8.9vw, 96px) - 30px);
  left: 50%;
  z-index: 3;
  display: flex;
  gap: clamp(34px, 3.6vw, 46px);
  align-items: center;
  justify-content: center;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  transform: translateX(-50%);
}

.heritage-core-tab {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1e1e1e;
  cursor: pointer;
  font: inherit;
  font-size: clamp(15px, 1.32vw, 17px);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
}

.heritage-core-tab.is-active {
  font-weight: 800;
}

.heritage-core-device {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(124%, 1120px);
  aspect-ratio: 7022 / 4711;
  background: transparent;
  transform: translate(-50%, calc(-42% - 40px));
}

.heritage-core-device::before {
  content: none;
}

.heritage-core-device::after {
  content: none;
}

.heritage-core-laptop {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.heritage-core-screen {
  position: absolute;
  top: 23.36%;
  left: 24.83%;
  z-index: 2;
  width: 51.4%;
  height: 52%;
  overflow: hidden;
  border-radius: clamp(2px, 0.18vw, 3px);
  background: #000;
}

.heritage-core-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 280ms ease;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.heritage-core.is-core-changing .heritage-core-media {
  opacity: 0;
}

.heritage-core-swipe-hint {
  position: absolute;
  bottom: clamp(34px, 4.8vw, 54px);
  left: 50%;
  z-index: 3;
  margin: 0;
  color: #818181;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(12px, 1.09vw, 14px);
  font-weight: 300;
  line-height: 1.2;
  transform: translateX(-50%);
}

.fangtang-core {
  margin-top: clamp(96px, 9vw, 144px);
  scroll-margin-top: 96px;
}

.fangtang-core-panel {
  --fangtang-core-pad-x: clamp(54px, 5.7vw, 70px);
  --fangtang-core-pad-top: clamp(48px, 4.7vw, 64px);
  position: relative;
  width: 100%;
  padding: var(--fangtang-core-pad-top) var(--fangtang-core-pad-x) 0;
  overflow: hidden;
  background: #edebe9;
}

.fangtang-core-header {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.fangtang-core .fangtang-section-index {
  margin-bottom: 10px;
  font-size: 13px;
}

.fangtang-core h2 {
  max-width: 760px;
  margin: 0;
  color: #000;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(40px, 3.15vw, 47px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.28;
}

.fangtang-core-hero-image {
  display: block;
  width: calc(100% + var(--fangtang-core-pad-x) * 2);
  margin: clamp(62px, 6.6vw, 86px) calc(var(--fangtang-core-pad-x) * -1) 0;
  aspect-ratio: 923 / 601;
  object-fit: cover;
  object-position: center;
}

.fangtang-core-feature {
  position: relative;
  scroll-margin-top: 96px;
}

.fangtang-core-feature img {
  display: block;
  max-width: 100%;
}

.fangtang-core-marker {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 68px;
}

.fangtang-core-marker span {
  display: block;
  color: #000;
  font-family: "Tulpen One", "Agency FB", "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(102px, 7.7vw, 112px);
  font-stretch: condensed;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.78;
}

.fangtang-core-marker h3 {
  width: 68px;
  margin: 18px 0 0;
  color: #686d78;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(10.625px, 0.802vw, 11.667px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  text-align: center;
  transform: translateX(-8px);
}

.fangtang-core-copy {
  position: absolute;
  z-index: 2;
  margin: 0;
  color: #535353;
  font-family: "Microsoft JhengHei UI", "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 22px;
  text-align: justify;
}

.fangtang-core-home {
  min-height: clamp(780px, 70vw, 830px);
  margin-top: clamp(72px, 7vw, 96px);
}

.fangtang-core-home .fangtang-core-copy {
  top: clamp(166px, 15.8vw, 204px);
  left: min(9.4%, 96px);
  width: min(36%, 330px);
  font-size: clamp(13px, 1.08vw, 15px);
  line-height: 1.86;
}

.fangtang-core-home-gallery {
  position: absolute;
  top: auto;
  bottom: clamp(10px, 1.2vw, 16px);
  left: min(5.2%, 54px);
  z-index: 2;
  display: flex;
  width: min(50%, 460px);
  gap: clamp(10px, 1.1vw, 14px);
  align-items: flex-end;
}

.fangtang-core-home-gallery img {
  width: calc((100% - clamp(20px, 2.2vw, 28px)) / 3);
  border: 2px solid #353232;
  border-radius: 14px;
}

.fangtang-core-home-phone {
  position: absolute;
  top: auto;
  bottom: clamp(10px, 1.2vw, 16px);
  right: min(12%, 128px);
  z-index: 2;
  width: min(31%, 285px);
  border: 3px solid #353232;
  border-radius: 35px;
}

.fangtang-core-design {
  min-height: clamp(780px, 78vw, 900px);
  margin-top: clamp(160px, 14vw, 200px);
}

.fangtang-core-design .fangtang-core-copy {
  top: clamp(404px, 40vw, 488px);
  left: calc(min(16%, 150px) - 30px);
  width: min(22%, 190px);
  font-size: clamp(13px, 1.08vw, 15px);
  line-height: 1.86;
  text-align: left;
}

.fangtang-core-design-phone-media,
.fangtang-core-design-flow {
  position: absolute;
  top: clamp(142px, 14vw, 170px);
  display: block;
  box-sizing: border-box;
  width: min(27%, 276px);
  aspect-ratio: 461 / 1020;
  object-fit: cover;
  border: 3px solid #3d3d3d;
  border-radius: 25px;
}

.fangtang-core-design-phone-media {
  position: absolute;
  right: min(11%, 110px);
  left: auto;
  z-index: 3;
  overflow: hidden;
}

.fangtang-core-design-phone-source,
.fangtang-core-design-phone-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.fangtang-core-design-phone-source {
  object-fit: cover;
  object-position: center;
  transition: opacity 120ms ease;
}

.fangtang-core-design-phone-canvas {
  opacity: 0;
  border-radius: inherit;
  filter: blur(0.1px);
  image-rendering: auto;
}

.fangtang-core-design-phone-media.is-progressive-ready .fangtang-core-design-phone-source {
  opacity: 0;
}

.fangtang-core-design-phone-media.is-progressive-ready .fangtang-core-design-phone-canvas {
  opacity: 1;
}

.fangtang-core-design-flow {
  right: auto;
  left: calc(min(38%, 355px) - 30px);
  z-index: 2;
  overflow: hidden;
}

.fangtang-core-design-flow-source,
.fangtang-core-design-flow-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.fangtang-core-design-flow-source {
  object-fit: cover;
  object-position: center;
  transition: opacity 120ms ease;
}

.fangtang-core-design-flow-canvas {
  opacity: 0;
  border-radius: inherit;
  filter: blur(0.1px);
  image-rendering: auto;
}

.fangtang-core-design-flow.is-progressive-ready .fangtang-core-design-flow-source {
  opacity: 0;
}

.fangtang-core-design-flow.is-progressive-ready .fangtang-core-design-flow-canvas {
  opacity: 1;
}

.fangtang-core-management {
  min-height: clamp(1040px, 98vw, 1160px);
  margin-top: clamp(54px, 6vw, 82px);
}

.fangtang-core-management .fangtang-core-copy {
  top: auto;
  bottom: 0;
  left: min(20%, 204px);
  width: min(33%, 320px);
  font-size: clamp(13px, 1.08vw, 15px);
  line-height: 1.86;
}

.fangtang-core-management-device {
  position: absolute;
  top: clamp(190px, 19vw, 236px);
  left: min(18%, 182px);
  z-index: 1;
  width: min(55%, 560px);
}

.fangtang-core-demo {
  position: absolute;
  z-index: 3;
  display: block;
  overflow: hidden;
  box-sizing: border-box;
  border: 3px solid #464646;
  border-radius: 35px;
  background: #fff;
  cursor: pointer;
  isolation: isolate;
}

.fangtang-core-demo-poster,
.fangtang-core-demo-video {
  display: block;
  width: 100%;
  transition: opacity 650ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.fangtang-core-demo-poster {
  height: auto;
  opacity: 1;
}

.fangtang-core-demo-video {
  position: absolute;
  inset: 0;
  height: 100%;
  border: 0;
  opacity: 0;
  pointer-events: none;
  object-fit: cover;
  transform: translateZ(0);
}

.fangtang-core-demo.is-video-active .fangtang-core-demo-poster {
  opacity: 0;
}

.fangtang-core-demo.is-video-active .fangtang-core-demo-video {
  opacity: 1;
}

.fangtang-core-demo:focus-visible {
  outline: 2px solid #1769ff;
  outline-offset: 4px;
}

.fangtang-core-demo-video::-webkit-media-controls,
.fangtang-core-demo-video::-webkit-media-controls-enclosure,
.fangtang-core-demo-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

.fangtang-core-home-demo {
  border-color: #353232;
}

.fangtang-core-design-flow {
  border-color: #3d3d3d;
}

.fangtang-core-design-flow-poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .fangtang-core-demo-poster,
  .fangtang-core-demo-video {
    transition-duration: 1ms;
  }
}

.fangtang-core-management-demo {
  position: absolute;
  top: auto;
  right: min(15%, 156px);
  bottom: 0;
  width: min(30%, 294px);
}

.fangtang-core-community {
  min-height: clamp(990px, 92vw, 1120px);
  margin-top: clamp(108px, 11vw, 150px);
}

.fangtang-core-community .fangtang-core-copy {
  top: auto;
  bottom: clamp(124px, 12vw, 138px);
  left: min(17%, 175px);
  width: calc((min(70%, 700px) - clamp(54px, 6vw, 82px)) / 2);
  font-size: clamp(13px, 1.08vw, 15px);
  line-height: 1.86;
}

.fangtang-core-community-phones {
  position: absolute;
  top: clamp(205px, 20vw, 238px);
  left: min(17%, 175px);
  z-index: 2;
  display: flex;
  width: min(70%, 700px);
  align-items: flex-start;
  gap: clamp(54px, 6vw, 82px);
}

.fangtang-core-community-phones img {
  width: calc((100% - clamp(54px, 6vw, 82px)) / 2);
  border: 3px solid #464646;
  border-radius: 35px;
}

.fangtang-core-community-phones img:nth-child(2) {
  margin-top: clamp(56px, 5.8vw, 74px);
}

.fangtang-core-profile {
  min-height: clamp(960px, 90vw, 1080px);
  margin-top: clamp(20px, 4vw, 52px);
}

.fangtang-core-profile .fangtang-core-copy {
  top: clamp(150px, 15vw, 176px);
  left: min(5.5%, 54px);
  width: min(36%, 330px);
  padding: 0;
  background: transparent;
  font-size: clamp(13px, 1.08vw, 15px);
  line-height: 1.86;
}

.fangtang-core-profile-demo {
  position: absolute;
  top: clamp(48px, 5vw, 62px);
  right: auto;
  left: calc(min(17%, 175px) + (min(70%, 700px) + clamp(54px, 6vw, 82px)) / 2);
  width: calc((min(70%, 700px) - clamp(54px, 6vw, 82px)) / 2);
}

.fangtang-core-profile-scene {
  position: absolute;
  right: auto;
  bottom: 0;
  left: calc(var(--fangtang-core-pad-x) * -1);
  z-index: 1;
  width: calc(100% + var(--fangtang-core-pad-x) * 2);
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

.fangtang-core-feature .fangtang-core-profile-scene {
  max-width: none;
}

.fangtang-uiux {
  margin-top: clamp(96px, 9vw, 144px);
  scroll-margin-top: 96px;
}

.fangtang-uiux-panel {
  position: relative;
  width: 100%;
  aspect-ratio: 921 / 3209;
  overflow: hidden;
  background: #fff;
  container-type: inline-size;
}

.fangtang-uiux-panel img {
  display: block;
  max-width: none;
}

.fangtang-uiux-warm-band {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 22.998%;
  background: #edebe9;
}

.fangtang-uiux-anchor {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.fangtang-uiux-anchor-logo {
  top: 7.7594%;
}

.fangtang-uiux-anchor-grid {
  top: 24.7741%;
}

.fangtang-uiux-anchor-brand {
  top: 63.5089%;
}

.fangtang-uiux-header {
  position: absolute;
  top: 1.4646%;
  left: 3.1488%;
  z-index: 2;
  width: 54.3974%;
}

.fangtang-uiux .fangtang-section-index {
  margin-bottom: 9px;
  font-size: clamp(10px, 1.085cqw, 13px);
}

.fangtang-uiux h2 {
  margin: 0;
  color: #000;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(30px, 3.91cqw, 46px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.34;
}

.fangtang-uiux-subtitle {
  position: absolute;
  z-index: 3;
  margin: 0;
  color: #686d78;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(10px, 1.085cqw, 13px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.fangtang-uiux-logo .fangtang-uiux-subtitle {
  top: 7.7594%;
  left: 3.1488%;
}

.fangtang-uiux-logo-card {
  position: absolute;
  z-index: 2;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
}

.fangtang-uiux-logo-card-stones {
  top: 8.4762%;
  left: 2.4973%;
  width: 47.2313%;
  height: 13.5245%;
}

.fangtang-uiux-logo-card-stones .fangtang-uiux-logo-stones {
  position: absolute;
  top: -51.83%;
  left: -48.81%;
  width: 149.78%;
  height: 200.22%;
}

.fangtang-uiux-logo-mark {
  position: absolute;
  top: 25.346%;
  left: 29.82%;
  z-index: 2;
  width: 45.794%;
  height: 39.342%;
  object-fit: contain;
}

.fangtang-uiux-logo-type {
  position: absolute;
  top: 61.01%;
  left: 35.554%;
  z-index: 2;
  width: 39.775%;
  height: 13.376%;
  object-fit: contain;
}

.fangtang-uiux-logo-card-device {
  top: 8.445%;
  left: 50.8143%;
  width: 47.1227%;
  height: 13.5556%;
}

.fangtang-uiux-logo-card-device img {
  position: absolute;
  top: 0;
  left: -100.44%;
  width: 200.44%;
  height: 100%;
  object-fit: cover;
}

.fangtang-uiux-layout-design .fangtang-uiux-subtitle {
  top: 24.7741%;
  left: 2.4973%;
}

.fangtang-uiux-label {
  position: absolute;
  z-index: 3;
  margin: 0;
  color: #686d78;
  font-family: "Microsoft JhengHei UI Light", "Microsoft JhengHei UI", "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(17px, 2.171cqw, 25px);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.2;
}

.fangtang-uiux-layout-label {
  top: 27.6722%;
  left: 8.3605%;
}

.fangtang-uiux-layout-diagram {
  position: absolute;
  top: 29.2926%;
  left: 3.1488%;
  z-index: 2;
  width: 50.8%;
  height: auto;
}

.fangtang-uiux-guide-line {
  position: absolute;
  left: 3.1488%;
  z-index: 1;
  width: 47.1188%;
  border-top: 1px solid rgba(83, 83, 83, 0.54);
}

.guide-line-1 {
  top: 29.6815%;
}

.guide-line-2 {
  top: 31.2075%;
}

.guide-line-3 {
  top: 34.1097%;
}

.guide-line-4 {
  top: 35.3063%;
}

.guide-line-5 {
  top: 40.2431%;
}

.guide-line-6 {
  top: 41.0508%;
}

.guide-line-7 {
  top: 42.0978%;
}

.guide-line-8 {
  top: 51.4026%;
}

.guide-line-9 {
  top: 53.0184%;
}

.fangtang-uiux-ruler {
  position: absolute;
  top: 29.2926%;
  z-index: 2;
  width: 3.9613%;
  height: 23.9651%;
  object-fit: fill;
}

.fangtang-uiux-ruler-left {
  left: 3.1488%;
  transform: rotate(180deg);
}

.fangtang-uiux-ruler-right {
  left: 47.2443%;
}

.fangtang-uiux-layout-phone {
  position: absolute;
  top: 29.5619%;
  left: 7.4224%;
  z-index: 2;
  width: 38.3805%;
  height: auto;
}

.fangtang-uiux-layout-screen-a {
  position: absolute;
  top: 29.5731%;
  left: 55.2541%;
  z-index: 2;
  width: 17.5896%;
  height: auto;
}

.fangtang-uiux-layout-screen-b {
  position: absolute;
  top: 29.6042%;
  left: 74.1466%;
  z-index: 2;
  width: 17.6982%;
  height: auto;
}

.fangtang-uiux-guide-note {
  position: absolute;
  z-index: 3;
  margin: 0;
  color: #686d78;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(10px, 1.303cqw, 15px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.fangtang-uiux-guide-note-status {
  top: 29.947%;
  left: 46.3626%;
}

.fangtang-uiux-guide-note-card {
  top: 37.186%;
  left: 46.3626%;
}

.fangtang-uiux-guide-note-title {
  top: 41.0458%;
  left: 46.3626%;
}

.fangtang-uiux-guide-note-nav {
  top: 51.6968%;
  left: 46.3626%;
}

.fangtang-uiux-icon-label {
  top: 44.1259%;
  left: 55.9175%;
}

.fangtang-uiux-icon-set-image {
  position: absolute;
  top: 46.0268%;
  left: 58.5233%;
  z-index: 3;
  width: 29.76%;
  height: auto;
}

.fangtang-uiux-icon-grid {
  position: absolute;
  top: 46.0268%;
  left: 58.5233%;
  z-index: 3;
  display: grid;
  gap: 2.78cqw 4.05cqw;
  grid-template-columns: repeat(4, 4.402cqw);
}

.fangtang-uiux-icon {
  display: grid;
  width: 4.402cqw;
  height: 4.402cqw;
  place-items: center;
  border: 1px solid #d9d9d9;
  border-radius: 50%;
  background: #f5f5f5;
}

.fangtang-uiux-icon svg {
  width: 54%;
  height: 54%;
  fill: none;
  stroke: #121212;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fangtang-uiux-typography {
  position: absolute;
  top: 56.5285%;
  left: 8.6862%;
  z-index: 3;
  width: 42%;
}

.fangtang-uiux-typography .fangtang-uiux-label,
.fangtang-uiux-colors .fangtang-uiux-label {
  position: static;
}

.fangtang-uiux-typography dl {
  display: grid;
  gap: 1.16cqw;
  margin: 2.72cqw 0 0;
  color: #535353;
  font-family: "Microsoft JhengHei UI", "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(12px, 1.52cqw, 18px);
  line-height: 1.2;
}

.fangtang-uiux-typography dl div {
  display: grid;
  gap: 3cqw;
  grid-template-columns: 1.45fr 1fr;
}

.fangtang-uiux-typography dt,
.fangtang-uiux-typography dd {
  margin: 0;
  font-weight: 400;
}

.fangtang-uiux-colors {
  position: absolute;
  top: 56.5285%;
  left: 55.266%;
  z-index: 3;
  width: 39%;
}

.fangtang-uiux-swatches {
  display: flex;
  gap: 0.652cqw;
  margin-top: 2.72cqw;
}

.fangtang-uiux-swatches figure {
  width: 6.407cqw;
  margin: 0;
  color: #535353;
  text-align: center;
}

.fangtang-uiux-swatches figure:nth-child(2),
.fangtang-uiux-swatches figure:nth-child(3) {
  width: 6.515cqw;
}

.fangtang-uiux-swatches figure:nth-child(4) {
  width: 6.623cqw;
}

.fangtang-uiux-swatches span {
  display: block;
  width: 100%;
  height: 6.95cqw;
}

.fangtang-uiux-swatches figcaption {
  margin-top: 0.88cqw;
  font-size: clamp(9px, 1.303cqw, 15px);
  line-height: 1.2;
}

.fangtang-uiux-brand .fangtang-uiux-subtitle {
  top: 63.5089%;
  left: 2.4973%;
}

.fangtang-uiux-brand-hero {
  position: absolute;
  top: 64.6307%;
  left: 2.4973%;
  z-index: 2;
  width: 95.4397%;
  height: 15.5812%;
  overflow: hidden;
}

.fangtang-uiux-brand-hero img {
  position: absolute;
  top: -19.74%;
  left: -3.96%;
  width: 107.77%;
  height: 126.31%;
  object-fit: cover;
}

.fangtang-uiux-brand-tank {
  position: absolute;
  top: 80.7728%;
  left: 2.4973%;
  z-index: 2;
  width: 95.4397%;
  height: 18.23%;
  object-fit: cover;
}

.fangtang-iteration {
  margin-top: clamp(96px, 9vw, 144px);
  scroll-margin-top: 96px;
}

.fangtang-iteration-panel {
  position: relative;
  width: 100%;
  aspect-ratio: 921 / 3258;
  overflow: hidden;
  background: #fff;
  container-type: inline-size;
}

.fangtang-iteration-panel img {
  display: block;
  max-width: none;
}

.fangtang-iteration-warm-band {
  position: absolute;
  top: 51.6268%;
  right: 0;
  left: 0;
  height: 17.3726%;
  background: #edebe9;
}

.fangtang-iteration-header {
  position: absolute;
  top: 1.4426%;
  left: 3.0402%;
  z-index: 3;
  width: 62.3236%;
}

.fangtang-iteration .fangtang-section-index {
  margin-bottom: 7px;
  font-size: clamp(10px, 1.085cqw, 13px);
}

.fangtang-iteration h2 {
  margin: 0;
  color: #000;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(30px, 3.91cqw, 46px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.37;
}

.fangtang-iteration-label {
  position: absolute;
  z-index: 3;
  margin: 0;
  scroll-margin-top: 96px;
  color: #686d78;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(10px, 1.085cqw, 13px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.fangtang-iteration-label-editor,
.fangtang-iteration-label-assets,
.fangtang-iteration-label-management,
.fangtang-iteration-label-mall {
  left: 3.0402%;
}

.fangtang-iteration-label-editor {
  top: 7.6427%;
}

.fangtang-iteration-label-assets {
  top: 29.1897%;
}

.fangtang-iteration-label-management {
  top: 53.5605%;
}

.fangtang-iteration-label-mall {
  top: 69.6439%;
}

.fangtang-iteration-image {
  position: absolute;
  z-index: 2;
}

.fangtang-iteration-editor,
.fangtang-iteration-assets {
  left: 3.0402%;
  width: 93.7025%;
}

.fangtang-iteration-editor {
  top: 8.4101%;
  height: 19.3063%;
  object-fit: cover;
}

.fangtang-iteration-assets {
  top: 29.957%;
  height: 20.5955%;
  object-fit: fill;
}

.fangtang-iteration-management-plate {
  top: 54.9724%;
  left: 0;
  width: 100%;
  height: 13.4438%;
  overflow: hidden;
  background: #edebe9;
}

.fangtang-iteration-management {
  display: block;
  width: 90%;
  height: auto;
  margin: 0 auto;
  transform: translateY(calc(-14% + 25px));
}

.fangtang-iteration-mall-scene {
  position: absolute;
  top: 68.3241%;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 26.4579%;
  overflow: hidden;
}

.fangtang-iteration-mall-scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.fangtang-iteration-phone {
  position: absolute;
  z-index: 3;
  overflow: hidden;
  width: 20.847%;
  height: 12.7993%;
  border-radius: clamp(17px, calc(1.85cqw + 5px), 23px);
  box-shadow: clamp(-14px, -1.3cqw, -9px) clamp(12px, 1.7cqw, 18px) clamp(24px, 3.3cqw, 34px) rgba(32, 41, 28, 0.24);
  background: #fff;
}

.fangtang-iteration-phone-source,
.fangtang-iteration-phone-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.fangtang-iteration-phone-source {
  object-fit: cover;
  object-position: center;
  transition: opacity 120ms ease;
}

.fangtang-iteration-phone-canvas {
  opacity: 0;
  border-radius: inherit;
  filter: blur(0.1px);
  image-rendering: auto;
}

.fangtang-iteration-phone-media.is-progressive-ready .fangtang-iteration-phone-source {
  opacity: 0;
}

.fangtang-iteration-phone-media.is-progressive-ready .fangtang-iteration-phone-canvas {
  opacity: 1;
}

.fangtang-iteration-phone-a {
  top: 77.05%;
  left: 9.772%;
}

.fangtang-iteration-phone-b {
  top: 75.95%;
  left: 39.5223%;
}

.fangtang-iteration-phone-c {
  top: 74.85%;
  left: 69.9239%;
}

.fangtang-iteration-thanks {
  position: absolute;
  top: 97.391%;
  left: 50%;
  z-index: 3;
  width: 100%;
  margin: 0;
  transform: translate(-50%, -50%);
  color: #686d78;
  font-family: "Microsoft JhengHei UI Light", "Microsoft JhengHei UI", "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
  font-size: clamp(12px, 1.52cqw, 14px);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
}

.fangtang-sidebar {
  position: sticky;
  top: 92px;
  display: flex;
  padding-top: calc(13px * 1.2 + 10px);
  transform: translateX(clamp(12px, 1.2vw, 24px));
  flex-direction: column;
}

.fangtang-sidebar .project-team {
  margin-bottom: 34px;
  transform: translateY(clamp(48px, 4.7vw, 64px));
}

.fangtang-sidebar .project-team-card {
  min-height: 0;
  padding: 0;
}

.fangtang-sidebar .project-team-card img {
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
}

.fangtang-sidebar .project-team-name {
  color: #24272f;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.fangtang-sidebar .project-team-focus {
  width: auto;
  max-width: 190px;
  margin-top: 10px;
  color: #737984;
  font-size: 11px;
  line-height: 1.55;
}

.fangtang-sidebar .project-team-controls {
  grid-template-columns: 24px 1fr 24px;
  gap: 8px;
  margin-top: 8px;
  color: #777c85;
  font-size: 10px;
}

.fangtang-sidebar .project-team-control {
  width: 24px;
  height: 24px;
  color: #4c515a;
  border-color: #cfd1d4;
  font-size: 12px;
  line-height: 1;
  justify-self: center;
}

.heritage-team .project-team-controls {
  color: #b5bac3;
}

.heritage-team .project-team-control {
  color: #aeb4bf;
  border-color: #d8dbe1;
}

.heritage-team .project-team-control:hover {
  color: #9ba2ad;
  border-color: #cfd3da;
}

.fangtang-detail .project-toc {
  margin-top: clamp(118px, 13vh, 152px);
}

html:not([lang="zh-CN"]) .fangtang-detail {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

html:not([lang="zh-CN"]) .fangtang-detail .fangtang-overview h1,
html:not([lang="zh-CN"]) .fangtang-detail .fangtang-opportunity h2,
html:not([lang="zh-CN"]) .fangtang-detail .fangtang-users h2,
html:not([lang="zh-CN"]) .fangtang-detail .fangtang-journey h2,
html:not([lang="zh-CN"]) .fangtang-detail .fangtang-core h2,
html:not([lang="zh-CN"]) .fangtang-detail .fangtang-decision h2,
html:not([lang="zh-CN"]) .fangtang-detail .fangtang-validation h2,
html:not([lang="zh-CN"]) .fangtang-detail .fangtang-ecosystem h2,
html:not([lang="zh-CN"]) .fangtang-detail .fangtang-uiux h2,
html:not([lang="zh-CN"]) .fangtang-detail .fangtang-iteration h2 {
  max-width: 980px;
  color: #2f333b;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(30px, 3vw, 50px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

html:not([lang="zh-CN"]) .fangtang-detail .fangtang-section-index {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

html:not([lang="zh-CN"]) .fangtang-detail .fangtang-journey-summary,
html:not([lang="zh-CN"]) .fangtang-detail .fangtang-opportunity-card p,
html:not([lang="zh-CN"]) .fangtang-detail .fangtang-market-table,
html:not([lang="zh-CN"]) .fangtang-detail .fangtang-user-card p,
html:not([lang="zh-CN"]) .fangtang-detail .fangtang-core-copy {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

html:not([lang="zh-CN"]) .fangtang-detail .project-toc {
  padding-left: 15px;
}

html:not([lang="zh-CN"]) .fangtang-detail .project-toc a {
  max-width: none;
  white-space: nowrap;
}

html:not([lang="zh-CN"]) .fangtang-detail .project-toc-primary {
  font-size: 18px !important;
  letter-spacing: -0.05em;
  line-height: 1.08 !important;
}

html:not([lang="zh-CN"]) .fangtang-detail .project-toc a:not(.project-toc-primary) {
  font-size: 12px;
  line-height: 1.28;
}

@media (min-width: 1101px) {
  .fangtang-detail .fangtang-opportunity-panel,
  .fangtang-detail .fangtang-users-panel,
  .fangtang-detail .fangtang-journey-panel {
    height: var(--fangtang-story-content-height, auto);
  }

  .fangtang-detail .fangtang-opportunity-panel {
    padding-bottom: clamp(44px, 4.6vw, 60px);
  }

  .fangtang-detail .fangtang-opportunity-cards {
    margin-top: clamp(34px, 3.8vw, 48px);
  }

  .fangtang-detail .fangtang-market {
    margin-top: clamp(42px, 4.4vw, 56px);
  }

  html:not([lang="zh-CN"]) .fangtang-detail.is-story-pager .fangtang-opportunity-panel,
  html:not([lang="zh-CN"]) .fangtang-detail.is-story-pager .fangtang-users-panel,
  html:not([lang="zh-CN"]) .fangtang-detail.is-story-pager .fangtang-journey-panel {
    height: auto;
    min-height: var(--fangtang-story-content-height, auto);
  }

  .fangtang-detail.is-story-pager .project-story {
    height: 100svh;
    min-height: 0;
    padding: clamp(78px, 5vw, 96px) 0 0;
    overflow: hidden;
  }

  .fangtang-detail.is-story-pager .fangtang-layout {
    position: relative;
    height: 100%;
    padding: 0 0 96px;
    align-items: stretch;
  }

  .fangtang-detail.is-story-pager [data-story-section] {
    position: absolute;
    top: 0;
    right: calc(var(--fangtang-sidebar-w) + var(--fangtang-col-gap));
    bottom: 0;
    left: 0;
    display: block;
    min-height: 0;
    margin: 0;
    padding: 0 0 clamp(56px, 6vw, 96px);
    overflow: hidden;
    overscroll-behavior: contain;
    opacity: 0;
    pointer-events: none;
    scrollbar-width: none;
    transition:
      opacity 360ms ease,
      transform 360ms ease;
  }

  .fangtang-detail.is-story-pager [data-story-section]::-webkit-scrollbar {
    display: none;
  }

  .fangtang-detail.is-story-pager [data-story-section].is-story-active {
    opacity: 1;
    pointer-events: auto;
  }

  .fangtang-detail.is-story-pager [data-story-section].is-story-leaving,
  .fangtang-detail.is-story-pager [data-story-section].is-story-entering {
    opacity: 0;
  }

  .fangtang-detail.is-story-pager .fangtang-sidebar {
    position: sticky;
    top: 92px;
    grid-column: 2;
    grid-row: 1 / -1;
    height: 100%;
  }

  .fangtang-detail.is-story-pager .fangtang-opportunity,
  .fangtang-detail.is-story-pager .fangtang-users,
  .fangtang-detail.is-story-pager .fangtang-journey,
  .fangtang-detail.is-story-pager .fangtang-core,
  .fangtang-detail.is-story-pager .fangtang-decision,
  .fangtang-detail.is-story-pager .fangtang-validation,
  .fangtang-detail.is-story-pager .fangtang-ecosystem,
  .fangtang-detail.is-story-pager .fangtang-uiux,
  .fangtang-detail.is-story-pager .fangtang-iteration {
    scroll-margin-top: 96px;
  }

  .fangtang-detail.is-story-pager .fangtang-overview {
    padding: clamp(48px, 4.7vw, 64px) clamp(54px, 5.7vw, 70px) clamp(56px, 6vw, 96px);
  }

  .fangtang-detail.is-story-pager .heritage-opportunity {
    padding: clamp(48px, 4.7vw, 64px) clamp(54px, 5.7vw, 70px) clamp(56px, 6vw, 96px);
  }

  .fangtang-detail.is-story-pager .heritage-users {
    padding: clamp(48px, 4.7vw, 64px) clamp(54px, 5.7vw, 70px) clamp(56px, 6vw, 96px);
  }

  .fangtang-detail.is-story-pager .heritage-flow {
    padding: clamp(48px, 4.7vw, 64px) clamp(54px, 5.7vw, 70px) clamp(56px, 6vw, 96px);
  }

  .fangtang-detail.is-story-pager .heritage-core {
    padding: clamp(48px, 4.7vw, 64px) clamp(54px, 5.7vw, 70px) clamp(56px, 6vw, 96px);
  }

  .fangtang-detail.is-story-pager .heritage-decisions {
    padding: clamp(48px, 4.7vw, 64px) clamp(54px, 5.7vw, 70px) clamp(56px, 6vw, 96px);
  }

  .fangtang-detail.is-story-pager .heritage-validation {
    padding: clamp(48px, 4.7vw, 64px) clamp(54px, 5.7vw, 70px) clamp(56px, 6vw, 96px);
  }

  .fangtang-detail.is-story-pager .heritage-ecosystem {
    padding: clamp(48px, 4.7vw, 64px) clamp(54px, 5.7vw, 70px) clamp(56px, 6vw, 96px);
    overflow-x: hidden;
    overflow-y: auto;
  }

  .fangtang-detail.is-story-pager .heritage-validation-panel {
    margin-top: var(--heritage-story-panel-top-gap);
  }

  .heritage-detail.is-story-pager .heritage-opportunity,
  .heritage-detail.is-story-pager .heritage-users,
  .heritage-detail.is-story-pager .heritage-flow,
  .heritage-detail.is-story-pager .heritage-core,
  .heritage-detail.is-story-pager .heritage-decisions {
    display: flex;
    padding-bottom: var(--fangtang-story-bottom-gap);
    flex-direction: column;
  }

  .heritage-detail.is-story-pager .heritage-opportunity-panel,
  .heritage-detail.is-story-pager .heritage-problem-panel,
  .heritage-detail.is-story-pager .heritage-users-panel,
  .heritage-detail.is-story-pager .heritage-flow-panel,
  .heritage-detail.is-story-pager .heritage-core-panel,
  .heritage-detail.is-story-pager .heritage-decisions-panel {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: var(--heritage-story-panel-top-gap);
  }

  .heritage-detail.is-story-pager .heritage-flow-panel,
  .heritage-detail.is-story-continuous .heritage-flow-panel {
    --heritage-flow-side-gap: 6.02%;
    --heritage-flow-summary-top: 20.8%;
    --heritage-flow-image-top: 27.2%;
    --heritage-flow-image-gap: 0.692521%;
    padding: 0;
  }

  .heritage-detail.is-story-pager .heritage-flow-summary,
  .heritage-detail.is-story-continuous .heritage-flow-summary {
    position: absolute;
    top: var(--heritage-flow-summary-top);
    right: var(--heritage-flow-side-gap);
    left: var(--heritage-flow-side-gap);
    width: auto;
    margin: 0;
    text-align: left;
  }

  .heritage-detail.is-story-pager .heritage-flow-steps,
  .heritage-detail.is-story-continuous .heritage-flow-steps {
    position: absolute;
    top: var(--heritage-flow-image-top);
    right: var(--heritage-flow-side-gap);
    left: var(--heritage-flow-side-gap);
    width: auto;
    height: 49.7824%;
    margin: 0;
    gap: var(--heritage-flow-image-gap);
  }

  .heritage-detail.is-story-pager .heritage-flow-image,
  .heritage-detail.is-story-continuous .heritage-flow-image {
    height: 100%;
    aspect-ratio: auto;
  }

  .heritage-detail.is-story-continuous .heritage-flow-summary {
    top: calc(var(--heritage-flow-summary-top) - clamp(72px, 5.7vw, 110px));
  }

  .heritage-detail.is-story-continuous .heritage-flow-steps {
    top: calc(var(--heritage-flow-image-top) - clamp(72px, 5.7vw, 110px));
  }

  .heritage-detail.is-story-continuous .heritage-users-panel::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 30%;
    z-index: 3;
    height: 120px;
    background: linear-gradient(0deg, #f0ebe5 0%, rgba(240, 235, 229, 0) 100%);
    pointer-events: none;
    content: "";
  }

  .fangtang-detail.is-story-continuous .fangtang-layout {
    padding: clamp(78px, 5vw, 96px) 0 96px;
  }

  .fangtang-detail.is-story-continuous [data-story-section] {
    position: static;
    display: block;
    min-height: 0;
    overflow: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .fangtang-detail.is-story-continuous .fangtang-opportunity,
  .fangtang-detail.is-story-continuous .fangtang-users,
  .fangtang-detail.is-story-continuous .fangtang-journey,
  .fangtang-detail.is-story-continuous .fangtang-core,
  .fangtang-detail.is-story-continuous .fangtang-decision,
  .fangtang-detail.is-story-continuous .fangtang-validation,
  .fangtang-detail.is-story-continuous .fangtang-ecosystem,
  .fangtang-detail.is-story-continuous .fangtang-uiux,
  .fangtang-detail.is-story-continuous .fangtang-iteration {
    margin-top: 0;
    padding-top: clamp(48px, 4.5vw, 72px);
  }

  .fangtang-detail.is-story-continuous .fangtang-users-panel {
    height: calc(var(--fangtang-story-content-height) + clamp(190px, 14vw, 280px));
    min-height: calc(clamp(740px, 73svh, 880px) + clamp(190px, 14vw, 280px));
  }

  .fangtang-detail.is-story-continuous .fangtang-users-rock {
    bottom: 0;
  }

  .fangtang-detail.is-story-continuous .fangtang-user-cards {
    transform: translateY(clamp(119px, calc(6vw + 15px), 135px));
  }

  .fangtang-detail.is-story-continuous .fangtang-journey-flow {
    transform: translateY(15px);
  }

  html:not([lang="zh-CN"]) .fangtang-detail.is-story-continuous .fangtang-journey-panel {
    height: calc(var(--fangtang-story-content-height, 0px) + 50px);
    min-height: calc(clamp(760px, 75svh, 905px) + 50px);
  }

  .fangtang-detail.is-story-continuous .fangtang-opportunity,
  .fangtang-detail.is-story-continuous .fangtang-users,
  .fangtang-detail.is-story-continuous .fangtang-journey,
  .fangtang-detail.is-story-continuous .fangtang-core,
  .fangtang-detail.is-story-continuous .fangtang-decision,
  .fangtang-detail.is-story-continuous .fangtang-validation,
  .fangtang-detail.is-story-continuous .fangtang-ecosystem,
  .fangtang-detail.is-story-continuous .fangtang-uiux {
    background: #edebe9;
  }

  .fangtang-detail.is-story-continuous .fangtang-iteration {
    background: #fff;
  }

  .fangtang-detail.is-story-continuous .heritage-opportunity {
    padding: clamp(48px, 4.5vw, 72px) clamp(54px, 5.7vw, 70px) clamp(56px, 6vw, 96px);
    background: #f2f2f2;
  }

  .fangtang-detail.is-story-continuous .heritage-users {
    padding: clamp(48px, 4.5vw, 72px) clamp(54px, 5.7vw, 70px) clamp(56px, 6vw, 96px);
    background: #f2f2f2;
  }

  .fangtang-detail.is-story-continuous .heritage-users-panel {
    min-height: clamp(650px, 52vw, 800px);
  }

  .fangtang-detail.is-story-continuous .heritage-flow {
    padding: calc(clamp(48px, 4.5vw, 72px) + 25px) clamp(54px, 5.7vw, 70px) 25px;
    background: #f2f2f2;
  }

  .fangtang-detail.is-story-continuous .heritage-core {
    padding: clamp(48px, 4.5vw, 72px) clamp(54px, 5.7vw, 70px) clamp(56px, 6vw, 96px);
    background: #f2f2f2;
  }

  .fangtang-detail.is-story-continuous .heritage-decisions {
    padding: clamp(48px, 4.5vw, 72px) clamp(54px, 5.7vw, 70px) clamp(56px, 6vw, 96px);
    background: #f2f2f2;
  }

  .fangtang-detail.is-story-continuous .heritage-validation {
    padding: clamp(48px, 4.5vw, 72px) clamp(54px, 5.7vw, 70px) clamp(56px, 6vw, 96px);
    background: #f2f2f2;
  }

  .fangtang-detail.is-story-continuous .heritage-ecosystem {
    padding: clamp(48px, 4.5vw, 72px) clamp(54px, 5.7vw, 70px) clamp(56px, 6vw, 96px);
    background: #f2f2f2;
  }

  .heritage-detail.is-story-pager .heritage-opportunity,
  .heritage-detail.is-story-pager .heritage-users,
  .heritage-detail.is-story-pager .heritage-flow,
  .heritage-detail.is-story-pager .heritage-core,
  .heritage-detail.is-story-pager .heritage-decisions,
  .heritage-detail.is-story-pager .heritage-validation,
  .heritage-detail.is-story-pager .heritage-ecosystem {
    position: absolute;
    isolation: isolate;
    background: #f2f2f2;
  }

  .heritage-detail.is-story-pager .heritage-opportunity::before,
  .heritage-detail.is-story-pager .heritage-users::before,
  .heritage-detail.is-story-pager .heritage-flow::before,
  .heritage-detail.is-story-pager .heritage-core::before,
  .heritage-detail.is-story-pager .heritage-decisions::before,
  .heritage-detail.is-story-pager .heritage-validation::before,
  .heritage-detail.is-story-pager .heritage-ecosystem::before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: var(--fangtang-story-bottom-gap);
    left: 0;
    z-index: -1;
    content: "";
  }

  .heritage-detail.is-story-pager .heritage-opportunity:not(.heritage-opportunity-problem)::before {
    background: #f8f3ef;
  }

  .heritage-detail.is-story-pager .heritage-opportunity-problem::before {
    background: linear-gradient(180deg, #f8f3ef 0%, #f8f3ef 44%, #f3e0d0 100%);
  }

  .heritage-detail.is-story-pager .heritage-users::before,
  .heritage-detail.is-story-pager .heritage-flow::before,
  .heritage-detail.is-story-pager .heritage-core::before {
    background: #f0ebe5;
  }

  .heritage-detail.is-story-pager .heritage-decisions::before {
    background: linear-gradient(-45.9296deg, #f8f5f2 33.431%, #f2ebe5 95.122%);
  }

  .heritage-detail.is-story-pager .heritage-validation::before,
  .heritage-detail.is-story-pager .heritage-ecosystem::before {
    background: #fff;
  }

  .heritage-detail.is-story-continuous .heritage-opportunity:not(.heritage-opportunity-problem) {
    background: #f8f3ef;
  }

  .heritage-detail.is-story-continuous .heritage-opportunity-problem {
    position: relative;
    padding-top: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #f8f3ef 0%, #f8f3ef 44%, #f3e0d0 100%);
  }

  .heritage-detail.is-story-continuous .heritage-opportunity-problem::after,
  .heritage-detail.is-story-continuous .heritage-decisions::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    height: clamp(56px, 6vw, 96px);
    pointer-events: none;
    content: "";
  }

  .heritage-detail.is-story-continuous .heritage-opportunity-problem::after {
    background: #f0ebe5;
  }

  .heritage-detail.is-story-continuous .heritage-opportunity-problem > .fangtang-section-index,
  .heritage-detail.is-story-continuous .heritage-opportunity-problem > h2 {
    display: none;
  }

  .heritage-detail.is-story-continuous .heritage-opportunity-problem .heritage-problem-panel {
    margin-top: 0;
  }

  .heritage-detail.is-story-continuous .heritage-users,
  .heritage-detail.is-story-continuous .heritage-flow,
  .heritage-detail.is-story-continuous .heritage-core {
    background: #f0ebe5;
  }

  .heritage-detail.is-story-continuous .heritage-decisions {
    position: relative;
    overflow: hidden;
    background: #f0ebe5;
  }

  .heritage-detail.is-story-continuous .heritage-decisions-panel {
    background: #f0ebe5;
  }

  .heritage-detail.is-story-continuous .heritage-decisions::after {
    background: #fff;
  }

  .heritage-detail.is-story-continuous .heritage-validation,
  .heritage-detail.is-story-continuous .heritage-ecosystem {
    background: #fff;
  }
}

.fangtang-nav-reading-mode,
.loops-nav-reading-mode {
  display: flex;
  margin: 0 clamp(-10px, -0.6vw, -6px) 0 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.fangtang-detail.is-fangtang-story-view .fangtang-nav-reading-mode {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.loops-detail.is-loops-story-view .loops-nav-reading-mode {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fangtang-nav-reading-mode .project-reading-mode-options,
.loops-nav-reading-mode .project-reading-mode-options {
  display: inline-flex;
  padding: 4px;
  border: 1px solid #c9ccd1;
  border-radius: 999px;
  background: #e9eaec;
  flex-direction: row;
}

.fangtang-nav-reading-mode .project-reading-toggle,
.loops-nav-reading-mode .project-reading-toggle {
  display: grid;
  width: 32px;
  height: 26px;
  padding: 0;
  place-items: center;
}

.fangtang-nav-reading-mode .project-reading-toggle svg,
.loops-nav-reading-mode .project-reading-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.fangtang-nav-reading-mode .project-reading-toggle:focus-visible,
.loops-nav-reading-mode .project-reading-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  .project-story-layout {
    width: min(1180px, calc(100% - var(--page-pad) * 2));
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .project-sidebar {
    display: none;
  }

  /* On narrow screens fall back to the original inline-heading flow. */
  .project-story-topbar {
    display: none;
  }

  .loops-detail .project-story-main .project-story-heading,
  .loops-detail .project-story-main .project-chapter-summary,
  .loops-detail .project-story-main .project-kicker:not(.project-kicker-tertiary) {
    display: revert;
  }

  .fangtang-layout {
    width: min(760px, calc(100% - var(--page-pad) * 2));
    padding: 76px 0 72px;
    grid-template-columns: 1fr;
  }

  .fangtang-overview h1 {
    max-width: 620px;
    font-size: clamp(30px, 7vw, 42px);
  }

  .fangtang-meta {
    margin-top: 46px;
  }

  .fangtang-overview-image {
    margin-top: clamp(16px, 1.6vw, 24px);
  }

  .fangtang-opportunity {
    margin-top: 72px;
    scroll-margin-top: 76px;
  }

  .fangtang-users {
    margin-top: 72px;
    scroll-margin-top: 76px;
  }

  .fangtang-journey,
  .fangtang-core,
  .fangtang-decision,
  .fangtang-validation,
  .fangtang-ecosystem,
  .fangtang-uiux,
  .fangtang-iteration {
    margin-top: 72px;
    scroll-margin-top: 76px;
  }

  .fangtang-opportunity-panel {
    padding: 36px 18px 46px;
  }

  .fangtang-users-panel,
  .fangtang-journey-panel {
    min-height: 0;
    padding: 36px 18px 46px;
  }

  .fangtang-core-panel {
    --fangtang-core-pad-x: 18px;
    --fangtang-core-pad-top: 36px;
    padding-bottom: 0;
  }

  .fangtang-uiux-panel,
  .fangtang-iteration-panel {
    min-width: 0;
  }

  .fangtang-opportunity .fangtang-section-index,
  .fangtang-users .fangtang-section-index,
  .fangtang-journey .fangtang-section-index,
  .fangtang-core .fangtang-section-index,
  .fangtang-decision .fangtang-section-index,
  .fangtang-validation .fangtang-section-index,
  .fangtang-ecosystem .fangtang-section-index,
  .fangtang-uiux .fangtang-section-index,
  .fangtang-iteration .fangtang-section-index {
    font-size: 12px;
  }

  .fangtang-opportunity h2,
  .fangtang-users h2,
  .fangtang-journey h2,
  .fangtang-core h2,
  .fangtang-decision h2,
  .fangtang-validation h2,
  .fangtang-ecosystem h2,
  .fangtang-uiux h2,
  .fangtang-iteration h2 {
    max-width: 310px;
    font-size: clamp(27px, 7.8vw, 34px);
    line-height: 1.26;
  }

  .heritage-decisions-panel {
    width: auto;
    min-height: clamp(560px, 115vw, 720px);
    margin: 36px 0 0;
  }

  .heritage-decisions-cards {
    top: 34px;
    right: 18px;
    left: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .heritage-decision-card {
    padding: 20px 16px;
  }

  .heritage-decisions-device {
    height: 48%;
  }

  .heritage-validation-panel {
    width: auto;
    margin: 36px 0 0;
    padding: 18px;
  }

  .heritage-validation-item + .heritage-validation-item {
    margin-top: 18px;
  }

  .heritage-ecosystem-sheet {
    width: auto;
    margin: 0;
    padding: 28px 18px 42px;
  }

  .heritage-ecosystem-stack {
    margin-top: 34px;
    gap: 24px;
  }

  .heritage-matrix {
    padding: 0;
  }

  .heritage-matrix-title {
    font-size: clamp(12px, 3vw, 16px);
  }

  .heritage-matrix-label {
    font-size: clamp(6px, 1.9vw, 9px);
  }

  .heritage-community-cards {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .heritage-community-cards article {
    min-height: 360px;
  }

  .heritage-material-figure {
    padding-bottom: 0;
  }

  .heritage-material-swatches {
    position: static;
    width: 100%;
    margin-top: 10px;
  }

  .fangtang-core-hero-image {
    margin-top: 36px;
  }

  .fangtang-core-feature {
    display: grid;
    min-height: 0;
    margin-top: 58px;
    gap: 22px;
  }

  .fangtang-core-marker,
  .fangtang-core-copy,
  .fangtang-core-home-gallery,
  .fangtang-core-home-phone,
  .fangtang-core-design-phone,
  .fangtang-core-design-phone-media,
  .fangtang-core-design-flow,
  .fangtang-core-management-device,
  .fangtang-core-management-demo,
  .fangtang-core-community-phones,
  .fangtang-core-profile-demo,
  .fangtang-core-profile-scene {
    position: static;
    inset: auto;
    width: auto;
    max-width: 100%;
  }

  .fangtang-core-marker {
    display: grid;
    gap: 4px;
  }

  .fangtang-core-marker span {
    font-size: 76px;
  }

  .fangtang-core-copy {
    font-size: 12px;
    line-height: 1.75;
  }

  .fangtang-core-home-gallery,
  .fangtang-core-community-phones {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fangtang-core-home-gallery img,
  .fangtang-core-community-phones img {
    width: 100%;
    border-width: 2px;
    border-radius: 14px;
  }

  .fangtang-core-community-phones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fangtang-core-community-phones img:nth-child(2) {
    margin-top: 0;
  }

  .fangtang-core-home-phone,
  .fangtang-core-design-phone,
  .fangtang-core-design-flow,
  .fangtang-core-management-demo,
  .fangtang-core-profile-demo {
    justify-self: center;
    width: min(74%, 280px);
    border-radius: 28px;
  }

  .fangtang-core-demo {
    position: relative;
  }

  .fangtang-core-design-phone-media {
    position: relative;
  }

  .fangtang-core-management-device,
  .fangtang-core-profile-scene {
    width: calc(100% + 36px);
    max-width: none;
    margin-right: -18px;
    margin-left: -18px;
  }

  .fangtang-core-profile .fangtang-core-copy {
    padding: 0;
    background: transparent;
  }

  .fangtang-opportunity-cards {
    margin-top: 34px;
    grid-template-columns: 1fr 1fr;
  }

  .fangtang-opportunity-card {
    padding-bottom: 18px;
  }

  .fangtang-opportunity-card h3 {
    margin-top: 12px;
    font-size: 13px;
  }

  .fangtang-opportunity-card p {
    padding: 0 4px;
    font-size: 11px;
  }

  .fangtang-users-visual {
    min-height: 0;
    margin-top: 34px;
  }

  .fangtang-users-rock {
    width: min(92%, 560px);
    opacity: 0.92;
  }

  .fangtang-user-cards {
    width: min(100%, 420px);
    margin-top: 70px;
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .fangtang-user-card {
    min-height: 0;
    padding: 22px 18px 24px;
  }

  .fangtang-journey-summary {
    margin-top: 22px;
    font-size: 12px;
  }

  .fangtang-journey-flow {
    width: min(100%, 420px);
    height: auto;
    margin-top: 42px;
  }

  .fangtang-journey-path-image {
    display: none;
  }

  .fangtang-journey-steps {
    position: static;
    display: grid;
    gap: 14px;
  }

  .journey-step {
    position: static;
    display: grid;
    width: auto;
    min-height: 46px;
    align-items: center;
    column-gap: 12px;
    grid-template-columns: 22px 1fr;
    text-align: left;
    transform: none;
  }

  .journey-step p {
    margin: 0;
    font-size: 12px;
  }

  .journey-step span::after {
    display: none;
  }

  .fangtang-journey-landscape {
    position: relative;
    width: calc(100% + 36px);
    height: auto;
    margin: 34px -18px -46px;
    opacity: 0.84;
  }

  .fangtang-market {
    margin-top: 44px;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .fangtang-market-table {
    min-width: 720px;
  }

  .fangtang-market-row {
    min-height: 52px;
    grid-template-columns: 150px repeat(5, 114px);
  }

  .fangtang-market-head {
    min-height: 38px;
  }
}

@media (max-width: 560px) {
  .fangtang-opportunity-cards {
    grid-template-columns: 1fr;
  }

  .fangtang-opportunity-card {
    padding-bottom: 20px;
  }

  .fangtang-opportunity-card img {
    aspect-ratio: 184 / 112;
  }
}

.project-detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px var(--page-pad);
  color: #fff;
  background: #101117;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

@media (max-width: 680px) {
  .project-detail-header {
    height: 68px;
  }

  .project-detail-header .brand-name {
    font-size: 22px;
  }

  .project-back-link {
    font-size: 11px;
  }

  .project-detail-header .language-toggle {
    font-size: 11px;
  }

  .project-scroll-cue {
    bottom: 22px;
  }

  .project-video-hero {
    height: calc(100svh - 66px);
    min-height: 520px;
  }

  .project-introduction h1 {
    width: 100%;
    font-size: min(9vw, 7.4vh);
    line-height: 0.96;
  }

  .project-introduction {
    right: var(--page-pad);
    bottom: 64px;
    width: auto;
    padding: 0;
  }

  .project-detail-index {
    margin-bottom: 10px;
    font-size: 9px;
  }

  .project-credit-grid {
    width: 100%;
    margin-top: 18px;
    gap: 5px;
  }

  .project-credit-grid p,
  .project-role {
    font-size: 10px;
    line-height: 1.4;
  }

  .project-role {
    width: 100%;
    margin-top: 12px;
    padding-top: 10px;
  }

  .project-detail-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .project-story-intro,
  .project-subchapter-copy {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-media-intro,
  .project-media-two,
  .project-media-three {
    grid-template-columns: 1fr;
  }

  .project-story-layout {
    width: min(1180px, calc(100% - var(--page-pad) * 2));
    grid-template-columns: 1fr;
  }

  .project-toc {
    display: none;
  }

  .project-chapter-summary {
    font-size: 38px;
  }

  .project-subchapter-summary {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-video-hero video {
    display: none;
  }
}

@media (max-width: 680px) {
  .private-message-modal {
    padding: 14px;
  }

  .private-message-dialog {
    max-height: calc(100dvh - 28px);
    padding: 34px 22px 24px;
    overflow-y: auto;
    border-radius: 18px;
  }

  .private-message-dialog h2 {
    padding-right: 34px;
    font-size: 34px;
  }

  .private-message-privacy {
    margin-bottom: 22px;
  }

  .project-back-button {
    margin-left: -7px;
  }
}

/* Featured project details: readable continuous flow on phones. */
@media (max-width: 680px) {
  .fangtang-detail.is-story-continuous .project-story {
    min-height: 0;
    overflow: visible;
  }

  .fangtang-detail.is-story-continuous .fangtang-layout {
    width: 100%;
    padding: 46px 0 0;
  }

  .fangtang-detail.is-story-continuous [data-story-section] {
    position: static;
    display: block;
    min-height: 0;
    margin: 0;
    overflow: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .fangtang-detail.is-story-continuous .fangtang-overview {
    padding: 0 20px 48px;
  }

  .fangtang-detail.is-story-continuous .fangtang-opportunity,
  .fangtang-detail.is-story-continuous .fangtang-users,
  .fangtang-detail.is-story-continuous .fangtang-journey,
  .fangtang-detail.is-story-continuous .fangtang-core,
  .fangtang-detail.is-story-continuous .fangtang-decision,
  .fangtang-detail.is-story-continuous .fangtang-validation,
  .fangtang-detail.is-story-continuous .fangtang-ecosystem,
  .fangtang-detail.is-story-continuous .fangtang-uiux,
  .fangtang-detail.is-story-continuous .fangtang-iteration {
    margin-top: 0;
    padding-top: 44px;
    scroll-margin-top: 68px;
  }

  .fangtang-detail.is-story-continuous .fangtang-opportunity,
  .fangtang-detail.is-story-continuous .fangtang-users,
  .fangtang-detail.is-story-continuous .fangtang-journey,
  .fangtang-detail.is-story-continuous .fangtang-core,
  .fangtang-detail.is-story-continuous .fangtang-decision,
  .fangtang-detail.is-story-continuous .fangtang-validation,
  .fangtang-detail.is-story-continuous .fangtang-ecosystem,
  .fangtang-detail.is-story-continuous .fangtang-uiux {
    background: #edebe9;
  }

  .fangtang-detail.is-story-continuous .fangtang-iteration {
    background: #fff;
  }

  .fangtang-detail.is-story-continuous .fangtang-overview h1,
  .fangtang-detail.is-story-continuous .fangtang-opportunity h2,
  .fangtang-detail.is-story-continuous .fangtang-users h2,
  .fangtang-detail.is-story-continuous .fangtang-journey h2,
  .fangtang-detail.is-story-continuous .fangtang-core h2,
  .fangtang-detail.is-story-continuous .fangtang-decision h2,
  .fangtang-detail.is-story-continuous .fangtang-validation h2,
  .fangtang-detail.is-story-continuous .fangtang-ecosystem h2 {
    max-width: none;
    font-size: clamp(28px, 8.2vw, 35px);
    line-height: 1.22;
  }

  .fangtang-detail.is-story-continuous .fangtang-meta {
    margin-top: 38px;
    font-size: 14px;
  }

  .fangtang-detail.is-story-continuous .fangtang-users-panel {
    height: auto;
    min-height: 0;
  }

  .fangtang-detail.is-story-continuous .fangtang-user-cards,
  .fangtang-detail.is-story-continuous .fangtang-journey-flow {
    transform: none;
  }

  .fangtang-detail.is-story-continuous .fangtang-core-feature {
    display: grid;
    width: 100%;
    min-height: 0;
    margin-top: 72px;
    gap: 22px;
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
  }

  .fangtang-detail.is-story-continuous .fangtang-core-feature > * {
    min-width: 0;
    grid-column: 1;
  }

  .fangtang-detail.is-story-continuous .fangtang-core-marker,
  .fangtang-detail.is-story-continuous .fangtang-core-copy {
    width: 100%;
    justify-self: stretch;
  }

  .fangtang-detail.is-story-continuous .fangtang-core-marker h3 {
    width: auto;
    text-align: left;
    transform: none;
  }

  .fangtang-detail.is-story-continuous .fangtang-core-copy {
    font-size: 13px;
    line-height: 1.75;
    text-align: left;
  }

  .fangtang-detail.is-story-continuous .fangtang-core-home-phone,
  .fangtang-detail.is-story-continuous .fangtang-core-design-phone,
  .fangtang-detail.is-story-continuous .fangtang-core-design-flow,
  .fangtang-detail.is-story-continuous .fangtang-core-management-demo,
  .fangtang-detail.is-story-continuous .fangtang-core-profile-demo {
    width: min(76%, 290px);
  }

  /* Heritage Workshop keeps the desktop continuous-reading hierarchy,
     but converts fixed editorial compositions into readable mobile blocks. */
  .heritage-detail.is-story-continuous .heritage-opportunity,
  .heritage-detail.is-story-continuous .heritage-users,
  .heritage-detail.is-story-continuous .heritage-flow,
  .heritage-detail.is-story-continuous .heritage-core,
  .heritage-detail.is-story-continuous .heritage-decisions,
  .heritage-detail.is-story-continuous .heritage-validation,
  .heritage-detail.is-story-continuous .heritage-ecosystem {
    padding: 44px 20px 48px;
    background: #f0ebe5;
  }

  .heritage-detail.is-story-continuous .heritage-opportunity:not(.heritage-opportunity-problem) {
    background: #f8f3ef;
  }

  .fangtang-detail.heritage-detail.is-story-continuous .heritage-opportunity-problem {
    padding-top: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #f8f3ef 0%, #f8f3ef 42%, #f3e0d0 100%);
  }

  .heritage-detail.is-story-continuous .heritage-opportunity-problem > .fangtang-section-index,
  .heritage-detail.is-story-continuous .heritage-opportunity-problem > h2 {
    display: none;
  }

  .heritage-detail.is-story-continuous .heritage-validation,
  .heritage-detail.is-story-continuous .heritage-ecosystem {
    background: #fff;
  }

  .heritage-detail.is-story-continuous .heritage-opportunity h2,
  .heritage-detail.is-story-continuous .heritage-users h2,
  .heritage-detail.is-story-continuous .heritage-flow h2,
  .heritage-detail.is-story-continuous .heritage-core h2,
  .heritage-detail.is-story-continuous .heritage-decisions h2,
  .heritage-detail.is-story-continuous .heritage-validation h2,
  .heritage-detail.is-story-continuous .heritage-ecosystem h2 {
    max-width: none;
    font-size: clamp(28px, 8.2vw, 35px);
    line-height: 1.22;
  }

  .heritage-detail.is-story-continuous .heritage-opportunity-panel,
  .heritage-detail.is-story-continuous .heritage-problem-panel,
  .heritage-detail.is-story-continuous .heritage-users-panel,
  .heritage-detail.is-story-continuous .heritage-flow-panel,
  .heritage-detail.is-story-continuous .heritage-core-panel {
    width: calc(100% + 40px);
    margin-right: -20px;
    margin-left: -20px;
  }

  .heritage-detail.is-story-continuous .heritage-opportunity-panel {
    margin-top: 30px;
    padding: 28px 20px 40px;
  }

  .heritage-detail.is-story-continuous .heritage-opportunity-grid {
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .heritage-detail.is-story-continuous .heritage-opportunity-prompt {
    min-height: 0;
    padding: 0 0 10px;
    grid-column: 1 / -1;
  }

  .heritage-detail.is-story-continuous .heritage-opportunity-prompt span {
    font-size: 13px;
  }

  .heritage-detail.is-story-continuous .heritage-opportunity-prompt strong {
    font-size: 16px;
  }

  .heritage-detail.is-story-continuous .heritage-opportunity-card {
    min-height: 0;
    padding: 7px 7px 18px;
  }

  .heritage-detail.is-story-continuous .heritage-opportunity-card h3 {
    margin: 10px 0 6px;
    font-size: 15px;
  }

  .heritage-detail.is-story-continuous .heritage-opportunity-card p {
    font-size: 12px;
    line-height: 1.55;
  }

  .heritage-detail.is-story-continuous .heritage-problem-panel {
    display: flex;
    min-height: 0;
    margin-top: 0;
    padding: 30px 20px 0;
    flex-direction: column;
  }

  .heritage-detail.is-story-continuous .heritage-problem-panel::before {
    content: none;
  }

  .heritage-detail.is-story-continuous .heritage-problem-label {
    width: auto;
    order: 1;
  }

  .heritage-detail.is-story-continuous .heritage-problem-label span {
    font-size: 13px;
  }

  .heritage-detail.is-story-continuous .heritage-problem-label strong {
    font-size: 16px;
  }

  .heritage-detail.is-story-continuous .heritage-problem-cards {
    width: 100%;
    margin: 24px 0 0;
    gap: 12px;
    grid-template-columns: 1fr;
    order: 2;
  }

  .heritage-detail.is-story-continuous .heritage-problem-card {
    height: auto;
    min-height: 250px;
    padding: 18px;
  }

  .heritage-detail.is-story-continuous .heritage-problem-card h3 {
    font-size: 15px;
  }

  .heritage-detail.is-story-continuous .heritage-problem-rating-grid {
    max-width: 220px;
    margin-bottom: 12px;
  }

  .heritage-detail.is-story-continuous .heritage-problem-rating-grid span,
  .heritage-detail.is-story-continuous .heritage-problem-card p {
    font-size: 11px;
    line-height: 1.45;
  }

  .heritage-detail.is-story-continuous .heritage-problem-stat {
    margin-top: 12px;
  }

  .heritage-detail.is-story-continuous .heritage-problem-stat strong {
    font-size: 25px;
  }

  .heritage-detail.is-story-continuous .heritage-problem-stat span {
    font-size: 10px;
  }

  .heritage-detail.is-story-continuous .heritage-problem-chart {
    height: 40px;
  }

  .heritage-detail.is-story-continuous .heritage-problem-device-media {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: calc(100% + 40px);
    margin: 24px -20px 0;
    order: 3;
  }

  .heritage-detail.is-story-continuous .heritage-problem-source {
    position: static;
    width: auto;
    margin: 10px 0 18px;
    font-size: 10px;
    line-height: 1.45;
    order: 4;
  }

  .heritage-detail.is-story-continuous .heritage-users-panel {
    display: grid;
    min-height: 0;
    margin-top: 30px;
    padding: 30px 20px 44px;
    gap: 0;
  }

  .heritage-detail.is-story-continuous .heritage-persona-heading,
  .heritage-detail.is-story-continuous .heritage-pain-heading,
  .heritage-detail.is-story-continuous .heritage-personas,
  .heritage-detail.is-story-continuous .heritage-pain-card {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
  }

  .heritage-detail.is-story-continuous .heritage-persona-heading,
  .heritage-detail.is-story-continuous .heritage-pain-heading {
    font-size: 16px;
  }

  .heritage-detail.is-story-continuous .heritage-personas {
    width: 100%;
    margin-top: 22px;
    column-gap: 12px;
  }

  .heritage-detail.is-story-continuous .heritage-persona img {
    width: min(22vw, 82px);
  }

  .heritage-detail.is-story-continuous .heritage-persona p {
    font-size: 12px;
  }

  .heritage-detail.is-story-continuous .heritage-pain-heading {
    margin-top: 44px;
  }

  .heritage-detail.is-story-continuous .heritage-pain-roof {
    right: -20px;
    bottom: 0;
    width: 88%;
    height: auto;
    opacity: 0.22;
  }

  .heritage-detail.is-story-continuous .heritage-pain-card {
    z-index: 2;
    width: 100%;
    margin-top: 12px;
    padding: 15px;
    column-gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(5px);
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .heritage-detail.is-story-continuous .heritage-pain-card span {
    font-size: 26px;
  }

  .heritage-detail.is-story-continuous .heritage-pain-card h3,
  .heritage-detail.is-story-continuous .heritage-pain-card p {
    width: auto;
  }

  .heritage-detail.is-story-continuous .heritage-pain-card h3 {
    font-size: 17px;
  }

  .heritage-detail.is-story-continuous .heritage-pain-card p {
    font-size: 13px;
    line-height: 1.5;
  }

  .heritage-detail.is-story-continuous .heritage-flow {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .heritage-detail.is-story-continuous .heritage-flow-panel {
    min-height: 0;
    margin-top: 30px;
    padding: 28px 20px 34px;
  }

  .heritage-detail.is-story-continuous .heritage-flow-summary {
    position: static;
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
  }

  .heritage-detail.is-story-continuous .heritage-flow-steps {
    position: static;
    display: grid;
    width: calc(100% + 20px);
    margin: 24px -10px 0 0;
    padding: 0 10px 12px 0;
    overflow-x: auto;
    gap: 10px;
    grid-auto-columns: 74%;
    grid-auto-flow: column;
    grid-template-columns: none;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .heritage-detail.is-story-continuous .heritage-flow-steps::-webkit-scrollbar {
    display: none;
  }

  .heritage-detail.is-story-continuous .heritage-flow-step {
    min-width: 0;
    scroll-snap-align: start;
  }

  .heritage-detail.is-story-continuous .heritage-flow-image {
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .heritage-detail.is-story-continuous .heritage-flow-step h3 {
    font-size: 17px;
  }

  .heritage-detail.is-story-continuous .heritage-flow-step p {
    font-size: 12px;
    line-height: 1.5;
  }

  .heritage-detail.is-story-continuous .heritage-core-panel {
    position: relative;
    display: flex;
    height: auto;
    min-height: 0;
    margin-top: 30px;
    padding: 28px 12px 24px;
    flex-direction: column;
  }

  .heritage-detail.is-story-continuous .heritage-core-tabs {
    position: static;
    display: flex;
    width: 100%;
    padding: 0 8px 8px;
    overflow-x: auto;
    gap: 18px;
    justify-content: flex-start;
    scrollbar-width: none;
    transform: none;
  }

  .heritage-detail.is-story-continuous .heritage-core-tabs::-webkit-scrollbar {
    display: none;
  }

  .heritage-detail.is-story-continuous .heritage-core-tab {
    flex: 0 0 auto;
    font-size: 12px;
  }

  .heritage-detail.is-story-continuous .heritage-core-device {
    position: relative;
    top: auto;
    left: 50%;
    width: 124%;
    margin: 16px 0 0;
    transform: translateX(-50%);
  }

  .heritage-detail.is-story-continuous .heritage-core-swipe-hint {
    position: static;
    margin: -2px auto 0;
    font-size: 11px;
    transform: none;
  }

  .heritage-detail.is-story-continuous .heritage-decisions-panel {
    width: auto;
    min-height: 610px;
    margin-top: 30px;
    aspect-ratio: auto;
  }

  .heritage-detail.is-story-continuous .heritage-decisions-cards {
    right: 18px;
    left: 18px;
    height: auto;
    grid-template-columns: 1fr;
    transform: none;
  }

  .heritage-detail.is-story-continuous .heritage-decision-card {
    height: auto;
    min-height: 128px;
    padding: 18px 16px;
  }

  .heritage-detail.is-story-continuous .heritage-decisions-device {
    width: 100%;
    height: auto;
  }

  .heritage-detail.is-story-continuous .heritage-validation-panel {
    margin-top: 30px;
  }

  .heritage-detail.is-story-continuous .heritage-ecosystem-sheet {
    width: calc(100% + 40px);
    margin: -44px -20px -48px;
    padding: 44px 20px 48px;
  }
}

@media (max-width: 370px) {
  .heritage-detail.is-story-continuous .heritage-opportunity-grid {
    grid-template-columns: 1fr;
  }
}

/* Featured projects use one uninterrupted reading flow on narrow screens. */
@media (max-width: 1100px) {
  .fangtang-nav-reading-mode,
  .loops-nav-reading-mode,
  .project-sidebar .project-reading-mode {
    display: none !important;
  }

  html.loops-detail-scroll {
    scroll-snap-type: none;
  }

  .loops-detail.is-story-continuous [data-story-section] {
    min-height: 0;
    padding-block: 0;
    scroll-snap-align: none;
  }
}

/* LOOPS / modular construction system: preserve the desktop continuous hierarchy on phones. */
@media (max-width: 680px) {
  .loops-detail.is-story-continuous .project-story {
    padding: 54px 0 82px;
  }

  .loops-detail.is-story-continuous .project-story-topbar {
    display: grid;
    margin-bottom: 44px;
    grid-template-columns: 1fr;
  }

  .loops-detail.is-story-continuous .project-story-headbar {
    display: block;
  }

  .loops-detail.is-story-continuous .headbar-mother {
    display: block;
    margin-bottom: 12px;
  }

  .loops-detail.is-story-continuous .headbar-summary {
    display: block;
    max-width: 340px;
    font-size: clamp(31px, 9.2vw, 40px);
    line-height: 0.98;
  }

  .loops-detail.is-story-continuous .headbar-subtitle {
    display: none;
  }

  .loops-detail.is-story-continuous .project-story-main .project-story-heading,
  .loops-detail.is-story-continuous .project-story-main .project-chapter-summary,
  .loops-detail.is-story-continuous .project-story-main .project-kicker:not(.project-kicker-tertiary) {
    display: block;
  }

  .loops-detail.is-story-continuous .project-story-main .project-story-heading p {
    color: var(--blue);
  }

  .loops-detail.is-story-continuous .project-chapter-summary {
    max-width: 340px;
    margin: 10px 0 22px;
    font-size: clamp(31px, 9.2vw, 40px);
    line-height: 0.98;
  }

  .loops-detail.is-story-continuous .project-story-intro,
  .loops-detail.is-story-continuous .project-subchapter-copy {
    margin-bottom: 0;
  }

  .loops-detail.is-story-continuous .project-story-intro + .project-story-intro,
  .loops-detail.is-story-continuous .project-subchapter + .project-subchapter,
  .loops-detail.is-story-continuous .project-chapter-page + .project-subchapter {
    margin-top: 46px;
  }

  .loops-detail.is-story-continuous .project-story-main > .project-chapter,
  .loops-detail.is-story-continuous .project-story-intro + .modular-chapter-start,
  .loops-detail.is-story-continuous .project-chapter + .project-chapter {
    margin-top: 78px;
  }

  /* Mobile editorial scale: retain the desktop-authored line breaks while
     fitting roughly fifteen Chinese characters across the phone canvas. */
  html .fangtang-detail.is-story-continuous .fangtang-overview h1,
  html .fangtang-detail.is-story-continuous .fangtang-opportunity h2,
  html .fangtang-detail.is-story-continuous .fangtang-users h2,
  html .fangtang-detail.is-story-continuous .fangtang-journey h2,
  html .fangtang-detail.is-story-continuous .fangtang-core h2,
  html .fangtang-detail.is-story-continuous .fangtang-decision h2,
  html .fangtang-detail.is-story-continuous .fangtang-validation h2,
  html .fangtang-detail.is-story-continuous .fangtang-ecosystem h2,
  html .fangtang-detail.is-story-continuous .fangtang-uiux h2,
  html .fangtang-detail.is-story-continuous .fangtang-iteration h2,
  .loops-detail.is-story-continuous .headbar-summary,
  .loops-detail.is-story-continuous .project-chapter-summary {
    max-width: 100%;
    font-size: clamp(24px, 6.5vw, 25px);
    letter-spacing: -0.035em;
    line-height: 1.16;
    text-wrap: wrap;
  }

  /* Chapter 07 now uses the same full-width sheet and 20px content inset as
     Chapter 08, so captions and images share one vertical axis. */
  .heritage-detail.is-story-continuous .heritage-validation-panel {
    width: calc(100% + 40px);
    margin-right: -20px;
    margin-left: -20px;
    padding-right: 20px;
    padding-left: 20px;
  }

  /* Crop the original perspective composite to its meaningful device area;
     the inner stage stays intact so the perspective video remains aligned. */
  .heritage-detail.is-story-continuous .heritage-problem-panel {
    position: relative;
  }

  .heritage-detail.is-story-continuous .heritage-problem-device-crop {
    position: relative;
    display: block;
    width: calc(100% + 40px);
    margin: 24px -20px 0;
    overflow: hidden;
    aspect-ratio: 1.35 / 1;
    order: 3;
  }

  .heritage-detail.is-story-continuous .heritage-problem-device-media {
    position: absolute;
    top: auto;
    bottom: 0;
    left: -51.5%;
    width: 203%;
    margin: 0;
  }

  .heritage-detail.is-story-continuous .heritage-problem-source {
    position: absolute;
    right: 20px;
    bottom: 10px;
    left: 20px;
    z-index: 5;
    margin: 0;
    color: #34312f;
  }

  /* The UI/UX chapter is a proportional editorial canvas. Give its mobile
     header the full reading width, then reduce dense specimen copy so the
     fixed composition remains aligned instead of colliding with Brand. */
  .fangtang-detail.is-story-continuous .fangtang-uiux-header {
    top: .7%;
    left: 5.1%;
    width: 89.8%;
  }

  .fangtang-detail.is-story-continuous .fangtang-uiux-header h2 {
    line-height: 1.08;
  }

  .fangtang-detail.is-story-continuous .fangtang-iteration-header {
    left: 5.1%;
    width: 89.8%;
  }

  .fangtang-detail.is-story-continuous .fangtang-uiux-typography dl {
    gap: 1.4cqw;
    margin-top: 2cqw;
    font-size: clamp(7px, 2.05vw, 8px);
    line-height: 1.15;
  }

  .fangtang-detail.is-story-continuous .fangtang-uiux-typography dl div {
    gap: 1.4cqw;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  }

  .fangtang-detail.is-story-continuous .fangtang-uiux-typography dt,
  .fangtang-detail.is-story-continuous .fangtang-uiux-typography dd {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .fangtang-detail.is-story-continuous .fangtang-uiux-swatches figcaption {
    font-size: 7px;
  }
}

/* Mobile layout polish: resume, profile drawer and featured project details. */
@media (max-width: 680px) {
  /* Resume contact sheet: six compact rows beside one aligned portrait. */
  .resume-cv .resume-cv-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 16px 18px;
    align-items: stretch;
  }

  .resume-cv .resume-cv-profile {
    display: contents;
  }

  .resume-cv .resume-cv-profile h1 {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .resume-cv .resume-cv-info-grid {
    display: grid;
    grid-row: 2;
    grid-column: 1;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(6, minmax(20px, 1fr));
    gap: 0;
    align-self: stretch;
  }

  .resume-cv .resume-cv-info-grid dl {
    display: contents;
  }

  .resume-cv .resume-cv-info-grid dl > div {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 3px;
  }

  .resume-cv .resume-cv-info-grid dt,
  .resume-cv .resume-cv-info-grid dd {
    margin: 0;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .resume-cv .resume-cv-info-grid dt {
    flex: 0 0 auto;
  }

  .resume-cv .resume-cv-info-grid dd {
    min-width: 0;
    letter-spacing: -0.02em;
  }

  .resume-cv .resume-cv-photo {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    grid-row: 2;
    grid-column: 2;
    order: initial;
    object-fit: cover;
    object-position: center 20%;
  }

  /* Keep both drawer destinations the same width as the message action,
     while centering each icon-label pair independently of its status mark. */
  body:is([data-page="portfolio"], [data-page="resume"]) .message-button,
  body:is([data-page="portfolio"], [data-page="resume"]) .profile-nav,
  body:is([data-page="portfolio"], [data-page="resume"]) .profile-nav a {
    width: 100%;
  }

  body:is([data-page="portfolio"], [data-page="resume"]) .profile-nav a {
    position: relative;
    display: grid;
    padding-inline: 42px;
    grid-template-columns: auto auto;
    justify-content: center;
    gap: 10px;
  }

  body:is([data-page="portfolio"], [data-page="resume"]) .profile-nav a > span:not([data-i18n]),
  body:is([data-page="portfolio"], [data-page="resume"]) .profile-nav .current-indicator {
    position: absolute;
    right: 14px;
  }

  /* Core Experience: one primary UI per subsection, followed by its copy. */
  .fangtang-detail.is-story-continuous .fangtang-core-home-gallery,
  .fangtang-detail.is-story-continuous .fangtang-core-design-phone-media,
  .fangtang-detail.is-story-continuous .fangtang-core-management-device,
  .fangtang-detail.is-story-continuous .fangtang-core-profile-scene {
    display: none !important;
  }

  .fangtang-detail.is-story-continuous .fangtang-core-feature {
    gap: 16px;
  }

  .fangtang-detail.is-story-continuous .fangtang-core-marker {
    order: 1;
  }

  .fangtang-detail.is-story-continuous .fangtang-core-home-demo,
  .fangtang-detail.is-story-continuous .fangtang-core-design-flow,
  .fangtang-detail.is-story-continuous .fangtang-core-management-demo,
  .fangtang-detail.is-story-continuous .fangtang-core-profile-demo,
  .fangtang-detail.is-story-continuous .fangtang-core-community-phones {
    width: min(76%, 290px);
    margin: 0;
    justify-self: center;
    order: 2;
  }

  .fangtang-detail.is-story-continuous .fangtang-core-community-phones {
    display: block;
  }

  .fangtang-detail.is-story-continuous .fangtang-core-community-phones img:first-child {
    display: block;
    width: 100%;
  }

  .fangtang-detail.is-story-continuous .fangtang-core-community-phones img:not(:first-child) {
    display: none;
  }

  .fangtang-detail.is-story-continuous .fangtang-core-copy,
  .fangtang-detail.is-story-continuous .fangtang-core-profile .fangtang-core-copy {
    width: min(76%, 290px);
    margin: 0;
    padding: 0;
    justify-self: center;
    order: 3;
    background: transparent;
  }

  /* Give the three-line chapter statements their own clear editorial zone. */
  .fangtang-detail.is-story-continuous .fangtang-uiux-logo .fangtang-uiux-subtitle {
    top: 9.5%;
  }

  .fangtang-detail.is-story-continuous .fangtang-uiux-logo-card-stones,
  .fangtang-detail.is-story-continuous .fangtang-uiux-logo-card-device {
    top: 10.2%;
  }

  .fangtang-detail.is-story-continuous .fangtang-uiux-swatches figcaption {
    margin-top: 0.45cqw;
    font-size: 5px;
    letter-spacing: -0.055em;
    line-height: 1;
    white-space: nowrap;
  }

  .fangtang-detail.is-story-continuous .fangtang-iteration-label-editor {
    top: 9.1%;
  }

  .fangtang-detail.is-story-continuous .fangtang-iteration-editor {
    top: 9.85%;
    height: 18.6%;
  }

  /* Reveal the complete laptop while letting it close the colored panel. */
  .fangtang-detail.heritage-detail.is-story-continuous .heritage-opportunity-problem {
    padding-bottom: 0;
  }

  .heritage-detail.is-story-continuous .heritage-problem-device-crop {
    aspect-ratio: 1.03 / 1;
  }

  /* Timeline headings and their year ranges share one compact mobile scale. */
  .resume-cv .resume-cv-item header h3,
  .resume-cv .resume-cv-item header time {
    font-size: 14px;
    line-height: 1.3;
  }

  /* Drawer destinations use the same full-width pill geometry as Message. */
  body:is([data-page="portfolio"], [data-page="resume"]) .profile-nav {
    gap: 10px;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }

  body:is([data-page="portfolio"], [data-page="resume"]) .profile-nav a {
    width: 100%;
    min-height: 48px;
    padding-inline: 44px;
    border-radius: 999px;
    background: #f7f8fa;
    grid-template-columns: 20px auto;
    justify-content: center;
    gap: 10px;
  }

  body:is([data-page="portfolio"], [data-page="resume"]) .profile-nav a:hover,
  body:is([data-page="portfolio"], [data-page="resume"]) .profile-nav a.active {
    background: #f0f2f7;
  }

  body:is([data-page="portfolio"], [data-page="resume"]) .profile-nav a > span:not([data-i18n]),
  body:is([data-page="portfolio"], [data-page="resume"]) .profile-nav .current-indicator {
    right: 18px;
  }

  /* Mobile uses continuous reading only, so the hero scroll prompt is redundant. */
  body:is(.heritage-detail, .fangtang-detail, .loops-detail, .modular-detail) .project-scroll-cue {
    display: none !important;
  }
}
