*{
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
    width: 100%;
    min-height: 100%;
    overflow-x: clip;
}
body{
    margin: 0%;
    padding: 0%;
    width: 100%;
    min-width: 0;
    overflow-x: clip;
    overflow-wrap: anywhere;
}
body { --layout-gutter: clamp(12px, 3vw, 40px); }
main, header, footer, section, article, figure, div, nav { min-width: 0; }
img, video { max-width: 100%; }

/*Fonts*/
@font-face {
    font-family: PingFang;
    src: url(Fonts/PINGFANG\ REGULAR.TTF);
}
@font-face {
    font-family: FZXZTFW;
    src: url(Fonts/FZXZTFW.TTF);
}
@font-face {
    font-family: Testtype sketchbook;
    src: url(Fonts/TESTTYPE-SKETCHBOOK.OTF);
}
@font-face {
    font-family: Testtype trackpad;
    src: url(Fonts/TESTTYPE-TRACKPAD.OTF);
}

/*header*/
.site-header{
    position: fixed;
    top: 20px;
    left: 30px;
    width: calc(100% - 70px);

    display: flex;
    justify-content: space-between;

    z-index: 10;
}
.logo{
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    color: black;
}
.logo small {
    font-family: FZXZTFW;
    font-size: 32px;
    line-height: 1.1;
}
.logo span {
    font-family: Testtype trackpad;
    font-size: 32px;
    line-height: .95;
}

