:root {
  --bg: #090909;
  --bg-2: #11100d;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.075);
  --ink: #f4efe6;
  --body: #bdb3a3;
  --muted: #7f776a;
  --line: rgba(244, 239, 230, 0.13);
  --line-strong: rgba(244, 239, 230, 0.28);
  --accent: #d7b56d;
  --accent-2: #7d2428;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 8%, rgba(215, 181, 109, 0.16), transparent 24%),
    radial-gradient(circle at 10% 18%, rgba(125, 36, 40, 0.24), transparent 25%),
    linear-gradient(180deg, #11100d 0%, var(--bg) 38%, #050505 100%);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(244, 239, 230, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 230, 0.025) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px clamp(22px, 5vw, 84px);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 9, 0.76);
  backdrop-filter: blur(20px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.brand {
  min-width: max-content;
  color: var(--ink);
  font-weight: 800;
}

.nav {
  display: flex;
  gap: clamp(14px, 2vw, 32px);
  color: var(--body);
  font-size: 14px;
}

.nav a {
  position: relative;
  padding-bottom: 6px;
  transition: color 0.2s ease;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

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

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

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.language-picker select {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  cursor: pointer;
  padding: 7px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.language-picker select:focus {
  border-color: var(--accent);
  outline: none;
}

.hero,
.section {
  padding: 88px clamp(22px, 4vw, 72px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: start;
  gap: clamp(34px, 6vw, 92px);
  min-height: calc(100vh - 77px);
  padding-top: 72px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Songti SC", "STSong", "SimSun", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 720px;
  font-size: 56px;
  line-height: 1.22;
}

.section h2 {
  font-size: 40px;
  line-height: 1.18;
}

.intro {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--body);
  font-size: 17px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  padding: 12px 18px;
  font-weight: 800;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #11100d;
}

.button.secondary {
  color: var(--ink);
}

.profile-panel {
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(215, 181, 109, 0.12), rgba(255, 255, 255, 0.025)),
    rgba(9, 9, 9, 0.62);
  padding: 18px;
}

.portrait {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  min-height: 340px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(215, 181, 109, 0.18), transparent 44%),
    linear-gradient(160deg, #2a2418, #0a0a0a 72%);
}

.portrait-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.9s cubic-bezier(0.55, 0.08, 0.18, 1);
  will-change: transform;
}

.portrait-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.portrait::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent 62%, rgba(0, 0, 0, 0.28));
  z-index: 2;
}

.portrait span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(215, 181, 109, 0.7);
  border-radius: 50%;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 62px;
}

.portrait-label {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.portrait-bio {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.portrait-bio h2 {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 15px;
  letter-spacing: 0;
}

.portrait-bio p {
  margin: 0;
  color: var(--body);
  font-size: 14px;
  line-height: 1.75;
}

dl {
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: minmax(98px, 0.32fr) minmax(0, 1fr);
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

dt {
  color: var(--muted);
  font-size: 13px;
}

dd {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.section {
  max-width: 1680px;
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(180px, 0.26fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  border-top: 1px solid var(--line);
}

.section-lead,
.section-header p {
  max-width: none;
  color: var(--body);
  font-size: 17px;
  line-height: 1.85;
  text-wrap: pretty;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--line);
  background: var(--line);
}

.highlight-card,
.result-card {
  min-height: 210px;
  background: rgba(13, 13, 12, 0.92);
  padding: 28px;
}

.highlight-card span,
.work-number {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.highlight-card h3,
.work-item h3 {
  margin: 18px 0 10px;
  font-size: 19px;
  line-height: 1.45;
}

.highlight-card p,
.work-item p {
  color: var(--body);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(180px, 0.26fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  margin-bottom: 42px;
}

.section-header .eyebrow {
  grid-column: 1;
}

.section-header h2 {
  grid-column: 1;
}

.section-header p:not(.eyebrow) {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
}

.work-list {
  border-top: 1px solid var(--line);
}

.work-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) minmax(180px, 0.32fr);
  gap: 24px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
}

.tag {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.work-meta {
  color: var(--muted);
  font-size: 13px;
}

.more-projects {
  margin-top: 46px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.more-projects-header {
  display: grid;
  grid-template-columns: minmax(180px, 0.26fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 60px);
  margin-bottom: 20px;
}

.more-projects-header h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Songti SC", "STSong", "SimSun", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
}

.more-projects-header p {
  margin: 0;
  color: var(--body);
}

.more-projects-list {
  border-top: 1px solid var(--line);
}

.more-project-group {
  border-bottom: 1px solid var(--line);
}

.more-project-group summary {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  cursor: pointer;
  padding: 22px 0;
  list-style: none;
}

.more-project-group summary::-webkit-details-marker {
  display: none;
}

.more-project-group summary span {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.more-project-group summary strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
}

.more-project-group ul {
  display: grid;
  gap: 12px;
  margin: 0 0 28px 104px;
  padding: 0;
  color: var(--body);
  list-style: none;
}

.more-project-group li {
  position: relative;
  padding-left: 18px;
}

.more-project-group li::before {
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.practice-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 18px;
  max-width: 820px;
  margin-top: 34px;
}

.practice-list span {
  display: grid;
  place-items: center;
  aspect-ratio: 1.618 / 1;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(215, 181, 109, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(9, 9, 9, 0.42);
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

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

.result-card strong {
  display: block;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1;
}

.result-card span {
  display: block;
  margin-top: 16px;
  color: var(--body);
  font-size: 15px;
}

.contact-list {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 30px clamp(22px, 5vw, 84px);
  color: var(--muted);
}

.footer a {
  color: var(--accent);
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
  }

  .header-actions {
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
  }

  .hero,
  .split,
  .section-header,
  .work-item {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 58px;
  }

  .hero h1 {
    max-width: 680px;
    font-size: 44px;
  }

  .section h2 {
    font-size: 34px;
  }

  .section-header p:not(.eyebrow),
  .section-header h2,
  .section-header .eyebrow {
    grid-column: auto;
    grid-row: auto;
  }

  .highlight-grid,
  .results-grid {
    grid-template-columns: 1fr 1fr;
  }

  .more-projects-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero,
  .section {
    padding: 56px 18px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.28;
  }

  .section h2 {
    font-size: 28px;
  }

  .intro,
  .section-lead,
  .section-header p {
    font-size: 16px;
  }

  .highlight-grid,
  .results-grid,
  .practice-list {
    grid-template-columns: 1fr;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .more-project-group summary {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .more-project-group ul {
    margin-left: 0;
  }

  .footer {
    flex-direction: column;
  }
}
