/* Shared site shell, home page, listing, navigation, and footer.
   Case detail layouts live in assets/projects/<project>/styles.css. */

:root {
  --font-display: "Poppins", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Poppins", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 8px;
  --radius-lg: 8px;
  --header-pad: 16px;
  --header-pad-scrolled: 16px;
  --header-pad-collapsed: 16px;
  --header-collapsed-height: 60px;
  --page-max: 1600px;
  --page-gutter: 60px;
}

img,
video,
svg,
canvas {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

html {
  scroll-behavior: smooth;
  --header-offset: calc(var(--header-pad) * 2 + 48px);
}

html.header-scrolled {
  --header-offset: calc(var(--header-pad-scrolled) * 2 + 40px);
}

html.header-collapsed {
  --header-offset: var(--header-collapsed-height);
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-soft: #1a1a1a;
  --text: #f7f6f3;
  --text-muted: #aaa7a1;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --accent: #f7f6f3;
  --btn-bg: #f7f6f3;
  --btn-text: #0a0a0a;
  --chip-bg: rgba(255, 255, 255, 0.06);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] {
  --bg: #f7f6f3;
  --bg-elevated: #ffffff;
  --bg-soft: #efeeea;
  --text: #121212;
  --text-muted: #6b6560;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --accent: #121212;
  --btn-bg: #121212;
  --btn-text: #f7f6f3;
  --chip-bg: rgba(0, 0, 0, 0.04);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

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

.container {
  width: min(calc(100% - var(--page-gutter) * 2), var(--page-max));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  height: calc(var(--header-pad) * 2 + 48px);
  padding: var(--header-pad) 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    height 0.45s var(--ease),
    padding 0.45s var(--ease),
    background-color 0.45s var(--ease),
    border-color 0.45s var(--ease),
    backdrop-filter 0.45s var(--ease),
    transform 0.45s var(--ease);
}

.site-header.is-hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

.site-header.is-scrolled {
  height: calc(var(--header-pad-scrolled) * 2 + 40px);
  padding: var(--header-pad-scrolled) 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}

.site-header.is-collapsed {
  height: var(--header-collapsed-height);
  padding: 0;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(22px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  transition:
    min-height 0.45s var(--ease),
    gap 0.45s var(--ease),
    transform 0.45s var(--ease);
}

.site-header.is-scrolled .header-inner {
  min-height: 40px;
}

.site-header.is-collapsed .header-inner {
  min-height: var(--header-collapsed-height);
  height: 100%;
  gap: 12px;
}

.menu-btn {
  --menu-btn-pad: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-self: start;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.menu-btn:hover,
.menu-btn.is-active {
  color: var(--text);
  opacity: 1;
}

.menu-btn__idle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  white-space: nowrap;
  transition: gap 0.45s var(--ease);
}

.site-header.is-collapsed .menu-btn__idle {
  gap: 0;
}

.menu-btn__icon {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 18px;
  flex-shrink: 0;
  transition: gap 0.45s var(--ease), width 0.45s var(--ease);
}

.menu-btn__icon span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  transition: width 0.4s var(--ease), transform 0.4s var(--ease);
}

.menu-btn__icon span:last-child {
  width: 70%;
}

.menu-btn:hover .menu-btn__icon span:last-child {
  width: 100%;
}

.menu-btn__label {
  overflow: hidden;
  white-space: nowrap;
  transition:
    opacity 0.4s var(--ease),
    max-width 0.45s var(--ease),
    margin 0.45s var(--ease),
    font-size 0.45s var(--ease);
  max-width: 140px;
}

.site-header.is-scrolled .menu-btn__label {
  font-size: 0.84rem;
}

.site-header.is-collapsed .menu-btn__label {
  opacity: 0;
  max-width: 0;
  margin: 0;
  pointer-events: none;
}

.menu-btn__close {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
}

.menu-btn__x {
  width: 12px;
  height: 12px;
  margin-left: 4px;
}

.brand {
  justify-self: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  transition:
    font-size 0.45s var(--ease),
    opacity 0.2s ease,
    transform 0.45s var(--ease);
  transform-origin: center;
}

.site-header.is-scrolled .brand {
  font-size: 1.1rem;
}

.site-header.is-collapsed .brand {
  font-size: 16px;
  transform: none;
}

html[data-page="home"] .brand {
  font-size: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html[data-page="home"].home-title-handoff-active .brand {
  pointer-events: auto;
}

html[data-page="home"].home-title-handoff-active .site-header.is-hidden {
  transform: translateY(0);
  pointer-events: auto;
}

html[data-page="home"]:not(.header-scrolled):not(.home-title-handoff-active):not(.menu-open) .site-header {
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
}

.brand:hover {
  opacity: 0.75;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-self: end;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  transition: font-size 0.45s var(--ease);
}

.site-header.is-collapsed .lang-switch {
  font-size: 0.8rem;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 2px;
  font: inherit;
  transition: color 0.2s ease;
}

.lang-btn.is-active,
.lang-btn:hover {
  color: var(--text);
}

.lang-divider {
  color: var(--text-muted);
  opacity: 0.5;
}

.icon-btn {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0;
  width: 32px;
  height: 32px;
  font-size: 0.78rem;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-header.is-collapsed .icon-btn {
  border-color: transparent;
  background: transparent;
}

.theme-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.theme-symbol {
  display: block;
  width: 14px;
  height: 14px;
}

.material-symbols-outlined.theme-symbol {
  font-size: 14px;
  line-height: 1;
  width: 14px;
  height: 14px;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20;
}

.material-symbols-outlined.theme-symbol--filled {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 20;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--bg-soft);
}

html.menu-open,
html.menu-open body {
  overflow: hidden;
}

html.menu-open main,
html.menu-open .site-footer {
  visibility: hidden;
}

html.menu-open .home-hero__title--handoff {
  visibility: hidden !important;
}

html.menu-open .site-header {
  color: var(--text);
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  transform: none;
  pointer-events: auto;
}

html.menu-open .menu-btn {
  color: var(--text);
  border-color: var(--border);
  background: var(--bg-elevated);
}

html.menu-open .brand,
html.menu-open .lang-btn.is-active,
html.menu-open .lang-btn:hover {
  color: var(--text);
}

html.menu-open .lang-btn,
html.menu-open .lang-divider {
  color: var(--text-muted);
}

html.menu-open .icon-btn {
  color: var(--text);
  border-color: var(--border);
  background: var(--bg-elevated);
}

.site-menu {
  --menu-invert: var(--bg);
  --menu-fg: var(--text);
  --menu-muted: var(--text-muted);
  --menu-inset: max(var(--page-gutter), calc((100vw - var(--page-max)) / 2));
  --nav-width: 400px;
  --window-gap: 80px;
  --window-inset-right: var(--menu-inset);
  --window-width: min(
    calc(100vw - var(--window-left) - var(--window-inset-right)),
    calc((100% - 12rem) * 2 / 1)
  );
  --window-height: calc(var(--window-width) * 9 / 16);
  --window-top: calc((100% - var(--window-height)) / 2);
  --window-left: calc(var(--menu-inset) + var(--nav-width) + var(--window-gap));
  position: fixed;
  inset: 0;
  z-index: 109;
  pointer-events: none;
  overflow: hidden;
}

.site-menu.is-open {
  pointer-events: auto;
}

.menu-window {
  position: absolute;
  top: var(--window-top);
  left: var(--window-left);
  width: var(--window-width);
  height: var(--window-height);
  cursor: pointer;
}

.menu-hero {
  position: absolute;
  top: var(--window-top);
  left: var(--window-left);
  width: var(--window-width);
  height: var(--window-height);
  z-index: 1;
  background: var(--menu-invert);
  opacity: 0;
  visibility: hidden;
}

.menu-hero__media {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  padding: 24px;
  border-radius: 4px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: background-color 0.4s var(--ease);
}

.menu-mobile-cases {
  display: none;
}

.menu-panel {
  position: absolute;
  background: var(--menu-invert);
  opacity: 0;
  will-change: transform;
  transition: background-color 0.35s var(--ease);
}

.menu-panel--top,
.menu-panel--bottom {
  left: 0;
  width: 100%;
  height: var(--window-top);
}

.menu-panel--top {
  top: 0;
}

.menu-panel--bottom {
  top: calc(var(--window-top) + var(--window-height));
}

.menu-panel--left,
.menu-panel--right {
  top: 0;
  height: 100%;
}

.menu-panel--left {
  left: 0;
  width: var(--window-left);
}

.menu-panel--right {
  right: 0;
  width: var(--window-inset-right);
}

.menu-nav {
  position: absolute;
  left: var(--menu-inset);
  top: var(--window-top);
  transform: none;
  z-index: 2;
  width: var(--nav-width);
  max-width: calc(var(--window-left) - var(--menu-inset) - var(--window-gap));
}

.menu-cases {
  opacity: 0;
  visibility: hidden;
}

.menu-case[data-menu-item] {
  opacity: 0;
  visibility: hidden;
}

.menu-links {
  margin-bottom: 3.8rem;
}

.menu-links .menu-case a {
  font-size: 28px;
}

.menu-links .menu-case + .menu-case {
  margin-top: 0.3rem;
}

.menu-cases__title {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--menu-muted);
}

.menu-cases .menu-case + .menu-case {
  margin-top: 0.25rem;
}

.menu-case {
  position: relative;
  width: fit-content;
}

.menu-case a {
  display: block;
  padding: 0.28rem 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--menu-fg);
  transition: opacity 0.25s ease;
  transition-delay: 0s;
}

.menu-case:not(.is-active) a {
  opacity: 0.55;
}

.menu-case.is-active a {
  opacity: 1;
}

.menu-case:not(.is-active):hover a {
  opacity: 1;
  transition-delay: 0.1s;
}

.menu-line {
  position: absolute;
  left: 0;
  bottom: 0.2rem;
  width: 100%;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.menu-line i {
  display: block;
  height: 100%;
  background: var(--menu-fg, currentColor);
  transform: translateX(102%);
}

.menu-year {
  position: absolute;
  left: var(--menu-inset);
  bottom: 2.4rem;
  opacity: 0;
  color: var(--menu-fg);
  font-size: 0.95rem;
}

main {
  padding: calc(var(--header-offset) + 24px) 0 96px;
  min-height: 100vh;
  transition: padding-top 0.45s var(--ease);
}

html[data-page="home"] main {
  padding-top: clamp(24px, 3vw, 48px);
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

html.motion-ready .reveal {
  animation: none;
}

.hero h1,
.page-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  will-change: transform, opacity;
}

.hero__subtitle {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 28px;
}

.hero--home {
  min-height: calc(100svh - var(--header-offset) - 24px);
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  align-items: stretch;
  row-gap: 104px;
  padding: 8px 0 24px;
}

.home-hero__title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: visible;
  padding: 0 0 0.4em;
}

.hero.hero--home .home-hero__title {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  font-size: min(calc(16.89vw - 20.27px), 270.27px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
  white-space: nowrap;
  text-align: left;
  will-change: transform, opacity;
}

.hero--home .home-hero__title,
.hero--home .home-hero__title *,
.hero--home .home-hero__title:hover,
.hero--home .home-hero__title:focus {
  color: var(--text) !important;
  background-image: none !important;
  background-clip: initial !important;
  -webkit-text-fill-color: var(--text) !important;
  transform: none !important;
  transition: none !important;
  pointer-events: none !important;
  cursor: default !important;
}

.home-hero__word,
.home-hero__letter {
  display: inline-block;
}

.home-hero__entries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  width: 100%;
  gap: 16px;
  margin-top: clamp(12px, 1.5vw, 24px);
}

.home-hero__entry {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: clamp(14px, 1.25vw, 18px);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.25s ease;
}

.home-hero__entry:nth-child(2) {
  justify-self: center;
}

.home-hero__entry:last-child {
  justify-self: end;
}

.home-hero__entry:hover,
.home-hero__entry:focus-visible {
  opacity: 1;
}

.home-hero__entry:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

.home-hero__word {
  white-space: nowrap;
}

.home-hero__title--handoff {
  position: fixed;
  z-index: 120;
  margin: 0;
  pointer-events: none;
  color: var(--text);
  will-change: transform, opacity;
}

.home-hero__mask-window {
  position: relative;
  width: 100%;
  height: clamp(240px, calc(20vw + 48px), 400px);
  margin-top: clamp(24px, 2.5vw, 40px);
  overflow: hidden;
  /* Clip the viewport-fixed image without creating a transformed containing block. */
  clip-path: inset(0 round 4px);
  border-radius: 4px;
  background: var(--bg-soft);
}

.home-hero__mask-image {
  position: fixed;
  inset: 0 0 auto;
  height: 100vh;
  height: 100lvh;
  pointer-events: none;
  background-image: var(--home-hero-mask-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__mask-image {
    position: absolute;
    inset: 0;
    height: 100%;
  }
}

.home-hero__footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(0, 2.4fr);
  align-items: end;
  gap: clamp(32px, 7vw, 112px);
  padding-bottom: 132px;
}

.home-hero__footer::after {
  content: "";
  position: absolute;
  right: calc(50% - 50vw);
  bottom: 0;
  left: calc(50% - 50vw);
  height: 1px;
  background: var(--border-strong);
}

.home-hero__link {
  position: relative;
  display: inline-flex;
  align-self: start;
  width: max-content;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  font-size: clamp(0.92rem, 1.25vw, 1.15rem);
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  opacity: 0.55;
  transition: opacity 0.25s ease;
  transition-delay: 0s;
}

.home-hero__link:hover {
  opacity: 1;
  transition-delay: 0.1s;
}

.material-symbols-outlined.home-hero__link-icon {
  display: block;
  font-size: 24px;
  line-height: 1;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.home-hero__link-line {
  bottom: 0;
}

.hero--home .home-hero__statement {
  width: 100%;
  max-width: min(100%, 900px);
  justify-self: end;
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.7vw, 2.9rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.04em;
  text-align: left;
}

/* paulkalkbrenner.net-style scrolling services strip */
.home-services {
  --services-font: clamp(2.15rem, 4.2vw, 4.4rem);
  --services-col: clamp(72px, 20vw, 350px);
  --services-row-gap: clamp(10px, 1.3vw, 21px);
  --services-row-h: calc(var(--services-font) + var(--services-row-gap));
  position: relative;
  overflow-x: hidden;
  overflow-x: clip;
  margin-top: 120px;
  padding: clamp(64px, 8.8vh, 112px) 0 clamp(48px, 6vh, 88px);
}

html[data-page="home"] .home-services {
  --home-services-gutter: 44px;
  width: calc(100% + var(--home-services-gutter));
  margin-left: calc(var(--home-services-gutter) * -1);
}

.home-services__inner {
  position: relative;
  width: 100%;
}

.home-services__lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
}

.home-services__col {
  position: relative;
  flex: 0 0 var(--services-col);
  height: calc(var(--services-row-h) * 4);
  border-left: 1px solid var(--border-strong);
  will-change: transform;
}

.home-services__col:nth-child(n + 10) {
  display: none;
}

.home-services__label {
  position: absolute;
  top: -26px;
  left: 0;
  color: var(--text-muted);
  font-family: Menlo, Monaco, "Courier New", monospace;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.home-services__content {
  position: relative;
  z-index: 2;
}

.home-services__row {
  display: flex;
  align-items: center;
  gap: 0.7em;
  height: var(--services-row-h);
  margin-left: calc(var(--services-col) * var(--offset, 1));
  white-space: nowrap;
  will-change: transform;
}

.home-services__dot {
  flex: 0 0 auto;
  width: calc(var(--services-font) * 0.66);
  height: calc(var(--services-font) * 0.66);
  border-radius: 50%;
  background: var(--text);
}

.home-services__word {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--services-font);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  will-change: transform;
}

.home-services__slash {
  display: inline-block;
  margin: 0 0.025em;
  font-family: "Arial", sans-serif;
  font-size: 1em;
  font-weight: bold;
  line-height: 1;
  transform: translateY(-0.01em);
  transform-origin: center;
}

.home-services__row {
  position: relative;
}

.home-services__word-wrap {
  position: relative;
  display: inline-block;
}

.home-services__preview {
  position: absolute;
  right: 0;
  bottom: calc(100% + clamp(10px, 1.2vw, 18px));
  z-index: 4;
  display: block;
  width: max-content;
  max-width: min(19.44vw, 259px);
  max-height: min(17.82vh, 203px);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.28s ease,
    transform 0.52s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.52s;
}

.home-services__preview.is-ready {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.home-services__preview-clip {
  display: block;
  max-width: 100%;
  max-height: inherit;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.home-services__preview.is-ready .home-services__preview-clip {
  opacity: 1;
}

.home-services__preview-image,
.home-services__preview-video {
  display: block;
  width: auto;
  height: auto;
  max-width: min(19.44vw, 259px);
  max-height: min(17.82vh, 203px);
  object-fit: contain;
}

.home-blog {
  margin-top: clamp(128px, 13vw, 220px);
}

.home-blog__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.home-blog__header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 4.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
}

.home-blog__layout {
  display: grid;
  grid-template-columns: var(--home-blog-cover-size, 465px) minmax(0, 1fr);
  gap: 100px;
  align-items: stretch;
}

.home-blog__feature {
  display: block;
  min-width: 0;
}

.home-blog__feature-image {
  display: block;
  width: 50%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-soft);
}

.home-blog__feature-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.25s ease, transform 0.7s var(--ease), filter 0.35s ease;
}

