/* Portfolio refinement: the original exhibition, with a clearer reading order. */
:root {
  --muted: #686868;
  --line: #dededc;
  --gutter: clamp(24px, 4vw, 72px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
body { font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif; }
::selection { background: #dce6fc; color: var(--ink); }
.site-header { padding: 25px var(--gutter); height: 100px; }
.identity { gap: 15px; font-weight: 500; }
.identity-caption { font-weight: 400; color: var(--muted); }
.monogram { font-family: Arial, sans-serif; font-size: 38px; }
.header-edition { font: 10px var(--mono); letter-spacing: 1.1px; color: var(--muted); }
.header-edition span { margin-left: 15px; color: #8b8b8b; }
.header-link { font: 12px var(--mono); }
.identity, .header-link { transition: opacity .2s; }
.identity:hover, .header-link:hover { opacity: .65; }

/* A readable introduction sits beside, rather than on top of, the objects. */
.home-view { height: 100svh; min-height: 760px; background: var(--bg); }
.hero-description {
  left: var(--gutter); right: auto; top: 50%; bottom: auto; width: 340px;
  max-width: none; padding: 0; transform: translateY(-47%);
  text-align: left; background: none; backdrop-filter: none;
}
.hero-description .hero-eyebrow {
  display: flex; align-items: center; gap: 9px; margin: 0 0 30px;
  font: 10px var(--mono); letter-spacing: 1.2px; color: var(--muted);
}
.hero-eyebrow > span { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.hero-description h2 { font-size: clamp(40px, 3.5vw, 54px); line-height: 1.4; font-weight: 500; letter-spacing: -2.5px; margin: 0 0 27px; }
.curiosity { position: relative; display: inline-block; }
.curiosity svg { position: absolute; left: -4%; bottom: -2px; width: 108%; height: 12px; fill: none; stroke: var(--accent); stroke-width: 1.7; }
.hero-description .hero-intro { font-size: 14px; color: #626262; line-height: 1.95; margin: 0 0 28px; }
.hero-description .hero-cta { display: inline-flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; border: 0; padding: 0; }
.hero-cta > span { display: grid; place-items: center; margin: 0; width: 35px; height: 35px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 20px; transition: transform .3s var(--ease), background .3s; }
.hero-cta:hover > span { transform: translate(3px,-3px); background: var(--accent); }
.hero-index { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 19px; max-width: 265px; }
.hero-index > span { font: 10px var(--mono); color: var(--muted); letter-spacing: .4px; }
.hero-index > p { font-size: 11px; margin: 10px 0 0; color: #777; letter-spacing: .5px; }
.stage { left: 30%; right: 1%; top: 112px; bottom: 124px; perspective: 2600px; overflow: visible; }
.stage-label { position: absolute; left: 10%; right: 7%; top: 0; display: flex; justify-content: space-between; color: #838383; font: 9px var(--mono); letter-spacing: 1.7px; }
.stage-label::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; border-top: 1px solid var(--line); }
.world { transform: translateY(10px) rotateX(36deg) rotateZ(-24deg) scale(.59); }
.plane-grid { inset: -120px; background-size: 56px 56px; opacity: .48; mask-image: radial-gradient(ellipse, #000 5%, transparent 66%); }
.wordmark { top: 355px; left: 480px; font-size: 207px; letter-spacing: -18px; }
.wordmark span:last-child { font-size: 177px; letter-spacing: -19px; margin-top: 16px; margin-left: -110px; }
.exhibit { transition: transform .5s var(--ease); }
.exhibit:hover, .exhibit:focus-visible { transform: translateZ(55px) translateY(-12px); }
.exhibit-face { border-radius: 5px; box-shadow: 0 1px 2px #00000008, 10px 18px 28px #00000012, 18px 40px 60px #00000009; }
.exhibit:hover .exhibit-face { box-shadow: 0 2px 3px #00000008, 15px 30px 40px #00000018, 25px 50px 65px #0000000c; }
.exhibit-caption { font-size: 17px; padding-top: 15px; }
.exhibit-memory { left: 100px; top: 140px; width: 370px; }
.exhibit-attacker { left: 920px; top: 230px; width: 390px; }
.exhibit-atlas { left: 870px; top: 730px; width: 340px; }
.exhibit-jianying { left: 180px; top: 735px; width: 340px; }
.exhibit-art { left: 600px; top: -15px; width: 300px; }
.exhibit-art .exhibit-face { padding: 18px 19px 16px; }
.art-cover { display: block; height: 155px; margin-top: 14px; overflow: hidden; background: #e5e4de; }
.art-cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 39%; filter: saturate(.7); transition: filter .5s; }
.exhibit-art:hover img { filter: saturate(1); }
.art-title { margin-top: 15px; font-size: 31px; }
.art-title > span { display: inline; margin-left: 7px; font-size: 20px; }
.art-rule, .art-description { display: none; }
.art-tags { margin-top: 14px; }
.exhibit-art .exhibit-caption, .exhibit-jianying .exhibit-caption { font-size: 17px; }
.plane-annotation { top: 965px; left: 570px; font-size: 10px; letter-spacing: 2px; }
.scene-note { bottom: 103px; right: var(--gutter); display: flex; align-items: center; gap: 8px; font-size: 10px; color: #707070; }
.scene-note > span:last-child { color: #858585; }
.scene-cross { font: 19px var(--mono); margin-right: 5px; }
.workbench-open .world { transform: translateY(10px) rotateX(0deg) rotateZ(0deg) scale(.46); }
.workbench-open .exhibit-art { top: -15px; }
.workbench-open .exhibit-attacker { left: 920px; }

/* The dock retains its familiar shape and exposes the selected destination. */
.dock-wrap { bottom: 26px; width: max-content; max-width: calc(100% - 24px); }
.dock { padding: 7px; gap: 5px; border-radius: 21px; border-color: #fff; background: #ffffffde; box-shadow: 0 2px 4px #00000004, 0 8px 28px #0000000c; }
.dock-item { flex-shrink: 0; display: flex; justify-content: center; align-items: center; width: 43px; height: 43px; color: #707070; background: transparent; }
.dock-item.active { width: auto; min-width: 43px; padding: 0 14px; gap: 9px; background: #e9e9e7; border-radius: 14px; box-shadow: none; color: var(--ink); }
.dock-item svg { width: 19px; height: 19px; flex-shrink: 0; }
.dock-label { display: none; white-space: nowrap; font-size: 12px; font-weight: 500; }
.dock-item.active .dock-label { display: block; }
.dock-divider { height: 22px; }
footer { left: var(--gutter); right: var(--gutter); bottom: 38px; font: 10px var(--mono); color: #747474; }

body:has(#home[hidden]) footer { position: relative; inset: auto; margin: -80px var(--gutter) 110px; }

/* Catalogue: tactile project previews and a consistent editorial grid. */
.projects-view, .about-view { width: min(1200px, calc(100% - var(--gutter) * 2)); padding-top: 154px; padding-bottom: 150px; }
.page-heading { display: grid; grid-template-columns: 1fr 390px; column-gap: 60px; align-items: end; }
.page-heading .kicker { grid-column: 1/-1; margin: 0 0 24px; font-size: 10px; }
.page-heading h2 { font-size: 60px; font-weight: 500; letter-spacing: -2.5px; margin: 0; line-height: 1.2; gap: 13px; }
.heading-count { font: 14px var(--mono); padding-top: 4px; margin: 0; color: var(--muted); }
.page-heading > p:last-child { font-size: 14px; line-height: 1.9; max-width: 370px; margin: 0 0 3px; }
.projects-view .toolbar { margin-top: 48px; padding-bottom: 18px; column-gap: 16px; row-gap: 14px; }
.projects-view .filters { gap: 24px; }
.projects-view .filter { color: #696969; font-size: 13px; }
.projects-view .filter.active { color: var(--ink); font-weight: 500; }
.filter.active::after { bottom: -19px; }
.search { background: #efefed; padding: 9px 12px; border-radius: 7px; transition: background .2s; }
.search:hover, .search:focus-within { background: #e7e7e5; }
.search input { font-size: 12px; padding: 0; }
.search input::placeholder { color: #727272; }
.search svg { width: 14px; height: 14px; }
.results-status { font: 10px var(--mono); color: #757575; margin: 17px 0 0; text-align: right; }
.projects-view .project-group { margin-top: 32px; }
.projects-view .group-heading { padding: 15px 0 24px; }
.projects-view .group-heading h3 { font-size: 20px; margin-bottom: 7px; letter-spacing: -.5px; }
.projects-view .group-heading p { font-size: 12px; color: #717171; }
.projects-view .group-index { color: #727272; font-size: 10px; }
.project { grid-template-columns: 24px 192px minmax(0, 1fr) 36px; gap: 26px; padding: 30px 0; align-items: center; }
.project-number { padding: 0; color: #7b7b7b; font-size: 10px; align-self: start; margin-top: 4px; }
.project-copy { min-width: 0; }
.projects-view .project h4 { font-size: 27px; font-weight: 500; letter-spacing: -.9px; margin-bottom: 10px; }
.project-name { transition: color .2s; }
.project .description { font-size: 13px; line-height: 1.85; color: #686868; max-width: 690px; }
.project-meta { gap: 9px 17px; margin-top: 17px; font-size: 10px; }
.project-meta .role { color: #626262; }
.project-meta .tags { gap: 10px; font: 10px var(--mono); color: #787878; }
.project-meta .project-github { font-size: 10px; color: #666; }
.project-arrow { background: transparent; border: 1px solid #d4d4d2; color: #454545; transition: background .25s, color .25s, transform .25s; }
.project-arrow:hover { background: var(--ink); color: #fff; transform: translate(2px,-2px); }
.project-preview { position: relative; height: 142px; overflow: hidden; display: grid; place-items: center; border-radius: 5px; background: #eeefed; }
.preview-object { position: absolute; inset: auto; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg) scale(var(--preview-scale, .43)); transform-origin: center; flex-shrink: 0; transition: transform .55s var(--ease); }
.project:has(.project-name:hover) .preview-object, .project:has(.project-arrow:hover) .preview-object, .project:focus-within .preview-object { transform: translate(-50%, -50%) rotate(-3deg) scale(var(--preview-scale, .43)); }
.project-preview .preview-object { left: 50%; top: 50%; }
.project-preview .exhibit-face { box-shadow: 0 5px 14px #00000013; }
.preview-object.exhibit-art { --preview-scale: .4; }
.preview-object.exhibit-jianying { --preview-scale: .47; }
.preview-object .exhibit-face { pointer-events: none; }
.preview-grid { position: absolute; inset: 0; background-image: linear-gradient(#aab2ad26 1px, transparent 1px), linear-gradient(90deg, #aab2ad26 1px, transparent 1px); background-size: 19px 19px; mask-image: radial-gradient(ellipse, #000, transparent 70%); }
.preview-symbol { position: relative; font: 50px var(--mono); color: #474c49; font-weight: 300; transform: rotate(-8deg); margin-top: -10px; transition: transform .4s var(--ease); }
.project:focus-within .preview-symbol, .project:has(.project-name:hover) .preview-symbol { transform: rotate(0deg); }
.preview-caption { position: absolute; bottom: 13px; left: 14px; right: 14px; text-align: center; font-size: 8px; color: #616661; letter-spacing: 1px; }
.preview-backend { background: #eeefed; }
.preview-frontend { background: #eeedf1; }
.preview-demo { background: #efece7; }
.projects-view .project-group + .project-group { margin-top: 65px; }
.state { padding: 65px 20px; }

/* About uses the same type scale, with fewer competing weights. */
.about-view { max-width: 1100px; }
.about-view > .kicker { font-size: 10px; }
.about-view h2 { font-size: clamp(42px, 5vw, 72px); font-weight: 500; letter-spacing: -3px; line-height: 1.3; margin-top: 29px; margin-bottom: 50px; }
.about-view h2 > span { color: var(--accent); }
.about-columns { border-top: 1px solid var(--line); padding-top: 38px; grid-template-columns: 1fr 250px; gap: 110px; }
.about-columns p { font-size: 15px; color: #626262; line-height: 2; }
.about-columns .about-lead { font-size: 19px; line-height: 1.9; }
.about-columns aside { padding-left: 34px; }
.about-columns li { border-bottom: 1px solid var(--line); font-size: 12px; line-height: 3.3; }
.about-columns aside p { font-size: 20px; color: #555; line-height: 1.6; }
.button { border-radius: 7px; }
.about-columns .button { margin-top: 8px; }
.dialog-top button { min-width: 36px; flex-shrink: 0; }
#project-dialog h2 { overflow-wrap: anywhere; }
#project-dialog .project-notes .tags { color: #6a6a6a; }

@media (min-width: 1450px) {
  .world { transform: translateY(10px) rotateX(36deg) rotateZ(-24deg) scale(.7); }
  .stage { left: 29%; right: 3%; }
  .hero-description { width: 370px; }
  .hero-description .hero-intro { font-size: 15px; }
  .workbench-open .world { transform: translateY(10px) rotateX(0deg) rotateZ(0deg) scale(.53); }
}
@media (min-width: 1800px) {
  .world { transform: translateY(10px) rotateX(36deg) rotateZ(-24deg) scale(.84); }
  .stage { left: 27%; right: 4%; }
  .hero-description { left: max(var(--gutter), calc((100vw - 1680px) / 2)); }
}
@media (min-width: 951px) and (max-height: 800px) {
  .home-view { min-height: 700px; }
  .stage { top: 105px; bottom: 115px; }
  .world { transform: translateY(0px) rotateX(36deg) rotateZ(-24deg) scale(.54); }
  .hero-description { transform: translateY(-42%); }
  .hero-description .hero-eyebrow { margin-bottom: 23px; }
  .hero-index { margin-top: 34px; }
  .workbench-open .world { transform: translateY(0px) rotateX(0deg) rotateZ(0deg) scale(.42); }
}
@media (max-width: 1150px) and (min-width: 951px) {
  .hero-description { width: 280px; }
  .hero-description h2 { font-size: 39px; }
  .hero-description .hero-intro { font-size: 13px; }
  .world { transform: translateY(10px) rotateX(36deg) rotateZ(-24deg) scale(.47); }
  .header-edition { display: none; }
  .stage { left: 31%; right: 0; }
}
@media (max-width: 950px) {
  .header-edition { display: none; }
  .home-view { height: auto; min-height: 100svh; padding: 143px var(--gutter) 140px; display: flex; flex-direction: column; }
  .hero-description { position: relative; inset: auto; width: 100%; transform: none; order: -1; }
  .hero-description h2 { font-size: 46px; margin-bottom: 22px; }
  .hero-description h2 br { display: none; }
  .hero-description .hero-eyebrow { margin-bottom: 22px; }
  .hero-description .hero-intro { display: inline-block; margin-bottom: 0; }
  .hero-description .hero-cta { float: right; margin-top: 9px; }
  .hero-index { display: none; }
  .stage { position: relative; inset: auto; height: 540px; margin-top: 54px; overflow: hidden; perspective: 2200px; }
  .stage-label { left: 0; right: 0; }
  .world { transform: translateY(20px) rotateX(36deg) rotateZ(-24deg) scale(.53); }
  .scene-note { position: relative; inset: auto; align-self: flex-end; margin-top: 4px; }
  .workbench-open .world { transform: translateY(15px) rotateX(0deg) rotateZ(0deg) scale(.41); }
  .projects-view, .about-view { padding-top: 144px; }
  .page-heading { grid-template-columns: 1fr; gap: 0; }
  .page-heading h2 { font-size: 52px; }
  .page-heading > p:last-child { max-width: 600px; margin-top: 22px; }
  .projects-view .toolbar { flex-direction: column; align-items: stretch; }
  .projects-view .filters { gap: 22px; }
  .filter.active::after { bottom: 0; }
  .search { border: 0; max-width: none; }
  .search input { width: 100%; }
  .project { grid-template-columns: 20px 155px minmax(0,1fr) 32px; gap: 17px; }
  .project-preview { height: 128px; }
  .projects-view .project h4 { font-size: 24px; }
  .project-meta .project-github { margin-left: 0; }
  .about-columns { grid-template-columns: 1fr 210px; gap: 45px; }
}
@media (max-width: 600px) {
  .site-header { padding: 20px var(--gutter); height: 86px; }
  .monogram { font-size: 33px; }
  .identity { gap: 12px; }
  .identity-caption { font-size: 10px; }
  .header-link { font-size: 10px; }
  .home-view { padding-top: 126px; padding-bottom: 119px; }
  .hero-description h2 { font-size: 39px; letter-spacing: -2px; line-height: 1.4; }
  .hero-description h2 br { display: block; }
  .hero-description .hero-eyebrow { font-size: 9px; margin-bottom: 20px; }
  .hero-description .hero-intro { font-size: 13px; line-height: 1.85; display: block; }
  .hero-description .hero-cta { float: none; font-size: 13px; gap: 20px; margin-top: 22px; }
  .hero-cta > span { width: 31px; height: 31px; font-size: 18px; }
  .stage { height: 350px; margin: 39px -12px 0; }
  .stage-label { left: 12px; right: 12px; font-size: 8px; letter-spacing: 1px; }
  .world { transform: translateY(13px) rotateX(28deg) rotateZ(-19deg) scale(.245); }
  .plane-grid { opacity: .42; }
  .wordmark { font-size: 220px; }
  .wordmark span:last-child { font-size: 190px; }
  .exhibit-memory { left: 110px; top: 135px; }
  .exhibit-attacker { left: 910px; top: 220px; }
  .exhibit-art { top: -30px; }
  .exhibit-atlas { left: 890px; top: 745px; }
  .exhibit-jianying { left: 130px; top: 755px; }
  .exhibit-caption, .exhibit-art .exhibit-caption, .exhibit-jianying .exhibit-caption { font-size: 24px; }
  .scene-note { font-size: 9px; margin-top: -3px; }
  .workbench-open .world { transform: translateY(8px) rotateX(0deg) rotateZ(0deg) scale(.25); }
  .workbench-open .exhibit-art { top: -30px; }
  .dock-wrap { bottom: max(20px, env(safe-area-inset-bottom)); }
  .dock { gap: 3px; padding: 6px; border-radius: 20px; }
  .dock-item { height: 43px; width: 41px; }
  .dock-item.active { padding: 0 11px; gap: 6px; }
  .dock-label { font-size: 11px; }
  .projects-view, .about-view { padding-top: 126px; padding-bottom: 128px; }
  .page-heading .kicker { margin-bottom: 23px; font-size: 9px; }
  .page-heading h2 { font-size: 42px; letter-spacing: -2px; }
  .heading-count { font-size: 12px; }
  .page-heading > p:last-child { font-size: 13px; margin-top: 20px; }
  .projects-view .toolbar { margin-top: 31px; padding-bottom: 16px; }
  .projects-view .filters { gap: 10px; flex-wrap: nowrap; justify-content: space-between; }
  .projects-view .filter { padding-bottom: 11px; font-size: 12px; }
  .projects-view .filter > span { display: none; }
  .search { padding: 12px; }
  .results-status { font-size: 9px; }
  .projects-view .project-group { margin-top: 22px; }
  .projects-view .group-heading { padding: 10px 0 18px; }
  .projects-view .group-heading h3 { font-size: 20px; }
  .projects-view .group-heading p { font-size: 11px; }
  .project { grid-template-columns: 64px minmax(0,1fr) 30px; gap: 12px; padding: 23px 0; align-items: start; }
  .project-number { display: none; }
  .project-preview { height: 64px; border-radius: 4px; }
  .preview-object { --preview-scale: .19; }
  .preview-object.exhibit-art { --preview-scale: .18; }
  .preview-object.exhibit-jianying { --preview-scale: .2; }
  .preview-symbol { font-size: 27px; margin: 0; }
  .preview-caption { display: none; }
  .projects-view .project h4 { font-size: 21px; margin: 2px 0 9px; letter-spacing: -.6px; }
  .project .description { font-size: 12px; line-height: 1.85; }
  .project-meta { font-size: 10px; gap: 9px; margin-top: 12px; }
  .project-meta .tags { font-size: 9px; gap: 7px; }
  .project-meta .project-github { font-size: 10px; }
  .project-arrow { width: 28px; height: 28px; font-size: 16px; margin-top: 2px; }
  .projects-view .project-group + .project-group { margin-top: 40px; }
  .about-view h2 { font-size: 43px; letter-spacing: -2px; margin-bottom: 34px; }
  .about-columns { grid-template-columns: 1fr; gap: 32px; padding-top: 28px; }
  .about-columns p { font-size: 14px; }
  .about-columns .about-lead { font-size: 17px; }
  .about-columns aside { padding: 25px 0 0; }
  .about-columns aside ul { margin-bottom: 24px; }
}
@media (max-width: 370px) {
  .hero-description h2 { font-size: 36px; }
  .world { transform: translateY(13px) rotateX(28deg) rotateZ(-19deg) scale(.22); }
  .stage { height: 320px; }
  .workbench-open .world { transform: translateY(8px) rotateX(0deg) rotateZ(0deg) scale(.22); }
  .project { grid-template-columns: 46px minmax(0,1fr) 26px; gap: 10px; }
  .project-preview { height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .world, .exhibit, .preview-object, .preview-symbol, .hero-cta > span { transition: none; }
}

@media (min-width: 601px) and (max-width: 800px) {
  .world { transform: translateY(20px) rotateX(36deg) rotateZ(-24deg) scale(.46); }
}
