@font-face {
  font-family: "Switzer";
  src: url("https://framerusercontent.com/third-party-assets/fontshare/wf/A54N3N7J5AY6YOPYJKLHF5VH7G7HSSUN/ERWIWIB434FMFHQFSSBD233EP3C62HOI/TOHQHMLIEIPKVF2JPM6SVKXFYGO5G2TJ.woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 900;
}

@font-face {
  font-family: "Switzer";
  src: url("https://framerusercontent.com/third-party-assets/fontshare/wf/ZME55SZ3XN6FJ6WZ26BVFLFSAZ5I2VWW/YETVURK7HXO34ARWAMVG6MSPWALMBOUD/SMQAIKPHV4D6DU77XSDVYN543XEEYX6R.woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 800;
}

@font-face {
  font-family: "Switzer";
  src: url("https://framerusercontent.com/third-party-assets/fontshare/wf/BLNB4FAQFNK56DWWNF7PMGTCOTZHOEII/ST3WKSSDMBK2MIQQO3MAVYWLF4FTOLFV/6IN5WOLRCYP4G4MOCOHOMXNON6Q7MDAR.woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Inter";
  src: url("https://framerusercontent.com/assets/GrgcKwrN6d3Uz8EwcLHZxwEfC4.woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  /* —— Color tokens (Lumenis-inspired) —— */
  --color-bg: #ffffff;
  --color-ink: #000000;
  --color-muted: #333333;
  --color-line-a: 0;
  --color-line-alpha: 0.12;
  --color-accent: #fffa8d;
  --color-surface: #f6f6f6;
  --color-surface-warm: #f7f6f1;
  --color-olive: #33321c;
  --color-header-overlay: #ffffff;

  /* Legacy aliases（兼容既有规则） */
  --bg: var(--color-bg);
  --ink: var(--color-ink);
  --muted: var(--color-muted);
  --line: rgba(var(--color-line-a), var(--color-line-a), var(--color-line-a), var(--color-line-alpha));
  --accent: var(--color-accent);
  --surface: var(--color-surface);
  --body: var(--font-sans);

  /* —— Typography —— */
  --font-display: "TASA Orbiter", "Switzer", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Inter", "TASA Orbiter", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  --display: var(--font-display);
  --sans: var(--font-sans);

  /* —— Space scale —— */
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 18px;
  --space-6: 24px;
  --space-8: 32px;
  --space-header-y: 20px;
  --space-header-x: clamp(20px, 4vw, 48px);
  --space-section-x: clamp(20px, 5vw, 64px);
  --space-section-y: clamp(72px, 12vw, 140px);
  --space-hero-pad-y: 96px;
  --space-hero-pad-x: clamp(20px, 4vw, 48px);

  /* —— Layout —— */
  --layout-max: 1440px;
  --layout-content: 1120px;

  /* —— Radius —— */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 999px;

  /* —— Motion —— */
  --ease-standard: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-default: ease;
  --duration-slow: 700ms;
  --duration-link: 320ms;
  --duration-cursor: 180ms;
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-synthesis: none;
  text-transform: none;
  cursor: auto;
  transition: background-color var(--duration-slow) var(--ease-standard);
}

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

::selection {
  color: var(--bg);
  background: var(--ink);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    radial-gradient(circle at 30% 10%, rgba(0, 0, 0, 0.28), transparent 1px),
    radial-gradient(circle at 70% 80%, rgba(0, 0, 0, 0.22), transparent 1px);
  background-size: 4px 4px, 6px 6px;
  mix-blend-mode: multiply;
}

/* 自定义光标已停用：恢复系统鼠标，避免 cursor:none + 低对比圆点导致整页看不见指针 */
.cursor-dot {
  display: none;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  width: 0;
  height: 3px;
  background: var(--ink);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-header-y) var(--space-header-x);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.brand {
  font-family: var(--display);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: none;
}

.brand,
.top-nav a,
.bottom-nav a,
.footer-links a {
  position: relative;
}

.top-nav a::after,
.bottom-nav a::after,
.footer-links a::after,
.pill-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.12em;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-link) var(--ease-standard);
}

.top-nav a:hover::after,
.bottom-nav a:hover::after,
.footer-links a:hover::after,
.pill-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 6px;
}

.top-nav a {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 220ms ease, color 220ms ease;
}

.top-nav a.is-active,
.top-nav a:hover {
  background: var(--surface);
}

.top-nav a.is-active::after,
.top-nav a:hover::after {
  transform: none;
}

.section-block {
  border-bottom: 1px solid var(--line);
}

.hero {
  min-height: 100svh;
  padding: var(--space-hero-pad-y) var(--space-hero-pad-x) 42px;
  overflow: hidden;
}

.kicker {
  max-width: 320px;
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: clamp(15px, 1.65vw, 24px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 0;
  width: max(100%, 1440px);
  margin-left: -2vw;
}

.hero-line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: calc(100svh - 120px);
  justify-content: center;
  font-family: var(--display);
  font-size: clamp(86px, 12.6vw, 218px);
  font-weight: 900;
  line-height: 0.7;
  letter-spacing: -0.13em;
  white-space: nowrap;
  transform: translateY(18px);
  animation: floatIn 1200ms cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.track-b {
  animation-delay: 90ms;
}

.track-c {
  animation-delay: 180ms;
}

.track-d {
  animation-delay: 270ms;
}

.letter {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  gap: clamp(64px, 12vw, 220px);
  padding: clamp(140px, 18vw, 300px) 6vw clamp(100px, 14vw, 220px);
}

.letter-copy {
  font-family: var(--display);
  font-size: clamp(38px, 5.9vw, 98px);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.115em;
}

.letter-copy p {
  margin: 0 0 0.12em;
}

.letter-copy.slim {
  max-width: 820px;
  font-family: var(--display);
  font-size: clamp(30px, 4.6vw, 78px);
  font-weight: 800;
  line-height: 0.84;
  letter-spacing: -0.095em;
}

.projects {
  padding: clamp(90px, 12vw, 210px) 2vw clamp(70px, 10vw, 160px);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 6vw, 80px);
  margin-bottom: clamp(40px, 6vw, 72px);
  align-items: end;
}

.section-heading h2,
.about h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(36px, 5.2vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section-heading p {
  max-width: 560px;
  margin: 0;
  align-self: end;
  font-family: var(--sans);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.projects-intro {
  grid-column: 1 / -1;
  max-width: 42rem;
  margin: clamp(16px, 2vw, 24px) 0 0 !important;
  align-self: start !important;
  font-family: var(--body) !important;
  font-size: clamp(15px, 1.45vw, 18px) !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
  color: var(--ink);
}

.project-card {
  border-top: 1px solid var(--ink);
}

.project-card:last-child {
  border-bottom: 1px solid var(--ink);
}

.project-link {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(280px, 1.25fr) minmax(220px, 0.8fr);
  gap: clamp(10px, 1.8vw, 26px);
  align-items: stretch;
  min-height: 210px;
  padding: 16px 0;
}

.project-media {
  min-height: 154px;
  overflow: hidden;
  border-radius: 2px;
  transform-origin: left center;
  transition: transform 650ms cubic-bezier(0.19, 1, 0.22, 1);
}

.project-media::before {
  content: "";
  display: block;
  width: 120%;
  height: 120%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 40%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 24px);
  transform: rotate(-5deg) translate(-8%, -8%);
  transition: transform 850ms cubic-bezier(0.19, 1, 0.22, 1);
}

.project-card:hover .project-media {
  transform: scaleX(1.06);
}

.project-card:hover .project-media::before {
  transform: rotate(2deg) translate(-3%, -3%);
}

.lime {
  background: #e7ff46;
}

.pink {
  background: #ffd2e2;
}

.blue {
  background: #b9d7ff;
}

.sage {
  background: #cdd8c4;
}

.project-title h3 {
  max-width: 980px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(32px, 4.8vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.project-title span,
dt,
dd,
.experience-card span {
  font-size: clamp(14px, 1.2vw, 20px);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.project-link dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-self: end;
  margin: 0;
}

dt {
  color: var(--muted);
}

dd {
  margin: 4px 0 0;
}

.recognition {
  padding: clamp(120px, 16vw, 280px) 0 clamp(100px, 14vw, 240px);
  overflow: hidden;
}

.marquee {
  display: flex;
  width: max-content;
  margin-bottom: clamp(60px, 9vw, 150px);
  font-family: var(--display);
  font-size: clamp(78px, 12.8vw, 210px);
  font-weight: 900;
  line-height: 0.7;
  letter-spacing: -0.13em;
  white-space: nowrap;
  animation: marquee 18s linear infinite;
}

.marquee span {
  padding-right: 0.32em;
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(42px, 7vw, 130px);
  padding: 0 6vw;
}

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

.link-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink);
  font-family: var(--display);
  font-size: clamp(28px, 4.4vw, 78px);
  font-weight: 900;
  line-height: 0.76;
  letter-spacing: -0.115em;
}

.link-list strong {
  font-family: var(--display);
  font-weight: 900;
}

.experience {
  padding: clamp(100px, 13vw, 230px) 3vw;
}

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

.experience-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition:
    color 320ms ease,
    background 320ms ease,
    border-color 320ms ease,
    transform 500ms var(--ease-standard);
}

.experience-card:hover {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-4px);
}

