#projects-main-title-wrapper {
  font-size: var(--vech-text-4xl) !important;
}
#header-logo svg {
  display: block;
  width: 12.87em;
  height: auto;
}

@media (max-width: 812px) {
  #header-logo svg {
    width: 10.296em;
  }
}

#header-logo {
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.5s ease;
}

#header-logo svg g {
  mix-blend-mode: normal;
}

html:not(.is-ready):not(.vechoool-preloader-skip) #header-logo {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html.is-ready #header-logo,
html.vechoool-preloader-skip #header-logo {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

html.is-ready #header-logo {
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.2s,
    visibility 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.2s,
    color 0.5s ease;
}

html.is-ready #transition-overlay {
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

html.is-ready #ui,
html.vechoool-preloader-skip #ui {
  visibility: visible;
}

#scroll-nav-text {
  color: #fff;
}

/* Scroll-nav progress bar: brand blue instead of lime */
#scroll-nav-next-bar-inner {
  background-color: var(--color-blue, #1a2ffb) !important;
}

/* Hide scroll-nav progress bar + arrow */
#scroll-nav-next {
  display: none !important;
}

#scroll-nav-text svg {
  display: block;
  /* Match #header-logo: 12.87em of header font-size clamp(1rem, 1vw, 1.5rem) */
  width: clamp(12.87rem, 12.87vw, 19.305rem);
  height: auto;
}

#scroll-nav-text svg g {
  mix-blend-mode: normal;
}

@media (max-width: 812px) {
  #scroll-nav-text svg {
    /* Match mobile #header-logo: 10.296em */
    width: clamp(10.296rem, 10.296vw, 15.444rem);
  }
}

#scroll-nav-legal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: 0.75rem;
  padding: 1.35rem 0 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-transform: none;
  font-family: var(--vech-font-ui);
  color: rgba(255, 255, 255, 0.42);
}

.scroll-nav-legal__col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.scroll-nav-legal__col:not(:last-child) {
  padding-right: clamp(0.75rem, 2vw, 1.5rem);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.scroll-nav-legal__label {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

.scroll-nav-legal__primary {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.72);
}

.scroll-nav-legal__secondary {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.38);
}

.scroll-nav-legal__link {
  color: inherit;
  text-decoration: none;
  transition: color 0.22s ease;
}

.scroll-nav-legal__link:hover {
  color: rgba(255, 255, 255, 0.95);
}

.scroll-nav-legal__beian {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
  transition: color 0.22s ease;
}

.scroll-nav-legal__beian:hover {
  color: rgba(255, 255, 255, 0.95);
}

.scroll-nav-legal__beian-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@media (max-width: 812px) {
  #scroll-nav-legal {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding-bottom: 1.5rem;
  }

  .scroll-nav-legal__col:not(:last-child) {
    padding-right: 0;
    padding-bottom: 1.1rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
html.is-header-logo-hidden:not(.is-projects-listing) #header-logo {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
html.is-ready #preloader {
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

#preloader-percent-digits {
  font-family: var(--vech-font-ui);
  font-size: clamp(5em, 5.5vw, 14em) !important;
  padding-right: 0.12em;
  box-sizing: content-box;
  overflow: hidden;
  /* 裁掉底部漏出的下一帧数字，不改 transform，避免滚动跳变 */
  clip-path: inset(0 0 0.015em 0);
}

@media (max-width: 812px) {
  #preloader-percent-digits {
    font-size: 10vw !important;
  }
}

.preloader-percent-symbol {
  position: relative;
  float: left;
  width: auto;
  min-width: 1ch;
  height: 1.5em;
  line-height: 0.75em;
  margin-left: 0.06em;
  padding-right: 0.08em;
  text-align: left;
  overflow: visible;
  pointer-events: none;
}

html.vechoool-preloader-skip[data-vechoool-home='true'],
html.vechoool-preloader-skip[data-vechoool-home='true'] body {
  background-color: var(--color-off-white, #f0f1fa) !important;
}

html.vechoool-preloader-skip #preloader,
html.vechoool-preloader-skip #preloader[data-dismissed='true'],
html.vechoool-preloader-skip #transition-overlay {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
  background: transparent !important;
}

html.vechoool-preloader-skip[data-vechoool-home='true'] #canvas {
  z-index: 0;
  display: block !important;
  visibility: visible !important;
  pointer-events: none !important;
}

html.vechoool-preloader-skip[data-vechoool-home='true']:not(.vechoool-canvas-live) #canvas {
  opacity: 0 !important;
}

html.vechoool-preloader-skip[data-vechoool-home='true'].vechoool-canvas-live #canvas {
  opacity: 1 !important;
}

html.vechoool-preloader-skip[data-vechoool-home='true']:not(.vechoool-canvas-ready) #ui {
  z-index: 2;
}

#vechoool-canvas-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  background: var(--color-off-white, #f0f1fa);
  pointer-events: none;
}

html.vechoool-preloader-skip[data-vechoool-home='true']:not(.vechoool-canvas-ready) #vechoool-canvas-mask {
  display: block;
  opacity: 1;
}

html.vechoool-preloader-skip[data-vechoool-home='true'].vechoool-canvas-ready #vechoool-canvas-mask {
  display: none !important;
}

html.vechoool-preloader-skip[data-vechoool-home='true'].vechoool-canvas-ready #canvas {
  z-index: auto;
  pointer-events: auto !important;
}

/* Homepage — scroll content offset below header */
html[data-vechoool-home='true'] #page-container {
  padding-top: 126px;
}