.home-blog__feature-image img.is-switching {
  opacity: 0.35;
}

/* The PC layout keeps the square cover aligned to the list height. */
@media (min-width: 1281px) {
  .home-blog__feature {
    align-self: start;
    grid-column: 1;
    grid-row: 1;
  }

  .home-blog__feature-image {
    width: 100%;
    height: auto;
  }

  .home-blog__list {
    /* Measure the content height without stretching it to the cover's row height. */
    align-self: start;
    grid-column: 2;
    grid-row: 1;
  }
}

@media (min-width: 960px) and (max-width: 1280px) {
  .home-blog__feature {
    display: none;
  }

  .home-blog__layout {
    grid-template-columns: 1fr;
    gap: clamp(36px, 7.8125vw, 64px);
  }

  .home-blog__item-description {
    display: block;
  }
}

@media (min-width: 640px) and (max-width: 959px) {
  .home-blog__feature {
    display: none;
  }

  .home-blog__layout {
    grid-template-columns: 1fr;
    gap: clamp(36px, 7.8125vw, 64px);
  }

  .home-blog__item-description {
    display: block;
  }
}

.home-blog__feature:hover .home-blog__feature-image img,
.home-blog__feature:focus-visible .home-blog__feature-image img {
  transform: scale(1.025);
  filter: brightness(1.06);
}

