:root {
  --ink: #08090a;
  --panel: #111315;
  --paper: #ece9e1;
  --muted: #9b9b95;
  --line: rgba(236, 233, 225, .2);
  --signal: #ef4a2d;
  --cool: #73c7d8;
  --pad: clamp(20px, 4.2vw, 72px);
  --serif: "Songti SC", "STSong", "SimSun", serif;
  --sans: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(90deg, transparent calc(25% - 1px), rgba(255,255,255,.025) 25%, transparent calc(25% + 1px));
  background-size: 25vw 100%;
}
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 12px 16px;
  color: var(--ink);
  background: var(--paper);
}
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 12px var(--pad);
  background: linear-gradient(to bottom, rgba(8,9,10,.92), rgba(8,9,10,.35) 70%, transparent);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  width: max-content;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.06em;
}
.brand span {
  color: var(--signal);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}
.site-header nav { display: flex; gap: 34px; font-size: 11px; }
.site-header nav a,
.header-contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  letter-spacing: .08em;
}
.site-header nav a:hover,
.header-contact:hover { border-color: var(--signal); }
.header-contact { justify-self: end; font-size: 11px; }

[data-section] { position: relative; }
section[id] { scroll-margin-top: 70px; }
#work-title { scroll-margin-top: 92px; }
#contact { scroll-margin-top: 0; }
[data-section]::after {
  position: absolute;
  top: 26px;
  right: var(--pad);
  z-index: 2;
  content: attr(data-section);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .16em;
  writing-mode: vertical-rl;
}