.experience-card h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.experience-card p {
  margin: 0 0 12px;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.experience-card ul {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.experience-card li {
  padding-top: 6px;
  font-size: 18px;
  letter-spacing: -0.035em;
}

.about {
  min-height: 86svh;
  display: grid;
  place-items: center;
  padding: clamp(120px, 16vw, 280px) 6vw;
  text-align: center;
}

.about-copy {
  max-width: 980px;
}

.about-copy p {
  margin: clamp(20px, 3vw, 36px) auto 0;
  font-family: var(--display);
  font-size: clamp(24px, 3.6vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.pill-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-top: clamp(28px, 4vw, 48px);
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  transition: background 220ms ease, transform 220ms ease;
}

.pill-link:hover {
  background: #222;
  transform: translateY(-1px);
}

.pill-link::after {
  display: none;
}

.site-footer {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 7vw, 100px);
  padding: clamp(64px, 10vw, 120px) var(--space-section-x) 100px;
  border-top: 1px solid var(--line);
  font-size: clamp(14px, 1.3vw, 16px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.footer-brand {
  margin-bottom: 12px !important;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 42px) !important;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.site-footer p {
  margin: 0 0 0.4em;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-links h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links a {
  display: table;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--ink);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 80;
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  transform: translateX(-50%);
}

.bottom-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: -0.03em;
  transition:
    color 220ms ease,
    background 220ms ease;
}

.bottom-nav a:hover {
  color: var(--bg);
  background: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition:
    opacity 850ms cubic-bezier(0.19, 1, 0.22, 1),
    transform 850ms cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(80px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-33.33%);
  }
}

@media (max-width: 980px) {
  .site-header {
    padding: 14px;
  }

  .top-nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: repeat(2, minmax(230px, 1fr));
    width: 140vw;
  }

  .hero-line {
    min-height: 38svh;
  }

  .letter,
  .section-heading,
  .project-link,
  .two-column,
  .experience-grid,
  .site-footer,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .project-link {
    min-height: auto;
  }

  .project-media {
    min-height: 230px;
  }

  .experience-card {
    min-height: 360px;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-inline: 12px;
  }

  .hero-grid {
    display: block;
    width: auto;
    margin-left: 0;
  }

  .hero-line:not(.track-a) {
    display: none;
  }

  .hero-line {
    min-height: 72svh;
    font-size: clamp(78px, 22vw, 118px);
  }

  .letter,
  .projects,
  .experience,
  .about,
  .site-footer {
    padding-inline: 16px;
  }

  .link-list li {
    display: block;
  }

  .link-list strong {
    display: block;
    margin-top: 8px;
  }

  .bottom-nav {
    right: 10px;
    left: 10px;
    bottom: 10px;
    justify-content: space-between;
    transform: none;
  }

  .bottom-nav a {
    padding: 9px 8px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

@font-face {
  font-display: swap;
  font-family: "Futura Now Headline";
  font-style: normal;
  font-weight: 400;
  src:
    local("Futura Now Headline Cn XBd"),
    local("FuturaNowHeadline-CnXBd"),
    url("./fonts/FuturaNowHeadline-CnXBd.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Inter Local";
  font-style: normal;
  font-weight: 500;
  src:
    local("Inter Medium"),
    local("Inter-Medium"),
    url("./fonts/Inter-Medium.woff2") format("woff2");
}

.hero-spencer {
  container: hero/inline-size;
  display: grid;
  grid-template-areas: "top" "mid" "bot";
  min-height: 100svh;
  padding: max(env(safe-area-inset-top), 1rem) max(env(safe-area-inset-right), 1rem) max(env(safe-area-inset-bottom), 1rem)
    max(env(safe-area-inset-left), 1rem);
  place-items: center;
  text-align: center;
  width: 100%;
}

.hero-spencer__top {
  grid-area: top;
}

.hero-headline-zh {
  margin: 0 0 clamp(10px, 1.6vw, 18px);
  font-family: var(--body);
  font-size: clamp(14px, 1.55vw, 18px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--ink);
  max-width: 42rem;
}

.hero-spencer .kicker {
  max-width: none;
  margin: 0;
  font-family: "Inter Local", Inter, sans-serif;
  font-size: 0.5625rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-spencer__mid {
  grid-area: mid;
  display: grid;
  place-items: center;
  width: min(66rem, 94vw);
}

.hero-spencer__title {
  grid-area: 1 / 1;
  position: relative;
  z-index: 5;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 12.5em;
  pointer-events: none;
  color: var(--ink);
  font-family: "Futura Now Headline", var(--display);
  font-size: max(3.75rem, 6.9cqi);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: -0.02em;
  text-align: center;
  text-transform: uppercase;
  transform: translateY(0.08em);
}

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

.hero-title-line--top,
.hero-title-line--mid {
  position: relative;
  z-index: 3;
}

.hero-title-line--low,
.hero-title-line--bottom {
  position: relative;
  z-index: 3;
  color: color-mix(in srgb, var(--ink), transparent 18%);
}

.hero-title-line--mid {
  margin-bottom: 1.52em;
}

.hero-title-line--low {
  margin-top: 0.04em;
}

.hero-spencer__title .word {
  display: inline-block;
  transform-origin: bottom;
  animation: heroWordIn 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  animation-delay: calc(var(--delay) * 0.06s);
  transition:
    0.9s transform cubic-bezier(0.34, 1.56, 0.64, 1),
    0.6s opacity cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: calc(var(--delay) * 0.06s);
  will-change: transform;
}

.hero-spencer__title .space {
  display: inline-block;
  width: 0.26em;
}

.hero-spencer[mounted="false"] .hero-spencer__title .word {
  opacity: 0.001;
  transform: scaleY(0);
}

.hero-spencer__cards {
  grid-area: 1 / 1;
  /* 必须高于 .hero-spencer__title (5)，否则整段 H1 色块会盖住卡片 */
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  pointer-events: none;
  touch-action: none;
  transform: translateY(-0.08rem);
}

.hero-card {
  --velocity: 0;
  display: grid;
  width: clamp(6rem, 14cqi, 8.75rem);
  aspect-ratio: 1 / 1;
  border: none;
  border-radius: 1rem;
  padding: 0;
  background: transparent;
  pointer-events: auto;
  opacity: 1;
  scale: 1;
  transform-origin: 50% 100%;
  animation: heroCardEnter 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  animation-delay: calc(var(--delay, 0) * 0.08s + 0.4s);
}

@keyframes heroCardEnter {
  from {
    opacity: 0;
    scale: 0;
  }

  to {
    opacity: 1;
    scale: 1;
  }
}

.hero-card:not(:last-child) {
  margin-right: -6%;
}

.hero-card .shadow,
.hero-card .media {
  backface-visibility: hidden;
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  translate: calc(var(--offsetX) * 1px) calc(var(--offsetY) * 1px + var(--translateY));
  transform: translateZ(0);
  will-change: rotate;
}

.hero-card .shadow {
  background-color: rgba(0, 0, 0, 0.05);
  box-shadow:
    0 9px 21px rgba(0, 0, 0, 0.1),
    0 38px 38px rgba(0, 0, 0, 0.09),
    0 85px 51px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-spencer--cards-hot .hero-card .shadow {
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.14),
    0 48px 48px rgba(0, 0, 0, 0.11),
    0 100px 62px rgba(0, 0, 0, 0.07);
}

@media (any-hover: hover) {
  .hero-spencer--motion-fallback .hero-spencer__cards:hover .hero-card .shadow {
    box-shadow:
      0 14px 28px rgba(0, 0, 0, 0.14),
      0 48px 48px rgba(0, 0, 0, 0.11),
      0 100px 62px rgba(0, 0, 0, 0.07);
  }
}

.hero-card .media {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0) 52%),
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.42) 0 10%, transparent 10.5%),
    radial-gradient(circle at 68% 58%, rgba(44, 44, 44, 0.16) 0 8%, transparent 8.5%),
    repeating-linear-gradient(90deg, rgba(44, 44, 44, 0.16) 0 1px, transparent 1px 18px);
}

.hero-card--one {
  z-index: 1;
}

.hero-card--two {
  z-index: 2;
}

.hero-card--three {
  z-index: 3;
}

.hero-card--four {
  z-index: 4;
}

.hero-card--one .media {
  background-color: #dfff47;
}

.hero-card--two .media {
  background-color: #4a9bff;
}

.hero-card--three .media {
  background-color: #b7f24d;
}

.hero-card--four .media {
  background-color: #ffd2e2;
}

.hero-card--one .shadow,
.hero-card--one .media {
  rotate: calc(2deg - var(--velocity) * 0.32deg);
  --translateY: 5%;
}

.hero-card--two .shadow,
.hero-card--two .media {
  rotate: calc(-3deg - var(--velocity) * 0.32deg);
  --translateY: -6%;
}

.hero-card--three .shadow,
.hero-card--three .media {
  rotate: calc(6deg - var(--velocity) * 0.32deg);
  --translateY: 5%;
}

.hero-card--four .shadow,
.hero-card--four .media {
  rotate: calc(-2deg - var(--velocity) * 0.32deg);
  --translateY: -4%;
}

/* Motion One CDN 失败时：由 JS 添加 .hero-spencer--motion-fallback，保留分层 hover */
.hero-spencer--motion-fallback .hero-card {
  transition:
    scale 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    translate 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (any-hover: hover) {
  .hero-spencer--motion-fallback .hero-spencer__cards:hover .hero-card:nth-child(1) {
    scale: 1.048;
    translate: 0 -0.42rem;
  }

  .hero-spencer--motion-fallback .hero-spencer__cards:hover .hero-card:nth-child(2) {
    scale: 1.064;
    translate: 0 -0.58rem;
  }

  .hero-spencer--motion-fallback .hero-spencer__cards:hover .hero-card:nth-child(3) {
    scale: 1.076;
    translate: 0 -0.52rem;
  }

  .hero-spencer--motion-fallback .hero-spencer__cards:hover .hero-card:nth-child(4) {
    scale: 1.056;
    translate: 0 -0.48rem;
  }

  .hero-spencer--motion-fallback .hero-card:active:nth-child(1) {
    scale: 1.034;
    translate: 0 -0.26rem;
  }

  .hero-spencer--motion-fallback .hero-card:active:nth-child(2) {
    scale: 1.052;
    translate: 0 -0.38rem;
  }

  .hero-spencer--motion-fallback .hero-card:active:nth-child(3) {
    scale: 1.06;
    translate: 0 -0.34rem;
  }

  .hero-spencer--motion-fallback .hero-card:active:nth-child(4) {
    scale: 1.044;
    translate: 0 -0.32rem;
  }
}

@keyframes heroWordIn {
  from {
    opacity: 0.001;
    transform: scaleY(0);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

.hero-spencer__bot {
  grid-area: bot;
  font-family: "Inter Local", Inter, sans-serif;
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .hero-spencer__title {
    font-size: clamp(2.8rem, 12vw, 5.2rem);
    line-height: 0.86;
  }

  .hero-title-line {
    white-space: normal;
  }

  .hero-title-line--mid {
    margin-bottom: 1.65em;
  }

  .hero-spencer__cards {
    width: 92vw;
    transform: translateY(-0.15rem);
  }

  .hero-card {
    width: clamp(4.8rem, 22vw, 6.25rem);
    border-radius: 0.75rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Work detail subpages (projects/*.html) — 排版补充，不改首页组件语义 */
/* -------------------------------------------------------------------------- */

.project-detail {
  padding: clamp(96px, 14vw, 160px) clamp(18px, 6vw, 48px) clamp(80px, 12vw, 140px);
  max-width: 52rem;
  margin: 0 auto;
}

.project-detail__back {
  display: inline-block;
  margin-bottom: clamp(28px, 5vw, 48px);
  font-size: clamp(14px, 1.2vw, 16px);
  letter-spacing: -0.02em;
}

.project-detail__banner {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.project-detail__banner .project-media {
  min-height: clamp(140px, 22vw, 220px);
}

.project-detail__title {
  margin: 0 0 clamp(36px, 5vw, 64px);
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.project-detail__stage {
  margin: 0 0 clamp(12px, 2vw, 18px);
  font-family: var(--body);
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-detail__meta {
  margin: 0 0 10px;
  font-size: clamp(13px, 1.1vw, 15px);
  color: var(--muted);
  letter-spacing: -0.02em;
}

.project-detail__lead {
  margin: 0 0 clamp(36px, 5vw, 56px);
  max-width: 42rem;
  font-family: var(--sans);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.project-detail__tag {
  margin: 0 0 clamp(20px, 3vw, 28px);
  font-size: clamp(14px, 1.15vw, 18px);
  color: var(--muted);
  letter-spacing: -0.03em;
}

.project-detail__note {
  margin-top: 12px;
  font-size: clamp(13px, 1.1vw, 15px);
  color: var(--muted);
}

.project-detail__role-list {
  margin-bottom: 0;
}

.project-detail__block {
  margin-bottom: clamp(36px, 6vw, 56px);
}

.project-detail__block h2 {
  margin: 0 0 clamp(12px, 2vw, 18px);
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.project-detail__block p,
.project-detail__block ul {
  margin: 0;
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.55;
  letter-spacing: -0.025em;
}

.project-detail__block ul {
  padding-left: 1.2em;
}

.project-detail__block li + li {
  margin-top: 8px;
}

.project-detail__banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  max-height: clamp(200px, 35vw, 420px);
}

.project-detail__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(16px, 2.5vw, 24px);
}

.project-detail__figure {
  margin: 0;
}

.project-detail__figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.project-detail__figure figcaption {
  margin-top: 8px;
  font-size: clamp(12px, 1vw, 14px);
  color: var(--muted);
  letter-spacing: -0.02em;
}

.project-detail__formula {
  margin: 0 0 12px !important;
  font-family: var(--display);
  font-size: clamp(20px, 2.6vw, 32px) !important;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2 !important;
}

.project-detail__metrics {
  margin-bottom: 1.25rem;
}

.project-detail__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
}

.project-detail__table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.45;
}

.project-detail__table th,
.project-detail__table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.project-detail__table th {
  font-weight: 600;
  letter-spacing: -0.02em;
  background: rgba(0, 0, 0, 0.03);
  white-space: nowrap;
}

.project-detail__table tbody tr:last-child td {
  border-bottom: none;
}

.project-detail__banner--icon {
  display: flex;
  justify-content: center;
}

.project-detail__banner-img--app-icon {
  width: clamp(96px, 18vw, 128px);
  max-height: none;
  border-radius: 22%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.project-detail__subhead {
  margin: clamp(20px, 3vw, 28px) 0 8px;
  font-family: var(--sans);
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.project-detail__subhead:first-of-type {
  margin-top: 0;
}

.project-detail__pipeline {
  margin-top: 12px;
  padding: 12px 14px;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.03);
  border-radius: 10px;
}

/* —— Layout utilities（可选居中壳层） —— */
.shell {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--layout-max);
  margin-inline: auto;
  padding-inline: var(--space-section-x);
}

.section-rhythm {
  padding-block: var(--space-section-y);
}

.experience-grid .experience-card.hydrate-hint {
  grid-column: 1 / -1;
}

.experience-card.hydrate-hint p {
  margin: 0;
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 1.45;
  letter-spacing: -0.03em;
}

.experience-card.hydrate-hint code {
  font-size: 0.92em;
}

/* —— Hero 中文副标题 —— */
.hero-spencer__subtitle {
  margin: 0 auto clamp(16px, 2.5vw, 28px);
  max-width: 36rem;
  padding: 0 clamp(12px, 4vw, 24px);
  font-family: var(--sans);
  font-size: clamp(14px, 1.35vw, 18px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--muted);
}

/* —— Explore 区块：区段导语与卡片 thesis 需可读行距（覆盖 section-heading / experience-card 的紧行高） —— */
#explore .section-heading p {
  line-height: 1.48;
  letter-spacing: -0.04em;
}

.experience-card.explore-card .explore-card__thesis {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 500;
  line-height: 1.62;
  letter-spacing: -0.025em;
}

.explore-card__links-label {
  margin: 16px 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.explore-card__links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.explore-card__links a:hover {
  color: var(--accent);
}

.experiment-card h3 a {
  text-decoration: none;
}

.experiment-card h3 a:hover {
  text-decoration: underline;
}

.experiment-card__tag {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: -0.02em;
}

/* —— Impact —— */
.impact {
  padding: clamp(72px, 11vw, 140px) 5vw;
}

.impact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
  max-width: 56rem;
}

.impact-list__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(8px, 1.2vw, 12px);
  padding: clamp(14px, 2vw, 20px) 0;
  border-bottom: 1px solid var(--ink);
  font-family: var(--display);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.impact-list__label {
  font-size: clamp(20px, 2.8vw, 36px);
  font-weight: 800;
  line-height: 1.1;
}

.impact-list__detail {
  margin: 0;
  max-width: 48rem;
  font-family: var(--body);
  font-size: clamp(14px, 1.35vw, 17px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--muted);
}

/* —— About / 履历 —— */
.about-resume {
  padding: clamp(72px, 11vw, 140px) 5vw;
}

.about-heading__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.about-heading__download {
  flex: 0 0 auto;
}

.about-heading .about-resume__intro {
  grid-column: 1 / -1;
}

.about-resume__intro {
  margin-top: 12px !important;
  font-family: var(--body) !important;
  font-size: clamp(14px, 1.35vw, 17px) !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
  color: var(--muted);
  max-width: 42rem;
}

.about-timeline {
  margin-top: clamp(28px, 4vw, 48px);
  max-width: 56rem;
  border-top: 1px solid var(--ink);
}

.about-timeline__item {
  display: grid;
  grid-template-columns: clamp(88px, 12vw, 140px) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 24px);
  padding: clamp(16px, 2.2vw, 24px) 0;
  border-bottom: 1px solid var(--ink);
}

.about-timeline__period {
  font-family: var(--display);
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--muted);
}

.about-timeline__body h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.about-timeline__role {
  margin: 6px 0 0;
  font-size: clamp(14px, 1.35vw, 17px);
  font-weight: 600;
}

.about-timeline__highlight {
  margin: 8px 0 0;
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.5;
  color: var(--muted);
}

.about-resume-cta {
  margin-top: clamp(24px, 3vw, 36px);
}

.about-resume__note {
  font-size: clamp(14px, 1.35vw, 17px);
  color: var(--muted);
}

.about-open-to {
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: clamp(18px, 2.5vw, 28px);
  border: 1px solid var(--ink);
  max-width: 42rem;
}

.about-open-to h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.about-open-to ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-open-to li {
  margin-top: 8px;
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.5;
}

.about-open-to strong {
  font-weight: 700;
}

/* —— Thoughts 数字花园 —— */
.thoughts {
  padding: clamp(72px, 11vw, 140px) 5vw;
}

.garden-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 48rem;
}

.garden-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 6px 12px;
  padding: clamp(18px, 2.5vw, 24px) 0;
  border-bottom: 1px solid var(--line);
}

.garden-topic {
  grid-column: 1;
  font-family: var(--display);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.garden-summary {
  grid-column: 1 / -1;
  font-family: var(--sans);
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.45;
  color: var(--muted);
}

.garden-status {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-note {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

/* -------------------------------------------------------------------------- */
/* 晒太阳项目页专属样式                                                        */
/* -------------------------------------------------------------------------- */

.lawn-belief {
  margin-top: 16px;
  padding: 16px 20px;
  background: rgba(171, 191, 96, 0.12);
  border-left: 3px solid #abbf60;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.6;
}

.lawn-exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.lawn-exp-card {
  padding: 18px 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: rgba(171, 191, 96, 0.06);
  transition: background 300ms ease, transform 400ms cubic-bezier(0.19, 1, 0.22, 1);
}

.lawn-exp-card:hover {
  background: rgba(171, 191, 96, 0.16);
  transform: translateY(-3px);
}

.lawn-exp-card h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.lawn-exp-card p {
  margin: 0;
  font-size: clamp(13px, 1.15vw, 15px);
  line-height: 1.45;
  color: var(--muted);
}

.lawn-keywords {
  margin: 8px 0 20px;
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
}

.lawn-workflow-box {
  margin: 12px 0 20px;
  padding: 20px 24px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  font-family: "SF Mono", "Fira Code", "Menlo", monospace;
  font-size: clamp(11px, 1vw, 13px);
  line-height: 1.65;
  overflow-x: auto;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
  letter-spacing: 0;
}

.lawn-story {
  padding: 20px 24px;
  border-left: 3px solid #abbf60;
  margin-bottom: 16px;
  background: rgba(171, 191, 96, 0.04);
  border-radius: 0 12px 12px 0;
}

.lawn-story .project-detail__subhead {
  margin-top: 0;
}

.lawn-story p {
  margin: 0 0 8px;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.55;
}

.lawn-story p:last-child {
  margin-bottom: 0;
}

.lawn-color-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.lawn-swatch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(13px, 1.1vw, 15px);
}

.lawn-swatch__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.lawn-summary-box {
  margin-top: 28px;
  padding: 28px 24px;
  background: #abbf60;
  color: #28340c;
  border-radius: 12px;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: -0.04em;
}

/* -------------------------------------------------------------------------- */
/* Lumenis-inspired homepage                                                   */
/* -------------------------------------------------------------------------- */

.section-eyebrow {
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-lumenis {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(28px, 5vw, 56px);
  min-height: 100svh;
  padding:
    calc(var(--space-hero-pad-y) + 24px)
    var(--space-hero-pad-x)
    clamp(40px, 6vw, 72px);
  overflow: hidden;
}

.hero-lumenis__brand {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(36px, 8.5vw, 128px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: lumenisBrandIn 1100ms var(--ease-standard) both;
}

.hero-lumenis__intro {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 22px);
}

.hero-lumenis__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 48px);
  max-width: 920px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  animation: lumenisFadeUp 900ms var(--ease-standard) 120ms both;
}

.hero-meta-col {
  min-width: 0;
}

.hero-meta-label {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-meta-col li {
  margin: 0 0 4px;
  font-family: var(--sans);
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.hero-meta-col a {
  transition: opacity 220ms ease;
}

.hero-meta-col a:hover {
  opacity: 0.55;
}

.hero-lumenis__cta-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  padding-top: clamp(20px, 3vw, 36px);
  border-top: 1px solid var(--line);
  animation: lumenisFadeUp 900ms var(--ease-standard) 220ms both;
}

.hero-lumenis__lead {
  margin: 0;
  max-width: 22em;
  font-family: var(--display);
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.035em;
  animation: lumenisFadeUp 900ms var(--ease-standard) 180ms both;
}

.hero-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  animation: lumenisFadeUp 900ms var(--ease-standard) 280ms both;
}

.hero-path {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 168px;
  padding: 22px 24px 20px;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition:
    background 220ms ease,
    color 220ms ease;
}

.hero-path:hover,
.hero-path:focus-visible {
  background: var(--ink);
  color: #fff;
}

.hero-path__prompt {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.hero-path__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
}

.hero-path__action::after {
  content: "→";
}

.hero-path__hint {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.62;
}

.ai-path,
.more {
  padding-inline: var(--space-section-x);
  padding-block: var(--space-section-y);
}

#ai .section-heading--solo {
  grid-template-columns: 1fr;
  margin-bottom: clamp(20px, 3vw, 32px);
}

/* —— AI path: editorial stations (zigzag spreads + index spine) —— */
.ai-path__index {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 0;
  max-width: min(1120px, 100%);
  margin: 0 0 clamp(36px, 6vw, 64px);
  padding: 14px 0 18px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.ai-path__index-link {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  max-width: 9.5rem;
  padding: 4px 2px;
  color: inherit;
  text-decoration: none;
  transition: opacity var(--duration-link) var(--ease-default);
}

.ai-path__index-link:hover {
  opacity: 0.55;
}

.ai-path__index-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.ai-path__index-num {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ai-path__index-label {
  font-family: var(--display);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-path__index-rule {
  flex: 1 1 18px;
  min-width: 18px;
  max-width: 56px;
  height: 1px;
  margin: 0 8px;
  align-self: center;
  background: rgba(0, 0, 0, 0.22);
}

.ai-path__track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 8vw, 96px);
  max-width: min(1120px, 100%);
}

.ai-path__track::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.08) 50%,
    rgba(0, 0, 0, 0.04) 100%
  );
  pointer-events: none;
}

.ai-path__station {
  position: relative;
  z-index: 1;
}

.ai-path__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(14px, 2vw, 22px);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.ai-path__num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.ai-path__num::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 1.5px solid var(--ink);
  box-shadow: 0 0 0 3px var(--bg);
}

