:root {
  color-scheme: dark;
  --bg: #090909;
  --panel: #111111;
  --panel-soft: #171615;
  --text: #f6f1ea;
  --muted: #b8b0a6;
  --faint: #756d64;
  --line: rgba(246, 241, 234, 0.15);
  --accent: #c84c3f;
  --accent-soft: #e0c48c;
  --green: #63766d;
  --max: 1440px;
  --pad: clamp(18px, 4vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

body.lightbox-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  color: var(--text);
  background: linear-gradient(180deg, rgba(9, 9, 9, 0.74), rgba(9, 9, 9, 0));
  pointer-events: none;
}

.brand,
.nav-links {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: rgba(246, 241, 234, 0.88);
}

.brand span:first-child {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: rgba(9, 9, 9, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 34px);
  font-size: 13px;
  color: rgba(246, 241, 234, 0.76);
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.edit-toggle {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(246, 241, 234, 0.2);
  color: rgba(246, 241, 234, 0.72);
  background: rgba(9, 9, 9, 0.25);
  cursor: pointer;
}

.edit-toggle:hover,
.edit-toggle:focus-visible {
  color: var(--text);
  border-color: rgba(246, 241, 234, 0.48);
}

.nav-links a::after {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 34%;
  filter: saturate(0.78) contrast(1.08) brightness(0.68);
  transform: scale(1.01);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.92) 0%, rgba(9, 9, 9, 0.62) 38%, rgba(9, 9, 9, 0.16) 72%, rgba(9, 9, 9, 0.72) 100%),
    linear-gradient(180deg, rgba(9, 9, 9, 0.22) 0%, rgba(9, 9, 9, 0.5) 60%, rgba(9, 9, 9, 1) 100%);
}

.hero-content {
  width: min(760px, 100%);
  padding: 140px var(--pad) 88px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--accent-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(56px, 9vw, 138px);
  line-height: 0.94;
  font-weight: 500;
  letter-spacing: 0;
}

.hero h1 span {
  font-size: clamp(36px, 6vw, 88px);
  color: rgba(246, 241, 234, 0.86);
}

.hero-en {
  margin: 22px 0 0;
  color: rgba(246, 241, 234, 0.82);
  font-size: clamp(18px, 2vw, 28px);
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 18px);
}

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

.primary-link,
.ghost-link,
.copy-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(246, 241, 234, 0.07);
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.primary-link {
  background: var(--text);
  color: #12100d;
  border-color: var(--text);
}

.ghost-link:hover,
.ghost-link:focus-visible,
.copy-button:hover,
.copy-button:focus-visible {
  border-color: rgba(246, 241, 234, 0.46);
  background: rgba(246, 241, 234, 0.12);
  transform: translateY(-1px);
}

.primary-link:hover,
.primary-link:focus-visible {
  transform: translateY(-1px);
  background: #ffffff;
}

.hero-index {
  position: absolute;
  right: var(--pad);
  bottom: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 560px;
  color: rgba(246, 241, 234, 0.7);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-index a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(246, 241, 234, 0.18);
  padding: 8px 10px;
  background: rgba(9, 9, 9, 0.28);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.hero-index a:hover,
.hero-index a:focus-visible,
.hero-index a.is-active {
  color: var(--text);
  border-color: rgba(246, 241, 234, 0.5);
  background: rgba(246, 241, 234, 0.1);
  transform: translateY(-1px);
}

.intro,
.works,
.capabilities,
.contact {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(76px, 11vw, 140px) var(--pad);
}

.intro-grid,
.section-head,
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.7fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
}

.intro h2,
.section-head h2,
.contact h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(34px, 5vw, 78px);
  line-height: 1.06;
  font-weight: 500;
}

.intro-copy,
.section-head p {
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
}

.intro-copy p {
  margin: 0 0 20px;
}

.section-head {
  align-items: end;
  margin-bottom: 32px;
}

.section-head p {
  margin: 0 0 8px;
}

.filter-bar {
  position: sticky;
  top: 72px;
  z-index: 10;
  display: flex;
  gap: 8px;
  padding: 10px 0 26px;
  margin-bottom: 8px;
  overflow-x: auto;
  background: linear-gradient(180deg, rgba(9, 9, 9, 0.98), rgba(9, 9, 9, 0.74) 72%, rgba(9, 9, 9, 0));
}

.filter-button {
  flex: 0 0 auto;
  min-width: 96px;
  min-height: 40px;
  border: 1px solid var(--line);
  color: rgba(246, 241, 234, 0.72);
  background: rgba(246, 241, 234, 0.04);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  color: var(--text);
  border-color: rgba(246, 241, 234, 0.52);
  background: rgba(246, 241, 234, 0.12);
}

.directory-grid {
  display: grid;
  gap: clamp(26px, 4vw, 54px);
}

