/* =========================================================
   Masterwork Games: prototype stylesheet
   Ink night (dark) + rice paper (light), gold and seal red
   ========================================================= */

@property --r { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

:root {
  --ink: #0d0b0a;
  --ink-2: #161310;
  --ink-3: #221d18;
  --paper: #e4dfd5;
  --paper-2: #ece8df;
  --paper-3: #d4cdc0;
  --cream: #f1e8d9;
  --cream-dim: rgba(241, 232, 217, .64);
  --cream-faint: rgba(241, 232, 217, .14);
  --gold: #af9265;
  --gold-hi: #cfb27c;
  --seal: #c44547;
  --ink-text: #16130f;
  --ink-dim: rgba(22, 19, 15, .64);
  --ink-faint: rgba(22, 19, 15, .16);

  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-label: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --f-brush: "Ma Shan Zheng", "STXingkai", "KaiTi", serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --ease: cubic-bezier(.2, .7, .1, 1);

  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .45  0 0 0 0 .4  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(17px, 1.2vw, 20px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--seal); color: var(--cream); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
section, footer { position: relative; }

.dark { background: var(--ink); color: var(--cream); }
.paper { background: var(--paper); color: var(--ink-text); }
/* A3 rice paper: neutral-grey fibre detail laid over the brand paper colour */
.paper::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 70% at 50% 45%, transparent 55%, rgba(60, 45, 28, .35) 100%),
    url("../assets/img/A3-paper-detail.jpg") 0 0 / 640px 640px repeat;
  mix-blend-mode: soft-light;
  opacity: .6;
}

/* film grain over everything */
.grain {
  position: fixed; inset: 0;
  z-index: 90; pointer-events: none; opacity: .055;
  background-image: var(--noise); background-size: 220px 220px;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { background-position: 0 0; } 20% { background-position: -70px 50px; }
  40% { background-position: 60px -40px; } 60% { background-position: -30px -80px; }
  80% { background-position: 90px 30px; } 100% { background-position: 0 0; }
}

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--f-label); font-weight: 500; font-size: 12px;
  letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin: 0;
}
.paper .eyebrow { color: var(--ink-dim); }
.display {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(42px, 6.2vw, 100px); line-height: 1.02; letter-spacing: -.012em; margin: 0;
}
.sec-head { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(28px, 4vw, 56px); }
.sec-head::after { content: ""; width: 72px; height: 1px; background: currentColor; opacity: .3; transform-origin: left; }
.sec-num { font-family: var(--f-brush); font-size: 30px; line-height: 1; color: var(--seal); }

.seal-mini {
  display: inline-grid; place-items: center; width: 1.7em; height: 1.7em;
  background: var(--seal); color: var(--paper-2); border-radius: 3px;
  font-family: var(--f-brush); font-weight: 400; font-size: 14px; line-height: 1;
  transform: rotate(-4deg);
}

/* split words (headings) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.w > span { display: inline-block; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--f-label); font-weight: 500; font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  padding: 15px 28px; border: 1px solid currentColor; background: none; cursor: pointer;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  background: var(--btn-fill, var(--cream));
  transform: translateX(-101%); transition: transform .65s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateX(0); }
.btn:hover, .btn:focus-visible { color: var(--btn-text, var(--ink)); }
.btn--line { color: var(--cream); border-color: rgba(241, 232, 217, .35); --btn-fill: var(--cream); --btn-text: var(--ink); }
.btn--gold { color: var(--gold-hi); border-color: var(--gold); --btn-fill: var(--gold); --btn-text: var(--ink); }
.btn--ink { color: var(--ink-text); border-color: var(--ink-text); --btn-fill: var(--ink-text); --btn-text: var(--paper-2); }

.link-arrow { font-family: var(--f-label); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; display: inline-flex; gap: 12px; align-items: center; white-space: nowrap; }
.link-arrow i, .panel__cta i, .roles i { font-style: normal; display: inline-block; transition: transform .5s var(--ease); }
.link-arrow:hover i { transform: translateX(6px); }

/* ---------- edges between dark and paper ---------- */
.edge {
  position: absolute; left: 0; top: 1px; width: 100%; height: clamp(26px, 4.2vw, 64px);
  transform: translateY(-100%); pointer-events: none; z-index: 3; overflow: visible;
}
.paper .edge { fill: var(--paper); }
.dark .edge { fill: var(--ink); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: 40px;
  padding: 22px var(--gutter);
  transition: transform .6s var(--ease), background-color .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(13, 11, 10, .74); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding-block: 12px; border-color: rgba(241, 232, 217, .07); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo img { height: 40px; width: auto; transition: height .4s; }
.nav.is-solid .nav__logo img { height: 34px; }
.nav__links { display: flex; gap: clamp(20px, 2.6vw, 40px); margin-left: auto; }
.nav__links a {
  position: relative; padding: 6px 0;
  font-family: var(--f-label); font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--cream-dim); transition: color .3s;
}
.nav__links a::after { content: ""; position: absolute; left: 0; right: .24em; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--cream); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__cta { padding: 11px 22px; }
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--cream); transition: transform .5s var(--ease), top .5s var(--ease); }
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 26px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ink);
  display: flex; flex-direction: column; justify-content: center; gap: 48px;
  padding: 96px var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - 40px) 40px);
  visibility: hidden;
  transition: clip-path .8s var(--ease), visibility 0s linear .8s;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; transition: clip-path .8s var(--ease), visibility 0s; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { display: flex; align-items: baseline; gap: 18px; font-size: clamp(38px, 10vw, 64px); line-height: 1.2; }