#home-hero-title {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}
#home-hero {
  height: auto !important;
  min-height: 0 !important;
  grid-template-rows: auto !important;
  padding-top: calc(var(--base-padding-y) + var(--header-size) * 3) !important;
  padding-bottom: calc(var(--base-padding-y) * 0.5) !important;
}
@media (max-width: 812px) {
  #home-hero {
    padding-top: calc(
      var(--base-padding-y) + var(--header-size) * 1.85
    ) !important;
  }
  #home-hero-title {
    margin-top: 0 !important;
  }
}
#home-hero-visual-container {
  margin-top: calc(var(--base-padding-y) * 0.8) !important;
}
#home-hero-scroll-container {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  width: 100% !important;
  grid-column: 1 / span 12 !important;
  margin-top: calc(var(--base-padding-y) * 0.4) !important;
  height: var(--base-padding-y) !important;
}
@media (max-width: 812px) {
  #home-hero-scroll-container {
    grid-column: 1 / span 6 !important;
    bottom: auto !important;
    margin-top: calc(var(--base-padding-y) * 0.35) !important;
  }
}
#home-hero-visual-container {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 1;
  border-radius: clamp(12px, 1.5vw, 24px);
  background: var(--color-off-white, #f0f1fa) !important;
  width: 100% !important;
  height: auto !important;
  min-height: clamp(280px, 42vh, 500px);
  aspect-ratio: 16/8;
  max-height: min(70vh, 700px);
}
#home-hero-visual-container .superhi-hero-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#home-hero-visual-container .superhi-hero-canvas-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#home-hero-visual-container canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
#home-featured .project-item {
  grid-column: span 3 / span 3 !important;
  float: none !important;
  align-self: start;
}
#home-featured .project-item,
#home-featured-2 .project-item,
#home-featured-3 .project-item,
#home-featured-4 .project-item {
  grid-column: span 3 / span 3 !important;
  float: none !important;
  align-self: start;
  min-width: 0;
}
#home-featured .project-item:nth-child(-n + 4),
#home-featured-2 .project-item:nth-child(-n + 4),
#home-featured-3 .project-item:nth-child(-n + 4),
#home-featured-4 .project-item:nth-child(-n + 4) {
  margin-top: 0 !important;
}
/* #home-featured .project-item:nth-child(n + 5),
#home-featured-2 .project-item:nth-child(n + 5),
#home-featured-3 .project-item:nth-child(n + 5),
#home-featured-4 .project-item:nth-child(n + 5) {
  margin-top: 2.5em !important;
} */
/* @media (min-aspect-ratio: 21/9) {
  #home-featured .project-item:nth-child(n + 5),
  #home-featured-2 .project-item:nth-child(n + 5),
  #home-featured-3 .project-item:nth-child(n + 5),
  #home-featured-4 .project-item:nth-child(n + 5) {
    margin-top: 5em !important;
  }
} */
@media (max-width: 812px) {
  #home-featured .project-item,
  #home-featured-2 .project-item,
  #home-featured-3 .project-item,
  #home-featured-4 .project-item {
    grid-column: span 6 / span 6 !important;
    float: none !important;
  }
}
#header-right {
  gap: 18px !important;
}

/* Header menu popup — 20% smaller than default */
#header-menu {
  width: 15.504em;
  gap: 0.5em;
}

#header-menu-links {
  padding: 0.8em;
  border-radius: 2em;
  gap: 0.2em;
}

#header-menu-links .header-menu-link,
#header-user-menu .header-menu-link {
  padding: 0.75em 0.8em;
}

@media (max-width: 812px) {
  #header-menu {
    width: min(15.504em, calc(100% - var(--base-padding-x) * 2));
    top: 80px !important;
  }

  #header-user-menu {
    top: 80px !important;
  }
}
#header-right-sound-btn {
  display: none !important;
}
#header-right-menu-btn,
#header-right-talk-btn {
  position: relative !important;
  left: auto !important;
}

#header-right-menu-btn-text-close {
  display: none !important;
}

#header-right-menu-btn.--opened #header-right-menu-btn-text {
  transform: none;
}
#header-right-talk-btn,
#header-right-talk-btn-text {
  text-transform: none;
}
html.is-auth #header-right-talk-btn {
  position: absolute !important;
  left: 4.5em !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}
#header-right-talk-btn-placeholder {
  pointer-events: none;
}
html.is-auth #header-user-menu-wrap {
  display: block;
  position: relative;
  z-index: 1;
}
#header-user-menu-wrap {
  position: relative;
  flex-shrink: 0;
}
#header-right-user-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #000;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.header-right-user-avatar {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

#header-user-menu {
  position: absolute;
  top: calc(var(--base-padding-y) + var(--header-size) * 3.1 + 0.5em);
  right: var(--base-padding-x);
  width: 15.504em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  pointer-events: none;
  color: var(--color-black);
  z-index: 120;
}

#header-user-menu input,
#header-user-menu textarea,
#header-user-menu a,
#header-user-menu button {
  pointer-events: none;
}

#header-user-menu #header-user-menu-links {
  will-change: transform;
}

#header-user-menu.--opened {
  pointer-events: auto;
}

#header-user-menu.--opened #header-user-menu-links {
  transition:
    transform 0.5s var(--open-delay, 0s) cubic-bezier(0.4, 0, 0.1, 1),
    opacity 0.5s var(--open-delay, 0s) cubic-bezier(0.4, 0, 0.1, 1);
  transform: translateZ(0);
  opacity: 1;
}

#header-user-menu.--opened input,
#header-user-menu.--opened textarea,
#header-user-menu.--opened a,
#header-user-menu.--opened button {
  pointer-events: auto;
}

#header-user-menu-links {
  transition:
    transform 0.5s var(--close-delay, 0s) cubic-bezier(0.4, 0, 0.1, 1),
    opacity 0.5s var(--close-delay, 0s) cubic-bezier(0.4, 0, 0.1, 1);
  transform: translate3d(0, 5.5em, 0) rotate(3.5deg);
  opacity: 0;
  display: flex;
  flex-direction: column;
  text-transform: none;
  background: var(--color-white);
  border-radius: 2em;
  padding: 0.8em;
  gap: 0.2em;
}

