:root {
  color-scheme: dark;
  --bg: #000000;
  --ink: #f5f5f7;
  --muted: rgba(245, 245, 247, 0.64);
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(255, 255, 255, 0.065);
  --panel-solid: #111111;
  --accent: #8ab4ff;
  --accent-2: #ffffff;
  --green: #00a676;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.55);
  --radius: 28px;
  --section: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 74% 0%, rgba(70, 112, 255, 0.2), transparent 32rem),
    radial-gradient(circle at 8% 16%, rgba(255, 255, 255, 0.12), transparent 24rem),
    linear-gradient(180deg, #050505 0%, #000 34%, #050505 100%);
  color: var(--ink);
  letter-spacing: 0;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1240px, calc(100vw - 32px));
  margin: 14px auto 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.72);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(22px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f5f5f7;
  color: #050505;
  font-size: 12px;
  letter-spacing: 0;
}

.nav-links {
  gap: 4px;
}

.nav-links a {
  border-radius: 999px;
  padding: 9px 13px;
  color: rgba(245, 245, 247, 0.7);
  font-size: 13px;
  transition: background 180ms ease, color 180ms ease;
}

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

.section-shell {
  width: var(--section);
  margin: 0 auto;
}

#render-works,
#aigc-works,
#graphic-works {
  scroll-margin-top: 96px;
}

.hero {
  min-height: calc(100vh - 86px);
  width: min(1500px, calc(100vw - 88px));
  display: grid;
  grid-template-columns: minmax(420px, 0.78fr) minmax(620px, 1.22fr);
  align-items: center;
  gap: clamp(42px, 5.4vw, 96px);
  padding: clamp(74px, 7.4vw, 116px) 0 clamp(78px, 7vw, 112px);
}

.hero-copy {
  max-width: 620px;
  align-self: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.education h2,
.contact h2 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(82px, 10vw, 168px);
  line-height: 0.88;
  font-weight: 950;
  text-shadow: 0 16px 52px rgba(255, 255, 255, 0.16);
}

.hero-title {
  margin: 24px 0 0;
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 800;
  line-height: 1.15;
}

.hero-lede,
.works-intro > p,
.education > p,
.contact p {
  color: var(--muted);
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.75;
}

.hero-lede {
  max-width: 590px;
  margin: 30px 0 0;
  color: rgba(245, 245, 247, 0.58);
  line-height: 1.96;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 42px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.badge-row span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  min-width: 108px;
  padding: 11px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  color: rgba(245, 245, 247, 0.84);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.badge-row span:first-child {
  border-color: rgba(93, 162, 255, 0.86);
  color: #f5f5f7;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 22px rgba(74, 144, 255, 0.22);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 64px;
  border-radius: 999px;
  padding: 0 30px;
  font-size: 18px;
  font-weight: 750;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  justify-content: space-between;
  background: #f5f5f7;
  color: #050505;
  box-shadow: 0 16px 42px rgba(255, 255, 255, 0.16);
}

.button.primary span {
  margin-left: 34px;
  font-size: 28px;
  line-height: 1;
}

.button.secondary {
  border: 1px solid rgba(74, 144, 255, 0.74);
  background: rgba(17, 75, 168, 0.16);
  color: #f5f5f7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-visual {
  position: relative;
  height: min(720px, 68vw);
  min-height: 650px;
  border-radius: 38px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow);
  background: #2f43ff;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.25) 100%),
    radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.35), transparent 16rem);
  pointer-events: none;
}

.hero-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.orb-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  display: grid;
  grid-template-columns: 78px auto;
  align-items: center;
  gap: 12px;
  max-width: min(330px, calc(100% - 48px));
  padding: 10px 16px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(18px);
}

.orb-card img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
}

.hero-showcase {
  display: grid;
  gap: 14px;
  align-content: center;
  min-height: 620px;
}

.showcase-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  padding: 0;
  background: #111;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  cursor: zoom-in;
}

.showcase-tile.large {
  aspect-ratio: 16 / 10;
  border-radius: 30px;
}

.showcase-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.showcase-strip .showcase-tile {
  aspect-ratio: 1 / 1;
  border-radius: 22px;
}

.showcase-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease, filter 600ms ease;
}

.showcase-tile.large span {
  position: absolute;
  z-index: 1;
  left: 22px;
  top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.36);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.showcase-tile:hover img,
.showcase-tile:focus-visible img {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.04);
}

.portrait-showcase {
  position: relative;
  display: block;
  justify-self: end;
  width: min(760px, 52vw);
  min-height: 690px;
  isolation: isolate;
}

.portrait-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(103, 167, 255, 0.5);
  border-radius: 30px;
  padding: 0;
  background: #07101f;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  cursor: zoom-in;
}

.portrait-main {
  position: absolute;
  z-index: 2;
  inset: 0 34% 6% 2%;
  border-radius: 34px;
  transform: rotate(-1.4deg);
}

.portrait-standing,
.portrait-close {
  position: absolute;
  z-index: 3;
}

.portrait-standing {
  top: 9%;
  right: 0;
  width: min(38%, 300px);
  height: 39%;
  border-radius: 30px;
  transform: rotate(3.6deg);
}

.portrait-close {
  right: 5%;
  bottom: 4%;
  width: min(47%, 380px);
  height: 36%;
  border-radius: 28px;
  transform: rotate(2.8deg);
  background:
    linear-gradient(90deg, rgba(5, 10, 18, 0.36), rgba(5, 10, 18, 0.04) 42%, rgba(5, 10, 18, 0.22)),
    url("./assets/portrait-sea-crouch.jpg") center 64% / cover;
}

