@import url('https://fonts.googleapis.com/css2?family=Handjet:wght@400;500;600;700&family=Syne+Mono&family=Yuyu&display=swap');

:root {
  --accent: #3b328c;
  --accent-soft: #f1efff;
  --ink: #111014;
  --muted: #696771;
  --line: #d9d7e2;
  --paper: #ffffff;
  --panel: #f7f6fb;
  --max: 1200px;
  --display: "Syne Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --numbers: "Handjet", "Arial Narrow", sans-serif;
  --signature: "Yuyu", cursive;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { display: block; max-width: 100%; }

.container { width: min(calc(100% - 64px), var(--max)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(217,215,226,.65);
}
.header-inner {
  min-height: 86px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.wordmark {
  font-family: var(--signature);
  font-size: 31px;
  line-height: 1;
  white-space: nowrap;
}
.nav-list { display: flex; align-items: center; gap: 48px; }
.nav-link {
  position: relative;
  padding: 30px 0 26px;
  font-size: 15px;
  font-weight: 600;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 20px;
  height: 3px;
  background: var(--ink);
  transition: right .25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link:hover::after, .nav-link.active::after { right: 0; }
.platforms { justify-self: end; display: flex; align-items: center; gap: 16px; }
.platform-link {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 4px;
  cursor: pointer;
}
.platform-link:hover { color: var(--accent); }
.platform-link svg { width: 27px; height: 27px; }
.mobile-toggle { display: none; border: 0; background: none; font-size: 24px; }

main { overflow: clip; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.page-title {
  margin: 0;
  font-size: clamp(48px, 7vw, 92px);
  line-height: .98;
  letter-spacing: -.055em;
}
.section-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.section-en {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 21px;
  letter-spacing: .11em;
}
.section-cn { margin: 0; color: var(--muted); font-size: 15px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 42px; }
.section-link { color: var(--accent); font-weight: 650; border-bottom: 1px solid currentColor; padding-bottom: 5px; }
.section-rule { border-top: 1px solid var(--line); }
.section-pad { padding: 96px 0; }
.number { font-family: var(--numbers); font-weight: 650; color: var(--accent); }

.btn-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; }
.btn {
  min-height: 50px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: #fff;
  font-weight: 650;
  transition: .22s ease;
}
.btn:hover { color: #fff; background: var(--accent); transform: translateY(-2px); }
.btn.solid { color: #fff; background: var(--accent); }
.btn.solid:hover { background: #241d70; }
.btn.text { border-color: transparent; border-bottom-color: var(--ink); color: var(--ink); padding-inline: 0; }
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* About */
.about-hero { padding: 76px 0 82px; }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(48px, 8vw, 112px); }
.about-name-cn { margin: 0; font-size: clamp(58px, 7vw, 92px); line-height: .98; letter-spacing: -.06em; }
.about-name-en { margin: 14px 0 0; font-family: var(--signature); font-size: clamp(44px, 5.2vw, 70px); font-weight: 400; line-height: 1; }
.short-rule { width: 72px; height: 1px; background: var(--ink); margin: 44px 0 34px; }
.fun-title { margin: 0 0 18px; font-size: 24px; }
.fun-list { margin: 0; padding: 0; list-style: none; font-size: 17px; line-height: 1.9; }
.avatar-stage {
  min-height: 640px;
  background: transparent;
  display: flex;
  align-items: end;
  justify-content: center;
  overflow: hidden;
}
.avatar-stage img { width: 100%; height: 100%; max-height: 640px; object-fit: contain; object-position: center bottom; }
.skills-section { padding: 54px 0 76px; border-top: 1px solid var(--line); }
.skills-grid { margin-top: 38px; display: grid; grid-template-columns: repeat(5, 1fr) 1.35fr; align-items: stretch; border-bottom: 1px solid var(--line); }
.skill { min-height: 86px; display: grid; place-items: center; border-right: 1px solid var(--line); font-size: 16px; }
.experience { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; }
.experience .number { font-size: 68px; line-height: 1; }
.career-section { padding: 64px 0 108px; border-top: 1px solid var(--line); }
.career-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(42px, 6vw, 88px); align-items: end; }
.career-heading { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 48px; }
.career-heading-line { flex: 0 0 72px; height: 1px; margin-top: 13px; background: var(--ink); }
.career-timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; }
.career-timeline::before { content: ""; position: absolute; top: 7px; right: 0; left: 0; height: 1px; background: var(--line); }
.career-item { position: relative; padding: 38px 36px 0 0; }
.career-dot { position: absolute; top: 0; left: 0; width: 15px; height: 15px; border: 4px solid #fff; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.career-item time { display: block; margin-bottom: 13px; color: var(--muted); font-family: var(--numbers); font-size: 21px; letter-spacing: .03em; }
.career-item h3 { margin: 0 0 7px; font-size: 21px; }
.career-item p { margin: 0; color: var(--muted); }
.career-art { align-self: end; display: grid; justify-items: center; }
.career-sticker { width: min(100%, 238px); transform: rotate(2deg); filter: drop-shadow(0 12px 18px rgba(59,50,140,.12)); }
.keep-going { margin: -8px 0 0; color: var(--accent); font-family: var(--signature); font-size: 45px; line-height: 1; transform: rotate(-5deg); white-space: nowrap; }

/* Work overview */
.work-hero, .selected-projects, .artist-section, .works-section { scroll-margin-top: 100px; }
.work-hero { padding: 92px 0 72px; }
.work-intro { max-width: 620px; margin-top: 24px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.metrics-heading { width: min(100%, 360px); min-height: 70px; margin: 30px auto 6px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.metrics-star { width: 24px; height: 24px; flex: 0 0 24px; }
.metrics-title { margin: 0; padding: 4px 0; color: var(--accent); font-weight: 700; letter-spacing: .08em; text-align: center; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric { padding: 34px 26px; text-align: center; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric > div:first-child { display: inline-flex; align-items: baseline; gap: 7px; }
.metric-value { font-size: clamp(54px, 7vw, 90px); line-height: .8; }
.metric-unit { color: var(--accent); font-family: var(--numbers); font-size: clamp(22px, 2.3vw, 31px); font-weight: 650; line-height: 1; }
.metric-label { margin-top: 16px; color: var(--muted); font-size: 14px; }
.work-side-nav { position: fixed; z-index: 45; top: 50%; right: 18px; display: grid; gap: 2px; padding: 6px 0; transform: translateY(-50%); }
.work-side-nav::before { content: ""; position: absolute; top: 22px; bottom: 22px; left: 10px; width: 1px; background: #b9b5d0; }
.work-side-nav a { position: relative; padding: 11px 12px 11px 32px; color: var(--muted); font-size: 16px; font-weight: 650; white-space: nowrap; transition: color .2s ease; }
.work-side-nav a::before { content: ""; position: absolute; z-index: 1; top: 50%; left: 5px; width: 11px; height: 11px; border-radius: 50%; background: #b9b5d0; box-shadow: 0 0 0 4px var(--paper); transform: translateY(-50%); transition: background .2s ease, transform .2s ease; }
.work-side-nav a:hover, .work-side-nav a.active { color: var(--accent); }
.work-side-nav a.active::before { background: var(--accent); transform: translateY(-50%) scale(1.18); }

.selected-projects { padding: 88px 0 112px; }
.project-stack { display: grid; gap: 100px; }
.project-card { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(42px, 7vw, 100px); }
.project-card.reverse .project-media { order: 2; }
.project-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel); }
.project-media.squareish { aspect-ratio: 1.35; }
.project-media.panoramic { aspect-ratio: 1260 / 636; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project-card:hover .project-media img { transform: scale(1.025); }
.project-index { color: var(--accent); font-family: var(--numbers); font-size: 22px; }
.project-title { margin: 12px 0 20px; font-size: clamp(30px, 4vw, 54px); line-height: 1.12; letter-spacing: -.045em; }
.project-copy { color: var(--muted); line-height: 1.85; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.tag { padding: 6px 12px; border: 1px solid #c9c4ec; border-radius: 999px; color: var(--accent); font-size: 12px; }

/* Artist development */
.artist-section { padding: 88px 0; background: #fbfaff; }
.artist-group-heading { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; font-size: 14px; letter-spacing: .1em; }
.artist-group-heading::before { content: ""; width: 42px; height: 1px; background: var(--ink); }
.artist-group-heading.secondary { margin-top: 58px; padding-top: 30px; border-top: 1px solid var(--line); }
.featured-artist { display: grid; grid-template-columns: 180px 1fr auto; gap: 34px; align-items: center; padding: 26px; border: 1px solid var(--line); background: #fff; }
.artist-avatar { aspect-ratio: 1; border-radius: 0; overflow: hidden; background: var(--panel); }
.artist-avatar img { width: 100%; height: 100%; object-fit: cover; }
.featured-artist > .artist-avatar img { object-position: 60% center; }
.artist-name { margin: 0 0 10px; font-size: 30px; }
.artist-desc { margin: 0; color: var(--muted); line-height: 1.75; max-width: 620px; }
.artist-stat { min-width: 190px; padding-left: 32px; border-left: 1px solid var(--line); }
.artist-stat .number { font-size: 44px; }
.artist-stat p { margin: 2px 0 16px; color: var(--muted); font-size: 13px; }
.artist-cloud { margin-top: 44px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 28px 18px; }
.artist-cloud.collaboration { grid-template-columns: repeat(8, 1fr); margin-top: 28px; }
.artist-chip { display: block; min-width: 0; text-align: center; }
.artist-chip .artist-avatar { display: block; width: 100%; max-width: 110px; aspect-ratio: 1; margin: 0 auto 12px; overflow: hidden; transition: transform .25s ease; }
.artist-chip:hover .artist-avatar { transform: translateY(-5px); }
.artist-chip span { font-size: 12px; line-height: 1.35; }
.artist-continuation { grid-column: span 3; min-width: 0; min-height: 110px; display: flex; align-items: center; justify-content: center; gap: 10px; align-self: start; }
.artist-continuation img { width: 78px; max-height: 96px; object-fit: contain; }
.artist-continuation p { margin: 0; color: var(--accent); font-family: var(--signature); font-size: 26px; line-height: 1; white-space: nowrap; transform: rotate(-4deg); }

/* Works gallery */
.works-section { padding: 100px 0 120px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0 0 38px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter-btn { border: 0; background: none; padding: 6px 0; color: var(--muted); cursor: pointer; }
.filter-btn.active, .filter-btn:hover { color: var(--accent); box-shadow: inset 0 -2px var(--accent); }
.works-grid { display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-flow: dense; gap: 18px; }
.work-tile { position: relative; aspect-ratio: 1; overflow: hidden; background: #efedf5; cursor: pointer; }
.work-tile.wide { grid-column: span 2; aspect-ratio: 2.05 / 1; }
.work-tile.hidden { display: none; }
.work-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .45s ease; }
.work-placeholder { width: 100%; height: 100%; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--accent); font-family: var(--display); }
.work-overlay {
  position: absolute;
  inset: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to top, rgba(20,16,43,.97), rgba(20,16,43,.77) 63%, rgba(20,16,43,.18));
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .28s ease, transform .34s ease;
}
.work-tile:hover img { transform: scale(1.045); filter: saturate(.7) brightness(.72); }
.work-tile:hover .work-overlay, .work-tile:focus-within .work-overlay { opacity: 1; transform: translateY(0); }
.work-overlay-action { position: absolute; top: 8px; right: 12px; padding-bottom: 3px; border-bottom: 1px solid rgba(255,255,255,.8); font-size: 11px; font-weight: 700; }
.work-overlay-copy { margin-top: auto; }
.work-overlay h3 { display: -webkit-box; margin: 0 0 6px; overflow: hidden; font-size: 18px; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.work-overlay .achievement { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.38); }
.achievement-label { display: block; margin-bottom: 5px; color: #c7c1ff; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.work-overlay .achievement strong { display: block; color: #fff; font-family: var(--numbers), var(--sans); font-size: 21px; font-weight: 650; line-height: 1.05; }
.work-overlay .achievement strong + strong { margin-top: 3px; }
.work-tile.wide .work-overlay .achievement strong { font-size: 27px; }
.work-overlay .role-highlight strong,
.work-tile.wide .work-overlay .role-highlight strong { font-family: var(--sans); font-size: 18px; line-height: 1.25; }
.works-continuation { grid-column: span 2; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 12px; }
.works-continuation.hidden { display: none; }
.works-continuation img { width: 82px; max-height: 102px; object-fit: contain; }
.works-continuation p { margin: 0; color: var(--accent); font-family: var(--signature); font-size: 26px; line-height: 1; white-space: nowrap; transform: rotate(-4deg); }

/* Detail pages */
.crumbs { padding-top: 42px; color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.crumbs a { color: inherit; text-decoration: none; transition: color .2s ease; }
.crumbs a:hover,
.crumbs a:focus-visible { color: var(--accent); }
.crumbs a:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.crumbs [aria-current="page"] { color: var(--ink); }
.detail-hero { padding: 38px 0 76px; display: grid; grid-template-columns: minmax(300px,.9fr) 1.1fr; gap: clamp(48px,7vw,100px); align-items: center; }
.detail-cover { background: var(--panel); overflow: hidden; }
.detail-cover img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.detail-cover.wide img { aspect-ratio: 16/8.2; }
.detail-kicker { color: var(--accent); font-family: var(--display); letter-spacing: .12em; }
.detail-title { margin: 14px 0 16px; font-size: clamp(42px,6vw,78px); line-height: 1.03; letter-spacing: -.055em; }
.detail-artist { margin: 0 0 22px; font-size: 18px; }
.detail-meta { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); line-height: 1.8; }
.detail-meta strong { color: var(--ink); }
.detail-section { padding: 72px 0; border-top: 1px solid var(--line); }
.detail-two-col { display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; }
.detail-body { color: var(--muted); font-size: 16px; line-height: 1.95; }
.bullet-list { margin: 0; padding-left: 1.2em; }
.bullet-list li { margin-bottom: 14px; }
.impact-gallery { margin-top: 34px; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.impact-item { aspect-ratio: 1.45; overflow: hidden; background: var(--panel); }
.impact-item img { width: 100%; height: 100%; object-fit: cover; }
.related-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 18px; }
.related-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.related-card h3 { margin: 12px 0 3px; font-size: 14px; }
.related-card p { margin: 0; color: var(--muted); font-size: 11px; }
.related-media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--panel); }
.related-media img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; transition: transform .45s ease, filter .45s ease; }
.related-work-card:hover .related-media img,
.related-work-card:focus-visible .related-media img { transform: scale(1.045); filter: saturate(.7) brightness(.72); }
.related-work-card:hover .work-overlay,
.related-work-card:focus-visible .work-overlay { opacity: 1; transform: translateY(0); }
.related-work-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.related-media .work-overlay h3 { margin: 0 0 6px; font-size: 16px; }
.related-media .work-overlay .achievement strong { font-size: 18px; }
.artist-detail-avatar { border-radius: 50%; aspect-ratio: 1; object-fit: cover; background: var(--panel); }
.artist-detail-hero { width: 100%; aspect-ratio: 16/8.2; object-fit: cover; background: var(--panel); }
.artist-metrics { display: grid; grid-template-columns: repeat(2,1fr); margin-top: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.artist-metric { padding: 20px; text-align: center; border-right: 1px solid var(--line); }
.artist-metric:last-child { border-right: 0; }
.artist-metric .number { font-size: 48px; }

/* Song case studies */
.case-page { padding-bottom: 86px; }
.case-hero { padding: 38px 0 76px; display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(48px,7vw,96px); align-items: center; border-bottom: 1px solid var(--line); }
.case-kicker { margin: 0; color: var(--accent); font-family: var(--display); font-size: 16px; letter-spacing: .14em; }
.case-title { margin: 18px 0 14px; font-size: clamp(42px,6vw,76px); line-height: 1.04; letter-spacing: -.055em; }
.case-subtitle { margin: 0 0 16px; color: var(--muted); font-size: 19px; line-height: 1.7; }
.case-artist { margin: 0 0 26px; font-size: 16px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.case-tags span { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.case-hero-info { display: grid; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-hero-info-row { display: grid; grid-template-columns: 78px minmax(0,1fr); gap: 16px; align-items: center; }
.case-hero-info-label { color: var(--ink); font-size: 14px; font-weight: 750; }
.case-hero-achievement > div { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.case-hero-achievement strong { color: var(--accent); font-family: var(--numbers),var(--sans); font-size: clamp(24px,2.5vw,34px); font-weight: 700; line-height: 1.05; }
.case-hero-actions { margin-top: 26px; }
.case-hero-actions .btn { min-width: 150px; }
.case-cover { overflow: hidden; background: var(--panel); }
.case-cover img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.case-section { display: grid; grid-template-columns: 132px 1fr; gap: 0 38px; padding: 72px 0; border-bottom: 1px solid var(--line); }
.case-heading { grid-column: 1 / -1; display: grid; grid-template-columns: 132px 1fr; gap: 38px; margin-bottom: 34px; }
.case-number { color: var(--accent); font-family: var(--numbers); font-size: 48px; line-height: 1; }
.case-heading p { margin: 1px 0 7px; font-family: var(--display); font-size: 20px; letter-spacing: .07em; }
.case-heading h2 { margin: 0; color: var(--muted); font-size: 15px; font-weight: 500; }
.case-copy { grid-column: 2; max-width: 800px; margin: 0; font-size: 17px; line-height: 2; }
.case-role-block { grid-column: 2; max-width: 900px; padding: 0; }
.case-role-title { margin: 0 0 18px; color: var(--accent); font-size: clamp(20px,2.2vw,28px); font-weight: 800; line-height: 1.45; }
.case-role-block > p:last-child { max-width: 840px; margin: 0; color: var(--muted); font-size: 17px; line-height: 2; }
.case-role-list { display: grid; max-width: 860px; gap: 12px; margin: 0; padding: 0; list-style: none; }
.case-role-list li { position: relative; padding-left: 20px; color: var(--muted); font-size: 17px; line-height: 1.85; }
.case-role-list li::before { content: ""; position: absolute; top: .82em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.case-points { grid-column: 2; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-points article { min-height: 190px; padding: 26px 28px 30px; border-right: 1px solid var(--line); }
.case-points article:last-child { border-right: 0; }
.case-points article > span { display: block; margin-bottom: 28px; color: var(--accent); font-family: var(--numbers); font-size: 34px; line-height: 1; }
.case-points h3 { margin: 0 0 10px; font-size: 18px; }
.case-points p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.case-effect { grid-column: 2; max-width: 900px; margin: 0; font-size: 17px; line-height: 2; }
.case-core-achievement { margin-bottom: 20px; color: var(--ink); }
.case-core-achievement strong { color: var(--accent); }
.case-effect-list { display: grid; gap: 14px; padding: 0; list-style: none; counter-reset: effect-item; }
.case-effect-list li { position: relative; padding-left: 38px; counter-increment: effect-item; }
.case-effect-list li::before { content: counter(effect-item, decimal-leading-zero); position: absolute; top: 0; left: 0; color: var(--accent); font-family: var(--numbers); font-size: 17px; }
.case-stat-strip { grid-column: 2; display: grid; grid-template-columns: repeat(4,1fr); margin-top: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-stat { min-width: 0; padding: 24px 20px; border-right: 1px solid var(--line); }
.case-stat:last-child { border-right: 0; }
.case-stat strong { display: block; color: var(--accent); font-family: var(--numbers),var(--sans); font-size: clamp(30px,3vw,44px); line-height: 1; }
.case-stat span { display: block; margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.case-evidence { grid-column: 2; display: grid; grid-template-columns: 1.7fr .7fr; gap: 18px; }
.case-evidence-main { min-height: 390px; position: relative; overflow: hidden; background-color: var(--panel); background-repeat: no-repeat; background-size: 177% auto; transition: background-position .35s ease; }
.case-evidence.portrait { grid-template-columns: minmax(250px,.65fr) 1fr; }
.case-evidence.portrait .case-evidence-main { min-height: 620px; background-color: #dce9fb; background-size: 100% auto; }
.case-evidence-main::after { content: ""; position: absolute; inset: auto 0 0; height: 38%; background: linear-gradient(transparent,rgba(19,15,30,.84)); }
.case-evidence-main > div { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 22px; color: #fff; }
.case-evidence-main strong { display: block; margin-bottom: 6px; font-size: 18px; }
.case-evidence-main span { display: block; font-size: 13px; opacity: .82; }
.case-evidence-tabs { display: grid; grid-template-rows: repeat(3,1fr); gap: 10px; }
.case-shot { padding: 18px; border: 0; background: var(--panel); color: var(--ink); text-align: left; cursor: pointer; transition: background .2s ease,color .2s ease; }
.case-shot:hover { background: var(--accent-soft); }
.case-shot.active { background: var(--accent); color: #fff; }
.case-shot strong { display: block; margin-bottom: 7px; font-size: 15px; }
.case-shot span { display: block; font-size: 12px; line-height: 1.55; opacity: .75; }
.case-gallery { grid-column: 2; min-width: 0; }
.case-gallery-section { padding: 48px 0; }
.case-gallery-section .case-heading { margin-bottom: 22px; }
.case-gallery-filters { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; padding: 9px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-gallery-filter { padding: 6px 0; border: 0; background: transparent; color: var(--muted); font: inherit; cursor: pointer; }
.case-gallery-filter:hover,
.case-gallery-filter:focus-visible,
.case-gallery-filter.active { color: var(--accent); box-shadow: inset 0 -2px var(--accent); }
.case-gallery-stage { display: grid; grid-template-columns: minmax(240px,280px) minmax(300px,1fr); border: 1px solid var(--line); background: #fff; }
.case-gallery-frame { width: 100%; aspect-ratio: 9/16; display: grid; place-items: center; overflow: hidden; background: #f2f0f7; }
.case-gallery-main { display: block; width: 100%; height: 100%; object-fit: contain; }
.case-gallery-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(22px,3vw,38px); border-left: 1px solid var(--line); }
.case-gallery-category { width: max-content; margin-bottom: 18px; padding: 5px 10px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: 12px; }
.case-gallery-title { font-size: clamp(22px,2.5vw,30px); line-height: 1.25; }
.case-gallery-note { margin: 14px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.case-gallery-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.case-gallery-controls button { min-height: 40px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; cursor: pointer; transition: border-color .2s ease,color .2s ease; }
.case-gallery-controls button:hover,
.case-gallery-controls button:focus-visible { border-color: var(--accent); color: var(--accent); }
.case-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; padding: 2px 2px 8px; overflow-x: auto; scroll-snap-type: x proximity; }
.case-gallery-thumb { position: relative; flex: 0 0 56px; aspect-ratio: 9/16; padding: 0; overflow: hidden; border: 2px solid transparent; background: var(--panel); cursor: pointer; scroll-snap-align: center; }
.case-gallery-thumb[hidden] { display: none; }
.case-gallery-thumb.active { border-color: var(--accent); }
.case-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-gallery-thumb span { position: absolute; inset: auto 4px 4px; padding: 4px 3px; color: #fff; background: rgba(20,16,43,.82); font-size: 9px; line-height: 1.2; text-align: center; }
.case-actions { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 16px; padding-top: 48px; }
.case-actions .btn { min-height: 76px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.song-pager { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.song-pager-link { min-width: 0; display: flex; flex-direction: column; gap: 9px; padding: 25px 28px; color: var(--ink); text-decoration: none; transition: color .2s ease, background .2s ease; }
.song-pager-link + .song-pager-link { border-left: 1px solid var(--line); }
.song-pager-link.next { align-items: flex-end; text-align: right; }
.song-pager-link.next:only-child { grid-column: 2; border-left: 1px solid var(--line); }
.song-pager-link span { color: var(--accent); font-family: var(--display); font-size: 13px; letter-spacing: .08em; }
.song-pager-link strong { max-width: 100%; overflow: hidden; font-size: 18px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.song-pager-link:hover,
.song-pager-link:focus-visible { color: var(--accent); background: var(--accent-soft); }
.song-pager-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Personal works */
.personal-hero { padding: 92px 0 66px; border-bottom: 1px solid var(--line); }
.personal-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: end; }
.personal-intro { max-width: 650px; margin: 28px 0 0; color: var(--muted); font-size: 17px; line-height: 1.85; }
.personal-count { min-width: 160px; padding-left: 34px; border-left: 1px solid var(--line); }
.personal-count .number { display: block; font-size: 88px; line-height: .74; }
.personal-count p { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.personal-gallery-section { padding: 54px 0 120px; }
.personal-gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.personal-work-card { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--panel); }
.personal-work-card > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .5s ease; }
.personal-work-card.poster > img { object-position: center 36%; }
.personal-work-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 15px; color: #fff; background: linear-gradient(to top, rgba(21,17,45,.98), rgba(21,17,45,.78) 64%, rgba(21,17,45,.16)); opacity: 0; transform: translateY(10px); transition: opacity .28s ease, transform .34s ease; }
.personal-work-card:hover > img,
.personal-work-card:focus-visible > img { transform: scale(1.045); filter: saturate(.72) brightness(.72); }
.personal-work-card:hover .personal-work-overlay,
.personal-work-card:focus-visible .personal-work-overlay { opacity: 1; transform: none; }
.personal-work-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.personal-work-top { display: flex; justify-content: space-between; gap: 10px; font-family: var(--numbers); font-size: 13px; letter-spacing: .03em; }
.personal-work-top span:last-child { padding-bottom: 2px; border-bottom: 1px solid rgba(255,255,255,.72); font-family: var(--sans); font-size: 10px; font-weight: 700; }
.personal-work-copy { margin-top: auto; }
.personal-work-copy h2 { display: -webkit-box; margin: 0 0 6px; overflow: hidden; font-size: 17px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.personal-work-copy > p { display: -webkit-box; margin: 0; overflow: hidden; color: rgba(255,255,255,.74); font-size: 11px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.personal-result { margin-top: 12px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.36); }
.personal-result > span { display: block; margin-bottom: 5px; color: #c7c1ff; font-size: 9px; font-weight: 700; letter-spacing: .09em; }
.personal-result strong { display: block; font-family: var(--sans); font-size: 17px; font-weight: 650; line-height: 1.16; }
.personal-result strong + strong { margin-top: 3px; }
.personal-role strong { font-size: 16px; }

/* Contact */
.simple-hero { min-height: calc(100vh - 86px); display: grid; align-items: center; padding: 100px 0; }
.simple-copy { max-width: 720px; }
.simple-copy p { color: var(--muted); font-size: 18px; line-height: 1.85; }
.contact-list { margin-top: 50px; display: grid; border-top: 1px solid var(--line); }
.contact-row { display: grid; grid-template-columns: 160px 1fr auto; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.contact-row span { color: var(--muted); }

.site-footer { padding: 34px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .mobile-toggle { display: block; justify-self: end; }
  .nav-list { position: fixed; inset: 86px 0 auto; padding: 24px 32px; background: #fff; border-bottom: 1px solid var(--line); display: none; flex-direction: column; gap: 0; align-items: stretch; }
  .nav-list.open { display: flex; }
  .nav-link { padding: 14px 0; }
  .nav-link::after { bottom: 8px; }
  .platforms { display: none; }
  .work-side-nav { top: auto; right: auto; bottom: 14px; left: 50%; display: flex; max-width: calc(100% - 24px); padding: 18px 7px 6px; overflow-x: auto; background: rgba(255,255,255,.94); transform: translateX(-50%); }
  .work-side-nav::before { top: 13px; right: 28px; bottom: auto; left: 28px; width: auto; height: 1px; }
  .work-side-nav a { padding: 8px 10px 4px; font-size: 14px; }
  .work-side-nav a::before { top: -5px; left: 50%; width: 9px; height: 9px; box-shadow: 0 0 0 3px var(--paper); transform: translateX(-50%); }
  .work-side-nav a.active::before { transform: translateX(-50%) scale(1.18); }
  .about-grid, .project-card, .detail-hero, .detail-two-col, .case-hero { grid-template-columns: 1fr; }
  .project-card.reverse .project-media { order: 0; }
  .avatar-stage { min-height: 520px; }
  .skills-grid { grid-template-columns: repeat(3,1fr); }
  .skill:nth-child(3) { border-right: 0; }
  .experience { grid-column: span 3; border-top: 1px solid var(--line); }
  .career-layout { grid-template-columns: 1fr; }
  .career-art { grid-template-columns: 180px auto; justify-content: end; align-items: end; gap: 18px; }
  .career-sticker { width: 180px; }
  .keep-going { margin: 0 0 24px; font-size: 42px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2n) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .featured-artist { grid-template-columns: 140px 1fr; }
  .artist-stat { grid-column: span 2; border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
  .artist-cloud { grid-template-columns: repeat(5,1fr); }
  .artist-cloud.collaboration { grid-template-columns: repeat(5,1fr); }
  .works-grid { grid-template-columns: repeat(3,1fr); }
  .works-continuation { grid-column: span 3; min-height: 150px; }
  .personal-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(3,1fr); }
  .case-evidence { grid-template-columns: 1fr; }
  .case-evidence-tabs { grid-template-columns: repeat(3,1fr); grid-template-rows: 1fr; }
  .case-stat-strip { grid-template-columns: repeat(2,1fr); }
  .case-stat:nth-child(2) { border-right: 0; }
  .case-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .case-gallery-stage { grid-template-columns: 1fr; }
  .case-gallery-frame { width: min(100%,280px); height: auto; min-height: 0; justify-self: center; }
  .case-gallery-copy { border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 36px), var(--max)); }
  .header-inner { min-height: 72px; }
  .wordmark { font-size: 26px; }
  .nav-list { top: 72px; }
  .case-hero { gap: 34px; padding-bottom: 56px; }
  .case-section { grid-template-columns: 62px 1fr; gap: 0 18px; padding: 56px 0; }
  .case-heading { grid-template-columns: 62px 1fr; gap: 18px; }
  .case-number { font-size: 40px; }
  .case-heading p { font-size: 17px; }
  .case-copy, .case-role-block, .case-points, .case-effect, .case-evidence, .case-stat-strip, .case-gallery { grid-column: 2; }
  .case-stat-strip,
  .case-gallery { grid-column: 1 / -1; }
  .case-points { grid-template-columns: 1fr; }
  .case-points article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .case-points article:last-child { border-bottom: 0; }
  .case-evidence-main { min-height: 280px; }
  .case-evidence-tabs { grid-template-columns: 1fr; }
  .case-evidence.portrait { grid-template-columns: 1fr; }
  .case-evidence.portrait .case-evidence-main { min-height: 420px; }
  .case-stat-strip { grid-template-columns: 1fr; }
  .case-stat,
  .case-stat:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .case-stat:last-child { border-bottom: 0; }
  .case-gallery-filters { gap: 8px 18px; }
  .case-gallery-stage { grid-template-columns: 1fr; min-height: 0; }
  .case-gallery-frame { width: min(100%,280px); height: auto; min-height: 0; justify-self: center; }
  .case-gallery-copy { padding: 24px; border-top: 1px solid var(--line); border-left: 0; }
  .case-gallery-category { margin-bottom: 16px; }
  .case-gallery-note { margin-bottom: 20px; }
  .case-gallery-thumb { flex-basis: 52px; }
  .case-actions { grid-template-columns: 1fr; }
  .song-pager { grid-template-columns: 1fr; margin-top: 48px; }
  .song-pager-link + .song-pager-link { border-top: 1px solid var(--line); border-left: 0; }
  .song-pager-link.next:only-child { grid-column: 1; border-left: 0; }
  .about-hero, .work-hero { padding-top: 48px; }
  .about-grid { gap: 44px; }
  .avatar-stage { min-height: 430px; }
  .skills-grid { grid-template-columns: repeat(2,1fr); }
  .skill { border-bottom: 1px solid var(--line); }
  .skill:nth-child(3) { border-right: 1px solid var(--line); }
  .skill:nth-child(even) { border-right: 0; }
  .experience { grid-column: span 2; }
  .career-section { padding: 56px 0 76px; }
  .career-heading { gap: 14px; margin-bottom: 40px; }
  .career-heading-line { flex-basis: 42px; }
  .career-timeline { grid-template-columns: 1fr; }
  .career-timeline::before { top: 7px; right: auto; bottom: 0; left: 7px; width: 1px; height: auto; }
  .career-item { padding: 0 0 42px 36px; }
  .career-item:last-child { padding-bottom: 0; }
  .career-dot { top: 0; }
  .career-art { grid-template-columns: 138px auto; justify-content: center; gap: 10px; margin-top: 34px; }
  .career-sticker { width: 138px; }
  .keep-going { margin-bottom: 18px; font-size: 34px; }
  .metrics-heading { width: min(100%, 290px); min-height: 56px; margin-top: 26px; }
  .metrics-star { width: 20px; height: 20px; flex-basis: 20px; }
  .metrics-title { padding-inline: 12px; font-size: 14px; }
  .metrics { grid-template-columns: 1fr; }
  .metric, .metric:nth-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .section-pad, .selected-projects, .works-section { padding: 68px 0; }
  .project-stack { gap: 70px; }
  .featured-artist { grid-template-columns: 94px 1fr; gap: 18px; }
  .artist-name { font-size: 22px; }
  .artist-cloud { grid-template-columns: repeat(3,1fr); }
  .artist-cloud.collaboration { grid-template-columns: repeat(3,1fr); }
  .artist-continuation { min-height: 90px; gap: 8px; }
  .artist-continuation img { width: 64px; max-height: 80px; }
  .artist-continuation p { font-size: 21px; }
  .works-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .work-tile.wide { grid-column: span 2; }
  .work-overlay { opacity: 1; padding: 11px; transform: none; background: linear-gradient(to top, rgba(20,16,43,.94), rgba(20,16,43,.2) 78%, transparent); }
  .work-overlay-action { display: none; }
  .work-overlay h3 { margin-bottom: 0; font-size: 15px; }
  .work-overlay .achievement { margin-top: 7px; padding-top: 7px; }
  .achievement-label { display: none; }
  .work-overlay .achievement strong, .work-tile.wide .work-overlay .achievement strong { font-size: 16px; line-height: 1.05; }
  .works-continuation { grid-column: span 2; min-height: 150px; gap: 8px; }
  .works-continuation img { width: 64px; max-height: 80px; }
  .works-continuation p { font-size: 21px; }
  .personal-hero { padding: 56px 0 46px; }
  .personal-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .personal-count { display: flex; min-width: 0; align-items: baseline; gap: 12px; padding: 18px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .personal-count .number { font-size: 58px; line-height: .8; }
  .personal-count p { margin: 0; }
  .personal-gallery-section { padding: 34px 0 80px; }
  .personal-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .personal-work-overlay { padding: 11px; opacity: 1; transform: none; background: linear-gradient(to top, rgba(21,17,45,.95), rgba(21,17,45,.2) 78%, transparent); }
  .personal-work-top span:last-child { display: none; }
  .personal-work-copy h2 { margin-bottom: 0; font-size: 15px; }
  .personal-work-copy > p { display: none; }
  .personal-result { margin-top: 7px; padding-top: 7px; }
  .personal-result > span { display: none; }
  .personal-result strong { font-size: 14px; line-height: 1.1; }
  .personal-role strong { font-size: 14px; }
  .related-grid { grid-template-columns: repeat(2,1fr); }
  .impact-gallery { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: 1fr; gap: 6px; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