.profile-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: stretch;
  justify-items: center;
  row-gap: clamp(24px, 4vh, 44px);
  min-height: 100svh;
  padding: clamp(90px, 10vh, 118px) var(--pad) clamp(28px, 4vh, 44px);
  background:
    linear-gradient(90deg, rgba(8,9,10,.54) 0%, rgba(8,9,10,.46) 44%, rgba(8,9,10,.64) 100%),
    linear-gradient(0deg, rgba(8,9,10,.78) 0%, transparent 44%, rgba(8,9,10,.38) 100%),
    url("assets/home-studio-v2.webp") center center / cover no-repeat;
}
.color-data-rain {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .78;
  -webkit-mask-image: linear-gradient(to bottom, transparent 2%, #000 14%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 2%, #000 14%, #000 100%);
}
.profile-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  align-self: start;
  column-gap: clamp(28px, 3vw, 44px);
  width: min(100%, 760px);
  opacity: 1;
  filter: saturate(.96) brightness(1.08);
  transform: translate(14px, -42px);
}
.profile-portrait {
  position: relative;
  width: min(190px, 18vw, 25vh);
  border: 1px solid rgba(115,199,216,.2);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  z-index: 2;
  justify-self: center;
}
.profile-portrait::before {
  position: absolute;
  top: 12%;
  bottom: 20%;
  left: -5px;
  z-index: 2;
  width: 4px;
  content: "";
  background: var(--signal);
}
.profile-portrait-media {
  position: relative;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  background: #101a24;
}
.profile-portrait-media picture { display: block; }
.profile-portrait-media::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(0deg, rgba(8,9,10,.22), transparent 30%);
}
.profile-portrait img {
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center top;
  filter: saturate(.9) contrast(1.04) brightness(.94);
}
.profile-intro {
  position: relative;
  z-index: 2;
  min-width: 0;
  width: auto;
  max-width: none;
  margin-top: 0;
  text-align: left;
}
.profile-intro,
.profile-bottom {
  text-shadow: 0 2px 22px rgba(0,0,0,.82);
}
.profile-bottom {
  position: relative;
  z-index: 4;
  width: min(100%, 900px);
  max-width: 900px;
  align-self: end;
  justify-self: center;
}
.brand-partners {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  border-block: 1px solid rgba(236,233,225,.2);
  background: rgba(8,9,10,.78);
  backdrop-filter: blur(10px);
}
.brand-partners h2 {
  margin: 0;
  color: rgba(236,233,225,.7);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .12em;
}
.brand-logos {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.brand-logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 28px;
}
.brand-logos img {
  display: block;
  max-width: 78px;
  max-height: 25px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.brand-logos img.logo-mono { filter: grayscale(1) brightness(0) invert(1); }
.brand-logos img[src$="qianrengang.png"] { filter: grayscale(1) invert(1); }
.brand-logos img[src$="diao.png"],
.brand-logos img[src$="nice.png"] { max-height: 27px; }
.popop-wordmark {
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}
.profile-intro h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(72px, 7.2vw, 108px);
  font-weight: 600;
  line-height: .88;
  letter-spacing: -.07em;
  white-space: nowrap;
}
.profile-intro h1 span {
  display: block;
  margin-top: 12px;
  color: var(--signal);
  font-family: var(--sans);
  font-size: clamp(11px, 1.3vw, 17px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .25em;
}
.profile-intro .eyebrow { margin: 14px 0 0; }
.profile-role {
  max-width: 700px;
  margin: 42px 0 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 36px);
  line-height: 1.45;
}
.profile-summary {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}
.hero-skills { margin: 38px 0 0; }
.hero-skills div {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 22px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.hero-skills div:last-child { border-bottom: 1px solid var(--line); }
.hero-skills dt {
  color: var(--signal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}
.hero-skills dd {
  min-width: 0;
  margin: 0;
  color: var(--paper);
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.hero-actions { display: flex; gap: 8px; margin-top: 26px; }
.profile-bottom .hero-actions { justify-content: center; margin-top: 22px; }
.hero-actions a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  min-width: 204px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .08em;
}
.hero-actions a:first-child { color: var(--ink); border-color: var(--paper); background: var(--paper); }
.hero-actions a:hover { color: var(--paper); border-color: var(--signal); background: var(--signal); }

@media (min-width: 801px) and (max-height: 750px) {
  .profile-hero {
    row-gap: 18px;
    padding-top: 82px;
    padding-bottom: 22px;
  }
  .profile-top {
    grid-template-columns: 170px minmax(0, 1fr);
    width: min(100%, 620px);
    transform: translate(10px, -28px);
  }
  .profile-portrait { width: min(150px, 22vh); }
  .profile-intro { margin-top: 0; }
  .profile-intro h1 { font-size: clamp(62px, 6.3vw, 86px); }
  .profile-intro h1 span { margin-top: 10px; }
  .profile-role { margin-top: 24px; font-size: clamp(20px, 2vw, 29px); }
  .profile-summary { margin-top: 12px; line-height: 1.65; }
  .hero-skills { margin-top: 18px; }
  .hero-skills div { padding: 9px 0; }
  .profile-bottom .hero-actions { margin-top: 18px; }
  .hero-actions a { min-height: 48px; }
}

.hero {
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #0d0d0d;
}
.hero::before {
  position: absolute;
  top: 8vh;
  right: calc(var(--pad) - 14px);
  z-index: -1;
  width: min(55vw, 850px);
  height: 44vh;
  content: "";
  background: var(--signal);
}
.hero-image {
  position: absolute;
  top: 11vh;
  right: var(--pad);
  z-index: 0;
  width: min(67vw, 1050px);
  height: 76vh;
  object-fit: cover;
  object-position: center 52%;
  filter: saturate(.82) contrast(1.08);
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1), filter .5s ease;
}
.hero:hover .hero-image { transform: scale(1.012); filter: saturate(.95) contrast(1.08); }
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5,6,7,.94) 0%, rgba(5,6,7,.42) 39%, rgba(5,6,7,.03) 78%),
    linear-gradient(0deg, rgba(5,6,7,.82), transparent 46%);
}
.hero-index {
  position: absolute;
  top: 13vh;
  right: calc(var(--pad) + 18px);
  z-index: 3;
  display: flex;
  gap: 24px;
  color: rgba(236,233,225,.72);
  font-size: 8px;
  letter-spacing: .16em;
  writing-mode: vertical-rl;
}
.hero-copy {
  position: absolute;
  top: 48%;
  left: var(--pad);
  z-index: 3;
  width: calc(100% - var(--pad) * 2);
  transform: translateY(-45%);
}
.eyebrow {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
}
.hero .eyebrow {
  padding-left: 62px;
  color: rgba(236,233,225,.72);
}
.hero .eyebrow::before {
  position: absolute;
  width: 44px;
  height: 1px;
  margin-top: 6px;
  margin-left: -62px;
  content: "";
  background: var(--signal);
}
.hero h1 {
  max-width: 1160px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(88px, 14.4vw, 220px);
  font-weight: 700;
  line-height: .69;
  letter-spacing: -.08em;
  text-shadow: 0 8px 42px rgba(0,0,0,.28);
}
.hero h1 span {
  display: block;
  width: max-content;
  margin: 36px 0 0 39%;
  padding: 8px 12px 7px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: clamp(12px, 1.45vw, 20px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .24em;
  text-shadow: none;
}
.hero-statement {
  max-width: 360px;
  margin: 58px 0 0;
  padding-left: 62px;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 27px);
  line-height: 1.5;
}
.hero-meta {
  position: absolute;
  right: var(--pad);
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .08em;
}
.hero-meta span::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  content: "";
  background: var(--cool);
}
.scroll-cue {
  position: absolute;
  bottom: 20px;
  left: var(--pad);
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 12px;
  font-size: 10px;
  letter-spacing: .08em;
}
.scroll-cue i { color: var(--signal); font-size: 20px; font-style: normal; }

