:root {
  color-scheme: dark;
  --bg: #000;
  --text: #f5f5f5;
  --muted: #9b9b9b;
  --line: #252525;
  --soft: #0b0b0b;
  --accent: #d8d8d8;
}

@media (max-width: 640px) {
  html,
  body {
    overflow-x: hidden;
  }

  body::before {
    right: -22vw;
    bottom: 10vh;
    font-size: clamp(150px, 72vw, 280px);
  }

  .site-header {
    justify-content: flex-end;
    height: 58px;
    padding: 0 16px;
  }

  .how-logo {
    left: 16px;
    gap: 5px;
    font-size: 14px;
  }

  .how-logo span {
    font-size: 8px;
  }

  .site-nav {
    gap: 11px;
    font-size: 11px;
    white-space: nowrap;
  }

  .intro-hero {
    min-height: 100svh;
    padding: 76px 22px 58px;
  }

  .intro-hero h1 {
    max-width: 92vw;
    font-size: clamp(38px, 13.5vw, 56px);
  }

  .slogan-breakdown {
    min-height: 100svh;
    padding: 74px 22px 54px;
    gap: 24px;
  }

  .project-review-page .review-strip {
    min-height: calc(100svh - 58px);
    padding: 34px 22px 86px;
  }

  .project-review-page .review-heading {
    min-height: 88px;
    margin-bottom: 36px;
  }

  .project-review-page .review-heading h3 {
    font-size: 26px;
  }

  .project-review-page .review-heading h3::before {
    left: -22px;
    width: 9px;
    height: 17px;
  }

  .project-review-page .review-scroll {
    margin-right: -22px;
    padding-bottom: 28px;
  }

  .project-review-page .review-track {
    grid-auto-columns: minmax(235px, 78vw);
    gap: 24px;
    padding-right: 22px;
  }

  .project-review-page .review-logo img {
    max-width: 168px;
    max-height: 40px;
  }

  .project-review-page .review-logo-tall img {
    max-height: 78px;
  }

  .project-review-page .review-item span {
    font-size: 17px;
  }

  .project-review-page .review-item p {
    font-size: 12px;
  }

  .page-down-link {
    bottom: 32px;
  }

  .project-catalog-page {
    padding: 74px 20px 70px;
  }

  .project-catalog-page .section-title {
    margin-bottom: 34px;
  }

  .project-catalog-page .section-title h2,
  .team-section .section-title h2,
  .contact-page h1 {
    font-size: clamp(38px, 13vw, 52px);
  }

  .project-grid {
    gap: 48px;
  }

  .brand-project-group {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .brand-side {
    align-items: center;
    justify-content: center;
    min-height: auto;
    gap: 10px;
    text-align: center;
  }

  .brand-side img {
    max-width: 140px;
    max-height: 42px;
  }

  .brand-side img.is-tall {
    max-height: 78px;
  }

  .brand-axis {
    width: 100%;
    height: 1px;
    min-height: 1px;
  }

  .brand-projects {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

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

  .team-section {
    min-height: 100svh;
    padding: 76px 20px 60px;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
    width: 100%;
    max-width: none;
  }

  .team-info {
    margin-top: 10px;
  }

  .profile-page .profile-hero,
  .resume-panel,
  .interest-works-section,
  .project-intro,
  .gallery-section,
  .contact-page {
    padding-left: 22px;
    padding-right: 22px;
  }

  .profile-page .profile-hero {
    min-height: auto;
    padding-top: 82px;
    padding-bottom: 54px;
  }

  .profile-photo img {
    max-height: 440px;
  }

  .section-dots {
    display: none;
  }

  .project-detail-page {
    padding-top: 76px;
  }

  .project-intro {
    padding-top: 0;
  }

  .project-intro h1,
  .profile-copy h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .project-intro p:not(.eyebrow),
  .profile-copy p:not(.eyebrow):not(.lead) {
    font-size: 14px;
    line-height: 1.8;
  }

  .gallery-heading h2 {
    font-size: clamp(28px, 9vw, 40px);
  }

  .gallery-stack {
    gap: 18px;
  }

  .top-link,
  .catalog-top-link,
  .page-down-link {
    width: 54px;
    height: 54px;
  }

  .top-link::before,
  .catalog-top-link::before {
    border-left-width: 16px;
    border-right-width: 16px;
    border-bottom-width: 27px;
  }

  .page-down-link::before {
    border-left-width: 16px;
    border-right-width: 16px;
    border-top-width: 27px;
  }

  .photo-track img {
    width: 78vw;
    height: 220px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html:has(.snap-page) {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "HOW";
  position: fixed;
  right: 4vw;
  bottom: 3vh;
  z-index: 0;
  color: rgba(255, 255, 255, 0.035);
  font-size: clamp(180px, 28vw, 460px);
  font-weight: 900;
  line-height: 0.8;
  pointer-events: none;
  user-select: none;
}

body > * {
  position: relative;
  z-index: 1;
}

.snap-page .site-header {
  position: fixed;
  left: 0;
  right: 0;
}

.snap-page main > section {
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.snap-section > * {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 520ms ease, transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.snap-section.is-active > * {
  opacity: 1;
  transform: translateY(0);
}

.project-list-page.is-restoring-catalog .snap-section > * {
  transition: none;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 68px;
  padding: 0 5vw;
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: transform 260ms ease, opacity 260ms ease;
}

.site-header.is-hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.how-logo {
  position: absolute;
  left: 5vw;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.how-logo span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.back-home {
  position: absolute;
  left: 5vw;
  color: var(--muted);
  font-size: 14px;
}

.back-home:hover {
  color: var(--text);
}

.brand {
  font-size: 18px;
  font-weight: 700;
}

.site-nav {
  display: flex;
  gap: 30px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: var(--text);
  opacity: 0;
  transform: scaleX(0.2);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

.site-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.intro-page {
  overflow-x: hidden;
}

.intro-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 118px 8vw 80px;
  position: relative;
}

.intro-hero h1 {
  max-width: 1120px;
  margin-bottom: 32px;
  font-size: clamp(58px, 8vw, 138px);
  line-height: 0.98;
}

.intro-hero h1 span {
  display: block;
}

.cn-slogan {
  margin: 0;
  color: var(--muted);
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 700;
}

.slogan-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5vw;
  align-items: center;
  min-height: 100vh;
  padding: 112px 8vw 88px;
}

.slogan-breakdown article {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.slogan-breakdown h2 {
  margin-bottom: 18px;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.2;
}

.slogan-breakdown p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.intro-section {
  min-height: 64vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 5vw 70px;
}

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

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 5.2vw, 78px);
  line-height: 1.05;
  font-weight: 800;
}

.lead {
  margin-bottom: 24px;
  font-size: clamp(21px, 2.2vw, 32px);
  line-height: 1.25;
  font-weight: 700;
}

.summary {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats div {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 5vw;
  background: var(--bg);
}

.stats strong {
  margin-bottom: 8px;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1;
}

.stats span {
  color: var(--muted);
  font-size: 14px;
}

.project-section {
  padding: 86px 5vw 120px;
}

.project-list-page .site-header {
  position: fixed;
  left: 0;
  right: 0;
}

.project-review-page,
.project-catalog-page {
  min-height: 100vh;
  padding: 96px 5vw 72px;
}

.project-review-page {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-left: 0;
  padding-right: 0;
}

.project-review-page .section-title {
  margin-bottom: 34px;
}

.project-review-page .review-strip {
  width: 100%;
  margin-bottom: 0;
  min-height: calc(100vh - 96px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 52px 4vw 78px;
  border: 0;
}

.project-review-page .review-heading {
  position: relative;
  display: block;
  min-height: 118px;
  margin-bottom: 88px;
}

.project-review-page .review-heading span {
  position: absolute;
  left: 0;
  top: 0;
}

.project-review-page .review-heading h3 {
  display: block;
  width: max-content;
  margin: 0 auto;
  font-size: clamp(28px, 2.6vw, 42px);
  line-height: 1;
}

.project-review-page .review-heading h3::before {
  left: -34px;
  width: 14px;
  height: 22px;
  background: #f4f0df;
}

.project-review-page .review-scroll {
  padding: 0 0 40px;
}

.project-review-page .review-track {
  grid-auto-columns: clamp(270px, 22vw, 350px);
  gap: clamp(48px, 5vw, 88px);
  padding: 0 0 10px;
}

.project-review-page .review-track::before {
  top: 116px;
  height: 3px;
}

.project-review-page .review-track::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 109px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 14px solid #505050;
  opacity: .58;
}

.project-review-page .review-item {
  min-height: 330px;
}

.project-review-page .review-item::before {
  top: 105px;
  width: 11px;
  height: 11px;
}

.project-review-page .review-item::after {
  top: 116px;
  height: 38px;
}

.project-review-page .review-logo {
  min-height: 92px;
  margin-bottom: 64px;
}

.project-review-page .review-logo img {
  max-width: 210px;
  max-height: 48px;
}

.project-review-page .review-logo-tall img {
  max-height: 96px;
}

.project-review-page .review-item span {
  margin-bottom: 26px;
  font-size: 20px;
  line-height: 1.1;
}

.project-review-page .review-item p {
  font-size: 15px;
  line-height: 1.75;
}

.page-down-link,
.catalog-top-link {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.page-down-link {
  position: absolute;
  left: var(--review-arrow-x, 50%);
  bottom: 92px;
  z-index: 15;
  margin-left: -32px;
  transform: translateY(0);
}

.page-down-link::before,
.catalog-top-link::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 19px solid transparent;
  border-right: 19px solid transparent;
}

.page-down-link::before {
  border-top: 31px solid var(--text);
}

.catalog-top-link::before {
  border-bottom: 31px solid var(--text);
}

.page-down-link:hover {
  transform: translateY(4px);
}

.project-catalog-page {
  padding-top: 94px;
  padding-bottom: 120px;
  scroll-snap-align: start;
}

.catalog-top-link {
  margin: 56px auto 0;
}

.catalog-top-link:hover {
  transform: translateY(-4px);
}

.section-title {
  margin-bottom: 38px;
}

.section-title h2,
.about h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.08;
}

.review-strip {
  margin-bottom: 70px;
  padding: 42px 0 46px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.review-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.review-heading span {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.review-heading h3 {
  position: relative;
  margin: 0 auto;
  font-size: 22px;
  line-height: 1.2;
}

.review-heading h3::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 50%;
  width: 8px;
  height: 8px;
  background: #d7efff;
  transform: translateY(-50%);
}

.review-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 18px;
  cursor: grab;
  scrollbar-width: none;
  user-select: none;
  touch-action: pan-x;
}

.review-scroll::-webkit-scrollbar {
  display: none;
}

.review-scroll.is-dragging {
  cursor: grabbing;
}

.review-track {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 360px);
  gap: 42px;
  width: max-content;
  min-width: 100%;
  padding: 0 6px 0;
}

.review-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 112px;
  height: 2px;
  background: linear-gradient(
    90deg,
    #484848 0%,
    #484848 37.5%,
    rgba(255, 255, 255, .12) 40%,
    rgba(255, 255, 255, .36) 45%,
    rgba(255, 255, 255, .78) 50%,
    rgba(255, 255, 255, .36) 55%,
    rgba(255, 255, 255, .12) 60%,
    #484848 62.5%,
    #484848 100%
  );
  background-size: 200% 100%;
  opacity: .58;
  animation: review-line-scan 34s linear infinite;
}

.review-item {
  position: relative;
  min-height: 220px;
}

.review-item::before {
  content: "";
  position: absolute;
  top: 104px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #505050;
  opacity: .58;
  transform: translateX(-50%);
}

.review-item::after {
  content: "";
  position: absolute;
  top: 112px;
  left: 50%;
  width: 1px;
  height: 22px;
  background: #505050;
  opacity: .58;
}

@keyframes review-line-scan {
  from { background-position: 150% 0; }
  to { background-position: -150% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .project-review-page .review-track::before {
    background: #484848;
    animation: none;
  }
}

.review-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  margin-bottom: 42px;
}

.review-logo img {
  width: auto;
  max-width: 190px;
  max-height: 46px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.review-logo-tall img {
  max-height: 92px;
}

.review-logo-text {
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.review-item span {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.review-item p {
  margin: 0 auto;
  max-width: none;
  color: #6f6f6f;
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
  white-space: nowrap;
}

.project-grid {
  display: flex;
  flex-direction: column;
  gap: 58px;
}

.project-card {
  display: block;
  text-align: center;
}

.brand-project-group {
  display: grid;
  grid-template-columns: 190px 1px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  width: 100%;
}

.brand-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: calc((100vw - 10vw - 190px - 1px - 68px - 56px) / 3 * 0.75 + 78px);
  padding-top: 0;
  text-align: center;
}

.brand-side img {
  width: auto;
  max-width: 150px;
  max-height: 48px;
  object-fit: contain;
}

.brand-side img.is-tall {
  max-height: 90px;
}

.brand-side h3 {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.2;
}

.brand-axis {
  width: 1px;
  min-height: 100%;
  background: var(--line);
}

.brand-projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 28px;
}

.project-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #070707;
  border: 1px solid #181818;
  transition: transform 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.project-card:hover img {
  transform: translateY(-4px);
  border-color: #5e5e5e;
  opacity: 0.9;
}

.project-card div {
  padding-top: 16px;
}

.project-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.project-card h3 {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
}

.about,
.contact {
  padding: 100px 5vw;
  border-top: 1px solid var(--line);
}

.about p {
  max-width: 860px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.contact-links a:hover {
  border-color: #666;
}

.contact-page {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
  gap: 8vw;
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: 96px 8vw;
}

.contact-page h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 108px);
  line-height: 0.98;
}

.contact-page-links {
  display: grid;
  gap: 22px;
}

.contact-page-links a {
  display: grid;
  gap: 10px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  transition: border-color 180ms ease, transform 180ms ease;
}

.contact-page-links a:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-page-links a:hover {
  border-color: #666;
  transform: translateX(6px);
}

.contact-page-links span {
  color: var(--muted);
  font-size: 13px;
}

.contact-page-links strong {
  color: var(--text);
  font-size: clamp(22px, 3vw, 42px);
  line-height: 1.15;
  word-break: break-all;
}

.team-section {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 72px);
  padding: 118px 3.5vw 86px;
  overflow: hidden;
}

.team-section::before {
  content: none;
}

.team-page::before {
  right: 5vw;
  bottom: -2vh;
  color: rgba(255, 255, 255, 0.025);
  font-size: clamp(180px, 28vw, 500px);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 220px));
  align-items: start;
  justify-content: center;
  gap: 30px;
  width: 100%;
  max-width: calc(100vw - 7vw);
  margin-top: auto;
  margin-bottom: auto;
  margin-left: auto;
  margin-right: auto;
}

