/* 乌库楚 · the story inside the book. Two walls of colour, vermilion and ink, close and part along a slanted seam to
   open onto the valley; then the camp photograph is climbed from the moraine to the summit. Phone first. */
.wk { --paper: #F4F2ED; --ink: #1C1A17; --ink2: #3B3731; --mid: #8d8b86; --hair: rgba(28,26,23,.18); --black: #181614;
  --wk-serif: "Newsreader", "Noto Serif SC", "Songti SC", serif; --wk-sans: "Inter Tight", "Noto Sans SC", system-ui, sans-serif;
  --e: cubic-bezier(.22,.61,.36,1); color: var(--ink); }
.wk section { position: relative; }
.wk .stg { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.wk-hero { position: absolute; inset: 0; z-index: 5; transform-origin: 50% 40%; }
.wk-eb { font: 600 11px/1 var(--wk-sans); letter-spacing: .24em; color: var(--acc); }

/* the two walls: printed colour with the paper's grain, the ink one with a fine engraved hatch; their seam slants like the valley */
.wk-pl { position: absolute; inset: -2vh -2vw; z-index: 3; will-change: transform; }
.wk-pl.l { background: var(--acc) url("/lab/shelf/grain.png") 0 0 / 220px 220px; clip-path: polygon(0 0, 61% 0, 41% 100%, 0 100%); transform: translate3d(-64vw, 0, 0); }
.wk-pl.r { background: url("/lab/shelf/grain.png") 0 0 / 220px 220px, repeating-linear-gradient(-62deg, rgba(244,242,237,.06) 0 1px, transparent 1px 6px), var(--black);
  clip-path: polygon(61% 0, 100% 0, 100% 100%, 41% 100%); transform: translate3d(64vw, 0, 0); }
.wk-pl .tx { position: absolute; color: var(--paper); opacity: 0; display: flex; gap: 16px; align-items: flex-start; }
.wk-pl.l .tx { left: 12vw; top: 16vh; }
.wk-pl.r .tx { right: 12vw; bottom: 12vh; flex-direction: row-reverse; }
.wk-pl h2 { writing-mode: vertical-rl; font: 500 clamp(64px, 11vw, 150px)/1 var(--wk-serif); letter-spacing: .14em; }
.wk-pl p { writing-mode: vertical-rl; font: 500 11px/1 var(--wk-sans); letter-spacing: .3em; opacity: .82; margin-top: 6px; }

/* the valley, under the walls */
.wk-vin { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 64px 20px 20px; opacity: 0; transform-origin: 50% 40%; }
.wk-ph { margin: 0; width: min(86vw, 66vh * 2 / 3, 520px); }
.wk-ph .im { aspect-ratio: 2 / 3; overflow: hidden; background: #DDD6C8; box-shadow: 0 34px 60px -38px rgba(30,20,10,.6); }
.wk-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wk-ph figcaption { margin-top: 14px; font: 400 14.5px/1.85 var(--wk-serif); letter-spacing: .05em; color: var(--ink2); opacity: 0; }
.wk-ph figcaption b { font: 600 11px/1 var(--wk-sans); letter-spacing: .26em; color: var(--acc); margin-right: .9em; }

/* the climb */
.wk-uin { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2vh; padding: 60px 20px 20px; opacity: 0; transform-origin: 50% 40%; }
.wk-alt { display: flex; align-items: baseline; gap: 10px; }
.wk-alt span { font: 500 11px/1 var(--wk-sans); letter-spacing: .26em; color: var(--mid); }
.wk-alt .n { font: 500 44px/1 var(--wk-serif); letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--ink); min-width: 3.6em; text-align: right; }
.wk-alt i { font-style: normal; font: 500 13px/1 var(--wk-serif); color: var(--ink2); }
.wk-alt .where { margin-left: 8px; font: 600 11px/1 var(--wk-sans); letter-spacing: .26em; color: var(--acc); }
.wk-cl { position: relative; display: flex; gap: 14px; }
.wk-cph { width: min(72vw, 58vh * 2 / 3, 470px); aspect-ratio: 2 / 3; overflow: hidden; background: transparent; clip-path: inset(100% 0 0 0); box-shadow: 0 34px 60px -38px rgba(30,20,10,.6); }
.wk-cph img { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 100%; }
.wk-lad { position: relative; width: 62px; list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--hair); }
.wk-lad li { position: absolute; left: -4px; bottom: calc(var(--y) * 100%); transform: translateY(50%); display: flex; flex-direction: column; gap: 3px; padding-left: 14px; opacity: .35; transition: opacity .5s var(--e); }
.wk-lad li::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px rgba(28,26,23,.5); }
.wk-lad li.on { opacity: 1; }
.wk-lad li.on::before { background: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.wk-lad b { font: 500 13px/1 var(--wk-serif); font-variant-numeric: tabular-nums; }
.wk-lad span { font: 500 10px/1.2 var(--wk-sans); letter-spacing: .14em; color: var(--mid); white-space: nowrap; }
.wk-line { font: 400 14.5px/1.85 var(--wk-serif); letter-spacing: .05em; color: var(--ink2); opacity: 0; text-align: center; }

/* the end */
.wk-ein { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 28px; opacity: 0; }
.wk-et { width: min(30em, 100%); }
.wk-et h2 { margin-top: 18px; font: 500 clamp(36px, 5vw, 78px)/1.25 var(--wk-serif); letter-spacing: .14em; }
.wk-et h2 + p { margin-top: 18px; font: 400 15px/2 var(--wk-serif); letter-spacing: .05em; color: var(--ink2); }
.wk-et dl { margin-top: 24px; border-bottom: 1px solid var(--hair); }
.wk-et dl div { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; border-top: 1px solid var(--hair); }
.wk-et dt { font: 500 11.5px/1.6 var(--wk-sans); letter-spacing: .16em; color: var(--mid); white-space: nowrap; }
.wk-et dd { font: 400 14px/1.6 var(--wk-serif); letter-spacing: .04em; color: var(--acc); text-align: right; }
.wk-colo { margin-top: 28px; display: flex; align-items: center; gap: 14px; font: 500 11px/1.6 var(--wk-sans); letter-spacing: .2em; color: var(--mid); }
.wk-seal { display: inline-block; writing-mode: vertical-rl; background: var(--acc); color: var(--paper); font: 600 15px/1.15 var(--wk-serif); font-style: normal; letter-spacing: .06em; padding: 8px 6px; border-radius: 2px; }
.wk-et > * { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--e), transform 1s var(--e); }
.wk-et > :nth-child(2) { transition-delay: .12s; } .wk-et > :nth-child(3) { transition-delay: .24s; } .wk-et > :nth-child(4) { transition-delay: .36s; } .wk-et > :nth-child(5) { transition-delay: .48s; }
.on .wk-et > * { opacity: 1; transform: none; }

@media (min-width: 768px) {
  .wk-ph { display: grid; grid-template-columns: auto 15em; gap: 4vw; align-items: end; width: auto; }
  .wk-ph .im { width: min(66vh * 2 / 3, 520px); }
  .wk-ph figcaption { margin: 0 0 2vh; font-size: 16px; }
  .wk-ph figcaption b { display: block; margin-bottom: 12px; }
  .wk-uin { flex-direction: row; gap: 5vw; }
  .wk-alt { flex-direction: column; align-items: flex-end; gap: 10px; width: 14em; }
  .wk-alt .n { font-size: 64px; }
  .wk-alt .where { margin: 6px 0 0; }
  .wk-line { width: 14em; text-align: left; font-size: 16px; }
  .wk-lad { width: 90px; }
}
@media (prefers-reduced-motion: reduce) { .wk-et > * { transition: none; } }
