/* About page: a photo-led story. Every section has its own layout; photos carry it, type sits on or beside them.
   about.js adds to <html>:
     ab-on  motion allowed: entrances (.rise, .wipe, .wipe-r get .in), parallax ([data-par] gets --py), hero and band scrubs
     pins   also wide (>= 760px): the founding-story photos swap as each paragraph passes, and the "where we started"
            reel pins and runs sideways
   Without them (phones, reduced motion, no script) every section is a plain stack with everything visible.
   Sections keep the class .scene so the page-wide reveals in site.js leave them alone. */

body.page-about main { padding-top: 0; gap: 0; }
body.page-about main > section.scene { content-visibility: visible; }

.scene { --gut: max(clamp(20px, 4.5vw, 56px), calc((100vw - var(--max)) / 2 + clamp(20px, 4.5vw, 56px)));
  --ez: cubic-bezier(.16, 1, .3, 1); --nav: 64px; --scrim: 14, 22, 40;
  position: relative; width: 100vw; margin-left: calc(50% - 50vw); background: var(--bg); color: var(--ink); }
.scene .display { text-wrap-style: balance; }
.scene figure { margin: 0; }
.scene.deep { background: var(--deep); color: var(--deep-ink); }
.scene.deep .muted, .scene.deep .lede { color: var(--deep-muted); }
.scene.deep .eyebrow { color: var(--accent-200); }
.ph { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--line-2); }
.ph img, .ph video { display: block; width: 100%; height: 100%; object-fit: cover; }
.deep .ph { background: rgba(255,255,255,.06); }
.display-mid { font-size: clamp(36px, 5vw, 64px); }

/* Entrances (html.ab-on only) */
.rise, .wipe, .wipe-r { --d: calc(var(--i, 0) * .1s); }
.rise { transition: opacity .9s var(--ez) var(--d), transform .9s var(--ez) var(--d); }
.ab-on .rise:not(.in) { opacity: 0; transform: translateY(28px); }
.wipe, .wipe-r { transition: clip-path 1.3s var(--ez) var(--d); }
.wipe img, .wipe-r img, .wipe video { transition: scale 1.6s var(--ez) var(--d); }
.ab-on .wipe:not(.in) { clip-path: inset(100% 0 0 0 round var(--r-lg)); }
.ab-on .wipe-r:not(.in) { clip-path: inset(0 0 0 100% round var(--r-lg)); }
.ab-on :is(.wipe, .wipe-r):not(.in) :is(img, video) { scale: 1.18; }
/* parallax: about.js writes --py (px) on [data-par]; the photo is oversized so its edges never show */
.ab-on [data-par] { transform: translate3d(0, var(--py, 0px), 0) scale(1.14); will-change: transform; }

/* 1. Hero: one full photo. It opens framed like the rest of the site and grows to the screen edges as you scroll. */
.ab-hero { --hp: 0; background: var(--bg); }
.hero-frame { position: relative; height: calc(100svh - var(--nav)); min-height: 540px; max-height: 1000px; overflow: hidden; background: var(--deep);
  --in: clamp(12px, 2.2vw, 28px);
  clip-path: inset(calc(var(--in) * (1 - var(--hp))) round calc(var(--r-lg) * (1 - var(--hp)))); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, rgba(var(--scrim), .72) 0%, rgba(var(--scrim), .35) 45%, rgba(var(--scrim), 0) 70%),
    linear-gradient(to top, rgba(var(--scrim), .9) 0%, rgba(var(--scrim), .55) 34%, rgba(var(--scrim), .05) 62%, rgba(var(--scrim), .25) 100%); }
.hero-copy { position: absolute; z-index: 1; left: var(--gut); right: var(--gut); bottom: clamp(36px, 8vh, 84px); color: var(--deep-ink);
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px; transform: translateY(calc(-60px * var(--hp))); }
.hero-copy .display { font-size: clamp(52px, 9.4vw, 132px); letter-spacing: -.05em; line-height: .96; }
.hero-copy .lede { color: rgba(245,240,230,.86); max-width: 26em; font-size: clamp(18px, 1.8vw, 23px); }
.hero-logo { width: clamp(120px, 13vw, 190px); margin-bottom: 4px; }
.hero-logo img { width: 100%; }
.ab-hero .logo-light { display: none; }
.ab-hero .logo-dark { display: block; }
.ab-on .hero-copy > * { animation: ab-up 1.1s var(--ez) both; }
.ab-on .hero-copy > :nth-child(2) { animation-delay: .12s; }
.ab-on .hero-copy > :nth-child(3) { animation-delay: .24s; }
.ab-on .hero-photo { animation: ab-settle 2.2s var(--ez) both; }
@keyframes ab-up { from { opacity: 0; transform: translateY(34px); } }
@keyframes ab-settle { from { scale: 1.12; filter: brightness(.6); } }
.ab-on .hero-photo[data-par] { transform: translate3d(0, var(--py, 0px), 0) scale(1.06); }

