:root {
  --paper: #f7f2e8;
  --paper-strong: #fffaf1;
  --paper-soft: #efe7d8;
  --ink: #18201c;
  --ink-soft: #39443d;
  --muted: #667068;
  --line: #d7c9b7;
  --line-strong: #bba98f;
  --olive: #5e724d;
  --teal: #1f6f78;
  --wine: #8a4f4b;
  --gold: #b28a45;
  --night: #111b1d;
  --white: #ffffff;
  --shadow: 0 20px 55px rgba(31, 38, 31, 0.16);
  --radius: 8px;
  --font-zh: "STKaiti", "KaiTi", "Kaiti SC", "KaiTi_GB2312", "Songti SC", serif;
  --font-en: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.96), rgba(247, 242, 232, 0.98) 36%, rgba(239, 231, 216, 0.96)),
    repeating-linear-gradient(90deg, rgba(178, 138, 69, 0.05) 0, rgba(178, 138, 69, 0.05) 1px, transparent 1px, transparent 88px);
  font-family: var(--font-zh);
  font-size: 18px;
  line-height: 1.85;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body::selection {
  color: var(--paper-strong);
  background: var(--teal);
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

[lang="en"],
.en-name,
.brand-mark,
.brand-name,
.tag,
.meta,
.hero-metrics dt {
  font-family: var(--font-en);
}

.page-watermark {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(24, 32, 28, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(24, 32, 28, 0.025) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, transparent, #000 10%, #000 72%, transparent);
}

.icon-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(24, 32, 28, 0.14);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 250, 241, 0.78);
  box-shadow: 0 6px 18px rgba(24, 32, 28, 0.08);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.icon-button:hover {
  transform: translateY(-2px);
  color: var(--teal);
  border-color: rgba(31, 111, 120, 0.42);
  background: var(--paper-strong);
}

.icon-button svg,
.button svg,
.contact-list svg,
.feature svg,
.highlight-item svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  min-height: 74px;
  padding: 14px clamp(20px, 6vw, 78px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(215, 201, 183, 0);
  color: var(--ink);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 250, 241, 0.88);
  border-bottom-color: rgba(215, 201, 183, 0.86);
  box-shadow: 0 12px 36px rgba(24, 32, 28, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(24, 32, 28, 0.25);
  border-radius: 50%;
  color: var(--paper-strong);
  background: var(--ink);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-zh);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: rgba(24, 32, 28, 0.78);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(255, 250, 241, 0.8);
  border-color: rgba(24, 32, 28, 0.12);
}

.site-nav .cv-link {
  color: var(--paper-strong);
  background: var(--ink);
  border-color: var(--ink);
}