.work-section { padding: 170px var(--pad) 56px; }
.section-head {
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: end;
  gap: 5vw;
  margin-bottom: 86px;
}
h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 118px);
  font-weight: 600;
  line-height: .86;
  letter-spacing: -.06em;
}
.gallery-heading h2 { display: flex; align-items: end; gap: clamp(20px, 4vw, 70px); }
.gallery-heading h2 > span {
  padding-bottom: 6px;
  color: var(--signal);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .16em;
}
.filters-shell { position: relative; }
.filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding-bottom: 4px;
  border-top: 1px solid var(--line);
}
.filters button {
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 10px;
  letter-spacing: .06em;
}
.filters button:nth-child(2n) { border-right: 0; }
.filters button:hover,
.filters button.active { color: var(--paper); background: var(--signal); }
.filters button span {
  float: right;
  color: var(--muted);
  font-size: 8px;
}
.filters button.active span { color: rgba(236,233,225,.7); }

.gallery-status {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.gallery-status strong { font-size: 11px; font-weight: 500; letter-spacing: .16em; }
.gallery-status span { display: block; color: var(--muted); font-size: 9px; letter-spacing: .1em; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 30px);
  align-items: start;
}
.gallery-frame {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--panel);
  cursor: zoom-in;
}
.gallery-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .25s ease;
}
.gallery-frame:hover img { transform: scale(1.018); filter: brightness(1.08); }
.gallery-frame-number {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 5px;
  color: var(--paper);
  background: rgba(8,9,10,.62);
  font-size: 9px;
}
.gallery-frame-grid {
  display: grid;
  grid-template-columns: repeat(var(--frame-columns), minmax(0, 1fr));
  gap: 2px;
  overflow: hidden;
  background: var(--ink);
}
.gallery-frame-grid img { aspect-ratio: 16 / 9; object-fit: cover; }
.gallery-frame-grid.preserve-aspect img { aspect-ratio: auto; object-fit: contain; }
.gallery-frame-caption {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 11px 44px 10px 12px;
  color: var(--paper);
  text-align: left;
}
.gallery-frame-caption strong {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}
.gallery-frame-caption small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.2;
  letter-spacing: .1em;
}
.gallery-empty { color: var(--muted); }
.text-link {
  display: flex;
  align-items: center;
  width: max-content;
  min-height: 44px;
  margin: 44px 0 0 auto;
  border-bottom: 1px solid var(--paper);
  font-size: 11px;
  letter-spacing: .08em;
}

