/* ==========================================================================
   JIAYUE — main stylesheet
   ========================================================================== */

/* ---------- fonts (latin subsets; Chinese falls back to system fonts) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap; src: url(/assets/fonts/cormorant-garamond-latin-300-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300; font-display: swap; src: url(/assets/fonts/cormorant-garamond-latin-300-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/cormorant-garamond-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/cormorant-garamond-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/assets/fonts/manrope-latin-wght-normal.woff2) format("woff2-variations"), url(/assets/fonts/manrope-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- tokens ---------- */
:root {
  --ink: #141414;
  --ink-2: #2a2927;
  --paper: #f2f0eb;
  --paper-2: #e8e4dc;
  --stone: #d7d1c6;
  --muted: #74706a;
  --line: rgba(20, 20, 20, 0.13);
  --line-strong: rgba(20, 20, 20, 0.28);
  --on-dark: rgba(242, 240, 235, 0.62);
  --line-dark: rgba(242, 240, 235, 0.14);
  --accent: #a21e19;
  --f-display: "Cormorant Garamond", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", serif;
  --f-sans: "Manrope", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
  --pad: clamp(16px, 4vw, 64px);
  --gap: clamp(16px, 2vw, 28px);
  --hh: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.7 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
:lang(zh) body, html:lang(zh-CN) body { line-height: 1.85; letter-spacing: 0.02em; }
/* Cormorant defaults to old-style figures; the `font` shorthand resets numeric variants, hence !important. */
* { font-variant-numeric: lining-nums !important; }
.stats__n, .loader__num, .team__n { font-variant-numeric: lining-nums tabular-nums !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
address { font-style: normal; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 400; background: var(--ink); color: var(--paper); padding: 10px 16px; transform: translateY(-200%); transition: transform 0.3s; }
.skip:focus { transform: none; }

/* ---------- type ---------- */
.t-label { font: 500 11px/1.4 var(--f-sans); letter-spacing: 0.18em; text-transform: uppercase; }
html:lang(zh-CN) .t-label { letter-spacing: 0.2em; font-size: 12px; }
.t-display { font-family: var(--f-display); font-weight: 300; }
.t-hero { font: 300 clamp(40px, 6vw, 112px)/0.98 var(--f-display); letter-spacing: -0.02em; }
html:lang(zh-CN) .t-hero { font-size: clamp(32px, 4.6vw, 84px); line-height: 1.12; letter-spacing: 0.02em; }
.t-h1 { font: 300 clamp(36px, 4.8vw, 86px)/1 var(--f-display); letter-spacing: -0.015em; }
html:lang(zh-CN) .t-h1 { font-size: clamp(30px, 3.8vw, 68px); line-height: 1.15; letter-spacing: 0.02em; }
.t-h2 { font: 300 clamp(30px, 3.4vw, 58px)/1.06 var(--f-display); letter-spacing: -0.01em; }
html:lang(zh-CN) .t-h2 { font-size: clamp(24px, 2.6vw, 44px); line-height: 1.3; letter-spacing: 0.03em; }
.t-h3 { font: 400 clamp(21px, 1.85vw, 30px)/1.2 var(--f-display); }
html:lang(zh-CN) .t-h3 { font-size: clamp(18px, 1.45vw, 24px); font-weight: 400; line-height: 1.4; }
.t-lead { font: 300 clamp(22px, 2.5vw, 42px)/1.26 var(--f-display); letter-spacing: -0.005em; }
html:lang(zh-CN) .t-lead { font-size: clamp(18px, 1.9vw, 32px); line-height: 1.65; letter-spacing: 0.03em; }
.ln { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.ln > span { display: inline-block; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1760px; margin-inline: auto; padding-inline: var(--pad); }
.sec { padding-block: clamp(96px, 12vw, 200px); }
.sec__head { display: flex; flex-direction: column; gap: clamp(18px, 2vw, 28px); }
.sec__label { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.sec__label::after { content: ""; width: 48px; height: 1px; background: currentColor; opacity: 0.5; order: 3; }
.media { position: relative; overflow: hidden; background: var(--paper-2); }
.media .par { position: absolute; inset: -11% 0; will-change: transform; }
.media .par img, .media > a img, .media > img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- buttons & links ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 17px 28px; border-radius: 999px; overflow: hidden; isolation: isolate;
  font-size: 14px; font-weight: 500; letter-spacing: 0.04em; white-space: nowrap;
  transition: color 0.5s var(--ease), transform 0.6s var(--ease), border-color 0.5s;
}
.btn::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform 0.6s var(--ease); }
.btn:hover::before { transform: none; }
.btn--light { color: #fff; border: 1px solid rgba(255, 255, 255, 0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--light::before { background: #fff; }
.btn--light:hover { color: var(--ink); border-color: #fff; }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark::before { background: var(--accent); }
.ico-arrow { width: 18px; height: 18px; flex: none; transition: transform 0.6s var(--ease); }
.btn:hover .ico-arrow, .link-arrow:hover .ico-arrow { transform: translateX(5px); }
.link-arrow { position: relative; display: inline-flex; align-items: center; gap: 12px; padding-bottom: 8px; font-size: 15px; font-weight: 500; }
.link-arrow::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform 0.6s var(--ease); }
.link-arrow:hover::after { animation: line-swap 0.9s var(--ease); }
@keyframes line-swap { 0% { transform: scaleX(1); transform-origin: right; } 45% { transform: scaleX(0); transform-origin: right; } 46% { transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }

/* ---------- logo mark ---------- */
.mark .mk-r { fill: var(--accent); }
.mark .mk-d { fill: currentColor; }
.mark .mk-g { fill: #8b8d8c; }

/* ---------- loader (first visit) & page curtain ---------- */
.loader { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: var(--ink); color: var(--paper); }
html.is-loading .loader, .loader.is-done { display: grid; }
html.is-loading .loader { animation: failsafe-hide 0.01s 6s forwards; }
.loader.is-done { clip-path: inset(0 0 100% 0); transition: clip-path 1.15s var(--ease-io); }
.loader__mark .mark { width: clamp(72px, 8vw, 104px); color: var(--paper); }
.mark--loader path { transform-box: fill-box; transform-origin: 50% 100%; animation: bar-up 1.1s var(--ease) both; }
.mark--loader .mk-d { animation-delay: 0.14s; }
.mark--loader .mk-g { animation-delay: 0.28s; }
@keyframes bar-up { from { transform: scaleY(0); } }
.loader__word { position: absolute; left: var(--pad); bottom: 34px; font: 500 11px var(--f-sans); letter-spacing: 0.3em; color: var(--on-dark); }
.loader__num { position: absolute; right: var(--pad); bottom: 18px; font: 300 clamp(60px, 10vw, 160px)/1 var(--f-display); font-variant-numeric: tabular-nums; }
@keyframes failsafe-hide { to { visibility: hidden; } }

.curtain { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: var(--ink); color: var(--paper); transform: translateY(100%); pointer-events: none; }
.curtain .mark { width: 56px; opacity: 0; transition: opacity 0.3s; }
html.is-entering .curtain { transform: none; animation: failsafe-up 0.01s 6s forwards; }
html.is-entering .curtain .mark { opacity: 1; }
.curtain.is-in { transform: none; transition: transform 0.6s var(--ease-io); }
.curtain.is-in .mark { opacity: 1; transition-delay: 0.3s; }
.curtain.is-out { transform: translateY(-100%); transition: transform 0.95s var(--ease-io); }
.curtain.is-out .mark { opacity: 0; transition-duration: 0.2s; }
@keyframes failsafe-up { to { transform: translateY(-100%); } }

/* ---------- header ---------- */
.hd {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--hh);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--pad); color: var(--ink);
  transition: transform 0.7s var(--ease), color 0.4s;
}
.hd::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgba(242, 240, 235, 0.84); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  transition: opacity 0.4s;
}
.hd.is-solid::before { opacity: 1; }
.hd.is-hidden { transform: translateY(-101%); }
body[data-theme="dark"] .hd:not(.is-solid) { color: #fff; }
html.menu-open .hd { color: #fff; transform: none; }
html.menu-open .hd::before { opacity: 0; }
.hd__brand { display: flex; align-items: center; gap: 14px; }
.hd__brand .mark { width: 38px; transition: transform 0.6s var(--ease); }
.hd__brand:hover .mark { transform: scale(1.06); }
.hd__word { display: flex; align-items: baseline; gap: 10px; font: 600 15px/1 var(--f-sans); letter-spacing: 0.32em; }
.hd__word span { font-weight: 400; font-size: 13px; letter-spacing: 0.24em; opacity: 0.7; }
.hd__nav { display: flex; gap: clamp(24px, 3vw, 48px); margin-left: auto; margin-right: clamp(16px, 3vw, 48px); }
.hd__nav a { position: relative; display: block; overflow: hidden; font-size: 14px; font-weight: 500; letter-spacing: 0.06em; line-height: 1.5; }
.hd__nav a span { position: relative; display: block; transition: transform 0.55s var(--ease); }
.hd__nav a span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
.hd__nav a:hover span { transform: translateY(-100%); }
.hd__nav a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 50%; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: var(--accent); }
.hd__nav a[aria-current="page"] { overflow: visible; }
.hd__nav a[aria-current="page"] span { overflow: hidden; }
.hd__right { display: flex; align-items: center; gap: 20px; }
.hd__lang { display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; }
.hd__lang span { opacity: 0.45; transition: opacity 0.3s; }
.hd__lang span.is-on, .hd__lang:hover span { opacity: 1; }
.hd__lang i { font-style: normal; opacity: 0.3; }
.hd__burger { display: none; width: 44px; height: 44px; margin-right: -10px; place-items: center; }
.hd__burger-lines { position: relative; display: block; width: 26px; height: 9px; }
.hd__burger-lines i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.6s var(--ease), top 0.6s var(--ease); }
.hd__burger-lines i:first-child { top: 0; }
.hd__burger-lines i:last-child { top: 7.5px; }
html.menu-open .hd__burger-lines i:first-child { top: 4px; transform: rotate(45deg) scaleX(0.82); }
html.menu-open .hd__burger-lines i:last-child { top: 4px; transform: rotate(-45deg) scaleX(0.82); }

/* ---------- full-screen menu ---------- */
.menu { position: fixed; inset: 0; z-index: 55; color: var(--paper); visibility: hidden; pointer-events: none; transition: visibility 0s 0.9s; }
html.menu-open .menu { visibility: visible; pointer-events: auto; transition: none; }
.menu__bg { position: absolute; inset: 0; background: var(--ink); clip-path: inset(0 0 100% 0); transition: clip-path 0.9s var(--ease-io); }
html.menu-open .menu__bg { clip-path: inset(0); }
.menu__nav { position: relative; height: 100%; display: flex; align-items: center; padding-top: var(--hh); }
.menu__nav li { overflow: hidden; }
.menu__nav a {
  display: inline-flex; align-items: flex-start; gap: 14px;
  font: 300 clamp(40px, 8.5vw, 88px)/1.12 var(--f-display);
  transform: translateY(110%); transition: transform 0.45s var(--ease), opacity 0.4s;
}
html:lang(zh-CN) .menu__nav a { font-size: clamp(34px, 6.8vw, 72px); line-height: 1.32; }
html.menu-open .menu__nav a { transform: none; transition: transform 1s var(--ease) calc(0.3s + var(--i) * 0.06s), opacity 0.4s; }
.menu__nav ol:hover a { opacity: 0.32; }
.menu__nav ol a:hover, .menu__nav a[aria-current="page"] { opacity: 1; }
.menu__preview { position: absolute; right: var(--pad); top: 50%; width: min(30vw, 460px); aspect-ratio: 4 / 5; transform: translateY(-46%); overflow: hidden; opacity: 0; transition: opacity 0.6s; }
html.menu-open .menu__preview { opacity: 1; transition-delay: 0.5s; }
.menu__pic { position: absolute; inset: 0; opacity: 0; transform: scale(1.1); transition: opacity 0.7s, transform 1.4s var(--ease); }
.menu__pic.is-on { opacity: 1; transform: none; }
.menu__pic img { width: 100%; height: 100%; object-fit: cover; }
.menu__foot { position: absolute; left: 0; right: 0; bottom: max(24px, env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13px; color: var(--on-dark); opacity: 0; transition: opacity 0.4s; }
html.menu-open .menu__foot { opacity: 1; transition-delay: 0.7s; }

/* ---------- home hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 580px; overflow: hidden; color: #fff; background: #0e0e0e; }
.hero__media { position: absolute; inset: 0; will-change: transform; }
.hero__slide { position: absolute; inset: 0; opacity: 0; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }
.hero__slide.is-prev { opacity: 1; z-index: 1; }
.hero__slide.is-active { opacity: 1; z-index: 2; transition: opacity 1.6s var(--ease); }
.hero__slide.is-active img { animation: ken 9s linear both; }
.hero__slide.is-enter { opacity: 0; transition: none; }
@keyframes ken { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.hero__shade { position: absolute; inset: 0; z-index: 3; background: linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.12) 45%, rgba(0, 0, 0, 0) 70%), linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.04) 28%, rgba(0, 0, 0, 0.16) 50%, rgba(0, 0, 0, 0.7) 100%); }
.hero__inner { position: relative; z-index: 4; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(112px, 17vh, 176px); }
.hero__kicker { opacity: 0.8; }
.hero__title { margin: clamp(14px, 2vh, 24px) 0 clamp(24px, 4vh, 44px); }
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.hero__sub { max-width: 34em; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.75; opacity: 0.86; }
.hero__meta { position: absolute; z-index: 4; left: 0; right: 0; bottom: max(24px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; font-size: 13px; }
.hero__caps { position: relative; height: 1.6em; overflow: hidden; }
.hero__cap { position: absolute; inset: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(100%); transition: transform 0.9s var(--ease), opacity 0.9s; }
.hero__cap span { font-weight: 600; }
.hero__cap.is-active { opacity: 0.9; transform: none; }
.hero__cap.is-leave { opacity: 0; transform: translateY(-100%); }
.hero__cap:hover { opacity: 1; }
.hero__bars { display: flex; gap: 6px; }
.hero__bars button { width: 44px; height: 24px; display: flex; align-items: center; }
.hero__bars i { position: relative; display: block; width: 100%; height: 1px; overflow: hidden; background: rgba(255, 255, 255, 0.28); }
.hero__bars i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__bars button[aria-selected="true"] i::after { animation: bar-fill var(--slide, 6.5s) linear forwards; }
.hero.is-paused .hero__bars button[aria-selected="true"] i::after { animation-play-state: paused; }
@keyframes bar-fill { to { transform: scaleX(1); } }
.hero__scroll { position: absolute; z-index: 4; right: var(--pad); top: 50%; display: flex; flex-direction: column; align-items: center; gap: 16px; writing-mode: vertical-rl; opacity: 0.7; transform: translateY(-50%); }
.hero__scroll i { position: relative; width: 1px; height: 64px; overflow: hidden; background: rgba(255, 255, 255, 0.25); }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: #fff; animation: scroll-cue 2.2s var(--ease-io) infinite; }
@keyframes scroll-cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- intro & stats ---------- */
.intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; padding-bottom: clamp(64px, 8vw, 120px); }
.intro .sec__label { grid-column: 1 / 4; align-self: start; padding-top: 0.9em; }
.intro__text { grid-column: 4 / 13; }
.intro .link-arrow { grid-column: 4 / 13; justify-self: start; }
[data-scrub] .w { opacity: 0.16; }
.no-scrub [data-scrub] .w { opacity: 1; }

.stats__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stats__item { padding: clamp(24px, 3vw, 40px) var(--gap) clamp(32px, 4vw, 52px); border-right: 1px solid var(--line); }
.stats__item:first-child { padding-left: 0; }
.stats__item:last-child { border-right: 0; }
.stats__n { display: flex; align-items: flex-start; font: 300 clamp(46px, 5.6vw, 100px)/1 var(--f-display); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.02em; }
.stats__n sup { font-size: 0.34em; margin: 0.15em 0 0 0.08em; color: var(--accent); }
.stats__l { display: block; margin-top: 14px; font-size: 13px; color: var(--muted); letter-spacing: 0.06em; }

/* ---------- selected works (horizontal) ---------- */
.works { position: relative; margin-top: clamp(96px, 12vw, 200px); background: var(--ink); color: var(--paper); }
.works .sec__label { color: var(--on-dark); }
.works__sticky { padding-block: clamp(88px, 10vw, 140px); display: flex; flex-direction: column; gap: clamp(32px, 5vh, 56px); }
.works.is-pinned .works__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; justify-content: center; padding-block: calc(var(--hh) * 0.6) 0; }
.works__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.works__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; color: var(--on-dark); }
.works__hint--touch { display: none; }
.works__bar { position: relative; display: block; width: clamp(120px, 14vw, 220px); height: 1px; background: var(--line-dark); }
.works__bar i { position: absolute; inset: 0; background: var(--paper); transform: scaleX(0); transform-origin: left; }
/* Two rows that scroll sideways together: cards fill each column top-then-bottom. */
.works__track { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: max-content; align-items: start; gap: clamp(20px, 2.2vw, 32px) clamp(16px, 2vw, 32px); padding-inline: var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.works__track::-webkit-scrollbar { display: none; }
.works.is-pinned .works__track { overflow: visible; scroll-snap-type: none; will-change: transform; width: max-content; }
.wcard { --h: clamp(168px, calc((100vh - 470px) / 2), 320px); display: flex; flex-direction: column; width: calc(var(--h) * 1.5); scroll-snap-align: start; }
.wcard__media { position: relative; height: var(--h); overflow: hidden; background: #222; }
.wcard__par { position: absolute; inset: 0 -7%; will-change: transform; }
.wcard__par img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.4s var(--ease), filter 1s; }
.wcard:hover .wcard__par img { transform: scale(1.1); }
.wcard__meta { padding-top: 14px; }
.wcard__title { font: 400 clamp(19px, 1.45vw, 25px)/1.2 var(--f-display); }
.wcard__meta p { font-size: 13px; color: var(--on-dark); }
.wcard--all { justify-content: center; gap: 14px; height: var(--h); padding: clamp(24px, 2.4vw, 40px); border: 1px solid var(--line-dark); transition: background 0.6s, color 0.6s; }
.wcard--all:hover { background: var(--paper); color: var(--ink); }
.wcard__all-n { font: 300 clamp(64px, 6vw, 112px)/0.9 var(--f-display); }
.wcard__all-t { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }

/* ---------- sectors ---------- */
.sectors__row { display: flex; gap: 12px; height: min(78vh, 780px); margin-top: clamp(40px, 5vw, 72px); }
.sector { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; color: #fff; background: #222; transition: flex-grow 1s var(--ease); }
.sectors__row:hover .sector { flex-grow: 0.75; }
.sectors__row .sector:hover { flex-grow: 1.9; }
.sector__media { position: absolute; inset: 0; }
.sector__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.sector:hover .sector__media img { transform: scale(1); }
.sector::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 30%, rgba(0, 0, 0, 0.72)); transition: opacity 0.6s; }
.sector__body { position: absolute; z-index: 2; left: clamp(20px, 2.4vw, 36px); right: clamp(20px, 2.4vw, 36px); bottom: clamp(20px, 2.4vw, 36px); }
.sector__title { margin: 0; font: 300 clamp(26px, 2.6vw, 46px)/1.1 var(--f-display); white-space: nowrap; }
html:lang(zh-CN) .sector__title { font-size: clamp(22px, 2.1vw, 36px); line-height: 1.35; }
.sector__desc { max-width: 26em; max-height: 0; margin-top: 0; opacity: 0; font-size: 15px; transform: translateY(16px); transition: opacity 0.6s, transform 0.8s var(--ease), max-height 0.8s var(--ease), margin 0.8s var(--ease); }
.sector:hover .sector__desc, .sector:focus-visible .sector__desc { max-height: 8em; margin-top: 12px; opacity: 0.86; transform: none; }
.sector__count { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; opacity: 0.86; }
.sector__count .ico-arrow { width: 16px; }