/* 2. Founding story: text on the left; on wide screens the photo column holds still and the next photo wipes up
   over the last as each paragraph reaches the middle of the screen */
.s-story { padding: clamp(72px, 11vw, 150px) var(--gut); }
.story-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.story-media { order: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.story-media figure { position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 5; background: var(--line-2); }
.story-media img { width: 100%; height: 100%; object-fit: cover; display: block; object-position: 50% 80%; }
.story-text { display: flex; flex-direction: column; gap: 1.2em; font-size: clamp(20px, 1.9vw, 25px); line-height: 1.45; letter-spacing: -.018em; color: var(--muted); }
.story-text .strong { color: var(--ink); font-weight: 600; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.18; letter-spacing: -.03em; }
.pins .story-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.pins .story-media { order: 0; position: sticky; top: calc(var(--nav) + max(6vh, (100vh - var(--nav) - 620px) / 2)); height: min(calc(100vh - var(--nav) - 12vh), 620px); display: block; }
.pins .story-media figure { position: absolute; inset: 0; aspect-ratio: auto; transition: clip-path 1.1s var(--ez); }
.pins .story-media figure:not(.shown) { clip-path: inset(100% 0 0 0 round var(--r-lg)); }
.pins .story-media figure img { transition: scale 1.6s var(--ez); }
.pins .story-media figure:not(.shown) img { scale: 1.15; }
.pins .story-text { gap: 0; }
.pins .story-text p { min-height: 78vh; display: flex; align-items: center; transition: color .6s var(--ez), opacity .6s var(--ez); }
.pins .story-text p:first-child { min-height: 64vh; align-items: flex-start; padding-top: 10vh; }
.pins .story-text p:not(.cur) { opacity: .28; }

/* 3. The student: an editorial spread; two photos at different depths with the three paragraphs set between them */
.s-student { padding: clamp(64px, 9vw, 130px) var(--gut); }
.stu-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 32px); row-gap: clamp(28px, 4vw, 56px); align-items: start; }
.stu-head { grid-column: 1 / 9; grid-row: 1; display: flex; flex-direction: column; gap: 18px; }
.stu-head .display { font-size: clamp(40px, 6vw, 84px); }
.stu-a { grid-column: 9 / 13; grid-row: 1 / 3; aspect-ratio: 3 / 4; margin-top: clamp(40px, 8vw, 120px); }
.stu-p1 { grid-column: 1 / 6; grid-row: 2; font-size: 18px; align-self: end; }
.stu-b { grid-column: 2 / 8; grid-row: 3 / 5; aspect-ratio: 4 / 3; }
.stu-p2 { grid-column: 9 / 13; grid-row: 3; font-size: 18px; padding-top: clamp(0px, 3vw, 40px); }
.stu-p3 { grid-column: 9 / 13; grid-row: 4; align-self: end; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; font-weight: 600; letter-spacing: -.02em; }

/* 4. Where we started: on wide screens the copy holds on the left and a reel of school photos runs past on the right */
.s-door { background: var(--panel); }
.door-stage { padding: clamp(64px, 9vw, 120px) var(--gut); display: flex; flex-direction: column; gap: clamp(32px, 5vw, 56px); }
.door-copy { display: flex; flex-direction: column; gap: 18px; max-width: 34em; }
.door-copy .display { font-size: clamp(34px, 3.8vw, 54px); }
:lang(zh) .door-copy .display { font-size: clamp(30px, 3.1vw, 44px); }
.reel-track { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.reel-track figure { overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 3; background: var(--line-2); }
.reel-track img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 760px) { .reel-track { grid-template-columns: repeat(4, 1fr); } .reel-track .r-wide { grid-column: span 2; aspect-ratio: auto; } }
.pins .s-door { height: var(--door-h, 300vh); }
.pins .door-stage { position: sticky; top: var(--nav); height: calc(100vh - var(--nav)); overflow: clip; flex-direction: row; align-items: center; gap: 0;
  padding-block: clamp(24px, 5vh, 56px); padding-right: 0; }