.menu nav a i { font-style: normal; font-family: var(--f-brush); font-size: .42em; color: var(--seal); }

/* side rail */
.rail {
  position: fixed; right: clamp(14px, 1.8vw, 30px); top: 50%; z-index: 40;
  display: flex; flex-direction: column; gap: 20px;
  transform: translateY(-50%); opacity: 0; pointer-events: none;
  color: var(--cream); transition: opacity .6s, color .6s;
}
.rail.is-visible { opacity: 1; pointer-events: auto; }
body[data-on="paper"] .rail { color: var(--ink-text); }
.rail::after { content: ""; position: absolute; right: -10px; top: -30px; bottom: -30px; width: 1px; background: currentColor; opacity: .14; }
.rail a { position: relative; font-family: var(--f-brush); font-size: 19px; line-height: 1; opacity: .35; transition: opacity .3s, color .3s, transform .4s var(--ease); }
.rail a:hover { opacity: .8; }
.rail a.is-active { opacity: 1; color: var(--seal); transform: scale(1.18); }
.rail a::before {
  content: attr(data-label); position: absolute; right: calc(100% + 14px); top: 50%;
  transform: translate(6px, -50%); white-space: nowrap;
  font-family: var(--f-label); font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
  opacity: 0; transition: opacity .3s, transform .4s var(--ease); color: currentColor;
}
.rail a:hover::before { opacity: .85; transform: translate(0, -50%); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  height: 100vh; height: 100svh; min-height: 600px; overflow: hidden;
  background: var(--ink);
}
.hero__scene { position: absolute; inset: 0; }
.hero__layer { position: absolute; left: -3%; top: -3%; width: 106%; height: 106%; max-width: none; will-change: transform; }
.hero__photo { object-fit: cover; object-position: 50% 62%; }
.hero__glow {
  position: absolute; left: 50%; top: 44%; width: min(100vw, 1200px); aspect-ratio: 1.5;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(175, 146, 101, .17), rgba(175, 146, 101, .05) 55%, transparent);
}
.hero__dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__center {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding-bottom: 9vh; pointer-events: none;
}
.mark { position: relative; aspect-ratio: 1160 / 920; }
.hero .mark { width: min(90vw, calc(66svh * 1160 / 920), 1040px); }
.mark__layer { position: absolute; inset: 0; will-change: transform; }
.mark__layer svg { width: 100%; height: 100%; overflow: visible; }
.mark__front img { position: absolute; inset: 0; width: 100%; height: 100%; }
.mark__seal { transform-origin: 15.3% 65.7%; }
.mark__text {
  --p: 118%;
  -webkit-mask-image: linear-gradient(100deg, #000 calc(var(--p) - 12%), transparent calc(var(--p) + 2%));
          mask-image: linear-gradient(100deg, #000 calc(var(--p) - 12%), transparent calc(var(--p) + 2%));
}
.hero__copy { position: absolute; left: 0; right: 0; bottom: clamp(56px, 9vh, 110px); text-align: center; padding: 0 var(--gutter); }
.hero__tagline { font-style: italic; font-weight: 400; font-size: clamp(22px, 2.3vw, 36px); line-height: 1.2; margin: 0 0 14px; }
.hero__vert {
  position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.hero__vert span { writing-mode: vertical-rl; font-family: var(--f-brush); font-size: 22px; letter-spacing: .45em; color: var(--gold); }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: clamp(28px, 5vh, 48px);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--f-label); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--cream-dim);
}
.hero__scroll span { writing-mode: vertical-rl; }
.hero__scroll i { position: relative; width: 1px; height: 64px; overflow: hidden; background: rgba(241, 232, 217, .18); }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold-hi); animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }

/* Qin hero: the scene is a video with no logo in it. A maximised desktop window is about 2:1, wider than the 16:9 video, so cover crops about a tenth of its height:
   anchored 10% from the top, most of that comes off the ground at the bottom and the pommel stays clear of the nav (at 1920 x 960: pommel about 107 px down, nav 88 tall). A window narrower than 16:9 crops the sides: 80% from the left keeps the sword in. */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 10%; }
/* The logo where the 4K clip had it: 588 px wide, 72 from the left, 52 from the bottom of 3840 x 2160 (at 1920 wide: 294, 36, 26, Guitang's corner) */
.hero__brand { position: absolute; z-index: 2; left: max(16px, 1.875vw); bottom: max(16px, 1.354vw); width: max(150px, 15.31vw); height: auto; pointer-events: none; user-select: none; }
/* user, 11-10: "去掉LOGO" for the web cut (and 11-09: nothing over the left side of the hero); asked again 11-12, the answer was "不用放". The nav keeps its logo. Delete this line to bring the corner logo back. */
.hero__brand { display: none; }
/* nothing over the logo in the picture: the prototype's tool strip and the next section's torn edge both reached it */
.proto, .studio > .edge { display: none !important; }
.hero__sound {
  position: absolute; right: calc(var(--gutter) + 44px); bottom: clamp(28px, 5vh, 48px);
  padding: 8px 14px; cursor: pointer; background: rgba(13, 11, 10, .45); border: 1px solid rgba(241, 232, 217, .35);
  font-family: var(--f-label); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--cream);
}
.hero__sound:hover, .hero__sound[aria-pressed="true"] { border-color: var(--gold-hi); color: var(--gold-hi); }

