@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-background: #f7f4ec;
  --color-ink: #17243d;
  --color-primary: #2a6f6a;
  --color-accent: #d96c4a;
  --color-line: #d9d4c8;
  --color-muted: #68717e;
  --color-primary-tint: #e1ece9;
  --color-accent-tint: #f4e2d9;
  --font-display: "Space Grotesk", "Manrope", Arial, sans-serif;

  color: var(--color-ink);
  background: var(--color-background);
  font-family: "Space Grotesk", "Manrope", Arial, "Microsoft YaHei",
    "Source Han Sans SC", "PingFang SC", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--color-background);
  background: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

main:focus {
  outline: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 0;
  background: var(--color-background);
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: var(--color-background);
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.section-nav {
  position: fixed;
  top: 50%;
  left: 24px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(-50%);
}

.section-nav__item {
  display: flex;
  min-width: 48px;
  min-height: 24px;
  align-items: center;
  gap: 12px;
  /* 导航标签 14px／700 不属于颜色合同允许使用 #68717E 的字号区间，
     且它只在悬停时可见——悬停态直接给 ink，与激活态一致，区别靠圆点大小与填充。 */
  color: var(--color-ink);
  text-decoration: none;
}

.section-nav__dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  background: var(--color-background);
  transition: width 240ms ease-out, height 240ms ease-out, background 240ms ease-out;
}

.section-nav__label {
  opacity: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  transform: translateX(-8px);
  transition: opacity 240ms ease-out, transform 240ms ease-out;
}

.section-nav__item:hover .section-nav__label,
.section-nav__item:focus-visible .section-nav__label,
.section-nav__item.is-active .section-nav__label {
  opacity: 1;
  transform: translateX(0);
}

.section-nav__item.is-active .section-nav__dot {
  width: 12px;
  height: 12px;
  background: var(--color-primary);
}

.section-nav__item:focus-visible {
  border-radius: 4px;
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

@media (max-width: 1359px) {
  .section-nav {
    display: none;
  }
}

.page-shell {
  width: min(100%, 1328px);
  margin-inline: auto;
  padding-inline-start: max(64px, env(safe-area-inset-left));
  padding-inline-end: max(64px, env(safe-area-inset-right));
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(720px, 100svh, 880px);
  align-items: stretch;
  justify-content: center;
  padding-block: max(96px, env(safe-area-inset-top))
    max(96px, env(safe-area-inset-bottom));
  overflow: hidden;
  isolation: isolate;
}

.hero .page-shell {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}

.hero__stars {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__content {
  width: 100%;
  max-width: 680px;
}

.hero__eyebrow {
  margin: 0 0 14px;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.4;
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
  gap: 48px;
  align-items: center;
}

.is-ready .hero__eyebrow,
.is-ready .hero__title,
.is-ready .hero__statement,
.is-ready .hero__chips,
.is-ready .hero__chip,
.is-ready .primary-action {
  animation: hero-sequence 800ms ease-out var(--hero-delay) both;
}

.is-ready .hero__eyebrow {
  --hero-delay: 0ms;
}

.is-ready .hero__title {
  --hero-delay: 120ms;
}

.is-ready .hero__statement {
  --hero-delay: 280ms;
}

.is-ready .hero__chips {
  --hero-delay: 440ms;
}

/* 胶囊按序错峰 +40ms：第四个 560ms */
.is-ready .hero__chip:nth-child(1) { --hero-delay: 440ms; }
.is-ready .hero__chip:nth-child(2) { --hero-delay: 480ms; }
.is-ready .hero__chip:nth-child(3) { --hero-delay: 520ms; }
.is-ready .hero__chip:nth-child(4) { --hero-delay: 560ms; }

.is-ready .primary-action {
  --hero-delay: 720ms;
}

@keyframes hero-sequence {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-orbit {
  position: relative;
  padding: 32px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 24px;
  background: var(--color-primary-tint);
}

.hero-orbit__stage {
  position: relative;
  width: 100%;
  margin-top: 16px;
  aspect-ratio: 8 / 7;
}

.hero-orbit__globe {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
}

.hero__title,
.hero__statement {
  margin: 0;
}

.hero__title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (background-clip: text) or (-webkit-background-clip: text) {
    .hero__title {
      background: linear-gradient(
        100deg,
        var(--color-ink) 0%,
        var(--color-primary) 34%,
        var(--color-accent) 58%,
        var(--color-primary) 82%,
        var(--color-ink) 100%
      );
      background-size: 260% auto;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: brand-shimmer 7s linear infinite;
    }
  }
}

@keyframes brand-shimmer {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 260% center;
  }
}

.scroll-hint {
  align-self: flex-start;
  margin: 4px 0 0 max(64px, env(safe-area-inset-left));
  padding: 12px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0;
  animation: hero-sequence 800ms ease-out 1.4s both;
}

.scroll-hint__arrow {
  display: block;
  width: 22px;
  height: 22px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-accent);
  border-radius: 2px;
  filter: drop-shadow(0 0 8px rgba(42, 111, 106, 0.4));
  transform: rotate(45deg);
  animation: scroll-bounce 2.2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
    opacity: 0.55;
  }

  50% {
    transform: rotate(45deg) translateY(8px);
    opacity: 1;
  }
}

.hero__statement {
  max-width: 680px;
  margin-top: 24px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.015em;
}

/* 身份胶囊组：替代 v1.22 及更早的标签、身份说明与品牌关系三行独立文字。
   white-space: nowrap 是必需的 -- 缺少它时胶囊会在内部折行、文字溢出 1px 边框。 */