.pins .door-copy { flex: 0 0 clamp(340px, 36vw, 500px); padding-right: clamp(24px, 3vw, 48px); position: relative; z-index: 1; }
.pins .reel { flex: 1; min-width: 0; height: 100%; overflow: hidden; border-radius: var(--r-lg) 0 0 var(--r-lg); }
.pins .reel-track { display: flex; height: 100%; gap: 14px; width: max-content; padding-right: var(--gut);
  transform: translate3d(calc(var(--p, 0) * var(--dx, 0px) * -1), 0, 0); will-change: transform; }
.pins .reel-track figure { flex: none; aspect-ratio: auto; height: 100%; }
.story-media .f-lab img { object-position: 50% 58%; }
.pins .story-media .f-hall img { object-position: 22% 100%; }
.pins .story-media .f-lab img { object-position: 50% 62%; }
.pins .story-media .f-hall, .pins .story-media .f-lab { background: var(--ink); }
.pins .story-media .f-hall.shown img { transform: scale(1.28); transform-origin: 22% 92%; }
.pins .story-media .f-lab.shown img { transform: scale(1.22); transform-origin: 50% 60%; }
.pins .reel-track .r-tall { width: calc((100vh - var(--nav)) * .52); }
.pins .reel-track .r-wide { width: calc((100vh - var(--nav)) * 1.05); }
.pins .reel-track .r-low { width: calc((100vh - var(--nav)) * .7); height: 62%; align-self: flex-end; }
.pins .reel-track .r-high { width: calc((100vh - var(--nav)) * .6); height: 74%; align-self: flex-start; }

/* 5. The quantum divide: the walls as a list on the left; the photo bleeds off the right edge and holds while the list scrolls */
.s-walls { padding: clamp(64px, 9vw, 130px) 0 clamp(64px, 9vw, 130px) var(--gut); }
.walls-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.walls-text { display: flex; flex-direction: column; gap: 18px; padding-bottom: 8px; }
.walls-text > .muted { max-width: 30em; }
.walls-text .display { font-size: clamp(38px, 4.8vw, 66px); }
.wall-list { margin-top: clamp(16px, 3vw, 36px); border-top: 1px solid var(--line-2); }
.wall { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: clamp(20px, 2.6vw, 30px) 0; border-bottom: 1px solid var(--line-2); }
.wall h3 { font-size: clamp(22px, 2.2vw, 28px); }
.wall .small { color: var(--accent-ink); font-weight: 500; }
.walls-media { position: sticky; top: calc(var(--nav) + 4vh); height: calc(100vh - var(--nav) - 8vh); min-height: 420px; }
.walls-photo { height: 100%; border-radius: var(--r-lg) 0 0 var(--r-lg); }
.walls-photo img { object-position: 40% 50%; }

/* 6. Why Mandarin: dark; heading beside an overlapping pair of photos of sessions taught in Mandarin, the three points in a row below */
.s-zh { padding: clamp(72px, 10vw, 140px) var(--gut); display: flex; flex-direction: column; gap: clamp(40px, 6vw, 80px); }
.zh-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.zh-head { display: flex; flex-direction: column; gap: 18px; }
.zh-head { padding-top: clamp(8px, 3vw, 48px); }
.zh-head .display { font-size: clamp(36px, 4.4vw, 58px); text-wrap-style: auto; }
/* the inset photo sits in normal flow (pulled up over the big one), so the collage's height always includes it */
.zh-collage { position: relative; display: flex; flex-direction: column; }
.zc-a { aspect-ratio: 16 / 10; margin-left: clamp(40px, 8vw, 120px); }
.zc-b { position: relative; z-index: 1; width: 46%; aspect-ratio: 4 / 3; margin-top: -18%; box-shadow: 0 24px 60px rgba(0,0,0,.35); outline: 6px solid var(--deep); }
.zc-b img { object-position: 70% 50%; }
.zh-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.5vw, 48px); }
.zp { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid rgba(245,240,230,.22); }
.zh-note { max-width: 40em; }

/* 7. What is still scarce: dark. The headline, then the classroom photo at no more than its own width, then the three
   things on the solid band below it, so no text sits on the photo */
.s-scarce { padding: clamp(72px, 10vw, 140px) var(--gut); display: flex; flex-direction: column; gap: clamp(32px, 5vw, 64px); }
.scarce-head { display: flex; flex-direction: column; gap: 18px; }
.scarce-head .display { font-size: clamp(36px, 4.6vw, 64px); max-width: 14em; color: var(--deep-ink); }
.scarce-pic { width: 100%; max-width: 1280px; aspect-ratio: 16 / 8; }
.scarce-pic img { object-position: 50% 62%; }
.scarce-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.5vw, 48px); }
.si { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid rgba(245,240,230,.25); }
.si h3 { color: var(--deep-ink); }