.ai-path__when {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.ai-path__spread {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(20px, 3.5vw, 48px);
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.ai-path__station[data-side="end"] .ai-path__spread {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.ai-path__station[data-side="end"] .ai-path__visual {
  order: 2;
}

.ai-path__station[data-side="end"] .ai-path__copy {
  order: 1;
  text-align: right;
}

.ai-path__station[data-side="end"] .ai-path__cta {
  margin-left: auto;
}

.ai-path__visual {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--surface);
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
}

.ai-path__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 900ms var(--ease-standard);
}

a.ai-path__spread:hover .ai-path__visual img {
  transform: scale(1.04);
}

a.ai-path__spread:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}

.ai-path__visual--empty {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 70%, #fff) 0%, transparent 58%),
    var(--surface);
}

.ai-path__ghost {
  position: absolute;
  right: -0.06em;
  bottom: -0.28em;
  z-index: 1;
  font-family: var(--display);
  font-size: clamp(72px, 12vw, 140px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.08em;
  color: color-mix(in srgb, var(--ink) 10%, transparent);
  pointer-events: none;
  user-select: none;
}

.ai-path__station[data-side="end"] .ai-path__ghost {
  right: auto;
  left: -0.06em;
}

.ai-path__copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding-block: 4px;
}

.ai-path__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.ai-path__text {
  margin: 0;
  max-width: 32rem;
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.65;
  color: var(--muted);
}