.hero__chips {
  display: flex;
  margin: 24px 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.hero__chip {
  padding: 8px 12px;
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.primary-action {
  display: inline-flex;
  min-width: 48px;
  min-height: 52px;
  margin-top: 32px;
  align-items: center;
  justify-content: center;
  padding-inline: 24px;
  border-radius: 12px;
  color: var(--color-background);
  background: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: filter 160ms ease-out;
}

.primary-action:hover {
  filter: brightness(0.94);
}

.primary-action:active {
  filter: brightness(0.88);
}

.primary-action:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.about {
  padding-block: 128px;
  scroll-margin-top: 24px;
}

.has-reveal-motion .about .section-title {
  opacity: 0;
  transform: translateY(40px);
}

.has-reveal-motion .about.is-visible .section-title {
  animation: section-reveal 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes section-reveal {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about__layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}

.section-title {
  margin: 0;
  grid-column: 1 / 4;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.about__content {
  grid-column: 5 / 13;
}

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

.about-timeline__node {
  position: relative;
  padding-top: 64px;
}

.has-reveal-motion .about-timeline__node {
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  transition:
    opacity 500ms cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.has-reveal-motion .about-timeline__node.is-show {
  opacity: 1;
  transform: none;
}

.about-timeline__dot {
  position: absolute;
  top: 26px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow:
    0 0 0 3px var(--color-primary-tint),
    0 0 14px rgba(42, 111, 106, 0.45);
}

/* 次要文字色 #68717E 对暖纸实测 4.494:1，低于 DESIGN.md 的 4.5:1；
   §5.2 的颜色合同同时规定它只用于 ≥24px 常规或 ≥19px 粗体。
   这里的年份是 12px／600，属于"小号辅助文字"，改用藏蓝 ink（14.09:1）。 */
.about-timeline__year {
  position: absolute;
  top: 2px;
  left: 0;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
}

.about-timeline__label {
  margin: 0;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.about-timeline__text {
  max-width: 340px;
  margin: 12px 0 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
}

.about-timeline__node:not(:last-child)::after {
  position: absolute;
  top: 31px;
  left: 10px;
  width: calc(100% + 14px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(42, 111, 106, 0.5),
    rgba(42, 111, 106, 0.18)
  );
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
}

.about-timeline__node.is-show:not(:last-child)::after {
  animation: timeline-line-grow 620ms cubic-bezier(0.16, 1, 0.3, 1) 260ms both;
}

.about-timeline__node:not(:last-child)::before {
  position: absolute;
  top: 27px;
  left: 12px;
  width: 32px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(217, 108, 74, 0.9)
  );
  box-shadow: 0 0 12px rgba(217, 108, 74, 0.55);
  content: "";
  filter: blur(0.4px);
  opacity: 0;
  pointer-events: none;
}

.about-timeline__node.is-show:not(:last-child)::before {
  animation: timeline-sweep 1.5s cubic-bezier(0.22, 1, 0.36, 1) 300ms both;
}

@keyframes timeline-line-grow {
  to {
    transform: scaleX(1);
  }
}

@keyframes timeline-sweep {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }

  14% {
    opacity: 0.95;
  }

  82% {
    opacity: 0.95;
  }

  100% {
    opacity: 0;
    transform: translateX(calc(100% - 28px));
  }
}

.about-quote {
  margin: 64px 0 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.7;
  text-align: center;
}

.has-reveal-motion .about-quote {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 600ms ease 120ms,
    transform 600ms cubic-bezier(0.16, 1, 0.3, 1) 120ms;
}

.has-reveal-motion .about-quote.is-show {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (background-clip: text) or (-webkit-background-clip: text) {
    .about-quote {
      background: linear-gradient(
        100deg,
        var(--color-primary) 0%,
        var(--color-accent) 55%,
        var(--color-primary) 100%
      );
      background-size: 220% auto;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: brand-shimmer 8s linear infinite;
    }
  }
}

.workflow,
.creation {
  padding-block: 128px;
  scroll-margin-top: 24px;
}

.has-reveal-motion .workflow .section-title,
.has-reveal-motion .project-card {
  opacity: 0;
  transform: translateY(40px);
}

.has-reveal-motion .workflow.is-visible .section-title,
.has-reveal-motion .workflow.is-visible .project-card {
  animation: section-reveal 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.has-reveal-motion .workflow.is-visible .project-card:nth-child(1) {
  animation-delay: 150ms;
}

.has-reveal-motion .workflow.is-visible .project-card:nth-child(2) {
  animation-delay: 300ms;
}

.has-reveal-motion .workflow.is-visible .project-card:nth-child(3) {
  animation-delay: 450ms;
}

.section-title--standalone {
  max-width: 720px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.project-card {
  --card-rgb: 42, 111, 106;
  position: relative;
  min-height: 340px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid rgba(var(--card-rgb), 0.18);
  border-radius: 16px;
  background:
    linear-gradient(90deg, transparent, rgba(var(--card-rgb), 0.5) 50%, transparent) top /
      100% 2px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(247, 244, 236, 0.4)),
    rgba(var(--card-rgb), 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 44px rgba(23, 36, 61, 0.07);
}

.project-grid .project-card:nth-child(2) {
  --card-rgb: 217, 108, 74;
}

.project-grid .project-card:nth-child(3) {
  --card-rgb: 23, 36, 61;
}

.project-card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(var(--card-rgb), 0.1) 48%,
    rgba(255, 255, 255, 0.55) 53%,
    rgba(var(--card-rgb), 0.1) 59%,
    transparent 66%
  );
  background-size: 260% 100%;
  background-position: 210% 0;
  content: "";
  pointer-events: none;
}

.project-card:hover::after {
  animation: card-sweep 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes card-sweep {
  from {
    background-position: 210% 0;
  }

  to {
    background-position: -60% 0;
  }
}

.project-card__number,
.project-card__title,
.project-card__text {
  margin: 0;
}

.project-card__number {
  color: rgb(var(--card-rgb));
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.project-card__title {
  margin-top: 16px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.project-card__text {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
}

.workflow-card__blurb {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.75;
}

.workflow-card .artifact-flow {
  margin-top: 32px;
}

.contact {
  /* 底部留白为站内签名与页脚署名预留空间；整段高度须容纳在一屏内，
     否则滚动到底时底部内容会被推出视口（v1.21 实测 926px > 900px 即出现遮挡）。 */
  padding-block: 72px 44px;
  scroll-margin-top: 24px;
}

.has-reveal-motion .contact__content,
.has-reveal-motion .contact__cards,
.has-reveal-motion .contact-card {
  opacity: 0;
  transform: translateY(40px);
}

.has-reveal-motion .contact.is-visible .contact__content,
.has-reveal-motion .contact.is-visible .contact__cards,
.has-reveal-motion .contact.is-visible .contact-card {
  animation: section-reveal 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.has-reveal-motion .contact.is-visible .contact-card {
  animation-delay: 120ms;
}

/* v1.18 终章屏：标题与卡片阵列等收敛层淡出后依次绽放。
   注意 .contact__popups 不参与入场动画：它一旦带 transform 就会成为
   下面 position: absolute 弹层的包含块，弹层将无法按卡片定位。 */
.has-reveal-motion .contact.is-visible.is-converging:has(.contact__convergence.is-converging) .contact__content,
.has-reveal-motion .contact.is-visible.is-converging:has(.contact__convergence.is-converging) .contact__cards,
.has-reveal-motion .contact.is-visible.is-converging:has(.contact__convergence.is-converging) .contact-card {
  animation-delay: 2450ms;
}

.has-reveal-motion .contact.is-visible.is-converging:has(.contact__convergence.is-converging) .contact-card {
  animation-delay: 2570ms;
}

.has-reveal-motion .contact.is-visible .contact-card:nth-child(1) {
  animation-delay: 120ms;
}

.has-reveal-motion .contact.is-visible .contact-card:nth-child(2) {
  animation-delay: 200ms;
}

.has-reveal-motion .contact.is-visible .contact-card:nth-child(3) {
  animation-delay: 280ms;
}

.has-reveal-motion .contact.is-visible.is-converging:has(.contact__convergence.is-converging) .contact-card:nth-child(1) {
  animation-delay: 2570ms;
}

.has-reveal-motion .contact.is-visible.is-converging:has(.contact__convergence.is-converging) .contact-card:nth-child(2) {
  animation-delay: 2660ms;
}

.has-reveal-motion .contact.is-visible.is-converging:has(.contact__convergence.is-converging) .contact-card:nth-child(3) {
  animation-delay: 2750ms;
}

/* 悬停、键盘聚焦（:focus-within）即从卡片下方翻下（对齐参考站手法：
   rotateX 由 80deg 回到 0 + 轻微回弹）。纯 CSS，不依赖脚本。
   键盘缺陷修复：只判断 `.contact-card:focus-within` 时，焦点继续前进到弹层
   内部的邮箱链接后，卡片已失焦、弹层随即隐藏，键盘用户无法真正选中地址；
   因此补上"焦点位于弹层内部"这一条，弹层在整条键盘路径上保持可见。 */
.contact__cards:has(.contact-card[data-contact-kind="wechat"]:hover) ~ .contact__popups .contact-popup[data-contact-for="wechat"],
.contact__cards:has(.contact-card[data-contact-kind="email"]:hover) ~ .contact__popups .contact-popup[data-contact-for="email"],
.contact__cards:has(.contact-card[data-contact-kind="wechat"]:focus-within) ~ .contact__popups .contact-popup[data-contact-for="wechat"],
.contact__cards:has(.contact-card[data-contact-kind="email"]:focus-within) ~ .contact__popups .contact-popup[data-contact-for="email"],
.contact__popups:has(.contact-popup[data-contact-for="wechat"]:focus-within) .contact-popup[data-contact-for="wechat"],
.contact__popups:has(.contact-popup[data-contact-for="email"]:focus-within) .contact-popup[data-contact-for="email"] {
  opacity: 1;
  visibility: visible;
  transform: perspective(760px) rotateX(0deg);
  pointer-events: auto;
}

/* 触屏没有悬停：手机上弹层常驻展示（见文件末尾的宽度阈值规则）。 */

/* 收敛层：纯装饰，默认隐藏；只有脚本为它加上 is-converging 才播放。 */
.contact__convergence {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  visibility: hidden;
  opacity: 0;
  place-items: center;
  pointer-events: none;
}

.contact__convergence-svg {
  width: 100%;
  height: 100%;
  max-height: 100%;
}

.contact__convergence-dot {
  transform-box: fill-box;
  transform-origin: center;
}

.contact__convergence-dot--primary {
  fill: var(--color-primary);
}

.contact__convergence-dot--accent {
  fill: var(--color-accent);
}

.contact__convergence-point {
  fill: var(--color-primary);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.contact__convergence.is-converging {
  visibility: visible;
  animation: contact-convergence-layer 2450ms ease both;
}

.contact__convergence.is-converging .contact__convergence-dot {
  animation: contact-convergence-dot 700ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.contact__convergence.is-converging .contact__convergence-dot:nth-of-type(1) {
  animation-delay: 100ms;
}

.contact__convergence.is-converging .contact__convergence-dot:nth-of-type(2) {
  animation-delay: 170ms;
}

.contact__convergence.is-converging .contact__convergence-dot:nth-of-type(3) {
  animation-delay: 240ms;
}

.contact__convergence.is-converging .contact__convergence-dot:nth-of-type(4) {
  animation-delay: 310ms;
}

.contact__convergence.is-converging .contact__convergence-dot:nth-of-type(5) {
  animation-delay: 380ms;
}

.contact__convergence.is-converging .contact__convergence-point {
  animation: contact-convergence-point 2100ms cubic-bezier(0.16, 1, 0.3, 1) 900ms both;
}

@keyframes contact-convergence-layer {
  0%,
  81.6% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes contact-convergence-dot {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.6);
  }

  22% {
    opacity: 1;
  }

  72% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: translate(var(--dot-x), var(--dot-y)) scale(0.5);
  }
}

@keyframes contact-convergence-point {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  14% {
    opacity: 1;
    transform: scale(1.5);
  }

  26% {
    transform: scale(1);
  }

  58% {
    transform: scale(1.26);
  }

  74% {
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(0.68);
  }
}

.has-reveal-motion .creation .section-title,
.has-reveal-motion .creation__lead,
.has-reveal-motion .work-card {
  opacity: 0;
  transform: translateY(40px);
}

.has-reveal-motion .creation.is-visible .section-title,
.has-reveal-motion .creation.is-visible .creation__lead,
.has-reveal-motion .creation.is-visible .work-card {
  animation: section-reveal 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* 作品卡是用户点进来就要点的元素，因此它先出现（120ms），说明文字随后。
   注意 section-reveal 的起始关键帧带 pointer-events: none，
   卡片必须比说明更早可点 —— 这里给卡片最小延迟。 */
.has-reveal-motion .creation.is-visible .work-card {
  animation-delay: 120ms;
}

.has-reveal-motion .creation.is-visible .creation__lead {
  animation-delay: 300ms;
}

.evidence-tag {
  width: fit-content;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--color-primary);
  background: var(--color-background);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.creation__panel {
  max-width: 720px;
}

.creation__panel .section-title {
  margin: 24px 0 0;
}

.creation__lead {
  max-width: 560px;
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 1.75;
}

/* 作品卡：参考站的作品区是卡片阵列，但本站目前只有一个作品；
   单卡横排会空出 3/4 屏，因此改为**单卡居中**，整卡可点即播放。
   卡内顺序：圆点播放键 → 作品名（38px，本屏第一视觉重心）→ 来源 → 状态文字。 */
.work-card {
  margin-top: 32px;
}

.work-card__action {
  display: flex;
  width: min(100%, 520px);
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 32px 36px;
  border: 1px solid rgba(42, 111, 106, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 240ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card__action:hover {
  border-color: rgba(42, 111, 106, 0.5);
  box-shadow: 0 14px 40px rgba(23, 36, 61, 0.1);
  transform: translateY(-4px);
}

.work-card__action:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

/* 圆形播放键：与终章卡片同族（圆 + 主色填充），但这里是"可播放"的信号。 */
.work-card__glyph {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 50%;
  color: var(--color-background);
  background: var(--color-primary);
}

.work-card__icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.work-card__icon--pause {
  display: none;
}

.work-card.is-playing .work-card__icon--play {
  display: none;
}

.work-card.is-playing .work-card__icon--pause {
  display: block;
}

.work-card__name {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.work-card__meta {
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.work-card__cta {
  margin-top: 20px;
  padding: 8px 14px;
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.work-card.is-playing .work-card__cta {
  color: var(--color-background);
  background: var(--color-primary);
}

/* 失败态：播放键转灰，但整卡仍可点（可重试）。原先 is-error 置位后点击直接
   return，提示却写"请稍后重试"，用户没有重试路径；现在失败只表示"这次没成功"。 */
.work-card.is-error .work-card__glyph {
  background: var(--color-muted);
}

.creation__error {
  display: flex;
  margin: 16px 0 0;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-size: 14px;
  line-height: 1.6;
}

/* 必须显式覆盖 hidden：该元素的 display: flex 与 `hidden` 属性优先级相同时会赢，
   未失败时错误提示也会一直显示。 */
.creation__error[hidden] {
  display: none;
}

.creation__retry {
  padding: 4px 10px;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  color: var(--color-accent);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.creation__retry:hover {
  background: rgba(217, 108, 74, 0.08);
}

.creation__audio {
  display: none;
}

.artifact-flow {
  display: flex;
  margin-top: 32px;
  align-items: center;
  gap: 8px;
}

.artifact-flow span {
  flex: 0 1 auto;
  padding: 8px;
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  background: var(--color-background);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.artifact-flow i {
  flex: 1 1 16px;
  height: 2px;
  background: var(--color-primary);
}

.contact__panel {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
  padding: 64px;
  border-radius: 32px;
  background: var(--color-primary-tint);
}

/* v1.18 终章屏：居中的标题 + 卡片阵列，对齐 stormzhang 的「在这里找到我」结构，
   但配色沿用本站暖纸青绿，不迁移参考站的深色宇宙与荧光青。 */
.contact__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact__content .section-title {
  grid-column: auto;
  margin: 24px 0 0;
}

.contact__cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.contact-card {
  display: flex;
  width: 112px;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 8px 4px;
  border: 0;
  border-radius: 16px;
  color: var(--color-ink);
  background: transparent;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 300ms ease,
    transform 300ms ease;
}

/* 图标圈：去衬底后直接落在暖纸背景上，边框改为可见但不喧宾的透明度。
   该圆环为纯装饰（图标与标签已充分表达语义），按 WCAG 1.4.11 装饰元素豁免，
   故不强求 3:1；图标本身对暖纸为 5.34:1。 */
.contact-card__icon {
  position: relative;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(42, 111, 106, 0.55);
  border-radius: 50%;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.55);
  transition:
    border-color 300ms ease,
    box-shadow 300ms ease,
    background-color 300ms ease;
}

/* 悬停光晕（v1.21，对齐参考站）：圈体起光晕 + 外扩脉冲光环 + 图标提亮。 */
.contact-card__icon::after {
  position: absolute;
  border: 1px solid transparent;
  border-radius: 50%;
  content: "";
  inset: 0;
  pointer-events: none;
}

.contact-card__icon svg {
  opacity: 0.8;
  transition: opacity 300ms ease;
}

.contact-card:hover .contact-card__icon {
  border-color: rgba(42, 111, 106, 0.85);
  background: rgba(42, 111, 106, 0.08);
  box-shadow: 0 0 20px rgba(42, 111, 106, 0.25);
}

.contact-card:hover .contact-card__icon svg {
  opacity: 1;
}

.contact-card:focus-visible .contact-card__icon {
  border-color: rgba(42, 111, 106, 0.85);
  box-shadow: 0 0 20px rgba(42, 111, 106, 0.25);
}

/* 三张卡片错峰漂浮（v1.21，对齐参考站 contactFloat）。
   漂浮挂在 <li> 上、悬停位移挂在卡片自身：两者都用 transform，
   若同挂一个元素，动画会覆盖悬停位移（参考站即有此问题）。 */
@media (prefers-reduced-motion: no-preference) {
  .contact__cards > li {
    animation: contact-card-float 4s ease-in-out infinite;
  }

  .contact__cards > li:nth-child(2) {
    animation-duration: 4.5s;
    animation-delay: 0.6s;
  }

  .contact__cards > li:nth-child(3) {
    animation-duration: 3.8s;
    animation-delay: 1.2s;
  }

  .contact-card:hover .contact-card__icon::after {
    animation: contact-icon-ripple 1.5s ease-out infinite;
  }
}

@keyframes contact-card-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes contact-icon-ripple {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

@media (hover: hover) and (pointer: fine) {
  .contact-card:hover {
    color: var(--color-primary);
    transform: translateY(-4px);
  }
}

.contact-card:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* 弹层锚点：它本身必须占据卡片行下方的真实高度，绝对定位的弹层才能用
   「top: 0」落到卡片下方；用 inset-inline: 0 + margin auto 居中，
   不使用 transform 居中，把 transform 留给「翻下」动效。
   容器不得带 transform / filter（会成为弹层包含块），也不得参与入场动画。 */
.contact__popups {
  position: relative;
  width: 100%;
  /* 锚点高度即弹层可用高度：略收紧以在卡片与弹层之间留出吸附间隙
     （卡片漂浮会上下移动，间隙过小可能导致指针移向弹层时抖动）。 */
  height: 210px;
  margin-top: 24px;
}

/* 弹层从卡片下方翻下（v1.19）：起点 rotateX(80deg)、透明度 0、不可交互，
   在悬停或键盘聚焦时回到 rotateX(0) 并显示。 */
.contact-popup {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  left: 0;
  width: 260px;
  margin-inline: auto;
  opacity: 0;
  visibility: hidden;
  transform: perspective(760px) rotateX(80deg);
  transform-origin: center top;
  pointer-events: none;
  transition:
    opacity 280ms ease,
    transform 420ms cubic-bezier(0.34, 1.4, 0.64, 1),
    visibility 280ms;
}

.contact-popup[hidden] {
  display: none;
}.contact-popup__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(42, 111, 106, 0.2);
  border-radius: 16px;
  /* 去衬底后弹层需要与页面背景分离，使用极轻阴影而非重投影。 */
  background: var(--color-background);
  box-shadow: 0 10px 28px rgba(23, 36, 61, 0.08);
}

.contact-popup img {
  width: 200px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.contact-popup__caption {
  margin: 12px 0 0;
  color: var(--color-ink);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.contact-popup__value {
  margin-top: 8px;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 1px solid rgba(42, 111, 106, 0.4);
  transition: border-color 200ms ease;
}

/* 邮箱弹层原为与二维码弹层相同的 `260px` 宽、且文案 `16px`，
   30 字符的地址在 @ 后被迫折行成"…@gmai / l.com"，视觉上像断词。
   邮箱弹层单独放宽到 `360px` 并收到 `15px`：预留约 `304px` 内容宽，
   实测地址单行宽约 `284px`，留约 `20px` 余量，不依赖 overflow-wrap 兜底。
   二维码弹层保持 `260px`（其内容为固定 `200px` 图片，放宽无意义）。 */
.contact-popup[data-contact-for="email"] {
  width: 360px;
}

.contact-popup[data-contact-for="email"] .contact-popup__value {
  font-size: 15px;
}

.contact-popup__value:hover {
  border-bottom-color: var(--color-accent);
}

.contact-popup__value:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.site-signature {
  margin: 24px 0 0;
  color: var(--color-ink);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

/* v1.19 页脚署名：紧接站内签名之下，作为整站收尾。
   用相对定位而非绝对定位，避免与签名互相压叠。
   透明度取 0.65：实测对暖纸 4.75:1，达普通文本 4.5:1 要求（0.55 时为 3.52:1 不达标）。 */
.site-copyright {
  position: relative;
  margin: 12px 0 0;
  color: rgba(23, 36, 61, 0.65);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (background-clip: text) or (-webkit-background-clip: text) {
    .site-signature {
      background: linear-gradient(
        90deg,
        var(--color-ink) 0%,
        var(--color-primary) 42%,
        var(--color-accent) 62%,
        var(--color-ink) 100%
      );
      background-size: 240% auto;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: brand-shimmer 9s linear infinite;
    }
  }
}

.error-page {
  overflow-x: hidden;
}

.error-page__main {
  display: flex;
  min-height: 100svh;
  align-items: center;
  padding-block: 64px;
}

.error-card {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
  padding: 64px;
  border: 1px solid var(--color-line);
  border-radius: 32px;
  background: var(--color-primary-tint);
}

.error-card__copy {
  grid-column: 1 / 7;
}

.error-card__title {
  margin: 32px 0 0;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.error-card__text {
  max-width: 520px;
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 1.75;
}

.error-card__graphic {
  grid-column: 8 / 13;
  width: 100%;
}

@media (min-width: 1024px) {
  /* 默认整屏分页（mandatory）：早前试过 `y proximity` 作为默认值，
     但那也取消了整屏分页感 —— proximity 不会把停在两屏之间的滚动位置吸到整屏，
     手感变成"滚到中间也不跳下一页"。
     这里保留 `y mandatory`，只有在**当前视口下确实存在高于视口的段落**时，
     才由脚本临时降级为 proximity（见 script.js 的 syncSnapFit），两种诉求各自成立。 */
  html {
    scroll-snap-type: y mandatory;
  }

  .hero,
  .about,
  .workflow,
  .creation,
  .contact {
    display: flex;
    min-height: 100svh;
    align-items: center;
    scroll-margin-top: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* 高于视口的段落不强停：`scroll-snap-stop: always` 会把段落钉在顶端，
     段内内容滚不进去。`.section--tall` 由脚本按实测高度添加；
     配合脚本降级出的 `proximity` 后，这些段落可以自由滚过。
     注意：**不能**改成 `scroll-snap-align: none` —— 那样该段不再是吸附点，
     在强制吸附下会被自动拉到相邻点，锚点直接失效。修法必须是"弱吸附 + 取消强停"。 */
  .section--tall {
    scroll-snap-stop: normal;
  }
}

@media (max-width: 1023px) {
  .section-nav {
    display: none;
  }

  .page-shell {
    padding-inline-start: max(48px, env(safe-area-inset-left));
    padding-inline-end: max(48px, env(safe-area-inset-right));
  }

  .hero {
    padding-block: max(96px, env(safe-area-inset-top))
      max(96px, env(safe-area-inset-bottom));
  }

  .hero__content {
    width: min(100%, 760px);
  }

  .hero__layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-orbit {
    width: min(100%, 640px);
  }

  .about {
    padding-block: 96px;
  }

  .about__layout {
    display: block;
  }

  .about__content {
    margin-top: 48px;
  }

  .workflow,
  .creation {
    padding-block: 96px;
  }

  .contact {
    padding-block: 96px;
  }

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

  .project-card {
    min-height: 0;
    padding: 24px;
  }

  .contact__panel {
    display: flex;
    padding: 48px;
  }

  .error-card {
    display: block;
    padding: 48px;
  }

  .error-card__graphic {
    width: min(100%, 560px);
    margin-top: 48px;
  }
}

@media (max-width: 767px) {
  .page-shell {
    padding-inline-start: max(24px, env(safe-area-inset-left));
    padding-inline-end: max(24px, env(safe-area-inset-right));
  }

  .scroll-hint {
    margin-left: max(24px, env(safe-area-inset-left));
  }

  .hero {
    min-height: 640px;
    padding-block: max(64px, env(safe-area-inset-top))
      max(64px, env(safe-area-inset-bottom));
  }

  .hero__layout {
    gap: 32px;
  }

  .hero-orbit {
    padding: 24px;
    border-radius: 16px;
  }

  .hero__stars {
    opacity: 0.72;
  }

  .hero__title {
    font-size: 44px;
    line-height: 1.12;
    letter-spacing: -0.035em;
  }

  .hero__statement {
    font-size: 20px;
    line-height: 1.55;
  }

  .hero__chip {
    padding: 6px 10px;
    font-size: 14px;
  }

  .about {
    padding-block: 64px;
  }

  .workflow,
  .creation {
    padding-block: 64px;
  }

  .contact {
    padding-block: 64px;
  }

  .section-title {
    font-size: 28px;
    line-height: 1.3;
  }

  .about__content {
    margin-top: 32px;
  }

  .about-timeline__text {
    font-size: 16px;
    line-height: 1.75;
  }

  .project-grid {
    margin-top: 32px;
  }

  .project-card__title {
    font-size: 20px;
    line-height: 1.4;
  }

  .project-card__text {
    font-size: 16px;
    line-height: 1.75;
  }

  .workflow-card__blurb {
    font-size: 16px;
    line-height: 1.75;
  }

  /* 作品卡在手机上收窄内边距，字号同步下调，避免 38px 作品名折行。 */
  .work-card__action {
    padding: 24px 22px;
  }

  .work-card__glyph {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
  }

  .work-card__name {
    font-size: 28px;
  }

  .work-card__cta {
    margin-top: 16px;
  }

  .creation__error {
    margin-left: 0;
  }

  .artifact-flow {
    gap: 4px;
  }

  .artifact-flow span {
    flex: 1 1 0;
    padding: 8px 4px;
  }

  .artifact-flow i {
    flex-basis: 8px;
  }

  .contact__panel {
    padding: 24px;
    border-radius: 24px;
  }

  .contact__cards {
    gap: 20px;
    margin-top: 40px;
  }

  .contact-card {
    width: 96px;
    gap: 12px;
  }

  .contact-card__icon {
    width: 56px;
    height: 56px;
  }

  .error-page__main {
    padding-block: 24px;
  }

  .error-card {
    padding: 32px 24px;
    border-radius: 24px;
  }

  .error-card__title {
    margin-top: 24px;
    font-size: 40px;
  }

  .error-card__text {
    font-size: 16px;
  }

  .error-card__graphic {
    margin-top: 32px;
  }

  .primary-action {
    min-height: 48px;
  }
}

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

  .is-ready .hero__title,
  .is-ready .hero__statement,
  .is-ready .hero__chips,
  .is-ready .hero__chip,
  .is-ready .primary-action {
    animation: none;
  }

  .has-reveal-motion .about .section-title,
  .has-reveal-motion .about-timeline__node,
  .has-reveal-motion .about-quote {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .has-reveal-motion .workflow .section-title,
  .has-reveal-motion .project-card,
  .has-reveal-motion .creation .section-title,
  .has-reveal-motion .creation__lead,
  .has-reveal-motion .work-card,
  .has-reveal-motion .contact__content,
  .has-reveal-motion .contact__cards,
  .has-reveal-motion .contact-card {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .contact__convergence {
    display: none;
    animation: none;
  }

  .contact__convergence.is-converging .contact__convergence-dot,
  .contact__convergence.is-converging .contact__convergence-point {
    animation: none;
  }

  .contact-card,
  .contact-card__icon {
    transition: none;
  }

  .primary-action {
    transition: none;
  }
}

/* ========================================
   v1.3 — Warm paper cosmos
   ======================================== */

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

.cosmos-grain {
  position: fixed;
  z-index: 1;
  inset: -24%;
  width: 148%;
  height: 148%;
  background:
    radial-gradient(ellipse at 18% 30%, rgba(42, 111, 106, 0.16), transparent 42%),
    radial-gradient(ellipse at 78% 18%, rgba(217, 108, 74, 0.11), transparent 38%),
    radial-gradient(ellipse at 62% 82%, rgba(42, 111, 106, 0.13), transparent 46%);
  animation: warm-nebula-drift 28s ease-in-out infinite alternate;
  pointer-events: none;
}

.cosmos-grain::after {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  content: "";
  opacity: 0.055;
}

@keyframes warm-nebula-drift {
  0% {
    transform: translate3d(-2%, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(3%, -2%, 0) scale(1.035);
  }

  100% {
    transform: translate3d(-1%, 3%, 0) scale(0.985);
  }
}

main {
  position: relative;
  z-index: 2;
}

.page-shell {
  position: relative;
  z-index: 3;
}

.hero,
.about,
.workflow,
.creation,
.contact {
  background: transparent;
}

.about,
.workflow,
.creation,
.contact {
  position: relative;
  isolation: isolate;
}

.about::before,
.workflow::before,
.creation::before,
.contact::before {
  position: absolute;
  z-index: 2;
  top: -1px;
  right: 5%;
  left: 5%;
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(42, 111, 106, 0.5) 18%,
    rgba(217, 108, 74, 0.76) 50%,
    rgba(42, 111, 106, 0.5) 82%,
    transparent
  );
  box-shadow:
    0 -2px 24px 5px rgba(42, 111, 106, 0.2),
    0 4px 64px 16px rgba(217, 108, 74, 0.09);
  content: "";
  pointer-events: none;
}

.about::after,
.workflow::after,
.creation::after,
.contact::after {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  height: 180px;
  background: radial-gradient(
    ellipse 72% 100% at 50% 0%,
    rgba(42, 111, 106, 0.12),
    rgba(217, 108, 74, 0.045) 42%,
    transparent 100%
  );
  content: "";
  pointer-events: none;
}

.section-nav::before {
  position: absolute;
  z-index: 2;
  top: calc(var(--nav-progress, 0) * 40px + 6px);
  left: calc((12px - var(--nav-indicator-width, 12px)) / 2);
  width: var(--nav-indicator-width, 12px);
  height: var(--nav-indicator-height, 12px);
  border-radius: var(--nav-indicator-radius, 50%);
  background: var(--color-primary);
  box-shadow:
    0 0 0 3px rgba(247, 244, 236, 0.72),
    0 0 18px rgba(42, 111, 106, 0.42);
  content: "";
  transform: translateY(-2px);
  pointer-events: none;
}

.section-nav__item.is-active .section-nav__dot {
  background: transparent;
}

.workflow .page-shell {
  isolation: isolate;
}

.workflow-constellation {
  position: absolute;
  z-index: -1;
  top: 72px;
  left: 50%;
  width: min(1120px, calc(100% - 96px));
  height: auto;
  opacity: 0.5;
  transform: translateX(-50%);
  pointer-events: none;
}

.workflow-constellation__route,
.workflow-constellation__cluster path {
  fill: none;
  stroke: rgba(42, 111, 106, 0.42);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.workflow-constellation__cluster {
  opacity: 0;
}

.workflow-constellation__cluster circle {
  fill: var(--color-background);
  stroke: var(--color-primary);
  stroke-width: 3;
}

.workflow-constellation__meteor {
  fill: var(--color-accent);
  filter: drop-shadow(0 0 10px rgba(217, 108, 74, 0.72));
  opacity: 0;
}

.workflow.is-visible .workflow-constellation__route,
.workflow.is-visible .workflow-constellation__cluster path {
  animation:
    constellation-line-draw 2.6s cubic-bezier(0.16, 1, 0.3, 1) both,
    constellation-line-flow 1.5s linear 2.6s infinite;
}

.workflow.is-visible .workflow-constellation__cluster {
  animation: constellation-cluster-enter 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.workflow.is-visible .workflow-constellation__cluster--one {
  animation-delay: 420ms;
}

.workflow.is-visible .workflow-constellation__cluster--two {
  animation-delay: 980ms;
}

.workflow.is-visible .workflow-constellation__cluster--three {
  animation-delay: 1540ms;
}

.workflow.is-visible .workflow-constellation__meteor {
  offset-path: path("M80 260 C190 110 310 104 402 254 S610 398 706 252 S920 100 1120 256");
  animation: constellation-meteor-sweep 3.2s ease-in-out 180ms both;
}

@keyframes constellation-line-draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* v1.9：参考站同款「星座连线持续流动」——描线完成后细虚线无限流动。
   pathLength 归一化到 1，dash 段取 1.2%（约 12–14px 视觉段长），
   dashoffset 循环一个周期（0.024）实现无缝流动。 */
@keyframes constellation-line-flow {
  from {
    stroke-dasharray: 0.012 0.012;
    stroke-dashoffset: 0;
  }

  to {
    stroke-dasharray: 0.012 0.012;
    stroke-dashoffset: -0.024;
  }
}

@keyframes constellation-cluster-enter {
  from {
    opacity: 0;
    transform: scale(0.64);
    transform-origin: center;
  }

  to {
    opacity: 1;
    transform: scale(1);
    transform-origin: center;
  }
}

@keyframes constellation-meteor-sweep {
  0% {
    opacity: 0;
    offset-distance: 0%;
  }

  8%,
  90% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    offset-distance: 100%;
  }
}

.project-card {
  position: relative;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 360ms ease,
    box-shadow 360ms ease;
}

/* v1.20 去衬底：终章屏不再使用青绿浅底面板，内容直接落在暖纸背景上
   （对齐参考站"无容器"的版式）。因此也不再有 backdrop-filter 与面板装饰线。 */
.contact__panel {
  position: relative;
  display: flex;
  overflow: hidden;
  /* 随视口缩放：固定 min-height 会在矮视口（720/768）把整段撑过一屏，
     导致滚动到底时底部签名与页脚署名被推出视口。 */
  min-height: min(520px, calc(100svh - 250px));
  align-items: center;
  justify-content: center;
  background: transparent;
}

/* 面板原有两条斜向装饰线随衬底一并移除（v1.20）。 */

.contact__content {
  position: relative;
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
  .project-grid:hover .project-card:not(:hover) {
    opacity: 0.62;
    transform: scale(0.975);
  }

  .project-card:hover {
    z-index: 4;
    box-shadow: 0 22px 64px rgba(23, 36, 61, 0.14);
    transform: translateY(-14px) scale(1.02);
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .has-reveal-motion .workflow.is-visible .project-card {
    animation:
      section-reveal 800ms cubic-bezier(0.16, 1, 0.3, 1) both,
      card-idle-float 6.2s ease-in-out 1.6s infinite;
  }

  .has-reveal-motion .workflow.is-visible .project-card:nth-child(2) {
    animation-delay: 300ms, 2.2s;
  }

  .has-reveal-motion .workflow.is-visible .project-card:nth-child(3) {
    animation-delay: 450ms, 2.9s;
  }

  .has-reveal-motion .workflow.is-visible .project-card:nth-child(1) {
    animation-delay: 150ms, 1.6s;
  }
}

@keyframes card-idle-float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -10px;
  }
}

@media (max-width: 1023px) {
  .workflow-constellation {
    top: 150px;
    width: calc(100% - 48px);
    opacity: 0.34;
  }
}

@media (max-width: 767px) {
  .cosmos-grain {
    animation-duration: 36s;
  }

  .about-timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-timeline__node {
    padding-top: 48px;
    padding-left: 44px;
  }

  /* 序号、圆点与标题同一行对应：01 ● 临床医生 */
  .about-timeline__year {
    top: 51px;
    left: 0;
  }

  .about-timeline__dot {
    top: 54px;
    left: 28px;
  }

  .about-timeline__node:not(:last-child)::after {
    top: 64px;
    right: auto;
    bottom: -32px;
    left: 32px;
    width: 2px;
    height: auto;
    border-radius: 999px;
    background: linear-gradient(
      180deg,
      rgba(42, 111, 106, 0.5),
      rgba(42, 111, 106, 0.18)
    );
    transform: scaleY(0);
    transform-origin: top center;
  }

  .about-timeline__node.is-show:not(:last-child)::after {
    animation: timeline-line-grow-v 620ms cubic-bezier(0.16, 1, 0.3, 1) 260ms both;
  }

  .about-timeline__node:not(:last-child)::before {
    top: 68px;
    right: auto;
    left: 36px;
    width: 10px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(
      180deg,
      transparent,
      rgba(217, 108, 74, 0.9)
    );
    transform: translateY(-20px);
  }

  .about-timeline__node.is-show:not(:last-child)::before {
    animation: timeline-sweep-v 1.5s cubic-bezier(0.22, 1, 0.36, 1) 300ms both;
  }

  .about-quote {
    margin-top: 40px;
    font-size: 18px;
    letter-spacing: 0.08em;
  }
}

@keyframes timeline-line-grow-v {
  to {
    transform: scaleY(1);
  }
}

@keyframes timeline-sweep-v {
  0% {
    opacity: 0;
    transform: translateY(-16px);
  }

  14% {
    opacity: 0.95;
  }

  82% {
    opacity: 0.95;
  }

  100% {
    opacity: 0;
    transform: translateY(calc(100% + 40px));
  }
}

@media (max-width: 767px) {
  .about::before,
  .workflow::before,
  .creation::before,
  .contact::before {
    right: 12%;
    left: 12%;
  }

  .about::after,
  .workflow::after,
  .creation::after,
  .contact::after {
    height: 112px;
  }

  .workflow-constellation {
    top: 180px;
    width: calc(100% - 24px);
    opacity: 0.3;
  }

  .contact__panel::before,
  .contact__panel::after {
    width: 94%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cosmos-grain,
  .about-timeline__node:not(:last-child)::after,
  .about-timeline__node:not(:last-child)::before,
  .about-quote,
  .hero__title,
  .workflow.is-visible .workflow-constellation__route,
  .workflow.is-visible .workflow-constellation__cluster,
  .workflow.is-visible .workflow-constellation__cluster path,
  .workflow.is-visible .workflow-constellation__meteor,
  .scroll-hint__arrow {
    animation: none !important;
  }

  .about-timeline__node,
  .about-quote {
    opacity: 1;
    transform: none;
  }

  .workflow-constellation__route,
  .workflow-constellation__cluster path {
    stroke-dashoffset: 0;
  }

  .workflow-constellation__cluster {
    opacity: 1;
    transform: none;
  }

  .project-card {
    transition: none;
    translate: none;
  }
}

/* v1.3 large floating globe — independently rendered */
.hero-orbit--floating {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 560px;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.hero-orbit--floating .hero-orbit__stage {
  width: 100%;
  min-width: 0;
  min-height: 500px;
  margin-top: 0;
}

.hero-orbit--floating .hero-orbit__globe {
  z-index: 0;
  top: 50%;
  right: auto;
  bottom: auto;
  left: 54%;
  width: clamp(720px, 54vw, 820px);
  height: clamp(720px, 54vw, 820px);
  opacity: 0.78;
  pointer-events: none;
  transform: translate(-44%, -50%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.94) 18%, rgba(0, 0, 0, 0.72) 68%, transparent 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.94) 18%, rgba(0, 0, 0, 0.72) 68%, transparent 100%);
}

@media (max-width: 1023px) {
  .hero-orbit--floating {
    min-height: 600px;
  }

  .hero-orbit--floating .hero-orbit__stage {
    min-height: 540px;
  }

  .hero-orbit--floating .hero-orbit__globe {
    left: 52%;
    width: 720px;
    height: 720px;
    transform: translate(-48%, -50%);
  }
}

.about::before,
.workflow::before,
.creation::before,
.contact::before {
  display: none;
}

.section-horizon {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 5%;
  left: 5%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(42, 111, 106, 0.56) 18%,
    rgba(217, 108, 74, 0.82) 50%,
    rgba(42, 111, 106, 0.56) 82%,
    transparent
  );
  box-shadow:
    0 0 24px 6px rgba(42, 111, 106, 0.22),
    0 8px 64px 18px rgba(217, 108, 74, 0.1);
  pointer-events: none;
}

/* 分界线中心的陶土橙圆点已移除（用户反馈"每一页中间都有一个点，能不能修掉"）。
   该点是 v1.3 分界线设计的一部分，但在整屏分页下每屏都出现在完全相同的位置，
   存在感过强，读起来像"页面上多了一个点"而不是分界装饰，且与左侧章节导航的
   指示点语义重复。
   分界线本身（发光细线 + 上下光晕）保留。 */

@media (max-width: 767px) {
  .section-horizon {
    right: 12%;
    left: 12%;
  }
}

@media (max-width: 767px) {
  .hero-orbit--floating {
    min-height: 430px;
    padding: 0;
  }

  .hero-orbit--floating .hero-orbit__stage {
    min-height: 400px;
  }

  /* v1.12：手机端地球收进「AI 创作」按钮右侧——560px 大球从右缘探出、
     球顶与按钮行对齐（top 48%），内侧水平渐隐保护左侧文字，
     透明度 0.5；文字与主按钮保持第一层级、零遮挡。 */
  .hero-orbit--floating .hero-orbit__globe {
    left: 82%;
    top: 48%;
    width: 560px;
    height: 560px;
    opacity: 0.5;
    transform: translate(-50%, -50%);
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.45) 42%,
      rgba(0, 0, 0, 0.9) 78%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.45) 42%,
      rgba(0, 0, 0, 0.9) 78%
    );
  }
}

/* ========================================
   v1.20 终章屏手机端：弹层常驻展示
   ========================================
   触屏没有悬停，悬停式弹层在手机上等于"打不开的入口"，因此手机改为常驻。
   刻意用宽度阈值而非 (hover: none)：手机必然 ≤767px 且必然触屏，两者等价可靠，
   而 hover/pointer 媒体特性在部分环境无法验证。
   必须放在文件末尾：基础 .contact-popup 规则在本文件后段，前置会被覆盖。 */

@media (max-width: 767px) {
  .contact__panel {
    min-height: auto;
  }

  .contact-popup {
    position: static;
    width: auto;
    max-width: 320px;
    margin-top: 24px;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .contact__popups {
    height: auto;
  }

  /* 收紧内边距与字号，让邮箱在手机上一行放得下，避免在 ".com" 中间断行。 */
  .contact-popup__card {
    padding: 12px;
  }

  .contact-popup__value {
    font-size: 14px;
  }
}

/* ========================================
   v1.20 终章屏减弱动效
   ========================================
   必须放在文件末尾：基础 .contact-popup / .contact-popup__value 规则在本文件后段，
   前置会被覆盖，导致"减少动态效果"下仍播放翻转动画与过渡。 */

@media (prefers-reduced-motion: reduce) {
  .contact-popup {
    transition: none;
    transform: none;
  }

  .contact-popup__value {
    transition: none;
  }
}