.team-card-member .team-photo {
  border-radius: 8px;
}

.team-member-initial {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #1b1b1b, #090909);
}

.team-photo-add {
  position: relative;
  display: grid;
  place-items: center;
  background: #0d0d0d;
  border-color: #222;
}

.team-photo-add > img {
  position: absolute;
  inset: 0;
}

.team-add-symbol,
.member-upload-plus,
.member-hobby-photo > span {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  opacity: 0;
  transform: scale(0.74);
  transition: opacity 180ms ease, transform 180ms ease;
}

.team-add-symbol::before,
.team-add-symbol::after,
.member-upload-plus::before,
.member-upload-plus::after,
.member-hobby-photo > span::before,
.member-hobby-photo > span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

.team-add-symbol::before,
.member-upload-plus::before,
.member-hobby-photo > span::before {
  width: 100%;
  height: 1px;
}

.team-add-symbol::after,
.member-upload-plus::after,
.member-hobby-photo > span::after {
  width: 1px;
  height: 100%;
}

.team-add-label {
  position: absolute;
  bottom: 24px;
  color: #8c8c8c;
  font-size: 12px;
  letter-spacing: 0.12em;
  opacity: 0;
  transition: opacity 180ms ease;
}

.team-card-add:hover .team-add-symbol,
.team-card-add:focus-visible .team-add-symbol,
.team-card-add:hover .team-add-label,
.team-card-add:focus-visible .team-add-label {
  opacity: 1;
  transform: scale(1);
}