.portrait-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 600ms ease, filter 600ms ease;
}

.portrait-main img {
  object-position: center 50%;
}

.portrait-standing img {
  object-position: center 50%;
}

.portrait-close img {
  object-fit: cover;
  object-position: center bottom;
  transform-origin: center bottom;
}

.portrait-card:hover img,
.portrait-card:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.04);
}

.portrait-card span {
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.36);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.portrait-side {
  display: grid;
  gap: 18px;
}

.portrait-stamp {
  position: absolute;
  top: 10%;
  left: 56%;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(94, 166, 255, 0.58);
  border-radius: 50%;
  color: rgba(113, 178, 255, 0.92);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.13em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(18deg);
  box-shadow: 0 0 30px rgba(75, 149, 255, 0.18);
}

.portrait-stamp::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(104, 177, 255, 0.9), rgba(33, 95, 185, 0.26));
  filter: blur(0.2px);
  opacity: 0.7;
}

.portrait-stamp::after {
  content: "";
  position: absolute;
  inset: 30px 23px 22px 31px;
  border-radius: 999px 999px 999px 0;
  background: rgba(112, 182, 255, 0.72);
  transform: rotate(-35deg);
}

.portrait-note {
  position: absolute;
  left: -4%;
  top: auto;
  bottom: 3%;
  z-index: 5;
  width: min(430px, 58%);
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  border: 1px solid rgba(103, 167, 255, 0.22);
  border-radius: 24px;
  padding: 24px 104px 24px 28px;
  background:
    linear-gradient(180deg, rgba(23, 41, 64, 0.72), rgba(8, 12, 20, 0.52)),
    rgba(8, 12, 20, 0.3);
  box-shadow:
    0 28px 78px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(22px);
  pointer-events: auto;
}

.portrait-note p,
.portrait-note span {
  margin: 0;
  color: rgba(245, 245, 247, 0.66);
  font-size: 13px;
  line-height: 1.6;
}

.portrait-note p {
  color: var(--accent);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portrait-note strong {
  color: #fff;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1;
}

.portrait-note-arrow {
  position: absolute;
  top: 50%;
  right: 26px;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(110, 174, 255, 0.34);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(18, 34, 58, 0.58);
  color: #5ea7ff;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.portrait-note-arrow:hover {
  border-color: rgba(110, 174, 255, 0.78);
  color: #ffffff;
  transform: translateY(-50%) translateX(3px);
}

.profile,
.experience,
.education,
.contact {
  padding: clamp(70px, 9vw, 132px) 0;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading h2,
.education h2,
.contact h2 {
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: 1.04;
}

.profile-heading-title > span,
.education-heading-title > span,
.two-line-heading > span {
  display: block;
  white-space: nowrap;
}

.no-break {
  display: inline-block;
  white-space: nowrap;
}

.section-heading.compact {
  margin-bottom: 24px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 14px;
}

.identity-panel,
.signal-panel,
.timeline article,
.education,
.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--panel);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.identity-panel {
  display: grid;
  grid-template-columns: 128px auto;
  align-items: center;
  gap: 18px;
  min-height: 170px;
  border-radius: var(--radius);
  padding: 18px;
}

.identity-panel.text-only {
  grid-template-columns: 1fr;
  padding: 26px;
}

.identity-panel img {
  width: 128px;
  height: 128px;
  border-radius: 22px;
  object-fit: cover;
}

.identity-panel h3,
.timeline h3,
.lane-head h3 {
  margin: 0;
}

.identity-panel p {
  margin: 8px 0 0;
  color: var(--muted);
}

.zcool-cert {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 24px 24px;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 10px 8px 8px;
  background: rgba(255, 255, 255, 0.055);
}

.zcool-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 34%, #fff 0 24%, transparent 25%),
    linear-gradient(145deg, #f5f5f7, #d8e1ff 48%, #ffd6ef);
  color: #050505;
  font-size: 16px;
  font-weight: 950;
}

.zcool-cert div {
  min-width: 0;
}

.zcool-cert strong,
.zcool-cert span {
  display: block;
}

.zcool-cert strong {
  overflow: hidden;
  color: #f5f5f7;
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zcool-cert span {
  margin-top: 2px;
  color: rgba(245, 245, 247, 0.62);
  font-size: 12px;
  font-weight: 760;
}

.zcool-cert i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  font-style: normal;
  font-size: 10px;
  font-weight: 950;
  color: #141414;
}

.zcool-cert i:nth-of-type(1) {
  background: #f0c031;
}

.zcool-cert i:nth-of-type(2) {
  background: #ff5a46;
  color: #fff;
}

.signal-panel {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius);
  padding: 22px;
}

.metric {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 900;
  line-height: 1;
}

.signal-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.skill-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.skill-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 245, 247, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.skill-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.skill-matrix article {
  display: grid;
  gap: 20px;
  min-height: 160px;
  border-right: 1px solid var(--line);
  padding: 28px 28px 32px;
  background: transparent;
}

.skill-matrix article:last-child {
  border-right: 0;
}

.skill-matrix p,
.skill-matrix h3 {
  margin: 0;
}

.skill-matrix p {
  color: rgba(245, 245, 247, 0.46);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.skill-matrix h3 {
  font-size: clamp(20px, 2.3vw, 32px);
  line-height: 1.18;
  font-weight: 760;
}

.skill-matrix div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-self: end;
}

.skill-matrix span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(245, 245, 247, 0.78);
  font-size: 13px;
  font-weight: 720;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 170px 1fr 150px 2fr;
  gap: 20px;
  align-items: start;
  border-radius: 24px;
  padding: 24px;
}