#header-menu-links .header-menu-link-text,
#header-menu-links .header-menu-link-text-clone,
#header-user-menu .header-menu-link-text,
#header-user-menu .header-menu-link-text-clone {
  font-size: 1.1em;
}

#header-user-menu .header-menu-link-text,
#header-user-menu .header-menu-link-text-clone {
  text-transform: none;
}

#header-right-user-btn[aria-expanded='true'] {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

@media (max-width: 812px) {
  html.is-auth #header-right-talk-btn {
    left: -4.5em !important;
  }

  #header-user-menu {
    width: min(15.504em, calc(100vw - var(--base-padding-x) * 2));
  }

  #header-right-menu-btn,
  #header-right-talk-btn {
    left: auto !important;
  }

  /* Engine hides #header-right-talk-btn on mobile; show repurposed login control */
  html.is-ready:not(.is-auth) #header-right-talk-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 3.2em !important;
    padding: 0 0.875em !important;
    pointer-events: auto !important;
    flex-shrink: 0 !important;
  }

  html.is-ready:not(.is-auth) #header-right-talk-container {
    opacity: 1 !important;
  }

  html.is-ready:not(.is-auth) #header-right-talk-btn-text {
    display: inline !important;
    transform: none !important;
    position: static !important;
  }

  html.is-ready:not(.is-auth) #header-right-talk-btn-arrow,
  html.is-ready:not(.is-auth) #header-right-talk-btn-dots {
    display: none !important;
  }

  /* Mobile menu: dropdown only, no full-screen blue overlay */
  #header-background {
    background: transparent !important;
    z-index: 0 !important;
  }

  #header-background.--opened {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  #header-logo,
  #header-leading,
  #header-right {
    position: relative !important;
    z-index: 2 !important;
  }

  #header-menu {
    z-index: 1 !important;
  }

  #header.--menu-opened #header-logo,
  #header.--menu-opened #header-leading,
  #header.--menu-opened #header-right {
    z-index: 3 !important;
  }

  /* No full-screen blue scrim — keep logo readable */
  #header.--menu-opened #header-logo {
    color: var(--color-black) !important;
  }
}
@media (max-width: 812px) {
  #header-right {
    gap: 18px !important;
  }
  #header-right-menu-btn,
  #header-right-talk-btn {
    left: auto !important;
  }
}
.header-menu-link[data-page='projects'],
.header-menu-link[data-scroll-to='contact'],
#header-menu-newsletter,
#header-menu-talk,
#header-menu-labs {
  display: none !important;
}
#home-featured-2-cta,
#home-featured-3-cta,
#home-featured-4-cta,
#home-featured-cta {
  pointer-events: auto !important;
  cursor: pointer;
}
#home-featured-2:after {
  content: '';
  clear: both;
  display: block;
}
#home-featured-2 {
  margin-top: 3em;
}
#home-featured-2-cta {
  display: flex;
  position: relative;
  grid-column: 1 / span 12 !important;
  place-self: center;
  justify-self: center;
  float: left;
  padding: 1em 1.5em 1em 1.625em;
  align-items: center;
  gap: 1em;
  overflow: hidden;
  border-radius: 5.3125em;
  font-size: clamp(0.875rem, 1vw, 1.75rem);
  background: #fff;
  font-family: var(--vech-font-ui);
  text-transform: uppercase;
  height: 3.375em;
  width: fit-content;
  font-weight: 500;
  margin-top: 3em !important;
  box-shadow:
    0 6px 10px #0000000a,
    0 2px 4px #0000000a;
  pointer-events: auto;
  transition: background cubic-bezier(0.35, 0, 0, 1) 0.2s;
  will-change: transform;
}
@media (max-width: 812px) {
  #home-featured-2-cta {
    grid-column: 1 / span 6 !important;
    margin-top: 4em !important;
    margin-bottom: 2em;
  }
}
#home-featured-2-cta-dot {
  display: inline-block;
  position: relative;
  width: 0.5em;
  height: 0.5em;
  background: var(--color-black);
  border-radius: 100px;
  z-index: 1;
  transition:
    background cubic-bezier(0.35, 0, 0, 1) 0.5s,
    transform cubic-bezier(0.35, 0, 0, 1) 0.4s;
}
#home-featured-2-cta-text {
  position: relative;
  z-index: 1;
  transition:
    color cubic-bezier(0.35, 0, 0, 1) 0.5s,
    transform cubic-bezier(0.35, 0, 0, 1) 0.4s;
}
#home-featured-2-cta-arrow {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  right: 1em;
  height: 1.2em;
  width: 1.2em;
  color: var(--color-blue);
  border-radius: 100%;
  transform: translate3d(3em, 0, 0);
  z-index: 1;
  transition: transform cubic-bezier(0.4, 0, 0, 1) 0.4s;
}
#home-featured-2-cta-arrow svg {
  width: 100%;
  height: 100%;
  transition: color 0.5s;
}
#home-featured-2-title-top {
  position: relative;
  grid-column: 1 / span 12;
  line-height: 0;
}
#home-featured-2-title-wrapper {
  position: relative;
  width: fit-content;
  font-size: 8vw;
  letter-spacing: -0.02em;
}
#home-featured-2-title {
  padding-top: 0.5em;
  position: relative;
  display: inline-block;
  margin: 0 0 0 -0.07em;
  line-height: 0.9;
  overflow: hidden;
}
#home-featured-2-disclaimer {
  position: absolute;
  right: 0;
  bottom: 0;
  width: calc(var(--grid-space) * 3 + var(--grid-gap) * 2);
  text-transform: uppercase;
  line-height: 1.4;
  font-size: 0.9vw;
}
@media (min-aspect-ratio: 21/9) {
  #home-featured-2-title-wrapper {
    font-size: 5.3vw;
  }
  #home-featured-2-disclaimer {
    width: calc(var(--grid-space) * 2 + var(--grid-gap) * 2);
    font-size: 0.6vw;
  }
}
@media (max-width: 812px) {
  #home-featured-2-title-top {
    grid-column: 1 / span 6;
  }
  #home-featured-2-title-wrapper {
    font-size: 15vw;
  }
  #home-featured-2-disclaimer {
    position: relative;
    font-size: 2.5vw;
    width: 100%;
    margin: 3em 0;
  }
}
#home-featured-3:after {
  content: '';
  clear: both;
  display: block;
}
#home-featured-3 {
  margin-top: 3em;
}
#home-featured-3-cta {
  display: flex;
  position: relative;
  grid-column: 1 / span 12 !important;
  place-self: center;
  justify-self: center;
  float: left;
  padding: 1em 1.5em 1em 1.625em;
  align-items: center;
  gap: 1em;
  overflow: hidden;
  border-radius: 5.3125em;
  font-size: clamp(0.875rem, 1vw, 1.75rem);
  background: #fff;
  font-family: var(--vech-font-ui);
  text-transform: uppercase;
  height: 3.375em;
  width: fit-content;
  font-weight: 500;
  margin-top: 3em !important;
  box-shadow:
    0 6px 10px #0000000a,
    0 2px 4px #0000000a;
  pointer-events: auto;
  transition: background cubic-bezier(0.35, 0, 0, 1) 0.2s;
  will-change: transform;
}
@media (max-width: 812px) {
  #home-featured-3-cta {
    grid-column: 1 / span 6 !important;
    margin-top: 4em !important;
    margin-bottom: 2em;
  }
}
#home-featured-3-cta-dot {
  display: inline-block;
  position: relative;
  width: 0.5em;
  height: 0.5em;
  background: var(--color-black);
  border-radius: 100px;
  z-index: 1;
  transition:
    background cubic-bezier(0.35, 0, 0, 1) 0.5s,
    transform cubic-bezier(0.35, 0, 0, 1) 0.4s;
}
#home-featured-3-cta-text {
  position: relative;
  z-index: 1;
  transition:
    color cubic-bezier(0.35, 0, 0, 1) 0.5s,
    transform cubic-bezier(0.35, 0, 0, 1) 0.4s;
}
#home-featured-3-cta-arrow {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  right: 1em;
  height: 1.2em;
  width: 1.2em;
  color: var(--color-blue);
  border-radius: 100%;
  transform: translate3d(3em, 0, 0);
  z-index: 1;
  transition: transform cubic-bezier(0.4, 0, 0, 1) 0.4s;
}
#home-featured-3-cta-arrow svg {
  width: 100%;
  height: 100%;
  transition: color 0.5s;
}
#home-featured-3-title-top {
  position: relative;
  grid-column: 1 / span 12;
  line-height: 0;
}
#home-featured-3-title-wrapper {
  position: relative;
  width: fit-content;
  font-size: 8vw;
  letter-spacing: -0.02em;
}
#home-featured-3-title {
  padding-top: 0.5em;
  position: relative;
  display: inline-block;
  margin: 0 0 0 -0.07em;
  line-height: 0.9;
  overflow: hidden;
}
#home-featured-3-disclaimer {
  position: absolute;
  right: 0;
  bottom: 0;
  width: calc(var(--grid-space) * 3 + var(--grid-gap) * 2);
  text-transform: uppercase;
  line-height: 1.4;
  font-size: 0.9vw;
}
@media (min-aspect-ratio: 21/9) {
  #home-featured-3-title-wrapper {
    font-size: 5.3vw;
  }
  #home-featured-3-disclaimer {
    width: calc(var(--grid-space) * 2 + var(--grid-gap) * 2);
    font-size: 0.6vw;
  }
}
@media (max-width: 812px) {
  #home-featured-3-title-top {
    grid-column: 1 / span 6;
  }
  #home-featured-3-title-wrapper {
    font-size: 15vw;
  }
  #home-featured-3-disclaimer {
    position: relative;
    font-size: 2.5vw;
    width: 100%;
    margin: 3em 0;
  }
}
#home-featured-4:after {
  content: '';
  clear: both;
  display: block;
}
#home-featured-4 {
  margin-top: 3em;
}
#home-featured-4-cta {
  display: flex;
  position: relative;
  grid-column: 1 / span 12 !important;
  place-self: center;
  justify-self: center;
  float: left;
  padding: 1em 1.5em 1em 1.625em;
  align-items: center;
  gap: 1em;
  overflow: hidden;
  border-radius: 5.3125em;
  font-size: clamp(0.875rem, 1vw, 1.75rem);
  background: #fff;
  font-family: var(--vech-font-ui);
  text-transform: uppercase;
  height: 3.375em;
  width: fit-content;
  font-weight: 500;
  margin-top: 3em !important;
  box-shadow:
    0 6px 10px #0000000a,
    0 2px 4px #0000000a;
  pointer-events: auto;
  transition: background cubic-bezier(0.35, 0, 0, 1) 0.2s;
  will-change: transform;
}
@media (max-width: 812px) {
  #home-featured-4-cta {
    grid-column: 1 / span 6 !important;
    margin-top: 4em !important;
    margin-bottom: 2em;
  }
}
#home-featured-4-cta-dot {
  display: inline-block;
  position: relative;
  width: 0.5em;
  height: 0.5em;
  background: var(--color-black);
  border-radius: 100px;
  z-index: 1;
  transition:
    background cubic-bezier(0.35, 0, 0, 1) 0.5s,
    transform cubic-bezier(0.35, 0, 0, 1) 0.4s;
}
#home-featured-4-cta-text {
  position: relative;
  z-index: 1;
  transition:
    color cubic-bezier(0.35, 0, 0, 1) 0.5s,
    transform cubic-bezier(0.35, 0, 0, 1) 0.4s;
}
#home-featured-4-cta-arrow {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  right: 1em;
  height: 1.2em;
  width: 1.2em;
  color: var(--color-blue);
  border-radius: 100%;
  transform: translate3d(3em, 0, 0);
  z-index: 1;
  transition: transform cubic-bezier(0.4, 0, 0, 1) 0.4s;
}
#home-featured-4-cta-arrow svg {
  width: 100%;
  height: 100%;
  transition: color 0.5s;
}
#home-featured-4-title-top {
  position: relative;
  grid-column: 1 / span 12;
  line-height: 0;
}
#home-featured-4-title-wrapper {
  position: relative;
  width: fit-content;
  font-size: 8vw;
  letter-spacing: -0.02em;
}
#home-featured-4-title {
  padding-top: 0.5em;
  position: relative;
  display: inline-block;
  margin: 0 0 0 -0.07em;
  line-height: 0.9;
  overflow: hidden;
}
#home-featured-4-disclaimer {
  position: absolute;
  right: 0;
  bottom: 0;
  width: calc(var(--grid-space) * 3 + var(--grid-gap) * 2);
  text-transform: uppercase;
  line-height: 1.4;
  font-size: 0.9vw;
}
@media (min-aspect-ratio: 21/9) {
  #home-featured-4-title-wrapper {
    font-size: 5.3vw;
  }
  #home-featured-4-disclaimer {
    width: calc(var(--grid-space) * 2 + var(--grid-gap) * 2);
    font-size: 0.6vw;
  }
}
@media (max-width: 812px) {
  #home-featured-4-title-top {
    grid-column: 1 / span 6;
  }
  #home-featured-4-title-wrapper {
    font-size: 15vw;
  }
  #home-featured-4-disclaimer {
    position: relative;
    font-size: 2.5vw;
    width: 100%;
    margin: 3em 0;
  }
}
@media (hover: hover) {
  #home-featured-2-cta:hover,
  #home-featured-3-cta:hover,
  #home-featured-4-cta:hover {
    color: var(--color-white);
    background: var(--color-blue);
    transition: background cubic-bezier(0.35, 0, 0, 1) 0.5s 0.3s;
  }
  #home-featured-2-cta:hover #home-featured-2-cta-text,
  #home-featured-3-cta:hover #home-featured-3-cta-text,
  #home-featured-4-cta:hover #home-featured-4-cta-text {
    transform: translate3d(-1.5em, 0, 0);
  }
  #home-featured-2-cta:hover #home-featured-2-cta-dot,
  #home-featured-3-cta:hover #home-featured-3-cta-dot,
  #home-featured-4-cta:hover #home-featured-4-cta-dot {
    transform: translate3d(4em, 0, 0) scale(32);
    background: var(--color-blue);
  }
  #home-featured-2-cta:hover #home-featured-2-cta-arrow,
  #home-featured-3-cta:hover #home-featured-3-cta-arrow,
  #home-featured-4-cta:hover #home-featured-4-cta-arrow {
    transform: translateZ(0);
  }
  #home-featured-2-cta:hover #home-featured-2-cta-arrow svg,
  #home-featured-3-cta:hover #home-featured-3-cta-arrow svg,
  #home-featured-4-cta:hover #home-featured-4-cta-arrow svg {
    color: var(--color-white);
  }
}
#home-featured,
#home-featured-2,
#home-featured-3 {
  padding-bottom: 1em !important;
}
html.is-white-bg {
  background: var(--color-off-white) !important;
}
html.is-black-bg:not(.is-blue-bg) {
  background: var(--color-off-white) !important;
}
#home-featured .project-item-image,
#home-featured-2 .project-item-image,
#home-featured-3 .project-item-image,
#home-featured-4 .project-item-image {
  background-image: none !important;
  background-size: initial;
  background-position: initial;
}
#home-featured-cta,
#home-featured-2-cta,
#home-featured-3-cta,
#home-featured-4-cta {
  margin-top: 4em !important;
}
@media (max-width: 812px) {
  #home-featured-cta,
  #home-featured-2-cta,
  #home-featured-3-cta,
  #home-featured-4-cta {
    margin-top: 4.5em !important;
    margin-bottom: 2em !important;
  }
}
#home-featured {
  padding-bottom: 1em !important;
}

