:root {
  --bg: #fefefe;
  --paper: #ffffff;
  --ink: #1c1b18;
  --muted: #756f66;
  --soft: rgba(28, 27, 24, 0.09);
  --line: rgba(28, 27, 24, 0.13);
  --accent: #6f5cff;
  --max: 1120px;
  --radius: 28px;
}

/* First entry: organic particle bloom, portrait focus with breathing rings, then one upward curtain. */
.page-ready-loader {
  position: fixed;
  z-index: 6000;
  inset: 0;
  display: none;
  place-items: center;
  overflow: hidden;
  background: #1d1d1d;
  pointer-events: auto;
  transition: transform 650ms cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

.is-page-preparing .page-ready-loader {
  display: grid;
}

.is-page-preparing,
.is-page-preparing body {
  overflow: hidden;
}

.page-ready-loader-particles,
.page-ready-loader-portrait {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 1px;
  transform: translate(-50%, -50%);
}

.page-ready-loader-particles span {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--size);
  height: var(--size);
  margin: calc(var(--size) / -2);
  border-radius: 50%;
  background: #f5f5f5;
  opacity: 0;
  transform: translate(calc(var(--x) * 0.42), calc(var(--y) * 0.42)) scale(0.08);
  animation: page-loader-particle 2300ms linear var(--delay) both;
  will-change: transform, opacity;
}

.page-ready-loader-portrait {
  width: clamp(72px, 8.1vw, 104px);
  height: clamp(72px, 8.1vw, 104px);
  overflow: visible;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.12);
  animation: page-loader-portrait 3500ms cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform, opacity;
}

.page-ready-loader-portrait::before,
.page-ready-loader-portrait::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.48);
  will-change: transform, opacity;
}

.page-ready-loader-portrait::before {
  width: 182%;
  height: 182%;
  animation: page-loader-ring-inner 3500ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-ready-loader-portrait::after {
  width: 230%;
  height: 230%;
  border-color: rgba(255, 255, 255, 0.08);
  animation: page-loader-ring-outer 3500ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-ready-loader-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 50%;
  box-shadow:
    0 0 0 7px rgba(255, 255, 255, 0.028),
    0 12px 35px rgba(0, 0, 0, 0.2);
}

.page-ready-loader-portrait.is-shared-portrait {
  position: fixed;
  z-index: 6100;
  animation: none;
  opacity: 1;
  transform: none;
  transform-origin: left top;
  will-change: transform, border-radius, opacity;
}

.page-ready-loader-portrait.is-shared-portrait::before,
.page-ready-loader-portrait.is-shared-portrait::after {
  animation: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.04);
  transition: opacity 220ms ease-out;
}

.page-ready-loader-portrait.is-shared-portrait img {
  border-radius: inherit;
}

.home-profile-photo.is-awaiting-loader-portrait > img,
.home-profile-photo.is-awaiting-loader-portrait > figcaption {
  opacity: 0;
}

.home-profile-photo.is-awaiting-loader-portrait > img,
.home-profile-photo.is-awaiting-loader-portrait > figcaption,
.home-profile-photo.is-loader-photo-arriving > img,
.home-profile-photo.is-loader-photo-arriving > figcaption {
  transition: opacity 260ms ease-out;
}

.home-profile-photo.is-loader-photo-arriving > img,
.home-profile-photo.is-loader-photo-arriving > figcaption {
  opacity: 1;
}

.page-ready-loader.is-ready {
  transform: translate3d(0, -101%, 0);
  pointer-events: none;
}

@keyframes page-loader-particle {
  0%, 6% {
    opacity: 0;
    transform: translate(calc(var(--x) * 0.42), calc(var(--y) * 0.42)) scale(0.08);
  }
  18% {
    opacity: 0.16;
    transform: translate(calc(var(--x) * 0.7), calc(var(--y) * 0.7)) scale(0.28);
  }
  39% {
    opacity: 1;
    transform: translate(var(--x), var(--y)) scale(1);
  }
  55% {
    opacity: 0.96;
    transform: translate(calc(var(--x) * 1.04), calc(var(--y) * 1.04)) scale(1.08);
  }
  73% {
    opacity: 0.92;
    transform: translate(calc(var(--x) * 0.16), calc(var(--y) * 0.16)) scale(0.42);
  }
  83%, 100% {
    opacity: 0;
    transform: translate(0, 0) scale(0);
  }
}

@keyframes page-loader-portrait {
  0%, 64% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.12);
  }
  74% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes page-loader-ring-inner {
  0%, 64% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.48);
  }
  75% {
    opacity: 0.06;
    transform: translate(-50%, -50%) scale(0.72);
  }
  86% {
    opacity: 0.88;
    transform: translate(-50%, -50%) scale(1);
  }
  94% {
    opacity: 0.42;
    transform: translate(-50%, -50%) scale(1.035);
  }
  100% {
    opacity: 0.66;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes page-loader-ring-outer {
  0%, 67% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  79% {
    opacity: 0.04;
    transform: translate(-50%, -50%) scale(0.72);
  }
  89% {
    opacity: 0.82;
    transform: translate(-50%, -50%) scale(1);
  }
  96% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1.045);
  }
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-ready-loader {
    transition-duration: 180ms;
  }

  .page-ready-loader-particles {
    display: none;
  }

  .page-ready-loader-portrait {
    animation: none;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  .page-ready-loader-portrait::before,
  .page-ready-loader-portrait::after {
    animation: none;
    opacity: 0.35;
    transform: translate(-50%, -50%) scale(1);
  }

  .home-profile-photo.is-awaiting-loader-portrait > img,
  .home-profile-photo.is-awaiting-loader-portrait > figcaption {
    opacity: 1;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

html.is-project-transitioning {
  scroll-behavior: auto !important;
}


body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #141414;
  clip-path: circle(var(--dark-radius, 0vmax) at 50% 135%);
  pointer-events: none;
  transition: clip-path 80ms linear;
  will-change: clip-path;
}

.dot-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cursor-dot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  opacity: 0;
  pointer-events: none;
  transition: width 220ms ease, height 220ms ease, opacity 180ms ease;
  will-change: transform;
}

.cursor-dot.is-visible {
  opacity: 1;
}

.cursor-dot.is-active {
  width: 22px;
  height: 22px;
}

.cursor-dot.over-project {
  opacity: 0;
}

.has-custom-cursor,
.has-custom-cursor a,
.has-custom-cursor button {
  cursor: none;
}

.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  width: 100%;
  height: 2px;
  background: #6f5cff;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  will-change: transform;
}

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

button {
  font: inherit;
}

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 20px clamp(18px, 4vw, 70px) 10px;
  background: transparent;
  backdrop-filter: none;
}

.brand {
  position: absolute;
  left: 22px;
  top: 24px;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  opacity: 0;
  pointer-events: none;
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  padding: 4px;
  background: rgba(185, 185, 185, 0.22);
  box-shadow:
    inset 0 0 0 1px rgba(28, 27, 24, 0.06),
    0 10px 30px rgba(28, 27, 24, 0.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  backdrop-filter: blur(20px) saturate(1.35);
  transition: background 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}

body.dark-mode .nav-links {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(115, 115, 115, 0.2);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 12px 34px rgba(0, 0, 0, 0.24);
}

body.dark-mode .nav-links a {
  color: rgba(255, 255, 255, 0.68);
}

body.dark-mode .nav-links a.is-active {
  color: #151515;
  background: rgba(255, 255, 255, 0.78);
}

body.dark-mode .nav-links .theme-dot {
  color: #151515;
  background: rgba(255, 255, 255, 0.82);
}

.nav-links a {
  border-radius: 999px;
  padding: 10px 17px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  transform: translate3d(var(--magnet-x, 0), var(--magnet-y, 0), 0);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), color 180ms ease, background 180ms ease;
  will-change: transform;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(28, 27, 24, 0.06);
}

.nav-links a.is-active {
  color: var(--ink);
  background: rgba(28, 27, 24, 0.07);
}

.nav-links .theme-dot {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(28, 27, 24, 0.08);
}

.nav-toggle {
  display: none;
}

.hero,
.portfolio-cover,
.section,
.contact-section,
.case-page,
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.portfolio-cover {
  position: relative;
  view-timeline-name: --portfolio-cover;
  view-timeline-axis: block;
  display: grid;
  place-items: center;
  min-height: 112dvh;
  overflow: hidden;
  padding-top: 110px;
  padding-bottom: clamp(90px, 14vh, 180px);
  text-align: center;
  isolation: isolate;
}

.portfolio-cover::before {
  content: "";
  position: absolute;
  inset: -10% auto auto 50%;
  width: 100vw;
  height: 110%;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 36%, rgba(143, 154, 240, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(254, 254, 254, 0) 0%, rgba(254, 254, 254, 0.62) 74%, var(--bg) 100%);
  pointer-events: none;
  z-index: 0;
}

.portfolio-cover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 100vw;
  height: 24vh;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(254, 254, 254, 0), var(--bg) 72%);
  pointer-events: none;
  z-index: 1;
}

.portfolio-cover-copy {
  position: relative;
  z-index: 3;
  transform: translateY(-7vh);
  will-change: transform, opacity, filter;
}

.portfolio-cover h1 {
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: clamp(4.2rem, 9vw, 9.2rem);
  font-style: normal;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.portfolio-cover-copy p {
  margin-top: 36px;
  font-size: clamp(1.35rem, 3.2vw, 3.4rem);
  letter-spacing: 0.22em;
}

.portfolio-cover-photo {
  position: absolute;
  left: 50%;
  top: 82%;
  z-index: 2;
  width: min(38vw, 560px);
  aspect-ratio: 0.72;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 64px;
  background: #d9d9d9;
  box-shadow: 0 26px 90px rgba(28, 27, 24, 0.12);
  opacity: 0.92;
  filter: saturate(0.95);
  transform: translate3d(-50%, 0, 0) scale(0.94);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1), opacity 700ms ease, filter 700ms ease;
  will-change: transform, opacity, filter;
}

.portfolio-cover-photo.reveal {
  transform: translate3d(-50%, var(--reveal-y), 0) scale(0.94);
}

.portfolio-cover-photo.visible {
  top: 79%;
  transform: translate3d(-50%, 0, 0) scale(0.94);
}

.portfolio-cover-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 72%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: clamp(54px, 8vw, 116px);
  align-items: center;
  min-height: 760px;
  padding-top: calc(clamp(118px, 14vw, 174px) - 30px);
  padding-bottom: calc(clamp(92px, 11vw, 138px) + 30px);
}

.hello {
  margin-bottom: 26px;
  color: #1c1b18;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  font-weight: 500;
}

.hello span {
  color: #f3b400;
}

