:root {
  color-scheme: dark;
  background: #000;
}

html.is-work-entry { background: #ededed; }
html.is-work-entry body { visibility: hidden; }
html.is-initial-loading { overflow: hidden; }

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  overflow: hidden;
  background: #000;
  color: #fff;
  opacity: 0;
  transform: translateY(0);
  transition: opacity 150ms ease, transform 520ms cubic-bezier(.65, 0, .2, 1);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  pointer-events: all;
}
html.is-initial-loading .site-loader { display: grid; }
.site-loader.is-visible { opacity: 1; }
.site-loader.is-exiting { transform: translateY(-100%); }
.site-loader__brand {
  position: absolute;
  top: 5%;
  left: 4.2%;
  font-size: clamp(14px, 1.4vw, 25px);
  font-weight: 800;
  letter-spacing: -.035em;
}
.site-loader__counter {
  font-size: clamp(100px, 22vw, 340px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.075em;
  font-variant-numeric: tabular-nums;
  transform: translateX(-.035em);
}
.site-loader__track {
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: rgba(255, 255, 255, .2);
}
.site-loader__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}
@media (max-width: 600px) {
  .site-loader__brand { top: 4%; left: 7%; }
  .site-loader__track { height: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-loader { transition: none; }
}

* { box-sizing: border-box; }

html, body, main {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

.experience-stage {
  /* Hero, one continuous video with two text chapters, About, and Work. */
  height: 935vh;
  height: 935dvh;
}

.experience-stage__viewport {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: clip;
  isolation: isolate;
  background: #061f4b;
}

.scene-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  visibility: hidden;
  opacity: 0;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.scene-layer.is-active {
  visibility: visible;
  opacity: 1;
  transition: opacity 180ms ease, visibility 0s;
}

.hero {
  cursor: default;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

body.has-bee-cursor .hero { cursor: none; }

.bee-cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 12;
  width: 130px;
  height: 130px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(var(--bee-x, 0px), var(--bee-y, 0px), 0) translate(-50%, -50%);
  will-change: transform;
  transition: opacity 160ms ease, visibility 0s linear 160ms;
}

.bee-cursor.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 160ms ease, visibility 0s;
}

.bee-cursor__float {
  position: absolute;
  inset: 0;
  animation: bee-hover 2.4s ease-in-out infinite;
  animation-play-state: paused;
}

.bee-cursor.is-visible .bee-cursor__float { animation-play-state: running; }

@keyframes bee-hover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.bee-cursor__art {
  position: absolute;
  inset: 0;
  transform: scaleX(var(--bee-facing, 1));
  transition: transform 200ms ease-in-out;
}

.bee-cursor__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  user-select: none;
  -webkit-user-drag: none;
  transform: translate(var(--frame-x, 0), var(--frame-y, 0)) scale(var(--frame-scale, 1));
}

.bee-cursor__frame.is-current { opacity: 1; }
/* Keep the accepted body sizes and register the two eyes across frames. */
.bee-cursor__frame:nth-child(2) { --frame-scale: 1.077; --frame-x: -0.1px; --frame-y: 0.2px; }
.bee-cursor__frame:nth-child(3) { --frame-scale: 1.074; --frame-x: 0.1px; --frame-y: 0.4px; }
.bee-cursor__frame:nth-child(4) { --frame-scale: 1.03; --frame-x: 0.5px; --frame-y: 1.1px; }
.bee-cursor__frame:nth-child(5) { --frame-scale: 1.038; --frame-y: 0.4px; }
.bee-cursor__frame:nth-child(6) { --frame-scale: 1.066; --frame-x: 0.2px; --frame-y: 0.3px; }

@media (prefers-reduced-motion: reduce) {
  .bee-cursor__frame:not(:first-child) { display: none; }
  .bee-cursor__frame:first-child { opacity: 1; }
  .bee-cursor__float { animation: none; }
  .bee-cursor, .bee-cursor__art { transition: none; }
}

@media (hover: none), (pointer: coarse) {
  .bee-cursor { display: none; }
  body.has-bee-cursor .hero { cursor: default; }
}

.hero__poster,
.hero__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  object-fit: cover;
  object-position: center;
}