.team-card-add.has-member .team-add-symbol,
.team-card-add.has-member .team-add-label {
  display: none;
}

.team-card-add.has-member .team-photo-add {
  border-radius: 8px;
}

.team-info-add strong,
.team-info-add span {
  transition: color 180ms ease;
}

.team-card-add:not(.has-member) .team-info-add {
  opacity: 0;
}

.team-card {
  display: block;
  align-self: start;
  width: 100%;
  max-width: 220px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: inherit;
  transition: transform 180ms ease, opacity 180ms ease;
}

@media (min-width: 761px) and (max-width: 1180px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 220px));
  }
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-card:active,
.team-card.is-tapped {
  transform: translateY(-2px) scale(0.975);
}

.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  background: #050505;
  border: 1px solid #171717;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease, opacity 180ms ease, border-color 180ms ease;
}

.team-photo-xianhao {
  object-position: 50% 28%;
}

.team-card-active .team-photo {
  border-radius: 8px;
}

.team-card:hover .team-photo img {
  transform: scale(1.025);
  opacity: 0.92;
}

.team-photo-placeholder {
  display: grid;
  place-items: center;
  background: #171717;
  border-color: #171717;
  box-shadow: none;
}

.team-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: none;
}

.team-info {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  text-align: center;
}

.team-info strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.team-info span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.team-info-empty {
  visibility: hidden;
}

