/* GLN · 12 garden — "The cool of a garden wall"
   Whitewash, roof-tile grey, ink, jade; one cinnabar seal. */

@font-face {
  font-family: "Bellefair";
  src: url("fonts/bellefair-latin-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  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: "Albert Sans";
  src: url("fonts/albert-sans-latin-var.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
  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: "Noto Serif SC GLN";
  src: url("fonts/noto-serif-sc-300-subset.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
  unicode-range: U+51B0, U+51C9, U+6696, U+6708, U+6D1E, U+7EB9, U+88C2, U+95E8, U+9759;
}
/* Chinese (loaded only when the page is in Chinese): Noto Serif SC for display, Noto Sans SC for text,
   subset to the characters in i18n.js */
@font-face {
  font-family: "GLN Serif SC";
  src: url("fonts/noto-serif-sc-400.woff2") format("woff2");
  font-weight: 300 500; font-style: normal; font-display: swap;
  unicode-range: U+2E80-2FFF, U+3000-303F, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF, U+2014, U+2018-201D, U+2026;
}
@font-face {
  font-family: "GLN Sans SC";
  src: url("fonts/noto-sans-sc-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+2E80-2FFF, U+3000-303F, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF, U+2014, U+2018-201D, U+2026;
}
@font-face {
  font-family: "GLN Sans SC";
  src: url("fonts/noto-sans-sc-500.woff2") format("woff2");
  font-weight: 500 600; font-style: normal; font-display: swap;
  unicode-range: U+2E80-2FFF, U+3000-303F, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF, U+2014, U+2018-201D, U+2026;
}
@font-face {
  font-family: "GLN Sans SC Fallback"; src: local("PingFang SC"), local("Microsoft YaHei"), local("Hiragino Sans GB"), local("Source Han Sans SC");
  size-adjust: 100%; ascent-override: 88%; descent-override: 22%; line-gap-override: 0%;
  unicode-range: U+2E80-2FFF, U+3000-303F, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF;
}
/* size-matched local fallbacks, so a late font does not reflow the page */
@font-face {
  font-family: "Bellefair Fallback"; src: local("Times New Roman");
  size-adjust: 92.4%; ascent-override: 94.2%; descent-override: 30.3%; line-gap-override: 0%;
}
@font-face {
  font-family: "Albert Sans Fallback"; src: local("Arial");
  size-adjust: 103.5%; ascent-override: 91.8%; descent-override: 24.2%; line-gap-override: 0%;
}

:root {
  --wash: #F2F1EC;
  --wash-2: #E8E6DF;
  --wash-3: #D9D7CF;
  --tile: #4A4E52;
  --ink: #1C1C1A;
  --jade: #5E7D6A;
  --seal: #B23A2A;
  --stone: #8F908B;

  /* 1px up to 1440, growing to 1.5px at 2560 (layout, display type) */
  --u: clamp(1px, calc(1px + (100vw - 1440px) / 2240), 1.5px);
  /* 1px up to 1440, growing to 1.28px at 2560 (running text) */
  --t: clamp(1px, calc(1px + (100vw - 1440px) / 4000), 1.28px);
  --pad: clamp(20px, 5.5vw, calc(96 * var(--u)));
  --gap: clamp(16px, 2.2vw, calc(32 * var(--u)));

  --display: "Bellefair", "Bellefair Fallback", "Times New Roman", serif;
  --text: "Albert Sans", "Albert Sans Fallback", Arial, sans-serif;
  --zh: "Noto Serif SC GLN", "Songti SC", "STSong", "SimSun", serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--wash) url("img/plaster-texture.jpg") repeat;
  background-size: 360px 360px;
  color: var(--ink);
  font-family: var(--text);
  font-size: calc(17 * var(--t));
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.zh, :not(html)[lang^="zh"] { font-family: var(--zh); font-weight: 300; }

:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; }
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--wash);
  transform: translateY(-150%); transition: transform .2s;
}
.skip:focus { transform: none; }

.wrap { padding-inline: var(--pad); }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: calc(14 * var(--u)) calc(26 * var(--u));
  background: var(--ink); color: var(--wash);
  font: 500 calc(16 * var(--t))/1.2 var(--text);
  letter-spacing: .01em;
  text-decoration: none;
  border: 0; border-radius: 2px; cursor: pointer;
  transition: background-color .35s var(--ease);
}
.btn:hover { background: var(--tile); }
.btn--small { min-height: 44px; padding: calc(10 * var(--u)) calc(20 * var(--u)); font-size: calc(15 * var(--t)); }
.link {
  display: inline-flex; align-items: center; min-height: 48px;
  font-weight: 500; font-size: calc(16 * var(--t));
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .35em;
  text-decoration-color: var(--jade);
  transition: text-underline-offset .35s var(--ease);
}
.link:hover { text-underline-offset: .5em; }

/* ---------- the seal (only use of cinnabar) ---------- */
.seal {
  --s: calc(46 * var(--u));
  position: relative; flex: none;
  display: grid; place-items: center;
  width: max(44px, var(--s)); height: max(44px, var(--s));
  background: var(--seal); color: var(--wash);
  text-decoration: none;
  border-radius: 3px 2px 3px 2px;
}
.seal::after {
  content: ""; position: absolute; inset: 3px;
  border: 1px solid rgba(242, 241, 236, .55); border-radius: 2px;
}
.seal span { font: 400 calc(17 * var(--u))/1 var(--display); letter-spacing: .08em; padding-left: .08em; }