.hero__poster { z-index: 0; }
.hero__video {
  z-index: 1;
  transition: opacity 180ms ease;
}
.hero.is-awaiting-frame .hero__video { opacity: 0; }

.experience-stage__shade {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.scene-layer__video,
.scene-layer__first-frame,
.scene-layer__last-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.scene-layer__video,
.scene-layer__last-frame {
  opacity: 0;
}

.scene-layer__video.is-frame-ready,
.scene-layer.is-at-end .scene-layer__last-frame { opacity: 1; }
.scene-layer.is-at-end .scene-layer__video { opacity: 0; }

.stage-header,
.scene-copy {
  position: absolute;
  z-index: 5;
  color: #fff;
  pointer-events: none;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.stage-header {
  inset: 0;
  z-index: 9;
}

.stage-header.is-work { color: #080808; }
.stage-header.is-work .stage-header__icon { filter: brightness(0); }
.stage-header.is-work .stage-header__brand { background: none; color: #080808; }
.stage-header.is-work .stage-header__divider { color: rgba(0,0,0,.4); }
.stage-header.is-work .stage-header__link:focus-visible { outline-color: #080808; }
.stage-header__identity {
  position: absolute;
  left: 4.167%;
  top: 4.815%;
  display: flex;
  align-items: center;
  gap: 0.651vw;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
}

.stage-header__identity:focus-visible { outline: 2px solid #f0ca7b; outline-offset: 6px; }
.stage-header.is-work .stage-header__identity:focus-visible { outline-color: #080808; }

.stage-header__icon {
  display: block;
  width: 2.361vw;
  height: auto;
  flex: none;
}

.stage-header__brand {
  font-family: "Source Han Sans CN", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.667vw;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, #fff 15%, rgba(255, 255, 255, 0.68) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.stage-header__nav {
  position: absolute;
  right: 3.333%;
  top: 5.43%;
  display: flex;
  align-items: center;
  gap: 1vw;
  font-size: 0.833vw;
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
}

.stage-header__divider,
.scene-copy__belief-tags span,
.scene-copy__principles-tags span {
  color: rgba(255, 255, 255, 0.4);
}

.stage-header__link {
  position: relative;
  display: inline-block;
  padding: 24px 32px;
  margin: -16px -20px;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 220ms ease;
}

.stage-header__link::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(100%, calc(200% - 128px));
  height: 2.7em;
  border-radius: 999px;
  background-color: transparent;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: background-color 220ms ease;
}

.stage-header__link[href="#contact"]::before { width: calc(100% - 24px); }

.stage-header__link:hover,
.stage-header__link:focus-visible {
  transform: translateY(-1px);
}
.stage-header__link:hover::before,
.stage-header__link:focus-visible::before { background-color: rgba(255, 255, 255, .14); }
.stage-header.is-work .stage-header__link:hover::before,
.stage-header.is-work .stage-header__link:focus-visible::before { background-color: rgba(0, 0, 0, .08); }

.stage-header__link:focus-visible,
.about-panel button:focus-visible,
.about-panel a:focus-visible { outline: 2px solid #f0ca7b; outline-offset: 4px; }

.scene-copy {
  inset: 0;
  opacity: 0;
  will-change: opacity, transform;
}

.scene-copy--hero { opacity: 1; }

.scene-copy__item { opacity: 0; }

.scene-copy--belief .scene-copy__item,
.scene-copy--principles .scene-copy__item {
  transition: opacity 280ms ease, transform 280ms ease;
}

.scene-copy--hero.is-current .scene-copy__item {
  animation: copy-enter 680ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.scene-copy--hero.is-current .scene-copy__hero-intro { animation-delay: 100ms; }
.scene-copy--hero.is-current .scene-copy__hero-title span:first-child { animation-delay: 310ms; }
.scene-copy--hero.is-current .scene-copy__hero-title span:last-child { animation-delay: 490ms; }
.scene-copy--hero.is-current .scene-copy__credit-badge { animation-delay: 760ms; }
.scene-copy--hero.is-current .scene-copy__credit p { animation-delay: 920ms; }

@keyframes copy-enter {
  from { opacity: 0; transform: translate3d(0, 18px, 0); filter: blur(4px); }
  to { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }
}

.scene-copy p,
.scene-copy h1,
.scene-copy h2 {
  position: absolute;
  margin: 0;
}

.scene-copy__hero-intro {
  /* The U has less left side bearing than the large D below it. */
  left: calc(4.167% + 3px);
  top: 68.9%;
  font-size: 1.667vw;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.scene-copy__hero-title {
  left: 4.167%;
  top: 74.6%;
  font-size: 4.445vw;
  font-weight: 750;
  line-height: 1.094;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.scene-copy__hero-title span { display: block; }

.scene-copy__hero-title span:last-child {
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.55) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: max(34px, calc(env(safe-area-inset-bottom) + 10px));
  width: 27px;
  height: 44px;
  transform: translateX(-50%);
}

.hero-scroll-cue__mouse {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 20px;
}

.hero-scroll-cue__wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 2px;
  height: 8px;
  border-radius: 3px;
  background: #fff;
  --cue-travel: 16px;
  animation: hero-scroll-wheel 1.6s ease-in-out infinite;
}

@keyframes hero-scroll-wheel {
  0%, 15% { opacity: 1; transform: translate(-50%, 0); }
  75%, 100% { opacity: 0; transform: translate(-50%, var(--cue-travel)); }
}

.scene-copy__credit {
  position: absolute;
  right: 4.028%;
  top: 82.1%;
  width: 10.694vw;
  text-align: left;
}

.scene-copy__credit-badge {
  display: flex;
  align-items: center;
  gap: 0.417vw;
  width: 100%;
  height: 2.986vw;
  padding: 0.347vw 0.486vw;
  border-radius: 0.556vw;
  background: linear-gradient(126deg, #292929 3%, #1c1c1c 21%);
  text-align: left;
}

.scene-copy__credit-badge img {
  display: block;
  width: 2.361vw;
  height: 2.361vw;
  flex: none;
  border-radius: 0.5vw;
}

.scene-copy__credit-badge span { display: flex; flex-direction: column; font-size: 0.694vw; line-height: 1.1; }
.scene-copy__credit-badge strong { font-size: 0.972vw; line-height: 1.05; }
.scene-copy__credit p {
  position: relative;
  margin: 0.625vw 0 0 2.014vw;
  font-size: 0.833vw;
  font-weight: 300;
  white-space: nowrap;
}

.scene-copy__credit a {
  display: inline-block;
  padding: 22px 28px;
  margin: -22px -28px;
  color: inherit;
  font-size: inherit;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
}

.scene-copy__credit a span {
  font-size: 0.694vw;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.scene-copy__belief-body,
.scene-copy__principles-body {
  font-size: 1.667vw;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.scene-copy__belief-body {
  right: 3.333%;
  top: 40.49%;
  width: 31.6%;
}

.scene-copy__belief-title,
.scene-copy__principles-title {
  top: 75.3%;
  font-size: 6.667vw;
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.055em;
  white-space: nowrap;
  padding-bottom: 0.06em;
  background: linear-gradient(180deg, #fff 25%, rgba(255, 255, 255, 0.8) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.scene-copy__belief-title { left: 4.167%; }

.scene-copy__belief-tags,
.scene-copy__principles-tags {
  top: 88.4%;
  display: flex;
  gap: 1.65vw;
  align-items: center;
  font-size: 0.833vw;
  font-weight: 300;
  white-space: nowrap;
}

.scene-copy__belief-tags { left: calc(4.167% + 5px); }

.scene-copy__principles-body {
  left: 4.167%;
  top: 32.72%;
  width: 33.89%;
}

.scene-copy__principles-title {
  /* Negative tracking narrows the box around the final s; leave ink room. */
  right: calc(4.44% - 0.08em + 4px);
  padding-right: 0.08em;
  text-align: right;
}
.scene-copy__principles-tags { right: 4.44%; }

/* The fourth beat covers the same sticky viewport; its contents use the
   1440 × 810 Figma coordinate system and scale together on desktop. */
.about-panel {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  background: radial-gradient(ellipse 42% 36% at 0 0, rgba(215, 188, 156, .08), transparent 78%), #02040a;
  color: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  transform: translate3d(0, 100%, 0);
  pointer-events: none;
  will-change: transform;
}

.about-panel.is-interactive { pointer-events: auto; }
.about-panel__rays { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; opacity: 0; }
.about-panel__edge { position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: 2px; background: #d7bc9c; opacity: 0; }
.about-panel__canvas {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 1440px;
  height: 810px;
  transform: translate(-50%, -50%) scale(var(--about-scale, 1));
  transform-origin: center;
}
.about-panel__title {
  position: absolute;
  left: 60px;
  top: 150px;
  margin: 0;
  font-size: 96px;
  line-height: 70px;
  font-weight: 300;
  white-space: nowrap;
}
.about-panel__rule { position: absolute; left: 59px; top: 259px; width: 1322px; height: 1px; }
.about-panel__rule::before, .about-panel__rule::after { position: absolute; top: 0; width: calc(50% - 17px); border-top: 1px solid rgba(255,255,255,.3); content: ""; }
.about-panel__rule::before { left: 0; }
.about-panel__rule::after { right: 0; }
.about-panel__rule-cross { position: absolute; left: calc(50% - 4.5px); top: -4px; width: 9px; height: 9px; }
.about-panel__contacts { position: absolute; left: 810px; top: 219px; width: 572px; height: 27px; }
.about-contact { position: absolute; display: flex; align-items: center; gap: 6px; height: 26px; color: rgba(255,255,255,.7); font-size: 12px; font-weight: 300; text-decoration: none; white-space: nowrap; }
.about-contact:hover { color: #fff; }
.about-contact--email { border: 0; padding: 0; background: transparent; font-family: inherit; text-align: left; cursor: pointer; }
.about-contact img { display: block; object-fit: contain; flex: none; }
.about-contact--email { left: 0; top: 0; }
.about-contact--email img { width: 26px; height: 26px; }
.about-contact--phone { left: 259px; top: 0; }
.about-contact--phone img { width: 26px; height: 26px; }
.about-contact--wechat { left: 461px; top: 4px; height: 24px; }
.about-contact__trigger { display: flex; align-items: center; gap: 8px; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; white-space: nowrap; }
.about-contact__trigger > img { width: 20px; height: 20px; }
.about-contact__qr { position: absolute; top: 24px; right: 0; width: 122px; height: 122px; border-radius: 10px; background: #1b1d23; display: grid; place-items: center; opacity: 0; transform: translateY(-5px); transition: opacity 180ms ease, transform 180ms ease; pointer-events: none; }
.about-contact__qr > img { width: 90px; height: 90px; }
.about-contact__qr-center, .about-photo__qr-center { position: absolute; display: grid; place-items: center; width: 20px; height: 20px; background: #1b1d23; top: 51px; left: 51px; }
.about-contact__qr-center img, .about-photo__qr-center img { width: 16px; height: 16px; }
.about-contact--wechat:hover .about-contact__qr, .about-contact--wechat:focus-within .about-contact__qr, .about-contact--wechat.is-open .about-contact__qr { opacity: 1; transform: none; pointer-events: auto; }
.about-panel__profile { position: absolute; inset: 0; pointer-events: none; }
.about-panel__profile > * { pointer-events: auto; }
.about-photo { position: absolute; left: 294px; top: 389px; width: 164px; height: 230px; padding: 0; border: 0; background: transparent; cursor: pointer; perspective: 900px; }
.about-photo__inner { display: block; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 620ms cubic-bezier(.22,.7,.15,1); }
.about-photo:hover .about-photo__inner, .about-photo:focus-visible .about-photo__inner, .about-photo.is-flipped .about-photo__inner { transform: rotateY(180deg); }
.about-photo__face { position: absolute; inset: 0; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.about-photo__face--front img { position: absolute; left: -31.1%; top: -56.5%; display: block; width: 177.44%; height: 190%; max-width: none; }
.about-photo__face--back { transform: rotateY(180deg); display: grid; place-items: center; background: #02040a; overflow: visible; }
.about-photo__face--back > img:not(.about-photo__corner) { width: 90px; height: 90px; }
.about-photo__qr-center { left: 72px; top: 105px; background: #02040a; }
.about-photo__corner { position: absolute; width: 18px; height: 18px; }
.about-photo__corner--tl { top: 0; left: 0; transform: rotate(-90deg); }
.about-photo__corner--tr { top: 0; right: 0; }
.about-photo__corner--bl { bottom: 0; left: 0; transform: rotate(180deg); }
.about-photo__corner--br { bottom: 0; right: 0; transform: rotate(90deg); }
.about-panel__name { position: absolute; left: 59px; top: 561px; display: flex; align-items: flex-start; gap: 22px; font-size: 32px; font-weight: 300; white-space: nowrap; }
.about-panel__name span { font-size: 40px; line-height: 70px; }
.about-panel__name strong { margin-top: 15px; font-weight: 300; line-height: 39px; }
.about-panel__degree { position: absolute; left: 96px; top: 663px; font-size: 16px; white-space: nowrap; }
.about-panel__summary { position: absolute; left: 294px; top: 659px; width: 322px; margin: 0; color: rgba(255,255,255,.7); font-size: 14px; font-weight: 300; line-height: 21px; }
.about-timeline { position: absolute; inset: 0; pointer-events: none; }
.about-timeline__line { position: absolute; left: 721px; top: 319px; width: 379px; height: 1px; transform: rotate(90deg); transform-origin: left top; }
.about-timeline__chapter { position: absolute; left: 713px; top: 310px; display: flex; align-items: center; height: 22px; }
.about-timeline__chapter-dot { width: 15px; height: 15px; margin-right: 11px; }
.about-timeline__chapter > img:not(.about-timeline__chapter-dot) { width: 126px; height: auto; }
.about-timeline__chapter > span:last-child { margin-left: 14px; color: rgba(255,255,255,.5); font-size: 10px; }
.about-timeline__window { position: absolute; left: 717px; top: 355px; width: 245px; height: 353px; overflow: hidden; pointer-events: auto; }
.about-timeline__track { list-style: none; margin: 0; padding: 5px 0 0; transform: translateY(calc(var(--timeline-offset, 0) * -72px)); transition: transform 440ms cubic-bezier(.22,.7,.2,1); }
.about-timeline__job { position: relative; height: 72px; padding: 7px 0 0 24px; }
.about-timeline__job::before { position: absolute; top: -5px; left: 15px; width: 230px; height: 60px; border-radius: 6px; background: rgba(255,255,255,.1); opacity: 0; transform: scale(.96); transform-origin: left center; transition: opacity 220ms ease, transform 220ms ease; content: ""; }
.about-timeline__job:hover::before { opacity: 1; transform: scale(1); }
.about-timeline__dot { position: absolute; z-index: 1; left: 0; top: 11px; width: 7px; height: 7px; transition: transform 220ms ease; }
.about-timeline__job:hover .about-timeline__dot { transform: scale(1.25); }
.about-timeline__company { display: block; position: relative; z-index: 1; width: auto; max-width: 90px; height: 15px; object-fit: contain; object-position: left center; }
.about-timeline__job:nth-child(4) .about-timeline__company { height: 17px; }
.about-timeline__job > span { position: absolute; z-index: 1; left: 163px; top: 8px; color: rgba(255,255,255,.5); font-size: 10px; white-space: nowrap; transition: color 220ms ease; }
.about-timeline__job > small { display: block; position: relative; z-index: 1; margin-top: 10px; color: rgba(255,255,255,.7); font-size: 12px; white-space: nowrap; transition: color 220ms ease; }
.about-timeline__job:hover > span, .about-timeline__job:hover > small { color: rgba(255,255,255,.95); }
.about-panel__buttons { position: absolute; left: 1239px; top: 627px; display: flex; }
.about-panel__arrow { width: 72px; height: 72px; display: grid; place-items: end start; padding: 0 0 12px 12px; border: 1px solid #67686c; border-radius: 8px; background: #02040a; color: #fff; font-size: 22px; font-weight: 200; cursor: pointer; transition: background 140ms ease, transform 140ms ease, color 140ms ease; }
.about-panel__arrow + .about-panel__arrow { margin-left: -1px; place-items: end end; padding: 0 12px 12px 0; }
.about-panel__arrow:hover { border-color: #a2a3a8; }
.about-panel__arrow:active, .about-panel__arrow.is-pressed { background: #303239; border-color: #a2a3a8; }
.about-panel.is-timeline-key-activation .about-panel__arrow:focus-visible { outline: none; }
.about-panel__arrow img { display: block; width: 19px; height: 19px; transform: rotate(90deg); }
.about-panel__arrow + .about-panel__arrow img { transform: rotate(90deg) scaleY(-1); }
.about-reveal { opacity: 0; transform: translateY(18px); will-change: opacity, transform; }
.about-panel__profile,
.about-timeline,
.about-panel__buttons { translate: 0 var(--about-lower-shift, 0px); }

/* Seven bands reveal the light scene from the bottom upward. Work itself
   remains fixed, so the transition never moves the whole page. */
.work-wipe {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  grid-template-rows: repeat(7, minmax(0, 1fr));
  pointer-events: none;
}
.work-wipe__stripe {
  display: block;
  margin-block: -2px;
  background: #ededed;
  transform: scaleY(0);
  transform-origin: bottom;
}

/* Work covers About in the same sticky viewport. Its content stays within the
   side gutters while the image stack follows a staggered diagonal path. */
.work-stage {
  position: absolute;
  inset: 0;
  z-index: 8;
  overflow: hidden;
  isolation: isolate;
  background: #ededed;
  color: #080808;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  opacity: 0;
  pointer-events: none;
}

.work-categories {
  position: absolute;
  z-index: 8;
  top: 14%;
  left: 9.5%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: 14px;
  line-height: 1.05;
}
.work-categories button { position: relative; height: 22px; padding: 0; border: 0; background: none; color: inherit; font: inherit; line-height: 22px; text-align: left; white-space: nowrap; pointer-events: auto; cursor: pointer; }
.work-categories button:hover:not(:disabled) { opacity: .6; }
.work-categories button:disabled { opacity: .48; cursor: default; }
.work-categories.is-ready button { transition: margin-left 300ms cubic-bezier(.22,.7,.2,1), font-size 300ms cubic-bezier(.22,.7,.2,1); }
.work-categories button[aria-current="true"] { margin-left: 21px; font-size: 20px; font-weight: 700; }
.work-categories__indicator { position: absolute; top: 2px; left: 0; display: block; width: 19px; height: 19px; transform: rotate(90deg) scaleY(-1); pointer-events: none; }
.work-categories.is-ready .work-categories__indicator { transition: top 340ms cubic-bezier(.22,.7,.2,1); }

.work-meta {
  position: absolute;
  z-index: 8;
  top: 42.5%;
  left: 9.5%;
  width: 32%;
  height: 90px;
  font-size: 12px;
  line-height: 1.65;
  white-space: nowrap;
  transition: opacity 170ms ease;
}
.work-stage.is-anchor-moving .work-meta,
.work-stage.is-anchor-moving .work-projects { opacity: 0; }
.work-meta__project {
  position: absolute;
  inset: 0 auto auto 0;
  display: flex;
  gap: 32px;
  width: 100%;
  will-change: opacity, filter;
}
.work-meta__project > div { display: flex; gap: 24px; align-items: flex-start; }
.work-meta span { color: #868686; }
.work-meta strong { font-weight: 400; }

.work-visuals {
  position: absolute;
  inset: 0;
  z-index: 3;
  perspective: 850px;
  perspective-origin: 50.5% 50%;
  transform-style: flat;
  pointer-events: none;
}
.work-visual {
  position: absolute;
  top: 49%;
  left: 50.1%;
  width: clamp(300px, 23.8vw, 500px);
  aspect-ratio: 5 / 4;
  margin: 0;
  overflow: hidden;
  transform-origin: center;
  transform-style: flat;
  backface-visibility: hidden;
  box-shadow: 0 5px 18px rgba(0,0,0,.045);
  will-change: transform, opacity;
}
.work-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  backface-visibility: hidden;
  transform: translate3d(var(--work-image-x, 0px), var(--work-image-y, 0px), 0) scale(var(--work-image-scale, 1));
  will-change: transform;
}
.work-visual--portrait img { object-position: center 42%; }
.work-visual__entry { position: absolute; inset: 0; z-index: 2; display: block; pointer-events: auto; cursor: pointer; }
.work-visual__entry:focus-visible { outline: 3px solid #1677ff; outline-offset: -5px; }
.work-projects { position: absolute; inset: 0; z-index: 7; pointer-events: none; transition: opacity 170ms ease; }
.work-project {
  position: absolute;
  top: calc(50% - 61px);
  left: 72%;
  width: 21%;
  min-width: 250px;
  margin: 0;
  text-align: center;
  will-change: transform, opacity, filter;
}
.work-project[aria-hidden="true"] { pointer-events: none; }
.work-project p, .work-project h2 { margin: 0; }
.work-project p:first-child { color: #868686; font-size: 12px; line-height: 17px; }
.work-project h2 { margin-top: 3px; color: var(--project-title-color, #080808); font-size: 18px; font-weight: 700; line-height: 26px; white-space: nowrap; }
.work-project > span { display: block; width: 26px; height: 1px; margin: 8px auto 10px; background: currentColor; }
.work-project p:last-child { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; color: #666; font-size: 14px; line-height: 20px; }

@media (max-width: 900px) {
  .work-categories { top: 15%; left: 8%; font-size: 12px; }
  .work-categories button { height: 20px; line-height: 20px; }
  .work-categories button[aria-current="true"] { font-size: 16px; }
  .work-meta { top: auto; bottom: 9%; left: 8%; width: 52%; font-size: 10px; }
  .work-meta__project { gap: 14px; }
  .work-meta__project > div { gap: 8px; }
  .work-visual { left: 47%; width: min(44vw, 390px); }
  .work-project { left: auto; right: 4%; width: 30%; min-width: 0; }
  .work-project h2 { font-size: 14px; white-space: normal; line-height: 1.35; }
  .work-project p:last-child { font-size: 11px; line-height: 1.45; }
}

@media (max-width: 600px) {
  .work-categories { top: 17%; left: 12%; }
  .work-visuals { perspective: none; }
  .work-visual { top: 40%; left: 50%; width: min(66vw, 310px); }
  .work-project { top: 64%; left: 9%; right: 9%; width: 82%; }
  .work-project p:last-child { max-width: 310px; margin-inline: auto; }
  .work-meta { bottom: 3%; left: 12%; width: 82%; }
}

@media (prefers-reduced-motion: reduce) {
  .work-wipe__stripe, .work-visual, .work-project, .work-meta__project { will-change: auto; }
  .work-categories.is-ready button, .work-categories.is-ready .work-categories__indicator { transition: none; }
  .work-meta, .work-projects { transition: none; }
}

.copy-toast {
  position: absolute;
  z-index: 8;
  top: max(24px, env(safe-area-inset-top));
  left: 50%;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: #292b31;
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
  color: #fff;
  font: 500 14px/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.copy-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 700px) {
  .copy-toast { top: max(64px, calc(env(safe-area-inset-top) + 52px)); }
  .stage-header__identity { top: 27px; left: 6%; gap: 7px; }
  .stage-header__icon { width: 26px; }
  .stage-header__brand { font-size: 16px; }
  .stage-header__nav { top: 31px; right: 6%; gap: 8px; font-size: 9px; }
  .stage-header__link { padding: 18px 9px; margin: -13px -3px; }
  .stage-header__link::before { width: calc(100% - 6px); height: calc(100% - 26px); }
  .stage-header__link[href="#contact"]::before { width: calc(100% - 6px); }
  .scene-copy__hero-intro { top: auto; bottom: 31%; left: 6%; font-size: 15px; }
  .scene-copy__hero-title {
    top: auto;
    bottom: 17%;
    left: 6%;
    font-size: clamp(30px, 7vw, 49px);
    white-space: normal;
  }
  .hero-scroll-cue { bottom: max(30px, calc(env(safe-area-inset-bottom) + 10px)); width: 22px; height: 35px; }
  .hero-scroll-cue__wheel { top: 5px; height: 6px; --cue-travel: 11px; }
  .scene-copy__credit { top: auto; bottom: 5%; right: 6%; width: 162px; }
  .scene-copy__credit-badge { width: 162px; height: 43px; gap: 6px; padding: 5px 7px; }
  .scene-copy__credit-badge img { width: 31px; height: 31px; border-radius: 6px; }
  .scene-copy__credit-badge span { font-size: 9px; }
  .scene-copy__credit-badge strong { font-size: 13px; }
  .scene-copy__credit p { margin: 5px 0 0 15px; font-size: 9px; }
  .scene-copy__credit a span { font-size: 8px; }
  .scene-copy__belief-body,
  .scene-copy__principles-body {
    left: 6%;
    right: 6%;
    top: 27%;
    width: auto;
    font-size: 17px;
  }
  .scene-copy__belief-title,
  .scene-copy__principles-title {
    top: auto;
    bottom: 18%;
    left: 6%;
    right: auto;
    font-size: clamp(46px, 11vw, 76px);
    text-align: left;
    white-space: normal;
  }
  .scene-copy__belief-tags,
  .scene-copy__principles-tags {
    top: auto;
    bottom: 12%;
    left: 6%;
    right: auto;
    gap: 12px;
    font-size: 11px;
  }
  .about-panel__canvas { top: 0; left: 0; width: 100%; height: 100%; transform: none; }
  .about-panel__title { left: 6%; top: 118px; font-size: 48px; line-height: 1; }
  .about-panel__rule { left: 6%; right: 6%; top: 180px; width: auto; }
  .about-panel__rule-cross { left: 50%; }
  .about-panel__contacts { left: 6%; top: 198px; width: 88%; height: 58px; }
  .about-contact { font-size: 10px; }
  .about-contact--email { left: 0; top: 0; }
  .about-contact--phone { left: 0; top: 29px; }
  .about-contact--wechat { left: auto; right: 0; top: 29px; }
  .about-contact__qr { z-index: 2; }
  .about-photo { left: 6%; top: 276px; width: 112px; height: 157px; }
  .about-photo__face--back > img:not(.about-photo__corner) { width: 75px; height: 75px; }
  .about-photo__qr-center { left: 46px; top: 69px; }
  .about-panel__name { left: calc(6% + 135px); top: 320px; gap: 10px; font-size: 27px; }
  .about-panel__name span { font-size: 31px; line-height: 42px; }
  .about-panel__name strong { margin-top: 5px; line-height: 32px; }
  .about-panel__degree { left: calc(6% + 135px); top: 374px; font-size: 13px; }
  .about-panel__summary { left: 6%; top: 453px; width: 88%; font-size: 12px; line-height: 1.5; }
  .about-timeline__line { left: calc(6% + 7px); top: 563px; width: 222px; }
  .about-timeline__chapter { left: 6%; top: 550px; }
  .about-timeline__window { left: calc(6% + 4px); top: 588px; width: 245px; height: 173px; }
  .about-timeline__track { transform: translateY(calc(var(--timeline-offset, 0) * -56px)); }
  .about-timeline__job { height: 56px; }
  .about-timeline__job > span { left: 155px; }
  .about-timeline__job > small { margin-top: 5px; }
  .about-panel__buttons { left: auto; right: 6%; top: auto; bottom: 6%; }
  .about-panel__arrow { width: 48px; height: 48px; padding: 0 0 7px 8px; font-size: 19px; }
  .about-panel__arrow + .about-panel__arrow { padding: 0 8px 7px 0; }
  .about-panel__arrow img { width: 16px; height: 16px; }
}

@media (max-width: 700px) and (max-height: 760px) {
  .about-panel__title { top: 88px; }
  .about-panel__rule { top: 148px; }
  .about-panel__contacts { top: 164px; }
  .about-photo { top: 230px; width: 94px; height: 132px; }
  .about-photo__face--back > img:not(.about-photo__corner) { width: 68px; height: 68px; }
  .about-photo__qr-center { left: 37px; top: 56px; }
  .about-panel__name { left: calc(6% + 108px); top: 260px; }
  .about-panel__degree { left: calc(6% + 108px); top: 309px; }
  .about-panel__summary { top: 382px; }
  .about-timeline__line { top: 476px; width: 170px; }
  .about-timeline__chapter { top: 465px; }
  .about-timeline__window { top: 499px; height: 155px; }
  .about-timeline__track { transform: translateY(calc(var(--timeline-offset, 0) * -50px)); }
  .about-timeline__job { height: 50px; }
  .about-panel__buttons { bottom: 4%; }
}

@media (prefers-reduced-motion: reduce) {
  .scene-copy--hero.is-current .scene-copy__item { animation: none; opacity: 1; }
  .hero-scroll-cue__wheel { animation: none; transform: translateX(-50%); }
  .scene-layer, .about-photo__inner, .about-timeline__track, .about-timeline__job::before, .about-timeline__dot, .about-timeline__job > span, .about-timeline__job > small, .stage-header__link, .about-contact__qr, .copy-toast { transition: none; }
}
