/* Yuansheng Tongda 源盛通达: shared styles for the English (/) and Chinese (/zh/) pages.
   Each page declares its own "Seal" @font-face inline, because each one ships a different
   Chinese subset (see tools/subset-cjk.py). */

/* ---------- Fonts ---------- */
/* Roboto Flex (OFL), baked into two small files with fontTools:
   - Flex Display: optical size fixed at 144, width 25-60, weight 600-900 (compressed headlines).
   - Flex: optical size 14, width 100, weight 300-800 (body text). */
@font-face {
  font-family: "Flex Display";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url(fonts/flex-display-latin.woff2) format("woff2");
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+2010-2027, U+2030-203A, U+20AC, U+2122, U+2191, U+2193;
}
@font-face {
  font-family: "Flex Display";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url(fonts/flex-display-cyrillic.woff2) format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Flex";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/flex-text-latin.woff2) format("woff2");
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+0304, U+0308, U+2010-2027, U+2030-203A, U+20AC, U+2122, U+2191, U+2193;
}
/* ---------- Tokens ---------- */
:root {
  --black: #000;
  --surface-1: #0f0f0f;
  --surface-2: #181818;
  --line: rgba(255, 255, 255, .14);
  --white: #fff;
  --smoke: #ececec;
  --ash: #9b9b9b;

  --red: #d8341e;          /* 朱砂 cinnabar, from the logo */
  --red-bright: #f2482d;   /* small red text on black */
  --gold: #ffc000;         /* primary actions only */

  --paper: #fdf1d4;        /* 宣纸 rice paper, sampled from the ink-wash art */
  --ink: #17120c;
  --ink-2: #594d3f;
  --red-ink: #b02a14;      /* small red text on paper */

  --f-sans: "Flex", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --f-display: "Flex Display", "Arial Narrow", "Roboto Condensed", "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-zh: "Seal", "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;

  --pad: clamp(20px, 4.5vw, 64px);
  --max: 1440px;
  --cut: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  background: var(--black);
  color: var(--smoke);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.zh { font-family: var(--f-zh); font-weight: 900; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  padding: 12px 18px; background: var(--gold); color: #000; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: "wdth" 32;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: .012em;
  color: var(--white);
}
.label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.label::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--red);
  transform: skewX(-12deg);
}
.label b { color: var(--red-bright); font-weight: 650; }

/* Vertical Chinese section marks, read top to bottom like a hanging scroll. */
.vlabel {
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--f-zh);
  font-weight: 900;
  font-size: 19px;
  line-height: 1;
  letter-spacing: .32em;
  color: var(--red);
}
.vlabel::after { content: ""; width: 1px; height: 64px; background: currentColor; opacity: .45; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 58px;
  padding: 0 30px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold {
  background: var(--gold);
  color: #000;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.btn-gold:hover { background: var(--white); }
.btn-ghost { color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: var(--white); color: #000; box-shadow: inset 0 0 0 1px #fff; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color .35s, box-shadow .35s;
}
.nav.is-solid {
  background: rgba(0, 0, 0, .82);
  -webkit-backdrop-filter: saturate(1.3) blur(16px);
  backdrop-filter: saturate(1.3) blur(16px);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .08);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand-glyphs { display: flex; gap: 1px; color: var(--red); }
.brand-glyphs svg { width: 24px; height: 24px; fill: currentColor; }
.brand-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}
.nav-links { display: flex; gap: clamp(18px, 3vw, 44px); }
.nav-links a {
  position: relative;
  padding: 12px 0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  white-space: nowrap;
  transition: color .25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }

/* Language switch: two sharp cells, the current language filled with cinnabar. */
.nav-right { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.lang-switch {
  display: flex;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: .12em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}
.lang-switch > * {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 36px;
  padding: 0 10px;
}
.lang-switch .is-current { background: var(--red); color: #fff; }
.lang-switch a { color: rgba(255, 255, 255, .75); transition: background-color .25s, color .25s; }
.lang-switch a:hover { background: #fff; color: #000; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--black);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The source summit sits at roughly 73% / 50% of the (mirrored) artwork. */
  object-position: 72% 60%;
  animation: settle 2.8s var(--ease) both;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.62) 36%, rgba(0,0,0,0) 64%),
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 72%, #000 100%);
}
.hero-in {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
  padding-top: 120px;
  padding-bottom: 40px;
}
.eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 28px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}
.eyebrow .tag {
  padding: 5px 7px 6px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  letter-spacing: .1em;
  line-height: 1;
}
.hero-title { font-size: clamp(54px, min(10.4vw, 17vh), 172px); }
.hero-title span { display: block; }
.hero-title em { font-style: normal; color: var(--red); }
.lede {
  max-width: 50ch;
  margin-top: 32px;
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .78);
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* 题款: the company name as a vertical inscription beside the "source" summit. */
.inscription { display: flex; align-items: flex-start; gap: 18px; color: var(--red); }
.inscription-glyphs { display: flex; flex-direction: column; gap: clamp(6px, 1vh, 12px); }
.inscription-glyphs svg { width: clamp(64px, 11.5vh, 124px); height: clamp(64px, 11.5vh, 124px); fill: currentColor; }
.inscription-latin {
  writing-mode: vertical-rl;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  white-space: nowrap;
}