/* ---------- header ---------- */
.head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: calc(40 * var(--u));
  height: calc(78 * var(--u)); min-height: 64px;
  padding-inline: var(--pad);
  transition: transform .6s var(--ease), background-color .5s var(--ease), box-shadow .5s var(--ease);
}
.head.is-solid {
  background: rgba(242, 241, 236, .93);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(74, 78, 82, .14);
}
.head.is-hidden { transform: translateY(-100%); }
.nav { display: flex; align-items: center; gap: calc(40 * var(--u)); margin-left: auto; }
.nav__list { display: flex; gap: calc(34 * var(--u)); }
.nav__list a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: calc(15.5 * var(--t)); font-weight: 500; text-decoration: none;
  background: linear-gradient(var(--jade), var(--jade)) 0 calc(100% - 9px) / 0 1px no-repeat;
  transition: background-size .4s var(--ease);
}
.nav__list a:hover { background-size: 100% 1px; }
.menu-btn { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 620px;
  display: grid; grid-template-rows: 1fr auto;
  overflow: hidden;
  background: #CDD6D9;
}
.hero__media { position: absolute; inset: 0 0 calc(84 * var(--u)) 0; overflow: hidden; }
.hero__media picture, .hero__img { width: 100%; height: 100%; }
.hero__img { object-fit: cover; object-position: 62% 4%; }
@media (min-aspect-ratio: 17/10) { .hero__img { object-position: 62% 22%; } }
@media (min-aspect-ratio: 19/10) { .hero__img { object-position: 62% 40%; } }
.hero__inner {
  position: relative; z-index: 2;
  align-self: start;
  padding-top: max(15vh, calc(124 * var(--u)));
  max-width: calc(1000 * var(--u));
}
.hero__title {
  font-size: clamp(44px, 5.5vw, calc(80 * var(--u)));
  line-height: .98;
  letter-spacing: -0.012em;
  margin-bottom: calc(26 * var(--u));
}
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .ln > span { display: block; }
.hero__lede { max-width: 33em; font-size: calc(18.5 * var(--t)); line-height: 1.55; color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px calc(30 * var(--u)); margin-top: calc(26 * var(--u)); }
.hero__vert {
  position: absolute; z-index: 2; right: var(--pad); top: max(15vh, calc(124 * var(--u)));
  margin: 0;
  writing-mode: vertical-rl;
  font-size: calc(14.5 * var(--t)); letter-spacing: .12em; color: var(--tile);
}
.hero__points {
  position: relative; z-index: 2;
  grid-row: 2;
  display: flex; justify-content: space-between; gap: 12px calc(40 * var(--u));
  height: calc(84 * var(--u)); min-height: 64px;
  align-items: center;
  padding-inline: var(--pad);
  background: var(--wash) url("img/plaster-texture.jpg") repeat; background-size: 360px 360px;
  font-size: calc(16 * var(--t)); font-weight: 500;
}
.hero__points li { display: flex; align-items: center; gap: calc(14 * var(--u)); }
.hero__points li::before {
  content: ""; width: calc(22 * var(--u)); height: 1px; background: var(--jade);
}

/* intro — CSS keyframes, started from the inline .intro class (no CDN wait) */
@keyframes hero-photo { from { opacity: 0; transform: scale(1.045); } to { opacity: 1; transform: none; } }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes stamp { from { opacity: 0; transform: scale(1.18) rotate(-4deg); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }

.js.motion .hero__img { animation: hero-photo 1.5s var(--ease) both; }
.js.motion .hero__title .ln > span { transform: translateY(105%); }
.js.motion .hero__lede, .js.motion .hero__actions, .js.motion .hero__points li, .js.motion .hero__vert { opacity: 0; }
.js.motion .head .nav, .js.motion .head .menu-btn { opacity: 0; }
.js.motion .head .seal { opacity: 0; }
.js.motion.intro .hero__title .ln > span { animation: rise 1s var(--ease) both; }
.js.motion.intro .hero__title .ln:nth-child(2) > span { animation-delay: .09s; }
.js.motion.intro .hero__title .ln:nth-child(3) > span { animation-delay: .18s; }
.js.motion.intro .hero__lede { animation: fade-up .9s .32s var(--ease) both; }
.js.motion.intro .hero__actions { animation: fade-up .9s .42s var(--ease) both; }
.js.motion.intro .hero__points li { animation: fade .9s .5s var(--ease) both; }
.js.motion.intro .hero__points li:nth-child(2) { animation-delay: .58s; }
.js.motion.intro .hero__points li:nth-child(3) { animation-delay: .66s; }
.js.motion.intro .hero__vert { animation: fade 1.2s .5s var(--ease) both; }
.js.motion.intro .head .nav, .js.motion.intro .head .menu-btn { animation: fade .8s .2s var(--ease) both; }
.js.motion.intro .head .seal { animation: stamp .55s .72s cubic-bezier(.3, .7, .2, 1) both; }

/* ---------- shared: vertical labels, glyphs ---------- */
.vlabel {
  writing-mode: vertical-rl;
  margin: 0;
  font-size: calc(14.5 * var(--t)); letter-spacing: .12em; color: var(--tile);
}
.glyph { display: flex; align-items: flex-end; gap: calc(14 * var(--u)); }
.glyph__zh {
  font-family: var(--zh); font-weight: 300;
  font-size: clamp(120px, 14vw, calc(210 * var(--u)));
  line-height: .9; color: var(--tile);
}
.glyph__en { font-family: var(--display); font-size: calc(26 * var(--u)); line-height: 1; padding-bottom: .5em; color: var(--tile); }

/* ---------- section: walls that keep the summer out ---------- */
.wall { position: relative; padding-block: calc(190 * var(--u)) calc(150 * var(--u)); overflow: hidden; }
.wall__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  align-items: start;
}
.wall__vlabel { grid-column: 1; justify-self: start; padding-top: .4em; }
.wall__text { grid-column: 2 / span 5; max-width: 34em; }
.wall__text h2, .how__head h2, .seasons__head h2, .visit__text h2 {
  font-size: clamp(36px, 4.3vw, calc(62 * var(--u)));
  line-height: 1.04;
  margin-bottom: calc(34 * var(--u));
  max-width: 11em;
}
.wall__text p { font-size: calc(18 * var(--t)); }
.lattice { grid-column: 7 / span 6; margin-top: calc(110 * var(--u)); }
.lattice__frame { position: relative; aspect-ratio: 1000 / 640; }
.lattice__view {
  position: absolute; left: 3.4%; right: 3.4%; top: 5.3%; bottom: 5.3%;
  overflow: hidden; background: #DDE3D8;
}
.lattice__view::after { /* depth of the wall opening */
  content: ""; position: absolute; inset: 0;
  box-shadow: inset calc(10 * var(--u)) calc(12 * var(--u)) calc(22 * var(--u)) rgba(28, 28, 26, .32);
}
.lattice__view img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.lattice__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lattice__bars {
  fill: none;
  stroke: var(--bar-stroke, var(--tile));
  stroke-width: var(--bar-w, 9);
  stroke-linecap: square;
}
.lattice__rim { fill: none; stroke: var(--tile); stroke-width: 28; stroke-linejoin: miter; }
.lattice__fillet { fill: none; stroke: #6A6E71; stroke-width: 6; }
.lattice figcaption, .pano figcaption, .drawing figcaption, .visit__gate figcaption {
  margin-top: calc(18 * var(--u));
  font-size: calc(14 * var(--t)); line-height: 1.5; color: var(--tile);
  max-width: 40em;
}
.lattice figcaption .zh { margin-right: .6em; letter-spacing: .1em; color: var(--ink); }

.wall__shadow {
  position: absolute; z-index: 0; pointer-events: none;
  left: -14%; top: 8%; width: 78%; height: 56%;
  opacity: .085;
  will-change: transform;
}
.wall__shadow-cast { width: 100%; height: 100%; transform: skewX(-22deg) rotate(-4deg); filter: blur(calc(7 * var(--u))); }
.wall__shadow svg { width: 100%; height: 100%; overflow: visible; --bar-stroke: var(--ink); --bar-w: 15; }

.pano { margin-top: calc(170 * var(--u)); }
.pano__img { position: relative; aspect-ratio: 2.35 / 1; overflow: hidden; }
.pano__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }

