* { box-sizing: border-box; }
:root { font-family: Arial, Helvetica, sans-serif; color: #f8f8f9; background: #13181d; color-scheme: dark; }
body { margin: 0; height: 100svh; min-height: 370px; display: flex; flex-direction: column; isolation: isolate; }
.ambience { position: fixed; inset: 0; overflow: hidden; z-index: -1; background: #232932; }
.ambience div { position: absolute; inset: -60px; background-image:var(--cover); background-position: center; background-size: cover; filter: blur(34px) saturate(.94); opacity: 0; transition: opacity .55s; }
.ambience .shown { opacity: 1; }
.ambience::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg,#101721b8,#18212866 65%,#0c111393); }
header, footer { display: flex; align-items: center; justify-content: space-between; }
header { margin: 0 5vw; padding: 24px 0 18px; border-bottom: 1px solid #ffffff32; }
a,button { color: inherit; }
header a { text-decoration: none; font-size: 15px; }
.brand { font-weight: 700; font-size: 26px; letter-spacing: -1.3px; }
.brand span { display: block; font-size: 12px; font-weight: 400; letter-spacing: 0; margin-top: 4px; }
main { position: relative; min-height: 0; flex: 1; display: grid; grid-template-rows: 1fr auto; }
h1 { pointer-events: none; z-index: 2; position: absolute; top: 5%; left: 5vw; margin: 0; font-size: clamp(35px,5vw,80px); font-weight: 500; letter-spacing: -.07em; line-height: .98; }
#rack { position: relative; overflow: hidden; touch-action: pan-y pinch-zoom; min-height: 0; }
.slot { position: absolute; left: 0; top: 0; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; color: white; font-family: inherit; }
.sleeve { display: block; position: absolute; inset: 0; transform: translate(var(--spread,0px),var(--lift,0px)); transition: transform .34s cubic-bezier(.2,.76,.25,1); }
.back,.art,.glass { position: absolute; border-radius: 4% / 5%; }
.back { inset: 5% 0 0; background: linear-gradient(135deg,#96aab4,#384953); border: 1px solid #ffffffa6; box-shadow: 0 12px 28px #0006; }
.tab { position:absolute; left: 0; top: 0; width: 39%; height: 12%; border-radius: 10px 18px 0 0; background: #aabcc2; border-top: 1px solid #fff9; }
.art { left: 3%; top: 7%; width: 94%; height: 87%; object-fit: cover; background: #23303a; border: 1px solid #ffffff66; }
.glass { inset: 50% 0 0; padding: 7% 6%; display:flex; align-items:flex-end; background: linear-gradient(120deg,#cddde64d,#788b991c 50%,#94a9b544),linear-gradient(0deg,#2129339c,transparent); backdrop-filter:blur(13px); -webkit-backdrop-filter:blur(13px); border:1px solid #ffffff86; box-shadow:inset 0 1px 1px #ffffffa8; }
.name { font-size: clamp(17px,2.1vw,34px); letter-spacing: -.035em; font-weight: 600; text-shadow: 0 1px 7px #0007; }
footer { margin: 0 5vw; padding: 14px 0 20px; border-top: 1px solid #ffffff3a; gap: 12px; }
small { display:block; text-transform:uppercase; font: 11px/1.5 monospace; letter-spacing:.12em; }
footer strong { display:block; font-size:clamp(17px,2vw,26px); margin-top:3px; }
.controls { display:flex; gap:8px; align-items:center; }
.hint { font-size:13px; margin-right:12px; }
.controls button,#close { background:#1f293450; border:1px solid #ffffff73; cursor:pointer; border-radius:50%; width:44px; height:44px; font-size:24px; }
:focus-visible { outline:2px solid white; outline-offset:-3px; }
dialog { padding:0; width:min(620px,90vw); max-height:85svh; overflow:auto; border:1px solid #ffffff61; border-radius:18px; color:white; background:#202730; }
dialog::backdrop { background:#091019aa; backdrop-filter:blur(12px); }
#close { position:absolute; right:12px; top:12px; width:auto; padding:0 16px; border-radius:24px; font-size:14px; background:#13181dd9; }
#cover { display:block; width:100%; max-height:45svh; object-fit:cover; }
.details { padding:24px; }
h2 { margin:8px 0 18px; }
@media(max-width:650px){ header {padding:16px 0;} .hint {font-size:0;} .hint::after {content:"Swipe to browse";font-size:12px;} footer {padding:12px 0;} h1 {top:4%;} }
@media(max-width:420px){ .hint {display:none;} }
@media(prefers-reduced-motion:reduce){ .sleeve,.ambience div {transition:none;} }

/* The rack crosses the viewport behind the stationary project caption. */
body { background: #030407; position: relative; }
.ambience { z-index: 0; pointer-events: none; }
.ambience::after { background: linear-gradient(110deg, #03050bea, #05070aaa 62%, #07090d99); }
header { position: absolute; inset: 0 0 auto; margin: 0; padding: 16px 6vw; border: 0; z-index: 4; pointer-events: none; }
header a { pointer-events: auto; }
.brand { font-size: 18px; }
.brand span { display: none; }
/* Keep the folders' relative depth inside the archive, below the reader and its scrim. */
main { display: block; z-index: 1; }
#rack { position: absolute; inset: 0; }
#rack-track { position:absolute; inset:0; pointer-events:none; }
#rack-track .slot { pointer-events:auto; }
.project-info { position: absolute; z-index: 2; left: 6vw; top: 11%; max-width: 43vw; pointer-events: none; text-shadow: 0 2px 18px #0009; }
.project-info h1 { position: static; font-weight: 650; font-size: clamp(34px,3.9vw,76px); line-height: 1.02; margin-bottom: .32em; letter-spacing: -.055em; }
.project-info p { margin: .23em 0; line-height: 1.24; font-size: clamp(15px,1.25vw,24px); }
.slot { transform-origin: top left; touch-action:pinch-zoom; -webkit-user-select:none; user-select:none; }
/* The cover print sits between the tabbed back and the frosted pocket. */
.back {
  inset: 9% 0 0;
  border-radius: 0 7% 7% 7%;
  background: linear-gradient(148deg, #b8c9d2, #637887 43%, #394958);
  box-shadow: inset 0 1px 1px #fff9, 1px 3px 0 #485764, 0 12px 20px #0006;
}
.tab {
  width: 41%;
  height: 15%;
  background: linear-gradient(160deg, #c5d4dc, #9aadb9);
  clip-path: polygon(0 0, 82% 0, 100% 78%, 100% 100%, 0 100%);
}
.art {
  top: 12%; left: 6%; width: 88%; height: 78%;
  border-radius: 5px;
  transform: rotate(-3deg);
  box-shadow: 0 3px 10px #0c152f60;
}
.glass {
  inset: 55% 0 0;
  justify-content: flex-end;
  padding: 4% 6%;
  background: linear-gradient(128deg, #edf7ff59, #b2cad52b 53%, #d0dfe530),
              linear-gradient(0deg, #1c263dc9, #28384952);
  box-shadow: inset 0 1px 1px #fff9, inset -1px -2px 2px #daeaf335, 0 4px 10px #0002;
}
.name {
  font-size: clamp(13px, 1.32vw, 25px);
  line-height: 1.08;
  text-align: right;
  text-wrap: balance;
}
footer { position: absolute; right: 4vw; bottom: 3%; border: 0; padding: 8px 12px; margin: 0; border-radius: 30px; background: #0b1018bb; }
@media(max-width:650px){ .project-info { max-width: 72vw; top: 10%; } .project-info p {font-size:14px;} footer {bottom:2%;} }
:root { --nav-height: 68px; }
[hidden] { display:none !important; }
.masthead {
  position:fixed; inset:0 0 auto; height:var(--nav-height); z-index:50;
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center;
  background:#10151be0; backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid #ffffff25; padding:0 5vw; pointer-events:auto;
}
.masthead button, .back-link {
  font:inherit; border:0; color:inherit; background:none; padding:9px 5px; cursor:pointer;
}
.masthead nav { display:flex; gap:24px; }
.masthead nav button { color:#bec5ca; border-bottom:1px solid transparent; }
.masthead nav [aria-current="page"] { color:#fff; border-color:#ffffff88; }
#language { justify-self:end; }
.project-info {top:max(11%,calc(var(--nav-height) + 20px));}
.art { transition:transform .42s cubic-bezier(.2,.76,.25,1); }
.pulled .art { transform:translateY(-15%) rotate(-4deg); }
#reader,#bio { position:fixed; inset:var(--nav-height) 0 0; z-index:30; }
#reader { display:grid; place-items:center; padding:16px; }
.sheet {
  --picture-height: clamp(70px, 28svh, 310px);
  position:absolute;
  width:min(640px,92vw);
  left:50%;
  transform:translateX(-50%);
  top:calc(50svh - var(--nav-height) - var(--picture-height) / 2);
}
.drawer-window { overflow:hidden; }
.sheet .details { max-height:calc(50svh - var(--picture-height) / 2 - 12px); overscroll-behavior:contain; }

.hero { position:relative; transform-origin:0 0; z-index:2; width:100%; height:var(--picture-height); }
#cover { width:100%; height:100%; max-height:none; border-radius:12px 12px 0 0; object-fit:cover; }
.details { background:linear-gradient(135deg,#303a45,#1b232c); border:1px solid #ffffff40; border-top:0; border-radius:0 0 14px 14px; padding:16px 26px 23px; overflow-y:auto; }
.back-link { float:right; margin-left:14px; padding:5px 13px; border-radius:20px; border:1px solid #ffffff59; }
.details h2 { margin:4px 0 10px; line-height:1.2; font-size:clamp(23px,3vw,36px); }
.attributes { display:flex; flex-wrap:wrap; gap:5px 16px; color:#d2dde7; font-size:14px; }
#summary,.bio-copy {line-height:1.7;}
#visit { font-size:14px; text-underline-offset:4px; }
#bio {background:linear-gradient(115deg,#151b23fa,#222a33ed);overflow:auto;padding:7svh 7vw;}
#bio article {max-width:780px;margin:auto;}
#bio h1 { position:static; margin:0 0 24px; letter-spacing:.01em; }
#bio-back { float:none; display:block; min-height:44px; padding:8px 24px; margin:28px 0 0; }
html:lang(zh) #bio #bio-title { letter-spacing:.09em; }
#contact-title { font-size:1.2em; margin:1.35em 0 .4em; }
#contacts { font:inherit; overflow-wrap:anywhere; }
#contacts div + div { margin-top:.25em; }
#contacts [data-contact]::after { content:": "; }
:lang(zh) #contacts [data-contact]::after { content:"："; }
#contacts a { font:inherit; text-decoration:none; }
#contacts a:hover, #contacts a:focus-visible { text-decoration:underline; }
@media(max-width:650px){:root{--nav-height:56px;} .masthead {padding:0 3vw;font-size:13px;} .masthead .brand{font-size:14px;letter-spacing:-.02em;} .masthead nav{gap:7px;} .hint::after{content:attr(data-mobile);} .details{padding:12px 17px 18px;} }
@media(prefers-reduced-motion:reduce){.art {transition:none;}}

.masthead .brand {
  justify-self:start; display:inline-flex; align-items:center;
  gap:clamp(7px, .95vw, 16px); letter-spacing:.025em; white-space:nowrap;
}
.masthead .brand span { display:inline; margin:0; font:inherit; letter-spacing:inherit; }
.masthead .brand i { font-style:normal; font-weight:400; opacity:.55; }
#bio article { max-width:1020px; display:grid; grid-template-columns:minmax(160px,.65fr) minmax(0,1.35fr); gap:clamp(24px,5vw,75px); align-items:start; }
.portrait { display:block; width:100%; max-height:55svh; object-fit:contain; }
@media(max-width:650px) {
  #bio article {grid-template-columns:1fr;}
  .portrait {width:min(58vw,245px); justify-self:center;}
}
@media(max-width:420px) {
  .masthead { grid-template-columns:auto 1fr auto; }
  .masthead nav { justify-self:center; gap:2px; }
  .masthead .brand {gap:5px;font-size:13px;}
}

#ranges, #range-labels { opacity: .45; }
#ranges { position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; color:#f7fafb; }
#ranges path { fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; }
#range-labels { position:absolute; inset:0; pointer-events:none; color:#f7fafb; }
#range-labels span { position:absolute; top:0; left:0; transform-origin:0 0; white-space:nowrap; font-weight:850; line-height:1; }
@media (max-width:649px) {
  .ambience div { background-image:var(--frost); filter:none; }
  .glass {
    backdrop-filter:none; -webkit-backdrop-filter:none;
    background:linear-gradient(128deg,#edf7ff59,#b2cad52b 53%,#d0dfe530),
               linear-gradient(0deg,#1c263de8,#374658ae), var(--frost) center 80% / cover;
  }
}