.timeline article::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.timeline h3 {
  font-size: 19px;
}

.timeline .role {
  margin: 0;
  color: var(--accent);
  font-weight: 800;
}

.timeline p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.experience-detail {
  display: grid;
  gap: 12px;
}

.experience-detail p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.experience-detail strong {
  display: inline-flex;
  margin-right: 10px;
  color: #f5f5f7;
  font-weight: 900;
}

.education {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(280px, 0.74fr);
  gap: 48px;
  align-items: center;
  border-radius: 34px;
  padding: clamp(46px, 7vw, 84px) clamp(52px, 7.5vw, 96px);
}

.education > p {
  margin: 0;
  align-self: center;
}

.works {
  padding: clamp(70px, 9vw, 120px) 0 38px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 34rem),
    #000;
  color: #fff;
}

.works .eyebrow {
  color: #8ea1ff;
}

.works-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.56fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 52px;
}

.works-intro > p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.68);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "usmile usmile harman watch"
    "heater heater levoit tecno";
  gap: 18px;
  margin-bottom: 72px;
}

.project-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.project-card.hero-project {
  grid-area: usmile;
}

.featured-grid .project-card:nth-child(2) {
  grid-area: harman;
}

.featured-grid .project-card:nth-child(3) {
  grid-area: watch;
}

.featured-grid .project-card:nth-child(4) {
  grid-area: levoit;
}

.featured-grid .project-card:nth-child(5) {
  grid-area: tecno;
}

.featured-grid .project-card:nth-child(6) {
  grid-area: heater;
}

.project-card button,
.project-card .project-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1.32;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #111;
  cursor: zoom-in;
}

.project-card .project-cover {
  cursor: pointer;
}

.project-card.hero-project button,
.project-card.hero-project .project-cover {
  aspect-ratio: 1.62;
}

.featured-grid .project-card:nth-child(6) .project-cover {
  aspect-ratio: 1.62;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms ease, filter 520ms ease;
}

.project-card button:hover img,
.project-card button:focus-visible img,
.project-card .project-cover:hover img,
.project-card .project-cover:focus-visible img {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.04);
}

.project-card div {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.project-card p,
.project-card h3,
.project-card span {
  margin: 0;
}

.project-card p {
  color: #8ea1ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card h3 {
  font-size: clamp(22px, 2.4vw, 38px);
  line-height: 1.12;
}

.project-card span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  line-height: 1.7;
}

.project-card a {
  width: fit-content;
  margin-top: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.category-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-bottom: 36px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}

.category-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  width: 100%;
}

.category-intro h3 {
  margin: 0;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: 0;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 240ms ease,
    border-color 240ms ease,
    background 240ms ease,
    color 240ms ease;
}

.view-all-link::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 240ms ease;
}

.view-all-link:hover,
.view-all-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: translateY(-2px);
}

.view-all-link:hover::after,
.view-all-link:focus-visible::after {
  transform: translateX(3px) rotate(45deg);
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.category-chips span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 850;
}

.work-category {
  --category-accent: #8ab4ff;
  --category-accent-rgb: 138, 180, 255;
  --category-label: "SELECTED WORKS";
  --project-accent: var(--category-accent);
  --project-accent-rgb: var(--category-accent-rgb);
  position: relative;
  width: 100%;
  max-width: none;
  padding: 36px 0 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.work-category::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: min(var(--section), calc(100vw - 48px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(var(--category-accent-rgb), 0.56), transparent);
  opacity: 0.7;
  pointer-events: none;
}

.work-category .lane-head {
  width: var(--section);
  max-width: calc(100vw - 48px);
  margin: 0 auto 24px;
}

.work-category .lane-head span {
  border-color: rgba(var(--category-accent-rgb), 0.5);
  color: var(--category-accent);
  box-shadow:
    0 0 24px rgba(var(--category-accent-rgb), 0.12),
    inset 0 0 16px rgba(var(--category-accent-rgb), 0.08);
}

.work-category .lane-head h3::after {
  content: var(--category-label);
  display: block;
  margin-top: 8px;
  color: rgba(var(--category-accent-rgb), 0.82);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: 0;
}

.work-category .view-all-link:hover,
.work-category .view-all-link:focus-visible {
  border-color: rgba(var(--category-accent-rgb), 0.56);
  background: rgba(var(--category-accent-rgb), 0.13);
  box-shadow: 0 0 26px rgba(var(--category-accent-rgb), 0.16);
}

.work-category.is-render-lab {
  --category-accent: #8ab4ff;
  --category-accent-rgb: 138, 180, 255;
  --category-label: "PRODUCT LAB / STRUCTURE / MATERIAL / LIGHT";
}

.work-category.is-aigc-wall {
  --category-accent: #37f5c0;
  --category-accent-rgb: 55, 245, 192;
  --category-label: "CONCEPT WALL / ATMOSPHERE / WORLDBUILDING";
}

.work-category.is-layout-archive {
  --category-accent: #ffc06f;
  --category-accent-rgb: 255, 192, 111;
  --category-label: "LAYOUT ARCHIVE / PAGE / RHYTHM / HIERARCHY";
}

.work-category.is-render-motion {
  --category-accent: #ff8e5f;
  --category-accent-rgb: 255, 142, 95;
  --category-label: "MOTION TIMELINE / CAMERA / SPEED / DETAIL";
}

.work-category.is-ai-motion {
  --category-accent: #47f2c8;
  --category-accent-rgb: 71, 242, 200;
  --category-label: "AI MOTION WALL / NARRATIVE / GENERATION";
}

.grid-carousel {
  --grid-gap: clamp(12px, 1.1vw, 18px);
  --grid-cell: clamp(178px, 19.4vw, 292px);
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  transform: translateX(-50%);
  overflow: hidden;
  overscroll-behavior-x: contain;
  padding: 10px clamp(22px, 7vw, 108px) 18px;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 5%,
    rgba(0, 0, 0, 0.72) 12%,
    #000 21%,
    #000 79%,
    rgba(0, 0, 0, 0.72) 88%,
    rgba(0, 0, 0, 0.12) 95%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 5%,
    rgba(0, 0, 0, 0.72) 12%,
    #000 21%,
    #000 79%,
    rgba(0, 0, 0, 0.72) 88%,
    rgba(0, 0, 0, 0.12) 95%,
    transparent 100%
  );
}

