:root {
  color-scheme: dark;
  --ink: #f8f5ec;
  --text: rgba(248, 245, 236, 0.9);
  --muted: rgba(248, 245, 236, 0.62);
  --dim: rgba(248, 245, 236, 0.38);
  --line: rgba(255, 255, 255, 0.18);
  --glass: rgba(255, 255, 255, 0.12);
  --glass-strong: rgba(255, 255, 255, 0.18);
  --dark: #07100f;
  --green: #4d8272;
  --copper: #c26b4a;
  --gold: #dfc070;
  --blue: #6a8dad;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background: #020504;
  color: var(--text);
  font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 14%, rgba(209, 195, 154, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(2, 5, 4, 0.18), rgba(2, 5, 4, 0.82) 68%, rgba(2, 5, 4, 0.96));
}

body::after {
  content: none;
}

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

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
}

.liquid-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  display: block;
  background:
    linear-gradient(90deg, rgba(2, 5, 4, 0.82), rgba(2, 5, 4, 0.28) 48%, rgba(2, 5, 4, 0.86)),
    linear-gradient(180deg, rgba(2, 5, 4, 0.22), rgba(2, 5, 4, 0.78)),
    url("assets/night-background.png") center top / cover no-repeat;
  transform: translateZ(0);
  pointer-events: none;
}

.site-header {
  position: fixed;
  inset: 18px 24px auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.liquid-pill,
.liquid-card,
.glass-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055)),
    rgba(10, 18, 15, 0.42);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -18px 42px rgba(255, 255, 255, 0.035),
    0 18px 54px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px) saturate(118%);
  -webkit-backdrop-filter: blur(16px) saturate(118%);
}

.liquid-card::before,
.liquid-pill::before,
.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.36;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent 38%, rgba(223, 192, 112, 0.08)),
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, 0.2), transparent 36%);
}

.liquid-card:hover::before,
.liquid-pill:hover::before,
.glass-panel:hover::before {
  opacity: 0.62;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 760;
}

.brand span:last-child {
  color: var(--muted);
  font-weight: 560;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 6px;
  border-radius: 999px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 260ms ease, color 260ms ease, background 260ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.08);
}

.lang-toggle {
  position: relative;
  min-width: 52px;
  min-height: 36px;
  padding: 0 10px 0 27px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
}

.toggle-dot {
  position: absolute;
  left: 6px;
  top: 50%;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(223, 192, 112, 0.72);
  transform: translateY(-50%);
  transition: transform 320ms cubic-bezier(.2, .8, .2, 1);
}

body[data-lang="en"] .toggle-dot {
  transform: translate(23px, -50%);
}

body[data-lang="en"] .lang-toggle {
  padding: 0 28px 0 11px;
}

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

.hero {
  min-height: 760px;
  display: grid;
  align-items: center;
  padding: 112px 0 56px;
}

.hero-glass-field {
  display: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.hero-copy {
  max-width: 850px;
  padding: 36px;
  border-radius: 30px;
}

.eyebrow,
.section-kicker,
.spec span,
.award span,
.primary-copy span,
.feature-copy span,
.archive-card span {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  line-height: 1.25;
  font-weight: 800;
}

.hero h1 {
  margin: 18px 0 24px;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 8rem;
  line-height: 0.86;
  font-weight: 500;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
}

.hero h1 span:last-child {
  color: rgba(248, 245, 236, 0.72);
  font-size: 0.5em;
}

.lead {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.86;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 260ms cubic-bezier(.2, .8, .2, 1), background 260ms ease;
}

.glass-button {
  color: #0a1110;
  background: rgba(248, 245, 236, 0.92);
}

.quiet-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-specs {
  display: grid;
  gap: 12px;
}

.spec {
  min-height: 120px;
  display: grid;
  align-content: space-between;
  padding: 18px;
  border-radius: 24px;
  transition: transform 300ms cubic-bezier(.2, .8, .2, 1);
}

.spec:hover {
  transform: scale(1.045);
}

.spec strong {
  color: var(--ink);
  font-size: 1.18rem;
}

.section {
  padding: 90px 0;
  scroll-margin-top: 118px;
}

h2 {
  margin: 10px 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 3.6rem;
  line-height: 1.05;
  font-weight: 520;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 1.42rem;
  line-height: 1.22;
  font-weight: 540;
}

.awards-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 28px;
  align-items: start;
}

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

