:root {
  color-scheme: dark;
  --bg: #030407;
  --text: #f5f7ff;
  --muted: rgba(245, 247, 255, 0.68);
  --soft: rgba(245, 247, 255, 0.42);
  --line: rgba(255, 255, 255, 0.12);
  --blue: #1677ff;
  --cyan: #72ddff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.13), transparent 30rem),
    radial-gradient(circle at 82% 40%, rgba(210, 216, 225, 0.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

button {
  font: inherit;
}

img {
  max-width: 100%;
}

#fluid-canvas,
.noise,
.cursor-glow {
  inset: 0;
  pointer-events: none;
  position: fixed;
}

#fluid-canvas {
  opacity: 0.78;
  z-index: -3;
}

.noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.62'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
  opacity: 0.1;
  z-index: -2;
}

.cursor-glow {
  background: radial-gradient(circle at var(--x, 50%) var(--y, 30%), rgba(55, 134, 255, 0.17), transparent 24rem);
  transition: background 180ms ease-out;
  z-index: -1;
}

.site-header {
  align-items: center;
  backdrop-filter: saturate(180%) blur(22px);
  background: rgba(3, 4, 7, 0.68);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 76px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 30;
}

.brand,
.header-nav-cluster,
.category-links,
.nav-links,
.hero-actions,
.contact-actions,
.filter-group,
.project-tab-strip,
.carousel-controls {
  align-items: center;
  display: flex;
}

.brand {
  flex: 0 0 auto;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-mark {
  background: linear-gradient(135deg, var(--cyan), var(--blue) 52%, #fff);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(68, 151, 255, 0.75);
  height: 13px;
  width: 13px;
}

.header-nav-cluster {
  flex: 1 1 auto;
  gap: 10px;
  justify-content: flex-end;
  min-width: 0;
}

.category-links {
  gap: 6px;
  padding: 0;
}

.category-links a,
.nav-links a {
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  padding: 10px 14px;
  transition: background 220ms ease, color 220ms ease;
  white-space: nowrap;
}

.category-links a:hover,
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.nav-links {
  gap: 6px;
}

.hero {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 88vh;
  padding: 140px clamp(18px, 6vw, 88px) 90px;
}

.hero-layout {
  display: flex;
  justify-content: center;
  max-width: 1180px;
  width: 100%;
}

.hero-copy {
  display: grid;
  gap: 28px;
  justify-items: center;
  text-align: center;
}

.eyebrow,
.section-kicker,
.project-filter-label {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-meta {
  margin-bottom: 32px;
}

.hero-stack {
  display: block;
  margin: 0;
  max-width: none;
}

.hero-stack span {
  animation: metallic-sheen 7s linear infinite;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.95) 18%, rgba(181, 189, 198, 0.92) 34%, rgba(255, 255, 255, 0.98) 49%, rgba(134, 144, 157, 0.9) 64%, rgba(249, 251, 255, 0.98) 78%, rgba(255, 255, 255, 0.22) 100%);
  background-clip: text;
  background-size: 240% 100%;
  color: transparent;
  display: inline-block;
  filter:
    drop-shadow(0 0 18px rgba(214, 221, 230, 0.14))
    drop-shadow(0 10px 30px rgba(0, 0, 0, 0.35));
  font-size: clamp(5rem, 15vw, 10.8rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.9;
  text-transform: uppercase;
}

.hero-meta-compact {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 4px;
  max-width: 820px;
  padding-top: 16px;
  justify-content: center;
}

.hero-meta-compact span {
  color: var(--soft);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  min-height: auto;
  padding: 0;
  white-space: nowrap;
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.pill-action {
  align-items: center;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  min-height: 48px;
  min-width: 138px;
  padding: 0 20px;
  text-align: center;
  transition: transform 240ms var(--ease), background 240ms ease, border-color 240ms ease;
}

.pill-action:hover,
.round-button:hover,
.project-chip:hover,
.filter-button:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.section {
  padding: 100px clamp(18px, 6vw, 88px);
}

.section-title {
  font-size: clamp(3.6rem, 9vw, 9.8rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.9;
  margin: 0 0 42px;
}

.profile-card,
.experience-item {
  border-top: 1px solid var(--line);
  padding: clamp(24px, 4vw, 46px) 0;
}

.profile-card span,
.experience-item span,
.history-heading span {
  color: var(--soft);
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.profile-card dl {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.profile-card dt {
  color: var(--soft);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.profile-card dd {
  font-size: clamp(1.35rem, 2.4vw, 2.4rem);
  font-weight: 900;
  margin: 0;
}

.profile-summary {
  color: var(--soft);
  font-size: 0.96rem;
  line-height: 1.9;
  margin: 18px 0 0;
  max-width: 1120px;
}

.history-heading {
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding-top: 48px;
}

.history-heading h3 {
  font-size: clamp(2.4rem, 5.5vw, 5.6rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 30px;
}

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

.experience-item h3 {
  font-size: clamp(1.55rem, 2.6vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 18px;
}

.experience-copy {
  display: grid;
  gap: 16px;
}

.experience-item p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.9;
  margin: 0;
}

.works-head {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 38px;
}

.works-head .section-title {
  margin-bottom: 0;
}

.works-filter-stack {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-label {
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.filter-group {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  gap: 5px;
  padding: 5px;
}

.project-filter-shell {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.project-tab-strip {
  background: transparent;
  border-radius: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0 8px;
  scrollbar-width: none;
}

.project-tab-strip::-webkit-scrollbar {
  display: none;
}

.filter-button,
.project-chip {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  min-height: 40px;
  padding: 0 16px;
  transition: background 220ms ease, color 220ms ease, transform 220ms var(--ease);
  white-space: nowrap;
}

.project-chip {
  background: rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
  line-height: 1.2;
  max-width: min(100%, 220px);
  min-height: 44px;
  padding: 10px 16px;
  text-align: center;
  white-space: normal;
}

.filter-button.is-active,
.project-chip.is-active {
  background: #f5f7ff;
  color: #05060a;
}

.work-panel,
.brand-project-panel {
  display: none;
}

.work-panel.is-active,
.brand-project-panel.is-active {
  display: block;
}

.product-carousel,
.logo-marquee {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.028)),
    rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 30px;
  margin: 0 calc(clamp(18px, 6vw, 88px) * -1) 52px;
  overflow: hidden;
  padding: 34px clamp(18px, 6vw, 88px) 30px;
}

.carousel-head,
.logo-head {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.carousel-head h3,
.logo-head h3 {
  font-size: clamp(1.9rem, 4vw, 4.2rem);
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0;
}

.carousel-track {
  display: flex;
  gap: clamp(18px, 2vw, 30px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 4px 0 34px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  cursor: pointer;
  flex: 0 0 min(72vw, 1120px);
  margin: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transition: transform 420ms var(--ease), opacity 420ms ease, filter 420ms ease;
}

.carousel-card img {
  border-radius: 24px;
  display: block;
  height: auto;
  width: 100%;
}

.carousel-controls {
  gap: 10px;
}

.round-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.2rem;
  height: 44px;
  justify-content: center;
  line-height: 1;
  transition: transform 220ms var(--ease), background 220ms ease;
  width: 44px;
}

.carousel-ui {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.carousel-dots {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  display: flex;
  gap: 12px;
  min-height: 46px;
  padding: 0 20px;
}

.carousel-dot {
  background: rgba(255, 255, 255, 0.62);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 8px;
  padding: 0;
  transition: background 220ms ease, width 220ms var(--ease);
  width: 8px;
}

.carousel-dot.is-active {
  background: #f5f7ff;
  width: 42px;
}

.play-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  height: 46px;
  justify-content: center;
  line-height: 1;
  min-width: 72px;
  padding: 0 18px;
}

.spotlight-carousel {
  --poster-accent: rgba(37, 69, 122, 0.32);
  --poster-accent-line: rgba(92, 142, 231, 0.28);
  background:
    radial-gradient(circle at 50% 14%, var(--poster-accent), transparent 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.035);
  border-color: var(--poster-accent-line);
  transition: background 420ms ease, border-color 420ms ease;
}

.spotlight-carousel .carousel-track {
  align-items: center;
  gap: clamp(14px, 1.6vw, 20px);
  padding-bottom: 24px;
}

.spotlight-card {
  flex-basis: min(24vw, 260px);
  opacity: 0.22;
  transform: scale(0.84);
}

.spotlight-card.is-prev,
.spotlight-card.is-next {
  opacity: 0.62;
  transform: scale(0.92);
}

.spotlight-card.is-active {
  opacity: 1;
  transform: scale(1);
}

.spotlight-card img {
  aspect-ratio: 0.67;
  object-fit: cover;
}

.logo-marquee-shell {
  display: grid;
  gap: 18px;
}

.logo-row {
  overflow: hidden;
  padding: 14px 0;
  position: relative;
}

.logo-row-track {
  animation: logo-marquee 30s linear infinite;
  display: flex;
  gap: 18px;
  width: max-content;
}

.logo-row.is-reverse .logo-row-track {
  animation-direction: reverse;
  animation-duration: 34s;
}

.logo-marquee-shell:hover .logo-row-track,
.logo-row:hover .logo-row-track {
  animation-play-state: paused;
}

.logo-card {
  cursor: pointer;
  flex: 0 0 auto;
  margin: 0;
  position: relative;
  transform-origin: center;
  transition: transform 280ms var(--ease), filter 280ms ease;
}

.logo-card:hover {
  filter: brightness(1.05);
  transform: scale(1.2);
  z-index: 2;
}

.logo-card img {
  display: block;
  height: clamp(160px, 17vw, 228px);
  max-width: none;
  object-fit: contain;
  width: auto;
}

.contact-section {
  margin: 0 clamp(18px, 6vw, 88px) 42px;
  min-height: 72vh;
  padding: 48px 0 72px;
}

.contact-layout {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
}

.contact-section h2 {
  font-size: clamp(3rem, 7vw, 8rem);
  letter-spacing: -0.045em;
  line-height: 0.94;
  margin-bottom: 26px;
  max-width: 780px;
}

.contact-board {
  min-height: 560px;
  position: relative;
}

.board-pill {
  animation: drift 10s ease-in-out infinite;
  animation-delay: var(--delay);
  border-radius: 999px;
  font-size: clamp(0.88rem, 1.2vw, 1.08rem);
  font-weight: 800;
  left: var(--x);
  letter-spacing: 0.02em;
  max-width: none;
  overflow: hidden;
  padding: 15px 20px;
  position: absolute;
  text-overflow: ellipsis;
  top: var(--y);
  transform: rotate(var(--r));
  white-space: nowrap;
  width: clamp(180px, 18vw, 260px);
}

.board-pill.filled {
  background: rgba(255, 255, 255, 0.9);
  color: #06080d;
}

.board-pill.outline {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.board-pill.dark {
  background: rgba(5, 8, 14, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}

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

@keyframes drift {
  0%,
  100% {
    transform: translateY(0) rotate(var(--r));
  }

  50% {
    transform: translateY(-10px) rotate(calc(var(--r) + 2deg));
  }
}

@keyframes logo-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 9px));
  }
}

@keyframes metallic-sheen {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 240% 50%;
  }
}

@media (max-width: 1100px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-nav-cluster {
    justify-content: space-between;
    width: 100%;
  }

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

@media (max-width: 980px) {
  .profile-card dl,
  .experience-grid {
    grid-template-columns: 1fr;
  }

  .works-head,
  .carousel-head,
  .logo-head {
    align-items: start;
    flex-direction: column;
  }

  .works-filter-stack {
    width: 100%;
  }

  .filter-group {
    border-radius: 20px;
    flex-wrap: wrap;
    width: 100%;
  }

  .project-tab-strip {
    flex-wrap: wrap;
  }

  .spotlight-card {
    flex-basis: min(34vw, 250px);
  }

  .logo-card {
    flex-basis: auto;
  }

  .board-pill {
    width: clamp(180px, 28vw, 240px);
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 12px;
    min-height: auto;
    padding: 12px 16px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-nav-cluster {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }

  .category-links,
  .nav-links {
    overflow-x: auto;
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding: 132px 16px 72px;
  }

  .hero-copy {
    gap: 20px;
  }

  .hero-stack span {
    font-size: clamp(3.4rem, 15vw, 4.9rem);
    line-height: 0.98;
  }

  .section {
    padding: 84px 16px;
  }

  .section-title {
    font-size: clamp(3rem, 18vw, 5.6rem);
  }

  .hero-meta-compact {
    align-items: center;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .profile-summary {
    font-size: 0.9rem;
  }

  .filter-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-group::-webkit-scrollbar {
    display: none;
  }

  .project-tab-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
  }

  .carousel-card {
    flex-basis: 88vw;
  }

  .product-carousel,
  .logo-marquee {
    border-radius: 20px;
    margin-inline: -16px;
    padding: 24px 16px 24px;
  }

  .carousel-card img {
    border-radius: 18px;
  }

  .carousel-dots {
    gap: 9px;
    justify-content: flex-start;
    max-width: min(100%, 100%);
    overflow-x: auto;
    padding-inline: 14px;
    scrollbar-width: none;
  }

  .carousel-dots::-webkit-scrollbar {
    display: none;
  }

  .carousel-dot.is-active {
    width: 30px;
  }

  .spotlight-card {
    flex-basis: 68vw;
    opacity: 0.42;
    transform: scale(0.88);
  }

  .spotlight-card.is-prev,
  .spotlight-card.is-next {
    opacity: 0.7;
    transform: scale(0.94);
  }

  .spotlight-card.is-active {
    transform: scale(1);
  }

  .logo-card {
    transform-origin: center center;
  }

  .logo-card img {
    height: clamp(120px, 28vw, 180px);
  }

  .contact-section {
    margin-inline: 16px;
    padding-top: 20px;
  }

  .contact-layout {
    gap: 18px;
  }

  .contact-section h2 {
    font-size: clamp(2.8rem, 15vw, 4.6rem);
    margin-bottom: 22px;
  }

  .contact-board {
    min-height: 520px;
  }

  .board-pill {
    font-size: 0.78rem;
    padding: 12px 14px;
    width: min(68vw, 240px);
  }

  .board-pill:nth-child(1) { --x: 0%; --y: 0%; }
  .board-pill:nth-child(2) { --x: 28%; --y: 9%; }
  .board-pill:nth-child(3) { --x: 47%; --y: 3%; }
  .board-pill:nth-child(4) { --x: 8%; --y: 28%; }
  .board-pill:nth-child(5) { --x: 38%; --y: 34%; }
  .board-pill:nth-child(6) { --x: 63%; --y: 31%; }
  .board-pill:nth-child(7) { --x: 0%; --y: 55%; }
  .board-pill:nth-child(8) { --x: 24%; --y: 49%; }
  .board-pill:nth-child(9) { --x: 46%; --y: 56%; }
  .board-pill:nth-child(10) { --x: 67%; --y: 61%; }
  .board-pill:nth-child(11) { --x: 8%; --y: 76%; }
  .board-pill:nth-child(12) { --x: 46%; --y: 81%; }
}

@media (max-width: 430px) {
  .site-header {
    padding: 10px 12px;
  }

  .brand {
    font-size: 0.72rem;
  }

  .category-links a,
  .nav-links a {
    font-size: 0.8rem;
    padding: 9px 10px;
  }

  .hero {
    padding: 122px 12px 64px;
  }

  .hero-stack span {
    font-size: clamp(3.1rem, 14vw, 4.2rem);
  }

  .hero-meta-compact span {
    font-size: 0.78rem;
  }

  .hero-actions {
    width: 100%;
  }

  .pill-action {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    padding-inline: 16px;
  }

  .section {
    padding: 72px 12px;
  }

  .section-title {
    font-size: clamp(2.8rem, 16vw, 4.8rem);
  }

  .works-head {
    gap: 20px;
  }

  .works-filter-stack,
  .filter-group {
    width: 100%;
  }

  .filter-button {
    min-height: 38px;
    padding-inline: 12px;
  }

  .project-chip {
    max-width: 180px;
  }

  .carousel-head h3,
  .logo-head h3 {
    font-size: clamp(1.8rem, 10vw, 2.5rem);
  }

  .product-carousel,
  .logo-marquee {
    margin-inline: -12px;
    padding: 20px 12px 22px;
  }

  .carousel-controls {
    gap: 8px;
  }

  .round-button {
    height: 40px;
    width: 40px;
  }

  .spotlight-card {
    flex-basis: 74vw;
  }

  .logo-row-track {
    gap: 12px;
  }

  .logo-card img {
    height: 110px;
  }

  .contact-section {
    margin-inline: 12px;
  }

  .contact-board {
    min-height: 480px;
  }

  .board-pill {
    width: min(70vw, 220px);
  }
}

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