.home-blog__list {
  min-width: 0;
  border-top: 1px solid var(--border);
}

.home-blog__item {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr) auto;
  align-items: start;
  gap: clamp(20px, 3vw, 48px);
  min-height: 116px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: color 0.25s ease, padding 0.45s var(--ease);
}

.home-blog__item:hover,
.home-blog__item:focus-visible {
  padding-inline: 8px;
  color: var(--text-muted);
}

.home-blog__item-title {
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  font-weight: 500;
  line-height: 1.35;
}

.home-blog__item-description {
  color: var(--text-muted);
  font-size: clamp(0.9rem, 1.15vw, 1.05rem);
  line-height: 1.45;
}

.home-blog__item-arrow {
  align-self: start;
  font-size: 22px;
  transition: transform 0.45s var(--ease);
}

.home-blog__item:hover .home-blog__item-arrow,
.home-blog__item:focus-visible .home-blog__item-arrow {
  transform: translateX(4px);
}

.home-cases {
  --home-cases-baseline-gap: 0px;
  position: relative;
  margin-top: calc(168px - var(--home-hero-tail, 0px));
  padding-bottom: 56px;
}

.home-cases.is-wheel-locked {
  position: sticky;
  top: var(--home-cases-lock-top, calc(var(--header-offset) + 120px));
  z-index: 3;
  background: var(--bg);
}

