/* Static instances — VF range face was rendering Light masters (filled o/e counters). */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/shared/assets/fonts/space-grotesk-latin-400.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: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/shared/assets/fonts/space-grotesk-latin-700.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: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/shared/assets/fonts/space-grotesk-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/shared/assets/fonts/space-grotesk-latin-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/shared/assets/fonts/noto-sans-sc-400.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/shared/assets/fonts/noto-sans-sc-500.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/shared/assets/fonts/noto-sans-sc-700.woff2") format("woff2");
}

:root {
  --color-bg: #faf7f3;
  --color-ink: #0a0a0a;
  --color-muted: rgba(10, 10, 10, 0.64);
  --color-faint: rgba(10, 10, 10, 0.34);
  --color-surface: #0a0a0a;
  --color-surface-ink: #faf7f3;
  --color-line: rgba(10, 10, 10, 0.1);
  --color-accent: #0a0a0a;
  --font-display: "Space Grotesk", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-sans: "Space Grotesk", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-cjk: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --type-display: clamp(4.5rem, 15vw, 10.75rem);
  /* Section titles: calmer than hero; cap below hero optical mass */
  --type-xl: clamp(2.1rem, 5vw, 3.4rem);
  --type-lg: clamp(1.45rem, 2.6vw, 2rem);
  --type-md: 1.05rem;
  --type-sm: 0.82rem;
  --tracking-display: -0.065em;
  --tracking-section: -0.012em;
  --leading-display: 0.82;
  --motion-ui: 0.22s;
  --motion-fast: 0.22s;
  --motion-reveal: 0.42s;
  --motion-med: 0.42s;
  --motion-image: 0.42s;
  --motion-slow: 0.5s;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-move: cubic-bezier(0.23, 1, 0.32, 1);
  --stagger-line: 60ms;
  --stagger-card: 60ms;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-7: 7rem;
  --space-8: 10rem;
  --radius-sm: 6px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --z-nav: 40;
  --z-chat: 45;
  --z-modal: 60;
  --nav-h: 56px;
  --page-pad: clamp(1.1rem, 3.5vw, 2.75rem);
  --bp-md: 810px;
  --bp-lg: 1200px;

  /* Original CSS grain only — no bitmap tiles */
  --paper-base: var(--color-bg);
  --paper-layers: url("data:image/svg+xml,%3Csvg viewBox='0 0 280 280' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
  --paper-size: auto;
  --paper-repeat: repeat;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* Main EN/ZH site only — not preview demos */
body[data-page]:not([data-page^="preview-"]) {
  background-color: var(--paper-base);
  background-image: var(--paper-layers);
  background-repeat: var(--paper-repeat);
  background-size: var(--paper-size);
}

@media print {
  body[data-page]:not([data-page^="preview-"]) {
    background-image: none;
  }
}

/* Chinese: keep body readable; hero display aims for EN optical mass */
html[lang|="zh"] {
  --font-sans: var(--font-cjk);
  --font-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Space Grotesk", sans-serif;
  --tracking-display: 0.02em;
  --tracking-section: 0.02em;
  --leading-display: 0.96;
  /* Mid viewports (561–1200): 14.5vw + nowrap lines overflow; keep 1440 cap */
  --type-display: clamp(4rem, 12vw, 9.8rem);
  --type-xl: clamp(2.05rem, 5vw, 3.2rem);
}

html[lang|="zh"] body {
  line-height: 1.7;
  font-weight: 400;
}

/* EN + ZH: section titles share display face + solid bold */
.work-head h2,
.section-head h1,
.section-head h2,
.compare h2,
.close-inner h2,
.voices-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tracking-section);
}

html[lang|="zh"] h1,
html[lang|="zh"] h2,
html[lang|="zh"] h3,
html[lang|="zh"] .hero-title,
html[lang|="zh"] .intro-hey,
html[lang|="zh"] .manifesto-xl,
html[lang|="zh"] .work-head h2,
html[lang|="zh"] .close-inner h2 {
  font-family: var(--font-display);
  font-weight: 700;
}

html[lang|="zh"] .hero-title,
html[lang|="zh"] .intro-hey,
html[lang|="zh"] .manifesto-xl {
  letter-spacing: var(--tracking-display);
}

html[lang|="zh"] .work-head h2,
html[lang|="zh"] .section-head h1,
html[lang|="zh"] .section-head h2,
html[lang|="zh"] .compare h2,
html[lang|="zh"] .close-inner h2,
html[lang|="zh"] .voices-head h2 {
  letter-spacing: var(--tracking-section);
}

/* ZH hero: upright 4×3 block — no faux italic / no letter-spacing drift */
html[lang|="zh"] .hero-title {
  display: block;
  line-height: 1.12;
  letter-spacing: 0;
  max-width: none;
  /* Longer ZH slogan lines need a bit more room than EN display titles */
  width: min(calc(94vw - 1.2em), 12em);
  font-weight: 700;
  font-style: normal;
  font-synthesis: none;
  text-transform: none;
  text-align: center;
  text-wrap: balance;
}

html[lang|="zh"] .hero-title .line {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  white-space: nowrap;
  font-size: 1em;
  font-style: normal;
  font-synthesis: none;
  letter-spacing: 0.04em;
  /* Cancel trailing letter-spacing so centered CJK lines don’t lean left */
  padding: 0 0 0 0;
  text-indent: 0.02em;
  opacity: 1;
  align-self: center;
  transform: none !important;
}

html[lang|="zh"] .manifesto-xl {
  line-height: 1.35;
  letter-spacing: 0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}

html[lang|="zh"] .close-inner h2,
html[lang|="zh"] .section-head h1,
html[lang|="zh"] .section-head h2,
html[lang|="zh"] .voices-head h2 {
  max-width: none;
  width: min(20em, 100%);
  text-transform: none;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

html[lang|="zh"] .footer-industries {
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: anywhere;
}

html[lang|="zh"] .eyebrow,
html[lang|="zh"] .hero-sub,
html[lang|="zh"] .hero-since {
  letter-spacing: 0.04em;
}

html[lang|="zh"] .work-mark,
html[lang|="zh"] .work-meta {
  text-transform: none;
  letter-spacing: 0.08em;
}

html[lang|="zh"] .work-mark {
  font-size: clamp(1.2rem, 2.1vw, 1.65rem);
  letter-spacing: 0.12em;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: #0a0a0a;
  color: #f4f2ec;
}
