:root {
  color-scheme: light;
  --ink: #0b0b0b;
  --paper: #f6f6f3;
  --white: #ffffff;
  --muted: #737373;
  --line: rgba(11, 11, 11, 0.16);
  --accent: #3157ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.modal-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  min-height: 82px;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding: 0 clamp(20px, 4vw, 64px);
  color: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--ink);
  background: var(--white);
  font-size: 12px;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 44px);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

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

nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

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

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-items: end;
  padding: 132px clamp(20px, 4vw, 64px) clamp(34px, 5vw, 70px);
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #111;
}

.hero-media img {
  display: none;
}

.hero-media img:first-of-type {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.hero-media video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.05) 72%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 32%, rgba(0, 0, 0, 0.64));
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 1050px;
  padding-right: min(30vw, 390px);
}

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

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(68px, 10vw, 156px);
  font-weight: 500;
  line-height: 0.85;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(44px, 6.5vw, 98px);
  font-weight: 500;
  line-height: 0.92;
}

h3 {
  margin-bottom: 8px;
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 500;
  line-height: 1.1;
}

.hero-subtitle {
  max-width: 570px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(16px, 1.5vw, 20px);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid currentColor;
  border-radius: 0;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.hero .button.primary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.hero .button.primary:hover {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
}

.hero .button.secondary {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.58);
}

.hero .button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.hero-feature {
  position: absolute;
  right: clamp(20px, 4vw, 64px);
  bottom: clamp(34px, 5vw, 70px);
  display: grid;
  width: min(310px, 28vw);
  grid-template-columns: 54px 1fr;
  gap: 15px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.55);
}

.hero-feature p,
.hero-feature strong {
  display: block;
  margin: 0;
}

.hero-feature p {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-feature strong {
  font-size: 13px;
}

.feature-play,
.project-play,
.dialog-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.feature-play {
  width: 54px;
  height: 54px;
  color: var(--white);
  background: var(--accent);
  transition: transform 180ms ease;
}

.feature-play:hover,
.project-play:hover {
  transform: scale(1.08);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
}

.stats-band div {
  display: grid;
  min-height: 134px;
  align-content: center;
  padding: 22px 0;
}

.stats-band div + div {
  padding-left: clamp(18px, 3vw, 52px);
  border-left: 1px solid var(--line);
}

.stats-band strong {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 500;
  line-height: 1;
}

.stats-band span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.section {
  padding: clamp(90px, 11vw, 160px) clamp(20px, 4vw, 64px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(250px, 0.55fr);
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 92px);
}

.section-heading .eyebrow,
.section-heading h2 {
  grid-column: 1;
}

.section-heading p:not(.eyebrow) {
  grid-column: 2;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 15px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 34px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.filter-button {
  min-height: 30px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.filter-button:hover,
.filter-button[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--ink);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(58px, 8vw, 120px) clamp(22px, 4vw, 64px);
  counter-reset: projects;
}

.project-card {
  display: grid;
  align-content: start;
  counter-increment: projects;
}

.project-card:nth-child(even) {
  padding-top: clamp(40px, 6vw, 90px);
}

.project-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #171717;
}

.project-poster img {
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78);
  transition:
    transform 600ms cubic-bezier(0.2, 0.7, 0, 1),
    filter 300ms ease;
}

.project-card:hover .project-poster img {
  filter: saturate(1);
  transform: scale(1.025);
}

.project-play {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease;
}

.project-body {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 22px 54px 0 0;
  border-top: 1px solid var(--ink);
}

.project-body::after {
  position: absolute;
  top: 22px;
  right: 0;
  color: var(--muted);
  content: counter(projects, decimal-leading-zero);
  font-size: 11px;
  font-weight: 800;
}

.project-meta {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-body p {
  max-width: 600px;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 14px;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.66fr) minmax(360px, 1fr);
  gap: clamp(40px, 9vw, 150px);
  align-items: center;
  color: var(--white);
  background: var(--ink);
}

.about-image {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #222;
}

.about-image img {
  height: 100%;
  object-fit: cover;
}

.about-copy .eyebrow {
  color: #7790ff;
}

.about-copy h2 {
  max-width: 820px;
}

.about-copy p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(15px, 1.4vw, 18px);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.service-list span {
  padding: 13px 0;
  color: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.service-list span:nth-child(even) {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.contact-section {
  display: flex;
  min-height: 430px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(80px, 11vw, 160px) clamp(20px, 4vw, 64px);
  background: var(--white);
}

.contact-section h2 {
  max-width: 800px;
  margin-bottom: 0;
}

.contact-section .button.primary {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.contact-section .button.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.contact-section .button.secondary {
  background: transparent;
}

.contact-section .button.secondary:hover {
  color: var(--white);
  background: var(--ink);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 25px clamp(20px, 4vw, 64px);
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.video-dialog {
  width: min(1060px, calc(100% - 30px));
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: 0;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.48);
}

.video-dialog::backdrop {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.72);
  font-size: 24px;
}

.video-shell {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  background: #0c0c0c;
}

.video-shell video,
.video-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.38);
  text-align: center;
}

.video-placeholder span {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  place-items: center;
  color: var(--white);
  background: var(--accent);
  border-radius: 50%;
}

.dialog-meta {
  padding: 24px;
}

.dialog-meta .eyebrow {
  margin-bottom: 8px;
}

.dialog-description {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-copy {
    padding-right: 0;
  }

  .hero-feature {
    width: 280px;
  }

  .section-heading,
  .about-section {
    grid-template-columns: 1fr;
  }

  .section-heading .eyebrow,
  .section-heading h2,
  .section-heading p:not(.eyebrow) {
    grid-column: auto;
  }

  .about-image {
    width: min(540px, 84%);
    aspect-ratio: 5 / 4;
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 68px;
    padding-block: 12px;
  }

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

  nav {
    gap: 18px;
  }

  .hero {
    min-height: 780px;
    padding-top: 112px;
    padding-bottom: 32px;
  }

  .hero-media img:first-of-type,
  .hero-media video {
    object-position: 58% center;
  }

  .hero-media::after {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.12)),
      linear-gradient(180deg, rgba(0, 0, 0, 0.44), transparent 28%, rgba(0, 0, 0, 0.82));
  }

  h1 {
    font-size: 62px;
  }

  h2 {
    font-size: 44px;
  }

  .hero-copy {
    align-self: end;
    padding-bottom: 128px;
  }

  .hero-subtitle {
    max-width: 460px;
    font-size: 16px;
  }

  .hero-feature {
    right: 20px;
    bottom: 30px;
    left: 20px;
    width: auto;
  }

  .stats-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-band div {
    min-height: 112px;
  }

  .stats-band div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .stats-band div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .section-heading {
    gap: 16px;
  }

  .filter-bar {
    gap: 15px;
  }

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

  .project-card:nth-child(even) {
    padding-top: 0;
  }

  .project-poster {
    aspect-ratio: 4 / 3;
  }

  .about-image {
    width: 100%;
  }

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

  .service-list span:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .contact-section {
    min-height: 520px;
  }

  .contact-actions,
  .hero-actions {
    width: 100%;
  }

  .contact-actions .button {
    width: 100%;
  }

  footer {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
