/* The sticky stage and reversible chapter layout are adapted from Lessmore. */
:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #171717;
  --muted: #525252;
  --rule: #e3e3e3;
  --header: 68px;
}
* { box-sizing: border-box; }
html { min-width: 280px; scroll-padding-top: var(--header); background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 16px/1.65 "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; appearance: none; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid #444; outline-offset: 4px; }
a { color: inherit; text-decoration: none; }
h1, h2, p, figure { margin: 0; }
[hidden] { display: none !important; }
.skip { position: fixed; left: 12px; top: 9px; padding: 10px 14px; z-index: 50; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header { height: var(--header); position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding-inline: 5%; background: rgb(255 255 255 / 96%); border-bottom: 1px solid #17171715; }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 650 26px/1 "Helvetica Neue", Arial, sans-serif; letter-spacing: -1.5px; }
.site-header nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 30px; font-size: 14px; }
.site-header nav a { padding-block: 10px; }
.site-header nav a:hover, footer a:not(.brand):hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-cta { background: var(--ink); color: white; border-radius: 999px; font-size: 14px; padding: 7px 18px; }
.story { height: 515svh; }
.stage { --hero-top: clamp(89px,13.2svh,168px); position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; background: var(--paper); }
#scene { position: absolute; inset: max(var(--scene-top, 0px), var(--opening-top, 0px)) 0 max(var(--scene-bottom, 0px), var(--opening-bottom, 0px)); z-index: 0; pointer-events: none; }
#scene canvas, .poster { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.poster { background-image: var(--poster-desktop, url("scene-poster.webp")); background-position: center; background-size: contain; background-repeat: no-repeat; }
/* Frame the subject inside the same opening viewport as the live models.
   The original poster includes the space previously used for the headline. */
.stage:is([data-shot="0"], :not([data-shot])) .poster { container-type: size; background-image: none; }
.stage:is([data-shot="0"], :not([data-shot])) .poster::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(58cqw, 146cqh); aspect-ratio: 775 / 495; background: url("scene-poster.webp") 46.95% 87.04% / 195.1% auto no-repeat; }
.stage:not([data-shot]) { display: grid; grid-template-rows: var(--hero-top) auto clamp(16px,3svh,32px) minmax(0,1fr) 60px; }
.stage:not([data-shot]) .hero-copy { grid-row: 2; position: relative; top: auto; }
.stage:not([data-shot]) #scene { grid-row: 4; position: relative; inset: auto; margin-inline: var(--poster-margin, 0px); }
.ready .poster { display: none; }
.chapter { position: absolute; z-index: 1; pointer-events: none; }
.hero-copy { top: var(--hero-top); left: 5%; width: 90%; text-align: center; }
.eyebrow { color: #474747; font-size: 14px; font-weight: 560; letter-spacing: .12em; }
h1 { margin: 10px 0 15px; font-size: clamp(50px,6.1vw,104px); line-height: 1.14; font-weight: 580; letter-spacing: -.055em; text-wrap: balance; }
.chapter .intro { max-width: 38em; margin-inline: auto; font-size: clamp(16px,1.23vw,19px); text-wrap: pretty; }
.chapter p:not(.eyebrow), .manifesto p { color: var(--muted); line-height: 1.75; }
.chapter-copy, .detail-copy, .result-copy, .outro-copy { top: 47%; width: 32%; max-width: 530px; transform: translateY(-50%); opacity: 0; }
.chapter-copy, .result-copy { left: 8.2%; }
.detail-copy { left: 57.7%; }
.chapter h2 { font-size: clamp(35px,4.12vw,73px); font-weight: 570; line-height: 1.18; letter-spacing: -.055em; margin-bottom: 20px; }
.chapter p:not(.intro,.eyebrow) { max-width: 23em; font-size: clamp(16px,1.15vw,19px); }
.outro-copy { top: 46%; left: 50%; width: 90%; max-width: 1000px; transform: translate(-50%,-50%); text-align: center; }
.outro-copy h2 { font-size: clamp(50px,6.1vw,102px); }
.outro-copy p:not(.intro,.eyebrow) { max-width: 40em; margin-inline: auto; }
.chapter-index { position: absolute; top: 50%; right: 2%; display: flex; flex-direction: column; transform: translateY(-50%); z-index: 3; }
.chapter-index button { display: grid; place-items: center; width: 36px; height: 29px; border: 0; background: transparent; }
.chapter-index button::after { content: ""; width: 4px; height: 4px; background: #afafaf; border-radius: 3px; transition: height .2s; }
.chapter-index button[aria-current]::after { height: 16px; background: var(--ink); }
.stage-bottom { position: absolute; bottom: 18px; left: 5%; right: 5%; display: flex; align-items: center; z-index: 2; color: #525252; font-size: 13px; }
.scroll-note { display: flex; align-items: center; gap: 8px; }
.scroll-note i { width: 14px; height: 21px; border: 1px solid #898989; border-radius: 8px; position: relative; }
.scroll-note i::after { content: ""; width: 2px; height: 5px; border-radius: 2px; position: absolute; left: 5px; top: 4px; background: var(--ink); }
#frame-label { margin-left: auto; margin-right: 12px; }
#motion { display: grid; place-items: center; width: 31px; height: 31px; background: white; border: 1px solid #d4d4d4; border-radius: 50%; font-size: 12px; }
.progress { position: absolute; inset: auto 0 0; height: 2px; background: #efefef; }
.progress div { width: 0; height: 100%; background: var(--ink); }

.uses { padding: clamp(64px,7vw,118px) max(6vw,calc((100vw - 1520px)/2)) 0; border-top: 1px solid var(--rule); }
.use-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(20px,2.7vw,48px); margin: clamp(24px,3vw,44px) 0 0; }
.use-list > div { border-top: 1px solid var(--ink); padding-top: 16px; }
.use-list dt { font-size: clamp(22px,2vw,32px); font-weight: 570; }
.use-list dd { margin: 8px 0 0; color: var(--muted); line-height: 1.75; }
.collection { padding: clamp(64px,7vw,118px) max(6vw,calc((100vw - 1520px)/2)) clamp(68px,7vw,118px); }
.section-top { border-bottom: 1px solid var(--ink); padding-bottom: clamp(20px,2vw,32px); }
.uses h2, .section-top h2, .manifesto h2 { font-size: clamp(40px,4.6vw,76px); font-weight: 560; letter-spacing: -.055em; line-height: 1.14; }
.exhibit { display: grid; grid-template-columns: minmax(146px, .24fr) minmax(0, 1fr); gap: clamp(24px,4vw,72px); padding-top: 24px; }
.screen-tabs { display: flex; flex-direction: column; }
.screen-tabs button { position: relative; text-align: left; padding: 14px 9px 14px 26px; font-size: clamp(17px,1.45vw,23px); color: #616161; font-weight: 450; border: 0; border-bottom: 1px solid var(--rule); background: transparent; }
.screen-tabs button::before { content: ""; width: 7px; height: 7px; position: absolute; top: 50%; left: 3px; transform: translateY(-50%); border-radius: 50%; }
.screen-tabs button[aria-selected=true] { color: var(--ink); font-weight: 600; }
.screen-tabs button[aria-selected=true]::before { background: var(--ink); }
.screen-tabs button:hover { color: var(--ink); background-color: #fafafa; }
.screen-stage { min-width: 0; }
.screen-stage figcaption { margin: 3px 0 15px; color: #4c4c4c; font-size: 16px; min-height: 1.65em; }
.zoom-screen { cursor: zoom-in; display: grid; place-items: center; position: relative; width: 100%; padding: clamp(12px,1.75vw,30px); border: 1px solid #dcdcdc; border-radius: 13px; background: #f3f4f4; }
.zoom-screen img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: contain; background-color: #fff; border-radius: 5px; box-shadow: 0 5px 16px #17212112, 0 0 0 1px #14141414; }
.zoom-screen::after { content: "放大"; position: absolute; right: 12px; bottom: 10px; color: var(--ink); border: 1px solid #d5d5d5; background: #fff; border-radius: 99px; padding: 1px 11px; font-size: 13px; }
.phone-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; justify-items: center; gap: 4%; width: 100%; aspect-ratio: 1.6; padding: 2% 6%; border: 1px solid #dcdcdc; border-radius: 13px; background: #f3f4f4; }
.phone-pair .zoom-screen { height: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.phone-pair .zoom-screen img { position: absolute; width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; background: transparent; border-radius: 0; box-shadow: none; }
.phone-pair .zoom-screen::after { right: 2px; bottom: 2px; }
.manifesto { padding: clamp(65px,10vw,170px) 6% clamp(55px,8vw,125px); text-align: center; border-top: 1px solid var(--rule); }
.manifesto h2 { font-size: clamp(44px,6vw,98px); }
.manifesto > p { margin: 19px auto 0; }
.download-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 27px; }
.download-actions a { background: var(--ink); color: white; border: 1px solid var(--ink); border-radius: 99px; padding: 9px 20px; font-size: 15px; }
.download-actions a + a { background: white; color: var(--ink); border-color: #ccc; }
.download-actions a:hover, .nav-cta:hover { opacity: .82; }
footer { margin: 0 5%; padding: 27px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; font-size: 14px; }
footer .brand { justify-self: start; font-size: 22px; }
footer .registration { justify-self: center; padding-block: 5px; color: var(--muted); font-size: 13px; white-space: nowrap; }
footer a:last-child { justify-self: end; }
@media (max-width: 480px) {
  footer { grid-template-columns: 1fr 1fr; }
  footer .registration { grid-column: 1 / -1; grid-row: 2; }
}
#image-viewer { position: fixed; margin: auto; width: fit-content; max-width: 96vw; max-height: 94svh; padding: 0; border: 1px solid #d8d8d8; border-radius: 12px; color: var(--ink); background: white; }
#image-viewer::backdrop { background: rgb(17 20 20 / 66%); }
.viewer-bar { height: 51px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; gap: 1em; border-bottom: 1px solid var(--rule); }
.viewer-bar h2 { font-size: 16px; font-weight: 550; }
.viewer-bar button { padding: 4px 12px; border: 1px solid var(--rule); border-radius: 99px; background: white; font-size: 14px; }
.viewer-actions { display: flex; gap: 8px; }
.viewer-image { overscroll-behavior: contain; max-height: calc(94svh - 54px); overflow: auto; }
.viewer-image img { display: block; width: auto; max-width: min(92vw,1600px); max-height: calc(94svh - 55px); object-fit: contain; margin: auto; }
#image-viewer.full-size .viewer-image img { max-width: none; max-height: none; }

@media (max-width: 760px), (max-width: 1000px) and (max-aspect-ratio: 1/1) {
  :root { --header: 54px; }
  .site-header nav { gap: 12px; font-size: 13px; }
  .site-header nav a:last-child { display: none; }
  .brand { font-size: 21px; gap: 5px; }
  .brand img { width: 22px; height: 22px; }
  .nav-cta { font-size: 13px; padding: 6px 12px; }
  .story { height: 480svh; }
  #scene { --scene-top: max(230px,30svh); --scene-bottom: max(52px,9svh); inset-inline: 5%; }
  .poster { background-image: var(--poster-mobile, url("scene-poster-mobile.webp")); }
  .stage { --hero-top: calc(var(--header) + 5svh); --poster-margin: 5%; }
  .stage:is([data-shot="0"], :not([data-shot])) .poster::after { width: min(94cqw, 144cqh); aspect-ratio: 449 / 293; background-image: url("scene-poster-mobile.webp"); background-size: 106.9% auto; background-position: 6.45% 52.17%; }
  .hero-copy { width: 92%; left: 4%; }
  h1 { font-size: clamp(34px,8.5vw,60px); margin: 8px 0 10px; }
  .chapter .intro { max-width: 23em; padding: 0 7px; font-size: 15px; }
  .chapter-copy, .detail-copy, .result-copy, .outro-copy { top: calc(var(--header) + 4.3svh); left: 7%; width: 86%; max-width: none; transform: none; }
  .chapter h2 { font-size: clamp(29px,7.5vw,54px); line-height: 1.18; margin-bottom: 8px; }
  .chapter p:not(.intro,.eyebrow) { font-size: 15px; line-height: 1.55; max-width: 29em; }
  .wide-break { display: none; }
  .outro-copy { top: 34%; left: 6%; width: 88%; }
  .outro-copy h2 { font-size: clamp(40px,9vw,65px); }
  .chapter-index { right: 1px; top: 64%; }
  .chapter-index button { width: 24px; height: 27px; }
  .stage-bottom { bottom: 10px; }
  .uses { padding: 54px 6% 0; }
  .use-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .collection { padding: 54px 6%; }
  .section-top { padding-bottom: 13px; }
  .exhibit { display: block; padding-top: 0; }
  .screen-tabs { flex-direction: row; justify-content: space-between; gap: 4px; margin-bottom: 18px; }
  .screen-tabs button { padding: 12px 0 8px; font-size: clamp(14px, 4vw, 16px); }
  .screen-tabs button::before { display: none; }
  .screen-tabs button[aria-selected=true] { border-color: var(--ink); }
  .screen-stage figcaption { min-height: 3.1em; margin-bottom: 8px; line-height: 1.55; }
  .zoom-screen { padding: 8px; border-radius: 7px; }
  .zoom-screen::after { right: 5px; bottom: 4px; }
  .phone-pair { padding: 8px; border-radius: 7px; aspect-ratio: 1.16; }
  .phone-pair .zoom-screen::after { font-size: 12px; }
  .manifesto > p { max-width: 25em; }
  .viewer-image img { max-width: 93vw; }
}
@media (max-width: 560px) {
  .use-list { grid-template-columns: 1fr; gap: 16px; }
  .use-list > div { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: baseline; }
  .use-list dd { margin: 0; font-size: 15px; }
  .uses h2, .section-top h2 { font-size: clamp(30px,8vw,40px); }
}
@media (max-height: 520px) and (min-aspect-ratio: 3/2) {
  :root { --header: 40px; }
  .stage { --hero-top: calc(var(--header) + 3px); }
  h1 { font-size: 34px; margin: 2px 0; }
  .chapter .intro, .eyebrow { font-size: 13px; }
  .chapter h2 { font-size: 30px; margin-bottom: 6px; }
  .chapter p:not(.intro,.eyebrow) { font-size: 13px; }
  .stage-bottom { bottom: 5px; }
}
@media (prefers-reduced-motion: reduce) { *, *::after { scroll-behavior: auto !important; transition: none !important; } }
