
:root{
  --bg:#f7f7f5;
  --panel:#ffffff;
  --text:#0b0b0b;
  --muted:#7f7f7f;
  --line:#e2e2df;
  --accent:#111;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: Inter,"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased;
}
img{display:block;max-width:100%}
a{text-decoration:none;color:inherit}
button{font:inherit}
.site-header{
  position:fixed; inset:0 0 auto 0; z-index:30;
  height:72px; display:flex; align-items:center; justify-content:space-between;
  padding:0 3.8vw; background:rgba(247,247,245,.82); backdrop-filter: blur(18px);
  border-bottom:1px solid rgba(0,0,0,.05);
}
.brand{font-size:20px; font-weight:800; letter-spacing:.08em}
.nav{display:flex; gap:26px}
.nav a{display:flex; gap:6px; align-items:center}
.nav b{font-size:13px}
.nav span{font-size:10px; letter-spacing:.08em; color:var(--muted)}

.section{padding:128px 4.4vw}
.section-kicker{
  font-size:12px; letter-spacing:.15em; color:#9a9a9a; text-transform:uppercase;
  margin-bottom:22px;
}
.section-title{
  margin:0;
  font-size:clamp(52px,7vw,100px);
  line-height:1;
  letter-spacing:-.055em;
}

.hero{
  min-height:100vh;
  padding-top:110px;
  position:relative;
  overflow:hidden;
}
#heroCanvas{position:absolute; inset:0; width:100%; height:100%; z-index:0}
.hero-grid{
  position:relative; z-index:2;
  display:grid; grid-template-columns:1.15fr .72fr; gap:5vw; align-items:center;
  min-height:calc(100vh - 110px);
}
.hero-copy h1{
  font-size:clamp(74px,12vw,180px);
  line-height:.88; margin:0 0 16px; letter-spacing:-.07em;
}
.hero-copy h2{
  font-size:clamp(22px,2.9vw,42px);
  margin:0 0 26px; font-weight:500; letter-spacing:-.03em;
}
.hero-tagline{
  font-size:clamp(20px,1.7vw,28px);
  line-height:1.45; margin:0 0 28px; color:#2a2a2a;
  white-space:nowrap;
}
.hero-mini{
  display:flex; flex-wrap:wrap; gap:10px; margin-top:18px;
}
.hero-mini span{
  border:1px solid var(--line); border-radius:999px; padding:10px 16px;
  font-size:13px; color:#444; background:rgba(255,255,255,.6)
}
.profile-card{
  justify-self:end;
  width:min(100%,430px);
  background:rgba(255,255,255,.85);
  border:1px solid rgba(0,0,0,.08);
  border-radius:24px;
  padding:22px;
  box-shadow:0 18px 60px rgba(0,0,0,.05);
}
.profile-meta{display:flex; flex-direction:column; gap:8px; margin-bottom:18px}
.profile-meta span{font-size:11px; letter-spacing:.16em; color:var(--muted)}
.profile-meta strong{font-size:26px}
.profile-meta small{font-size:15px; line-height:1.6; color:#666}
.profile-image-wrap{
  border-radius:18px; overflow:hidden; background:#fff;
}
.profile-image-wrap img{
  width:100%; height:auto; object-fit:cover;
}

.about-grid{
  display:grid; grid-template-columns:.9fr 1.1fr; gap:7vw; align-items:start;
}
.about-text{
  font-size:18px; line-height:2; color:#222;
}
.about-text p{margin:0 0 20px}

.section-head{
  display:flex; justify-content:space-between; align-items:end; gap:40px; margin-bottom:20px;
}
.section-note{
  max-width:440px; margin:0; color:var(--muted); line-height:1.8; font-size:15px;
}
.work-group{margin-top:48px}
.group-head{
  display:flex; justify-content:space-between; align-items:end;
  padding:0 0 14px; border-bottom:1px solid var(--line); margin-bottom:14px;
}
.group-head h3{
  margin:0; font-size:28px; letter-spacing:-.03em;
}
.group-head span{
  font-size:11px; letter-spacing:.14em; color:var(--muted);
}
.works-list{display:flex; flex-direction:column}
.work-row{
  display:grid; grid-template-columns:200px 1fr; gap:22px;
  width:100%; padding:18px 0; background:none; border:0; border-bottom:1px solid var(--line);
  text-align:left; cursor:pointer;
}
.row-media{
  width:100%; aspect-ratio:16/9; background:#fff; border-radius:6px; overflow:hidden;
}
.row-media img{width:100%; height:100%; object-fit:cover; transition:transform .45s ease}
.row-media.contain img{object-fit:contain; background:#fff}
.work-row:hover .row-media img{transform:scale(1.03)}
.row-content{display:flex; flex-direction:column; justify-content:center; gap:24px}
.row-title{display:flex; flex-direction:column; gap:8px}
.row-title .zh{font-size:24px; font-weight:700; letter-spacing:-.02em; line-height:1.3}
.row-title .en{font-size:12px; letter-spacing:.08em; color:var(--muted)}
.row-meta{
  display:flex; justify-content:space-between; align-items:center;
  font-size:12px; letter-spacing:.08em; color:#8a8a8a; border-top:1px solid var(--line);
  padding-top:14px;
}

.metric-grid{
  display:grid; grid-template-columns:repeat(4,1fr);
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}
.metric-card{
  padding:36px 28px 34px; border-right:1px solid var(--line); min-height:290px;
}
.metric-card:last-child{border-right:none}
.metric-card strong{
  display:block;
  font-size:clamp(42px,4vw,72px);
  line-height:1;
  letter-spacing:-.06em;
  margin-bottom:20px;
}
.metric-sub-cn{
  font-size:22px; font-weight:700; line-height:1.35; margin-bottom:12px;
}
.metric-sub-en{
  font-size:13px; letter-spacing:.13em; color:var(--muted); text-transform:uppercase;
}
.metric-card p{
  margin:20px 0 0; font-size:17px; line-height:1.9; color:#444;
}

.contact-section{
  min-height:78vh;
  display:flex; flex-direction:column; justify-content:space-between;
}
.contact-block{
  text-align:center;
  max-width:1100px;
  margin:0 auto;
  padding:72px 0 40px;
}
.contact-block h2{
  margin:0 auto 40px;
  font-size:clamp(62px,8.5vw,124px);
  line-height:1.04;
  letter-spacing:-.06em;
}
.contact-links{
  display:flex; justify-content:center; gap:28px; flex-wrap:wrap;
}
.contact-links a{
  font-size:20px; border-bottom:1px solid #111; padding-bottom:4px;
}
.site-footer{
  display:flex; justify-content:space-between; align-items:center;
  border-top:1px solid var(--line); padding-top:18px; margin-top:30px;
  font-size:11px; letter-spacing:.12em; color:var(--muted)
}

.reveal{opacity:0; transform:translateY(24px); transition:opacity .8s ease, transform .8s ease}
.reveal.in{opacity:1; transform:none}

.modal{
  position:fixed; inset:0; z-index:50; background:rgba(247,247,245,.96);
  opacity:0; visibility:hidden; transition:.25s ease; overflow:auto;
}
.modal.open{opacity:1; visibility:visible}
.modal-close{
  position:fixed; top:26px; right:34px; z-index:60;
  width:48px; height:48px; border-radius:50%; border:0;
  background:#fff; box-shadow:0 8px 30px rgba(0,0,0,.08);
  font-size:34px; cursor:pointer;
}
.modal-panel{
  padding:110px 6vw 90px;
}
.modal-hero{
  display:grid; grid-template-columns:1fr 1.15fr; gap:5vw; align-items:start;
}
.modal-index{
  font-size:12px; color:var(--muted); letter-spacing:.15em; text-transform:uppercase; margin-bottom:18px;
}
.modal-title{
  font-size:clamp(44px,6vw,82px); line-height:1.05; letter-spacing:-.05em; margin:0 0 22px;
}
.modal-lead{
  font-size:18px; line-height:1.9; color:#333; margin:0;
}
.modal-cover{
  border-radius:10px; overflow:hidden; background:#fff; border:1px solid rgba(0,0,0,.05)
}
.modal-cover img{
  width:100%; max-height:70vh; object-fit:cover;
}
.modal-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:22px;
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  margin-top:52px; padding:24px 0;
}
.modal-grid span{
  font-size:11px; letter-spacing:.12em; color:var(--muted); text-transform:uppercase;
}
.modal-grid p{
  margin:10px 0 0; line-height:1.8; color:#222; font-size:15px;
}
.modal-block{
  display:grid; grid-template-columns:.8fr 1.2fr; gap:6vw;
  padding:48px 0; border-bottom:1px solid var(--line);
}
.modal-block h3{
  margin:0; font-size:28px; letter-spacing:-.03em;
}
.modal-block p, .modal-block li{
  font-size:17px; line-height:1.9; color:#333;
}
.modal-block ul{margin:0; padding-left:1.2em}

@media (max-width:1200px){
  .hero-tagline{white-space:normal}
  .metric-grid{grid-template-columns:1fr 1fr}
  .metric-card:nth-child(2){border-right:none}
}
@media (max-width:900px){
  .nav{display:none}
  .hero-grid, .about-grid, .modal-hero, .modal-block{grid-template-columns:1fr}
  .section{padding-left:5vw; padding-right:5vw}
  .section-head, .group-head{flex-direction:column; align-items:flex-start}
  .work-row{grid-template-columns:1fr}
  .metric-grid{grid-template-columns:1fr}
  .metric-card{border-right:none; border-bottom:1px solid var(--line)}
  .metric-card:last-child{border-bottom:none}
  .modal-grid{grid-template-columns:1fr}
}


/* ===== V4 refinements ===== */

/* Homepage: restore the more balanced, centered composition from the earlier draft */
.hero{
  padding-left:6.5vw;
  padding-right:6.5vw;
}
.hero-grid{
  width:min(1460px, 88vw);
  margin:0 auto;
  grid-template-columns:minmax(0, 1fr) 310px;
  gap:7vw;
}
.hero-copy{
  max-width:900px;
}
.hero-copy h1{
  font-size:clamp(82px, 8.5vw, 132px);
  line-height:.9;
  margin:0 0 18px;
}
.hero-copy h2{
  font-size:clamp(24px, 2.35vw, 38px);
  margin-bottom:26px;
}
.hero-tagline{
  font-size:clamp(19px, 1.45vw, 25px);
  line-height:1.55;
  white-space:normal;
  max-width:900px;
}
.scroll-cue{
  display:inline-block;
  margin-top:48px;
  font-size:11px;
  letter-spacing:.14em;
  color:#9a9a9a;
}
.profile-card{
  width:310px;
  padding:18px;
  border-radius:18px;
}
.profile-meta strong{
  font-size:23px;
}
.profile-meta small{
  font-size:13px;
}
.profile-image-wrap{
  border-radius:12px;
}

/* Experience: smaller, aligned titles */
.metric-grid{
  align-items:stretch;
}
.metric-card{
  min-height:285px;
  padding:34px 28px 30px;
  display:grid;
  grid-template-rows:74px 28px 24px 1fr;
  align-content:start;
}
.metric-card strong{
  font-size:clamp(34px, 3vw, 52px);
  line-height:1.08;
  letter-spacing:-.045em;
  margin:0;
  align-self:start;
}
.metric-card:first-child strong{
  font-size:clamp(38px, 3.1vw, 54px);
}
.metric-title{
  font-size:19px;
  font-weight:700;
  line-height:1.25;
  align-self:start;
}
.metric-title.ghost{
  visibility:hidden;
}
.metric-sub-en{
  font-size:11px;
  letter-spacing:.12em;
  color:var(--muted);
  align-self:start;
}
.metric-card p{
  margin:18px 0 0;
  font-size:16px;
  line-height:1.8;
  color:#444;
  align-self:start;
}

@media (max-width:1100px){
  .hero-grid{
    width:90vw;
    grid-template-columns:1fr 280px;
    gap:5vw;
  }
  .profile-card{width:280px}
  .metric-grid{grid-template-columns:1fr 1fr}
  .metric-card:nth-child(2){border-right:none}
}
@media (max-width:900px){
  .hero-grid{
    width:100%;
    grid-template-columns:1fr;
  }
  .profile-card{
    width:min(100%, 300px);
    justify-self:start;
  }
  .metric-card{
    grid-template-rows:auto auto auto auto;
  }
  .metric-title.ghost{
    display:none;
  }
}


/* ===== V5 refinements ===== */

/* Section headings: slightly smaller and more restrained */
.section-title{
  font-size:clamp(44px,5.2vw,76px);
  line-height:1.02;
  letter-spacing:-.045em;
}

/* Keep homepage composition balanced, while retaining the preferred earlier layout */
.hero-grid{
  width:min(1420px,86vw);
  margin:0 auto;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:6vw;
}
.hero-copy h1{
  font-size:clamp(78px,8vw,122px);
}
.profile-card{
  width:300px;
}

/* Contact: exactly two lines, centered; contact details vertically stacked */
.contact-block{
  max-width:1240px;
  margin:0 auto;
  text-align:center;
}
.contact-block h2{
  font-size:clamp(46px,5.8vw,86px);
  line-height:1.1;
  letter-spacing:-.045em;
  white-space:nowrap;
}
.contact-block h2 span{
  display:inline-block;
}
.contact-links{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
}
.contact-links a{
  font-size:19px;
  width:max-content;
}

/* Selected works group headings also slightly reduced */
.group-head h3{
  font-size:24px;
}

/* Experience titles: smaller and cleaner */
.metric-card strong{
  font-size:clamp(30px,2.5vw,44px);
  line-height:1.12;
  letter-spacing:-.035em;
}
.metric-card:first-child strong{
  font-size:clamp(34px,2.75vw,48px);
}

/* Make sure the new Luoyuan cover is shown cleanly */
.row-media.contain img{
  object-fit:cover;
  object-position:center;
}

@media (max-width:1100px){
  .contact-block h2{white-space:normal}
}
@media (max-width:900px){
  .hero-grid{width:100%; grid-template-columns:1fr}
  .profile-card{width:min(100%,300px)}
  .contact-block h2{font-size:clamp(42px,10vw,64px)}
}

/* ===== V6 Jiangsu motion detail ===== */
.modal-hero.has-videos{
  grid-template-columns:minmax(0,.92fr) minmax(540px,1.08fr);
  align-items:center;
}
.modal-title{
  font-size:clamp(38px,4.8vw,68px);
  line-height:1.06;
}
.modal-media-wrap{
  width:100%;
}
.modal-video-stage{
  position:relative;
  min-height:min(40vw, 660px);
  height:min(40vw, 660px);
}
.video-layer{
  position:absolute;
  border:0;
  padding:0;
  margin:0;
  border-radius:18px;
  overflow:hidden;
  background:#0a0a0a;
  cursor:pointer;
  text-align:left;
  box-shadow:0 18px 46px rgba(0,0,0,.14);
  transition:transform .38s ease, width .38s ease, height .38s ease, left .38s ease, right .38s ease, bottom .38s ease, top .38s ease, opacity .3s ease, box-shadow .38s ease;
}
.video-layer video{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  background:#000;
}
.video-layer::after{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.1) 48%, rgba(0,0,0,.3) 100%);
  pointer-events:none;
}
.video-layer-tag,
.video-layer-title{
  position:absolute;
  z-index:2;
  left:16px;
  color:#fff;
  text-shadow:0 2px 10px rgba(0,0,0,.45);
}
.video-layer-tag{
  top:14px;
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  opacity:.9;
}
.video-layer-title{
  bottom:16px;
  right:16px;
  left:16px;
  font-size:16px;
  line-height:1.4;
  font-weight:600;
}
.video-layer:not(.is-active){
  width:34%;
  aspect-ratio:16 / 9;
  bottom:18px;
  left:0;
  transform:translateX(0) scale(.94);
  z-index:2;
  opacity:.96;
}
.video-layer:not(.is-active):hover{
  transform:translateX(0) scale(.98);
}
.video-layer.is-active{
  width:84%;
  aspect-ratio:16 / 9;
  top:0;
  right:0;
  z-index:3;
  box-shadow:0 22px 70px rgba(0,0,0,.18);
}
.video-layer.is-active .video-layer-tag,
.video-layer.is-active .video-layer-title{
  left:18px;
}
.video-layer.is-active video{
  outline:none;
}
.video-layer.is-active::before{
  content:'点击右下角控制条可播放 / 暂停';
  position:absolute;
  right:18px;
  top:14px;
  z-index:2;
  font-size:11px;
  color:rgba(255,255,255,.82);
  letter-spacing:.04em;
}
.video-layer:not(.is-active) video::-webkit-media-controls{
  display:none !important;
}
.video-layer:not(.is-active) .video-layer-title{
  font-size:13px;
}