.team-card-empty {
  appearance: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.team-card-empty:focus,
.team-card-empty:focus-visible,
.team-card-empty:active {
  outline: none;
}

.team-card-empty:focus .team-photo,
.team-card-empty:focus-visible .team-photo,
.team-card-empty:active .team-photo,
.team-card-empty.is-tapped .team-photo {
  border-color: #171717;
}

.project-detail-page {
  padding: 112px 0 120px;
}

.project-intro {
  padding: 0 8vw 64px;
}

.back-link {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 44px;
  color: var(--text);
  font-size: 0;
  font-weight: 800;
}

.back-link::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-right: 22px solid var(--text);
}

.back-link:hover {
  color: var(--text);
  transform: translateX(-4px);
}

.project-intro h1 {
  max-width: 1040px;
  font-size: clamp(40px, 5vw, 78px);
}

.project-intro p:not(.eyebrow) {
  max-width: 740px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.gallery-section {
  padding: 54px 8vw 28px;
  scroll-margin-top: 92px;
}

.gallery-heading {
  width: min(100%, 1280px);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
}

.gallery-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.15;
}

.gallery-stack {
  display: grid;
  gap: 34px;
  width: min(100%, 1280px);
  margin: 0 auto;
}

.gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.gallery-thumb img,
.gallery-stack > img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #050505;
  border: 1px solid #141414;
  transition: border-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.gallery-thumb:hover img {
  border-color: #5a5a5a;
  opacity: 0.92;
  transform: translateY(-2px);
}

.gallery-empty {
  margin: 0;
  padding: 80px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.section-dots {
  position: fixed;
  left: 32px;
  top: 50%;
  z-index: 30;
  display: grid;
  gap: 18px;
  transform: translateY(-50%);
}

.dot-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
}

.dot-link span {
  width: 9px;
  height: 9px;
  border: 1px solid var(--text);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: width 180ms ease, height 180ms ease, background 180ms ease;
}

.dot-link.is-active span {
  width: 17px;
  height: 17px;
  background: var(--text);
}

.dot-link::after {
  content: attr(data-label);
  position: absolute;
  left: 32px;
  top: 50%;
  width: max-content;
  padding: 6px 9px;
  color: var(--text);
  font-size: 12px;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid var(--line);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.dot-link:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.top-link {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 35;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

body.project-page > .top-link {
  position: fixed;
}

.top-link::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 19px solid transparent;
  border-right: 19px solid transparent;
  border-bottom: 31px solid var(--text);
}

.top-link.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 52px;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

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

.image-lightbox img {
  display: block;
  max-width: min(1500px, 94vw);
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 28px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--text);
  font-size: 34px;
  line-height: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.top-link:hover {
  transform: translateX(-50%) translateY(-4px);
}

.about-page {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  gap: 6vw;
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: 58px 8vw 78px;
}

.about-page h1 {
  font-size: clamp(40px, 5vw, 72px);
}

.about-portrait {
  margin: 0;
}

.about-portrait img {
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: 56% 28%;
  border: 1px solid var(--line);
}

.about-content {
  max-width: 720px;
}

.about-text p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.about-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.about-contact a:hover {
  border-color: #666;
}

.about-stats {
  border-top: 1px solid var(--line);
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 6vw;
  align-items: center;
  padding: 104px 8vw 58px;
  min-height: 100vh;
}

.profile-page .profile-hero {
  grid-template-rows: auto 1fr;
  padding-top: 96px;
}

.profile-page .back-link {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.profile-photo {
  margin: 0;
}

.profile-photo img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 56% 28%;
  border: 1px solid var(--line);
}

.profile-copy {
  max-width: 760px;
}

.profile-copy h1 {
  font-size: clamp(40px, 5vw, 72px);
}

.profile-copy p:not(.eyebrow):not(.lead) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.member-photo-editor {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  overflow: hidden;
  background: #0b0b0b;
  border: 1px solid var(--line);
  cursor: pointer;
}

.member-photo-editor input,
.member-hobby-photo input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.member-photo-editor > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-photo-editor > img[hidden],
.member-hobby-photo img[hidden],
.team-photo-add > img[hidden] {
  display: none !important;
}

.member-photo-editor .member-upload-plus {
  opacity: 1;
  transform: scale(1);
}

.member-upload-copy {
  display: grid;
  gap: 6px;
  margin-top: 88px;
  text-align: center;
}

.member-upload-copy strong {
  color: #fff;
  font-size: 14px;
}

.member-upload-copy small {
  color: var(--muted);
  font-size: 11px;
}

.member-photo-editor.has-image .member-upload-plus,
.member-photo-editor.has-image .member-upload-copy {
  opacity: 0;
}

.member-photo-editor.has-image:hover .member-upload-plus {
  z-index: 2;
  opacity: 1;
}

.member-form-copy {
  display: grid;
  gap: 18px;
}

.member-field {
  display: grid;
  gap: 8px;
}

.member-field > span {
  color: #747474;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.member-field input,
.member-field textarea,
.member-hobby-name {
  width: 100%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid #252525;
  border-radius: 0;
  outline: none;
  font: inherit;
  transition: border-color 160ms ease, background 160ms ease;
}

.member-field input {
  min-height: 48px;
  padding: 0 14px;
}

.member-field textarea {
  padding: 13px 14px;
  line-height: 1.7;
  resize: vertical;
}

.member-field input:focus,
.member-field textarea:focus,
.member-hobby-name:focus {
  background: rgba(255, 255, 255, 0.045);
  border-color: #777;
}

.member-field-title input {
  min-height: 64px;
  font-size: clamp(34px, 4.4vw, 64px);
  font-weight: 700;
}

.member-field-lead input {
  color: #d8d8d8;
  font-size: 17px;
}

.member-resume-editor .resume-block {
  align-self: stretch;
}

.member-interest-editor {
  justify-content: flex-start;
  overflow-y: auto;
}

.member-hobby-item {
  min-width: 0;
}

.member-hobby-photo {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b0b0b;
  border: 1px solid #222;
  cursor: pointer;
}

.member-hobby-photo > span {
  width: 28px;
  height: 28px;
  opacity: 1;
  transform: scale(1);
}

.member-hobby-photo small {
  position: absolute;
  bottom: 14px;
  color: #6f6f6f;
  font-size: 10px;
}

.member-hobby-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: cover;
}

.member-hobby-item.has-image .member-hobby-photo > span,
.member-hobby-item.has-image .member-hobby-photo small {
  opacity: 0;
}

.member-hobby-item.has-image:hover .member-hobby-photo > span {
  z-index: 2;
  opacity: 1;
}

.member-hobby-name {
  min-height: 42px;
  margin-top: 8px;
  padding: 0 12px;
  text-align: center;
}

.member-save-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.member-action-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-save-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.member-save-row p.is-success {
  color: #f2f2f2;
}

.member-save-button {
  min-width: 150px;
  min-height: 48px;
  padding: 0 24px;
  color: #050505;
  background: #f4f4f4;
  border: 1px solid #f4f4f4;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: color 160ms ease, background 160ms ease;
}

.member-clear-button {
  min-width: 126px;
  min-height: 48px;
  padding: 0 20px;
  color: #a6a6a6;
  background: transparent;
  border: 1px solid #343434;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: color 160ms ease, border-color 160ms ease;
}

.member-clear-button:hover {
  color: #fff;
  border-color: #777;
}

.member-editor-page .is-readonly .member-field input,
.member-editor-page .is-readonly .member-field textarea,
.member-editor-page .is-readonly .member-hobby-name {
  color: var(--text);
  background: transparent;
  border-color: transparent;
  cursor: default;
}

.member-editor-page .is-readonly .member-photo-editor,
.member-editor-page .is-readonly .member-hobby-photo {
  cursor: default;
}

.member-editor-page .is-readonly .member-upload-plus,
.member-editor-page .is-readonly .member-upload-copy,
.member-editor-page .is-readonly .member-hobby-photo > span,
.member-editor-page .is-readonly .member-hobby-photo small {
  display: none;
}

.member-save-button:hover {
  color: #fff;
  background: transparent;
}

.member-password-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 0;
  color: var(--text);
  background: #0b0b0b;
  border: 1px solid #353535;
}

