:root {
  color-scheme: light;
  --ink: #112f38;
  --navy: #102936;
  --teal: #11625f;
  --deep-teal: #16434a;
  --paper: #f8f5ed;
  --sheet: #fffdf7;
  --muted: #4b6263;
  --rule: #c9ccbf;
  --gold: #b88849;
  --pale-gold: #f4d397;
  --mint: #a6e0d4;
  --serif: "Songti SC", "Noto Serif CJK SC", "STSong", "Source Han Serif SC", "SimSun", serif;
  --latin-serif: Baskerville, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --gutter: clamp(18px, 5vw, 72px);
  --measure: 1280px;
  font: 100%/1.7 var(--sans);
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); }
h1, h2, h3, p, figure, ol, ul, blockquote, dl, dd, pre { margin: 0; }
ul, ol { padding: 0; }
img, video { display: block; max-width: 100%; }
button, input, audio { font: inherit; }
button { color: inherit; }
button, summary, a { touch-action: manipulation; }
a { color: var(--teal); text-underline-offset: .21em; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, audio:focus-visible, video:focus-visible, summary:focus-visible {
  outline: 3px solid #c77721;
  outline-offset: 4px;
}
[hidden] { display: none !important; }
::selection { background: #c8e5d8; color: #102f32; }

.skip-link { position: fixed; top: 8px; left: 12px; z-index: 40; padding: 9px 15px; color: var(--ink); background: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; z-index: 20; top: 0; color: #f8f5ec; background: var(--navy); border-bottom: 1px solid #31515b; }
.header-inner, .page-shell, .site-footer {
  width: min(calc(100% - var(--gutter) * 2), var(--measure));
  margin-inline: auto;
}
.header-inner { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.home-link, .site-header nav a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; white-space: nowrap; }
.home-link { gap: 8px; font-size: .91rem; font-weight: 650; }
.home-link svg { color: var(--pale-gold); }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 2.3vw, 37px); }
.site-header nav a { font-size: .87rem; color: #d4e4df; }
.site-header nav a:hover, .site-header nav a:focus-visible, .home-link:hover { color: #fff1cd; }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: .38em; }
.page-shell { display: grid; grid-template-columns: minmax(0, 1fr); }
.page-shell > * { min-width: 0; }

.work-intro { padding: clamp(32px, 5vw, 70px) 0 25px; }
.eyebrow, .step-eyebrow, .player-kicker { color: var(--teal); font-size: .74rem; font-weight: 700; line-height: 1.5; letter-spacing: .085em; }
.work-intro .eyebrow { display: flex; align-items: center; gap: 12px; font-size: .82rem; }
.work-intro .eyebrow > span, .player-kicker::before { width: 28px; height: 2px; background: var(--gold); }
.title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-top: 16px; }
h1, .section-heading h2, .artwork h2, .player-card h2, .step-body h3, .section-subheading h3, .goals-heading h3 { font-family: var(--serif); }
h1 { font-size: clamp(3.2rem, 7vw, 5.6rem); font-weight: 700; letter-spacing: -.065em; line-height: 1.17; white-space: nowrap; }
.english-title { margin-top: 4px; color: var(--teal); font: italic clamp(1.4rem, 2.8vw, 2.55rem)/1.2 var(--latin-serif); }
.intro-copy { max-width: 27em; margin-top: 20px; color: var(--muted); font-size: 1.04rem; line-height: 1.85; }
.creator { display: flex; align-items: center; gap: 10px; }
.creator-mark { display: grid; place-items: center; flex: 0 0 38px; height: 41px; border: 1px solid #72573c; color: #775739; font: 1.45rem/1 var(--serif); }
.creator p { color: var(--ink); font-weight: 750; font-size: 1.1rem; letter-spacing: .035em; }
.creator p span { color: var(--muted); font-size: .86rem; font-weight: 500; white-space: nowrap; }
.creator time { display: block; margin-top: 3px; color: var(--muted); font: .79rem/1.4 var(--mono); }

.content-section { margin-top: clamp(54px, 7.2vw, 100px); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.section-heading h2 { color: var(--ink); font-size: clamp(1.8rem, 3.5vw, 3.05rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.35; }
.section-heading .eyebrow { margin-bottom: 9px; font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; }
.section-label { color: var(--muted); font-size: .86rem; }
.section-lead { max-width: 58em; margin-top: 15px; color: var(--muted); font-size: 1rem; line-height: 1.85; }
.text-download, .artwork figcaption > a, .site-footer > a {
  display: inline-flex; align-items: center; justify-content: center; gap: .36em; min-height: 44px;
  color: var(--teal); text-decoration-thickness: 1px; font-size: .9rem; font-weight: 650; white-space: nowrap;
}
#film {
  display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; align-content: center;
  margin-top: 0; padding: clamp(10px, 1.15vw, 17px); color: var(--sheet); background: var(--navy);
  border: 1px solid #29474d; box-shadow: 0 10px 24px -19px #0b253c87;
}
#film video {
  grid-row: 1; width: 100%; height: auto; aspect-ratio: 16 / 9;
  background: #0b1b23; object-fit: contain; border-radius: 0 !important;
}
#film .section-heading { grid-row: 2; gap: 8px 16px; align-items: center; flex-wrap: nowrap; padding: 12px 6px 0; }
#film .section-heading h2 { color: #fff9ec; font-size: clamp(1.3rem, 2vw, 1.72rem); }
#film .section-lead { grid-row: 3; margin: 0; padding: 0 6px 5px; color: #c2d4d0; font: .85rem/1.65 var(--sans); }
#film .text-download { color: var(--pale-gold); }
#film .text-download:hover { color: #fff5dc; }

.showcase {
  display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, .77fr);
  gap: clamp(16px, 2.4vw, 32px); align-items: stretch;
  margin-top: clamp(42px, 5vw, 74px); padding-top: clamp(24px, 3vw, 38px); border-top: 1px solid var(--rule);
}
.artwork { min-width: 0; align-self: start; }
.artwork-link { display: block; border: 1px solid #d1c9b9; background: var(--sheet); padding: clamp(4px, .55vw, 9px); }
.artwork-link picture, .artwork-link img { display: block; width: 100%; height: auto; }
.artwork figcaption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; padding-top: 9px; }
.artwork figcaption > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 13px; }
.artwork figcaption h2 { font-size: 1.42rem; }
.artwork figcaption > div span { color: var(--muted); font-size: .87rem; }
.player-card { min-width: 0; align-self: start; padding: clamp(22px, 2.3vw, 36px); border-top: 4px solid var(--gold); background: var(--deep-teal); color: var(--sheet); }
.player-kicker { display: flex; align-items: center; gap: 8px; color: var(--mint); }
.status-dot { width: 8px; height: 8px; border: 1px solid var(--mint); border-radius: 100%; }
.is-playing .status-dot { background: var(--mint); box-shadow: 0 0 0 3px #a6e0d423; }
.player-card h2 { margin-top: 15px; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.3; }
.player-subtitle { color: #d1e0d7; font: italic 1.1rem/1.4 var(--latin-serif); }
.player-time { display: flex; align-items: baseline; gap: 8px; margin: 19px 0 15px; font: 1.55rem/1.2 var(--mono); }
.player-time [data-audio-duration], .time-separator { color: #bdd3cf; font-size: .92rem; }
.play-button, .download-button {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 45px; gap: 9px;
  border: 1px solid #b2cebf; border-radius: 3px; text-decoration: none; font-weight: 650;
}
.play-button { background: #f3d8a5; border-color: #f3d8a5; color: var(--ink); font-size: .99rem; cursor: pointer; }
.play-button:hover { background: #ffebba; }
.play-button-icon { display: inline-flex; }
.player-card audio { display: block; width: 100%; min-width: 0; margin-top: 13px; height: 43px; }
.player-status, .noscript-note { margin-top: 7px; color: #d5e5dd; font-size: .84rem; line-height: 1.6; }
.player-status.is-error { color: #ffcdac; }
.download-button { margin-top: 13px; color: #edf8ef; border-color: #7a9d9b; font-size: .91rem; }
.download-button:hover { color: #fff; border-color: var(--pale-gold); background: #21565a; }
.player-footnote { margin-top: 6px; text-align: center; color: #bfd2ce; font-size: .76rem; }
.scene-notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; list-style: none; padding: 16px 0 0; }
.scene-notes li { display: flex; align-items: baseline; gap: 11px; border-top: 1px solid var(--rule); padding-top: 11px; color: var(--muted); font-size: .9rem; }
.scene-notes li span { color: var(--teal); font: .77rem/1.5 var(--mono); }

#process, #music-design, #prompts { border-top: 1px solid var(--rule); padding-top: clamp(26px, 3.8vw, 48px); }
.image-timeline, .process-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3.8vw, 53px) clamp(23px, 3.6vw, 48px);
  margin-top: 31px; list-style: none;
}
.process-step {
  min-width: 0; display: grid; align-content: start; align-items: start;
  grid-template-columns: 49px minmax(0, 1fr); column-gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--rule);
}
.step-body { display: contents; }
.round-image { display: block; grid-row: 1; grid-column: 1 / -1; min-width: 0; margin-bottom: 19px; border: 1px solid #c9c6b5; background: var(--sheet); }
.round-image img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.step-number { grid-row: 2 / 4; grid-column: 1; color: var(--teal); font: 2.35rem/1.2 var(--latin-serif); font-variant-numeric: lining-nums tabular-nums; }
.step-eyebrow { grid-row: 2; grid-column: 2; letter-spacing: .04em; }
.step-body h3 { grid-row: 3; grid-column: 2; margin-top: 3px; font-size: clamp(1.23rem, 2vw, 1.65rem); line-height: 1.45; }
.step-body > p:not(.step-eyebrow) { grid-row: 4; grid-column: 1 / -1; margin-top: 12px; font-size: .97rem; line-height: 1.85; color: var(--muted); }
.step-body details { grid-row: 5; grid-column: 1 / -1; margin-top: 6px; }
summary { cursor: pointer; }
.step-body summary, .request-details > summary {
  width: fit-content; max-width: 100%; min-height: 44px; padding: .65em 0; color: var(--teal); font-size: .9rem; font-weight: 650;
}
.step-body summary::marker, .request-details summary::marker { color: var(--teal); }
.step-body blockquote, .request-details > .prompt-verbatim {
  padding: 14px 18px; border-left: 3px solid var(--teal); background: #eef1e8; color: var(--ink);
  font-size: .96rem; line-height: 1.85; overflow-wrap: anywhere;
}

.method-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; gap: 18px; margin-top: 27px; }
.method-strip > li { display: flex; align-items: start; gap: 12px; padding: 15px 0 5px; border-top: 2px solid #5c9490; }
.method-strip > li > span { color: var(--teal); font: .84rem/1.8 var(--mono); }
.method-strip h3 { font-size: 1.06rem; font-weight: 700; }
.method-strip p { margin-top: 6px; color: var(--muted); font-size: .91rem; line-height: 1.8; }
.request-details { margin-top: 17px; }
.design-goals { margin-top: 27px; padding: clamp(20px, 3vw, 36px); background: #e7eee5; border: 1px solid #d2dbcf; }
.goals-heading, .section-subheading { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; }
.goals-heading h3, .section-subheading h3 { font-size: clamp(1.34rem, 2vw, 1.67rem); line-height: 1.45; }
.goals-heading p, .section-subheading p { color: var(--muted); font-size: .86rem; }
.design-stats { display: grid; grid-template-columns: .82fr 1fr .78fr 1.26fr; gap: 20px; margin-top: 22px; }
.design-stats dt { font-size: .84rem; color: var(--muted); }
.design-stats dd { margin-top: 4px; color: var(--teal); font: 2.2rem/1.24 var(--latin-serif); }
.design-stats dd span { color: var(--muted); margin-left: 5px; font: .84rem/1.45 var(--sans); }
.design-stats .mood-stat { font: 700 1.28rem/1.6 var(--serif); }
.design-stats .mood-stat span { display: block; margin-left: 0; }
.instrument-tags { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; margin-top: 20px; padding-top: 14px; border-top: 1px solid #c7d2c5; }
.instrument-tags li { padding: 2px 8px; border: 1px solid #b9c9bb; color: #355651; font-size: .84rem; }
.section-subheading { margin-top: 34px; }
.music-timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; gap: 9px; margin-top: 13px; }
.music-timeline li { min-width: 0; }
.segment { display: flex; flex-direction: column; width: 100%; height: 100%; gap: 4px; text-align: left; padding: 15px 11px; border: 1px solid var(--rule); border-top: 3px solid #a4b6a8; border-radius: 0; color: var(--ink); background: var(--sheet); cursor: pointer; }
.segment:disabled { cursor: default; opacity: 1; }
.segment:not(:disabled):hover { border-color: var(--teal); }
.segment.is-active { background: #daeae4; border-color: #7ba195; border-top-color: var(--teal); }
.segment-time { color: var(--teal); font: .77rem/1.55 var(--mono); white-space: nowrap; }
.segment strong { font-size: 1rem; }
.segment-copy { color: var(--muted); font-size: .82rem; line-height: 1.6; }
.creative-note { margin-top: 28px; padding: 0 0 0 clamp(16px, 2vw, 25px); border-left: 3px solid var(--gold); max-width: 64em; }
.creative-note p { color: var(--ink); line-height: 1.85; font-size: .99rem; }
.creative-note cite { display: block; margin-top: 8px; font-size: .84rem; color: var(--muted); font-style: normal; }

.prompt-panel { margin-top: 12px; border: 1px solid var(--rule); background: var(--sheet); }
.prompt-panel:first-of-type { margin-top: 26px; }
.prompt-panel > summary { display: flex; align-items: center; gap: 15px; min-height: 64px; padding: 15px clamp(14px, 2vw, 26px); list-style: none; }
.prompt-panel > summary::-webkit-details-marker { display: none; }
.prompt-panel > summary::after { content: "+"; width: 1em; color: var(--teal); font: 1.45rem/1 var(--sans); text-align: center; }
.prompt-panel[open] > summary::after { content: "−"; }
.prompt-panel > summary > span:first-child { flex: 1; }
.prompt-panel > summary strong { display: block; font-size: 1.05rem; }
.prompt-panel > summary small { display: block; margin-top: 2px; font-size: .83rem; color: var(--muted); }
.prompt-language { color: var(--teal); font: .76rem/1.6 var(--mono); border: 1px solid #bccdbb; padding: 1px 7px; }
.prompt-panel[open] > summary { background: #edf1e7; border-bottom: 1px solid var(--rule); }
.prompt-content { padding: 20px clamp(14px, 3.5vw, 44px) 26px; color: #28434a; font-size: .97rem; line-height: 1.95; overflow-wrap: anywhere; }
.prompt-content > * { max-width: 62em; }
.prompt-content p + p { margin-top: 14px; }
.prompt-content[lang="en"] { line-height: 1.75; }
.prompt-verbatim { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.source-note { margin-top: 46px; padding-top: 19px; border-top: 1px solid var(--rule); }
.source-note h2 { font-size: .9rem; }
.source-note p { max-width: 75em; margin-top: 7px; color: var(--muted); font-size: .85rem; line-height: 1.85; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0 32px; margin-top: 35px; border-top: 2px solid var(--deep-teal); }
.site-footer p:first-child { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; }
.site-footer p:first-child span { font: italic .96rem/1.4 var(--latin-serif); color: var(--teal); }
.site-footer p:last-child { color: var(--muted); font-size: .82rem; }
.site-footer p:last-child span { margin-left: 8px; }

@media (min-width: 900px) {
  .page-shell { grid-template-columns: minmax(245px, .85fr) minmax(0, 2fr); column-gap: clamp(30px, 4.2vw, 68px); }
  .page-shell > * { grid-column: 1 / -1; }
  .page-shell > .work-intro { display: grid; grid-column: 1; grid-row: 1; align-content: center; justify-items: start; padding: 0; margin-top: clamp(35px, 4vw, 61px); }
  .work-intro .eyebrow { grid-row: 1; }
  .title-row { display: contents; }
  .title-row > div:first-child { grid-row: 2; margin-top: clamp(14px, 1.8vw, 28px); }
  h1 { font-size: clamp(3.2rem, 5.1vw, 5.35rem); }
  .english-title { font-size: clamp(1.62rem, 2.25vw, 2.15rem); }
  .intro-copy { grid-row: 3; max-width: 19em; margin-top: clamp(12px, 1.5vw, 23px); }
  .creator { grid-row: 4; margin-top: clamp(18px, 3vw, 39px); }
  .page-shell > #film { grid-column: 2; grid-row: 1; margin-top: clamp(35px, 4vw, 61px); }
}
@media (max-width: 899px) {
  .showcase { grid-template-columns: minmax(0, 1.45fr) minmax(245px, 1fr); }
  .player-card { padding: 20px; }
  .music-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  :root { --gutter: clamp(16px, 4.3vw, 28px); }
  html { scroll-padding-top: 15px; }
  .site-header { position: relative; }
  .header-inner { display: block; padding-block: 3px 1px; }
  .home-link { min-height: 34px; font-size: .82rem; }
  .home-link svg { width: 15px; }
  .site-header nav { min-height: 42px; justify-content: space-between; flex-wrap: wrap; column-gap: 8px; border-top: 1px solid #2e4953; }
  .site-header nav a { min-height: 41px; font-size: .84rem; }
  .work-intro { padding-top: 26px; padding-bottom: 20px; }
  .work-intro .eyebrow { gap: 9px; font-size: .76rem; }
  .title-row { align-items: center; gap: 14px; margin-top: 14px; }
  h1 { font-size: clamp(2.55rem, 10.9vw, 3.9rem); }
  .english-title { margin-top: 6px; font-size: clamp(1.1rem, 4.8vw, 1.63rem); }
  .creator { gap: 7px; flex-shrink: 0; }
  .creator p { font-size: .98rem; }
  .creator p span { display: block; color: var(--muted); font-size: .8rem; }
  .creator time { font-size: .73rem; }
  .creator-mark { display: none; }
  .intro-copy { margin-top: 14px; font-size: .94rem; }
  #film { padding: 7px; }
  #film .section-heading { padding: 6px 4px 0; }
  #film .section-heading h2 { font-size: 1.17rem; }
  #film .section-lead { padding: 0 4px 5px; font-size: .82rem; }
  #film .text-download { font-size: .81rem; }
  .showcase { grid-template-columns: minmax(0, 1fr); gap: 17px; margin-top: 35px; padding-top: 24px; }
  .artwork figcaption { padding-top: 5px; }
  .artwork figcaption > div { gap: 5px 10px; }
  .artwork figcaption h2 { font-size: 1.22rem; }
  .player-card { position: relative; padding: 19px 20px 15px; }
  .player-card h2 { margin-top: 8px; font-size: 1.85rem; }
  .player-subtitle { font-size: 1.02rem; }
  .player-time { position: absolute; top: 23px; right: 20px; margin: 0; font-size: 1.3rem; }
  .play-button { margin-top: 17px; }
  .player-card audio { margin-top: 10px; }
  .scene-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 16px; padding-top: 16px; }
  .scene-notes li { gap: 7px; padding-top: 7px; font-size: .84rem; }
  .content-section { margin-top: 47px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: clamp(1.52rem, 6.5vw, 2.1rem); line-height: 1.43; }
  .section-lead { margin-top: 11px; font-size: .94rem; }
  .image-timeline, .process-list { grid-template-columns: minmax(0, 1fr); row-gap: 25px; margin-top: 21px; }
  .process-step { grid-template-columns: 41px minmax(0, 1fr); column-gap: 9px; padding-bottom: 10px; }
  .round-image { margin-bottom: 13px; }
  .step-number { font-size: 2rem; }
  .step-body > p:not(.step-eyebrow) { margin-top: 7px; }
  .method-strip { grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
  .method-strip > li { padding-top: 10px; }
  .method-strip p { margin-top: 2px; }
  .design-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
  .music-timeline { grid-template-columns: 1fr; }
  .segment { display: grid; grid-template-columns: minmax(90px, .7fr) minmax(0,1.3fr); gap: 1px 10px; padding: 10px 13px; border-top-width: 1px; border-left: 3px solid #a4b6a8; }
  .segment.is-active { border-top-color: #7ba195; border-left-color: var(--teal); }
  .segment-time { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
  .segment strong, .segment-copy { grid-column: 2; }
  .site-footer { align-items: start; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
}
@media (max-width: 365px) {
  :root { --gutter: 13px; }
  .site-header nav { column-gap: 4px; }
  .site-header nav a { font-size: .79rem; }
  .site-footer { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .site-header, .skip-link, .download-button, .play-button, .player-card, .text-download, .site-footer > a { display: none; }
  html, body { background: white; color: black; }
  .page-shell, .site-footer { display: block; width: auto; }
  .work-intro { margin: 0; padding: 0 0 16px; }
  .showcase { display: block; }
  #film, .process-step, .prompt-panel, .design-goals { break-inside: avoid; }
}