/* Spec strip, the way a supercar page lists 0-100 and top speed. */
.specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  padding-block: 22px 34px;
}
.specs > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 8px;
  padding-right: 20px;
}
.specs > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.specs dd {
  text-transform: uppercase;
  font-size: clamp(34px, 4vw, 58px);
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: "wdth" 30;
  line-height: .9;
  color: var(--white);
}
.specs dd.zh { font-family: var(--f-zh); font-weight: 900; font-size: clamp(28px, 3.3vw, 48px); line-height: 1.08; }
.specs dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ash);
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(88px, 11vw, 160px); }
.sec-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: 28px clamp(24px, 4vw, 64px);
  margin-bottom: clamp(48px, 6vw, 88px);
}
.sec-head .vlabel { align-self: start; }
.sec-title { margin-top: 22px; font-size: clamp(52px, 7.6vw, 124px); }
.sec-intro { max-width: 44ch; color: var(--ash); font-size: 17px; }

/* ---------- Projects ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: 28px 30px 26px;
  overflow: hidden;
  background: var(--surface-1);
  transition: background-color .35s;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}
.card--wide { grid-column: span 2; }
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.card:hover, .card:focus-within { background: var(--surface-2); }
.card:hover::before, .card:focus-within::before { transform: scaleX(1); }
.card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ash);
}
.card-no { color: var(--red-bright); }
.card-mark {
  position: absolute;
  z-index: -1;
  right: -.04em;
  bottom: .12em;
  font-size: clamp(170px, 15vw, 240px);
  line-height: 1;
  color: rgba(255, 255, 255, .045);
  transition: color .5s;
  pointer-events: none;
}
.card--wide .card-mark { font-size: clamp(220px, 21vw, 320px); }
.card:hover .card-mark, .card:focus-within .card-mark { color: rgba(216, 52, 30, .3); }
.card-title {
  margin-top: auto;
  padding-top: 48px;
  font-size: clamp(34px, 3.2vw, 50px);
}
.card--wide .card-title { font-size: clamp(40px, 4.4vw, 68px); }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link:focus-visible { outline-offset: 6px; }
.card-text { max-width: 48ch; margin-top: 16px; font-size: 15.5px; line-height: 1.6; color: var(--ash); }
.card-url {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--white);
}
.card-url svg { width: 20px; height: 20px; color: var(--ash); transition: color .3s; }
.card:hover .card-url svg, .card:focus-within .card-url svg { color: var(--gold); }

/* ---------- About (rice paper) ---------- */
.about {
  position: relative;
  isolation: isolate;
  padding-top: clamp(88px, 11vw, 160px);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
/* Paper grain. */
.about::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
  mix-blend-mode: multiply;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .22 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.about .display { color: var(--ink); }
.about .label { color: var(--ink); }
.about .label b { color: var(--red-ink); }
.about .vlabel { color: var(--red); }

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 112px);
  padding-bottom: clamp(72px, 9vw, 136px);
}
.story-lead {
  font-size: clamp(26px, 2.7vw, 40px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -.01em;
}
.story-lead strong { font-weight: 400; color: var(--red-ink); }
.story-body p { max-width: 58ch; color: var(--ink-2); }
.story-body p + p { margin-top: 1.1em; }

.name { padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid rgba(23, 18, 12, .18); }
.name-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px clamp(32px, 6vw, 112px);
  margin-bottom: clamp(48px, 6vw, 80px);
}
.name-title { margin-top: 20px; font-size: clamp(44px, 5.6vw, 92px); }
.name-sub { max-width: 48ch; color: var(--ink-2); }
.name-sub .zh { color: var(--ink); font-weight: 700; }

.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pillar { padding: 0 clamp(16px, 2vw, 32px) 8px; border-left: 1px solid rgba(23, 18, 12, .18); }
.pillar:first-child { padding-left: 0; border-left: 0; }
.pillar-glyph { width: clamp(84px, 8vw, 128px); height: clamp(84px, 8vw, 128px); fill: var(--red); }
.pinyin {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 26px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.pinyin .zh {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--red-ink);
}
.pillar-title { margin-top: 10px; font-size: clamp(42px, 4.2vw, 64px); }
.pillar p:last-child { margin-top: 16px; font-size: 15.5px; color: var(--ink-2); }
.pillar p .zh { font-weight: 700; color: var(--ink); }