.grid-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

.grid-carousel.is-dragging {
  cursor: grabbing;
}

.grid-carousel:focus-visible {
  border-radius: 22px;
  outline: 1px solid rgba(255, 255, 255, 0.32);
  outline-offset: 8px;
}

.grid-track {
  position: relative;
  z-index: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--grid-cell);
  grid-template-rows: repeat(3, var(--grid-cell));
  gap: var(--grid-gap);
  width: max-content;
  min-width: max-content;
  margin-inline: auto;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.grid-track.auto-slide {
  animation: none;
}

.grid-track.is-rolling {
  animation: none;
}

.grid-page {
  display: contents;
}

.work-category.is-render-lab .grid-carousel::before {
  background:
    linear-gradient(rgba(var(--category-accent-rgb), 0.11) 1px, transparent 1px) 0 0 / 82px 82px,
    linear-gradient(90deg, rgba(var(--category-accent-rgb), 0.09) 1px, transparent 1px) 0 0 / 82px 82px,
    radial-gradient(circle at 50% 50%, rgba(var(--category-accent-rgb), 0.08), transparent 48%);
  opacity: 0.38;
}

.work-category.is-aigc-wall .grid-carousel::before {
  background:
    radial-gradient(circle at 30% 38%, rgba(var(--category-accent-rgb), 0.18), transparent 34%),
    radial-gradient(circle at 68% 48%, rgba(116, 139, 255, 0.12), transparent 38%);
  opacity: 0.72;
}

.work-category.is-layout-archive .grid-carousel::before {
  inset-block: 2px auto;
  height: 18px;
  background: repeating-linear-gradient(
    90deg,
    rgba(var(--category-accent-rgb), 0.34) 0 1px,
    transparent 1px 42px
  );
  opacity: 0.36;
}

.work-category.is-motion-timeline .motion-gallery::before {
  top: calc(50% - 1px);
  bottom: auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--category-accent-rgb), 0.42), transparent);
  opacity: 0.58;
}

.work-category.is-compact-motion .grid-carousel {
  --grid-cell: clamp(292px, 24vw, 430px);
  --motion-row: clamp(166px, 13.5vw, 242px);
  --grid-gap: clamp(14px, 1.2vw, 20px);
  padding-block: 12px 30px;
}

.work-category.is-compact-motion .motion-gallery {
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-inline: 0;
  transform: translateX(-50%);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.16) 5%,
    rgba(0, 0, 0, 0.76) 13%,
    #000 22%,
    #000 78%,
    rgba(0, 0, 0, 0.76) 87%,
    rgba(0, 0, 0, 0.16) 95%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.16) 5%,
    rgba(0, 0, 0, 0.76) 13%,
    #000 22%,
    #000 78%,
    rgba(0, 0, 0, 0.76) 87%,
    rgba(0, 0, 0, 0.16) 95%,
    transparent 100%
  );
  scrollbar-width: none;
}

.work-category.is-compact-motion .motion-gallery::-webkit-scrollbar {
  display: none;
}

.work-category.is-compact-motion .grid-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--grid-cell);
  grid-template-rows: var(--motion-row);
  gap: var(--grid-gap);
  margin-inline: auto;
}

.work-category.is-compact-motion .motion-gallery .grid-track {
  justify-content: start;
  width: max-content;
  min-width: max-content;
  margin-inline: 0;
  padding: 0;
}

.work-category.is-compact-motion.is-ai-motion .grid-carousel {
  --grid-cell: clamp(270px, 22vw, 380px);
  --motion-row: clamp(152px, 12.2vw, 214px);
}

.work-category.is-compact-motion.is-ai-motion .grid-track {
  grid-template-rows: repeat(3, var(--motion-row));
}

.work-category.is-compact-motion .grid-card,
.work-category.is-compact-motion .grid-video {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: clamp(16px, 1.25vw, 22px);
  box-shadow: 0 22px 74px rgba(0, 0, 0, 0.42);
}

.work-category.is-graphic-gallery .grid-carousel {
  --grid-cell: clamp(244px, 19vw, 328px);
  --graphic-card-row: clamp(322px, 24.2vw, 410px);
  --grid-gap: clamp(14px, 1.2vw, 22px);
  padding-block: 10px 36px;
}

.work-category.is-graphic-gallery .grid-track {
  grid-auto-columns: var(--grid-cell);
  grid-template-rows: repeat(2, var(--graphic-card-row));
  gap: var(--grid-gap);
  margin-inline: 0;
}