/* =========================================================
   壹 STUDIO
   ========================================================= */
.studio { padding: clamp(110px, 14vw, 210px) 0 clamp(90px, 11vw, 170px); overflow-x: clip; }
.studio__glyph {
  position: absolute; right: -3vw; top: 2vw; pointer-events: none; user-select: none;
  width: clamp(177px, 24.5vw, 408px); line-height: 0; color: var(--ink-text); opacity: .06;
  right: clamp(12px, 4vw, 72px); /* the cropped glyph has no side bearing, so it no longer hangs off the edge */
}
/* 傑 in Shuowen small seal, an inline SVG (11-12, user: "换成小篆"); it inherits the colour.
   viewBox is cropped to the glyph (tall, 76:112), so its height matches the old 36vw brush glyph. */
.studio__glyph svg { display: block; width: 100%; height: auto; }
.manifesto { font-size: clamp(30px, 3.8vw, 60px); line-height: 1.16; letter-spacing: -.005em; max-width: 21em; margin: 0; }
.manifesto em { font-style: italic; color: var(--seal); }
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: clamp(56px, 7vw, 100px) 0 clamp(90px, 11vw, 160px); border-top: 1px solid var(--ink-faint);
}
.facts > div { padding: 22px 20px 0; border-left: 1px solid var(--ink-faint); }
.facts > div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font-family: var(--f-label); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-dim); }
.facts dd { margin: 6px 0 0; font-size: clamp(22px, 2vw, 30px); line-height: 1.2; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.pillar:nth-child(2) { margin-top: clamp(0px, 7vw, 110px); }
.pillar:nth-child(3) { margin-top: clamp(0px, 3vw, 48px); }
.pillar__art { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-3); }
.pillar__art canvas, .card__art canvas,
.pillar__art img, .card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.pillar:hover .pillar__art canvas, .pillar:hover .pillar__art img { transform: scale(1.05); }
.pillar__body { position: relative; padding-right: 8%; }
.pillar__glyph {
  display: block; position: relative; z-index: 1; width: max-content;
  font-family: var(--f-brush); font-size: clamp(76px, 7vw, 116px); line-height: 1;
  margin: .16em 0 0 -.04em; transition: transform .8s var(--ease);
}
.pillar:hover .pillar__glyph { transform: translateY(-8px); }
.pillar__seal { position: absolute; left: clamp(66px, 6vw, 100px); top: clamp(14px, 1.4vw, 22px); }
.pillar h3 { font-family: var(--f-label); font-weight: 500; font-size: 15px; letter-spacing: .3em; text-transform: uppercase; margin: 14px 0 10px; }
.pillar p { margin: 0; color: var(--ink-dim); max-width: 32ch; }

/* =========================================================
   贰 PROJECT
   ========================================================= */
.project {
  min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  padding: clamp(130px, 16vw, 220px) 0 clamp(70px, 9vw, 130px);
  cursor: none;
}
.project .notify, .project .redact, .project .sec-head { cursor: auto; }
.project__stage { position: absolute; inset: 0; overflow: hidden; }
.project__canvas { width: 100%; height: 100%; }
.project__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(13, 11, 10, .88) 0%, rgba(13, 11, 10, .5) 38%, rgba(13, 11, 10, 0) 62%),
    linear-gradient(0deg, rgba(13, 11, 10, .85) 0%, rgba(13, 11, 10, 0) 42%),
    linear-gradient(180deg, rgba(13, 11, 10, .6) 0%, rgba(13, 11, 10, 0) 22%);
}
.project__inner { z-index: 2; pointer-events: none; }
.project__inner .notify, .project__inner .redact { pointer-events: auto; }
.project .display { max-width: 9em; }
.project__name { font-family: var(--f-label); font-size: clamp(15px, 1.5vw, 21px); letter-spacing: .3em; text-transform: uppercase; margin: 30px 0 24px; display: flex; align-items: center; gap: .7em; }
.redact { position: relative; display: inline-block; width: 6.4em; height: 1.05em; background: var(--cream); outline-offset: 6px; }
.redact::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(175, 146, 101, .55) 50%, transparent 70%);
  background-size: 250% 100%; animation: sheen 3.6s linear infinite;
}
@keyframes sheen { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.redact::before {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 10px);
  transform: translate(-50%, 6px); opacity: 0; transition: opacity .3s, transform .4s var(--ease);
  background: var(--seal); color: var(--paper-2); font-size: 10px; letter-spacing: .28em; padding: 6px 10px; white-space: nowrap;
}
.redact:hover::before, .redact:focus-visible::before { opacity: 1; transform: translate(-50%, 0); }
.project__meta { list-style: none; padding: 0; margin: 0 0 44px; display: flex; flex-wrap: wrap; gap: 14px 44px; }
.project__meta li { font-size: 19px; line-height: 1.3; }
.project__meta span { display: block; font-family: var(--f-label); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }

