:root {
  --ink: #111111;
  --muted: #6f6f6f;
  --paper: #f6f4ef;
  --panel: #ffffff;
  --line: rgba(17, 17, 17, 0.12);
  --accent: #9b744a;
  --deep: #202020;
  --radius: 8px;
  --shadow: 0 24px 60px rgba(17, 17, 17, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 58px);
  backdrop-filter: blur(20px);
  background: rgba(246, 244, 239, 0.78);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.brand {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 50%;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: clamp(18px, 3vw, 38px);
  color: var(--muted);
  font-size: 14px;
}

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

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

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

main {
  overflow: hidden;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: 118px clamp(20px, 5vw, 76px) 70px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(74px, 12vw, 170px);
  line-height: 0.88;
  font-weight: 800;
}

.hero-role {
  margin-bottom: 28px;
  color: var(--deep);
  font-size: clamp(22px, 3vw, 42px);
  line-height: 1.18;
  font-weight: 650;
}

.hero-text {
  max-width: 650px;
  color: #3d3d3d;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.85;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 14px;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #ffffff;
  background: var(--ink);
}

.button.ghost {
  background: transparent;
}

.hero-visual {
  position: relative;
  overflow: visible;
  border-radius: var(--radius);
  box-shadow: none;
  background: transparent;
}

.hero-visual img {
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  transition: transform 300ms ease, filter 300ms ease;
  cursor: zoom-in;
}

.hero-visual:hover img {
  transform: scale(1.025);
  filter: brightness(1.04) contrast(1.02);
}

.visual-caption {
  position: static;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
}

.visual-caption span,
.work-info span,
.video-card span,
.contact-list span {
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.capabilities,
.works,
.videos,
.contact {
  padding: 88px clamp(20px, 5vw, 76px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading.wide {
  max-width: 980px;
}

.section-heading h2,
.contact h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 78px);
  line-height: 1.02;
}

.section-heading p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

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

.capability-grid article {
  min-height: 240px;
  padding: 28px;
  background: var(--paper);
}

.capability-grid span {
  display: inline-block;
  margin-bottom: 48px;
  color: var(--accent);
  font-weight: 800;
}

.capability-grid h3 {
  margin-bottom: 14px;
  font-size: 22px;
}

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

.works {
  background: #ffffff;
}

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

.filter-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #ffffff;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.filter-button:hover,
.filter-button.active {
  color: #ffffff;
  background: var(--ink);
  border-color: var(--ink);
}

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

.work-card {
  position: relative;
  overflow: visible;
  border-radius: var(--radius);
  background: transparent;
  isolation: isolate;
}

.work-card.large {
  grid-column: span 2;
  grid-row: span 2;
}

.work-card.tall {
  grid-row: span 2;
}

.work-card img {
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  transition: transform 300ms ease, filter 300ms ease;
  cursor: zoom-in;
}

.work-card::after {
  display: none;
}

.work-info {
  position: static;
  z-index: 2;
  padding: 14px 0 0;
  color: var(--ink);
  transform: none;
  transition: none;
}

.work-info h3 {
  margin: 8px 0 10px;
  font-size: clamp(20px, 2vw, 32px);
  line-height: 1.08;
}

.work-info p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  opacity: 1;
  transition: none;
}

.work-card:hover img {
  transform: scale(1.025);
  filter: saturate(1.06) contrast(1.05);
}

.work-card:hover::after {
  opacity: 0;
}

.work-card:hover .work-info,
.work-card:focus-within .work-info {
  transform: none;
}

.work-card:hover .work-info p,
.work-card:focus-within .work-info p {
  opacity: 1;
}

.work-card.hidden,
.video-card.hidden {
  display: none;
}

.hidden-section {
  display: none;
}

.image-viewer {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(246, 244, 239, 0.94);
  backdrop-filter: blur(18px);
}

.image-viewer.open {
  display: flex;
}

.image-viewer img {
  width: auto;
  max-width: 96vw;
  height: auto;
  max-height: 92vh;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.image-viewer button {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.videos {
  background: #1b1b1b;
  color: #ffffff;
  min-height: 100vh;
  display: grid;
  align-content: center;
}

.videos .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

.video-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: end;
  max-width: 1180px;
}

.video-heading h2 {
  white-space: nowrap;
}

.video-heading p:not(.eyebrow) {
  max-width: 760px;
}

.video-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.video-card {
  overflow: visible;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
}

.video-card.wide-video {
  grid-column: 2;
}

.video-card video {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: transparent;
  border-radius: var(--radius);
}

.video-card.vertical-video video {
  aspect-ratio: 9 / 16;
  max-height: 680px;
  object-fit: contain;
}

.video-card.vertical-video {
  grid-row: span 2;
}

.video-card div {
  padding: 16px 0 0;
}

.video-card span {
  color: var(--accent);
}

.video-card h3 {
  margin: 8px 0 0;
  font-size: clamp(22px, 2.8vw, 36px);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 48px;
  align-items: end;
  min-height: 62vh;
}

.contact-list {
  margin: 0;
  font-style: normal;
  border-top: 1px solid var(--line);
}

.contact-list p {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  color: var(--deep);
}

.contact-list span {
  color: var(--accent);
}

@media (max-width: 1100px) {
  .hero,
  .contact {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-header {
    padding: 16px 18px;
  }

  .brand {
    width: 38px;
    height: 38px;
  }

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

  .hero {
    padding-top: 96px;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 0;
  }

  .visual-caption {
    display: block;
  }

  .visual-caption strong {
    display: block;
    margin-top: 6px;
  }

  .capabilities,
  .works,
  .videos,
  .contact {
    padding-top: 64px;
    padding-bottom: 64px;
  }

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

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

  .video-heading h2 {
    font-size: clamp(34px, 13vw, 58px);
  }

  .capability-grid article {
    min-height: auto;
  }

  .capability-grid span {
    margin-bottom: 28px;
  }

  .work-card,
  .work-card.large,
  .work-card.tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
  }

  .video-card.wide-video {
    grid-column: auto;
  }

  .video-card.vertical-video {
    grid-row: auto;
  }

  .contact-list p {
    grid-template-columns: 70px 1fr;
  }
}

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