.site-nav .cv-link:hover {
  color: var(--paper-strong);
  background: var(--teal);
  border-color: var(--teal);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 82svh;
  display: flex;
  align-items: center;
  padding: 104px clamp(22px, 6vw, 84px) 56px;
  overflow: hidden;
  border-bottom: 1px solid rgba(215, 201, 183, 0.7);
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) contrast(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(247, 242, 232, 0.98) 0%, rgba(247, 242, 232, 0.9) 38%, rgba(247, 242, 232, 0.36) 68%, rgba(247, 242, 232, 0.06) 100%),
    linear-gradient(180deg, rgba(247, 242, 232, 0.16), rgba(24, 32, 28, 0.1));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(900px, 100%);
  padding-left: clamp(0px, 2vw, 28px);
  border-left: 1px solid rgba(138, 79, 75, 0.36);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--wine);
  font-family: var(--font-zh);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.eyebrow [lang="en"] {
  font-family: var(--font-en);
  font-size: 1.08em;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.en-name {
  color: var(--ink);
  font-size: 4.55rem;
  font-weight: 700;
  line-height: 0.95;
}

.zh-title {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 2.05rem;
  font-weight: 500;
  line-height: 1.32;
}

.hero-lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(24, 32, 28, 0.78);
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid rgba(24, 32, 28, 0.2);
  border-radius: var(--radius);
  font-family: var(--font-zh);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

.button.primary {
  color: var(--paper-strong);
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 14px 32px rgba(24, 32, 28, 0.22);
}

.button.primary:hover {
  background: var(--teal);
  border-color: var(--teal);
}

.button.ghost {
  color: var(--ink);
  background: rgba(255, 250, 241, 0.72);
  backdrop-filter: blur(8px);
}

.button.ghost:hover {
  border-color: rgba(138, 79, 75, 0.44);
  background: var(--paper-strong);
}

.hero-metrics {
  width: min(620px, 100%);
  margin: 34px 0 0;
  padding: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid rgba(24, 32, 28, 0.18);
}

.hero-metrics div {
  min-width: 0;
}

.hero-metrics dt {
  color: var(--teal);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.hero-metrics dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-scroll-cue {
  position: absolute;
  right: clamp(20px, 6vw, 78px);
  bottom: 26px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(24, 32, 28, 0.62);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
}

.section {
  padding: 112px clamp(22px, 6vw, 84px);
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: start;
}

.profile {
  position: sticky;
  top: 104px;
  padding: 30px;
  border: 1px solid rgba(215, 201, 183, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.avatar {
  width: 106px;
  height: 106px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  border: 1px solid rgba(24, 32, 28, 0.18);
  border-radius: 50%;
  color: var(--paper-strong);
  background:
    linear-gradient(135deg, rgba(31, 111, 120, 0.96), rgba(94, 114, 77, 0.96)),
    var(--teal);
  box-shadow: inset 0 0 0 8px rgba(255, 250, 241, 0.16);
  font-family: var(--font-en);
  font-size: 2.4rem;
  font-weight: 700;
}

.profile h2,
.profile p {
  margin: 0;
}

.profile h2 {
  font-family: var(--font-en);
  font-size: 2.2rem;
  line-height: 1.05;
}

.profile p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
}

.profile-place {
  font-family: var(--font-ui);
  font-size: 0.85rem !important;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.about-copy h2,
.section-heading h2,
.band-content h2,
.contact-content h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2.7rem;
  font-weight: 500;
  line-height: 1.25;
}

.about-copy p {
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 42px;
}

.bio-grid > div {
  padding-top: 22px;
  border-top: 1px solid rgba(24, 32, 28, 0.16);
}

.bio-grid h3 {
  margin: 0 0 14px;
  color: var(--wine);
  font-size: 1.25rem;
  font-weight: 600;
}

.clean-list,
.timeline-list,
.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
}

.clean-list li + li {
  margin-top: 8px;
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.timeline-list {
  display: grid;
  gap: 16px;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.timeline-list span {
  color: var(--teal);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
}

.timeline-list strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 1.32rem;
  line-height: 1.1;
}

.timeline-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  line-height: 1.45;
}

.gallery {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
  color: var(--paper-strong);
  background: var(--night);
}

.carousel-track,
.carousel-slide {
  position: absolute;
  inset: 0;
}

.carousel-slide {
  opacity: 0;
  transform: scale(1.02);
  background-image:
    linear-gradient(90deg, rgba(17, 27, 29, 0.82), rgba(17, 27, 29, 0.34) 55%, rgba(17, 27, 29, 0.18)),
    var(--slide-image);
  background-size: cover;
  background-position: center;
  transition: opacity 700ms ease, transform 1600ms ease;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.slide-copy {
  position: absolute;
  left: clamp(22px, 8vw, 110px);
  bottom: clamp(58px, 10vh, 116px);
  z-index: 2;
  width: min(620px, calc(100% - 44px));
  padding-left: 24px;
  border-left: 1px solid rgba(255, 250, 241, 0.44);
}

.slide-copy.align-right {
  left: auto;
  right: clamp(22px, 8vw, 110px);
}

.slide-copy.align-center {
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  padding-left: 0;
  border-left: 0;
}

.slide-copy .eyebrow {
  color: rgba(255, 250, 241, 0.78);
}

.slide-copy h2 {
  margin: 0;
  font-size: 2.9rem;
  font-weight: 500;
  line-height: 1.22;
}

.slide-copy p:last-child {
  margin: 18px 0 0;
  color: rgba(255, 250, 241, 0.86);
  font-size: 1.08rem;
}

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  color: var(--paper-strong);
  background: rgba(17, 27, 29, 0.42);
  border-color: rgba(255, 250, 241, 0.2);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.carousel-control:hover {
  transform: translateY(-50%) scale(1.04);
  color: var(--paper-strong);
  border-color: rgba(255, 250, 241, 0.52);
  background: rgba(31, 111, 120, 0.72);
}

.carousel-control.prev {
  left: 22px;
}

.carousel-control.next {
  right: 22px;
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 5;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.carousel-dots button {
  width: 34px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.34);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.carousel-dots button.is-active {
  width: 54px;
  background: var(--paper-strong);
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 42px;
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.projects-section {
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.72), rgba(239, 231, 216, 0.56)),
    var(--paper);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.project-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(215, 201, 183, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.84);
  box-shadow: 0 15px 42px rgba(24, 32, 28, 0.08);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(31, 111, 120, 0.42);
  box-shadow: 0 24px 55px rgba(24, 32, 28, 0.14);
}

.project-card img,
.project-visual {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-card.tall {
  grid-row: span 2;
}

.project-card.tall .project-visual {
  aspect-ratio: 4 / 5.2;
}

.project-body {
  padding: 24px;
}

.tag {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.project-body h3,
.highlight-item h3,
.feature h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.28;
}

.project-body p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.project-visual {
  position: relative;
  overflow: hidden;
  background: var(--paper-soft);
}

.project-visual.research-map {
  background:
    linear-gradient(135deg, rgba(31, 111, 120, 0.18), rgba(178, 138, 69, 0.18)),
    repeating-linear-gradient(0deg, rgba(24, 32, 28, 0.08) 0, rgba(24, 32, 28, 0.08) 1px, transparent 1px, transparent 24px),
    repeating-linear-gradient(90deg, rgba(24, 32, 28, 0.08) 0, rgba(24, 32, 28, 0.08) 1px, transparent 1px, transparent 24px),
    var(--paper-strong);
}

.project-visual.research-map span {
  position: absolute;
  border: 1px solid rgba(31, 111, 120, 0.45);
  background: rgba(255, 250, 241, 0.62);
  box-shadow: 0 18px 35px rgba(24, 32, 28, 0.12);
}

.project-visual.research-map span:nth-child(1) {
  left: 13%;
  top: 16%;
  width: 46%;
  height: 28%;
}

.project-visual.research-map span:nth-child(2) {
  right: 12%;
  top: 42%;
  width: 38%;
  height: 30%;
  border-color: rgba(138, 79, 75, 0.45);
}

.project-visual.research-map span:nth-child(3) {
  left: 24%;
  bottom: 14%;
  width: 30%;
  height: 22%;
  border-color: rgba(178, 138, 69, 0.6);
}

.project-visual.manuscript {
  display: grid;
  gap: 12px;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.94), rgba(239, 231, 216, 0.9)),
    var(--paper-strong);
}

.project-visual.manuscript span {
  display: block;
  height: 16px;
  border-bottom: 1px solid rgba(24, 32, 28, 0.2);
}

.project-visual.manuscript span:nth-child(1) {
  width: 72%;
  border-bottom-color: rgba(138, 79, 75, 0.42);
}

.project-visual.manuscript span:nth-child(2) {
  width: 92%;
}

.project-visual.manuscript span:nth-child(3) {
  width: 64%;
}

.project-visual.manuscript span:nth-child(4) {
  width: 84%;
  border-bottom-color: rgba(31, 111, 120, 0.42);
}

.parallax-band {
  position: relative;
  min-height: 64vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px clamp(22px, 6vw, 84px);
  color: var(--paper-strong);
  background-image:
    linear-gradient(90deg, rgba(17, 27, 29, 0.86), rgba(17, 27, 29, 0.52)),
    var(--band-image);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.band-content {
  width: min(980px, 100%);
  margin: 0 auto;
}

.band-content .eyebrow {
  color: rgba(255, 250, 241, 0.78);
}

.band-content h2 {
  color: var(--paper-strong);
  font-size: 3rem;
}

.skill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.skill-row span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 250, 241, 0.26);
  border-radius: var(--radius);
  color: rgba(255, 250, 241, 0.9);
  background: rgba(255, 250, 241, 0.08);
  font-family: var(--font-zh);
  font-size: 0.95rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: start;
}

.split-heading .section-heading {
  position: sticky;
  top: 104px;
  margin-bottom: 0;
}

.highlight-list {
  border-top: 1px solid rgba(24, 32, 28, 0.18);
}

.highlight-item {
  padding: 26px 0;
  border-bottom: 1px solid rgba(24, 32, 28, 0.14);
}

.meta {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
}

.highlight-item p:not(.meta) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.highlight-item a {
  width: fit-content;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 700;
}

.highlight-item a:hover {
  color: var(--wine);
}

.academic-section {
  background:
    linear-gradient(180deg, rgba(239, 231, 216, 0.54), rgba(255, 250, 241, 0.86)),
    var(--paper-soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  min-width: 0;
  padding: 26px;
  border: 1px solid rgba(215, 201, 183, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.74);
  box-shadow: 0 12px 34px rgba(24, 32, 28, 0.07);
}

.feature svg {
  margin-bottom: 18px;
  color: var(--teal);
}

.feature p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.contact-section {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 112px clamp(22px, 6vw, 84px);
  color: var(--paper-strong);
  background-image:
    linear-gradient(90deg, rgba(17, 27, 29, 0.82), rgba(17, 27, 29, 0.44), rgba(17, 27, 29, 0.2)),
    var(--contact-image);
  background-size: cover;
  background-position: center;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 27, 29, 0), rgba(17, 27, 29, 0.28)),
    repeating-linear-gradient(90deg, rgba(255, 250, 241, 0.08) 0, rgba(255, 250, 241, 0.08) 1px, transparent 1px, transparent 92px);
}