/* 8. Zero to one: the numbers set huge beside a looping clip of students running the filter experiment */
.s-zero { padding: clamp(72px, 10vw, 140px) 0 clamp(72px, 10vw, 140px) var(--gut); overflow: hidden; }
.zero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(32px, 5vw, 80px); row-gap: 32px; align-items: start; }
.zero-n { grid-column: 1; grid-row: 1; font-size: clamp(96px, 15vw, 230px); letter-spacing: -.06em; line-height: .85; white-space: nowrap; }
.zero-copy { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; gap: 24px; padding-right: 8px; }
.zero-media { grid-column: 2; grid-row: 1 / 3; position: relative; padding-bottom: clamp(60px, 8vw, 110px); }
.zero-film { aspect-ratio: 16 / 10; border-radius: var(--r-lg) 0 0 var(--r-lg); }
.zero-inset { position: absolute; left: clamp(-80px, -5vw, -24px); bottom: 0; width: 44%; aspect-ratio: 4 / 3; outline: 6px solid var(--bg); box-shadow: 0 24px 60px rgba(26,39,68,.25); }

/* 9. Why high school: the three stages on one line; only the stage we work in carries a photo */
.s-hs { padding: clamp(72px, 10vw, 140px) var(--gut); display: flex; flex-direction: column; gap: clamp(40px, 6vw, 80px); }
.hs-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 72px); row-gap: 22px; align-items: end; }
.hs-top .eyebrow { grid-column: 1 / -1; }
.hs-top .quote-big { font-size: clamp(28px, 3.2vw, 46px); max-width: 22em; }
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 40px); align-items: end; position: relative; }
.stage { display: flex; flex-direction: column; gap: 10px; font-size: 19px; font-weight: 600; position: relative; }
.stage i { display: block; width: 100%; height: 2px; background: rgba(245,240,230,.22); margin-bottom: 10px; position: relative; }
.stage i::before { content: ""; position: absolute; left: 0; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--deep); border: 2px solid var(--accent-300); }
.stage small { display: block; font-size: 15.5px; font-weight: 400; line-height: 1.5; color: var(--deep-muted); max-width: 22em; }
.stage:not(.q) { color: rgba(245,240,230,.7); }
.stage.q i { background: var(--deep-ink); }
.stage.q i::before { background: var(--deep-ink); border-color: var(--deep-ink); }
.stage.q small { color: var(--deep-ink); }
.hs-photo { aspect-ratio: 4 / 3; }

/* 10. How we measure ourselves: a wide hall beside one student working something out alone */
.s-measure { padding: clamp(72px, 10vw, 140px) var(--gut); }
.measure-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 32px); row-gap: 24px; align-items: end; }
.measure-head { grid-column: 1 / 11; display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(16px, 3vw, 40px); }
.measure-head .lede { font-size: clamp(28px, 3.6vw, 50px); font-weight: 600; line-height: 1.14; letter-spacing: -.03em; color: var(--ink); max-width: 22em; text-wrap: balance; }
.m-crowd { grid-column: 1 / 5; grid-row: 2; aspect-ratio: 4 / 3; }
.m-crowd img { filter: saturate(.35); }
.m-one { grid-column: 5 / 13; grid-row: 2; aspect-ratio: 16 / 10; }
.m-p1 { grid-column: 1 / 5; grid-row: 3; align-self: start; }
.m-p2 { grid-column: 5 / 10; grid-row: 3; align-self: start; }

/* 11. What we have learned: an uneven grid of photos and the three lessons */
.s-learned { padding: clamp(40px, 6vw, 80px) var(--gut) clamp(72px, 10vw, 140px); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(180px, auto); gap: 12px; }
.b-head { grid-column: 1 / 3; grid-row: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding: 8px 8px 24px 0; }
.b-head .display { font-size: clamp(38px, 4.8vw, 66px); }
.b-ph1 { grid-column: 3 / 5; grid-row: 1 / 3; min-height: 420px; }
.b-cell { background: var(--panel); border-radius: var(--r-lg); padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.b-frame { grid-column: 1 / 2; grid-row: 2; }
.b-q { grid-column: 2 / 3; grid-row: 2; }
.b-ph2 { grid-column: 1 / 3; grid-row: 3; min-height: 300px; }
.b-cut { grid-column: 3 / 5; grid-row: 3; background: var(--deep); color: var(--deep-ink); justify-content: center; }
.b-cut h3 { font-size: clamp(24px, 2.6vw, 34px); }
.b-cut .muted { color: var(--deep-muted); font-size: 19px; max-width: 24em; }

/* 12. Legacy: the line in Chinese over a wide band of the people it is about; the band opens out as it scrolls through */
.s-legacy { --sp: .5; padding: clamp(72px, 10vw, 140px) 0; display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px); background: var(--panel); }
.legacy-head { padding: 0 var(--gut); display: flex; flex-direction: column; gap: 14px; }
.legacy-zh { font-size: clamp(48px, 8.4vw, 124px); letter-spacing: .02em; line-height: 1.05; }
.legacy-band { height: clamp(260px, 46vw, 620px); overflow: hidden; background: var(--line-2); }
.legacy-band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; display: block; }
.ab-on .legacy-band { --k: clamp(0, calc(var(--sp) * 2.2 - .35), 1);
  clip-path: inset(0 calc((1 - var(--k)) * 22%) round calc(var(--r-lg) * (1 - var(--k)))); }