.directory-section {
  scroll-margin-top: 110px;
}

.directory-cover {
  position: relative;
  width: 100%;
  min-height: clamp(470px, 72vw, 760px);
  display: block;
  padding: 0;
  border: 1px solid rgba(246, 241, 234, 0.12);
  color: var(--text);
  background: var(--panel);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  isolation: isolate;
}

.directory-cover img,
.directory-cover video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 620ms ease, filter 620ms ease;
}

.directory-cover::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.26) 52%, rgba(0, 0, 0, 0.62)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.74));
}

.directory-cover.is-light::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.1) 52%, rgba(0, 0, 0, 0.42)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.62));
}

.directory-cover:hover img,
.directory-cover:hover video,
.directory-cover:focus-visible img,
.directory-cover:focus-visible video {
  transform: scale(1.035);
  filter: saturate(1.03) contrast(1.04);
}

.directory-count {
  position: absolute;
  top: clamp(20px, 3vw, 42px);
  left: clamp(20px, 3vw, 42px);
  z-index: 2;
  color: rgba(246, 241, 234, 0.78);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.directory-info {
  position: absolute;
  left: clamp(22px, 5vw, 72px);
  right: clamp(22px, 5vw, 72px);
  bottom: clamp(26px, 5vw, 72px);
  z-index: 2;
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.directory-info .work-meta {
  margin-bottom: 4px;
}

.directory-title {
  display: block;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(46px, 8vw, 112px);
  line-height: 0.98;
  font-weight: 500;
}

.directory-summary {
  max-width: 540px;
  color: rgba(246, 241, 234, 0.76);
  font-size: clamp(15px, 1.6vw, 18px);
}

.open-series {
  width: max-content;
  margin-top: 10px;
  padding: 10px 13px;
  border: 1px solid rgba(246, 241, 234, 0.28);
  color: rgba(246, 241, 234, 0.84);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(9, 9, 9, 0.28);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 22px);
}

.work-card {
  position: relative;
  min-height: 320px;
  grid-column: span 4;
  border: 1px solid rgba(246, 241, 234, 0.1);
  background: var(--panel);
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
}

.work-card.is-large {
  grid-column: span 6;
  min-height: 520px;
}

.work-card.is-wide {
  grid-column: span 8;
}

.work-card.is-tall {
  min-height: 560px;
}

.work-card[hidden] {
  display: none;
}

.work-card img,
.work-card video {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform 520ms ease, filter 520ms ease;
}

.work-card video {
  background: #050505;
}

.work-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.72) 100%);
  opacity: 0.82;
  transition: opacity 220ms ease;
}

.work-card:hover img,
.work-card:hover video,
.work-card:focus-visible img,
.work-card:focus-visible video {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.06);
}

.work-card:hover::after,
.work-card:focus-visible::after {
  opacity: 1;
}

.work-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: clamp(18px, 2vw, 28px);
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: rgba(246, 241, 234, 0.72);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.work-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(24px, 2.4vw, 42px);
  line-height: 1.08;
  font-weight: 500;
}

.play-mark {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(246, 241, 234, 0.38);
  border-radius: 50%;
  color: var(--text);
  background: rgba(0, 0, 0, 0.34);
  font-size: 18px;
}

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

.capability {
  min-height: 280px;
  padding: clamp(24px, 3vw, 42px);
  background: var(--panel-soft);
  border: 1px solid rgba(246, 241, 234, 0.08);
}

.capability span {
  color: var(--accent-soft);
  font-size: 12px;
}

.capability h3 {
  margin: 54px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.2vw, 34px);
  line-height: 1.1;
  font-weight: 500;
}

.capability p {
  margin: 0;
  color: var(--muted);
}

.contact {
  padding-bottom: clamp(88px, 12vw, 150px);
}

.contact-inner {
  padding: clamp(34px, 6vw, 80px) 0 0;
  border-top: 1px solid var(--line);
}

.contact-actions {
  align-self: end;
}

.contact-number {
  display: block;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5.6vw, 86px);
  line-height: 1;
  color: var(--text);
  overflow-wrap: anywhere;
}

.copy-button {
  cursor: pointer;
}

