/* 1. 字体与尺寸：主要颜色、留白和字体在这里调整。 */
@font-face {
  font-family: Futura;
  src: url("../assets/fonts/futura-book.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Futura;
  src: url("../assets/fonts/futura-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Futura;
  src: url("../assets/fonts/futura-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Univers;
  src: url("../assets/fonts/univers-condensed.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --black: #000;
  --white: #fff;
  --margin: clamp(12px, 7.8px + 1.07vw, 24px);
  --gutter: clamp(16px, 13.2px + 0.71vw, 24px);
  --section: clamp(64px, 41.5px + 5.72vw, 128px);
  --large-type: clamp(32px, 20.8px + 2.86vw, 64px);
  --heading-type: 24px;
  --small-type: 12px;
  --panel-type: 16px;
  --logo-width: clamp(140px, 111.9px + 7.15vw, 220px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body,
h1,
h2,
h3,
p,
ul {
  margin: 0;
}
html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
html::-webkit-scrollbar {
  display: none;
}
body {
  background: var(--black);
  color: var(--white);
  font:
    400 16px/1.5 Futura,
    sans-serif;
  overflow-x: clip;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  padding: 0;
  list-style: none;
}
img,
video,
canvas {
  display: block;
  max-width: 100%;
}
img,
video {
  height: auto;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
.label {
  font:
    400 var(--small-type)/1.1 Univers,
    sans-serif;
  text-transform: uppercase;
}
.body-small {
  font-size: var(--small-type);
  font-weight: 500;
  text-transform: uppercase;
}
dialog {
  border: 0;
  padding: 0;
  color: inherit;
}
html:has(dialog[open]) {
  overflow: hidden;
}
html.lenis-stopped {
  overflow: hidden;
}

/* 2. 导航、加载和首屏 */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100lvh;
  z-index: -1;
}
.scene-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  z-index: -2;
}
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: var(--margin);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #000;
  transition: color 0.3s;
}
#about,
#training {
  scroll-margin-top: var(--header-height);
}
.brand {
  display: block;
  width: var(--logo-width);
}
.brand img {
  width: 100%;
  height: auto;
  filter: brightness(0);
}
.site-header.is-light {
  color: #fff;
}
.site-header.is-light .brand img {
  filter: brightness(0) invert(1);
}
.desktop-nav {
  display: flex;
  gap: clamp(24px, 21.2px + 0.71vw, 32px);
  align-self: flex-start;
  align-items: center;
}
.desktop-nav a,
.desktop-nav button {
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.desktop-nav a:hover,
.desktop-nav button:hover {
  opacity: 0.6;
}
.menu-toggle {
  display: none;
}
.language-toggle {
  white-space: nowrap;
}
.desktop-nav .language-toggle {
  border-bottom: 1px solid currentColor;
  padding-block: 0 3px;
}
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: #fff;
  color: #000;
  transition: opacity 0.4s;
}
.preloader.is-ready {
  opacity: 0;
  pointer-events: none;
}
.loading-dot {
  width: 2.38vh;
  height: 2.38vh;
  border-radius: 50%;
  background: #000;
}
#loading-percent {
  position: absolute;
  right: var(--margin);
  top: var(--margin);
}
#loading-status,
#loading-error {
  position: absolute;
  bottom: 12%;
  max-width: 80%;
  font-size: 14px;
  text-align: center;
}
.hero {
  height: 100svh;
}
.hero-caption {
  position: fixed;
  inset: auto var(--margin) var(--margin);
  display: flex;
  justify-content: flex-end;
  align-items: end;
  z-index: 10;
  color: #000;
}
.hero-caption .scroll-hint {
  transition: opacity 0.25s;
}
.hero-caption.is-hidden {
  pointer-events: none;
}
.hero-caption.is-hidden .scroll-hint {
  opacity: 0;
}
.mosaic {
  /* End the shared fade with the first work row near the middle of the screen. */
  height: calc(77.5svh - var(--section));
}

/* 3. 作品展示网格 */
.work {
  padding: var(--section) var(--margin) calc(var(--section) + 200px);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px var(--gutter);
}
.project-card {
  display: block;
  min-width: 0;
  will-change: transform;
}
.lenis .project-card {
  /* Original project-grid parallax uses a one-second scrub. */
  transition: transform 1s var(--ease);
}
#project-grid > .project-card > div {
  /* Scroll controls opacity directly, including in reduced-motion mode. */
  transition-property: none;
}
.project-media {
  aspect-ratio: 348 / 259;
  position: relative;
  overflow: hidden;
  background: #111;
}
.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle at var(--pointer-x, 50%) var(--pointer-y, 50%),
    #fff8,
    #fff2 40%,
    transparent 70%
  );
  mix-blend-mode: overlay;
  transition: opacity 0.4s;
}
.project-media img,
.project-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.project-card:hover .project-media::after {
  opacity: 1;
}
.project-card:hover .project-media img,
.project-card:hover .project-media video {
  transform: scale(1.05);
}
.project-caption {
  margin-top: 8px;
}
.project-caption h3 {
  margin-top: -2px;
  font-size: var(--heading-type);
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
}
/* 4. 关于、能力卡片和服务 */
.about {
  position: relative;
  color: #000;
  padding-top: 0;
}
.about-intro,
.behind-scenes,
.training,
.services {
  position: relative;
}
.about-intro {
  padding: 0 var(--margin);
}
.about-intro h2 {
  width: 100%;
  margin-top: 24px;
  font-size: min(70px, 3.3vw);
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  text-align: justify;
}
@media (min-width: 768px) {
  .about-intro h2 {
    white-space: nowrap;
  }
  html[lang="en"] .about-intro h2 {
    font-size: min(70px, 2.8vw);
  }
}

