:root {
  --ink: #171815;
  --muted: #62645d;
  --paper: #f7f4ee;
  --chalk: #fffdfa;
  --line: rgba(23, 24, 21, 0.14);
  --deep: #12352e;
  --moss: #6d8064;
  --coral: #c56c55;
  --brass: #b59a65;
  --shadow: 0 24px 80px rgba(32, 29, 24, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

body::selection {
  background: var(--deep);
  color: var(--chalk);
}

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

button {
  font: inherit;
}

.cursor {
  position: fixed;
  z-index: 50;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 253, 250, 0.84);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 180ms ease, width 180ms ease, height 180ms ease;
}

.cursor.is-visible {
  opacity: 1;
}

.cursor.is-hovering {
  width: 42px;
  height: 42px;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(1160px, calc(100% - 32px));
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(255, 253, 250, 0.38);
  border-radius: 8px;
  background: rgba(23, 24, 21, 0.28);
  color: var(--chalk);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--chalk);
  color: var(--ink);
  font-family: "Noto Serif SC", serif;
}

.nav-links {
  gap: 4px;
}

.nav-links a {
  border-radius: 999px;
  padding: 9px 13px;
  color: rgba(255, 253, 250, 0.78);
  font-size: 14px;
}

.nav-links a:hover {
  background: rgba(255, 253, 250, 0.13);
  color: var(--chalk);
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 132px clamp(20px, 5vw, 72px) 8vh;
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 50%;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 13, 11, 0.77), rgba(12, 13, 11, 0.3) 52%, rgba(12, 13, 11, 0.06)),
    linear-gradient(0deg, rgba(12, 13, 11, 0.62), transparent 54%);
}

.hero-content {
  width: min(850px, 100%);
  color: var(--chalk);
}