.notify { max-width: 560px; }
.notify label, .notify h4 label { display: block; font-style: italic; font-size: 22px; margin-bottom: 8px; }
.notify__row { display: flex; align-items: stretch; gap: 0; border-bottom: 1px solid rgba(241, 232, 217, .32); }
.notify input { flex: 1; min-width: 0; background: none; border: 0; padding: 14px 0; font-size: 18px; outline: none; }
.notify input::placeholder { color: var(--cream-dim); }
.notify .btn { border-bottom: 0; }
.notify.is-error .notify__row { border-color: var(--seal); }
.notify__ok { margin: 14px 0 0; color: var(--gold-hi); font-style: italic; }
.notify__ok em { color: var(--cream-dim); font-size: .85em; }

.stamp {
  position: absolute; right: clamp(24px, 9vw, 160px); top: clamp(110px, 17vh, 190px); z-index: 2;
  display: grid; justify-items: center; gap: 10px; color: var(--seal); pointer-events: none;
  transform: rotate(-8deg);
}
.stamp span {
  display: grid; place-items: center; width: clamp(84px, 8.6vw, 124px); aspect-ratio: 1;
  border: 3px solid currentColor; border-radius: 8px;
  font-family: var(--f-brush); font-size: clamp(50px, 5vw, 76px); line-height: 1;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  -3 0 0 0 2.15'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  -3 0 0 0 2.15'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
}
.stamp small { font-family: var(--f-label); font-size: 10px; letter-spacing: .34em; text-transform: uppercase; }
.project__hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; color: var(--cream-dim); font-size: 10px; transition: opacity .8s; pointer-events: none; white-space: nowrap; }
.project__hint.is-gone { opacity: 0; }
.lantern {
  position: absolute; left: 0; top: 0; z-index: 3; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border: 1px solid rgba(207, 178, 124, .7); border-radius: 50%; pointer-events: none;
  opacity: 0; transition: opacity .3s, width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease);
}
.lantern::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: var(--gold-hi); }
.lantern.is-on { opacity: 1; }

/* =========================================================
   叁 NEWS
   ========================================================= */
.news { padding: clamp(120px, 13vw, 200px) 0 clamp(90px, 10vw, 160px); }
.news__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(40px, 5vw, 76px); }
.news__head .sec-head { margin-bottom: 22px; }
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 40px); }
.card { display: block; }
.card__art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); }
.card:hover .card__art canvas, .card:hover .card__art img { transform: scale(1.06); }
.card__art--drawing { background: var(--paper-2); }
.card__art--drawing img { object-fit: contain; padding: 5% 12%; }
.card__seal { position: absolute; right: 9%; bottom: 11%; font-size: 17px; }
.card__meta { display: flex; gap: 16px; margin: 20px 0 10px; font-family: var(--f-label); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-dim); }
.card__meta span { color: var(--seal); }
.card h3 { font-weight: 500; font-size: clamp(23px, 1.9vw, 29px); line-height: 1.2; margin: 0 0 10px; }
.card h3 span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .7s var(--ease); }
.card:hover h3 span, .card:focus-visible h3 span { background-size: 100% 1px; }
.card p { margin: 0; color: var(--ink-dim); font-size: .95em; }

.presskit {
  margin-top: clamp(70px, 8vw, 120px); padding: 36px 0;
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px 44px;
  border-top: 1px solid var(--ink-text); border-bottom: 1px solid var(--ink-faint);
}
.presskit h3 { font-family: var(--f-label); font-weight: 500; font-size: 15px; letter-spacing: .3em; text-transform: uppercase; margin: 0 0 6px; }
.presskit p { margin: 0; color: var(--ink-dim); }
.presskit__mail { border-bottom: 1px solid var(--ink-faint); padding-bottom: 2px; transition: border-color .3s; }
.presskit__mail:hover { border-color: var(--ink-text); }

/* =========================================================
   肆 JOIN
   ========================================================= */
.join { padding: clamp(120px, 13vw, 200px) 0 clamp(110px, 12vw, 190px); }
.join .display { max-width: 11em; margin-bottom: clamp(44px, 5.5vw, 80px); }
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.panel {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(400px, 38vw, 540px); padding: clamp(28px, 3.2vw, 52px);
  display: flex; flex-direction: column; border: 1px solid var(--cream-faint);
  transition: border-color .6s;
}
.panel:hover { border-color: rgba(175, 146, 101, .45); }
.panel__art {
  position: absolute; inset: 0; z-index: -1;
  --r: -25%;
  -webkit-mask-image: radial-gradient(circle at var(--mx) var(--my), #000 var(--r), transparent calc(var(--r) + 22%));
          mask-image: radial-gradient(circle at var(--mx) var(--my), #000 var(--r), transparent calc(var(--r) + 22%));
  transition: --r 1.1s var(--ease);
}
.panel.is-hot .panel__art { --r: 150%; }
.panel__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13, 11, 10, .92) 10%, rgba(13, 11, 10, .35) 70%, rgba(13, 11, 10, .2)); }
.panel__art canvas { width: 100%; height: 100%; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.panel.is-hot .panel__art canvas { transform: scale(1); }
.panel__num { font-family: var(--f-label); font-size: 13px; letter-spacing: .3em; color: var(--gold); }
.panel h3 { font-weight: 500; font-size: clamp(32px, 3.3vw, 50px); line-height: 1.05; margin: auto 0 16px; padding-top: 60px; }
.panel p { margin: 0 0 32px; color: var(--cream-dim); max-width: 34ch; }
.panel__cta { font-family: var(--f-label); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-hi); display: inline-flex; gap: 12px; align-items: center; align-self: flex-start; }
a.panel:hover .panel__cta i, .panel__cta:hover i { transform: translateX(8px); }
.roles { list-style: none; padding: 0; margin: 0 0 30px; border-bottom: 1px solid var(--cream-faint); }
.roles a { display: grid; grid-template-columns: 1fr auto 24px; gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--cream-faint); transition: color .3s, padding .5s var(--ease); }
.roles em { font-style: normal; font-family: var(--f-label); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--cream-dim); }
.roles a:hover { color: var(--gold-hi); padding-left: 10px; }
.roles a:hover i { transform: translateX(6px); }