.langs {
  margin-top: clamp(72px, 9vw, 136px);
  padding-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid rgba(23, 18, 12, .18);
}
.lang-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 36px; }
.lang-native {
  display: block;
  font-size: clamp(46px, 6.4vw, 104px);
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: "wdth" 30;
  line-height: .95;
  text-transform: uppercase;
}
.lang-native.zh { font-family: var(--f-zh); font-weight: 900; font-size: clamp(40px, 5.6vw, 90px); line-height: 1.04; }
.lang-en {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.langs-note { max-width: 60ch; margin-top: 40px; color: var(--ink-2); }

/* The ink-wash panorama closes the section; its sky is the same colour as the paper. */
.about-pano { position: relative; z-index: -1; margin-top: clamp(-260px, -14vw, -40px); }
.about-pano img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 92vh;
  object-fit: cover;
  object-position: 45% 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
}

/* ---------- Contact ---------- */
.contact { position: relative; isolation: isolate; overflow: hidden; padding-bottom: clamp(220px, 30vw, 460px); }
.contact-bg { position: absolute; inset: 0; z-index: -2; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 45%, rgba(0,0,0,0) 75%);
}
.contact .sec-head { grid-template-columns: auto minmax(0, 1fr); margin-bottom: 0; }
.contact-title { margin-top: 22px; font-size: clamp(56px, 9.4vw, 152px); }
.contact-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 clamp(24px, 4vw, 64px); }
.contact-body > div { grid-column: 2; }
.contact-text { max-width: 54ch; margin-top: 36px; font-size: clamp(17px, 1.35vw, 19px); color: rgba(255, 255, 255, .78); }
.mail {
  display: inline-block;
  margin-top: 44px;
  font-size: clamp(30px, 6.4vw, 104px);
  font-family: var(--f-display);
  font-weight: 750;
  font-variation-settings: "wdth" 34;
  line-height: 1;
  color: var(--white);
  overflow-wrap: anywhere;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 3px no-repeat;
  padding-bottom: 10px;
  transition: background-size .5s var(--ease), color .3s;
}
.mail:hover { color: var(--gold); background-size: 100% 3px; }
.contact .actions { margin-top: 40px; }

/* ---------- Footer ---------- */
.footer { background: var(--black); border-top: 1px solid rgba(255, 255, 255, .08); font-size: 15px; }
.footer-in {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding-block: 72px 56px;
}
.footer-id { display: flex; align-items: flex-start; gap: 24px; }
.seal { width: 92px; height: 92px; flex: none; transform: rotate(-3deg); }
.co-zh { font-size: clamp(20px, 1.9vw, 26px); font-weight: 900; line-height: 1.35; color: var(--white); }
.co-en { margin-top: 8px; color: var(--ash); }
.footer h2 {
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ash);
}
.footer-list li + li { margin-top: 8px; }
.footer-list a, .footer-mail { color: var(--smoke); transition: color .25s; }
.footer-list a:hover, .footer-mail:hover { color: var(--gold); }
.footer-mail { font-weight: 600; }
.footer-loc { margin-top: 8px; color: var(--ash); }
.footer h2.footer-tools { margin-top: 32px; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px;
  letter-spacing: .06em;
  color: #777;
}
.footer-base a:hover { color: var(--white); }