.ai-path__station[data-side="end"] .ai-path__text {
  margin-left: auto;
}

.ai-path__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.ai-path__cta::after {
  content: "→";
  transition: transform 280ms var(--ease-standard);
}

a.ai-path__spread:hover .ai-path__cta::after {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .ai-path__visual img,
  a.ai-path__spread:hover .ai-path__visual img,
  a.ai-path__spread:hover .ai-path__cta::after {
    transition: none;
    transform: none;
  }
}

.hero-lumenis__aside p {
  margin: 0 0 22px;
  max-width: 34rem;
  font-family: var(--sans);
  font-size: clamp(14px, 1.25vw, 16px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    background 220ms ease,
    color 220ms ease,
    border-color 220ms ease,
    transform 220ms ease;
}

.btn--primary {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}

.btn--primary:hover {
  background: #222;
  transform: translateY(-1px);
}

.btn--primary::after {
  content: "→";
  font-weight: 500;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn--ghost:hover {
  background: var(--surface);
  transform: translateY(-1px);
}

.btn--ghost::after {
  content: "■";
  font-size: 8px;
  margin-left: 2px;
}

.project-card {
  border-top: 1px solid var(--line);
}

.project-card:last-child {
  border-bottom: 1px solid var(--line);
}

.project-link {
  transition: background 280ms ease;
}

.project-card:hover .project-link {
  background: var(--surface-warm);
}

.project-media {
  border-radius: var(--radius-md);
}

.lime {
  background: var(--accent);
}

.pink {
  background: #f0e8e2;
}

.blue {
  background: #e8eef5;
}

.sage {
  background: #e6ebe0;
}

.experience-card:hover .explore-card__links a {
  color: #fff;
}

.about-resume,
.experience,
.projects,
.impact,
.thoughts {
  padding-inline: var(--space-section-x);
}

.about-resume,
.impact,
.thoughts {
  padding-block: var(--space-section-y);
}

.experience {
  padding-block: var(--space-section-y);
}

.projects {
  padding-block: var(--space-section-y);
  padding-inline: var(--space-section-x);
}

.about {
  padding-inline: var(--space-section-x);
}

@keyframes lumenisBrandIn {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lumenisFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-lumenis__meta,
  .hero-lumenis__cta-row,
  .hero-paths {
    grid-template-columns: 1fr;
  }

  .hero-path {
    min-height: 0;
  }

  .ai-path__track::before {
    display: none;
  }

  .ai-path__index {
    gap: 12px 10px;
  }

  .ai-path__index-rule {
    display: none;
  }

  .ai-path__index-link {
    max-width: none;
    flex: 1 1 calc(33.333% - 10px);
  }

  .ai-path__index-label {
    white-space: normal;
  }

  .ai-path__spread,
  .ai-path__station[data-side="end"] .ai-path__spread {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ai-path__station[data-side="end"] .ai-path__visual,
  .ai-path__station[data-side="end"] .ai-path__copy {
    order: unset;
    text-align: left;
  }

  .ai-path__station[data-side="end"] .ai-path__text,
  .ai-path__station[data-side="end"] .ai-path__cta {
    margin-left: 0;
  }

  .ai-path__station[data-side="end"] .ai-path__ghost {
    left: auto;
    right: -0.06em;
  }

  .ai-path__title {
    font-size: clamp(24px, 7vw, 34px);
  }

  .hero-lumenis__brand {
    font-size: clamp(28px, 9.5vw, 96px);
    white-space: normal;
  }

  .top-nav {
    display: none;
  }
}

@media (max-width: 620px) {
  .hero-lumenis {
    padding-inline: 16px;
    min-height: auto;
    padding-top: 100px;
  }

  .hero-lumenis__meta {
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-lumenis__brand,
  .hero-lumenis__meta,
  .hero-lumenis__cta-row,
  .hero-paths {
    animation: none;
  }
}

/* -------------------------------------------------------------------------- */
/* Work stack — Lumenis composition (bg + inset + sticky)                      */
/* -------------------------------------------------------------------------- */

.works-showcase {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 8vw, 84px);
  margin: clamp(28px, 4vw, 48px) 0 clamp(40px, 6vw, 72px);
}

.work-stack {
  position: sticky;
  top: 72px;
  z-index: calc(20 + var(--stack-index, 0));
}

.work-stack__link {
  display: block;
  color: inherit;
}

.work-stack__stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: min(820px, calc(100svh - 180px));
  padding-bottom: 56px;
  border-radius: 2px;
  background: #111;
  color: #fff;
  box-sizing: border-box;
}

.work-stack__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.work-stack__bg-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  filter: saturate(0.92) contrast(1.05);
  transition: transform 900ms var(--ease-standard);
}

.work-stack__bg-fallback {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(255, 255, 255, 0.22), transparent 70%),
    linear-gradient(145deg, #2c2a24 0%, #6a6356 48%, #c4b8a0 100%);
}

.work-stack[data-bg-tone="taobao"] .work-stack__bg-fallback {
  background:
    radial-gradient(ellipse 65% 50% at 48% 40%, rgba(255, 250, 200, 0.28), transparent 68%),
    linear-gradient(145deg, #2a261c 0%, #5f5643 46%, #d2c4a0 100%);
}

.work-stack[data-bg-tone="fan"] .work-stack__bg-fallback {
  background:
    radial-gradient(ellipse 65% 50% at 52% 38%, rgba(255, 210, 220, 0.22), transparent 68%),
    linear-gradient(155deg, #241820 0%, #5a4450 48%, #c4a8b0 100%);
}

.work-stack[data-bg-tone="ad"] .work-stack__bg-fallback {
  background:
    radial-gradient(ellipse 65% 50% at 50% 42%, rgba(200, 220, 240, 0.24), transparent 68%),
    linear-gradient(150deg, #1a222a 0%, #445260 48%, #a8b6c4 100%);
}

.work-stack[data-bg-tone="agent"] .work-stack__bg-fallback {
  background:
    radial-gradient(ellipse 65% 50% at 52% 38%, rgba(230, 210, 255, 0.24), transparent 68%),
    linear-gradient(155deg, #1a1624 0%, #4a3d62 48%, #c4b4d4 100%);
}

.work-stack__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.06) 45%, rgba(0, 0, 0, 0.22) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.22) 100%);
  pointer-events: none;
}

.work-stack__main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  min-height: inherit;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px) clamp(72px, 9vw, 96px);
}

