:root {
  --bg: #030303;
  --ink: #f2f0ea;
  --muted: #9b9a94;
  --faint: #56544f;
  --panel: rgba(12, 12, 12, 0.82);
  --panel-soft: rgba(255, 255, 255, 0.025);
  --line: rgba(79, 210, 255, 0.18);
  --line-strong: rgba(79, 210, 255, 0.38);
  --accent: #e9e1d2;
  --hot: #5adfff;
  --tech-blue: #67e9ff;
  --tech-blue-deep: #2f82ff;
  --tech-gradient: linear-gradient(112deg, #f3fdff 0%, #82efff 30%, #2d8cff 66%, #bff8ff 100%);
  --max: 1460px;
  --content: 1180px;
  --side: clamp(18px, 3.2vw, 56px);
  --sans:
    "Avenir Next",
    "Helvetica Neue",
    "PingFang SC",
    "Microsoft YaHei",
    Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--bg);
  content: "";
}

body.modal-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: none;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.035), transparent 24%),
    radial-gradient(circle at 82% 68%, rgba(67, 198, 255, 0.055), transparent 30%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 146px 146px;
  mix-blend-mode: screen;
}

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  display: none;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(242, 240, 234, 0.72);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  transition:
    opacity 180ms ease,
    width 180ms ease,
    height 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.cursor.is-seen {
  opacity: 1;
}

.cursor.is-active {
  width: 54px;
  height: 54px;
  border-color: rgba(88, 224, 255, 0.82);
  background: rgba(67, 198, 255, 0.1);
}

.progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 90;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  display: none;
}

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

.site-header {
  position: absolute;
  left: var(--side);
  top: 30px;
  z-index: 80;
  display: grid;
  align-items: center;
  justify-content: start;
  gap: 18px;
  padding: 0;
  color: var(--ink);
}

.wordmark {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
}

.site-nav {
  display: grid;
  gap: 7px;
  color: rgba(242, 240, 234, 0.86);
  font-size: clamp(13px, 0.95vw, 15px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid rgba(242, 240, 234, 0.16);
  padding: 0 13px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(8, 8, 8, 0.18);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 36px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.site-nav a::before {
  position: static;
  left: auto;
  top: auto;
  margin-left: 0;
  color: var(--tech-blue);
  font-size: clamp(13px, 0.9vw, 15px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: none;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  content: attr(data-cn);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.site-nav a::after {
  display: none;
}

.site-nav a:hover {
  border-color: rgba(233, 225, 210, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.055)),
    rgba(12, 12, 12, 0.46);
  color: transparent;
}

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

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100dvh;
  padding: clamp(88px, 9vh, 118px) var(--side) clamp(36px, 5vh, 60px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at center 43%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.08) 50%, rgba(0, 0, 0, 0.64) 90%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0) 34%, rgba(0, 0, 0, 0.76)),
    url("assets/hero/plasma-portrait.webp?v=fast1") center center / cover no-repeat;
  filter: saturate(1.04) contrast(1.03) brightness(1.04);
  opacity: 1;
}

.hero-grid {
  display: grid;
  min-height: calc(100dvh - clamp(124px, 14vh, 178px));
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding-left: 0;
  text-align: center;
}

.hero-kicker,
.section-index {
  margin: 0;
  color: var(--muted);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 300;
  letter-spacing: 0.2em;
  line-height: 1.6;
  text-transform: uppercase;
}

.hero h1 {
  position: relative;
  isolation: isolate;
  align-self: center;
  justify-self: center;
  width: min(100%, 1080px);
  margin: clamp(12px, 3.4vh, 34px) auto clamp(10px, 1.8vh, 18px);
  color: rgba(246, 252, 255, 0.55);
  opacity: 1;
  font-size: clamp(68px, 8.2vw, 126px);
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 0.88;
  text-align: center;
  text-shadow: 0 0 22px rgba(90, 223, 255, 0.08);
  text-transform: uppercase;
  overflow: hidden;
  transition:
    letter-spacing 260ms ease,
    text-shadow 260ms ease;
  -webkit-text-fill-color: currentColor;
}