.award {
  min-height: 170px;
  display: grid;
  align-content: space-between;
  padding: 22px;
  border-radius: 28px;
  transition: transform 320ms cubic-bezier(.2, .8, .2, 1);
}

.award:hover {
  transform: translateY(-6px) scale(1.035);
}

.award span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
}

.profile-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.portrait {
  margin: 0;
  border-radius: 32px;
}

.portrait img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: 52% 18%;
  filter: saturate(96%) contrast(104%);
}

.profile-copy {
  padding: 34px;
  border-radius: 32px;
}

.profile-copy p,
.glass-panel p,
.works-intro p,
.primary-copy p,
.feature-copy p {
  color: var(--text);
}

.profile-copy p {
  max-width: 820px;
  margin: 22px 0 0;
  font-size: 1.04rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.glass-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  padding: 34px;
  border-radius: 34px;
}

.glass-panel p {
  margin: 8px 0 0;
  font-size: 1.03rem;
}

.works-section {
  padding-top: 24px;
}

.works-intro {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 38px;
  align-items: baseline;
  margin-bottom: 30px;
}

.primary-work {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(340px, 0.78fr);
  gap: 20px;
  padding: 18px;
  border-radius: 38px;
  transition: transform 340ms cubic-bezier(.2, .8, .2, 1);
}

.primary-work:hover {
  transform: translateY(-6px);
}

.primary-image {
  min-height: 560px;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(0, 0, 0, 0.28);
}

.primary-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(.2, .8, .2, 1);
}

.primary-work:hover .primary-image img {
  transform: scale(1.045);
}

.primary-copy {
  display: grid;
  align-content: end;
  gap: 20px;
  padding: 18px 12px 18px 8px;
}

.primary-copy h3 {
  font-size: 4.5rem;
  line-height: 0.98;
}

.primary-copy p {
  margin: 0;
  font-size: 1.08rem;
}

.featured-shell {
  position: relative;
}

.featured-works {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
  padding: 8px 0 0;
}

.feature-card {
  min-height: 500px;
  display: grid;
  grid-template-rows: 230px 1fr;
  border-radius: 28px;
  transition: transform 320ms cubic-bezier(.2, .8, .2, 1);
}

.feature-card:hover {
  transform: translateY(-6px);
}

.feature-image {
  overflow: hidden;
  border-radius: 28px 28px 18px 18px;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 620ms cubic-bezier(.2, .8, .2, 1);
}

.feature-card:hover img {
  transform: scale(1.055);
}

.feature-copy {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
}

.feature-copy h3 {
  font-size: 1.35rem;
}

.feature-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 0.94rem;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.feature-copy em {
  color: var(--dim);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
}

.archive-shell {
  margin-top: 78px;
  padding: 66px 0 96px;
  overflow: visible;
}

.archive-head {
  margin-bottom: 4px;
}

.archive-album {
  position: relative;
  width: min(820px, 100%);
  min-height: 420px;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 44px 0 22px;
  background: transparent;
  text-align: left;
  transition: transform 360ms cubic-bezier(.2, .8, .2, 1);
}

.archive-album:hover {
  transform: translateY(-8px);
}

.album-kicker,
.album-count {
  position: relative;
  z-index: 2;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 800;
}

.album-title {
  position: relative;
  z-index: 2;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 4rem;
  line-height: 1;
}

.album-stack {
  position: absolute;
  inset: 0 0 24px auto;
  width: min(58%, 430px);
  pointer-events: none;
}

.album-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)) scale(var(--s, 1));
  transition: transform 520ms cubic-bezier(.2, .8, .2, 1);
}

.archive-album:hover .album-card {
  transform: translate3d(calc(var(--x) * 1.25), calc(var(--y) * 1.15 - 10px), 0) rotate(calc(var(--r) * 1.25)) scale(var(--s, 1));
}

.album-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: block;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(2, 5, 4, 0.86), rgba(2, 5, 4, 0.96)),
    rgba(2, 5, 4, 0.92);
  backdrop-filter: blur(18px) saturate(112%);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}

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

body.modal-open {
  overflow: hidden;
}

.archive-modal-panel {
  width: 100%;
  height: 100%;
  padding: 36px clamp(18px, 5vw, 72px);
  overflow: hidden;
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.96);
  transition:
    opacity 420ms ease 80ms,
    transform 520ms cubic-bezier(.2, .8, .2, 1) 80ms;
}