/* Project card title — sized for 4-up home grid */
.project-item-line-2 {
  font-size: 1.55vw !important;
}
@media (min-aspect-ratio: 21/9) {
  .project-item-line-2 {
    font-size: 1.15vw !important;
  }
}
@media (max-width: 812px) {
  .project-item-line-2 {
    font-size: 4.5vw !important;
  }
}

#home-featured .project-item-line-1,
#home-featured-2 .project-item-line-1,
#home-featured-3 .project-item-line-1,
#home-featured-4 .project-item-line-1 {
  font-size: 0.7vw !important;
}
@media (min-aspect-ratio: 21/9) {
  #home-featured .project-item-line-1,
  #home-featured-2 .project-item-line-1,
  #home-featured-3 .project-item-line-1,
  #home-featured-4 .project-item-line-1 {
    font-size: 0.5vw !important;
  }
}
@media (max-width: 812px) {
  #home-featured .project-item-line-1,
  #home-featured-2 .project-item-line-1,
  #home-featured-3 .project-item-line-1,
  #home-featured-4 .project-item-line-1 {
    font-size: 2.2vw !important;
  }
}

/* Chinese copy + PingFang metrics: prevent card image/title overlap */
.project-item-footer {
  margin-top: 1em !important;
  padding-top: 0.15em;
}