/*navigation*/
nav{
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a,
nav button{
    font-family: PingFang;
    font-size: 16px;
    color: black;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0%;
    cursor: pointer;
}

/*main home*/
.home-page {
    --poem-size: clamp(13px, 1.08vw, 17px);
    --strip-width: clamp(30px, 3.2vw, 51px);
}
.home-page .poem-field {
    color: #62625f;
    font-family: PingFang, "Songti SC", serif;
    font-size: var(--poem-size);
}
.Home-firstpage{
    width: 100%;
    height: 100vh;

    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
}
.Home-firstpage h1{
    font-family: Testtype trackpad;
    font-size: 48px;
    color: rgb(42, 42, 42);

    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
}
.explore{
    position: absolute;
    left: 30px;
    bottom: 20px;
    font-family: PingFang;
    font-size: 16px;
    text-decoration: none;
    color: black;
}
.scroll{
    position: absolute;
    right: 30px;
    bottom: 20px;
    font-family: PingFang;
    font-size: 16px;
    text-decoration: none;
    color: black;
}

.Home-Secondpage{
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0;
}
.Home-Secondpage h2{
    margin-top: 150px;
    font-family: Testtype trackpad;
    font-size: 48px;
    font-weight: normal;
}
.About-List{
    margin-top: 130px;
}
.About-List a{
    display: block;
    margin-bottom: 40px;
    font-family: Testtype trackpad;
    font-size: 35px;
    font-weight: normal;
    color: black;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.About-List a:hover{
    transform: scale(1.1);
}
.dots {
    margin-top: 40px;
    font-size: 35px;
    letter-spacing: 3px;
    transition: transform 0.3s ease;
}
.dots:hover{
    transform: scale(1.1);
}
.Home-Thirdpage{
    width: 100%;
    min-height: 100vh;
    position: relative;
    display: flow-root;
}
.folk-main-video{
    position: absolute;
    left: 0;
    top: 130px;
    width: 45%;
    max-width: 100%;
}
.folk-main-video video{
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}
.folk-ninesongs-intro {
    position: relative;
    width: max-content;
    margin: 130px 7% 0 auto;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
}
.ninesongs-text-circle {
    position: relative;
    margin: 80px 3% 80px auto;
    width: 190px;
    height: 190px;
}
.circle-text1{
    position: relative;
    width: 190px;
    height: 190px;
    display: block;
    text-decoration: none;
    color: black;
    font-family: Testtype sketchbook;
    font-size: 20px;
    animation: circleRotate 15s linear infinite;
}
.circle-text1 span {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: 
    translate(-50%, -50%) 
    rotate(calc(360deg / 12 * var(--i))) 
    translateY(-80px);
}
@media (max-width: 800px){
    .folk-main-video{
        position: relative;
        left: auto;
        top: auto;
        width: 90%;
        margin: 130px auto 0;
    }
    .folk-ninesongs-intro{
        position: relative;
        top: auto;
        right: auto;
        width: 90%;
        margin: 60px auto 0;
        display: flex;
        justify-content: flex-end;
        gap: 0;
    }
    .ninesongs-text-circle{
        position: relative;
        right: auto;
        bottom: auto;
        width: 190px;
        height: 190px;
        margin: 120px 5% 100px auto;
    }  
    .footer-menu {
        margin-left: 40%;
    }
}

.Home-Fourthpage{
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2vh;
    overflow-x: clip;
}
.Home-Fourthpage h2{
    margin-top: 100px;
    font-family: Testtype trackpad;
    font-size: 48px;
    font-weight: normal;
    text-align: center;
}
.Folktales-video{
    width: 42%;
    min-width: 0;
    margin-top: 80px;
}
.Folktales-video video{
    width: 100%;
    display: block;
}
.Watergrandma-author{
    width: 42%;
    min-width: 0;
    margin-top: 5px;
    font-size: 15px;
    color: black;
    text-decoration: none;
    font-family: PingFang;
}
.Folktales-intro{
    width: 100%;
    margin-top: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}
.Folktales-text{
    width: 100%;
    font-family: Testtype trackpad;
    font-size: 35px;
    font-weight: normal;
    color: black;
    text-decoration: none;
    transition: transform 0.3s ease;
    text-align: center;
}
.Folktales-text:hover{
    transform: scale(1.1);
}
.Folktales-text-circle{
    width: 190px;
    height: 190px;
    margin-top: 120px;
}
.circle-text2{
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    color: black;
    text-decoration: none;
    animation: circleRotate 15s linear infinite;
}
.circle-text2 span{
    position: absolute;
    left: 50%;
    top: 50%;

    transform: 
    translate(-50%, -50%) 
    rotate(calc(360deg / 9 * var(--i))) 
    translateY(-60px);

    font-family: Testtype sketchbook;
    font-size: 14px;
}

.Home-fifthpage {
    width: 100%;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding-top: 20px;
}
.Home-fifthpage h2 {
    margin-top: 200px;
    font-family: Testtype trackpad;
    font-size: 48px;
    font-weight: normal;
}
.NurseryRhyme-video {
    width: 45%;
    min-width: 0;
    margin-top: 80px;
}
.NurseryRhyme-video video {
    width: 100%;
    display: block;
}
.underground {
    margin: 12px 0 0 0;

    font-family: PingFang;
    font-size: 15px;
    text-align: center;
}
.NurseryRhyme-text {
    width: max-content;
    margin-top: 100px;

    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: flex-start;
}
.NurseryRhyme-text-circle {
    width: 160px;
    height: 160px;
    margin-top: 100px;
}
.circle-text3 {
    position: relative;

    width: 100%;
    height: 100%;

    display: block;

    color: black;
    text-decoration: none;

    animation: circleRotate 15s linear infinite;
}
.circle-text3 span {
    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%)
        rotate(calc(360deg / 12 * var(--i)))
        translateY(-55px);

    font-family: Testtype sketchbook;
    font-size: 14px;
}

@keyframes circleRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.Home-Sixthpage{
    width: 100%;
    min-height: 100vh;
    padding-top: 300px;
}

.Home-Sixthpage h2{
    margin-top: 0;
    font-family: Testtype trackpad;
    font-size: 35px;
    font-weight: normal;
}
.timeline-wrapper{
    width: 100%;
    overflow: hidden;
    margin-top: 160px;
    cursor: grab;
}
.timeline{
    width: 100%;
    height: 80px;
    position: relative;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid black;
}
.timeline:active{
    cursor: grabbing;
}
.timeline-item{
    width: 150px;
    position: relative;
    text-align: center;
}
.timeline-item::before{
    content: "";
    position: absolute;
    top: -14px;
    left: 50%;
    width: 1px;
    height: 14px;
    background: black;
}
.year{
    display: block;
    margin-top: 12px;
    font-family: Testtype trackpad;
    font-size: 25px;
}
.learn-more{
    display: block;
    width: fit-content;
    margin: 50px 20px 0 auto;

    color: black;
    font-family: PingFang;
    font-size: 16px;
    text-decoration: none;

    border: 1px solid black;
    padding: 3px 5px;
}
.story-write{
    margin-top: 180px;
    text-align: center;
}

.story-write h3{
    margin: 100px 0 35px 0;

    font-family: Testtype trackpad;
    font-size: 30px;
    font-weight: normal;
}

.story-write input{
    width: min(420px, 100%);
    height: 25px;

    font-family: PingFang;
    font-size: 14px;

    padding: 0 5px;
}

.story-write button{
    display: block;

    margin: 35px auto 0;

    background: white;
    border: 1px solid black;

    font-family: PingFang;
    font-size: 14px;

    padding: 4px 6px;
    cursor: pointer;
}
.footer {
    width: 100%;
    height: 330px;
    background-color: black;
    color: white;

    position: relative;
    padding: 30px 40px;
    box-sizing: border-box;
    margin-top: 200px;
}
.footer-logo {
    font-family: Testtype trackpad;
    font-size: 40px;
    line-height: 0.9;
}

.footer-logo span {
    font-family: FZXZTFW;
    font-size: 35px;
}
.footer-menu {
    position: absolute;
    left: 38%;
    top: 100px;

    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-menu a {
    color: white;
    text-decoration: none;
    font-family: PingFang;
    font-size: 16px;
}
.footer-copy {
    position: absolute;
    left: 40px;
    bottom: 20px;

    font-family: PingFang;
    font-size: 12px;
}

/* Home footer: social icons align with the bottom copyright row. */
.home-page .footer-social {
    width: auto;
    max-width: 100%;
    
    position: absolute;
    right: 40px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.home-page .footer-social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: opacity .25s ease, transform .25s ease;
}
.home-page .footer-social img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.home-page .footer-social a:hover { opacity: .75; transform: translateY(-3px); }
.home-page .footer-social a:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
@media (max-width: 800px) {
    .home-page {
        --strip-width: clamp(23px, 5.9vw, 38px);
        --poem-size: clamp(12px, 2.65vw, 15px);
    }
}
@media (max-width: 600px) {
    .home-page .footer {
        height: auto;
        min-height: 330px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 30px 20px;
        padding: 30px 22px 22px;
    }
    .home-page .footer-logo { font-size: clamp(28px, 7vw, 40px); }
    .home-page .footer-menu { position: static; grid-column: 2; grid-row: 1; margin: 0; }
    .home-page .footer-social { position: static; grid-column: 1 / -1; grid-row: 2; }
    .home-page .footer-copy { position: static; grid-column: 1 / -1; grid-row: 3; }
}
@media (prefers-reduced-motion: reduce) {
    .home-page .footer-social a { transition: none; }
    .home-page .footer-social a:hover { transform: none; }
}

/*Nine Songs Page*/
.ninesongs-page {
    --ink: #62625f;
    --page-gutter: clamp(20px, 2.4vw, 42px);
    --poem-size: clamp(13px, 1.08vw, 17px);
    --strip-width: clamp(30px, 3.2vw, 51px);
    --circle-size: clamp(110px, 10vw, 160px);
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: PingFang, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.ninesongs-page a { color: inherit; text-decoration: none; }
.ninesongs-page a:focus-visible { outline: 1px solid currentColor; outline-offset: 7px; }
.ninesongs-page .site-header {
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(94px, 8.2vw, 132px);
    padding: 22px var(--page-gutter) 0;
    align-items: flex-start;
    z-index: 5;
}
.ninesongs-page .logo { gap: 9px; color: #494947; }
.ninesongs-page .logo small { font-size: clamp(22px, 2vw, 30px); line-height: .95; }
.ninesongs-page .logo span { font-size: clamp(23px, 2.1vw, 32px); line-height: .86; }
.ninesongs-page .nav { gap: clamp(20px, 2.4vw, 38px); padding-top: 15px; }
.ninesongs-page .nav a,
.ninesongs-page .lang-label {
    font-family: PingFang, Arial, sans-serif;
    font-size: clamp(12px, 1.15vw, 16px);
    color: var(--ink);
}
.ninesongs-page .nav a { transition: color .2s ease; }
.ninesongs-page .nav a:hover { color: #111; }
.ninesongs-page .ninesongs-main { width: 100%; max-width: 1800px; margin-inline: auto; }
.ninesongs-page .song-section { position: relative; min-height: 71vw; scroll-margin-top: 28px; }
.ninesongs-page .song-heading { position: absolute; left: var(--page-gutter); top: 0; margin: 0; }
.ninesongs-page .song-heading h1,
.ninesongs-page .song-heading h2,
.ninesongs-page .footer-heading {
    margin: 0;
    font-family: "Testtype sketchbook", sans-serif;
    font-size: clamp(30px, 3vw, 52px);
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -.035em;
}
.ninesongs-page .song-heading h1 + h2 { margin-top: 25px; }
.ninesongs-page .song-intro {
    position: absolute;
    margin: 0;
    width: 39%;
    max-width: 590px;
    font-size: clamp(14px, 1.22vw, 19px);
    line-height: 1.35;
    font-weight: 400;
}
.ninesongs-page .song-intro p { margin: 0; }

.ninesongs-page .song-intro span {
    display: inline-block;
    position: relative;
    vertical-align: baseline;
    transform-origin: 50% 100%;
    animation: song-word-arrive .85s both;
    animation-delay: calc(var(--word, 0) * 15ms);
    transition: translate .45s ease, rotate .45s ease, color .3s ease;
}
@keyframes song-word-arrive {
    from { opacity: 0; transform: translateY(20px) rotate(3deg); }
    to { opacity: 1; transform: translateY(0) rotate(0); }
}
@supports (animation-timeline: view()) {
    .ninesongs-page .song-intro { view-timeline-name: --paragraph; view-timeline-axis: block; }
    .ninesongs-page .song-intro span {
        animation: song-word-arrive 1s both;
        animation-timeline: --paragraph;
        animation-range: entry 0% entry 100%;
    }
    .ninesongs-page .song-intro span:nth-child(3n + 2) { animation-range: entry 8% entry 100%; }
    .ninesongs-page .song-intro span:nth-child(3n) { animation-range: entry 16% entry 100%; }
}

.ninesongs-page .poem-field {
    position: absolute;
    display: flex;
    align-items: flex-start;
    font-family: PingFang, "Songti SC", serif;
    font-size: var(--poem-size);
}
:is(.ninesongs-page, .home-page) .poem-strip {
    position: relative;
    flex: 0 0 var(--strip-width);
    width: var(--strip-width);
    padding: 0 calc((var(--strip-width) - 1.5em) / 2);
}
:is(.ninesongs-page, .home-page) .poem-line {
    display: block;
    writing-mode: vertical-rl;
    text-orientation: upright;
    white-space: nowrap;
    line-height: 1.5;
    letter-spacing: .27em;
    padding-block: .25em;
    transform-origin: 50% 12%;
    transition: transform .7s cubic-bezier(.2, .7, .2, 1), color .4s ease;
}
:is(.ninesongs-page, .home-page) .poem-zone { display: none; position: absolute; inset: 0; z-index: 2; }
:is(.ninesongs-page, .home-page) .poem-zone--top { clip-path: polygon(0 0, 100% 0, 50% 50%); }
:is(.ninesongs-page, .home-page) .poem-zone--right { clip-path: polygon(100% 0, 100% 100%, 50% 50%); }
:is(.ninesongs-page, .home-page) .poem-zone--bottom { clip-path: polygon(0 100%, 100% 100%, 50% 50%); }
:is(.ninesongs-page, .home-page) .poem-zone--left { clip-path: polygon(0 0, 50% 50%, 0 100%); }
.ninesongs-page .song-circle {
    display: block;
    position: absolute;
    width: var(--circle-size);
    height: var(--circle-size);
    border-radius: 50%;
}
.ninesongs-page .circle-type {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    font-family: "Testtype sketchbook", sans-serif;
    font-size: clamp(17px, 1.6vw, 25px);
    animation: circleRotate 24s linear infinite;
}
.ninesongs-page .circle-type span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(calc(360deg / var(--letters) * var(--i)))
        translateY(calc(var(--circle-size) * -.39));
}
.ninesongs-page .song-circle:focus-visible .circle-type { animation-play-state: paused; }

.ninesongs-page [id="xiang-jun"] .poem-field { top: 0; right: var(--page-gutter); }
.ninesongs-page [id="xiang-jun"] .song-intro { left: var(--page-gutter); bottom: 10vw; }
.ninesongs-page [id="xiang-jun"] .song-circle { left: var(--page-gutter); bottom: calc(10vw + 130px); }

.ninesongs-page [id="xiang-furen"] { min-height: 81vw; }
.ninesongs-page [id="xiang-furen"] .poem-field { top: 1vw; left: 50%; transform: translateX(-50%); }
.ninesongs-page [id="xiang-furen"] .song-heading { top: auto; bottom: 21vw; }
.ninesongs-page [id="xiang-furen"] .song-intro { left: var(--page-gutter); bottom: 10vw; width: 32%; }
.ninesongs-page [id="xiang-furen"] .song-circle { right: var(--page-gutter); bottom: 10vw; }
.ninesongs-page [id="xiang-furen"] .circle-type { animation-direction: reverse; }

.ninesongs-page [id="shan-gui"],
.ninesongs-page [id="guo-shang"] { min-height: 65vw; }
.ninesongs-page [id="shan-gui"] .poem-field { top: 0; left: var(--page-gutter); }
.ninesongs-page [id="shan-gui"] .song-heading { left: auto; right: var(--page-gutter); text-align: right; }
.ninesongs-page [id="shan-gui"] .song-intro { top: 6.5vw; right: var(--page-gutter); width: 30%; }
.ninesongs-page [id="shan-gui"] .song-circle { right: var(--page-gutter); bottom: 7vw; }
.ninesongs-page [id="guo-shang"] .poem-field { top: 0; right: var(--page-gutter); }
.ninesongs-page [id="guo-shang"] .song-heading { top: auto; bottom: 18vw; }
.ninesongs-page [id="guo-shang"] .song-intro { left: var(--page-gutter); bottom: 7vw; width: 35%; }
.ninesongs-page [id="guo-shang"] .song-circle { right: 21%; bottom: 7vw; }

.ninesongs-page .ninesongs-footer {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px 12%;
    min-height: 31vw;
    padding: 38px var(--page-gutter) 26px;
    background: #050505;
    color: #aaa;
    scroll-margin-top: 0;
}
.ninesongs-page .footer-heading { grid-column: 1 / -1; align-self: start; }
.ninesongs-page .footer-description {
    max-width: 920px;
    align-self: end;
    font-size: clamp(13px, 1.14vw, 18px);
    line-height: 1.45;
}
.ninesongs-page .footer-description p { margin: 0 0 1em; }
.ninesongs-page .footer-navigation {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: end;
    gap: 20px;
    padding-right: 12px;
}
.ninesongs-page .footer-navigation a {
    color: #aaa;
    font-size: clamp(14px, 1.4vw, 21px);
    transition: color .25s ease, transform .25s ease;
}
.ninesongs-page .footer-navigation a:hover { color: #fff; transform: translateX(4px); }
.ninesongs-page .footer-credit { grid-column: 1; grid-row: 3; margin: 0; font-size: 12px; align-self: end; }
.ninesongs-page .footer-social { grid-column: 2; grid-row: 3; display: flex; align-items: center; gap: 16px; }
.ninesongs-page .footer-social svg { display: block; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; }
@media (hover: hover) and (pointer: fine) {
    :is(.ninesongs-page, .home-page) .poem-zone { display: block; }
    :is(.ninesongs-page, .home-page) .poem-strip:hover .poem-line { color: #252525; }
    :is(.ninesongs-page, .home-page) .poem-zone--top:hover ~ .poem-line { transform: translateY(-22px) rotate(.8deg); }
    :is(.ninesongs-page, .home-page) .poem-zone--right:hover ~ .poem-line { transform: translate(14px, 3px) rotate(1.8deg); }
    :is(.ninesongs-page, .home-page) .poem-zone--bottom:hover ~ .poem-line { transform: translateY(22px) rotate(-.8deg); }
    :is(.ninesongs-page, .home-page) .poem-zone--left:hover ~ .poem-line { transform: translate(-14px, -3px) rotate(-1.8deg); }
    .ninesongs-page .song-intro:hover span:nth-child(3n + 1) { translate: 0 -4px; rotate: -2deg; }
    .ninesongs-page .song-intro:hover span:nth-child(3n + 2) { translate: 0 3px; rotate: 1deg; }
    .ninesongs-page .song-intro:hover span:hover { translate: 0 -9px; rotate: -4deg; color: #171717; }
    .ninesongs-page .song-circle:hover .circle-type { animation-play-state: paused; }
}
@media (min-width: 801px) and (max-width: 1100px) {
    .ninesongs-page .song-section { min-height: 760px; }
    .ninesongs-page [id="xiang-furen"] { min-height: 950px; }
    .ninesongs-page [id="shan-gui"] { min-height: 790px; }
    .ninesongs-page [id="guo-shang"] { min-height: 750px; }
    .ninesongs-page [id="xiang-furen"] .song-heading { top: 650px; bottom: auto; }
    .ninesongs-page [id="xiang-furen"] .song-intro { top: 715px; bottom: auto; width: 40%; }
    .ninesongs-page [id="guo-shang"] .song-heading { top: 500px; bottom: auto; }
    .ninesongs-page [id="guo-shang"] .song-intro { top: 565px; bottom: auto; width: 43%; }
}
@media (max-width: 800px) {
    .ninesongs-page {
        --page-gutter: 22px;
        --strip-width: clamp(23px, 5.9vw, 38px);
        --poem-size: clamp(12px, 2.65vw, 15px);
        --circle-size: 112px;
    }
    .ninesongs-page .site-header { height: 105px; padding-top: 20px; }
    .ninesongs-page .nav { padding-top: 7px; gap: 18px; }
    .ninesongs-page .song-section,
    .ninesongs-page [id="xiang-furen"],
    .ninesongs-page [id="shan-gui"],
    .ninesongs-page [id="guo-shang"] {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        min-height: 0;
        padding: 22px var(--page-gutter) 110px;
    }
    .ninesongs-page .song-section .song-heading,
    .ninesongs-page .song-section .poem-field,
    .ninesongs-page .song-section .song-intro,
    .ninesongs-page .song-section .song-circle { position: relative; inset: auto; transform: none; margin: 0; }
    .ninesongs-page .song-section .song-heading { order: 0; text-align: left; margin-bottom: 50px; }
    .ninesongs-page .song-heading h1,
    .ninesongs-page .song-heading h2,
    .ninesongs-page .footer-heading { font-size: clamp(28px, 5.7vw, 42px); }
    .ninesongs-page .song-section .poem-field { order: 1; align-self: center; margin-bottom: 50px; }
    :is(.ninesongs-page, .home-page) .poem-line { letter-spacing: .22em; }
    .ninesongs-page .song-section .song-intro { order: 2; width: 100%; max-width: 470px; line-height: 1.6; font-size: 14px; }
    .ninesongs-page .song-section .song-circle { order: 3; align-self: flex-end; margin-top: 30px; }
    .ninesongs-page .ninesongs-footer { min-height: 0; padding: 32px var(--page-gutter); grid-template-columns: 1fr; gap: 30px; }
    .ninesongs-page .footer-heading { grid-column: auto; }
    .ninesongs-page .footer-credit,
    .ninesongs-page .footer-social { grid-column: auto; grid-row: auto; }
    .ninesongs-page .footer-navigation { flex-direction: row; flex-wrap: wrap; gap: 18px 24px; padding: 0; }
    .ninesongs-page .footer-description { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    html:has(.ninesongs-page) { scroll-behavior: auto; }
    .ninesongs-page *,
    .ninesongs-page *::before,
    .ninesongs-page *::after { animation: none !important; transition: none !important; }
    .ninesongs-page .song-intro span { opacity: 1; transform: none; translate: none !important; rotate: none !important; }
    :is(.ninesongs-page, .home-page) .poem-strip .poem-line { transform: none; transition: none; }
    :is(.ninesongs-page, .home-page) .poem-zone { display: none; }
}


/* Story pages share navigation and audio controls; each story keeps its own layout. */
html:has(> body:is(.xiangjun-story, .xiangfuren-story)) { background: #000; color-scheme: dark; }
body.xiangjun-story { min-height: 100vh; margin: 0; background: #000; color: #999; font-family: Arial, sans-serif; font-size: 14px; }
:is(.xiangjun-story, .xiangfuren-story) a { color: inherit; text-decoration: none; }
:is(.xiangjun-story, .xiangfuren-story) button { font: inherit; }
:is(.xiangjun-story, .xiangfuren-story) a:focus-visible,
:is(.xiangjun-story, .xiangfuren-story) button:focus-visible,
:is(.xiangjun-story, .xiangfuren-story) summary:focus-visible,
.xiangjun-story .story-copy:focus-visible,
.xiangjun-story .story-interlude:focus-visible { outline: 1px solid #aaa; outline-offset: 7px; }
:is(.xiangjun-story, .xiangfuren-story) .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.xiangjun-story .intro-state { position: fixed; top: 0; left: 0; }
:is(.xiangjun-story, .xiangfuren-story) .story-header { position: absolute; top: 28px; left: 24px; z-index: 2; font-family: "Testtype sketchbook", sans-serif; text-transform: uppercase; color: #8d8d8d; }
:is(.xiangjun-story, .xiangfuren-story) .series-title { display: block; font-size: clamp(24px, 3.5vw, 43px); line-height: 1.2; }
:is(.xiangjun-story, .xiangfuren-story) .story-header p { margin: 14px 0 0; font-size: clamp(22px, 2.7vw, 34px); }
.xiangjun-story .story-introduction { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 155px 32px 100px; }
.xiangjun-story .intro-card { display: none; width: min(100%, 590px); text-align: center; animation: xj-sentence-in .9s both; }
.xiangjun-story label.intro-card { cursor: pointer; padding: 50px 18px; }
.xiangjun-story .intro-line { display: block; font-size: clamp(17px, 1.65vw, 22px); line-height: 1.55; text-wrap: balance; }
.xiangjun-story .intro-hint { display: block; margin-top: 48px; color: #696969; font-size: 11px; letter-spacing: .06em; }
.xiangjun-story #intro-1:checked ~ main .intro-card--1,
.xiangjun-story #intro-2:checked ~ main .intro-card--2,
.xiangjun-story #intro-3:checked ~ main .intro-card--3,
.xiangjun-story #intro-4:checked ~ main .intro-card--4,
.xiangjun-story #intro-5:checked ~ main .intro-card--5 { display: block; }
.xiangjun-story #intro-1:focus-visible ~ main .intro-card--1,
.xiangjun-story #intro-2:focus-visible ~ main .intro-card--2,
.xiangjun-story #intro-3:focus-visible ~ main .intro-card--3,
.xiangjun-story #intro-4:focus-visible ~ main .intro-card--4,
.xiangjun-story #intro-5:focus-visible ~ main .intro-card--5 { outline: 1px solid #aaa; outline-offset: 8px; }
.xiangjun-story .intro-card h1 { margin: 0; color: #aaa; font-family: "Testtype sketchbook", sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 4.2vw, 56px); }
.xiangjun-story .begin-reading { display: block; margin-top: 100px; font-size: 13px; line-height: 1.7; }
.xiangjun-story .begin-reading span { display: block; margin-top: 25px; color: #6a6a6a; font-size: 11px; letter-spacing: .1em; }
@keyframes xj-sentence-in { from { opacity: 0; transform: translateY(16px); filter: blur(3px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
/* 点击到第五步再显示故事正文。 */
.xiangjun-story .story-content { display: none; width: min(100%, 1600px); margin: 0 auto; padding: 20px 24px 100px; scroll-margin-top: 32px; }
.xiangjun-story #intro-5:checked ~ main .story-content { display: block; }
.xiangjun-story .story-scene { display: flow-root; }
.xiangjun-story .image-reveal { position: relative; margin: 0; background: #000; }
.xiangjun-story .image-reveal img { display: block; width: 100%; height: auto; opacity: .3; transition: opacity .7s ease; }
.xiangjun-story .story-copy { width: min(51%, 630px); font-size: clamp(12px, 1.25vw, 16px); line-height: 1.45; }
.xiangjun-story .story-copy p { margin: 0 0 1em; }
/* 与九歌英文相同：逐词浮现，段落悬浮轻微错落，单词悬浮单独上移。 */
.xiangjun-story .story-word { display: inline-block; position: relative; vertical-align: baseline; transform-origin: 50% 100%; animation: xj-word-arrive .85s both; animation-delay: calc(var(--word, 0) * 15ms); transition: translate .45s ease, rotate .45s ease, color .3s ease; }
@keyframes xj-word-arrive { from { opacity: 0; transform: translateY(20px) rotate(3deg); } to { opacity: 1; transform: translateY(0) rotate(0); } }
/* 仅悬浮/聚焦对应文字时提高图片清晰度，不绑定图片 hover。 */
.xiangjun-story .story-scene:has(.story-copy:focus-visible) .image-reveal img { opacity: 1; }
.xiangjun-story .story-content:has(.copy-three:focus-visible) .image-four img { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
    .xiangjun-story .story-scene:has(.story-copy:hover) .image-reveal img { opacity: 1; }
    .xiangjun-story .story-content:has(.copy-three:hover) .image-four img { opacity: 1; }
    .xiangjun-story :is(.story-copy, .story-interlude):hover .story-word:nth-child(3n + 1) { translate: 0 -4px; rotate: -2deg; }
    .xiangjun-story :is(.story-copy, .story-interlude):hover .story-word:nth-child(3n + 2) { translate: 0 3px; rotate: 1deg; }
    .xiangjun-story :is(.story-copy, .story-interlude):hover .story-word:hover { translate: 0 -9px; rotate: -4deg; color: #eee; }
}
.xiangjun-story .image-one { width: 65%; }
.xiangjun-story .copy-one { margin-top: 20px; }
.xiangjun-story .scene-two { margin-top: 18vw; }
.xiangjun-story .image-two { width: 52%; margin-left: auto; }
.xiangjun-story .copy-two { margin-top: 11vw; }
.xiangjun-story .story-interlude { margin: 18vw auto 20vw; text-align: center; font-size: clamp(16px, 1.75vw, 22px); line-height: 1.5; }
.xiangjun-story .image-three { width: 88%; }
.xiangjun-story .copy-three { margin-top: 22px; }
.xiangjun-story .scene-four { margin-top: 18vw; }
.xiangjun-story .image-four { width: 49%; margin-left: auto; }
.xiangjun-story .scene-five { margin-top: 17vw; }
.xiangjun-story .image-five { width: 35%; }
.xiangjun-story .farewell { width: min(54%, 660px); margin: 18vw auto 14vw; text-align: center; }
.xiangjun-story .final-illustration { width: 66%; margin: 0 auto; }
.xiangjun-story .final-picture { position: relative; }
.xiangjun-story .final-picture img { display: block; width: 100%; height: auto; opacity: .85; }
.xiangjun-story .final-title { position: absolute; bottom: 3%; left: 0; width: 100%; text-align: center; color: #fff; opacity: .85; font-family: "Testtype sketchbook", sans-serif; text-transform: uppercase; font-size: clamp(30px, 4vw, 54px); text-shadow: 0 2px 16px #000; }
.xiangjun-story .final-illustration figcaption { margin-top: 18px; color: #686868; font-size: 11px; line-height: 1.6; }
@supports (animation-timeline: view()) {
    .xiangjun-story .story-copy p,
    .xiangjun-story p.story-copy,
    .xiangjun-story .story-interlude { view-timeline-name: --xj-paragraph; view-timeline-axis: block; }
    .xiangjun-story .story-word { animation: xj-word-arrive 1s both; animation-timeline: --xj-paragraph; animation-range: entry 0% entry 100%; }
    .xiangjun-story .story-word:nth-child(3n + 2) { animation-range: entry 8% entry 100%; }
    .xiangjun-story .story-word:nth-child(3n) { animation-range: entry 16% entry 100%; }
    .xiangjun-story .final-picture { view-timeline-name: --xj-final-art; view-timeline-axis: block; }
    /* 图片和白色标题使用同一条滚动时间线，同步淡入。 */
    .xiangjun-story .final-picture img,
    .xiangjun-story .final-title { animation: xj-final-clear 1s both; animation-timeline: --xj-final-art; animation-range: entry 0% cover 50%; }
}
@keyframes xj-final-clear { from { opacity: .12; filter: blur(3px); } to { opacity: 1; filter: blur(0); } }
/* 固定章节抽屉；HTML popover 提供外部点击关闭。 */
:is(.xiangjun-story, .xiangfuren-story) .chapter-tab { position: fixed; top: 15vh; right: 0; z-index: 10; width: 22px; min-height: 165px; padding: 12px 5px; border: 0; background: #727272; color: #e0e0e0; writing-mode: vertical-rl; font-size: 9px; letter-spacing: .08em; cursor: pointer; }
:is(.xiangjun-story, .xiangfuren-story) .chapter-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(570px, 86vw); height: 100dvh; max-height: none; padding: 55px 22px 40px; border: 0; border-left: 1px solid #303030; color: #c5c5c5; background: #030303; overflow-y: auto; transform: translateX(100%); opacity: 0; transition: transform .45s ease, opacity .45s ease, display .45s allow-discrete, overlay .45s allow-discrete; }
:is(.xiangjun-story, .xiangfuren-story) .chapter-drawer:popover-open { transform: translateX(0); opacity: 1; }
@starting-style { :is(.xiangjun-story, .xiangfuren-story) .chapter-drawer:popover-open { transform: translateX(100%); opacity: 0; } }
:is(.xiangjun-story, .xiangfuren-story) .chapter-drawer::backdrop { background: rgb(0 0 0 / .6); }
:is(.xiangjun-story, .xiangfuren-story) .drawer-close { position: absolute; top: 12px; right: 18px; border: 0; background: transparent; color: #aaa; font-size: 28px; cursor: pointer; }
:is(.xiangjun-story, .xiangfuren-story) .chapter-drawer nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
:is(.xiangjun-story, .xiangfuren-story) .chapter-drawer nav > a { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; min-height: 21vh; padding: 35px 0 25px; border-bottom: 1px solid #737373; color: #c5c5c5; font-family: "Testtype sketchbook", sans-serif; font-size: clamp(26px, 3.3vw, 46px); text-transform: uppercase; }
:is(.xiangjun-story, .xiangfuren-story) .chapter-status { display: none; flex: 0 0 auto; font-family: Arial, sans-serif; font-size: 14px; text-transform: none; white-space: nowrap; }
:is(.xiangjun-story, .xiangfuren-story) .chapter-link[aria-current="page"] .chapter-status { display: inline-flex; align-items: baseline; }
:is(.xiangjun-story, .xiangfuren-story) .reading-dots { display: inline-flex; margin-left: .15em; }
:is(.xiangjun-story, .xiangfuren-story) .reading-dots span { display: inline-block; width: .32em; animation: xj-reading-dot 1.8s ease-in-out infinite; animation-play-state: paused; }
:is(.xiangjun-story, .xiangfuren-story) .reading-dots span:nth-child(2) { animation-delay: .2s; }
:is(.xiangjun-story, .xiangfuren-story) .reading-dots span:nth-child(3) { animation-delay: .4s; }
:is(.xiangjun-story, .xiangfuren-story) .chapter-drawer:popover-open .reading-dots span { animation-play-state: running; }
@keyframes xj-reading-dot {
    0%, 60%, 100% { opacity: .35; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-2px); }
}
:is(.xiangjun-story, .xiangfuren-story) .chapter-drawer nav > a { transition: color .25s ease, padding-left .25s ease; }
:is(.xiangjun-story, .xiangfuren-story) .chapter-drawer nav > a:hover,
:is(.xiangjun-story, .xiangfuren-story) .chapter-drawer nav > a:focus-visible { color: #fff; padding-left: 10px; }
/* Sound stays visible; the native media button actually pauses/resumes audio. */
:is(.xiangjun-story, .xiangfuren-story) .sound-dock {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(365px, calc(100vw - 112px));
    padding: 8px 10px;
    border: 1px solid #292929;
    border-radius: 8px;
    background: rgb(10 10 10 / .94);
    color: #bcbcbc;
    font-size: 12px;
}
:is(.xiangjun-story, .xiangfuren-story) .sound-label { flex: 0 0 auto; }
:is(.xiangjun-story, .xiangfuren-story) .sound-dock audio {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 36px;
    color-scheme: dark;
}
:is(.xiangjun-story, .xiangfuren-story) .sound-dock audio:focus-visible { outline: 1px solid #aaa; outline-offset: 4px; }
@media (max-width: 450px) {
    :is(.xiangjun-story, .xiangfuren-story) .sound-dock { flex-direction: column; align-items: flex-start; gap: 6px; }
    :is(.xiangjun-story, .xiangfuren-story) .sound-dock audio { flex: none; }
}
:is(.xiangjun-story, .xiangfuren-story) .back-link { position: fixed; bottom: 18px; right: 40px; z-index: 11; color: #eee; font-family: Arial, sans-serif; font-size: 54px; line-height: 1; transition: transform .3s ease; }
:is(.xiangjun-story, .xiangfuren-story) .back-link:hover { transform: translateX(-8px); }
@media (hover: none), (pointer: coarse) { .xiangjun-story .image-reveal img { opacity: .85; } }
@media (max-width: 700px) {
    :is(.xiangjun-story, .xiangfuren-story) .story-header { top: 24px; left: 18px; }
    :is(.xiangjun-story, .xiangfuren-story) .series-title { font-size: 24px; }
    :is(.xiangjun-story, .xiangfuren-story) .story-header p { font-size: 22px; }
    .xiangjun-story .story-content { padding: 20px 18px 110px; }
    .xiangjun-story .story-introduction { padding-inline: 25px; }
    .xiangjun-story .intro-line { font-size: 17px; }
    .xiangjun-story .begin-reading { margin-top: 70px; }
    .xiangjun-story .image-one { width: 90%; }
    .xiangjun-story .image-two, .xiangjun-story .image-four { width: 77%; }
    .xiangjun-story .image-three { width: 100%; }
    .xiangjun-story .image-five { width: 58%; }
    .xiangjun-story .story-copy { width: 85%; font-size: 13px; line-height: 1.6; }
    .xiangjun-story .scene-two, .xiangjun-story .scene-four, .xiangjun-story .scene-five { margin-top: 110px; }
    .xiangjun-story .copy-two { margin-top: 70px; }
    .xiangjun-story .story-interlude { margin: 120px 18px; font-size: 17px; }
    .xiangjun-story .farewell { width: 90%; margin: 110px auto; }
    .xiangjun-story .final-illustration { width: 86%; }
    :is(.xiangjun-story, .xiangfuren-story) .chapter-drawer { padding-inline: 16px; }
    :is(.xiangjun-story, .xiangfuren-story) .chapter-drawer nav > a { font-size: clamp(26px, 6vw, 38px); min-height: 21vh; padding-block: 34px 24px; }
    :is(.xiangjun-story, .xiangfuren-story) .chapter-link[aria-current="page"] { flex-wrap: wrap; gap: 9px; }
    :is(.xiangjun-story, .xiangfuren-story) .chapter-status { font-size: 12px; }
    :is(.xiangjun-story, .xiangfuren-story) .chapter-tab { width: 19px; min-height: 140px; font-size: 8px; }
    :is(.xiangjun-story, .xiangfuren-story) .sound-dock { left: 18px; bottom: 16px; }
    :is(.xiangjun-story, .xiangfuren-story) .back-link { right: 26px; bottom: 15px; font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    html:has(> body.xiangjun-story) { scroll-behavior: auto; }
    .xiangjun-story *, .xiangjun-story *::before, .xiangjun-story *::after { animation: none !important; transition: none !important; }
    .xiangjun-story .story-word { opacity: 1; transform: none; translate: none !important; rotate: none !important; }
    .xiangjun-story .final-picture img,
    .xiangjun-story .final-title { opacity: 1; filter: none; }
}

/* Xiang Furen — a quiet, staggered picture story. */
body.xiangfuren-story {
    min-height: 100vh;
    margin: 0;
    background: #000;
    border-bottom: 1px solid #202020;
    color: #8d8d8d;
    font-family: Arial, sans-serif;
    font-size: 14px;
}
.xiangfuren-story .intro-state { position: fixed; top: 0; left: 0; }
.xiangfuren-story .story-introduction {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    min-height: 100svh;
    padding: 155px 30px 100px;
}
.xiangfuren-story .intro-card {
    display: none;
    min-width: 0;
    width: min(100%, 610px);
    text-align: center;
    animation: xf-sentence-in .85s both;
}
.xiangfuren-story label.intro-card { padding: 45px 18px; cursor: pointer; }
.xiangfuren-story .intro-line {
    display: block;
    font-size: clamp(17px, 1.65vw, 22px);
    line-height: 1.6;
    text-wrap: balance;
}
.xiangfuren-story .intro-hint {
    display: block;
    margin-top: 45px;
    color: #696969;
    font-size: 11px;
    letter-spacing: .06em;
}
/* Three sentence clicks lead to the title; only then is the story scrollable. */
.xiangfuren-story #xf-intro-1:checked ~ main .intro-card--1,
.xiangfuren-story #xf-intro-2:checked ~ main .intro-card--2,
.xiangfuren-story #xf-intro-3:checked ~ main .intro-card--3,
.xiangfuren-story #xf-intro-4:checked ~ main .intro-card--4 { display: block; }
.xiangfuren-story #xf-intro-1:focus-visible ~ main .intro-card--1,
.xiangfuren-story #xf-intro-2:focus-visible ~ main .intro-card--2,
.xiangfuren-story #xf-intro-3:focus-visible ~ main .intro-card--3,
.xiangfuren-story #xf-intro-4:focus-visible ~ main .intro-card--4,
.xiangfuren-story .reveal-text:focus-visible { outline: 1px solid #aaa; outline-offset: 8px; }
.xiangfuren-story .intro-card h1 {
    margin: 0;
    color: #aaa;
    font-family: "Testtype sketchbook", sans-serif;
    font-size: clamp(18px, 5.2vw, 52px);
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}
.xiangfuren-story .intro-card--4 { width: min(100%, 760px); }
.xiangfuren-story .begin-reading { display: block; margin-top: 120px; font-size: 15px; line-height: 1.7; }
.xiangfuren-story .begin-reading .reveal-text { display: inline-block; }
.xiangfuren-story .scroll-hint { display: block; margin-top: 25px; color: #777; font-size: 11px; letter-spacing: .1em; }
@keyframes xf-sentence-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.xiangfuren-story .story-content {
    display: none;
    width: min(100%, 1600px);
    margin: 0 auto;
    padding: 20px 24px 150px;
    scroll-margin-top: 36px;
}
.xiangfuren-story #xf-intro-4:checked ~ main .story-content { display: block; }
.xiangfuren-story .story-scene { display: flow-root; }
.xiangfuren-story .story-scene + .story-scene { margin-top: clamp(160px, 18vw, 290px); }
.xiangfuren-story .story-picture { margin: 0; }
.xiangfuren-story .story-picture img { display: block; width: 100%; height: auto; opacity: .85; }
.xiangfuren-story .story-copy {
    margin-top: 22px;
    font-size: clamp(12px, 1.12vw, 17px);
    line-height: 1.5;
}
.xiangfuren-story .story-copy p { margin: 0 0 1.15em; }
.xiangfuren-story .story-copy p:last-child { margin-bottom: 0; }
.xiangfuren-story .reveal-text {
    filter: blur(2px);
    transition: filter .65s ease, color .65s ease;
}
.xiangfuren-story .reveal-text:focus-visible,
.xiangfuren-story .begin-reading:focus-visible .reveal-text,
.xiangfuren-story #xf-intro-1:focus-visible ~ main .intro-card--1 .reveal-text,
.xiangfuren-story #xf-intro-2:focus-visible ~ main .intro-card--2 .reveal-text,
.xiangfuren-story #xf-intro-3:focus-visible ~ main .intro-card--3 .reveal-text { filter: none; color: #c5c5c5; }
@media (hover: hover) and (pointer: fine) {
    .xiangfuren-story .reveal-text:hover,
    .xiangfuren-story .intro-card:hover .reveal-text,
    .xiangfuren-story .begin-reading:hover .reveal-text { filter: none; color: #c5c5c5; }
}
.xiangfuren-story .scene-one .story-picture { width: 48%; }
.xiangfuren-story .scene-one .story-copy { width: 52%; }
.xiangfuren-story .scene-two { width: 50%; margin-left: 26%; }
.xiangfuren-story .scene-two .scene-prelude { margin: 0 0 10px; }
.xiangfuren-story .scene-three .story-picture { width: 39%; }
.xiangfuren-story .scene-three .story-copy { width: 52%; }
.xiangfuren-story .scene-four { width: 48%; margin-left: auto; }
.xiangfuren-story .scene-four .story-picture { width: 80%; margin-left: auto; }
.xiangfuren-story .scene-five { width: 52%; }
.xiangfuren-story .scene-five .story-picture { width: 57%; margin-left: 5%; }
.xiangfuren-story .scene-five .story-picture img {
    aspect-ratio: 1.6;
    object-fit: cover;
    object-position: left;
    clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
}
.xiangfuren-story .scene-six { width: 48%; margin-left: auto; }
.xiangfuren-story .scene-six .story-picture { width: 74%; margin-left: auto; }
.xiangfuren-story .scene-six .story-picture img { clip-path: polygon(0 0, 100% 0, 100% 100%, 18% 100%); }
.xiangfuren-story .scene-seven { width: 54%; margin-inline: auto; }
.xiangfuren-story .story-interlude {
    width: min(90%, 650px);
    margin: clamp(150px, 18vw, 290px) auto clamp(220px, 24vw, 380px);
    text-align: center;
    font-size: clamp(14px, 1.25vw, 18px);
    line-height: 1.6;
}
.xiangfuren-story .scene-eight { width: 54%; }
.xiangfuren-story .scene-eight .story-picture { width: 80%; }
.xiangfuren-story .scene-nine { width: 50%; margin-inline: auto; text-align: center; }
.xiangfuren-story .scene-nine .story-picture { width: 40%; margin-inline: auto; }
.xiangfuren-story .scene-nine .story-copy { margin-top: 55px; }
.xiangfuren-story .scene-ten { width: 50%; margin-inline: auto; text-align: center; }
.xiangfuren-story .scene-ten .story-picture { width: 74%; margin-inline: auto; }
.xiangfuren-story .scene-ten .story-copy { margin-top: 35px; }
.xiangfuren-story .farewell {
    width: min(80%, 860px);
    margin: clamp(180px, 22vw, 350px) auto clamp(160px, 18vw, 290px);
    text-align: center;
    font-size: clamp(17px, 1.75vw, 24px);
    line-height: 1.5;
    text-wrap: balance;
}
.xiangfuren-story .final-illustration { width: 54%; margin: 0 auto; }
.xiangfuren-story .final-picture { position: relative; }
.xiangfuren-story .final-picture img { display: block; width: 100%; height: auto; opacity: .2; }
.xiangfuren-story .final-title {
    position: absolute;
    bottom: 1%;
    left: 0;
    width: 100%;
    color: #ddd;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    font-family: "Testtype sketchbook", sans-serif;
    font-size: clamp(24px, 4vw, 58px);
    font-weight: 400;
    line-height: 1.15;
}
.xiangfuren-story .final-illustration figcaption { margin-top: 24px; color: #696969; font-size: clamp(11px, 1.1vw, 16px); line-height: 1.5; }
/* Touch readers receive clear text without needing a hover gesture. */
@media (hover: none), (pointer: coarse) {
    .xiangfuren-story .reveal-text { filter: none; color: #aaa; }
}
@media (max-width: 700px) {
    .xiangfuren-story .story-introduction { padding-inline: 25px; }
    .xiangfuren-story .begin-reading { margin-top: 85px; }
    .xiangfuren-story .story-content { padding: 20px 18px 115px; }
    .xiangfuren-story .story-scene + .story-scene { margin-top: 130px; }
    .xiangfuren-story .story-copy { font-size: 13px; line-height: 1.65; }
    .xiangfuren-story .scene-one .story-picture { width: 88%; }
    .xiangfuren-story .scene-one .story-copy,
    .xiangfuren-story .scene-three .story-copy { width: 92%; }
    .xiangfuren-story .scene-two { width: 86%; margin-left: auto; }
    .xiangfuren-story .scene-three .story-picture { width: 75%; }
    .xiangfuren-story .scene-four,
    .xiangfuren-story .scene-six { width: 88%; }
    .xiangfuren-story .scene-five { width: 92%; }
    .xiangfuren-story .scene-seven { width: 92%; }
    .xiangfuren-story .story-interlude { margin: 150px auto 180px; }
    .xiangfuren-story .scene-eight { width: 95%; }
    .xiangfuren-story .scene-nine,
    .xiangfuren-story .scene-ten { width: 92%; }
    .xiangfuren-story .scene-nine .story-picture { width: 46%; }
    .xiangfuren-story .farewell { width: 94%; margin: 160px auto 145px; font-size: 17px; }
    .xiangfuren-story .final-illustration { width: 88%; }
    .xiangfuren-story .final-title { font-size: clamp(16px, 5.4vw, 40px); }
}
@media (prefers-reduced-motion: reduce) {
    html:has(> body.xiangfuren-story) { scroll-behavior: auto; }
    .xiangfuren-story *, .xiangfuren-story *::before, .xiangfuren-story *::after { animation: none !important; transition: none !important; }
}

/* Responsive page geometry: content shrinks/reflows instead of widening the document. */
:is(.home-page, .ninesongs-page) > main,
:is(.home-page, .ninesongs-page) > footer { width: 100%; max-width: 100%; }
:is(.home-page, .ninesongs-page) .site-header {
    position: sticky;
    inset: 0 auto auto 0;
    width: 100%;
    height: auto;
    min-height: 90px;
    padding: 18px var(--layout-gutter);
    gap: 16px 24px;
    align-items: center;
    flex-wrap: wrap;
    background: rgb(255 255 255 / .96);
    z-index: 10;
    animation: header-arrive .65s ease both;
}
:is(.home-page, .ninesongs-page) .logo { max-width: 100%; gap: clamp(6px, 1.2vw, 12px); }
:is(.home-page, .ninesongs-page) .logo small { font-size: clamp(18px, 3vw, 30px); }
:is(.home-page, .ninesongs-page) .logo span { font-size: clamp(20px, 3.2vw, 32px); line-height: .95; }
:is(.home-page, .ninesongs-page) .nav {
    max-width: 100%;
    padding: 0;
    flex-wrap: wrap;
    gap: 10px clamp(10px, 2.5vw, 30px);
}
:is(.home-page, .ninesongs-page) .nav :is(a, button, .lang-label) {
    font-size: clamp(12px, 1.5vw, 16px);
    white-space: nowrap;
    transition: color .25s ease, translate .25s ease;
}
:is(.home-page, .ninesongs-page) .nav :is(a, button):hover,
:is(.home-page, .ninesongs-page) .nav :is(a, button):focus-visible { color: #777; translate: 0 -2px; }
@keyframes header-arrive {
    from { opacity: 0; translate: 0 -8px; }
    to { opacity: 1; translate: 0 0; }
}

.home-page .Home-firstpage {
    height: auto;
    min-height: calc(100svh - 90px);
    padding: 80px var(--layout-gutter);
}
.home-page .Home-firstpage h1 { font-size: clamp(22px, 5vw, 48px); max-width: 100%; text-wrap: balance; }
.home-page :is(.explore, .scroll) { font-size: clamp(11px, 2.5vw, 16px); }
.home-page .explore { left: var(--layout-gutter); }
.home-page .scroll { right: var(--layout-gutter); }
.home-page :is(.Home-Secondpage, .Home-Fourthpage, .Home-fifthpage, .Home-Sixthpage) { padding-inline: var(--layout-gutter); }
.home-page :is(.Home-Secondpage, .Home-Fourthpage, .Home-fifthpage) h2 { font-size: clamp(24px, 4.6vw, 48px); max-width: 100%; text-wrap: balance; }
.home-page .About-List { width: 100%; max-width: 1100px; }
.home-page :is(.About-List a, .Folktales-text) { font-size: clamp(20px, 3.4vw, 35px); text-wrap: balance; }
.home-page .Folktales-text:hover,
.home-page .About-List a:hover { transform: translateY(-3px); }
.home-page :is(.Folktales-video, .NurseryRhyme-video, .Watergrandma-author) { max-width: 100%; }
.home-page .Home-Sixthpage h2 { font-size: clamp(22px, 3.4vw, 35px); text-align: center; }
.home-page .story-write { width: 100%; }
.home-page .story-write h3 { font-size: clamp(20px, 3vw, 30px); text-wrap: balance; }
.home-page .story-write input { max-width: 100%; min-width: 0; }
.home-page .timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.home-page .timeline-item { width: auto; min-width: 0; }
.home-page .year { font-size: clamp(11px, 3vw, 25px); }
.home-page .learn-more { max-width: 100%; margin-right: 0; }
.home-page :is(.ninesongs-text-circle, .Folktales-text-circle, .NurseryRhyme-text-circle) {
    --home-circle-size: min(190px, calc(100vw - 2 * var(--layout-gutter)));
    width: var(--home-circle-size);
    height: var(--home-circle-size);
    max-width: 100%;
}
.home-page .NurseryRhyme-text-circle { --home-circle-size: min(160px, calc(100vw - 2 * var(--layout-gutter))); }
.home-page :is(.circle-text1, .circle-text2, .circle-text3) { width: 100%; height: 100%; }
.home-page .circle-text1 { font-size: clamp(12px, 2vw, 20px); }
.home-page .circle-text1 span { transform: translate(-50%, -50%) rotate(calc(360deg / 12 * var(--i))) translateY(calc(var(--home-circle-size) * -.4)); }
.home-page .circle-text2 span { transform: translate(-50%, -50%) rotate(calc(360deg / 9 * var(--i))) translateY(calc(var(--home-circle-size) * -.32)); }
.home-page .circle-text3 span { transform: translate(-50%, -50%) rotate(calc(360deg / 12 * var(--i))) translateY(calc(var(--home-circle-size) * -.34)); }

.home-page .footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 36px 30px;
    height: auto;
    min-height: 330px;
    padding: 35px var(--layout-gutter) 25px;
}
.home-page .footer-logo { grid-column: 1; grid-row: 1; font-size: clamp(20px, 4vw, 40px); line-height: 1.05; }
.home-page .footer-logo span { display: inline-block; font-size: .8em; }
.home-page .footer-menu { position: static; grid-column: 2; grid-row: 1; margin: 0; }
.home-page .footer-copy { position: static; grid-column: 1; grid-row: 2; align-self: end; }
.home-page .footer-social {
    position: static;
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: end;
    flex-wrap: wrap;
    gap: clamp(6px, 2vw, 16px);
}
.home-page .footer-social a { flex: 0 0 36px; width: 36px; height: 36px; }
.ninesongs-page .ninesongs-footer { grid-template-columns: minmax(0, 1fr) auto; }
.ninesongs-page .footer-social { flex-wrap: wrap; }
.ninesongs-page .song-intro span { max-width: 100%; }

/* Every story keeps its own dark canvas, with no fixed-width children outside it. */
:is(.xiangjun-story, .xiangfuren-story) .story-header { left: var(--layout-gutter); max-width: calc(100% - 2 * var(--layout-gutter)); }
:is(.xiangjun-story, .xiangfuren-story) .series-title { font-size: clamp(10px, 3.5vw, 43px); }
:is(.xiangjun-story, .xiangfuren-story) .story-header p { font-size: clamp(12px, 2.7vw, 34px); }
:is(.xiangjun-story, .xiangfuren-story) .story-introduction { grid-template-columns: minmax(0, 1fr); padding-inline: var(--layout-gutter); }
:is(.xiangjun-story, .xiangfuren-story) .intro-card { min-width: 0; max-width: 100%; }
:is(.xiangjun-story, .xiangfuren-story) label.intro-card { padding-inline: 0; }
:is(.xiangjun-story, .xiangfuren-story) .intro-card h1 { font-size: clamp(10px, 6.5vw, 52px); white-space: nowrap; }
:is(.xiangjun-story, .xiangfuren-story) .story-content { max-width: 100%; padding-inline: var(--layout-gutter); }
:is(.xiangjun-story, .xiangfuren-story) .story-word { max-width: 100%; }
:is(.xiangjun-story, .xiangfuren-story) .final-picture { container-type: inline-size; }
:is(.xiangjun-story, .xiangfuren-story) .final-title { font-size: clamp(10px, 4vw, 54px); font-size: min(54px, 8cqi); white-space: nowrap; }
:is(.xiangjun-story, .xiangfuren-story) .chapter-drawer { max-width: 100%; width: min(570px, calc(100% - 12px)); padding-inline: var(--layout-gutter); }
:is(.xiangjun-story, .xiangfuren-story) .chapter-drawer nav > a { flex-wrap: wrap; gap: 10px; font-size: clamp(16px, 4vw, 46px); }
:is(.xiangjun-story, .xiangfuren-story) .chapter-drawer nav > a > span { min-width: 0; max-width: 100%; }
:is(.xiangjun-story, .xiangfuren-story) .chapter-tab { min-height: 0; height: min(165px, 60svh); }
:is(.xiangjun-story, .xiangfuren-story) .sound-dock { left: var(--layout-gutter); width: min(365px, calc(100% - 2 * var(--layout-gutter))); }

@media (max-width: 800px) {
    .home-page :is(.Folktales-video, .NurseryRhyme-video, .Watergrandma-author) { width: min(100%, 640px); }
    .home-page .Home-Sixthpage { padding-top: clamp(100px, 20vw, 200px); }
    .home-page .folk-ninesongs-intro { width: calc(100% - 2 * var(--layout-gutter)); justify-content: center; }
    .home-page .ninesongs-text-circle { margin-inline: auto; }
    :is(.home-page, .ninesongs-page) .poem-field { flex-wrap: wrap; justify-content: center; max-width: 100%; gap: 32px 0; }
    .ninesongs-page { --page-gutter: var(--layout-gutter); }
    .ninesongs-page .song-section .poem-field { width: 100%; }
    .ninesongs-page .song-section .song-heading { max-width: 100%; }
    .ninesongs-page :is(.song-heading h1, .song-heading h2, .footer-heading) { font-size: clamp(18px, 5.7vw, 42px); }
    .ninesongs-page .ninesongs-footer { grid-template-columns: minmax(0, 1fr); }
    .ninesongs-page .footer-description { width: 100%; }
}
@media (max-width: 700px) {
    :is(.xiangjun-story, .xiangfuren-story) .story-content :is(.story-scene, .story-copy, .story-picture, .image-reveal) {
        width: 100%;
        max-width: 100%;
        margin-inline: 0;
    }
    .xiangfuren-story .scene-five .story-picture { width: 65%; margin-inline: auto; }
    .xiangfuren-story .scene-nine .story-picture { width: min(60%, 249px); margin-inline: auto; }
    :is(.xiangjun-story, .xiangfuren-story) .final-illustration { width: 100%; }
}
@media (max-width: 600px) {
    :is(.home-page, .ninesongs-page) .site-header { justify-content: center; gap: 12px; }
    :is(.home-page, .ninesongs-page) .nav { width: 100%; justify-content: center; }
    :is(.home-page, .ninesongs-page) .logo small { font-size: clamp(14px, 5vw, 24px); }
    :is(.home-page, .ninesongs-page) .logo span { font-size: clamp(16px, 5.5vw, 28px); }
    .home-page .footer { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .home-page :is(.footer-logo, .footer-menu, .footer-social, .footer-copy) { grid-column: 1; grid-row: auto; justify-self: start; }
    .home-page .footer-social { grid-row: 3; }
    .home-page .footer-copy { grid-row: 4; }
    :is(.xiangjun-story, .xiangfuren-story) .sound-dock { flex-direction: column; align-items: stretch; gap: 6px; bottom: 12px; }
    :is(.xiangjun-story, .xiangfuren-story) .sound-dock audio { flex: none; }
    :is(.xiangjun-story, .xiangfuren-story) .back-link { right: var(--layout-gutter); bottom: 108px; }
    :is(.xiangjun-story, .xiangfuren-story) .story-content { padding-bottom: 220px; }
}
@media (max-width: 300px) {
    :is(.home-page, .ninesongs-page) .site-header { padding-inline: 8px; }
    :is(.home-page, .ninesongs-page) .nav { gap: 8px; }
    :is(.home-page, .ninesongs-page) .nav :is(a, button, .lang-label) { font-size: 11px; }
    .home-page .NurseryRhyme-text { width: 100%; }
    .home-page .footer-menu a { font-size: 14px; }
    :is(.xiangjun-story, .xiangfuren-story) .intro-line { font-size: 14px; }
    :is(.xiangjun-story, .xiangfuren-story) .intro-hint { font-size: 10px; }
    :is(.xiangjun-story, .xiangfuren-story) .begin-reading { margin-top: 60px; }
}
@media (max-height: 450px) {
    :is(.home-page, .ninesongs-page) .site-header { position: relative; }
}
@media (prefers-reduced-motion: reduce) {
    :is(.home-page, .ninesongs-page) .site-header { animation: none; }
    :is(.home-page, .ninesongs-page) .nav :is(a, button) { transition: none; translate: none; }
}
