/* ==========================================================
   portfolio.css — 作品集主页
   顺序：导航 / 首屏 / 个人介绍 / 经历 / 海报墙 / 作品 / 优势 / 联系 / 弹层 / 响应式
   ========================================================== */

/* ---------- 播放头（滚动进度） ---------- */
.playhead { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.playhead i { display: block; height: 100%; width: 100%; background: var(--rec); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 8px var(--rec); }

/* ---------- 通用板块标题 ---------- */
.sec-head {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "kicker kicker" "title note";
  align-items: end;
  gap: 18px 40px;
  padding-bottom: 32px;
  margin-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}
.sec-head > .mono { grid-area: kicker; }
.sec-head h2 { grid-area: title; font-size: var(--fs-h2); font-weight: 700; line-height: 1.15; letter-spacing: 0.01em; }
.sec-head__note { grid-area: note; max-width: 440px; font-size: 14px; text-align: right; text-wrap: balance; }

.sec-head--stacked {
  grid-template-columns: 1fr;
  grid-template-areas: "kicker" "title" "note";
}
.sec-head--stacked h2 { font-size: clamp(30px, 5.2vw, 72px); }
.sec-head--stacked .sec-head__note { text-align: left; }
@media (min-width: 1025px) {
  .sec-head--stacked .sec-head__note {
    max-width: none;
    font-size: clamp(18px, 1.4vw, 22px);
  }
}

/* ================= 导航 ================= */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; transition: background 0.5s var(--ease), border-color 0.5s; border-bottom: 1px solid transparent; }
.nav.is-solid { background: rgba(10, 10, 11, 0.72); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-color: var(--line); }
:root { --nav-height: 76px; }
.nav__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: var(--nav-height); display: flex; align-items: center; gap: 40px; }
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__logo .rec-dot { flex: none; }
.nav__logo b { font-family: var(--f-cn); font-size: clamp(20px, 1.55vw, 24px); font-weight: 650; line-height: 1.2; letter-spacing: .06em; white-space: nowrap; }
.nav__links { display: flex; gap: 34px; margin-left: auto; }
.nav__links a { position: relative; display: flex; align-items: baseline; gap: 6px; font-size: 14px; color: var(--mute); transition: color 0.3s; }
.nav__links a .mono { font-size: 10px; color: var(--dim); }
.nav__links a:hover, .nav__links a.is-active { color: var(--paper); }
.nav__links a.is-active .mono { color: var(--rec); }
.nav__cta { height: 42px; padding: 0 18px; font-size: 14px; }
.nav__menu { display: none; }

.menu { display: none; }

/* ================= 1. 首屏 ================= */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,10,11,.55) 0%, rgba(10,10,11,.15) 30%, rgba(10,10,11,.35) 55%, var(--ink) 100%),
    linear-gradient(90deg, rgba(10,10,11,.75) 0%, rgba(10,10,11,.2) 60%, transparent 100%);
}
.hero__hud { position: absolute; inset: 96px var(--gutter) -40px; pointer-events: none; }
.hud { position: absolute; }
.hud--tl { top: 14px; left: 26px; }
.hud--tl .rec { font-weight: 700; text-shadow: 0 1px 2px #101012; }
.hud--tr { top: 14px; right: 26px; }
/* 视频上的小字使用暖白和贴近笔画的暗影，在浅色镜头上也可辨认。 */
.nav__logo-sub, .hud--tr, .hero__kicker .dim, .rail__head .dim {
  color: #e8e5dc;
  text-shadow: 0 1px 2px #101012, 0 0 5px rgba(10,10,12,.85);
}

.hero__content {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding-top: 160px;
}
.hero__kicker { margin-bottom: 26px; }
.hero__title { margin-top: auto; font-size: var(--fs-h1); font-weight: 800; line-height: 1.08; letter-spacing: 0.01em; }
.hero__lead { margin-top: 28px; max-width: 640px; color: rgba(237,235,230,.78); }
.hero__lead-break { display: none; }
.hero__cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__cta .btn--ghost { background: rgba(10,10,11,.25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* 卡片带 */
.rail { margin-top: clamp(48px, 7vh, 80px); padding-bottom: 36px; }
.rail__head { display: flex; justify-content: space-between; margin-bottom: 16px; }
.rail__scroll:hover { color: var(--paper); }
.rail__viewport { overflow: hidden; cursor: grab; -webkit-user-select: none; user-select: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.rail__track { display: flex; gap: 14px; width: max-content; animation: recent-rail 85s linear infinite; }
@keyframes recent-rail { to { transform: translateX(calc(-50% - 7px)); } }
.rail__viewport:is(.is-dragging, :active) .rail__track { animation-play-state: paused; }
.rail__viewport.is-dragging, .rail__viewport.is-dragging .rail-card { cursor: grabbing; }
@media (prefers-reduced-motion: no-preference) {
  .rail__viewport { touch-action: pan-y pinch-zoom; }
}
@media (prefers-reduced-motion: reduce) {
  .rail__viewport { overflow-x: auto; scrollbar-width: none; }
  .rail__viewport::-webkit-scrollbar { display: none; }
  .rail-card.is-dup { display: none; }
}
.rail-card {
  position: relative; flex: none; cursor: grab;
  width: clamp(220px, 19vw, 300px); aspect-ratio: 16 / 10;
  border-radius: var(--radius); overflow: hidden;
  background: var(--ink-3);
  border: 1px solid var(--line);
  transition: border-color 0.4s;
}
.rail-card :is(img, video) {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s var(--ease), opacity 0.4s;
}
.rail-card video { opacity: 0; }
.rail-card video.is-playing { opacity: 1; }
.rail-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.75)); }
.rail-card__meta { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 2; display: flex; justify-content: space-between; align-items: end; }
.rail-card__meta b { font-size: 14px; font-weight: 600; }
@media (hover: hover) {
  .rail:hover .rail__track { animation-play-state: paused; }
  .rail-card:hover { border-color: var(--line-2); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .rail__viewport:not(.is-dragging) .rail-card:hover :is(img, video) { transform: scale(1.045); }
}

/* ================= 2. 个人介绍 ================= */
.about {
  position: relative;
  padding: clamp(16px, 3.6vw, 58px) 0 0;
  scroll-margin-top: 76px;
  overflow: hidden;
  background: radial-gradient(ellipse at left 38%, rgba(255, 59, 31, .08), transparent 46%);
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 48fr) minmax(0, 52fr);
  column-gap: clamp(20px, 3vw, 48px);
  align-items: center;
}
.about__portrait { position: relative; padding-inline-start: clamp(24px, 3vw, 42px); }
.about__portrait-label {
  position: absolute;
  inset: 0 auto auto 0;
  writing-mode: vertical-rl;
  rotate: 180deg;
  color: var(--mute);
}
.about__portrait img {
  --portrait-top-fade: clamp(22px, 3vw, 38px);
  width: 100%;
  height: auto;
  filter: brightness(.82);
  mask-image: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 0, 0, .2) calc(var(--portrait-top-fade) * .24),
    rgba(0, 0, 0, .78) calc(var(--portrait-top-fade) * .68),
    #000 var(--portrait-top-fade),
    #000 var(--portrait-bottom-fade, 90%),
    rgba(0, 0, 0, .48) var(--portrait-bottom-midpoint, 95%),
    transparent
  );
}

.about__info { position: relative; }
.about__kicker { margin-bottom: 10px; }
.about__role {
  margin-bottom: clamp(16px, 2vw, 28px);
  font-size: clamp(13px, 1.2vw, 17px);
  font-weight: 600;
  letter-spacing: .1em;
}
.about__name {
  display: flex;
  align-items: flex-end;
  gap: clamp(16px, 2vw, 32px);
}
.about__name h2 {
  font-size: clamp(104px, 18vw, 256px);
  text-transform: none;
}
.about__cn {
  writing-mode: vertical-rl;
  font-size: clamp(15px, 1.4vw, 22px);
  font-weight: 700;
  letter-spacing: .32em;
}
.about__motto {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 22px);
  margin: clamp(18px, 2.3vw, 34px) 0 0;
  padding-block: 3px;
  border-block: 1px solid var(--line-2);
  font-size: clamp(13px, 1.25vw, 17px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .05em;
}
.about__motto::before {
  content: "";
  flex: 0 0 clamp(26px, 4vw, 60px);
  height: 8px;
  background: repeating-linear-gradient(112deg, var(--rec) 0 1.5px, transparent 1.5px 6px);
}
.about__motto blockquote { margin: 0; }
.about__motto-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: none;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  margin-inline-start: auto;
  white-space: nowrap;
}
.about__motto-link:is(:hover, :focus-visible) { color: var(--rec); }
.about__bio {
  display: grid;
  gap: 6px;
  margin-top: clamp(20px, 2.3vw, 32px);
  color: rgba(237, 235, 230, .75);
}
.about__bio strong { color: var(--paper); font-weight: 600; }
.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(18px, 2.3vw, 32px);
}
.about__tags .tag {
  height: auto;
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
  color: var(--paper);
  border-color: var(--line-2);
  border-radius: var(--radius);
}

/* ================= 3. 经历时间线 ================= */
.journey { padding: var(--section) 0 clamp(28px, 3.2vw, 48px); }
.journey .sec-head {
  margin-bottom: 0;
  padding-bottom: clamp(18px, 2.8vw, 36px);
  border-bottom: 0;
}
.journey .sec-head h2 span { font-size: 1.1em; white-space: nowrap; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: clamp(28px, 4.2vw, 60px);
  border-block: 1px solid var(--line);
}
.stats li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  padding: clamp(14px, 2vw, 26px) clamp(10px, 2vw, 24px);
  border-left: 1px solid var(--line);
}
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats b { font-size: clamp(40px, 4.1vw, 64px); line-height: 0.85; font-variant-numeric: tabular-nums; }
.stats sup { font-family: var(--f-display); font-size: clamp(15px, 1.3vw, 19px); font-weight: 800; color: var(--rec); margin-left: 4px; line-height: 1; }
.stats span { grid-column: 1 / -1; margin-top: 8px; font-size: clamp(12px, 1vw, 14px); color: var(--mute); }

.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 240px; width: 1px; background: linear-gradient(var(--line-2), var(--line) 80%, transparent); }
.tl__item { position: relative; display: grid; grid-template-columns: 240px minmax(0, 1fr) minmax(0, 0.8fr); gap: 0 56px; padding: 0 0 clamp(64px, 8vw, 104px); }
.tl__item::before { content: ""; position: absolute; left: 236px; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); border: 1px solid var(--paper); }
.tl__item--major::before { background: var(--rec); border-color: var(--rec); box-shadow: 0 0 0 6px rgba(255,59,31,.15); }
.tl__time { padding-right: 32px; }
.tl__year { font-size: clamp(56px, 6vw, 88px); margin-top: 10px; }
.tl__year span { display: block; margin-top: 10px; font-size: 0.4em; color: var(--dim); letter-spacing: 0.04em; }
.tl__body { padding-left: 0; }
.tl__pre { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.tl__body h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.3; }
.tl__role { margin-top: 6px; color: var(--rec); font-size: 15px; }
.tl__desc { margin-top: 16px; color: rgba(237,235,230,.72); }
.tl__tags, .card__tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.tl__item--minor .tl__year { color: var(--mute); }
.tl__item--minor .tl__body h3 { color: var(--mute); }

/* 经历照片 */
.tl__media { transform: rotate(1.2deg); }
.tl__item--now .tl__media { transform: rotate(-1.4deg); }
.tl__photo {
  position: relative;
  align-self: start;
  padding: clamp(8px, 0.9vw, 14px);
  background: var(--ink-2);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
}
.tl__photo .corner { border-color: var(--mute); }
.tl__photo img { width: 100%; height: auto; border-radius: 2px; }
.tl__photo figcaption { padding-top: 8px; color: var(--mute); }

