:root {
  --ink: #f4f4f1;
  --paper: #0c0c0c;
  --white: #ffffff;
  --muted: #999995;
  --line: #363633;
  --signal: #d8ff3e;
  --max: 1480px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 74px;
  padding: 18px 28px;
  color: var(--white);
  transition: background 180ms ease, color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(12, 12, 12, 0.96);
  color: var(--ink);
  backdrop-filter: blur(12px);
}

.brand-mark {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: fit-content;
  font-size: 15px;
  font-weight: 700;
}

.brand-mark small {
  font-size: 12px;
  font-weight: 400;
}

.site-nav {
  display: flex;
  gap: 26px;
  font-size: 13px;
}

.site-nav a {
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: currentColor;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 96svh;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  transition: opacity 700ms ease, transform 7s ease;
}

.hero-media.is-changing {
  opacity: 0;
}

.hero-shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.08) 45%, rgba(0, 0, 0, 0.72));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
  align-items: end;
  gap: 40px;
  width: 100%;
  padding: 120px 28px 34px;
}

.hero .eyebrow {
  position: absolute;
  top: 66px;
  left: 28px;
  color: var(--white);
}

.hero h1 {
  margin: 0;
  font-size: clamp(64px, 11vw, 176px);
  font-weight: 500;
  line-height: 0.82;
}

.hero-kicker {
  position: absolute;
  top: 110px;
  right: 28px;
  margin: 0;
  font-size: 14px;
}

.hero-copy {
  max-width: 440px;
  margin: 0 0 4px;
  font-size: 15px;
}

.hero-actions {
  display: none;
}

.hero-meta {
  position: absolute;
  right: 28px;
  bottom: 34px;
  z-index: 2;
  display: none;
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro-band,
.services-section,
.work-section,
.press-section,
.contact-section {
  padding: 110px 28px;
}

.intro-band {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.intro-copy h2,
.section-heading h2,
.work-top h2,
.contact-copy h2 {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(36px, 5vw, 76px);
  font-weight: 400;
  line-height: 1.02;
}

.intro-copy p {
  max-width: 720px;
  margin: 38px 0 0 auto;
  color: var(--muted);
  font-size: 17px;
}

.services-section,
.work-section,
.press-section,
.contact-section {
  max-width: var(--max);
  margin-inline: auto;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 32px;
  margin-bottom: 64px;
}

.service-grid {
  border-top: 1px solid var(--ink);
}

.service-grid article {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  align-items: baseline;
  min-height: auto;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.service-grid span,
.service-grid p {
  color: var(--muted);
  font-size: 13px;
}

.service-grid h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
}

.service-grid p {
  margin: 0;
}

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

.work-top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 54px;
}

.work-top .section-label {
  display: block;
  margin-bottom: 20px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 14px;
}

.filter {
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.filter.is-active {
  border-color: var(--ink);
  color: var(--ink);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 72px 18px;
}

.project-card {
  grid-column: span 6;
  display: grid;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

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

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #202020;
  filter: saturate(0.92);
  transition: filter 220ms ease, transform 400ms ease;
}

.project-card:hover img,
.project-card:focus-visible img {
  filter: saturate(1.08);
  transform: scale(1.012);
}

.project-card-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  padding: 14px 0 0;
  border-top: 1px solid var(--ink);
}

.project-card h3 {
  grid-column: 1;
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
}

.project-card p {
  display: none;
}

.project-meta {
  display: contents;
  color: var(--muted);
  font-size: 12px;
}

.project-meta:first-child span:first-child {
  grid-column: 1;
  grid-row: 2;
}

.project-meta:first-child span:last-child {
  grid-column: 2;
  grid-row: 1;
}

.project-meta:last-child span:first-child {
  grid-column: 2;
  grid-row: 2;
}

.project-meta:last-child span:last-child {
  display: none;
}

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

.press-layout {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 32px;
}

.press-feature {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--ink);
}

.press-feature h3 {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
}

.press-feature p {
  color: var(--muted);
  font-size: 13px;
}