.hero h1 span {
  position: relative;
  display: block;
  pointer-events: none;
  transform: scaleX(1.08);
  transform-origin: center center;
  color: transparent;
  background:
    linear-gradient(106deg, rgba(246, 252, 255, 0.55) 0%, rgba(246, 252, 255, 0.55) 43%, rgba(255, 255, 255, 0.96) 50%, rgba(99, 224, 255, 0.75) 54%, rgba(246, 252, 255, 0.55) 62%, rgba(246, 252, 255, 0.55) 100%);
  background-position: 115% 50%;
  background-size: 230% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1:hover span {
  animation: title-sheen 0.95s cubic-bezier(0.18, 0.8, 0.22, 1) both;
}

.hero h1:hover span:nth-child(2) {
  animation-delay: 70ms;
}

@keyframes title-sheen {
  from {
    background-position: 115% 50%;
  }

  to {
    background-position: -115% 50%;
  }
}

.hero-bottom {
  display: grid;
  justify-items: center;
  grid-template-columns: 1fr;
  gap: clamp(11px, 1.5vw, 18px);
  align-items: center;
  padding-top: 0;
}

.hero-actions {
  width: min(100%, 680px);
  grid-column: 1 / -1;
  max-width: 680px;
}

.name-cn {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(44px, 5vw, 76px);
  font-weight: 600;
  line-height: 1.05;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.38);
  transform: translateX(-22px);
  -webkit-text-fill-color: currentColor;
}

.role-cn,
.hero-copy,
.profile-copy p,
.works-head p,
.timeline p,
.motion-item small {
  color: rgba(242, 240, 234, 0.62);
  font-size: clamp(14px, 1.15vw, 18px);
  font-weight: 520;
  line-height: 1.9;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.role-cn {
  max-width: 40em;
  margin: 10px auto 0;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-copy {
  max-width: min(1080px, calc(100vw - var(--side) * 2));
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  text-align: center;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
}

.hero-copy span {
  display: block;
}

.hero-copy span:nth-child(n + 3) {
  display: inline;
}

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

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.text-link {
  position: relative;
  display: inline-flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid rgba(190, 238, 255, 0.22);
  border-radius: 16px;
  padding: 0 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.035)),
    rgba(8, 16, 22, 0.38);
  color: rgba(242, 240, 234, 0.86);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(80, 215, 255, 0.08),
    0 10px 26px rgba(0, 0, 0, 0.26);
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.text-link:hover {
  border-color: rgba(130, 235, 255, 0.48);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(91, 224, 255, 0.075)),
    rgba(8, 20, 28, 0.52);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(80, 215, 255, 0.12),
    0 12px 30px rgba(0, 0, 0, 0.3),
    0 0 18px rgba(86, 221, 255, 0.1);
  transform: translateY(-1px);
}

.text-link::after {
  position: absolute;
  right: 24px;
  top: 50%;
  content: "+";
  transform: translateY(-50%);
}

.text-link .label-en,
.text-link .label-cn {
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.text-link .label-cn {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  opacity: 1;
  text-align: center;
  text-transform: none;
  transform: translateY(0);
  white-space: nowrap;
}

.text-link .label-en {
  position: absolute;
  left: 50%;
  top: 50%;
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 4px);
}

.text-link:hover .label-cn {
  opacity: 0;
  transform: translateY(-6px);
}

.text-link:hover .label-en {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.section-block {
  position: relative;
  width: min(calc(100% - var(--side) * 2), var(--max));
  margin: 0 auto;
  padding: clamp(44px, 5.4vw, 78px) 0;
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.section-index {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(18px, 2.4vw, 34px);
  color: rgba(67, 198, 255, 0.68);
}

.section-index::after {
  display: block;
  width: clamp(72px, 12vw, 190px);
  height: 1px;
  background: rgba(67, 198, 255, 0.38);
  content: "";
}

.profile-layout,
.works-head,
.motion-layout,
.experience-layout,
.clients-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.7fr);
  gap: clamp(24px, 3.8vw, 68px);
  align-items: start;
}

