.cm-site-header, .cm-site-banner {
  font: 400 16px/1.4 Arial, "Microsoft YaHei", system-ui, sans-serif;
}
.cm-site-header *, .cm-site-banner * { box-sizing: border-box; }
.cm-site-header {
  position: relative;
  z-index: 5;
  color: #fff;
  background: #191919;
}
.cm-site-header-inner {
  display: flex;
  align-items: stretch;
  width: min(100%, 1160px);
  min-height: 89px;
  margin-inline: auto;
}
.cm-site-logo {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 240px;
  background: #e60012;
  border-radius: 0 23px 0 0;
}
.cm-site-logo::before {
  position: absolute;
  right: 100%;
  width: max(0px, calc((100vw - 1160px) / 2));
  height: 100%;
  background: inherit;
  content: "";
}
.cm-site-logo img { display: block; width: 205px; height: auto; }
.cm-site-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-around;
  gap: 10px;
  padding-inline: 16px;
}
.cm-site-header a, .cm-site-header summary { color: #fff; text-decoration: none; }
.cm-site-header a:hover, .cm-site-header summary:hover { text-decoration: underline; }
.cm-site-header summary { cursor: pointer; }
.cm-site-works-menu { position: relative; }
.cm-site-works-menu ul, .cm-site-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}
.cm-site-works-menu ul {
  position: absolute;
  inset: auto auto auto 50%;
  translate: -50% 0;
  z-index: 1;
  min-width: max-content;
  border-top: 3px solid #e60012;
  background: #191919;
  box-shadow: 0 8px 24px #0005;
}
.cm-site-works-menu li a, .cm-site-mobile-menu li a { display: block; padding: 9px 15px; }
.cm-site-language { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; }
.cm-site-language [aria-current] { color: #d0d0d0; }
.cm-site-mobile-actions { display: none; }
.cm-site-banner {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(295px, 17.6vw, 405px);
  overflow: hidden;
  text-align: center;
  color: #111;
  background: #eee;
}
.cm-site-banner picture, .cm-site-banner picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cm-site-banner picture img { display: block; object-fit: cover; object-position: center; }
.cm-site-banner::before {
  position: absolute;
  inset: 0;
  content: "";
  background: center / cover no-repeat url("/assets/optimized-images/b567a7c82d55ae94a9ab513c9d4061badf60a6fe7d953a1115acdaac6b7f2b92.webp");
  transform: translateX(100%);
}
.cm-site-banner-copy {
  position: relative;
  width: min(90%, 740px);
  margin: 16px auto;
  padding: clamp(18px, 2.8vw, 55px) clamp(12px, 4vw, 65px) clamp(15px, 2vw, 36px);
  border: clamp(4px, .38vw, 7px) solid #fff;
  background: #fff9;
}
.cm-site-banner-copy p { margin: 0; }
.cm-site-banner-copy .cm-site-banner-title { font-size: clamp(30px, 3.6vw, 66px); line-height: 1.16; }
.cm-site-banner-copy .cm-site-banner-experience { margin-top: 9px; color: #333; }
.cm-site-banner-copy .cm-site-banner-line {
  max-width: 510px;
  margin: clamp(12px, 2vw, 35px) auto 0;
  padding: 8px 12px;
  background: #080808;
  color: #9dffae;
  font-size: clamp(14px, 1.2vw, 22px);
  font-weight: 700;
}
/* Match the contact page's two slides: 2.5s idle followed by a 2s leftward slide. */
@media (prefers-reduced-motion: no-preference) {
  .cm-site-banner picture, .cm-site-banner-copy {
    animation: cm-banner-works 9s linear infinite;
  }
  .cm-site-banner::before { animation: cm-banner-studio 9s linear infinite; }
  @media (hover: hover) {
    .cm-site-banner:hover picture,
    .cm-site-banner:hover .cm-site-banner-copy,
    .cm-site-banner:hover::before { animation-play-state: paused; }
  }
}
@keyframes cm-banner-works {
  0% { transform: translateX(0); }
  27.7778% { transform: translateX(0); animation-timing-function: cubic-bezier(.23, 1, .32, 1); }
  50% { transform: translateX(-100vw); animation-timing-function: step-end; }
  50.01% { transform: translateX(100vw); }
  77.7778% { transform: translateX(100vw); animation-timing-function: cubic-bezier(.23, 1, .32, 1); }
  100% { transform: translateX(0); }
}
@keyframes cm-banner-studio {
  0% { transform: translateX(100%); }
  27.7778% { transform: translateX(100%); animation-timing-function: cubic-bezier(.23, 1, .32, 1); }
  50% { transform: translateX(0); }
  77.7778% { transform: translateX(0); animation-timing-function: cubic-bezier(.23, 1, .32, 1); }
  100% { transform: translateX(-100%); }
}
@media (max-width: 800px) {
  .cm-site-header-inner { min-height: 66px; justify-content: space-between; }
  .cm-site-logo { flex: 0 1 170px; padding-inline: 10px; }
  .cm-site-logo img { width: min(100%, 145px); }
  .cm-site-nav { display: none; }
  .cm-site-mobile-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    font-size: 14px;
  }
  .cm-site-mobile-menu ul {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #191919;
    box-shadow: 0 8px 24px #0005;
  }
  .cm-site-banner { min-height: 240px; }
  .cm-site-banner-copy .cm-site-banner-title { font-size: clamp(22px, 6.3vw, 35px); }
  .cm-site-banner-copy .cm-site-banner-experience { font-size: 14px; }
}