.contact-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.contact-content .eyebrow {
  color: rgba(255, 250, 241, 0.78);
}

.contact-content h2 {
  color: var(--paper-strong);
  font-size: 3rem;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 34px;
  font-family: var(--font-ui);
}

.contact-list li {
  width: fit-content;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid rgba(255, 250, 241, 0.24);
  border-radius: var(--radius);
  background: rgba(17, 27, 29, 0.36);
  backdrop-filter: blur(12px);
}

.contact-list a:hover {
  color: #f1cf8d;
}

.site-footer {
  min-height: 84px;
  padding: 20px clamp(22px, 6vw, 84px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(215, 201, 183, 0.8);
  color: var(--muted);
  background: var(--paper-strong);
}

.site-footer p {
  margin: 0;
  font-size: 0.96rem;
}

.back-to-top {
  box-shadow: none;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

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

@media (max-width: 1080px) {
  .project-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card.tall {
    grid-row: auto;
  }

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

@media (max-width: 920px) {
  .site-header {
    min-height: 66px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 10px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(215, 201, 183, 0.9);
    border-radius: var(--radius);
    background: rgba(255, 250, 241, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    justify-content: center;
  }

  .hero {
    min-height: 86svh;
    padding-top: 98px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(247, 242, 232, 0.98) 0%, rgba(247, 242, 232, 0.88) 58%, rgba(247, 242, 232, 0.42) 100%),
      linear-gradient(90deg, rgba(247, 242, 232, 0.8), rgba(247, 242, 232, 0.28));
  }

  .en-name {
    font-size: 4rem;
  }

  .zh-title {
    font-size: 1.9rem;
  }

  .two-column,
  .split-heading {
    grid-template-columns: 1fr;
  }

  .profile,
  .split-heading .section-heading {
    position: static;
  }

  .bio-grid {
    grid-template-columns: 1fr;
  }

  .parallax-band {
    background-attachment: scroll;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 17px;
  }

  .brand-name {
    display: none;
  }

  .hero {
    align-items: flex-start;
    min-height: 76svh;
    padding-top: 88px;
    padding-bottom: 40px;
  }

  .hero-content {
    padding-left: 16px;
  }

  .en-name {
    font-size: 2.92rem;
  }

  .zh-title,
  .about-copy h2,
  .section-heading h2,
  .slide-copy h2,
  .band-content h2,
  .contact-content h2 {
    font-size: 1.72rem;
  }

  .hero-lead,
  .about-copy p,
  .section-heading p:not(.eyebrow) {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
    padding-top: 16px;
  }

  .hero-metrics div {
    display: block;
    border-bottom: 0;
    padding-bottom: 0;
  }

  .hero-metrics dd {
    margin-top: 6px;
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .hero-scroll-cue {
    display: none;
  }

  .section {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .profile,
  .feature,
  .project-body {
    padding: 22px;
  }

  .gallery {
    min-height: 70vh;
  }

  .slide-copy,
  .slide-copy.align-right,
  .slide-copy.align-center {
    left: 22px;
    right: 22px;
    bottom: 66px;
    width: auto;
    transform: none;
    text-align: left;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 250, 241, 0.44);
  }

  .carousel-control {
    top: auto;
    bottom: 18px;
    transform: none;
  }

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

  .carousel-control.prev {
    left: 20px;
  }

  .carousel-control.next {
    right: 20px;
  }

  .carousel-dots {
    bottom: 34px;
  }

  .project-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .contact-list li {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .site-nav {
    grid-template-columns: 1fr;
  }

  .en-name {
    font-size: 2.58rem;
  }

  .zh-title,
  .about-copy h2,
  .section-heading h2,
  .slide-copy h2,
  .band-content h2,
  .contact-content h2 {
    font-size: 1.5rem;
  }

  .hero-metrics dt {
    font-size: 1.62rem;
  }
}