/* ink veil (created by JS) */
.ink { position: relative; }
.ink__veil { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.felt {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  align-items: end;
  margin-top: calc(170 * var(--u));
}
.felt__glyph { grid-column: 1 / span 3; }
.felt__text { grid-column: 4 / span 4; }
.felt__text h3 { font-size: clamp(26px, 2.5vw, calc(36 * var(--u))); line-height: 1.12; margin-bottom: calc(22 * var(--u)); }
.scale { grid-column: 9 / span 4; }
.scale__felt { display: flex; align-items: baseline; gap: .35em; margin-bottom: calc(26 * var(--u)); }
.scale__num { font: 400 clamp(64px, 7vw, calc(112 * var(--u)))/0.9 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.scale__unit { font-family: var(--display); font-size: calc(24 * var(--u)); color: var(--tile); }
.scale__track {
  position: relative; height: calc(96 * var(--u)); min-height: 84px;
  margin-inline: 6px;
  background: linear-gradient(var(--tile), var(--tile)) 0 50% / 100% 1px no-repeat;
}
.scale__tick, .scale__mark { position: absolute; top: 50%; left: calc((var(--v) - 20) * 10%); }
.scale__tick {
  transform: translate(-50%, 10px);
  font-size: calc(13.5 * var(--t)); color: var(--tile); line-height: 1;
  padding-top: 8px;
}
.scale__tick::before { content: ""; position: absolute; left: 50%; top: -10px; width: 1px; height: 9px; background: var(--tile); }
.scale__mark { width: 0; height: 0; }
.scale__mark::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: calc(13 * var(--u)); height: calc(13 * var(--u)); min-width: 11px; min-height: 11px;
  border-radius: 50%; transform: translate(-50%, -50%);
}
.scale__mark--wall::before { background: var(--jade); }
.scale__mark--air::before { background: var(--wash); border: 2px solid var(--tile); }
.scale__mark--felt::before { width: 2px; min-width: 2px; height: calc(40 * var(--u)); min-height: 34px; border-radius: 0; background: var(--ink); }
.scale__label {
  position: absolute; bottom: calc(16 * var(--u)); left: 0; transform: translateX(-50%);
  white-space: nowrap; font-size: calc(14 * var(--t)); font-weight: 500; line-height: 1;
}
.scale__mark--wall .scale__label { bottom: auto; top: calc(38 * var(--u)); color: #3F5A49; }
.scale figcaption { margin-top: calc(22 * var(--u)); font-size: calc(14 * var(--t)); color: var(--tile); }

/* ---------- signature: the moon gate ---------- */
.gate {
  /* static state = the start of the walk (k = 1); JS rewrites these in px while scrolling */
  --cx: 58%; --cy0: 55%; --cy: var(--cy0); --vx: 58%; --vy: 45%;
  --R0: min(30vh, 26vw);
  --rn: var(--R0);
  --rf: calc(var(--R0) * .893);
  --cfx: var(--cx); --cfy: calc(var(--vy) + (var(--cy0) - var(--vy)) * .893);
  --trim: calc(var(--rn) * .075);
  --k: 1;
  --yp0: calc(var(--cy) + var(--rn) * .8); --yp1: calc(var(--cy) + var(--rn) * .92);
  --yfs: calc(var(--vy) + (var(--cy0) + var(--R0) * .92 - var(--vy)) * .893);
  position: relative;
  background: var(--wash);
}
.gate__stage { position: relative; }
.gate__scene { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.gate__view, .gate__jamb, .gate__wall, .gate__face { position: absolute; inset: 0; }
.gate__view { inset: -12%; transform-origin: var(--vox, 50%) var(--voy, 45%); transform: scale(var(--vs, .84)); will-change: transform; }
.gate__view picture, .gate__view img { width: 100%; height: 100%; }
.gate__view img { object-fit: cover; object-position: 42% 45%; }
.gate__jamb {
  background:
    linear-gradient(to bottom, transparent var(--yfs), #8A8B85 var(--yfs), #A7A8A1),
    linear-gradient(to bottom, rgba(28, 28, 26, .30), rgba(28, 28, 26, .06) 55%, rgba(28, 28, 26, 0)),
    linear-gradient(100deg, rgba(28, 28, 26, .10), rgba(255, 255, 255, .10)),
    radial-gradient(circle at var(--cfx) var(--cfy), #6E6F6A var(--rf), #9E9E98 calc(var(--rf) + (var(--rn) - var(--rf)) * .55), #BAB9B2 var(--rn));
  -webkit-mask: radial-gradient(circle at var(--cfx) var(--cfy), transparent calc(var(--rf) - .5px), #000 calc(var(--rf) + .5px)), linear-gradient(to bottom, transparent var(--yfs), #000 var(--yfs));
          mask: radial-gradient(circle at var(--cfx) var(--cfy), transparent calc(var(--rf) - .5px), #000 calc(var(--rf) + .5px)), linear-gradient(to bottom, transparent var(--yfs), #000 var(--yfs));
}
.gate__wall {
  background:
    radial-gradient(circle at var(--cx) var(--cy),
      #7E7F7A calc(var(--rn) - 1px), #A2A39D calc(var(--rn) + var(--trim) * .25),
      #9A9B95 calc(var(--rn) + var(--trim) * .8), #B9B9B2 calc(var(--rn) + var(--trim)),
      transparent calc(var(--rn) + var(--trim) + .5px)),
    linear-gradient(to bottom, transparent var(--yp0), #B7B7B0 var(--yp0), #A9AAA3 var(--yp1), transparent var(--yp1)),
    url("img/plaster-texture.jpg") 0 0 / 360px 360px,
    var(--wash);
  -webkit-mask: radial-gradient(circle at var(--cx) var(--cy), transparent calc(var(--rn) - .5px), #000 calc(var(--rn) + .5px));
          mask: radial-gradient(circle at var(--cx) var(--cy), transparent calc(var(--rn) - .5px), #000 calc(var(--rn) + .5px));
}
.gate__face { transform-origin: var(--vx) var(--vy); transform: scale(var(--k)); pointer-events: none; }
.gate__sky, .gate__coping, .gate__ground { position: absolute; left: -60%; right: -60%; }
.gate__sky {
  top: -60%; height: calc(60% + var(--sky-h, 7vh));
  background: linear-gradient(#CFD8DB, #DCE3E4 85%, #E2E6E4);
}
.gate__coping {
  --cw: calc(var(--R0) * .052);
  top: var(--sky-h, 7vh); height: calc(var(--R0) * .2);
  background:
    radial-gradient(circle at 50% 0, #3E4245 58%, transparent 61%) 0 100% / calc(var(--cw) * 2) calc(var(--cw) * 1.05) repeat-x,
    linear-gradient(#2F3234, #2F3234) 0 0 / 100% 24% no-repeat,
    repeating-linear-gradient(90deg, #5A5E62 0, #5A5E62 calc(var(--cw) * .62), #43474A calc(var(--cw) * .62), #43474A var(--cw)) 0 24% / 100% 52% no-repeat;
  box-shadow: 0 calc(var(--R0) * .03) calc(var(--R0) * .05) rgba(28, 28, 26, .18);
}
.gate__ground {
  top: calc(var(--cy0) + var(--R0) * .92); bottom: -80%;
  background:
    linear-gradient(#5F615D, #5F615D) 0 0 / 100% 2px no-repeat,
    linear-gradient(rgba(74, 78, 82, .24), rgba(74, 78, 82, 0) calc(var(--R0) * .1)) 0 0 / 100% 100% no-repeat,
    repeating-linear-gradient(90deg, transparent 0 calc(var(--R0) * .5), rgba(74, 78, 82, .14) calc(var(--R0) * .5) calc(var(--R0) * .5 + 1px)) 0 0 / 100% calc(var(--R0) * .12) repeat-x,
    linear-gradient(#B9B9B2, #CBCAC3 calc(var(--R0) * .3), #D6D5CE);
}
.gate__vlabel {
  position: absolute; z-index: 5; right: var(--pad); top: 50%; transform: translateY(-50%);
  margin: 0; writing-mode: vertical-rl;
  font-size: calc(14.5 * var(--t)); letter-spacing: .14em; color: var(--tile);
}
.gate__vlabel [lang] { letter-spacing: .3em; margin-bottom: .6em; color: var(--ink); }
.gate__text {
  position: absolute; z-index: 6; left: 0; top: 50%;
  transform: translateY(-50%);
  width: min(40%, calc(640 * var(--u)));
}
.gate__text h2 { font-size: clamp(36px, 4.3vw, calc(62 * var(--u))); line-height: 1.04; margin-bottom: calc(26 * var(--u)); }
.gate__text p { font-size: calc(18 * var(--t)); max-width: 26em; }
.gate__inside { padding: calc(110 * var(--u)) var(--pad); }
.gate__big { font: 400 clamp(32px, 3.6vw, calc(54 * var(--u)))/1.1 var(--display); max-width: 14em; margin: 0; }

/* the pinned walk-through: only with motion allowed and anime loaded */
.motion.anim .gate { height: 330vh; }
.motion.anim .gate__stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; }
.motion.anim .gate__scene { position: absolute; inset: 0; height: auto; min-height: 0; }
.motion.anim .gate__inside {
  position: absolute; z-index: 6; inset: 0;
  padding: 0;
  display: flex; align-items: flex-start; justify-content: flex-end;
  padding: max(20vh, calc(150 * var(--u))) var(--pad) 0;
  opacity: 0;
  pointer-events: none;
}
.motion.anim .gate__big { max-width: 11em; text-align: left; }

/* ---------- how GLN does it ---------- */
.how { padding-block: calc(170 * var(--u)) calc(160 * var(--u)); }
.how__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; }
.how__head h2 { grid-column: 1 / span 5; margin-bottom: 0; }
.how__lede { grid-column: 7 / span 6; font-size: calc(19 * var(--t)); line-height: 1.6; max-width: 34em; margin: 0; }
.how__grid {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  margin-top: calc(100 * var(--u)); align-items: center;
}
.drawing { grid-column: 1 / span 7; }
.drawing__sheet { position: relative; aspect-ratio: 1000 / 880; }
.drawing__svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke-linecap: butt; }
.drawing__svg path, .drawing__svg circle { vector-effect: non-scaling-stroke; }
.d-room { stroke: var(--tile); stroke-width: 1.25; }
.d-hatch { stroke: rgba(74, 78, 82, .45); stroke-width: 1; }
.d-wall { stroke: var(--tile); stroke-width: 1.5; }
.d-panel { stroke: var(--ink); stroke-width: 1.6; }
.d-fins { stroke: var(--ink); stroke-width: 1; }
.d-pipe { stroke: #4F6B5A; stroke-width: 3; }
.d-pipe circle { fill: var(--wash); stroke-width: 2; }
.d-dim { stroke: var(--tile); stroke-width: 1; }
.dl {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  transform: translate(-50%, -50%);
  font-size: calc(13.5 * var(--t)); line-height: 1.2; white-space: nowrap; color: var(--tile);
}
.dl--dim { background: var(--wash); padding: 2px 8px; color: var(--ink); font-weight: 500; }
.dl--v { writing-mode: vertical-rl; padding: 8px 2px; }
.dl--ceiling, .dl--floor { transform: translate(-100%, -50%); }
.dl--pipe { transform: translate(-100%, -50%); color: var(--jade); font-weight: 600; filter: brightness(.8); }
.dl--note { background: var(--wash); padding: 2px 6px; }
.drawing figcaption { margin-top: calc(26 * var(--u)); }

.facts { grid-column: 9 / span 4; }
.facts li { padding-block: calc(26 * var(--u)); border-top: 1px solid rgba(74, 78, 82, .28); }
.facts li:last-child { border-bottom: 1px solid rgba(74, 78, 82, .28); }
.facts h3 { font-size: clamp(22px, 1.9vw, calc(28 * var(--u))); line-height: 1.15; margin-bottom: calc(10 * var(--u)); }
.facts p { color: var(--tile); }

.spec {
  margin-top: calc(130 * var(--u));
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: calc(26 * var(--u));
  align-items: baseline;
}
.spec__title { grid-column: 1 / -1; font-size: clamp(24px, 2.2vw, calc(32 * var(--u))); line-height: 1.1; }
.spec__list {
  grid-column: 1 / -1; margin: 0;
  display: grid; grid-template-columns: 1.1fr 1fr .9fr .9fr 1.3fr; gap: calc(24 * var(--u)) var(--gap);
  padding-top: calc(26 * var(--u)); border-top: 1px solid rgba(74, 78, 82, .28);
}
.spec__list dt { font-size: calc(14 * var(--t)); color: var(--tile); margin-bottom: 6px; }
.spec__list dd { margin: 0; font: 400 clamp(22px, 1.9vw, calc(29 * var(--u)))/1.15 var(--display); }
.spec__note { grid-column: 1 / -1; font-size: calc(14 * var(--t)); color: var(--tile); }

.still {
  margin-top: calc(170 * var(--u));
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  align-items: center;
}
.still__photo { grid-column: 1 / span 7; }
.still__img { aspect-ratio: 1400 / 934; overflow: hidden; }
.still__img img { width: 100%; height: 100%; object-fit: cover; }
.still__text { grid-column: 9 / span 4; }
.still__text .glyph { margin-bottom: calc(34 * var(--u)); }
.still__text h3 { font-size: clamp(26px, 2.5vw, calc(36 * var(--u))); line-height: 1.12; margin-bottom: calc(20 * var(--u)); }
.still__text p { font-size: calc(18 * var(--t)); }

/* ---------- four seasons ---------- */
.seasons { padding-block: calc(150 * var(--u)) calc(180 * var(--u)); background: rgba(232, 230, 223, .55); }
.seasons__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; }
.seasons__head h2 { grid-column: 1 / span 5; margin-bottom: 0; }
.seasons__head p { grid-column: 6 / span 4; margin: 0; font-size: calc(18 * var(--t)); max-width: 30em; }
.seasons__head .glyph { grid-column: 11 / span 2; justify-self: end; }
.leaves {
  display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--gap);
  margin-top: calc(100 * var(--u));
  padding-inline: var(--pad);
}
.leaf:nth-child(even) { margin-top: calc(90 * var(--u)); }
.leaf__fig { position: relative; }
.leaf__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--wash-2); }
.leaf__img img { width: 100%; height: 100%; object-fit: cover; }
.leaf { position: relative; }
.leaf__name {
  position: absolute; top: 0; right: calc(12 * var(--u)); z-index: 2;
  writing-mode: vertical-rl;
  padding: calc(16 * var(--u)) calc(9 * var(--u));
  background: var(--wash);
  font-size: clamp(20px, 1.6vw, calc(24 * var(--u))); line-height: 1; letter-spacing: .06em;
}
.leaf p { margin-top: calc(22 * var(--u)); font-size: calc(16.5 * var(--t)); color: var(--ink); max-width: 22em; }

/* ---------- visit ---------- */
.visit { padding-block: calc(170 * var(--u)) calc(170 * var(--u)); }
.visit__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; }
.visit__gate { grid-column: 1 / span 6; position: sticky; top: calc(110 * var(--u)); }
.visit__circle { aspect-ratio: 1; overflow: hidden; clip-path: circle(var(--gr, 50%) at 50% 50%); }
.visit__circle picture, .visit__circle img { width: 100%; height: 100%; }
.visit__circle img { object-fit: cover; transform: scale(var(--gs, 1)); }
.visit__text { grid-column: 8 / span 5; }
.visit__lede { font-size: calc(18 * var(--t)); max-width: 30em; }
.visit__facts { margin: calc(40 * var(--u)) 0 0; display: grid; gap: calc(18 * var(--u)); }
.visit__facts div { display: grid; grid-template-columns: calc(150 * var(--u)) 1fr; gap: 16px; }
.visit__facts dt { color: var(--tile); font-size: calc(15 * var(--t)); padding-top: .15em; }
.visit__facts dd { margin: 0; }
.visit__facts a { text-decoration-color: var(--jade); text-underline-offset: .25em; display: inline-block; padding-block: 10px; margin-block: -10px; }

.form {
  margin-top: calc(64 * var(--u));
  display: grid; grid-template-columns: 1fr 1fr; gap: calc(8 * var(--u)) calc(28 * var(--u));
}
.form__title { grid-column: 1 / -1; font-size: clamp(26px, 2.5vw, calc(36 * var(--u))); margin-bottom: calc(18 * var(--u)); }
.field { display: grid; gap: 6px; align-content: start; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: calc(15 * var(--t)); font-weight: 500; }
.field__opt { color: var(--tile); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px;
  padding: 10px 2px;
  font: 400 calc(17 * var(--t))/1.4 var(--text); color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--tile); border-radius: 0;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #5F6266; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 28px; cursor: pointer;
  background: linear-gradient(45deg, transparent 50%, var(--tile) 50%) calc(100% - 12px) 55% / 6px 6px no-repeat,
              linear-gradient(-45deg, transparent 50%, var(--tile) 50%) calc(100% - 6px) 55% / 6px 6px no-repeat;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--jade); box-shadow: 0 2px 0 0 var(--jade); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; }
.field [aria-invalid="true"] { border-bottom-color: #8E2F22; }
.field__err { min-height: 1.4em; margin: 0; font-size: calc(14 * var(--t)); color: #8E2F22; }
.form__end { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px calc(28 * var(--u)); margin-top: calc(12 * var(--u)); }
.form__status { margin: 0; font-size: calc(15 * var(--t)); max-width: 30em; }

/* ---------- footer ---------- */
.foot { position: relative; background: var(--tile); color: var(--wash); padding-bottom: calc(60 * var(--u)); }
.foot__coping {
  height: calc(34 * var(--u));
  margin-top: calc(-34 * var(--u));
  background:
    radial-gradient(circle at 50% 100%, var(--tile) calc(13 * var(--u)), transparent calc(13.6 * var(--u))) 0 calc(4 * var(--u)) / calc(30 * var(--u)) calc(15 * var(--u)) repeat-x,
    linear-gradient(transparent calc(19 * var(--u)), var(--tile) calc(19 * var(--u)));
  transform: translateY(1px);
}
.foot__grid {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 32px;
  padding-top: calc(70 * var(--u));
}
.foot__brand { grid-column: 1 / span 4; display: flex; gap: calc(22 * var(--u)); align-items: center; }
.foot__brand p { margin: 0; max-width: 18em; font-size: calc(15 * var(--t)); line-height: 1.5; }
.seal--foot { outline-color: var(--wash); }
.foot__nav { grid-column: 6 / span 3; display: flex; flex-wrap: wrap; gap: 0 calc(26 * var(--u)); align-content: start; }
.foot__nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: calc(15 * var(--t)); text-decoration: none; }
.foot__nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.foot__small { grid-column: 9 / span 4; font-size: calc(14 * var(--t)); line-height: 1.55; color: #E3E2DC; }
.foot__small a { color: var(--wash); text-underline-offset: .25em; display: inline-block; padding-block: 8px; }
.foot :focus-visible { outline-color: var(--wash); }

/* ---------- hide-before-reveal (only once the motion library is running) ---------- */
.motion.anim .lattice__view { opacity: 0; }
.motion.anim .wall__shadow { opacity: 0; }
.motion.anim .dl { opacity: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .wall__text { grid-column: 2 / span 6; }
  .lattice { grid-column: 3 / span 10; margin-top: calc(80 * var(--u)); }
  .felt__glyph { grid-column: 1 / span 3; }
  .felt__text { grid-column: 4 / span 9; }
  .scale { grid-column: 4 / span 9; margin-top: 48px; }
  .how__head h2, .how__lede { grid-column: 1 / -1; }
  .how__lede { margin-top: 28px; }
  .drawing { grid-column: 1 / -1; max-width: 760px; }
  .facts { grid-column: 1 / -1; margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); }
  .facts li:nth-last-child(2) { border-bottom: 1px solid rgba(74, 78, 82, .28); }
  .spec__title, .spec__list, .spec__note { grid-column: 1 / -1; }
  .spec__list { grid-template-columns: repeat(3, 1fr); }
  .still__photo { grid-column: 1 / span 12; }
  .still__text { grid-column: 1 / span 10; margin-top: 48px; }
  .seasons__head h2 { grid-column: 1 / span 8; }
  .seasons__head p { grid-column: 1 / span 8; margin-top: 24px; }
  .seasons__head .glyph { grid-column: 10 / span 3; grid-row: 1 / span 2; }
  .visit__gate { grid-column: 1 / span 12; position: relative; top: 0; max-width: 560px; }
  .visit__text { grid-column: 1 / span 12; margin-top: 56px; }
  .foot__brand { grid-column: 1 / -1; }
  .foot__nav { grid-column: 1 / span 6; }
  .foot__small { grid-column: 7 / span 6; }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .gate { --cx: 62%; --vx: 62%; --R0: min(30vh, 23vw); }
  .gate__text { width: 37%; }
  .motion.anim .gate__inside { padding: 0 var(--pad) 10vh; align-items: flex-end; justify-content: flex-start; }
  .motion.anim .gate__big { padding: 22px 26px 24px; background: rgba(242, 241, 236, .94); max-width: 13em; }
}

/* portrait tablets: headline on the sky, photo below it (same structure as phones) */
@media (min-width: 701px) and (max-aspect-ratio: 5/4) {
  .hero {
    height: auto; min-height: 0;
    grid-template-rows: auto clamp(300px, 40svh, 520px) auto auto auto;
    background: linear-gradient(#BCC9CF 0, #BCC9CF 60%, var(--wash) 60%);
  }
  .hero__media {
    position: relative; inset: auto; grid-row: 2; grid-column: 1; margin-top: -60px;
    -webkit-mask-image: linear-gradient(transparent, #000 90px);
            mask-image: linear-gradient(transparent, #000 90px);
  }
  .hero__img { object-position: 60% 32%; }
  .hero__inner { display: contents; }
  .hero__title { grid-row: 1; grid-column: 1; position: relative; z-index: 2; padding: 130px var(--pad) 0; margin: 0; }
  .hero__lede { grid-row: 3; grid-column: 1; margin: 0; padding: 34px var(--pad) 0; }
  .hero__actions { grid-row: 4; grid-column: 1; margin: 0; padding: 20px var(--pad) 10px; }
  .hero__points { grid-row: 5; }
  .hero__vert { top: 130px; }
}

@media (max-width: 860px) {
  .head { gap: 16px; }
  .js .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto; min-height: 44px; min-width: 64px; padding: 0 14px;
    font: 500 15px/1 var(--text); color: var(--ink);
    background: rgba(242, 241, 236, .82); border: 1px solid rgba(74, 78, 82, .35); border-radius: 2px; cursor: pointer;
  }
  .js .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 36px;
    padding: 100px var(--pad) 60px;
    background: var(--wash) url("img/plaster-texture.jpg"); background-size: 360px 360px;
    visibility: hidden; opacity: 0;
    transition: opacity .45s var(--ease), visibility 0s .45s;
  }
  .js .head.menu-open .nav { visibility: visible; opacity: 1; transition: opacity .45s var(--ease), visibility 0s; }
  .js .nav__list { flex-direction: column; gap: 8px; }
  .js .nav__list a { font: 400 36px/1.1 var(--display); }
  .head.menu-open { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav__list { flex-wrap: wrap; gap: 4px 18px; }
  html:not(.js) .head { position: absolute; flex-wrap: wrap; height: auto; padding-block: 10px; }
  html:not(.js) .nav { gap: 14px; flex-wrap: wrap; }
}

@media (max-width: 700px) {
  :root { --gap: 16px; }
  body { font-size: 17px; }
  /* phone hero: photo with the title on the sky, then the text on the wall colour below */
  .hero {
    height: auto; min-height: 0;
    grid-template-rows: auto clamp(230px, 36svh, 340px) auto auto auto;
    background: linear-gradient(#BCC9CF 0, #BCC9CF 60%, var(--wash) 60%);
  }
  .hero__media {
    position: relative; inset: auto; grid-row: 2; grid-column: 1;
    margin-top: -40px;
    -webkit-mask-image: linear-gradient(transparent, #000 60px);
            mask-image: linear-gradient(transparent, #000 60px);
  }
  .hero__img { object-position: 52% 30%; }
  .hero__inner { display: contents; }
  .hero__title {
    grid-row: 1; grid-column: 1; position: relative; z-index: 2;
    padding: 100px var(--pad) 0; margin: 0;
    font-size: clamp(40px, 11.6vw, 52px);
  }
  .hero__lede { grid-row: 3; grid-column: 1; margin: 0; padding: 26px var(--pad) 0; font-size: 17px; }
  .hero__actions { grid-row: 4; grid-column: 1; margin: 0; padding: 14px var(--pad) 4px; }
  .hero__vert { display: none; }
  .hero__points {
    grid-row: 5; height: auto; min-height: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding-block: 14px 30px;
    font-size: 15px;
  }

  .wall { padding-block: 110px 90px; }
  .wall__grid, .felt, .how__head, .how__grid, .spec, .still, .seasons__head, .visit__grid, .foot__grid { grid-template-columns: 1fr; }
  .wall__vlabel { display: none; }
  .wall__text, .lattice, .felt__glyph, .felt__text, .scale, .drawing, .facts, .spec__title, .spec__list, .spec__note,
  .still__photo, .still__text, .seasons__head h2, .seasons__head p, .seasons__head .glyph, .visit__gate, .visit__text,
  .foot__brand, .foot__nav, .foot__small { grid-column: 1; grid-row: auto; }
  .lattice { margin-top: 56px; }
  .wall__shadow { left: -40%; width: 160%; top: 12%; height: 40%; }
  .pano { margin-top: 96px; }
  .pano__img { aspect-ratio: 4 / 3; }
  .felt { margin-top: 96px; }
  .felt__text { margin-top: 12px; }
  .scale { margin-top: 44px; }
  .glyph__zh { font-size: 112px; }

  .gate { --cx: 50%; --vx: 50%; --cy: 60%; --vy: 50%; --R0: 40vw; }
  .gate__text { top: 96px; transform: none; width: 100%; }
  .gate__text h2 { font-size: 36px; margin-bottom: 14px; }
  .gate__text p { font-size: 17px; }
  .gate__vlabel { display: none; }
  .motion.anim .gate__inside { padding: 0 var(--pad) 9vh; align-items: flex-end; justify-content: flex-start; }
  .motion.anim .gate__big { padding: 18px 20px 20px; background: rgba(242, 241, 236, .94); }
  .gate__big { font-size: 30px; }

  .how { padding-block: 110px 100px; }
  .how__grid { margin-top: 56px; }
  .facts { display: block; margin-top: 44px; }
  .facts li:nth-last-child(2) { border-bottom: 0; }
  .spec { margin-top: 80px; }
  .spec__list { grid-template-columns: 1fr 1fr; }
  .still { margin-top: 96px; }
  .still__text { margin-top: 36px; }
  .dl { font-size: 12.5px; }
  .dl--pipe { white-space: normal; width: 7.5em; text-align: right; }

  .seasons { padding-block: 100px 110px; }
  .seasons__head .glyph { justify-self: start; margin-top: 28px; }
  .leaves {
    display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
    padding-bottom: 14px; margin-top: 56px;
    scrollbar-width: thin;
  }
  .leaf { flex: 0 0 74%; scroll-snap-align: start; }
  .leaf:nth-child(even) { margin-top: 0; }
  .leaf:last-child { margin-right: var(--pad); }

  .visit { padding-block: 110px 110px; }
  .visit__text { margin-top: 44px; }
  .visit__facts div { grid-template-columns: 1fr; gap: 2px; }
  .form { grid-template-columns: 1fr; }
  .foot__grid { padding-top: 56px; }
}

/* reduced motion: a still, stacked page */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- language switch (EN / 中文) ---------- */
.lang { display: inline-flex; align-items: center; flex: none; margin-left: calc(-12 * var(--u)); }
.lang__b {
  min-height: 44px; min-width: 44px; padding: 0 6px;
  background: none; border: 0; cursor: pointer; color: var(--tile);
  font: 500 calc(15 * var(--t))/1 var(--text); letter-spacing: 0;
  text-decoration: none;
  background-image: linear-gradient(var(--jade), var(--jade)); background-repeat: no-repeat;
  background-position: 50% calc(100% - 9px); background-size: 0 1px;
  transition: color .3s var(--ease), background-size .4s var(--ease);
}
.lang__b--zh { font-family: "GLN Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif; font-weight: 500; }
.lang__b:hover { color: var(--ink); }
.lang__b[aria-pressed="true"] { color: var(--ink); background-size: calc(100% - 12px) 1px; }
.lang__sep { color: rgba(74, 78, 82, .45); font-size: calc(14 * var(--t)); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.js.motion .head .lang { opacity: 0; }
.js.motion.intro .head .lang { animation: fade .8s .2s var(--ease) both; }
@media (max-width: 860px) {
  .lang { margin-left: auto; }
  .js .menu-btn { margin-left: 0; }
}
@media (max-width: 380px) { .lang__b { padding: 0 3px; } }

/* ---------- Chinese typography ---------- */
html:lang(zh) {
  --text: "Albert Sans", "GLN Sans SC", "GLN Sans SC Fallback", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Bellefair", "GLN Serif SC", "Songti SC", "STSong", "SimSun", serif;
}
html:lang(zh) body { line-height: 1.85; line-break: strict; }
html:lang(zh) h1, html:lang(zh) h2, html:lang(zh) h3 { letter-spacing: 0; text-wrap: balance; }
html:lang(zh) p, html:lang(zh) li, html:lang(zh) dd, html:lang(zh) figcaption { letter-spacing: 0; text-wrap: pretty; }
html:lang(zh) .hero__title { font-size: clamp(34px, 4.1vw, calc(60 * var(--u))); line-height: 1.3; }
html:lang(zh) .hero__title .ln { padding-bottom: .12em; margin-bottom: -.12em; }
html:lang(zh) .hero__lede { line-height: 1.85; max-width: 26em; }
html:lang(zh) .wall__text h2, html:lang(zh) .how__head h2, html:lang(zh) .seasons__head h2, html:lang(zh) .visit__text h2 {
  font-size: clamp(30px, 3.3vw, calc(48 * var(--u))); line-height: 1.3; max-width: 12em;
}
html:lang(zh) .gate__text h2 { font-size: clamp(30px, 3.3vw, calc(48 * var(--u))); line-height: 1.3; }
html:lang(zh) .gate__big { font-size: clamp(26px, 2.8vw, calc(42 * var(--u))); line-height: 1.4; max-width: 13em; }
html:lang(zh) .felt__text h3, html:lang(zh) .still__text h3, html:lang(zh) .form__title { font-size: clamp(22px, 2vw, calc(29 * var(--u))); line-height: 1.35; }
html:lang(zh) .facts h3 { font-size: clamp(19px, 1.55vw, calc(23 * var(--u))); line-height: 1.4; }
html:lang(zh) .spec__title { font-size: clamp(21px, 1.8vw, calc(26 * var(--u))); line-height: 1.35; }
html:lang(zh) .spec__list dd { font-size: clamp(19px, 1.6vw, calc(24 * var(--u))); line-height: 1.35; }
html:lang(zh) .glyph__en { font-size: calc(21 * var(--u)); }
html:lang(zh) .scale__unit { font-size: calc(20 * var(--u)); }
html:lang(zh) .hero__vert, html:lang(zh) .vlabel, html:lang(zh) .gate__vlabel { letter-spacing: .2em; }
html:lang(zh) .gate__vlabel [lang] { letter-spacing: .3em; margin-bottom: 0; }
html:lang(zh) .btn, html:lang(zh) .nav__list a { letter-spacing: 0; }
@media (max-width: 860px) { html.js:lang(zh) .nav__list a { font-size: 30px; line-height: 1.4; } }
@media (max-width: 700px) {
  html:lang(zh) .hero__title { font-size: clamp(32px, 9vw, 40px); }
  html:lang(zh) .gate__text h2 { font-size: 28px; }
  html:lang(zh) .gate__big { font-size: 24px; }
}
html:lang(zh) .lattice figcaption .zh { margin-right: .15em; letter-spacing: 0; }