.work-stack__counter {
  position: absolute;
  top: clamp(20px, 3vw, 36px);
  left: clamp(20px, 3vw, 40px);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
}

.work-stack__title {
  margin: 0;
  justify-self: start;
  max-width: 10em;
  font-family: var(--display);
  font-size: clamp(32px, 4.6vw, 64px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.work-stack__inset {
  position: relative;
  width: min(360px, 38vw);
  max-height: min(480px, calc(100svh - 280px));
  aspect-ratio: 3 / 4;
  justify-self: center;
  align-self: center;
  margin-bottom: 24px;
  overflow: hidden;
  background: #f4f1ea;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.28);
}

.work-stack__portrait-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 800ms var(--ease-standard);
}

.work-stack__portrait-fallback {
  width: 100%;
  height: calc(100% - 34px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  padding: 18px 16px 12px;
  text-align: left;
  background: linear-gradient(180deg, #faf8f3 0%, #ebe6da 100%);
  color: #111;
  overflow: auto;
}

.work-stack__portrait-fallback > span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
}

.work-stack__portrait-fallback > strong {
  font-family: var(--display);
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.work-stack__summary {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.work-stack__summary li {
  font-family: var(--sans);
  font-size: clamp(11.5px, 1vw, 13px);
  font-weight: 400;
  line-height: 1.45;
  color: #333;
}

.work-stack__summary strong {
  display: block;
  margin-bottom: 2px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #111;
}

.work-stack__discover {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  background: #fff;
  color: #000;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-stack__kind {
  justify-self: end;
  align-self: center;
  font-family: var(--sans);
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.work-stack:hover .work-stack__bg-img {
  transform: scale(1.12);
}

.work-stack:hover .work-stack__portrait-img {
  transform: scale(1.04);
}

.projects-grid--detail {
  margin-top: clamp(12px, 2vw, 24px);
  padding-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.projects-grid--detail .project-media {
  background-size: cover;
  background-position: center;
}

#work-fan .project-media {
  background-image: url("./assets/works/fan-economy-2.png");
}

#work-ad .project-media {
  background-image: url("./assets/works/ad-danmaku-1.png");
}

#work-fan .project-media::before,
#work-ad .project-media::before {
  opacity: 0.18;
}

@media (max-width: 980px) {
  .work-stack {
    position: relative;
    top: auto;
  }

  .work-stack__main {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 18px;
    padding-top: 56px;
    padding-bottom: 28px;
  }

  .work-stack__title {
    max-width: none;
  }

  .work-stack__inset {
    width: min(320px, 86vw);
    max-height: none;
    justify-self: start;
  }

  .work-stack__kind {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .work-stack__stage {
    min-height: 70svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-stack__bg-img,
  .work-stack__portrait-img {
    transition: none;
  }
}

/* -------------------------------------------------------------------------- */
/* Lab panel — Lumenis services-style vertical tabs                            */
/* -------------------------------------------------------------------------- */

.experiments {
  padding-block: var(--space-section-y);
  padding-inline: var(--space-section-x);
}

.lab-panel {
  margin-top: clamp(8px, 2vw, 20px);
}

.lab-panel__pin-track {
  /* 每个实验对应一段页面滚动距离，面板吸顶期间优先「滑过」这块 */
  height: calc(var(--lab-count, 4) * 90svh);
  position: relative;
}

.lab-panel__pin {
  position: sticky;
  top: 72px;
  z-index: 5;
}

.lab-panel__shell {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  min-height: min(640px, calc(100svh - 96px));
  height: min(640px, calc(100svh - 96px));
  overflow: hidden;
  border-radius: 2px;
}

.lab-panel__nav {
  display: flex;
  flex-direction: column;
  background: #33321c;
  color: #fff;
  padding: clamp(22px, 3vw, 32px) clamp(18px, 2.5vw, 28px);
}

.lab-panel__nav-label {
  margin: 0 0 auto;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.lab-panel__tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: clamp(36px, 6vw, 72px) 0;
}

.lab-panel__tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.38);
  transition: color 220ms ease;
}

.lab-panel__tab:hover {
  color: rgba(255, 255, 255, 0.72);
}

.lab-panel__tab.is-active {
  color: #fff;
}

.lab-panel__nav-foot {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 28px;
  padding: 6px 12px;
  background: #fffa8d;
  color: #111;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lab-panel__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(255, 255, 255, 0.2), transparent 70%),
    linear-gradient(145deg, #2c2a24 0%, #6a6356 48%, #c4b8a0 100%);
  transition: background 420ms ease;
}

.lab-panel__stage[data-lab-tone="0"] {
  background:
    radial-gradient(ellipse 65% 50% at 48% 40%, rgba(255, 250, 200, 0.28), transparent 68%),
    linear-gradient(145deg, #2a261c 0%, #5f5643 46%, #d2c4a0 100%);
}

.lab-panel__stage[data-lab-tone="1"] {
  background:
    radial-gradient(ellipse 65% 50% at 52% 38%, rgba(255, 210, 220, 0.22), transparent 68%),
    linear-gradient(155deg, #241820 0%, #5a4450 48%, #c4a8b0 100%);
}

.lab-panel__stage[data-lab-tone="2"] {
  background:
    radial-gradient(ellipse 65% 50% at 50% 42%, rgba(200, 220, 240, 0.24), transparent 68%),
    linear-gradient(150deg, #1a222a 0%, #445260 48%, #a8b6c4 100%);
}

.lab-panel__stage[data-lab-tone="3"] {
  background:
    radial-gradient(ellipse 65% 50% at 46% 44%, rgba(210, 240, 210, 0.22), transparent 68%),
    linear-gradient(148deg, #1a2218 0%, #445644 48%, #b0c4a8 100%);
}

.lab-panel__stage[data-lab-tone="4"] {
  background:
    radial-gradient(ellipse 65% 50% at 54% 40%, rgba(255, 230, 180, 0.24), transparent 68%),
    linear-gradient(152deg, #261e14 0%, #5c4a34 48%, #d2c0a0 100%);
}

.lab-panel__stage[data-lab-tone="5"] {
  background:
    radial-gradient(ellipse 65% 50% at 50% 42%, rgba(220, 210, 255, 0.2), transparent 68%),
    linear-gradient(146deg, #1c1828 0%, #484060 48%, #b8b0c8 100%);
}

.lab-panel__card {
  width: min(100%, 520px);
  max-height: 100%;
  overflow: auto;
  padding: clamp(24px, 3.5vw, 36px);
  background: linear-gradient(180deg, #faf8f3 0%, #ebe6da 100%);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.28);
  color: #111;
}

.lab-panel__card-kicker {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
}

.lab-panel__card-title {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.lab-panel__card-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lab-panel__card-list li {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: clamp(14px, 1.25vw, 16px);
  font-weight: 400;
  line-height: 1.55;
  color: #333;
}

.lab-panel__card-list strong {
  display: inline-block;
  min-width: 4.5em;
  margin-right: 6px;
  font-weight: 700;
  color: #111;
}

.lab-panel__cta {
  display: inline-flex;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #111;
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
  padding-bottom: 2px;
}

.lab-panel__cta:hover {
  border-bottom-color: #111;
}

@media (max-width: 980px) {
  .lab-panel__pin-track {
    height: auto;
  }

  .lab-panel__pin {
    position: relative;
    top: auto;
  }

  .lab-panel__shell {
    grid-template-columns: 1fr;
    min-height: 0;
    height: auto;
  }

  .lab-panel__nav {
    min-height: auto;
  }

  .lab-panel__tabs {
    margin: 24px 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .lab-panel__tab {
    font-size: clamp(16px, 4.5vw, 22px);
  }

  .lab-panel__stage {
    min-height: 420px;
  }
}

/* -------------------------------------------------------------------------- */
/* Project detail — Lumenis hero (interactive-ad, etc.)                        */
/* -------------------------------------------------------------------------- */

.project-page .site-header {
  background: var(--color-header-overlay);
}

.project-hero {
  position: relative;
  overflow: hidden;
  min-height: min(720px, 88svh);
  color: #fff;
}

.project-hero--ad {
  background:
    radial-gradient(ellipse 65% 50% at 50% 42%, rgba(200, 220, 240, 0.24), transparent 68%),
    linear-gradient(150deg, #1a222a 0%, #445260 48%, #a8b6c4 100%);
}

.project-hero--ad::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.06) 45%, rgba(0, 0, 0, 0.22) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.22) 100%);
  pointer-events: none;
}

.project-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--shell-max, 1440px);
  margin: 0 auto;
  padding:
    calc(var(--space-hero-pad-y, 96px) + 8px)
    var(--space-section-x, clamp(20px, 4vw, 64px))
    clamp(48px, 8vw, 88px);
}

.project-hero__back {
  display: inline-block;
  margin-bottom: clamp(20px, 3vw, 32px);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  transition: opacity 220ms ease;
}

.project-hero__back:hover {
  opacity: 0.7;
  color: #fff;
}

.project-hero__stage {
  margin: 0 0 clamp(16px, 2vw, 24px);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.project-hero__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}

.project-hero__copy {
  justify-self: start;
  max-width: 14em;
}

.project-hero__meta {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.8);
}

.project-hero__title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(32px, 4.6vw, 64px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.project-hero__tag {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.project-hero__card {
  width: min(340px, 38vw);
  max-height: min(440px, 62vh);
  padding: 18px 16px 14px;
  justify-self: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(180deg, #faf8f3 0%, #ebe6da 100%);
  color: #111;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.28);
}

.project-hero__card-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
}

.project-hero__card strong {
  font-family: var(--display);
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.project-hero__card-list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.project-hero__card-list li {
  font-family: var(--sans);
  font-size: clamp(11.5px, 1vw, 13px);
  line-height: 1.45;
  color: #333;
}

.project-hero__card-list strong {
  display: block;
  margin-bottom: 2px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #111;
}

.project-hero__kind {
  margin: 0;
  justify-self: end;
  align-self: center;
  font-family: var(--sans);
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.project-detail--lumenis {
  max-width: var(--shell-max, 52rem);
  padding:
    clamp(48px, 8vw, 80px)
    var(--space-section-x, clamp(20px, 4vw, 64px))
    clamp(80px, 12vw, 120px);
}

.project-detail--lumenis .project-detail__lead {
  max-width: 40rem;
  padding-bottom: clamp(8px, 2vw, 16px);
  border-bottom: 1px solid var(--line);
}

.project-detail--lumenis .project-detail__block .section-eyebrow {
  margin-bottom: 10px;
}

.project-detail--lumenis .project-detail__block h2 {
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.project-detail--lumenis .project-detail__figure img {
  border-radius: 2px;
  border: 1px solid var(--line);
}

.project-detail--lumenis .project-detail__table-wrap {
  border: 1px solid var(--line);
  border-radius: 2px;
}

.project-detail--lumenis .project-detail__table th {
  background: var(--color-surface);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-detail--lumenis .project-detail__table th,
.project-detail--lumenis .project-detail__table td {
  border-bottom: 1px solid var(--line);
}

@media (max-width: 980px) {
  .project-hero__row {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 24px;
  }

  .project-hero__copy {
    max-width: none;
  }

  .project-hero__card {
    width: min(320px, 100%);
    max-height: none;
    justify-self: start;
  }

  .project-hero__kind {
    justify-self: start;
  }
}

/* —— Homepage cases / more (structure only, Lumenis tokens) —— */
.cases,
.more {
  padding-inline: var(--space-section-x);
  padding-block: var(--space-section-y);
}

.case-list {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
}

.case-brief {
  max-width: 48rem;
  padding-top: clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--ink);
}

.case-brief__kind {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.case-brief__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.case-brief__meta,
.case-brief__lead,
.case-brief__demo {
  margin: 12px 0 0;
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.55;
  color: var(--muted);
}

.case-brief__lead {
  color: var(--ink);
  max-width: 40rem;
}

.case-brief__lines {
  margin: clamp(20px, 3vw, 28px) 0;
}

.case-brief__row {
  display: grid;
  grid-template-columns: minmax(88px, 140px) minmax(0, 1fr);
  gap: 12px 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.case-brief__row:last-child {
  border-bottom: 1px solid var(--line);
}

.case-brief__row dt {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.case-brief__row dd {
  margin: 0;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.55;
  color: var(--muted);
}

.case-brief .btn {
  margin-top: 8px;
}

.more-list {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px) clamp(18px, 2.8vw, 36px);
  max-width: 72rem;
  margin-top: clamp(8px, 1.5vw, 20px);
  align-items: start;
}

.more-card {
  grid-column: span 5;
  display: grid;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.more-card:nth-child(6n + 1) {
  grid-column: span 6;
  margin-top: 0;
}

.more-card:nth-child(6n + 2) {
  grid-column: span 5;
  margin-top: clamp(28px, 5vw, 64px);
}

.more-card:nth-child(6n + 3) {
  grid-column: span 4;
  margin-top: clamp(8px, 2vw, 24px);
}

.more-card:nth-child(6n + 4) {
  grid-column: span 5;
  margin-top: clamp(36px, 6vw, 72px);
}

.more-card:nth-child(6n + 5) {
  grid-column: span 6;
  margin-top: clamp(12px, 2.5vw, 32px);
}

.more-card:nth-child(6n + 6) {
  grid-column: span 4;
  margin-top: clamp(20px, 4vw, 48px);
}

.more-card:hover {
  opacity: 0.72;
}

.more-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-surface);
  border: 1px solid var(--line);
}

.more-card:nth-child(odd) .more-card__media {
  aspect-ratio: 5 / 4;
}

.more-card:nth-child(3n) .more-card__media {
  aspect-ratio: 3 / 4;
}

.more-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.more-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 160px;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.03) 0%, transparent 45%),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 10px,
      rgba(0, 0, 0, 0.025) 10px,
      rgba(0, 0, 0, 0.025) 11px
    ),
    var(--color-surface);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.more-card__placeholder span {
  padding: 8px 12px;
  border: 1px dashed rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.72);
}

.more-card__body {
  display: grid;
  gap: 6px;
  max-width: 28rem;
}

.more-card__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.more-card__note {
  margin: 0;
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.45;
  color: var(--muted);
}

@media (max-width: 900px) {
  .more-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .more-card,
  .more-card:nth-child(n) {
    grid-column: span 3;
    margin-top: 0;
  }

  .more-card:nth-child(even) {
    margin-top: clamp(20px, 4vw, 40px);
  }
}

@media (max-width: 720px) {
  .case-brief__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .more-list {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .more-card,
  .more-card:nth-child(n) {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .more-card:nth-child(even) .more-card__media {
    aspect-ratio: 4 / 3;
  }
}

/* —— Ending / Next：收束区 —— */
.ending {
  padding: clamp(72px, 12vw, 140px) var(--space-section-x);
  background:
    linear-gradient(180deg, transparent 0%, var(--color-surface-warm) 42%, var(--color-surface-warm) 100%);
}

.ending-panel {
  max-width: 920px;
  display: grid;
  gap: clamp(28px, 4vw, 44px);
}

.ending-head {
  display: grid;
  gap: 14px;
  padding-bottom: clamp(8px, 1.5vw, 16px);
  border-bottom: 1px solid var(--line);
}

.ending-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.ending-intent {
  margin: 0;
  max-width: 36rem;
  font-family: var(--sans);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.ending-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
  margin: 0;
}

.ending-fact {
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
}

.ending-fact dt {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.ending-fact dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.ending-highlights {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3vw, 28px);
  background: var(--bg);
  border: 1px solid var(--line);
}

.ending-highlights__label {
  margin: 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.ending-highlights ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
}

.ending-highlights li {
  position: relative;
  padding-left: 14px;
  font-family: var(--sans);
  font-size: clamp(14px, 1.3vw, 16px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.ending-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--ink);
}

.ending-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding-top: 4px;
}

.ending-note {
  margin: 0;
  flex: 1 1 220px;
  font-family: var(--sans);
  font-size: clamp(14px, 1.25vw, 16px);
  line-height: 1.5;
  color: var(--muted);
}

.ending .pill-link {
  margin-top: 0;
}

@media (max-width: 720px) {
  .ending-facts {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ending-fact {
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }

  .ending-fact:first-child {
    border-top: 1px solid var(--ink);
  }

  .ending-highlights ul {
    grid-template-columns: 1fr;
  }
}

/* Bottom navigation safe area - ensure last content is not obscured */
.site-footer {
  padding-bottom: max(100px, calc(80px + env(safe-area-inset-bottom, 0px)));
}

.project-detail {
  padding-bottom: max(100px, calc(80px + env(safe-area-inset-bottom, 0px)));
}

.project-detail--lumenis {
  padding-bottom: max(100px, calc(80px + env(safe-area-inset-bottom, 0px)));
}

@media (max-width: 720px) {
  .site-footer {
    padding-bottom: max(90px, calc(70px + env(safe-area-inset-bottom, 0px)));
  }

  .project-detail,
  .project-detail--lumenis {
    padding-bottom: max(90px, calc(70px + env(safe-area-inset-bottom, 0px)));
  }
}