.lightbox {
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding:
    max(12px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  border: 0;
  overflow: hidden;
  color: var(--paper);
  background: rgba(4,5,6,.97);
}
.lightbox::backdrop { background: rgba(4,5,6,.84); }
.lightbox[open] { display: grid; grid-template-rows: 44px minmax(0, 1fr) 50px; }
.lightbox-bar,
.lightbox-controls { display: flex; justify-content: space-between; align-items: center; }
.lightbox-bar { padding-left: 4px; }
.lightbox-bar span,
.lightbox-label { color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.lightbox button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--paper);
  background: transparent;
  cursor: pointer;
  font-size: 24px;
}
.lightbox button:hover { color: var(--ink); background: var(--paper); }
.lightbox-image {
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.lightbox-image[hidden] { display: none; }
.lightbox-grid {
  align-self: stretch;
  justify-self: stretch;
  display: grid;
  grid-template-columns: repeat(var(--frame-columns), minmax(0, 1fr));
  grid-template-rows: repeat(var(--frame-rows), minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--ink);
}
.lightbox-grid[hidden] { display: none; }
.lightbox-grid img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
}
.lightbox-grid.preserve-aspect {
  grid-template-rows: none;
  align-content: start;
  overflow-x: hidden;
  overflow-y: auto;
}
.lightbox-grid.preserve-aspect img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.practice-section {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 9vw;
  margin: 0;
  padding: 88px var(--pad);
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 11% 15%, rgba(212,151,91,.11), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(93,78,57,.055), transparent 34%),
    repeating-linear-gradient(0deg, rgba(77,64,45,.012) 0 1px, transparent 1px 4px),
    linear-gradient(135deg, #f8f4e9 0%, #f3eee2 55%, #ece6d9 100%);
  box-shadow:
    inset 0 1px rgba(255,255,255,.9),
    inset 0 -1px rgba(8,9,10,.12);
  clip-path: none;
}
.practice-section::after { top: 32px; color: #62625e; }
.practice-section .eyebrow { color: #62625e; }
.practice-intro { position: relative; z-index: 1; }
.practice-intro h2 {
  color: #121518;
  font-size: clamp(48px, 6vw, 88px);
  line-height: .98;
}
.practice-intro > p:last-child {
  max-width: 500px;
  margin: 42px 0 0 15%;
  color: #4e504f;
  font-size: 14px;
  line-height: 1.9;
}
.process-list { position: relative; z-index: 1; margin: 0; padding: 0; list-style: none; }
.process-list li {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 18px;
  padding: 30px 0;
  border-top: 1px solid rgba(8,9,10,.24);
}
.process-list li:nth-child(2n) { padding-left: 7%; }
.process-list li:last-child { border-bottom: 1px solid rgba(8,9,10,.24); }
.process-list b { color: var(--signal); font-size: 10px; letter-spacing: .14em; }
.process-list h3 { margin: 0 0 9px; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.process-list p { margin: 0; color: #62625e; font-size: 12px; line-height: 1.7; }

.about-section {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 11vw;
  align-items: center;
  padding: 210px var(--pad) 170px;
}
.portrait-wrap {
  position: relative;
  max-width: 470px;
  margin-left: 7vw;
}
.portrait-wrap::before {
  position: absolute;
  top: 26px;
  right: -28px;
  bottom: -28px;
  left: 28px;
  z-index: -1;
  content: "";
  background: var(--signal);
}
.portrait-wrap::after {
  position: absolute;
  top: -26px;
  left: -26px;
  width: 92px;
  height: 92px;
  border-top: 1px solid var(--cool);
  border-left: 1px solid var(--cool);
  content: "";
}
.portrait-wrap img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  filter: saturate(.72) contrast(1.06);
}
.portrait-wrap span {
  display: block;
  margin-top: 42px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .16em;
}
.about-copy { max-width: 730px; }
.about-copy h2 { margin-bottom: 46px; }
.about-copy .lead {
  max-width: 690px;
  margin: 0 0 28px;
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 44px);
  line-height: 1.35;
}
.about-copy > p:not(.eyebrow):not(.lead) {
  max-width: 560px;
  margin-left: 15%;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}
.skills { margin: 56px 0 0 15%; }
.skills div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.skills div:last-child { border-bottom: 1px solid var(--line); }
.skills dt { color: var(--signal); font-size: 9px; letter-spacing: .14em; }
.skills dd { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.skills dd { min-width: 0; overflow-wrap: anywhere; }

.contact-section {
  min-height: 100svh;
  padding: 150px var(--pad) 58px;
  overflow: hidden;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(8,9,10,.92) 0%, rgba(8,9,10,.68) 48%, rgba(8,9,10,.28) 100%),
    linear-gradient(0deg, rgba(8,9,10,.86) 0%, transparent 62%),
    url("assets/contact-spectrum-v2.webp") 62% center / cover no-repeat;
}
.contact-section::before {
  display: none;
}
.contact-section::after { color: rgba(236,233,225,.58); }
.contact-section .eyebrow { color: var(--signal); }
.contact-slogan-space {
  height: clamp(118px, 16.9vw, 237px);
  margin-top: 28px;
}
.contact-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 30px;
  align-items: end;
  width: 76%;
  margin: 76px 0 0 auto;
}
.contact-actions {
  width: 100%;
  border-top: 1px solid rgba(236,233,225,.3);
}
.wechat-qr {
  width: 220px;
  margin: 0;
  border: 1px solid rgba(236,233,225,.3);
  background: #fff;
}
.wechat-qr img {
  width: 100%;
  height: auto;
}
.contact-actions a,
.contact-actions button {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 104px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(236,233,225,.3);
  color: var(--paper);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.contact-actions small { font-size: 10px; letter-spacing: .12em; }
.contact-actions strong {
  font-family: var(--serif);
  font-size: clamp(28px, 4.4vw, 62px);
  font-weight: 500;
}
.contact-actions span { font-size: 10px; letter-spacing: .12em; }
.contact-actions a:hover,
.contact-actions button:hover { padding-right: 14px; padding-left: 14px; background: rgba(236,233,225,.18); }
.contact-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 56px;
  font-size: 10px;
  letter-spacing: .1em;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--pad);
  color: var(--muted);
  background: var(--ink);
  font-size: 9px;
  letter-spacing: .12em;
}
footer a { display: inline-flex; align-items: center; min-height: 44px; }