.member-password-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(5px);
}

.member-password-dialog form {
  padding: 34px;
}

.member-password-dialog h2 {
  margin: 7px 0 10px;
  font-size: 25px;
  font-weight: 500;
}

.member-password-dialog p:not(.eyebrow) {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.member-password-field {
  display: grid;
  gap: 8px;
}

.member-password-field span {
  color: #aaa;
  font-size: 12px;
}

.member-password-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: #fff;
  background: #050505;
  border: 1px solid #3a3a3a;
  font: inherit;
  letter-spacing: 0.15em;
}

.member-password-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.member-password-actions button {
  min-height: 44px;
  color: #bdbdbd;
  background: transparent;
  border: 1px solid #3a3a3a;
  cursor: pointer;
  font: inherit;
}

.member-password-actions button[type="submit"] {
  color: #050505;
  background: #f4f4f4;
  border-color: #f4f4f4;
}

.resume-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5vw;
  align-items: center;
  width: auto;
  margin: 0;
  padding: 104px 8vw 76px;
  background: transparent;
  border-top: 0;
  border-bottom: 0;
}

.resume-block {
  max-width: none;
  min-height: 0;
  padding: 0;
  background: transparent;
}

.resume-block h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.resume-block p:not(.eyebrow) {
  margin-bottom: 10px;
  color: var(--muted);
  line-height: 1.75;
}

.resume-block span {
  display: block;
  margin-bottom: 22px;
  color: #f0f0f0;
  font-size: 13px;
}

.hobby-section,
.photo-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 94px 8vw 64px;
}

.photo-section {
  padding-top: 94px;
}

.interest-works-section {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: center;
  padding: 86px 8vw 58px;
}

.interest-works-section .section-title {
  margin-bottom: 20px;
}

.interest-works-section .section-title h2 {
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.15;
}

.interest-works-section .hobby-grid {
  gap: 12px 14px;
}

.interest-works-section .hobby-grid img {
  max-height: 150px;
}

.works-title {
  margin-top: 30px;
}

.interest-works-section .photo-marquee {
  margin-top: 0;
}

.interest-works-section .photo-track img {
  width: clamp(220px, 28vw, 430px);
  height: clamp(150px, 18vw, 260px);
}

.profile-contact {
  min-height: 60vh;
}

.snap-page .contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 94px 8vw 64px;
}

.hobby-section .section-title,
.photo-section .section-title {
  margin-bottom: 24px;
}

.hobby-section .section-title h2,
.photo-section .section-title h2 {
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.15;
}

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
  width: 100%;
  margin: 0;
}

.hobby-grid article {
  background: transparent;
}

.hobby-grid img {
  width: 100%;
  height: min(calc((84vw - 28px) / 3 * 9 / 16), 165px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 1;
  transition: transform 220ms ease, opacity 220ms ease;
}

.hobby-grid article:hover img {
  transform: scale(1.04);
  opacity: 1;
}

.hobby-grid h3 {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
}

.photo-marquee {
  overflow: hidden;
  width: 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.photo-track {
  display: flex;
  gap: 22px;
  width: max-content;
  padding: 28px 0;
  will-change: transform;
  animation: photo-scroll 22s linear infinite;
}

.photo-track img {
  width: min(46vw, 560px);
  height: 360px;
  object-fit: cover;
  border: 1px solid #161616;
}

@keyframes photo-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translate3d(calc(-50% - 11px), 0, 0);
  }
}