@media (max-width:1200px){
  .modal-hero.has-videos{
    grid-template-columns:1fr;
  }
  .modal-video-stage{
    min-height:62vw;
    height:62vw;
    max-height:620px;
  }
  .video-layer:not(.is-active){
    width:38%;
  }
}
@media (max-width:900px){
  .modal-media-wrap{
    margin-top:12px;
  }
  .modal-video-stage{
    min-height:78vw;
    height:78vw;
  }
  .video-layer.is-active{
    width:100%;
  }
  .video-layer:not(.is-active){
    width:42%;
    bottom:12px;
    left:12px;
  }
  .video-layer.is-active::before{
    display:none;
  }
}

/* ===== video layout fix v7 ===== */
.modal-video-stage{
  display:flex;
  flex-direction:column;
  gap:22px;
  height:auto;
  min-height:0;
}
.video-layer, .video-layer.is-active, .video-layer:not(.is-active){
  position:relative;
  inset:auto;
  width:100%;
  aspect-ratio:16/9;
  transform:none;
  opacity:1;
  display:block;
}
.video-layer:not(.is-active){
  order:2;
  box-shadow:0 12px 35px rgba(0,0,0,.12);
}
.video-layer.is-active{
  order:1;
}
.video-layer:not(.is-active):hover{
  transform:none;
}
.video-layer video{
  pointer-events:auto;
}
.video-layer.is-active::before{
  display:none;
}