/* =========================================================
   FOOTER
   ========================================================= */
.foot { padding: clamp(110px, 12vw, 180px) 0 28px; text-align: center; }
.foot__mark { width: min(84vw, 640px); margin: 0 auto; }
.foot__mark .mark__dragon { opacity: .62; }
.foot__tag { font-style: italic; font-size: clamp(20px, 2vw, 28px); color: var(--ink-dim); margin: 18px 0 clamp(70px, 8vw, 120px); }
.foot__cols { display: grid; grid-template-columns: 1fr 1fr 1fr 1.4fr; gap: 36px; text-align: left; padding: 48px 0; border-top: 1px solid var(--ink-faint); }
.foot h4 { font-family: var(--f-label); font-weight: 500; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--seal); margin: 0 0 16px; }
.foot h4 label { font: inherit; margin: 0; }
.foot__cols > div a { display: block; padding: 4px 0; color: var(--ink-dim); transition: color .3s; overflow-wrap: anywhere; }
.foot__cols > div a:hover { color: var(--ink-text); }
.notify--paper p { margin: 0 0 8px; color: var(--ink-dim); }
.notify--paper .notify__row { border-color: var(--ink-faint); }
.notify--paper input::placeholder { color: var(--ink-dim); }
.notify--paper .btn { padding: 12px 20px; }
.notify--paper .notify__ok { color: var(--seal); }
.notify--paper .notify__ok em { color: var(--ink-dim); }
.foot__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 28px; padding-top: 24px; border-top: 1px solid var(--ink-faint); font-size: 15px; color: var(--ink-dim); }
.foot__legal { display: flex; gap: 24px; }
.foot__legal a:hover, .totop:hover { color: var(--ink-text); }
.totop { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-label); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }

/* =========================================================
   PROTOTYPE TOOLS (not part of the final site)
   ========================================================= */