.project-item-line-1 {
  text-transform: uppercase !important;
  line-height: 1.45 !important;
  margin: 0 0 0.65em !important;
  word-break: break-word;
}

.project-item-line-2 {
  height: auto !important;
  max-height: none !important;
  min-height: 1em !important;
  line-height: 1 !important;
  overflow: hidden !important;
}

/* Animation stacks 4 title layers per character; allow long titles to wrap */
.project-item-line-2-inner {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  bottom: 0 !important;
  align-items: flex-start;
  flex-wrap: wrap !important;
  width: 100%;
  row-gap: 0.08em;
}

.project-item-line-2-inner-list {
  height: 1em !important;
  max-height: 1em !important;
  overflow: hidden !important;
  flex-shrink: 0;
}

.project-item-line-2-inner-list span {
  display: block;
  height: 1em;
  line-height: 1;
}

.project-item-footer {
  overflow: visible !important;
}

@media (max-width: 812px) {
  .project-item-line-2 {
    min-height: 1em !important;
    line-height: 1 !important;
  }
}

#home-featured-title-top,
#home-featured-2-title-top,
#home-featured-3-title-top,
#home-featured-4-title-top {
  line-height: 1 !important;
  margin-bottom: 0 !important;
}

#home-featured-title-wrapper,
#home-featured-2-title-wrapper,
#home-featured-3-title-wrapper,
#home-featured-4-title-wrapper {
  font-family: var(--vech-font-display);
  font-size: var(--vech-text-3xl) !important;
  font-weight: var(--vech-fw-medium);
  letter-spacing: var(--vech-tracking-tight);
}