@media (max-width: 1180px) {
  .brand-projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-side {
    min-height: calc((100vw - 10vw - 190px - 1px - 68px - 28px) / 2 * 0.75 + 78px);
  }
}

@media (max-width: 820px) {
  body::before {
    right: -6vw;
    bottom: 8vh;
    font-size: clamp(150px, 52vw, 300px);
  }

  .site-header {
    padding: 0 24px;
  }

  .how-logo {
    left: 24px;
    font-size: 17px;
  }

  .how-logo span {
    font-size: 10px;
  }

  .site-nav {
    gap: 20px;
    font-size: 13px;
  }

  .intro-hero {
    padding: 96px 28px 72px;
  }

  .intro-hero h1 {
    font-size: clamp(44px, 13vw, 76px);
    line-height: 1.02;
  }

  .slogan-breakdown {
    padding: 88px 28px 72px;
  }

  .project-review-page,
  .project-catalog-page {
    min-height: 100svh;
  }

  .project-review-page .review-strip {
    min-height: calc(100svh - 68px);
    padding: 48px 28px 92px;
  }

  .project-review-page .review-heading {
    min-height: 104px;
    margin-bottom: 54px;
  }

  .project-review-page .review-heading span {
    font-size: 11px;
  }

  .project-review-page .review-heading h3 {
    font-size: 30px;
  }

  .project-review-page .review-heading h3::before {
    left: -25px;
    width: 10px;
    height: 18px;
  }

  .project-review-page .review-scroll {
    margin-right: -28px;
    padding-bottom: 34px;
  }

  .project-review-page .review-track {
    grid-auto-columns: minmax(245px, 76vw);
    gap: 30px;
    padding-right: 28px;
  }

  .project-review-page .review-track::before {
    top: 104px;
  }

  .project-review-page .review-track::after {
    top: 97px;
  }

  .project-review-page .review-item {
    min-height: 292px;
  }

  .project-review-page .review-item::before {
    top: 93px;
  }

  .project-review-page .review-item::after {
    top: 104px;
    height: 34px;
  }

  .project-review-page .review-logo {
    min-height: 80px;
    margin-bottom: 56px;
  }

  .project-review-page .review-logo img {
    max-width: 180px;
    max-height: 42px;
  }

  .project-review-page .review-logo-tall img {
    max-height: 84px;
  }

  .project-review-page .review-item span {
    margin-bottom: 18px;
    font-size: 18px;
  }

  .project-review-page .review-item p {
    font-size: 13px;
    line-height: 1.75;
  }

  .page-down-link {
    bottom: 48px;
  }

  .project-catalog-page {
    padding: 84px 28px 88px;
  }

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

  .project-grid {
    gap: 46px;
  }

  .brand-project-group {
    grid-template-columns: 150px 1px minmax(0, 1fr);
    gap: 24px;
  }

  .brand-side img {
    max-width: 124px;
    max-height: 42px;
  }

  .brand-side img.is-tall {
    max-height: 76px;
  }

  .brand-side {
    min-height: calc((100vw - 56px - 150px - 1px - 48px - 20px) / 2 * 0.75 + 76px);
  }

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

  .team-section {
    padding: 88px 28px 76px;
  }

  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: none;
    gap: 34px 22px;
  }

  .team-card,
  .team-placeholder {
    width: 100%;
  }

  .team-card img,
  .team-placeholder img {
    width: 100%;
    aspect-ratio: 1 / 1;
  }

  .profile-page .profile-hero,
  .resume-panel,
  .interest-works-section {
    padding-left: 28px;
    padding-right: 28px;
  }

  .project-detail-page {
    padding-top: 92px;
  }

  .project-intro,
  .gallery-section {
    padding-left: 28px;
    padding-right: 28px;
  }

  .section-dots {
    left: 14px;
  }

  .review-heading {
    display: block;
  }

  .review-heading h3 {
    display: inline-block;
    margin-top: 16px;
    margin-left: 22px;
  }

  .project-review-page .review-heading h3 {
    display: block;
    margin: 0 auto;
  }

  .about-page,
  .profile-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 42px;
  }

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

  .photo-track img {
    width: 72vw;
    height: 300px;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: 60px;
    padding: 0 14px;
  }

  .back-home,
  .how-logo {
    left: 14px;
  }

  .how-logo {
    font-size: 15px;
    gap: 5px;
  }

  .how-logo span {
    font-size: 9px;
  }

  .site-nav {
    gap: 12px;
    font-size: 12px;
  }

  .intro-section,
  .project-section,
  .about,
  .contact,
  .about-page,
  .profile-hero,
  .hobby-section,
  .photo-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .intro-section {
    min-height: auto;
    padding-top: 68px;
  }

  .intro-hero {
    padding: 86px 20px 64px;
  }

  .intro-hero h1 {
    font-size: clamp(38px, 14vw, 58px);
  }

  .cn-slogan {
    font-size: 20px;
  }

  h1 {
    font-size: 48px;
  }

  .about-portrait img,
  .profile-photo img {
    max-height: 520px;
  }

  .stats,
  .resume-panel,
  .hobby-grid,
  .slogan-breakdown {
    grid-template-columns: 1fr;
  }

  .project-review-page .review-strip {
    min-height: calc(100svh - 60px);
    padding: 36px 20px 88px;
  }

  .project-review-page .review-heading {
    min-height: 98px;
    margin-bottom: 38px;
  }

  .project-review-page .review-heading h3 {
    font-size: 28px;
  }

  .project-review-page .review-heading span {
    font-size: 10px;
  }

  .project-review-page .review-scroll {
    margin-right: -20px;
  }

  .project-review-page .review-track {
    grid-auto-columns: minmax(230px, 78vw);
    gap: 22px;
    padding-right: 20px;
  }

  .page-down-link {
    bottom: 34px;
  }

  .project-catalog-page {
    padding: 76px 20px 72px;
  }

  .project-card img {
    aspect-ratio: 4 / 3;
  }

  .project-grid {
    gap: 44px;
  }

  .brand-project-group {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .brand-side {
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    min-height: auto;
    padding-top: 0;
    text-align: left;
  }

  .brand-side img {
    max-width: 136px;
    max-height: 44px;
  }

  .brand-side img.is-tall {
    max-height: 82px;
  }

  .brand-side h3 {
    font-size: 16px;
  }

  .brand-axis {
    width: 100%;
    height: 1px;
    min-height: 1px;
  }

  .brand-projects {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .team-section {
    padding: 76px 20px 64px;
  }

  .team-section .section-title h1,
  .team-section .section-title h2 {
    font-size: 44px;
  }

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

  .intro-hero,
  .project-intro,
  .gallery-section,
  .slogan-breakdown {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-dots {
    left: 10px;
  }

  .top-link {
    bottom: 18px;
  }

  .project-detail-page {
    padding-top: 92px;
  }

  .project-intro h1,
  .profile-copy h1 {
    font-size: 38px;
  }

  .gallery-stack {
    gap: 22px;
  }

  .stats div {
    min-height: 104px;
    padding: 24px 20px;
  }

  .photo-track {
    gap: 16px;
  }

  .photo-track img {
    width: 82vw;
    height: 240px;
  }
}

@media (max-width: 640px) {
  html,
  body {
    overflow-x: hidden;
  }

  body::before {
    right: -22vw;
    bottom: 10vh;
    font-size: clamp(150px, 72vw, 280px);
  }

  .site-header {
    justify-content: flex-end;
    height: 58px;
    padding: 0 16px;
  }

  .how-logo {
    left: 16px;
    gap: 5px;
    font-size: 14px;
  }

  .how-logo span {
    font-size: 8px;
  }

  .site-nav {
    gap: 11px;
    font-size: 11px;
    white-space: nowrap;
  }

  .intro-hero {
    min-height: 100svh;
    padding: 76px 22px 58px;
  }

  .intro-hero h1 {
    max-width: 92vw;
    font-size: clamp(38px, 13.5vw, 56px);
  }

  .slogan-breakdown {
    min-height: 100svh;
    padding: 74px 22px 54px;
    gap: 24px;
  }

  .project-review-page .review-strip {
    min-height: calc(100svh - 58px);
    padding: 34px 22px 86px;
  }

  .project-review-page .review-heading {
    min-height: 88px;
    margin-bottom: 36px;
  }

  .project-review-page .review-heading h3 {
    font-size: 26px;
  }

  .project-review-page .review-heading h3::before {
    left: -22px;
    width: 9px;
    height: 17px;
  }

  .project-review-page .review-scroll {
    margin-right: -22px;
    padding-bottom: 28px;
  }

  .project-review-page .review-track {
    grid-auto-columns: minmax(235px, 78vw);
    gap: 24px;
    padding-right: 22px;
  }

  .project-review-page .review-logo img {
    max-width: 168px;
    max-height: 40px;
  }

  .project-review-page .review-logo-tall img {
    max-height: 78px;
  }

  .project-review-page .review-item span {
    font-size: 17px;
  }

  .project-review-page .review-item p {
    font-size: 12px;
  }

  .page-down-link {
    bottom: 32px;
  }

  .project-catalog-page {
    padding: 74px 20px 70px;
  }

  .project-catalog-page .section-title {
    margin-bottom: 34px;
  }

  .project-catalog-page .section-title h2,
  .team-section .section-title h2,
  .contact-page h1 {
    font-size: clamp(38px, 13vw, 52px);
  }

  .project-grid {
    gap: 48px;
  }

  .brand-project-group {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .brand-side {
    align-items: center;
    justify-content: center;
    min-height: auto;
    gap: 10px;
    text-align: center;
  }

  .brand-side img {
    max-width: 140px;
    max-height: 42px;
  }

  .brand-side img.is-tall {
    max-height: 78px;
  }

  .brand-axis {
    width: 100%;
    height: 1px;
    min-height: 1px;
  }

  .brand-projects {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

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

  .team-section {
    min-height: 100svh;
    padding: 76px 20px 60px;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
    width: 100%;
    max-width: none;
  }

  .team-info {
    margin-top: 10px;
  }

  .profile-page .profile-hero,
  .resume-panel,
  .interest-works-section,
  .project-intro,
  .gallery-section,
  .contact-page {
    padding-left: 22px;
    padding-right: 22px;
  }

  .profile-page .profile-hero {
    min-height: auto;
    padding-top: 82px;
    padding-bottom: 54px;
  }

  .profile-photo img {
    max-height: 440px;
  }

  .section-dots {
    display: none;
  }

  .project-detail-page {
    padding-top: 76px;
  }

  .project-intro {
    padding-top: 0;
  }

  .project-intro h1,
  .profile-copy h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .project-intro p:not(.eyebrow),
  .profile-copy p:not(.eyebrow):not(.lead) {
    font-size: 14px;
    line-height: 1.8;
  }

  .gallery-heading h2 {
    font-size: clamp(28px, 9vw, 40px);
  }

  .gallery-stack {
    gap: 18px;
  }

  .top-link,
  .catalog-top-link,
  .page-down-link {
    width: 54px;
    height: 54px;
  }

  .top-link::before,
  .catalog-top-link::before {
    border-left-width: 16px;
    border-right-width: 16px;
    border-bottom-width: 27px;
  }

  .page-down-link::before {
    border-left-width: 16px;
    border-right-width: 16px;
    border-top-width: 27px;
  }

  .photo-track img {
    width: 78vw;
    height: 220px;
  }
}
@media (max-width: 640px) {
  html:has(.snap-page) {
    scroll-snap-type: none;
  }

  html,
  body {
    overflow-x: hidden;
  }

  body {
    padding-bottom: 82px;
  }

  body::before {
    right: -30vw;
    bottom: 18vh;
    font-size: clamp(160px, 82vw, 310px);
  }

  .site-header,
  .snap-page .site-header,
  .project-list-page .site-header {
    position: sticky;
    top: 0;
    justify-content: flex-start;
    height: 56px;
    padding: 0 18px;
    background: rgba(0, 0, 0, 0.94);
  }

  .site-header.is-hidden {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .how-logo {
    position: static;
    margin-right: auto;
    gap: 5px;
    font-size: 17px;
  }

  .how-logo span {
    font-size: 9px;
  }

  .site-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    height: 58px;
    padding: 7px;
    background: rgba(14, 14, 14, 0.94);
    border: 1px solid #272727;
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(16px);
    white-space: nowrap;
  }

  .site-nav a {
    display: grid;
    place-items: center;
    min-width: 0;
    height: 42px;
    padding: 0;
    border-radius: 12px;
    color: #8d8d8d;
    font-size: 12px;
    font-weight: 600;
  }

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

  .site-nav a.is-active {
    color: #fff;
    background: #222;
  }

  .snap-section > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .intro-hero,
  .slogan-breakdown,
  .team-section,
  .project-review-page,
  .project-catalog-page {
    min-height: auto;
  }

  .intro-hero {
    padding: 72px 22px 34px;
  }

  .intro-hero h1 {
    max-width: 92vw;
    font-size: clamp(38px, 14vw, 62px);
    line-height: 1.02;
  }

  .slogan-breakdown {
    display: grid;
    grid-template-columns: 1fr;
    padding: 34px 22px 42px;
  }

  .project-review-page {
    padding: 0;
  }

  .project-review-page .review-strip {
    min-height: auto;
    padding: 44px 22px 72px;
  }

  .project-review-page .review-heading {
    min-height: 74px;
    margin-bottom: 34px;
  }

  .project-review-page .review-heading span {
    position: static;
    display: block;
    margin-bottom: 18px;
    font-size: 10px;
  }

  .project-review-page .review-heading h3 {
    margin: 0 auto;
    font-size: 28px;
  }

  .project-review-page .review-scroll {
    margin: 0 -22px;
    padding: 0 22px 26px;
    scroll-snap-type: x mandatory;
  }

  .project-review-page .review-track {
    grid-auto-columns: 78vw;
    gap: 18px;
    padding-right: 22px;
  }

  .project-review-page .review-item {
    min-height: 286px;
    scroll-snap-align: center;
  }

  .project-review-page .review-logo {
    min-height: 78px;
    margin-bottom: 54px;
  }

  .page-down-link {
    bottom: 12px;
  }

  .project-catalog-page {
    padding: 72px 18px 34px;
  }

  .project-catalog-page .section-title {
    margin-bottom: 30px;
  }

  .project-catalog-page .section-title h2,
  .team-section .section-title h2,
  .contact-page h1 {
    font-size: 42px;
  }

  .project-grid {
    gap: 42px;
  }

  .brand-project-group {
    display: block;
    padding: 18px 0 0;
    border-top: 1px solid #222;
  }

  .brand-side {
    align-items: center;
    justify-content: center;
    min-height: auto;
    margin-bottom: 16px;
    gap: 9px;
    text-align: center;
  }

  .brand-side img {
    max-width: 142px;
    max-height: 44px;
  }

  .brand-side img.is-tall {
    max-height: 76px;
  }

  .brand-side h3 {
    font-size: 13px;
  }

  .brand-axis {
    display: none;
  }

  .brand-projects {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .project-card img {
    border-color: #202020;
  }

  .project-card div {
    padding-top: 10px;
  }

  .project-card span {
    margin-bottom: 6px;
    font-size: 11px;
  }

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

  .catalog-top-link {
    margin-top: 38px;
    margin-bottom: 8px;
  }

  .team-section {
    padding: 74px 18px 34px;
  }

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

  .team-info strong {
    font-size: 14px;
  }

  .team-info span {
    font-size: 12px;
  }

  .project-detail-page {
    padding: 74px 0 34px;
  }

  .project-intro,
  .gallery-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .project-intro {
    padding-top: 0;
    padding-bottom: 34px;
  }

  .back-link {
    margin-bottom: 28px;
  }

  .project-intro h1,
  .profile-copy h1 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .project-intro p:not(.eyebrow),
  .profile-copy p:not(.eyebrow):not(.lead) {
    font-size: 14px;
    line-height: 1.8;
  }

  .gallery-section {
    padding-top: 32px;
  }

  .gallery-heading {
    margin-bottom: 18px;
  }

  .gallery-heading h2 {
    font-size: 30px;
  }

  .gallery-stack {
    gap: 16px;
  }

  .gallery-thumb,
  .gallery-thumb img {
    width: 100%;
  }

  .gallery-thumb img {
    max-width: none;
    border-color: #1f1f1f;
  }

  .gallery-empty {
    min-height: 120px;
  }

  .section-dots {
    display: none;
  }

  .top-link,
  .catalog-top-link,
  .page-down-link {
    width: 54px;
    height: 54px;
  }

  .top-link {
    bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .top-link::before,
  .catalog-top-link::before {
    border-left-width: 16px;
    border-right-width: 16px;
    border-bottom-width: 27px;
  }

  .page-down-link::before {
    border-left-width: 16px;
    border-right-width: 16px;
    border-top-width: 27px;
  }

  .image-lightbox {
    padding: 18px;
  }

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