/* ===== V8 video layout fix ===== */
.video-stack{
  display:flex;
  flex-direction:column;
  gap:28px;
  width:100%;
}
.video-item{
  width:100%;
}
.video-item-title{
  font-size:14px;
  letter-spacing:.06em;
  color:#777;
  margin-bottom:12px;
}
.video-item video{
  display:block;
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  background:#000;
  border-radius:18px;
}
.modal-hero.has-videos{
  grid-template-columns: minmax(360px,.7fr) minmax(600px,1.3fr);
  align-items:start;
}


/* ===== V9 dream project video layout ===== */
.video-stack{
  display:flex;
  flex-direction:column;
  gap:28px;
  width:100%;
}
.video-item{
  width:100%;
}
.video-item-title{
  font-size:14px;
  letter-spacing:.06em;
  color:#777;
  margin-bottom:12px;
}
.video-item video{
  display:block;
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  background:#000;
  border-radius:18px;
}

/* only for 都市造梦企划: three portrait videos in one horizontal row */
.video-stack.portrait-row{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
  align-items:start;
}
.video-stack.portrait-row .video-item video{
  aspect-ratio:9/16;
  object-fit:cover;
}
.video-stack.portrait-row .video-item-title{
  margin-bottom:10px;
}

@media (max-width: 1200px){
  .video-stack.portrait-row{
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:12px;
  }
}
@media (max-width: 900px){
  .video-stack.portrait-row{
    grid-template-columns:1fr;
  }
}