@media (min-aspect-ratio: 21/9) {
  #home-featured-title-wrapper,
  #home-featured-2-title-wrapper,
  #home-featured-3-title-wrapper,
  #home-featured-4-title-wrapper {
    font-size: var(--vech-text-3xl) !important;
  }
}

@media (max-width: 812px) {
  #home-featured-title-wrapper,
  #home-featured-2-title-wrapper,
  #home-featured-3-title-wrapper,
  #home-featured-4-title-wrapper {
    font-size: var(--vech-text-3xl) !important;
  }
}

#home-featured-title,
#home-featured-2-title,
#home-featured-3-title,
#home-featured-4-title {
  line-height: 1.12 !important;
  padding-bottom: 0.08em !important;
}

#home-featured-disclaimer,
#home-featured-2-disclaimer,
#home-featured-3-disclaimer,
#home-featured-4-disclaimer {
  text-transform: none !important;
  line-height: 1.5 !important;
}

#home-featured .project-list,
#home-featured-2 .project-list,
#home-featured-3 .project-list,
#home-featured-4 .project-list {
  margin-top: 4.5vh !important;
}

@media (min-aspect-ratio: 21/9) {
  #home-featured .project-list,
  #home-featured-2 .project-list,
  #home-featured-3 .project-list,
  #home-featured-4 .project-list {
    margin-top: 3.5vh !important;
  }
}

/* #home-featured .project-item:nth-child(n + 5),
#home-featured-2 .project-item:nth-child(n + 5),
#home-featured-3 .project-item:nth-child(n + 5),
#home-featured-4 .project-item:nth-child(n + 5) {
  margin-top: 3.25em !important;
}

@media (min-aspect-ratio: 21/9) {
  #home-featured .project-item:nth-child(n + 5),
  #home-featured-2 .project-item:nth-child(n + 5),
  #home-featured-3 .project-item:nth-child(n + 5),
  #home-featured-4 .project-item:nth-child(n + 5) {
    margin-top: 5.5em !important;
  }
} */

@media (max-width: 812px) {
  #home-featured,
  #home-featured-2,
  #home-featured-3,
  #home-featured-4 {
    margin-top: 0 !important;
  }

  #home-featured-title-top,
  #home-featured-2-title-top,
  #home-featured-3-title-top,
  #home-featured-4-title-top {
    margin-bottom: 1em !important;
  }

  #home-featured .project-list,
  #home-featured-2 .project-list,
  #home-featured-3 .project-list,
  #home-featured-4 .project-list {
    margin-top: 0 !important;
  }

  #home-featured .project-item,
  #home-featured-2 .project-item,
  #home-featured-3 .project-item,
  #home-featured-4 .project-item {
    margin-top: 0 !important;
    margin-bottom: 1em !important;
  }
}

/* Reel video — hide in-player text overlays */
#home-reel-desc {
  white-space: pre-line;
}

#home-reel-video-title {
  display: none !important;
}

.home-reel-video-container-svgs {
  display: none !important;
}

/* Reel — video morph first, Of The Oak HTML when fully expanded */
#home-reel.has-html-handoff #home-reel-video-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

#home-reel.has-html-handoff #home-reel-video-demo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
  background: #000;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#home-reel.has-html-handoff.is-reel-html-active #home-reel-video-demo {
  opacity: 1;
  /* Let wheel reach the page scroll driver instead of the iframe document */
  pointer-events: none;
}

#home-reel.has-html-handoff.is-reel-html-active #home-reel-video-placeholder {
  pointer-events: none;
}

#home-reel.has-html-handoff #home-reel-video-open-link {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: transparent;
  text-decoration: none;
}

#home-reel.has-html-handoff.is-reel-html-active #home-reel-video-open-link {
  display: block;
}

#home-reel.has-html-handoff.is-reel-html-active #home-reel-video-container,
#home-reel.has-html-handoff.is-reel-html-active
  #home-reel-video-container-decoration {
  cursor: pointer;
}

#home-reel.has-html-handoff #home-reel-video-watch-btn {
  display: none !important;
}

/* Capability cards — hide bottom letter icons (s / c / t / P) */
.about-capability-list
  + .about-capability-card-header
  .about-capability-card-header-letter {
  opacity: 0;
}