.proto {
  position: fixed; left: 14px; bottom: 14px; z-index: 100;
  display: flex; align-items: center; gap: 6px; padding: 6px;
  background: rgba(22, 20, 18, .9); border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px;
  font: 500 12px/1 "Segoe UI", system-ui, sans-serif; color: #eee;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.proto__tag { padding: 0 6px 0 8px; color: #e0686a; font-weight: 700; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.proto button { border: 0; background: rgba(255, 255, 255, .09); padding: 8px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.proto button:hover { background: rgba(255, 255, 255, .18); }
.proto button[aria-pressed="true"] { background: var(--seal); }
body.show-slots [data-slot] { outline: 2px dashed rgba(224, 104, 106, .95); outline-offset: -2px; }
body.show-slots [data-slot]::after {
  content: attr(data-slot); position: absolute; left: 10px; top: 10px; z-index: 6; max-width: calc(100% - 20px);
  background: var(--seal); color: #fff; padding: 6px 9px;
  font: 600 11px/1.35 Consolas, ui-monospace, monospace; letter-spacing: 0; text-transform: none; text-align: left;
}
body.show-slots .hero__scene::after { top: auto; bottom: 150px; left: 50%; transform: translateX(-50%); }
body.show-slots .project__stage::after { left: auto; right: 10px; top: 90px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .rail { display: none; }
}
@media (hover: none) {
  .panel__art { --r: 150%; }
  .panel__art canvas { transform: none; }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__logo img { height: 32px; }
  .pillars { grid-template-columns: 1fr; gap: 64px; max-width: 520px; }
  .pillar:nth-child(n) { margin-top: 0; }
  .news__grid { grid-template-columns: 1fr; gap: 48px; }
  .news__head { flex-direction: column; align-items: flex-start; }
  .presskit { grid-template-columns: 1fr; justify-items: start; }
  .panels { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__cols .notify { grid-column: 1 / -1; }
  .stamp { top: 96px; right: var(--gutter); }
}
@media (max-width: 700px) {
  .hero__vert { display: none; }
  .hero .mark { width: 94vw; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div, .facts > div:first-child { border-left: 0; padding: 18px 12px 18px 0; border-bottom: 1px solid var(--ink-faint); }
  .project { cursor: auto; }
  .project__shade { background: linear-gradient(0deg, rgba(13, 11, 10, .94) 0%, rgba(13, 11, 10, .55) 55%, rgba(13, 11, 10, .2) 100%); }
  .notify__row { flex-wrap: wrap; border-bottom: 0; }
  .notify input { flex-basis: 100%; border-bottom: 1px solid rgba(241, 232, 217, .32); margin-bottom: 14px; }
  .notify--paper input { border-color: var(--ink-faint); }
  .notify .btn { border-bottom: 1px solid currentColor; }
  .foot__cols { grid-template-columns: 1fr; }
  .foot__bottom { flex-direction: column; align-items: flex-start; }
  .proto { left: 50%; transform: translateX(-50%); bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .hero__scroll i::after, .redact::after { animation: none; }
  .project { cursor: auto; }
  * { transition-duration: .01ms !important; }
}

/* =========================================================
   QIN UNIFY (11-12): everything below the hero takes the hero's palette.
   Loess dust instead of rice paper, Qin black, the streamer's red, bronze.
   Colours sampled from the hero render (k6_0000): warm sky #d6cda6,
   streamer #970715, blade #847255.
   ========================================================= */
:root {
  --ink: #0e0c0a;
  --ink-2: #17130f;
  --paper: #cfc39e;          /* dust over loess */
  --paper-2: #ddd3b2;
  --paper-3: #b4a37c;
  --ink-text: #1b1610;
  --ink-dim: rgba(27, 22, 16, .72);
  --ink-faint: rgba(27, 22, 16, .2);
  --seal: #9a1b20;           /* streamer red, on loess */
  --seal-lit: #c2393a;       /* the same red, lifted for dark grounds */
  --gold: #a8905f;           /* bronze */
  --gold-hi: #c9ad74;
}

/* loess grain and mottling instead of rice-paper fibres */
.paper::before {
  background:
    radial-gradient(ellipse 85% 75% at 50% 40%, transparent 50%, rgba(70, 48, 22, .32) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><filter id='m'><feTurbulence type='fractalNoise' baseFrequency='.011' numOctaves='3' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .42  0 0 0 0 .3  0 0 0 0 .17  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23m)'/></svg>"),
    var(--noise);
  background-size: auto, 600px 600px, 220px 220px;
  mix-blend-mode: multiply;
  opacity: .42;
}
.edge circle { display: none; }      /* no ink splatter on earth */
.facts { grid-template-columns: repeat(2, 1fr); max-width: 760px; }   /* two facts: founded, studio (engine and team size dropped by the user) */

.dark .sec-num, .menu nav a i, .project .stamp { color: var(--seal-lit); }
body:not([data-on="paper"]) .rail a.is-active { color: var(--seal-lit); }

/* Work With Us sits on loess now; the panels stay as dark cards */
.join .panel { background: var(--ink); color: var(--cream); border-color: transparent; }
.join .panel:hover { border-color: rgba(168, 144, 95, .5); }
/* the picture is always there, dimmed; the cursor only brings it forward (empty black cards read as unfinished) */
.join .panel__art { -webkit-mask-image: none; mask-image: none; opacity: .5; transition: opacity .9s var(--ease); }
.join .panel.is-hot .panel__art { opacity: 1; }
.panel__art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.panel.is-hot .panel__art img { transform: scale(1); }
@media (hover: none) { .panel__art img { transform: none; } }

/* team (hidden until the founder's details arrive) */
.team { margin-top: clamp(80px, 10vw, 140px); padding-top: 40px; border-top: 1px solid var(--ink-faint); }
.team[hidden] { display: none; }
.team__title { font-family: var(--f-label); font-weight: 500; font-size: 15px; letter-spacing: .3em; text-transform: uppercase; margin: 0 0 28px; }
.member { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: clamp(20px, 3vw, 44px); align-items: end; max-width: 820px; }
.member__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-3); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__seal { position: absolute; left: 14px; bottom: 14px; }
/* team seal: name seal, 傑 in small seal cut white on red (11-12, user: "团队卡的小印也换成小篆").
   Bigger than the other seal-minis because seal strokes vanish at 24 px; a thin stroke thickens the hairlines. */
.member__seal.seal-mini { width: 52px; height: 52px; border-radius: 4px; }
.member__seal svg { display: block; height: 82%; width: auto; stroke: currentColor; stroke-width: 12; stroke-linejoin: round; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.member__role { margin: 0; font-family: var(--f-label); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--seal); }
.member__name { margin: 6px 0 12px; font-weight: 500; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1; }
.member__bio { margin: 0; max-width: 46ch; color: var(--ink-dim); }

/* footer is dark now */
.foot.dark .foot__tag { color: var(--cream-dim); }
.foot__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 40px; padding: 36px 0; border-top: 1px solid var(--cream-faint); }
.foot__links a { font-family: var(--f-label); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--cream-dim); transition: color .3s; }
.foot__links a:hover { color: var(--gold-hi); }
.foot.dark .foot__bottom { border-color: var(--cream-faint); color: var(--cream-dim); }
.foot.dark .totop:hover { color: var(--cream); }

/* one contact address, contact@masterwork-games.com (11-13): footer, mobile menu, Work With Us panels */
.foot.dark .foot__tag { margin-bottom: 26px; }
.foot__mail {
  display: inline-block; margin-bottom: clamp(60px, 7vw, 104px);
  font-size: clamp(19px, 1.7vw, 24px); letter-spacing: .04em; color: var(--cream);
  border-bottom: 1px solid var(--gold); padding-bottom: 4px; transition: color .3s, border-color .3s;
}
.foot__mail:hover { color: var(--gold-hi); border-color: var(--gold-hi); }
.menu__mail { font-size: 18px; letter-spacing: .04em; color: var(--cream-dim); align-self: flex-start; border-bottom: 1px solid var(--cream-faint); padding-bottom: 3px; }
.menu__mail:hover { color: var(--cream); }
/* UK company disclosure under the footer line (11-13) */
.foot__company { margin: 18px 0 0; font-size: 13px; line-height: 1.5; color: var(--cream-dim); opacity: .7; text-align: left; }
.panel__cta--mail { position: relative; font-family: inherit; font-size: 17px; letter-spacing: .03em; text-transform: none; overflow-wrap: anywhere; }

/* ---------- News (11-13): one featured story on the home page ---------- */
.news .display { margin-bottom: clamp(36px, 4.5vw, 64px); }
.news__feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 64px); align-items: center; }
.news__feature .card__meta { margin-top: 0; }
.news__feature h3 { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.15; margin-bottom: 16px; }
.news__feature p { font-size: 1.05em; max-width: 40ch; }
.news__more { margin-top: 26px; color: var(--seal); }
.news__feature:hover .news__more i { transform: translateX(8px); }
/* News and Work With Us are both paper now: a hairline keeps them apart */
.news + .join .wrap { border-top: 1px solid var(--ink-faint); padding-top: clamp(56px, 7vw, 96px); }
.news + .join { padding-top: 0; }