.hero h1 {
  max-width: 650px;
  margin-bottom: 26px;
  font-family: Georgia, "Times New Roman", "PingFang SC", serif;
  font-size: clamp(3.15rem, 5.2vw, 5.2rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero-latin {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.profile-hero {
  min-height: calc(100dvh + 40px);
  margin-top: clamp(-460px, -42vh, -320px);
  padding-top: clamp(96px, 12vh, 148px);
  position: relative;
  z-index: 4;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid rgba(28, 27, 24, 0.08);
  border-radius: clamp(30px, 4vw, 72px) clamp(30px, 4vw, 72px) 0 0;
  background:
    radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(28, 27, 24, 0.075) 0 1.2px, transparent 1.3px),
    radial-gradient(circle, rgba(28, 27, 24, 0.10) 0 1.05px, transparent 1.1px),
    #fbfaf7;
  background-size: 22px 22px, 22px 22px, auto;
  background-position: 0 0, 0 0, 0 0;
  box-shadow: 0 -34px 96px rgba(28, 27, 24, 0.08);
  scroll-margin-top: 0;
  transform-origin: 50% 0;
  will-change: transform, opacity, filter;
}

@supports (animation-timeline: view()) {
  .portfolio-cover-copy {
    animation: cover-copy-exit linear both;
    animation-timeline: --portfolio-cover;
    animation-range: exit 0% exit 62%;
  }

  .portfolio-cover-photo {
    animation: cover-photo-exit linear both;
    animation-timeline: --portfolio-cover;
    animation-range: exit 0% exit 44%;
  }

  .profile-hero {
    animation: profile-scene-enter cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 66%;
  }
}

@keyframes cover-copy-exit {
  from { opacity: 1; transform: translateY(-7vh) scale(1); filter: blur(0); }
  42% { opacity: 0.92; transform: translateY(-12vh) scale(0.985); filter: blur(0.4px); }
  to { opacity: 0; transform: translateY(-24vh) scale(0.94); filter: blur(10px); }
}

@keyframes cover-photo-exit {
  from { opacity: 0.92; transform: translate3d(-50%, 0, 0) scale(0.94); filter: blur(0) saturate(0.95); }
  to { opacity: 0; transform: translate3d(-50%, -16vh, 0) scale(1.02); filter: blur(5px) saturate(0.9); }
}

@keyframes profile-scene-enter {
  from { opacity: 0.96; transform: scale(0.74); filter: blur(2px); }
  42% { opacity: 1; transform: scale(0.88); filter: blur(0.4px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.82;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 12px;
  padding: 0 18px;
  font-size: 0.86rem;
  font-weight: 600;
  transform: translate3d(var(--magnet-x, 0), var(--magnet-y, 0), 0);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), background 180ms ease, color 180ms ease;
  will-change: transform;
}

.primary-btn {
  color: #fffaf1;
  background: #1c1b18;
  box-shadow: 0 16px 42px rgba(28, 27, 24, 0.15);
}

.primary-btn::before {
  content: "✉";
  margin-right: 8px;
  font-size: 0.82rem;
}

.ghost-btn,
.back-link {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(49, 43, 35, 0.08);
}

.hero .ghost-btn::after {
  content: "→";
  margin-left: 10px;
}

.primary-btn:hover,
.ghost-btn:hover,
.back-link:hover {
  transform: translate3d(var(--magnet-x, 0), calc(var(--magnet-y, 0px) - 2px), 0);
}

.hero-panel {
  border: 4px solid #fff;
  border-radius: 34px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 24px 80px rgba(72, 60, 42, 0.1);
  transform-origin: 50% 70%;
}

.portrait-photo {
  position: relative;
  height: 410px;
  border-radius: 26px;
  overflow: hidden;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), filter 500ms ease;
}

.portrait-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 76%;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-panel:hover .portrait-photo {
  transform: scale(1.018);
  filter: saturate(1.04);
}

.hero-panel:hover .portrait-photo img {
  transform: scale(1.035);
}

.portrait-photo i {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  border-radius: 10px;
  padding: 7px 8px;
  background: rgba(28, 27, 24, 0.62);
  color: #fff;
  font-style: normal;
  font-size: 0.85rem;
}

.section {
  padding-top: clamp(70px, 10vw, 118px);
  padding-bottom: clamp(70px, 10vw, 118px);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.48fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.project-showcase {
  max-width: none;
  margin-top: clamp(30px, 6vw, 80px);
  padding: clamp(82px, 10vw, 130px) clamp(22px, 4vw, 70px) clamp(120px, 18vw, 240px);
  border-radius: 46px 46px 0 0;
  color: #f7f7f4;
  background: #141414;
}

.project-section-head {
  display: grid;
  justify-items: start;
  gap: 14px;
  max-width: 1600px;
  margin: 0 auto 76px;
  text-align: left;
}

.project-section-head h2 {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: clamp(2.43rem, 5.12vw, 5.12rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.075em;
}

.project-section-head p {
  max-width: 430px;
  color: rgba(247, 247, 244, 0.58);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.7;
}

.section h2,
.contact-card h2 {
  font-family: Georgia, "Times New Roman", "PingFang SC", serif;
  font-size: clamp(2.24rem, 4.8vw, 4.64rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.052em;
}

.section-head p,
.intro-text p,
.contact-card p {
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.8;
}

.project-grid {
  display: grid;
  gap: clamp(28px, 4.5vw, 54px);
  max-width: 1600px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  position: sticky;
  top: 128px;
  z-index: var(--stack-index);
  display: grid;
  grid-template-columns: 40.5% 59.5%;
  gap: 0;
  min-height: 0;
  aspect-ratio: 1775 / 988;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 34px;
  overflow: visible;
  color: #f7f7f4;
  background: #1f1f1f;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.28);
  --stack-scale: 1;
  --stack-brightness: 1;
  --hover-y: 0px;
  --parallax-x: 0px;
  --parallax-y: 0px;
  transform: translate3d(0, calc(var(--reveal-y, 0px) + var(--hover-y)), 0) scale(var(--stack-scale));
  transform-origin: center top;
  transition: opacity 760ms ease, filter 760ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms ease;
  will-change: transform;
}

.project-card:hover {
  --hover-y: -6px;
  box-shadow: 0 48px 120px rgba(0, 0, 0, 0.36);
}

.figma-project-card:hover {
  --hover-y: 0px;
}

.figma-project-card {
  border: 0;
  background: transparent;
}

.project-card[data-project="ai-search"] .project-info {
  padding-inline: clamp(36px, 4vw, 68px);
}

.project-card[data-project="ai-search"] h3 {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(2rem, 3.05vw, 3.45rem);
  letter-spacing: 0;
}

.project-visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border-radius: 0 34px 34px 0;
  background: #181818;
}

.project-visual > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0) scale(1.015);
  transition: transform 960ms cubic-bezier(0.16, 1, 0.3, 1), filter 620ms ease;
  will-change: transform;
}

.project-card:hover .project-visual > img {
  transform: translate3d(var(--parallax-x), calc(var(--parallax-y) - 3px), 0) scale(1.028);
  filter: saturate(1.04) contrast(1.02);
}

/* The source artwork contains a desktop corner baked into the top-right.
   Shift the cover crop so the artwork remains edge-to-edge at every size. */
.project-card[data-project="integrated"] .project-visual > img {
  object-position: center 20%;
}

.ai-project-visual .ai-visual-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  transition: filter 900ms cubic-bezier(0.16, 1, 0.3, 1), transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-project-visual .ai-phone {
  position: absolute;
  top: 15.4%;
  width: 29.2%;
  height: auto;
  object-fit: contain;
  transform: translate3d(0, 0, 0);
  transition: transform 1050ms cubic-bezier(0.16, 1, 0.3, 1), filter 700ms ease;
  will-change: transform;
}

.ai-phone-left {
  left: 19.1%;
}

.ai-phone-right {
  left: 53%;
  transition-delay: 35ms;
}

.project-card[data-project="ai-search"]:hover .ai-phone-left {
  transform: translate3d(var(--ai-left-x), calc(-13px + var(--ai-left-y)), 0) rotate(-0.25deg) scale(1.012);
}

.project-card[data-project="ai-search"]:hover .ai-phone-right {
  transform: translate3d(var(--ai-right-x), calc(13px + var(--ai-right-y)), 0) rotate(0.25deg) scale(1.012);
}

.project-card[data-project="ai-search"]:hover .ai-visual-bg {
  transform: scale(1.012);
  filter: saturate(1.04) contrast(1.01);
}

.meituan-project-visual {
  background: #addde5;
}

.meituan-project-visual .meituan-phone {
  position: absolute;
  top: 15.4%;
  width: 29.2%;
  height: auto;
  object-fit: contain;
  clip-path: inset(0.2% 1.6% 0.4% round 17% / 8.5%);
  transform: translate3d(0, 0, 0);
  transition: transform 1050ms cubic-bezier(0.16, 1, 0.3, 1), filter 700ms ease;
  will-change: transform;
}

.meituan-phone-left {
  left: 19.1%;
}

.meituan-phone-right {
  left: 53%;
  transition-delay: 35ms;
}

.project-card[data-project="meituan-live"]:hover .meituan-phone-left {
  transform: translate3d(0, -13px, 0) rotate(-0.2deg) scale(1.012);
}

.project-card[data-project="meituan-live"]:hover .meituan-phone-right {
  transform: translate3d(0, 13px, 0) rotate(0.2deg) scale(1.012);
}

.project-cover,
.case-cover {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0 34px 34px 0;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.18), transparent 13rem),
    linear-gradient(145deg, color-mix(in srgb, var(--accent), #0b0b0b 10%), color-mix(in srgb, var(--accent), #111 42%));
  transition: filter 420ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-cover {
  filter: brightness(var(--stack-brightness)) saturate(1.08);
}

.project-info,
.project-cover {
  filter: brightness(var(--stack-brightness));
  transition: filter 420ms ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(255, 255, 255, 0.1), transparent 72%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

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

.project-cover::before,
.case-cover::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 8%;
  bottom: -8%;
  top: 27%;
  border: 18px solid #080808;
  border-radius: 22px 22px 0 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.78)),
    repeating-linear-gradient(0deg, rgba(28,27,24,0.06) 0 1px, transparent 1px 28px);
  box-shadow: 0 28px 54px rgba(0, 0, 0, 0.34);
  transform: perspective(900px) rotateX(0deg);
}

.cover-word {
  position: absolute;
  left: 9%;
  top: 10%;
  bottom: auto;
  z-index: 2;
  max-width: 74%;
  color: rgba(255, 255, 255, 0.92);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: clamp(3rem, 6.8vw, 7.5rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.085em;
  opacity: 0.22;
  transform: translate3d(calc(var(--parallax-x) * -0.35), calc(var(--parallax-y) * -0.35), 0);
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cover-device {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
  opacity: 0.92;
}

.cover-device.one {
  left: 24%;
  top: 35%;
  width: 42%;
  height: 20%;
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0);
}

.cover-device.two {
  right: 13%;
  top: 48%;
  width: 26%;
  height: 16%;
  transform: translate3d(calc(var(--parallax-x) * -0.7), calc(var(--parallax-y) * -0.7), 0);
}

.cover-device.three {
  left: 24%;
  bottom: 20%;
  width: 54%;
  height: 12%;
  transform: translate3d(calc(var(--parallax-x) * 0.45), calc(var(--parallax-y) * 0.45), 0);
}

.cover-device {
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms ease;
}

.project-info {
  display: grid;
  align-content: start;
  min-height: 100%;
  padding: clamp(62px, 6vw, 96px) clamp(38px, 5vw, 84px);
  background: #202020;
  border-radius: 34px 0 0 34px;
}

.project-logo-wrap {
  position: absolute;
  left: clamp(-28px, -1.8vw, -18px);
  top: clamp(-34px, -2.2vw, -22px);
  z-index: 4;
  display: grid;
  width: clamp(92px, 8vw, 132px);
  height: clamp(92px, 8vw, 132px);
  place-items: center;
  border: 8px solid #2b2b2b;
  border-radius: 999px;
  background: #f7f7f4;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.figma-project-logo {
  overflow: hidden;
}

.figma-project-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.project-card[data-project="gofun"] .project-logo-wrap {
  border-color: #292929;
  background: #050505;
}

.project-card[data-project="gofun"] .figma-project-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.project-logo {
  display: inline-grid;
  width: 72%;
  height: 72%;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: clamp(1rem, 1.5vw, 1.38rem);
  font-weight: 800;
}

.project-meta-line {
  margin-bottom: clamp(28px, 3.4vw, 48px);
  color: rgba(247, 247, 244, 0.5);
  font-size: clamp(0.95rem, 1.35vw, 1.2rem);
  line-height: 1.5;
}

.project-card h3 {
  max-width: 540px;
  margin-bottom: clamp(18px, 2vw, 28px);
  color: #fff;
  font-size: clamp(2.04rem, 3.52vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.project-card p {
  max-width: 500px;
  color: rgba(247, 247, 244, 0.56);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.48;
}

.open-pill {
  position: absolute;
  left: 50%;
  top: 58%;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  min-height: clamp(38px, 3.5vw, 55px);
  border-radius: 999px;
  padding: 0 clamp(20px, 2.8vw, 34px);
  color: #151515;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.16rem, 2.24vw, 2.35rem);
  font-style: italic;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 320ms ease, transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.open-pill-inline {
  position: relative;
  left: auto;
  top: auto;
  z-index: 2;
  justify-self: start;
  min-height: clamp(50px, 4vw, 68px);
  margin-top: clamp(38px, 5.5vw, 90px);
  padding: 0 clamp(24px, 3vw, 40px);
  font-size: clamp(1.45rem, 2.5vw, 2.75rem);
  transform: none;
}

.project-card:hover .open-pill-inline {
  transform: translateY(-2px) scale(1.02);
}

.open-pill i {
  margin-left: 18px;
  font-style: normal;
}

.project-card:hover .open-pill {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.open-pill.is-following {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.project-stats {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: clamp(20px, 3vw, 36px);
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.project-stats span {
  border-radius: 999px;
  padding: 10px 18px;
  color: rgba(255,255,255,0.86);
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
  font-size: 0.95rem;
  font-weight: 650;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tag-row span {
  border: 1px solid rgba(28, 27, 24, 0.12);
  border-radius: 999px;
  padding: 7px 10px;
  color: rgba(28, 27, 24, 0.72);
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 650;
}

.work-more {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.6fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: start;
}

.intro-text p + p {
  margin-top: 18px;
}

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

.expertise-card,
.timeline-item,
.case-note,
.case-block,
.solution-grid article {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
}

.expertise-card {
  padding: 24px;
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1), background 260ms ease, border-color 260ms ease;
}

.expertise-card:hover,
.timeline-item:hover {
  border-color: rgba(28, 27, 24, 0.24);
  background: rgba(255, 255, 255, 0.86);
  transform: translateY(-5px);
}

.expertise-card span,
.case-note span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.expertise-card h3 {
  margin: 22px 0 10px;
  font-size: clamp(1.15rem, 1.55vw, 1.5rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.expertise-card p,
.timeline-item p,
.case-note p,
.case-block p,
.solution-grid p {
  color: var(--muted);
  line-height: 1.76;
}

#expertise .expertise-card span {
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  font-weight: 650;
  letter-spacing: -0.01em;
}

#expertise .expertise-card p {
  font-size: clamp(0.9rem, 1.08vw, 1.04rem);
  font-weight: 400;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  padding: 24px;
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1), background 260ms ease, border-color 260ms ease;
}

.timeline-item span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.timeline-item h3 {
  margin-bottom: 8px;
}

/* Work experience: restrained dark vertical timeline. */
#resume.timeline-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100vw;
  max-width: none;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  margin-top: clamp(58px, 8vw, 120px);
  padding: clamp(58px, 7.2vw, 112px) max(22px, calc((100vw - var(--max)) / 2));
  background: #101112;
  color: #f7f7f4;
}

#resume.timeline-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.48;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.23) 0.7px, transparent 0.9px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 92%);
}

#resume .section-head h2 {
  color: #fff;
}

#expertise .section-head h2,
#resume .section-head h2 {
  font-size: clamp(2.24rem, 4.8vw, 4.64rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.052em;
}

#resume .timeline-content {
  width: 100%;
  max-width: none;
  margin: 0;
}

#resume .section-head,
#resume .timeline {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

#resume .timeline {
  position: relative;
  display: grid;
  gap: 16px;
  margin-top: clamp(38px, 4.6vw, 64px);
  padding-left: 38px;
}

#resume .timeline::before {
  content: "";
  position: absolute;
  top: 31px;
  bottom: 31px;
  left: 12px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.36) 8%, rgba(255, 255, 255, 0.36) 92%, transparent);
}

#resume .timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(154px, 0.62fr) minmax(0, 1.8fr);
  gap: clamp(24px, 3.6vw, 64px);
  align-items: start;
  min-height: 142px;
  padding: clamp(25px, 2.4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
  transition: border-color 260ms ease, background-color 260ms ease;
}

#resume .timeline-item.reveal {
  transition-delay: calc(var(--timeline-index, 0) * 120ms) !important;
}

#resume .timeline-item:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

#resume .timeline-marker {
  position: absolute;
  top: 30px;
  left: -38px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 50%;
  background: #101112;
}

#resume .timeline-marker i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.08);
}

#resume .timeline-date {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  font-weight: 650;
  letter-spacing: -0.01em;
}

#resume .timeline-entry h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(1.15rem, 1.55vw, 1.5rem);
  letter-spacing: -0.035em;
}

#resume .timeline-entry p {
  max-width: 62rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(0.9rem, 1.08vw, 1.04rem);
  line-height: 1.78;
}

.contact-section {
  padding-top: clamp(64px, 9vw, 106px);
  padding-bottom: 96px;
}

.contact-card {
  border-radius: 38px;
  padding: clamp(38px, 7vw, 86px);
  background: #1c1b18;
  color: #fffaf1;
  box-shadow: 0 26px 88px rgba(72, 60, 42, 0.14);
}