/* Footer — hide labs link */
#footer-bottom-labs {
  display: none !important;
}

/* End section — Aeonik + uppercase subtitle */
#end-section,
#end-section * {
  font-family: var(--vech-font-ui);
}

#end-section-subtitle,
#end-section-subtitle-text {
  font-size: var(--vech-text-3xl) !important;
  text-transform: none !important;
  line-height: 1.25 !important;
  letter-spacing: 0.01em;
  font-weight: var(--vech-fw-regular, 400);
}

@media (max-width: 560px) {
  #end-section-subtitle,
  #end-section-subtitle-text {
    font-size: var(--vech-text-3xl) !important;
  }
}

/* Keep end copy above the densest particle band so the big title stays readable */
#end-section-content {
  top: calc(50% - 1.25em) !important;
  z-index: 4;
}

#end-section-title {
  position: relative;
  z-index: 5;
  color: inherit;
}

@media (max-width: 560px) {
  #end-section-content {
    top: 42% !important;
  }

  /* 原 19.5vw 在窄屏下会导致 together! 换行叠字 */
  #end-section-title {
    --font-size: 14vw;
  }
}
/* Capability header — flex row keeps title & right copy aligned */
.about-capability-header {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(2rem, 6vw, 8rem);
  padding-top: calc(var(--base-padding-y) * 5);
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

#about-capability-title {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  margin-top: 0 !important;
  grid-column: auto !important;
  width: auto !important;
  flex: 0 0 auto;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: baseline;
  white-space: nowrap;
  line-height: 1 !important;
  font-size: 8vw !important;
}

@media (min-aspect-ratio: 21/9) {
  #about-capability-title {
    font-size: 5.5vw !important;
  }
}

@media (max-width: 812px) {
  .about-capability-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding-top: 0;
  }

  #about-capability-title {
    font-size: 12vw !important;
  }
}

#about-capability-title #about-capability-title-line-2 {
  left: 0 !important;
}

#about-capability-subheader {
  position: relative !important;
  right: auto !important;
  left: auto !important;
  top: auto !important;
  margin-top: 0 !important;
  width: min(20em, 36%) !important;
  max-width: 20em !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  flex: 0 1 auto;
  overflow: visible !important;
}

@media (max-width: 812px) {
  #about-capability-subheader {
    width: 100% !important;
    max-width: none !important;
  }
}

#about-capability-subheader-text {
  text-align: left;
}

#about-capability-subheader-cards {
  margin-left: 0;
  margin-right: 0;
  margin-top: 2em;
  gap: 1rem;
  justify-content: flex-start;
  overflow: visible !important;
}

#about-capability-cards-wrapper {
  margin-top: 4em !important;
}

@media (max-width: 812px) {
  #about-capability-cards-wrapper {
    margin-top: 2.5em !important;
  }
}
#home-intro-guide.home-intro-guide {
  min-height: auto;
  align-content: start;
  padding-top: calc(var(--base-padding-y) * 0.45);
  padding-bottom: calc(var(--base-padding-y) * 0.95);
}

.home-intro-guide__inner {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.85rem, 1.6vw, 1.25rem);
  font-family: var(--vech-font-body);
}

.home-intro-guide__headline {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  line-height: var(--vech-leading-display);
  letter-spacing: var(--vech-tracking-tight);
  font-family: var(--vech-font-display);
  font-size: var(--vech-text-display);
  font-weight: var(--vech-fw-regular);
}

.home-intro-guide__headline-primary,
.home-intro-guide__headline-secondary {
  color: var(--vech-ink);
  font-family: inherit;
  font-weight: var(--vech-fw-regular);
  letter-spacing: inherit;
  display: block;
  /* Extra room so ascenders aren't clipped by the entrance mask */
  overflow: hidden;
  padding-block: 0.14em 0.08em;
  margin-block: -0.14em -0.08em;
}

.home-intro-guide__headline .split-char {
  display: inline-block;
  will-change: transform, opacity;
  opacity: 0;
  transform: translateY(0.55em);
}

.home-intro-guide__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.85rem, 1.6vw, 1.25rem);
  width: 100%;
}

.home-intro-guide__reveal {
  opacity: 0;
  transform: translateY(28px);
  will-change: transform, opacity;
}

.home-intro-guide__body.is-revealed .home-intro-guide__reveal {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.home-intro-guide__description {
  margin: 0;
  width: 100%;
  max-width: 52rem;
  font-size: var(--vech-text-xl);
  line-height: var(--vech-leading-body);
  letter-spacing: 0.01em;
  color: var(--vech-ink);
  white-space: normal;
  overflow: visible;
  text-wrap: pretty;
}

.home-intro-guide__tag-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  margin-top: clamp(0.85rem, 1.6vw, 1.25rem);
}

.home-intro-guide__tag-label {
  margin: 0;
  font-size: 1.55vw;
  line-height: 1.4;
  letter-spacing: var(--vech-tracking-wide);
  color: var(--vech-ink);
}

@media (min-aspect-ratio: 21/9) {
  .home-intro-guide__tag-label {
    font-size: 1.15vw;
  }
}

@media (max-width: 812px) {
  .home-intro-guide__tag-label {
    font-size: 4.5vw;
  }
}