/* ---------- Article pages (news/*.html) ---------- */
.article-page { background: var(--paper); }
.article-page .nav { position: sticky; background: rgba(13, 11, 10, .92); }
.article-page .nav__links a { color: var(--cream-dim); }
.article { position: relative; padding: clamp(56px, 8vw, 110px) 0 clamp(80px, 10vw, 140px); }   /* relative: the loess texture (.paper::before) covers the whole page, not just the first screen */
.article__inner { position: relative; max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.article__back { display: inline-flex; gap: 10px; align-items: center; margin-bottom: clamp(30px, 4vw, 48px); font-family: var(--f-label); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-dim); }
.article__back:hover { color: var(--ink-text); }
.article__meta { display: flex; gap: 16px; font-family: var(--f-label); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-dim); margin: 0 0 18px; }
.article__meta span { color: var(--seal); }
.article h1 { font-weight: 500; font-size: clamp(36px, 4.4vw, 62px); line-height: 1.08; margin: 0 0 18px; color: var(--ink-text); }
.article__sub { font-style: italic; font-size: clamp(20px, 1.8vw, 25px); line-height: 1.4; color: var(--ink-dim); margin: 0 0 clamp(32px, 4vw, 52px); }
.article__figure { margin: 0 0 clamp(32px, 4vw, 52px); }
.article__figure img { display: block; width: 100%; height: auto; }
.article__body p { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.65; margin: 0 0 1.15em; color: var(--ink-text); }
.article__body .dateline { font-family: var(--f-label); font-size: .78em; letter-spacing: .12em; text-transform: uppercase; }
.article__body blockquote { margin: 1.6em 0; padding: 0 0 0 26px; border-left: 2px solid var(--seal); font-style: italic; }
.article__body blockquote p { color: var(--ink-text); }
.article__ends { text-align: center; letter-spacing: .4em; font-family: var(--f-label); font-size: 12px; color: var(--ink-dim); margin: clamp(36px, 4vw, 56px) 0; }
.article__notes { border-top: 1px solid var(--ink-faint); padding-top: 28px; }
.article__notes h2 { font-family: var(--f-label); font-weight: 500; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; margin: 0 0 10px; color: var(--ink-text); }
.article__notes p { font-size: 17px; line-height: 1.6; color: var(--ink-dim); margin: 0 0 24px; }
.article__notes a { border-bottom: 1px solid var(--ink-faint); }
.article__notes a:hover { border-color: var(--ink-text); }
.article-foot { background: var(--ink); color: var(--cream-dim); padding: 46px 0 40px; text-align: center; }
.article-foot img { width: min(56vw, 230px); height: auto; opacity: .9; }
.article-foot .foot__company { text-align: center; max-width: 760px; margin: 18px auto 0; padding: 0 var(--gutter); }