.profile h2,
.works h2,
.motion h2,
.experience h2,
.clients h2,
.contact h2 {
  margin: 0;
  color: rgba(242, 240, 234, 0.4);
  opacity: 1;
  font-size: clamp(36px, 5vw, 78px);
  font-weight: 100;
  letter-spacing: 0;
  line-height: 0.96;
  text-transform: uppercase;
}

.profile-copy {
  display: grid;
  gap: 18px;
  padding-top: 0.4em;
  border-left: 1px solid rgba(67, 198, 255, 0.28);
  padding-left: clamp(18px, 2vw, 28px);
}

.profile-copy p {
  margin: 0;
}

.profile-photos {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.58fr) minmax(0, 0.78fr);
  gap: clamp(14px, 1.8vw, 24px);
  align-items: stretch;
  width: min(100%, var(--content));
  margin: clamp(44px, 5vw, 76px) auto 0;
  padding-left: 0;
}

.profile-photo {
  position: relative;
  height: clamp(300px, 25vw, 430px);
  margin: 0;
  border: 1px solid rgba(67, 198, 255, 0.28);
  background: #060606;
  overflow: hidden;
}

.profile-photo::before,
.profile-photo::after {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(67, 198, 255, 0.7);
  content: "";
  pointer-events: none;
}

.profile-photo::before {
  left: -1px;
  top: -1px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.profile-photo::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.72);
  opacity: 0.78;
  transition:
    filter 420ms ease,
    opacity 420ms ease,
    transform 520ms ease;
}

.profile-photo:hover img {
  filter: grayscale(1) contrast(1.16) brightness(0.86);
  opacity: 0.94;
  transform: scale(1.025);
}

.profile-photo-wide {
  aspect-ratio: auto;
}

.profile-photo-tall {
  aspect-ratio: auto;
  transform: none;
}

.profile-photo-square {
  aspect-ratio: auto;
  transform: none;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 18px);
  max-width: var(--content);
  margin-top: clamp(24px, 3.4vw, 48px);
  margin-left: auto;
  margin-right: auto;
  background: transparent;
}

.facts div {
  min-height: 168px;
  padding: clamp(24px, 2.6vw, 40px);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 46%),
    linear-gradient(90deg, rgba(67, 198, 255, 0.08), transparent 28%),
    var(--panel);
}

.facts strong {
  display: block;
  color: var(--tech-blue);
  font-size: clamp(44px, 6.8vw, 96px);
  font-weight: 700;
  line-height: 1;
  background: var(--tech-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 24px rgba(73, 205, 255, 0.16);
  -webkit-text-fill-color: transparent;
}

.facts span,
.facts small {
  display: block;
  margin-top: 16px;
  color: rgba(155, 154, 148, 0.68);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.7;
  text-transform: uppercase;
}

.facts small {
  margin-top: 6px;
  color: rgba(242, 240, 234, 0.68);
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.75;
  text-transform: none;
  text-wrap: pretty;
}

.works-head {
  margin-bottom: clamp(22px, 3vw, 38px);
}

.works-head p {
  margin: 0;
}

.works {
  padding-bottom: clamp(18px, 2.4vw, 36px);
}

.motion {
  padding-top: clamp(18px, 2.4vw, 36px);
}

.wall-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--content);
  margin: 0 auto 18px;
  border-top: 1px solid rgba(67, 198, 255, 0.34);
  padding-top: 18px;
}

.wall-controls span,
.wall-controls b,
.wall-controls small {
  display: block;
  color: var(--faint);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.16em;
  line-height: 1.8;
  text-transform: uppercase;
}

.wall-controls span {
  color: rgba(155, 154, 148, 0.62);
}

.wall-controls b {
  margin-top: 8px;
  color: rgba(242, 240, 234, 0.7);
  font-size: clamp(15px, 1.2vw, 19px);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: none;
}

.wall-actions {
  display: flex;
  gap: 8px;
}