/* 折叠入口 */
.tl__more { margin-top: 22px; }
.disclosure { border-top: 1px solid var(--line); }
.disclosure > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding: 16px 0; color: var(--mute); }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary i { font-style: normal; transition: transform 0.3s var(--ease); }
.disclosure[open] > summary i { transform: rotate(45deg); }
.disclosure > summary:hover { color: var(--paper); }
.jobs li { display: grid; grid-template-columns: 150px 1fr; gap: 4px 20px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; }
.jobs li .mono { color: var(--dim); padding-top: 2px; }
.jobs li b { font-weight: 600; }
.jobs li b em { font-style: normal; color: var(--mute); font-weight: 400; margin-left: 10px; }
.jobs li p { grid-column: 2; color: var(--mute); font-size: 13px; }

/* ---------- 海报墙 ---------- */
.films { margin-top: clamp(24px, 4vw, 48px); }
.films__head { margin-bottom: 28px; }
.films__head h3 { margin-top: 12px; font-size: clamp(24px, 3vw, 42px); font-weight: 700; line-height: 1.15; }
.films__count {
  display: inline-flex;
  align-items: flex-start;
  gap: .07em;
  margin-inline-end: .12em;
  font-size: 1.6em;
  vertical-align: -.05em;
}
.films__count sup { margin-top: .14em; color: var(--rec); font-size: .38em; line-height: 1; }
.films { position: relative; }
.poster-mode { position: absolute; top: 0; right: 0; padding: 8px 12px; color: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius); }
.poster-mode[aria-pressed="true"] { border-color: var(--rec); }
.posters { --wall-gap: clamp(10px, 1.35vw, 20px); }
.posters:not(.is-static) {
  position: relative; overflow: hidden; isolation: isolate; perspective: 1200px;
  height: clamp(420px, 48vw, 650px); border-radius: var(--radius); background: var(--ink-2);
}
.poster-plane {
  position: absolute; inset: -24% -3%; display: flex; gap: var(--wall-gap);
  transform: rotateX(var(--pitch, 10deg)) rotateY(var(--yaw, -8deg)) rotateZ(-3deg);
  transition: transform .35s ease-out;
}
.poster-column { position: relative; flex: 1; min-width: 0; }
.poster-track { display: grid; animation: poster-drift var(--duration) linear var(--phase) infinite; animation-play-state: paused; }
.posters.is-visible .poster-track { animation-play-state: running; }
.poster-column:nth-child(even) .poster-track { animation-direction: reverse; }
.poster-run { display: grid; gap: var(--wall-gap); padding-bottom: var(--wall-gap); }
@keyframes poster-drift { to { transform: translateY(-50%); } }
.poster {
  position: relative; display: block; width: 100%; aspect-ratio: 2 / 3; overflow: hidden;
  background: var(--ink-2); border-radius: var(--radius); text-align: left;
  cursor: zoom-in; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster__cap { position: absolute; inset: auto 0 0; padding: 20px 10px 8px; background: linear-gradient(transparent, #000a); color: white; font-size: clamp(12px, 1vw, 15px); }
@media (hover: hover) {
  .poster-column:hover { z-index: 1; }
  .posters .poster-column:hover .poster-track { animation-play-state: paused; }
  .poster-column .poster:hover { z-index: 1; transform: scale(1.32); box-shadow: 0 10px 34px #0008; }
  .poster-column:first-child .poster { transform-origin: left center; }
  .poster-column:last-child .poster { transform-origin: right center; }
}
.posters.is-static { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--wall-gap); }
@media (max-width: 640px) {
  .posters:not(.is-static) { height: clamp(300px, 100vw, 460px); }
  .posters.is-static { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .poster-mode { padding: 4px 8px; }
}

/* ================= 4. 精选作品 ================= */
.works { --work-number-width: 1.4rem; --work-info-gap: 18px; padding: var(--section) 0 clamp(18px, 2.2vw, 32px); background: linear-gradient(180deg, var(--ink), #0d0d0f 40%, var(--ink)); }
:is(.works, .strengths) .sec-head {
  margin-bottom: clamp(24px, 3vw, 40px);
  padding-bottom: 0;
  border-bottom: 0;
}
:is(.works, .strengths) .sec-head--stacked .sec-head__note { font-size: clamp(15px, 1.55vw, 24px); white-space: normal; }
.journey + .works { padding-top: clamp(38px, 5.5vw, 72px); scroll-margin-top: 40px; }
.works__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.work { display: flex; flex-direction: column; }
.work__card { cursor: pointer; }
.work:nth-child(-n + 2) { grid-column: 1 / -1; }
.work__media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); border: 1px solid var(--line); }
.work:nth-child(-n + 2) .work__media { aspect-ratio: 21 / 9; }
.work__media video, .work__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.6s; filter: saturate(0.85) brightness(0.85); }
.work__media video { opacity: 0; }
.work__media video.is-playing { opacity: 1; }
.work__card:is(:hover, :focus-visible) .work__media :is(img, video) { transform: scale(1.03); filter: none; }
.work__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 30%, transparent 60%, rgba(0,0,0,.6)); pointer-events: none; }
.work__play {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10,10,11,.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(237,235,230,.4);
  opacity: 0; transform: scale(0.8); transition: all 0.5s var(--ease);
}
.work__play::before { content: ""; margin-left: 4px; border-left: 16px solid var(--paper); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.work__card:is(:hover, :focus-visible) .work__play { opacity: 1; transform: none; }
.work__info { display: grid; grid-template-columns: auto 1fr; gap: var(--work-info-gap); align-items: baseline; padding: 18px 2px 0; }
.work:nth-child(n + 5) .work__info { grid-template-columns: var(--work-number-width) 1fr; }
.work__no { font-family: var(--f-display); font-weight: 800; font-size: 20px; color: var(--rec); }
.work__title { font-size: var(--fs-h3); font-weight: 700; line-height: 1.3; }
.work__subtitle { margin-top: 4px; }
.work__description, .work__summary { margin: clamp(16px, 2vw, 28px) 0 0; }
.work__description > div, .work__summary {
  padding: clamp(16px, 2vw, 28px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--ink-2);
}
.work__description {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 28px);
}
.work__summary { flex: 1; }
.work__description dt { font-weight: 600; }
.work__description dd { margin: 6px 0 0; }
.work__description dd, .work__summary { color: rgba(237,235,230,.76); }
.collection { border-top: 0; margin-top: calc(clamp(16px, 1.6vw, 24px) + 16px); scroll-margin-top: 90px; }
.collection:not([open]) { margin-bottom: -6px; }
.collection > summary {
  --button-radius: 9px;
  position: relative;
  width: fit-content;
  min-height: 38px;
  margin-inline: auto;
  padding: 5px clamp(12px, 1vw, 16px);
  justify-content: flex-start;
  align-items: center;
  gap: .5em;
  border: 1px solid #57534f;
  border-radius: var(--button-radius);
  background: transparent;
  color: var(--paper);
  font-size: clamp(15px, 1.35vw, 19px);
  font-weight: 600;
  transition: border-color .2s;
}
.collection > summary:hover { border-color: #a29a91; }
.collection > summary:active { border-color: var(--rec); }
@media (pointer: coarse) {
  .collection > summary { min-height: 44px; }
}
.collection > summary:focus-visible { outline: 1px solid var(--rec); outline-offset: 4px; }
.collection > summary i { color: var(--rec); font-size: 1.2em; line-height: 1; }
.collection__collapse, .collection[open] .collection__expand { display: none; }
.collection[open] > summary { margin-bottom: 16px; }
.collection[open] .collection__collapse { display: inline; }

@supports (offset-path: inset(0 round 12px)) {
  @media (prefers-reduced-motion: no-preference) {
    .collection:not([open]) > summary::before,
    .collection:not([open]) > summary::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      pointer-events: none;
      offset-path: inset(-.5px round var(--button-radius));
      animation: collection-border-lap 4s linear infinite;
    }
    .collection:not([open]) > summary::before {
      width: 24px;
      height: 1px;
      offset-anchor: right center;
      background: linear-gradient(90deg, transparent, #fff3 40%, #fffa);
      filter: drop-shadow(0 0 2px #fff6);
    }
    .collection:not([open]) > summary::after {
      width: 3px;
      height: 3px;
      border-radius: 50%;
      background: #fff7ed;
      box-shadow: 0 0 4px 1px #ffead3b0, 0 0 10px 3px #ffead34f;
    }
    @keyframes collection-border-lap {
      from { offset-distance: 0%; }
      to { offset-distance: 100%; }
    }
  }
}

.collection__categories {
  display: flex;
  gap: clamp(6px, .7vw, 12px);
  aspect-ratio: 15 / 4;
}
.collection-category {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: clamp(8px, 1vw, 16px);
  background: var(--ink-2);
  color: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: flex-grow .48s cubic-bezier(.22,.72,.24,1);
}
.collection-category img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.collection-category[data-format="portrait"] img { object-position: 50% 25%; }
.collection-category::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, #09090be6, transparent 34%);
}
.collection-category__label {
  position: absolute; z-index: 1;
  left: clamp(8px, .9vw, 16px); bottom: clamp(10px, 1.2vw, 20px);
  font-size: clamp(13px, 1.25vw, 20px); font-weight: 600;
  line-height: 1.25; white-space: nowrap; text-shadow: 0 1px 5px #0008;
}
.collection-category:focus-visible { outline: 2px solid var(--rec); outline-offset: 2px; }

@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
  .collection-category:is(:hover, :focus-visible) { flex-grow: 1.55; }
  .collection-category[data-format="landscape"]:is(:hover, :focus-visible) { flex-grow: 4.85; }
}
@media (max-width: 900px) {
  .collection__categories {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    aspect-ratio: auto; gap: 8px;
  }
  .collection-category { aspect-ratio: 9 / 16; }
  .collection-category__label { font-size: clamp(13px, 2vw, 18px); }
}
@media (prefers-reduced-motion: no-preference) {
  .collection-dialog[open]::backdrop { animation: collection-backdrop-in .3s ease-out; }
  .collection-dialog[open] .collection-dialog__header { animation: collection-fade-in .28s ease-out; }
  .collection-dialog[open] .collection-deck { animation: collection-deck-in .34s cubic-bezier(.2,.7,.25,1); }
  @keyframes collection-backdrop-in { from { background-color: transparent; backdrop-filter: blur(0); } }
  @keyframes collection-fade-in { from { opacity: 0; } }
  @keyframes collection-deck-in { from { opacity: 0; transform: translateY(6px) scale(.965); } }
}
@media (prefers-reduced-motion: reduce) {
  .collection-category { transition: none; }
}

.collection-dialog {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 12px; border: 0; overflow: auto; overscroll-behavior: contain;
  background: transparent; color: var(--paper);
}
.collection-dialog[open] { display: flex; flex-direction: column; justify-content: safe center; align-items: center; }
.collection-dialog::backdrop { background: #0a0a0bd6; backdrop-filter: blur(12px); }
.collection-dialog__header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; width: min(100%, 920px); padding-inline: clamp(6px, 2vw, 24px); margin-bottom: 10px;
}
.collection-dialog__header h2 { font-size: clamp(17px, 2vw, 26px); font-weight: 700; }
.collection-dialog__button {
  display: grid; place-items: center; width: 44px; height: 44px;
  flex: none; font-size: 26px; line-height: 1; border: 1px solid var(--line-2);
  border-radius: 50%; color: var(--paper); background: var(--ink-2); cursor: pointer;
}
.collection-dialog__button:is(:hover, :focus-visible), .collection-deck__play:focus-visible {
  outline: 1px solid var(--rec); outline-offset: 2px;
}
.collection-dialog__button:disabled { opacity: .35; cursor: default; }
.collection-deck {
  --stage-height: min(62dvh, 540px);
  --frame-limit: min(calc(100vw - 180px), 780px);
  --front-width: min(var(--frame-limit), calc(var(--stage-height) * var(--front-ratio, 1)));
  --front-height: calc(var(--front-width) / var(--front-ratio, 1));
  width: min(100%, 980px); flex: none; display: grid; justify-items: center; gap: 10px;
}
.collection-deck__stage {
  width: 100%; height: var(--stage-height);
  position: relative; perspective: 1100px; touch-action: pan-y;
}
.collection-deck__card {
  --card-width: min(var(--frame-limit), calc(var(--stage-height) * var(--ratio)));
  position: absolute; top: 50%; left: 50%; width: var(--card-width);
  aspect-ratio: var(--ratio); overflow: hidden; border-radius: 12px;
  background: var(--ink-2); box-shadow: 0 12px 40px #0009;
  transform: translate(-50%, -50%) translateX(calc((var(--front-width) - var(--card-width)) / 2 + var(--fan, 0px))) rotateY(var(--tilt, 0deg)) scale(var(--scale, 1));
  transform-origin: right center;
  filter: brightness(var(--brightness, 1)) blur(var(--blur, 0px));
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: transform .42s var(--ease), opacity .28s, filter .3s, visibility 0s .28s;
}
.collection-deck__card[data-depth="0"], .collection-deck__card[data-depth="1"], .collection-deck__card[data-depth="2"] {
  opacity: 1; visibility: visible; transition-delay: 0s;
}
.collection-deck__card[data-depth="0"] { z-index: 3; pointer-events: auto; }
.collection-deck__card:is([data-depth="1"], [data-depth="2"]) {
  --card-width: min(var(--front-width), calc(var(--front-height) * var(--ratio)));
}
.collection-deck__card[data-depth="1"] { z-index: 2; --fan: clamp(16px, 4vw, 58px); --tilt: -12deg; --scale: .88; --brightness: .63; --blur: 1px; }
.collection-deck__card[data-depth="2"] { z-index: 1; --fan: clamp(27px, 7vw, 95px); --tilt: -17deg; --scale: .76; --brightness: .43; --blur: 2px; }
.collection-deck__card img, .collection-deck__video { width: 100%; height: 100%; object-fit: contain; display: block; }
.collection-deck__video { position: absolute; inset: 0; background: #000; }
.collection-deck__video[hidden], .collection-deck__play[hidden] { display: none; }
.collection-deck__play {
  position: absolute; inset: 0; width: 100%; display: grid; place-items: center; cursor: pointer;
}
.collection-deck__play span { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid #fff8; border-radius: 50%; background: #0a0a0b99; color: #fff; }
.collection-deck__play span::before { content: ""; border-left: 14px solid currentColor; border-block: 8px solid transparent; margin-left: 3px; }
.collection-deck__controls { display: flex; align-items: center; justify-content: center; gap: 8px; }
.collection-deck__count { color: var(--mute); width: 64px; text-align: center; }

@media (max-width: 640px) {
  .collection-deck {
    --stage-height: min(62dvh, 510px);
    --frame-limit: calc(100vw - 64px);
  }
}
.collection__contact { margin-top: clamp(16px, 2.4vw, 30px); color: var(--mute); }
.collection__contact a { color: var(--paper); border-bottom: 1px solid var(--rec); white-space: nowrap; }

/* ================= 5. 个人优势 ================= */
.strengths { scroll-margin-top: calc(var(--nav-height) + 9px); }
.strengths .sec-head { border-top: 1px dashed var(--line-2); padding-top: clamp(16px, 2vw, 28px); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.card {
  position: relative; grid-column: span 2;
  display: flex; flex-direction: column;
  padding: clamp(24px, 2.4vw, 36px);
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.4s, transform 0.6s var(--ease), background 0.4s;
  min-height: 300px;
}
.card:hover { border-color: var(--line-2); background: #151517; }
.card__label { color: var(--dim); margin-bottom: 28px; }
.card__label::before { content: "■ "; color: var(--rec); }
.card h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.35; }
.card__text { margin-top: 14px; color: var(--mute); font-size: 15px; }
.card__tools { margin-top: 22px; color: var(--paper); font-size: 12px; }
.card__solve { margin-top: auto; padding-top: 28px; color: var(--paper); font-size: 11px; letter-spacing: 0.06em; text-transform: none; }

:is(.card--craft, .card--mindset, .card--delivery) { container-type: inline-size; }
:is(.card--craft, .card--mindset, .card--delivery) .card__tools { line-height: 1.7; letter-spacing: .02em; font-size: clamp(10px, 3.95cqi, 12px); }
:is(.card--craft, .card--mindset, .card--delivery) .card__solve { color: #b9b4ac; }
.card__solve-arrow { color: var(--rec); }
.card--mindset .card__tools { text-transform: none; }
@media (min-width: 1025px) and (max-width: 1200px) {
  :is(.card--craft, .card--mindset, .card--delivery) { padding-inline: 16px; }
}
@media (min-width: 641px) {
  :is(.card--craft, .card--mindset, .card--delivery) .card__text { font-size: min(15px, 4.2cqi); }
  :is(.card--craft, .card--mindset, .card--delivery) .card__text span { display: block; }
}

.card--formats { container-type: inline-size; isolation: isolate; overflow: hidden; }
.media-ready .formats-clapper { background-image: url("../assets/img/formats/slate-detail.jpg"); }
.formats-clapper {
  position: absolute;
  inset: 0 0 auto auto;
  z-index: -1;
  width: 69%;
  aspect-ratio: 1.48;
  pointer-events: none;
  background: none left 12% top 19% / 136% auto no-repeat;
  filter: grayscale(1) brightness(.34);
  opacity: .8;
  mask-image: radial-gradient(ellipse 96% 98% at 100% 0%, #000 28%, #000d 51%, #0005 77%, transparent 100%);
}
@media (max-width: 640px) {
  .formats-clapper { display: none; }
}
.formats-gallery {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  border-radius: inherit; background: var(--ink-2); pointer-events: none;
}
.formats-gallery::after {
  content: ""; position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(180deg, #0a0a0bd9, #0a0a0bb8 43%, #0a0a0b68 72%, #0a0a0bea);
}
.formats-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: var(--poster-focus); transform-origin: var(--poster-focus);
  opacity: 0;
}
.formats-poster--warning { --poster-focus: 50% 81%; --poster-delay: -.9s; opacity: 1; }
.formats-poster--match { --poster-focus: 53% 50%; --poster-delay: -10.9s; }
.formats-poster--blue { --poster-focus: 50% 50%; --poster-delay: -8.9s; }
.formats-poster--living { --poster-focus: 50% 50%; --poster-delay: -6.9s; }
.formats-poster--team { --poster-focus: 56% 50%; --poster-delay: -4.9s; }
.formats-poster--demo { --poster-focus: 49% 50%; --poster-delay: -2.9s; }
@media (prefers-reduced-motion: no-preference) {
  .formats-poster {
    animation:
      formats-fade 12s ease-in-out var(--poster-delay) infinite,
      formats-stack 12s step-end var(--poster-delay) infinite;
  }
}
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .formats-poster {
    animation:
      formats-fade 12s ease-in-out var(--poster-delay) infinite,
      formats-stack 12s step-end var(--poster-delay) infinite,
      formats-zoom 12s linear var(--poster-delay) infinite;
  }
}
@media (min-width: 641px) {
  .formats-gallery { inset: auto 0 0; aspect-ratio: 16/9; }
  .formats-gallery::after {
    background: linear-gradient(180deg, var(--ink-2), #0a0a0b9c 25%, #0a0a0b22 58%, #0a0a0bd9);
  }
}
@keyframes formats-fade { 0%, 24.18%, 100% { opacity: 0; } 7.5%, 24.17% { opacity: 1; } }
@keyframes formats-stack { 0% { z-index: 2; } 16.6667%, 100% { z-index: 1; } }
@keyframes formats-zoom { 0% { transform: scale(1); } 24.17%, 100% { transform: scale(1.04); } }
.card--formats .card__label { color: #c3bfb8; }
.card--formats h3 span { display: inline-block; }
@media (max-width: 640px) {
  .card--formats h3 { text-align: left; }
  .card--formats h3 span { display: block; }
}
.card--formats .card__text { color: #dad7d1; font-size: clamp(12px, 4.25cqi, 15px); line-height: 1.7; }
.card--formats .card__text span { display: block; }
.card--formats .card__tags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.card--formats .tag {
  color: #e0ddd8; background: #0a0a0b82; border-color: #edebe640;
  height: auto; min-height: 30px; padding: 5px 2px; justify-content: center; gap: .25em;
  font: 500 clamp(11px, 3cqi, 13px)/1.35 var(--f-cn); letter-spacing: 0;
}
@container (max-width: 310px) {
  .card--formats .tag { flex-direction: column; gap: 0; font-size: 12px; }
}

.card--pipeline { grid-column: span 4; container-type: inline-size; isolation: isolate; overflow: hidden; }
.pipeline { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.pipeline li { position: relative; padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; display: flex; gap: 12px; align-items: baseline; transition: background 0.3s, color 0.3s; }
.pipeline li .mono { color: var(--dim); font-size: 10px; }
.pipeline li:hover { background: rgba(255,59,31,.08); }

.pipeline-intro {
  position: relative; display: grid; grid-template-columns: 46% 1fr;
  align-content: center; min-height: clamp(156px, 24cqi, 204px);
}
.pipeline-intro > .card__label { grid-column: 1; margin-bottom: clamp(14px, 2.5cqi, 22px); }
.pipeline-intro .pipeline-title { grid-column: 1; justify-self: start; text-align: right; font-size: min(7.4cqi, 58px); line-height: 1.12; letter-spacing: -.035em; }
.pipeline-title span { display: block; white-space: nowrap; }
.card--pipeline::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at 86% 10%, #34433e, transparent 59%);
  transition: opacity .3s;
}
.card--pipeline.brief-active::before { opacity: 1; }
.pipeline .pipeline-trigger { padding: 0; }
.pipeline-trigger button {
  width: 100%; padding: 14px 16px; display: flex; align-items: baseline; gap: 12px; text-align: left;
}
.pipeline-trigger button:focus-visible { outline: 2px solid var(--rec); outline-offset: -2px; }
.pipeline-trigger .mono, .pipeline-trigger button[aria-expanded="true"] .mono { color: var(--rec); }
.pipeline .pipeline-trigger:has(button[aria-expanded="true"]) { color: var(--paper); background: rgba(255,59,31,.10); }
.manual-step .pipeline .pipeline-trigger:has(button[aria-expanded="true"]) { background: var(--paper); color: var(--ink); }
.brief-scene {
  position: absolute; inset: -28px -28px -24px 47%;
  overflow: hidden; pointer-events: none;
  mask-image: linear-gradient(to bottom, black 84%, transparent);
}
.brief-phone {
  position: absolute; width: min(85%, 340px); height: 590px; right: 11%; top: 12px;
  padding: 10px 10px 0; border: 3px solid #555965; border-radius: 34px;
  transform-origin: 50% 12%;
  transform: perspective(550px) rotateY(-30deg) rotateX(8deg) rotateZ(-8deg);
  background: radial-gradient(ellipse at 3% 31%, #cb9b88 0%, transparent 47%),
              radial-gradient(ellipse at 90% 6%, #758bb3 0%, transparent 53%), #393449;
  box-shadow: inset 0 0 0 3px #17171c, -4px 2px 0 #28292e, -11px 15px 26px #0008;
  color: white;
}
.brief-status { display: flex; align-items: center; justify-content: space-between; margin: 0 10px; font: 600 10px/1.2 Arial,sans-serif; }
.brief-status i { width: 44px; height: 10px; background: #161519; border-radius: 20px; }
.brief-phone__heading { margin: 9px 7px 5px; font-size: 17px; font-weight: 600; }
.brief-feed { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.brief-notice {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; min-height: 54px;
  border: 1px solid #fff8; border-radius: 12px; background: #edf0f0ed;
  color: #20232b; box-shadow: 0 2px 5px #24233426;
}
.brief-notice[hidden] { display: none; }
.brief-notice__body { flex: 1; min-width: 0; }
.brief-notice__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 5px; font-size: 12px; }
.brief-notice__meta span { color: #59616a; font-size: 10px; }
.brief-notice p { margin-top: 2px; font-size: 14px; line-height: 1.4; }
.brief-notice__icon {
  position: relative; flex: 0 0 30px; height: 30px; border-radius: 8px;
  box-shadow: inset 0 0 0 1px #0001;
}
.brief-notice__icon::before, .brief-notice__icon::after { content: ""; position: absolute; }
.brief-notice--wechat .brief-notice__icon { background: #06bb62; }
.brief-notice--wechat .brief-notice__icon::before,
.brief-notice--wechat .brief-notice__icon::after { background: #fff; border-radius: 65% 65% 65% 15%; }
.brief-notice--wechat .brief-notice__icon::before { inset: 6px 9px 11px 4px; }
.brief-notice--wechat .brief-notice__icon::after { inset: 12px 4px 6px 12px; border: 1px solid #06bb62; }
.brief-notice--ding .brief-notice__icon { background: linear-gradient(145deg,#48c3ff,#0875eb); }
.brief-notice--ding .brief-notice__icon::before { inset: 4px; background: white; clip-path: polygon(2% 8%,96% 23%,73% 58%,60% 61%,44% 100%,42% 68%,25% 60%,54% 54%,16% 43%,9% 29%,58% 39%,8% 23%); }
.brief-notice--feishu .brief-notice__icon { background: #fff; }
.brief-notice--feishu .brief-notice__icon::before { inset: 5px 3px; background: linear-gradient(155deg,#00beaa 46%,#157ef7 47%); clip-path: polygon(1% 15%,33% 20%,52% 47%,84% 4%,100% 8%,70% 73%,48% 95%,23% 82%); }
@container (max-width: 620px) {
  .brief-scene { inset: -20px -20px -18px 47%; }
  .brief-phone { width: min(84%, 330px); right: 9%; top: 10px; transform: perspective(540px) rotateY(-22deg) rotateX(7deg) rotateZ(-6deg); }
}
@container (max-width: 400px) {
  .brief-phone { width: 93%; right: 3%; padding-inline: 6px; border-radius: 20px; }
  .brief-phone__heading { font-size: 13px; }
  .brief-notice { padding: 6px; gap: 4px; }
  .brief-notice__icon { flex-basis: 21px; height: 21px; }
  .brief-notice p { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .brief-feed { max-height: 118px; overflow-y: auto; pointer-events: auto; }
}

.idea-scene {
  position: absolute; inset: -16px -12px -18px 47%; overflow: hidden;
}
.idea-desk {
  position: absolute; inset: 7% 5% auto 3%;
  transform: perspective(660px) rotateY(-19deg) rotateX(5deg) rotateZ(-3deg);
}
.idea-sheet {
  min-height: 165px; overflow: hidden; border-radius: 5px;
  background: #f4f0e7; color: #2b302f;
  box-shadow: 0 2px 0 #948f83, 0 4px 0 #ded9ce, 0 12px 22px #0005;
}
.idea-sheet header {
  display: flex; gap: 8px; align-items: center; padding: 6px 12px;
  background: #d8dedb; color: #374640; font-size: 12px; font-weight: 600;
}
.idea-sheet header i { font: bold 13px/1 Arial,sans-serif; }
.idea-page { padding: 10px 14px; font-size: clamp(12px, 2cqi, 15px); line-height: 1.45; }
.idea-page small { display: block; font-size: 10px; color: #58615d; }
.idea-page h4 { margin: 2px 0 4px; font-size: 1.3em; letter-spacing: -.02em; }
.idea-page p { margin: 3px 0; }
.idea-page mark { color: inherit; background: #f0d98c; padding-inline: 2px; }
.idea-writing { animation: idea-write .85s steps(14,end) .25s both; }
.idea-writing + .idea-writing { animation-delay: 1.25s; }
@keyframes idea-write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
.idea-chat { background: #e9ece8; }
.idea-chat header { background: #d6ddd5; }
.idea-chat .idea-page p { margin: 4px 0 4px auto; width: fit-content; max-width: 94%; padding: 3px 7px; border-radius: 5px; background: #b4e69a; }
.idea-chat small { text-align: center; }
.idea-word { background: #faf9f5; }
.idea-word header { color: white; background: #395775; }
.idea-word h4 { color: #345775; }
@container (max-width: 460px) {
  .idea-scene { inset: -14px -17px -18px 47%; }
  .idea-desk { inset: 5% 3% auto 1%; transform: perspective(520px) rotateY(-10deg) rotateZ(-2deg); }
  .idea-page { padding: 7px; line-height: 1.35; }
  .idea-chat .idea-page p { margin-block: 3px; padding: 2px 5px; }
  .idea-sheet header { padding: 5px 7px; font-size: 11px; }
  .idea-page p { margin-block: 2px; }
}
.script-scene { position: absolute; inset: -14px -10px -14px 47%; }
.script-window {
  position: absolute; inset: 3px 3% 3px 2%; display: flex; flex-direction: column;
  background: #292929; color: #f2efe9; border: 1px solid #595953; border-radius: 9px;
  box-shadow: -3px 3px 0 #171818, 0 9px 20px #0005; overflow: hidden;
  transform: perspective(720px) rotateY(-12deg) rotateZ(-2deg);
}
.script-window header { display: flex; align-items: center; gap: 7px; padding: 5px 10px; background: #222323; border-bottom: 1px solid #454541; font-size: 11px; }
.script-thread-icon, .script-path { color: #bcbab3; }
.script-feed { flex: 1; min-height: 0; padding: 7px 9px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.script-feed > div { font-size: clamp(12px, 1.9cqi, 15px); line-height: 1.45; margin-bottom: 9px; }
.script-feed > div:last-child { margin-bottom: 0; }
.script-prompt { margin-left: 8%; border-radius: 10px 10px 3px 10px; background: #40413e; padding: 5px 9px; }
.script-reply strong { display: block; font: 600 11px/1.5 var(--f-cn); color: #e5c1aa; }
.script-reply strong::before { content: "✳"; display: inline-block; margin-right: 5px; }
.script-reply p { margin: 2px 0; }
.script-reply .script-slug, .script-reply b { color: #d8cdbf; font-weight: 600; }
.script-composer { flex: none; display: flex; justify-content: space-between; align-items: center; margin: 0 8px 6px; padding: 3px 5px 3px 9px; border: 1px solid #61615a; border-radius: 8px; background: #343532; color: #c1bfb7; font-size: 10px; }
.script-composer i { width: 16px; text-align: center; border-radius: 50%; background: #e5e2d9; color: #282927; font: 600 12px/16px sans-serif; }
@container (max-width: 460px) {
  .script-window { inset: 2px 1% 2px 1%; transform: perspective(520px) rotateY(-7deg) rotateZ(-1deg); }
  .script-feed { padding: 4px 6px; }
  .script-prompt { margin-left: 4%; padding: 4px 6px; }
  .script-window header { padding: 3px 7px; }
  .script-composer { margin: 0 5px 4px; padding-block: 2px; }
}
.flow-scene { position: absolute; inset: -14px -10px -12px 47%; }
.flow-window {
  position: absolute; inset: 3px 2%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 6px;
  background: #101112; color: var(--paper); padding: 8px; border: 1px solid #575757; border-radius: 8px;
  box-shadow: -3px 3px 0 #202020, 0 8px 15px #0005;
  transform: perspective(680px) rotateY(-12deg) rotateZ(-2deg);
}
.flow-window header { display: flex; align-items: center; gap: 8px; font: 600 11px/1.2 var(--f-cn); }
.flow-window header span { font-weight: 400; color: #bcbcb8; }
.flow-grid { position: relative; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 3px; width: 100%; aspect-ratio: 8 / 3; max-height: 100%; align-self: center; }
.flow-grid > * { width: 100%; height: 100%; min-height: 0; border-radius: 4px; object-fit: cover; overflow: hidden; }
.flow-job { position: relative; background: #48494a; }
.flow-job img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.flow-job.is-done img { opacity: 1; }
.flow-status { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; color: #fff; font: 500 10px/1.2 var(--f-cn); }
.flow-status b { font-variant-numeric: tabular-nums; }
.flow-job.is-done .flow-status { display: none; }
.flow-composer { display: flex; align-items: center; gap: 4px; padding: 4px 6px; min-height: 32px; background: #272829; border: 1px solid #525353; border-radius: 9px; font: 400 11px/1.25 var(--f-cn); }
.flow-prompt { flex: 1; }
.flow-composer i { font: 600 13px/17px sans-serif; text-align: center; width: 17px; border-radius: 50%; color: #171818; background: #e6e4df; }
@container (max-width: 460px) {
  .flow-window { inset-inline: 1%; padding: 5px; transform: perspective(520px) rotateY(-6deg) rotateZ(-1deg); }
}
.video-canvas-scene { position: absolute; inset: -13px -9px -12px 47%; }
.video-canvas {
  position: absolute; inset: 3px 2%; overflow: hidden; isolation: isolate; container-type: size;
  background: radial-gradient(#363735 .8px, transparent 1px) 0 0 / 10px 10px, #171819;
  border: 1px solid #494b48; border-radius: 7px; box-shadow: -3px 3px 0 #202220;
  transform: perspective(720px) rotateY(-10deg) rotateZ(-2deg);
}
.video-wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-wires path { fill: none; stroke: #787a75; stroke-width: 1; vector-effect: non-scaling-stroke; }
.video-wires .model-wire { stroke: #f7ad8f; stroke-width: 2; stroke-linecap: round; }
.video-canvas.is-linked .model-wire { stroke: #787a75; stroke-width: 1; }
.video-source, .video-output { position: absolute; transform: translateY(-50%); }
.video-source { left: 4%; width: 24%; height: 25%; }
.video-source img { width: 100%; height: 100%; object-fit: cover; border: 1px solid #676963; border-radius: 3px; }
.video-source span { position: absolute; left: 2px; bottom: 2px; padding: 0 3px; background: #161616cf; color: white; font: 10px/1.4 var(--f-cn); }
.video-source::after, .video-output::before { content: ""; position: absolute; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: #ddd5c8; transform: translate(-50%,-50%); }
.video-source::after { left: 100%; }
.source-layout { top: 20%; } .source-room { top: 50%; } .source-roller { top: 80%; }
.video-output {
  left: 54%; top: 50%; width: 40%; aspect-ratio: 16/9; border-radius: 4px;
  background: #2a2c2b; border: 1px solid #666961; color: #eee;

}
.video-node-name { position: absolute; bottom: 100%; margin-bottom: 2px; font: 10px/1.3 var(--f-cn); color: #c4c4bb; }
.video-node-play, .video-progress { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-size: 12px; }
.video-node-play { color: #b8bab3; }
.video-progress b { font: 600 14px/1.35 var(--f-mono, monospace); }
.video-output video { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; display: block; }
.video-output [hidden], .video-editor[hidden] { display: none; }
.video-canvas.is-selected .video-output { border-color: #f4b497; box-shadow: 0 0 0 2px #dfaa8740; }
.video-canvas.is-selected .video-editor { border-color: #f4b497; }
.video-canvas.is-preview .video-output { transition: left 2.4s ease-in-out, width 2.4s ease-in-out, box-shadow 2.4s ease-in-out; left: calc((100% - min(92%, 148cqh)) / 2); width: min(92%, 148cqh); z-index: 1; box-shadow: 0 0 0 150px #111d; }
.video-canvas.is-preview .video-output::before { opacity: 0; }
.video-editor {
  position: absolute; inset: auto 3% 5%; padding: 8px; color: #f3f0e8; background: #242525;
  border: 1px solid #666760; border-radius: 7px; box-shadow: 0 4px 12px #0008;
}
.video-editor header { font-size: 11px; color: #bfbfb7; }
.video-prompt { margin: 5px 0 8px; min-height: 2.7em; font: 500 clamp(12px,1.8cqi,15px)/1.35 var(--f-cn); }
.video-settings { display: flex; align-items: center; gap: 4px; font: 10px/1.4 var(--f-cn); }
.video-settings > * { padding: 2px 5px; border-radius: 4px; background: #373836; white-space: nowrap; }
.video-settings .is-set { color: #ffe2c9; background: #504239; }
.video-settings b { margin-left: auto; background: #e9e6df; color: #262626; }
.video-settings b.is-pressed { background: #f8af91; transform: scale(.94); }
@container (max-width: 460px) {
  .video-canvas { inset-inline: 0; transform: perspective(520px) rotateY(-6deg) rotateZ(-1deg); }
  .video-editor { padding: 5px; }
  .video-settings { gap: 3px; }
}
.retouch-scene { position: absolute; inset: -12px -10px -14px 46%; }
.retouch-window {
  position: absolute; inset: 3px 2%; display: grid; grid-template-columns: 18px minmax(0,1fr) clamp(64px,12cqi,98px);
  grid-template-rows: 23px minmax(0,1fr); overflow: hidden; border: 1px solid #58595b; border-radius: 6px;
  color: #e1e1dc; background: #28292a; box-shadow: -3px 3px 0 #1e1e20;
  transform: perspective(700px) rotateY(-10deg) rotateZ(-2deg);
}
.retouch-window header { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; padding-inline: 6px; background: #353638; border-bottom: 1px solid #48494b; font-size: 11px; }
.retouch-window header i { color: #9adaff; background: #142736; border-radius: 2px; padding: 1px 3px; font: bold 11px/1.15 sans-serif; }
.retouch-tools { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 6px; background: #38393a; font: 13px/1.2 sans-serif; }
.retouch-tool-active { color: white; background: #505153; }
.retouch-mat { display: grid; place-items: center; min-width: 0; overflow: hidden; padding: 3px; }
.retouch-photo { position: relative; width: 100%; height: 90%; overflow: hidden; }
.retouch-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 60%; }
.retouch-photo img:not(.retouch-final) { filter: saturate(.58); }
.retouch-repair, .retouch-final { opacity: 0; transition: opacity .45s ease; }
.retouch-window:not([data-stage="source"]) .retouch-repair { opacity: 1; }
.retouch-window[data-stage="curves"] .retouch-repair { filter: saturate(.58) contrast(1.045); }
.retouch-window[data-stage="color"] .retouch-final { opacity: 1; transition-duration: .85s; }
.retouch-brush { position: absolute; left: 72%; top: 63%; width: 12%; aspect-ratio: 1; border: 1px solid white; border-radius: 50%; box-shadow: 0 0 0 1px #252628aa; }
.retouch-window[data-stage="source"] .retouch-brush { animation: retouch-stroke 1.65s ease-out both; }
@keyframes retouch-stroke { from { transform: translate(45%,40%); opacity: 0; } 25% { opacity: 1; } to { transform: translate(0,0); } }
.retouch-window:not([data-stage="source"]) .retouch-brush { opacity: 0; transition: opacity .35s; }
.retouch-panel { display: flex; flex-direction: column; min-width: 0; background: #363738; border-left: 1px solid #525355; padding: 4px; }
.retouch-property { color: #dad9d4; font: 600 10px/1.5 var(--f-cn); }
.retouch-curve { display: block; width: 100%; min-height: 12px; height: 24%; margin-bottom: 3px; background-color: #262729; background-image: linear-gradient(#464748 1px,transparent 1px),linear-gradient(90deg,#464748 1px,transparent 1px); background-size: 25% 33%; }
.retouch-histogram { fill: #66696c; }
.retouch-line { fill: none; stroke: #c2c4c2; stroke-width: 1.35; }
.retouch-window[data-stage="curves"] .retouch-line { stroke: #f4c5a4; stroke-width: 2; }
.retouch-layers { list-style: none; padding: 0; margin: 0; }
.retouch-layers li { display: flex; gap: 4px; align-items: center; padding: 2px 3px; font: 10px/1.35 var(--f-cn); color: #cecfc9; white-space: nowrap; border-top: 1px solid #464749; }
.retouch-layers i { font: 12px/1 sans-serif; color: #c4c6c3; }
.retouch-layers .is-current { color: white; background: #535456; box-shadow: inset 2px 0 #ebae88; }
@container (max-width: 460px) {
  .retouch-window { inset-inline: 0; grid-template-columns: minmax(0,1fr) 67px; grid-template-rows: 20px minmax(0,1fr); transform: perspective(520px) rotateY(-5deg) rotateZ(-1deg); }
  .retouch-tools { display: none; }
  .retouch-panel { padding: 3px 2px; }
  .retouch-layers li { gap: 2px; padding-inline: 2px; }
  .retouch-photo { height: 84%; }
}
.edit-scene { position: absolute; inset: -12px -10px -13px 46%; }
.edit-monitor {
  --edit-loop: 12s;
  position: absolute; inset: 4px 2%; isolation: isolate; overflow: hidden;
  border: 1px solid #555657; border-radius: 6px; background: #191a1c;
  transform: perspective(710px) rotateY(-8deg) rotateZ(-1.5deg);
}
.grade-desk { position: absolute; inset: 0; display: grid; grid-template-rows: 56% 44%; animation: grade-camera var(--edit-loop) ease-in-out 1 both; }
.grade-views { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.grade-views figure { margin: 0; position: relative; min-width: 0; overflow: hidden; }
.grade-views img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 30% center; }
.grade-result { animation: grade-develop var(--edit-loop) ease-in-out 1 both; }
.grade-views figcaption { position: absolute; bottom: 4px; left: 5px; background: #141414bd; color: #fff; padding: 1px 4px; border-radius: 2px; font: 10px/1.4 var(--f-cn); }
.grade-console { display: grid; grid-template-columns: repeat(4, 1fr); padding: 3px 4px; gap: 2px; background: #25262b; }
.grade-console > div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: 10px/1 var(--f-cn); color: #dedfdf; }
.grade-wheel {
  display: block; position: relative; width: min(65%, 5.6cqi, 48px); aspect-ratio: 1; border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(90deg, transparent 49%, #d7d7d744 50%, transparent 51%) padding-box,
    linear-gradient(transparent 49%, #d7d7d744 50%, transparent 51%) padding-box,
    radial-gradient(circle,#39393d 0%,#202025c9 85%) padding-box,
    conic-gradient(#d254bd,#776bd6,#527fc9,#53a995,#85b04d,#ecba55,#cb594c,#d254bd) border-box;
}
.grade-wheel::after { content: ""; position: absolute; width: 4px; height: 4px; margin: -2px; background: #f6f5ee; border-radius: 50%; box-shadow: 0 0 2px #000; animation: grade-point var(--edit-loop) ease-in-out 1 both; }
.grade-console b { width: 47%; height: 3px; background: linear-gradient(90deg,#585957,#ccc 52%,#494a49 54%); border-radius: 2px; }
.cut-desk { position: absolute; inset: 0; overflow: hidden; container-type: size; background: #242426; animation: edit-cut var(--edit-loop) linear 1 both; }
.cut-tracks { position: absolute; top: 0; left: 0; height: 100%; width: max(113%, 170cqh); animation: cut-camera var(--edit-loop) ease-in-out 1 both; }
.cut-tracks img { width: 100%; height: 100%; display: block; }
.cut-playhead { position: absolute; top: 0; bottom: 0; width: 1.5px; background: #fcf8ee; box-shadow: 1px 0 2px #111; animation: cut-play var(--edit-loop) linear 1 both; }
.cut-playhead::before { content: ""; position: absolute; left: -3px; top: 0; width: 8px; height: 8px; background: #fff7ed; clip-path: polygon(0 0,100% 0,100% 52%,50% 100%,0 52%); }
@keyframes grade-point { 0%,8% { left: 50%; top: 50%; } 32%,100% { left: calc(50% + var(--dx)); top: calc(50% + var(--dy)); } }
@keyframes grade-develop { 0%,9% { opacity: 0; } 35%,100% { opacity: 1; } }
@keyframes grade-camera { 0%,100% { transform: scale(1.025) translateX(.7%); } 50%,90% { transform: scale(1.05) translateX(-1.6%); } }
@keyframes edit-cut { 0%,47% { opacity: 0; } 50%,100% { opacity: 1; } }
@keyframes cut-camera { 0%,47% { transform: translateX(-1%) scale(1.015); } 98%,100% { transform: translateX(-9%) scale(1.04); } }
@keyframes cut-play { 0%,47% { left: 8%; } 98%,100% { left: min(85%, 86cqw); } }
@container (max-width: 460px) {
  .edit-monitor { inset-inline: 0; transform: perspective(520px) rotateY(-4deg) rotateZ(-1deg); }
  .grade-wheel { width: min(77%, 32px); }
}
@media (prefers-reduced-motion: reduce) {
  .grade-desk { bottom: 45%; grid-template-rows: 1fr; }
  .grade-console { display: none; }
  .cut-desk { top: 56%; }
  .cut-playhead { left: 35%; }
}
.fx-scene { position: absolute; inset: -12px -10px -13px 46%; }
.fx-monitor {
  position: absolute; inset: 4px 2%; overflow: hidden; isolation: isolate;
  background: #1b1c20; color: #dddee3; border: 1px solid #56565c; border-radius: 6px;
  transform: perspective(690px) rotateY(-8deg) rotateZ(-1.5deg);
}
.fx-desk {
  position: absolute; inset: 0; display: grid; grid-template: 18px minmax(0,1fr) 23% / 31% minmax(0,1fr);
  transform-origin: 1% 40%; transition: transform .62s ease-in-out;
}
.fx-monitor[data-phase="adjust"] .fx-desk { transform: scale(1.42); }
.fx-desk header { grid-column: 1/-1; display: flex; align-items: center; gap: 5px; padding: 0 5px; background: #343438; font: 10px/1 var(--f-cn); }
.fx-desk header i { font: bold 11px/1 sans-serif; color: #c2b8ff; background: #262442; padding: 2px; }
.fx-tab { border-bottom: 1px solid #53535a; color: #f2f1f5; font: 600 10px/1.4 var(--f-cn); }
.fx-controls { background: #26272b; border-right: 2px solid #101012; padding: 3px 5px; overflow: hidden; }
.fx-group { background: #36373b; font: 10px/1.4 var(--f-cn); margin: 4px 0 2px; }
.fx-row { display: flex; justify-content: space-between; align-items: center; gap: 2px; font: 10px/1.3 var(--f-cn); }
.fx-row b { color: #9acaf3; font: 600 10px/1.3 var(--f-mono,monospace); }
.fx-track { margin: 3px 1px; height: 2px; background: #101114; }
.fx-track i { display: block; height: 100%; background: #a09ac8; transform-origin: left; }
.fx-scale-track { transform: scaleX(var(--scale-track,.36)); }
.fx-glow-track { transform: scaleX(var(--glow,0)); }
.fx-comp { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0,1fr); padding: 3px; }
.fx-view { display: grid; place-items: center; overflow: hidden; background: #141516; }
.fx-picture { position: relative; width: 100%; height: 100%; overflow: hidden; transform: scale(var(--logo-scale,1)); }
.fx-picture video,.fx-picture canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.fx-monitor[data-phase="still"] .fx-picture { background: url("../assets/video/pipeline/logo-reveal.jpg") center/contain no-repeat; }
.fx-bloom { mix-blend-mode: screen; opacity: var(--glow,0); filter: blur(3px) brightness(1.8); background: url("../assets/video/pipeline/logo-reveal.jpg") center/contain no-repeat; pointer-events: none; }
.fx-layers { position: relative; grid-column: 1/-1; overflow: hidden; border-top: 2px solid #101012; }
.fx-layers img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; }
.fx-layers i { position: absolute; left: var(--fx-head,44%); top: 0; bottom: 0; width: 1px; background: #82b7f5; }
@container (max-width: 460px) {
  .fx-monitor { inset-inline: 0; transform: perspective(510px) rotateY(-4deg) rotateZ(-1deg); }
  .fx-desk { grid-template-columns: 61px minmax(0,1fr); }
  .fx-controls { padding-inline: 3px; }
}
/* 09 · 排期交付与跨平台成片 */
.delivery-scene {
  position: absolute; inset: -4px -2px -2px 46%; overflow: hidden; border-radius: 6px;
  transform: perspective(720px) rotateY(-15deg) rotateX(5deg) rotateZ(-3deg);
  box-shadow: 3px 6px 12px #0005;
  border: 1px solid #58585c; background: #faf9fc; container-type: size;
  font: 500 clamp(9px, 1.6cqi, 13px)/1.3 var(--f-cn); color: #252333;
}
.delivery-sheet { height: 100%; background: #fff; }
.delivery-sheet header {
  height: 18%; display: flex; align-items: center; gap: .45em; padding: 0 4%;
}
.delivery-sheet header { background: #f5eef7; font-weight: 700; }
.delivery-sheet header i { color: #905bae; font: bold 1.4em/1 sans-serif; }
.delivery-sheet table { border-collapse: collapse; width: 96%; margin: 3% auto 0; font-size: 1em; }
.delivery-sheet th, .delivery-sheet td { text-align: left; height: 15cqh; white-space: nowrap; padding: 0 .45em; border-bottom: 1px solid #e1dfe7; }
.delivery-sheet th { font-weight: 500; color: #696579; background: #f7f6fa; }
.delivery-sheet td:nth-child(2) { font-variant-numeric: tabular-nums; color: #605f6b; }
.delivery-sheet td:last-child { position: relative; }
.delivery-sheet td span, .delivery-menu b { display: inline-grid; grid-template-columns: 1em auto; gap: .28em; align-items: center; background: #d9f2e1; color: #215f38; padding: .18em .45em; border-radius: 4px; }
.delivery-task { background: #f4f0fa; font-weight: 650; }
.delivery-sheet span.delivery-status { background: #dce6ff; color: #2b4d9c; }
.delivery-scene[data-done] .delivery-status { background: #d9f2e1; color: #215f38; }
.delivery-menu { position: absolute; right: 4%; bottom: 88%; background: white; border: 1px solid #cbc8d2; padding: .55em; border-radius: 5px; box-shadow: 0 2px 7px #25233328; }
.delivery-pointer { position: absolute; bottom: -.2em; right: .25em; width: .8em; height: 1.2em; background: #21212a; clip-path: polygon(0 0, 100% 67%, 55% 68%, 38% 100%); animation: delivery-select .65s ease-out both; }
@keyframes delivery-select { from { transform: translate(.7em,1em); } }
.delivery-sheet td span::before, .delivery-menu b::before { content: "✓"; font: bold 1em/1 Arial,sans-serif; text-align: center; }
.delivery-scene:not([data-done]) .delivery-status::before { content: "◷"; }
.delivery-publish, .delivery-page { position: absolute; inset: 0; }
.delivery-publish { --film-width: min(60cqw, 98cqh); --film-height: min(33.75cqw, 55.125cqh); }
.delivery-film {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: var(--film-width); height: var(--film-height); object-fit: contain; background: #080808;
}
.delivery-page { overflow: hidden; font: 500 clamp(8px,2.35cqw,11px)/1.25 var(--f-cn); }
.delivery-page img { display: block; width: 100%; object-fit: cover; }
.delivery-tiktok { background: #100d12; color: white; }
.tt-backdrop { position: absolute; inset: -8%; background: linear-gradient(0deg,#100b12eb,transparent 65%,#100b1299),url("../assets/video/recent/reel-02.jpg") center/cover; filter: blur(4px); opacity: .78; }
.tt-brand,.tt-caption,.tt-tabs,.tt-actions { position: absolute; }
.tt-brand { top: 6%; left: 4%; font: 800 clamp(12px,4.6cqw,20px)/1 Arial,sans-serif; text-shadow: -.7px 0 #25f4ee,.7px 0 #fe2c55; }
.tt-tabs { top: 7%; left: 52%; white-space: nowrap; }
.tt-tabs b { padding-bottom: 3px; border-bottom: 2px solid white; }
.tt-actions { right: 5%; bottom: 13%; display: grid; justify-items: center; gap: 2cqh; font: bold clamp(12px,4.4cqw,22px)/1 Arial,sans-serif; }
.tt-actions i,.ig-account i { display: grid; place-items: center; border-radius: 50%; font: 700 10px/1 sans-serif; width: 1.65em; height: 1.65em; }
.tt-actions i { background: #90483d; border: 1px solid white; }
.tt-caption { bottom: 5%; left: 5%; line-height: 1.5; }
.delivery-youtube { color: #141416; background: white; }
.yt-bar { height: 18%; display: flex; align-items: center; gap: 10%; padding-left: 4%; }
.yt-bar b { font: 750 clamp(12px,4cqw,19px)/1 Arial,sans-serif; letter-spacing: -.06em; }
.yt-bar i { color: #fff; background: #f03; border-radius: 4px; padding: .2em .45em; font: 700 .59em/1 Arial,sans-serif; vertical-align: middle; }
.yt-bar small { width: 39%; padding: .22em .85em; border: 1px solid #d8d8dc; border-radius: 99px; color: #777; }
.yt-related { position: absolute; right: 2%; top: 21%; width: 16%; }
.yt-related strong,.yt-related small { font-size: .82em; }
.yt-related img { aspect-ratio: 2.2; border-radius: 3px; margin-top: 3px; }
.yt-title { position: absolute; top: calc(50% + var(--film-height)/2); left: calc(50% - var(--film-width)/2); width: var(--film-width); }
.yt-title i { display: block; height: 2px; background: linear-gradient(to right,#f03 32%,#ddd 32%); margin-bottom: .5em; }
.yt-title small { display: block; margin-top: .18em; }
.delivery-instagram { background: #eee9e2; color: #242126; }
.ig-wall { position: absolute; inset: -6%; transform: rotate(-8deg); opacity: .52; background: url("../assets/collection/09-01.jpg") left/33% 100% no-repeat,url("../assets/collection/09-02.jpg") center/33% 100% no-repeat,url("../assets/collection/09-04.jpg") right/33% 100% no-repeat; }
.ig-post { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: calc(var(--film-width) + 4%); height: calc(var(--film-height) + 32%); background: #fff; box-shadow: 0 4px 12px #30253745; }
.ig-account,.ig-actions { display: flex; align-items: center; position: absolute; inset-inline: 5%; height: 16cqh; }
.ig-account { top: 0; gap: .4em; }
.ig-account i { background: #fff4ed; color: #733d54; border: 2px solid #d86491; }
.ig-account small,.ig-actions small { margin-left: auto; }
.ig-actions { bottom: 0; font: 600 clamp(12px,3.6cqw,18px)/1 Arial,sans-serif; }
.ig-save { width: .5em; height: .74em; background: #242126; clip-path: polygon(0 0,100% 0,100% 100%,50% 72%,0 100%); }
.ig-brand { position: absolute; bottom: 4%; left: 2%; color: #272326; background: #fffffff0; padding: .15em .35em; font: italic 700 clamp(11px,3.5cqw,17px)/1 Georgia,serif; }
.delivery-amazon { color: #131921; background: #fff; }
.az-nav { height: 15%; display: flex; align-items: center; padding: 0 3%; background: #182330; }
.az-nav b { position: relative; color: white; font: 750 clamp(13px,4.6cqw,22px)/1 Arial,sans-serif; margin-right: 7%; letter-spacing: -.06em; }
.az-nav b::after { content: ""; position: absolute; bottom: -3px; left: 26%; width: 58%; height: 4px; border-radius: 50%; border-bottom: 2px solid #ffad30; transform: rotate(-6deg); }
.az-nav span,.az-nav i { padding: .25em .45em; font-style: normal; line-height: 1; background: #fff; }
.az-nav span { flex: 1; color: #69707a; }
.az-nav i { background: #febd69; }
.az-crumb { padding: .2em 3%; font-size: .78em; color: #445267; background: #f0f2f3; }
.az-gallery { position: absolute; left: 3%; top: 30%; width: 12%; max-width: 40px; }
.az-gallery img,.az-gallery b { aspect-ratio: 1.65; margin-bottom: 3px; border: 1px solid #b1b4b7; border-radius: 3px; }
.az-gallery b { display: grid; place-items: center; color: #09667e; border-color: currentColor; }
.az-buy { position: absolute; top: 31%; right: 1.5%; width: 16%; }
.az-buy b,.az-buy small { display: block; }
.az-buy small { color: #126578; font-size: .82em; margin-top: 4px; }
.az-buy em { display: block; margin-top: 1em; background: #ffda21; padding: .35em .1em; border-radius: 12px; font: 600 .85em/1.25 var(--f-cn); text-align: center; }
@container (max-width: 240px) {
  .delivery-sheet table { table-layout: fixed; width: 98%; font-size: 9px; }
  .delivery-sheet th,.delivery-sheet td { padding-inline: 1px; }
  .delivery-sheet th:first-child { width: 42%; }
  .delivery-sheet th:nth-child(2) { width: 25%; }
  .delivery-sheet td:first-child { white-space: normal; }
  .delivery-sheet td span { padding-inline: 2px; gap: 1px; }
  .delivery-menu { padding: .2em; }
  .az-buy em { font-size: 7px; }
}


/* ================= 6. 联系 ================= */
html:has(#contact:target) { scroll-behavior: auto; }
html:has(.contact-sequence.has-profile) { overscroll-behavior-y: none; }
.contact-sequence { position: relative; isolation: isolate; overflow-x: clip; --expand: 0; }
.contact-stage {
  --rest-width: min(34vw, 65svh, 560px);
  --frame-inset-y: calc((50% - var(--rest-width) / 3.18) * max(0, 1 - 1.6 * var(--expand)));
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: grid; place-items: center; overflow: hidden; background: var(--ink);
}
.contact-frame {
  position: absolute;
  inset-block: var(--frame-inset-y);
  inset-inline: calc((100% - var(--rest-width)) / 2 * (1 - var(--expand)));
  overflow: hidden; border-radius: calc(24px * (1 - var(--expand)));
  background: #111;
}
.contact-frame video {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(calc(1 - .25 * var(--expand))) contrast(calc(1 + .04 * var(--expand)));
  transform-origin: 48% 60%; transform: scale(calc(1.35 - .35 * var(--expand)));
}
.contact-frame::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,0,0,.22);
  opacity: var(--expand); pointer-events: none;
}
.contact-stage__title, .contact-stage__hint {
  position: relative; z-index: 1; opacity: clamp(0, 1 - var(--expand) * 2.8, 1);
}
.contact-stage__title {
  display: flex; gap: .35em; line-height: 1.12; letter-spacing: -.04em;
  font-size: clamp(32px, 5.4vw, 90px); font-weight: 800; color: #fff;
  text-shadow: 0 3px 9px #0005, 0 9px 26px #0007; transform: translateY(calc(-36px * var(--expand)));
}
.contact-stage__hint {
  position: absolute; top: min(calc(100% - 48px), calc(100% - var(--frame-inset-y) + clamp(48px, 6.4vw, 100px)));
  display: inline-flex; gap: .6em; align-items: center; min-height: 44px;
  font-size: 14px; letter-spacing: .08em; color: #c4c0b9;
}
.contact-stage__hint span { color: var(--rec); font-size: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .contact-stage__hint span { animation: contact-cue 1.7s ease-in-out infinite; }
  @keyframes contact-cue { 50% { transform: translateY(4px); } }
}
.contact {
  position: relative; z-index: 1; color: white;
}
.contact__scene {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  padding-top: var(--nav-height);
  transform: translateY(var(--scene-offset, 0px));
  /* 文案后方压一层很淡的暗角，亮画面里小字也读得清。 */
  background: radial-gradient(ellipse 48% 62% at 64% 50%, rgba(0,0,0,calc(.42 * var(--arrival, 1))), transparent 72%);
}
.contact-sequence:not(.has-contact) .contact__scene { visibility: hidden; }
.contact__grid {
  flex: 1; display: grid; grid-template-columns: 360px minmax(0, 540px);
  grid-template-areas: "profile copy"; justify-content: center; align-items: center;
  column-gap: clamp(64px, 8vw, 136px); padding-block: 18px;
}
.contact__copy, .contact .footer { opacity: var(--arrival, 1); }
/* 右侧文案：像监视器上的场记信息，左侧一条时间线把它和名片连在一起。 */
.contact__copy {
  --rule-x: calc(-1 * clamp(32px, 4vw, 68px));
  position: relative; grid-area: copy; width: 100%;
  transform: translateY(calc(22px * (1 - var(--arrival, 1))));
  text-shadow: 0 2px 14px rgba(0,0,0,.72), 0 6px 32px rgba(0,0,0,.5);
}
.contact__copy::before, .contact__copy::after {
  content: ""; position: absolute; left: var(--rule-x); pointer-events: none;
}
.contact__copy::before {
  top: 4px; bottom: 4px; width: 1px;
  background: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.12) 70%, transparent);
  transform-origin: top;
}
/* 红色播放头 */
.contact__copy::after {
  top: 2px; width: 9px; height: 9px; margin-left: -4px; border-radius: 50%;
  background: var(--rec); box-shadow: 0 0 12px var(--rec);
}
.contact__meta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: .16em; color: rgba(255,255,255,.86);
}
.contact__rec { display: inline-flex; align-items: center; gap: 8px; color: var(--rec); }
.contact__tc { margin-left: auto; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.contact__kicker {
  margin-top: 26px; font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(40px, 4.6vw, 76px); line-height: .9; letter-spacing: .01em;
  color: transparent; -webkit-text-stroke: 1.2px rgba(255,255,255,.78);
  text-shadow: none;
}
.contact__title {
  margin-top: 14px; font-size: clamp(2.75rem, 4.4vw, 4.2rem); font-weight: 650;
  line-height: 1.14; letter-spacing: -.02em;
}
.contact__line { display: block; }
.contact__title .ch, .contact__kicker .ch { display: inline-block; white-space: pre; }
/* 句号就是录制灯 */
.contact__title .ch--stop { color: var(--rec); text-shadow: 0 0 18px rgba(255,59,31,.45), 0 2px 14px rgba(0,0,0,.6); }
.contact__lead {
  margin-top: 20px; color: rgba(255,255,255,.9); font-weight: 500; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.8;
}
.contact__slate { margin-top: 30px; font-size: 12px; letter-spacing: .08em; }
.contact__slate div {
  position: relative; display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 12px;
  padding-block: 11px;
}
.contact__slate div::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.34), rgba(255,255,255,.06));
  transform-origin: left;
}
.contact__slate dt { color: rgba(255,255,255,.66); letter-spacing: .18em; }
.contact__slate dd { margin: 0; display: flex; align-items: center; gap: 10px; color: #f3f1ec; font-family: var(--f-cn); font-size: 14px; letter-spacing: .04em; }
.contact__live {
  width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84;
}
@media (prefers-reduced-motion: no-preference) {
  .contact__live { animation: contact-live 2.4s ease-in-out infinite; }
  @keyframes contact-live { 50% { box-shadow: 0 0 0 5px #3ddc8400, 0 0 4px #3ddc84; opacity: .55; } }

  /* 进场：像拉焦一样，字从虚到实 */
  .contact__copy::before { transform: scaleY(0); transition: transform 1.1s var(--ease); }
  .contact__copy::after { opacity: 0; transform: translateY(-10px); transition: opacity .4s, transform .6s var(--ease); }
  .contact__meta > * { opacity: 0; transform: translateX(-12px); transition: opacity .5s, transform .7s var(--ease); }
  .contact__kicker .ch { opacity: 0; transition: opacity .05s; }
  .contact__title .ch {
    opacity: 0; filter: blur(12px); transform: translateY(.42em) scale(1.08);
    transition: opacity .7s var(--ease), filter .9s var(--ease), transform .9s var(--ease);
  }
  .contact__lead { opacity: 0; filter: blur(6px); transition: opacity .9s var(--ease), filter .9s var(--ease); }
  .contact__slate div { opacity: 0; transform: translateX(-16px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
  .contact__slate div::before { transform: scaleX(0); transition: transform 1s var(--ease); }

  .is-arrived .contact__copy::before { transform: none; }
  .is-arrived .contact__copy::after { opacity: 1; transform: none; transition-delay: .2s; }
  .is-arrived .contact__meta > * { opacity: 1; transform: none; }
  .is-arrived .contact__meta > :nth-child(2) { transition-delay: .08s; }
  .is-arrived .contact__meta > :nth-child(3) { transition-delay: .16s; }
  /* 英文像放映机启动一样逐字闪现 */
  .is-arrived .contact__kicker .ch { opacity: 1; animation: contact-flicker .5s steps(1) both; animation-delay: calc(.15s + var(--i) * 55ms); }
  @keyframes contact-flicker { 0% { opacity: 0; } 20% { opacity: 1; } 40% { opacity: .2; } 60%, 100% { opacity: 1; } }
  .is-arrived .contact__title .ch { opacity: 1; filter: none; transform: none; transition-delay: calc(.3s + var(--i) * 60ms); }
  .is-arrived .contact__title .ch--stop { animation: contact-stop 1.6s steps(1) 1.6s infinite; }
  @keyframes contact-stop { 50% { opacity: .25; } }
  .is-arrived .contact__lead { opacity: 1; filter: none; transition-delay: .9s; }
  .is-arrived .contact__slate div { opacity: 1; transform: none; }
  .is-arrived .contact__slate div::before { transform: none; }
  .is-arrived .contact__slate div:nth-child(1), .is-arrived .contact__slate div:nth-child(1)::before { transition-delay: 1.05s; }
  .is-arrived .contact__slate div:nth-child(2), .is-arrived .contact__slate div:nth-child(2)::before { transition-delay: 1.15s; }
  .is-arrived .contact__slate div:nth-child(3), .is-arrived .contact__slate div:nth-child(3)::before { transition-delay: 1.25s; }

  /* 鼠标划过标题：单字轻微抬起 */
  @media (hover: hover) and (pointer: fine) {
    .is-arrived .contact__title .ch:not(.ch--stop):hover { transform: translateY(-.08em); color: #fff; transition: transform .25s var(--ease); transition-delay: 0s; }
  }
}
.profile {
  grid-area: profile; align-self: center; display: grid; gap: 12px; min-width: 0;
  scroll-margin-top: var(--nav-height);
}
.profile__glass, .profile__actions button, .contact__platforms a {
  opacity: 0;
  color: white;
  background: linear-gradient(135deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.04) 50%, rgba(255,255,255,.09) 100%);
  border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(28px) saturate(180%) brightness(1.08);
  backdrop-filter: blur(28px) saturate(180%) brightness(1.08);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.42), inset 0 -1px 1px rgba(255,255,255,.12),
              inset 1px 0 1px rgba(255,255,255,.16), 0 16px 40px rgba(0,0,0,.32);
}
.has-profile :is(.profile__glass, .profile__actions button, .contact__platforms a) { opacity: 1; }
.profile__card { perspective: 950px; }
.profile__glass {
  position: relative; overflow: hidden; border-radius: 26px;
  /* 两行按钮与行间距共 130px，矮屏优先收缩人像。 */
  height: min(380px, calc(78svh - 130px));
}
/* 彩光留在人像内部，独立按钮直接透出视频。 */
.profile__portrait::before, .profile__portrait::after {
  content: ""; position: absolute; inset: -4%; z-index: -1; pointer-events: none; filter: blur(28px);
}
.profile__portrait::before {
  background: radial-gradient(ellipse 46% 32% at 5% 22%, #10c9b69c, transparent),
              radial-gradient(ellipse 49% 36% at 96% 87%, #306aec94, transparent);
}
.profile__portrait::after {
  background: radial-gradient(ellipse 36% 26% at 83% 6%, #ff735a82, transparent);
}
.profile__glass::after {
  content: ""; position: absolute; z-index: 2; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at var(--glint-x, 50%) var(--glint-y, 30%), #ffffff13, transparent 64%);
}
.profile__portrait {
  position: relative; display: grid; place-items: center; isolation: isolate; height: 100%;
}
.profile__photo {
  position: absolute; top: -5%; width: 100%; height: 122%; object-fit: contain; object-position: center top;
  -webkit-mask-image: linear-gradient(#000 56%, transparent 86%);
  mask-image: linear-gradient(#000 56%, transparent 86%);
}
.profile__caption {
  position: absolute; inset: auto 0 0; background: linear-gradient(transparent, #090b13b3);
  padding: 30px 20px 16px; line-height: 1.45; text-shadow: 0 2px 8px #0008;
}
.profile__caption h3 { font-size: 22px; font-weight: 700; }
.profile__caption p { color: #f3f2ef; font-size: 14px; }
.profile__actions, .contact__platforms { display: grid; gap: 12px; }
.profile__actions { grid-template-columns: 1fr 1fr; }
.contact__platforms { grid-template-columns: repeat(3, 1fr); }
.profile__actions button, .contact__platforms a {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  text-shadow: 0 1px 3px #000b, 0 2px 8px #0009;
}
.profile__actions button { height: 60px; border-radius: 18px; font-size: 15px; font-weight: 550; }
.profile__actions button[aria-expanded="true"], .profile__actions button.is-copied { border-color: #ffffff75; }
.profile svg { width: 22px; height: 22px; fill: none; stroke: white; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.profile svg, .profile__wechat img { filter: drop-shadow(0 1px 3px #0008); }
.profile__wechat img { width: 24px; height: 22px; object-fit: contain; }
.contact__platforms a { height: 46px; border-radius: 999px; gap: 6px; font-size: 13px; }
.contact__platforms img { width: 16px; height: 16px; object-fit: contain; flex: none; }
/* 补偿白芯图标自带的透明留边。 */
.contact__douyin { transform: scale(1.24); }
.profile__glass { transition: opacity .48s var(--ease); }
.contact__platforms a, .profile__actions button {
  transition: opacity .48s var(--ease), background-color .2s, border-color .2s;
}
@media (hover: hover) {
  .contact__platforms a:hover, .profile__actions button:hover {
    background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.38);
  }
}
.profile__code {
  position: relative; height: calc(100% - 48px); aspect-ratio: 1;
  max-height: calc(100svh - var(--nav-height) - 32px);
  scroll-margin-top: var(--nav-height);
  border-radius: 5%; overflow: hidden; opacity: 0; visibility: hidden;
  box-shadow: -6px 0 26px #11d4c836, 6px 0 26px #346dff42;
}
/* 仅隐藏文件外围的深色背景，完整保留发光边框和码点四周的静区。 */
.profile__code img {
  position: absolute; width: 126%; max-width: none; height: 126%; top: -13%; left: -13%;
}
.is-scanning .profile__caption, .is-scanning .profile__photo { opacity: 0; visibility: hidden; }
.is-scanning .profile__code { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .profile__email.is-copied span { animation: copy-confirm .24s ease-out; }
  @keyframes copy-confirm { from { opacity: 0; transform: translateY(3px); } }
  .profile__portrait::before { animation: contact-lights 5s ease-in-out infinite alternate; }
  .profile__portrait::after { animation: contact-warmth 4s ease-in-out infinite alternate; }
  @keyframes contact-lights { to { transform: translateY(12%) scaleY(.78); } }
  @keyframes contact-warmth { to { transform: translate(-23%, -4%); } }
  .profile__caption { transition: opacity .18s, visibility .18s; }
  .profile__code, .profile__photo { transition: opacity .26s ease, transform .46s cubic-bezier(.2,.75,.2,1), visibility .3s; }
  .profile:not(.is-scanning) .profile__code { transform: perspective(700px) rotateY(65deg) scale(.8); }
  .is-scanning .profile__photo { transform: perspective(700px) rotateY(-65deg) scale(.9); }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .profile__glass { transition: opacity .48s var(--ease), transform .24s ease-out; }
  .profile:not(.is-scanning) .profile__glass { transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); }
  .profile__glass::after { transition: opacity .2s; }
  .profile:not(.is-scanning) .profile__card:hover .profile__glass::after { opacity: 1; }
}

.footer { position: relative; background: transparent; text-shadow: 0 1px 2px #000, 0 0 5px #000, 0 0 12px #000; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px 22px; }
.footer__credit { text-transform: none; }
.footer__credit > span:last-child { display: inline-block; }
.footer__links { display: flex; gap: 24px; white-space: nowrap; }
.footer .dim, .footer__links a { color: #efedeb; }
.footer__links a:hover { text-decoration: underline; }
@media (min-width: 801px) and (max-width: 880px) {
  .contact__slate div { grid-template-columns: 60px 1fr; gap: 8px; }
  .contact__meta { font-size: 11px; letter-spacing: .06em; gap: 8px; }
}
@media (min-width: 801px) and (max-height: 720px) {
  .contact__grid { padding-block: 6px; }
  .footer__inner { padding-block: 10px 14px; }
}
@media (max-width: 800px), (max-height: 550px) {
  .contact-stage { --rest-width: min(65vw, 70svh); }
  .contact-stage__title { font-size: clamp(30px, 9.3vw, 52px); }
  .contact__grid {
    grid-template-areas: "copy" "profile";
    grid-template-columns: minmax(0, 360px);
    justify-content: center; align-content: center; gap: 22px; padding-block: 28px 12px;
  }
  .contact__copy { place-self: center start; width: 100%; margin: 0; }
  .contact__copy::before, .contact__copy::after, .contact__slate, .contact__tc { display: none; }
  .contact__meta { font-size: 11px; gap: 12px; flex-wrap: nowrap; white-space: nowrap; }
  .contact__meta .footer__links {
    margin-left: auto; gap: 14px; font-size: inherit; letter-spacing: .06em;
  }
  .contact__meta .footer__links a {
    line-height: 44px; margin-block: -13px;
    text-shadow: 0 1px 3px #000, 0 2px 10px #000a;
  }
  .contact__kicker { margin-top: 14px; font-size: clamp(32px, 9vw, 42px); }
  .contact__title { display: flex; white-space: nowrap; margin-top: 6px; font-size: min(9.4vw, 40px); }
  .contact__lead { margin-top: 12px; font-size: min(4.5vw, 15px); line-height: 1.7; }
  .profile__glass { height: auto; aspect-ratio: 18 / 19; }
  .footer__credit { letter-spacing: .02em; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 10px; max-width: calc(360px + 2 * var(--gutter)); }
}
@media (max-width: 360px) {
  .contact__meta { letter-spacing: .04em; gap: 8px; }
  .contact__meta .footer__links { gap: 10px; letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-stage { position: relative; --expand: 0; }
  .contact { background: linear-gradient(#00000038, #00000038), url("../assets/img/contact-opening.jpg") center / cover; }
}

/* ================= 弹层 / 提示 ================= */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(5,5,6,.94); display: grid; place-items: center; padding: 72px var(--gutter) 40px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lightbox[hidden] { display: none; }
.lightbox__inner {
  --film-height: min(78dvh, calc(100dvh - 154px));
  width: min(100%, 1280px, calc(var(--film-height) * var(--film-ratio, 1.77778)));
}
.lightbox :is(video, img) { display: block; width: 100%; aspect-ratio: var(--film-ratio, 1.77778); object-fit: contain; background: #000; border-radius: var(--radius); }
.lightbox :is(video, img)[hidden] { display: none; }
.lightbox__title { margin-top: 14px; color: var(--mute); }
.lightbox__close {
  position: absolute; z-index: 1; top: max(12px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right));
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; min-width: 100px; padding: 0 18px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--paper); border-radius: var(--radius);
  font-size: 16px; font-weight: 650; line-height: 1;
}
.lightbox__close span { font-size: 27px; font-weight: 400; }
.lightbox__close:hover { background: #fff; }
.lightbox__close:focus-visible { outline: 2px solid var(--rec); outline-offset: 3px; }


/* ================= 响应式 ================= */
@media (max-width: 1200px) {
  .timeline::before { left: 180px; }
  .tl__item { grid-template-columns: 180px minmax(0, 1fr) minmax(0, 0.7fr); gap: 0 40px; }
  .tl__item::before { left: 176px; }
}

@media (max-width: 1024px) {
  html:has(#strengths:target) { scroll-behavior: auto; }
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: flex; align-items: center; gap: 10px; margin-left: auto; min-height: 44px; }
  .menu-word { display: grid; overflow: hidden; line-height: 1.5; }
  .menu-word span { grid-area: 1 / 1; text-align: right; transition: transform .32s var(--ease); }
  .menu-word span:last-child { transform: translateY(100%); }
  .nav__menu[aria-expanded="true"] .menu-word span:first-child { transform: translateY(-100%); }
  .nav__menu[aria-expanded="true"] .menu-word span:last-child { transform: none; }
  .menu-cross { position: relative; width: 12px; height: 12px; color: var(--rec); transition: transform .4s var(--ease); }
  .menu-cross::before, .menu-cross::after { content: ""; position: absolute; inset: 5.25px 1px; background: currentColor; }
  .menu-cross::after { transform: rotate(90deg); }
  .nav__menu[aria-expanded="true"] .menu-cross { transform: rotate(45deg); }
  .nav.menu-open { background: var(--ink); border-color: transparent; }
  .menu { position: fixed; inset: 0; z-index: 35; display: block; overflow: hidden; visibility: hidden; transition: visibility 0s .55s; }
  .menu.is-open { visibility: visible; transition-delay: 0s; }
  .menu::before, .menu::after, .menu-panel { position: absolute; inset: 0; transform: translateX(101%); transition: transform .38s var(--ease); }
  .menu::before, .menu::after { content: ""; }
  .menu::before { background: #813425; transition-delay: .14s; }
  .menu::after { background: #e55336; transition-delay: .07s; }
  .menu-panel { z-index: 1; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; gap: 32px; overflow-y: auto; overscroll-behavior: contain; padding: max(92px,14dvh) var(--gutter) max(28px,env(safe-area-inset-bottom)); }
  .menu.is-open::before, .menu.is-open::after, .menu.is-open .menu-panel { transform: none; }
  .menu.is-open::before { transition-delay: 0s; }
  .menu.is-open .menu-panel { transition-delay: .14s; }
  .menu-panel nav a { display: block; overflow: hidden; width: fit-content; }
  .menu-item { display: flex; align-items: flex-start; gap: 10px; padding: .08em 0; font-size: clamp(36px, 8.5dvh, 76px); line-height: 1.12; font-weight: 750; transform: translateY(110%); }
  .menu.is-open .menu-item { transform: none; transition: transform .44s var(--ease) calc(.19s + var(--order) * .045s); }
  .menu-item sup { color: var(--rec); font-size: 13px; margin-top: .5em; }
  .menu-social { margin-top: auto; }
  .menu-social p { color: #6c554b; margin-bottom: 5px; }
  .menu-social div { display: flex; flex-wrap: wrap; gap: 4px clamp(10px, 4vw, 20px); }
  .menu-social a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 650; }
  .menu-social img { width: 18px; height: 18px; flex: none; object-fit: contain; border-radius: 4px; mix-blend-mode: multiply; }
  .menu-panel a:is(:hover, :focus-visible) { color: #ab301c; }

  .sec-head { grid-template-columns: 1fr; grid-template-areas: "kicker" "title" "note"; }
  .sec-head__note { text-align: left; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }

  .timeline::before { left: 4px; }
  .tl__item { grid-template-columns: 1fr; padding-left: 36px; gap: 18px; }
  .tl__item::before { left: 0; }
  .tl__time { display: flex; align-items: baseline; justify-content: space-between; padding: 0; }
  .tl__year { margin-top: 0; }
  .tl__media { transform: none !important; }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .card--pipeline { grid-column: span 1; }
  .card--pipeline { grid-column: 1 / -1; }

}

@media (max-width: 640px) and (orientation: portrait) {
  .hero__lead { font-size: clamp(11.5px, 3.6vw, 15px); }
  .hero__lead-break { display: inline; }
}

@media (max-width: 640px) {
  :root { --nav-height: 64px; }
  .nav__inner { gap: 16px; }
  .nav__logo-sub { white-space: nowrap; }

  .hud__format, .hero__kicker .dim { display: none; }
  .hero__hud { inset-block: 82px -30px; }
  .hero__hud .corner { width: 12px; height: 12px; }
  .hud--tl { top: 8px; left: 16px; }
  .hud--tr { top: 8px; right: 16px; }
  .hero__content { padding-top: 120px; }
  .hero__title { font-size: clamp(44px, 13vw, 64px); }
  .hero__cta .btn { flex: 1; justify-content: center; padding: 0 16px; }
  .rail__head { align-items: center; gap: 8px; margin-bottom: 8px; }
  .rail__scroll { flex: none; line-height: 20px; padding-block: 12px; white-space: nowrap; }
  .rail__scroll-en { display: none; }
  .rail__scroll .rec { margin-left: 3px; }
  .rail__viewport { margin-inline: var(--gutter); -webkit-mask-image: none; mask-image: none; }
  .rail-card { width: 72vw; }

  .about { padding-top: 10px; scroll-margin-top: 64px; }
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .about__portrait,
  .about__info {
    grid-area: 1 / 1;
    align-self: start;
  }
  .about__portrait {
    width: 92%;
    margin-inline-end: -1.5vw;
    padding-inline-start: 0;
    justify-self: end;
  }
  .about__portrait img {
    --portrait-bottom-fade: 70%;
    --portrait-bottom-midpoint: 84%;
  }
  .about__portrait-label { display: none; }
  .about__info {
    padding-top: clamp(10px, 3.5vw, 22px);
    text-shadow: 0 1px 6px var(--ink);
  }
  .about__role {
    margin-bottom: 0;
    font-size: clamp(11px, 3vw, 15px);
    letter-spacing: .075em;
  }
  .about__name {
    min-height: clamp(150px, 49vw, 310px);
    margin-top: clamp(34px, 10vw, 64px);
    gap: clamp(12px, 4vw, 24px);
  }
  .about__name h2 { font-size: clamp(74px, 24vw, 150px); }
  .about__cn { font-size: clamp(13px, 3.6vw, 20px); }
  .about__kicker { position: relative; }
  .about__kicker .about__motto-link {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    gap: 3px; text-shadow: 0 1px 3px #000, 0 2px 10px #000a;
  }
  .about__motto {
    position: relative;
    justify-content: center;
    min-height: 52px;
    margin-top: clamp(16px, 4.5vw, 28px);
    font-size: clamp(15px, 4.5vw, 20px);
  }
  .about__motto::before { position: absolute; left: 0; width: 26px; }
  .about__bio {
    margin-top: clamp(12px, 3.5vw, 22px);
    font-size: clamp(13px, 3.4vw, 15px);
    text-wrap: pretty;
  }
  .about__tags {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 290px;
  }
  .about__tags .tag {
    justify-content: center;
    padding-inline: 6px;
  }
  .sec-head--stacked h2 { font-size: clamp(27px, 8.7vw, 38px); }
  .sec-head--stacked .sec-head__note {
    max-width: none;
    font-size: min(14px, calc((100vw - 2 * var(--gutter) - 16px) / 29));
    white-space: nowrap;
  }

  .jobs li { grid-template-columns: 1fr; }
  .jobs li p { grid-column: 1; }

  .works__grid, .work__description { grid-template-columns: 1fr; }
  .work:nth-child(-n + 2) .work__media { aspect-ratio: 16 / 9; }
  .work__play { opacity: 1; transform: scale(0.75); }

  .bento { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pipeline > li:last-child { grid-column: 1 / -1; }
  .pipeline > li:last-child button { justify-content: center; font-size: 17px; }
  .pipeline > li:last-child .mono { display: none; }

}

@media (max-width: 389px) {
  .card--formats { padding-inline: clamp(10px, calc(40vw - 134px), 16px); }
}


/* 颗粒层只保留位移所需的余量，减少全屏合成纹理面积。 */
.grain { inset: -8%; width: 116%; height: 116%; }
.motion-paused .grain,
.motion-paused .poster-track,
:is(.is-offscreen, .motion-paused) :is(.rail__track, .formats-poster, .contact__live, .contact-stage__hint span, .ch--stop),
:is(.is-offscreen, .motion-paused) .profile__portrait::before,
:is(.is-offscreen, .motion-paused) .profile__portrait::after { animation-play-state: paused !important; }