.work-category.is-graphic-gallery .graphic-carousel-card {
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
  border-radius: clamp(18px, 1.35vw, 24px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    #050505;
  box-shadow: 0 22px 74px rgba(0, 0, 0, 0.44);
}

.work-category.is-graphic-gallery .graphic-carousel-card::after {
  display: none;
}

.graphic-carousel-card .graphic-thumb {
  position: relative;
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  border-radius: inherit;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: #050505;
}

.graphic-carousel-card .graphic-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58));
  pointer-events: none;
}

.graphic-carousel-card .graphic-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.graphic-carousel-card .graphic-card-copy {
  position: static;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 72px;
  max-width: none;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  padding: 14px 16px 15px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

.graphic-card-copy strong,
.graphic-card-copy em {
  display: block;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0;
}

.graphic-card-copy strong {
  color: #fff;
  font-size: clamp(14px, 1.1vw, 18px);
  font-weight: 820;
}

.graphic-card-copy em {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
}

.grid-card,
.grid-video {
  --project-accent: var(--category-accent);
  --project-accent-rgb: var(--category-accent-rgb);
}

.grid-card[data-title*="UGREEN" i],
.grid-video[data-title*="UGREEN" i],
.grid-card[data-src*="ugreen" i],
.grid-video[data-src*="ugreen" i] {
  --project-accent: #37f5b5;
  --project-accent-rgb: 55, 245, 181;
}

.grid-card[data-title*="Xiaomi" i],
.grid-video[data-title*="Xiaomi" i],
.grid-card[data-title*="Watch" i],
.grid-video[data-title*="Watch" i],
.grid-card[data-src*="xiaomi" i],
.grid-video[data-src*="xiaomi" i] {
  --project-accent: #91d7ff;
  --project-accent-rgb: 145, 215, 255;
}

.grid-card[data-title*="Voyah" i],
.grid-video[data-title*="Voyah" i],
.grid-card[data-title*="X8" i],
.grid-video[data-title*="X8" i],
.grid-card[data-src*="voyah" i],
.grid-video[data-src*="voyah" i] {
  --project-accent: #d54f69;
  --project-accent-rgb: 213, 79, 105;
}

.grid-card[data-title*="Meituan" i],
.grid-video[data-title*="Meituan" i],
.grid-card[data-src*="meituan" i],
.grid-video[data-src*="meituan" i] {
  --project-accent: #ffd15f;
  --project-accent-rgb: 255, 209, 95;
}

.grid-card[data-title*="LeVoit" i],
.grid-video[data-title*="LeVoit" i],
.grid-card[data-src*="levoit" i],
.grid-video[data-src*="levoit" i] {
  --project-accent: #aeeedc;
  --project-accent-rgb: 174, 238, 220;
}

.grid-card[data-title*="Usmile" i],
.grid-video[data-title*="Usmile" i],
.grid-card[data-src*="usmile" i],
.grid-video[data-src*="usmile" i] {
  --project-accent: #ff91a8;
  --project-accent-rgb: 255, 145, 168;
}

.grid-card[data-title*="Insta360" i],
.grid-video[data-title*="Insta360" i] {
  --project-accent: #7bd5ff;
  --project-accent-rgb: 123, 213, 255;
}

.grid-card[data-title*="Harman" i],
.grid-video[data-title*="Harman" i],
.grid-card[data-title*="Audio" i],
.grid-video[data-title*="Audio" i] {
  --project-accent: #ffb067;
  --project-accent-rgb: 255, 176, 103;
}

.grid-card[data-title*="Sanag" i],
.grid-video[data-title*="Sanag" i],
.grid-card[data-title*="LOCA" i],
.grid-video[data-title*="LOCA" i] {
  --project-accent: #bba7ff;
  --project-accent-rgb: 187, 167, 255;
}

.grid-card[data-title*="S25" i],
.grid-video[data-title*="S25" i],
.grid-card[data-src*="s25" i],
.grid-video[data-src*="s25" i],
.grid-card[data-src*="tecno" i],
.grid-video[data-src*="tecno" i] {
  --project-accent: #cfd7ff;
  --project-accent-rgb: 207, 215, 255;
}

.grid-card[data-title*="Armor" i],
.grid-video[data-title*="Armor" i],
.grid-card[data-src*="armor" i],
.grid-video[data-src*="armor" i] {
  --project-accent: #f5b256;
  --project-accent-rgb: 245, 178, 86;
}

.grid-card,
.grid-video {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--project-accent-rgb), 0.16);
  border-radius: clamp(14px, 1.3vw, 20px);
  background:
    linear-gradient(180deg, rgba(var(--project-accent-rgb), 0.08), transparent 42%),
    #111;
  color: #fff;
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(var(--project-accent-rgb), 0.04);
  opacity: var(--edge-opacity, 1);
  transform: translateY(var(--edge-y, 0px)) scale(var(--edge-scale, 1));
  filter: saturate(var(--edge-saturate, 1));
  transform-origin: center;
  transition:
    opacity 320ms ease,
    transform 420ms ease,
    filter 420ms ease,
    border-color 320ms ease,
    box-shadow 320ms ease;
  will-change: opacity, transform;
}

.grid-card {
  border: 1px solid rgba(var(--project-accent-rgb), 0.16);
  padding: 0;
  cursor: zoom-in;
}

.grid-card::before,
.grid-video::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, rgba(var(--project-accent-rgb), 0.82), transparent);
  opacity: 0.56;
  pointer-events: none;
}

.grid-card::after,
.grid-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 46%, rgba(0, 0, 0, 0.08));
  pointer-events: none;
}

.grid-card img,
.grid-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms ease, filter 520ms ease;
}

.grid-card:hover img,
.grid-card:focus-visible img,
.grid-video:hover video,
.grid-video:focus-within video {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.04);
}

