@font-face {
  font-family: Montserrat;
  src: url("fonts/latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Rongle Sans";
  src: url("fonts/zh.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #202020;
  --muted: #60615d;
  --quiet: #f6f5f2;
  --line: #deded9;
  --paper: #fff;
  --ease-out: cubic-bezier(.19, 1, .22, 1);
  --body-font: Montserrat, "Rongle Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --narrow: min(768px, calc(100% - 28px));
  --wide: min(1540px, calc(100% - 6.9vw));
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 300 16px/1.8 var(--body-font);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
body.drawer-open, html.playing-intro { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, summary { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button { background: transparent; border: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, blockquote, ul { margin: 0; }
h1, h2, h3 { line-height: 1.5; font-weight: 500; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid #25745d; outline-offset: 4px;
}
[hidden] { display: none !important; }
.skip { position: fixed; z-index: 120; left: 1rem; top: -8rem; background: white; color: black; padding: .5rem; }
.skip:focus { top: .5rem; }
.reading { width: var(--narrow); margin-inline: auto; }
.collection { width: var(--wide); margin-inline: auto; }
.photo img { width: 100%; height: auto; }
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid currentColor; border-radius: 100px;
  padding: .65rem 1.55rem; font-weight: 500; font-size: .87rem;
  transition: color .25s, background-color .25s;
}
.pill:hover { color: white; background: var(--ink); }
.text-link, .card-story a { display: inline-block; margin-top: .9rem; border-bottom: 1px solid currentColor; font-weight: 500; }
.actions { display: flex; justify-content: center; align-items: center; gap: .8rem 1.1rem; flex-wrap: wrap; margin-top: 2.2rem; }
.site-head { position: fixed; top: 0; left: 0; width: 100%; height: 0; z-index: 20; color: var(--ink); }
.brand, .desktop-nav, .menu { position: absolute; top: 0; }
.brand { left: 0; display: grid; place-items: center; width: 100px; height: 98px; z-index: 2; }
.stamp {
  display: inline-block; text-align: center; font: 700 32px/.99 "Rongle Sans", "PingFang SC", sans-serif;
  letter-spacing: -.12em; padding-right: .12em;
}
.desktop-nav {
  right: 0; min-height: 58px; padding: 0 24px 0 36px;
  display: flex; align-items: center; gap: 22px;
}
.desktop-nav a, .drawer nav a, .local-links a, .site-footer nav a { font-weight: 500; }
.desktop-nav a { font-size: 16px; }
.desktop-nav a:hover, .desktop-nav a[aria-current], .local-links a:hover, .local-links a[aria-current],
.site-footer nav a:hover, .drawer nav a:hover { text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 1px; }
.brand, .desktop-nav, .menu { transition: color .3s ease, background .3s ease; }
.site-head.over-photo::before { content: ""; position: absolute; inset: 0 0 auto; height: 108px; pointer-events: none; background: linear-gradient(to bottom, #09181183, transparent); }
.site-head.over-photo { color: white; text-shadow: 0 1px 7px #0006; }
.site-head.on-paper .desktop-nav, .site-head.on-paper .brand, .site-head.on-paper .menu { background: #fffffff2; }
.glass { display: inline-block; width: 15px; height: 15px; border: 1px solid currentColor; border-radius: 50%; position: relative; }
.glass::after { content: ""; position: absolute; width: 8px; height: 1px; right: -6px; bottom: -3px; background: currentColor; transform: rotate(45deg); }
.search-trigger, .footer-search { width: 37px; height: 40px; display: inline-grid; place-content: center; }
.menu { display: none; }
.menu i, .drawer-close::before, .drawer-close::after {
  display: block; width: 25px; height: 1px; background: currentColor; transition: transform .3s;
}
.menu[aria-expanded=true] i:first-child { transform: translateY(7px) rotate(45deg); }
.menu[aria-expanded=true] i:nth-child(2) { opacity: 0; }
.menu[aria-expanded=true] i:last-child { transform: translateY(-7px) rotate(-45deg); }
.drawer-shade { position: fixed; inset: 0; z-index: 30; background: #0008; opacity: 0; transition: opacity .3s ease; }
.drawer-shade:not(.open), .drawer:not(.open) { pointer-events: none; }
.drawer-shade.open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; z-index: 31; width: min(32rem, 100%); height: 100dvh; overflow: auto;
  color: var(--ink); background: white; transform: translateX(110%); transition: transform .6s var(--ease-out);
}
.drawer.open { transform: translateX(0); }
.drawer-brand { display: inline-grid; place-items: center; margin: 15px 18px; }
.drawer-brand .stamp { font-size: 43px; }
.drawer-close { position: absolute; top: 0; right: 0; width: 50px; height: 50px; display: grid; place-content: center; background: #f4f4f4; }
.drawer-close::before, .drawer-close::after { content: ""; grid-area: 1/1; transform: rotate(45deg); }
.drawer-close::after { transform: rotate(-45deg); }
.drawer-content { padding: 3rem 23px 4rem; }
.site-search { display: flex; border-bottom: 1px solid currentColor; margin-bottom: 2.3rem; }
.site-search input { width: 100%; border: 0; background: white; padding: .45rem 2px; min-width: 0; }
.site-search button { flex: 0 0 44px; }
.drawer nav { display: flex; flex-wrap: wrap; gap: .85rem 1.4rem; }
.search-results:not(:empty) { margin: -1.45rem 0 2.1rem; }
.search-results a { display: block; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.plain-nav { text-align: center; margin-top: 6rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
html:not(.js) .menu, html:not(.js) [data-search] { display: none; }
.site-footer { position: relative; text-align: center; padding: clamp(5rem,10vw,10rem) 1rem 2.5rem; }
.site-footer nav { display: flex; gap: .6rem 1.3rem; flex-wrap: wrap; justify-content: center; }
.site-footer nav a { font-size: .94rem; }
.footer-brand { display: block; width: fit-content; margin: 2.5rem auto; }
.footer-brand .stamp { font-size: 38px; }
.footer-search { display: grid; margin: 1.1rem auto; }
.site-footer small, .rights { font-size: .78rem; }
.rights { margin: .6rem auto 0; width: min(650px, 100%); color: var(--muted); }
.rights summary { width: fit-content; margin: auto; }
.rights div { margin: 1rem auto 0; }.rights ul { list-style: none; margin-top: .5rem; padding: 0; }
.rights a { text-decoration: underline; text-underline-offset: .2em; }

/* The cover uses two independent clocks: the image dissolve and the slow camera movement. */
.cover { height: 100svh; min-height: 400px; position: relative; isolation: isolate; display: grid; place-items: center; color: white; background: #5b615b; overflow: hidden; }
.slides, .slide, .slide figure, .slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.slides { z-index: -2; }
.slide { opacity: 0; transition: opacity 1s ease-out; }
.slide.current { opacity: 1; }
.slide img { object-fit: cover; transform: scale(1.01); }
.cover.in-view .slide.current img { animation: drift 20s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.01); } to { transform: scale(1.15); } }
.cover::before, .detail-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(transparent, rgb(0 0 0 / 41%)); }
.cover::before { z-index: -1; background: linear-gradient(180deg, #0005, transparent 22%, transparent 50%, #0004 76%, #0006); }
.tagline { position: absolute; bottom: max(9%, 54px); font-size: clamp(38px, 4.25vw, 50px); line-height: 1.2; font-weight: 300; text-align: center; text-shadow: 0 1px 9px #0007; }
.tagline span { display: block; width: fit-content; margin: 0 auto; }
.js .tagline:not(.ready) span { clip-path: inset(0 100% 0 0); }
.tagline.ready span { animation: unveil .7s ease-in-out both; }
.tagline.ready span:nth-child(1) { animation-delay: .5s; }
.tagline.ready span:nth-child(2) { animation-delay: 1.5s; }
.tagline.ready span:nth-child(3) { animation-delay: 2.3s; }
@keyframes unveil { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
.view-controls { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; }
.view-controls button { display: grid; place-items: center; width: 36px; height: 40px; color: white; }
.view-controls button::before { content: ""; width: 18px; height: 2px; display: block; background: #fff8; box-shadow: 0 0 2px #0004; }
.view-controls [aria-pressed=true]::before { background: white; }
.view-controls .rotation::before { width: 8px; height: 11px; background: transparent; border-inline: 2px solid white; }
.view-controls .rotation.paused::before { width: 0; height: 0; border: 5px solid transparent; border-left: 8px solid white; }
.intro-screen { display: none; }
.playing-intro .intro-screen {
  display: grid; align-content: center; justify-items: center; position: fixed; inset: 0; z-index: 70;
  background: #b1ada5; color: white; animation: intro-exit .8s cubic-bezier(.8,0,.2,1) 4.2s both;
}
@keyframes intro-exit { to { transform: translateY(-101%); } }
.intro-mark { animation: intro-mark 2s cubic-bezier(.8,0,.2,1) 1s both; }
@keyframes intro-mark { 0% { opacity: 0; } 25%,65% { opacity: 1; } 100% { opacity: 0; } }
.intro-line { width: 88px; height: 1px; margin: 14px 0; background: white; animation: intro-stroke 2s cubic-bezier(.8,0,.2,1) 1s both; }
@keyframes intro-stroke { 0%,100% { transform: scaleX(0); } 45% { transform: scaleX(1); } }
.intro-screen p { text-align: center; font-size: clamp(24px,3.3vw,44px); font-weight: 300; line-height: 1.35; animation: intro-copy 2s cubic-bezier(.8,0,.2,1) 1s both; }
@keyframes intro-copy { 0%,35% { opacity: 0; } 100% { opacity: 1; } }
.intro-skip { position: fixed; z-index: 71; bottom: 14px; right: 18px; color: #242822; padding: .4rem; font-size: .81rem; }

.bilingual { text-align: center; font-weight: 300; }
.bilingual span { display: block; }
.bilingual span[lang=en] { font-size: 28.8px; letter-spacing: -.05em; line-height: 1.5; }
.bilingual span + span { font-size: 16px; line-height: 1.8; margin-top: 4px; }
.page-heading { width: var(--narrow); margin: 0 auto; padding-top: 120px; text-align: center; }
.page-heading h1 span[lang=en] { font-size: 48px; }
.local-links { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .65rem 1.2rem; margin: 61px auto 32px; padding-inline: 14px; }
.page-heading + .local-links { min-height: 48px; }
.local-links a { font-size: .94rem; }
.section-heading { text-align: center; margin-bottom: 32px; }
.landing-section { margin-top: clamp(100px,12vw,180px); }
.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 42px 1.55vw; }
.card-grid h2, .card-grid h3 { font-size: 18px; font-weight: 500; line-height: 1.55; margin-top: .5rem; }
.picks .photo, .project-card .letter-cover { aspect-ratio: 660 / 430; overflow: hidden; }
.picks img { height: 100%; object-fit: cover; transition: opacity .35s; }
.picks a:hover img, .photo a:hover img { opacity: .8; }
.card-label { font-size: 13px; display: block; color: var(--muted); padding: .5rem 0; border-bottom: 1px solid var(--line); }
.picks p { margin-top: .55rem; font-size: .93rem; }
.project-card { min-width: 0; }
.project-card > a, .project-card summary { display: block; }
.project-card summary { list-style: none; }
.project-card summary::-webkit-details-marker { display: none; }
.project-card summary h2::after { content: "+"; float: right; font-weight: 300; }
.project-card details[open] summary h2::after { content: "−"; }
.card-story { padding: .85rem 0; font-size: .95rem; }
.card-story p + p { margin-top: .75rem; }
.letter-cover, .article-cover { display: grid; place-content: center; text-align: center; background: #e5e9e3; color: #263b31; }
.letter-cover span { font-size: clamp(26px,3.2vw,58px); font-weight: 300; letter-spacing: .12em; }
.cover-yunfan { background: #e3eaf0; color: #344756; }
.cover-qtw { background: #ebe4dd; color: #544234; }
.cover-husu { background: #ecebe7; color: #464942; }
.project-card summary:hover .letter-cover, .project-card a:hover .letter-cover { filter: brightness(.96); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,6vw,100px); align-items: center; max-width: 1000px; margin: auto; }
.feature figure { max-width: 450px; justify-self: center; }.feature figure img { max-height: 480px; width: auto; }
.prose p, .card-story p, .chapter p, .end-section p { text-wrap: pretty; }
.prose p + p, .prose blockquote { margin-top: 1.3em; }
.prose h2, .chapter h2, .related h2, .programs > h2, .program-feature h2, .end-section h2 { font-size: 22px; line-height: 1.7; font-weight: 600; }
.prose h2 { margin: 2.6rem 0 1rem; }
.company-copy .mission { font-size: 28.8px; font-weight: 700; line-height: 1.8; text-align: center; margin: 35px 0 76px; }
.company-copy figure { width: min(595px,100%); margin: 62px auto; }
.end-section, .related { margin-top: clamp(68px,8vw,120px); text-align: center; }
.archive { align-items: start; }
.detail-photo { position: relative; height: min(600px, 65svh); min-height: 360px; }
@media (min-width: 813px) {
  .p-recruit .detail-photo { height: auto; min-height: 0; aspect-ratio: 1.8; }
}
.detail-photo .photo, .detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.detail-photo::after { background: linear-gradient(180deg, #0006, transparent 30%, transparent); }
.article-heading { margin: 42px 0 36px; }
.article-heading h1 { font-size: 36px; line-height: 1.5; font-weight: 300; }
.kicker, .byline, .meta { color: var(--muted); font-size: 14px; }
.byline { margin-top: .8rem; }
.chapter { margin-top: 68px; }
.chapter h2, .related h2, .programs h2 { margin-bottom: 20px; }
.chapter .rows { margin-top: 24px; }
.chapter .row { display: grid; grid-template-columns: minmax(92px,.45fr) minmax(0,1.5fr); gap: 1.3rem; padding: 1.45rem 0; border-bottom: 1px solid var(--line); }
.chapter h3 { font-size: 16px; font-weight: 500; }.chapter p + p { margin-top: 1.2rem; }
.chapter .pill { margin-top: 1.2rem; }.chapter .actions { justify-content: start; }
.article-cover { width: min(500px,calc(100% - 28px)); aspect-ratio: 1; margin: 80px auto 0; border-radius: 14px; background: #dbe2da; }
.article-cover span { font-size: clamp(40px,6vw,80px); font-weight: 300; letter-spacing: .12em; }
.article-cover small { margin-top: .65rem; letter-spacing: .15em; }
.story .article-heading { margin-top: 34px; }
.story blockquote { padding-left: 1.1rem; border-left: 1px solid currentColor; font-size: 20px; }
.story cite { display: block; margin-top: .35rem; color: var(--muted); font-size: 14px; font-style: normal; }
.program-pair { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2vw; align-items: center; }
.program-pair img { aspect-ratio: 660/430; object-fit: cover; }
.programs, .program-feature { margin-top: clamp(65px,7vw,110px); }
.programs details { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.programs summary { font-size: 19px; font-weight: 500; }
.programs details > div { margin-top: 1rem; }
.program-feature figure { max-width: 430px; margin: 0 auto 2rem; }
.program-feature h2 { margin-bottom: .8rem; }

@media(min-width:813px) {
  .js .will-enter { opacity: 0; transform: translateY(50px); }
  .js .will-enter.visible { opacity: 1; transform: translateY(0); transition: opacity .6s ease, transform .6s ease; }
  .js .photo.will-enter { transform: none; }
  .js .photo.will-enter.visible { transition-delay: .3s; }
}
@media(max-width:812px) {
  :root { --wide: calc(100% - 28px); }
  .brand { width: 80px; height: 81px; }.stamp { font-size: 26px; }
  .desktop-nav { display: none; }
  .js .menu { display: flex; right: 0; width: 50px; height: 50px; gap: 6px; align-items: center; justify-content: center; flex-direction: column; }
  .drawer { width: 100%; }
  .site-footer { padding-top: 6rem; }
  .cover { min-height: 370px; height: 100svh; }
  .tagline { font-size: clamp(30px,9.75vw,70px); line-height: 1.25; }
  .tagline.ready span { animation: none; }
  .page-heading h1 span[lang=en] { font-size: 36px; }
  .local-links { margin-top: 44px; gap: .5rem 1rem; }
  .card-grid { grid-template-columns: 1fr; gap: 34px; }
  .picks { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 14px; }
  .card-grid h2, .card-grid h3 { font-size: 16px; }
  .feature, .program-pair { grid-template-columns: 1fr; gap: 1.5rem; }
  .company-copy .mission { font-size: 23px; margin-bottom: 52px; }
  .detail-photo { height: 50svh; min-height: 265px; }
  .article-heading { margin-top: 1.9rem; }
  .article-heading h1 { font-size: clamp(19.5px,5vw,32px); }
  .article-cover { margin-top: 14px; }
  .chapter .row { grid-template-columns: 1fr; gap: .4rem; }
  .chapter { margin-top: 56px; }
  .section-heading { margin-bottom: 28px; }
}
@media(max-width:360px) {
  .picks { grid-template-columns: 1fr; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .tagline span { clip-path: none !important; }
  .will-enter { opacity: 1 !important; transform: none !important; }
}
@media print {
  .site-head,.drawer,.site-footer,.view-controls,.intro-screen,.intro-skip { display: none !important; }
  .will-enter { opacity: 1 !important; transform: none !important; }
}
.cover { touch-action: pan-y; }
.tagline.instant span { animation: none; clip-path: none; }
