:root {
  color-scheme: dark;
  --bg: #11100e;
  --bg-soft: #1a1815;
  --text: #f6f1e8;
  --muted: #bbb2a4;
  --line: rgba(246, 241, 232, 0.16);
  --gold: #d4a856;
  --gold-soft: rgba(212, 168, 86, 0.16);
  --shadow: rgba(0, 0, 0, 0.34);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  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;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px max(22px, calc((100vw - var(--max)) / 2));
  background: linear-gradient(to bottom, rgba(17, 16, 14, 0.9), rgba(17, 16, 14, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(17, 16, 14, 0.68);
  color: var(--gold);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  display: grid;
  min-height: 740px;
  place-items: center;
  overflow: hidden;
  padding: 120px 22px 80px;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.06);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(17, 16, 14, 0.92), rgba(17, 16, 14, 0.58) 52%, rgba(17, 16, 14, 0.24)),
    linear-gradient(0deg, var(--bg), rgba(17, 16, 14, 0.18) 38%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6.2vw, 76px);
  line-height: 1.05;
}

.no-break {
  white-space: nowrap;
}

.mobile-only {
  display: none;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
}

.button-primary {
  background: var(--gold);
  color: #15110a;
}

.button-ghost {
  border-color: var(--line);
  background: rgba(17, 16, 14, 0.42);
  color: var(--text);
}

.section {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 80px 0;
}

.intro {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.intro h2,
.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 44px);
}

.intro p:last-child {
  color: var(--muted);
  line-height: 1.9;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.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: rgba(212, 168, 86, 0.6);
  background: var(--gold-soft);
  color: var(--text);
}

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

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  box-shadow: 0 18px 40px var(--shadow);
}

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

.thumb-button {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: #050505;
  color: inherit;
  cursor: pointer;
}

.thumb-button img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.thumb-button:hover img {
  transform: scale(1.04);
}

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(246, 241, 232, 0.38);
  border-radius: 999px;
  background: rgba(17, 16, 14, 0.72);
  color: var(--text);
}

.play-badge::before {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid currentColor;
  content: "";
}

.work-body {
  padding: 18px;
}

.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
}

.work-body h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.work-body p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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

.section-heading {
  margin-bottom: 28px;
}

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

.service-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--bg-soft);
}

.service-grid span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.service-grid h3 {
  margin: 18px 0 10px;
}

.service-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 28px 0 38px;
  color: var(--muted);
  font-size: 13px;
}

.video-dialog {
  width: min(1080px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: #080706;
  color: var(--text);
}

.video-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 7, 6, 0.74);
  color: var(--text);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.dialog-body video {
  width: 100%;
  max-height: 68vh;
  background: #000;
}

.dialog-meta {
  padding: 22px;
}

.dialog-meta h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.dialog-meta p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

  .nav-links {
    gap: 14px;
  }

  .hero {
    min-height: 680px;
  }

  .intro,
  .work-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .brand small {
    display: none;
  }

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

  .hero {
    min-height: 620px;
    padding-top: 108px;
  }

  h1 {
    font-size: 38px;
  }

  .mobile-only {
    display: block;
  }

  .hero-copy {
    font-size: 16px;
  }

  .section {
    width: min(100% - 32px, var(--max));
    padding: 56px 0;
  }

  .work-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    width: min(100% - 32px, var(--max));
  }

  .site-footer {
    flex-direction: column;
  }
}