/* ---------- process ---------- */
.process__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); margin: clamp(48px, 6vw, 88px) 0 clamp(40px, 5vw, 64px); }
.phase { position: relative; padding-top: 30px; }
.phase::before { content: ""; position: absolute; top: 0; left: 0; right: calc(var(--gap) * -1); height: 1px; background: currentColor; opacity: 0.22; transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) var(--d, 0ms); }
.phase:last-child::before { right: 0; }
.phase::after { content: ""; position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform 0.6s var(--ease) calc(var(--d, 0ms) + 0.3s); }
.phase.is-in::before { transform: scaleX(1); }
.phase.is-in::after { transform: scale(1); }
.phase__t { margin: 0 0 10px; font-size: 17px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.4; }
.phase__d { font-size: 14px; line-height: 1.75; color: var(--muted); }
.process--dark { background: var(--ink); color: var(--paper); }
.process--dark .phase__d, .process--dark .sec__label { color: var(--on-dark); }

/* ---------- clients marquee ---------- */
.clients .sec__head { margin-bottom: clamp(40px, 5vw, 72px); }
.marquee { overflow: hidden; border-top: 1px solid var(--line); padding-block: clamp(8px, 1vw, 16px); }
.marquee:last-child { border-bottom: 1px solid var(--line); }
.marquee__inner { display: flex; width: max-content; will-change: transform; animation: marquee 80s linear infinite; }
.marquee[data-marquee="rev"] .marquee__inner { animation-direction: reverse; }
.js .marquee__inner { animation: none; }
.marquee__set { display: flex; align-items: center; flex: none; }
.marquee span { padding-inline: 0.36em; white-space: nowrap; font: 300 clamp(32px, 4.8vw, 84px)/1.2 var(--f-display); letter-spacing: -0.01em; transition: color 0.4s; }
.marquee span:hover { color: var(--accent); }
.marquee i { font-style: normal; font-size: clamp(12px, 1.2vw, 18px); color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- factory (home) ---------- */
.factory__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; }
.factory__media { grid-column: 1 / 8; grid-row: 1 / 3; aspect-ratio: 16 / 9; }
.factory__body { grid-column: 9 / 13; grid-row: 1; }
.factory__text { margin: 28px 0 32px; color: var(--muted); max-width: 32em; }
.factory__thumbs { grid-column: 9 / 13; grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.factory__thumbs .media { aspect-ratio: 1; }

/* ---------- footer ---------- */
.ft { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); }
.ft__cta { padding-block: clamp(96px, 12vw, 200px) clamp(64px, 8vw, 120px); border-bottom: 1px solid var(--line-dark); }
.ft__cta .t-label { color: var(--on-dark); }
.ft__big { position: relative; display: inline-flex; flex-direction: column; margin-top: 24px; padding-right: 0.9em; font: 300 clamp(38px, 5.6vw, 102px)/1.02 var(--f-display); letter-spacing: -0.02em; }
html:lang(zh-CN) .ft__big { font-size: clamp(30px, 4.3vw, 76px); line-height: 1.24; letter-spacing: 0.02em; }
.ft__big .ln > span { background: linear-gradient(currentColor, currentColor) 0 92% / 0 1px no-repeat; transition: background-size 0.9s var(--ease); }
.ft__big:hover .ln > span { background-size: 100% 1px; }
.ft__big-arrow { position: absolute; right: 0; bottom: 0.2em; width: 0.62em; color: var(--accent); transition: transform 0.7s var(--ease); }
.ft__big-arrow .ico-arrow { width: 100%; height: auto; }
.ft__big:hover .ft__big-arrow { transform: translateX(0.12em) rotate(-45deg); }
.ft__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--gap); padding-block: clamp(48px, 6vw, 80px); }
.ft__col { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 14px; color: var(--on-dark); }
.ft__col h2 { margin-bottom: 12px; color: var(--paper); opacity: 0.5; }
.ft__col a { transition: color 0.3s; }
.ft__col a:hover { color: var(--paper); }
.ft__map { margin-top: 8px; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-dark); }
.ft__bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 32px; padding-block: 22px max(24px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line-dark); font-size: 12px; color: var(--on-dark); }
.ft__bottom a:hover, .ft__top:hover { color: var(--paper); }
.ft__icp { grid-column: 2; }
.ft__top { grid-column: 3; justify-self: end; }