.home-intro-guide__tags {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.home-intro-guide__tags::-webkit-scrollbar {
  display: none;
}

.home-intro-guide__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 0.45rem;
  height: 3.2em;
  min-height: 0;
  padding: 0 1.35em;
  border: 0.5px solid #000;
  border-radius: 999px;
  background: transparent;
  color: var(--vech-ink);
  font-family: var(--vech-font-ui);
  /* Match #header-right-menu-btn: 0.875em of header clamp(1rem, 1vw, 1.5rem) */
  font-size: clamp(0.875rem, 0.875vw, 1.3125rem);
  font-weight: var(--vech-fw-medium);
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.home-intro-guide__tag:hover {
  background: rgba(10, 10, 10, 0.04);
  border-color: #000;
}

.home-intro-guide__tag.is-active {
  background: #0a0a0a;
  border-color: #0a0a0a;
  color: #fff;
}

.home-intro-guide__tag-arrow {
  flex-shrink: 0;
}

.home-intro-guide__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  justify-content: start;
  gap: 0;
  width: 100%;
  margin-top: 0;
  padding-top: clamp(0.85rem, 1.6vw, 1.25rem);
  border-top: 1px solid rgba(10, 10, 10, 0.1);
}

.home-intro-guide__stat {
  position: relative;
  display: flex;
  align-items: stretch;
}

.home-intro-guide__stat-divider {
  position: absolute;
  left: 0;
  top: 0.15rem;
  bottom: 0.15rem;
  width: 1px;
  background: rgba(10, 10, 10, 0.1);
}

.home-intro-guide__stat-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0 2.5rem;
}

.home-intro-guide__stat:first-child .home-intro-guide__stat-content {
  padding-left: 0;
}

.home-intro-guide__stat-value {
  font-size: var(--vech-text-2xl);
  font-weight: var(--vech-fw-medium);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--vech-ink);
}

.home-intro-guide__stat-label {
  font-size: var(--vech-text-sm);
  line-height: 1.4;
  color: var(--vech-ink-subtle);
}

@media (max-width: 812px) {
  #home-intro-guide.home-intro-guide {
    padding-top: calc(var(--base-padding-y) * 0.28);
    padding-bottom: calc(var(--base-padding-y) * 0.7);
  }

  .home-intro-guide__inner {
    gap: 0.85rem;
  }

  .home-intro-guide__tags {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .home-intro-guide__tag {
    font-size: clamp(0.8125rem, 3.2vw, 0.9375rem);
    padding: 0 1.2em;
  }

  .home-intro-guide__headline {
    font-size: calc(var(--vech-text-display) * 3 / 5);
    letter-spacing: var(--vech-tracking-tight);
    line-height: var(--vech-leading-display);
    gap: 0;
  }

  .home-intro-guide__description {
    max-width: none;
    font-size: var(--vech-text-lg);
    line-height: var(--vech-leading-loose);
  }

  .home-intro-guide__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding-top: 0.85rem;
  }

  .home-intro-guide__stat {
    display: flex;
    min-width: 0;
  }

  .home-intro-guide__stat-divider {
    display: block;
  }

  .home-intro-guide__stat-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0 0.65rem;
    min-width: 0;
  }

  .home-intro-guide__stat:first-child .home-intro-guide__stat-content {
    padding-left: 0;
  }

  .home-intro-guide__stat-value {
    font-size: 1.15rem;
  }

  .home-intro-guide__stat-label {
    font-size: var(--vech-text-xs);
    white-space: nowrap;
  }
}

@media (min-width: 813px) and (max-width: 1100px) {
  .home-intro-guide__headline {
    font-size: var(--vech-text-display);
    letter-spacing: var(--vech-tracking-tight);
    line-height: var(--vech-leading-display);
    gap: 0;
  }

  .home-intro-guide__description {
    max-width: 44rem;
  }
}

/* Footer columns: address | contact | subscribe — keep equal gaps, tighter overall */
@media (min-width: 1001px) {
  #footer-middle {
    /* 4 tracks: content in first 3 (~75% width) → visual gaps ~1/3 smaller */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: clamp(0.5rem, 0.9vw, 1rem);
  }

  #footer-middle-contact {
    grid-column: 1 / 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: inherit;
  }

  #footer-contact-address {
    grid-column: 1;
  }

  #footer-contact-socials,
  #footer-contact-enquires,
  #footer-contact-business {
    grid-column: 2;
  }

  #footer-middle-newsletter {
    grid-column: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
    min-height: 100%;
  }
}

@media (max-width: 1000px) {
  #footer-middle-contact,
  #footer-middle-newsletter {
    grid-column: 1 / span 6;
  }
}

#footer-newsletter-header {
  font-size: var(--vech-text-3xl) !important;
  white-space: normal;
  line-height: 1.18;
}

#footer-newsletter-header .footer-newsletter-line {
  display: block;
}

/* Keep full-viewport footer stretch; only trim the extra top band */
#footer-top {
  flex-grow: 1 !important;
  margin-top: calc(var(--vh, 1vh) * 4) !important;
}

/* Footer: email subscribe → WeChat official-account QR */
#footer-newsletter-input.footer-newsletter-qr {
  height: auto;
  max-width: none;
  width: fit-content;
  margin-top: 1.25em;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

@media (min-width: 1001px) {
  #footer-middle {
    align-items: stretch;
  }

  #footer-newsletter-input.footer-newsletter-qr {
    margin-top: 0;
  }
}

#footer-newsletter-input.footer-newsletter-qr #footer-newsletter-bg {
  display: none;
}

#footer-newsletter-input.footer-newsletter-qr .footer-newsletter-qr-shim {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.footer-newsletter-qr-figure {
  margin: 0;
  display: block;
  opacity: 0;
  transform: translate3d(0, 0.75em, 0);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

#footer-newsletter-input.footer-newsletter-qr.--active
  .footer-newsletter-qr-figure {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.footer-newsletter-qr-image {
  display: block;
  width: clamp(10rem, 15.5vw, 13.75rem);
  height: auto;
  aspect-ratio: 1;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--vech-ink, #111) 18%, transparent);
  background: #fff;
  padding: 0.5rem;
  box-sizing: border-box;
}

@media (max-width: 812px) {
  .footer-newsletter-qr-figure {
    opacity: 1;
    transform: none;
  }
}
