@font-face {
  font-family: "Noto Sans SC";
  src: url("fonts/noto-sans-sc-site.woff2?v=20261124-6") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f0efeb;
  --ink: #191a18;
  --muted: #545550;
  --line: #191a1828;
  --dark-muted: #b9bab2;
  --dark-line: #f0efeb33;
  --inset: clamp(20px, 5.2vw, 90px);
  --motion: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-synthesis: none; background: var(--paper); color: var(--ink); font: 16px/1.6 "Noto Sans SC", sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  text-align: center;
  font-size: 13px;
}
.site-footer a {
  display: inline-block;
  padding: 6px 8px;
  text-decoration: underline;
  text-underline-offset: .22em;
}
img { display: block; max-width: 100%; }
h1, h2, p, figure, ol { margin: 0; }
.shell { width: min(1600px, calc(100% - 2 * var(--inset))); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, nav { display: flex; align-items: center; }
.header-inner { justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { font-size: 17px; font-weight: 750; white-space: nowrap; }
nav { gap: clamp(16px,4.1vw,66px); font-size: 14px; font-weight: 550; }
nav a { padding-block: 6px; }
nav a:hover, .hero-link:hover, .contact-link { text-decoration: underline; text-underline-offset: 5px; }
.hero-inner { position: relative; isolation: isolate; display: grid; align-content: space-between; min-height: clamp(520px, calc(92svh - 64px), 880px); }
.hero-inner::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  border-inline: 1px solid var(--line);
  background: linear-gradient(90deg, transparent calc(33.333% - 1px), var(--line) calc(33.333% - 1px) 33.333%, transparent 33.333% calc(66.666% - 1px), var(--line) calc(66.666% - 1px) 66.666%, transparent 66.666%);
  opacity: .68;
}
.hero-intro { display: grid; grid-template-columns: 2fr 1fr; align-items: start; border-top: 1px solid var(--line); margin-top: clamp(56px, 13vh, 135px); }
.eyebrow { color: var(--muted); font-size: 14px; }
.hero-intro > p { padding: 16px 14px 0; }
.hero-description { font-size: clamp(19px, 2.65vw, 41px); line-height: 1.32; letter-spacing: -.035em; font-weight: 520; }
.hero-description span { display: block; }
h1 { font-size: clamp(70px, 19vw, 316px); font-weight: 900; line-height: 1.04; letter-spacing: -.045em; padding: .04em .065em .075em 0; margin: clamp(24px,6vh,70px) 0 0; animation: type-in .9s var(--motion) both; }
h1 span { margin-left: .035em; }
.hero-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); min-height: 58px; padding-inline: 14px; }
.hero-link { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-size: 14px; }
h2 { font-size: clamp(32px, 5.7vw, 93px); line-height: 1.15; font-weight: 720; letter-spacing: -.04em; }
@keyframes type-in { from { clip-path: inset(100% 0 0 0); transform: translateY(18px); } to { clip-path: inset(0); transform: translateY(0); } }
@keyframes scene-in { from { opacity: .35; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.reveal.is-visible { animation: scene-in .8s var(--motion) both; }
@media (max-width: 720px) {
  .hero-inner { min-height: clamp(395px, 70svh, 580px); }
  .hero-intro { grid-template-columns: 1fr 2fr; margin-top: 62px; }
  .hero-intro > p { padding-inline: 9px; }
  h1 { font-size: clamp(58px, 22vw, 148px); letter-spacing: -.045em; }
  .hero-bottom { padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* The three scene labels share the same scroll timeline as the film frames. */
:root { --header-height: 65px; --work-bg: #181916; }
html { scroll-padding-top: var(--header-height); }
body[data-tone="inverse"] {
  color-scheme: dark;
  --paper: #1c1d1a;
  --ink: #f0efeb;
  --muted: #b9bab2;
  --line: #f0efeb30;
  --dark-muted: #545550;
  --dark-line: #191a1840;
  --work-bg: #edece7;
}
.site-header { position: sticky; z-index: 5; top: 0; background: var(--paper); }
.site-header::after {
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: var(--ink);
  content: "";
  transform: scaleX(var(--page-progress, 0));
  transform-origin: left;
  pointer-events: none;
}
.tone-switch:not([hidden]) {
  display: grid;
  place-items: center;
  width: 34px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
}
.tone-switch span {
  width: 17px;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
  transition: transform .45s var(--motion);
}
.tone-switch:hover span, .tone-switch[aria-pressed="true"] span { transform: rotate(180deg); }
h1 { animation: none; white-space: nowrap; }
h1 span { display: inline-block; animation: type-in .85s var(--motion) both; }
h1 span + span { margin-left: .035em; animation-delay: .12s; }
h1 span:first-child { margin-left: 0; }
.hero-intro, .hero-bottom { animation: scene-in .85s var(--motion) both; }
.hero-bottom { animation-delay: .17s; }

body, .site-header { transition: background-color .45s var(--motion), color .45s var(--motion); }
@media (max-width: 720px) {
  nav { gap: clamp(7px, 2.55vw, 16px); }
  .tone-switch:not([hidden]) { width: 24px; }
}

.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-mark {
  width: 27px;
  aspect-ratio: 1;
  background: currentColor;
  mask: url("media/zhiyue-mark.svg") center / contain no-repeat;
}
.game {
  color-scheme: dark;
  color: #f1f6eb;
  background: #1b2921;
  border-bottom: 1px solid #dfefd726;
}
.game-inner {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.15fr);
  align-items: center;
  gap: clamp(32px, 8vw, 126px);
  padding-block: clamp(62px, 10vw, 152px);
}
.game-copy { max-width: 34rem; }
.game-copy h2 { font-weight: 870; font-size: clamp(5rem, 11vw, 10.25rem); line-height: .95; margin: 20px 0 30px; }
.game-copy > p { color: #ccdcc8; }
.game-copy .game-summary { color: #f1f6eb; font-size: clamp(1.3rem, 2.8vw, 2.25rem); line-height: 1.28; margin-bottom: 12px; }
.game-link { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 1px solid currentColor; }
.game-link { margin-top: 26px; }
.game-link:hover { color: #b8d98e; }
.game-visual {
  display: grid;
  place-items: center;
  position: relative;
  aspect-ratio: 1.17;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #dfefd735;
  background:
    linear-gradient(#dfefd712 1px, transparent 1px) center / 12.5% 12.5%,
    linear-gradient(90deg, #dfefd712 1px, transparent 1px) center / 12.5% 12.5%,
    radial-gradient(ellipse at 54% 34%, #587b49, #314c36 59%, #26392d);
}
.game-visual::before,
.game-visual::after {
  content: "";
  position: absolute;
  inset: 13%;
  border: 1px solid #d2e8bf45;
  transform: rotate(-9deg);
  pointer-events: none;
}
.game-visual::after { inset: 20%; transform: rotate(8deg); }
.game-icon {
  width: 55%;
  height: auto;
  z-index: 1;
  transform: perspective(850px) rotateX(var(--tilt-x, 5deg)) rotateY(var(--tilt-y, -10deg)) rotateZ(-8deg) translateY(-2%);
  transition: transform .35s var(--motion);
  filter: drop-shadow(17px 36px 25px #101e1290);
}
@media (max-width: 720px) {
  .game-inner { grid-template-columns: 1fr; }
  .game-copy h2 { margin-bottom: 22px; }
  .hero-intro { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .brand { gap: 4px; font-size: 15px; }
  .brand-mark { width: 20px; }
  .header-inner { gap: 6px; }
  nav { gap: 7px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .game-icon { transform: none; transition: none; }
}

/* The document stays fixed. Each chapter is a separately colored surface. */
html.chapter-mode { height: 100%; overflow: hidden; scroll-behavior: auto; }
.chapter-mode body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--chrome-bg, var(--paper));
}
@supports (overflow: clip) {
  html.chapter-mode, .chapter-mode body { overflow: clip; }
}
.chapter-mode .site-header {
  background: var(--chrome-bg, var(--paper));
  color: var(--chrome-fg, var(--ink));
  border-color: var(--chrome-line, var(--line));
  transition: background-color .35s ease, color .35s ease, border-color .35s ease;
  position: relative;
  z-index: 5;
}
.chapter-mode .site-header nav { gap: clamp(13px, 3vw, 52px); }
.chapter-mode .site-header nav a { position: relative; text-decoration: none; white-space: nowrap; }
.chapter-mode .site-header nav a::after {
  content: "";
  height: 1px;
  position: absolute;
  inset: auto 0 0;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--motion);
}
.chapter-mode .site-header nav a:hover::after,
.chapter-mode .site-header nav a[aria-current="page"]::after { transform: scaleX(1); }
.chapter-stage { position: relative; min-height: 0; }
.chapter-mode .chapter-stage { isolation: isolate; overflow: hidden; }
.chapter-mode .chapter-stage:has(> .is-current) > section {
  position: absolute;
  inset: 0;
  overflow: auto;
  overscroll-behavior: none;
  scrollbar-width: none;
}
.chapter-mode .chapter-stage:has(> .is-current) > section:not(.is-current):not(.is-entering) {
  visibility: hidden;
}
.chapter-mode .chapter-stage > .is-current { z-index: 1; }
.chapter-mode .chapter-stage:has(> .is-current) > section.is-entering {
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  transition: opacity .35s ease;
}
.chapter-mode .chapter-stage:has(> .is-current) > section.is-entering.is-preparing {
  opacity: 0;
  transition: none;
}
.chapter-mode .chapter-copy {
  transition: opacity .3s ease, transform .45s cubic-bezier(.22, 1, .36, 1);
}
.chapter-mode section.is-entering > .chapter-copy {
  transition: transform .5s cubic-bezier(.22, 1, .36, 1) .08s;
}
.chapter-mode section.is-entering.is-preparing > .chapter-copy {
  transform: translate3d(0, var(--enter-shift, 60px), 0);
  transition: none;
}
.chapter-mode section.is-leaving > .chapter-copy {
  opacity: 0;
  transform: translate3d(0, var(--leave-shift, -60px), 0);
}
.chapter-mode .hero h1 span,
.chapter-mode .hero-intro,
.chapter-mode .hero-bottom { animation: none; }
.chapter-mode .chapter-stage > section h1:focus,
.chapter-mode .chapter-stage > section h2:focus { outline: none; }
.chapter-mode .hero { background: #f0efeb; }
.chapter-mode .hero-inner { min-height: 100%; }
.chapter-mode .hero-intro { margin-top: clamp(30px, 12vh, 116px); }
.chapter-mode h1 { font-size: min(clamp(58px, 19vw, 316px), 34vh); margin-top: 22px; }
.chapter-mode .game { display: grid; align-content: center; background: #203b2d; }
.chapter-mode .game-inner { padding-block: clamp(28px, 6vh, 74px); }
.chapter-mode .game-visual { max-height: min(53vh, 460px); }
.chapter-mode .reveal.is-visible { animation: none; }
@media (max-width: 720px) {
  .chapter-mode .site-header nav { gap: clamp(8px, 2.3vw, 18px); font-size: 13px; }
  .chapter-mode .header-inner { min-height: 54px; }
  .chapter-mode .hero-inner { min-height: 100%; }
  .chapter-mode h1 { font-size: min(23vw, 34vh); }
  .chapter-mode .game { display: block; }
  .chapter-mode .game-inner { gap: 20px; }
  .chapter-mode .game-copy h2 { font-size: clamp(52px, 16vw, 84px); margin: 8px 0 14px; }
  .chapter-mode .game-link { margin-top: 10px; }
  .chapter-mode .game-visual { max-height: 32vh; }
  .chapter-mode .game-icon { width: min(50%, 19vh); }
}
@media (max-width: 360px) {
  .chapter-mode .site-header .brand { font-size: 14px; gap: 3px; }
  .chapter-mode .site-header nav { font-size: 12px; gap: 7px; }
  .chapter-mode .site-header .brand-mark { width: 18px; }
}

/* The brand poster and the meadow share the site's editorial margins. */
.chapter-mode .site-header .header-inner { min-height: 56px; }
.chapter-mode .site-header .brand { font-weight: 700; letter-spacing: .025em; }
.chapter-mode .site-header nav { gap: clamp(15px, 3.4vw, 56px); font-weight: 500; }
.chapter-mode .site-header::after { opacity: .48; }
.hero,
.chapter-mode .hero {
  background: #f0efeb;
  color: #191a18;
}
.hero .hero-inner {
  display: flex;
  flex-direction: column;
}
.hero .hero-inner::before { content: none; }
.hero-editorial {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: stretch;
  flex: 1;
  min-width: 0;
  gap: clamp(30px, 6vw, 100px);
  padding-block: clamp(28px, 6svh, 80px);
}
.hero .hero-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 0;
  margin: 0;
  min-width: 0;
}
.hero .hero-intro > p { padding: 0; }
.hero-signature {
  color: #4e4e4d;
  font: 500 14px/1.5 "Space Grotesk", "Noto Sans SC", sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero #hero-title {
  font-size: min(15vw, 24svh, 230px);
  line-height: .91;
  font-weight: 850;
  letter-spacing: -.075em;
  margin: clamp(20px, 4.5svh, 60px) 0;
  padding: 0 0 .09em;
}
.hero #hero-title span { display: block; margin: 0; }
.hero #hero-title span + span { color: #3b3b39; }
.hero .hero-description {
  color: #30302e;
  font-size: clamp(16px, 2vw, 31px);
  letter-spacing: -.04em;
}
.hero-emblem {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(350px, 58svh, 680px);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 67% 28%, #f6f5f2, transparent 65%),
    linear-gradient(141deg, #deddda, #cccac6);
}
.hero-emblem-grid {
  position: absolute;
  inset: clamp(16px, 3vw, 46px);
  border: 1px solid #3e3e3e42;
  background:
    linear-gradient(0deg, transparent calc(50% - .5px), #3e3e3e36 50%, transparent calc(50% + .5px)),
    linear-gradient(90deg, transparent calc(50% - .5px), #3e3e3e36 50%, transparent calc(50% + .5px));
}
.hero-emblem-grid::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 79%;
  aspect-ratio: 1;
  border: 1px solid #3e3e3e46;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.hero-emblem-mark {
  width: min(66%, 49svh);
  aspect-ratio: 1;
  background: linear-gradient(145deg, #333332, #171717);
  mask: url("media/zhiyue-mark.svg") center / contain no-repeat;
}
@keyframes brand-mark-arrival {
  from { transform: translateY(12px) scale(.965); opacity: .35; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero:is(.is-entering, .is-current) .hero-emblem-mark {
    animation: brand-mark-arrival 1.05s var(--motion) both;
  }
  .hero.is-preparing .hero-emblem-mark { animation-play-state: paused; }
}
.hero .hero-bottom {
  gap: 16px;
  min-height: 64px;
  padding-inline: 0;
  border-color: #30303033;
}
.hero-bottom > p { color: #4d4d4b; font-size: 14px; }
.hero-actions { display: flex; gap: clamp(16px, 3vw, 48px); }
.hero .hero-link { white-space: nowrap; }
.hero .hero-link:first-child { font-weight: 700; }

.game { position: relative; isolation: isolate; }
.game-landscape {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.game-landscape::before {
  content: "";
  position: absolute;
  inset: -2%;
  background: url("media/tuji-meadow.webp") 56% 52% / cover no-repeat;
}
.game-landscape::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #152b21ef 0%, #1a3126c9 27%, #243b2b45 64%, #1b38261c 100%),
    linear-gradient(0deg, #193428a6, transparent 55%);
}
.game .game-inner {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 7.5vw, 108px);
}
.game .game-copy h2 { font-size: clamp(72px, 13vw, 184px); margin: 18px 0 27px; }
.game .game-copy > p { color: #edf3e7; }
.game .game-copy > p:not(.game-summary) { max-width: 26em; }
.game .game-visual {
  max-height: none;
  aspect-ratio: 1.2;
  border: 0;
  background: none;
  overflow: visible;
}
.game .game-visual::before,
.game .game-visual::after { content: none; }
.game .game-icon {
  width: clamp(190px, 25vw, 370px);
  filter: drop-shadow(10px 30px 30px #142d2566);
}
.chapter-mode .game.is-entering > .chapter-copy,
.chapter-mode .game.is-entering.is-preparing > .chapter-copy { transform: none; }

@keyframes meadow-arrival {
  from { transform: translateY(6%) scale(1.075); }
  to { transform: translateY(0) scale(1); }
}
@keyframes tuji-arrival {
  from { opacity: 0; translate: 0 28px; }
  to { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .game:is(.is-entering, .is-current) .game-landscape::before {
    animation: meadow-arrival 1.15s cubic-bezier(.2,.65,.25,1) both;
  }
  .game:is(.is-entering, .is-current) .game-figure,
  .game:is(.is-entering, .is-current) .game-copy {
    animation: tuji-arrival .72s cubic-bezier(.2,.65,.25,1) both;
  }
  .game:is(.is-entering, .is-current) .game-figure { animation-delay: .1s; }
  .game:is(.is-entering, .is-current) .game-copy { animation-delay: .22s; }
  .game.is-preparing .game-landscape::before,
  .game.is-preparing .game-figure,
  .game.is-preparing .game-copy { animation-play-state: paused; }
}
@media (max-width: 720px) {
  .chapter-mode .site-header .header-inner { min-height: 51px; gap: 7px; }
  .chapter-mode .site-header nav { gap: clamp(7px, 1.9vw, 14px); font-size: 12px; }
  .hero-editorial {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(185px, 1fr);
    gap: 22px;
    padding-block: 24px 14px;
  }
  .hero-signature { font-size: 12px; letter-spacing: .09em; }
  .hero #hero-title { font-size: min(20vw, 108px); margin-block: 14px 12px; }
  .hero #hero-title span { display: inline-block; }
  .hero #hero-title span + span { margin-left: .04em; }
  .hero-emblem { min-height: 0; }
  .hero-emblem-grid::before { width: auto; height: min(88%, 65vw); }
  .hero-emblem-mark { width: min(55%, 24svh); }
  .hero .hero-bottom { align-items: flex-start; flex-direction: column; gap: 0; padding: 9px 0 0; }
  .game .game-inner { grid-template-columns: 1fr; gap: 10px; padding-block: 22px; }
  .game .game-copy h2 { font-size: clamp(50px, 14vw, 100px); margin: 8px 0 12px; }
  .game .game-visual { aspect-ratio: auto; min-height: 155px; }
  .game .game-icon { width: min(48vw, 25svh, 210px); min-width: 136px; }
  .game-landscape::before { background-position: 59% center; }
  .game-landscape::after {
    background: linear-gradient(180deg, #193226ed, #1a3226ba 45%, #243b2b3d 73%, #193428ad);
  }
}
@media (max-width: 360px) {
  .chapter-mode .site-header nav { font-size: 11px; gap: 6px; }
}

.contact {
  color: #eff4fb;
  background:
    radial-gradient(ellipse at 82% 25%, #49617b65, transparent 59%),
    #121e2c;
}
.contact .contact-inner {
  display: grid;
  align-content: center;
  min-height: 100%;
  padding-block: clamp(40px, 8svh, 110px) clamp(24px, 5svh, 60px);
}
.contact h2 {
  font-size: clamp(44px, 7vw, 100px);
  font-weight: 780;
  line-height: 1.08;
}
.contact-detail {
  width: min(100%, 32rem);
  margin-top: clamp(22px, 4svh, 44px);
  padding-top: 16px;
  border-top: 1px solid #a7bbd04d;
  color: #c9d8ea;
}
.contact-detail a {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(18px, 2.3vw, 30px);
}
.contact-detail a:hover { text-decoration: underline; text-underline-offset: .22em; }