:focus-visible { outline: 2px solid var(--cool); outline-offset: 4px; }

@media (max-width: 980px) {
  .hero-image { width: 74vw; }
  .portrait-wrap { margin-left: 2vw; }
  .contact-actions { width: 86%; }
}

@media (max-width: 800px) {
  body::before { display: none; }
  [data-section]::after { top: 76px; right: 14px; }
  .site-header { grid-template-columns: 1fr auto; min-height: 66px; padding-top: 10px; }
  .site-header nav { display: none; }
  .brand, .header-contact { min-height: 44px; }

  .profile-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    row-gap: 24px;
    min-height: min(760px, 100svh);
    padding-top: 82px;
    padding-bottom: 28px;
    background:
      linear-gradient(90deg, rgba(8,9,10,.62), rgba(8,9,10,.56)),
      linear-gradient(0deg, rgba(8,9,10,.86) 0%, transparent 45%, rgba(8,9,10,.48) 100%),
      url("assets/home-studio-v2.webp") 50% center / cover no-repeat;
  }
  .color-data-rain { opacity: .74; }
  .profile-top {
    grid-template-columns: min(124px, 32vw) minmax(0, 1fr);
    column-gap: 18px;
    width: min(100%, 360px);
    transform: translate(3px, -18px);
  }
  .profile-portrait {
    width: min(124px, 32vw, 20vh);
    margin: 0;
  }
  .profile-portrait::before { top: 10%; bottom: 18%; left: -4px; width: 3px; }
  .profile-intro { margin-top: 0; text-align: left; }
  .profile-intro .eyebrow { margin: 10px 0 0; font-size: 8px; }
  .profile-intro h1 { font-size: clamp(48px, 13vw, 56px); }
  .profile-intro h1 span { margin-top: 8px; font-size: 8px; }
  .profile-role { max-width: 330px; margin-top: 26px; font-size: clamp(17px, 4.8vw, 22px); }
  .profile-bottom { width: 100%; max-width: 560px; }
  .brand-partners {
    display: block;
    padding: 12px 12px 13px;
  }
  .brand-partners h2 { margin-bottom: 10px; font-size: 10px; }
  .brand-logos {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 7px 5px;
  }
  .brand-logos li { height: 23px; }
  .brand-logos img { max-width: 50px; max-height: 20px; }
  .brand-logos img[src$="diao.png"],
  .brand-logos img[src$="nice.png"] { max-height: 22px; }
  .popop-wordmark { font-size: 12px; }
  .profile-summary { max-width: 340px; font-size: 12px; }
  .hero-skills { margin-top: 30px; }
  .hero-skills div { grid-template-columns: 82px 1fr; gap: 14px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .profile-bottom .hero-actions { margin-top: 18px; }
  .hero-actions a { min-width: 0; min-height: 50px; gap: 10px; font-size: 10px; }

  .hero { min-height: 94svh; }
  .hero::before { top: 13vh; right: 5px; width: 74vw; height: 36vh; }
  .hero-image { top: 15vh; right: 20px; width: 82vw; height: 58vh; object-position: 64% center; }
  .hero-shade {
    background:
      linear-gradient(0deg, rgba(5,6,7,.94) 0%, rgba(5,6,7,.16) 62%, rgba(5,6,7,.04)),
      linear-gradient(90deg, rgba(5,6,7,.72), transparent 54%);
  }
  .hero-index { top: 17vh; right: 31px; }
  .hero-copy { top: auto; bottom: 104px; transform: none; }
  .hero .eyebrow { margin-bottom: 18px; padding-left: 42px; }
  .hero .eyebrow::before { width: 28px; margin-left: -42px; }
  .hero h1 { font-size: clamp(72px, 24vw, 112px); line-height: .75; }
  .hero h1 span { margin: 24px 0 0 14%; font-size: 10px; letter-spacing: .18em; }
  .hero-statement { max-width: 270px; margin-top: 28px; padding-left: 14%; font-size: 17px; }
  .hero-meta { display: none; }

  .work-section { padding-top: 110px; padding-bottom: 56px; }
  #work-title { scroll-margin-top: 78px; }
  .section-head { display: block; margin-bottom: 58px; }
  .gallery-heading h2 { display: block; }
  .gallery-heading h2 > span { display: block; margin-top: 18px; }
  .filters {
    display: flex;
    margin-top: 34px;
    overflow-x: auto;
    border-top: 0;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .filters-shell.can-scroll-right::after {
    position: absolute;
    right: 0;
    bottom: 0;
    display: grid;
    place-items: center;
    width: 42px;
    height: 44px;
    pointer-events: none;
    content: "\203A";
    color: var(--paper);
    background: linear-gradient(90deg, transparent, rgba(8,9,10,.94) 62%);
    font-size: 22px;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filters button {
    flex: 0 0 auto;
    min-width: 104px;
    min-height: 44px;
    border-top: 1px solid var(--line);
    scroll-snap-align: start;
  }
  .gallery-status span { display: none; }
  .gallery-grid { grid-template-columns: 1fr; gap: 42px; }
  .gallery-frame:nth-child(n) { width: 100%; margin: 0; }
  .gallery-frame-grid { gap: 2px; }
  .text-link { margin-top: 58px; }

  .lightbox {
    padding:
      max(8px, env(safe-area-inset-top))
      max(8px, env(safe-area-inset-right))
      max(8px, env(safe-area-inset-bottom))
      max(8px, env(safe-area-inset-left));
  }
  .lightbox[open] { grid-template-rows: 44px minmax(0, 1fr) 52px; }
  .lightbox-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    align-content: start;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-snap-type: y proximity;
  }
  .lightbox-grid img {
    height: min(56.25vw, 320px);
    aspect-ratio: 16 / 9;
    object-fit: contain;
    scroll-snap-align: start;
  }
  .lightbox-grid.preserve-aspect img {
    height: auto;
    aspect-ratio: auto;
  }
  .lightbox-label {
    max-width: calc(100vw - 132px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .practice-section {
    grid-template-columns: 1fr;
    gap: 66px;
    margin: 0;
    padding-top: 72px;
    padding-bottom: 72px;
    clip-path: none;
  }
  .practice-section::after { top: 48px; }
  .practice-intro h2 {
    max-width: 9em;
    font-size: clamp(40px, 10.4vw, 54px);
    line-height: 1.08;
    letter-spacing: -.055em;
  }
  .practice-intro > p:last-child { margin-left: 12%; }
  .process-list li:nth-child(2n) { padding-left: 7%; }

  .about-section { grid-template-columns: 1fr; gap: 90px; padding-top: 150px; padding-bottom: 120px; }
  .portrait-wrap { width: 82%; max-width: 470px; margin-left: 4%; }
  .portrait-wrap::before { right: -20px; bottom: -20px; left: 20px; }
  .portrait-wrap span { margin-top: 34px; }
  .about-copy > p:not(.eyebrow):not(.lead),
  .skills { margin-left: 10%; }

  .contact-section {
    min-height: 100svh;
    padding: 92px var(--pad) 34px;
    background:
      linear-gradient(90deg, rgba(8,9,10,.9) 0%, rgba(8,9,10,.54) 100%),
      linear-gradient(0deg, rgba(8,9,10,.92) 0%, transparent 72%),
      url("assets/contact-spectrum-v2.webp") 69% center / cover no-repeat;
  }
  .contact-slogan-space {
    height: 28px;
    margin-top: 12px;
  }
  .contact-main {
    display: block;
    width: 100%;
    margin-top: 24px;
  }
  .contact-actions { width: 100%; }
  .contact-actions a,
  .contact-actions button { grid-template-columns: 62px 1fr auto; min-height: 76px; }
  .contact-actions strong { font-size: clamp(22px, 7vw, 36px); }
  .wechat-qr {
    width: min(170px, 46vw);
    margin: 20px auto 0;
  }
  .contact-foot { margin-top: 26px; font-size: 9px; }
}

@media (max-width: 360px) {
  .profile-top { column-gap: 14px; }
  .profile-intro h1 { font-size: 44px; }
}

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