/* ---------- Motion ---------- */
@keyframes settle { from { transform: scale(1.08); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-copy > *, .inscription { animation: rise 1.1s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .1s; }
.hero-copy > :nth-child(3) { animation-delay: .22s; }
.hero-copy > :nth-child(4) { animation-delay: .34s; }
.inscription { animation-delay: .45s; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
/* Short laptop screens: keep the whole hero, spec strip included, inside the first screen. */
@media (max-height: 820px) and (min-width: 861px) {
  .hero-in { padding-top: 96px; padding-bottom: 28px; }
  .hero-title { font-size: clamp(54px, min(10.4vw, 15vh), 172px); }
  .eyebrow { margin-bottom: 22px; }
  .lede { margin-top: 24px; }
  .actions { margin-top: 28px; }
  .specs { padding-block: 18px 24px; }
  .specs dd { font-size: clamp(30px, 3.2vw, 46px); }
  .specs dd.zh { font-size: clamp(26px, 2.7vw, 38px); }
  .inscription-glyphs svg { width: clamp(56px, 10.5vh, 110px); height: clamp(56px, 10.5vh, 110px); }
}

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--last { grid-column: auto; }
  .sec-head { grid-template-columns: auto minmax(0, 1fr); }
  .sec-intro { grid-column: 2; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .pillar:nth-child(3) { padding-left: 0; border-left: 0; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .footer-id { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; align-content: center; gap: 28px; padding-top: 104px; }
  .inscription { order: -1; }
  .inscription-glyphs { flex-direction: row; gap: 4px; }
  .inscription-glyphs svg { width: clamp(46px, 8vw, 72px); height: clamp(46px, 8vw, 72px); }
  .inscription-latin { display: none; }
  .hero::before {
    background: linear-gradient(180deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.45) 40%, rgba(0,0,0,.55) 70%, #000 100%);
  }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .specs > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .story, .name-head { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .brand-name { display: none; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-in { height: 64px; }
  .nav-right { gap: 14px; }
  .nav-links { gap: 14px; }
  .nav-links a { padding-block: 16px; font-size: 11px; letter-spacing: .12em; }
  .brand-glyphs svg { width: 20px; height: 20px; }
  .lang-switch > * { min-width: 40px; height: 40px; padding: 0 8px; }
  .hero-title { font-size: clamp(50px, 15.2vw, 72px); }
  .hero-bg img { object-position: 74% 50%; }
  .actions .btn { flex: 1 1 100%; }
  .cards { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .card { min-height: 0; padding: 24px 22px 22px; }
  .card-title, .card--wide .card-title { font-size: clamp(38px, 11vw, 52px); padding-top: 40px; }
  .card-mark, .card--wide .card-mark { font-size: 170px; }
  .sec-head { gap: 20px 18px; }
  .vlabel { font-size: 16px; }
  .vlabel::after { height: 40px; }
  .pillars { grid-template-columns: 1fr; row-gap: 48px; }
  .pillar { padding: 0; border-left: 0; }
  .lang-list { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .about-pano img { aspect-ratio: 4 / 3; object-position: 42% 100%; }
  .contact-body { grid-template-columns: 1fr; }
  .contact-body > div { grid-column: 1; }
  .footer-in { grid-template-columns: 1fr; gap: 40px; }
  .footer-id { flex-direction: column; }
}

/* Very narrow phones: the section links give way; the hero buttons cover them. */
@media (max-width: 440px) {
  .nav-links li:not(:last-child) { display: none; }
}

/* ---------- Chinese page (/zh/) ----------
   Headlines and ornaments use Noto Serif SC Black (subset per page). Body text uses the
   system Chinese UI font (PingFang SC, Microsoft YaHei, Noto Sans CJK), so no large webfont. */
html:lang(zh) body { line-height: 1.85; letter-spacing: .02em; }
html:lang(zh) .display {
  font-family: "Flex Display", var(--f-zh);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: .03em;
}
html:lang(zh) .hero-title { font-size: clamp(44px, min(7.6vw, 12.5vh), 128px); }
html:lang(zh) .sec-title { font-size: clamp(40px, 5.4vw, 88px); }
html:lang(zh) .name-title { font-size: clamp(32px, 4vw, 64px); }
html:lang(zh) .pillar-title { font-size: clamp(30px, 2.8vw, 44px); }
html:lang(zh) .contact-title { font-size: clamp(44px, 6.6vw, 108px); }
/* Project names stay in compressed Latin caps. */
html:lang(zh) .card-title { font-weight: 800; line-height: .92; letter-spacing: .012em; }

html:lang(zh) .lede,
html:lang(zh) .contact-text { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.95; max-width: 32em; text-wrap: balance; }
html:lang(zh) .sec-intro,
html:lang(zh) .story-body p,
html:lang(zh) .name-sub,
html:lang(zh) .langs-note { max-width: 30em; }
html:lang(zh) .card-text { max-width: 26em; font-size: 15px; line-height: 1.85; }
html:lang(zh) .pillar p:last-child { font-size: 15px; line-height: 1.85; }
html:lang(zh) .story-lead {
  font-family: var(--f-zh);
  font-weight: 700;
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.6;
  letter-spacing: .04em;
}
html:lang(zh) .story-lead strong { font-weight: 900; }

html:lang(zh) .eyebrow { font-size: 13px; letter-spacing: .32em; }
html:lang(zh) .eyebrow .tag { font-size: 12px; font-weight: 700; letter-spacing: .14em; padding: 6px 8px; }
html:lang(zh) .label,
html:lang(zh) .card-top,
html:lang(zh) .specs dt,
html:lang(zh) .lang-en,
html:lang(zh) .footer h2 { font-size: 13px; letter-spacing: .16em; }
html:lang(zh) .nav-links a { font-size: 14px; letter-spacing: .16em; }
html:lang(zh) .btn { font-size: 14px; letter-spacing: .22em; }

@media (max-width: 680px) {
  html:lang(zh) .hero-title { font-size: clamp(40px, 13.4vw, 64px); }
  html:lang(zh) .sec-title { font-size: clamp(36px, 10.6vw, 52px); }
  html:lang(zh) .contact-title { font-size: clamp(36px, 11vw, 56px); }
  html:lang(zh) .nav-links a { font-size: 13px; letter-spacing: .12em; }
}