.press-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.press-list li {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.press-list span {
  color: var(--muted);
  font-size: 12px;
}

.press-list strong {
  font-size: 15px;
  font-weight: 400;
}

.contact-section {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 32px;
  align-items: end;
  border-top: 1px solid var(--line);
}

.contact-copy .section-label {
  display: block;
  margin-bottom: 20px;
}

.contact-actions {
  display: grid;
  gap: 0;
}

.button {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.button::after {
  content: "\2197";
}

.project-dialog {
  width: min(1480px, calc(100% - 28px));
  max-height: calc(100svh - 28px);
  padding: 0;
  border: 0;
  background: #151515;
  color: var(--ink);
  overflow: auto;
}

.project-dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.project-dialog[open] {
  display: block;
}

.dialog-cover {
  width: 100%;
  height: min(76svh, 920px);
  object-fit: cover;
}

.dialog-body {
  display: grid;
  grid-template-columns: 1fr 1.35fr 0.65fr;
  gap: 48px;
  align-items: start;
  padding: 48px 30px 72px;
  border-bottom: 1px solid var(--line);
}

.dialog-body h2 {
  margin: 16px 0 0;
  font-size: clamp(36px, 5vw, 76px);
  font-weight: 400;
  line-height: 1.05;
}

.dialog-description {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.dialog-description:empty {
  display: none;
}

.dialog-body dl {
  margin: 28px 0 0;
}

.dialog-body dl div {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.dialog-body dt {
  color: var(--muted);
}

.dialog-body dd {
  margin: 0;
}

.dialog-gallery {
  padding: 0;
}

.dialog-gallery img {
  width: 100%;
  height: auto;
  margin: 0;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid var(--white);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.dialog-close::before,
.dialog-close::after {
  position: absolute;
  top: 18px;
  left: 10px;
  width: 16px;
  height: 1px;
  background: var(--white);
  content: "";
}

.dialog-close::before {
  transform: rotate(45deg);
}

.dialog-close::after {
  transform: rotate(-45deg);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .hero-content,
  .intro-band,
  .section-heading,
  .work-top,
  .press-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .filter-tabs {
    justify-content: flex-start;
  }

  .dialog-cover {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .dialog-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 64px;
    padding: 14px 18px;
  }

  .site-header.menu-open {
    background: rgba(12, 12, 12, 0.98);
  }

  .brand-mark {
    position: relative;
    z-index: 35;
  }

  .brand-mark small {
    display: none;
  }

  .nav-toggle {
    position: relative;
    z-index: 35;
    display: grid;
    gap: 5px;
    width: 36px;
    height: 36px;
    place-content: center;
    border: 0;
    background: transparent;
    color: inherit;
  }

  .nav-toggle span {
    width: 20px;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
    z-index: 32;
    display: grid;
    align-content: start;
    gap: 0;
    padding: 6px 18px 18px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(12, 12, 12, 0.98);
    color: var(--white);
    font-size: 18px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(-100% - 64px));
    visibility: hidden;
    transition: transform 180ms ease, opacity 180ms ease, visibility 180ms ease;
  }

  .site-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .hero {
    min-height: 92svh;
  }

  .hero .eyebrow {
    top: 72px;
    left: 18px;
    max-width: 260px;
  }

  .hero-kicker {
    top: auto;
    right: 18px;
    bottom: 18px;
  }

  .hero-content {
    align-content: end;
    padding: 120px 18px 76px;
  }

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

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

  .intro-band,
  .services-section,
  .work-section,
  .press-section,
  .contact-section {
    padding: 72px 18px;
  }

  .intro-copy h2,
  .section-heading h2,
  .work-top h2,
  .contact-copy h2 {
    font-size: 36px;
  }

  .intro-copy p {
    margin-left: 0;
    font-size: 15px;
  }

  .service-grid article {
    grid-template-columns: 44px 1fr;
    gap: 8px;
  }

  .service-grid p {
    grid-column: 2;
  }

  .project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .project-card {
    grid-column: 1;
  }

  .press-list li {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
    padding: 24px 18px;
  }

  .dialog-body {
    gap: 20px;
    padding: 36px 18px 52px;
  }

  .dialog-gallery {
    padding: 0;
  }
}

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