.wall-button {
  position: relative;
  min-height: 36px;
  min-width: 104px;
  padding: 0 16px;
  border: 1px solid rgba(67, 198, 255, 0.26);
  border-radius: 0;
  background: transparent;
  color: rgba(242, 240, 234, 0.5);
  cursor: pointer;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.wall-button .label-en,
.wall-button .label-cn {
  display: inline-block;
  color: currentColor;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.wall-button .label-en {
  opacity: 1;
  transform: translateY(0);
}

.wall-button .label-cn {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: none;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 4px);
}

.wall-button:hover .label-en,
.wall-button:focus-visible .label-en {
  opacity: 0;
  transform: translateY(-6px);
}

.wall-button:hover .label-cn,
.wall-button:focus-visible .label-cn {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.wall-button:hover,
.wall-button:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: #030303;
  outline: 0;
}

.wall-wrap {
  position: relative;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
}

.wall-progress {
  width: min(calc(100vw - var(--side) * 2), var(--max));
  height: 1px;
  margin: 0 auto 26px;
  background: rgba(67, 198, 255, 0.12);
}

.wall-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(67, 198, 255, 0.78);
  transform: scaleX(0);
  transform-origin: left center;
  transform: scaleX(1);
}

@keyframes wall-progress-grow {
  to {
    transform: scaleX(1);
  }
}

.gallery {
  display: flex;
  gap: clamp(18px, 2.2vw, 34px);
  align-items: center;
  min-height: clamp(420px, 44vw, 650px);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 12px;
  cursor: grab;
  scroll-behavior: smooth;
  scroll-padding-inline: 0;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.work-card {
  position: relative;
  flex: 0 0 clamp(360px, 46vw, 820px);
  min-width: 0;
  scroll-snap-align: center;
  transition:
    flex-basis 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.work-card.is-expanded {
  flex-basis: min(88vw, 1280px);
  z-index: 5;
  transform: translateY(0);
}

.work-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: visible;
}

.work-button img {
  width: 100%;
  height: auto;
  object-fit: contain;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
  filter: saturate(0.96) contrast(1.01);
  transition:
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 520ms ease;
}

.work-card:hover img {
  transform: scale(1.01);
  filter: saturate(1.04) contrast(1.04);
}

.work-card.is-expanded .work-button {
  cursor: zoom-out;
}

.work-card.is-expanded img {
  filter: saturate(1.02) contrast(1.05);
}

.motion-layout {
  grid-template-columns: minmax(0, 0.56fr) minmax(680px, 1fr);
}

.motion-list {
  display: grid;
  gap: clamp(18px, 2vw, 28px);
}

.motion-item {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(320px, 0.5fr);
  gap: clamp(18px, 2.2vw, 34px);
  align-items: end;
  padding: clamp(16px, 1.8vw, 24px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.032), transparent 52%),
    linear-gradient(90deg, rgba(67, 198, 255, 0.055), transparent 34%),
    rgba(8, 8, 8, 0.86);
}

.motion-item > div {
  min-width: 0;
}

.video-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #080808;
  cursor: pointer;
  overflow: hidden;
}

.video-trigger img {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
  opacity: 0.9;
  transition:
    transform 520ms ease,
    opacity 520ms ease;
}

.video-trigger:hover img {
  transform: scale(1.035);
  opacity: 1;
}

.video-trigger span {
  position: absolute;
  left: 12px;
  right: auto;
  top: 12px;
  bottom: auto;
  display: inline-flex;
  min-height: 30px;
  min-width: 88px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 240, 234, 0.22);
  padding: 0 10px;
  background: rgba(3, 3, 3, 0.66);
  color: rgba(242, 240, 234, 0.82);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.video-trigger span b,
.video-trigger span em {
  display: inline-block;
  color: currentColor;
  font-style: normal;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.video-trigger span em {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: none;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 4px);
}

.video-trigger:hover span b,
.video-trigger:focus-visible span b {
  opacity: 0;
  transform: translateY(-6px);
}