.about-intro h3 {
  width: calc((100% + var(--gutter)) * 10 / 12 - var(--gutter));
  margin-top: 24px;
  font-size: 40px;
  line-height: 1.2;
  opacity: 0.8;
  /* font-weight: 700; */
  text-transform: uppercase;
  text-align: justify;
}

.behind-scenes {
  padding-top: clamp(60px, 30.1px + 7.6vw, 145px);
  padding-bottom: clamp(80px, 64.5px + 3.93vw, 124px);
}
#behind-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin: 0 var(--margin);
  font-size: clamp(22px, 1.5vw, 28px);
  line-height: 1.3;
}
#behind-heading::after {
  content: "";
  width: 118px;
  height: 18px;
  background:
    linear-gradient(90deg, #000 84%, transparent 84%),
    repeating-conic-gradient(#000 0 25%, transparent 0 50%) 0 0 / 2px 2px;
}
.behind-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(32px, 2.5vw, 48px);
  margin: 38px var(--margin) 0;
}
.behind-card {
  width: 100%;
  min-width: 0;
  position: relative;
  height: 360px;
  padding: clamp(28px, 2.4vw, 46px);
  border: 1px solid #555;
  background: #fff;
}
.behind-card::before,
.behind-card::after {
  content: "";
  position: absolute;
  inset: -10px;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  pointer-events: none;
}
.behind-card::before {
  background-image:
    linear-gradient(#000 0 0), linear-gradient(#000 0 0),
    linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  background-position: left top, right top, left bottom, right bottom;
}
.behind-card::after {
  top: 30%;
  bottom: auto;
  height: 18px;
  transform: translateY(-50%);
  background-image: linear-gradient(#bdbdbd 0 0), linear-gradient(#bdbdbd 0 0);
  background-position: left center, right center;
}
.behind-number {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #555;
  border-radius: 3px;
  background: #ddd;
  font: 24px/1 Arial, sans-serif;
}
.behind-card h4 {
  margin: 36px 0 16px;
  font-size: clamp(20px, 1.3vw, 24px);
  line-height: 1.3;
}
.behind-card p {
  color: #444;
  font-size: 16px;
  line-height: 1.7;
}
.training,
.services {
  margin-top: 48px;
  padding: 0 var(--margin) clamp(40px, 10.5px + 7.51vw, 124px);
}
.training-inner,
.services > h2,
.service-panels {
  width: calc((100% + var(--gutter)) * 10 / 11 - var(--gutter));
  margin-inline: auto;
  /* line-height: 1.2; */
}
.training {
  scroll-margin-top: clamp(80px, 8vw, 120px);
}
.training h2 {
  font-size: 80px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.training-intro {
  max-width: 1200px;
  margin: 32px auto 0;
  color: #333;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}
.training-intro span {
  display: inline-block;
}
.training-panels {
  display: grid;
  max-width: 1200px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(32px, 4vw, 64px);
  margin-inline: auto;
}
.training-panel {
  min-width: 0;
  min-height: 300px;
  padding: 28px 20px 32px;
  background: #f8f7f6;
}
.training-number {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #d5d5d5;
  border-radius: 50%;
  color: #b9b9b9;
  font: 24px/1 Arial, sans-serif;
}
.training-panel h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}
.training-panel ul {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
}
.training-panel li {
  position: relative;
  padding-left: 40px;
}
.training-panel li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 6px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  border-radius: 50% 0 0 50%;
  background: #ddd;
}
.services > h2 {
  font-size: 70px;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
  text-indent: 0;
}
.service-panels {
  max-width: 1200px;
  margin-top: clamp(40px, 10.5px + 7.51vw, 124px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
}
.service-panel {
  position: relative;
  padding: clamp(40px, 37.2px + 0.71vw, 48px);
  transform-origin: top right;
  transition-property: none;
}
.service-panel::after {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  background:
    linear-gradient(rgb(0 0 0 / var(--service-dot-0, 1)) 0 0) left top / 4px 4px no-repeat,
    linear-gradient(rgb(0 0 0 / var(--service-dot-1, 1)) 0 0) right top / 4px 4px no-repeat,
    linear-gradient(rgb(0 0 0 / var(--service-dot-2, 1)) 0 0) left bottom / 4px 4px no-repeat,
    linear-gradient(rgb(0 0 0 / var(--service-dot-3, 1)) 0 0) right bottom / 4px 4px no-repeat;
}
.clients-panel::after {
  background:
    linear-gradient(rgb(0 0 0 / var(--service-dot-0, 1)) 0 0) left top / 4px 4px no-repeat,
    linear-gradient(rgb(0 0 0 / var(--service-dot-1, 1)) 0 0) right top / 4px 4px no-repeat,
    linear-gradient(rgb(0 0 0 / var(--service-dot-2, 1)) 0 0) right bottom / 4px 4px no-repeat;
}
.metrics-panel::after {
  background:
    linear-gradient(rgb(0 0 0 / var(--service-dot-0, 1)) 0 0) left bottom / 4px 4px no-repeat,
    linear-gradient(rgb(0 0 0 / var(--service-dot-1, 1)) 0 0) right bottom / 4px 4px no-repeat;
}
.services-panel,
.clients-panel {
  /* padding-block: calc(clamp(40px, 37.2px + 0.71vw, 48px) + 32px); */
}
.services-panel {
  z-index: 2;
  background: #fdf7f7;
  container-type: inline-size;
}
.clients-panel {
  z-index: 1;
  background: #ddd;
  container-type: inline-size;
  padding-block: calc(clamp(50px, 37.2px + 0.71vw, 48px) + 30px);

}
.metrics-panel {
  background: #cacaca;
  grid-column: 1 / -1;
}
.service-metrics {
  --metric-gap: clamp(36px, 6vw, 96px);
  display: grid;
  grid-template-columns: repeat(3, max-content minmax(var(--metric-gap), 1fr)) max-content;
  row-gap: 32px;
  margin: 0;
  transform: translateX(clamp(1px, 0.75vw, 6px));
}
.service-metric-pair {
  display: contents;
}
.service-metric {
  min-width: 0;
  margin: 0;
}
.service-metric-divider {
  justify-self: center;
  width: 2px;
  margin-top: 64px;
  background: rgb(0 0 0 / 18%);
}
.service-metric dt {
  color: #333;
  font-size: 20px;
  line-height: 1.5;
}
.service-metric img {
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  object-fit: contain;
}
.service-metric-value {
  margin: 16px 0;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
}
.service-metric-description {
  margin: 0;
  color: #333;
  font-size: 18px;
  line-height: 1.5;
}
@media (max-width: 1023px) {
  .service-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
  .service-metric-pair {
    display: grid;
    grid-template-columns: max-content minmax(var(--metric-gap), 1fr) max-content;
  }
  .service-metrics > .service-metric-divider {
    display: none;
  }
}
/* Longer translated labels wrap within the existing service panels. */
html:not([lang="zh-CN"]) .clients-panel .annotation-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 94%;
  gap: 12px;
  font-size: clamp(13px, 1.2vw, 18px);
  line-height: 1.25;
}
html:not([lang="zh-CN"]) .annotation-grid > li {
  width: auto;
  height: auto;
  min-height: 3em;
  padding: 0.6em 0.7em;
  white-space: normal;
}
html:not([lang="zh-CN"]) #services-heading > span {
  white-space: nowrap;
}
@media (max-width: 1023px) {
  html:not([lang="zh-CN"]) .service-metric-pair {
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  }
}
@media (min-width: 768px) and (max-width: 1100px) {
  html:not([lang="zh-CN"]) .desktop-nav {
    gap: 16px;
  }
}
.service-panel h3 {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 600;
  line-height: 100%;
  size: 20px;
}
.service-panel ul{
  font-size: var(--panel-type);
  width: 84%; ;
  font-weight: 600;
  line-height: 32px;
  text-transform: uppercase;
}
.services-panel > ul {
  /* 正文随卡片内容区缩放，满宽时为 24px，行高同步缩放。 */
  font-size: clamp(16px, 4.7619cqw, 24px);
  line-height: 1.35;
}
.clients-panel > h3,
.clients-panel .annotation-grid {
  margin-left: 6%;
  transform: translateY(-16px);
}
.clients-panel > h3 {
  font-size: 20px;
}
.clients-panel .annotation-grid {
  /* 按内容区宽度缩放，卡片宽度由文字和内边距决定。 */
  transition-property: none;
  --annotation-unit: calc(100cqw / 504);
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: calc(20 * var(--annotation-unit)) calc(32 * var(--annotation-unit));
  width: max-content;
  font-size: calc(26 * var(--annotation-unit));
  font-weight: 400;
  line-height: 100%;
  letter-spacing: 0;
  text-align: center;
}
.annotation-grid > li {
  display: flex;
  transition-property: none;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: max-content;
  height: calc(56 * var(--annotation-unit));
  padding: calc(10 * var(--annotation-unit)) calc(30 * var(--annotation-unit));
  border: 1px solid #bfbfbf;
  border-radius: calc(6 * var(--annotation-unit));
  background: #ccc;
  white-space: nowrap;
}
@container (max-width: 360px) {
  .clients-panel > h3,
  .clients-panel .annotation-grid {
    --annotation-unit: calc(58.5cqw / 198);
    grid-template-columns: max-content;
  }
}

.service-panel > p {
  font-size: var(--panel-type);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

/* 5. 页尾和联系卡片 */
.site-footer {
  height: 100lvh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--margin);
  cursor: grab;
  touch-action: pan-y;
}
.site-footer.is-dragging {
  cursor: grabbing;
}
.site-footer:not([data-mascot-phase="ready"]) {
  cursor: default;
}
.site-footer.is-pressing {
  cursor: grabbing;
}
.footer-model-hit {
  /* Match the fixed 3D canvas so projecting controls cannot shift mobile page scrolling. */
  position: fixed;
  touch-action: none;
}
.footer-speech {
  position: fixed;
  z-index: 1;
  width: 204px;
  max-width: calc(100vw - 32px);
  padding: 14px 17px;
  color: #302a48;
  border: 1px solid #ffffffb3;
  border-radius: 18px;
  background: #f1edfff0;
  box-shadow: 0 8px 28px #0003;
  font: 400 14px/1.65 Arial, "Microsoft YaHei", sans-serif;
  text-align: left;
  cursor: pointer;
  transition: opacity .16s;
}
.footer-speech::before {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  background: #f1edff;
  transform: rotate(45deg);
}
.footer-speech[data-side="right"]::before {
  left: -7px;
  top: 28px;
}
.footer-speech[data-side="top"]::before {
  bottom: -7px;
  left: 36px;
}
.footer-speech.is-turning {
  opacity: 0;
  pointer-events: none;
}
.footer-speech-message,
.footer-reset {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}
.footer-reset {
  color: #635878;
  text-decoration: underline;
  text-decoration-color: #63587855;
  text-underline-offset: 3px;
}
.footer-speech button:focus-visible {
  outline: 2px solid #b8a5ff;
  outline-offset: 4px;
}
@media (max-width: 767px) {
  .footer-speech { width: 300px; }
}
.footer-arrival {
  position: fixed;
  z-index: 65;
  object-fit: contain;
  transform-origin: center;
  pointer-events: none;
  filter: drop-shadow(0 4px 7px #32285759);
  will-change: transform, clip-path;
}
.footer-portal {
  position: fixed;
  z-index: 64;
  border: 2px solid #a3d5ff;
  border-radius: 50%;
  background: radial-gradient(ellipse, #080b22 35%, #6642b9 66%, #90dcff 86%);
  box-shadow: 0 0 14px #75d2ffb3, 0 0 30px #9060f780;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.25);
  transition: opacity .22s, transform .35s;
  pointer-events: none;
}
.footer-portal.is-open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.assistant-launcher.is-in-footer,
.assistant-launcher.is-in-footer + .assistant-hint {
  visibility: hidden;
  pointer-events: none;
}
.footer-side {
  font:
    400 var(--small-type)/1.1 Univers,
    sans-serif;
  text-transform: uppercase;
}
.footer-tagline {
  position: absolute;
  top: 67%;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90%;
  text-align: center;
  font-size: clamp(28px, 20.2px + 1.83vw, 48px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}
html[lang="zh-CN"] .footer-tagline {
  line-height: 1.25;
}
html[lang="en"] .footer-tagline {
  width: 90%;
  font-size: 3.3vw;
}
.footer-tagline button {
  text-transform: inherit;
  text-decoration: underline;
  text-underline-offset: 0.09em;
}
.footer-bottom {
  position: absolute;
  inset: auto var(--margin) var(--margin);
  display: flex;
  justify-content: space-between;
}
.footer-bottom a {
  text-decoration: underline;
}
.contact-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(1600px, calc(100vw - 52px));
  max-width: calc(100vw - 24px);
  max-height: calc(100% - 24px);
  overscroll-behavior: contain;
  background: #fff;
  color: #333;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}
.contact-dialog[open] {
  display: block;
  animation: card-in 0.45s var(--ease);
}
.contact-dialog::backdrop {
  background: #0005;
  backdrop-filter: blur(24px);
}
.contact-dialog:not(.plugin-dialog) {
  width: 720px;
  height: fit-content;
  min-height: min(405px, calc(100svh - 24px));
  max-height: calc(100svh - 24px);
  overflow-y: auto;
  padding: 24px;
}
.contact-dialog:not(.plugin-dialog) h2 {
  max-width: calc(100% - 129px);
  margin: 0;
  font-size: clamp(32px, 2.1164vw, 64px);
  line-height: 1.2;
  font-weight: 700;
}
.contact-close {
  --close-cell: 64px;
  position: absolute;
  z-index: 2;
  top: clamp(32px, 4vw, 60px);
  right: clamp(24px, 4vw, 60px);
  display: flex;
  color: #333;
}
.contact-close > span {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--close-cell);
  height: var(--close-cell);
  border: 1px dashed #777;
}
.contact-close > span + span {
  border-left: 0;
}
.contact-close > span::before {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 4px;
  height: 4px;
  background: #333;
  box-shadow: calc(var(--close-cell) - 1px) 0 #333,
    0 calc(var(--close-cell) - 1px) #333,
    calc(var(--close-cell) - 1px) calc(var(--close-cell) - 1px) #333;
  content: "";
}
.contact-close-label {
  font: 700 14px/1 Univers, sans-serif;
}
.contact-close-icon {
  color: #888;
  font: 400 48px/1 Arial, sans-serif;
}
.contact-dialog:not(.plugin-dialog) .contact-close {
  --close-cell: 52px;
  top: 24px;
  right: 24px;
}
.contact-dialog:not(.plugin-dialog) .contact-close-label {
  font-size: 14px;
}
.contact-dialog:not(.plugin-dialog) .contact-close-icon {
  font-size: 40px;
}
.contact-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 55px;
}
.contact-training-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-width: 0;
}
.contact-training {
  min-width: 0;
}
.contact-training h3,
.contact-detail h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}
.contact-training p,
.contact-detail p,
.contact-detail a {
  margin: 12px 0 0;
  color: #858585;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.contact-training p + p {
  margin-top: 8px;
}
.contact-detail a:hover {
  color: #333;
}
.contact-details {
  display: grid;
  align-content: start;
  gap: 24px;
  min-width: 0;
  translate: 16px;
}
@media (min-width: 768px) {
  html[lang="zh-CN"] .contact-details {
    translate: 24px;
  }
}
.contact-detail p {
  margin-top: 6px;
}
.contact-detail .contact-highlight {
  color: #ff9436;
}
.contact-mark {
  align-self: end;
  width: 80px;
  height: auto;
}
.contact-dialog:not(.plugin-dialog) .contact-intro {
  margin: 0;
  min-width: 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  overflow-wrap: anywhere;
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(28px) rotateX(-12deg) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.plugin-dialog {
  --plugin-unit: min(1px, calc((100vw - 52px) / 1800));
  --plugin-inset: clamp(32px, calc(75 * var(--plugin-unit)), 75px);
  --plugin-close-size: clamp(52px, calc(104 * var(--plugin-unit)), 104px);
  --plugin-close-top: calc(56 * var(--plugin-unit));
  --plugin-heading-min-scale: 0.45;
  --plugin-heading-scale: 1;
  --plugin-heading-height: 0px;
  --plugin-heading-progress: 0;
  --plugin-heading-offset: 0px;
  width: min(1800px, calc(100vw - 52px));
  height: min(960px, calc(100svh - 24px));
  padding: 0;
  overflow: hidden;
}
.plugin-dialog[open] {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}
.plugin-dialog .contact-close {
  --close-cell: var(--plugin-close-size);
  z-index: 3;
  top: var(--plugin-close-top);
  right: calc(100 * var(--plugin-unit));
  background: #fff;
}
.plugin-dialog .contact-close-label {
  font-size: clamp(14px, calc(22 * var(--plugin-unit)), 22px);
}
.plugin-dialog .contact-close-icon {
  font-size: clamp(42px, calc(80 * var(--plugin-unit)), 80px);
}
.plugin-dialog::before {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: calc(var(--plugin-close-top) + max(var(--plugin-close-size), var(--plugin-heading-height)) + 16px);
  background: #fff;
  opacity: var(--plugin-heading-progress);
  pointer-events: none;
  content: "";
}
.plugin-scroll-heading {
  position: absolute;
  z-index: 3;
  top: calc(var(--plugin-close-top) + var(--plugin-heading-offset));
  left: var(--plugin-inset);
  width: calc(610 * var(--plugin-unit));
  transform: scale(var(--plugin-heading-scale));
  transform-origin: top left;
  visibility: hidden;
  pointer-events: none;
}
.plugin-dialog.is-scrolled .plugin-scroll-heading {
  visibility: visible;
}
.plugin-dialog.is-scrolled .plugin-copy .plugin-heading {
  visibility: hidden;
}
.plugin-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}
.plugin-article {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.plugin-article::-webkit-scrollbar {
  display: none;
}
.plugin-article {
  scroll-behavior: smooth;
}
.plugin-article:focus-visible {
  outline-offset: -2px;
}
.plugin-process {
  padding: 28px var(--plugin-inset) 56px;
  background-image: linear-gradient(180deg, #fff 12%, #fff0 90%),
    linear-gradient(#e5e7eb 1px, transparent 1px),
    linear-gradient(90deg, #e5e7eb 1px, transparent 1px);
  background-size: auto, 26px 26px, 26px 26px;
}
.plugin-process-title {
  min-width: 0;
  margin: 0 0 24px;
  color: #0f172a;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}
.plugin-section {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  padding: 20px 22px;
  border: 1px solid #dbe1ea;
  border-radius: 14px;
  background: linear-gradient(110deg, #f5f9ffcc, #effbfdcc);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.plugin-section + .plugin-section {
  margin-top: 12px;
}
.plugin-section:hover {
  border-color: #80a5ff;
  box-shadow: 0 4px 12px #2563ff0a;
}
.plugin-step-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}
.plugin-step-number {
  flex-shrink: 0;
  color: #2563ff;
  font: 14px/1.5 monospace;
  letter-spacing: 0.08em;
}
.plugin-step-copy p {
  color: #788394;
  font-size: 18px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.plugin-step-copy p + p {
  margin-top: 8px;
}
.plugin-platform-intro {
  margin: 0 var(--plugin-inset) 36px;
  padding: 28px 0;
  border-block: 1px dashed #d4dced;
  color: #0f172a;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.8;
}
.plugin-platform-intro strong {
  color: #2563ff;
}
.plugin-guide {
  padding: 0 var(--plugin-inset) 56px;
  font-family: "Microsoft YaHei", sans-serif;
  background-image: linear-gradient(180deg, #fff 0%, #fff0 90%),
    linear-gradient(#e5e7eb 1px, transparent 1px),
    linear-gradient(90deg, #e5e7eb 1px, transparent 1px);
  background-size: auto, 26px 26px, 26px 26px;
}
.plugin-guide-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}
.plugin-guide h2 {
  color: #0f172a;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.35;
}
.plugin-guide a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2563ff;
  font-weight: 700;
}
.plugin-guide-button {
  flex-shrink: 0;
  padding: 7px 18px;
  border: 1px solid #b6bdc9;
  border-radius: 999px;
  background: #fff;
  font-size: 16px;
  line-height: 1.5;
}
.plugin-guide a:hover,
.plugin-guide a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.plugin-guide-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plugin-guide-steps li {
  padding: 16px 14px;
  border: 1px solid #dbe1ea;
  border-radius: 14px;
  background: linear-gradient(110deg, #f5f9ffcc, #effbfdcc);
}
.plugin-guide-number {
  color: #2563ff;
  font: 11px/1.5 monospace;
  letter-spacing: 0.08em;
}
.plugin-guide-steps h3 {
  margin: 6px 0 8px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.plugin-guide-steps p,
.plugin-guide-quickstart {
  color: #788394;
  font-size: 14px;
  line-height: 1.65;
}
.plugin-guide-quickstart {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin-top: 18px;
}
@media (max-width: 1100px) {
  .plugin-guide-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .plugin-guide {
    padding-bottom: 40px;
  }
  .plugin-guide-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}
.plugin-content {
  display: grid;
  grid-template-columns: minmax(0, 610fr) minmax(0, 879fr);
  align-items: start;
  gap: calc(146 * var(--plugin-unit));
  min-height: 100%;
  padding: calc(128 * var(--plugin-unit)) calc(90 * var(--plugin-unit))
    clamp(24px, calc(48 * var(--plugin-unit)), 48px) var(--plugin-inset);
  background-image: linear-gradient(180deg, #fff 32%, #fff0 90%),
    linear-gradient(#e9e9e9 1px, transparent 1px),
    linear-gradient(90deg, #e9e9e9 1px, transparent 1px);
  background-size: auto,
    clamp(24px, calc(38 * var(--plugin-unit)), 38px)
      clamp(24px, calc(38 * var(--plugin-unit)), 38px),
    clamp(24px, calc(38 * var(--plugin-unit)), 38px)
      clamp(24px, calc(38 * var(--plugin-unit)), 38px);
}
.plugin-copy {
  min-width: 0;
}
.plugin-brand {
  color: #333;
  font-size: calc(72 * var(--plugin-unit));
  line-height: 1.15;
}
.plugin-heading h2 {
  margin: calc(16 * var(--plugin-unit)) 0 0;
  color: #333;
  font-size: calc(74 * var(--plugin-unit));
  line-height: 1.2;
  font-weight: 700;
}
.plugin-description {
  margin-top: calc(56 * var(--plugin-unit));
  color: #333;
  font-size: clamp(18px, calc(30 * var(--plugin-unit)), 30px);
  line-height: 1.6;
}
.plugin-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px var(--plugin-inset) 10px;
  border-top: 1px solid #eee;
}
.plugin-download {
  display: inline-flex;
  min-width: clamp(186px, calc(232 * var(--plugin-unit)), 232px);
  height: clamp(54px, calc(76 * var(--plugin-unit)), 76px);
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 clamp(20px, calc(24 * var(--plugin-unit)), 24px);
  border-radius: 0 0 6px 6px;
  background: #111;
  box-shadow: 0 16px 24px #0002;
  color: #fff;
  font-size: clamp(16px, calc(24 * var(--plugin-unit)), 24px);
  line-height: 1;
  transition: background-color 180ms ease, opacity 180ms ease;
}
.plugin-download > span[aria-hidden] {
  font-size: clamp(28px, calc(32 * var(--plugin-unit)), 32px);
  line-height: 0;
}
.plugin-download:hover,
.plugin-download:focus-visible {
  background: #2d2d2d;
}
.plugin-download:disabled {
  cursor: wait;
  opacity: 0.62;
}
.plugin-download-status {
  min-height: 1.5em;
  margin-top: 10px;
  color: #777;
  font-size: 13px;
}
.plugin-visual {
  width: 100%;
  margin-top: calc(103 * var(--plugin-unit));
}
.plugin-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 879 / 541;
  object-fit: contain;
}
@media (prefers-reduced-motion: reduce) {
  .plugin-article {
    scroll-behavior: auto;
  }
}

/* 6. 作品详情 */
.project-page .site-header {
  color: #fff;
}
.project-page .brand img {
  filter: brightness(0) invert(1);
}
.site-header.is-light .menu-glyph,
.project-page .menu-glyph {
  filter: invert(1);
}
.project-hero {
  height: 100svh;
  position: relative;
  overflow: hidden;
}
.project-hero > img,
.project-hero > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #0006;
  pointer-events: none;
}
.project-hero-info {
  position: absolute;
  z-index: 1;
  inset: auto var(--margin) 25px;
  text-transform: uppercase;
  text-align: center;
  pointer-events: none;
}
.project-hero-info h1 {
  font-size: clamp(64px, 47.1px + 4.29vw, 112px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.0021em;
}
.project-hero-client {
  font-size: var(--small-type);
  font-weight: 500;
}
.project-meta {
  margin-top: 15px;
  color: #fffb;
  font:
    400 var(--small-type)/1.1 Univers,
    sans-serif;
}
.play-film {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  font:
    700 16px/1.2 Univers,
    sans-serif;
  text-transform: uppercase;
}
.play-film span {
  pointer-events: none;
}
.film-dialog,
.image-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  background: #000;
}
.film-dialog video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.film-close,
.image-close {
  position: absolute;
  right: var(--margin);
  top: var(--margin);
  z-index: 2;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  background: #0008;
  padding: 12px;
}
.image-dialog img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.image-dialog button[data-direction] {
  position: absolute;
  top: 50%;
  z-index: 1;
  padding: 20px;
  background: #0008;
  font-size: 28px;
}
.image-prev {
  left: 0;
}
.image-next {
  right: 0;
}
.project-body {
  position: relative;
  background: #000;
  padding-top: var(--section);
}
.project-block {
  margin-bottom: var(--section);
  padding-inline: var(--margin);
}
.project-copy {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  padding-block: 32px;
}
.project-copy h2 {
  grid-column: 3 / 8;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}
.project-copy .rich-text {
  grid-column: 3 / 11;
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.2;
}
.rich-text.has-columns {
  columns: 2;
  column-gap: var(--gutter);
}
.rich-text p + p {
  margin-top: 1em;
}
.rich-text a {
  text-decoration: underline;
}
.project-gallery {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  gap: var(--gutter);
  align-items: start;
}
.project-gallery img,
.project-gallery video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-item {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.project-gallery[data-count="4"] .gallery-item {
  aspect-ratio: 2 / 3;
}
.project-gallery[data-count="1"] {
  width: calc(
    (100% - var(--margin) * 2 + var(--gutter)) * 8 / 12 - var(--gutter)
  );
  margin-inline: auto;
  padding-inline: 0;
}
.project-single-title {
  width: calc(
    (100% - var(--margin) * 2 + var(--gutter)) * 5 / 12 - var(--gutter)
  );
  margin-left: calc(
    var(--margin) + (100% - var(--margin) * 2 + var(--gutter)) * 2 / 12
  );
  padding-inline: 0;
  font-size: var(--heading-type);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}
.project-quote {
  display: flex;
  align-items: end;
  gap: var(--gutter);
  width: calc(
    (100% - var(--margin) * 2 + var(--gutter)) * 8 / 12 - var(--gutter)
  );
  margin-inline: auto;
  padding-inline: 0;
}
.project-quote blockquote {
  flex: 1;
  margin: 0;
  font-size: var(--heading-type);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}
.project-quote cite {
  width: 140px;
  font:
    400 var(--small-type)/1.1 Univers,
    sans-serif;
  text-align: right;
  text-transform: uppercase;
}
.next-project {
  display: block;
  position: relative;
  height: 85svh;
  overflow: hidden;
}
.next-project img,
.next-project video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s;
}
.next-project:hover img,
.next-project:hover video {
  transform: scale(1.03);
}
.next-project > div:last-child {
  position: absolute;
  inset: auto var(--margin) 24px;
  text-shadow: 0 2px 20px #000;
}
.next-project h2 {
  font-size: var(--large-type);
  line-height: 1;
  text-transform: uppercase;
}
.project-footer {
  padding: 24px var(--margin);
  display: flex;
  justify-content: space-between;
}
.project-footer a {
  text-decoration: underline;
}
.page-error,
.noscript-message {
  padding: 120px var(--margin);
}
@media (min-width: 1512px) {
  :root {
    --margin: 1.5873vw;
    --gutter: 1.5873vw;
    --section: 8.4656vw;
    --large-type: 4.2328vw;
    --heading-type: 1.5873vw;
    --small-type: 0.793651vw;
    --panel-type: 1.0582vw;
    --logo-width: min(14.55vw, 460px);
  }
  .desktop-nav a,
  .desktop-nav button {
    font-size: 0.925926vw;
  }
  .desktop-nav {
    gap: 2.1164vw;
  }
  .footer-tagline {
    font-size: 3.1746vw;
  }
  .project-hero-info h1 {
    font-size: 7.40741vw;
  }
  .contact-dialog:not(.plugin-dialog) {
    width: 43vw;
    min-height: 0;
  }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .behind-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-caption {
    grid-template-columns: minmax(0, 1fr) 64px;
    gap: 12px;
  }
}
@media (max-width: 1100px) {
  .plugin-dialog {
    --plugin-close-size: 52px;
    --plugin-close-top: 24px;
  }
  .plugin-dialog .contact-close {
    right: var(--plugin-inset);
  }
  .plugin-scroll-heading {
    width: calc(100% - 2 * var(--plugin-inset));
  }
  .plugin-content {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 28px;
    padding: 88px var(--plugin-inset) 40px;
  }
  .plugin-brand,
  .plugin-heading h2 {
    font-size: clamp(34px, 4.8vw, 52px);
  }
  .plugin-description {
    font-size: 20px;
  }
  .plugin-visual {
    max-width: 680px;
    margin-top: 0;
    margin-inline: auto;
  }
}

@media (max-width: 1023px) {
  .training-panels {
    grid-template-columns: minmax(0, 1fr);
  }
  .training-panel {
    min-height: 0;
  }
}
@media (max-width: 767px) {
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
  }
  .menu-glyph {
    font-size: 26px;
  }
  .mobile-menu {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    background: #000;
    padding: var(--margin);
  }
  .mobile-menu[open] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: end;
  }
  .mobile-menu nav {
    display: grid;
    text-align: right;
  }
  .mobile-menu nav a,
  .mobile-menu nav button {
    font-size: 7.5vh;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    text-align: right;
  }
  .mobile-menu nav .language-toggle {
    font-size: 20px;
    margin-bottom: 20px;
  }
  html:not([lang="zh-CN"]) .mobile-menu nav a,
  html:not([lang="zh-CN"]) .mobile-menu nav button:not(.language-toggle) {
    font-size: clamp(28px, 9vw, 48px);
    line-height: 1.3;
  }
  .menu-close {
    position: absolute;
    top: var(--margin);
    right: var(--margin);
    font-size: 14px;
    text-transform: uppercase;
  }
  .menu-socials {
    position: absolute;
    bottom: 12px;
    right: var(--margin);
    display: grid;
    text-align: right;
    font-size: 2.35vh;
    text-transform: uppercase;
  }
  .scroll-hint {
    width: 15%;
    text-align: right;
  }
  .mosaic {
    height: calc(37.5svh - var(--section));
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .work {
    padding-bottom: var(--section);
  }
  .project-caption h3 {
    font-size: 24px;
  }
  .about-intro h2 {
    width: 100%;
    font-size: clamp(32px, 8.5vw, 48px);
    text-align: left;
  }
  .about-intro h3 {
    width: 100%;
    font-size: clamp(18px, 4.8vw, 26px);
    text-align: left;
  }
  html[lang="zh-CN"] .about-intro {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  }
  html[lang="zh-CN"] .about-intro h2 {
    line-height: 1.35;
    text-wrap: balance;
  }
  html[lang="zh-CN"] .about-intro h3 {
    font-weight: 500;
    line-height: 1.65;
  }
  .behind-grid {
    grid-template-columns: 1fr;
  }
  .training-inner,
  .services > h2,
  .service-panels {
    width: 100%;
  }
  .training h2 {
    font-size: clamp(26px, 7.2vw, 36px);
  }
  .services > h2 {
    font-size: var(--large-type);
  }
  .training-intro {
    margin-top: 24px;
    font-size: 18px;
  }
  .training-panels {
    gap: 16px;
  }
  .service-panels {
    grid-template-columns: 1fr;
  }
  .metrics-panel {
    padding: 32px 24px;
  }
  .service-metrics {
    --metric-gap: 24px;
  }
  .service-metric-value {
    font-size: clamp(32px, 10vw, 40px);
  }
  .service-metric-description {
    font-size: 16px;
  }
  .footer-side {
    display: none;
  }
  .footer-tagline {
    width: 80%;
  }
  .contact-dialog:not(.plugin-dialog) {
    width: calc(100vw - 24px);
    height: calc(100svh - 24px);
    min-height: 0;
    padding: 0 var(--margin) var(--margin);
  }
  .contact-dialog:not(.plugin-dialog)[open] {
    display: flex;
    flex-direction: column;
  }
  .contact-dialog:not(.plugin-dialog) h2 {
    flex-shrink: 0;
    max-width: none;
    margin-top: 110px;
  }
  .contact-layout {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    gap: 55px;
  }
  .contact-training-column {
    order: 1;
    flex-direction: row;
    align-items: end;
    gap: 24px;
  }
  .contact-training-column > * {
    flex: 1;
  }
  .contact-details {
    margin-block: auto;
    text-align: center;
    translate: none;
  }
  .contact-mark {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 45px;
  }
  .contact-dialog:not(.plugin-dialog) .contact-close {
    top: 12px;
    right: 12px;
  }
  .plugin-dialog {
    --plugin-close-top: 18px;
    --plugin-heading-min-scale: 0.5;
    width: calc(100vw - 24px);
  }
  .plugin-process {
    padding: 24px var(--plugin-inset) 40px;
  }
  .plugin-process-title {
    font-size: 24px;
  }
  .plugin-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 16px;
  }
  .plugin-step-heading {
    font-size: 18px;
  }
  .plugin-step-copy p {
    font-size: 16px;
  }
  .plugin-content {
    gap: 24px;
    padding: 88px var(--plugin-inset) 32px;
  }
  .plugin-brand {
    font-size: 32px;
  }
  .plugin-heading h2 {
    margin-top: 8px;
    font-size: clamp(36px, 9vw, 52px);
  }
  .plugin-description {
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.65;
  }
  .plugin-footer {
    padding: 12px var(--plugin-inset) 8px;
  }
  .plugin-download {
    height: 48px;
  }
  .project-copy {
    grid-template-columns: 1fr;
    padding-block: 0;
  }
  .project-copy h2,
  .project-copy .rich-text {
    grid-column: 1;
  }
  .rich-text.has-columns {
    columns: 1;
  }
  .project-gallery {
    grid-template-columns: 1fr;
  }
  .project-meta {
    font-size: 12px;
  }
  .project-gallery[data-count="1"],
  .project-single-title,
  .project-quote {
    width: auto;
    margin-inline: var(--margin);
  }
  .project-gallery[data-count="4"] {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .project-gallery[data-count="4"] .gallery-item {
    flex: 0 0 80%;
    scroll-snap-align: start;
  }
  .gallery-item {
    aspect-ratio: auto;
  }
  .project-gallery img {
    height: auto;
  }
  .project-quote {
    display: block;
  }
  .project-quote cite {
    display: block;
    margin-top: 16px;
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .lenis #project-grid > .project-card {
    /* Keep the homepage cards' scroll-linked parallax enabled. */
    transition-duration: 1s !important;
  }
}