/* ---------- About page (about.html, 11-13): the article template plus facts, three ways of working, founder ---------- */
.about .facts { grid-template-columns: repeat(3, 1fr); max-width: none; margin: clamp(8px, 1.5vw, 20px) 0 0; }
.about .facts dd { font-size: clamp(20px, 1.8vw, 26px); color: var(--ink-text); }
.about__sec { margin-top: clamp(48px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--ink-faint); }
.about__sec > h2 { font-family: var(--f-label); font-weight: 500; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; margin: 0 0 22px; color: var(--ink-text); }
.about__sec .article__body p:last-child { margin-bottom: 0; }
.about__sec .article__body a, .about__sec.article__notes a { border-bottom: 1px solid var(--ink-faint); }
.about__sec .article__body a:hover { border-color: var(--ink-text); }
.about__ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 40px); }
.about__glyph { display: block; font-family: var(--f-brush); font-size: clamp(58px, 5.4vw, 84px); line-height: 1; color: var(--ink-text); }
.about__ways h3 { font-family: var(--f-label); font-weight: 500; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; margin: 12px 0 8px; color: var(--ink-text); }
.about__ways p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-dim); }
/* founder photo slot: the 傑 seal in gold on ink until there is a photo */
.about__photo { background: var(--ink); display: grid; place-items: center; }
.about__jie { width: 44%; line-height: 0; color: var(--gold-hi); }
.about__jie svg { display: block; width: 100%; height: auto; stroke: currentColor; stroke-width: 6; stroke-linejoin: round; }
.about .member { max-width: none; }
/* LinkedIn mark beside the founder's name (11-13): ink like the text, LinkedIn blue on hover */
.member__in { display: inline-block; width: .62em; height: .62em; margin-left: .3em; vertical-align: .02em; color: var(--ink-text); opacity: .82; transition: color .3s, opacity .3s; }
.member__in svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.member__in:hover, .member__in:focus-visible { color: #0a66c2; opacity: 1; }
.about .member__bio { font-size: 18px; line-height: 1.6; }
.about__sec.article__notes h2 + p { margin-bottom: 24px; }
.about__sec.article__notes p:last-child { margin-bottom: 0; }
/* home page, end of 壹 Studio: the way into the About page */
.studio__more { margin-top: clamp(56px, 7vw, 96px); color: var(--seal); }

/* ---------- Chinese pages (zh/, 11-14) ----------
   No Chinese web font is downloaded (a full one is several MB): the Latin fonts stay first and every Chinese
   character falls back to the system's Song/Ming serif, which suits the paper-and-ink look. */
html[lang|="zh"] {
  /* Source Han Serif SC last: some PCs (this one) only have its Heavy weight, which then wins for all text */
  --f-display: "Cormorant Garamond", "Noto Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", "SimSun", "Source Han Serif SC", serif;
  --f-label: "Cinzel", "Noto Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", "SimSun", "Source Han Serif SC", serif;
}
html[lang|="zh"] body, html[lang|="zh"] .article h1, html[lang|="zh"] .member__name, html[lang|="zh"] .facts dd { font-weight: 400; }   /* Song at 500 reads much heavier than Cormorant */
html[lang|="zh"] .article h1 { line-height: 1.3; letter-spacing: .02em; }
html[lang|="zh"] .article__sub, html[lang|="zh"] .article__body blockquote { font-style: normal; }   /* no slanted Chinese */
html[lang|="zh"] .article__body p, html[lang|="zh"] .about__ways p, html[lang|="zh"] .article__notes p, html[lang|="zh"] .member__bio { line-height: 1.9; }
html[lang|="zh"] .article__meta, html[lang|="zh"] .article__back, html[lang|="zh"] .about__sec > h2, html[lang|="zh"] .about__ways h3,
html[lang|="zh"] .article__notes h2, html[lang|="zh"] .facts dt, html[lang|="zh"] .member__role, html[lang|="zh"] .nav__links a { letter-spacing: .14em; }
html[lang|="zh"] .about__sec .article__body a { border-bottom: 1px solid var(--ink-faint); }
html[lang|="zh"] .about__sec > h2, html[lang|="zh"] .about__ways h3, html[lang|="zh"] .article__notes h2 { font-size: 15px; }   /* 13 px Chinese is too small */
html[lang|="zh"] .article__meta, html[lang|="zh"] .member__role, html[lang|="zh"] .facts dt, html[lang|="zh"] .article__back { font-size: 13px; }
/* Chinese home page (zh/index.html, 11-17): big Chinese lines need smaller sizes than the English display type */
html[lang|="zh"] .display { font-size: clamp(34px, 4.6vw, 72px); line-height: 1.25; letter-spacing: .04em; text-wrap: balance; }   /* no lone "写。" on the second line */
html[lang|="zh"] .manifesto { font-size: clamp(22px, 2.7vw, 42px); line-height: 1.6; max-width: 26em; }
html[lang|="zh"] .eyebrow, html[lang|="zh"] .project__meta span, html[lang|="zh"] .card__meta, html[lang|="zh"] .link-arrow,
html[lang|="zh"] .pillar h3, html[lang|="zh"] .foot__links a, html[lang|="zh"] .hero__sound, html[lang|="zh"] .hero__scroll span,
html[lang|="zh"] .menu__foot, html[lang|="zh"] .project__hint, html[lang|="zh"] .totop { letter-spacing: .16em; }
html[lang|="zh"] .pillar p, html[lang|="zh"] .panel p, html[lang|="zh"] .news__feature p { line-height: 1.85; }
html[lang|="zh"] .foot__tag { letter-spacing: .12em; font-style: normal; }

/* ---------- Language switch (11-17, user: 中文/English must switch the whole site) ----------
   "EN / 中" in the top bar of every page; the other language links to the same page in that language.
   On phones the nav links hide, so it sits next to the burger (or alone on the right of article pages). */
.lang { display: flex; align-items: center; gap: 8px; font-family: var(--f-label); font-size: 12px; letter-spacing: .12em; line-height: 1; white-space: nowrap; }
.nav__links + .lang { margin-left: -8px; }
.lang__on { color: var(--cream); }
.lang__sep { color: var(--cream-dim); opacity: .45; }
.lang__to { color: var(--cream-dim); padding: 12px 4px; margin: -12px -4px; transition: color .3s; }   /* finger-sized target */
.lang__to:hover { color: var(--gold-hi); }
@media (max-width: 900px) {
  .nav { gap: 18px; }
  .lang, .nav__links + .lang { margin-left: auto; font-size: 13px; }
  .lang ~ .nav__burger { margin-left: 0; }
}

@media (max-width: 700px) {
  .member { grid-template-columns: 1fr; max-width: 360px; }
  .news__feature { grid-template-columns: 1fr; }
  .about__ways { grid-template-columns: 1fr; gap: 30px; }
  .about .facts { grid-template-columns: 1fr 1fr; }
  .about .member { max-width: 360px; }
}