html.home-cases-locked .site-header.is-hidden {
  transform: translateY(0);
  pointer-events: auto;
}

html.home-cases-locked .site-header {
  height: var(--header-collapsed-height);
  padding: 0;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom-color: var(--border);
  backdrop-filter: blur(22px);
  transform: translateY(0);
}

html.home-cases-locked .header-inner {
  min-height: var(--header-collapsed-height);
}

html.home-cases-locked {
  scroll-behavior: auto !important;
  overflow: hidden;
  scrollbar-gutter: stable;
}

html.home-cases-locked body {
  overflow: hidden;
}

.home-cases__stage {
  position: relative;
  display: grid;
  min-width: 0;
  outline: none;
}

.home-cases__stage:focus-visible {
  outline: 1px solid var(--border-strong);
  outline-offset: 8px;
}

.home-case {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: 40px;
  min-width: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.home-case.is-active,
.home-case.is-entering,
.home-case.is-leaving {
  visibility: visible;
}

.home-case.is-active {
  opacity: 1;
  pointer-events: auto;
}

.home-case__copy {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 12px 32px var(--home-cases-baseline-gap) 0;
}

.home-case__title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.2vw, 4.4rem);
  font-weight: 500 !important;
  line-height: 1;
  letter-spacing: -0.055em;
  text-transform: none;
}