/* ---------- inner page heroes ---------- */
.page-hero { padding-top: calc(var(--hh) + clamp(56px, 9vw, 150px)); padding-bottom: clamp(40px, 6vw, 88px); }
.page-hero .t-hero, .page-hero .t-h1 { margin-top: clamp(20px, 3vw, 40px); }
.page-hero__lead { max-width: 40em; margin-top: clamp(24px, 3vw, 40px); color: var(--muted); font-size: clamp(15px, 1.15vw, 17px); }
.page-hero__lead.t-lead { max-width: 26em; color: var(--ink-2); font-size: clamp(20px, 2vw, 32px); }
html:lang(zh-CN) .page-hero__lead.t-lead { font-size: clamp(17px, 1.5vw, 24px); max-width: 32em; }
.page-hero--img { position: relative; height: 100vh; height: 100svh; min-height: 580px; padding: 0; display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: #111; }
.page-hero--img .page-hero__media { position: absolute; inset: 0; background: #111; }
.page-hero--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.6)); }
.page-hero--img .page-hero__inner { position: relative; z-index: 2; padding-bottom: clamp(48px, 8vw, 120px); }

/* ---------- projects index ---------- */
.pj-bar { position: sticky; top: var(--hh); z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 16px; background: var(--paper); border-block: 1px solid var(--line); transition: top 0.7s var(--ease); }
html.hd-hidden .pj-bar { top: 0; }
.pj-tabs { display: flex; flex-wrap: wrap; gap: 6px clamp(18px, 2.4vw, 36px); }
.pj-tabs a { position: relative; padding-block: 4px; font-size: 15px; color: var(--muted); transition: color 0.3s; }
.pj-tabs a sup { margin-left: 4px; font-size: 10px; }
.pj-tabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.pj-tabs a:hover, .pj-tabs a[aria-current="page"] { color: var(--ink); }
.pj-tabs a[aria-current="page"]::after { transform: scaleX(1); }
.pj-views { display: flex; gap: 4px; }
.pj-views button { padding: 6px 12px; border-radius: 99px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); transition: background 0.3s, color 0.3s; }
.pj-views button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.pj-head { display: none; }
.pj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4.4vw, 72px) var(--gap); margin-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(80px, 10vw, 160px); }
.pj__link { display: block; }
.pj__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.pj__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease), opacity 0.8s; }
.pj__link:hover .pj__media img { transform: scale(1.05); }
.pj__meta { display: grid; grid-template-columns: 1fr auto; column-gap: 14px; align-items: baseline; padding-top: 16px; }
.pj__title { font: 400 clamp(20px, 1.5vw, 25px)/1.25 var(--f-display); transition: color 0.3s; }
html:lang(zh-CN) .pj__title { font-size: clamp(17px, 1.25vw, 20px); }
.pj__loc { grid-column: 1; font-size: 13px; color: var(--muted); }
.pj__cat { grid-column: 2; grid-row: 1; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pj__year { grid-column: 2; grid-row: 2; justify-self: end; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pj__area { display: none; }
.pj-grid.is-switching .pj { opacity: 0 !important; transform: translateY(24px) !important; transition: opacity 0.3s, transform 0.3s !important; }
/* list view */
.pj-browser.is-list .pj-grid { display: block; margin-top: 0; }
.pj-browser.is-list .pj { margin: 0; border-bottom: 1px solid var(--line); }
.pj-browser.is-list .pj__media { display: none; }
.pj-browser.is-list .pj-head, .pj-browser.is-list .pj__meta { display: grid; grid-template-columns: 2.2fr 2fr 1.2fr 1fr 64px; column-gap: var(--gap); align-items: baseline; }
.pj-browser.is-list .pj-head { padding-block: 32px 14px; border-bottom: 1px solid var(--line-strong); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pj-browser.is-list .pj__meta { padding-block: 22px; transition: padding 0.6s var(--ease); }
.pj-browser.is-list .pj__meta > * { grid-row: auto; grid-column: auto; justify-self: start; }
.pj-browser.is-list .pj__area { display: block; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pj-browser.is-list .pj__loc, .pj-browser.is-list .pj__cat, .pj-browser.is-list .pj__year { font-size: 14px; letter-spacing: 0.02em; text-transform: none; }
.pj-browser.is-list .pj__year { justify-self: end; }
.pj-browser.is-list .pj__link:hover .pj__meta { padding-left: 16px; }
.pj-browser.is-list .pj__link:hover .pj__title { color: var(--accent); }
.pj-float { position: fixed; top: 0; left: 0; z-index: 30; width: clamp(240px, 22vw, 360px); aspect-ratio: 4 / 3; overflow: hidden; pointer-events: none; opacity: 0; transform: scale(0.85) rotate(-2deg); transition: opacity 0.4s, transform 0.6s var(--ease); }
.pj-float.is-on { opacity: 1; transform: none; }
.pj-float img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- project detail ---------- */
.pjd-hero--full { position: relative; height: 100vh; height: 100svh; min-height: 580px; display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: #111; }
.pjd-hero--full .pjd-hero__media { position: absolute; inset: 0; background: #111; }
.pjd-hero--full .pjd-hero__media .par { inset: -14% 0; }
.pjd-hero--full::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.62)); }
.pjd-hero__inner { position: relative; z-index: 2; padding-bottom: clamp(44px, 7vw, 104px); }
.pjd-hero__kicker { margin-top: clamp(24px, 4vw, 56px); opacity: 0.8; }
.pjd-hero__title { margin-top: 14px; }
.pjd-hero__title .ln { display: block; }
.pjd-hero__title .ln--sub { margin-top: 0.12em; font-size: 0.4em; line-height: 1.25; opacity: 0.86; }
.pjd-hero--split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; min-height: 94vh; padding-top: var(--hh); }
.pjd-hero--split .pjd-hero__media { grid-column: 2; grid-row: 1; height: calc(94vh - var(--hh)); min-height: 480px; }
.pjd-hero--split .pjd-hero__inner { grid-column: 1; grid-row: 1; padding-right: var(--gap); }
.pjd-hero--split .pjd-hero__inner.wrap { max-width: none; }
.pjd-hero--split .pjd-hero__title { font-size: clamp(38px, 4.4vw, 84px); }
html:lang(zh-CN) .pjd-hero--split .pjd-hero__title { font-size: clamp(30px, 3.5vw, 66px); }
.pjd-info { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px var(--gap); padding-block: clamp(72px, 9vw, 150px); }
.pjd-meta { grid-column: 1 / 5; }
.pjd-meta div { display: grid; grid-template-columns: minmax(96px, 0.8fr) 2fr; gap: 16px; padding-block: 15px; border-top: 1px solid var(--line); }
.pjd-meta div:last-child { border-bottom: 1px solid var(--line); }
.pjd-meta dt { color: var(--muted); padding-top: 0.35em; }
.pjd-meta dd { font-size: 15px; }
.pjd-desc { grid-column: 6 / 13; }
.pjd-gallery { display: flex; flex-direction: column; gap: clamp(12px, 1.4vw, 24px); padding-bottom: clamp(96px, 12vw, 180px); }
.pjd-gallery--narrow { max-width: 1240px; }
.gal { display: flex; flex-direction: column; gap: clamp(12px, 1.4vw, 24px); }
.gal__row { display: flex; gap: clamp(12px, 1.4vw, 24px); }
.gal__item { flex-basis: 0; min-width: 0; aspect-ratio: var(--ar); overflow: hidden; background: var(--paper-2); }
.gal__item a { display: block; width: 100%; height: 100%; }
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.gal__item a:hover img { transform: scale(1.035); }
.gal__row--portrait { justify-content: flex-end; }
.gal__row--portrait .gal__item { flex: none !important; width: min(58%, 720px); }
.gal-group { display: flex; flex-direction: column; gap: clamp(12px, 1.4vw, 24px); }
.gal-group + .gal-group { margin-top: clamp(48px, 6vw, 96px); }
.gal-group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; padding-top: 22px; margin-bottom: 8px; border-top: 1px solid var(--line); }
.gal-group__head .t-label { color: var(--muted); }
.gal-group__head p { margin-left: auto; }
.pjd-next { position: relative; height: 86vh; min-height: 520px; overflow: hidden; background: #111; color: #fff; }
.pjd-next__link { display: block; height: 100%; }
.pjd-next__media { position: absolute; inset: 0; opacity: 0.5; transform: scale(1.08); transition: opacity 1s, transform 1.8s var(--ease); }
.pjd-next__media img { width: 100%; height: 100%; object-fit: cover; }
.pjd-next__link:hover .pjd-next__media { opacity: 0.78; transform: scale(1); }
.pjd-next__body { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; }
.pjd-next__body .t-label { opacity: 0.75; }
.pjd-next__loc { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; opacity: 0.85; }

/* ---------- about ---------- */
.about-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; padding-bottom: clamp(64px, 8vw, 120px); }
.about-intro .sec__label { grid-column: 1 / 4; padding-top: 0.9em; align-self: start; }
.about-intro__lead { grid-column: 4 / 13; }
.about-intro__body { grid-column: 6 / 13; columns: 2 300px; column-gap: var(--gap); color: var(--ink-2); }
.about-intro__body p { break-inside: avoid; margin-bottom: 1.4em; }
.facts__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts__list li { padding: clamp(24px, 3vw, 40px) var(--gap) clamp(28px, 3.4vw, 48px) 0; border-bottom: 1px solid var(--line); }
.facts__list li:not(:nth-child(3n + 1)) { padding-left: var(--gap); border-left: 1px solid var(--line); }
.facts__v { display: block; font-size: clamp(36px, 4vw, 70px); line-height: 1; letter-spacing: -0.01em; }
.facts__l { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); }
.values__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(48px, 6vw, 88px); }
.values__list li { padding-top: 24px; border-top: 1px solid var(--line-strong); }
.values__list p { margin-top: 12px; color: var(--muted); max-width: 28em; }
.team__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 96px); margin-top: clamp(48px, 6vw, 88px); }
.team__row { display: grid; grid-template-columns: minmax(120px, 1.1fr) 2fr 44px; align-items: center; gap: 20px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.team__l { font-size: 15px; }
.team__bar { position: relative; height: 2px; background: var(--paper-2); }
.team__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--w) * 100%); background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) calc(var(--d, 0ms) + 0.2s); }
.team__row:hover .team__bar i { background: var(--accent); }
.team__row.is-in .team__bar i { transform: scaleX(1); }
.team__n { justify-self: end; font: 400 24px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.quals__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 96px); margin-top: clamp(48px, 6vw, 88px); }
.quals__list li { display: flex; gap: 20px; align-items: baseline; padding-block: 20px; border-bottom: 1px solid var(--line); font-size: clamp(15px, 1.15vw, 17px); }
.certs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); align-items: end; margin-top: clamp(56px, 7vw, 104px); }
.cert img { width: 100%; box-shadow: 0 30px 40px -30px rgba(0, 0, 0, 0.45); transition: transform 0.7s var(--ease); }
.cert a:hover img { transform: translateY(-8px); }
.cert figcaption { margin-top: 14px; font-size: 13px; color: var(--muted); }
.green { background: var(--paper-2); }
.green__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(48px, 6vw, 88px); }
.green__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.green__img img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform 0.9s var(--ease); }
.green__img:hover img { transform: scale(1.05); }
.green__badge { display: block; margin-top: 18px; color: var(--accent); }
.green__t { margin-top: 6px; font-size: 15px; font-weight: 500; line-height: 1.5; }
.fac { scroll-margin-top: var(--hh); }
.fac__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 72px); align-items: end; margin-top: clamp(48px, 6vw, 88px); }
.fac__main { aspect-ratio: 2 / 1; }
.fac__side > p:first-child { color: var(--ink-2); }
.fac__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-block: 36px 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.fac__stats li { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.fac__stats .t-display { font-size: clamp(28px, 2.7vw, 48px); line-height: 1; color: var(--ink); white-space: nowrap; }
.fac__stats small { margin-left: 4px; font-size: 0.36em; font-family: var(--f-sans); color: var(--muted); }
.fac__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.fac__thumbs figure { aspect-ratio: 4 / 3; }
.fac__thumbs a { display: block; width: 100%; height: 100%; }
.fac__thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.fac__thumbs a:hover img { transform: scale(1.06); }
.fac__depts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(40px, 5vw, 72px); }
.fac__depts li { display: flex; gap: 12px; align-items: baseline; padding-block: 12px; border-top: 1px solid var(--line); font-size: 14px; }