.archive-modal.is-open .archive-modal-panel {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.archive-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.modal-close {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
}

.archive-grid {
  height: calc(100% - 120px);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  overflow-y: auto;
  padding: 2px 4px 28px 2px;
}

.archive-card {
  min-height: 292px;
  display: grid;
  grid-template-rows: 178px auto auto;
  gap: 10px;
  padding: 10px;
  border-radius: 22px;
  transition: transform 260ms cubic-bezier(.2, .8, .2, 1);
}

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

.archive-card img {
  width: 100%;
  height: 178px;
  object-fit: cover;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
}

.archive-card img.is-missing {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at 30% 20%, rgba(223, 192, 112, 0.18), transparent 36%),
    rgba(255, 255, 255, 0.08);
}

.archive-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 1rem;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 42px, 0) scale(0.985);
  transition:
    opacity 620ms ease,
    transform 700ms cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

.reveal[data-motion="left"] {
  transform: translate3d(-54px, 30px, 0) scale(0.985);
}

.reveal[data-motion="right"] {
  transform: translate3d(54px, 30px, 0) scale(0.985);
}

.reveal[data-motion="zoom"] {
  transform: translate3d(0, 30px, 0) scale(0.95);
}

.reveal[data-motion="lift"] {
  transform: translate3d(0, 66px, 0) scale(0.97);
}

.reveal[data-motion="tilt-left"] {
  transform: translate3d(-42px, 34px, 0) rotateX(8deg) rotateZ(-1.4deg) scale(0.97);
}

.reveal[data-motion="tilt-right"] {
  transform: translate3d(42px, 34px, 0) rotateX(8deg) rotateZ(1.4deg) scale(0.97);
}

.reveal[data-motion="drift"] {
  transform: translate3d(0, 84px, 0) rotateX(10deg) scale(0.96);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.feature-card.reveal {
  transform-origin: 50% 70%;
}

.footer {
  padding: 84px 0 48px;
}

.footer-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 34px;
  padding: 30px;
  border-radius: 34px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 760;
  transition: transform 240ms ease, background 240ms ease;
}

.footer-links a:hover {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 1120px) {
  .hero h1 {
    font-size: 6.2rem;
  }

  h2 {
    font-size: 3rem;
  }

  .primary-copy h3 {
    font-size: 3.7rem;
  }

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

@media (max-width: 900px) {
  .site-header {
    inset: 12px 14px auto;
    display: grid;
    gap: 10px;
  }

  .nav-links {
    overflow-x: auto;
    justify-content: flex-start;
    max-width: calc(100vw - 28px);
  }

  .hero-grid,
  .awards-layout,
  .profile-layout,
  .glass-panel,
  .works-intro,
  .primary-work {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 138px;
  }

  .hero-copy {
    padding: 26px;
  }

  .hero-specs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .award-row {
    grid-template-columns: 1fr;
  }

  .portrait img {
    min-height: 420px;
  }

  .primary-image {
    min-height: 420px;
  }

  .album-stack {
    opacity: 0.58;
  }

}

@media (max-width: 640px) {
  .section-inner {
    width: min(100% - 28px, 1180px);
  }

  .brand {
    width: fit-content;
  }

  .hero {
    padding-bottom: 48px;
  }

  .hero h1 {
    font-size: 4.3rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .primary-copy h3 {
    font-size: 2.8rem;
  }

  .lead,
  .primary-copy p,
  .profile-copy p,
  .glass-panel p {
    font-size: 0.98rem;
  }

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

  .featured-works {
    grid-template-columns: 1fr;
  }

  .spec {
    min-height: 94px;
  }

  .section {
    padding: 66px 0;
  }

  .profile-copy,
  .glass-panel {
    padding: 24px;
  }

  .portrait img {
    min-height: 360px;
  }

  .primary-work {
    padding: 12px;
    border-radius: 28px;
  }

  .primary-image {
    min-height: 320px;
    border-radius: 22px;
  }

  .feature-card {
    min-height: 480px;
    grid-template-rows: 250px 1fr;
  }

  .archive-card {
    min-height: 270px;
    grid-template-rows: 160px auto auto;
  }

  .archive-card img {
    height: 160px;
  }

  .archive-album {
    min-height: 360px;
    padding: 26px 0 18px;
  }

  .album-title {
    font-size: 3rem;
  }

  .album-stack {
    inset: 26px 0 40px auto;
    width: 58%;
  }

  .archive-modal {
    padding: 0;
  }

  .archive-modal-panel {
    height: 100%;
    padding: 20px 14px;
  }

  .archive-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .footer-inner,
  .archive-head {
    display: grid;
    align-items: start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