.home-case__title-line {
  display: block;
  overflow: hidden;
  /* Keep descenders such as the "g" in OAgent inside the animated clip. */
  padding-bottom: 0.18em;
}

.home-case__title-line + .home-case__title-line {
  margin-top: 0.1em;
}

.home-case__title-line > span {
  display: block;
  will-change: transform;
}

.home-case__details-clip,
.home-case__visual-clip {
  overflow: hidden;
}

.home-case__details-clip {
  width: min(72%, 430px);
  margin: auto 0 0 auto;
}

.home-case__details {
  will-change: transform, opacity;
}

.home-case__details p {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.92rem, 1.08vw, 1.05rem);
  line-height: 1.5;
}

[data-theme="light"] .home-case__details p {
  color: #59534e;
}

.home-case__link {
  position: relative;
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-bottom: 4px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 500;
  text-transform: uppercase;
  opacity: 0.55;
  transition: opacity 0.25s ease;
  transition-delay: 0s;
}

.home-case__link:hover {
  opacity: 1;
  transition-delay: 0.1s;
}

.home-case__link-line {
  bottom: 0;
}

.home-case__link .material-symbols-outlined {
  font-size: 21px;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.home-case__visual-clip {
  width: 95%;
  min-width: 0;
  justify-self: end;
}

.home-case__visual {
  display: block;
  min-width: 0;
  will-change: transform, opacity;
}

.home-case__color {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background-color: var(--case-color);
  background-image: var(--home-case-cover, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #f7f6f3;
}

.home-cases__pagination {
  position: absolute;
  z-index: 10;
  top: var(--home-cases-pagination-top, 0px);
  bottom: auto;
  left: 0;
  display: flex;
  width: 44px;
  flex-direction: column;
  gap: 0;
}

.home-cases__bullet {
  position: relative;
  width: 44px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.home-cases__bullet span {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 18px;
  height: 1px;
  background: var(--text-muted);
  transform: translateY(-50%);
  transform-origin: left;
  transition: background-color 0.2s ease, transform 0.4s ease 0.1s;
}

.home-cases__bullet:hover span,
.home-cases__bullet.is-active span {
  background: var(--text);
}

.home-cases__bullet.is-active span {
  transform: translateY(-50%) scaleX(1.5);
}

.home-cases.is-transitioning a,
.home-cases.is-transitioning button {
  pointer-events: none;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: transform 0.25s var(--ease), opacity 0.25s ease;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.section {
  margin-top: 80px;
}

.section-head {
  margin-bottom: 36px;
}

.section-head h2,
.page-intro h1 + p {
  font-family: var(--font-display);
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.section-head p,
.page-intro p {
  color: var(--text-muted);
  margin: 0;
  max-width: 560px;
}

.page-intro {
  margin-bottom: 40px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}

[data-work-grid] {
  transition: opacity 0.2s var(--ease);
}

.filter-chip {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.filter-chip.is-active {
  background: var(--btn-bg);
  color: var(--btn-text);
  border-color: transparent;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 5vw, 64px);
  row-gap: clamp(30px, 6.25vw, 80px);
}

.work-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.work-card:hover .work-card__media {
  opacity: 0.88;
}

.work-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  border-radius: 4px;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

/* Video previews supply their own hover state, so keep those cards unchanged. */
[data-page-works] .work-card:has(.work-card__preview):hover .work-card__media {
  opacity: 1;
}

.work-card__media-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Case hero media must preserve the complete source frame at every viewport. */
html[data-page="work"] .work-hero--case .work-hero__media--bleed > .work-hero__media-image,
html[data-page="work"] .work-hero--case .work-hero__media--bleed > .work-hero__media-video {
  object-fit: contain;
}

@media (max-width: 1280px) {
  html[data-page="work"] .work-hero--case .work-hero__media--bleed {
    min-height: 0;
  }
}

.work-card__year {
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 10px;
  border-radius: 999px;
}

[data-page-works] .work-card__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
}

[data-page-works] .work-card__media.is-playing .work-card__preview {
  opacity: 1;
}

.work-card__body {
  padding: 28px 0 0;
}

.work-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.65vw, 1.5rem);
  font-weight: 400;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.work-card__summary {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.work-card__tags > span {
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.case-nav__mobile-label {
  display: none;
}

@media (max-width: 640px) {
  html[data-page="work"] .work-hero__info {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  html[data-page="work"] .work-hero__tags {
    justify-content: flex-start;
    justify-self: start;
    margin: 0;
  }

  html[data-page="work"] [data-page-work][data-case] .case-nav {
    padding: 40px 0;
  }

  html[data-page="work"] .case-nav__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  html[data-page="work"] .case-nav__item--prev {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
  }

  html[data-page="work"] .case-nav__item--next {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
  }

  html[data-page="work"] .case-nav__link {
    gap: 12px;
    margin-top: 0;
    font-size: 1rem;
    line-height: 1;
  }

  html[data-page="work"] .case-nav__link .material-symbols-outlined {
    font-size: clamp(1.1rem, 5.6vw, 1.5rem);
  }

  html[data-page="work"] .case-nav__item .case-kicker {
    display: none;
  }

  html[data-page="work"] .case-nav__mobile-label {
    display: inline-block;
    font-size: clamp(0.95rem, 4.8vw, 1.25rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.04em;
  }

  html[data-page="work"] .case-nav__item--prev .case-nav__link {
    order: 0;
  }

  html[data-page="work"] .case-nav__item--prev .case-kicker {
    order: 1;
  }

  html[data-page="work"] .case-nav__item--next .case-kicker {
    order: 0;
  }

  html[data-page="work"] .case-nav__item--next .case-nav__link {
    order: 1;
  }

  html[data-page="work"] .case-nav__link > span:not(.material-symbols-outlined):not(.case-nav__mobile-label) {
    display: none;
  }
}

@media (min-width: 641px) and (max-width: 960px) {
  html[data-page="work"] [data-page-work][data-case] .case-nav__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }

  html[data-page="work"] .work-hero__info {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  html[data-page="work"] .work-hero__tags {
    justify-content: flex-start;
    justify-self: start;
    margin: 0;
  }
}

html.from-menu,
html.from-menu body {
  overflow: hidden;
}

.menu-leave,
[data-menu-cover] {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

[data-menu-cover] {
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 300;
}

.menu-leave .menu-hero__media {
  width: 100%;
  height: 100%;
}

/* The transition shell must never add its own color behind the active case. */
.menu-leave,
[data-menu-backdrop] {
  background-color: transparent !important;
  background-image: none !important;
}

.menu-hero__year {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 12px;
  border-radius: 999px;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 48px 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-inner a:hover {
  color: var(--text);
}

.reveal {
  animation: reveal 0.7s var(--ease) both;
  animation-delay: var(--delay, 0s);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .site-menu {
    --window-gap: 0px;
    --window-width: min(calc(100% - var(--menu-inset) * 2), calc((100% - 12rem) * 2 / 1));
    --window-height: calc(var(--window-width) * 9 / 16);
    --window-top: calc((100% - var(--window-height)) / 2);
    --window-left: var(--menu-inset);
    --window-inset-right: var(--menu-inset);
  }

  .site-menu .menu-window,
  .site-menu .menu-hero {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .menu-panel--left,
  .menu-panel--right {
    width: var(--menu-inset);
  }

  .menu-nav {
    top: calc(var(--window-top) + var(--window-height) + 1.6rem);
    transform: none;
    width: auto;
    max-width: calc(100% - var(--menu-inset) * 2);
  }
}

@media (min-width: 641px) and (max-width: 960px) {
  .site-menu {
    --window-width: calc(100vw - var(--menu-inset) * 2);
    --window-height: calc((var(--window-width) - 16px) * 9 / 32);
    --window-top: calc((100% - var(--window-height)) / 2);
  }

  .site-menu .menu-window,
  .site-menu .menu-hero {
    aspect-ratio: auto;
    height: var(--window-height);
  }

  .site-menu .menu-nav {
    top: 0;
    bottom: 0;
    height: 100%;
    padding: 0;
  }

  .site-menu .menu-nav a {
    white-space: nowrap;
  }

  .site-menu .menu-hero {
    display: none;
  }

  .site-menu .menu-links {
    position: absolute;
    top: auto;
    bottom: calc(100% - var(--window-top) + 1.6rem);
    margin-bottom: 0;
  }

  .site-menu .menu-links .menu-case a {
    opacity: 1;
  }

  .site-menu .menu-cases {
    display: none;
  }

  .site-menu .menu-mobile-cases {
    position: absolute;
    top: calc(var(--window-top) + 16px);
    left: 0;
    z-index: 2;
    display: block;
    width: 100%;
    overflow: hidden;
  }

  .site-menu .menu-mobile-cases__title {
    margin: 0 var(--menu-inset) 16px;
  }

  .site-menu .menu-mobile-cases__track {
    display: flex;
    gap: 16px;
    width: 100%;
    padding: 0 var(--menu-inset) 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: var(--menu-inset);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }

  .site-menu .menu-mobile-cases__track::-webkit-scrollbar {
    display: none;
  }

  .site-menu .menu-mobile-card {
    flex: 0 0 calc((100vw - var(--menu-inset) * 2 - 16px) / 2);
    min-width: 0;
    color: var(--menu-fg);
    scroll-snap-align: start;
  }

  .site-menu .menu-mobile-card__media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .site-menu .menu-mobile-card__title {
    display: block;
    margin-top: 12px;
    overflow: hidden;
    font-size: clamp(1rem, 2.4vw, 1.25rem);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (min-width: 961px) and (max-width: 1400px) {
  /* Fill the case row; the default 16:9 ratio only sets the natural height. */
  .home-case__visual,
  .home-case__color {
    width: 100%;
    height: 100%;
  }
}

@media (min-width: 1281px) and (max-width: 1400px) {
  .site-menu {
    --window-gap: calc((100vw - 1280px) * 2 / 3);
  }
}

@media (min-width: 961px) and (max-width: 1280px) {
  .site-menu {
    --window-gap: 0px;
    /* Match the cover height at 1281px; narrower widths crop the image horizontally. */
    --window-height: 427.6875px;
  }
}

@media (max-width: 960px) {
  .hero--home {
    row-gap: 60px;
  }

  .home-hero__footer {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .home-cases {
    margin-top: calc(128px - var(--home-hero-tail, 0px));
  }

  .home-cases__pagination {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    width: auto;
    flex-direction: row;
    gap: 12px;
    margin: 24px 0 0;
  }

  .home-cases__bullet {
    width: 44px;
  }

  .home-cases__bullet.is-active span {
    transform: translateY(-50%) scaleX(1.35);
  }

  .home-case {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .home-case__copy {
    min-height: 0;
    justify-content: flex-start;
    gap: 24px;
    padding: 0;
  }

  .home-case__details-clip {
    width: min(80%, 520px);
    margin: 0;
  }

  .home-case__visual-clip {
    width: 100%;
    justify-self: stretch;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    gap: 10px;
  }
}

@media (min-width: 641px) and (max-width: 960px) {
  .hero.hero--home .home-hero__title {
    font-size: calc(16.74vw - 20.09px);
  }
}

@media (max-width: 640px) {
  :root {
    --page-gutter: 24px;
  }

  .site-menu {
    --window-width: calc(100vw - var(--menu-inset) * 2);
    --window-height: calc(var(--window-width) * 9 / 16);
  }

  .lang-switch {
    gap: 0;
  }

  .lang-divider,
  .lang-btn:not(.is-active) {
    display: none;
  }

  .container {
    width: min(calc(100% - var(--page-gutter) * 2), var(--page-max));
  }

  .menu-btn__label {
    font-size: 0.8rem;
  }

  .brand {
    font-size: 1.05rem;
  }

  .lang-switch {
    font-size: 0.78rem;
  }

  .hero--home {
    min-height: calc(100svh - var(--header-offset) - 24px);
    padding-bottom: 8px;
  }

  .home-hero__title-wrap {
    align-items: center;
    padding: 0 0 0.4em;
  }

  .site-menu .menu-nav {
    top: 0;
    bottom: 0;
    height: 100%;
    padding: 0;
  }

  .site-menu .menu-nav a {
    white-space: nowrap;
  }

  .site-menu .menu-hero {
    display: none;
  }

  .site-menu .menu-links {
    position: absolute;
    top: auto;
    bottom: calc(100% - var(--window-top) + 1.6rem);
    margin-bottom: 0;
  }

  .site-menu .menu-links .menu-case a {
    opacity: 1;
  }

  .site-menu .menu-cases {
    display: none;
  }

  .site-menu .menu-mobile-cases {
    position: absolute;
    top: calc(var(--window-top) + 16px);
    left: 0;
    z-index: 2;
    display: block;
    width: 100%;
    overflow: hidden;
  }

  .site-menu .menu-mobile-cases__title {
    margin: 0 var(--menu-inset) 16px;
  }

  .site-menu .menu-mobile-cases__track {
    display: flex;
    gap: 16px;
    width: 100%;
    padding: 0 var(--menu-inset) 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: var(--menu-inset);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }

  .site-menu .menu-mobile-cases__track::-webkit-scrollbar {
    display: none;
  }

  .site-menu .menu-mobile-card {
    flex: 0 0 calc(100vw - var(--menu-inset) * 2);
    min-width: 0;
    color: var(--menu-fg);
    scroll-snap-align: start;
  }

  .site-menu .menu-mobile-card__media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .site-menu .menu-mobile-card__title {
    display: block;
    margin-top: 12px;
    overflow: hidden;
    font-size: clamp(1rem, 4.8vw, 1.25rem);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-hero__mask-window {
    height: clamp(180px, calc(40vw + 32px), 288px);
    margin-top: 20px;
  }

  .hero.hero--home .home-hero__title {
    font-size: calc(29.8vw - 14.25px);
    line-height: 1;
    white-space: normal;
    text-align: left;
  }

  .hero--home .home-hero__statement {
    font-size: clamp(1.28rem, 6.2vw, 1.85rem);
    line-height: 1.2;
  }

  .home-hero__footer {
    gap: 24px;
  }

  .home-cases {
    margin-top: calc(192px - var(--home-hero-tail, 0px));
    padding-bottom: 56px;
  }

  .home-services {
    --services-font: clamp(1.4rem, 6.8vw, 2.05rem);
    --services-col: clamp(52px, 14vw, 220px);
    margin-top: 96px;
  }

  .home-blog {
    margin-top: 96px;
  }

  .home-blog__header {
    margin-bottom: 40px;
  }

  .home-blog__layout {
    grid-template-columns: 1fr;
    gap: clamp(28px, 5.208vw, 56px);
  }

  .home-blog__feature {
    display: none;
  }

  .home-blog__layout {
    gap: 0;
  }

  .home-blog__feature-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .home-blog__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    min-height: 72px;
  }

  .home-blog__item-title {
    grid-column: 1;
    grid-row: 1;
  }

  .home-blog__item-arrow {
    grid-column: 2;
    grid-row: 1;
    display: inline-flex;
    margin-left: 0;
  }

  .home-blog__item-description {
    display: block;
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 12px;
  }

  .home-services__col:nth-child(n + 10) {
    display: block;
  }

  .home-services__preview {
    right: 0;
    max-width: 34.02vw;
    max-height: 16.2vh;
  }

  .home-services__preview-image,
  .home-services__preview-video {
    max-width: 34.02vw;
    max-height: 16.2vh;
  }

  html[data-page="home"] .home-services {
    --home-services-gutter: var(--page-gutter);
    width: 100%;
    margin-left: 0;
  }

  .home-case__title {
    font-size: clamp(1.92rem, 10.5vw, 2.9rem);
    line-height: 1;
  }

  .home-case__details-clip {
    width: 100%;
  }

  .home-case__link {
    margin-top: 12px;
  }
}

@media (max-width: 417px) {
  .lang-btn[data-lang-btn="zh"] {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-services__preview,
  .home-services__preview-clip,
  .home-services__preview-image,
  .home-services__preview-video {
    transition: none;
  }

  html[data-page="home"] .brand {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}
