.hero-copy {
  max-width: 38rem;
  margin: clamp(1.8rem, 3vw, 2.8rem) 0 0;
  color: var(--soft);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.45;
  letter-spacing: -.02em;
}
.js .hero-copy { animation: fadeIn .8s .28s both var(--ease); }

.project-filters {
  margin: 0 0 clamp(2rem, 3.5vw, 3.2rem);
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.project-filter {
  appearance: none;
  padding: .65rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .025em;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.project-filter span { margin-left: .3rem; opacity: .58; }
.project-filter:hover,
.project-filter:focus-visible { color: var(--paper); border-color: var(--line-strong); }
.project-filter.is-active { background: var(--paper); border-color: var(--paper); color: var(--canvas); }
.project-card[hidden] { display: none; }
.project-cover {
  appearance: none;
  width: 100%;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.play-mark {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 1rem;
  padding: .55rem .7rem;
  border: 1px solid rgba(248, 249, 250, .36);
  border-radius: 999px;
  background: rgba(33, 37, 41, .74);
  color: var(--paper);
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  transition: background .2s ease, color .2s ease;
}
.project-cover:hover .play-mark,
.project-cover:focus-visible .play-mark { background: var(--paper); color: var(--canvas); }

.services { background: var(--canvas); color: var(--paper); }
.services-inner {
  width: min(100%, calc(var(--max-width) + (var(--page-pad) * 2)));
  margin-inline: auto;
  padding: clamp(4.5rem, 7vw, 7rem) var(--page-pad);
  border-top: 1px solid var(--line);
}
.section-heading {
  display: grid;
  grid-template-columns: minmax(11rem, .7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 6rem);
  margin-bottom: clamp(3rem, 5vw, 5rem);
}
.section-heading > p {
  margin: .45rem 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.section-heading h2 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.2rem, 4.5vw, 4.7rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.055em;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.services-grid article {
  min-height: 15rem;
  padding: 1.25rem clamp(1rem, 2vw, 1.8rem) 1.5rem;
  border-bottom: 1px solid var(--line);
}
.services-grid article + article { border-left: 1px solid var(--line); }
.services-grid span { color: var(--muted); font-family: var(--mono); font-size: .58rem; }
.services-grid h3 {
  margin: clamp(3rem, 5vw, 5rem) 0 .75rem;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -.035em;
}
.services-grid p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }

.video-dialog {
  width: min(92vw, 68rem);
  max-height: 92svh;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--canvas);
  color: var(--paper);
}
.video-dialog::backdrop { background: rgba(0, 0, 0, .82); backdrop-filter: blur(8px); }
.video-dialog__inner { padding: clamp(1rem, 2.5vw, 2rem); }
.video-dialog__close {
  appearance: none;
  margin: 0 0 1rem auto;
  padding: .45rem 0;
  display: block;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .66rem;
  cursor: pointer;
}
.video-dialog__close:hover,
.video-dialog__close:focus-visible { color: var(--paper); }
.video-dialog__stage {
  max-height: 70svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #111;
}
.video-dialog video { width: 100%; max-height: 70svh; display: block; background: #111; }
.video-dialog__meta {
  padding-top: 1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
}
.video-dialog__meta h2 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.8rem); font-weight: 500; letter-spacing: -.035em; }
.video-dialog__meta p { margin: 0; color: var(--muted); font-family: var(--mono); font-size: .62rem; text-align: right; }
body:has(.video-dialog[open]) { overflow: hidden; }

@media (max-width: 900px) {
  .section-heading { grid-template-columns: 1fr; gap: 1.6rem; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid article:nth-child(3) { border-left: 0; }
  .services-grid article:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 700px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-grid article { min-height: auto; }
  .services-grid article + article { border-left: 0; border-top: 1px solid var(--line); }
  .services-grid h3 { margin-top: 2.5rem; }
  .video-dialog { width: 100%; max-height: 100svh; border-inline: 0; }
  .video-dialog__meta { align-items: flex-start; flex-direction: column; gap: .45rem; }
  .video-dialog__meta p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero-copy { animation: none; }
}