/* ---------- footprint: official map + city list (about & home) ---------- */
.fp { scroll-margin-top: var(--hh); }
.fp__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.fp__count { color: var(--muted); padding-bottom: 0.7em; white-space: nowrap; }
.fp-map { margin-top: clamp(40px, 5vw, 72px); }
.fp-map__canvas { position: relative; max-width: calc((100vh - 140px) * 2.324); margin-inline: auto; }
/* The view is framed on Europe → Japan, so soften the cut edges into the page. */
.fp-map__canvas img { width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(transparent, #000 8%, #000 92%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(transparent, #000 8%, #000 92%, transparent); mask-composite: intersect; }
.fp-map__hint { display: none; margin-top: 12px; font-size: 12px; color: var(--muted); }
/* Every place: red dot + ink tag. main.js lays the tags out so none overlap, adding a hairline leader when a tag has to move off its dot. */
.fp-lines { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; pointer-events: none; }
.fp-lines line { stroke: var(--ink); stroke-width: 1; opacity: 0.8; transition: stroke 0.3s, opacity 0.3s; }
.fp-lines line.is-on { stroke: var(--accent); opacity: 1; }
.fp-pins { position: absolute; inset: 0; pointer-events: none; }
.fp-pin { position: absolute; left: var(--x); top: var(--y); z-index: 1; }
.fp-pin > i { position: absolute; z-index: 2; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1.5px #fff; pointer-events: auto; transition: transform 0.4s var(--ease); }
.fp-pin__label { position: absolute; left: 8px; top: 0; transform: translateY(-50%); padding: 2px 7px; background: var(--ink); color: #fff; font: 500 11px/1.5 var(--f-sans); letter-spacing: 0.06em; white-space: nowrap; pointer-events: auto; transition: background 0.3s; }
.fp-map.is-laid .fp-pin__label { transform: none; }
.fp-pin:hover, .fp-pin.is-on { z-index: 5; }
.fp-pin:hover > i, .fp-pin.is-on > i { transform: scale(1.5); }
.fp-pin:hover .fp-pin__label, .fp-pin.is-on .fp-pin__label { background: var(--accent); }
.js .fp-pin, .js .fp-lines { opacity: 0; transition: opacity 0.6s var(--ease) calc(500ms + var(--i, 23) * 40ms); }
.js .fp-pin { translate: 0 -10px; transition: opacity 0.6s var(--ease) calc(500ms + var(--i) * 40ms), translate 0.9s var(--ease) calc(500ms + var(--i) * 40ms); }
.js .fp-map.is-in .fp-pin, .js .fp-map.is-in .fp-lines { opacity: 1; translate: none; }
.fp-list { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); column-gap: clamp(32px, 4vw, 72px); row-gap: 48px; margin-top: clamp(56px, 7vw, 104px); }
.fp-list__h { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 16px; color: var(--muted); }
.fp-list__h sup { font-size: 10px; line-height: 1; }
.cities__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.fp-list__group + .fp-list__group .cities__list { grid-template-columns: 1fr; }
.cities__list li { padding-block: 10px; border-bottom: 1px solid var(--line); font: 300 clamp(22px, 2.6vw, 44px)/1.3 var(--f-display); cursor: default; transition: color 0.4s, padding 0.6s var(--ease); }
html:lang(zh-CN) .cities__list li { font-size: clamp(19px, 2.1vw, 34px); }
.cities__list li:hover, .cities__list li.is-on { color: var(--accent); padding-left: 12px; }

/* ---------- services ---------- */
.svc-band .media { aspect-ratio: 21 / 9; }
.caps__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 96px); margin-top: clamp(40px, 5vw, 72px); }
.cap { display: grid; row-gap: 12px; padding-block: clamp(28px, 3vw, 44px); border-top: 1px solid var(--line); }
.cap__d { max-width: 34em; color: var(--muted); }
.why__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 120px); align-items: start; margin-top: clamp(40px, 5vw, 72px); }
.why__media { position: sticky; top: calc(var(--hh) + 32px); aspect-ratio: 4 / 5; }
.why__list li { padding-block: clamp(28px, 3vw, 44px); border-top: 1px solid var(--line); }
.why__list p { margin-top: 12px; max-width: 36em; color: var(--muted); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(48px, 7vw, 140px); align-items: start; padding-bottom: clamp(96px, 12vw, 180px); }
.contact__direct { display: flex; flex-direction: column; align-items: flex-start; }
.contact__big { display: inline-block; padding-bottom: 6px; border-bottom: 1px solid var(--line-strong); font: 300 clamp(30px, 3.8vw, 68px)/1.1 var(--f-display); transition: color 0.4s, border-color 0.4s, transform 0.6s var(--ease); }
.contact__big:hover { color: var(--accent); border-color: var(--accent); }
.contact__big--sm { margin-top: 18px; font-size: clamp(22px, 2.3vw, 38px); }
.contact__addr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--gap); width: 100%; margin-top: clamp(48px, 6vw, 88px); }
.contact__addr dt { color: var(--muted); }
.contact__addr dd { margin-top: 12px; font-size: 15px; line-height: 1.8; }
.contact__addr a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.cform { display: flex; flex-direction: column; gap: 24px; padding: clamp(24px, 3vw, 52px); background: var(--paper-2); }
.cform > .t-label { color: var(--muted); }
.field { position: relative; display: block; }
.field input, .field textarea { width: 100%; padding: 24px 0 10px; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); outline: none; resize: vertical; transition: border-color 0.3s; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field span { position: absolute; left: 0; top: 24px; font-size: 15px; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform 0.4s var(--ease), color 0.3s; }
.field input:focus + span, .field input:not(:placeholder-shown) + span, .field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-22px) scale(0.78); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
.chips legend { margin-bottom: 14px; color: var(--muted); }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 18px; border: 1px solid var(--line-strong); border-radius: 99px; font-size: 14px; cursor: pointer; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chips input:focus-visible + span { outline: 1px solid var(--accent); outline-offset: 3px; }
.cform .btn { align-self: flex-start; margin-top: 8px; }
.cform__note { font-size: 12px; color: var(--muted); }