.contact-card p {
  max-width: 680px;
  margin-top: 18px;
  color: rgba(255, 250, 241, 0.72);
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 18px clamp(32px, 4vw, 64px);
  margin-top: clamp(34px, 4vw, 52px);
  color: rgba(255, 250, 241, 0.92);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.5;
}

.contact-details span {
  white-space: nowrap;
}

.case-page {
  padding-top: 58px;
  padding-bottom: 100px;
}

body.ai-detail-mode {
  background: #fff;
}

body.ai-detail-mode .dot-field,
body.ai-detail-mode .footer {
  display: none;
}

body.ai-detail-mode .topbar {
  display: none;
}

.ai-case-page {
  --ai-case-edge: max(24px, calc((100vw - 1920px) / 2));
  width: 100%;
  padding: 24px;
  color: #fff;
  background: #fff;
}

/* ─── Project Arc Navigation (bottom of detail pages) ─── */
.project-arc-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 60;
  width: min(520px, 100vw);
  margin: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateX(-50%);
}

.project-arc-nav.is-visible {
  pointer-events: auto;
  visibility: visible;
}

.project-arc-nav.is-leaving {
  pointer-events: none;
  visibility: visible;
}

.project-arc-nav-inner {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 2 / 1;
  overflow: hidden;
}

.project-arc-nav-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.project-arc-dots,
.project-arc-hint,
.project-arc-mask-path {
  fill: none;
}

.project-arc-dots { stroke-width: 90; }

.project-arc-hint { display: none; }

.project-arc-mask-path {
  stroke: #fff;
  stroke-width: 92;
  stroke-linecap: butt;
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
}

.project-arc-glass-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(18, 20, 22, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 -10px 28px rgba(8, 10, 12, 0.1);
  -webkit-backdrop-filter: blur(28px) saturate(145%) contrast(108%);
  backdrop-filter: blur(28px) saturate(145%) contrast(108%);
  -webkit-mask: url("#project-arc-reveal-mask") 0 0 / 100% 100% no-repeat;
  mask: url("#project-arc-reveal-mask") 0 0 / 100% 100% no-repeat;
  will-change: backdrop-filter;
}