.video-trigger:hover span em,
.video-trigger:focus-visible span em {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.motion-item p {
  margin: 0 0 8px;
  color: rgba(67, 198, 255, 0.78);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.motion-item h3 {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.42em;
  margin: 0;
  color: rgba(242, 240, 234, 0.88);
  font-size: clamp(20px, 1.9vw, 30px);
  font-weight: 400;
  line-height: 1.25;
  word-break: keep-all;
}

.motion-item h3 span {
  display: inline-block;
  white-space: nowrap;
}

.timeline h3 {
  margin: 0;
  color: rgba(242, 240, 234, 0.84);
  font-size: clamp(16px, 1.55vw, 24px);
  font-weight: 500;
  line-height: 1.45;
}

.motion-item small {
  display: block;
  max-width: none;
  margin-top: 10px;
  overflow-wrap: normal;
}

.motion-item small span {
  display: block;
  white-space: normal;
  word-break: keep-all;
}

.experience-layout {
  grid-template-columns: 1fr;
}

.experience-layout > h2 {
  max-width: 980px;
}

.clients-layout {
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1fr);
}

.timeline {
  display: grid;
  width: 100%;
  gap: clamp(10px, 1.5vw, 16px);
  background: transparent;
}

.timeline article {
  padding: clamp(28px, 3vw, 46px);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 48%),
    linear-gradient(90deg, rgba(67, 198, 255, 0.055), transparent 34%),
    var(--panel);
}