.ab-on .legacy-band img { scale: calc(1.14 - .14 * var(--k)); }
.legacy-p { padding: 0 var(--gut); max-width: calc(40em + 2 * var(--gut)); font-size: 18px; }

/* 13. The people */
.about-people .faces { display: flex; justify-content: center; margin-bottom: 6px; }
.about-people .faces img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); margin-left: -12px; background: var(--line-2); }
.about-people .faces img:first-child { margin-left: 0; }
.about-people .more-info { margin-top: 12px; }
.about-people .more-info ul { text-align: left; }
.about-legal { max-width: 46em; margin-top: 12px; }

/* Tablets and phones */
@media (max-width: 1000px) {
  .zh-top { grid-template-columns: 1fr; }
  .zh-head { padding-top: 0; }
  .scarce-items, .zh-points { grid-template-columns: 1fr; }
}
@media (max-width: 759px) {
  .story-grid, .walls-grid, .zero-grid { grid-template-columns: 1fr; }
  .story-media { order: 0; }
  .story-media figure { aspect-ratio: 3 / 4; }
  .stu-grid, .measure-grid { grid-template-columns: 1fr; }
  .stu-grid > *, .measure-grid > * { grid-column: 1 !important; grid-row: auto !important; }
  .stu-a { margin-top: 0; aspect-ratio: 4 / 3; }
  .stu-b { width: 82%; justify-self: end; }
  .s-walls, .s-zero { padding-right: var(--gut); }
  .walls-media { position: relative; top: 0; height: auto; min-height: 0; }
  .walls-photo, .zero-film { border-radius: var(--r-lg); aspect-ratio: 16 / 10; height: auto; }
  .zero-n, .zero-copy, .zero-media { grid-column: 1; grid-row: auto; }
  .zero-n { font-size: clamp(88px, 30vw, 160px); }
  .zero-inset { left: auto; right: 16px; width: 48%; }
  .zc-a { margin-left: 32px; }
  .hs-top { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr; row-gap: 30px; }
  .stage.q { order: 0; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento > * { grid-column: 1 !important; grid-row: auto !important; }
  .b-ph1 { min-height: 0; aspect-ratio: 16 / 10; }
  .b-ph2 { min-height: 0; aspect-ratio: 16 / 10; }
  .b-head { padding: 0 0 12px; }
  .scarce-pic { aspect-ratio: 4 / 3; }
  .hero-frame { min-height: 520px; max-height: 760px; }
}

/* The site-wide TPSS card waits until the reader reaches the legacy section (about.js adds body.ab-late) */
body.page-about:not(.ab-late) .promo-card { opacity: 0; visibility: hidden; pointer-events: none; }
body.page-about .promo-card { transition: opacity .5s var(--ez, ease), translate .5s var(--ez, ease), visibility .5s; }

/* Chinese display headings: no break inside a word. keep-all leaves breaks only at punctuation and spaces, so each
   heading below is sized so its clauses fit; overflow-wrap is only the safety net on very narrow screens */
:lang(zh) .scene .display { word-break: keep-all; overflow-wrap: anywhere; }
:lang(zh) .stu-head .display { font-size: clamp(32px, 4.8vw, 70px); }
:lang(zh) .door-copy .display { font-size: clamp(28px, 2.9vw, 40px); }
:lang(zh) .walls-text .display, :lang(zh) .b-head .display { font-size: clamp(32px, 3.6vw, 52px); }
:lang(zh) .zh-head .display { font-size: clamp(22px, 5.4vw, 40px); }
@media (min-width: 1001px) { :lang(zh) .zh-top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