.project-arc-dots {
  stroke: url(#project-arc-dot-field);
  stroke-linecap: butt;
  opacity: 0.62;
}

.project-arc-nav.is-visible .project-arc-mask-path {
  animation: project-arc-trim 1.18s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.project-arc-nav.is-leaving .project-arc-mask-path {
  animation: project-arc-trim-reverse 1.02s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes project-arc-trim {
  to { stroke-dashoffset: 0; }
}

@keyframes project-arc-trim-reverse {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 700; }
}

.project-arc-nav-list {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.project-arc-nav-item {
  --arc-x: 50%;
  --arc-y: 50%;
  --arc-rotation: 0deg;
  position: absolute;
  left: var(--arc-x);
  top: var(--arc-y);
  z-index: 1;
  color: rgba(255, 255, 255, 0.4);
  font-size: clamp(13px, 1.25vw, 16px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  transform-origin: center;
  transform: translate(-50%, 8px) rotate(var(--arc-rotation));
  transition: color 300ms ease, opacity 380ms ease, transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.arc-item-ai-search { --arc-x: 18%; --arc-y: 51%; --arc-rotation: -52deg; }
.arc-item-meituan-live { --arc-x: 38%; --arc-y: 22%; --arc-rotation: -17deg; }
.arc-item-gofun { --arc-x: 62%; --arc-y: 22%; --arc-rotation: 17deg; }
.arc-item-integrated { --arc-x: 82%; --arc-y: 51%; --arc-rotation: 52deg; }

.project-arc-nav.is-visible .project-arc-nav-item { opacity: 1; }
.project-arc-nav.is-visible .arc-item-ai-search { transition-delay: 220ms; transform: translate(-50%, 0) rotate(var(--arc-rotation)); }
.project-arc-nav.is-visible .arc-item-meituan-live { transition-delay: 360ms; transform: translate(-50%, 0) rotate(var(--arc-rotation)); }
.project-arc-nav.is-visible .arc-item-gofun { transition-delay: 500ms; transform: translate(-50%, 0) rotate(var(--arc-rotation)); }
.project-arc-nav.is-visible .arc-item-integrated { transition-delay: 640ms; transform: translate(-50%, 0) rotate(var(--arc-rotation)); }

.project-arc-nav.is-leaving .project-arc-nav-item { opacity: 0; }
.project-arc-nav.is-leaving .arc-item-integrated { transition-delay: 0ms; }
.project-arc-nav.is-leaving .arc-item-gofun { transition-delay: 90ms; }
.project-arc-nav.is-leaving .arc-item-meituan-live { transition-delay: 180ms; }
.project-arc-nav.is-leaving .arc-item-ai-search { transition-delay: 270ms; }

.project-arc-nav-item::before {
  position: absolute;
  left: 50%;
  top: -16px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  content: "";
  opacity: 0;
  transform: translateX(-50%) scale(0.4);
  transition: opacity 260ms ease, transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-arc-nav-item:hover,
.project-arc-nav-item.active {
  color: #fff;
}

.project-arc-nav.is-visible .project-arc-nav-item:hover {
  color: #fff;
  transform: translate(-50%, -2px) rotate(var(--arc-rotation)) scale(1.1);
}

.project-arc-nav.is-visible .project-arc-nav-item:hover:not(.active)::before {
  opacity: 0.82;
  transform: translateX(-50%) scale(0.82);
}

.project-arc-nav-item.active::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.project-arc-nav-item:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 6px;
  border-radius: 2px;
}

@media (max-width: 600px) {
  .project-arc-nav {
    width: min(100vw, 480px);
  }

  .project-arc-nav-inner {
    width: min(100%, 480px);
  }

  .project-arc-nav-item {
    font-size: clamp(12px, 3.6vw, 14px);
  }

  .arc-item-ai-search { --arc-x: 18%; --arc-y: 51%; }
  .arc-item-meituan-live { --arc-x: 38%; --arc-y: 22%; }
  .arc-item-gofun { --arc-x: 62%; --arc-y: 22%; }
  .arc-item-integrated { --arc-x: 82%; --arc-y: 51%; }
}

@media (prefers-reduced-motion: reduce) {
  .project-arc-nav,
  .project-arc-nav-item { transition: none; }
  .project-arc-nav.is-visible .project-arc-mask-path { animation: none; stroke-dashoffset: 0; }
  .project-arc-nav.is-leaving .project-arc-mask-path { animation: none; stroke-dashoffset: 700; }
}

html.is-project-arc-animating,
html.is-project-arc-animating body {
  overscroll-behavior: none;
}

/* ─── Project directory switcher — Figma nodes 204:9477 / 204:9484 ─── */
.project-switcher {
  position: relative;
  left: auto;
  bottom: auto;
  z-index: 60;
  width: min(calc(100vw - 48px), 1720px);
  margin: calc(-20vh - 24px) auto 0;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transform: translateY(clamp(140px, 18vh, 220px)) scale(0.985);
  transition:
    opacity 520ms ease,
    transform 780ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 780ms;
}

.project-switcher.is-visible {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
  animation: project-switcher-pop-in 1.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes project-switcher-pop-in {
  0% {
    opacity: 0;
    transform: translateY(clamp(140px, 18vh, 220px)) scale(0.985);
  }
  72% {
    opacity: 1;
    transform: translateY(-9px) scale(1.003);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.project-switcher-stage {
  position: relative;
  aspect-ratio: 3828 / 1518;
  overflow: hidden;
  border-radius: clamp(28px, 2.61vw, 45px);
  background: #0a0a0a;
  box-shadow: none;
}

.project-switcher-deck {
  position: absolute;
  inset: 0;
}

.project-switcher-caption {
  position: absolute;
  top: 63.4%;
  left: 50%;
  z-index: 6;
  margin: 0;
  color: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(20px, 2.3vw, 40px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: normal;
  transform: translate(-50%, -50%);
}

.project-switcher-contact {
  position: absolute;
  top: 78.6%;
  left: 50%;
  z-index: 7;
  display: grid;
  width: 8.36%;
  min-width: 104px;
  height: 9.03%;
  min-height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: clamp(10px, 0.84vw, 14px);
  color: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(16px, 1.52vw, 26px);
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
  transform: translate(-50%, -50%);
  transition: color 240ms ease, background-color 240ms ease, transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-switcher-contact:hover,
.project-switcher-contact:focus-visible {
  background: #fff;
  color: #0a0a0a;
  transform: translate(-50%, calc(-50% - 2px));
}

.project-switcher-contact:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 5px;
}

.project-switcher-card {
  --card-left: 50%;
  --card-top: 50%;
  --card-collapsed-left: 50%;
  --card-collapsed-top: 37%;
  --card-rotate: 0deg;
  --card-hover-rotate: 0deg;
  --card-z: 1;
  position: absolute;
  left: var(--card-collapsed-left);
  top: var(--card-collapsed-top);
  z-index: var(--card-z);
  width: 10.491%;
  aspect-ratio: 401.6 / 494.4;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transform: translate(-50%, -50%) rotate(var(--card-rotate));
  transform-origin: center;
  transition:
    left 720ms cubic-bezier(0.16, 1, 0.3, 1),
    top 720ms cubic-bezier(0.16, 1, 0.3, 1),
    width 440ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: left, top, width, transform;
}

.project-switcher-card[data-nav-entry="ai-search"] {
  --card-left: 35.687%;
  --card-top: 36.92%;
  --card-rotate: -6.92deg;
  --card-hover-rotate: -3.4deg;
  --card-z: 4;
}

.project-switcher-card[data-nav-entry="meituan-live"] {
  --card-left: 45.247%;
  --card-top: 34.31%;
  --card-rotate: -3.58deg;
  --card-hover-rotate: -1.8deg;
  --card-z: 3;
}

.project-switcher-card[data-nav-entry="gofun"] {
  --card-left: 54.887%;
  --card-top: 34.31%;
  --card-rotate: 4.1deg;
  --card-hover-rotate: 2deg;
  --card-z: 2;
}

.project-switcher-card[data-nav-entry="integrated"] {
  --card-left: 64.213%;
  --card-top: 36.76%;
  --card-rotate: 5.93deg;
  --card-hover-rotate: 3deg;
  --card-z: 1;
}

.project-switcher.is-expanded .project-switcher-card {
  left: var(--card-left);
  top: var(--card-top);
}

.project-switcher-card-visual {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(227, 227, 227, 0.2);
  border-radius: 12.35%;
  background: #111;
}

.project-switcher-card[data-nav-entry="ai-search"] .project-switcher-card-visual,
.project-switcher-card[data-nav-entry="meituan-live"] .project-switcher-card-visual {
  border-color: rgba(0, 0, 0, 0.2);
}

.project-switcher-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.project-switcher-card-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0.08) 50%, #000 100%);
  opacity: 0;
  transition: opacity 300ms ease;
}

.project-switcher-card-label {
  position: absolute;
  right: 10%;
  bottom: 11.8%;
  left: 10%;
  color: #fff;
  font-size: clamp(14px, 1.7vw, 29px);
  font-weight: 500;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 280ms ease 70ms, transform 380ms cubic-bezier(0.16, 1, 0.3, 1) 40ms;
}

.project-switcher-card:hover,
.project-switcher-card:focus-visible,
.project-switcher-card.is-target {
  left: calc(var(--card-left) - 0.34%);
  top: calc(var(--card-top) - 3.42%);
  z-index: 10;
  width: 11.54%;
  transform: translate(-50%, -50%) rotate(var(--card-hover-rotate));
}

.project-switcher-card:hover .project-switcher-card-mask,
.project-switcher-card:focus-visible .project-switcher-card-mask,
.project-switcher-card.is-target .project-switcher-card-mask,
.project-switcher-card:hover .project-switcher-card-label,
.project-switcher-card:focus-visible .project-switcher-card-label,
.project-switcher-card.is-target .project-switcher-card-label {
  opacity: 1;
}

.project-switcher-card:hover .project-switcher-card-label,
.project-switcher-card:focus-visible .project-switcher-card-label,
.project-switcher-card.is-target .project-switcher-card-label {
  transform: translateY(0);
}

.project-switcher-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 7px;
  border-radius: 12.35%;
}

.project-switcher.is-focusing .project-switcher-card:not(.is-target) {
  opacity: 0.58;
  transition: opacity 260ms ease, left 440ms cubic-bezier(0.16, 1, 0.3, 1), top 440ms cubic-bezier(0.16, 1, 0.3, 1), width 440ms cubic-bezier(0.16, 1, 0.3, 1), transform 440ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 760px) {
  .project-switcher {
    bottom: auto;
    width: calc(100vw - 24px);
    margin-top: calc(-20vh - 12px);
  }

  .project-switcher-stage {
    min-height: 0;
    aspect-ratio: 1.5 / 1;
    border-radius: 22px;
  }

  .project-switcher-card {
    --card-collapsed-top: 34%;
    width: 22%;
  }

  .project-switcher-card[data-nav-entry="ai-search"] { --card-left: 30%; --card-top: 38%; }
  .project-switcher-card[data-nav-entry="meituan-live"] { --card-left: 43%; --card-top: 34%; }
  .project-switcher-card[data-nav-entry="gofun"] { --card-left: 57%; --card-top: 34%; }
  .project-switcher-card[data-nav-entry="integrated"] { --card-left: 70%; --card-top: 38%; }

  .project-switcher-card:hover,
  .project-switcher-card:focus-visible,
  .project-switcher-card.is-target {
    width: 24.2%;
    top: calc(var(--card-top) - 3%);
  }

  .project-switcher-card-label {
    font-size: 14px;
  }

  .project-switcher-caption {
    top: 69%;
    font-size: 16px;
  }

  .project-switcher-contact {
    top: 84%;
    width: auto;
    min-width: 84px;
    height: 38px;
    min-height: 38px;
    font-size: 14px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .project-switcher,
  .project-switcher-card,
  .project-switcher-card-mask,
  .project-switcher-card-label {
    transition-duration: 1ms;
    transition-delay: 0s;
  }

  .project-switcher-contact {
    transition-duration: 1ms;
  }

  .project-switcher.is-visible {
    animation: none;
  }
}

.ai-case-left-nav {
  position: fixed;
  left: var(--ai-case-edge);
  top: 26px;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ai-case-back,
.ai-case-project-trigger {
  display: grid;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  /* Web frosted-glass approximation: the page remains visible through the material. */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 14px rgba(27, 36, 52, 0.12);
  color: #1c2028;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  transition: color 180ms ease, background 240ms ease, border-color 240ms ease, box-shadow 240ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ai-case-back {
  width: 42px;
}

.ai-case-back svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-case-project-menu {
  position: relative;
}

.ai-case-project-menu::after {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px;
  content: "";
}

.ai-case-project-trigger {
  min-width: 72px;
  padding: 0 18px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
}

.ai-case-back:hover,
.ai-case-back:focus-visible,
.ai-case-project-menu:hover .ai-case-project-trigger,
.ai-case-project-menu:focus-within .ai-case-project-trigger {
  border-color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 #fff, 0 8px 16px rgba(27, 36, 52, 0.15);
  color: #090b0f;
  transform: translateY(-1px);
}

.ai-case-project-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 164px;
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.34));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 8px 16px rgba(27, 36, 52, 0.12);
  backdrop-filter: blur(24px) saturate(165%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -6px, 0) scale(0.98);
  transform-origin: 28px 0;
  transition: opacity 180ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ai-case-project-menu:hover .ai-case-project-panel,
.ai-case-project-menu:focus-within .ai-case-project-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.ai-case-project-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  border-radius: 9px;
  padding: 0 11px;
  color: rgba(28, 32, 40, 0.72);
  font-size: 13px;
  transition: color 160ms ease, background 160ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ai-case-project-panel a span:last-child {
  opacity: 0;
  transform: translate3d(-4px, 4px, 0);
  transition: opacity 160ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ai-case-project-panel a:hover,
.ai-case-project-panel a:focus-visible,
.ai-case-project-panel a.active {
  background: rgba(23, 28, 38, 0.08);
  color: #141820;
  transform: translateX(2px);
}

@media (prefers-reduced-transparency: reduce) {
  .ai-case-back,
  .ai-case-project-trigger,
  .ai-case-project-panel {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.ai-case-project-panel a:hover span:last-child,
.ai-case-project-panel a:focus-visible span:last-child,
.ai-case-project-panel a.active span:last-child {
  opacity: 0.72;
  transform: translate3d(0, 0, 0);
}

.ai-case-switcher {
  position: fixed;
  top: 26px;
  right: var(--ai-case-edge);
  z-index: 19;
  display: flex;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 4px;
  background: rgba(10, 10, 10, 0.82);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.ai-case-switcher a,
.ai-case-switcher span {
  border-radius: 999px;
  padding: 7px 14px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease;
}

.ai-case-switcher a:hover {
  color: #fff;
}

.ai-case-switcher a.active,
.ai-case-switcher span.active {
  color: #111;
  background: #fff;
}

@media (max-width: 560px) {
  .ai-case-left-nav {
    top: 18px;
    left: 12px;
  }

  .ai-case-back,
  .ai-case-project-trigger {
    height: 38px;
  }

  .ai-case-back {
    width: 38px;
  }

  .ai-case-project-trigger {
    min-width: 66px;
    padding: 0 15px;
    font-size: 13px;
  }

  .ai-case-switcher {
    top: 18px;
    right: 12px;
  }

  .ai-case-switcher a,
  .ai-case-switcher span {
    padding: 6px 10px;
    font-size: 11px;
  }
}

.ai-case-screen {
  position: relative;
  width: min(100%, 1920px);
  min-height: min(calc(100vh - 48px), 1080px);
  margin: 0 auto 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  padding: clamp(110px, 9vw, 176px) clamp(34px, 7vw, 135px);
  background: #050505;
}

[data-ai-section-screen] {
  scroll-margin-top: 92px;
}

.ai-search-figma-hero {
  aspect-ratio: 16 / 9;
  min-height: 0;
  padding: 0;
  border-color: rgba(2, 8, 20, 0.05);
  background: #f7f8ff;
}

/* One-time project reveal: a transparent centre line opens through a black mask. */
.opening-reveal-mask {
  position: fixed;
  inset: 0;
  z-index: 5000;
  pointer-events: none;
}

.opening-reveal-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.opening-reveal-cover { fill: var(--opening-cover, #050505); }

body.ai-detail-mode .reveal,
body.ai-detail-mode .reveal.visible {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .opening-reveal-mask { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-case-back,
  .ai-case-project-trigger,
  .ai-case-project-panel,
  .ai-case-project-panel a,
  .ai-case-project-panel a span:last-child {
    transition-duration: 0.01ms;
  }
}

.ai-search-figma-hero::before,
.ai-search-figma-hero::after {
  display: none;
}

.ai-search-hero-slice {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.ai-search-commerce-screen {
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.08);
  background: #000;
}

.ai-search-commerce-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.ai-search-user-insight-screen {
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.08);
  background: #000;
}

.ai-search-user-insight-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 620px) {
  .ai-search-figma-hero {
    border-radius: 24px;
  }
}

.ai-case-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(400px, 0.9fr);
  gap: clamp(32px, 4vw, 80px);
  align-items: center;
}

.ai-case-intro-copy {
  position: relative;
  z-index: 2;
  max-width: 1060px;
}

.ai-case-en {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.13);
  font-size: clamp(22px, 2.4vw, 40px);
  font-weight: 700;
  letter-spacing: 0;
}

.ai-case-intro h1,
.ai-case-users-heading h2 {
  font-size: clamp(42px, 4vw, 70px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

.ai-case-text-block {
  max-width: 1056px;
  margin-top: clamp(54px, 7vh, 88px);
}

.ai-case-text-block h2 {
  margin-bottom: 22px;
  font-size: clamp(20px, 1.7vw, 30px);
  font-weight: 400;
  line-height: 1.45;
}

.ai-case-text-block h2 b {
  margin-right: 12px;
  font-weight: 700;
}

.ai-case-text-block p {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(14px, 1.05vw, 18px);
  line-height: 1.72;
}

.ai-case-goal {
  margin-top: 48px;
}

.ai-case-intro-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.ai-video-intro {
  display: block;
  aspect-ratio: 16 / 9;
  min-height: 0;
  padding-top: clamp(120px, 13.5vw, 260px);
}

.ai-video-intro-copy {
  position: relative;
  z-index: 2;
  width: min(550px, 42%);
}

.ai-video-intro h1 {
  font-size: clamp(38px, 2.7vw, 50px);
  font-weight: 800;
  line-height: 1.1;
}

.ai-video-intro .ai-case-text-block {
  margin-top: clamp(42px, 4vw, 72px);
}

.ai-video-intro .ai-case-goal {
  margin-top: 38px;
}

.ai-video-hero-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ai-video-image-screen {
  aspect-ratio: 16 / 9;
  min-height: 0;
  border-color: rgba(17, 17, 17, 0.16);
  padding: 0;
  background: #fff;
}

.ai-video-image-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ai-video-long-screen {
  min-height: 0;
  border-color: rgba(17, 17, 17, 0.16);
  padding: 0;
  background: #fff;
}

.ai-video-long-screen img {
  display: block;
  width: 100%;
  height: auto;
}

.ai-video-image-screen img,
.ai-video-long-screen img {
  transform: scale(1.003);
}

.ai-console-screen {
  min-height: 0;
  border-color: rgba(17, 17, 17, 0.16);
  padding: 0;
  background: #fff;
}

.ai-console-screen img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.003);
}

/* ─── Meituan Hero Section (first screen) ─── */
.meituan-hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(calc(100vh - 48px), 1080px);
  background: #0a0a0a url('./assets/meituan-hero-3d-bg-v2.webp') center / cover no-repeat;
  border-color: rgba(255, 255, 255, 0.1);
}

.meituan-hero-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 clamp(32px, 5vw, 100px);
}

.meituan-hero-copy {
  flex: 0 1 520px;
  color: #fff;
  text-align: left;
}

.meituan-hero-copy h1 {
  margin: 0 0 24px;
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.meituan-hero-copy p {
  margin: 0 0 16px;
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.meituan-hero-copy .meituan-hero-en {
  margin-top: 18px;
  font-size: clamp(0.72rem, 0.88vw, 0.86rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.42);
}

/* Responsive */
@media (max-width: 900px) {
  .meituan-hero-inner {
    flex-direction: column;
    text-align: center;
    padding-top: 40px;
    justify-content: center;
  }
  .meituan-hero-copy {
    flex: 0 1 auto;
    max-width: 560px;
  }
}

.meituan-image-screen {
  aspect-ratio: 16 / 9;
  min-height: 0;
  border-color: rgba(255, 255, 255, 0.18);
  padding: 0;
  background: #000;
}

.meituan-image-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gofun-case-page .meituan-image-screen {
  border-color: rgba(17, 17, 17, 0.16);
  background: #fff;
}

.integrated-case-page {
  background: #000;
}

.integrated-case-page .meituan-image-screen {
  border-color: rgba(255, 255, 255, 0.18);
  background: #000;
}

.integrated-demo-screen {
  position: relative;
}

.integrated-valentine-screen {
  position: relative;
}

.integrated-screen-title {
  position: absolute;
  left: 6.7%;
  top: 7.4%;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-size: clamp(14px, 2.08vw, 40px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.integrated-screen-title strong {
  color: #59ef4d;
  font-weight: inherit;
}

.integrated-demo-frame {
  position: absolute;
  left: 50%;
  top: 54%;
  width: min(46.4%, 864px);
  transform: translate(-50%, -50%);
  padding: 0.5px;
  border-radius: 22px;
  background: linear-gradient(to bottom, #02d644 0%, rgba(2, 214, 68, 0) 100%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.integrated-demo-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
  object-fit: contain;
}

.lottery-video-screen {
  position: relative;
  border-color: rgba(17, 17, 17, 0.16);
  background: #aedde5;
}

.lottery-phone-video {
  position: absolute;
  left: 65.26%;
  top: 8.43%;
  width: 22.45%;
  height: 83.24%;
  z-index: 2;
  border-radius: 19% / 9%;
  clip-path: inset(5% 5% 5% 5% round 18% / 9%);
  object-fit: cover;
  background: #111;
}

.follow-demo-screen {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  min-height: 0;
  border-color: rgba(17, 17, 17, 0.16);
  padding: 0;
  background: #f7f7f7;
}

.follow-demo-phone {
  position: relative;
  height: 70%;
  aspect-ratio: 1077 / 2200;
  filter: drop-shadow(0 32px 44px rgba(0, 0, 0, 0.2));
}

.follow-demo-phone img {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.follow-demo-phone video {
  position: absolute;
  left: 4.4%;
  top: 2.25%;
  z-index: 2;
  width: 91.2%;
  height: 95.5%;
  border-radius: 10.5% / 5.2%;
  object-fit: cover;
  background: #000;
}

.follow-demo-phone::after {
  content: "";
  position: absolute;
  left: 37.5%;
  top: 4.8%;
  z-index: 3;
  width: 25%;
  height: 3.2%;
  border-radius: 999px;
  background: #050505;
}

.meituan-screen {
  aspect-ratio: 16 / 9;
  min-height: 0;
  padding: clamp(52px, 6.8vw, 130px);
  color: #fff;
  background: #000;
}

.meituan-en {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.18);
  font-size: clamp(20px, 2.1vw, 40px);
  font-weight: 700;
}

.meituan-screen h1,
.meituan-screen h2,
.meituan-screen h3 { letter-spacing: 0; }

.meituan-overview { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(300px, .8fr); gap: 5%; }
.meituan-copy { align-self: center; z-index: 2; }
.meituan-copy h1 { font-size: clamp(30px, 2.7vw, 50px); }
.meituan-background { margin-top: clamp(38px, 6vw, 105px); max-width: 1056px; }
.meituan-background h2, .meituan-goal-title { margin-bottom: 16px; font-size: clamp(20px, 1.6vw, 30px); }
.meituan-background p { font-size: clamp(12px, .95vw, 16px); line-height: 1.7; }
.meituan-goal-title { margin-top: clamp(34px, 4vw, 64px); }
.meituan-goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1080px; }
.meituan-goals article { border: 1px solid rgba(255, 51, 133, .45); border-radius: 22px; padding: 18px 28px; text-align: center; background: linear-gradient(180deg, rgba(255,74,139,0), rgba(255,0,98,.12)); }
.meituan-goals article div { display:flex; justify-content:center; gap:22px; }
.meituan-goals b { border-radius:999px; padding:8px 22px; font-weight:400; background:#333; }
.meituan-goals span { display:block; margin:12px 0; }
.meituan-goals strong { display:block; border-radius:999px; padding:9px 12px; font-weight:400; background:linear-gradient(90deg,#ff4a8b,#ff007a); }
.meituan-screen .meituan-phone { align-self:end; height:88%; overflow:hidden; border:12px solid #272727; border-radius:72px 72px 0 0; background:#1c1c1c; box-shadow:0 30px 70px rgba(0,0,0,.5); }
.meituan-screen .meituan-phone img { width:100%; height:100%; object-fit:cover; object-position:top; opacity:.92; }

.meituan-strategy header, .meituan-path header, .meituan-entrance header { position:absolute; left:6.8%; top:8.3%; }
.meituan-strategy header h2, .meituan-path header h2, .meituan-entrance header h2 { font-size:clamp(28px,2.7vw,50px); }
.meituan-strategy-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:5%; align-items:center; height:100%; padding-top:10%; }
.meituan-strategy-grid article { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:22px; }
.meituan-strategy-grid strong { color:transparent; font-size:clamp(100px,12vw,246px); line-height:1; background:linear-gradient(155deg,#fff 42%,#ff98ef); background-clip:text; -webkit-background-clip:text; }
.meituan-strategy-grid h3 { margin-bottom:18px; font-size:clamp(18px,1.55vw,30px); }
.meituan-strategy-grid p { color:rgba(255,255,255,.82); font-size:clamp(12px,.9vw,16px); line-height:1.7; }

.meituan-path-map { position:relative; height:100%; }
.path-label { position:absolute; left:0; top:51%; color:#9f9f9f; font-size:clamp(18px,1.55vw,30px); }
.path-beam { position:absolute; left:13%; right:-8%; top:48%; height:26%; clip-path:polygon(0 45%,100% 0,100% 100%,0 55%); background:linear-gradient(90deg,rgba(255,0,168,.15),rgba(255,28,121,.55)); }
.path-steps { position:absolute; left:14%; right:0; top:50%; display:flex; justify-content:space-between; font-size:clamp(18px,1.55vw,30px); }

.meituan-entrance { overflow:hidden; }
.entrance-phone { position:absolute; left:-5%; bottom:-76%; width:38%; height:140%; overflow:hidden; border:12px solid #252525; border-radius:90px 90px 0 0; background:#1d1d1d; }
.entrance-phone img { width:100%; height:100%; object-fit:cover; object-position:top; filter:brightness(.6); }
.entrance-options { position:absolute; left:41%; right:9%; top:47%; display:grid; grid-template-columns:1fr 1fr; gap:34px 46px; }
.entrance-options article>span { display:block; margin-bottom:12px; color:rgba(255,255,255,.74); font-size:clamp(14px,1.35vw,26px); }
.entrance-banner { position:relative; min-height:110px; border-radius:18px; padding:20px 28px; background:linear-gradient(120deg,#ff2278,#b30e54); box-shadow:inset 0 1px rgba(255,255,255,.35); }
.entrance-banner b,.entrance-banner small { display:block; }
.entrance-banner b { font-size:clamp(18px,1.7vw,30px); }
.entrance-banner small { margin-top:4px; font-size:clamp(12px,.9vw,16px); }
.entrance-banner i { position:absolute; right:24px; top:26px; font-size:34px; font-style:normal; }
.variant-2 { background:linear-gradient(120deg,#ff297c,#8d174c); }
.variant-3 { background:linear-gradient(120deg,#ff4c91,#98134e); transform:perspective(500px) rotateX(3deg); }
.variant-4 { background:linear-gradient(120deg,#ff2a79,#7a113f); transform:perspective(500px) rotateX(-3deg); }

@media (max-width: 760px) {
  .meituan-screen { aspect-ratio:auto; min-height:760px; padding:92px 28px 42px; }
  .meituan-overview { grid-template-columns:1fr; }
  .meituan-goals { grid-template-columns:1fr; }
  .meituan-screen .meituan-phone { display:none; }
  .meituan-strategy-grid { grid-template-columns:1fr; gap:18px; padding-top:80px; }
  .meituan-strategy-grid article { grid-template-columns:90px 1fr; }
  .meituan-strategy-grid strong { font-size:76px; }
  .path-beam { left:4%; right:-20%; }
  .path-label { display:none; }
  .path-steps { left:4%; font-size:14px; }
  .entrance-phone { display:none; }
  .entrance-options { left:28px; right:28px; top:30%; grid-template-columns:1fr; gap:18px; }
}

.ai-case-users {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(650px, 1.65fr);
  align-items: center;
  gap: clamp(46px, 7vw, 120px);
}

.ai-case-users-heading {
  position: relative;
  z-index: 2;
}

.ai-user-insight {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.ai-case-demo {
  display: grid;
  place-items: center;
  padding-top: 56px;
  padding-bottom: 56px;
  color: #111;
  background: #fff;
}

/* The demo holds the viewport while its embedded interaction advances. */
.ai-case-demo.is-demo-lock {
  position: sticky;
  top: 0;
  z-index: 8;
}

.ai-case-intent {
  min-height: 0;
  border-color: rgba(17, 17, 17, 0.16);
  padding: 0;
  background: #fff;
}

.ai-case-intent-heading {
  position: relative;
  z-index: 2;
  padding: clamp(92px, 7vw, 136px) clamp(34px, 7vw, 135px) clamp(54px, 4vw, 78px);
  color: #111;
}

.ai-case-intent-heading h2 {
  margin-top: 12px;
  font-size: clamp(42px, 4vw, 70px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

.ai-case-intent .ai-case-en {
  color: rgba(17, 17, 17, 0.12);
}

.ai-case-intent-art {
  overflow: hidden;
}

.ai-case-intent-art img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -12.65625%;
}

.ai-case-demo-heading {
  position: absolute;
  top: clamp(72px, 7vw, 128px);
  left: clamp(34px, 7vw, 135px);
  z-index: 2;
}

.ai-case-demo-heading h2 {
  font-size: clamp(42px, 4vw, 70px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
  white-space: nowrap;
}

.ai-case-demo .ai-case-en {
  color: rgba(17, 17, 17, 0.12);
}

.ai-case-demo-heading > p:last-child {
  max-width: 420px;
  margin-top: 24px;
  color: rgba(17, 17, 17, 0.56);
  font-size: 16px;
  line-height: 1.7;
}

.demo-phone-stage {
  display: grid;
  place-items: center;
  min-height: 832px;
}

.ai-case-demo > .demo-phone-stage {
  margin-top: 20px;
}

.demo-phone-frame {
  position: relative;
  width: 403px;
  height: 840px;
  overflow: visible;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 44px;
  padding: 13px;
  background: #fff;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.35);
}

.demo-phone-poster {
  position: absolute;
  inset: 13px;
  z-index: 2;
  display: block;
  width: 375px;
  height: 812px;
  border-radius: 36px;
  object-fit: cover;
  pointer-events: none;
  transition: opacity 280ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 280ms;
}

.demo-phone-loader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.demo-phone-frame[data-demo-status="ready"] .demo-phone-poster {
  visibility: hidden;
  opacity: 0;
}

@media (max-height: 960px) and (min-width: 901px) {
  .demo-phone-stage {
    min-height: 700px;
  }

  .demo-phone-frame {
    transform: scale(0.82);
    margin-block: -75px;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .ai-case-demo {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .demo-phone-stage {
    min-height: 650px;
  }

  .demo-phone-frame {
    transform: scale(0.78);
    margin-block: -92px;
  }
}

.demo-phone-frame iframe {
  display: block;
  width: 375px;
  height: 812px;
  min-height: 0;
  border: 0;
  border-radius: 36px;
  background: #f3f4f4;
}

.demo-phone-frame--image {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  width: auto;
  height: auto;
  max-width: 403px;
}

.demo-phone-frame--image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 812px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 36px;
}

/* ── Scroll story: each wheel gesture advances one product capability. ── */
.demo-story {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(360px, 0.9fr) minmax(220px, 0.7fr);
  align-items: center;
  gap: clamp(28px, 5vw, 92px);
  width: 100%;
  min-height: min(100%, 790px);
  padding: 72px clamp(8px, 2vw, 28px) 40px;
}

.demo-story .ai-case-demo-heading {
  position: relative;
  top: auto;
  left: auto;
  align-self: center;
}

.demo-story .ai-case-demo-heading h2 {
  white-space: normal;
}

.demo-story-steps {
  grid-column: 3;
  display: grid;
  gap: 10px;
  align-self: center;
}

.demo-story-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-areas: "number title" "number hint";
  gap: 3px 12px;
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 16px;
  color: rgba(17, 17, 17, 0.42);
  text-align: left;
  background: rgba(255, 255, 255, 0.58);
  transition: color 360ms ease, border-color 360ms ease, background-color 360ms ease, transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.demo-story-step span { grid-area: number; padding-top: 2px; font-size: 12px; font-weight: 760; }
.demo-story-step strong { grid-area: title; font-size: 16px; font-weight: 760; }
.demo-story-step small { grid-area: hint; font-size: 12px; line-height: 1.45; }
.demo-story-step.is-active {
  color: #171717;
  border-color: rgba(17, 17, 17, 0.26);
  background: rgba(255, 255, 255, 0.94);
  transform: translateX(-8px);
}
.demo-story-step.is-complete { color: rgba(17, 17, 17, 0.58); }

.demo-story .demo-phone-stage {
  grid-column: 2;
  grid-row: 1;
  min-height: 700px;
}

.demo-story .demo-phone-frame {
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 620ms ease;
}

.demo-story .demo-phone-stage[data-demo-step="1"] .demo-phone-frame {
  transform: translateY(-5px) rotate(-0.35deg) scale(1.01);
}

.demo-story .demo-phone-stage[data-demo-step="2"] .demo-phone-frame {
  transform: translateY(-8px) rotate(0.35deg) scale(1.015);
}

.demo-story .demo-phone-stage[data-demo-step="3"] .demo-phone-frame {
  transform: translateY(-4px) rotate(-0.2deg) scale(1.01);
}

.demo-story-step:focus-visible {
  outline: 2px solid rgba(17, 17, 17, 0.72);
  outline-offset: 3px;
}

.demo-story-status {
  position: absolute;
  right: 0;
  bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: rgba(17, 17, 17, 0.52);
  font-size: 12px;
}
.demo-story-status span { color: #111; font-size: 16px; font-weight: 800; }
.demo-story-status b { color: #111; font-weight: 700; }
.demo-story-status i { margin-left: 10px; font-style: normal; color: rgba(17, 17, 17, 0.35); }
.demo-story.is-finished .demo-story-status i { color: rgba(17, 17, 17, 0.58); }

@media (max-width: 900px) {
  .demo-story {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 108px 8px 62px;
  }
  .demo-story .ai-case-demo-heading { grid-row: 1; }
  .demo-story .demo-phone-stage { grid-column: 1; grid-row: 2; min-height: 640px; }
  .demo-story-steps { grid-column: 1; grid-row: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-story-step.is-active { transform: translateY(-4px); }
  .demo-story-status { right: 8px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-story-step,
  .demo-story .demo-phone-frame { transition: none; }
}

.demo-hand {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #161616;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  opacity: 1;
  pointer-events: none;
  animation: demo-guide 1.8s ease-in-out infinite;
}

.demo-hand i {
  font-size: 23px;
  font-style: normal;
  transform: rotate(-25deg);
}

.demo-hand b {
  font-size: 13px;
  white-space: nowrap;
}

.demo-hand-submit {
  right: -76px;
  bottom: 55px;
}

@keyframes demo-guide {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-8px, -5px, 0) scale(0.96); }
}

@media (max-width: 900px) {
  .ai-case-page {
    padding: 12px;
  }

  .integrated-demo-frame {
    width: 57.6%;
    border-radius: 12px;
  }

  .ai-case-screen {
    min-height: auto;
    margin-bottom: 12px;
    border-radius: 22px;
    padding: 108px 22px 70px;
  }

  .ai-search-figma-hero,
  .ai-search-commerce-screen,
  .ai-search-user-insight-screen,
  .ai-video-image-screen,
  .ai-video-long-screen,
  .ai-console-screen,
  .meituan-image-screen {
    padding: 0;
  }

  .ai-case-intro,
  .ai-case-users,
  .ai-case-demo {
    grid-template-columns: 1fr;
  }

  .ai-case-demo {
    place-items: start center;
  }

  .ai-case-demo-heading {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
  }

  .ai-case-intent {
    padding: 0;
  }

  .ai-case-intent-heading {
    padding: 72px 22px 44px;
  }

  .ai-case-intro-image {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin-left: 0;
  }

  .ai-video-intro {
    aspect-ratio: auto;
    padding: 108px 22px 40px;
  }

  .ai-video-intro-copy {
    width: 100%;
  }

  .ai-video-hero-image {
    position: relative;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 40px 0 0;
  }

  .ai-video-image-screen {
    aspect-ratio: 16 / 9;
    padding: 0;
  }

  .ai-video-long-screen {
    padding: 0;
  }

  .ai-console-screen {
    padding: 0;
  }

  .ai-user-insight {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin-left: 0;
  }

  .demo-phone-stage {
    --demo-phone-scale: 0.76;
    position: relative;
    width: 100%;
    height: 638px;
    min-width: 0;
    min-height: 0;
  }

  .demo-phone-frame {
    position: absolute;
    top: 0;
    left: 50%;
    width: 403px;
    height: 840px;
    margin: 0;
    transform: translateX(-50%) scale(var(--demo-phone-scale));
    transform-origin: center top;
  }
}

@media (max-width: 560px) {
  .ai-case-demo-heading h2 {
    font-size: clamp(32px, 8vw, 46px);
  }

  .ai-user-insight {
    width: 100%;
    margin-left: 0;
  }

  .ai-case-intro-image {
    width: 100%;
    margin-left: 0;
  }

  .demo-phone-stage {
    --demo-phone-scale: 0.62;
    height: 521px;
    min-height: 0;
  }

  .demo-phone-frame {
    margin: 0;
  }

  .ai-case-demo {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (max-width: 760px) {
  .project-switcher,
  .project-switcher-stage,
  .project-switcher-deck {
    max-width: calc(100vw - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-phone-poster { transition-duration: 120ms; }
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: stretch;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 38px;
  padding: clamp(24px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.72);
}

.kicker,
.section-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.case-hero h1 {
  max-width: 720px;
  margin: 18px 0;
  font-family: Georgia, "Times New Roman", "PingFang SC", serif;
  font-size: clamp(2.7rem, 6vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.case-hero p {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.8;
}

.case-cover {
  min-height: 420px;
  border-radius: 28px;
}

.case-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.case-aside {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 14px;
}

.case-note,
.case-block {
  padding: 24px;
}

.case-content {
  display: grid;
  gap: 14px;
}

.case-block h2 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  letter-spacing: -0.02em;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.solution-grid article {
  padding: 20px;
}

.solution-grid h3 {
  margin-bottom: 8px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  padding-bottom: 38px;
  color: rgba(28, 27, 24, 0.48);
  font-size: 0.84rem;
}

.reveal {
  opacity: 0;
  --reveal-y: 42px;
  transform: translate3d(0, var(--reveal-y), 0);
  filter: blur(7px);
  transition:
    opacity 760ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 860ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 680ms ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.visible {
  opacity: 1;
  --reveal-y: 0px;
  filter: blur(0);
}

#resume .timeline-item.reveal.visible {
  animation: resume-item-enter 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--timeline-index, 0) * 120ms);
}

@keyframes resume-item-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 42px, 0);
    filter: blur(7px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}


.hero-copy.visible > * {
  animation: hero-rise 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-copy.visible > :nth-child(2) { animation-delay: 80ms; }
.hero-copy.visible > :nth-child(3) { animation-delay: 160ms; }
.hero-copy.visible > :nth-child(4) { animation-delay: 240ms; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(54px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 901px) {
  .hero {
    transform: translateY(-20px);
  }
}

@media (max-width: 900px) {
  .hero,
  .project-card,
  .section-head,
  .intro-grid,
  .case-hero,
  .case-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .portfolio-cover {
    min-height: 104dvh;
  }

  @keyframes profile-scene-enter {
    from { opacity: 0.96; transform: scale(.80); filter: blur(2px); }
    46% { opacity: 1; transform: scale(.91); filter: blur(.5px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  }

  .hero-panel {
    max-width: 420px;
  }

  .project-index {
    display: none;
  }

  .project-card {
    grid-template-columns: 1fr;
    min-height: 0;
    position: relative;
    top: auto;
    transform: translate3d(0, var(--reveal-y, 0px), 0);
  }

  .project-card[data-project="ai-search"] h3 {
    white-space: nowrap;
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }

  .figma-project-card {
    aspect-ratio: auto;
  }

  .project-info {
    border-radius: 34px 34px 0 0;
    padding: 78px 30px 34px;
  }

  .project-cover,
  .project-visual {
    min-height: 380px;
    border-radius: 0 0 34px 34px;
  }

  /* Mobile cards stack vertically, so the visual starts with square top corners.
     The desktop AI background asset includes a baked-in white top-right corner. */
  .ai-project-visual {
    background: linear-gradient(105deg, #b9ddff 0%, #cbd3ff 44%, #dfcaff 72%, #ffd2f5 100%);
  }

  .ai-project-visual .ai-visual-bg {
    display: none;
  }

  .project-logo-wrap {
    left: 24px;
    top: -28px;
  }

  .expertise-grid,
  .solution-grid {
    grid-template-columns: 1fr;
  }

  .case-aside {
    position: static;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 20px 16px 16px;
  }

  .nav-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
  }

  .nav-links {
    position: fixed;
    inset: 68px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: 22px;
    padding: 12px;
  }

  .nav-links.open {
    display: flex;
  }

  .hero h1 {
    font-size: clamp(3.15rem, 15vw, 4.8rem);
  }

  .portfolio-cover {
    padding-inline: 18px;
    padding-top: 92px;
    padding-bottom: 100px;
    min-height: 92dvh;
  }

  .portfolio-cover-copy {
    transform: translateY(-8vh);
  }

  .portfolio-cover h1 {
    font-size: clamp(3.15rem, 16vw, 4.8rem);
    letter-spacing: -0.045em;
    white-space: normal;
  }

  .portfolio-cover-copy p {
    margin-top: 24px;
    font-size: clamp(1rem, 5.6vw, 1.45rem);
    letter-spacing: 0.12em;
  }

  .portfolio-cover-photo {
    top: 78%;
    width: min(72vw, 360px);
    border-width: 4px;
    border-radius: 44px;
  }

  .portfolio-cover-photo.visible {
    top: 76%;
  }

  .profile-hero {
    min-height: 100dvh;
    margin-top: -31vh;
    padding-top: 82px;
    border-radius: 34px 34px 0 0;
  }

  @keyframes cover-copy-exit {
    from { opacity: 1; transform: translateY(-8vh) scale(1); filter: blur(0); }
    to { opacity: 0; transform: translateY(-18vh) scale(.92); filter: blur(6px); }
  }

  .section h2,
  .contact-card h2 {
    font-size: clamp(2.45rem, 12vw, 4.2rem);
  }

  .contact-details {
    margin-top: 30px;
    font-size: 1rem;
  }

  .portrait-photo {
    height: 360px;
  }

  .project-cover {
    min-height: 320px;
  }

  .cover-word {
    font-size: clamp(2.7rem, 16vw, 5rem);
  }

  .project-section-head h2 {
    font-size: clamp(2.4rem, 13.6vw, 4rem);
  }

  .project-card h3 {
    font-size: clamp(1.84rem, 9.6vw, 2.88rem);
  }

  .open-pill {
    top: 56%;
  }

  .project-stats span {
    font-size: 0.82rem;
    padding: 8px 12px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  #resume.timeline-section {
    width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding: 54px 24px;
  }

  #resume .timeline {
    gap: 12px;
    padding-left: 34px;
  }

  #resume .timeline::before {
    top: 25px;
    bottom: 25px;
    left: 10px;
  }

  #resume .timeline-item {
    gap: 15px;
    min-height: 0;
    padding: 24px 22px;
    border-radius: 20px;
  }

  #resume .timeline-marker {
    top: 23px;
    left: -34px;
    width: 21px;
    height: 21px;
  }

  #resume .timeline-marker i {
    width: 6px;
    height: 6px;
  }

  .footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-cover-copy,
  .portfolio-cover-photo,
  .profile-hero {
    animation: none !important;
  }
}

@media (pointer: coarse) {
  body {
    background:
      radial-gradient(circle, rgba(79, 87, 92, 0.17) 0.68px, transparent 0.88px) 0 0 / 20px 20px,
      var(--bg);
  }

  .dot-field,
  .cursor-dot {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    background:
      radial-gradient(circle, rgba(79, 87, 92, 0.17) 0.68px, transparent 0.88px) 0 0 / 20px 20px,
      var(--bg);
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .dot-field,
  .cursor-dot,
  .scroll-progress {
    display: none;
  }

  .reveal {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* 首页首屏 -> 关于我：滚动缩放衔接 */
.portfolio-cover {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 520px);
  align-items: center;
  gap: clamp(44px, 7vw, 116px);
  padding: clamp(108px, 13vh, 160px) clamp(28px, 8vw, 150px) clamp(240px, 25vh, 320px);
  overflow: hidden;
  isolation: isolate;
  text-align: left;
}

.portfolio-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 48%, rgba(30, 29, 25, 0.14) 0 1px, transparent 1.25px) 0 0 / 22px 22px,
    radial-gradient(circle at 78% 18%, rgba(143, 154, 240, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(250, 249, 246, 0.99), rgba(246, 245, 241, 0.99));
}

.portfolio-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: clamp(170px, 23vh, 280px);
  z-index: -1;
  background: linear-gradient(180deg, rgba(246, 245, 241, 0), rgba(246, 245, 241, 0.98) 72%);
}

.portfolio-cover-copy,
.portfolio-cover-copy.visible {
  width: min(100%, 1040px);
  max-width: 1040px;
  justify-self: start;
  text-align: left;
  opacity: var(--cover-opacity, 1);
  transform: translate3d(0, var(--cover-y, 0px), 0) !important;
  will-change: transform, opacity;
}

.portfolio-cover .hello {
  margin: 0 0 26px;
  color: #1d1c19;
  font-size: clamp(1.04rem, 1.15vw, 1.24rem);
  font-weight: 760;
  letter-spacing: 0;
}

.portfolio-cover h1 {
  max-width: 1040px;
  margin: 0;
  color: #171611;
  font-size: clamp(4.6rem, 5.65vw, 7.4rem);
  font-weight: 660;
  line-height: 0.98;
  letter-spacing: -0.052em;
  white-space: normal;
}

.hero-title-line {
  display: inline-block;
  white-space: nowrap;
}

.hero-latin {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.075em;
}

.portfolio-cover .lead {
  max-width: 760px;
  margin-top: 34px;
  color: #74716a;
  font-size: clamp(1.08rem, 1.36vw, 1.42rem);
  font-weight: 640;
  line-height: 1.88;
  letter-spacing: 0;
}

.portfolio-cover .hero-actions {
  justify-content: flex-start;
  margin-top: 34px;
}

.portfolio-cover-photo,
.portfolio-cover-photo.visible {
  position: relative;
  inset: auto;
  top: auto;
  width: min(34vw, 520px);
  max-width: 520px;
  justify-self: end;
  border: 0;
  border-radius: 0;
  opacity: 1;
  filter: none;
  transform: scale(var(--cover-photo-scale, 1)) !important;
  will-change: transform;
  z-index: 2;
}

.portfolio-cover-photo .portrait-photo {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 0.82 / 1;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.88);
  border-radius: 36px;
  background: #d9dce7;
  box-shadow: 0 34px 96px rgba(28, 27, 24, 0.16);
}

.portfolio-cover-photo .portrait-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-cover-photo .portrait-photo i {
  right: 18px;
  bottom: 18px;
}

.profile-hero.intro-panel {
  position: relative;
  width: min(92vw, 1480px);
  max-width: none;
  min-height: min(74vh, 720px);
  margin: calc(clamp(150px, 17vh, 220px) * -1) auto clamp(96px, 12vh, 150px);
  padding: clamp(64px, 7vw, 118px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(44px, 7vw, 112px);
  overflow: hidden;
  border: 1px solid rgba(28, 27, 24, 0.12);
  border-radius: var(--intro-radius, 44px);
  background:
    radial-gradient(circle at 55% 48%, rgba(30, 29, 25, 0.14) 0 1px, transparent 1.25px) 0 0 / 22px 22px,
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 247, 243, 0.985));
  box-shadow: 0 34px 120px rgba(28, 27, 24, var(--intro-shadow, 0.13));
  opacity: var(--intro-opacity, 0.92);
  filter: blur(var(--intro-blur, 0.35px));
  transform: translate3d(0, var(--intro-y, 78px), 0) scale(var(--intro-scale, 0.9)) !important;
  transform-origin: 50% 0;
  will-change: transform, opacity, border-radius, filter;
  z-index: 4;
  animation: none !important;
}

.profile-hero.intro-panel::before {
  content: "";
  position: absolute;
  inset: -18% 44% auto auto;
  width: min(42vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 154, 240, 0.10), transparent 66%);
  pointer-events: none;
}

.profile-hero.intro-panel .intro-copy,
.profile-hero.intro-panel .intro-text {
  position: relative;
  z-index: 1;
}

.profile-hero.intro-panel .section-kicker {
  margin: 0 0 18px;
  color: rgba(23, 22, 17, 0.38);
  font-size: clamp(1rem, 1.2vw, 1.24rem);
  font-weight: 850;
  letter-spacing: 0.02em;
}

.profile-hero.intro-panel h2 {
  margin: 0;
  max-width: 760px;
  color: #171611;
  font-size: clamp(4.2rem, 6.5vw, 8.2rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.profile-hero.intro-panel .intro-text {
  color: #706d66;
  font-size: clamp(1.12rem, 1.42vw, 1.5rem);
  font-weight: 640;
  line-height: 1.9;
}

.profile-hero.intro-panel .intro-text p {
  margin: 0 0 26px;
}

.profile-hero.intro-panel .intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.profile-hero.intro-panel .intro-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(28, 27, 24, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #4c4942;
  font-size: 0.94rem;
  font-weight: 760;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

@media (max-width: 1100px) {
  .portfolio-cover {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-bottom: clamp(210px, 24vh, 280px);
  }

  .portfolio-cover-photo,
  .portfolio-cover-photo.visible {
    width: min(54vw, 420px);
    justify-self: start;
  }

  .profile-hero.intro-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .portfolio-cover {
    min-height: 100dvh;
    padding: 102px 18px 206px;
  }

  .portfolio-cover h1 {
    font-size: clamp(3.05rem, 13.2vw, 4.72rem);
    letter-spacing: -0.058em;
  }

  .portfolio-cover .lead {
    font-size: 1rem;
    line-height: 1.78;
  }

  .portfolio-cover-photo,
  .portfolio-cover-photo.visible {
    width: min(72vw, 340px);
    justify-self: center;
  }

  .profile-hero.intro-panel {
    width: calc(100% - 24px);
    margin-top: -126px;
    padding: 38px 22px;
    border-radius: var(--intro-radius, 36px);
    transform: translate3d(0, var(--intro-y, 42px), 0) scale(var(--intro-scale, 0.94)) !important;
  }

  .profile-hero.intro-panel h2 {
    font-size: clamp(2.9rem, 12.8vw, 4.8rem);
    letter-spacing: -0.06em;
  }

  .profile-hero.intro-panel .intro-text {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-hero.intro-panel {
    opacity: 1;
    filter: none;
    transform: none !important;
  }
}

/* Figma static rebuild: home + profile, pending motion approval */
.figma-static-cover,
.figma-static-profile {
  position: relative;
  overflow: hidden;
  background-color: #fbfaf7;
  background-image: radial-gradient(circle, rgba(24, 23, 20, 0.11) 1px, transparent 1px);
  background-size: 22px 22px;
}

.figma-static-cover {
  display: block;
  min-height: 100svh;
  padding: clamp(110px, 13vh, 160px) clamp(28px, 6vw, 112px) clamp(56px, 8vh, 88px);
}

.figma-static-cover::before,
.figma-static-cover::after,
.figma-static-profile::before,
.figma-static-profile::after {
  content: none !important;
}

.figma-cover-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: clamp(54px, 7vw, 128px);
  width: min(1600px, 100%);
  min-height: calc(100svh - clamp(190px, 21vh, 248px));
  margin: 0 auto;
}

.figma-static-cover .portfolio-cover-copy,
.figma-static-cover .portfolio-cover-copy.visible,
.figma-static-cover .portfolio-cover-photo,
.figma-static-cover .portfolio-cover-photo.visible {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  animation: none !important;
}

.figma-static-cover .hello {
  margin: 0 0 28px;
  color: #201f1c;
  font-size: clamp(1.05rem, 1.28vw, 1.45rem);
  font-weight: 760;
  letter-spacing: 0;
}

.figma-static-cover h1 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  color: #171612;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(4.6rem, 7vw, 8.1rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.figma-static-cover .hero-title-line {
  display: block;
  white-space: nowrap;
}

.figma-static-cover .hero-latin {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.06em;
}

.figma-static-cover .lead {
  max-width: 760px;
  margin: 34px 0 0;
  color: rgba(23, 22, 18, 0.58);
  font-size: clamp(1.1rem, 1.32vw, 1.45rem);
  font-weight: 650;
  line-height: 1.82;
  letter-spacing: 0;
}

.figma-static-cover .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.figma-static-cover .primary-btn,
.figma-static-cover .ghost-btn {
  min-height: 58px;
  padding: 0 26px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 780;
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.figma-static-cover .primary-btn {
  background: #0f0e0c;
  color: #fff;
  box-shadow: 0 18px 44px rgba(15, 14, 12, 0.18);
}

.figma-static-cover .ghost-btn {
  border: 1px solid rgba(20, 19, 17, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: #171612;
  box-shadow: 0 16px 36px rgba(31, 30, 27, 0.08);
}

.figma-static-cover .primary-btn:hover,
.figma-static-cover .ghost-btn:hover {
  transform: translateY(-2px);
}

.figma-static-cover .portfolio-cover-photo {
  width: min(100%, 560px);
  justify-self: end;
}

.figma-static-cover .portrait-photo {
  position: relative;
  aspect-ratio: 0.92;
  border: 10px solid rgba(255, 255, 255, 0.96);
  border-radius: 38px;
  overflow: hidden;
  background: linear-gradient(135deg, #d5d1ff, #536089);
  box-shadow: 0 28px 80px rgba(24, 23, 20, 0.16);
}

.figma-static-cover .portrait-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 26px;
  transform: none;
}

.figma-static-cover .portrait-photo i {
  right: 22px;
  bottom: 22px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(22, 22, 24, 0.64);
  color: #fff;
  font-size: 1rem;
  font-weight: 820;
  font-style: normal;
}

.figma-static-profile {
  min-height: 100svh;
  padding: clamp(88px, 11vh, 142px) clamp(28px, 6vw, 112px);
}

.figma-profile-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(56px, 7vw, 118px);
  width: min(1600px, 100%);
  min-height: calc(100svh - clamp(176px, 22vh, 284px));
  margin: 0 auto;
}

.profile-heading p {
  margin: 0 0 22px;
  color: rgba(24, 23, 20, 0.24);
  font-size: clamp(2.6rem, 5vw, 5.8rem);
  font-weight: 920;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.profile-heading h2 {
  margin: 0;
  color: #171612;
  font-size: clamp(4.2rem, 7vw, 8.4rem);
  font-weight: 920;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.profile-content {
  color: rgba(23, 22, 18, 0.62);
  font-size: clamp(1.12rem, 1.45vw, 1.55rem);
  font-weight: 650;
  line-height: 1.86;
}

.profile-content p {
  margin: 0 0 26px;
}

.profile-capability-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.profile-capability-row span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(24, 23, 20, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #25231f;
  font-size: 0.96rem;
  font-weight: 820;
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.profile-metrics article {
  min-height: 148px;
  padding: 22px;
  border: 1px solid rgba(24, 23, 20, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
}

.profile-metrics strong {
  display: block;
  margin-bottom: 12px;
  color: #171612;
  font-size: clamp(1.8rem, 2.5vw, 3rem);
  line-height: 1;
}

.profile-metrics span {
  display: block;
  color: rgba(23, 22, 18, 0.56);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.55;
}

@media (max-width: 1120px) {
  .figma-cover-inner,
  .figma-profile-inner {
    grid-template-columns: 1fr;
  }

  .figma-static-cover {
    padding-top: 118px;
  }

  .figma-static-cover .portfolio-cover-photo {
    justify-self: center;
    width: min(460px, 72vw);
  }

  .profile-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .figma-static-cover,
  .figma-static-profile {
    padding-inline: 20px;
    background-size: 18px 18px;
  }

  .figma-static-cover h1 {
    font-size: clamp(3.2rem, 12.6vw, 5.2rem);
    letter-spacing: -0.06em;
  }

  .figma-static-cover .lead,
  .profile-content {
    font-size: 1rem;
  }

  .figma-static-cover .hero-actions {
    gap: 12px;
  }

  .figma-static-cover .primary-btn,
  .figma-static-cover .ghost-btn {
    min-height: 52px;
    padding: 0 20px;
  }

  .figma-static-cover .portfolio-cover-photo {
    width: min(360px, 86vw);
  }

  .profile-heading p {
    font-size: clamp(2.3rem, 12vw, 4rem);
  }

  .profile-heading h2 {
    font-size: clamp(3.35rem, 15vw, 5.4rem);
  }
}

/* Static Figma rewrite: home + profile */
.home-static-redesign,
.about-static-redesign {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: #171612;
  background:
    radial-gradient(circle, rgba(22, 22, 20, 0.16) 1px, transparent 1.25px) 0 0 / 22px 22px,
    linear-gradient(180deg, #fbfaf6 0%, #f6f2ea 100%);
}

.home-static-redesign::before,
.about-static-redesign::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 10%, rgba(218, 216, 240, 0.28), transparent 28%),
    radial-gradient(circle at 16% 22%, rgba(255, 255, 255, 0.82), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0));
}

.home-static-shell {
  position: relative;
  z-index: 1;
  width: min(1568px, calc(100% - 112px));
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
  gap: clamp(64px, 7vw, 132px);
  align-items: center;
  padding: clamp(118px, 12vh, 156px) 0 clamp(72px, 8vh, 110px);
}

.home-static-copy {
  max-width: 960px;
}

.home-static-eyebrow {
  margin: 0 0 clamp(24px, 3vh, 34px);
  color: #24231f;
  font-size: clamp(22px, 1.45vw, 30px);
  line-height: 1.25;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.home-static-title {
  margin: 0;
  color: #171612;
  font-size: clamp(80px, 6.3vw, 132px);
  line-height: 0.94;
  font-weight: 560;
  letter-spacing: -0.08em;
}

.home-static-title span {
  display: block;
  white-space: nowrap;
}

.home-static-desc {
  max-width: 760px;
  margin: 42px 0 0;
  color: #777169;
  font-size: clamp(19px, 1.22vw, 25px);
  line-height: 1.92;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.home-static-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 38px;
}

.home-static-btn {
  min-height: 58px;
  padding: 0 28px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 820;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-static-btn:hover {
  transform: translateY(-2px);
}

.home-static-btn-primary {
  color: #fff;
  background: #151515;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.home-static-btn-secondary {
  color: #171612;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(22, 21, 18, 0.1);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.home-static-portrait {
  position: relative;
  justify-self: end;
  width: min(560px, 100%);
  aspect-ratio: 0.86;
  margin: 0;
  padding: 12px;
  border-radius: 38px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(40, 36, 28, 0.16);
}

.home-static-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 28px;
}

.home-static-portrait figcaption {
  position: absolute;
  right: 28px;
  bottom: 28px;
  margin: 0;
  padding: 10px 16px;
  border-radius: 14px;
  color: #fff;
  background: rgba(22, 22, 24, 0.62);
  font-size: 16px;
  font-weight: 820;
}

.about-static-shell {
  position: relative;
  z-index: 1;
  width: min(1568px, calc(100% - 112px));
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(420px, 0.78fr) minmax(0, 1fr);
  grid-template-areas:
    "heading content"
    "timeline timeline";
  gap: clamp(40px, 5vw, 92px);
  align-content: center;
  padding: clamp(118px, 12vh, 156px) 0 clamp(78px, 9vh, 120px);
}

.about-static-heading {
  grid-area: heading;
  align-self: center;
}

.about-static-heading p {
  margin: 0 0 18px;
  color: rgba(23, 22, 18, 0.2);
  font-size: clamp(48px, 5vw, 88px);
  font-weight: 920;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.about-static-heading h2 {
  margin: 0;
  color: #171612;
  font-size: clamp(88px, 9vw, 152px);
  font-weight: 920;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.about-static-content {
  grid-area: content;
  align-self: center;
  padding: clamp(36px, 4vw, 68px);
  border: 1px solid rgba(24, 23, 20, 0.12);
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(40, 36, 28, 0.08);
}

.about-static-role {
  margin: 0 0 16px;
  color: #171612;
  font-size: clamp(26px, 2vw, 38px);
  font-weight: 840;
}

.about-static-content h3 {
  margin: 0 0 28px;
  color: #171612;
  font-size: clamp(34px, 3.3vw, 64px);
  line-height: 1.08;
  font-weight: 860;
  letter-spacing: -0.055em;
}

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

.about-static-paragraphs p {
  margin: 0;
  color: #716b63;
  font-size: clamp(18px, 1.22vw, 24px);
  line-height: 1.86;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.about-static-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.about-static-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(24, 23, 20, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #25231f;
  font-size: 15px;
  font-weight: 820;
}

.about-static-timeline {
  grid-area: timeline;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.about-static-timeline article {
  min-height: 128px;
  padding: 24px;
  border: 1px solid rgba(24, 23, 20, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.58);
}

.about-static-timeline strong {
  display: block;
  margin-bottom: 14px;
  color: #171612;
  font-size: 18px;
  line-height: 1.2;
}

.about-static-timeline span {
  display: block;
  color: #716b63;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 700;
}

@media (max-width: 1120px) {
  .home-static-shell,
  .about-static-shell {
    width: min(720px, calc(100% - 44px));
  }

  .home-static-shell {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 116px;
  }

  .home-static-title {
    font-size: clamp(58px, 12vw, 92px);
  }

  .home-static-portrait {
    justify-self: start;
    width: min(520px, 100%);
  }

  .about-static-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "content"
      "timeline";
    gap: 28px;
  }

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

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

@media (max-width: 640px) {
  .home-static-redesign,
  .about-static-redesign {
    background-size: 18px 18px, auto;
  }

  .home-static-shell,
  .about-static-shell {
    width: min(100% - 32px, 520px);
  }

  .home-static-eyebrow {
    margin-bottom: 20px;
    font-size: 18px;
  }

  .home-static-title {
    font-size: clamp(44px, 13.2vw, 68px);
    letter-spacing: -0.065em;
  }

  .home-static-desc {
    margin-top: 28px;
    font-size: 16px;
    line-height: 1.78;
  }

  .home-static-btn {
    min-height: 52px;
    padding: 0 22px;
    font-size: 16px;
  }

  .home-static-portrait {
    border-radius: 30px;
  }

  .home-static-portrait img {
    border-radius: 22px;
  }

  .about-static-heading p {
    font-size: clamp(38px, 13vw, 64px);
  }

  .about-static-heading h2 {
    font-size: clamp(62px, 20vw, 104px);
  }

  .about-static-content {
    padding: 28px;
    border-radius: 28px;
  }

  .about-static-content h3 {
    font-size: clamp(30px, 9vw, 46px);
  }

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

/* Homepage cover final lock — Figma 128:9470 (1920 × 1080). */
.site-shell:has(.home-figma-cover) .topbar {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.home-static-redesign {
  position: relative;
  width: 100%;
  min-height: 100svh;
  height: 100svh;
  overflow: hidden;
  color: #000;
  background: #fefefe;
}

.home-static-redesign::before {
  display: none;
}

.home-figma-cover {
  position: relative;
  width: 100%;
  height: 100%;
  color: #000;
  background: #fefefe;
  white-space: nowrap;
}

.home-figma-cover h1,
.home-figma-cover p {
  position: absolute;
  margin: 0;
  color: #000;
  line-height: normal;
}

.home-figma-cover h1 {
  left: 20.8333%;
  top: 34.8148%;
  font-family: "Playfair Display", Didot, "Bodoni 72", Baskerville, Georgia, serif;
  font-size: clamp(64px, 5.8333vw, 112px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.525vw;
}

.home-figma-cover p {
  left: 37.3958%;
  top: 52.1296%;
  font-family: "RTWS JyunYa Demo", "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
  font-size: clamp(32px, 2.8646vw, 55px);
  font-weight: 400;
  letter-spacing: 0.9167vw;
}

@media (max-width: 900px) {
  .home-figma-cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(22px, 5vw, 38px);
    padding: 24px;
  }

  .home-figma-cover h1,
  .home-figma-cover p {
    position: static;
    text-align: center;
  }

  .home-figma-cover h1 {
    font-size: clamp(42px, 10vw, 76px);
    letter-spacing: 0.055em;
  }

  .home-figma-cover p {
    font-size: clamp(20px, 5.1vw, 38px);
    letter-spacing: 0.32em;
  }
}

/* Homepage cover — Figma 128:9470 (1920 × 1080). */
.home-static-redesign {
  position: relative;
  min-height: 100svh;
  height: 100svh;
  overflow: hidden;
  background: #fefefe;
}

.home-static-redesign::before {
  display: none;
}

.home-figma-cover {
  position: relative;
  width: 100%;
  height: 100%;
  color: #000;
  background: #fefefe;
  white-space: nowrap;
}

.home-figma-cover h1,
.home-figma-cover p {
  position: absolute;
  margin: 0;
  color: #000;
  font-weight: 400;
  line-height: normal;
}

.home-figma-cover h1 {
  left: 20.8333%;
  top: 34.8148%;
  font-family: "Playfair Display", Didot, "Bodoni 72", Baskerville, Georgia, serif;
  font-size: clamp(64px, 5.8333vw, 112px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.525vw;
}

.home-figma-cover p {
  left: 37.3958%;
  top: 52.1296%;
  font-family: "RTWS JyunYa Demo", "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
  font-size: clamp(32px, 2.8646vw, 55px);
  letter-spacing: 0.9167vw;
}

@media (max-width: 900px) {
  .home-figma-cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(22px, 5vw, 38px);
    padding: 24px;
  }

  .home-figma-cover h1,
  .home-figma-cover p {
    position: static;
    text-align: center;
  }

  .home-figma-cover h1 {
    font-size: clamp(42px, 10vw, 76px);
    letter-spacing: 0.055em;
  }

  .home-figma-cover p {
    font-size: clamp(20px, 5.1vw, 38px);
    letter-spacing: 0.32em;
  }
}

/* Home 01 final lock: Figma 128:9470. Keep this last so legacy rules cannot alter it. */
.home-static-redesign {
  min-height: 100svh;
  color: #171612;
  background-color: #faf9f5;
  background-image: radial-gradient(circle at 1px 1px, rgba(36, 34, 30, 0.12) 1px, transparent 1.15px);
  background-size: 22px 22px;
}

.home-static-redesign::before {
  display: none;
}

.home-static-redesign .home-static-shell {
  width: min(1480px, calc(100% - 144px));
  min-height: 100svh;
  padding: 124px 0 72px;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 500px);
  gap: clamp(72px, 8.2vw, 128px);
}

.home-static-redesign .home-static-copy {
  max-width: none;
}

.home-static-redesign .home-static-title {
  font-family: var(--font-sans);
  font-size: clamp(60px, 4.65vw, 90px);
  line-height: 1.06;
  font-weight: 700;
}

.home-static-redesign .home-static-title span {
  white-space: nowrap;
}

.home-static-redesign .home-static-eyebrow {
  margin-bottom: 26px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
}

.home-static-redesign .home-static-desc {
  max-width: 720px;
  margin-top: 36px;
  font-size: 20px;
  line-height: 1.7;
  font-weight: 500;
}

.home-static-redesign .home-static-actions {
  margin-top: 34px;
  gap: 14px;
}

.home-static-redesign .home-static-btn {
  min-height: 58px;
  padding: 0 26px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
}

.home-static-redesign .home-static-portrait {
  width: 100%;
  max-width: 500px;
  justify-self: end;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(31, 29, 25, 0.08);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(28, 25, 20, 0.12);
}

.home-static-redesign .home-static-portrait img {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1.08;
  border-radius: 23px;
}

@media (max-width: 1080px) {
  .home-static-redesign .home-static-shell {
    width: min(760px, calc(100% - 64px));
    padding: 120px 0 72px;
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .home-static-redesign .home-static-portrait {
    justify-self: start;
    max-width: 480px;
  }
}

@media (max-width: 640px) {
  .home-static-redesign {
    background-color: #faf9f5;
    background-image: radial-gradient(circle at 1px 1px, rgba(36, 34, 30, 0.12) 1px, transparent 1.15px);
    background-size: 18px 18px;
  }

  .home-static-redesign .home-static-shell {
    width: min(100% - 32px, 520px);
    min-height: auto;
    padding: 96px 0 52px;
    gap: 42px;
  }

  .home-static-redesign .home-static-eyebrow {
    margin-bottom: 20px;
    font-size: 18px;
  }

  .home-static-redesign .home-static-title {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.1;
  }

  .home-static-redesign .home-static-title span {
    white-space: nowrap;
  }

  .home-static-redesign .home-static-title-sub {
    margin-top: 8px;
  }

  .home-static-redesign .home-static-desc {
    margin-top: 28px;
    font-size: 16px;
    line-height: 1.76;
  }

  .home-static-redesign .home-static-btn {
    min-height: 52px;
    padding: 0 22px;
    font-size: 16px;
  }

  .home-static-redesign .home-static-portrait {
    width: min(100%, 420px);
    padding: 8px;
    border-radius: 28px;
  }

  .home-static-redesign .home-static-portrait img {
    border-radius: 20px;
  }
}

/* Final authority for the home hero (Figma 128:9470). */
.home-static-redesign {
  background-color: #faf9f5;
  background-image: radial-gradient(circle at 1px 1px, rgba(36, 34, 30, 0.12) 1px, transparent 1.15px);
  background-size: 22px 22px;
}

.home-static-redesign::before {
  display: none;
}

.home-static-redesign .home-static-shell {
  width: min(1480px, calc(100% - 144px));
  min-height: 100svh;
  padding: 124px 0 72px;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 500px);
  gap: clamp(72px, 8.2vw, 128px);
}

.home-static-redesign .home-static-copy {
  max-width: none;
}

.home-static-redesign .home-static-eyebrow {
  margin-bottom: 26px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
}

.home-static-redesign .home-static-title {
  font-family: var(--font-sans);
  font-size: clamp(60px, 4.65vw, 90px);
  line-height: 1.06;
  font-weight: 700;
}

.home-static-redesign .home-static-title span {
  white-space: nowrap;
}

.home-static-redesign .home-static-title-sub {
  margin-top: 10px;
}

.home-static-redesign .home-static-desc {
  max-width: 720px;
  margin-top: 36px;
  font-size: 20px;
  line-height: 1.7;
  font-weight: 500;
}

.home-static-redesign .home-static-actions {
  margin-top: 34px;
  gap: 14px;
}

.home-static-redesign .home-static-btn {
  min-height: 58px;
  padding: 0 26px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
}

.home-static-redesign .home-static-portrait {
  width: 100%;
  max-width: 500px;
  justify-self: end;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(31, 29, 25, 0.08);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(28, 25, 20, 0.12);
}

.home-static-redesign .home-static-portrait img {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1.08;
  border-radius: 23px;
}

.home-static-redesign .home-static-portrait figcaption {
  right: 20px;
  bottom: 20px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 12px;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .home-static-redesign .home-static-shell {
    width: min(760px, calc(100% - 48px));
    padding: 112px 0 64px;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .home-static-redesign .home-static-portrait {
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .home-static-redesign {
    background-size: 18px 18px;
  }

  .home-static-redesign .home-static-shell {
    width: min(100% - 36px, 520px);
    padding: 96px 0 44px;
    gap: 38px;
  }

  .home-static-redesign .home-static-eyebrow {
    margin-bottom: 18px;
    font-size: 17px;
  }

  .home-static-redesign .home-static-title {
    font-size: clamp(38px, 10.2vw, 58px);
  }

  .home-static-redesign .home-static-title-sub {
    margin-top: 6px;
  }

  .home-static-redesign .home-static-desc {
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.7;
  }

  .home-static-redesign .home-static-actions {
    margin-top: 28px;
  }

  .home-static-redesign .home-static-btn {
    min-height: 50px;
    padding: 0 20px;
    font-size: 15px;
  }
}

/* Homepage v2 static restore: keep this block last so the first two screens match the Figma direction. */
.home-static-redesign,
.about-static-redesign {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: #171612;
  background:
    radial-gradient(circle, rgba(30, 29, 24, 0.18) 1px, transparent 1.25px) 0 0 / 24px 24px,
    linear-gradient(180deg, #fbfaf6 0%, #f7f3ea 100%);
}

.home-static-redesign::before,
.about-static-redesign::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.8), transparent 34%),
    radial-gradient(circle at 14% 88%, rgba(238, 231, 215, 0.46), transparent 32%);
}

.home-static-shell {
  position: relative;
  z-index: 1;
  width: min(1540px, calc(100% - 128px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 112px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 128px;
  align-items: center;
}

.home-static-copy {
  max-width: 850px;
}

.home-static-eyebrow {
  margin: 0 0 28px;
  color: #24221e;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 820;
  letter-spacing: 0;
}

.home-static-title {
  margin: 0;
  color: #171612;
  font-family: var(--font-serif);
  font-size: 112px;
  line-height: 1.03;
  font-weight: 520;
  letter-spacing: 0;
}

.home-static-title span {
  display: block;
  white-space: nowrap;
}

.home-static-desc {
  max-width: 790px;
  margin: 42px 0 0;
  color: #746d64;
  font-size: 24px;
  line-height: 1.72;
  font-weight: 650;
  letter-spacing: 0;
}

.home-static-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.home-static-btn {
  min-height: 62px;
  padding: 0 30px;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 820;
  letter-spacing: 0;
}

.home-static-portrait {
  width: 520px;
  margin: 0;
  padding: 14px;
  border: 10px solid rgba(255, 255, 255, 0.96);
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 36px 90px rgba(38, 36, 30, 0.14);
}

.home-static-portrait img {
  aspect-ratio: 1 / 1.04;
  border-radius: 28px;
  object-fit: cover;
  object-position: center;
}

.home-static-portrait figcaption {
  right: 24px;
  bottom: 24px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(24, 24, 24, 0.72);
  color: #fff;
  font-size: 17px;
  font-weight: 780;
  letter-spacing: 0;
}

/* Homepage screen 01 - Figma 128:9470 static reconstruction. */
.home-static-redesign {
  min-height: 100svh;
  color: #171612;
  background-color: #faf9f5;
  background-image: radial-gradient(circle at 1px 1px, rgba(36, 34, 30, 0.12) 1px, transparent 1.15px);
  background-size: 22px 22px;
}

.home-static-redesign::before {
  display: none;
}

.home-static-redesign .home-static-shell {
  width: min(1480px, calc(100% - 144px));
  min-height: 100svh;
  padding: 124px 0 72px;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 500px);
  gap: clamp(72px, 8.2vw, 128px);
}

.home-static-redesign .home-static-copy {
  max-width: none;
}

.home-static-redesign .home-static-eyebrow {
  margin-bottom: 26px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
}

.home-static-redesign .home-static-title {
  font-family: var(--font-sans);
  font-size: clamp(60px, 4.65vw, 90px);
  line-height: 1.06;
  font-weight: 700;
}

.home-static-redesign .home-static-title-sub {
  margin-top: 10px;
}

.home-static-redesign .home-static-desc {
  max-width: 720px;
  margin-top: 36px;
  font-size: 20px;
  line-height: 1.7;
  font-weight: 500;
}

.home-static-redesign .home-static-actions {
  margin-top: 34px;
  gap: 14px;
}

.home-static-redesign .home-static-btn {
  min-height: 58px;
  padding: 0 26px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
}

.home-static-redesign .home-static-portrait {
  width: 100%;
  max-width: 500px;
  justify-self: end;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(31, 29, 25, 0.08);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(28, 25, 20, 0.12);
}

.home-static-redesign .home-static-portrait img {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1.08;
  border-radius: 23px;
}

.home-static-redesign .home-static-portrait figcaption {
  right: 20px;
  bottom: 20px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 12px;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .home-static-redesign .home-static-shell {
    width: min(760px, calc(100% - 48px));
    padding: 112px 0 64px;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .home-static-redesign .home-static-portrait {
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .home-static-redesign .home-static-shell {
    width: min(100% - 36px, 520px);
    padding: 96px 0 44px;
    gap: 38px;
  }

  .home-static-redesign .home-static-eyebrow {
    margin-bottom: 18px;
    font-size: 17px;
  }

  .home-static-redesign .home-static-title {
    font-size: clamp(38px, 10.2vw, 58px);
  }

  .home-static-redesign .home-static-title-sub {
    margin-top: 6px;
  }

  .home-static-redesign .home-static-desc {
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.7;
  }

  .home-static-redesign .home-static-actions {
    margin-top: 28px;
  }

  .home-static-redesign .home-static-btn {
    min-height: 50px;
    padding: 0 20px;
    font-size: 15px;
  }
}

.about-static-shell {
  position: relative;
  z-index: 1;
  width: min(1540px, calc(100% - 128px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 118px 0 86px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  grid-template-areas:
    "heading content"
    "timeline timeline";
  gap: 72px 96px;
  align-items: center;
}

.about-static-heading {
  grid-area: heading;
}

.about-static-heading p {
  margin: 0 0 18px;
  color: rgba(23, 22, 18, 0.22);
  font-family: var(--font-serif);
  font-size: 78px;
  line-height: 0.92;
  font-weight: 640;
  letter-spacing: 0;
}

.about-static-heading h2 {
  margin: 0;
  color: #171612;
  font-size: 128px;
  line-height: 0.9;
  font-weight: 920;
  letter-spacing: 0;
}

.about-static-content {
  grid-area: content;
  padding: 58px;
  border: 1px solid rgba(24, 23, 20, 0.12);
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 76px rgba(40, 36, 28, 0.08);
}

.about-static-role {
  margin: 0 0 16px;
  color: #171612;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 860;
  letter-spacing: 0;
}

.about-static-content h3 {
  margin: 0 0 30px;
  color: #171612;
  font-size: 52px;
  line-height: 1.16;
  font-weight: 880;
  letter-spacing: 0;
}

.about-static-paragraphs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.about-static-paragraphs p {
  margin: 0;
  color: #716b63;
  font-size: 21px;
  line-height: 1.82;
  font-weight: 650;
  letter-spacing: 0;
}

.about-static-metrics {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.about-static-metrics article {
  padding: 18px 18px 20px;
  border: 1px solid rgba(24, 23, 20, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
}

.about-static-metrics strong {
  display: block;
  color: #171612;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.about-static-metrics span {
  display: block;
  margin-top: 10px;
  color: #716b63;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 760;
  letter-spacing: 0;
}

.about-static-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.about-static-tags span {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(24, 23, 20, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #25231f;
  font-size: 16px;
  font-weight: 820;
  letter-spacing: 0;
}

.about-static-timeline {
  grid-area: timeline;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.about-static-timeline article {
  min-height: 134px;
  padding: 24px;
  border: 1px solid rgba(24, 23, 20, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.6);
}

.about-static-timeline strong {
  display: block;
  margin-bottom: 14px;
  color: #171612;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 860;
  letter-spacing: 0;
}

.about-static-timeline span {
  display: block;
  color: #716b63;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 720;
  letter-spacing: 0;
}

@media (min-width: 1680px) {
  .home-static-title {
    font-size: 124px;
  }

  .about-static-heading h2 {
    font-size: 140px;
  }
}

@media (max-width: 1280px) {
  .home-static-shell,
  .about-static-shell {
    width: min(1180px, calc(100% - 72px));
  }

  .home-static-shell {
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 72px;
  }

  .home-static-title {
    font-size: 84px;
  }

  .home-static-desc {
    font-size: 21px;
  }

  .home-static-portrait {
    width: 460px;
  }

  .about-static-shell {
    grid-template-columns: 0.72fr 1.28fr;
    gap: 56px;
  }

  .about-static-heading p {
    font-size: 58px;
  }

  .about-static-heading h2 {
    font-size: 102px;
  }

  .about-static-content {
    padding: 42px;
  }

  .about-static-content h3 {
    font-size: 42px;
  }
}

@media (max-width: 980px) {
  .home-static-shell,
  .about-static-shell {
    width: min(720px, calc(100% - 44px));
  }

  .home-static-shell {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 104px;
  }

  .home-static-title {
    font-size: 70px;
  }

  .home-static-portrait {
    justify-self: start;
    width: min(520px, 100%);
  }

  .about-static-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "content"
      "timeline";
    gap: 28px;
  }

  .about-static-paragraphs,
  .about-static-metrics {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .home-static-redesign,
  .about-static-redesign {
    background:
      radial-gradient(circle, rgba(30, 29, 24, 0.18) 1px, transparent 1.2px) 0 0 / 18px 18px,
      linear-gradient(180deg, #fbfaf6 0%, #f7f3ea 100%);
  }

  .home-static-shell,
  .about-static-shell {
    width: min(100% - 32px, 520px);
    min-height: auto;
  }

  .home-static-shell {
    padding: 96px 0 52px;
  }

  .home-static-eyebrow {
    margin-bottom: 20px;
    font-size: 18px;
  }

  .home-static-title {
    font-size: 45px;
    line-height: 1.1;
  }

  .home-static-title span {
    white-space: normal;
  }

  .home-static-title-main {
    white-space: nowrap !important;
  }

  .home-static-desc {
    margin-top: 28px;
    font-size: 16px;
    line-height: 1.76;
  }

  .home-static-btn {
    min-height: 52px;
    padding: 0 22px;
    font-size: 16px;
  }

  .home-static-portrait {
    border-width: 8px;
    border-radius: 30px;
  }

  .home-static-portrait img {
    border-radius: 22px;
  }

  .about-static-shell {
    padding: 76px 0 54px;
  }

  .about-static-heading p {
    font-size: 40px;
  }

  .about-static-heading h2 {
    font-size: 74px;
  }

  .about-static-content {
    padding: 28px;
    border-radius: 28px;
  }

  .about-static-role {
    font-size: 26px;
  }

  .about-static-content h3 {
    font-size: 32px;
  }

  .about-static-paragraphs p {
    font-size: 16px;
  }

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