.grid-card:hover,
.grid-card:focus-visible,
.grid-video:hover,
.grid-video:focus-within {
  border-color: rgba(var(--project-accent-rgb), 0.58);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.48),
    0 0 34px rgba(var(--project-accent-rgb), 0.15),
    inset 0 0 0 1px rgba(var(--project-accent-rgb), 0.1);
}

.grid-card > span:not(.graphic-thumb):not(.graphic-card-copy),
.grid-video > span {
  position: absolute;
  z-index: 1;
  left: 12px;
  top: 12px;
  max-width: calc(100% - 24px);
  border: 1px solid rgba(var(--project-accent-rgb), 0.32);
  border-radius: 999px;
  padding: 7px 11px;
  background:
    linear-gradient(90deg, rgba(var(--project-accent-rgb), 0.16), rgba(0, 0, 0, 0.34)),
    rgba(0, 0, 0, 0.44);
  color: var(--project-accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.work-category.is-render-lab .grid-card {
  border-radius: clamp(10px, 0.9vw, 14px);
}

.work-category.is-render-lab .grid-card::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.26), transparent 44%, rgba(0, 0, 0, 0.12)),
    linear-gradient(90deg, rgba(var(--project-accent-rgb), 0.12), transparent 18%, transparent 82%, rgba(var(--project-accent-rgb), 0.1));
}

.work-category.is-render-lab .grid-card > span:not(.graphic-thumb):not(.graphic-card-copy) {
  border-radius: 6px;
}

.work-category.is-aigc-wall .grid-track {
  grid-auto-flow: column dense;
}

.work-category.is-aigc-wall .grid-card {
  border-radius: clamp(18px, 1.65vw, 28px);
}

.work-category.is-aigc-wall .grid-card:nth-of-type(8n + 1),
.work-category.is-aigc-wall .grid-card:nth-of-type(8n + 6) {
  grid-column-end: span 2;
  aspect-ratio: auto;
}

.work-category.is-aigc-wall .grid-card::after {
  background:
    radial-gradient(circle at 50% 18%, rgba(var(--project-accent-rgb), 0.2), transparent 32%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.44), transparent 50%, rgba(0, 0, 0, 0.18));
}

.work-category.is-layout-archive .graphic-carousel-card {
  border-radius: 10px;
}

.work-category.is-layout-archive .graphic-carousel-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 12px auto 12px 0;
  width: 3px;
  border-radius: 999px;
  background: rgba(var(--project-accent-rgb), 0.86);
  opacity: 0.72;
  pointer-events: none;
}

.work-category.is-layout-archive .graphic-card-copy {
  border-top-color: rgba(var(--project-accent-rgb), 0.24);
}

.work-category.is-layout-archive .graphic-card-copy em {
  color: rgba(var(--project-accent-rgb), 0.68);
}

.work-category.is-motion-timeline .grid-card,
.work-category.is-motion-timeline .grid-video {
  border-radius: 14px;
}

.work-category.is-motion-timeline .grid-card > span:not(.graphic-thumb):not(.graphic-card-copy),
.work-category.is-motion-timeline .grid-video > span {
  top: auto;
  bottom: 12px;
}

.work-category.is-motion-timeline .grid-card > span:not(.graphic-thumb):not(.graphic-card-copy)::before,
.work-category.is-motion-timeline .grid-video > span::before {
  content: "FRAME ";
  color: rgba(255, 255, 255, 0.58);
}

.category-lane {
  display: none;
}

@keyframes grid-roll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(var(--grid-shift, -50%));
  }
}

.work-lane {
  padding: 20px 0 34px;
}

.final-lane {
  padding-bottom: 82px;
}

.work-lane.final-lane {
  display: none;
}

.lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.lane-head span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: rgba(245, 245, 247, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.lane-head h3 {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(34px, 5vw, 72px);
  letter-spacing: 0;
}

.marquee {
  --duration: 30s;
  display: flex;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.work-lane[data-speed="slow"] .marquee {
  --duration: 37.15s;
}

.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 0 9px;
  animation: marquee var(--duration) linear infinite;
  will-change: transform;
}

.marquee.reverse .marquee-track {
  animation-direction: reverse;
}

.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track,
.marquee.is-paused .marquee-track {
  animation-play-state: paused;
}

.work-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(210px, 20vw, 304px);
  aspect-ratio: 0.84;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 0;
  background: #111;
  color: #fff;
  cursor: zoom-in;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.52);
}

.work-card.wide {
  width: clamp(380px, 38vw, 620px);
  aspect-ratio: 1.76;
}

.work-card.poster {
  width: clamp(220px, 20vw, 320px);
  height: clamp(500px, 52vw, 760px);
  aspect-ratio: auto;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease, filter 500ms ease;
}

.work-card.poster img {
  object-fit: cover;
  object-position: top;
  background: #050505;
}

.work-card:hover img,
.work-card:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.04);
}

.work-card span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

.video-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(430px, 42vw, 720px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: #111;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.52);
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #050505;
}

.video-card span {
  display: block;
  padding: 14px 16px 16px;
  color: rgba(245, 245, 247, 0.82);
  font-size: 14px;
  font-weight: 850;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 0.5fr);
  gap: 44px;
  align-items: center;
}

.contact p {
  margin: 20px 0 0;
  max-width: 660px;
}

.contact-card {
  display: grid;
  gap: 12px;
  border-radius: 30px;
  padding: 24px;
}