/* ---------- 404 ---------- */
.nf { min-height: 80vh; padding-top: calc(var(--hh) + 80px); padding-bottom: 120px; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.nf__code { font-size: clamp(120px, 22vw, 360px); line-height: 0.85; color: var(--accent); }
.nf p { color: var(--muted); }
.nf__links { display: flex; gap: 32px; flex-wrap: wrap; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 250; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: rgba(12, 12, 12, 0.96); color: #fff; opacity: 0; visibility: hidden; transition: opacity 0.45s, visibility 0s 0.45s; }
.lb.is-open { opacity: 1; visibility: visible; transition: opacity 0.45s; }
.lb__top, .lb__cap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--pad); font-size: 13px; color: rgba(255, 255, 255, 0.72); }
.lb__top { justify-content: flex-end; }
.lb__close { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.lb__stage { position: relative; display: grid; place-items: center; min-height: 0; padding-inline: clamp(16px, 7vw, 120px); touch-action: pan-y; }
.lb__img { max-width: 100%; max-height: 100%; object-fit: contain; transition: opacity 0.4s, transform 0.6s var(--ease); }
.lb__img.is-loading { opacity: 0; transform: scale(0.97); }
.lb__nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 50%; transition: background 0.3s, color 0.3s; }
.lb__nav:hover { background: #fff; color: var(--ink); }
.lb__nav svg { width: 18px; height: 18px; }
.lb__prev { left: var(--pad); }
.lb__prev svg { transform: rotate(180deg); }
.lb__next { right: var(--pad); }

/* ---------- cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 300; width: 0; height: 0; pointer-events: none; }
.cursor::before { content: ""; position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--accent); opacity: 0; transition: opacity 0.3s, transform 0.5s var(--ease); }
.cursor.is-on::before { opacity: 1; }
.cursor.is-link::before { transform: scale(4); opacity: 0.22; }
.cursor.is-label::before { opacity: 0; }
.cursor__label { position: absolute; width: 92px; height: 92px; margin: -46px 0 0 -46px; display: grid; place-items: center; border-radius: 50%; background: rgba(20, 20, 20, 0.78); color: #fff; font: 500 11px var(--f-sans); letter-spacing: 0.16em; text-transform: uppercase; text-align: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transform: scale(0); transition: transform 0.55s var(--ease); }
.cursor.is-label .cursor__label { transform: scale(1); }
[data-magnetic] { transition: transform 0.6s var(--ease), color 0.5s var(--ease), border-color 0.5s; }

/* ---------- reveal system (only when JS is running) ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 36px, 0); transition: opacity 1.1s var(--ease) var(--d, 0ms), transform 1.3s var(--ease) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* The reveal transition above replaces an element's own `transition`; these elements keep theirs alongside it. */
.js .sector[data-reveal] { transition: opacity 1.1s var(--ease) var(--d, 0ms), transform 1.3s var(--ease) var(--d, 0ms), flex-grow 1s var(--ease); }
.js .cities__list li[data-reveal] { transition: opacity 1.1s var(--ease) var(--d, 0ms), transform 1.3s var(--ease) var(--d, 0ms), color 0.4s, padding 0.6s var(--ease); }
.js .contact__big[data-reveal] { transition: opacity 1.1s var(--ease) var(--d, 0ms), transform 1.3s var(--ease) var(--d, 0ms), color 0.4s, border-color 0.4s; }
.js .pj-bar[data-reveal] { transition: opacity 1.1s var(--ease) var(--d, 0ms), transform 1.3s var(--ease) var(--d, 0ms), top 0.7s var(--ease); }
.js [data-reveal="lines"] { opacity: 1; transform: none; }
.js [data-reveal="lines"] .ln > span { transform: translate3d(0, 115%, 0); transition: transform 1.3s var(--ease) calc(var(--d, 0ms) + var(--li, 0) * 0.09s); }
.js [data-reveal="lines"].is-in .ln > span { transform: none; }
.js [data-reveal="img"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-io) var(--d, 0ms); }
.js [data-reveal="img"] img { transform: scale(1.22); transition: transform 1.9s var(--ease) var(--d, 0ms); }
.js [data-reveal="img"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="img"].is-in img { transform: none; }
.js [data-reveal="img"].is-in a:hover img { transform: scale(1.035); transition-delay: 0s; }
.js img[loading="lazy"]:not(.is-loaded) { opacity: 0; }
.js img[loading="lazy"] { transition: opacity 0.9s var(--ease), transform 1.3s var(--ease); }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .pj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
  .phase:nth-child(3)::before { right: 0; }
  .green__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .certs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fac__depts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .wcard { --h: auto; width: min(66vw, 420px); }
  .wcard__media { height: auto; aspect-ratio: 3 / 2; }
  .wcard--all { height: auto; aspect-ratio: 3 / 2; }
  .works__aside .works__bar { display: none; }
  .works__hint { display: none; }
  .works__hint--touch { display: inline; }
}
@media (max-width: 900px) {
  :root { --hh: 64px; }
  .hd__nav { display: none; }
  .hd__burger { display: grid; }
  .hd__brand .mark { width: 32px; }
  .hd__word { font-size: 13px; letter-spacing: 0.28em; }
  .menu__preview { display: none; }
  .hero__meta { grid-template-columns: 1fr; }
  .hero__bars { display: none; }
  .hero__scroll { display: none; }
  .intro, .about-intro { display: flex; flex-direction: column; }
  .stats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__item { padding-left: var(--gap); border-bottom: 1px solid var(--line); }
  .stats__item:nth-child(odd) { padding-left: 0; }
  .stats__item:nth-child(2) { border-right: 0; }
  .works__head { flex-direction: column; align-items: flex-start; }
  .works__aside { align-items: flex-start; }
  .sectors__row { flex-direction: column; height: auto; }
  .sector { flex: none !important; aspect-ratio: 4 / 3.4; }
  .sector__desc { max-height: none; margin-top: 10px; opacity: 0.86; transform: none; }
  .process__list { grid-template-columns: 1fr; row-gap: 36px; }
  .phase::before { right: 0; }
  .factory__grid { display: flex; flex-direction: column; align-items: stretch; gap: 40px; }
  .factory__thumbs { order: 3; }
  .ft__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pjd-info { display: flex; flex-direction: column; }
  .pjd-hero--split { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .pjd-hero--split .pjd-hero__inner { padding-top: 28px; padding-bottom: 32px; }
  .pjd-hero__kicker { margin-top: 20px; }
  .pjd-hero--split .pjd-hero__media { height: auto; min-height: 0; aspect-ratio: 4 / 3.2; }
  .gal__row { flex-direction: column; }
  .gal__item { flex: none !important; width: 100%; }
  .gal__row--portrait .gal__item { width: 100%; }
  .team__list, .quals__list, .caps__list { grid-template-columns: 1fr; }
  .values__list { grid-template-columns: 1fr; row-gap: 40px; }
  .facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__list li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .facts__list li:nth-child(even) { padding-left: var(--gap); border-left: 1px solid var(--line); }
  .fac__grid, .why__grid, .contact { display: flex; flex-direction: column; align-items: stretch; }
  .why__media { position: relative; top: 0; aspect-ratio: 4 / 3; }
  .fac__thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fac__thumbs figure:nth-child(n + 4) { display: none; }
  .fac__depts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cities__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fp-list { grid-template-columns: 1fr; }
  .fp-list__group + .fp-list__group .cities__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .svc-band .media { aspect-ratio: 4 / 3; }
  .pj-browser.is-list .pj-head { display: none; }
  .pj-browser.is-list .pj__meta { grid-template-columns: 1fr auto; row-gap: 2px; }
  .pj-browser.is-list .pj__loc { grid-column: 1; grid-row: 2; font-size: 13px; }
  .pj-browser.is-list .pj__year { grid-column: 2; grid-row: 1; }
  .pj-browser.is-list .pj__cat, .pj-browser.is-list .pj__area { display: none; }
  .lb__nav { display: none; }
}
@media (max-width: 700px) {
  .ft__bottom { grid-template-columns: 1fr; justify-items: center; gap: 8px; text-align: center; }
  .ft__icp, .ft__top { grid-column: auto; justify-self: center; }
  /* The whole map stays on the page; phones pan across it, starting on China. */
  .fp__head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .fp__count { padding-bottom: 0; }
  .fp-map__scroll { margin-inline: calc(var(--pad) * -1); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .fp-map__scroll::-webkit-scrollbar { display: none; }
  .fp-map__canvas { width: 260vw; max-width: none; }
  .fp-map__hint { display: block; }
  .fp-pin__label { font-size: 10px; padding: 1px 6px; }
}
@media (max-width: 600px) {
  .pj-grid { grid-template-columns: 1fr; }
  .hd__word span { display: none; }
  .hero__inner { padding-bottom: 104px; }
  .hero__row .btn { padding: 14px 22px; }
  .stats__n { font-size: clamp(40px, 11vw, 56px); }
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .green__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__addr { grid-template-columns: 1fr; }
  .fac__stats { grid-template-columns: 1fr 1fr; }
  .cities__list, .fp-list__group + .fp-list__group .cities__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft__grid { grid-template-columns: 1fr 1fr; }
  .ft__col:nth-child(-n + 2) { grid-column: 1 / -1; }
  .pj-bar { flex-wrap: nowrap; gap: 12px; }
  .pj-tabs { flex-wrap: nowrap; gap: 18px; overflow-x: auto; scrollbar-width: none; }
  .pj-tabs::-webkit-scrollbar { display: none; }
  .pj-tabs a { white-space: nowrap; }
  .pj-views button { padding: 6px 9px; }
  .facts__v { font-size: clamp(30px, 8.5vw, 42px); }
  .gal-group__head p { margin-left: 0; width: 100%; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-reveal="img"], .js [data-reveal="lines"] .ln > span { opacity: 1; transform: none; clip-path: none; }
  .js [data-reveal="img"] img { transform: none; }
  [data-scrub] .w { opacity: 1; }
  .hero__slide img { transform: none; }
}