.eyebrow,
.section-kicker,
.project-info span,
.method-list span {
  margin: 0;
  color: var(--brass);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 30px;
  max-width: 820px;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(42px, 7vw, 96px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span {
  border: 1px solid rgba(255, 253, 250, 0.34);
  border-radius: 999px;
  padding: 9px 13px;
  color: rgba(255, 253, 250, 0.82);
  font-size: 14px;
}

.section-grid,
.work-section,
.profile,
.contact,
.site-footer {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.section-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(28px, 6vw, 86px);
  padding: clamp(74px, 11vw, 132px) 0;
}

.intro-copy,
.practice h2,
.profile h2,
.contact h2 {
  margin: 0;
  max-width: 840px;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(28px, 4.8vw, 58px);
  line-height: 1.16;
  letter-spacing: 0;
}

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

.metrics span {
  min-height: 118px;
  padding: 20px;
  background: rgba(255, 253, 250, 0.54);
  color: var(--muted);
}

.metrics strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.work-section {
  padding: 16px 0 clamp(84px, 12vw, 150px);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading .section-kicker {
  grid-column: 1 / -1;
}

.section-heading h2 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(34px, 5.5vw, 74px);
  line-height: 1;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 15px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.filter-button.is-active,
.filter-button:hover {
  border-color: var(--deep);
  background: var(--deep);
  color: var(--chalk);
}

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

.project {
  grid-column: span 3;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--chalk);
  box-shadow: none;
  transition: opacity 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.project:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.project.is-large {
  grid-column: span 4;
}

.project.is-wide {
  grid-column: span 4;
}

.project.is-hidden {
  display: none;
}

.project-visual {
  min-height: 330px;
  border-bottom: 1px solid var(--line);
}

.visual-aurora {
  background:
    radial-gradient(circle at 24% 22%, rgba(181, 154, 101, 0.78), transparent 22%),
    radial-gradient(circle at 72% 30%, rgba(197, 108, 85, 0.72), transparent 19%),
    linear-gradient(135deg, #173a33 0%, #f1eee7 58%, #d9cfbd 100%);
}

.visual-grid {
  background:
    linear-gradient(rgba(18, 53, 46, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 53, 46, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, #f9f6ef, #cfd7ca);
  background-size: 24px 24px, 24px 24px, auto;
}

.visual-paper {
  background:
    linear-gradient(125deg, transparent 0 42%, rgba(197, 108, 85, 0.82) 42% 58%, transparent 58%),
    linear-gradient(36deg, #f7f4ee, #ddd5c6 45%, #2d2f2a);
}

.visual-stone {
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 253, 250, 0.78), transparent 21%),
    conic-gradient(from 160deg at 52% 48%, #12352e, #6d8064, #d2bea0, #c56c55, #12352e);
}

.visual-interface {
  position: relative;
  background: linear-gradient(135deg, #faf8f2, #cad5c9 58%, #12352e);
}

.visual-interface::before,
.visual-interface::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(23, 24, 21, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.72);
  box-shadow: 0 18px 54px rgba(23, 24, 21, 0.14);
}

.visual-interface::before {
  inset: 42px 13% 88px 18%;
}

.visual-interface::after {
  inset: 112px 22% 42px 9%;
}

.project-info {
  padding: 22px;
}

.project-info h3 {
  margin: 8px 0 10px;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.12;
}

.project-info p,
.profile p,
.method-list p {
  margin: 0;
  color: var(--muted);
}

.practice {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.method-list article {
  min-height: 220px;
  padding: 24px;
  background: rgba(255, 253, 250, 0.5);
}

.method-list h3 {
  margin: 28px 0 10px;
  font-size: 22px;
}

.profile {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  padding: clamp(82px, 12vw, 150px) 0;
}

.profile-panel {
  min-height: 420px;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 8px;
  background: var(--deep);
  color: var(--chalk);
}

.profile-panel h2 {
  margin: 18px 0 24px;
  font-size: clamp(30px, 4.5vw, 56px);
}

.profile-panel p {
  max-width: 620px;
  color: rgba(255, 253, 250, 0.72);
  font-size: 18px;
}

.client-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.client-list span {
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 0 22px;
  background: rgba(255, 253, 250, 0.56);
  color: var(--muted);
  font-weight: 600;
}

.contact {
  padding: 84px clamp(24px, 5vw, 56px);
  border-radius: 8px;
  background: #1f211d;
  color: var(--chalk);
}

.contact h2 {
  margin: 18px 0 28px;
  max-width: 880px;
}

.contact-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  border-bottom: 1px solid var(--brass);
  color: var(--brass);
  font-size: clamp(22px, 4vw, 42px);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 14px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (max-width: 860px) {
  .cursor {
    display: none;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .nav-links {
    gap: 0;
  }

  .nav-links a {
    padding: 8px 9px;
    font-size: 13px;
  }

  .hero {
    min-height: 86vh;
    padding: 112px 20px 48px;
  }

  .hero-image {
    object-position: 66% 50%;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(12, 13, 11, 0.82), rgba(12, 13, 11, 0.42)),
      linear-gradient(0deg, rgba(12, 13, 11, 0.68), transparent 60%);
  }

  .section-grid,
  .profile {
    grid-template-columns: 1fr;
  }

  .metrics,
  .method-list,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .filters {
    justify-content: flex-start;
  }

  .project,
  .project.is-large,
  .project.is-wide {
    grid-column: 1;
    min-height: auto;
  }

  .project-visual {
    min-height: 260px;
  }

  .profile-panel {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .brand span:last-child {
    display: none;
  }

  .site-header {
    min-height: 52px;
    padding-left: 10px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .section-grid,
  .work-section,
  .profile,
  .contact,
  .site-footer {
    width: min(100% - 28px, 1160px);
  }

  .hero-meta span,
  .filter-button {
    font-size: 13px;
  }

  .metrics span,
  .method-list article {
    min-height: auto;
  }

  .contact {
    padding: 58px 20px;
  }

  .site-footer {
    display: grid;
    gap: 8px;
  }
}

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