.contact-card a,
.contact-card span {
  display: flex;
  min-height: 44px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: rgba(245, 245, 247, 0.78);
  font-size: 15px;
  font-weight: 750;
}

.contact-card a:hover {
  color: #fff;
}

.contact-card > :last-child {
  border-bottom: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 72px clamp(18px, 4vw, 58px) 36px;
  background:
    radial-gradient(circle at 72% 12%, rgba(74, 128, 255, 0.18), transparent 28rem),
    rgba(0, 0, 0, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  backdrop-filter: blur(18px);
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(1480px, calc(100vw - 72px));
}

.modal figure {
  margin: 0;
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(8, 8, 8, 0.9);
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.62);
}

.modal-stage {
  display: grid;
  place-items: center;
  overflow: auto;
  min-height: min(62vh, 720px);
  max-height: calc(100vh - 244px);
  background: #050505;
}

.modal-media {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: none;
  margin: 0 auto;
  object-fit: contain;
  background: #050505;
}

.modal-video {
  width: 100%;
  max-height: calc(100vh - 244px);
}

.modal-image.is-hidden,
.modal-video.is-hidden {
  display: none;
}

.modal-info {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 18px;
  align-items: end;
  padding: 18px clamp(18px, 2.4vw, 30px) 20px;
  color: rgba(255, 255, 255, 0.82);
}

.modal-kicker {
  grid-column: 1 / -1;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal-title {
  min-width: 0;
  color: #fff;
  font-size: clamp(20px, 2vw, 34px);
  font-weight: 850;
  letter-spacing: 0;
}

.modal-counter {
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 780;
}

.modal-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.modal-meta span {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.045);
}

.modal-meta b {
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.08em;
}