.copy-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--accent-soft);
  font-size: 13px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  padding: clamp(54px, 7vw, 86px) clamp(14px, 4vw, 70px) 28px;
  background: rgba(3, 3, 3, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.lightbox-stage img,
.lightbox-stage video {
  max-width: min(100%, 1500px);
  max-height: calc(100svh - 160px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-stage video {
  width: min(100%, 1080px);
  background: #000;
}

.lightbox-button {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 241, 234, 0.22);
  color: var(--text);
  background: rgba(246, 241, 234, 0.07);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.lightbox-button:hover,
.lightbox-button:focus-visible {
  background: rgba(246, 241, 234, 0.14);
  border-color: rgba(246, 241, 234, 0.5);
}

.lightbox-close {
  top: 22px;
  right: 24px;
  width: 46px;
  height: 46px;
  font-size: 32px;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  width: 52px;
  height: 72px;
  transform: translateY(-50%);
  font-size: 44px;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-caption {
  width: min(100%, 980px);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  color: rgba(246, 241, 234, 0.78);
  font-size: 14px;
}

#lightboxTitle {
  color: var(--text);
}

.editor-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  width: min(460px, 100vw);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: rgba(14, 14, 14, 0.98);
  border-left: 1px solid rgba(246, 241, 234, 0.16);
  color: var(--text);
  transform: translateX(100%);
  transition: transform 220ms ease;
  box-shadow: -28px 0 80px rgba(0, 0, 0, 0.42);
}

.editor-open .editor-panel {
  transform: translateX(0);
}

.editor-head,
.editor-actions {
  padding: 18px;
  border-bottom: 1px solid rgba(246, 241, 234, 0.12);
}

.editor-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.editor-head strong,
.editor-head span {
  display: block;
}

.editor-head strong {
  font-size: 16px;
}

.editor-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.editor-head button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(246, 241, 234, 0.18);
  color: var(--text);
  background: rgba(246, 241, 234, 0.06);
  cursor: pointer;
  font-size: 24px;
}

.editor-body {
  overflow: auto;
  padding: 16px 18px 28px;
}

.editor-group,
.editor-item {
  border: 1px solid rgba(246, 241, 234, 0.12);
  margin-bottom: 12px;
  background: rgba(246, 241, 234, 0.035);
}

.editor-group > summary,
.editor-item > summary {
  padding: 12px;
  cursor: pointer;
  color: var(--text);
}

.editor-item {
  margin: 10px 12px;
}

.editor-field {
  display: grid;
  gap: 7px;
  padding: 0 12px 12px;
}

.editor-field span,
.editor-subtitle {
  color: var(--muted);
  font-size: 12px;
}

.editor-subtitle {
  padding: 4px 12px;
}

.editor-field textarea,
.editor-field input {
  width: 100%;
  border: 1px solid rgba(246, 241, 234, 0.16);
  color: var(--text);
  background: rgba(0, 0, 0, 0.34);
  padding: 10px;
  resize: vertical;
}

.editor-file input {
  padding: 8px;
}

.editor-actions {
  display: flex;
  gap: 8px;
  border-top: 1px solid rgba(246, 241, 234, 0.12);
  border-bottom: 0;
}

.editor-actions button {
  flex: 1;
  min-height: 40px;
  border: 1px solid rgba(246, 241, 234, 0.18);
  color: var(--text);
  background: rgba(246, 241, 234, 0.06);
  cursor: pointer;
}

.editor-actions button:hover,
.editor-actions button:focus-visible {
  border-color: rgba(246, 241, 234, 0.42);
  background: rgba(246, 241, 234, 0.1);
}

@media (max-width: 980px) {
  .hero {
    min-height: 88svh;
  }

  .hero-media img {
    object-position: 64% 34%;
  }

  .hero-content {
    padding-bottom: 110px;
  }

  .hero-index {
    left: var(--pad);
    right: var(--pad);
    justify-content: flex-start;
  }

  .intro-grid,
  .section-head,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .directory-cover {
    min-height: 620px;
  }

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

@media (max-width: 680px) {
  .site-header {
    padding-top: 12px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav-links {
    gap: 13px;
    font-size: 12px;
  }

  .edit-toggle {
    min-width: 48px;
    padding: 0 8px;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-media img {
    object-position: 64% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(9, 9, 9, 0.2) 0%, rgba(9, 9, 9, 0.35) 35%, rgba(9, 9, 9, 0.94) 100%),
      linear-gradient(90deg, rgba(9, 9, 9, 0.72), rgba(9, 9, 9, 0.12));
  }

  .hero-content {
    padding-top: 120px;
    padding-bottom: 128px;
  }

  .hero-copy {
    max-width: 34rem;
  }

  .hero-index {
    bottom: 22px;
  }

  .hero-index a {
    padding: 7px 8px;
  }

  .directory-grid {
    gap: 22px;
  }

  .directory-section {
    scroll-margin-top: 82px;
  }

  .directory-cover {
    min-height: 560px;
  }

  .directory-info {
    gap: 10px;
  }

  .directory-summary {
    max-width: 20rem;
  }

  .lightbox {
    padding-left: 12px;
    padding-right: 12px;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 22px;
    width: 46px;
    height: 46px;
    font-size: 34px;
    transform: none;
  }

  .lightbox-prev {
    left: 18px;
  }

  .lightbox-next {
    right: 18px;
  }

  .lightbox-caption {
    padding: 12px 64px 0;
    display: block;
    text-align: center;
  }

  #lightboxMeta {
    display: block;
    margin-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