.timeline span {
  display: block;
  margin-bottom: 16px;
  color: rgba(67, 198, 255, 0.84);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.timeline p {
  margin: 14px 0 0;
}

.client-list {
  display: grid;
  gap: clamp(10px, 1.4vw, 16px);
}

.client-list article {
  display: grid;
  grid-template-columns: minmax(110px, 0.24fr) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: baseline;
  padding: clamp(22px, 2.4vw, 34px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 52%),
    linear-gradient(90deg, rgba(67, 198, 255, 0.055), transparent 34%),
    var(--panel);
}

.client-list span {
  display: inline-block;
  color: var(--tech-blue);
  font-size: clamp(15px, 1.3vw, 20px);
  font-weight: 700;
  line-height: 1.5;
  background: var(--tech-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 24px rgba(73, 205, 255, 0.2);
  -webkit-text-fill-color: transparent;
}

.client-list p {
  margin: 0;
  color: rgba(242, 240, 234, 0.7);
  font-size: clamp(15px, 1.35vw, 21px);
  font-weight: 520;
  line-height: 1.9;
  text-wrap: pretty;
}

.contact {
  min-height: 58dvh;
  display: grid;
  align-content: center;
}

.contact h2 {
  max-width: 1160px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 16px);
  margin-top: clamp(30px, 5vw, 66px);
  background: transparent;
}

.contact-grid a,
.contact-grid span {
  min-height: 132px;
  padding: clamp(22px, 2.5vw, 36px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 55%),
    var(--panel);
  color: rgba(242, 240, 234, 0.72);
  font-size: clamp(18px, 1.9vw, 30px);
  font-weight: 500;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.contact-grid a:hover {
  border-color: rgba(233, 225, 210, 0.42);
  background:
    linear-gradient(135deg, rgba(233, 225, 210, 0.12), transparent 58%),
    rgba(18, 18, 18, 0.92);
  color: var(--ink);
}

@media (min-width: 1181px) {
  .section-block::before {
    position: absolute;
    left: 0;
    top: clamp(54px, 6vw, 92px);
    width: 1px;
    height: clamp(86px, 12vw, 164px);
    background: linear-gradient(180deg, rgba(67, 198, 255, 0.72), transparent);
    content: "";
  }

  .section-index,
  .profile-layout,
  .clients-layout,
  .works-head,
  .motion-layout {
    width: min(100%, var(--content));
    margin-right: auto;
    margin-left: auto;
  }

  .experience-layout,
  .contact > h2,
  .contact-grid {
    width: min(100%, 1280px);
    margin-right: auto;
    margin-left: auto;
  }

  .section-block {
    padding-right: clamp(24px, 3vw, 48px);
    padding-left: clamp(24px, 3vw, 48px);
  }

  .section-index {
    margin-left: calc((100% - min(100%, var(--content))) / 2);
  }

  .profile-layout,
  .clients-layout,
  .motion-layout {
    grid-template-columns: minmax(0, 0.82fr) minmax(430px, 0.9fr);
  }

  .motion-layout {
    width: min(100%, 1280px);
    grid-template-columns: minmax(280px, 0.32fr) minmax(820px, 1fr);
    gap: clamp(30px, 3.2vw, 56px);
  }

  .motion h2 {
    max-width: 500px;
    margin-left: 0;
    font-size: clamp(44px, 3.8vw, 62px);
    line-height: 1.02;
  }

  .motion-list {
    min-width: 0;
  }

  .motion-item {
    grid-template-columns: minmax(0, 0.55fr) minmax(0, 0.45fr);
    gap: clamp(28px, 2.5vw, 42px);
    padding: clamp(24px, 2.3vw, 36px);
    align-items: center;
    overflow: visible;
  }

  .motion-item h3 {
    font-size: clamp(28px, 2.05vw, 36px);
    white-space: normal;
  }

  .motion-item small {
    font-size: clamp(16px, 1.12vw, 18px);
    line-height: 1.8;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .works-head {
    grid-template-columns: 1fr;
  }

  .works h2 {
    max-width: 760px;
  }
}

@media (min-width: 1181px) and (max-width: 1530px) {
  .motion-layout {
    width: min(100%, 1180px);
    grid-template-columns: minmax(250px, 0.3fr) minmax(760px, 1fr);
    gap: clamp(22px, 2.8vw, 40px);
  }

  .experience-layout,
  .contact > h2,
  .contact-grid {
    width: min(100%, 1180px);
  }

  .motion h2 {
    max-width: 390px;
    font-size: clamp(40px, 3.4vw, 52px);
  }

  .motion-item {
    grid-template-columns: minmax(0, 0.52fr) minmax(0, 0.48fr);
    gap: 24px;
    padding: 24px;
  }

  .motion-item h3 {
    font-size: clamp(24px, 2vw, 30px);
  }

  .motion-item small {
    font-size: clamp(15px, 1.16vw, 17px);
    line-height: 1.8;
  }
}

.facts div,
.client-list article,
.motion-item,
.timeline article,
.contact-grid a,
.contact-grid span {
  position: relative;
  overflow: hidden;
}

.facts div::after,
.client-list article::after,
.motion-item::after,
.timeline article::after,
.contact-grid a::after,
.contact-grid span::after {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 42px;
  height: 1px;
  background: rgba(67, 198, 255, 0.42);
  content: "";
}

.motion-item {
  overflow: visible;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  padding: 22px;
}

.modal.is-open {
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}

.modal-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1500px, 100%);
  max-height: calc(100dvh - 44px);
  border: 1px solid var(--line-strong);
  background: #030303;
}

.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.modal-top p {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.modal-actions {
  display: flex;
  gap: 8px;
}

.modal-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal-actions button:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.modal-body {
  min-height: 0;
  padding: 16px;
  overflow: auto;
}

.modal-body img,
.modal-body video {
  width: 100%;
  max-height: calc(100dvh - 136px);
  object-fit: contain;
  background: #000;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 720ms ease,
    transform 720ms ease;
}

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

@media (max-width: 1180px) {
  .hero-bottom,
  .profile-layout,
  .works-head,
  .motion-layout,
  .experience-layout,
  .clients-layout {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

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

  .profile-photos {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 0.32fr);
    padding-left: 0;
  }

  .profile-photo {
    height: clamp(260px, 38vw, 360px);
  }

  .profile-photo-square {
    display: none;
  }

  .profile-photo-tall {
    transform: none;
  }

  .gallery {
    min-height: clamp(390px, 58vw, 640px);
  }

  .work-card {
    flex-basis: clamp(300px, 56vw, 620px);
  }

  .work-card.is-expanded {
    flex-basis: min(90vw, 980px);
  }
}

@media (max-width: 760px) {
  .cursor {
    display: none;
  }

  .site-header {
    position: absolute;
    display: grid;
    gap: 18px;
    left: 16px;
    right: 16px;
    top: 24px;
    width: auto;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    font-size: 10.5px;
    letter-spacing: 0.01em;
  }

  .site-nav a {
    min-height: 36px;
    padding: 0 4px;
    justify-content: center;
    color: rgba(242, 240, 234, 0.86);
  }

  .site-nav a::before {
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    margin-left: 0;
    color: rgba(242, 240, 234, 0.9);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    opacity: 0;
    transform: translate(-50%, calc(-50% + 4px));
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    color: transparent;
  }

  .site-nav a:hover::before,
  .site-nav a:focus-visible::before {
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  .hero {
    min-height: 100dvh;
    padding: 112px 18px 28px;
  }

  .hero-bg {
    background:
      radial-gradient(circle at center 42%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.08) 48%, rgba(0, 0, 0, 0.74) 90%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0.86)),
      url("assets/hero/plasma-portrait.webp?v=fast1") center center / cover no-repeat;
  }

  .hero-grid {
    min-height: calc(100dvh - 140px);
    width: 100%;
  }

  .hero h1 {
    width: min(100%, 382px);
    margin: clamp(12px, 3.2vh, 28px) auto 0;
    font-size: clamp(44px, 13.2vw, 60px);
    line-height: 0.94;
    letter-spacing: 0.02em;
  }

  .hero h1 span {
    transform: scaleX(0.94);
  }

  .hero-kicker {
    display: block;
    visibility: hidden;
  }

  .hero-bottom {
    gap: 12px;
    padding-bottom: 0;
  }

  .name-cn {
    font-size: clamp(40px, 12.4vw, 54px);
    line-height: 1;
    transform: translateX(-14px);
  }

  .role-cn {
    max-width: 25em;
    margin-top: 8px;
    font-size: 13.5px;
    line-height: 1.55;
  }

  .hero-copy,
  .role-cn,
  .profile-copy p,
  .works-head p,
  .timeline p,
  .motion-item small {
    font-size: 14px;
    line-height: 1.9;
  }

  .hero-copy {
    max-width: 28.5em;
    line-height: 1.62;
  }

  .hero-copy span {
    display: block;
  }

  .hero-copy .hero-nowrap {
    white-space: normal;
  }

  .hero-actions {
    width: 100%;
    max-width: 100%;
    gap: 10px;
  }

  .text-link {
    min-height: 54px;
    border-radius: 15px;
    padding: 0 16px;
  }

  .section-block {
    width: calc(100% - 32px);
    padding: 40px 0;
  }

  .works {
    padding-bottom: 24px;
  }

  .motion {
    padding-top: 24px;
  }

  .profile h2,
  .works h2,
  .motion h2,
  .experience h2,
  .clients h2,
  .contact h2 {
    font-size: clamp(32px, 10.8vw, 54px);
    line-height: 1.02;
  }

  .works h2 {
    max-width: 9ch;
  }

  .client-list article {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px;
  }

  .client-list p {
    font-size: 15px;
    line-height: 1.8;
  }

  .facts,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .profile-photos {
    grid-template-columns: 1fr 0.58fr;
    gap: 10px;
    margin-top: 28px;
  }

  .profile-photo {
    height: clamp(220px, 58vw, 300px);
  }

  .profile-photo-wide {
    aspect-ratio: auto;
  }

  .profile-photo-tall {
    aspect-ratio: auto;
    transform: none;
  }

  .wall-controls {
    align-items: start;
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
    padding-top: 14px;
  }

  .wall-controls small {
    font-size: 10px;
    letter-spacing: 0.12em;
    opacity: 0.62;
  }

  .wall-progress {
    margin-bottom: 18px;
  }

  .motion-item {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 12px;
  }

  .wall-actions {
    width: 100%;
    gap: 10px;
  }

  .wall-button {
    flex: 1;
    min-height: 38px;
    min-width: 0;
  }

  .wall-wrap {
    width: calc(100vw - 32px);
    margin-left: 0;
    transform: none;
    overflow: visible;
  }

  .gallery {
    width: 100%;
    min-height: clamp(220px, 58vw, 300px);
    gap: 14px;
    align-items: flex-start;
    overflow-y: visible;
    padding: 0 0 10px;
    scroll-padding-inline: 0;
  }

  .work-card {
    flex-basis: min(100%, 391px);
    scroll-snap-align: start;
    transform: none;
  }

  .work-card.is-expanded {
    flex-basis: 100%;
  }

  .video-trigger img {
    aspect-ratio: 16 / 10;
  }

  .modal {
    padding: 10px;
  }

  .modal-panel {
    max-height: calc(100dvh - 20px);
  }

  .modal-top {
    display: grid;
  }

  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

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

  .hero h1 {
    filter: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}