.modal-meta em {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-style: normal;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-toolbar {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 8px;
  background: rgba(14, 14, 14, 0.72);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.modal-toolbar button,
.modal-nav,
.modal-close {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.modal-toolbar button {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border-radius: 999px;
  padding: 0 13px;
  font-size: 15px;
  font-weight: 850;
}

.modal-zoom-label {
  min-width: 54px;
  color: rgba(255, 255, 255, 0.76);
  text-align: center;
  font-size: 12px;
  font-weight: 850;
}

.modal-toolbar button:hover,
.modal-nav:hover,
.modal-close:hover {
  border-color: rgba(138, 180, 255, 0.62);
  background: rgba(138, 180, 255, 0.18);
  transform: translateY(-1px);
}

.modal-close {
  position: fixed;
  right: 24px;
  top: 22px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.modal-nav {
  position: fixed;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 42px;
  line-height: 1;
}

.modal-prev {
  left: 24px;
}

.modal-next {
  right: 24px;
}

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

  .hero,
  .profile-grid,
  .education,
  .works-intro,
  .category-intro,
  .contact {
    grid-template-columns: 1fr;
  }

  .skill-matrix {
    grid-template-columns: 1fr;
  }

  .skill-matrix article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .skill-matrix article:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: auto;
    width: var(--section);
    gap: 46px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-visual,
  .hero-visual > img,
  .hero-showcase {
    height: 640px;
    min-height: 640px;
  }

  .portrait-showcase {
    width: 100%;
    max-width: 760px;
    justify-self: center;
  }

  .portrait-main {
    inset: 0 33% 7% 1%;
  }

  .portrait-standing {
    top: 8%;
    right: 0;
    width: 37%;
    height: 38%;
  }

  .portrait-close {
    right: 4%;
    bottom: 3%;
    width: 47%;
    height: 36%;
  }

  .portrait-main {
    min-height: 0;
  }

  .portrait-note {
    min-height: 0;
    left: 0;
    bottom: 2%;
    width: min(430px, 60%);
  }

  .profile-grid {
    gap: 12px;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-left: 28px;
  }

  .education > p,
  .works-intro > p {
    align-self: auto;
  }

  .featured-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "usmile usmile"
      "harman watch"
      "heater heater"
      "levoit tecno";
  }

  .project-card.hero-project {
    grid-column: auto;
  }

  .grid-carousel {
    --grid-cell: clamp(156px, 28vw, 244px);
    padding-inline: clamp(18px, 8vw, 72px);
  }

  .work-category.is-graphic-gallery .grid-carousel {
    --grid-cell: clamp(232px, 38vw, 292px);
    --graphic-card-row: clamp(312px, 51vw, 372px);
  }
}

@media (max-width: 640px) {
  :root {
    --section: min(100vw - 28px, 1180px);
  }

  .site-header {
    width: calc(100vw - 20px);
    margin-top: 10px;
  }

  .brand {
    font-size: 13px;
  }

  .hero {
    width: var(--section);
    padding-top: 48px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    min-height: 46px;
    min-width: 0;
    font-size: 16px;
  }

  .hero-visual {
    border-radius: 28px;
  }

  .hero-visual,
  .hero-visual > img,
  .hero-showcase {
    height: 520px;
    min-height: 520px;
  }

  .hero-showcase {
    gap: 8px;
  }

  .portrait-showcase {
    height: 520px;
    min-height: 520px;
    display: block;
    width: 100%;
    max-width: none;
  }

  .portrait-card,
  .portrait-main,
  .portrait-standing,
  .portrait-close {
    position: absolute;
  }

  .portrait-main {
    inset: 0 14% 18% 0;
    min-height: 0;
    transform: rotate(-1.2deg);
  }

  .portrait-standing {
    top: 7%;
    right: 0;
    width: 40%;
    height: 30%;
    transform: rotate(3deg);
  }

  .portrait-close {
    right: 2%;
    bottom: 6%;
    width: 52%;
    height: 32%;
    transform: rotate(2deg);
  }

  .portrait-stamp {
    top: 8%;
    left: 51%;
    width: 58px;
    height: 58px;
    font-size: 7px;
  }

  .portrait-note {
    left: 0;
    top: auto;
    bottom: 0;
    width: min(350px, 88%);
    min-height: auto;
    border-radius: 18px;
    padding: 15px 72px 15px 16px;
  }

  .portrait-note strong {
    font-size: 24px;
  }

  .portrait-note p,
  .portrait-note span {
    font-size: 12px;
  }

  .portrait-note-arrow {
    right: 14px;
    width: 48px;
    height: 48px;
    font-size: 26px;
  }

  .showcase-strip {
    grid-template-columns: 1fr 1fr;
  }

  .orb-card {
    grid-template-columns: 56px auto;
    right: 14px;
    bottom: 14px;
  }

  .orb-card img {
    width: 56px;
    height: 56px;
  }

  .identity-panel {
    grid-template-columns: 96px auto;
  }

  .identity-panel img {
    width: 96px;
    height: 96px;
  }

  .work-card {
    width: 220px;
    border-radius: 20px;
  }

  .work-card.wide {
    width: 330px;
  }

  .work-card.poster {
    width: 210px;
  }

  .category-title-row {
    gap: 12px;
  }

  .lane-head {
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .lane-head h3 {
    flex: 1 1 calc(100% - 58px);
  }

  .lane-head .view-all-link {
    margin-left: 50px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "usmile"
      "harman"
      "watch"
      "heater"
      "levoit"
      "tecno";
  }

  .project-card.hero-project {
    grid-column: auto;
  }

  .project-card div {
    padding: 18px;
  }

  .work-category .lane-head {
    max-width: calc(100vw - 28px);
  }

  .grid-carousel {
    --grid-cell: clamp(126px, 38vw, 182px);
    --grid-gap: 10px;
    padding-inline: 18px;
  }

  .work-category.is-graphic-gallery .grid-carousel {
    --grid-cell: clamp(220px, 72vw, 286px);
    --graphic-card-row: clamp(300px, 96vw, 370px);
    --grid-gap: 12px;
  }

  .grid-card,
  .grid-video {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
  }

  .modal {
    padding: 62px 14px 24px;
    place-items: center;
  }

  .modal-panel {
    width: 100%;
  }

  .modal-stage {
    min-height: 42vh;
    max-height: calc(100vh - 286px);
  }

  .modal-info {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 16px;
  }

  .modal-counter {
    justify-self: start;
  }

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

  .modal-nav {
    top: auto;
    bottom: 86px;
    width: 46px;
    height: 46px;
    font-size: 34px;
  }

  .modal-prev {
    left: 18px;
  }

  .modal-next {
    right: 18px;
  }

  .modal-close {
    right: 14px;
    top: 14px;
  }

  .works {
    padding: 48px 0 24px;
  }

  .works-intro {
    gap: 18px;
    margin-bottom: 28px;
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: none;
    gap: 10px;
    margin-bottom: 42px;
  }

  .featured-grid .project-card,
  .project-card.hero-project {
    grid-area: auto !important;
    grid-column: auto;
  }

  .project-card button,
  .project-card .project-cover,
  .project-card.hero-project button,
  .project-card.hero-project .project-cover,
  .featured-grid .project-card:nth-child(6) .project-cover {
    aspect-ratio: 1.08;
  }

  .project-card div {
    gap: 6px;
    padding: 12px;
  }

  .project-card p {
    font-size: 10px;
  }

  .project-card h3 {
    font-size: 16px;
    line-height: 1.16;
  }

  .project-card span {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .project-card a {
    display: none;
  }

  .category-intro {
    gap: 16px;
    margin-bottom: 26px;
    padding-top: 8px;
  }

  .category-intro h3 {
    font-size: clamp(40px, 14vw, 56px);
  }

  .work-category {
    padding: 24px 0 34px;
  }

  .lane-head {
    margin-bottom: 14px;
  }

  .lane-head h3 {
    font-size: clamp(34px, 13vw, 52px);
  }

  .lane-head .view-all-link {
    margin-left: 0;
  }

  .grid-carousel,
  .marquee,
  .work-category.is-compact-motion .motion-gallery {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .grid-carousel {
    --grid-cell: clamp(112px, 31vw, 140px);
    --grid-gap: 8px;
    padding-inline: 12px;
  }

  .work-category.is-graphic-gallery .grid-carousel {
    --grid-cell: clamp(160px, 50vw, 210px);
    --graphic-card-row: clamp(230px, 68vw, 300px);
    --grid-gap: 10px;
  }

  .work-category.is-compact-motion .grid-carousel {
    --grid-cell: clamp(210px, 62vw, 270px);
    --motion-row: clamp(120px, 36vw, 154px);
    --grid-gap: 10px;
  }

  .marquee-track {
    gap: 10px;
    padding-inline: 5px;
  }

  .work-card {
    width: 172px;
    border-radius: 15px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
  }

  .work-card.wide {
    width: 248px;
  }

  .work-card.poster {
    width: 168px;
    height: 390px;
  }

  .video-card {
    width: min(76vw, 300px);
    border-radius: 15px;
  }

  .work-card img,
  .project-card img {
    transition: none;
  }

  .work-card:hover img,
  .work-card:focus-visible img,
  .project-card button:hover img,
  .project-card button:focus-visible img,
  .project-card .project-cover:hover img,
  .project-card .project-cover:focus-visible img {
    transform: none;
    filter: none;
  }
}

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