/* ===== V10 Dream project custom layout ===== */
/* 都市造梦企划视频尺寸为3508×4960，不是9:16；单独放在标题区域下方横向排列 */

.modal-hero.layout-portrait-row{
  display:flex;
  flex-direction:column;
  gap:42px;
}

.modal-hero.layout-portrait-row > div:first-child{
  width:100%;
}

.modal-hero.layout-portrait-row .modal-media-wrap{
  width:100%;
}

.video-stack.portrait-row{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:28px;
  width:100%;
}

.video-stack.portrait-row .video-item video{
  width:100%;
  height:auto;
  aspect-ratio:3508 / 4960;
  object-fit:cover;
  border-radius:18px;
}

.video-stack.portrait-row .video-item-title{
  margin-bottom:12px;
}

.modal-hero.layout-portrait-row + .modal-grid{
  margin-top:42px;
}

@media(max-width:900px){
  .video-stack.portrait-row{
    grid-template-columns:1fr;
  }
}


/* ===== V11 graphic project galleries ===== */
.modal-hero.has-gallery{
  display:block;
}
.modal-hero.has-gallery .modal-title{
  max-width:920px;
}
.modal-hero.has-gallery .modal-lead{
  max-width:920px;
}

.modal-hero.has-gallery.with-cover{
  display:grid;
  grid-template-columns:minmax(360px,.9fr) minmax(520px,1.1fr);
  gap:40px;
  align-items:start;
}
.modal-hero.has-gallery.with-cover .modal-title,
.modal-hero.has-gallery.with-cover .modal-lead{
  max-width:none;
}
.gallery-cover-wrap .modal-cover img{
  max-height:none;
  aspect-ratio:16/9;
  object-fit:cover;
}
@media (max-width:1200px){
  .modal-hero.has-gallery.with-cover{
    grid-template-columns:1fr;
  }
}

.project-gallery{
  width:100%;
  margin-top:40px;
  margin-bottom:44px;
}
.project-gallery.grid-3{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:24px;
}
.project-gallery.stacked{
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
}
.gallery-item{
  margin:0;
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,.04);
}
.gallery-item img{
  display:block;
  width:100%;
  height:auto;
}
@media (max-width:1100px){
  .project-gallery.grid-3{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}
@media (max-width:700px){
  .project-gallery.grid-3,
  .project-gallery.stacked{
    grid-template-columns:1fr;
  }
}
