:root {
  color-scheme: dark;
  --ink: #f6f1e8;
  --muted: #bdb7ad;
  --paper: #151515;
  --panel: #20201e;
  --panel-2: #2c2b27;
  --line: rgba(246, 241, 232, 0.16);
  --amber: #c99854;
  --green: #465c55;
  --wine: #6f3439;
  --blue: #6f8a95;
  --shadow: rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 64px);
  background: linear-gradient(180deg, rgba(13, 13, 12, 0.86), rgba(13, 13, 12, 0));
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  font-size: 1rem;
}

.brand-line {
  color: var(--muted);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 34px);
  color: rgba(246, 241, 232, 0.76);
  font-size: 0.88rem;
}

.site-nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 96vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 120px clamp(20px, 5vw, 64px) 88px;
}

.gallery-hero {
  padding: 150px clamp(20px, 5vw, 64px) 56px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(16, 16, 15, 0.86), rgba(16, 16, 15, 0.96)),
    radial-gradient(circle at 75% 20%, rgba(201, 152, 84, 0.16), transparent 30%);
}

.gallery-hero h1 {
  max-width: 980px;
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(7, 7, 6, 0.92) 0%, rgba(10, 10, 8, 0.72) 38%, rgba(10, 10, 8, 0.1) 74%),
    linear-gradient(0deg, rgba(13, 13, 12, 0.84), transparent 38%);
}

.hero-content {
  position: relative;
  max-width: 760px;
}

.eyebrow,
.section-label,
.project-meta,
.prompt-row span {
  margin: 0;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.25rem, 8.8vw, 7.8rem);
  line-height: 1.02;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.15rem, 5.1vw, 4.8rem);
  line-height: 1.08;
}

h3 {
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.hero-copy {
  max-width: 620px;
  color: rgba(246, 241, 232, 0.82);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 18px;
  font-size: 0.92rem;
  font-weight: 700;
}

.button.primary {
  background: var(--ink);
  color: #111;
}

.button.secondary {
  background: rgba(246, 241, 232, 0.08);
  color: var(--ink);
}

.button.dark {
  border-color: rgba(21, 21, 21, 0.22);
  background: #151515;
}

.button.primary.dark {
  border-color: rgba(246, 241, 232, 0.36);
  background: var(--ink);
  color: #151515;
}

.button.secondary.dark {
  border-color: rgba(246, 241, 232, 0.22);
  background: rgba(246, 241, 232, 0.08);
  color: var(--ink);
}

.hero-footer {
  position: absolute;
  right: clamp(20px, 5vw, 64px);
  bottom: 28px;
  left: clamp(20px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  border-top: 1px solid rgba(246, 241, 232, 0.22);
  padding-top: 18px;
  color: rgba(246, 241, 232, 0.72);
  font-size: 0.84rem;
}

.band,
.work,
.lab,
.footer {
  padding: clamp(64px, 9vw, 128px) clamp(20px, 5vw, 64px);
}

.intro,
.about {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(30px, 7vw, 90px);
  border-bottom: 1px solid var(--line);
  background: #171715;
}

.intro-text,
.about-copy {
  max-width: 980px;
}

.intro-text p {
  margin-bottom: 24px;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  line-height: 1.9;
}

.section-heading {
  max-width: 1000px;
  margin-bottom: 42px;
}

.section-heading.compact {
  margin-bottom: 34px;
}

.work-browser {
  display: grid;
  gap: 18px;
  margin-bottom: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.filter-block {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.filter-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 2.2;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(246, 241, 232, 0.04);
  color: rgba(246, 241, 232, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: rgba(246, 241, 232, 0.46);
  background: var(--ink);
  color: #151515;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

.project-card[hidden] {
  display: none;
}

.project-card.large {
  grid-column: span 2;
}

.project-image {
  position: relative;
  min-height: 300px;
  flex: 1;
  background-size: cover;
  background-position: center;
  filter: saturate(0.92) contrast(1.04);
  overflow: hidden;
}

.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.38)),
    linear-gradient(135deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.32));
}

.project-image-a {
  background-image: url("assets/resume/resume-05.png");
}

.project-image-b {
  background-image: url("assets/resume/resume-12.png");
}

.project-image-c {
  background-image: url("assets/resume/resume-02.png");
}

.project-image-d {
  background-image: url("assets/resume/resume-09.png");
}

.project-image-e {
  background-image: url("assets/resume/resume-11.png");
}

.project-image-f {
  background-image: url("assets/resume/resume-07.png");
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 8px;
  color: var(--muted);
  font-size: 0.7rem;
}

.project-card h3 {
  padding: 0 18px 20px;
}

.empty-state {
  margin: 24px 0 0;
  border: 1px solid var(--line);
  padding: 24px;
  color: var(--muted);
}

.gallery-page {
  padding-top: 42px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-item {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 10px;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #0d0d0c;
}

.gallery-item span {
  min-height: 42px;
  color: rgba(246, 241, 232, 0.74);
  font-size: 0.82rem;
  line-height: 1.5;
}

.scope {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.scope-grid div {
  min-height: 230px;
  padding: 24px;
  background: var(--panel);
}

.scope-grid p,
.about-copy p,
.lab-panel p,
.prompt-row p {
  color: rgba(246, 241, 232, 0.68);
  line-height: 1.65;
}

.lab {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 18px;
  background:
    radial-gradient(circle at 78% 18%, rgba(111, 138, 149, 0.28), transparent 28%),
    linear-gradient(135deg, #121514, #22201b 58%, #151515);
  color: var(--ink);
}

.lab .eyebrow {
  color: var(--amber);
}

.lab-panel,
.prompt-board {
  border: 1px solid rgba(246, 241, 232, 0.16);
  padding: clamp(24px, 4vw, 44px);
  background: rgba(246, 241, 232, 0.045);
  backdrop-filter: blur(14px);
}

.lab-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 34px;
}

.lab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.prompt-board {
  display: grid;
  align-content: center;
  gap: 12px;
}

.prompt-row {
  border-bottom: 1px solid rgba(246, 241, 232, 0.14);
  padding-bottom: 16px;
}

.prompt-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.prompt-row span {
  color: var(--amber);
}

.prompt-row p {
  margin: 8px 0 0;
  color: rgba(246, 241, 232, 0.76);
}

.about-copy h2 {
  margin-bottom: 24px;
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: 32px;
  align-items: end;
  background: #10100f;
}

address {
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-style: normal;
}

address a:hover {
  color: var(--ink);
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: 92vh;
  }

  .intro,
  .about,
  .lab,
  .footer {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .scope-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .filter-block {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .project-card.large {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 108px;
  }

  h1 {
    font-size: clamp(3.3rem, 18vw, 5rem);
  }

  .hero-copy {
    font-size: 0.98rem;
  }

  .hero-footer {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin-top: 48px;
  }

  .project-card {
    min-height: 310px;
  }

  .project-image {
    min-height: 240px;
  }
}
